1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for dbixx 0.0.4.
4#
5# Report bugs to <artyomtnk@yahoo.com>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44  echo "#! /bin/sh" >conf$$.sh
45  echo  "exit 0"   >>conf$$.sh
46  chmod +x conf$$.sh
47  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48    PATH_SEPARATOR=';'
49  else
50    PATH_SEPARATOR=:
51  fi
52  rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order.  Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" ""	$as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93  { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108  LC_TELEPHONE LC_TIME
109do
110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111    eval $as_var=C; export $as_var
112  else
113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114  fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135	 X"$0" : 'X\(//\)$' \| \
136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\/\)$/{
143	    s//\1/
144	    q
145	  }
146	  /^X\/\(\/\).*/{
147	    s//\1/
148	    q
149	  }
150	  s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes && 	 (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226  IFS=$as_save_IFS
227  test -z "$as_dir" && as_dir=.
228  case $as_dir in
229	 /*)
230	   for as_base in sh bash ksh sh5; do
231	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232	   done;;
233       esac
234done
235IFS=$as_save_IFS
236
237
238      for as_shell in $as_candidate_shells $SHELL; do
239	 # Try only shells that exist, to save several forks.
240	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243  emulate sh
244  NULLCMD=:
245  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246  # is contrary to our usage.  Disable this feature.
247  alias -g '${1+"$@"}'='"$@"'
248  setopt NO_GLOB_SUBST
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260  CONFIG_SHELL=$as_shell
261	       as_have_required=yes
262	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264  emulate sh
265  NULLCMD=:
266  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267  # is contrary to our usage.  Disable this feature.
268  alias -g '${1+"$@"}'='"$@"'
269  setopt NO_GLOB_SUBST
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330  as_lineno_1=$LINENO
331  as_lineno_2=$LINENO
332  test "x$as_lineno_1" != "x$as_lineno_2" &&
333  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337  break
338fi
339
340fi
341
342      done
343
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353    if test $as_have_required = no; then
354  echo This script requires a shell more modern than all the
355      echo shells that I found on your system.  Please install a
356      echo modern shell, or manually run the script under such a
357      echo shell if you do have one.
358      { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417  echo No shell found that supports shell functions.
418  echo Please tell autoconf@gnu.org about your system,
419  echo including any error possibly output before this
420  echo message
421}
422
423
424
425  as_lineno_1=$LINENO
426  as_lineno_2=$LINENO
427  test "x$as_lineno_1" != "x$as_lineno_2" &&
428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431  # uniformly replaced by the line number.  The first 'sed' inserts a
432  # line-number line after each line using $LINENO; the second 'sed'
433  # does the real work.  The second script uses 'N' to pair each
434  # line-number line with the line containing $LINENO, and appends
435  # trailing '-' during substitution so that $LINENO is not a special
436  # case at line end.
437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439  # E. McMahon (1931-1989) for sed's syntax.  :-)
440  sed -n '
441    p
442    /[$]LINENO/=
443  ' <$as_myself |
444    sed '
445      s/[$]LINENO.*/&-/
446      t lineno
447      b
448      :lineno
449      N
450      :loop
451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452      t loop
453      s/-\n.*//
454    ' >$as_me.lineno &&
455  chmod +x "$as_me.lineno" ||
456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457   { (exit 1); exit 1; }; }
458
459  # Don't try to exec as it changes $[0], causing all sort of problems
460  # (the dirname of $[0] is not the place where we might find the
461  # original and so on.  Autoconf is especially sensitive to this).
462  . "./$as_me.lineno"
463  # Exit status is that of the last command.
464  exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477  case `echo 'x\c'` in
478  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479  *)   ECHO_C='\c';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s='ln -s'
502  # ... but there are two gotchas:
503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505  # In both cases, we have to default to `cp -p'.
506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507    as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
526  if ls -dL / >/dev/null 2>&1; then
527    as_ls_L_option=L
528  else
529    as_ls_L_option=
530  fi
531  as_test_x='
532    eval sh -c '\''
533      if test -d "$1"; then
534        test -d "$1/.";
535      else
536	case $1 in
537        -*)set "./$1";;
538	esac;
539	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540	???[sx]*):;;*)false;;esac;fi
541    '\'' sh
542  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560  # Remove one level of quotation (which was required for Make).
561  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562  ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567  # Discard the --no-reexec flag, and continue.
568  shift
569elif test "X$1" = X--fallback-echo; then
570  # Avoid inline document here, it may be left over
571  :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573  # Yippee, $echo works!
574  :
575else
576  # Restart under the correct shell.
577  exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581  # used as fallback echo
582  shift
583  cat <<EOF
584$*
585EOF
586  exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599       echo_test_string=`eval $cmd` &&
600       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601    then
602      break
603    fi
604  done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609   test "X$echo_testing_string" = "X$echo_test_string"; then
610  :
611else
612  # The Solaris, AIX, and Digital Unix default echo programs unquote
613  # backslashes.  This makes it impossible to quote backslashes using
614  #   echo "$something" | sed 's/\\/\\\\/g'
615  #
616  # So, first we look for a working echo in the user's PATH.
617
618  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619  for dir in $PATH /usr/ucb; do
620    IFS="$lt_save_ifs"
621    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624       test "X$echo_testing_string" = "X$echo_test_string"; then
625      echo="$dir/echo"
626      break
627    fi
628  done
629  IFS="$lt_save_ifs"
630
631  if test "X$echo" = Xecho; then
632    # We didn't find a better echo, so look for alternatives.
633    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635       test "X$echo_testing_string" = "X$echo_test_string"; then
636      # This shell has a builtin print -r that does the trick.
637      echo='print -r'
638    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639	 test "X$CONFIG_SHELL" != X/bin/ksh; then
640      # If we have ksh, try running configure again with it.
641      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642      export ORIGINAL_CONFIG_SHELL
643      CONFIG_SHELL=/bin/ksh
644      export CONFIG_SHELL
645      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646    else
647      # Try using printf.
648      echo='printf %s\n'
649      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651	 test "X$echo_testing_string" = "X$echo_test_string"; then
652	# Cool, printf works
653	:
654      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655	   test "X$echo_testing_string" = 'X\t' &&
656	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657	   test "X$echo_testing_string" = "X$echo_test_string"; then
658	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659	export CONFIG_SHELL
660	SHELL="$CONFIG_SHELL"
661	export SHELL
662	echo="$CONFIG_SHELL $0 --fallback-echo"
663      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664	   test "X$echo_testing_string" = 'X\t' &&
665	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666	   test "X$echo_testing_string" = "X$echo_test_string"; then
667	echo="$CONFIG_SHELL $0 --fallback-echo"
668      else
669	# maybe with a smaller string...
670	prev=:
671
672	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674	  then
675	    break
676	  fi
677	  prev="$cmd"
678	done
679
680	if test "$prev" != 'sed 50q "$0"'; then
681	  echo_test_string=`eval $prev`
682	  export echo_test_string
683	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684	else
685	  # Oops.  We lost completely, so just stick with echo.
686	  echo=echo
687	fi
688      fi
689    fi
690  fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
708exec 7<&0 </dev/null 6>&1
709
710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
719ac_clean_files=
720ac_config_libobj_dir=.
721LIBOBJS=
722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
728# Identity of this package.
729PACKAGE_NAME='dbixx'
730PACKAGE_TARNAME='dbixx'
731PACKAGE_VERSION='0.0.4'
732PACKAGE_STRING='dbixx 0.0.4'
733PACKAGE_BUGREPORT='artyomtnk@yahoo.com'
734
735# Factoring default headers for most tests.
736ac_includes_default="\
737#include <stdio.h>
738#ifdef HAVE_SYS_TYPES_H
739# include <sys/types.h>
740#endif
741#ifdef HAVE_SYS_STAT_H
742# include <sys/stat.h>
743#endif
744#ifdef STDC_HEADERS
745# include <stdlib.h>
746# include <stddef.h>
747#else
748# ifdef HAVE_STDLIB_H
749#  include <stdlib.h>
750# endif
751#endif
752#ifdef HAVE_STRING_H
753# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754#  include <memory.h>
755# endif
756# include <string.h>
757#endif
758#ifdef HAVE_STRINGS_H
759# include <strings.h>
760#endif
761#ifdef HAVE_INTTYPES_H
762# include <inttypes.h>
763#endif
764#ifdef HAVE_STDINT_H
765# include <stdint.h>
766#endif
767#ifdef HAVE_UNISTD_H
768# include <unistd.h>
769#endif"
770
771ac_subst_vars='SHELL
772PATH_SEPARATOR
773PACKAGE_NAME
774PACKAGE_TARNAME
775PACKAGE_VERSION
776PACKAGE_STRING
777PACKAGE_BUGREPORT
778exec_prefix
779prefix
780program_transform_name
781bindir
782sbindir
783libexecdir
784datarootdir
785datadir
786sysconfdir
787sharedstatedir
788localstatedir
789includedir
790oldincludedir
791docdir
792infodir
793htmldir
794dvidir
795pdfdir
796psdir
797libdir
798localedir
799mandir
800DEFS
801ECHO_C
802ECHO_N
803ECHO_T
804LIBS
805build_alias
806host_alias
807target_alias
808INSTALL_PROGRAM
809INSTALL_SCRIPT
810INSTALL_DATA
811CYGPATH_W
812PACKAGE
813VERSION
814ACLOCAL
815AUTOCONF
816AUTOMAKE
817AUTOHEADER
818MAKEINFO
819install_sh
820STRIP
821INSTALL_STRIP_PROGRAM
822mkdir_p
823AWK
824SET_MAKE
825am__leading_dot
826AMTAR
827am__tar
828am__untar
829CXX
830CXXFLAGS
831LDFLAGS
832CPPFLAGS
833ac_ct_CXX
834EXEEXT
835OBJEXT
836DEPDIR
837am__include
838am__quote
839AMDEP_TRUE
840AMDEP_FALSE
841AMDEPBACKSLASH
842CXXDEPMODE
843am__fastdepCXX_TRUE
844am__fastdepCXX_FALSE
845build
846build_cpu
847build_vendor
848build_os
849host
850host_cpu
851host_vendor
852host_os
853CC
854CFLAGS
855ac_ct_CC
856CCDEPMODE
857am__fastdepCC_TRUE
858am__fastdepCC_FALSE
859SED
860GREP
861EGREP
862LN_S
863ECHO
864AR
865RANLIB
866DSYMUTIL
867NMEDIT
868CPP
869CXXCPP
870F77
871FFLAGS
872ac_ct_F77
873LIBTOOL
874LIBTOOL_DEPS
875LIBOBJS
876LTLIBOBJS'
877ac_subst_files=''
878      ac_precious_vars='build_alias
879host_alias
880target_alias
881CXX
882CXXFLAGS
883LDFLAGS
884LIBS
885CPPFLAGS
886CCC
887CC
888CFLAGS
889CPP
890CXXCPP
891F77
892FFLAGS'
893
894
895# Initialize some variables set by options.
896ac_init_help=
897ac_init_version=false
898# The variables have the same names as the options, with
899# dashes changed to underlines.
900cache_file=/dev/null
901exec_prefix=NONE
902no_create=
903no_recursion=
904prefix=NONE
905program_prefix=NONE
906program_suffix=NONE
907program_transform_name=s,x,x,
908silent=
909site=
910srcdir=
911verbose=
912x_includes=NONE
913x_libraries=NONE
914
915# Installation directory options.
916# These are left unexpanded so users can "make install exec_prefix=/foo"
917# and all the variables that are supposed to be based on exec_prefix
918# by default will actually change.
919# Use braces instead of parens because sh, perl, etc. also accept them.
920# (The list follows the same order as the GNU Coding Standards.)
921bindir='${exec_prefix}/bin'
922sbindir='${exec_prefix}/sbin'
923libexecdir='${exec_prefix}/libexec'
924datarootdir='${prefix}/share'
925datadir='${datarootdir}'
926sysconfdir='${prefix}/etc'
927sharedstatedir='${prefix}/com'
928localstatedir='${prefix}/var'
929includedir='${prefix}/include'
930oldincludedir='/usr/include'
931docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
932infodir='${datarootdir}/info'
933htmldir='${docdir}'
934dvidir='${docdir}'
935pdfdir='${docdir}'
936psdir='${docdir}'
937libdir='${exec_prefix}/lib'
938localedir='${datarootdir}/locale'
939mandir='${datarootdir}/man'
940
941ac_prev=
942ac_dashdash=
943for ac_option
944do
945  # If the previous option needs an argument, assign it.
946  if test -n "$ac_prev"; then
947    eval $ac_prev=\$ac_option
948    ac_prev=
949    continue
950  fi
951
952  case $ac_option in
953  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954  *)	ac_optarg=yes ;;
955  esac
956
957  # Accept the important Cygnus configure options, so we can diagnose typos.
958
959  case $ac_dashdash$ac_option in
960  --)
961    ac_dashdash=yes ;;
962
963  -bindir | --bindir | --bindi | --bind | --bin | --bi)
964    ac_prev=bindir ;;
965  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966    bindir=$ac_optarg ;;
967
968  -build | --build | --buil | --bui | --bu)
969    ac_prev=build_alias ;;
970  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971    build_alias=$ac_optarg ;;
972
973  -cache-file | --cache-file | --cache-fil | --cache-fi \
974  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975    ac_prev=cache_file ;;
976  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978    cache_file=$ac_optarg ;;
979
980  --config-cache | -C)
981    cache_file=config.cache ;;
982
983  -datadir | --datadir | --datadi | --datad)
984    ac_prev=datadir ;;
985  -datadir=* | --datadir=* | --datadi=* | --datad=*)
986    datadir=$ac_optarg ;;
987
988  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989  | --dataroo | --dataro | --datar)
990    ac_prev=datarootdir ;;
991  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993    datarootdir=$ac_optarg ;;
994
995  -disable-* | --disable-*)
996    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997    # Reject names that are not valid shell variable names.
998    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
999      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1000   { (exit 1); exit 1; }; }
1001    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1002    eval enable_$ac_feature=no ;;
1003
1004  -docdir | --docdir | --docdi | --doc | --do)
1005    ac_prev=docdir ;;
1006  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007    docdir=$ac_optarg ;;
1008
1009  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010    ac_prev=dvidir ;;
1011  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012    dvidir=$ac_optarg ;;
1013
1014  -enable-* | --enable-*)
1015    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016    # Reject names that are not valid shell variable names.
1017    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019   { (exit 1); exit 1; }; }
1020    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1021    eval enable_$ac_feature=\$ac_optarg ;;
1022
1023  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025  | --exec | --exe | --ex)
1026    ac_prev=exec_prefix ;;
1027  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029  | --exec=* | --exe=* | --ex=*)
1030    exec_prefix=$ac_optarg ;;
1031
1032  -gas | --gas | --ga | --g)
1033    # Obsolete; use --with-gas.
1034    with_gas=yes ;;
1035
1036  -help | --help | --hel | --he | -h)
1037    ac_init_help=long ;;
1038  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039    ac_init_help=recursive ;;
1040  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041    ac_init_help=short ;;
1042
1043  -host | --host | --hos | --ho)
1044    ac_prev=host_alias ;;
1045  -host=* | --host=* | --hos=* | --ho=*)
1046    host_alias=$ac_optarg ;;
1047
1048  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049    ac_prev=htmldir ;;
1050  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051  | --ht=*)
1052    htmldir=$ac_optarg ;;
1053
1054  -includedir | --includedir | --includedi | --included | --include \
1055  | --includ | --inclu | --incl | --inc)
1056    ac_prev=includedir ;;
1057  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058  | --includ=* | --inclu=* | --incl=* | --inc=*)
1059    includedir=$ac_optarg ;;
1060
1061  -infodir | --infodir | --infodi | --infod | --info | --inf)
1062    ac_prev=infodir ;;
1063  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064    infodir=$ac_optarg ;;
1065
1066  -libdir | --libdir | --libdi | --libd)
1067    ac_prev=libdir ;;
1068  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069    libdir=$ac_optarg ;;
1070
1071  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072  | --libexe | --libex | --libe)
1073    ac_prev=libexecdir ;;
1074  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075  | --libexe=* | --libex=* | --libe=*)
1076    libexecdir=$ac_optarg ;;
1077
1078  -localedir | --localedir | --localedi | --localed | --locale)
1079    ac_prev=localedir ;;
1080  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081    localedir=$ac_optarg ;;
1082
1083  -localstatedir | --localstatedir | --localstatedi | --localstated \
1084  | --localstate | --localstat | --localsta | --localst | --locals)
1085    ac_prev=localstatedir ;;
1086  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088    localstatedir=$ac_optarg ;;
1089
1090  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091    ac_prev=mandir ;;
1092  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093    mandir=$ac_optarg ;;
1094
1095  -nfp | --nfp | --nf)
1096    # Obsolete; use --without-fp.
1097    with_fp=no ;;
1098
1099  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100  | --no-cr | --no-c | -n)
1101    no_create=yes ;;
1102
1103  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105    no_recursion=yes ;;
1106
1107  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109  | --oldin | --oldi | --old | --ol | --o)
1110    ac_prev=oldincludedir ;;
1111  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114    oldincludedir=$ac_optarg ;;
1115
1116  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117    ac_prev=prefix ;;
1118  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119    prefix=$ac_optarg ;;
1120
1121  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122  | --program-pre | --program-pr | --program-p)
1123    ac_prev=program_prefix ;;
1124  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126    program_prefix=$ac_optarg ;;
1127
1128  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129  | --program-suf | --program-su | --program-s)
1130    ac_prev=program_suffix ;;
1131  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133    program_suffix=$ac_optarg ;;
1134
1135  -program-transform-name | --program-transform-name \
1136  | --program-transform-nam | --program-transform-na \
1137  | --program-transform-n | --program-transform- \
1138  | --program-transform | --program-transfor \
1139  | --program-transfo | --program-transf \
1140  | --program-trans | --program-tran \
1141  | --progr-tra | --program-tr | --program-t)
1142    ac_prev=program_transform_name ;;
1143  -program-transform-name=* | --program-transform-name=* \
1144  | --program-transform-nam=* | --program-transform-na=* \
1145  | --program-transform-n=* | --program-transform-=* \
1146  | --program-transform=* | --program-transfor=* \
1147  | --program-transfo=* | --program-transf=* \
1148  | --program-trans=* | --program-tran=* \
1149  | --progr-tra=* | --program-tr=* | --program-t=*)
1150    program_transform_name=$ac_optarg ;;
1151
1152  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153    ac_prev=pdfdir ;;
1154  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155    pdfdir=$ac_optarg ;;
1156
1157  -psdir | --psdir | --psdi | --psd | --ps)
1158    ac_prev=psdir ;;
1159  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160    psdir=$ac_optarg ;;
1161
1162  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163  | -silent | --silent | --silen | --sile | --sil)
1164    silent=yes ;;
1165
1166  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167    ac_prev=sbindir ;;
1168  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169  | --sbi=* | --sb=*)
1170    sbindir=$ac_optarg ;;
1171
1172  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174  | --sharedst | --shareds | --shared | --share | --shar \
1175  | --sha | --sh)
1176    ac_prev=sharedstatedir ;;
1177  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180  | --sha=* | --sh=*)
1181    sharedstatedir=$ac_optarg ;;
1182
1183  -site | --site | --sit)
1184    ac_prev=site ;;
1185  -site=* | --site=* | --sit=*)
1186    site=$ac_optarg ;;
1187
1188  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189    ac_prev=srcdir ;;
1190  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191    srcdir=$ac_optarg ;;
1192
1193  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194  | --syscon | --sysco | --sysc | --sys | --sy)
1195    ac_prev=sysconfdir ;;
1196  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198    sysconfdir=$ac_optarg ;;
1199
1200  -target | --target | --targe | --targ | --tar | --ta | --t)
1201    ac_prev=target_alias ;;
1202  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203    target_alias=$ac_optarg ;;
1204
1205  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206    verbose=yes ;;
1207
1208  -version | --version | --versio | --versi | --vers | -V)
1209    ac_init_version=: ;;
1210
1211  -with-* | --with-*)
1212    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213    # Reject names that are not valid shell variable names.
1214    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215      { echo "$as_me: error: invalid package name: $ac_package" >&2
1216   { (exit 1); exit 1; }; }
1217    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1218    eval with_$ac_package=\$ac_optarg ;;
1219
1220  -without-* | --without-*)
1221    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222    # Reject names that are not valid shell variable names.
1223    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224      { echo "$as_me: error: invalid package name: $ac_package" >&2
1225   { (exit 1); exit 1; }; }
1226    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1227    eval with_$ac_package=no ;;
1228
1229  --x)
1230    # Obsolete; use --with-x.
1231    with_x=yes ;;
1232
1233  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234  | --x-incl | --x-inc | --x-in | --x-i)
1235    ac_prev=x_includes ;;
1236  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238    x_includes=$ac_optarg ;;
1239
1240  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242    ac_prev=x_libraries ;;
1243  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245    x_libraries=$ac_optarg ;;
1246
1247  -*) { echo "$as_me: error: unrecognized option: $ac_option
1248Try \`$0 --help' for more information." >&2
1249   { (exit 1); exit 1; }; }
1250    ;;
1251
1252  *=*)
1253    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254    # Reject names that are not valid shell variable names.
1255    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1256      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1257   { (exit 1); exit 1; }; }
1258    eval $ac_envvar=\$ac_optarg
1259    export $ac_envvar ;;
1260
1261  *)
1262    # FIXME: should be removed in autoconf 3.0.
1263    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1267    ;;
1268
1269  esac
1270done
1271
1272if test -n "$ac_prev"; then
1273  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274  { echo "$as_me: error: missing argument to $ac_option" >&2
1275   { (exit 1); exit 1; }; }
1276fi
1277
1278# Be sure to have absolute directory names.
1279for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280		datadir sysconfdir sharedstatedir localstatedir includedir \
1281		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282		libdir localedir mandir
1283do
1284  eval ac_val=\$$ac_var
1285  case $ac_val in
1286    [\\/$]* | ?:[\\/]* )  continue;;
1287    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288  esac
1289  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1290   { (exit 1); exit 1; }; }
1291done
1292
1293# There might be people who depend on the old broken behavior: `$host'
1294# used to hold the argument of --host etc.
1295# FIXME: To remove some day.
1296build=$build_alias
1297host=$host_alias
1298target=$target_alias
1299
1300# FIXME: To remove some day.
1301if test "x$host_alias" != x; then
1302  if test "x$build_alias" = x; then
1303    cross_compiling=maybe
1304    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1305    If a cross compiler is detected then cross compile mode will be used." >&2
1306  elif test "x$build_alias" != "x$host_alias"; then
1307    cross_compiling=yes
1308  fi
1309fi
1310
1311ac_tool_prefix=
1312test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314test "$silent" = yes && exec 6>/dev/null
1315
1316
1317ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318ac_ls_di=`ls -di .` &&
1319ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320  { echo "$as_me: error: Working directory cannot be determined" >&2
1321   { (exit 1); exit 1; }; }
1322test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323  { echo "$as_me: error: pwd does not report name of working directory" >&2
1324   { (exit 1); exit 1; }; }
1325
1326
1327# Find the source files, if location was not specified.
1328if test -z "$srcdir"; then
1329  ac_srcdir_defaulted=yes
1330  # Try the directory containing this script, then the parent directory.
1331  ac_confdir=`$as_dirname -- "$0" ||
1332$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333	 X"$0" : 'X\(//\)[^/]' \| \
1334	 X"$0" : 'X\(//\)$' \| \
1335	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1336echo X"$0" |
1337    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338	    s//\1/
1339	    q
1340	  }
1341	  /^X\(\/\/\)[^/].*/{
1342	    s//\1/
1343	    q
1344	  }
1345	  /^X\(\/\/\)$/{
1346	    s//\1/
1347	    q
1348	  }
1349	  /^X\(\/\).*/{
1350	    s//\1/
1351	    q
1352	  }
1353	  s/.*/./; q'`
1354  srcdir=$ac_confdir
1355  if test ! -r "$srcdir/$ac_unique_file"; then
1356    srcdir=..
1357  fi
1358else
1359  ac_srcdir_defaulted=no
1360fi
1361if test ! -r "$srcdir/$ac_unique_file"; then
1362  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1364   { (exit 1); exit 1; }; }
1365fi
1366ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367ac_abs_confdir=`(
1368	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1369   { (exit 1); exit 1; }; }
1370	pwd)`
1371# When building in place, set srcdir=.
1372if test "$ac_abs_confdir" = "$ac_pwd"; then
1373  srcdir=.
1374fi
1375# Remove unnecessary trailing slashes from srcdir.
1376# Double slashes in file names in object file debugging info
1377# mess up M-x gdb in Emacs.
1378case $srcdir in
1379*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380esac
1381for ac_var in $ac_precious_vars; do
1382  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383  eval ac_env_${ac_var}_value=\$${ac_var}
1384  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386done
1387
1388#
1389# Report the --help message.
1390#
1391if test "$ac_init_help" = "long"; then
1392  # Omit some internal or obsolete options to make the list less imposing.
1393  # This message is too long to be a string in the A/UX 3.1 sh.
1394  cat <<_ACEOF
1395\`configure' configures dbixx 0.0.4 to adapt to many kinds of systems.
1396
1397Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400VAR=VALUE.  See below for descriptions of some of the useful variables.
1401
1402Defaults for the options are specified in brackets.
1403
1404Configuration:
1405  -h, --help              display this help and exit
1406      --help=short        display options specific to this package
1407      --help=recursive    display the short help of all the included packages
1408  -V, --version           display version information and exit
1409  -q, --quiet, --silent   do not print \`checking...' messages
1410      --cache-file=FILE   cache test results in FILE [disabled]
1411  -C, --config-cache      alias for \`--cache-file=config.cache'
1412  -n, --no-create         do not create output files
1413      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1414
1415Installation directories:
1416  --prefix=PREFIX         install architecture-independent files in PREFIX
1417			  [$ac_default_prefix]
1418  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1419			  [PREFIX]
1420
1421By default, \`make install' will install all the files in
1422\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1423an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424for instance \`--prefix=\$HOME'.
1425
1426For better control, use the options below.
1427
1428Fine tuning of the installation directories:
1429  --bindir=DIR           user executables [EPREFIX/bin]
1430  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1431  --libexecdir=DIR       program executables [EPREFIX/libexec]
1432  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1433  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1434  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1435  --libdir=DIR           object code libraries [EPREFIX/lib]
1436  --includedir=DIR       C header files [PREFIX/include]
1437  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1438  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1439  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1440  --infodir=DIR          info documentation [DATAROOTDIR/info]
1441  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1442  --mandir=DIR           man documentation [DATAROOTDIR/man]
1443  --docdir=DIR           documentation root [DATAROOTDIR/doc/dbixx]
1444  --htmldir=DIR          html documentation [DOCDIR]
1445  --dvidir=DIR           dvi documentation [DOCDIR]
1446  --pdfdir=DIR           pdf documentation [DOCDIR]
1447  --psdir=DIR            ps documentation [DOCDIR]
1448_ACEOF
1449
1450  cat <<\_ACEOF
1451
1452Program names:
1453  --program-prefix=PREFIX            prepend PREFIX to installed program names
1454  --program-suffix=SUFFIX            append SUFFIX to installed program names
1455  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1456
1457System types:
1458  --build=BUILD     configure for building on BUILD [guessed]
1459  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1460_ACEOF
1461fi
1462
1463if test -n "$ac_init_help"; then
1464  case $ac_init_help in
1465     short | recursive ) echo "Configuration of dbixx 0.0.4:";;
1466   esac
1467  cat <<\_ACEOF
1468
1469Optional Features:
1470  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1471  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1472  --disable-dependency-tracking  speeds up one-time build
1473  --enable-dependency-tracking   do not reject slow dependency extractors
1474  --enable-shared[=PKGS]  build shared libraries [default=yes]
1475  --enable-static[=PKGS]  build static libraries [default=yes]
1476  --enable-fast-install[=PKGS]
1477                          optimize for fast installation [default=yes]
1478  --disable-libtool-lock  avoid locking (might break parallel builds)
1479
1480Optional Packages:
1481  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1482  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1483  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1484  --with-pic              try to use only PIC/non-PIC objects [default=use
1485                          both]
1486  --with-tags[=TAGS]      include additional configurations [automatic]
1487
1488Some influential environment variables:
1489  CXX         C++ compiler command
1490  CXXFLAGS    C++ compiler flags
1491  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1492              nonstandard directory <lib dir>
1493  LIBS        libraries to pass to the linker, e.g. -l<library>
1494  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1495              you have headers in a nonstandard directory <include dir>
1496  CC          C compiler command
1497  CFLAGS      C compiler flags
1498  CPP         C preprocessor
1499  CXXCPP      C++ preprocessor
1500  F77         Fortran 77 compiler command
1501  FFLAGS      Fortran 77 compiler flags
1502
1503Use these variables to override the choices made by `configure' or to help
1504it to find libraries and programs with nonstandard names/locations.
1505
1506Report bugs to <artyomtnk@yahoo.com>.
1507_ACEOF
1508ac_status=$?
1509fi
1510
1511if test "$ac_init_help" = "recursive"; then
1512  # If there are subdirs, report their specific --help.
1513  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514    test -d "$ac_dir" || continue
1515    ac_builddir=.
1516
1517case "$ac_dir" in
1518.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519*)
1520  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1521  # A ".." for each directory in $ac_dir_suffix.
1522  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1523  case $ac_top_builddir_sub in
1524  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526  esac ;;
1527esac
1528ac_abs_top_builddir=$ac_pwd
1529ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530# for backward compatibility:
1531ac_top_builddir=$ac_top_build_prefix
1532
1533case $srcdir in
1534  .)  # We are building in place.
1535    ac_srcdir=.
1536    ac_top_srcdir=$ac_top_builddir_sub
1537    ac_abs_top_srcdir=$ac_pwd ;;
1538  [\\/]* | ?:[\\/]* )  # Absolute name.
1539    ac_srcdir=$srcdir$ac_dir_suffix;
1540    ac_top_srcdir=$srcdir
1541    ac_abs_top_srcdir=$srcdir ;;
1542  *) # Relative name.
1543    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544    ac_top_srcdir=$ac_top_build_prefix$srcdir
1545    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546esac
1547ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548
1549    cd "$ac_dir" || { ac_status=$?; continue; }
1550    # Check for guested configure.
1551    if test -f "$ac_srcdir/configure.gnu"; then
1552      echo &&
1553      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554    elif test -f "$ac_srcdir/configure"; then
1555      echo &&
1556      $SHELL "$ac_srcdir/configure" --help=recursive
1557    else
1558      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559    fi || ac_status=$?
1560    cd "$ac_pwd" || { ac_status=$?; break; }
1561  done
1562fi
1563
1564test -n "$ac_init_help" && exit $ac_status
1565if $ac_init_version; then
1566  cat <<\_ACEOF
1567dbixx configure 0.0.4
1568generated by GNU Autoconf 2.61
1569
1570Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15712002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1572This configure script is free software; the Free Software Foundation
1573gives unlimited permission to copy, distribute and modify it.
1574_ACEOF
1575  exit
1576fi
1577cat >config.log <<_ACEOF
1578This file contains any messages produced by compilers while
1579running configure, to aid debugging if configure makes a mistake.
1580
1581It was created by dbixx $as_me 0.0.4, which was
1582generated by GNU Autoconf 2.61.  Invocation command line was
1583
1584  $ $0 $@
1585
1586_ACEOF
1587exec 5>>config.log
1588{
1589cat <<_ASUNAME
1590## --------- ##
1591## Platform. ##
1592## --------- ##
1593
1594hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1595uname -m = `(uname -m) 2>/dev/null || echo unknown`
1596uname -r = `(uname -r) 2>/dev/null || echo unknown`
1597uname -s = `(uname -s) 2>/dev/null || echo unknown`
1598uname -v = `(uname -v) 2>/dev/null || echo unknown`
1599
1600/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1601/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1602
1603/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1604/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1605/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1606/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1607/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1608/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1609/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1610
1611_ASUNAME
1612
1613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614for as_dir in $PATH
1615do
1616  IFS=$as_save_IFS
1617  test -z "$as_dir" && as_dir=.
1618  echo "PATH: $as_dir"
1619done
1620IFS=$as_save_IFS
1621
1622} >&5
1623
1624cat >&5 <<_ACEOF
1625
1626
1627## ----------- ##
1628## Core tests. ##
1629## ----------- ##
1630
1631_ACEOF
1632
1633
1634# Keep a trace of the command line.
1635# Strip out --no-create and --no-recursion so they do not pile up.
1636# Strip out --silent because we don't want to record it for future runs.
1637# Also quote any args containing shell meta-characters.
1638# Make two passes to allow for proper duplicate-argument suppression.
1639ac_configure_args=
1640ac_configure_args0=
1641ac_configure_args1=
1642ac_must_keep_next=false
1643for ac_pass in 1 2
1644do
1645  for ac_arg
1646  do
1647    case $ac_arg in
1648    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1649    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1650    | -silent | --silent | --silen | --sile | --sil)
1651      continue ;;
1652    *\'*)
1653      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1654    esac
1655    case $ac_pass in
1656    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1657    2)
1658      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1659      if test $ac_must_keep_next = true; then
1660	ac_must_keep_next=false # Got value, back to normal.
1661      else
1662	case $ac_arg in
1663	  *=* | --config-cache | -C | -disable-* | --disable-* \
1664	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1665	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1666	  | -with-* | --with-* | -without-* | --without-* | --x)
1667	    case "$ac_configure_args0 " in
1668	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1669	    esac
1670	    ;;
1671	  -* ) ac_must_keep_next=true ;;
1672	esac
1673      fi
1674      ac_configure_args="$ac_configure_args '$ac_arg'"
1675      ;;
1676    esac
1677  done
1678done
1679$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1680$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1681
1682# When interrupted or exit'd, cleanup temporary files, and complete
1683# config.log.  We remove comments because anyway the quotes in there
1684# would cause problems or look ugly.
1685# WARNING: Use '\'' to represent an apostrophe within the trap.
1686# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1687trap 'exit_status=$?
1688  # Save into config.log some information that might help in debugging.
1689  {
1690    echo
1691
1692    cat <<\_ASBOX
1693## ---------------- ##
1694## Cache variables. ##
1695## ---------------- ##
1696_ASBOX
1697    echo
1698    # The following way of writing the cache mishandles newlines in values,
1699(
1700  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1701    eval ac_val=\$$ac_var
1702    case $ac_val in #(
1703    *${as_nl}*)
1704      case $ac_var in #(
1705      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1706echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1707      esac
1708      case $ac_var in #(
1709      _ | IFS | as_nl) ;; #(
1710      *) $as_unset $ac_var ;;
1711      esac ;;
1712    esac
1713  done
1714  (set) 2>&1 |
1715    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1716    *${as_nl}ac_space=\ *)
1717      sed -n \
1718	"s/'\''/'\''\\\\'\'''\''/g;
1719	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1720      ;; #(
1721    *)
1722      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1723      ;;
1724    esac |
1725    sort
1726)
1727    echo
1728
1729    cat <<\_ASBOX
1730## ----------------- ##
1731## Output variables. ##
1732## ----------------- ##
1733_ASBOX
1734    echo
1735    for ac_var in $ac_subst_vars
1736    do
1737      eval ac_val=\$$ac_var
1738      case $ac_val in
1739      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1740      esac
1741      echo "$ac_var='\''$ac_val'\''"
1742    done | sort
1743    echo
1744
1745    if test -n "$ac_subst_files"; then
1746      cat <<\_ASBOX
1747## ------------------- ##
1748## File substitutions. ##
1749## ------------------- ##
1750_ASBOX
1751      echo
1752      for ac_var in $ac_subst_files
1753      do
1754	eval ac_val=\$$ac_var
1755	case $ac_val in
1756	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757	esac
1758	echo "$ac_var='\''$ac_val'\''"
1759      done | sort
1760      echo
1761    fi
1762
1763    if test -s confdefs.h; then
1764      cat <<\_ASBOX
1765## ----------- ##
1766## confdefs.h. ##
1767## ----------- ##
1768_ASBOX
1769      echo
1770      cat confdefs.h
1771      echo
1772    fi
1773    test "$ac_signal" != 0 &&
1774      echo "$as_me: caught signal $ac_signal"
1775    echo "$as_me: exit $exit_status"
1776  } >&5
1777  rm -f core *.core core.conftest.* &&
1778    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1779    exit $exit_status
1780' 0
1781for ac_signal in 1 2 13 15; do
1782  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1783done
1784ac_signal=0
1785
1786# confdefs.h avoids OS command line length limits that DEFS can exceed.
1787rm -f -r conftest* confdefs.h
1788
1789# Predefined preprocessor variables.
1790
1791cat >>confdefs.h <<_ACEOF
1792#define PACKAGE_NAME "$PACKAGE_NAME"
1793_ACEOF
1794
1795
1796cat >>confdefs.h <<_ACEOF
1797#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1798_ACEOF
1799
1800
1801cat >>confdefs.h <<_ACEOF
1802#define PACKAGE_VERSION "$PACKAGE_VERSION"
1803_ACEOF
1804
1805
1806cat >>confdefs.h <<_ACEOF
1807#define PACKAGE_STRING "$PACKAGE_STRING"
1808_ACEOF
1809
1810
1811cat >>confdefs.h <<_ACEOF
1812#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1813_ACEOF
1814
1815
1816# Let the site file select an alternate cache file if it wants to.
1817# Prefer explicitly selected file to automatically selected ones.
1818if test -n "$CONFIG_SITE"; then
1819  set x "$CONFIG_SITE"
1820elif test "x$prefix" != xNONE; then
1821  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1822else
1823  set x "$ac_default_prefix/share/config.site" \
1824	"$ac_default_prefix/etc/config.site"
1825fi
1826shift
1827for ac_site_file
1828do
1829  if test -r "$ac_site_file"; then
1830    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1831echo "$as_me: loading site script $ac_site_file" >&6;}
1832    sed 's/^/| /' "$ac_site_file" >&5
1833    . "$ac_site_file"
1834  fi
1835done
1836
1837if test -r "$cache_file"; then
1838  # Some versions of bash will fail to source /dev/null (special
1839  # files actually), so we avoid doing that.
1840  if test -f "$cache_file"; then
1841    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1842echo "$as_me: loading cache $cache_file" >&6;}
1843    case $cache_file in
1844      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1845      *)                      . "./$cache_file";;
1846    esac
1847  fi
1848else
1849  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1850echo "$as_me: creating cache $cache_file" >&6;}
1851  >$cache_file
1852fi
1853
1854# Check that the precious variables saved in the cache have kept the same
1855# value.
1856ac_cache_corrupted=false
1857for ac_var in $ac_precious_vars; do
1858  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1859  eval ac_new_set=\$ac_env_${ac_var}_set
1860  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1861  eval ac_new_val=\$ac_env_${ac_var}_value
1862  case $ac_old_set,$ac_new_set in
1863    set,)
1864      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1865echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1866      ac_cache_corrupted=: ;;
1867    ,set)
1868      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1869echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1870      ac_cache_corrupted=: ;;
1871    ,);;
1872    *)
1873      if test "x$ac_old_val" != "x$ac_new_val"; then
1874	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1875echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1876	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1877echo "$as_me:   former value:  $ac_old_val" >&2;}
1878	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1879echo "$as_me:   current value: $ac_new_val" >&2;}
1880	ac_cache_corrupted=:
1881      fi;;
1882  esac
1883  # Pass precious variables to config.status.
1884  if test "$ac_new_set" = set; then
1885    case $ac_new_val in
1886    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1887    *) ac_arg=$ac_var=$ac_new_val ;;
1888    esac
1889    case " $ac_configure_args " in
1890      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1891      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1892    esac
1893  fi
1894done
1895if $ac_cache_corrupted; then
1896  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1897echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1898  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1899echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1900   { (exit 1); exit 1; }; }
1901fi
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927ac_ext=c
1928ac_cpp='$CPP $CPPFLAGS'
1929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1931ac_compiler_gnu=$ac_cv_c_compiler_gnu
1932
1933
1934
1935am__api_version="1.9"
1936ac_aux_dir=
1937for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1938  if test -f "$ac_dir/install-sh"; then
1939    ac_aux_dir=$ac_dir
1940    ac_install_sh="$ac_aux_dir/install-sh -c"
1941    break
1942  elif test -f "$ac_dir/install.sh"; then
1943    ac_aux_dir=$ac_dir
1944    ac_install_sh="$ac_aux_dir/install.sh -c"
1945    break
1946  elif test -f "$ac_dir/shtool"; then
1947    ac_aux_dir=$ac_dir
1948    ac_install_sh="$ac_aux_dir/shtool install -c"
1949    break
1950  fi
1951done
1952if test -z "$ac_aux_dir"; then
1953  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1954echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1955   { (exit 1); exit 1; }; }
1956fi
1957
1958# These three variables are undocumented and unsupported,
1959# and are intended to be withdrawn in a future Autoconf release.
1960# They can cause serious problems if a builder's source tree is in a directory
1961# whose full name contains unusual characters.
1962ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1963ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1964ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1965
1966
1967# Find a good install program.  We prefer a C program (faster),
1968# so one script is as good as another.  But avoid the broken or
1969# incompatible versions:
1970# SysV /etc/install, /usr/sbin/install
1971# SunOS /usr/etc/install
1972# IRIX /sbin/install
1973# AIX /bin/install
1974# AmigaOS /C/install, which installs bootblocks on floppy discs
1975# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1976# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1977# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1978# OS/2's system install, which has a completely different semantic
1979# ./install, which can be erroneously created by make from ./install.sh.
1980{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1981echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1982if test -z "$INSTALL"; then
1983if test "${ac_cv_path_install+set}" = set; then
1984  echo $ECHO_N "(cached) $ECHO_C" >&6
1985else
1986  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987for as_dir in $PATH
1988do
1989  IFS=$as_save_IFS
1990  test -z "$as_dir" && as_dir=.
1991  # Account for people who put trailing slashes in PATH elements.
1992case $as_dir/ in
1993  ./ | .// | /cC/* | \
1994  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1995  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1996  /usr/ucb/* ) ;;
1997  *)
1998    # OSF1 and SCO ODT 3.0 have their own names for install.
1999    # Don't use installbsd from OSF since it installs stuff as root
2000    # by default.
2001    for ac_prog in ginstall scoinst install; do
2002      for ac_exec_ext in '' $ac_executable_extensions; do
2003	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2004	  if test $ac_prog = install &&
2005	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2006	    # AIX install.  It has an incompatible calling convention.
2007	    :
2008	  elif test $ac_prog = install &&
2009	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2010	    # program-specific install script used by HP pwplus--don't use.
2011	    :
2012	  else
2013	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2014	    break 3
2015	  fi
2016	fi
2017      done
2018    done
2019    ;;
2020esac
2021done
2022IFS=$as_save_IFS
2023
2024
2025fi
2026  if test "${ac_cv_path_install+set}" = set; then
2027    INSTALL=$ac_cv_path_install
2028  else
2029    # As a last resort, use the slow shell script.  Don't cache a
2030    # value for INSTALL within a source directory, because that will
2031    # break other packages using the cache if that directory is
2032    # removed, or if the value is a relative name.
2033    INSTALL=$ac_install_sh
2034  fi
2035fi
2036{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2037echo "${ECHO_T}$INSTALL" >&6; }
2038
2039# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2040# It thinks the first close brace ends the variable substitution.
2041test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2042
2043test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2044
2045test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2046
2047{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2048echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2049# Just in case
2050sleep 1
2051echo timestamp > conftest.file
2052# Do `set' in a subshell so we don't clobber the current shell's
2053# arguments.  Must try -L first in case configure is actually a
2054# symlink; some systems play weird games with the mod time of symlinks
2055# (eg FreeBSD returns the mod time of the symlink's containing
2056# directory).
2057if (
2058   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2059   if test "$*" = "X"; then
2060      # -L didn't work.
2061      set X `ls -t $srcdir/configure conftest.file`
2062   fi
2063   rm -f conftest.file
2064   if test "$*" != "X $srcdir/configure conftest.file" \
2065      && test "$*" != "X conftest.file $srcdir/configure"; then
2066
2067      # If neither matched, then we have a broken ls.  This can happen
2068      # if, for instance, CONFIG_SHELL is bash and it inherits a
2069      # broken ls alias from the environment.  This has actually
2070      # happened.  Such a system could not be considered "sane".
2071      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2072alias in your environment" >&5
2073echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2074alias in your environment" >&2;}
2075   { (exit 1); exit 1; }; }
2076   fi
2077
2078   test "$2" = conftest.file
2079   )
2080then
2081   # Ok.
2082   :
2083else
2084   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2085Check your system clock" >&5
2086echo "$as_me: error: newly created file is older than distributed files!
2087Check your system clock" >&2;}
2088   { (exit 1); exit 1; }; }
2089fi
2090{ echo "$as_me:$LINENO: result: yes" >&5
2091echo "${ECHO_T}yes" >&6; }
2092test "$program_prefix" != NONE &&
2093  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2094# Use a double $ so make ignores it.
2095test "$program_suffix" != NONE &&
2096  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2097# Double any \ or $.  echo might interpret backslashes.
2098# By default was `s,x,x', remove it if useless.
2099cat <<\_ACEOF >conftest.sed
2100s/[\\$]/&&/g;s/;s,x,x,$//
2101_ACEOF
2102program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2103rm -f conftest.sed
2104
2105# expand $ac_aux_dir to an absolute path
2106am_aux_dir=`cd $ac_aux_dir && pwd`
2107
2108test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2109# Use eval to expand $SHELL
2110if eval "$MISSING --run true"; then
2111  am_missing_run="$MISSING --run "
2112else
2113  am_missing_run=
2114  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2115echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2116fi
2117
2118if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2119  # We used to keeping the `.' as first argument, in order to
2120  # allow $(mkdir_p) to be used without argument.  As in
2121  #   $(mkdir_p) $(somedir)
2122  # where $(somedir) is conditionally defined.  However this is wrong
2123  # for two reasons:
2124  #  1. if the package is installed by a user who cannot write `.'
2125  #     make install will fail,
2126  #  2. the above comment should most certainly read
2127  #     $(mkdir_p) $(DESTDIR)$(somedir)
2128  #     so it does not work when $(somedir) is undefined and
2129  #     $(DESTDIR) is not.
2130  #  To support the latter case, we have to write
2131  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2132  #  so the `.' trick is pointless.
2133  mkdir_p='mkdir -p --'
2134else
2135  # On NextStep and OpenStep, the `mkdir' command does not
2136  # recognize any option.  It will interpret all options as
2137  # directories to create, and then abort because `.' already
2138  # exists.
2139  for d in ./-p ./--version;
2140  do
2141    test -d $d && rmdir $d
2142  done
2143  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2144  if test -f "$ac_aux_dir/mkinstalldirs"; then
2145    mkdir_p='$(mkinstalldirs)'
2146  else
2147    mkdir_p='$(install_sh) -d'
2148  fi
2149fi
2150
2151for ac_prog in gawk mawk nawk awk
2152do
2153  # Extract the first word of "$ac_prog", so it can be a program name with args.
2154set dummy $ac_prog; ac_word=$2
2155{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2157if test "${ac_cv_prog_AWK+set}" = set; then
2158  echo $ECHO_N "(cached) $ECHO_C" >&6
2159else
2160  if test -n "$AWK"; then
2161  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2162else
2163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164for as_dir in $PATH
2165do
2166  IFS=$as_save_IFS
2167  test -z "$as_dir" && as_dir=.
2168  for ac_exec_ext in '' $ac_executable_extensions; do
2169  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2170    ac_cv_prog_AWK="$ac_prog"
2171    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172    break 2
2173  fi
2174done
2175done
2176IFS=$as_save_IFS
2177
2178fi
2179fi
2180AWK=$ac_cv_prog_AWK
2181if test -n "$AWK"; then
2182  { echo "$as_me:$LINENO: result: $AWK" >&5
2183echo "${ECHO_T}$AWK" >&6; }
2184else
2185  { echo "$as_me:$LINENO: result: no" >&5
2186echo "${ECHO_T}no" >&6; }
2187fi
2188
2189
2190  test -n "$AWK" && break
2191done
2192
2193{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2194echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2195set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2196if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2197  echo $ECHO_N "(cached) $ECHO_C" >&6
2198else
2199  cat >conftest.make <<\_ACEOF
2200SHELL = /bin/sh
2201all:
2202	@echo '@@@%%%=$(MAKE)=@@@%%%'
2203_ACEOF
2204# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2205case `${MAKE-make} -f conftest.make 2>/dev/null` in
2206  *@@@%%%=?*=@@@%%%*)
2207    eval ac_cv_prog_make_${ac_make}_set=yes;;
2208  *)
2209    eval ac_cv_prog_make_${ac_make}_set=no;;
2210esac
2211rm -f conftest.make
2212fi
2213if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2214  { echo "$as_me:$LINENO: result: yes" >&5
2215echo "${ECHO_T}yes" >&6; }
2216  SET_MAKE=
2217else
2218  { echo "$as_me:$LINENO: result: no" >&5
2219echo "${ECHO_T}no" >&6; }
2220  SET_MAKE="MAKE=${MAKE-make}"
2221fi
2222
2223rm -rf .tst 2>/dev/null
2224mkdir .tst 2>/dev/null
2225if test -d .tst; then
2226  am__leading_dot=.
2227else
2228  am__leading_dot=_
2229fi
2230rmdir .tst 2>/dev/null
2231
2232# test to see if srcdir already configured
2233if test "`cd $srcdir && pwd`" != "`pwd`" &&
2234   test -f $srcdir/config.status; then
2235  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2236echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2237   { (exit 1); exit 1; }; }
2238fi
2239
2240# test whether we have cygpath
2241if test -z "$CYGPATH_W"; then
2242  if (cygpath --version) >/dev/null 2>/dev/null; then
2243    CYGPATH_W='cygpath -w'
2244  else
2245    CYGPATH_W=echo
2246  fi
2247fi
2248
2249
2250# Define the identity of the package.
2251 PACKAGE='dbixx'
2252 VERSION='0.0.4'
2253
2254
2255cat >>confdefs.h <<_ACEOF
2256#define PACKAGE "$PACKAGE"
2257_ACEOF
2258
2259
2260cat >>confdefs.h <<_ACEOF
2261#define VERSION "$VERSION"
2262_ACEOF
2263
2264# Some tools Automake needs.
2265
2266ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2267
2268
2269AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2270
2271
2272AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2273
2274
2275AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2276
2277
2278MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2279
2280install_sh=${install_sh-"$am_aux_dir/install-sh"}
2281
2282# Installed binaries are usually stripped using `strip' when the user
2283# run `make install-strip'.  However `strip' might not be the right
2284# tool to use in cross-compilation environments, therefore Automake
2285# will honor the `STRIP' environment variable to overrule this program.
2286if test "$cross_compiling" != no; then
2287  if test -n "$ac_tool_prefix"; then
2288  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2289set dummy ${ac_tool_prefix}strip; ac_word=$2
2290{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2292if test "${ac_cv_prog_STRIP+set}" = set; then
2293  echo $ECHO_N "(cached) $ECHO_C" >&6
2294else
2295  if test -n "$STRIP"; then
2296  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2297else
2298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299for as_dir in $PATH
2300do
2301  IFS=$as_save_IFS
2302  test -z "$as_dir" && as_dir=.
2303  for ac_exec_ext in '' $ac_executable_extensions; do
2304  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2305    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2306    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307    break 2
2308  fi
2309done
2310done
2311IFS=$as_save_IFS
2312
2313fi
2314fi
2315STRIP=$ac_cv_prog_STRIP
2316if test -n "$STRIP"; then
2317  { echo "$as_me:$LINENO: result: $STRIP" >&5
2318echo "${ECHO_T}$STRIP" >&6; }
2319else
2320  { echo "$as_me:$LINENO: result: no" >&5
2321echo "${ECHO_T}no" >&6; }
2322fi
2323
2324
2325fi
2326if test -z "$ac_cv_prog_STRIP"; then
2327  ac_ct_STRIP=$STRIP
2328  # Extract the first word of "strip", so it can be a program name with args.
2329set dummy strip; ac_word=$2
2330{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2332if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2333  echo $ECHO_N "(cached) $ECHO_C" >&6
2334else
2335  if test -n "$ac_ct_STRIP"; then
2336  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2337else
2338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339for as_dir in $PATH
2340do
2341  IFS=$as_save_IFS
2342  test -z "$as_dir" && as_dir=.
2343  for ac_exec_ext in '' $ac_executable_extensions; do
2344  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2345    ac_cv_prog_ac_ct_STRIP="strip"
2346    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2347    break 2
2348  fi
2349done
2350done
2351IFS=$as_save_IFS
2352
2353fi
2354fi
2355ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2356if test -n "$ac_ct_STRIP"; then
2357  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2358echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2359else
2360  { echo "$as_me:$LINENO: result: no" >&5
2361echo "${ECHO_T}no" >&6; }
2362fi
2363
2364  if test "x$ac_ct_STRIP" = x; then
2365    STRIP=":"
2366  else
2367    case $cross_compiling:$ac_tool_warned in
2368yes:)
2369{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2370whose name does not start with the host triplet.  If you think this
2371configuration is useful to you, please write to autoconf@gnu.org." >&5
2372echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2373whose name does not start with the host triplet.  If you think this
2374configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2375ac_tool_warned=yes ;;
2376esac
2377    STRIP=$ac_ct_STRIP
2378  fi
2379else
2380  STRIP="$ac_cv_prog_STRIP"
2381fi
2382
2383fi
2384INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2385
2386# We need awk for the "check" target.  The system "awk" is bad on
2387# some platforms.
2388# Always define AMTAR for backward compatibility.
2389
2390AMTAR=${AMTAR-"${am_missing_run}tar"}
2391
2392am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2393
2394
2395
2396
2397
2398
2399ac_ext=cpp
2400ac_cpp='$CXXCPP $CPPFLAGS'
2401ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2402ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2403ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2404if test -z "$CXX"; then
2405  if test -n "$CCC"; then
2406    CXX=$CCC
2407  else
2408    if test -n "$ac_tool_prefix"; then
2409  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2410  do
2411    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2412set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2413{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2415if test "${ac_cv_prog_CXX+set}" = set; then
2416  echo $ECHO_N "(cached) $ECHO_C" >&6
2417else
2418  if test -n "$CXX"; then
2419  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2420else
2421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422for as_dir in $PATH
2423do
2424  IFS=$as_save_IFS
2425  test -z "$as_dir" && as_dir=.
2426  for ac_exec_ext in '' $ac_executable_extensions; do
2427  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2428    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2429    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430    break 2
2431  fi
2432done
2433done
2434IFS=$as_save_IFS
2435
2436fi
2437fi
2438CXX=$ac_cv_prog_CXX
2439if test -n "$CXX"; then
2440  { echo "$as_me:$LINENO: result: $CXX" >&5
2441echo "${ECHO_T}$CXX" >&6; }
2442else
2443  { echo "$as_me:$LINENO: result: no" >&5
2444echo "${ECHO_T}no" >&6; }
2445fi
2446
2447
2448    test -n "$CXX" && break
2449  done
2450fi
2451if test -z "$CXX"; then
2452  ac_ct_CXX=$CXX
2453  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2454do
2455  # Extract the first word of "$ac_prog", so it can be a program name with args.
2456set dummy $ac_prog; ac_word=$2
2457{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2459if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2460  echo $ECHO_N "(cached) $ECHO_C" >&6
2461else
2462  if test -n "$ac_ct_CXX"; then
2463  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2464else
2465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466for as_dir in $PATH
2467do
2468  IFS=$as_save_IFS
2469  test -z "$as_dir" && as_dir=.
2470  for ac_exec_ext in '' $ac_executable_extensions; do
2471  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2472    ac_cv_prog_ac_ct_CXX="$ac_prog"
2473    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474    break 2
2475  fi
2476done
2477done
2478IFS=$as_save_IFS
2479
2480fi
2481fi
2482ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2483if test -n "$ac_ct_CXX"; then
2484  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2485echo "${ECHO_T}$ac_ct_CXX" >&6; }
2486else
2487  { echo "$as_me:$LINENO: result: no" >&5
2488echo "${ECHO_T}no" >&6; }
2489fi
2490
2491
2492  test -n "$ac_ct_CXX" && break
2493done
2494
2495  if test "x$ac_ct_CXX" = x; then
2496    CXX="g++"
2497  else
2498    case $cross_compiling:$ac_tool_warned in
2499yes:)
2500{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2501whose name does not start with the host triplet.  If you think this
2502configuration is useful to you, please write to autoconf@gnu.org." >&5
2503echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2504whose name does not start with the host triplet.  If you think this
2505configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2506ac_tool_warned=yes ;;
2507esac
2508    CXX=$ac_ct_CXX
2509  fi
2510fi
2511
2512  fi
2513fi
2514# Provide some information about the compiler.
2515echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2516ac_compiler=`set X $ac_compile; echo $2`
2517{ (ac_try="$ac_compiler --version >&5"
2518case "(($ac_try" in
2519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520  *) ac_try_echo=$ac_try;;
2521esac
2522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523  (eval "$ac_compiler --version >&5") 2>&5
2524  ac_status=$?
2525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526  (exit $ac_status); }
2527{ (ac_try="$ac_compiler -v >&5"
2528case "(($ac_try" in
2529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530  *) ac_try_echo=$ac_try;;
2531esac
2532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533  (eval "$ac_compiler -v >&5") 2>&5
2534  ac_status=$?
2535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536  (exit $ac_status); }
2537{ (ac_try="$ac_compiler -V >&5"
2538case "(($ac_try" in
2539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540  *) ac_try_echo=$ac_try;;
2541esac
2542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543  (eval "$ac_compiler -V >&5") 2>&5
2544  ac_status=$?
2545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546  (exit $ac_status); }
2547
2548cat >conftest.$ac_ext <<_ACEOF
2549/* confdefs.h.  */
2550_ACEOF
2551cat confdefs.h >>conftest.$ac_ext
2552cat >>conftest.$ac_ext <<_ACEOF
2553/* end confdefs.h.  */
2554
2555int
2556main ()
2557{
2558
2559  ;
2560  return 0;
2561}
2562_ACEOF
2563ac_clean_files_save=$ac_clean_files
2564ac_clean_files="$ac_clean_files a.out a.exe b.out"
2565# Try to create an executable without -o first, disregard a.out.
2566# It will help us diagnose broken compilers, and finding out an intuition
2567# of exeext.
2568{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2569echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2570ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2571#
2572# List of possible output files, starting from the most likely.
2573# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2574# only as a last resort.  b.out is created by i960 compilers.
2575ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2576#
2577# The IRIX 6 linker writes into existing files which may not be
2578# executable, retaining their permissions.  Remove them first so a
2579# subsequent execution test works.
2580ac_rmfiles=
2581for ac_file in $ac_files
2582do
2583  case $ac_file in
2584    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2585    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2586  esac
2587done
2588rm -f $ac_rmfiles
2589
2590if { (ac_try="$ac_link_default"
2591case "(($ac_try" in
2592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593  *) ac_try_echo=$ac_try;;
2594esac
2595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596  (eval "$ac_link_default") 2>&5
2597  ac_status=$?
2598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599  (exit $ac_status); }; then
2600  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2601# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2602# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2603# so that the user can short-circuit this test for compilers unknown to
2604# Autoconf.
2605for ac_file in $ac_files ''
2606do
2607  test -f "$ac_file" || continue
2608  case $ac_file in
2609    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2610	;;
2611    [ab].out )
2612	# We found the default executable, but exeext='' is most
2613	# certainly right.
2614	break;;
2615    *.* )
2616        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2617	then :; else
2618	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2619	fi
2620	# We set ac_cv_exeext here because the later test for it is not
2621	# safe: cross compilers may not add the suffix if given an `-o'
2622	# argument, so we may need to know it at that point already.
2623	# Even if this section looks crufty: it has the advantage of
2624	# actually working.
2625	break;;
2626    * )
2627	break;;
2628  esac
2629done
2630test "$ac_cv_exeext" = no && ac_cv_exeext=
2631
2632else
2633  ac_file=''
2634fi
2635
2636{ echo "$as_me:$LINENO: result: $ac_file" >&5
2637echo "${ECHO_T}$ac_file" >&6; }
2638if test -z "$ac_file"; then
2639  echo "$as_me: failed program was:" >&5
2640sed 's/^/| /' conftest.$ac_ext >&5
2641
2642{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2643See \`config.log' for more details." >&5
2644echo "$as_me: error: C++ compiler cannot create executables
2645See \`config.log' for more details." >&2;}
2646   { (exit 77); exit 77; }; }
2647fi
2648
2649ac_exeext=$ac_cv_exeext
2650
2651# Check that the compiler produces executables we can run.  If not, either
2652# the compiler is broken, or we cross compile.
2653{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2654echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2655# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2656# If not cross compiling, check that we can run a simple program.
2657if test "$cross_compiling" != yes; then
2658  if { ac_try='./$ac_file'
2659  { (case "(($ac_try" in
2660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661  *) ac_try_echo=$ac_try;;
2662esac
2663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664  (eval "$ac_try") 2>&5
2665  ac_status=$?
2666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667  (exit $ac_status); }; }; then
2668    cross_compiling=no
2669  else
2670    if test "$cross_compiling" = maybe; then
2671	cross_compiling=yes
2672    else
2673	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2674If you meant to cross compile, use \`--host'.
2675See \`config.log' for more details." >&5
2676echo "$as_me: error: cannot run C++ compiled programs.
2677If you meant to cross compile, use \`--host'.
2678See \`config.log' for more details." >&2;}
2679   { (exit 1); exit 1; }; }
2680    fi
2681  fi
2682fi
2683{ echo "$as_me:$LINENO: result: yes" >&5
2684echo "${ECHO_T}yes" >&6; }
2685
2686rm -f a.out a.exe conftest$ac_cv_exeext b.out
2687ac_clean_files=$ac_clean_files_save
2688# Check that the compiler produces executables we can run.  If not, either
2689# the compiler is broken, or we cross compile.
2690{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2691echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2692{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2693echo "${ECHO_T}$cross_compiling" >&6; }
2694
2695{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2696echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2697if { (ac_try="$ac_link"
2698case "(($ac_try" in
2699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700  *) ac_try_echo=$ac_try;;
2701esac
2702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703  (eval "$ac_link") 2>&5
2704  ac_status=$?
2705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706  (exit $ac_status); }; then
2707  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2708# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2709# work properly (i.e., refer to `conftest.exe'), while it won't with
2710# `rm'.
2711for ac_file in conftest.exe conftest conftest.*; do
2712  test -f "$ac_file" || continue
2713  case $ac_file in
2714    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2715    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2716	  break;;
2717    * ) break;;
2718  esac
2719done
2720else
2721  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2722See \`config.log' for more details." >&5
2723echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2724See \`config.log' for more details." >&2;}
2725   { (exit 1); exit 1; }; }
2726fi
2727
2728rm -f conftest$ac_cv_exeext
2729{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2730echo "${ECHO_T}$ac_cv_exeext" >&6; }
2731
2732rm -f conftest.$ac_ext
2733EXEEXT=$ac_cv_exeext
2734ac_exeext=$EXEEXT
2735{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2736echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2737if test "${ac_cv_objext+set}" = set; then
2738  echo $ECHO_N "(cached) $ECHO_C" >&6
2739else
2740  cat >conftest.$ac_ext <<_ACEOF
2741/* confdefs.h.  */
2742_ACEOF
2743cat confdefs.h >>conftest.$ac_ext
2744cat >>conftest.$ac_ext <<_ACEOF
2745/* end confdefs.h.  */
2746
2747int
2748main ()
2749{
2750
2751  ;
2752  return 0;
2753}
2754_ACEOF
2755rm -f conftest.o conftest.obj
2756if { (ac_try="$ac_compile"
2757case "(($ac_try" in
2758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759  *) ac_try_echo=$ac_try;;
2760esac
2761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762  (eval "$ac_compile") 2>&5
2763  ac_status=$?
2764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765  (exit $ac_status); }; then
2766  for ac_file in conftest.o conftest.obj conftest.*; do
2767  test -f "$ac_file" || continue;
2768  case $ac_file in
2769    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2770    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2771       break;;
2772  esac
2773done
2774else
2775  echo "$as_me: failed program was:" >&5
2776sed 's/^/| /' conftest.$ac_ext >&5
2777
2778{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2779See \`config.log' for more details." >&5
2780echo "$as_me: error: cannot compute suffix of object files: cannot compile
2781See \`config.log' for more details." >&2;}
2782   { (exit 1); exit 1; }; }
2783fi
2784
2785rm -f conftest.$ac_cv_objext conftest.$ac_ext
2786fi
2787{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2788echo "${ECHO_T}$ac_cv_objext" >&6; }
2789OBJEXT=$ac_cv_objext
2790ac_objext=$OBJEXT
2791{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2792echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2793if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2794  echo $ECHO_N "(cached) $ECHO_C" >&6
2795else
2796  cat >conftest.$ac_ext <<_ACEOF
2797/* confdefs.h.  */
2798_ACEOF
2799cat confdefs.h >>conftest.$ac_ext
2800cat >>conftest.$ac_ext <<_ACEOF
2801/* end confdefs.h.  */
2802
2803int
2804main ()
2805{
2806#ifndef __GNUC__
2807       choke me
2808#endif
2809
2810  ;
2811  return 0;
2812}
2813_ACEOF
2814rm -f conftest.$ac_objext
2815if { (ac_try="$ac_compile"
2816case "(($ac_try" in
2817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818  *) ac_try_echo=$ac_try;;
2819esac
2820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821  (eval "$ac_compile") 2>conftest.er1
2822  ac_status=$?
2823  grep -v '^ *+' conftest.er1 >conftest.err
2824  rm -f conftest.er1
2825  cat conftest.err >&5
2826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827  (exit $ac_status); } && {
2828	 test -z "$ac_cxx_werror_flag" ||
2829	 test ! -s conftest.err
2830       } && test -s conftest.$ac_objext; then
2831  ac_compiler_gnu=yes
2832else
2833  echo "$as_me: failed program was:" >&5
2834sed 's/^/| /' conftest.$ac_ext >&5
2835
2836	ac_compiler_gnu=no
2837fi
2838
2839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2841
2842fi
2843{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2844echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2845GXX=`test $ac_compiler_gnu = yes && echo yes`
2846ac_test_CXXFLAGS=${CXXFLAGS+set}
2847ac_save_CXXFLAGS=$CXXFLAGS
2848{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2849echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2850if test "${ac_cv_prog_cxx_g+set}" = set; then
2851  echo $ECHO_N "(cached) $ECHO_C" >&6
2852else
2853  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2854   ac_cxx_werror_flag=yes
2855   ac_cv_prog_cxx_g=no
2856   CXXFLAGS="-g"
2857   cat >conftest.$ac_ext <<_ACEOF
2858/* confdefs.h.  */
2859_ACEOF
2860cat confdefs.h >>conftest.$ac_ext
2861cat >>conftest.$ac_ext <<_ACEOF
2862/* end confdefs.h.  */
2863
2864int
2865main ()
2866{
2867
2868  ;
2869  return 0;
2870}
2871_ACEOF
2872rm -f conftest.$ac_objext
2873if { (ac_try="$ac_compile"
2874case "(($ac_try" in
2875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876  *) ac_try_echo=$ac_try;;
2877esac
2878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879  (eval "$ac_compile") 2>conftest.er1
2880  ac_status=$?
2881  grep -v '^ *+' conftest.er1 >conftest.err
2882  rm -f conftest.er1
2883  cat conftest.err >&5
2884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885  (exit $ac_status); } && {
2886	 test -z "$ac_cxx_werror_flag" ||
2887	 test ! -s conftest.err
2888       } && test -s conftest.$ac_objext; then
2889  ac_cv_prog_cxx_g=yes
2890else
2891  echo "$as_me: failed program was:" >&5
2892sed 's/^/| /' conftest.$ac_ext >&5
2893
2894	CXXFLAGS=""
2895      cat >conftest.$ac_ext <<_ACEOF
2896/* confdefs.h.  */
2897_ACEOF
2898cat confdefs.h >>conftest.$ac_ext
2899cat >>conftest.$ac_ext <<_ACEOF
2900/* end confdefs.h.  */
2901
2902int
2903main ()
2904{
2905
2906  ;
2907  return 0;
2908}
2909_ACEOF
2910rm -f conftest.$ac_objext
2911if { (ac_try="$ac_compile"
2912case "(($ac_try" in
2913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914  *) ac_try_echo=$ac_try;;
2915esac
2916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917  (eval "$ac_compile") 2>conftest.er1
2918  ac_status=$?
2919  grep -v '^ *+' conftest.er1 >conftest.err
2920  rm -f conftest.er1
2921  cat conftest.err >&5
2922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923  (exit $ac_status); } && {
2924	 test -z "$ac_cxx_werror_flag" ||
2925	 test ! -s conftest.err
2926       } && test -s conftest.$ac_objext; then
2927  :
2928else
2929  echo "$as_me: failed program was:" >&5
2930sed 's/^/| /' conftest.$ac_ext >&5
2931
2932	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2933	 CXXFLAGS="-g"
2934	 cat >conftest.$ac_ext <<_ACEOF
2935/* confdefs.h.  */
2936_ACEOF
2937cat confdefs.h >>conftest.$ac_ext
2938cat >>conftest.$ac_ext <<_ACEOF
2939/* end confdefs.h.  */
2940
2941int
2942main ()
2943{
2944
2945  ;
2946  return 0;
2947}
2948_ACEOF
2949rm -f conftest.$ac_objext
2950if { (ac_try="$ac_compile"
2951case "(($ac_try" in
2952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953  *) ac_try_echo=$ac_try;;
2954esac
2955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956  (eval "$ac_compile") 2>conftest.er1
2957  ac_status=$?
2958  grep -v '^ *+' conftest.er1 >conftest.err
2959  rm -f conftest.er1
2960  cat conftest.err >&5
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); } && {
2963	 test -z "$ac_cxx_werror_flag" ||
2964	 test ! -s conftest.err
2965       } && test -s conftest.$ac_objext; then
2966  ac_cv_prog_cxx_g=yes
2967else
2968  echo "$as_me: failed program was:" >&5
2969sed 's/^/| /' conftest.$ac_ext >&5
2970
2971
2972fi
2973
2974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2975fi
2976
2977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978fi
2979
2980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2981   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2982fi
2983{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2984echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2985if test "$ac_test_CXXFLAGS" = set; then
2986  CXXFLAGS=$ac_save_CXXFLAGS
2987elif test $ac_cv_prog_cxx_g = yes; then
2988  if test "$GXX" = yes; then
2989    CXXFLAGS="-g -O2"
2990  else
2991    CXXFLAGS="-g"
2992  fi
2993else
2994  if test "$GXX" = yes; then
2995    CXXFLAGS="-O2"
2996  else
2997    CXXFLAGS=
2998  fi
2999fi
3000ac_ext=c
3001ac_cpp='$CPP $CPPFLAGS'
3002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3004ac_compiler_gnu=$ac_cv_c_compiler_gnu
3005DEPDIR="${am__leading_dot}deps"
3006
3007ac_config_commands="$ac_config_commands depfiles"
3008
3009
3010am_make=${MAKE-make}
3011cat > confinc << 'END'
3012am__doit:
3013	@echo done
3014.PHONY: am__doit
3015END
3016# If we don't find an include directive, just comment out the code.
3017{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3018echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3019am__include="#"
3020am__quote=
3021_am_result=none
3022# First try GNU make style include.
3023echo "include confinc" > confmf
3024# We grep out `Entering directory' and `Leaving directory'
3025# messages which can occur if `w' ends up in MAKEFLAGS.
3026# In particular we don't look at `^make:' because GNU make might
3027# be invoked under some other name (usually "gmake"), in which
3028# case it prints its new name instead of `make'.
3029if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3030   am__include=include
3031   am__quote=
3032   _am_result=GNU
3033fi
3034# Now try BSD make style include.
3035if test "$am__include" = "#"; then
3036   echo '.include "confinc"' > confmf
3037   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3038      am__include=.include
3039      am__quote="\""
3040      _am_result=BSD
3041   fi
3042fi
3043
3044
3045{ echo "$as_me:$LINENO: result: $_am_result" >&5
3046echo "${ECHO_T}$_am_result" >&6; }
3047rm -f confinc confmf
3048
3049# Check whether --enable-dependency-tracking was given.
3050if test "${enable_dependency_tracking+set}" = set; then
3051  enableval=$enable_dependency_tracking;
3052fi
3053
3054if test "x$enable_dependency_tracking" != xno; then
3055  am_depcomp="$ac_aux_dir/depcomp"
3056  AMDEPBACKSLASH='\'
3057fi
3058
3059
3060if test "x$enable_dependency_tracking" != xno; then
3061  AMDEP_TRUE=
3062  AMDEP_FALSE='#'
3063else
3064  AMDEP_TRUE='#'
3065  AMDEP_FALSE=
3066fi
3067
3068
3069
3070
3071depcc="$CXX"  am_compiler_list=
3072
3073{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3074echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3075if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3076  echo $ECHO_N "(cached) $ECHO_C" >&6
3077else
3078  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3079  # We make a subdir and do the tests there.  Otherwise we can end up
3080  # making bogus files that we don't know about and never remove.  For
3081  # instance it was reported that on HP-UX the gcc test will end up
3082  # making a dummy file named `D' -- because `-MD' means `put the output
3083  # in D'.
3084  mkdir conftest.dir
3085  # Copy depcomp to subdir because otherwise we won't find it if we're
3086  # using a relative directory.
3087  cp "$am_depcomp" conftest.dir
3088  cd conftest.dir
3089  # We will build objects and dependencies in a subdirectory because
3090  # it helps to detect inapplicable dependency modes.  For instance
3091  # both Tru64's cc and ICC support -MD to output dependencies as a
3092  # side effect of compilation, but ICC will put the dependencies in
3093  # the current directory while Tru64 will put them in the object
3094  # directory.
3095  mkdir sub
3096
3097  am_cv_CXX_dependencies_compiler_type=none
3098  if test "$am_compiler_list" = ""; then
3099     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3100  fi
3101  for depmode in $am_compiler_list; do
3102    # Setup a source with many dependencies, because some compilers
3103    # like to wrap large dependency lists on column 80 (with \), and
3104    # we should not choose a depcomp mode which is confused by this.
3105    #
3106    # We need to recreate these files for each test, as the compiler may
3107    # overwrite some of them when testing with obscure command lines.
3108    # This happens at least with the AIX C compiler.
3109    : > sub/conftest.c
3110    for i in 1 2 3 4 5 6; do
3111      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3112      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3113      # Solaris 8's {/usr,}/bin/sh.
3114      touch sub/conftst$i.h
3115    done
3116    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3117
3118    case $depmode in
3119    nosideeffect)
3120      # after this tag, mechanisms are not by side-effect, so they'll
3121      # only be used when explicitly requested
3122      if test "x$enable_dependency_tracking" = xyes; then
3123	continue
3124      else
3125	break
3126      fi
3127      ;;
3128    none) break ;;
3129    esac
3130    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3131    # mode.  It turns out that the SunPro C++ compiler does not properly
3132    # handle `-M -o', and we need to detect this.
3133    if depmode=$depmode \
3134       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3135       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3136       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3137         >/dev/null 2>conftest.err &&
3138       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3139       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3140       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3141      # icc doesn't choke on unknown options, it will just issue warnings
3142      # or remarks (even with -Werror).  So we grep stderr for any message
3143      # that says an option was ignored or not supported.
3144      # When given -MP, icc 7.0 and 7.1 complain thusly:
3145      #   icc: Command line warning: ignoring option '-M'; no argument required
3146      # The diagnosis changed in icc 8.0:
3147      #   icc: Command line remark: option '-MP' not supported
3148      if (grep 'ignoring option' conftest.err ||
3149          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3150        am_cv_CXX_dependencies_compiler_type=$depmode
3151        break
3152      fi
3153    fi
3154  done
3155
3156  cd ..
3157  rm -rf conftest.dir
3158else
3159  am_cv_CXX_dependencies_compiler_type=none
3160fi
3161
3162fi
3163{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3164echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3165CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3166
3167
3168
3169if
3170  test "x$enable_dependency_tracking" != xno \
3171  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3172  am__fastdepCXX_TRUE=
3173  am__fastdepCXX_FALSE='#'
3174else
3175  am__fastdepCXX_TRUE='#'
3176  am__fastdepCXX_FALSE=
3177fi
3178
3179
3180# Check whether --enable-shared was given.
3181if test "${enable_shared+set}" = set; then
3182  enableval=$enable_shared; p=${PACKAGE-default}
3183    case $enableval in
3184    yes) enable_shared=yes ;;
3185    no) enable_shared=no ;;
3186    *)
3187      enable_shared=no
3188      # Look at the argument we got.  We use all the common list separators.
3189      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3190      for pkg in $enableval; do
3191	IFS="$lt_save_ifs"
3192	if test "X$pkg" = "X$p"; then
3193	  enable_shared=yes
3194	fi
3195      done
3196      IFS="$lt_save_ifs"
3197      ;;
3198    esac
3199else
3200  enable_shared=yes
3201fi
3202
3203
3204# Check whether --enable-static was given.
3205if test "${enable_static+set}" = set; then
3206  enableval=$enable_static; p=${PACKAGE-default}
3207    case $enableval in
3208    yes) enable_static=yes ;;
3209    no) enable_static=no ;;
3210    *)
3211     enable_static=no
3212      # Look at the argument we got.  We use all the common list separators.
3213      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3214      for pkg in $enableval; do
3215	IFS="$lt_save_ifs"
3216	if test "X$pkg" = "X$p"; then
3217	  enable_static=yes
3218	fi
3219      done
3220      IFS="$lt_save_ifs"
3221      ;;
3222    esac
3223else
3224  enable_static=yes
3225fi
3226
3227
3228# Check whether --enable-fast-install was given.
3229if test "${enable_fast_install+set}" = set; then
3230  enableval=$enable_fast_install; p=${PACKAGE-default}
3231    case $enableval in
3232    yes) enable_fast_install=yes ;;
3233    no) enable_fast_install=no ;;
3234    *)
3235      enable_fast_install=no
3236      # Look at the argument we got.  We use all the common list separators.
3237      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3238      for pkg in $enableval; do
3239	IFS="$lt_save_ifs"
3240	if test "X$pkg" = "X$p"; then
3241	  enable_fast_install=yes
3242	fi
3243      done
3244      IFS="$lt_save_ifs"
3245      ;;
3246    esac
3247else
3248  enable_fast_install=yes
3249fi
3250
3251
3252# Make sure we can run config.sub.
3253$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3254  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3255echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3256   { (exit 1); exit 1; }; }
3257
3258{ echo "$as_me:$LINENO: checking build system type" >&5
3259echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3260if test "${ac_cv_build+set}" = set; then
3261  echo $ECHO_N "(cached) $ECHO_C" >&6
3262else
3263  ac_build_alias=$build_alias
3264test "x$ac_build_alias" = x &&
3265  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3266test "x$ac_build_alias" = x &&
3267  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3268echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3269   { (exit 1); exit 1; }; }
3270ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3271  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3272echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3273   { (exit 1); exit 1; }; }
3274
3275fi
3276{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3277echo "${ECHO_T}$ac_cv_build" >&6; }
3278case $ac_cv_build in
3279*-*-*) ;;
3280*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3281echo "$as_me: error: invalid value of canonical build" >&2;}
3282   { (exit 1); exit 1; }; };;
3283esac
3284build=$ac_cv_build
3285ac_save_IFS=$IFS; IFS='-'
3286set x $ac_cv_build
3287shift
3288build_cpu=$1
3289build_vendor=$2
3290shift; shift
3291# Remember, the first character of IFS is used to create $*,
3292# except with old shells:
3293build_os=$*
3294IFS=$ac_save_IFS
3295case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3296
3297
3298{ echo "$as_me:$LINENO: checking host system type" >&5
3299echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3300if test "${ac_cv_host+set}" = set; then
3301  echo $ECHO_N "(cached) $ECHO_C" >&6
3302else
3303  if test "x$host_alias" = x; then
3304  ac_cv_host=$ac_cv_build
3305else
3306  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3307    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3308echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3309   { (exit 1); exit 1; }; }
3310fi
3311
3312fi
3313{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3314echo "${ECHO_T}$ac_cv_host" >&6; }
3315case $ac_cv_host in
3316*-*-*) ;;
3317*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3318echo "$as_me: error: invalid value of canonical host" >&2;}
3319   { (exit 1); exit 1; }; };;
3320esac
3321host=$ac_cv_host
3322ac_save_IFS=$IFS; IFS='-'
3323set x $ac_cv_host
3324shift
3325host_cpu=$1
3326host_vendor=$2
3327shift; shift
3328# Remember, the first character of IFS is used to create $*,
3329# except with old shells:
3330host_os=$*
3331IFS=$ac_save_IFS
3332case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3333
3334
3335ac_ext=c
3336ac_cpp='$CPP $CPPFLAGS'
3337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339ac_compiler_gnu=$ac_cv_c_compiler_gnu
3340if test -n "$ac_tool_prefix"; then
3341  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3342set dummy ${ac_tool_prefix}gcc; ac_word=$2
3343{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3345if test "${ac_cv_prog_CC+set}" = set; then
3346  echo $ECHO_N "(cached) $ECHO_C" >&6
3347else
3348  if test -n "$CC"; then
3349  ac_cv_prog_CC="$CC" # Let the user override the test.
3350else
3351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352for as_dir in $PATH
3353do
3354  IFS=$as_save_IFS
3355  test -z "$as_dir" && as_dir=.
3356  for ac_exec_ext in '' $ac_executable_extensions; do
3357  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3359    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360    break 2
3361  fi
3362done
3363done
3364IFS=$as_save_IFS
3365
3366fi
3367fi
3368CC=$ac_cv_prog_CC
3369if test -n "$CC"; then
3370  { echo "$as_me:$LINENO: result: $CC" >&5
3371echo "${ECHO_T}$CC" >&6; }
3372else
3373  { echo "$as_me:$LINENO: result: no" >&5
3374echo "${ECHO_T}no" >&6; }
3375fi
3376
3377
3378fi
3379if test -z "$ac_cv_prog_CC"; then
3380  ac_ct_CC=$CC
3381  # Extract the first word of "gcc", so it can be a program name with args.
3382set dummy gcc; ac_word=$2
3383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3385if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3386  echo $ECHO_N "(cached) $ECHO_C" >&6
3387else
3388  if test -n "$ac_ct_CC"; then
3389  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3390else
3391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392for as_dir in $PATH
3393do
3394  IFS=$as_save_IFS
3395  test -z "$as_dir" && as_dir=.
3396  for ac_exec_ext in '' $ac_executable_extensions; do
3397  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3398    ac_cv_prog_ac_ct_CC="gcc"
3399    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3400    break 2
3401  fi
3402done
3403done
3404IFS=$as_save_IFS
3405
3406fi
3407fi
3408ac_ct_CC=$ac_cv_prog_ac_ct_CC
3409if test -n "$ac_ct_CC"; then
3410  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3411echo "${ECHO_T}$ac_ct_CC" >&6; }
3412else
3413  { echo "$as_me:$LINENO: result: no" >&5
3414echo "${ECHO_T}no" >&6; }
3415fi
3416
3417  if test "x$ac_ct_CC" = x; then
3418    CC=""
3419  else
3420    case $cross_compiling:$ac_tool_warned in
3421yes:)
3422{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3423whose name does not start with the host triplet.  If you think this
3424configuration is useful to you, please write to autoconf@gnu.org." >&5
3425echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3426whose name does not start with the host triplet.  If you think this
3427configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3428ac_tool_warned=yes ;;
3429esac
3430    CC=$ac_ct_CC
3431  fi
3432else
3433  CC="$ac_cv_prog_CC"
3434fi
3435
3436if test -z "$CC"; then
3437          if test -n "$ac_tool_prefix"; then
3438    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3439set dummy ${ac_tool_prefix}cc; ac_word=$2
3440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3442if test "${ac_cv_prog_CC+set}" = set; then
3443  echo $ECHO_N "(cached) $ECHO_C" >&6
3444else
3445  if test -n "$CC"; then
3446  ac_cv_prog_CC="$CC" # Let the user override the test.
3447else
3448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449for as_dir in $PATH
3450do
3451  IFS=$as_save_IFS
3452  test -z "$as_dir" && as_dir=.
3453  for ac_exec_ext in '' $ac_executable_extensions; do
3454  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455    ac_cv_prog_CC="${ac_tool_prefix}cc"
3456    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3457    break 2
3458  fi
3459done
3460done
3461IFS=$as_save_IFS
3462
3463fi
3464fi
3465CC=$ac_cv_prog_CC
3466if test -n "$CC"; then
3467  { echo "$as_me:$LINENO: result: $CC" >&5
3468echo "${ECHO_T}$CC" >&6; }
3469else
3470  { echo "$as_me:$LINENO: result: no" >&5
3471echo "${ECHO_T}no" >&6; }
3472fi
3473
3474
3475  fi
3476fi
3477if test -z "$CC"; then
3478  # Extract the first word of "cc", so it can be a program name with args.
3479set dummy cc; ac_word=$2
3480{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3482if test "${ac_cv_prog_CC+set}" = set; then
3483  echo $ECHO_N "(cached) $ECHO_C" >&6
3484else
3485  if test -n "$CC"; then
3486  ac_cv_prog_CC="$CC" # Let the user override the test.
3487else
3488  ac_prog_rejected=no
3489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490for as_dir in $PATH
3491do
3492  IFS=$as_save_IFS
3493  test -z "$as_dir" && as_dir=.
3494  for ac_exec_ext in '' $ac_executable_extensions; do
3495  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3497       ac_prog_rejected=yes
3498       continue
3499     fi
3500    ac_cv_prog_CC="cc"
3501    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3502    break 2
3503  fi
3504done
3505done
3506IFS=$as_save_IFS
3507
3508if test $ac_prog_rejected = yes; then
3509  # We found a bogon in the path, so make sure we never use it.
3510  set dummy $ac_cv_prog_CC
3511  shift
3512  if test $# != 0; then
3513    # We chose a different compiler from the bogus one.
3514    # However, it has the same basename, so the bogon will be chosen
3515    # first if we set CC to just the basename; use the full file name.
3516    shift
3517    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3518  fi
3519fi
3520fi
3521fi
3522CC=$ac_cv_prog_CC
3523if test -n "$CC"; then
3524  { echo "$as_me:$LINENO: result: $CC" >&5
3525echo "${ECHO_T}$CC" >&6; }
3526else
3527  { echo "$as_me:$LINENO: result: no" >&5
3528echo "${ECHO_T}no" >&6; }
3529fi
3530
3531
3532fi
3533if test -z "$CC"; then
3534  if test -n "$ac_tool_prefix"; then
3535  for ac_prog in cl.exe
3536  do
3537    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3538set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3539{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3541if test "${ac_cv_prog_CC+set}" = set; then
3542  echo $ECHO_N "(cached) $ECHO_C" >&6
3543else
3544  if test -n "$CC"; then
3545  ac_cv_prog_CC="$CC" # Let the user override the test.
3546else
3547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548for as_dir in $PATH
3549do
3550  IFS=$as_save_IFS
3551  test -z "$as_dir" && as_dir=.
3552  for ac_exec_ext in '' $ac_executable_extensions; do
3553  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3554    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3555    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3556    break 2
3557  fi
3558done
3559done
3560IFS=$as_save_IFS
3561
3562fi
3563fi
3564CC=$ac_cv_prog_CC
3565if test -n "$CC"; then
3566  { echo "$as_me:$LINENO: result: $CC" >&5
3567echo "${ECHO_T}$CC" >&6; }
3568else
3569  { echo "$as_me:$LINENO: result: no" >&5
3570echo "${ECHO_T}no" >&6; }
3571fi
3572
3573
3574    test -n "$CC" && break
3575  done
3576fi
3577if test -z "$CC"; then
3578  ac_ct_CC=$CC
3579  for ac_prog in cl.exe
3580do
3581  # Extract the first word of "$ac_prog", so it can be a program name with args.
3582set dummy $ac_prog; ac_word=$2
3583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3585if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3586  echo $ECHO_N "(cached) $ECHO_C" >&6
3587else
3588  if test -n "$ac_ct_CC"; then
3589  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3590else
3591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592for as_dir in $PATH
3593do
3594  IFS=$as_save_IFS
3595  test -z "$as_dir" && as_dir=.
3596  for ac_exec_ext in '' $ac_executable_extensions; do
3597  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3598    ac_cv_prog_ac_ct_CC="$ac_prog"
3599    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600    break 2
3601  fi
3602done
3603done
3604IFS=$as_save_IFS
3605
3606fi
3607fi
3608ac_ct_CC=$ac_cv_prog_ac_ct_CC
3609if test -n "$ac_ct_CC"; then
3610  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3611echo "${ECHO_T}$ac_ct_CC" >&6; }
3612else
3613  { echo "$as_me:$LINENO: result: no" >&5
3614echo "${ECHO_T}no" >&6; }
3615fi
3616
3617
3618  test -n "$ac_ct_CC" && break
3619done
3620
3621  if test "x$ac_ct_CC" = x; then
3622    CC=""
3623  else
3624    case $cross_compiling:$ac_tool_warned in
3625yes:)
3626{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3627whose name does not start with the host triplet.  If you think this
3628configuration is useful to you, please write to autoconf@gnu.org." >&5
3629echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3630whose name does not start with the host triplet.  If you think this
3631configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3632ac_tool_warned=yes ;;
3633esac
3634    CC=$ac_ct_CC
3635  fi
3636fi
3637
3638fi
3639
3640
3641test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3642See \`config.log' for more details." >&5
3643echo "$as_me: error: no acceptable C compiler found in \$PATH
3644See \`config.log' for more details." >&2;}
3645   { (exit 1); exit 1; }; }
3646
3647# Provide some information about the compiler.
3648echo "$as_me:$LINENO: checking for C compiler version" >&5
3649ac_compiler=`set X $ac_compile; echo $2`
3650{ (ac_try="$ac_compiler --version >&5"
3651case "(($ac_try" in
3652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653  *) ac_try_echo=$ac_try;;
3654esac
3655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3656  (eval "$ac_compiler --version >&5") 2>&5
3657  ac_status=$?
3658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659  (exit $ac_status); }
3660{ (ac_try="$ac_compiler -v >&5"
3661case "(($ac_try" in
3662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663  *) ac_try_echo=$ac_try;;
3664esac
3665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666  (eval "$ac_compiler -v >&5") 2>&5
3667  ac_status=$?
3668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669  (exit $ac_status); }
3670{ (ac_try="$ac_compiler -V >&5"
3671case "(($ac_try" in
3672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673  *) ac_try_echo=$ac_try;;
3674esac
3675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676  (eval "$ac_compiler -V >&5") 2>&5
3677  ac_status=$?
3678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679  (exit $ac_status); }
3680
3681{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3682echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3683if test "${ac_cv_c_compiler_gnu+set}" = set; then
3684  echo $ECHO_N "(cached) $ECHO_C" >&6
3685else
3686  cat >conftest.$ac_ext <<_ACEOF
3687/* confdefs.h.  */
3688_ACEOF
3689cat confdefs.h >>conftest.$ac_ext
3690cat >>conftest.$ac_ext <<_ACEOF
3691/* end confdefs.h.  */
3692
3693int
3694main ()
3695{
3696#ifndef __GNUC__
3697       choke me
3698#endif
3699
3700  ;
3701  return 0;
3702}
3703_ACEOF
3704rm -f conftest.$ac_objext
3705if { (ac_try="$ac_compile"
3706case "(($ac_try" in
3707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708  *) ac_try_echo=$ac_try;;
3709esac
3710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711  (eval "$ac_compile") 2>conftest.er1
3712  ac_status=$?
3713  grep -v '^ *+' conftest.er1 >conftest.err
3714  rm -f conftest.er1
3715  cat conftest.err >&5
3716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717  (exit $ac_status); } && {
3718	 test -z "$ac_c_werror_flag" ||
3719	 test ! -s conftest.err
3720       } && test -s conftest.$ac_objext; then
3721  ac_compiler_gnu=yes
3722else
3723  echo "$as_me: failed program was:" >&5
3724sed 's/^/| /' conftest.$ac_ext >&5
3725
3726	ac_compiler_gnu=no
3727fi
3728
3729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730ac_cv_c_compiler_gnu=$ac_compiler_gnu
3731
3732fi
3733{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3734echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3735GCC=`test $ac_compiler_gnu = yes && echo yes`
3736ac_test_CFLAGS=${CFLAGS+set}
3737ac_save_CFLAGS=$CFLAGS
3738{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3739echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3740if test "${ac_cv_prog_cc_g+set}" = set; then
3741  echo $ECHO_N "(cached) $ECHO_C" >&6
3742else
3743  ac_save_c_werror_flag=$ac_c_werror_flag
3744   ac_c_werror_flag=yes
3745   ac_cv_prog_cc_g=no
3746   CFLAGS="-g"
3747   cat >conftest.$ac_ext <<_ACEOF
3748/* confdefs.h.  */
3749_ACEOF
3750cat confdefs.h >>conftest.$ac_ext
3751cat >>conftest.$ac_ext <<_ACEOF
3752/* end confdefs.h.  */
3753
3754int
3755main ()
3756{
3757
3758  ;
3759  return 0;
3760}
3761_ACEOF
3762rm -f conftest.$ac_objext
3763if { (ac_try="$ac_compile"
3764case "(($ac_try" in
3765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766  *) ac_try_echo=$ac_try;;
3767esac
3768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3769  (eval "$ac_compile") 2>conftest.er1
3770  ac_status=$?
3771  grep -v '^ *+' conftest.er1 >conftest.err
3772  rm -f conftest.er1
3773  cat conftest.err >&5
3774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775  (exit $ac_status); } && {
3776	 test -z "$ac_c_werror_flag" ||
3777	 test ! -s conftest.err
3778       } && test -s conftest.$ac_objext; then
3779  ac_cv_prog_cc_g=yes
3780else
3781  echo "$as_me: failed program was:" >&5
3782sed 's/^/| /' conftest.$ac_ext >&5
3783
3784	CFLAGS=""
3785      cat >conftest.$ac_ext <<_ACEOF
3786/* confdefs.h.  */
3787_ACEOF
3788cat confdefs.h >>conftest.$ac_ext
3789cat >>conftest.$ac_ext <<_ACEOF
3790/* end confdefs.h.  */
3791
3792int
3793main ()
3794{
3795
3796  ;
3797  return 0;
3798}
3799_ACEOF
3800rm -f conftest.$ac_objext
3801if { (ac_try="$ac_compile"
3802case "(($ac_try" in
3803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804  *) ac_try_echo=$ac_try;;
3805esac
3806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807  (eval "$ac_compile") 2>conftest.er1
3808  ac_status=$?
3809  grep -v '^ *+' conftest.er1 >conftest.err
3810  rm -f conftest.er1
3811  cat conftest.err >&5
3812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813  (exit $ac_status); } && {
3814	 test -z "$ac_c_werror_flag" ||
3815	 test ! -s conftest.err
3816       } && test -s conftest.$ac_objext; then
3817  :
3818else
3819  echo "$as_me: failed program was:" >&5
3820sed 's/^/| /' conftest.$ac_ext >&5
3821
3822	ac_c_werror_flag=$ac_save_c_werror_flag
3823	 CFLAGS="-g"
3824	 cat >conftest.$ac_ext <<_ACEOF
3825/* confdefs.h.  */
3826_ACEOF
3827cat confdefs.h >>conftest.$ac_ext
3828cat >>conftest.$ac_ext <<_ACEOF
3829/* end confdefs.h.  */
3830
3831int
3832main ()
3833{
3834
3835  ;
3836  return 0;
3837}
3838_ACEOF
3839rm -f conftest.$ac_objext
3840if { (ac_try="$ac_compile"
3841case "(($ac_try" in
3842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843  *) ac_try_echo=$ac_try;;
3844esac
3845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846  (eval "$ac_compile") 2>conftest.er1
3847  ac_status=$?
3848  grep -v '^ *+' conftest.er1 >conftest.err
3849  rm -f conftest.er1
3850  cat conftest.err >&5
3851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852  (exit $ac_status); } && {
3853	 test -z "$ac_c_werror_flag" ||
3854	 test ! -s conftest.err
3855       } && test -s conftest.$ac_objext; then
3856  ac_cv_prog_cc_g=yes
3857else
3858  echo "$as_me: failed program was:" >&5
3859sed 's/^/| /' conftest.$ac_ext >&5
3860
3861
3862fi
3863
3864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3865fi
3866
3867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868fi
3869
3870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871   ac_c_werror_flag=$ac_save_c_werror_flag
3872fi
3873{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3874echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3875if test "$ac_test_CFLAGS" = set; then
3876  CFLAGS=$ac_save_CFLAGS
3877elif test $ac_cv_prog_cc_g = yes; then
3878  if test "$GCC" = yes; then
3879    CFLAGS="-g -O2"
3880  else
3881    CFLAGS="-g"
3882  fi
3883else
3884  if test "$GCC" = yes; then
3885    CFLAGS="-O2"
3886  else
3887    CFLAGS=
3888  fi
3889fi
3890{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3891echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3892if test "${ac_cv_prog_cc_c89+set}" = set; then
3893  echo $ECHO_N "(cached) $ECHO_C" >&6
3894else
3895  ac_cv_prog_cc_c89=no
3896ac_save_CC=$CC
3897cat >conftest.$ac_ext <<_ACEOF
3898/* confdefs.h.  */
3899_ACEOF
3900cat confdefs.h >>conftest.$ac_ext
3901cat >>conftest.$ac_ext <<_ACEOF
3902/* end confdefs.h.  */
3903#include <stdarg.h>
3904#include <stdio.h>
3905#include <sys/types.h>
3906#include <sys/stat.h>
3907/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3908struct buf { int x; };
3909FILE * (*rcsopen) (struct buf *, struct stat *, int);
3910static char *e (p, i)
3911     char **p;
3912     int i;
3913{
3914  return p[i];
3915}
3916static char *f (char * (*g) (char **, int), char **p, ...)
3917{
3918  char *s;
3919  va_list v;
3920  va_start (v,p);
3921  s = g (p, va_arg (v,int));
3922  va_end (v);
3923  return s;
3924}
3925
3926/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3927   function prototypes and stuff, but not '\xHH' hex character constants.
3928   These don't provoke an error unfortunately, instead are silently treated
3929   as 'x'.  The following induces an error, until -std is added to get
3930   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3931   array size at least.  It's necessary to write '\x00'==0 to get something
3932   that's true only with -std.  */
3933int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3934
3935/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3936   inside strings and character constants.  */
3937#define FOO(x) 'x'
3938int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3939
3940int test (int i, double x);
3941struct s1 {int (*f) (int a);};
3942struct s2 {int (*f) (double a);};
3943int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3944int argc;
3945char **argv;
3946int
3947main ()
3948{
3949return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3950  ;
3951  return 0;
3952}
3953_ACEOF
3954for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3955	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3956do
3957  CC="$ac_save_CC $ac_arg"
3958  rm -f conftest.$ac_objext
3959if { (ac_try="$ac_compile"
3960case "(($ac_try" in
3961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962  *) ac_try_echo=$ac_try;;
3963esac
3964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965  (eval "$ac_compile") 2>conftest.er1
3966  ac_status=$?
3967  grep -v '^ *+' conftest.er1 >conftest.err
3968  rm -f conftest.er1
3969  cat conftest.err >&5
3970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971  (exit $ac_status); } && {
3972	 test -z "$ac_c_werror_flag" ||
3973	 test ! -s conftest.err
3974       } && test -s conftest.$ac_objext; then
3975  ac_cv_prog_cc_c89=$ac_arg
3976else
3977  echo "$as_me: failed program was:" >&5
3978sed 's/^/| /' conftest.$ac_ext >&5
3979
3980
3981fi
3982
3983rm -f core conftest.err conftest.$ac_objext
3984  test "x$ac_cv_prog_cc_c89" != "xno" && break
3985done
3986rm -f conftest.$ac_ext
3987CC=$ac_save_CC
3988
3989fi
3990# AC_CACHE_VAL
3991case "x$ac_cv_prog_cc_c89" in
3992  x)
3993    { echo "$as_me:$LINENO: result: none needed" >&5
3994echo "${ECHO_T}none needed" >&6; } ;;
3995  xno)
3996    { echo "$as_me:$LINENO: result: unsupported" >&5
3997echo "${ECHO_T}unsupported" >&6; } ;;
3998  *)
3999    CC="$CC $ac_cv_prog_cc_c89"
4000    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4001echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4002esac
4003
4004
4005ac_ext=c
4006ac_cpp='$CPP $CPPFLAGS'
4007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4009ac_compiler_gnu=$ac_cv_c_compiler_gnu
4010
4011depcc="$CC"   am_compiler_list=
4012
4013{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4014echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4015if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4016  echo $ECHO_N "(cached) $ECHO_C" >&6
4017else
4018  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4019  # We make a subdir and do the tests there.  Otherwise we can end up
4020  # making bogus files that we don't know about and never remove.  For
4021  # instance it was reported that on HP-UX the gcc test will end up
4022  # making a dummy file named `D' -- because `-MD' means `put the output
4023  # in D'.
4024  mkdir conftest.dir
4025  # Copy depcomp to subdir because otherwise we won't find it if we're
4026  # using a relative directory.
4027  cp "$am_depcomp" conftest.dir
4028  cd conftest.dir
4029  # We will build objects and dependencies in a subdirectory because
4030  # it helps to detect inapplicable dependency modes.  For instance
4031  # both Tru64's cc and ICC support -MD to output dependencies as a
4032  # side effect of compilation, but ICC will put the dependencies in
4033  # the current directory while Tru64 will put them in the object
4034  # directory.
4035  mkdir sub
4036
4037  am_cv_CC_dependencies_compiler_type=none
4038  if test "$am_compiler_list" = ""; then
4039     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4040  fi
4041  for depmode in $am_compiler_list; do
4042    # Setup a source with many dependencies, because some compilers
4043    # like to wrap large dependency lists on column 80 (with \), and
4044    # we should not choose a depcomp mode which is confused by this.
4045    #
4046    # We need to recreate these files for each test, as the compiler may
4047    # overwrite some of them when testing with obscure command lines.
4048    # This happens at least with the AIX C compiler.
4049    : > sub/conftest.c
4050    for i in 1 2 3 4 5 6; do
4051      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4052      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4053      # Solaris 8's {/usr,}/bin/sh.
4054      touch sub/conftst$i.h
4055    done
4056    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4057
4058    case $depmode in
4059    nosideeffect)
4060      # after this tag, mechanisms are not by side-effect, so they'll
4061      # only be used when explicitly requested
4062      if test "x$enable_dependency_tracking" = xyes; then
4063	continue
4064      else
4065	break
4066      fi
4067      ;;
4068    none) break ;;
4069    esac
4070    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4071    # mode.  It turns out that the SunPro C++ compiler does not properly
4072    # handle `-M -o', and we need to detect this.
4073    if depmode=$depmode \
4074       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4075       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4076       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4077         >/dev/null 2>conftest.err &&
4078       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4079       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4080       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4081      # icc doesn't choke on unknown options, it will just issue warnings
4082      # or remarks (even with -Werror).  So we grep stderr for any message
4083      # that says an option was ignored or not supported.
4084      # When given -MP, icc 7.0 and 7.1 complain thusly:
4085      #   icc: Command line warning: ignoring option '-M'; no argument required
4086      # The diagnosis changed in icc 8.0:
4087      #   icc: Command line remark: option '-MP' not supported
4088      if (grep 'ignoring option' conftest.err ||
4089          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4090        am_cv_CC_dependencies_compiler_type=$depmode
4091        break
4092      fi
4093    fi
4094  done
4095
4096  cd ..
4097  rm -rf conftest.dir
4098else
4099  am_cv_CC_dependencies_compiler_type=none
4100fi
4101
4102fi
4103{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4104echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4105CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4106
4107
4108
4109if
4110  test "x$enable_dependency_tracking" != xno \
4111  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4112  am__fastdepCC_TRUE=
4113  am__fastdepCC_FALSE='#'
4114else
4115  am__fastdepCC_TRUE='#'
4116  am__fastdepCC_FALSE=
4117fi
4118
4119
4120{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4121echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4122if test "${lt_cv_path_SED+set}" = set; then
4123  echo $ECHO_N "(cached) $ECHO_C" >&6
4124else
4125  # Loop through the user's path and test for sed and gsed.
4126# Then use that list of sed's as ones to test for truncation.
4127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128for as_dir in $PATH
4129do
4130  IFS=$as_save_IFS
4131  test -z "$as_dir" && as_dir=.
4132  for lt_ac_prog in sed gsed; do
4133    for ac_exec_ext in '' $ac_executable_extensions; do
4134      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4135        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4136      fi
4137    done
4138  done
4139done
4140IFS=$as_save_IFS
4141lt_ac_max=0
4142lt_ac_count=0
4143# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4144# along with /bin/sed that truncates output.
4145for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4146  test ! -f $lt_ac_sed && continue
4147  cat /dev/null > conftest.in
4148  lt_ac_count=0
4149  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4150  # Check for GNU sed and select it if it is found.
4151  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4152    lt_cv_path_SED=$lt_ac_sed
4153    break
4154  fi
4155  while true; do
4156    cat conftest.in conftest.in >conftest.tmp
4157    mv conftest.tmp conftest.in
4158    cp conftest.in conftest.nl
4159    echo >>conftest.nl
4160    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4161    cmp -s conftest.out conftest.nl || break
4162    # 10000 chars as input seems more than enough
4163    test $lt_ac_count -gt 10 && break
4164    lt_ac_count=`expr $lt_ac_count + 1`
4165    if test $lt_ac_count -gt $lt_ac_max; then
4166      lt_ac_max=$lt_ac_count
4167      lt_cv_path_SED=$lt_ac_sed
4168    fi
4169  done
4170done
4171
4172fi
4173
4174SED=$lt_cv_path_SED
4175
4176{ echo "$as_me:$LINENO: result: $SED" >&5
4177echo "${ECHO_T}$SED" >&6; }
4178
4179{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4180echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4181if test "${ac_cv_path_GREP+set}" = set; then
4182  echo $ECHO_N "(cached) $ECHO_C" >&6
4183else
4184  # Extract the first word of "grep ggrep" to use in msg output
4185if test -z "$GREP"; then
4186set dummy grep ggrep; ac_prog_name=$2
4187if test "${ac_cv_path_GREP+set}" = set; then
4188  echo $ECHO_N "(cached) $ECHO_C" >&6
4189else
4190  ac_path_GREP_found=false
4191# Loop through the user's path and test for each of PROGNAME-LIST
4192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4194do
4195  IFS=$as_save_IFS
4196  test -z "$as_dir" && as_dir=.
4197  for ac_prog in grep ggrep; do
4198  for ac_exec_ext in '' $ac_executable_extensions; do
4199    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4200    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4201    # Check for GNU ac_path_GREP and select it if it is found.
4202  # Check for GNU $ac_path_GREP
4203case `"$ac_path_GREP" --version 2>&1` in
4204*GNU*)
4205  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4206*)
4207  ac_count=0
4208  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4209  while :
4210  do
4211    cat "conftest.in" "conftest.in" >"conftest.tmp"
4212    mv "conftest.tmp" "conftest.in"
4213    cp "conftest.in" "conftest.nl"
4214    echo 'GREP' >> "conftest.nl"
4215    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4216    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4217    ac_count=`expr $ac_count + 1`
4218    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4219      # Best one so far, save it but keep looking for a better one
4220      ac_cv_path_GREP="$ac_path_GREP"
4221      ac_path_GREP_max=$ac_count
4222    fi
4223    # 10*(2^10) chars as input seems more than enough
4224    test $ac_count -gt 10 && break
4225  done
4226  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4227esac
4228
4229
4230    $ac_path_GREP_found && break 3
4231  done
4232done
4233
4234done
4235IFS=$as_save_IFS
4236
4237
4238fi
4239
4240GREP="$ac_cv_path_GREP"
4241if test -z "$GREP"; then
4242  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4243echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4244   { (exit 1); exit 1; }; }
4245fi
4246
4247else
4248  ac_cv_path_GREP=$GREP
4249fi
4250
4251
4252fi
4253{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4254echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4255 GREP="$ac_cv_path_GREP"
4256
4257
4258{ echo "$as_me:$LINENO: checking for egrep" >&5
4259echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4260if test "${ac_cv_path_EGREP+set}" = set; then
4261  echo $ECHO_N "(cached) $ECHO_C" >&6
4262else
4263  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4264   then ac_cv_path_EGREP="$GREP -E"
4265   else
4266     # Extract the first word of "egrep" to use in msg output
4267if test -z "$EGREP"; then
4268set dummy egrep; ac_prog_name=$2
4269if test "${ac_cv_path_EGREP+set}" = set; then
4270  echo $ECHO_N "(cached) $ECHO_C" >&6
4271else
4272  ac_path_EGREP_found=false
4273# Loop through the user's path and test for each of PROGNAME-LIST
4274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4276do
4277  IFS=$as_save_IFS
4278  test -z "$as_dir" && as_dir=.
4279  for ac_prog in egrep; do
4280  for ac_exec_ext in '' $ac_executable_extensions; do
4281    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4282    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4283    # Check for GNU ac_path_EGREP and select it if it is found.
4284  # Check for GNU $ac_path_EGREP
4285case `"$ac_path_EGREP" --version 2>&1` in
4286*GNU*)
4287  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4288*)
4289  ac_count=0
4290  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4291  while :
4292  do
4293    cat "conftest.in" "conftest.in" >"conftest.tmp"
4294    mv "conftest.tmp" "conftest.in"
4295    cp "conftest.in" "conftest.nl"
4296    echo 'EGREP' >> "conftest.nl"
4297    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4298    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4299    ac_count=`expr $ac_count + 1`
4300    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4301      # Best one so far, save it but keep looking for a better one
4302      ac_cv_path_EGREP="$ac_path_EGREP"
4303      ac_path_EGREP_max=$ac_count
4304    fi
4305    # 10*(2^10) chars as input seems more than enough
4306    test $ac_count -gt 10 && break
4307  done
4308  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4309esac
4310
4311
4312    $ac_path_EGREP_found && break 3
4313  done
4314done
4315
4316done
4317IFS=$as_save_IFS
4318
4319
4320fi
4321
4322EGREP="$ac_cv_path_EGREP"
4323if test -z "$EGREP"; then
4324  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4325echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4326   { (exit 1); exit 1; }; }
4327fi
4328
4329else
4330  ac_cv_path_EGREP=$EGREP
4331fi
4332
4333
4334   fi
4335fi
4336{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4337echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4338 EGREP="$ac_cv_path_EGREP"
4339
4340
4341
4342# Check whether --with-gnu-ld was given.
4343if test "${with_gnu_ld+set}" = set; then
4344  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4345else
4346  with_gnu_ld=no
4347fi
4348
4349ac_prog=ld
4350if test "$GCC" = yes; then
4351  # Check if gcc -print-prog-name=ld gives a path.
4352  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4353echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4354  case $host in
4355  *-*-mingw*)
4356    # gcc leaves a trailing carriage return which upsets mingw
4357    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4358  *)
4359    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4360  esac
4361  case $ac_prog in
4362    # Accept absolute paths.
4363    [\\/]* | ?:[\\/]*)
4364      re_direlt='/[^/][^/]*/\.\./'
4365      # Canonicalize the pathname of ld
4366      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4367      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4368	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4369      done
4370      test -z "$LD" && LD="$ac_prog"
4371      ;;
4372  "")
4373    # If it fails, then pretend we aren't using GCC.
4374    ac_prog=ld
4375    ;;
4376  *)
4377    # If it is relative, then search for the first ld in PATH.
4378    with_gnu_ld=unknown
4379    ;;
4380  esac
4381elif test "$with_gnu_ld" = yes; then
4382  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4383echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4384else
4385  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4386echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4387fi
4388if test "${lt_cv_path_LD+set}" = set; then
4389  echo $ECHO_N "(cached) $ECHO_C" >&6
4390else
4391  if test -z "$LD"; then
4392  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4393  for ac_dir in $PATH; do
4394    IFS="$lt_save_ifs"
4395    test -z "$ac_dir" && ac_dir=.
4396    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4397      lt_cv_path_LD="$ac_dir/$ac_prog"
4398      # Check to see if the program is GNU ld.  I'd rather use --version,
4399      # but apparently some variants of GNU ld only accept -v.
4400      # Break only if it was the GNU/non-GNU ld that we prefer.
4401      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4402      *GNU* | *'with BFD'*)
4403	test "$with_gnu_ld" != no && break
4404	;;
4405      *)
4406	test "$with_gnu_ld" != yes && break
4407	;;
4408      esac
4409    fi
4410  done
4411  IFS="$lt_save_ifs"
4412else
4413  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4414fi
4415fi
4416
4417LD="$lt_cv_path_LD"
4418if test -n "$LD"; then
4419  { echo "$as_me:$LINENO: result: $LD" >&5
4420echo "${ECHO_T}$LD" >&6; }
4421else
4422  { echo "$as_me:$LINENO: result: no" >&5
4423echo "${ECHO_T}no" >&6; }
4424fi
4425test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4426echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4427   { (exit 1); exit 1; }; }
4428{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4429echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4430if test "${lt_cv_prog_gnu_ld+set}" = set; then
4431  echo $ECHO_N "(cached) $ECHO_C" >&6
4432else
4433  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4434case `$LD -v 2>&1 </dev/null` in
4435*GNU* | *'with BFD'*)
4436  lt_cv_prog_gnu_ld=yes
4437  ;;
4438*)
4439  lt_cv_prog_gnu_ld=no
4440  ;;
4441esac
4442fi
4443{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4444echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4445with_gnu_ld=$lt_cv_prog_gnu_ld
4446
4447
4448{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4449echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4450if test "${lt_cv_ld_reload_flag+set}" = set; then
4451  echo $ECHO_N "(cached) $ECHO_C" >&6
4452else
4453  lt_cv_ld_reload_flag='-r'
4454fi
4455{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4456echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4457reload_flag=$lt_cv_ld_reload_flag
4458case $reload_flag in
4459"" | " "*) ;;
4460*) reload_flag=" $reload_flag" ;;
4461esac
4462reload_cmds='$LD$reload_flag -o $output$reload_objs'
4463case $host_os in
4464  darwin*)
4465    if test "$GCC" = yes; then
4466      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4467    else
4468      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4469    fi
4470    ;;
4471esac
4472
4473{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4474echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4475if test "${lt_cv_path_NM+set}" = set; then
4476  echo $ECHO_N "(cached) $ECHO_C" >&6
4477else
4478  if test -n "$NM"; then
4479  # Let the user override the test.
4480  lt_cv_path_NM="$NM"
4481else
4482  lt_nm_to_check="${ac_tool_prefix}nm"
4483  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4484    lt_nm_to_check="$lt_nm_to_check nm"
4485  fi
4486  for lt_tmp_nm in $lt_nm_to_check; do
4487    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4488    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4489      IFS="$lt_save_ifs"
4490      test -z "$ac_dir" && ac_dir=.
4491      tmp_nm="$ac_dir/$lt_tmp_nm"
4492      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4493	# Check to see if the nm accepts a BSD-compat flag.
4494	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4495	#   nm: unknown option "B" ignored
4496	# Tru64's nm complains that /dev/null is an invalid object file
4497	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4498	*/dev/null* | *'Invalid file or object type'*)
4499	  lt_cv_path_NM="$tmp_nm -B"
4500	  break
4501	  ;;
4502	*)
4503	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4504	  */dev/null*)
4505	    lt_cv_path_NM="$tmp_nm -p"
4506	    break
4507	    ;;
4508	  *)
4509	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4510	    continue # so that we can try to find one that supports BSD flags
4511	    ;;
4512	  esac
4513	  ;;
4514	esac
4515      fi
4516    done
4517    IFS="$lt_save_ifs"
4518  done
4519  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4520fi
4521fi
4522{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4523echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4524NM="$lt_cv_path_NM"
4525
4526{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4527echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4528LN_S=$as_ln_s
4529if test "$LN_S" = "ln -s"; then
4530  { echo "$as_me:$LINENO: result: yes" >&5
4531echo "${ECHO_T}yes" >&6; }
4532else
4533  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4534echo "${ECHO_T}no, using $LN_S" >&6; }
4535fi
4536
4537{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4538echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4539if test "${lt_cv_deplibs_check_method+set}" = set; then
4540  echo $ECHO_N "(cached) $ECHO_C" >&6
4541else
4542  lt_cv_file_magic_cmd='$MAGIC_CMD'
4543lt_cv_file_magic_test_file=
4544lt_cv_deplibs_check_method='unknown'
4545# Need to set the preceding variable on all platforms that support
4546# interlibrary dependencies.
4547# 'none' -- dependencies not supported.
4548# `unknown' -- same as none, but documents that we really don't know.
4549# 'pass_all' -- all dependencies passed with no checks.
4550# 'test_compile' -- check by making test program.
4551# 'file_magic [[regex]]' -- check by looking for files in library path
4552# which responds to the $file_magic_cmd with a given extended regex.
4553# If you have `file' or equivalent on your system and you're not sure
4554# whether `pass_all' will *always* work, you probably want this one.
4555
4556case $host_os in
4557aix[4-9]*)
4558  lt_cv_deplibs_check_method=pass_all
4559  ;;
4560
4561beos*)
4562  lt_cv_deplibs_check_method=pass_all
4563  ;;
4564
4565bsdi[45]*)
4566  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4567  lt_cv_file_magic_cmd='/usr/bin/file -L'
4568  lt_cv_file_magic_test_file=/shlib/libc.so
4569  ;;
4570
4571cygwin*)
4572  # func_win32_libid is a shell function defined in ltmain.sh
4573  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4574  lt_cv_file_magic_cmd='func_win32_libid'
4575  ;;
4576
4577mingw* | pw32*)
4578  # Base MSYS/MinGW do not provide the 'file' command needed by
4579  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4580  # unless we find 'file', for example because we are cross-compiling.
4581  if ( file / ) >/dev/null 2>&1; then
4582    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4583    lt_cv_file_magic_cmd='func_win32_libid'
4584  else
4585    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4586    lt_cv_file_magic_cmd='$OBJDUMP -f'
4587  fi
4588  ;;
4589
4590darwin* | rhapsody*)
4591  lt_cv_deplibs_check_method=pass_all
4592  ;;
4593
4594freebsd* | dragonfly*)
4595  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4596    case $host_cpu in
4597    i*86 )
4598      # Not sure whether the presence of OpenBSD here was a mistake.
4599      # Let's accept both of them until this is cleared up.
4600      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4601      lt_cv_file_magic_cmd=/usr/bin/file
4602      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4603      ;;
4604    esac
4605  else
4606    lt_cv_deplibs_check_method=pass_all
4607  fi
4608  ;;
4609
4610gnu*)
4611  lt_cv_deplibs_check_method=pass_all
4612  ;;
4613
4614hpux10.20* | hpux11*)
4615  lt_cv_file_magic_cmd=/usr/bin/file
4616  case $host_cpu in
4617  ia64*)
4618    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4619    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4620    ;;
4621  hppa*64*)
4622    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]'
4623    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4624    ;;
4625  *)
4626    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4627    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4628    ;;
4629  esac
4630  ;;
4631
4632interix[3-9]*)
4633  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4634  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4635  ;;
4636
4637irix5* | irix6* | nonstopux*)
4638  case $LD in
4639  *-32|*"-32 ") libmagic=32-bit;;
4640  *-n32|*"-n32 ") libmagic=N32;;
4641  *-64|*"-64 ") libmagic=64-bit;;
4642  *) libmagic=never-match;;
4643  esac
4644  lt_cv_deplibs_check_method=pass_all
4645  ;;
4646
4647# This must be Linux ELF.
4648linux* | k*bsd*-gnu)
4649  lt_cv_deplibs_check_method=pass_all
4650  ;;
4651
4652netbsd* | netbsdelf*-gnu)
4653  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4654    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4655  else
4656    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4657  fi
4658  ;;
4659
4660newos6*)
4661  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4662  lt_cv_file_magic_cmd=/usr/bin/file
4663  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4664  ;;
4665
4666nto-qnx*)
4667  lt_cv_deplibs_check_method=unknown
4668  ;;
4669
4670openbsd*)
4671  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4672    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4673  else
4674    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4675  fi
4676  ;;
4677
4678osf3* | osf4* | osf5*)
4679  lt_cv_deplibs_check_method=pass_all
4680  ;;
4681
4682rdos*)
4683  lt_cv_deplibs_check_method=pass_all
4684  ;;
4685
4686solaris*)
4687  lt_cv_deplibs_check_method=pass_all
4688  ;;
4689
4690sysv4 | sysv4.3*)
4691  case $host_vendor in
4692  motorola)
4693    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]'
4694    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4695    ;;
4696  ncr)
4697    lt_cv_deplibs_check_method=pass_all
4698    ;;
4699  sequent)
4700    lt_cv_file_magic_cmd='/bin/file'
4701    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4702    ;;
4703  sni)
4704    lt_cv_file_magic_cmd='/bin/file'
4705    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4706    lt_cv_file_magic_test_file=/lib/libc.so
4707    ;;
4708  siemens)
4709    lt_cv_deplibs_check_method=pass_all
4710    ;;
4711  pc)
4712    lt_cv_deplibs_check_method=pass_all
4713    ;;
4714  esac
4715  ;;
4716
4717sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4718  lt_cv_deplibs_check_method=pass_all
4719  ;;
4720esac
4721
4722fi
4723{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4724echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4725file_magic_cmd=$lt_cv_file_magic_cmd
4726deplibs_check_method=$lt_cv_deplibs_check_method
4727test -z "$deplibs_check_method" && deplibs_check_method=unknown
4728
4729
4730
4731
4732# If no C compiler was specified, use CC.
4733LTCC=${LTCC-"$CC"}
4734
4735# If no C compiler flags were specified, use CFLAGS.
4736LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4737
4738# Allow CC to be a program name with arguments.
4739compiler=$CC
4740
4741
4742# Check whether --enable-libtool-lock was given.
4743if test "${enable_libtool_lock+set}" = set; then
4744  enableval=$enable_libtool_lock;
4745fi
4746
4747test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4748
4749# Some flags need to be propagated to the compiler or linker for good
4750# libtool support.
4751case $host in
4752ia64-*-hpux*)
4753  # Find out which ABI we are using.
4754  echo 'int i;' > conftest.$ac_ext
4755  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4756  (eval $ac_compile) 2>&5
4757  ac_status=$?
4758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759  (exit $ac_status); }; then
4760    case `/usr/bin/file conftest.$ac_objext` in
4761    *ELF-32*)
4762      HPUX_IA64_MODE="32"
4763      ;;
4764    *ELF-64*)
4765      HPUX_IA64_MODE="64"
4766      ;;
4767    esac
4768  fi
4769  rm -rf conftest*
4770  ;;
4771*-*-irix6*)
4772  # Find out which ABI we are using.
4773  echo '#line 4773 "configure"' > conftest.$ac_ext
4774  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775  (eval $ac_compile) 2>&5
4776  ac_status=$?
4777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778  (exit $ac_status); }; then
4779   if test "$lt_cv_prog_gnu_ld" = yes; then
4780    case `/usr/bin/file conftest.$ac_objext` in
4781    *32-bit*)
4782      LD="${LD-ld} -melf32bsmip"
4783      ;;
4784    *N32*)
4785      LD="${LD-ld} -melf32bmipn32"
4786      ;;
4787    *64-bit*)
4788      LD="${LD-ld} -melf64bmip"
4789      ;;
4790    esac
4791   else
4792    case `/usr/bin/file conftest.$ac_objext` in
4793    *32-bit*)
4794      LD="${LD-ld} -32"
4795      ;;
4796    *N32*)
4797      LD="${LD-ld} -n32"
4798      ;;
4799    *64-bit*)
4800      LD="${LD-ld} -64"
4801      ;;
4802    esac
4803   fi
4804  fi
4805  rm -rf conftest*
4806  ;;
4807
4808x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4809s390*-*linux*|sparc*-*linux*)
4810  # Find out which ABI we are using.
4811  echo 'int i;' > conftest.$ac_ext
4812  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813  (eval $ac_compile) 2>&5
4814  ac_status=$?
4815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816  (exit $ac_status); }; then
4817    case `/usr/bin/file conftest.o` in
4818    *32-bit*)
4819      case $host in
4820        x86_64-*kfreebsd*-gnu)
4821          LD="${LD-ld} -m elf_i386_fbsd"
4822          ;;
4823        x86_64-*linux*)
4824          LD="${LD-ld} -m elf_i386"
4825          ;;
4826        ppc64-*linux*|powerpc64-*linux*)
4827          LD="${LD-ld} -m elf32ppclinux"
4828          ;;
4829        s390x-*linux*)
4830          LD="${LD-ld} -m elf_s390"
4831          ;;
4832        sparc64-*linux*)
4833          LD="${LD-ld} -m elf32_sparc"
4834          ;;
4835      esac
4836      ;;
4837    *64-bit*)
4838      case $host in
4839        x86_64-*kfreebsd*-gnu)
4840          LD="${LD-ld} -m elf_x86_64_fbsd"
4841          ;;
4842        x86_64-*linux*)
4843          LD="${LD-ld} -m elf_x86_64"
4844          ;;
4845        ppc*-*linux*|powerpc*-*linux*)
4846          LD="${LD-ld} -m elf64ppc"
4847          ;;
4848        s390*-*linux*)
4849          LD="${LD-ld} -m elf64_s390"
4850          ;;
4851        sparc*-*linux*)
4852          LD="${LD-ld} -m elf64_sparc"
4853          ;;
4854      esac
4855      ;;
4856    esac
4857  fi
4858  rm -rf conftest*
4859  ;;
4860
4861*-*-sco3.2v5*)
4862  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4863  SAVE_CFLAGS="$CFLAGS"
4864  CFLAGS="$CFLAGS -belf"
4865  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4866echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4867if test "${lt_cv_cc_needs_belf+set}" = set; then
4868  echo $ECHO_N "(cached) $ECHO_C" >&6
4869else
4870  ac_ext=c
4871ac_cpp='$CPP $CPPFLAGS'
4872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874ac_compiler_gnu=$ac_cv_c_compiler_gnu
4875
4876     cat >conftest.$ac_ext <<_ACEOF
4877/* confdefs.h.  */
4878_ACEOF
4879cat confdefs.h >>conftest.$ac_ext
4880cat >>conftest.$ac_ext <<_ACEOF
4881/* end confdefs.h.  */
4882
4883int
4884main ()
4885{
4886
4887  ;
4888  return 0;
4889}
4890_ACEOF
4891rm -f conftest.$ac_objext conftest$ac_exeext
4892if { (ac_try="$ac_link"
4893case "(($ac_try" in
4894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895  *) ac_try_echo=$ac_try;;
4896esac
4897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4898  (eval "$ac_link") 2>conftest.er1
4899  ac_status=$?
4900  grep -v '^ *+' conftest.er1 >conftest.err
4901  rm -f conftest.er1
4902  cat conftest.err >&5
4903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904  (exit $ac_status); } && {
4905	 test -z "$ac_c_werror_flag" ||
4906	 test ! -s conftest.err
4907       } && test -s conftest$ac_exeext &&
4908       $as_test_x conftest$ac_exeext; then
4909  lt_cv_cc_needs_belf=yes
4910else
4911  echo "$as_me: failed program was:" >&5
4912sed 's/^/| /' conftest.$ac_ext >&5
4913
4914	lt_cv_cc_needs_belf=no
4915fi
4916
4917rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4918      conftest$ac_exeext conftest.$ac_ext
4919     ac_ext=c
4920ac_cpp='$CPP $CPPFLAGS'
4921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924
4925fi
4926{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4927echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4928  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4929    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4930    CFLAGS="$SAVE_CFLAGS"
4931  fi
4932  ;;
4933sparc*-*solaris*)
4934  # Find out which ABI we are using.
4935  echo 'int i;' > conftest.$ac_ext
4936  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4937  (eval $ac_compile) 2>&5
4938  ac_status=$?
4939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940  (exit $ac_status); }; then
4941    case `/usr/bin/file conftest.o` in
4942    *64-bit*)
4943      case $lt_cv_prog_gnu_ld in
4944      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4945      *)
4946        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4947	  LD="${LD-ld} -64"
4948	fi
4949	;;
4950      esac
4951      ;;
4952    esac
4953  fi
4954  rm -rf conftest*
4955  ;;
4956
4957
4958esac
4959
4960need_locks="$enable_libtool_lock"
4961
4962
4963ac_ext=c
4964ac_cpp='$CPP $CPPFLAGS'
4965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4969echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4970# On Suns, sometimes $CPP names a directory.
4971if test -n "$CPP" && test -d "$CPP"; then
4972  CPP=
4973fi
4974if test -z "$CPP"; then
4975  if test "${ac_cv_prog_CPP+set}" = set; then
4976  echo $ECHO_N "(cached) $ECHO_C" >&6
4977else
4978      # Double quotes because CPP needs to be expanded
4979    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4980    do
4981      ac_preproc_ok=false
4982for ac_c_preproc_warn_flag in '' yes
4983do
4984  # Use a header file that comes with gcc, so configuring glibc
4985  # with a fresh cross-compiler works.
4986  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4987  # <limits.h> exists even on freestanding compilers.
4988  # On the NeXT, cc -E runs the code through the compiler's parser,
4989  # not just through cpp. "Syntax error" is here to catch this case.
4990  cat >conftest.$ac_ext <<_ACEOF
4991/* confdefs.h.  */
4992_ACEOF
4993cat confdefs.h >>conftest.$ac_ext
4994cat >>conftest.$ac_ext <<_ACEOF
4995/* end confdefs.h.  */
4996#ifdef __STDC__
4997# include <limits.h>
4998#else
4999# include <assert.h>
5000#endif
5001		     Syntax error
5002_ACEOF
5003if { (ac_try="$ac_cpp conftest.$ac_ext"
5004case "(($ac_try" in
5005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006  *) ac_try_echo=$ac_try;;
5007esac
5008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5010  ac_status=$?
5011  grep -v '^ *+' conftest.er1 >conftest.err
5012  rm -f conftest.er1
5013  cat conftest.err >&5
5014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015  (exit $ac_status); } >/dev/null && {
5016	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5017	 test ! -s conftest.err
5018       }; then
5019  :
5020else
5021  echo "$as_me: failed program was:" >&5
5022sed 's/^/| /' conftest.$ac_ext >&5
5023
5024  # Broken: fails on valid input.
5025continue
5026fi
5027
5028rm -f conftest.err conftest.$ac_ext
5029
5030  # OK, works on sane cases.  Now check whether nonexistent headers
5031  # can be detected and how.
5032  cat >conftest.$ac_ext <<_ACEOF
5033/* confdefs.h.  */
5034_ACEOF
5035cat confdefs.h >>conftest.$ac_ext
5036cat >>conftest.$ac_ext <<_ACEOF
5037/* end confdefs.h.  */
5038#include <ac_nonexistent.h>
5039_ACEOF
5040if { (ac_try="$ac_cpp conftest.$ac_ext"
5041case "(($ac_try" in
5042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043  *) ac_try_echo=$ac_try;;
5044esac
5045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5046  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5047  ac_status=$?
5048  grep -v '^ *+' conftest.er1 >conftest.err
5049  rm -f conftest.er1
5050  cat conftest.err >&5
5051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052  (exit $ac_status); } >/dev/null && {
5053	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5054	 test ! -s conftest.err
5055       }; then
5056  # Broken: success on invalid input.
5057continue
5058else
5059  echo "$as_me: failed program was:" >&5
5060sed 's/^/| /' conftest.$ac_ext >&5
5061
5062  # Passes both tests.
5063ac_preproc_ok=:
5064break
5065fi
5066
5067rm -f conftest.err conftest.$ac_ext
5068
5069done
5070# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5071rm -f conftest.err conftest.$ac_ext
5072if $ac_preproc_ok; then
5073  break
5074fi
5075
5076    done
5077    ac_cv_prog_CPP=$CPP
5078
5079fi
5080  CPP=$ac_cv_prog_CPP
5081else
5082  ac_cv_prog_CPP=$CPP
5083fi
5084{ echo "$as_me:$LINENO: result: $CPP" >&5
5085echo "${ECHO_T}$CPP" >&6; }
5086ac_preproc_ok=false
5087for ac_c_preproc_warn_flag in '' yes
5088do
5089  # Use a header file that comes with gcc, so configuring glibc
5090  # with a fresh cross-compiler works.
5091  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5092  # <limits.h> exists even on freestanding compilers.
5093  # On the NeXT, cc -E runs the code through the compiler's parser,
5094  # not just through cpp. "Syntax error" is here to catch this case.
5095  cat >conftest.$ac_ext <<_ACEOF
5096/* confdefs.h.  */
5097_ACEOF
5098cat confdefs.h >>conftest.$ac_ext
5099cat >>conftest.$ac_ext <<_ACEOF
5100/* end confdefs.h.  */
5101#ifdef __STDC__
5102# include <limits.h>
5103#else
5104# include <assert.h>
5105#endif
5106		     Syntax error
5107_ACEOF
5108if { (ac_try="$ac_cpp conftest.$ac_ext"
5109case "(($ac_try" in
5110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111  *) ac_try_echo=$ac_try;;
5112esac
5113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5114  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5115  ac_status=$?
5116  grep -v '^ *+' conftest.er1 >conftest.err
5117  rm -f conftest.er1
5118  cat conftest.err >&5
5119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120  (exit $ac_status); } >/dev/null && {
5121	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5122	 test ! -s conftest.err
5123       }; then
5124  :
5125else
5126  echo "$as_me: failed program was:" >&5
5127sed 's/^/| /' conftest.$ac_ext >&5
5128
5129  # Broken: fails on valid input.
5130continue
5131fi
5132
5133rm -f conftest.err conftest.$ac_ext
5134
5135  # OK, works on sane cases.  Now check whether nonexistent headers
5136  # can be detected and how.
5137  cat >conftest.$ac_ext <<_ACEOF
5138/* confdefs.h.  */
5139_ACEOF
5140cat confdefs.h >>conftest.$ac_ext
5141cat >>conftest.$ac_ext <<_ACEOF
5142/* end confdefs.h.  */
5143#include <ac_nonexistent.h>
5144_ACEOF
5145if { (ac_try="$ac_cpp conftest.$ac_ext"
5146case "(($ac_try" in
5147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148  *) ac_try_echo=$ac_try;;
5149esac
5150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5152  ac_status=$?
5153  grep -v '^ *+' conftest.er1 >conftest.err
5154  rm -f conftest.er1
5155  cat conftest.err >&5
5156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157  (exit $ac_status); } >/dev/null && {
5158	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5159	 test ! -s conftest.err
5160       }; then
5161  # Broken: success on invalid input.
5162continue
5163else
5164  echo "$as_me: failed program was:" >&5
5165sed 's/^/| /' conftest.$ac_ext >&5
5166
5167  # Passes both tests.
5168ac_preproc_ok=:
5169break
5170fi
5171
5172rm -f conftest.err conftest.$ac_ext
5173
5174done
5175# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5176rm -f conftest.err conftest.$ac_ext
5177if $ac_preproc_ok; then
5178  :
5179else
5180  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5181See \`config.log' for more details." >&5
5182echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5183See \`config.log' for more details." >&2;}
5184   { (exit 1); exit 1; }; }
5185fi
5186
5187ac_ext=c
5188ac_cpp='$CPP $CPPFLAGS'
5189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5191ac_compiler_gnu=$ac_cv_c_compiler_gnu
5192
5193
5194{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5195echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5196if test "${ac_cv_header_stdc+set}" = set; then
5197  echo $ECHO_N "(cached) $ECHO_C" >&6
5198else
5199  cat >conftest.$ac_ext <<_ACEOF
5200/* confdefs.h.  */
5201_ACEOF
5202cat confdefs.h >>conftest.$ac_ext
5203cat >>conftest.$ac_ext <<_ACEOF
5204/* end confdefs.h.  */
5205#include <stdlib.h>
5206#include <stdarg.h>
5207#include <string.h>
5208#include <float.h>
5209
5210int
5211main ()
5212{
5213
5214  ;
5215  return 0;
5216}
5217_ACEOF
5218rm -f conftest.$ac_objext
5219if { (ac_try="$ac_compile"
5220case "(($ac_try" in
5221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222  *) ac_try_echo=$ac_try;;
5223esac
5224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5225  (eval "$ac_compile") 2>conftest.er1
5226  ac_status=$?
5227  grep -v '^ *+' conftest.er1 >conftest.err
5228  rm -f conftest.er1
5229  cat conftest.err >&5
5230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231  (exit $ac_status); } && {
5232	 test -z "$ac_c_werror_flag" ||
5233	 test ! -s conftest.err
5234       } && test -s conftest.$ac_objext; then
5235  ac_cv_header_stdc=yes
5236else
5237  echo "$as_me: failed program was:" >&5
5238sed 's/^/| /' conftest.$ac_ext >&5
5239
5240	ac_cv_header_stdc=no
5241fi
5242
5243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5244
5245if test $ac_cv_header_stdc = yes; then
5246  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5247  cat >conftest.$ac_ext <<_ACEOF
5248/* confdefs.h.  */
5249_ACEOF
5250cat confdefs.h >>conftest.$ac_ext
5251cat >>conftest.$ac_ext <<_ACEOF
5252/* end confdefs.h.  */
5253#include <string.h>
5254
5255_ACEOF
5256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5257  $EGREP "memchr" >/dev/null 2>&1; then
5258  :
5259else
5260  ac_cv_header_stdc=no
5261fi
5262rm -f conftest*
5263
5264fi
5265
5266if test $ac_cv_header_stdc = yes; then
5267  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5268  cat >conftest.$ac_ext <<_ACEOF
5269/* confdefs.h.  */
5270_ACEOF
5271cat confdefs.h >>conftest.$ac_ext
5272cat >>conftest.$ac_ext <<_ACEOF
5273/* end confdefs.h.  */
5274#include <stdlib.h>
5275
5276_ACEOF
5277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5278  $EGREP "free" >/dev/null 2>&1; then
5279  :
5280else
5281  ac_cv_header_stdc=no
5282fi
5283rm -f conftest*
5284
5285fi
5286
5287if test $ac_cv_header_stdc = yes; then
5288  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5289  if test "$cross_compiling" = yes; then
5290  :
5291else
5292  cat >conftest.$ac_ext <<_ACEOF
5293/* confdefs.h.  */
5294_ACEOF
5295cat confdefs.h >>conftest.$ac_ext
5296cat >>conftest.$ac_ext <<_ACEOF
5297/* end confdefs.h.  */
5298#include <ctype.h>
5299#include <stdlib.h>
5300#if ((' ' & 0x0FF) == 0x020)
5301# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5302# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5303#else
5304# define ISLOWER(c) \
5305		   (('a' <= (c) && (c) <= 'i') \
5306		     || ('j' <= (c) && (c) <= 'r') \
5307		     || ('s' <= (c) && (c) <= 'z'))
5308# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5309#endif
5310
5311#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5312int
5313main ()
5314{
5315  int i;
5316  for (i = 0; i < 256; i++)
5317    if (XOR (islower (i), ISLOWER (i))
5318	|| toupper (i) != TOUPPER (i))
5319      return 2;
5320  return 0;
5321}
5322_ACEOF
5323rm -f conftest$ac_exeext
5324if { (ac_try="$ac_link"
5325case "(($ac_try" in
5326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327  *) ac_try_echo=$ac_try;;
5328esac
5329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330  (eval "$ac_link") 2>&5
5331  ac_status=$?
5332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5334  { (case "(($ac_try" in
5335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336  *) ac_try_echo=$ac_try;;
5337esac
5338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339  (eval "$ac_try") 2>&5
5340  ac_status=$?
5341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342  (exit $ac_status); }; }; then
5343  :
5344else
5345  echo "$as_me: program exited with status $ac_status" >&5
5346echo "$as_me: failed program was:" >&5
5347sed 's/^/| /' conftest.$ac_ext >&5
5348
5349( exit $ac_status )
5350ac_cv_header_stdc=no
5351fi
5352rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5353fi
5354
5355
5356fi
5357fi
5358{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5359echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5360if test $ac_cv_header_stdc = yes; then
5361
5362cat >>confdefs.h <<\_ACEOF
5363#define STDC_HEADERS 1
5364_ACEOF
5365
5366fi
5367
5368# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5379		  inttypes.h stdint.h unistd.h
5380do
5381as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5382{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5385  echo $ECHO_N "(cached) $ECHO_C" >&6
5386else
5387  cat >conftest.$ac_ext <<_ACEOF
5388/* confdefs.h.  */
5389_ACEOF
5390cat confdefs.h >>conftest.$ac_ext
5391cat >>conftest.$ac_ext <<_ACEOF
5392/* end confdefs.h.  */
5393$ac_includes_default
5394
5395#include <$ac_header>
5396_ACEOF
5397rm -f conftest.$ac_objext
5398if { (ac_try="$ac_compile"
5399case "(($ac_try" in
5400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401  *) ac_try_echo=$ac_try;;
5402esac
5403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404  (eval "$ac_compile") 2>conftest.er1
5405  ac_status=$?
5406  grep -v '^ *+' conftest.er1 >conftest.err
5407  rm -f conftest.er1
5408  cat conftest.err >&5
5409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410  (exit $ac_status); } && {
5411	 test -z "$ac_c_werror_flag" ||
5412	 test ! -s conftest.err
5413       } && test -s conftest.$ac_objext; then
5414  eval "$as_ac_Header=yes"
5415else
5416  echo "$as_me: failed program was:" >&5
5417sed 's/^/| /' conftest.$ac_ext >&5
5418
5419	eval "$as_ac_Header=no"
5420fi
5421
5422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5423fi
5424ac_res=`eval echo '${'$as_ac_Header'}'`
5425	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5426echo "${ECHO_T}$ac_res" >&6; }
5427if test `eval echo '${'$as_ac_Header'}'` = yes; then
5428  cat >>confdefs.h <<_ACEOF
5429#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5430_ACEOF
5431
5432fi
5433
5434done
5435
5436
5437
5438for ac_header in dlfcn.h
5439do
5440as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5441if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5442  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5445  echo $ECHO_N "(cached) $ECHO_C" >&6
5446fi
5447ac_res=`eval echo '${'$as_ac_Header'}'`
5448	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5449echo "${ECHO_T}$ac_res" >&6; }
5450else
5451  # Is the header compilable?
5452{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5453echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5454cat >conftest.$ac_ext <<_ACEOF
5455/* confdefs.h.  */
5456_ACEOF
5457cat confdefs.h >>conftest.$ac_ext
5458cat >>conftest.$ac_ext <<_ACEOF
5459/* end confdefs.h.  */
5460$ac_includes_default
5461#include <$ac_header>
5462_ACEOF
5463rm -f conftest.$ac_objext
5464if { (ac_try="$ac_compile"
5465case "(($ac_try" in
5466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467  *) ac_try_echo=$ac_try;;
5468esac
5469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470  (eval "$ac_compile") 2>conftest.er1
5471  ac_status=$?
5472  grep -v '^ *+' conftest.er1 >conftest.err
5473  rm -f conftest.er1
5474  cat conftest.err >&5
5475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476  (exit $ac_status); } && {
5477	 test -z "$ac_c_werror_flag" ||
5478	 test ! -s conftest.err
5479       } && test -s conftest.$ac_objext; then
5480  ac_header_compiler=yes
5481else
5482  echo "$as_me: failed program was:" >&5
5483sed 's/^/| /' conftest.$ac_ext >&5
5484
5485	ac_header_compiler=no
5486fi
5487
5488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5490echo "${ECHO_T}$ac_header_compiler" >&6; }
5491
5492# Is the header present?
5493{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5494echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5495cat >conftest.$ac_ext <<_ACEOF
5496/* confdefs.h.  */
5497_ACEOF
5498cat confdefs.h >>conftest.$ac_ext
5499cat >>conftest.$ac_ext <<_ACEOF
5500/* end confdefs.h.  */
5501#include <$ac_header>
5502_ACEOF
5503if { (ac_try="$ac_cpp conftest.$ac_ext"
5504case "(($ac_try" in
5505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506  *) ac_try_echo=$ac_try;;
5507esac
5508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5510  ac_status=$?
5511  grep -v '^ *+' conftest.er1 >conftest.err
5512  rm -f conftest.er1
5513  cat conftest.err >&5
5514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515  (exit $ac_status); } >/dev/null && {
5516	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5517	 test ! -s conftest.err
5518       }; then
5519  ac_header_preproc=yes
5520else
5521  echo "$as_me: failed program was:" >&5
5522sed 's/^/| /' conftest.$ac_ext >&5
5523
5524  ac_header_preproc=no
5525fi
5526
5527rm -f conftest.err conftest.$ac_ext
5528{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5529echo "${ECHO_T}$ac_header_preproc" >&6; }
5530
5531# So?  What about this header?
5532case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5533  yes:no: )
5534    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5535echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5536    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5537echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5538    ac_header_preproc=yes
5539    ;;
5540  no:yes:* )
5541    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5542echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5543    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5544echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5545    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5546echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5547    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5548echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5549    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5550echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5551    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5552echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5553    ( cat <<\_ASBOX
5554## ---------------------------------- ##
5555## Report this to artyomtnk@yahoo.com ##
5556## ---------------------------------- ##
5557_ASBOX
5558     ) | sed "s/^/$as_me: WARNING:     /" >&2
5559    ;;
5560esac
5561{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5562echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5563if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5564  echo $ECHO_N "(cached) $ECHO_C" >&6
5565else
5566  eval "$as_ac_Header=\$ac_header_preproc"
5567fi
5568ac_res=`eval echo '${'$as_ac_Header'}'`
5569	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5570echo "${ECHO_T}$ac_res" >&6; }
5571
5572fi
5573if test `eval echo '${'$as_ac_Header'}'` = yes; then
5574  cat >>confdefs.h <<_ACEOF
5575#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5576_ACEOF
5577
5578fi
5579
5580done
5581
5582
5583
5584if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5585    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5586    (test "X$CXX" != "Xg++"))) ; then
5587  ac_ext=cpp
5588ac_cpp='$CXXCPP $CPPFLAGS'
5589ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5590ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5591ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5592{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5593echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5594if test -z "$CXXCPP"; then
5595  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5596  echo $ECHO_N "(cached) $ECHO_C" >&6
5597else
5598      # Double quotes because CXXCPP needs to be expanded
5599    for CXXCPP in "$CXX -E" "/lib/cpp"
5600    do
5601      ac_preproc_ok=false
5602for ac_cxx_preproc_warn_flag in '' yes
5603do
5604  # Use a header file that comes with gcc, so configuring glibc
5605  # with a fresh cross-compiler works.
5606  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5607  # <limits.h> exists even on freestanding compilers.
5608  # On the NeXT, cc -E runs the code through the compiler's parser,
5609  # not just through cpp. "Syntax error" is here to catch this case.
5610  cat >conftest.$ac_ext <<_ACEOF
5611/* confdefs.h.  */
5612_ACEOF
5613cat confdefs.h >>conftest.$ac_ext
5614cat >>conftest.$ac_ext <<_ACEOF
5615/* end confdefs.h.  */
5616#ifdef __STDC__
5617# include <limits.h>
5618#else
5619# include <assert.h>
5620#endif
5621		     Syntax error
5622_ACEOF
5623if { (ac_try="$ac_cpp conftest.$ac_ext"
5624case "(($ac_try" in
5625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626  *) ac_try_echo=$ac_try;;
5627esac
5628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5630  ac_status=$?
5631  grep -v '^ *+' conftest.er1 >conftest.err
5632  rm -f conftest.er1
5633  cat conftest.err >&5
5634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635  (exit $ac_status); } >/dev/null && {
5636	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5637	 test ! -s conftest.err
5638       }; then
5639  :
5640else
5641  echo "$as_me: failed program was:" >&5
5642sed 's/^/| /' conftest.$ac_ext >&5
5643
5644  # Broken: fails on valid input.
5645continue
5646fi
5647
5648rm -f conftest.err conftest.$ac_ext
5649
5650  # OK, works on sane cases.  Now check whether nonexistent headers
5651  # can be detected and how.
5652  cat >conftest.$ac_ext <<_ACEOF
5653/* confdefs.h.  */
5654_ACEOF
5655cat confdefs.h >>conftest.$ac_ext
5656cat >>conftest.$ac_ext <<_ACEOF
5657/* end confdefs.h.  */
5658#include <ac_nonexistent.h>
5659_ACEOF
5660if { (ac_try="$ac_cpp conftest.$ac_ext"
5661case "(($ac_try" in
5662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663  *) ac_try_echo=$ac_try;;
5664esac
5665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5666  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5667  ac_status=$?
5668  grep -v '^ *+' conftest.er1 >conftest.err
5669  rm -f conftest.er1
5670  cat conftest.err >&5
5671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672  (exit $ac_status); } >/dev/null && {
5673	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5674	 test ! -s conftest.err
5675       }; then
5676  # Broken: success on invalid input.
5677continue
5678else
5679  echo "$as_me: failed program was:" >&5
5680sed 's/^/| /' conftest.$ac_ext >&5
5681
5682  # Passes both tests.
5683ac_preproc_ok=:
5684break
5685fi
5686
5687rm -f conftest.err conftest.$ac_ext
5688
5689done
5690# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5691rm -f conftest.err conftest.$ac_ext
5692if $ac_preproc_ok; then
5693  break
5694fi
5695
5696    done
5697    ac_cv_prog_CXXCPP=$CXXCPP
5698
5699fi
5700  CXXCPP=$ac_cv_prog_CXXCPP
5701else
5702  ac_cv_prog_CXXCPP=$CXXCPP
5703fi
5704{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5705echo "${ECHO_T}$CXXCPP" >&6; }
5706ac_preproc_ok=false
5707for ac_cxx_preproc_warn_flag in '' yes
5708do
5709  # Use a header file that comes with gcc, so configuring glibc
5710  # with a fresh cross-compiler works.
5711  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5712  # <limits.h> exists even on freestanding compilers.
5713  # On the NeXT, cc -E runs the code through the compiler's parser,
5714  # not just through cpp. "Syntax error" is here to catch this case.
5715  cat >conftest.$ac_ext <<_ACEOF
5716/* confdefs.h.  */
5717_ACEOF
5718cat confdefs.h >>conftest.$ac_ext
5719cat >>conftest.$ac_ext <<_ACEOF
5720/* end confdefs.h.  */
5721#ifdef __STDC__
5722# include <limits.h>
5723#else
5724# include <assert.h>
5725#endif
5726		     Syntax error
5727_ACEOF
5728if { (ac_try="$ac_cpp conftest.$ac_ext"
5729case "(($ac_try" in
5730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731  *) ac_try_echo=$ac_try;;
5732esac
5733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5735  ac_status=$?
5736  grep -v '^ *+' conftest.er1 >conftest.err
5737  rm -f conftest.er1
5738  cat conftest.err >&5
5739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740  (exit $ac_status); } >/dev/null && {
5741	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5742	 test ! -s conftest.err
5743       }; then
5744  :
5745else
5746  echo "$as_me: failed program was:" >&5
5747sed 's/^/| /' conftest.$ac_ext >&5
5748
5749  # Broken: fails on valid input.
5750continue
5751fi
5752
5753rm -f conftest.err conftest.$ac_ext
5754
5755  # OK, works on sane cases.  Now check whether nonexistent headers
5756  # can be detected and how.
5757  cat >conftest.$ac_ext <<_ACEOF
5758/* confdefs.h.  */
5759_ACEOF
5760cat confdefs.h >>conftest.$ac_ext
5761cat >>conftest.$ac_ext <<_ACEOF
5762/* end confdefs.h.  */
5763#include <ac_nonexistent.h>
5764_ACEOF
5765if { (ac_try="$ac_cpp conftest.$ac_ext"
5766case "(($ac_try" in
5767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5768  *) ac_try_echo=$ac_try;;
5769esac
5770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5771  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5772  ac_status=$?
5773  grep -v '^ *+' conftest.er1 >conftest.err
5774  rm -f conftest.er1
5775  cat conftest.err >&5
5776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777  (exit $ac_status); } >/dev/null && {
5778	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5779	 test ! -s conftest.err
5780       }; then
5781  # Broken: success on invalid input.
5782continue
5783else
5784  echo "$as_me: failed program was:" >&5
5785sed 's/^/| /' conftest.$ac_ext >&5
5786
5787  # Passes both tests.
5788ac_preproc_ok=:
5789break
5790fi
5791
5792rm -f conftest.err conftest.$ac_ext
5793
5794done
5795# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5796rm -f conftest.err conftest.$ac_ext
5797if $ac_preproc_ok; then
5798  :
5799else
5800  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5801See \`config.log' for more details." >&5
5802echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5803See \`config.log' for more details." >&2;}
5804   { (exit 1); exit 1; }; }
5805fi
5806
5807ac_ext=cpp
5808ac_cpp='$CXXCPP $CPPFLAGS'
5809ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5810ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5811ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5812
5813fi
5814
5815
5816ac_ext=f
5817ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5818ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5820if test -n "$ac_tool_prefix"; then
5821  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 pgf95 lf95 ftn
5822  do
5823    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5824set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5827if test "${ac_cv_prog_F77+set}" = set; then
5828  echo $ECHO_N "(cached) $ECHO_C" >&6
5829else
5830  if test -n "$F77"; then
5831  ac_cv_prog_F77="$F77" # Let the user override the test.
5832else
5833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834for as_dir in $PATH
5835do
5836  IFS=$as_save_IFS
5837  test -z "$as_dir" && as_dir=.
5838  for ac_exec_ext in '' $ac_executable_extensions; do
5839  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5840    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5841    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5842    break 2
5843  fi
5844done
5845done
5846IFS=$as_save_IFS
5847
5848fi
5849fi
5850F77=$ac_cv_prog_F77
5851if test -n "$F77"; then
5852  { echo "$as_me:$LINENO: result: $F77" >&5
5853echo "${ECHO_T}$F77" >&6; }
5854else
5855  { echo "$as_me:$LINENO: result: no" >&5
5856echo "${ECHO_T}no" >&6; }
5857fi
5858
5859
5860    test -n "$F77" && break
5861  done
5862fi
5863if test -z "$F77"; then
5864  ac_ct_F77=$F77
5865  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 pgf95 lf95 ftn
5866do
5867  # Extract the first word of "$ac_prog", so it can be a program name with args.
5868set dummy $ac_prog; ac_word=$2
5869{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5871if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5872  echo $ECHO_N "(cached) $ECHO_C" >&6
5873else
5874  if test -n "$ac_ct_F77"; then
5875  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5876else
5877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878for as_dir in $PATH
5879do
5880  IFS=$as_save_IFS
5881  test -z "$as_dir" && as_dir=.
5882  for ac_exec_ext in '' $ac_executable_extensions; do
5883  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5884    ac_cv_prog_ac_ct_F77="$ac_prog"
5885    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886    break 2
5887  fi
5888done
5889done
5890IFS=$as_save_IFS
5891
5892fi
5893fi
5894ac_ct_F77=$ac_cv_prog_ac_ct_F77
5895if test -n "$ac_ct_F77"; then
5896  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5897echo "${ECHO_T}$ac_ct_F77" >&6; }
5898else
5899  { echo "$as_me:$LINENO: result: no" >&5
5900echo "${ECHO_T}no" >&6; }
5901fi
5902
5903
5904  test -n "$ac_ct_F77" && break
5905done
5906
5907  if test "x$ac_ct_F77" = x; then
5908    F77=""
5909  else
5910    case $cross_compiling:$ac_tool_warned in
5911yes:)
5912{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5913whose name does not start with the host triplet.  If you think this
5914configuration is useful to you, please write to autoconf@gnu.org." >&5
5915echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5916whose name does not start with the host triplet.  If you think this
5917configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5918ac_tool_warned=yes ;;
5919esac
5920    F77=$ac_ct_F77
5921  fi
5922fi
5923
5924
5925# Provide some information about the compiler.
5926echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5927ac_compiler=`set X $ac_compile; echo $2`
5928{ (ac_try="$ac_compiler --version >&5"
5929case "(($ac_try" in
5930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931  *) ac_try_echo=$ac_try;;
5932esac
5933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934  (eval "$ac_compiler --version >&5") 2>&5
5935  ac_status=$?
5936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937  (exit $ac_status); }
5938{ (ac_try="$ac_compiler -v >&5"
5939case "(($ac_try" in
5940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941  *) ac_try_echo=$ac_try;;
5942esac
5943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944  (eval "$ac_compiler -v >&5") 2>&5
5945  ac_status=$?
5946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947  (exit $ac_status); }
5948{ (ac_try="$ac_compiler -V >&5"
5949case "(($ac_try" in
5950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951  *) ac_try_echo=$ac_try;;
5952esac
5953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954  (eval "$ac_compiler -V >&5") 2>&5
5955  ac_status=$?
5956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957  (exit $ac_status); }
5958rm -f a.out
5959
5960# If we don't use `.F' as extension, the preprocessor is not run on the
5961# input file.  (Note that this only needs to work for GNU compilers.)
5962ac_save_ext=$ac_ext
5963ac_ext=F
5964{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5965echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5966if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5967  echo $ECHO_N "(cached) $ECHO_C" >&6
5968else
5969  cat >conftest.$ac_ext <<_ACEOF
5970      program main
5971#ifndef __GNUC__
5972       choke me
5973#endif
5974
5975      end
5976_ACEOF
5977rm -f conftest.$ac_objext
5978if { (ac_try="$ac_compile"
5979case "(($ac_try" in
5980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981  *) ac_try_echo=$ac_try;;
5982esac
5983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984  (eval "$ac_compile") 2>conftest.er1
5985  ac_status=$?
5986  grep -v '^ *+' conftest.er1 >conftest.err
5987  rm -f conftest.er1
5988  cat conftest.err >&5
5989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990  (exit $ac_status); } && {
5991	 test -z "$ac_f77_werror_flag" ||
5992	 test ! -s conftest.err
5993       } && test -s conftest.$ac_objext; then
5994  ac_compiler_gnu=yes
5995else
5996  echo "$as_me: failed program was:" >&5
5997sed 's/^/| /' conftest.$ac_ext >&5
5998
5999	ac_compiler_gnu=no
6000fi
6001
6002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6003ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6004
6005fi
6006{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6007echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6008ac_ext=$ac_save_ext
6009ac_test_FFLAGS=${FFLAGS+set}
6010ac_save_FFLAGS=$FFLAGS
6011FFLAGS=
6012{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6013echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6014if test "${ac_cv_prog_f77_g+set}" = set; then
6015  echo $ECHO_N "(cached) $ECHO_C" >&6
6016else
6017  FFLAGS=-g
6018cat >conftest.$ac_ext <<_ACEOF
6019      program main
6020
6021      end
6022_ACEOF
6023rm -f conftest.$ac_objext
6024if { (ac_try="$ac_compile"
6025case "(($ac_try" in
6026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027  *) ac_try_echo=$ac_try;;
6028esac
6029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030  (eval "$ac_compile") 2>conftest.er1
6031  ac_status=$?
6032  grep -v '^ *+' conftest.er1 >conftest.err
6033  rm -f conftest.er1
6034  cat conftest.err >&5
6035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036  (exit $ac_status); } && {
6037	 test -z "$ac_f77_werror_flag" ||
6038	 test ! -s conftest.err
6039       } && test -s conftest.$ac_objext; then
6040  ac_cv_prog_f77_g=yes
6041else
6042  echo "$as_me: failed program was:" >&5
6043sed 's/^/| /' conftest.$ac_ext >&5
6044
6045	ac_cv_prog_f77_g=no
6046fi
6047
6048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049
6050fi
6051{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6052echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6053if test "$ac_test_FFLAGS" = set; then
6054  FFLAGS=$ac_save_FFLAGS
6055elif test $ac_cv_prog_f77_g = yes; then
6056  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6057    FFLAGS="-g -O2"
6058  else
6059    FFLAGS="-g"
6060  fi
6061else
6062  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6063    FFLAGS="-O2"
6064  else
6065    FFLAGS=
6066  fi
6067fi
6068
6069G77=`test $ac_compiler_gnu = yes && echo yes`
6070ac_ext=c
6071ac_cpp='$CPP $CPPFLAGS'
6072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6074ac_compiler_gnu=$ac_cv_c_compiler_gnu
6075
6076
6077
6078# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6079# find the maximum length of command line arguments
6080{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6081echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6082if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6083  echo $ECHO_N "(cached) $ECHO_C" >&6
6084else
6085    i=0
6086  teststring="ABCD"
6087
6088  case $build_os in
6089  msdosdjgpp*)
6090    # On DJGPP, this test can blow up pretty badly due to problems in libc
6091    # (any single argument exceeding 2000 bytes causes a buffer overrun
6092    # during glob expansion).  Even if it were fixed, the result of this
6093    # check would be larger than it should be.
6094    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6095    ;;
6096
6097  gnu*)
6098    # Under GNU Hurd, this test is not required because there is
6099    # no limit to the length of command line arguments.
6100    # Libtool will interpret -1 as no limit whatsoever
6101    lt_cv_sys_max_cmd_len=-1;
6102    ;;
6103
6104  cygwin* | mingw*)
6105    # On Win9x/ME, this test blows up -- it succeeds, but takes
6106    # about 5 minutes as the teststring grows exponentially.
6107    # Worse, since 9x/ME are not pre-emptively multitasking,
6108    # you end up with a "frozen" computer, even though with patience
6109    # the test eventually succeeds (with a max line length of 256k).
6110    # Instead, let's just punt: use the minimum linelength reported by
6111    # all of the supported platforms: 8192 (on NT/2K/XP).
6112    lt_cv_sys_max_cmd_len=8192;
6113    ;;
6114
6115  amigaos*)
6116    # On AmigaOS with pdksh, this test takes hours, literally.
6117    # So we just punt and use a minimum line length of 8192.
6118    lt_cv_sys_max_cmd_len=8192;
6119    ;;
6120
6121  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6122    # This has been around since 386BSD, at least.  Likely further.
6123    if test -x /sbin/sysctl; then
6124      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6125    elif test -x /usr/sbin/sysctl; then
6126      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6127    else
6128      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6129    fi
6130    # And add a safety zone
6131    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6132    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6133    ;;
6134
6135  interix*)
6136    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6137    lt_cv_sys_max_cmd_len=196608
6138    ;;
6139
6140  osf*)
6141    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6142    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6143    # nice to cause kernel panics so lets avoid the loop below.
6144    # First set a reasonable default.
6145    lt_cv_sys_max_cmd_len=16384
6146    #
6147    if test -x /sbin/sysconfig; then
6148      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6149        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6150      esac
6151    fi
6152    ;;
6153  sco3.2v5*)
6154    lt_cv_sys_max_cmd_len=102400
6155    ;;
6156  sysv5* | sco5v6* | sysv4.2uw2*)
6157    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6158    if test -n "$kargmax"; then
6159      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6160    else
6161      lt_cv_sys_max_cmd_len=32768
6162    fi
6163    ;;
6164  *)
6165    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6166    if test -n "$lt_cv_sys_max_cmd_len"; then
6167      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6168      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6169    else
6170      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6171      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6172	       = "XX$teststring") >/dev/null 2>&1 &&
6173	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6174	      lt_cv_sys_max_cmd_len=$new_result &&
6175	      test $i != 17 # 1/2 MB should be enough
6176      do
6177        i=`expr $i + 1`
6178        teststring=$teststring$teststring
6179      done
6180      teststring=
6181      # Add a significant safety factor because C++ compilers can tack on massive
6182      # amounts of additional arguments before passing them to the linker.
6183      # It appears as though 1/2 is a usable value.
6184      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6185    fi
6186    ;;
6187  esac
6188
6189fi
6190
6191if test -n $lt_cv_sys_max_cmd_len ; then
6192  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6193echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6194else
6195  { echo "$as_me:$LINENO: result: none" >&5
6196echo "${ECHO_T}none" >&6; }
6197fi
6198
6199
6200
6201
6202
6203# Check for command to grab the raw symbol name followed by C symbol from nm.
6204{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6205echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6206if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6207  echo $ECHO_N "(cached) $ECHO_C" >&6
6208else
6209
6210# These are sane defaults that work on at least a few old systems.
6211# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6212
6213# Character class describing NM global symbol codes.
6214symcode='[BCDEGRST]'
6215
6216# Regexp to match symbols that can be accessed directly from C.
6217sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6218
6219# Transform an extracted symbol line into a proper C declaration
6220lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6221
6222# Transform an extracted symbol line into symbol name and symbol address
6223lt_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'"
6224
6225# Define system-specific variables.
6226case $host_os in
6227aix*)
6228  symcode='[BCDT]'
6229  ;;
6230cygwin* | mingw* | pw32*)
6231  symcode='[ABCDGISTW]'
6232  ;;
6233hpux*) # Its linker distinguishes data from code symbols
6234  if test "$host_cpu" = ia64; then
6235    symcode='[ABCDEGRST]'
6236  fi
6237  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6238  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'"
6239  ;;
6240linux* | k*bsd*-gnu)
6241  if test "$host_cpu" = ia64; then
6242    symcode='[ABCDGIRSTW]'
6243    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6244    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'"
6245  fi
6246  ;;
6247irix* | nonstopux*)
6248  symcode='[BCDEGRST]'
6249  ;;
6250osf*)
6251  symcode='[BCDEGQRST]'
6252  ;;
6253solaris*)
6254  symcode='[BDRT]'
6255  ;;
6256sco3.2v5*)
6257  symcode='[DT]'
6258  ;;
6259sysv4.2uw2*)
6260  symcode='[DT]'
6261  ;;
6262sysv5* | sco5v6* | unixware* | OpenUNIX*)
6263  symcode='[ABDT]'
6264  ;;
6265sysv4)
6266  symcode='[DFNSTU]'
6267  ;;
6268esac
6269
6270# Handle CRLF in mingw tool chain
6271opt_cr=
6272case $build_os in
6273mingw*)
6274  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6275  ;;
6276esac
6277
6278# If we're using GNU nm, then use its standard symbol codes.
6279case `$NM -V 2>&1` in
6280*GNU* | *'with BFD'*)
6281  symcode='[ABCDGIRSTW]' ;;
6282esac
6283
6284# Try without a prefix undercore, then with it.
6285for ac_symprfx in "" "_"; do
6286
6287  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6288  symxfrm="\\1 $ac_symprfx\\2 \\2"
6289
6290  # Write the raw and C identifiers.
6291  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6292
6293  # Check to see that the pipe works correctly.
6294  pipe_works=no
6295
6296  rm -f conftest*
6297  cat > conftest.$ac_ext <<EOF
6298#ifdef __cplusplus
6299extern "C" {
6300#endif
6301char nm_test_var;
6302void nm_test_func(){}
6303#ifdef __cplusplus
6304}
6305#endif
6306int main(){nm_test_var='a';nm_test_func();return(0);}
6307EOF
6308
6309  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6310  (eval $ac_compile) 2>&5
6311  ac_status=$?
6312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313  (exit $ac_status); }; then
6314    # Now try to grab the symbols.
6315    nlist=conftest.nm
6316    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6317  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6318  ac_status=$?
6319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320  (exit $ac_status); } && test -s "$nlist"; then
6321      # Try sorting and uniquifying the output.
6322      if sort "$nlist" | uniq > "$nlist"T; then
6323	mv -f "$nlist"T "$nlist"
6324      else
6325	rm -f "$nlist"T
6326      fi
6327
6328      # Make sure that we snagged all the symbols we need.
6329      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6330	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6331	  cat <<EOF > conftest.$ac_ext
6332#ifdef __cplusplus
6333extern "C" {
6334#endif
6335
6336EOF
6337	  # Now generate the symbol file.
6338	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6339
6340	  cat <<EOF >> conftest.$ac_ext
6341#if defined (__STDC__) && __STDC__
6342# define lt_ptr_t void *
6343#else
6344# define lt_ptr_t char *
6345# define const
6346#endif
6347
6348/* The mapping between symbol names and symbols. */
6349const struct {
6350  const char *name;
6351  lt_ptr_t address;
6352}
6353lt_preloaded_symbols[] =
6354{
6355EOF
6356	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6357	  cat <<\EOF >> conftest.$ac_ext
6358  {0, (lt_ptr_t) 0}
6359};
6360
6361#ifdef __cplusplus
6362}
6363#endif
6364EOF
6365	  # Now try linking the two files.
6366	  mv conftest.$ac_objext conftstm.$ac_objext
6367	  lt_save_LIBS="$LIBS"
6368	  lt_save_CFLAGS="$CFLAGS"
6369	  LIBS="conftstm.$ac_objext"
6370	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6371	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6372  (eval $ac_link) 2>&5
6373  ac_status=$?
6374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6376	    pipe_works=yes
6377	  fi
6378	  LIBS="$lt_save_LIBS"
6379	  CFLAGS="$lt_save_CFLAGS"
6380	else
6381	  echo "cannot find nm_test_func in $nlist" >&5
6382	fi
6383      else
6384	echo "cannot find nm_test_var in $nlist" >&5
6385      fi
6386    else
6387      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6388    fi
6389  else
6390    echo "$progname: failed program was:" >&5
6391    cat conftest.$ac_ext >&5
6392  fi
6393  rm -rf conftest* conftst*
6394
6395  # Do not use the global_symbol_pipe unless it works.
6396  if test "$pipe_works" = yes; then
6397    break
6398  else
6399    lt_cv_sys_global_symbol_pipe=
6400  fi
6401done
6402
6403fi
6404
6405if test -z "$lt_cv_sys_global_symbol_pipe"; then
6406  lt_cv_sys_global_symbol_to_cdecl=
6407fi
6408if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6409  { echo "$as_me:$LINENO: result: failed" >&5
6410echo "${ECHO_T}failed" >&6; }
6411else
6412  { echo "$as_me:$LINENO: result: ok" >&5
6413echo "${ECHO_T}ok" >&6; }
6414fi
6415
6416{ echo "$as_me:$LINENO: checking for objdir" >&5
6417echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6418if test "${lt_cv_objdir+set}" = set; then
6419  echo $ECHO_N "(cached) $ECHO_C" >&6
6420else
6421  rm -f .libs 2>/dev/null
6422mkdir .libs 2>/dev/null
6423if test -d .libs; then
6424  lt_cv_objdir=.libs
6425else
6426  # MS-DOS does not allow filenames that begin with a dot.
6427  lt_cv_objdir=_libs
6428fi
6429rmdir .libs 2>/dev/null
6430fi
6431{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6432echo "${ECHO_T}$lt_cv_objdir" >&6; }
6433objdir=$lt_cv_objdir
6434
6435
6436
6437
6438
6439case $host_os in
6440aix3*)
6441  # AIX sometimes has problems with the GCC collect2 program.  For some
6442  # reason, if we set the COLLECT_NAMES environment variable, the problems
6443  # vanish in a puff of smoke.
6444  if test "X${COLLECT_NAMES+set}" != Xset; then
6445    COLLECT_NAMES=
6446    export COLLECT_NAMES
6447  fi
6448  ;;
6449esac
6450
6451# Sed substitution that helps us do robust quoting.  It backslashifies
6452# metacharacters that are still active within double-quoted strings.
6453Xsed='sed -e 1s/^X//'
6454sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6455
6456# Same as above, but do not quote variable references.
6457double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6458
6459# Sed substitution to delay expansion of an escaped shell variable in a
6460# double_quote_subst'ed string.
6461delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6462
6463# Sed substitution to avoid accidental globbing in evaled expressions
6464no_glob_subst='s/\*/\\\*/g'
6465
6466# Constants:
6467rm="rm -f"
6468
6469# Global variables:
6470default_ofile=libtool
6471can_build_shared=yes
6472
6473# All known linkers require a `.a' archive for static linking (except MSVC,
6474# which needs '.lib').
6475libext=a
6476ltmain="$ac_aux_dir/ltmain.sh"
6477ofile="$default_ofile"
6478with_gnu_ld="$lt_cv_prog_gnu_ld"
6479
6480if test -n "$ac_tool_prefix"; then
6481  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6482set dummy ${ac_tool_prefix}ar; ac_word=$2
6483{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6485if test "${ac_cv_prog_AR+set}" = set; then
6486  echo $ECHO_N "(cached) $ECHO_C" >&6
6487else
6488  if test -n "$AR"; then
6489  ac_cv_prog_AR="$AR" # Let the user override the test.
6490else
6491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492for as_dir in $PATH
6493do
6494  IFS=$as_save_IFS
6495  test -z "$as_dir" && as_dir=.
6496  for ac_exec_ext in '' $ac_executable_extensions; do
6497  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498    ac_cv_prog_AR="${ac_tool_prefix}ar"
6499    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6500    break 2
6501  fi
6502done
6503done
6504IFS=$as_save_IFS
6505
6506fi
6507fi
6508AR=$ac_cv_prog_AR
6509if test -n "$AR"; then
6510  { echo "$as_me:$LINENO: result: $AR" >&5
6511echo "${ECHO_T}$AR" >&6; }
6512else
6513  { echo "$as_me:$LINENO: result: no" >&5
6514echo "${ECHO_T}no" >&6; }
6515fi
6516
6517
6518fi
6519if test -z "$ac_cv_prog_AR"; then
6520  ac_ct_AR=$AR
6521  # Extract the first word of "ar", so it can be a program name with args.
6522set dummy ar; ac_word=$2
6523{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6525if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6526  echo $ECHO_N "(cached) $ECHO_C" >&6
6527else
6528  if test -n "$ac_ct_AR"; then
6529  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6530else
6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532for as_dir in $PATH
6533do
6534  IFS=$as_save_IFS
6535  test -z "$as_dir" && as_dir=.
6536  for ac_exec_ext in '' $ac_executable_extensions; do
6537  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538    ac_cv_prog_ac_ct_AR="ar"
6539    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540    break 2
6541  fi
6542done
6543done
6544IFS=$as_save_IFS
6545
6546fi
6547fi
6548ac_ct_AR=$ac_cv_prog_ac_ct_AR
6549if test -n "$ac_ct_AR"; then
6550  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6551echo "${ECHO_T}$ac_ct_AR" >&6; }
6552else
6553  { echo "$as_me:$LINENO: result: no" >&5
6554echo "${ECHO_T}no" >&6; }
6555fi
6556
6557  if test "x$ac_ct_AR" = x; then
6558    AR="false"
6559  else
6560    case $cross_compiling:$ac_tool_warned in
6561yes:)
6562{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6563whose name does not start with the host triplet.  If you think this
6564configuration is useful to you, please write to autoconf@gnu.org." >&5
6565echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6566whose name does not start with the host triplet.  If you think this
6567configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6568ac_tool_warned=yes ;;
6569esac
6570    AR=$ac_ct_AR
6571  fi
6572else
6573  AR="$ac_cv_prog_AR"
6574fi
6575
6576if test -n "$ac_tool_prefix"; then
6577  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6578set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6579{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6581if test "${ac_cv_prog_RANLIB+set}" = set; then
6582  echo $ECHO_N "(cached) $ECHO_C" >&6
6583else
6584  if test -n "$RANLIB"; then
6585  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6586else
6587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588for as_dir in $PATH
6589do
6590  IFS=$as_save_IFS
6591  test -z "$as_dir" && as_dir=.
6592  for ac_exec_ext in '' $ac_executable_extensions; do
6593  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6594    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6595    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6596    break 2
6597  fi
6598done
6599done
6600IFS=$as_save_IFS
6601
6602fi
6603fi
6604RANLIB=$ac_cv_prog_RANLIB
6605if test -n "$RANLIB"; then
6606  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6607echo "${ECHO_T}$RANLIB" >&6; }
6608else
6609  { echo "$as_me:$LINENO: result: no" >&5
6610echo "${ECHO_T}no" >&6; }
6611fi
6612
6613
6614fi
6615if test -z "$ac_cv_prog_RANLIB"; then
6616  ac_ct_RANLIB=$RANLIB
6617  # Extract the first word of "ranlib", so it can be a program name with args.
6618set dummy ranlib; ac_word=$2
6619{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6621if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6622  echo $ECHO_N "(cached) $ECHO_C" >&6
6623else
6624  if test -n "$ac_ct_RANLIB"; then
6625  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6626else
6627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628for as_dir in $PATH
6629do
6630  IFS=$as_save_IFS
6631  test -z "$as_dir" && as_dir=.
6632  for ac_exec_ext in '' $ac_executable_extensions; do
6633  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6634    ac_cv_prog_ac_ct_RANLIB="ranlib"
6635    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6636    break 2
6637  fi
6638done
6639done
6640IFS=$as_save_IFS
6641
6642fi
6643fi
6644ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6645if test -n "$ac_ct_RANLIB"; then
6646  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6647echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6648else
6649  { echo "$as_me:$LINENO: result: no" >&5
6650echo "${ECHO_T}no" >&6; }
6651fi
6652
6653  if test "x$ac_ct_RANLIB" = x; then
6654    RANLIB=":"
6655  else
6656    case $cross_compiling:$ac_tool_warned in
6657yes:)
6658{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6659whose name does not start with the host triplet.  If you think this
6660configuration is useful to you, please write to autoconf@gnu.org." >&5
6661echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6662whose name does not start with the host triplet.  If you think this
6663configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6664ac_tool_warned=yes ;;
6665esac
6666    RANLIB=$ac_ct_RANLIB
6667  fi
6668else
6669  RANLIB="$ac_cv_prog_RANLIB"
6670fi
6671
6672if test -n "$ac_tool_prefix"; then
6673  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6674set dummy ${ac_tool_prefix}strip; ac_word=$2
6675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677if test "${ac_cv_prog_STRIP+set}" = set; then
6678  echo $ECHO_N "(cached) $ECHO_C" >&6
6679else
6680  if test -n "$STRIP"; then
6681  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6682else
6683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684for as_dir in $PATH
6685do
6686  IFS=$as_save_IFS
6687  test -z "$as_dir" && as_dir=.
6688  for ac_exec_ext in '' $ac_executable_extensions; do
6689  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6691    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692    break 2
6693  fi
6694done
6695done
6696IFS=$as_save_IFS
6697
6698fi
6699fi
6700STRIP=$ac_cv_prog_STRIP
6701if test -n "$STRIP"; then
6702  { echo "$as_me:$LINENO: result: $STRIP" >&5
6703echo "${ECHO_T}$STRIP" >&6; }
6704else
6705  { echo "$as_me:$LINENO: result: no" >&5
6706echo "${ECHO_T}no" >&6; }
6707fi
6708
6709
6710fi
6711if test -z "$ac_cv_prog_STRIP"; then
6712  ac_ct_STRIP=$STRIP
6713  # Extract the first word of "strip", so it can be a program name with args.
6714set dummy strip; ac_word=$2
6715{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6717if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6718  echo $ECHO_N "(cached) $ECHO_C" >&6
6719else
6720  if test -n "$ac_ct_STRIP"; then
6721  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6722else
6723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724for as_dir in $PATH
6725do
6726  IFS=$as_save_IFS
6727  test -z "$as_dir" && as_dir=.
6728  for ac_exec_ext in '' $ac_executable_extensions; do
6729  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6730    ac_cv_prog_ac_ct_STRIP="strip"
6731    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732    break 2
6733  fi
6734done
6735done
6736IFS=$as_save_IFS
6737
6738fi
6739fi
6740ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6741if test -n "$ac_ct_STRIP"; then
6742  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6743echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6744else
6745  { echo "$as_me:$LINENO: result: no" >&5
6746echo "${ECHO_T}no" >&6; }
6747fi
6748
6749  if test "x$ac_ct_STRIP" = x; then
6750    STRIP=":"
6751  else
6752    case $cross_compiling:$ac_tool_warned in
6753yes:)
6754{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6755whose name does not start with the host triplet.  If you think this
6756configuration is useful to you, please write to autoconf@gnu.org." >&5
6757echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6758whose name does not start with the host triplet.  If you think this
6759configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6760ac_tool_warned=yes ;;
6761esac
6762    STRIP=$ac_ct_STRIP
6763  fi
6764else
6765  STRIP="$ac_cv_prog_STRIP"
6766fi
6767
6768
6769old_CC="$CC"
6770old_CFLAGS="$CFLAGS"
6771
6772# Set sane defaults for various variables
6773test -z "$AR" && AR=ar
6774test -z "$AR_FLAGS" && AR_FLAGS=cru
6775test -z "$AS" && AS=as
6776test -z "$CC" && CC=cc
6777test -z "$LTCC" && LTCC=$CC
6778test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6779test -z "$DLLTOOL" && DLLTOOL=dlltool
6780test -z "$LD" && LD=ld
6781test -z "$LN_S" && LN_S="ln -s"
6782test -z "$MAGIC_CMD" && MAGIC_CMD=file
6783test -z "$NM" && NM=nm
6784test -z "$SED" && SED=sed
6785test -z "$OBJDUMP" && OBJDUMP=objdump
6786test -z "$RANLIB" && RANLIB=:
6787test -z "$STRIP" && STRIP=:
6788test -z "$ac_objext" && ac_objext=o
6789
6790# Determine commands to create old-style static archives.
6791old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6792old_postinstall_cmds='chmod 644 $oldlib'
6793old_postuninstall_cmds=
6794
6795if test -n "$RANLIB"; then
6796  case $host_os in
6797  openbsd*)
6798    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6799    ;;
6800  *)
6801    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6802    ;;
6803  esac
6804  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6805fi
6806
6807for cc_temp in $compiler""; do
6808  case $cc_temp in
6809    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6810    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6811    \-*) ;;
6812    *) break;;
6813  esac
6814done
6815cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6816
6817
6818# Only perform the check for file, if the check method requires it
6819case $deplibs_check_method in
6820file_magic*)
6821  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6822    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6823echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6824if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6825  echo $ECHO_N "(cached) $ECHO_C" >&6
6826else
6827  case $MAGIC_CMD in
6828[\\/*] |  ?:[\\/]*)
6829  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6830  ;;
6831*)
6832  lt_save_MAGIC_CMD="$MAGIC_CMD"
6833  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6834  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6835  for ac_dir in $ac_dummy; do
6836    IFS="$lt_save_ifs"
6837    test -z "$ac_dir" && ac_dir=.
6838    if test -f $ac_dir/${ac_tool_prefix}file; then
6839      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6840      if test -n "$file_magic_test_file"; then
6841	case $deplibs_check_method in
6842	"file_magic "*)
6843	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6844	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6845	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6846	    $EGREP "$file_magic_regex" > /dev/null; then
6847	    :
6848	  else
6849	    cat <<EOF 1>&2
6850
6851*** Warning: the command libtool uses to detect shared libraries,
6852*** $file_magic_cmd, produces output that libtool cannot recognize.
6853*** The result is that libtool may fail to recognize shared libraries
6854*** as such.  This will affect the creation of libtool libraries that
6855*** depend on shared libraries, but programs linked with such libtool
6856*** libraries will work regardless of this problem.  Nevertheless, you
6857*** may want to report the problem to your system manager and/or to
6858*** bug-libtool@gnu.org
6859
6860EOF
6861	  fi ;;
6862	esac
6863      fi
6864      break
6865    fi
6866  done
6867  IFS="$lt_save_ifs"
6868  MAGIC_CMD="$lt_save_MAGIC_CMD"
6869  ;;
6870esac
6871fi
6872
6873MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6874if test -n "$MAGIC_CMD"; then
6875  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6876echo "${ECHO_T}$MAGIC_CMD" >&6; }
6877else
6878  { echo "$as_me:$LINENO: result: no" >&5
6879echo "${ECHO_T}no" >&6; }
6880fi
6881
6882if test -z "$lt_cv_path_MAGIC_CMD"; then
6883  if test -n "$ac_tool_prefix"; then
6884    { echo "$as_me:$LINENO: checking for file" >&5
6885echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6886if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6887  echo $ECHO_N "(cached) $ECHO_C" >&6
6888else
6889  case $MAGIC_CMD in
6890[\\/*] |  ?:[\\/]*)
6891  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6892  ;;
6893*)
6894  lt_save_MAGIC_CMD="$MAGIC_CMD"
6895  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6896  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6897  for ac_dir in $ac_dummy; do
6898    IFS="$lt_save_ifs"
6899    test -z "$ac_dir" && ac_dir=.
6900    if test -f $ac_dir/file; then
6901      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6902      if test -n "$file_magic_test_file"; then
6903	case $deplibs_check_method in
6904	"file_magic "*)
6905	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6906	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6907	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6908	    $EGREP "$file_magic_regex" > /dev/null; then
6909	    :
6910	  else
6911	    cat <<EOF 1>&2
6912
6913*** Warning: the command libtool uses to detect shared libraries,
6914*** $file_magic_cmd, produces output that libtool cannot recognize.
6915*** The result is that libtool may fail to recognize shared libraries
6916*** as such.  This will affect the creation of libtool libraries that
6917*** depend on shared libraries, but programs linked with such libtool
6918*** libraries will work regardless of this problem.  Nevertheless, you
6919*** may want to report the problem to your system manager and/or to
6920*** bug-libtool@gnu.org
6921
6922EOF
6923	  fi ;;
6924	esac
6925      fi
6926      break
6927    fi
6928  done
6929  IFS="$lt_save_ifs"
6930  MAGIC_CMD="$lt_save_MAGIC_CMD"
6931  ;;
6932esac
6933fi
6934
6935MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6936if test -n "$MAGIC_CMD"; then
6937  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6938echo "${ECHO_T}$MAGIC_CMD" >&6; }
6939else
6940  { echo "$as_me:$LINENO: result: no" >&5
6941echo "${ECHO_T}no" >&6; }
6942fi
6943
6944  else
6945    MAGIC_CMD=:
6946  fi
6947fi
6948
6949  fi
6950  ;;
6951esac
6952
6953
6954  case $host_os in
6955    rhapsody* | darwin*)
6956    if test -n "$ac_tool_prefix"; then
6957  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6958set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6959{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6961if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6962  echo $ECHO_N "(cached) $ECHO_C" >&6
6963else
6964  if test -n "$DSYMUTIL"; then
6965  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6966else
6967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968for as_dir in $PATH
6969do
6970  IFS=$as_save_IFS
6971  test -z "$as_dir" && as_dir=.
6972  for ac_exec_ext in '' $ac_executable_extensions; do
6973  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6974    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6975    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6976    break 2
6977  fi
6978done
6979done
6980IFS=$as_save_IFS
6981
6982fi
6983fi
6984DSYMUTIL=$ac_cv_prog_DSYMUTIL
6985if test -n "$DSYMUTIL"; then
6986  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6987echo "${ECHO_T}$DSYMUTIL" >&6; }
6988else
6989  { echo "$as_me:$LINENO: result: no" >&5
6990echo "${ECHO_T}no" >&6; }
6991fi
6992
6993
6994fi
6995if test -z "$ac_cv_prog_DSYMUTIL"; then
6996  ac_ct_DSYMUTIL=$DSYMUTIL
6997  # Extract the first word of "dsymutil", so it can be a program name with args.
6998set dummy dsymutil; ac_word=$2
6999{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7001if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7002  echo $ECHO_N "(cached) $ECHO_C" >&6
7003else
7004  if test -n "$ac_ct_DSYMUTIL"; then
7005  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7006else
7007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008for as_dir in $PATH
7009do
7010  IFS=$as_save_IFS
7011  test -z "$as_dir" && as_dir=.
7012  for ac_exec_ext in '' $ac_executable_extensions; do
7013  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7014    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7015    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7016    break 2
7017  fi
7018done
7019done
7020IFS=$as_save_IFS
7021
7022fi
7023fi
7024ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7025if test -n "$ac_ct_DSYMUTIL"; then
7026  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7027echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7028else
7029  { echo "$as_me:$LINENO: result: no" >&5
7030echo "${ECHO_T}no" >&6; }
7031fi
7032
7033  if test "x$ac_ct_DSYMUTIL" = x; then
7034    DSYMUTIL=":"
7035  else
7036    case $cross_compiling:$ac_tool_warned in
7037yes:)
7038{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7039whose name does not start with the host triplet.  If you think this
7040configuration is useful to you, please write to autoconf@gnu.org." >&5
7041echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7042whose name does not start with the host triplet.  If you think this
7043configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7044ac_tool_warned=yes ;;
7045esac
7046    DSYMUTIL=$ac_ct_DSYMUTIL
7047  fi
7048else
7049  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7050fi
7051
7052    if test -n "$ac_tool_prefix"; then
7053  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7054set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7055{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7057if test "${ac_cv_prog_NMEDIT+set}" = set; then
7058  echo $ECHO_N "(cached) $ECHO_C" >&6
7059else
7060  if test -n "$NMEDIT"; then
7061  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7062else
7063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064for as_dir in $PATH
7065do
7066  IFS=$as_save_IFS
7067  test -z "$as_dir" && as_dir=.
7068  for ac_exec_ext in '' $ac_executable_extensions; do
7069  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7070    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7071    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7072    break 2
7073  fi
7074done
7075done
7076IFS=$as_save_IFS
7077
7078fi
7079fi
7080NMEDIT=$ac_cv_prog_NMEDIT
7081if test -n "$NMEDIT"; then
7082  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7083echo "${ECHO_T}$NMEDIT" >&6; }
7084else
7085  { echo "$as_me:$LINENO: result: no" >&5
7086echo "${ECHO_T}no" >&6; }
7087fi
7088
7089
7090fi
7091if test -z "$ac_cv_prog_NMEDIT"; then
7092  ac_ct_NMEDIT=$NMEDIT
7093  # Extract the first word of "nmedit", so it can be a program name with args.
7094set dummy nmedit; ac_word=$2
7095{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7097if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7098  echo $ECHO_N "(cached) $ECHO_C" >&6
7099else
7100  if test -n "$ac_ct_NMEDIT"; then
7101  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7102else
7103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104for as_dir in $PATH
7105do
7106  IFS=$as_save_IFS
7107  test -z "$as_dir" && as_dir=.
7108  for ac_exec_ext in '' $ac_executable_extensions; do
7109  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7110    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7111    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112    break 2
7113  fi
7114done
7115done
7116IFS=$as_save_IFS
7117
7118fi
7119fi
7120ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7121if test -n "$ac_ct_NMEDIT"; then
7122  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7123echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7124else
7125  { echo "$as_me:$LINENO: result: no" >&5
7126echo "${ECHO_T}no" >&6; }
7127fi
7128
7129  if test "x$ac_ct_NMEDIT" = x; then
7130    NMEDIT=":"
7131  else
7132    case $cross_compiling:$ac_tool_warned in
7133yes:)
7134{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7135whose name does not start with the host triplet.  If you think this
7136configuration is useful to you, please write to autoconf@gnu.org." >&5
7137echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7138whose name does not start with the host triplet.  If you think this
7139configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7140ac_tool_warned=yes ;;
7141esac
7142    NMEDIT=$ac_ct_NMEDIT
7143  fi
7144else
7145  NMEDIT="$ac_cv_prog_NMEDIT"
7146fi
7147
7148
7149    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7150echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7151if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7152  echo $ECHO_N "(cached) $ECHO_C" >&6
7153else
7154  lt_cv_apple_cc_single_mod=no
7155      if test -z "${LT_MULTI_MODULE}"; then
7156   # By default we will add the -single_module flag. You can override
7157   # by either setting the environment variable LT_MULTI_MODULE
7158   # non-empty at configure time, or by adding -multi_module to the
7159   # link flags.
7160   echo "int foo(void){return 1;}" > conftest.c
7161   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7162     -dynamiclib ${wl}-single_module conftest.c
7163   if test -f libconftest.dylib; then
7164     lt_cv_apple_cc_single_mod=yes
7165     rm -rf libconftest.dylib*
7166   fi
7167   rm conftest.c
7168      fi
7169fi
7170{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7171echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7172    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7173echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7174if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7175  echo $ECHO_N "(cached) $ECHO_C" >&6
7176else
7177  lt_cv_ld_exported_symbols_list=no
7178      save_LDFLAGS=$LDFLAGS
7179      echo "_main" > conftest.sym
7180      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7181      cat >conftest.$ac_ext <<_ACEOF
7182/* confdefs.h.  */
7183_ACEOF
7184cat confdefs.h >>conftest.$ac_ext
7185cat >>conftest.$ac_ext <<_ACEOF
7186/* end confdefs.h.  */
7187
7188int
7189main ()
7190{
7191
7192  ;
7193  return 0;
7194}
7195_ACEOF
7196rm -f conftest.$ac_objext conftest$ac_exeext
7197if { (ac_try="$ac_link"
7198case "(($ac_try" in
7199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200  *) ac_try_echo=$ac_try;;
7201esac
7202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7203  (eval "$ac_link") 2>conftest.er1
7204  ac_status=$?
7205  grep -v '^ *+' conftest.er1 >conftest.err
7206  rm -f conftest.er1
7207  cat conftest.err >&5
7208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209  (exit $ac_status); } && {
7210	 test -z "$ac_c_werror_flag" ||
7211	 test ! -s conftest.err
7212       } && test -s conftest$ac_exeext &&
7213       $as_test_x conftest$ac_exeext; then
7214  lt_cv_ld_exported_symbols_list=yes
7215else
7216  echo "$as_me: failed program was:" >&5
7217sed 's/^/| /' conftest.$ac_ext >&5
7218
7219	lt_cv_ld_exported_symbols_list=no
7220fi
7221
7222rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7223      conftest$ac_exeext conftest.$ac_ext
7224   LDFLAGS="$save_LDFLAGS"
7225
7226fi
7227{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7228echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7229    case $host_os in
7230    rhapsody* | darwin1.[0123])
7231      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7232    darwin1.*)
7233     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7234    darwin*)
7235      # if running on 10.5 or later, the deployment target defaults
7236      # to the OS version, if on x86, and 10.4, the deployment
7237      # target defaults to 10.4. Don't you love it?
7238      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7239   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7240     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7241   10.[012]*)
7242     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7243   10.*)
7244     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7245      esac
7246    ;;
7247  esac
7248    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7249      _lt_dar_single_mod='$single_module'
7250    fi
7251    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7252      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7253    else
7254      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7255    fi
7256    if test "$DSYMUTIL" != ":"; then
7257      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7258    else
7259      _lt_dsymutil=
7260    fi
7261    ;;
7262  esac
7263
7264
7265enable_dlopen=no
7266enable_win32_dll=no
7267
7268# Check whether --enable-libtool-lock was given.
7269if test "${enable_libtool_lock+set}" = set; then
7270  enableval=$enable_libtool_lock;
7271fi
7272
7273test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7274
7275
7276# Check whether --with-pic was given.
7277if test "${with_pic+set}" = set; then
7278  withval=$with_pic; pic_mode="$withval"
7279else
7280  pic_mode=default
7281fi
7282
7283test -z "$pic_mode" && pic_mode=default
7284
7285# Use C for the default configuration in the libtool script
7286tagname=
7287lt_save_CC="$CC"
7288ac_ext=c
7289ac_cpp='$CPP $CPPFLAGS'
7290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7292ac_compiler_gnu=$ac_cv_c_compiler_gnu
7293
7294
7295# Source file extension for C test sources.
7296ac_ext=c
7297
7298# Object file extension for compiled C test sources.
7299objext=o
7300objext=$objext
7301
7302# Code to be used in simple compile tests
7303lt_simple_compile_test_code="int some_variable = 0;"
7304
7305# Code to be used in simple link tests
7306lt_simple_link_test_code='int main(){return(0);}'
7307
7308
7309# If no C compiler was specified, use CC.
7310LTCC=${LTCC-"$CC"}
7311
7312# If no C compiler flags were specified, use CFLAGS.
7313LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7314
7315# Allow CC to be a program name with arguments.
7316compiler=$CC
7317
7318
7319# save warnings/boilerplate of simple test code
7320ac_outfile=conftest.$ac_objext
7321echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7322eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7323_lt_compiler_boilerplate=`cat conftest.err`
7324$rm conftest*
7325
7326ac_outfile=conftest.$ac_objext
7327echo "$lt_simple_link_test_code" >conftest.$ac_ext
7328eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7329_lt_linker_boilerplate=`cat conftest.err`
7330$rm -r conftest*
7331
7332
7333
7334lt_prog_compiler_no_builtin_flag=
7335
7336if test "$GCC" = yes; then
7337  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7338
7339
7340{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7341echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7342if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7343  echo $ECHO_N "(cached) $ECHO_C" >&6
7344else
7345  lt_cv_prog_compiler_rtti_exceptions=no
7346  ac_outfile=conftest.$ac_objext
7347   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7348   lt_compiler_flag="-fno-rtti -fno-exceptions"
7349   # Insert the option either (1) after the last *FLAGS variable, or
7350   # (2) before a word containing "conftest.", or (3) at the end.
7351   # Note that $ac_compile itself does not contain backslashes and begins
7352   # with a dollar sign (not a hyphen), so the echo should work correctly.
7353   # The option is referenced via a variable to avoid confusing sed.
7354   lt_compile=`echo "$ac_compile" | $SED \
7355   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7356   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7357   -e 's:$: $lt_compiler_flag:'`
7358   (eval echo "\"\$as_me:7358: $lt_compile\"" >&5)
7359   (eval "$lt_compile" 2>conftest.err)
7360   ac_status=$?
7361   cat conftest.err >&5
7362   echo "$as_me:7362: \$? = $ac_status" >&5
7363   if (exit $ac_status) && test -s "$ac_outfile"; then
7364     # The compiler can only warn and ignore the option if not recognized
7365     # So say no if there are warnings other than the usual output.
7366     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7367     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7368     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7369       lt_cv_prog_compiler_rtti_exceptions=yes
7370     fi
7371   fi
7372   $rm conftest*
7373
7374fi
7375{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7376echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7377
7378if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7379    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7380else
7381    :
7382fi
7383
7384fi
7385
7386lt_prog_compiler_wl=
7387lt_prog_compiler_pic=
7388lt_prog_compiler_static=
7389
7390{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7391echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7392
7393  if test "$GCC" = yes; then
7394    lt_prog_compiler_wl='-Wl,'
7395    lt_prog_compiler_static='-static'
7396
7397    case $host_os in
7398      aix*)
7399      # All AIX code is PIC.
7400      if test "$host_cpu" = ia64; then
7401	# AIX 5 now supports IA64 processor
7402	lt_prog_compiler_static='-Bstatic'
7403      fi
7404      ;;
7405
7406    amigaos*)
7407      # FIXME: we need at least 68020 code to build shared libraries, but
7408      # adding the `-m68020' flag to GCC prevents building anything better,
7409      # like `-m68040'.
7410      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7411      ;;
7412
7413    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7414      # PIC is the default for these OSes.
7415      ;;
7416
7417    mingw* | cygwin* | pw32* | os2*)
7418      # This hack is so that the source file can tell whether it is being
7419      # built for inclusion in a dll (and should export symbols for example).
7420      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7421      # (--disable-auto-import) libraries
7422      lt_prog_compiler_pic='-DDLL_EXPORT'
7423      ;;
7424
7425    darwin* | rhapsody*)
7426      # PIC is the default on this platform
7427      # Common symbols not allowed in MH_DYLIB files
7428      lt_prog_compiler_pic='-fno-common'
7429      ;;
7430
7431    interix[3-9]*)
7432      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7433      # Instead, we relocate shared libraries at runtime.
7434      ;;
7435
7436    msdosdjgpp*)
7437      # Just because we use GCC doesn't mean we suddenly get shared libraries
7438      # on systems that don't support them.
7439      lt_prog_compiler_can_build_shared=no
7440      enable_shared=no
7441      ;;
7442
7443    sysv4*MP*)
7444      if test -d /usr/nec; then
7445	lt_prog_compiler_pic=-Kconform_pic
7446      fi
7447      ;;
7448
7449    hpux*)
7450      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7451      # not for PA HP-UX.
7452      case $host_cpu in
7453      hppa*64*|ia64*)
7454	# +Z the default
7455	;;
7456      *)
7457	lt_prog_compiler_pic='-fPIC'
7458	;;
7459      esac
7460      ;;
7461
7462    *)
7463      lt_prog_compiler_pic='-fPIC'
7464      ;;
7465    esac
7466  else
7467    # PORTME Check for flag to pass linker flags through the system compiler.
7468    case $host_os in
7469    aix*)
7470      lt_prog_compiler_wl='-Wl,'
7471      if test "$host_cpu" = ia64; then
7472	# AIX 5 now supports IA64 processor
7473	lt_prog_compiler_static='-Bstatic'
7474      else
7475	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7476      fi
7477      ;;
7478      darwin*)
7479        # PIC is the default on this platform
7480        # Common symbols not allowed in MH_DYLIB files
7481       case $cc_basename in
7482         xlc*)
7483         lt_prog_compiler_pic='-qnocommon'
7484         lt_prog_compiler_wl='-Wl,'
7485         ;;
7486       esac
7487       ;;
7488
7489    mingw* | cygwin* | pw32* | os2*)
7490      # This hack is so that the source file can tell whether it is being
7491      # built for inclusion in a dll (and should export symbols for example).
7492      lt_prog_compiler_pic='-DDLL_EXPORT'
7493      ;;
7494
7495    hpux9* | hpux10* | hpux11*)
7496      lt_prog_compiler_wl='-Wl,'
7497      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7498      # not for PA HP-UX.
7499      case $host_cpu in
7500      hppa*64*|ia64*)
7501	# +Z the default
7502	;;
7503      *)
7504	lt_prog_compiler_pic='+Z'
7505	;;
7506      esac
7507      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7508      lt_prog_compiler_static='${wl}-a ${wl}archive'
7509      ;;
7510
7511    irix5* | irix6* | nonstopux*)
7512      lt_prog_compiler_wl='-Wl,'
7513      # PIC (with -KPIC) is the default.
7514      lt_prog_compiler_static='-non_shared'
7515      ;;
7516
7517    newsos6)
7518      lt_prog_compiler_pic='-KPIC'
7519      lt_prog_compiler_static='-Bstatic'
7520      ;;
7521
7522    linux* | k*bsd*-gnu)
7523      case $cc_basename in
7524      icc* | ecc*)
7525	lt_prog_compiler_wl='-Wl,'
7526	lt_prog_compiler_pic='-KPIC'
7527	lt_prog_compiler_static='-static'
7528        ;;
7529      pgcc* | pgf77* | pgf90* | pgf95*)
7530        # Portland Group compilers (*not* the Pentium gcc compiler,
7531	# which looks to be a dead project)
7532	lt_prog_compiler_wl='-Wl,'
7533	lt_prog_compiler_pic='-fpic'
7534	lt_prog_compiler_static='-Bstatic'
7535        ;;
7536      ccc*)
7537        lt_prog_compiler_wl='-Wl,'
7538        # All Alpha code is PIC.
7539        lt_prog_compiler_static='-non_shared'
7540        ;;
7541      *)
7542        case `$CC -V 2>&1 | sed 5q` in
7543	*Sun\ C*)
7544	  # Sun C 5.9
7545	  lt_prog_compiler_pic='-KPIC'
7546	  lt_prog_compiler_static='-Bstatic'
7547	  lt_prog_compiler_wl='-Wl,'
7548	  ;;
7549	*Sun\ F*)
7550	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7551	  lt_prog_compiler_pic='-KPIC'
7552	  lt_prog_compiler_static='-Bstatic'
7553	  lt_prog_compiler_wl=''
7554	  ;;
7555	esac
7556	;;
7557      esac
7558      ;;
7559
7560    osf3* | osf4* | osf5*)
7561      lt_prog_compiler_wl='-Wl,'
7562      # All OSF/1 code is PIC.
7563      lt_prog_compiler_static='-non_shared'
7564      ;;
7565
7566    rdos*)
7567      lt_prog_compiler_static='-non_shared'
7568      ;;
7569
7570    solaris*)
7571      lt_prog_compiler_pic='-KPIC'
7572      lt_prog_compiler_static='-Bstatic'
7573      case $cc_basename in
7574      f77* | f90* | f95*)
7575	lt_prog_compiler_wl='-Qoption ld ';;
7576      *)
7577	lt_prog_compiler_wl='-Wl,';;
7578      esac
7579      ;;
7580
7581    sunos4*)
7582      lt_prog_compiler_wl='-Qoption ld '
7583      lt_prog_compiler_pic='-PIC'
7584      lt_prog_compiler_static='-Bstatic'
7585      ;;
7586
7587    sysv4 | sysv4.2uw2* | sysv4.3*)
7588      lt_prog_compiler_wl='-Wl,'
7589      lt_prog_compiler_pic='-KPIC'
7590      lt_prog_compiler_static='-Bstatic'
7591      ;;
7592
7593    sysv4*MP*)
7594      if test -d /usr/nec ;then
7595	lt_prog_compiler_pic='-Kconform_pic'
7596	lt_prog_compiler_static='-Bstatic'
7597      fi
7598      ;;
7599
7600    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7601      lt_prog_compiler_wl='-Wl,'
7602      lt_prog_compiler_pic='-KPIC'
7603      lt_prog_compiler_static='-Bstatic'
7604      ;;
7605
7606    unicos*)
7607      lt_prog_compiler_wl='-Wl,'
7608      lt_prog_compiler_can_build_shared=no
7609      ;;
7610
7611    uts4*)
7612      lt_prog_compiler_pic='-pic'
7613      lt_prog_compiler_static='-Bstatic'
7614      ;;
7615
7616    *)
7617      lt_prog_compiler_can_build_shared=no
7618      ;;
7619    esac
7620  fi
7621
7622{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7623echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7624
7625#
7626# Check to make sure the PIC flag actually works.
7627#
7628if test -n "$lt_prog_compiler_pic"; then
7629
7630{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7631echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7632if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7633  echo $ECHO_N "(cached) $ECHO_C" >&6
7634else
7635  lt_cv_prog_compiler_pic_works=no
7636  ac_outfile=conftest.$ac_objext
7637   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7638   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7639   # Insert the option either (1) after the last *FLAGS variable, or
7640   # (2) before a word containing "conftest.", or (3) at the end.
7641   # Note that $ac_compile itself does not contain backslashes and begins
7642   # with a dollar sign (not a hyphen), so the echo should work correctly.
7643   # The option is referenced via a variable to avoid confusing sed.
7644   lt_compile=`echo "$ac_compile" | $SED \
7645   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7646   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7647   -e 's:$: $lt_compiler_flag:'`
7648   (eval echo "\"\$as_me:7648: $lt_compile\"" >&5)
7649   (eval "$lt_compile" 2>conftest.err)
7650   ac_status=$?
7651   cat conftest.err >&5
7652   echo "$as_me:7652: \$? = $ac_status" >&5
7653   if (exit $ac_status) && test -s "$ac_outfile"; then
7654     # The compiler can only warn and ignore the option if not recognized
7655     # So say no if there are warnings other than the usual output.
7656     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7657     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7658     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7659       lt_cv_prog_compiler_pic_works=yes
7660     fi
7661   fi
7662   $rm conftest*
7663
7664fi
7665{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7666echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7667
7668if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7669    case $lt_prog_compiler_pic in
7670     "" | " "*) ;;
7671     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7672     esac
7673else
7674    lt_prog_compiler_pic=
7675     lt_prog_compiler_can_build_shared=no
7676fi
7677
7678fi
7679case $host_os in
7680  # For platforms which do not support PIC, -DPIC is meaningless:
7681  *djgpp*)
7682    lt_prog_compiler_pic=
7683    ;;
7684  *)
7685    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7686    ;;
7687esac
7688
7689#
7690# Check to make sure the static flag actually works.
7691#
7692wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7693{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7694echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7695if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7696  echo $ECHO_N "(cached) $ECHO_C" >&6
7697else
7698  lt_cv_prog_compiler_static_works=no
7699   save_LDFLAGS="$LDFLAGS"
7700   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7701   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7702   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7703     # The linker can only warn and ignore the option if not recognized
7704     # So say no if there are warnings
7705     if test -s conftest.err; then
7706       # Append any errors to the config.log.
7707       cat conftest.err 1>&5
7708       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7709       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7710       if diff conftest.exp conftest.er2 >/dev/null; then
7711         lt_cv_prog_compiler_static_works=yes
7712       fi
7713     else
7714       lt_cv_prog_compiler_static_works=yes
7715     fi
7716   fi
7717   $rm -r conftest*
7718   LDFLAGS="$save_LDFLAGS"
7719
7720fi
7721{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7722echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7723
7724if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7725    :
7726else
7727    lt_prog_compiler_static=
7728fi
7729
7730
7731{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7732echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7733if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7734  echo $ECHO_N "(cached) $ECHO_C" >&6
7735else
7736  lt_cv_prog_compiler_c_o=no
7737   $rm -r conftest 2>/dev/null
7738   mkdir conftest
7739   cd conftest
7740   mkdir out
7741   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7742
7743   lt_compiler_flag="-o out/conftest2.$ac_objext"
7744   # Insert the option either (1) after the last *FLAGS variable, or
7745   # (2) before a word containing "conftest.", or (3) at the end.
7746   # Note that $ac_compile itself does not contain backslashes and begins
7747   # with a dollar sign (not a hyphen), so the echo should work correctly.
7748   lt_compile=`echo "$ac_compile" | $SED \
7749   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7750   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7751   -e 's:$: $lt_compiler_flag:'`
7752   (eval echo "\"\$as_me:7752: $lt_compile\"" >&5)
7753   (eval "$lt_compile" 2>out/conftest.err)
7754   ac_status=$?
7755   cat out/conftest.err >&5
7756   echo "$as_me:7756: \$? = $ac_status" >&5
7757   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7758   then
7759     # The compiler can only warn and ignore the option if not recognized
7760     # So say no if there are warnings
7761     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7762     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7763     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7764       lt_cv_prog_compiler_c_o=yes
7765     fi
7766   fi
7767   chmod u+w . 2>&5
7768   $rm conftest*
7769   # SGI C++ compiler will create directory out/ii_files/ for
7770   # template instantiation
7771   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7772   $rm out/* && rmdir out
7773   cd ..
7774   rmdir conftest
7775   $rm conftest*
7776
7777fi
7778{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7779echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7780
7781
7782hard_links="nottested"
7783if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7784  # do not overwrite the value of need_locks provided by the user
7785  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7786echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7787  hard_links=yes
7788  $rm conftest*
7789  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7790  touch conftest.a
7791  ln conftest.a conftest.b 2>&5 || hard_links=no
7792  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7793  { echo "$as_me:$LINENO: result: $hard_links" >&5
7794echo "${ECHO_T}$hard_links" >&6; }
7795  if test "$hard_links" = no; then
7796    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7797echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7798    need_locks=warn
7799  fi
7800else
7801  need_locks=no
7802fi
7803
7804{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7805echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7806
7807  runpath_var=
7808  allow_undefined_flag=
7809  enable_shared_with_static_runtimes=no
7810  archive_cmds=
7811  archive_expsym_cmds=
7812  old_archive_From_new_cmds=
7813  old_archive_from_expsyms_cmds=
7814  export_dynamic_flag_spec=
7815  whole_archive_flag_spec=
7816  thread_safe_flag_spec=
7817  hardcode_libdir_flag_spec=
7818  hardcode_libdir_flag_spec_ld=
7819  hardcode_libdir_separator=
7820  hardcode_direct=no
7821  hardcode_minus_L=no
7822  hardcode_shlibpath_var=unsupported
7823  link_all_deplibs=unknown
7824  hardcode_automatic=no
7825  module_cmds=
7826  module_expsym_cmds=
7827  always_export_symbols=no
7828  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7829  # include_expsyms should be a list of space-separated symbols to be *always*
7830  # included in the symbol list
7831  include_expsyms=
7832  # exclude_expsyms can be an extended regexp of symbols to exclude
7833  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7834  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7835  # as well as any symbol that contains `d'.
7836  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7837  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7838  # platforms (ab)use it in PIC code, but their linkers get confused if
7839  # the symbol is explicitly referenced.  Since portable code cannot
7840  # rely on this symbol name, it's probably fine to never include it in
7841  # preloaded symbol tables.
7842  # Exclude shared library initialization/finalization symbols.
7843  extract_expsyms_cmds=
7844  # Just being paranoid about ensuring that cc_basename is set.
7845  for cc_temp in $compiler""; do
7846  case $cc_temp in
7847    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7848    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7849    \-*) ;;
7850    *) break;;
7851  esac
7852done
7853cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7854
7855  case $host_os in
7856  cygwin* | mingw* | pw32*)
7857    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7858    # When not using gcc, we currently assume that we are using
7859    # Microsoft Visual C++.
7860    if test "$GCC" != yes; then
7861      with_gnu_ld=no
7862    fi
7863    ;;
7864  interix*)
7865    # we just hope/assume this is gcc and not c89 (= MSVC++)
7866    with_gnu_ld=yes
7867    ;;
7868  openbsd*)
7869    with_gnu_ld=no
7870    ;;
7871  esac
7872
7873  ld_shlibs=yes
7874  if test "$with_gnu_ld" = yes; then
7875    # If archive_cmds runs LD, not CC, wlarc should be empty
7876    wlarc='${wl}'
7877
7878    # Set some defaults for GNU ld with shared library support. These
7879    # are reset later if shared libraries are not supported. Putting them
7880    # here allows them to be overridden if necessary.
7881    runpath_var=LD_RUN_PATH
7882    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7883    export_dynamic_flag_spec='${wl}--export-dynamic'
7884    # ancient GNU ld didn't support --whole-archive et. al.
7885    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7886	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7887      else
7888  	whole_archive_flag_spec=
7889    fi
7890    supports_anon_versioning=no
7891    case `$LD -v 2>/dev/null` in
7892      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7893      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7894      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7895      *\ 2.11.*) ;; # other 2.11 versions
7896      *) supports_anon_versioning=yes ;;
7897    esac
7898
7899    # See if GNU ld supports shared libraries.
7900    case $host_os in
7901    aix[3-9]*)
7902      # On AIX/PPC, the GNU linker is very broken
7903      if test "$host_cpu" != ia64; then
7904	ld_shlibs=no
7905	cat <<EOF 1>&2
7906
7907*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7908*** to be unable to reliably create shared libraries on AIX.
7909*** Therefore, libtool is disabling shared libraries support.  If you
7910*** really care for shared libraries, you may want to modify your PATH
7911*** so that a non-GNU linker is found, and then restart.
7912
7913EOF
7914      fi
7915      ;;
7916
7917    amigaos*)
7918      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)'
7919      hardcode_libdir_flag_spec='-L$libdir'
7920      hardcode_minus_L=yes
7921
7922      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7923      # that the semantics of dynamic libraries on AmigaOS, at least up
7924      # to version 4, is to share data among multiple programs linked
7925      # with the same dynamic library.  Since this doesn't match the
7926      # behavior of shared libraries on other platforms, we can't use
7927      # them.
7928      ld_shlibs=no
7929      ;;
7930
7931    beos*)
7932      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7933	allow_undefined_flag=unsupported
7934	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7935	# support --undefined.  This deserves some investigation.  FIXME
7936	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7937      else
7938	ld_shlibs=no
7939      fi
7940      ;;
7941
7942    cygwin* | mingw* | pw32*)
7943      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7944      # as there is no search path for DLLs.
7945      hardcode_libdir_flag_spec='-L$libdir'
7946      allow_undefined_flag=unsupported
7947      always_export_symbols=no
7948      enable_shared_with_static_runtimes=yes
7949      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7950
7951      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7952        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7953	# If the export-symbols file already is a .def file (1st line
7954	# is EXPORTS), use it as is; otherwise, prepend...
7955	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7956	  cp $export_symbols $output_objdir/$soname.def;
7957	else
7958	  echo EXPORTS > $output_objdir/$soname.def;
7959	  cat $export_symbols >> $output_objdir/$soname.def;
7960	fi~
7961	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7962      else
7963	ld_shlibs=no
7964      fi
7965      ;;
7966
7967    interix[3-9]*)
7968      hardcode_direct=no
7969      hardcode_shlibpath_var=no
7970      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7971      export_dynamic_flag_spec='${wl}-E'
7972      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7973      # Instead, shared libraries are loaded at an image base (0x10000000 by
7974      # default) and relocated if they conflict, which is a slow very memory
7975      # consuming and fragmenting process.  To avoid this, we pick a random,
7976      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7977      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7978      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7979      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'
7980      ;;
7981
7982    gnu* | linux* | k*bsd*-gnu)
7983      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7984	tmp_addflag=
7985	case $cc_basename,$host_cpu in
7986	pgcc*)				# Portland Group C compiler
7987	  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'
7988	  tmp_addflag=' $pic_flag'
7989	  ;;
7990	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7991	  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'
7992	  tmp_addflag=' $pic_flag -Mnomain' ;;
7993	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7994	  tmp_addflag=' -i_dynamic' ;;
7995	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7996	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7997	ifc* | ifort*)			# Intel Fortran compiler
7998	  tmp_addflag=' -nofor_main' ;;
7999	esac
8000	case `$CC -V 2>&1 | sed 5q` in
8001	*Sun\ C*)			# Sun C 5.9
8002	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8003	  tmp_sharedflag='-G' ;;
8004	*Sun\ F*)			# Sun Fortran 8.3
8005	  tmp_sharedflag='-G' ;;
8006	*)
8007	  tmp_sharedflag='-shared' ;;
8008	esac
8009	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8010
8011	if test $supports_anon_versioning = yes; then
8012	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8013  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8014  $echo "local: *; };" >> $output_objdir/$libname.ver~
8015	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8016	fi
8017	link_all_deplibs=no
8018      else
8019	ld_shlibs=no
8020      fi
8021      ;;
8022
8023    netbsd* | netbsdelf*-gnu)
8024      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8025	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8026	wlarc=
8027      else
8028	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8029	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8030      fi
8031      ;;
8032
8033    solaris*)
8034      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8035	ld_shlibs=no
8036	cat <<EOF 1>&2
8037
8038*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8039*** create shared libraries on Solaris systems.  Therefore, libtool
8040*** is disabling shared libraries support.  We urge you to upgrade GNU
8041*** binutils to release 2.9.1 or newer.  Another option is to modify
8042*** your PATH or compiler configuration so that the native linker is
8043*** used, and then restart.
8044
8045EOF
8046      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8047	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8048	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8049      else
8050	ld_shlibs=no
8051      fi
8052      ;;
8053
8054    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8055      case `$LD -v 2>&1` in
8056        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8057	ld_shlibs=no
8058	cat <<_LT_EOF 1>&2
8059
8060*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8061*** reliably create shared libraries on SCO systems.  Therefore, libtool
8062*** is disabling shared libraries support.  We urge you to upgrade GNU
8063*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8064*** your PATH or compiler configuration so that the native linker is
8065*** used, and then restart.
8066
8067_LT_EOF
8068	;;
8069	*)
8070	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8071	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8072	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8073	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8074	  else
8075	    ld_shlibs=no
8076	  fi
8077	;;
8078      esac
8079      ;;
8080
8081    sunos4*)
8082      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8083      wlarc=
8084      hardcode_direct=yes
8085      hardcode_shlibpath_var=no
8086      ;;
8087
8088    *)
8089      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8090	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8091	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8092      else
8093	ld_shlibs=no
8094      fi
8095      ;;
8096    esac
8097
8098    if test "$ld_shlibs" = no; then
8099      runpath_var=
8100      hardcode_libdir_flag_spec=
8101      export_dynamic_flag_spec=
8102      whole_archive_flag_spec=
8103    fi
8104  else
8105    # PORTME fill in a description of your system's linker (not GNU ld)
8106    case $host_os in
8107    aix3*)
8108      allow_undefined_flag=unsupported
8109      always_export_symbols=yes
8110      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'
8111      # Note: this linker hardcodes the directories in LIBPATH if there
8112      # are no directories specified by -L.
8113      hardcode_minus_L=yes
8114      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8115	# Neither direct hardcoding nor static linking is supported with a
8116	# broken collect2.
8117	hardcode_direct=unsupported
8118      fi
8119      ;;
8120
8121    aix[4-9]*)
8122      if test "$host_cpu" = ia64; then
8123	# On IA64, the linker does run time linking by default, so we don't
8124	# have to do anything special.
8125	aix_use_runtimelinking=no
8126	exp_sym_flag='-Bexport'
8127	no_entry_flag=""
8128      else
8129	# If we're using GNU nm, then we don't want the "-C" option.
8130	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8131	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8132	  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'
8133	else
8134	  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'
8135	fi
8136	aix_use_runtimelinking=no
8137
8138	# Test if we are trying to use run time linking or normal
8139	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8140	# need to do runtime linking.
8141	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8142	  for ld_flag in $LDFLAGS; do
8143  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8144  	    aix_use_runtimelinking=yes
8145  	    break
8146  	  fi
8147	  done
8148	  ;;
8149	esac
8150
8151	exp_sym_flag='-bexport'
8152	no_entry_flag='-bnoentry'
8153      fi
8154
8155      # When large executables or shared objects are built, AIX ld can
8156      # have problems creating the table of contents.  If linking a library
8157      # or program results in "error TOC overflow" add -mminimal-toc to
8158      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8159      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8160
8161      archive_cmds=''
8162      hardcode_direct=yes
8163      hardcode_libdir_separator=':'
8164      link_all_deplibs=yes
8165
8166      if test "$GCC" = yes; then
8167	case $host_os in aix4.[012]|aix4.[012].*)
8168	# We only want to do this on AIX 4.2 and lower, the check
8169	# below for broken collect2 doesn't work under 4.3+
8170	  collect2name=`${CC} -print-prog-name=collect2`
8171	  if test -f "$collect2name" && \
8172  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8173	  then
8174  	  # We have reworked collect2
8175  	  :
8176	  else
8177  	  # We have old collect2
8178  	  hardcode_direct=unsupported
8179  	  # It fails to find uninstalled libraries when the uninstalled
8180  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8181  	  # to unsupported forces relinking
8182  	  hardcode_minus_L=yes
8183  	  hardcode_libdir_flag_spec='-L$libdir'
8184  	  hardcode_libdir_separator=
8185	  fi
8186	  ;;
8187	esac
8188	shared_flag='-shared'
8189	if test "$aix_use_runtimelinking" = yes; then
8190	  shared_flag="$shared_flag "'${wl}-G'
8191	fi
8192      else
8193	# not using gcc
8194	if test "$host_cpu" = ia64; then
8195  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8196  	# chokes on -Wl,-G. The following line is correct:
8197	  shared_flag='-G'
8198	else
8199	  if test "$aix_use_runtimelinking" = yes; then
8200	    shared_flag='${wl}-G'
8201	  else
8202	    shared_flag='${wl}-bM:SRE'
8203	  fi
8204	fi
8205      fi
8206
8207      # It seems that -bexpall does not export symbols beginning with
8208      # underscore (_), so it is better to generate a list of symbols to export.
8209      always_export_symbols=yes
8210      if test "$aix_use_runtimelinking" = yes; then
8211	# Warning - without using the other runtime loading flags (-brtl),
8212	# -berok will link without error, but may produce a broken library.
8213	allow_undefined_flag='-berok'
8214       # Determine the default libpath from the value encoded in an empty executable.
8215       cat >conftest.$ac_ext <<_ACEOF
8216/* confdefs.h.  */
8217_ACEOF
8218cat confdefs.h >>conftest.$ac_ext
8219cat >>conftest.$ac_ext <<_ACEOF
8220/* end confdefs.h.  */
8221
8222int
8223main ()
8224{
8225
8226  ;
8227  return 0;
8228}
8229_ACEOF
8230rm -f conftest.$ac_objext conftest$ac_exeext
8231if { (ac_try="$ac_link"
8232case "(($ac_try" in
8233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234  *) ac_try_echo=$ac_try;;
8235esac
8236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237  (eval "$ac_link") 2>conftest.er1
8238  ac_status=$?
8239  grep -v '^ *+' conftest.er1 >conftest.err
8240  rm -f conftest.er1
8241  cat conftest.err >&5
8242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243  (exit $ac_status); } && {
8244	 test -z "$ac_c_werror_flag" ||
8245	 test ! -s conftest.err
8246       } && test -s conftest$ac_exeext &&
8247       $as_test_x conftest$ac_exeext; then
8248
8249lt_aix_libpath_sed='
8250    /Import File Strings/,/^$/ {
8251	/^0/ {
8252	    s/^0  *\(.*\)$/\1/
8253	    p
8254	}
8255    }'
8256aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8257# Check for a 64-bit object if we didn't find anything.
8258if test -z "$aix_libpath"; then
8259  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8260fi
8261else
8262  echo "$as_me: failed program was:" >&5
8263sed 's/^/| /' conftest.$ac_ext >&5
8264
8265
8266fi
8267
8268rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8269      conftest$ac_exeext conftest.$ac_ext
8270if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8271
8272       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8273	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"
8274       else
8275	if test "$host_cpu" = ia64; then
8276	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8277	  allow_undefined_flag="-z nodefs"
8278	  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"
8279	else
8280	 # Determine the default libpath from the value encoded in an empty executable.
8281	 cat >conftest.$ac_ext <<_ACEOF
8282/* confdefs.h.  */
8283_ACEOF
8284cat confdefs.h >>conftest.$ac_ext
8285cat >>conftest.$ac_ext <<_ACEOF
8286/* end confdefs.h.  */
8287
8288int
8289main ()
8290{
8291
8292  ;
8293  return 0;
8294}
8295_ACEOF
8296rm -f conftest.$ac_objext conftest$ac_exeext
8297if { (ac_try="$ac_link"
8298case "(($ac_try" in
8299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300  *) ac_try_echo=$ac_try;;
8301esac
8302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303  (eval "$ac_link") 2>conftest.er1
8304  ac_status=$?
8305  grep -v '^ *+' conftest.er1 >conftest.err
8306  rm -f conftest.er1
8307  cat conftest.err >&5
8308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309  (exit $ac_status); } && {
8310	 test -z "$ac_c_werror_flag" ||
8311	 test ! -s conftest.err
8312       } && test -s conftest$ac_exeext &&
8313       $as_test_x conftest$ac_exeext; then
8314
8315lt_aix_libpath_sed='
8316    /Import File Strings/,/^$/ {
8317	/^0/ {
8318	    s/^0  *\(.*\)$/\1/
8319	    p
8320	}
8321    }'
8322aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8323# Check for a 64-bit object if we didn't find anything.
8324if test -z "$aix_libpath"; then
8325  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8326fi
8327else
8328  echo "$as_me: failed program was:" >&5
8329sed 's/^/| /' conftest.$ac_ext >&5
8330
8331
8332fi
8333
8334rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8335      conftest$ac_exeext conftest.$ac_ext
8336if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8337
8338	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8339	  # Warning - without using the other run time loading flags,
8340	  # -berok will link without error, but may produce a broken library.
8341	  no_undefined_flag=' ${wl}-bernotok'
8342	  allow_undefined_flag=' ${wl}-berok'
8343	  # Exported symbols can be pulled into shared objects from archives
8344	  whole_archive_flag_spec='$convenience'
8345	  archive_cmds_need_lc=yes
8346	  # This is similar to how AIX traditionally builds its shared libraries.
8347	  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'
8348	fi
8349      fi
8350      ;;
8351
8352    amigaos*)
8353      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)'
8354      hardcode_libdir_flag_spec='-L$libdir'
8355      hardcode_minus_L=yes
8356      # see comment about different semantics on the GNU ld section
8357      ld_shlibs=no
8358      ;;
8359
8360    bsdi[45]*)
8361      export_dynamic_flag_spec=-rdynamic
8362      ;;
8363
8364    cygwin* | mingw* | pw32*)
8365      # When not using gcc, we currently assume that we are using
8366      # Microsoft Visual C++.
8367      # hardcode_libdir_flag_spec is actually meaningless, as there is
8368      # no search path for DLLs.
8369      hardcode_libdir_flag_spec=' '
8370      allow_undefined_flag=unsupported
8371      # Tell ltmain to make .lib files, not .a files.
8372      libext=lib
8373      # Tell ltmain to make .dll files, not .so files.
8374      shrext_cmds=".dll"
8375      # FIXME: Setting linknames here is a bad hack.
8376      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8377      # The linker will automatically build a .lib file if we build a DLL.
8378      old_archive_From_new_cmds='true'
8379      # FIXME: Should let the user specify the lib program.
8380      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8381      fix_srcfile_path='`cygpath -w "$srcfile"`'
8382      enable_shared_with_static_runtimes=yes
8383      ;;
8384
8385    darwin* | rhapsody*)
8386      case $host_os in
8387        rhapsody* | darwin1.[012])
8388         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8389         ;;
8390       *) # Darwin 1.3 on
8391         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8392           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8393         else
8394           case ${MACOSX_DEPLOYMENT_TARGET} in
8395             10.[012])
8396               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8397               ;;
8398             10.*)
8399               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8400               ;;
8401           esac
8402         fi
8403         ;;
8404      esac
8405      archive_cmds_need_lc=no
8406      hardcode_direct=no
8407      hardcode_automatic=yes
8408      hardcode_shlibpath_var=unsupported
8409      whole_archive_flag_spec=''
8410      link_all_deplibs=yes
8411    if test "$GCC" = yes ; then
8412    	output_verbose_link_cmd='echo'
8413        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8414        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8415        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8416        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8417    else
8418      case $cc_basename in
8419        xlc*)
8420         output_verbose_link_cmd='echo'
8421         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8422         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8423          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8424         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8425          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}'
8426          ;;
8427       *)
8428         ld_shlibs=no
8429          ;;
8430      esac
8431    fi
8432      ;;
8433
8434    dgux*)
8435      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8436      hardcode_libdir_flag_spec='-L$libdir'
8437      hardcode_shlibpath_var=no
8438      ;;
8439
8440    freebsd1*)
8441      ld_shlibs=no
8442      ;;
8443
8444    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8445    # support.  Future versions do this automatically, but an explicit c++rt0.o
8446    # does not break anything, and helps significantly (at the cost of a little
8447    # extra space).
8448    freebsd2.2*)
8449      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8450      hardcode_libdir_flag_spec='-R$libdir'
8451      hardcode_direct=yes
8452      hardcode_shlibpath_var=no
8453      ;;
8454
8455    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8456    freebsd2*)
8457      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8458      hardcode_direct=yes
8459      hardcode_minus_L=yes
8460      hardcode_shlibpath_var=no
8461      ;;
8462
8463    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8464    freebsd* | dragonfly*)
8465      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8466      hardcode_libdir_flag_spec='-R$libdir'
8467      hardcode_direct=yes
8468      hardcode_shlibpath_var=no
8469      ;;
8470
8471    hpux9*)
8472      if test "$GCC" = yes; then
8473	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'
8474      else
8475	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'
8476      fi
8477      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8478      hardcode_libdir_separator=:
8479      hardcode_direct=yes
8480
8481      # hardcode_minus_L: Not really in the search PATH,
8482      # but as the default location of the library.
8483      hardcode_minus_L=yes
8484      export_dynamic_flag_spec='${wl}-E'
8485      ;;
8486
8487    hpux10*)
8488      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8489	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8490      else
8491	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8492      fi
8493      if test "$with_gnu_ld" = no; then
8494	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8495	hardcode_libdir_separator=:
8496
8497	hardcode_direct=yes
8498	export_dynamic_flag_spec='${wl}-E'
8499
8500	# hardcode_minus_L: Not really in the search PATH,
8501	# but as the default location of the library.
8502	hardcode_minus_L=yes
8503      fi
8504      ;;
8505
8506    hpux11*)
8507      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8508	case $host_cpu in
8509	hppa*64*)
8510	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8511	  ;;
8512	ia64*)
8513	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8514	  ;;
8515	*)
8516	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8517	  ;;
8518	esac
8519      else
8520	case $host_cpu in
8521	hppa*64*)
8522	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8523	  ;;
8524	ia64*)
8525	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8526	  ;;
8527	*)
8528	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8529	  ;;
8530	esac
8531      fi
8532      if test "$with_gnu_ld" = no; then
8533	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8534	hardcode_libdir_separator=:
8535
8536	case $host_cpu in
8537	hppa*64*|ia64*)
8538	  hardcode_libdir_flag_spec_ld='+b $libdir'
8539	  hardcode_direct=no
8540	  hardcode_shlibpath_var=no
8541	  ;;
8542	*)
8543	  hardcode_direct=yes
8544	  export_dynamic_flag_spec='${wl}-E'
8545
8546	  # hardcode_minus_L: Not really in the search PATH,
8547	  # but as the default location of the library.
8548	  hardcode_minus_L=yes
8549	  ;;
8550	esac
8551      fi
8552      ;;
8553
8554    irix5* | irix6* | nonstopux*)
8555      if test "$GCC" = yes; then
8556	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'
8557      else
8558	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'
8559	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8560      fi
8561      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8562      hardcode_libdir_separator=:
8563      link_all_deplibs=yes
8564      ;;
8565
8566    netbsd* | netbsdelf*-gnu)
8567      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8568	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8569      else
8570	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8571      fi
8572      hardcode_libdir_flag_spec='-R$libdir'
8573      hardcode_direct=yes
8574      hardcode_shlibpath_var=no
8575      ;;
8576
8577    newsos6)
8578      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8579      hardcode_direct=yes
8580      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8581      hardcode_libdir_separator=:
8582      hardcode_shlibpath_var=no
8583      ;;
8584
8585    openbsd*)
8586      if test -f /usr/libexec/ld.so; then
8587	hardcode_direct=yes
8588	hardcode_shlibpath_var=no
8589	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8590	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8591	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8592	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8593	  export_dynamic_flag_spec='${wl}-E'
8594	else
8595	  case $host_os in
8596	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8597	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8598	     hardcode_libdir_flag_spec='-R$libdir'
8599	     ;;
8600	   *)
8601	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8602	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8603	     ;;
8604	  esac
8605        fi
8606      else
8607	ld_shlibs=no
8608      fi
8609      ;;
8610
8611    os2*)
8612      hardcode_libdir_flag_spec='-L$libdir'
8613      hardcode_minus_L=yes
8614      allow_undefined_flag=unsupported
8615      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'
8616      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8617      ;;
8618
8619    osf3*)
8620      if test "$GCC" = yes; then
8621	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8622	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'
8623      else
8624	allow_undefined_flag=' -expect_unresolved \*'
8625	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'
8626      fi
8627      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8628      hardcode_libdir_separator=:
8629      ;;
8630
8631    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8632      if test "$GCC" = yes; then
8633	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8634	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'
8635	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8636      else
8637	allow_undefined_flag=' -expect_unresolved \*'
8638	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'
8639	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8640	$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'
8641
8642	# Both c and cxx compiler support -rpath directly
8643	hardcode_libdir_flag_spec='-rpath $libdir'
8644      fi
8645      hardcode_libdir_separator=:
8646      ;;
8647
8648    solaris*)
8649      no_undefined_flag=' -z text'
8650      if test "$GCC" = yes; then
8651	wlarc='${wl}'
8652	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8653	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8654	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8655      else
8656	wlarc=''
8657	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8658	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8659  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8660      fi
8661      hardcode_libdir_flag_spec='-R$libdir'
8662      hardcode_shlibpath_var=no
8663      case $host_os in
8664      solaris2.[0-5] | solaris2.[0-5].*) ;;
8665      *)
8666	# The compiler driver will combine and reorder linker options,
8667	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8668	# but is careful enough not to reorder.
8669 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8670	if test "$GCC" = yes; then
8671	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8672	else
8673	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8674	fi
8675	;;
8676      esac
8677      link_all_deplibs=yes
8678      ;;
8679
8680    sunos4*)
8681      if test "x$host_vendor" = xsequent; then
8682	# Use $CC to link under sequent, because it throws in some extra .o
8683	# files that make .init and .fini sections work.
8684	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8685      else
8686	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8687      fi
8688      hardcode_libdir_flag_spec='-L$libdir'
8689      hardcode_direct=yes
8690      hardcode_minus_L=yes
8691      hardcode_shlibpath_var=no
8692      ;;
8693
8694    sysv4)
8695      case $host_vendor in
8696	sni)
8697	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8698	  hardcode_direct=yes # is this really true???
8699	;;
8700	siemens)
8701	  ## LD is ld it makes a PLAMLIB
8702	  ## CC just makes a GrossModule.
8703	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8704	  reload_cmds='$CC -r -o $output$reload_objs'
8705	  hardcode_direct=no
8706        ;;
8707	motorola)
8708	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8709	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8710	;;
8711      esac
8712      runpath_var='LD_RUN_PATH'
8713      hardcode_shlibpath_var=no
8714      ;;
8715
8716    sysv4.3*)
8717      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8718      hardcode_shlibpath_var=no
8719      export_dynamic_flag_spec='-Bexport'
8720      ;;
8721
8722    sysv4*MP*)
8723      if test -d /usr/nec; then
8724	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8725	hardcode_shlibpath_var=no
8726	runpath_var=LD_RUN_PATH
8727	hardcode_runpath_var=yes
8728	ld_shlibs=yes
8729      fi
8730      ;;
8731
8732    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8733      no_undefined_flag='${wl}-z,text'
8734      archive_cmds_need_lc=no
8735      hardcode_shlibpath_var=no
8736      runpath_var='LD_RUN_PATH'
8737
8738      if test "$GCC" = yes; then
8739	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8740	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8741      else
8742	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8743	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8744      fi
8745      ;;
8746
8747    sysv5* | sco3.2v5* | sco5v6*)
8748      # Note: We can NOT use -z defs as we might desire, because we do not
8749      # link with -lc, and that would cause any symbols used from libc to
8750      # always be unresolved, which means just about no library would
8751      # ever link correctly.  If we're not using GNU ld we use -z text
8752      # though, which does catch some bad symbols but isn't as heavy-handed
8753      # as -z defs.
8754      no_undefined_flag='${wl}-z,text'
8755      allow_undefined_flag='${wl}-z,nodefs'
8756      archive_cmds_need_lc=no
8757      hardcode_shlibpath_var=no
8758      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8759      hardcode_libdir_separator=':'
8760      link_all_deplibs=yes
8761      export_dynamic_flag_spec='${wl}-Bexport'
8762      runpath_var='LD_RUN_PATH'
8763
8764      if test "$GCC" = yes; then
8765	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8766	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8767      else
8768	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8769	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8770      fi
8771      ;;
8772
8773    uts4*)
8774      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8775      hardcode_libdir_flag_spec='-L$libdir'
8776      hardcode_shlibpath_var=no
8777      ;;
8778
8779    *)
8780      ld_shlibs=no
8781      ;;
8782    esac
8783  fi
8784
8785{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8786echo "${ECHO_T}$ld_shlibs" >&6; }
8787test "$ld_shlibs" = no && can_build_shared=no
8788
8789#
8790# Do we need to explicitly link libc?
8791#
8792case "x$archive_cmds_need_lc" in
8793x|xyes)
8794  # Assume -lc should be added
8795  archive_cmds_need_lc=yes
8796
8797  if test "$enable_shared" = yes && test "$GCC" = yes; then
8798    case $archive_cmds in
8799    *'~'*)
8800      # FIXME: we may have to deal with multi-command sequences.
8801      ;;
8802    '$CC '*)
8803      # Test whether the compiler implicitly links with -lc since on some
8804      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8805      # to ld, don't add -lc before -lgcc.
8806      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8807echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8808      $rm conftest*
8809      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8810
8811      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8812  (eval $ac_compile) 2>&5
8813  ac_status=$?
8814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815  (exit $ac_status); } 2>conftest.err; then
8816        soname=conftest
8817        lib=conftest
8818        libobjs=conftest.$ac_objext
8819        deplibs=
8820        wl=$lt_prog_compiler_wl
8821	pic_flag=$lt_prog_compiler_pic
8822        compiler_flags=-v
8823        linker_flags=-v
8824        verstring=
8825        output_objdir=.
8826        libname=conftest
8827        lt_save_allow_undefined_flag=$allow_undefined_flag
8828        allow_undefined_flag=
8829        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8830  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8831  ac_status=$?
8832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833  (exit $ac_status); }
8834        then
8835	  archive_cmds_need_lc=no
8836        else
8837	  archive_cmds_need_lc=yes
8838        fi
8839        allow_undefined_flag=$lt_save_allow_undefined_flag
8840      else
8841        cat conftest.err 1>&5
8842      fi
8843      $rm conftest*
8844      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8845echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8846      ;;
8847    esac
8848  fi
8849  ;;
8850esac
8851
8852{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8853echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8854library_names_spec=
8855libname_spec='lib$name'
8856soname_spec=
8857shrext_cmds=".so"
8858postinstall_cmds=
8859postuninstall_cmds=
8860finish_cmds=
8861finish_eval=
8862shlibpath_var=
8863shlibpath_overrides_runpath=unknown
8864version_type=none
8865dynamic_linker="$host_os ld.so"
8866sys_lib_dlsearch_path_spec="/lib /usr/lib"
8867
8868if test "$GCC" = yes; then
8869  case $host_os in
8870    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8871    *) lt_awk_arg="/^libraries:/" ;;
8872  esac
8873  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8874  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8875    # if the path contains ";" then we assume it to be the separator
8876    # otherwise default to the standard path separator (i.e. ":") - it is
8877    # assumed that no part of a normal pathname contains ";" but that should
8878    # okay in the real world where ";" in dirpaths is itself problematic.
8879    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8880  else
8881    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8882  fi
8883  # Ok, now we have the path, separated by spaces, we can step through it
8884  # and add multilib dir if necessary.
8885  lt_tmp_lt_search_path_spec=
8886  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8887  for lt_sys_path in $lt_search_path_spec; do
8888    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8889      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8890    else
8891      test -d "$lt_sys_path" && \
8892	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8893    fi
8894  done
8895  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8896BEGIN {RS=" "; FS="/|\n";} {
8897  lt_foo="";
8898  lt_count=0;
8899  for (lt_i = NF; lt_i > 0; lt_i--) {
8900    if ($lt_i != "" && $lt_i != ".") {
8901      if ($lt_i == "..") {
8902        lt_count++;
8903      } else {
8904        if (lt_count == 0) {
8905          lt_foo="/" $lt_i lt_foo;
8906        } else {
8907          lt_count--;
8908        }
8909      }
8910    }
8911  }
8912  if (lt_foo != "") { lt_freq[lt_foo]++; }
8913  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8914}'`
8915  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8916else
8917  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8918fi
8919need_lib_prefix=unknown
8920hardcode_into_libs=no
8921
8922# when you set need_version to no, make sure it does not cause -set_version
8923# flags to be left without arguments
8924need_version=unknown
8925
8926case $host_os in
8927aix3*)
8928  version_type=linux
8929  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8930  shlibpath_var=LIBPATH
8931
8932  # AIX 3 has no versioning support, so we append a major version to the name.
8933  soname_spec='${libname}${release}${shared_ext}$major'
8934  ;;
8935
8936aix[4-9]*)
8937  version_type=linux
8938  need_lib_prefix=no
8939  need_version=no
8940  hardcode_into_libs=yes
8941  if test "$host_cpu" = ia64; then
8942    # AIX 5 supports IA64
8943    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8944    shlibpath_var=LD_LIBRARY_PATH
8945  else
8946    # With GCC up to 2.95.x, collect2 would create an import file
8947    # for dependence libraries.  The import file would start with
8948    # the line `#! .'.  This would cause the generated library to
8949    # depend on `.', always an invalid library.  This was fixed in
8950    # development snapshots of GCC prior to 3.0.
8951    case $host_os in
8952      aix4 | aix4.[01] | aix4.[01].*)
8953      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8954	   echo ' yes '
8955	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8956	:
8957      else
8958	can_build_shared=no
8959      fi
8960      ;;
8961    esac
8962    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8963    # soname into executable. Probably we can add versioning support to
8964    # collect2, so additional links can be useful in future.
8965    if test "$aix_use_runtimelinking" = yes; then
8966      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8967      # instead of lib<name>.a to let people know that these are not
8968      # typical AIX shared libraries.
8969      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8970    else
8971      # We preserve .a as extension for shared libraries through AIX4.2
8972      # and later when we are not doing run time linking.
8973      library_names_spec='${libname}${release}.a $libname.a'
8974      soname_spec='${libname}${release}${shared_ext}$major'
8975    fi
8976    shlibpath_var=LIBPATH
8977  fi
8978  ;;
8979
8980amigaos*)
8981  library_names_spec='$libname.ixlibrary $libname.a'
8982  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8983  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'
8984  ;;
8985
8986beos*)
8987  library_names_spec='${libname}${shared_ext}'
8988  dynamic_linker="$host_os ld.so"
8989  shlibpath_var=LIBRARY_PATH
8990  ;;
8991
8992bsdi[45]*)
8993  version_type=linux
8994  need_version=no
8995  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8996  soname_spec='${libname}${release}${shared_ext}$major'
8997  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8998  shlibpath_var=LD_LIBRARY_PATH
8999  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9000  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9001  # the default ld.so.conf also contains /usr/contrib/lib and
9002  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9003  # libtool to hard-code these into programs
9004  ;;
9005
9006cygwin* | mingw* | pw32*)
9007  version_type=windows
9008  shrext_cmds=".dll"
9009  need_version=no
9010  need_lib_prefix=no
9011
9012  case $GCC,$host_os in
9013  yes,cygwin* | yes,mingw* | yes,pw32*)
9014    library_names_spec='$libname.dll.a'
9015    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9016    postinstall_cmds='base_file=`basename \${file}`~
9017      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9018      dldir=$destdir/`dirname \$dlpath`~
9019      test -d \$dldir || mkdir -p \$dldir~
9020      $install_prog $dir/$dlname \$dldir/$dlname~
9021      chmod a+x \$dldir/$dlname'
9022    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9023      dlpath=$dir/\$dldll~
9024       $rm \$dlpath'
9025    shlibpath_overrides_runpath=yes
9026
9027    case $host_os in
9028    cygwin*)
9029      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9030      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9031      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9032      ;;
9033    mingw*)
9034      # MinGW DLLs use traditional 'lib' prefix
9035      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9036      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9037      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9038        # It is most probably a Windows format PATH printed by
9039        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9040        # path with ; separators, and with drive letters. We can handle the
9041        # drive letters (cygwin fileutils understands them), so leave them,
9042        # especially as we might pass files found there to a mingw objdump,
9043        # which wouldn't understand a cygwinified path. Ahh.
9044        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9045      else
9046        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9047      fi
9048      ;;
9049    pw32*)
9050      # pw32 DLLs use 'pw' prefix rather than 'lib'
9051      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9052      ;;
9053    esac
9054    ;;
9055
9056  *)
9057    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9058    ;;
9059  esac
9060  dynamic_linker='Win32 ld.exe'
9061  # FIXME: first we should search . and the directory the executable is in
9062  shlibpath_var=PATH
9063  ;;
9064
9065darwin* | rhapsody*)
9066  dynamic_linker="$host_os dyld"
9067  version_type=darwin
9068  need_lib_prefix=no
9069  need_version=no
9070  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9071  soname_spec='${libname}${release}${major}$shared_ext'
9072  shlibpath_overrides_runpath=yes
9073  shlibpath_var=DYLD_LIBRARY_PATH
9074  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9075
9076  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9077  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9078  ;;
9079
9080dgux*)
9081  version_type=linux
9082  need_lib_prefix=no
9083  need_version=no
9084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9085  soname_spec='${libname}${release}${shared_ext}$major'
9086  shlibpath_var=LD_LIBRARY_PATH
9087  ;;
9088
9089freebsd1*)
9090  dynamic_linker=no
9091  ;;
9092
9093freebsd* | dragonfly*)
9094  # DragonFly does not have aout.  When/if they implement a new
9095  # versioning mechanism, adjust this.
9096  if test -x /usr/bin/objformat; then
9097    objformat=`/usr/bin/objformat`
9098  else
9099    case $host_os in
9100    freebsd[123]*) objformat=aout ;;
9101    *) objformat=elf ;;
9102    esac
9103  fi
9104  version_type=freebsd-$objformat
9105  case $version_type in
9106    freebsd-elf*)
9107      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9108      need_version=no
9109      need_lib_prefix=no
9110      ;;
9111    freebsd-*)
9112      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9113      need_version=yes
9114      ;;
9115  esac
9116  shlibpath_var=LD_LIBRARY_PATH
9117  case $host_os in
9118  freebsd2*)
9119    shlibpath_overrides_runpath=yes
9120    ;;
9121  freebsd3.[01]* | freebsdelf3.[01]*)
9122    shlibpath_overrides_runpath=yes
9123    hardcode_into_libs=yes
9124    ;;
9125  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9126  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9127    shlibpath_overrides_runpath=no
9128    hardcode_into_libs=yes
9129    ;;
9130  *) # from 4.6 on, and DragonFly
9131    shlibpath_overrides_runpath=yes
9132    hardcode_into_libs=yes
9133    ;;
9134  esac
9135  ;;
9136
9137gnu*)
9138  version_type=linux
9139  need_lib_prefix=no
9140  need_version=no
9141  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9142  soname_spec='${libname}${release}${shared_ext}$major'
9143  shlibpath_var=LD_LIBRARY_PATH
9144  hardcode_into_libs=yes
9145  ;;
9146
9147hpux9* | hpux10* | hpux11*)
9148  # Give a soname corresponding to the major version so that dld.sl refuses to
9149  # link against other versions.
9150  version_type=sunos
9151  need_lib_prefix=no
9152  need_version=no
9153  case $host_cpu in
9154  ia64*)
9155    shrext_cmds='.so'
9156    hardcode_into_libs=yes
9157    dynamic_linker="$host_os dld.so"
9158    shlibpath_var=LD_LIBRARY_PATH
9159    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9160    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161    soname_spec='${libname}${release}${shared_ext}$major'
9162    if test "X$HPUX_IA64_MODE" = X32; then
9163      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9164    else
9165      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9166    fi
9167    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9168    ;;
9169   hppa*64*)
9170     shrext_cmds='.sl'
9171     hardcode_into_libs=yes
9172     dynamic_linker="$host_os dld.sl"
9173     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9174     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9175     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9176     soname_spec='${libname}${release}${shared_ext}$major'
9177     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9178     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9179     ;;
9180   *)
9181    shrext_cmds='.sl'
9182    dynamic_linker="$host_os dld.sl"
9183    shlibpath_var=SHLIB_PATH
9184    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9185    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9186    soname_spec='${libname}${release}${shared_ext}$major'
9187    ;;
9188  esac
9189  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9190  postinstall_cmds='chmod 555 $lib'
9191  ;;
9192
9193interix[3-9]*)
9194  version_type=linux
9195  need_lib_prefix=no
9196  need_version=no
9197  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9198  soname_spec='${libname}${release}${shared_ext}$major'
9199  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9200  shlibpath_var=LD_LIBRARY_PATH
9201  shlibpath_overrides_runpath=no
9202  hardcode_into_libs=yes
9203  ;;
9204
9205irix5* | irix6* | nonstopux*)
9206  case $host_os in
9207    nonstopux*) version_type=nonstopux ;;
9208    *)
9209	if test "$lt_cv_prog_gnu_ld" = yes; then
9210		version_type=linux
9211	else
9212		version_type=irix
9213	fi ;;
9214  esac
9215  need_lib_prefix=no
9216  need_version=no
9217  soname_spec='${libname}${release}${shared_ext}$major'
9218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9219  case $host_os in
9220  irix5* | nonstopux*)
9221    libsuff= shlibsuff=
9222    ;;
9223  *)
9224    case $LD in # libtool.m4 will add one of these switches to LD
9225    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9226      libsuff= shlibsuff= libmagic=32-bit;;
9227    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9228      libsuff=32 shlibsuff=N32 libmagic=N32;;
9229    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9230      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9231    *) libsuff= shlibsuff= libmagic=never-match;;
9232    esac
9233    ;;
9234  esac
9235  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9236  shlibpath_overrides_runpath=no
9237  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9238  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9239  hardcode_into_libs=yes
9240  ;;
9241
9242# No shared lib support for Linux oldld, aout, or coff.
9243linux*oldld* | linux*aout* | linux*coff*)
9244  dynamic_linker=no
9245  ;;
9246
9247# This must be Linux ELF.
9248linux* | k*bsd*-gnu)
9249  version_type=linux
9250  need_lib_prefix=no
9251  need_version=no
9252  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253  soname_spec='${libname}${release}${shared_ext}$major'
9254  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9255  shlibpath_var=LD_LIBRARY_PATH
9256  shlibpath_overrides_runpath=no
9257  # This implies no fast_install, which is unacceptable.
9258  # Some rework will be needed to allow for fast_install
9259  # before this can be enabled.
9260  hardcode_into_libs=yes
9261
9262  # Append ld.so.conf contents to the search path
9263  if test -f /etc/ld.so.conf; then
9264    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9265    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9266  fi
9267
9268  # We used to test for /lib/ld.so.1 and disable shared libraries on
9269  # powerpc, because MkLinux only supported shared libraries with the
9270  # GNU dynamic linker.  Since this was broken with cross compilers,
9271  # most powerpc-linux boxes support dynamic linking these days and
9272  # people can always --disable-shared, the test was removed, and we
9273  # assume the GNU/Linux dynamic linker is in use.
9274  dynamic_linker='GNU/Linux ld.so'
9275  ;;
9276
9277netbsdelf*-gnu)
9278  version_type=linux
9279  need_lib_prefix=no
9280  need_version=no
9281  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9282  soname_spec='${libname}${release}${shared_ext}$major'
9283  shlibpath_var=LD_LIBRARY_PATH
9284  shlibpath_overrides_runpath=no
9285  hardcode_into_libs=yes
9286  dynamic_linker='NetBSD ld.elf_so'
9287  ;;
9288
9289netbsd*)
9290  version_type=sunos
9291  need_lib_prefix=no
9292  need_version=no
9293  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9294    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9295    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9296    dynamic_linker='NetBSD (a.out) ld.so'
9297  else
9298    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9299    soname_spec='${libname}${release}${shared_ext}$major'
9300    dynamic_linker='NetBSD ld.elf_so'
9301  fi
9302  shlibpath_var=LD_LIBRARY_PATH
9303  shlibpath_overrides_runpath=yes
9304  hardcode_into_libs=yes
9305  ;;
9306
9307newsos6)
9308  version_type=linux
9309  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310  shlibpath_var=LD_LIBRARY_PATH
9311  shlibpath_overrides_runpath=yes
9312  ;;
9313
9314nto-qnx*)
9315  version_type=linux
9316  need_lib_prefix=no
9317  need_version=no
9318  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319  soname_spec='${libname}${release}${shared_ext}$major'
9320  shlibpath_var=LD_LIBRARY_PATH
9321  shlibpath_overrides_runpath=yes
9322  ;;
9323
9324openbsd*)
9325  version_type=sunos
9326  sys_lib_dlsearch_path_spec="/usr/lib"
9327  need_lib_prefix=no
9328  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9329  case $host_os in
9330    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9331    *)                         need_version=no  ;;
9332  esac
9333  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9334  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9335  shlibpath_var=LD_LIBRARY_PATH
9336  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9337    case $host_os in
9338      openbsd2.[89] | openbsd2.[89].*)
9339	shlibpath_overrides_runpath=no
9340	;;
9341      *)
9342	shlibpath_overrides_runpath=yes
9343	;;
9344      esac
9345  else
9346    shlibpath_overrides_runpath=yes
9347  fi
9348  ;;
9349
9350os2*)
9351  libname_spec='$name'
9352  shrext_cmds=".dll"
9353  need_lib_prefix=no
9354  library_names_spec='$libname${shared_ext} $libname.a'
9355  dynamic_linker='OS/2 ld.exe'
9356  shlibpath_var=LIBPATH
9357  ;;
9358
9359osf3* | osf4* | osf5*)
9360  version_type=osf
9361  need_lib_prefix=no
9362  need_version=no
9363  soname_spec='${libname}${release}${shared_ext}$major'
9364  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365  shlibpath_var=LD_LIBRARY_PATH
9366  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9367  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9368  ;;
9369
9370rdos*)
9371  dynamic_linker=no
9372  ;;
9373
9374solaris*)
9375  version_type=linux
9376  need_lib_prefix=no
9377  need_version=no
9378  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9379  soname_spec='${libname}${release}${shared_ext}$major'
9380  shlibpath_var=LD_LIBRARY_PATH
9381  shlibpath_overrides_runpath=yes
9382  hardcode_into_libs=yes
9383  # ldd complains unless libraries are executable
9384  postinstall_cmds='chmod +x $lib'
9385  ;;
9386
9387sunos4*)
9388  version_type=sunos
9389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9390  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9391  shlibpath_var=LD_LIBRARY_PATH
9392  shlibpath_overrides_runpath=yes
9393  if test "$with_gnu_ld" = yes; then
9394    need_lib_prefix=no
9395  fi
9396  need_version=yes
9397  ;;
9398
9399sysv4 | sysv4.3*)
9400  version_type=linux
9401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9402  soname_spec='${libname}${release}${shared_ext}$major'
9403  shlibpath_var=LD_LIBRARY_PATH
9404  case $host_vendor in
9405    sni)
9406      shlibpath_overrides_runpath=no
9407      need_lib_prefix=no
9408      export_dynamic_flag_spec='${wl}-Blargedynsym'
9409      runpath_var=LD_RUN_PATH
9410      ;;
9411    siemens)
9412      need_lib_prefix=no
9413      ;;
9414    motorola)
9415      need_lib_prefix=no
9416      need_version=no
9417      shlibpath_overrides_runpath=no
9418      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9419      ;;
9420  esac
9421  ;;
9422
9423sysv4*MP*)
9424  if test -d /usr/nec ;then
9425    version_type=linux
9426    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9427    soname_spec='$libname${shared_ext}.$major'
9428    shlibpath_var=LD_LIBRARY_PATH
9429  fi
9430  ;;
9431
9432sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9433  version_type=freebsd-elf
9434  need_lib_prefix=no
9435  need_version=no
9436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9437  soname_spec='${libname}${release}${shared_ext}$major'
9438  shlibpath_var=LD_LIBRARY_PATH
9439  hardcode_into_libs=yes
9440  if test "$with_gnu_ld" = yes; then
9441    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9442    shlibpath_overrides_runpath=no
9443  else
9444    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9445    shlibpath_overrides_runpath=yes
9446    case $host_os in
9447      sco3.2v5*)
9448        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9449	;;
9450    esac
9451  fi
9452  sys_lib_dlsearch_path_spec='/usr/lib'
9453  ;;
9454
9455uts4*)
9456  version_type=linux
9457  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458  soname_spec='${libname}${release}${shared_ext}$major'
9459  shlibpath_var=LD_LIBRARY_PATH
9460  ;;
9461
9462*)
9463  dynamic_linker=no
9464  ;;
9465esac
9466{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9467echo "${ECHO_T}$dynamic_linker" >&6; }
9468test "$dynamic_linker" = no && can_build_shared=no
9469
9470if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9471  echo $ECHO_N "(cached) $ECHO_C" >&6
9472else
9473  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9474fi
9475
9476sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9477if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9478  echo $ECHO_N "(cached) $ECHO_C" >&6
9479else
9480  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9481fi
9482
9483sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9484
9485variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9486if test "$GCC" = yes; then
9487  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9488fi
9489
9490{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9491echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9492hardcode_action=
9493if test -n "$hardcode_libdir_flag_spec" || \
9494   test -n "$runpath_var" || \
9495   test "X$hardcode_automatic" = "Xyes" ; then
9496
9497  # We can hardcode non-existant directories.
9498  if test "$hardcode_direct" != no &&
9499     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9500     # have to relink, otherwise we might link with an installed library
9501     # when we should be linking with a yet-to-be-installed one
9502     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9503     test "$hardcode_minus_L" != no; then
9504    # Linking always hardcodes the temporary library directory.
9505    hardcode_action=relink
9506  else
9507    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9508    hardcode_action=immediate
9509  fi
9510else
9511  # We cannot hardcode anything, or else we can only hardcode existing
9512  # directories.
9513  hardcode_action=unsupported
9514fi
9515{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9516echo "${ECHO_T}$hardcode_action" >&6; }
9517
9518if test "$hardcode_action" = relink; then
9519  # Fast installation is not supported
9520  enable_fast_install=no
9521elif test "$shlibpath_overrides_runpath" = yes ||
9522     test "$enable_shared" = no; then
9523  # Fast installation is not necessary
9524  enable_fast_install=needless
9525fi
9526
9527striplib=
9528old_striplib=
9529{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9530echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9531if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9532  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9533  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9534  { echo "$as_me:$LINENO: result: yes" >&5
9535echo "${ECHO_T}yes" >&6; }
9536else
9537# FIXME - insert some real tests, host_os isn't really good enough
9538  case $host_os in
9539   darwin*)
9540       if test -n "$STRIP" ; then
9541         striplib="$STRIP -x"
9542         old_striplib="$STRIP -S"
9543         { echo "$as_me:$LINENO: result: yes" >&5
9544echo "${ECHO_T}yes" >&6; }
9545       else
9546  { echo "$as_me:$LINENO: result: no" >&5
9547echo "${ECHO_T}no" >&6; }
9548fi
9549       ;;
9550   *)
9551  { echo "$as_me:$LINENO: result: no" >&5
9552echo "${ECHO_T}no" >&6; }
9553    ;;
9554  esac
9555fi
9556
9557if test "x$enable_dlopen" != xyes; then
9558  enable_dlopen=unknown
9559  enable_dlopen_self=unknown
9560  enable_dlopen_self_static=unknown
9561else
9562  lt_cv_dlopen=no
9563  lt_cv_dlopen_libs=
9564
9565  case $host_os in
9566  beos*)
9567    lt_cv_dlopen="load_add_on"
9568    lt_cv_dlopen_libs=
9569    lt_cv_dlopen_self=yes
9570    ;;
9571
9572  mingw* | pw32*)
9573    lt_cv_dlopen="LoadLibrary"
9574    lt_cv_dlopen_libs=
9575   ;;
9576
9577  cygwin*)
9578    lt_cv_dlopen="dlopen"
9579    lt_cv_dlopen_libs=
9580   ;;
9581
9582  darwin*)
9583  # if libdl is installed we need to link against it
9584    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9585echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9586if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9587  echo $ECHO_N "(cached) $ECHO_C" >&6
9588else
9589  ac_check_lib_save_LIBS=$LIBS
9590LIBS="-ldl  $LIBS"
9591cat >conftest.$ac_ext <<_ACEOF
9592/* confdefs.h.  */
9593_ACEOF
9594cat confdefs.h >>conftest.$ac_ext
9595cat >>conftest.$ac_ext <<_ACEOF
9596/* end confdefs.h.  */
9597
9598/* Override any GCC internal prototype to avoid an error.
9599   Use char because int might match the return type of a GCC
9600   builtin and then its argument prototype would still apply.  */
9601#ifdef __cplusplus
9602extern "C"
9603#endif
9604char dlopen ();
9605int
9606main ()
9607{
9608return dlopen ();
9609  ;
9610  return 0;
9611}
9612_ACEOF
9613rm -f conftest.$ac_objext conftest$ac_exeext
9614if { (ac_try="$ac_link"
9615case "(($ac_try" in
9616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617  *) ac_try_echo=$ac_try;;
9618esac
9619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620  (eval "$ac_link") 2>conftest.er1
9621  ac_status=$?
9622  grep -v '^ *+' conftest.er1 >conftest.err
9623  rm -f conftest.er1
9624  cat conftest.err >&5
9625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626  (exit $ac_status); } && {
9627	 test -z "$ac_c_werror_flag" ||
9628	 test ! -s conftest.err
9629       } && test -s conftest$ac_exeext &&
9630       $as_test_x conftest$ac_exeext; then
9631  ac_cv_lib_dl_dlopen=yes
9632else
9633  echo "$as_me: failed program was:" >&5
9634sed 's/^/| /' conftest.$ac_ext >&5
9635
9636	ac_cv_lib_dl_dlopen=no
9637fi
9638
9639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9640      conftest$ac_exeext conftest.$ac_ext
9641LIBS=$ac_check_lib_save_LIBS
9642fi
9643{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9644echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9645if test $ac_cv_lib_dl_dlopen = yes; then
9646  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9647else
9648
9649    lt_cv_dlopen="dyld"
9650    lt_cv_dlopen_libs=
9651    lt_cv_dlopen_self=yes
9652
9653fi
9654
9655   ;;
9656
9657  *)
9658    { echo "$as_me:$LINENO: checking for shl_load" >&5
9659echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9660if test "${ac_cv_func_shl_load+set}" = set; then
9661  echo $ECHO_N "(cached) $ECHO_C" >&6
9662else
9663  cat >conftest.$ac_ext <<_ACEOF
9664/* confdefs.h.  */
9665_ACEOF
9666cat confdefs.h >>conftest.$ac_ext
9667cat >>conftest.$ac_ext <<_ACEOF
9668/* end confdefs.h.  */
9669/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9670   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9671#define shl_load innocuous_shl_load
9672
9673/* System header to define __stub macros and hopefully few prototypes,
9674    which can conflict with char shl_load (); below.
9675    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9676    <limits.h> exists even on freestanding compilers.  */
9677
9678#ifdef __STDC__
9679# include <limits.h>
9680#else
9681# include <assert.h>
9682#endif
9683
9684#undef shl_load
9685
9686/* Override any GCC internal prototype to avoid an error.
9687   Use char because int might match the return type of a GCC
9688   builtin and then its argument prototype would still apply.  */
9689#ifdef __cplusplus
9690extern "C"
9691#endif
9692char shl_load ();
9693/* The GNU C library defines this for functions which it implements
9694    to always fail with ENOSYS.  Some functions are actually named
9695    something starting with __ and the normal name is an alias.  */
9696#if defined __stub_shl_load || defined __stub___shl_load
9697choke me
9698#endif
9699
9700int
9701main ()
9702{
9703return shl_load ();
9704  ;
9705  return 0;
9706}
9707_ACEOF
9708rm -f conftest.$ac_objext conftest$ac_exeext
9709if { (ac_try="$ac_link"
9710case "(($ac_try" in
9711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712  *) ac_try_echo=$ac_try;;
9713esac
9714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715  (eval "$ac_link") 2>conftest.er1
9716  ac_status=$?
9717  grep -v '^ *+' conftest.er1 >conftest.err
9718  rm -f conftest.er1
9719  cat conftest.err >&5
9720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721  (exit $ac_status); } && {
9722	 test -z "$ac_c_werror_flag" ||
9723	 test ! -s conftest.err
9724       } && test -s conftest$ac_exeext &&
9725       $as_test_x conftest$ac_exeext; then
9726  ac_cv_func_shl_load=yes
9727else
9728  echo "$as_me: failed program was:" >&5
9729sed 's/^/| /' conftest.$ac_ext >&5
9730
9731	ac_cv_func_shl_load=no
9732fi
9733
9734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9735      conftest$ac_exeext conftest.$ac_ext
9736fi
9737{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9738echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9739if test $ac_cv_func_shl_load = yes; then
9740  lt_cv_dlopen="shl_load"
9741else
9742  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9743echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9744if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9745  echo $ECHO_N "(cached) $ECHO_C" >&6
9746else
9747  ac_check_lib_save_LIBS=$LIBS
9748LIBS="-ldld  $LIBS"
9749cat >conftest.$ac_ext <<_ACEOF
9750/* confdefs.h.  */
9751_ACEOF
9752cat confdefs.h >>conftest.$ac_ext
9753cat >>conftest.$ac_ext <<_ACEOF
9754/* end confdefs.h.  */
9755
9756/* Override any GCC internal prototype to avoid an error.
9757   Use char because int might match the return type of a GCC
9758   builtin and then its argument prototype would still apply.  */
9759#ifdef __cplusplus
9760extern "C"
9761#endif
9762char shl_load ();
9763int
9764main ()
9765{
9766return shl_load ();
9767  ;
9768  return 0;
9769}
9770_ACEOF
9771rm -f conftest.$ac_objext conftest$ac_exeext
9772if { (ac_try="$ac_link"
9773case "(($ac_try" in
9774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775  *) ac_try_echo=$ac_try;;
9776esac
9777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778  (eval "$ac_link") 2>conftest.er1
9779  ac_status=$?
9780  grep -v '^ *+' conftest.er1 >conftest.err
9781  rm -f conftest.er1
9782  cat conftest.err >&5
9783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784  (exit $ac_status); } && {
9785	 test -z "$ac_c_werror_flag" ||
9786	 test ! -s conftest.err
9787       } && test -s conftest$ac_exeext &&
9788       $as_test_x conftest$ac_exeext; then
9789  ac_cv_lib_dld_shl_load=yes
9790else
9791  echo "$as_me: failed program was:" >&5
9792sed 's/^/| /' conftest.$ac_ext >&5
9793
9794	ac_cv_lib_dld_shl_load=no
9795fi
9796
9797rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9798      conftest$ac_exeext conftest.$ac_ext
9799LIBS=$ac_check_lib_save_LIBS
9800fi
9801{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9802echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9803if test $ac_cv_lib_dld_shl_load = yes; then
9804  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9805else
9806  { echo "$as_me:$LINENO: checking for dlopen" >&5
9807echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9808if test "${ac_cv_func_dlopen+set}" = set; then
9809  echo $ECHO_N "(cached) $ECHO_C" >&6
9810else
9811  cat >conftest.$ac_ext <<_ACEOF
9812/* confdefs.h.  */
9813_ACEOF
9814cat confdefs.h >>conftest.$ac_ext
9815cat >>conftest.$ac_ext <<_ACEOF
9816/* end confdefs.h.  */
9817/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9818   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9819#define dlopen innocuous_dlopen
9820
9821/* System header to define __stub macros and hopefully few prototypes,
9822    which can conflict with char dlopen (); below.
9823    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9824    <limits.h> exists even on freestanding compilers.  */
9825
9826#ifdef __STDC__
9827# include <limits.h>
9828#else
9829# include <assert.h>
9830#endif
9831
9832#undef dlopen
9833
9834/* Override any GCC internal prototype to avoid an error.
9835   Use char because int might match the return type of a GCC
9836   builtin and then its argument prototype would still apply.  */
9837#ifdef __cplusplus
9838extern "C"
9839#endif
9840char dlopen ();
9841/* The GNU C library defines this for functions which it implements
9842    to always fail with ENOSYS.  Some functions are actually named
9843    something starting with __ and the normal name is an alias.  */
9844#if defined __stub_dlopen || defined __stub___dlopen
9845choke me
9846#endif
9847
9848int
9849main ()
9850{
9851return dlopen ();
9852  ;
9853  return 0;
9854}
9855_ACEOF
9856rm -f conftest.$ac_objext conftest$ac_exeext
9857if { (ac_try="$ac_link"
9858case "(($ac_try" in
9859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9860  *) ac_try_echo=$ac_try;;
9861esac
9862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9863  (eval "$ac_link") 2>conftest.er1
9864  ac_status=$?
9865  grep -v '^ *+' conftest.er1 >conftest.err
9866  rm -f conftest.er1
9867  cat conftest.err >&5
9868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869  (exit $ac_status); } && {
9870	 test -z "$ac_c_werror_flag" ||
9871	 test ! -s conftest.err
9872       } && test -s conftest$ac_exeext &&
9873       $as_test_x conftest$ac_exeext; then
9874  ac_cv_func_dlopen=yes
9875else
9876  echo "$as_me: failed program was:" >&5
9877sed 's/^/| /' conftest.$ac_ext >&5
9878
9879	ac_cv_func_dlopen=no
9880fi
9881
9882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9883      conftest$ac_exeext conftest.$ac_ext
9884fi
9885{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9886echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9887if test $ac_cv_func_dlopen = yes; then
9888  lt_cv_dlopen="dlopen"
9889else
9890  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9891echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9892if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9893  echo $ECHO_N "(cached) $ECHO_C" >&6
9894else
9895  ac_check_lib_save_LIBS=$LIBS
9896LIBS="-ldl  $LIBS"
9897cat >conftest.$ac_ext <<_ACEOF
9898/* confdefs.h.  */
9899_ACEOF
9900cat confdefs.h >>conftest.$ac_ext
9901cat >>conftest.$ac_ext <<_ACEOF
9902/* end confdefs.h.  */
9903
9904/* Override any GCC internal prototype to avoid an error.
9905   Use char because int might match the return type of a GCC
9906   builtin and then its argument prototype would still apply.  */
9907#ifdef __cplusplus
9908extern "C"
9909#endif
9910char dlopen ();
9911int
9912main ()
9913{
9914return dlopen ();
9915  ;
9916  return 0;
9917}
9918_ACEOF
9919rm -f conftest.$ac_objext conftest$ac_exeext
9920if { (ac_try="$ac_link"
9921case "(($ac_try" in
9922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923  *) ac_try_echo=$ac_try;;
9924esac
9925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926  (eval "$ac_link") 2>conftest.er1
9927  ac_status=$?
9928  grep -v '^ *+' conftest.er1 >conftest.err
9929  rm -f conftest.er1
9930  cat conftest.err >&5
9931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932  (exit $ac_status); } && {
9933	 test -z "$ac_c_werror_flag" ||
9934	 test ! -s conftest.err
9935       } && test -s conftest$ac_exeext &&
9936       $as_test_x conftest$ac_exeext; then
9937  ac_cv_lib_dl_dlopen=yes
9938else
9939  echo "$as_me: failed program was:" >&5
9940sed 's/^/| /' conftest.$ac_ext >&5
9941
9942	ac_cv_lib_dl_dlopen=no
9943fi
9944
9945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9946      conftest$ac_exeext conftest.$ac_ext
9947LIBS=$ac_check_lib_save_LIBS
9948fi
9949{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9950echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9951if test $ac_cv_lib_dl_dlopen = yes; then
9952  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9953else
9954  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9955echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9956if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9957  echo $ECHO_N "(cached) $ECHO_C" >&6
9958else
9959  ac_check_lib_save_LIBS=$LIBS
9960LIBS="-lsvld  $LIBS"
9961cat >conftest.$ac_ext <<_ACEOF
9962/* confdefs.h.  */
9963_ACEOF
9964cat confdefs.h >>conftest.$ac_ext
9965cat >>conftest.$ac_ext <<_ACEOF
9966/* end confdefs.h.  */
9967
9968/* Override any GCC internal prototype to avoid an error.
9969   Use char because int might match the return type of a GCC
9970   builtin and then its argument prototype would still apply.  */
9971#ifdef __cplusplus
9972extern "C"
9973#endif
9974char dlopen ();
9975int
9976main ()
9977{
9978return dlopen ();
9979  ;
9980  return 0;
9981}
9982_ACEOF
9983rm -f conftest.$ac_objext conftest$ac_exeext
9984if { (ac_try="$ac_link"
9985case "(($ac_try" in
9986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987  *) ac_try_echo=$ac_try;;
9988esac
9989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990  (eval "$ac_link") 2>conftest.er1
9991  ac_status=$?
9992  grep -v '^ *+' conftest.er1 >conftest.err
9993  rm -f conftest.er1
9994  cat conftest.err >&5
9995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996  (exit $ac_status); } && {
9997	 test -z "$ac_c_werror_flag" ||
9998	 test ! -s conftest.err
9999       } && test -s conftest$ac_exeext &&
10000       $as_test_x conftest$ac_exeext; then
10001  ac_cv_lib_svld_dlopen=yes
10002else
10003  echo "$as_me: failed program was:" >&5
10004sed 's/^/| /' conftest.$ac_ext >&5
10005
10006	ac_cv_lib_svld_dlopen=no
10007fi
10008
10009rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10010      conftest$ac_exeext conftest.$ac_ext
10011LIBS=$ac_check_lib_save_LIBS
10012fi
10013{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10014echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10015if test $ac_cv_lib_svld_dlopen = yes; then
10016  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10017else
10018  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10019echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10020if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10021  echo $ECHO_N "(cached) $ECHO_C" >&6
10022else
10023  ac_check_lib_save_LIBS=$LIBS
10024LIBS="-ldld  $LIBS"
10025cat >conftest.$ac_ext <<_ACEOF
10026/* confdefs.h.  */
10027_ACEOF
10028cat confdefs.h >>conftest.$ac_ext
10029cat >>conftest.$ac_ext <<_ACEOF
10030/* end confdefs.h.  */
10031
10032/* Override any GCC internal prototype to avoid an error.
10033   Use char because int might match the return type of a GCC
10034   builtin and then its argument prototype would still apply.  */
10035#ifdef __cplusplus
10036extern "C"
10037#endif
10038char dld_link ();
10039int
10040main ()
10041{
10042return dld_link ();
10043  ;
10044  return 0;
10045}
10046_ACEOF
10047rm -f conftest.$ac_objext conftest$ac_exeext
10048if { (ac_try="$ac_link"
10049case "(($ac_try" in
10050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051  *) ac_try_echo=$ac_try;;
10052esac
10053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054  (eval "$ac_link") 2>conftest.er1
10055  ac_status=$?
10056  grep -v '^ *+' conftest.er1 >conftest.err
10057  rm -f conftest.er1
10058  cat conftest.err >&5
10059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060  (exit $ac_status); } && {
10061	 test -z "$ac_c_werror_flag" ||
10062	 test ! -s conftest.err
10063       } && test -s conftest$ac_exeext &&
10064       $as_test_x conftest$ac_exeext; then
10065  ac_cv_lib_dld_dld_link=yes
10066else
10067  echo "$as_me: failed program was:" >&5
10068sed 's/^/| /' conftest.$ac_ext >&5
10069
10070	ac_cv_lib_dld_dld_link=no
10071fi
10072
10073rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10074      conftest$ac_exeext conftest.$ac_ext
10075LIBS=$ac_check_lib_save_LIBS
10076fi
10077{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10078echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10079if test $ac_cv_lib_dld_dld_link = yes; then
10080  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10081fi
10082
10083
10084fi
10085
10086
10087fi
10088
10089
10090fi
10091
10092
10093fi
10094
10095
10096fi
10097
10098    ;;
10099  esac
10100
10101  if test "x$lt_cv_dlopen" != xno; then
10102    enable_dlopen=yes
10103  else
10104    enable_dlopen=no
10105  fi
10106
10107  case $lt_cv_dlopen in
10108  dlopen)
10109    save_CPPFLAGS="$CPPFLAGS"
10110    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10111
10112    save_LDFLAGS="$LDFLAGS"
10113    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10114
10115    save_LIBS="$LIBS"
10116    LIBS="$lt_cv_dlopen_libs $LIBS"
10117
10118    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10119echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10120if test "${lt_cv_dlopen_self+set}" = set; then
10121  echo $ECHO_N "(cached) $ECHO_C" >&6
10122else
10123  	  if test "$cross_compiling" = yes; then :
10124  lt_cv_dlopen_self=cross
10125else
10126  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10127  lt_status=$lt_dlunknown
10128  cat > conftest.$ac_ext <<EOF
10129#line 10129 "configure"
10130#include "confdefs.h"
10131
10132#if HAVE_DLFCN_H
10133#include <dlfcn.h>
10134#endif
10135
10136#include <stdio.h>
10137
10138#ifdef RTLD_GLOBAL
10139#  define LT_DLGLOBAL		RTLD_GLOBAL
10140#else
10141#  ifdef DL_GLOBAL
10142#    define LT_DLGLOBAL		DL_GLOBAL
10143#  else
10144#    define LT_DLGLOBAL		0
10145#  endif
10146#endif
10147
10148/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10149   find out it does not work in some platform. */
10150#ifndef LT_DLLAZY_OR_NOW
10151#  ifdef RTLD_LAZY
10152#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10153#  else
10154#    ifdef DL_LAZY
10155#      define LT_DLLAZY_OR_NOW		DL_LAZY
10156#    else
10157#      ifdef RTLD_NOW
10158#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10159#      else
10160#        ifdef DL_NOW
10161#          define LT_DLLAZY_OR_NOW	DL_NOW
10162#        else
10163#          define LT_DLLAZY_OR_NOW	0
10164#        endif
10165#      endif
10166#    endif
10167#  endif
10168#endif
10169
10170#ifdef __cplusplus
10171extern "C" void exit (int);
10172#endif
10173
10174void fnord() { int i=42;}
10175int main ()
10176{
10177  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10178  int status = $lt_dlunknown;
10179
10180  if (self)
10181    {
10182      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10183      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10184      /* dlclose (self); */
10185    }
10186  else
10187    puts (dlerror ());
10188
10189    exit (status);
10190}
10191EOF
10192  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10193  (eval $ac_link) 2>&5
10194  ac_status=$?
10195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10197    (./conftest; exit; ) >&5 2>/dev/null
10198    lt_status=$?
10199    case x$lt_status in
10200      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10201      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10202      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10203    esac
10204  else :
10205    # compilation failed
10206    lt_cv_dlopen_self=no
10207  fi
10208fi
10209rm -fr conftest*
10210
10211
10212fi
10213{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10214echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10215
10216    if test "x$lt_cv_dlopen_self" = xyes; then
10217      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10218      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10219echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10220if test "${lt_cv_dlopen_self_static+set}" = set; then
10221  echo $ECHO_N "(cached) $ECHO_C" >&6
10222else
10223  	  if test "$cross_compiling" = yes; then :
10224  lt_cv_dlopen_self_static=cross
10225else
10226  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10227  lt_status=$lt_dlunknown
10228  cat > conftest.$ac_ext <<EOF
10229#line 10229 "configure"
10230#include "confdefs.h"
10231
10232#if HAVE_DLFCN_H
10233#include <dlfcn.h>
10234#endif
10235
10236#include <stdio.h>
10237
10238#ifdef RTLD_GLOBAL
10239#  define LT_DLGLOBAL		RTLD_GLOBAL
10240#else
10241#  ifdef DL_GLOBAL
10242#    define LT_DLGLOBAL		DL_GLOBAL
10243#  else
10244#    define LT_DLGLOBAL		0
10245#  endif
10246#endif
10247
10248/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10249   find out it does not work in some platform. */
10250#ifndef LT_DLLAZY_OR_NOW
10251#  ifdef RTLD_LAZY
10252#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10253#  else
10254#    ifdef DL_LAZY
10255#      define LT_DLLAZY_OR_NOW		DL_LAZY
10256#    else
10257#      ifdef RTLD_NOW
10258#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10259#      else
10260#        ifdef DL_NOW
10261#          define LT_DLLAZY_OR_NOW	DL_NOW
10262#        else
10263#          define LT_DLLAZY_OR_NOW	0
10264#        endif
10265#      endif
10266#    endif
10267#  endif
10268#endif
10269
10270#ifdef __cplusplus
10271extern "C" void exit (int);
10272#endif
10273
10274void fnord() { int i=42;}
10275int main ()
10276{
10277  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10278  int status = $lt_dlunknown;
10279
10280  if (self)
10281    {
10282      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10283      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10284      /* dlclose (self); */
10285    }
10286  else
10287    puts (dlerror ());
10288
10289    exit (status);
10290}
10291EOF
10292  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10293  (eval $ac_link) 2>&5
10294  ac_status=$?
10295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10297    (./conftest; exit; ) >&5 2>/dev/null
10298    lt_status=$?
10299    case x$lt_status in
10300      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10301      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10302      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10303    esac
10304  else :
10305    # compilation failed
10306    lt_cv_dlopen_self_static=no
10307  fi
10308fi
10309rm -fr conftest*
10310
10311
10312fi
10313{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10314echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10315    fi
10316
10317    CPPFLAGS="$save_CPPFLAGS"
10318    LDFLAGS="$save_LDFLAGS"
10319    LIBS="$save_LIBS"
10320    ;;
10321  esac
10322
10323  case $lt_cv_dlopen_self in
10324  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10325  *) enable_dlopen_self=unknown ;;
10326  esac
10327
10328  case $lt_cv_dlopen_self_static in
10329  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10330  *) enable_dlopen_self_static=unknown ;;
10331  esac
10332fi
10333
10334
10335# Report which library types will actually be built
10336{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10337echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10338{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10339echo "${ECHO_T}$can_build_shared" >&6; }
10340
10341{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10342echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10343test "$can_build_shared" = "no" && enable_shared=no
10344
10345# On AIX, shared libraries and static libraries use the same namespace, and
10346# are all built from PIC.
10347case $host_os in
10348aix3*)
10349  test "$enable_shared" = yes && enable_static=no
10350  if test -n "$RANLIB"; then
10351    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10352    postinstall_cmds='$RANLIB $lib'
10353  fi
10354  ;;
10355
10356aix[4-9]*)
10357  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10358    test "$enable_shared" = yes && enable_static=no
10359  fi
10360    ;;
10361esac
10362{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10363echo "${ECHO_T}$enable_shared" >&6; }
10364
10365{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10366echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10367# Make sure either enable_shared or enable_static is yes.
10368test "$enable_shared" = yes || enable_static=yes
10369{ echo "$as_me:$LINENO: result: $enable_static" >&5
10370echo "${ECHO_T}$enable_static" >&6; }
10371
10372# The else clause should only fire when bootstrapping the
10373# libtool distribution, otherwise you forgot to ship ltmain.sh
10374# with your package, and you will get complaints that there are
10375# no rules to generate ltmain.sh.
10376if test -f "$ltmain"; then
10377  # See if we are running on zsh, and set the options which allow our commands through
10378  # without removal of \ escapes.
10379  if test -n "${ZSH_VERSION+set}" ; then
10380    setopt NO_GLOB_SUBST
10381  fi
10382  # Now quote all the things that may contain metacharacters while being
10383  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10384  # variables and quote the copies for generation of the libtool script.
10385  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10386    SED SHELL STRIP \
10387    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10388    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10389    deplibs_check_method reload_flag reload_cmds need_locks \
10390    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10391    lt_cv_sys_global_symbol_to_c_name_address \
10392    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10393    old_postinstall_cmds old_postuninstall_cmds \
10394    compiler \
10395    CC \
10396    LD \
10397    lt_prog_compiler_wl \
10398    lt_prog_compiler_pic \
10399    lt_prog_compiler_static \
10400    lt_prog_compiler_no_builtin_flag \
10401    export_dynamic_flag_spec \
10402    thread_safe_flag_spec \
10403    whole_archive_flag_spec \
10404    enable_shared_with_static_runtimes \
10405    old_archive_cmds \
10406    old_archive_from_new_cmds \
10407    predep_objects \
10408    postdep_objects \
10409    predeps \
10410    postdeps \
10411    compiler_lib_search_path \
10412    compiler_lib_search_dirs \
10413    archive_cmds \
10414    archive_expsym_cmds \
10415    postinstall_cmds \
10416    postuninstall_cmds \
10417    old_archive_from_expsyms_cmds \
10418    allow_undefined_flag \
10419    no_undefined_flag \
10420    export_symbols_cmds \
10421    hardcode_libdir_flag_spec \
10422    hardcode_libdir_flag_spec_ld \
10423    hardcode_libdir_separator \
10424    hardcode_automatic \
10425    module_cmds \
10426    module_expsym_cmds \
10427    lt_cv_prog_compiler_c_o \
10428    fix_srcfile_path \
10429    exclude_expsyms \
10430    include_expsyms; do
10431
10432    case $var in
10433    old_archive_cmds | \
10434    old_archive_from_new_cmds | \
10435    archive_cmds | \
10436    archive_expsym_cmds | \
10437    module_cmds | \
10438    module_expsym_cmds | \
10439    old_archive_from_expsyms_cmds | \
10440    export_symbols_cmds | \
10441    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10442    postinstall_cmds | postuninstall_cmds | \
10443    old_postinstall_cmds | old_postuninstall_cmds | \
10444    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10445      # Double-quote double-evaled strings.
10446      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10447      ;;
10448    *)
10449      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10450      ;;
10451    esac
10452  done
10453
10454  case $lt_echo in
10455  *'\$0 --fallback-echo"')
10456    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10457    ;;
10458  esac
10459
10460cfgfile="${ofile}T"
10461  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10462  $rm -f "$cfgfile"
10463  { echo "$as_me:$LINENO: creating $ofile" >&5
10464echo "$as_me: creating $ofile" >&6;}
10465
10466  cat <<__EOF__ >> "$cfgfile"
10467#! $SHELL
10468
10469# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10470# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10471# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10472#
10473# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10474# Free Software Foundation, Inc.
10475#
10476# This file is part of GNU Libtool:
10477# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10478#
10479# This program is free software; you can redistribute it and/or modify
10480# it under the terms of the GNU General Public License as published by
10481# the Free Software Foundation; either version 2 of the License, or
10482# (at your option) any later version.
10483#
10484# This program is distributed in the hope that it will be useful, but
10485# WITHOUT ANY WARRANTY; without even the implied warranty of
10486# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10487# General Public License for more details.
10488#
10489# You should have received a copy of the GNU General Public License
10490# along with this program; if not, write to the Free Software
10491# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10492#
10493# As a special exception to the GNU General Public License, if you
10494# distribute this file as part of a program that contains a
10495# configuration script generated by Autoconf, you may include it under
10496# the same distribution terms that you use for the rest of that program.
10497
10498# A sed program that does not truncate output.
10499SED=$lt_SED
10500
10501# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10502Xsed="$SED -e 1s/^X//"
10503
10504# The HP-UX ksh and POSIX shell print the target directory to stdout
10505# if CDPATH is set.
10506(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10507
10508# The names of the tagged configurations supported by this script.
10509available_tags=
10510
10511# ### BEGIN LIBTOOL CONFIG
10512
10513# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10514
10515# Shell to use when invoking shell scripts.
10516SHELL=$lt_SHELL
10517
10518# Whether or not to build shared libraries.
10519build_libtool_libs=$enable_shared
10520
10521# Whether or not to build static libraries.
10522build_old_libs=$enable_static
10523
10524# Whether or not to add -lc for building shared libraries.
10525build_libtool_need_lc=$archive_cmds_need_lc
10526
10527# Whether or not to disallow shared libs when runtime libs are static
10528allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10529
10530# Whether or not to optimize for fast installation.
10531fast_install=$enable_fast_install
10532
10533# The host system.
10534host_alias=$host_alias
10535host=$host
10536host_os=$host_os
10537
10538# The build system.
10539build_alias=$build_alias
10540build=$build
10541build_os=$build_os
10542
10543# An echo program that does not interpret backslashes.
10544echo=$lt_echo
10545
10546# The archiver.
10547AR=$lt_AR
10548AR_FLAGS=$lt_AR_FLAGS
10549
10550# A C compiler.
10551LTCC=$lt_LTCC
10552
10553# LTCC compiler flags.
10554LTCFLAGS=$lt_LTCFLAGS
10555
10556# A language-specific compiler.
10557CC=$lt_compiler
10558
10559# Is the compiler the GNU C compiler?
10560with_gcc=$GCC
10561
10562# An ERE matcher.
10563EGREP=$lt_EGREP
10564
10565# The linker used to build libraries.
10566LD=$lt_LD
10567
10568# Whether we need hard or soft links.
10569LN_S=$lt_LN_S
10570
10571# A BSD-compatible nm program.
10572NM=$lt_NM
10573
10574# A symbol stripping program
10575STRIP=$lt_STRIP
10576
10577# Used to examine libraries when file_magic_cmd begins "file"
10578MAGIC_CMD=$MAGIC_CMD
10579
10580# Used on cygwin: DLL creation program.
10581DLLTOOL="$DLLTOOL"
10582
10583# Used on cygwin: object dumper.
10584OBJDUMP="$OBJDUMP"
10585
10586# Used on cygwin: assembler.
10587AS="$AS"
10588
10589# The name of the directory that contains temporary libtool files.
10590objdir=$objdir
10591
10592# How to create reloadable object files.
10593reload_flag=$lt_reload_flag
10594reload_cmds=$lt_reload_cmds
10595
10596# How to pass a linker flag through the compiler.
10597wl=$lt_lt_prog_compiler_wl
10598
10599# Object file suffix (normally "o").
10600objext="$ac_objext"
10601
10602# Old archive suffix (normally "a").
10603libext="$libext"
10604
10605# Shared library suffix (normally ".so").
10606shrext_cmds='$shrext_cmds'
10607
10608# Executable file suffix (normally "").
10609exeext="$exeext"
10610
10611# Additional compiler flags for building library objects.
10612pic_flag=$lt_lt_prog_compiler_pic
10613pic_mode=$pic_mode
10614
10615# What is the maximum length of a command?
10616max_cmd_len=$lt_cv_sys_max_cmd_len
10617
10618# Does compiler simultaneously support -c and -o options?
10619compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10620
10621# Must we lock files when doing compilation?
10622need_locks=$lt_need_locks
10623
10624# Do we need the lib prefix for modules?
10625need_lib_prefix=$need_lib_prefix
10626
10627# Do we need a version for libraries?
10628need_version=$need_version
10629
10630# Whether dlopen is supported.
10631dlopen_support=$enable_dlopen
10632
10633# Whether dlopen of programs is supported.
10634dlopen_self=$enable_dlopen_self
10635
10636# Whether dlopen of statically linked programs is supported.
10637dlopen_self_static=$enable_dlopen_self_static
10638
10639# Compiler flag to prevent dynamic linking.
10640link_static_flag=$lt_lt_prog_compiler_static
10641
10642# Compiler flag to turn off builtin functions.
10643no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10644
10645# Compiler flag to allow reflexive dlopens.
10646export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10647
10648# Compiler flag to generate shared objects directly from archives.
10649whole_archive_flag_spec=$lt_whole_archive_flag_spec
10650
10651# Compiler flag to generate thread-safe objects.
10652thread_safe_flag_spec=$lt_thread_safe_flag_spec
10653
10654# Library versioning type.
10655version_type=$version_type
10656
10657# Format of library name prefix.
10658libname_spec=$lt_libname_spec
10659
10660# List of archive names.  First name is the real one, the rest are links.
10661# The last name is the one that the linker finds with -lNAME.
10662library_names_spec=$lt_library_names_spec
10663
10664# The coded name of the library, if different from the real name.
10665soname_spec=$lt_soname_spec
10666
10667# Commands used to build and install an old-style archive.
10668RANLIB=$lt_RANLIB
10669old_archive_cmds=$lt_old_archive_cmds
10670old_postinstall_cmds=$lt_old_postinstall_cmds
10671old_postuninstall_cmds=$lt_old_postuninstall_cmds
10672
10673# Create an old-style archive from a shared archive.
10674old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10675
10676# Create a temporary old-style archive to link instead of a shared archive.
10677old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10678
10679# Commands used to build and install a shared archive.
10680archive_cmds=$lt_archive_cmds
10681archive_expsym_cmds=$lt_archive_expsym_cmds
10682postinstall_cmds=$lt_postinstall_cmds
10683postuninstall_cmds=$lt_postuninstall_cmds
10684
10685# Commands used to build a loadable module (assumed same as above if empty)
10686module_cmds=$lt_module_cmds
10687module_expsym_cmds=$lt_module_expsym_cmds
10688
10689# Commands to strip libraries.
10690old_striplib=$lt_old_striplib
10691striplib=$lt_striplib
10692
10693# Dependencies to place before the objects being linked to create a
10694# shared library.
10695predep_objects=$lt_predep_objects
10696
10697# Dependencies to place after the objects being linked to create a
10698# shared library.
10699postdep_objects=$lt_postdep_objects
10700
10701# Dependencies to place before the objects being linked to create a
10702# shared library.
10703predeps=$lt_predeps
10704
10705# Dependencies to place after the objects being linked to create a
10706# shared library.
10707postdeps=$lt_postdeps
10708
10709# The directories searched by this compiler when creating a shared
10710# library
10711compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10712
10713# The library search path used internally by the compiler when linking
10714# a shared library.
10715compiler_lib_search_path=$lt_compiler_lib_search_path
10716
10717# Method to check whether dependent libraries are shared objects.
10718deplibs_check_method=$lt_deplibs_check_method
10719
10720# Command to use when deplibs_check_method == file_magic.
10721file_magic_cmd=$lt_file_magic_cmd
10722
10723# Flag that allows shared libraries with undefined symbols to be built.
10724allow_undefined_flag=$lt_allow_undefined_flag
10725
10726# Flag that forces no undefined symbols.
10727no_undefined_flag=$lt_no_undefined_flag
10728
10729# Commands used to finish a libtool library installation in a directory.
10730finish_cmds=$lt_finish_cmds
10731
10732# Same as above, but a single script fragment to be evaled but not shown.
10733finish_eval=$lt_finish_eval
10734
10735# Take the output of nm and produce a listing of raw symbols and C names.
10736global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10737
10738# Transform the output of nm in a proper C declaration
10739global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10740
10741# Transform the output of nm in a C name address pair
10742global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10743
10744# This is the shared library runtime path variable.
10745runpath_var=$runpath_var
10746
10747# This is the shared library path variable.
10748shlibpath_var=$shlibpath_var
10749
10750# Is shlibpath searched before the hard-coded library search path?
10751shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10752
10753# How to hardcode a shared library path into an executable.
10754hardcode_action=$hardcode_action
10755
10756# Whether we should hardcode library paths into libraries.
10757hardcode_into_libs=$hardcode_into_libs
10758
10759# Flag to hardcode \$libdir into a binary during linking.
10760# This must work even if \$libdir does not exist.
10761hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10762
10763# If ld is used when linking, flag to hardcode \$libdir into
10764# a binary during linking. This must work even if \$libdir does
10765# not exist.
10766hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10767
10768# Whether we need a single -rpath flag with a separated argument.
10769hardcode_libdir_separator=$lt_hardcode_libdir_separator
10770
10771# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10772# resulting binary.
10773hardcode_direct=$hardcode_direct
10774
10775# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10776# resulting binary.
10777hardcode_minus_L=$hardcode_minus_L
10778
10779# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10780# the resulting binary.
10781hardcode_shlibpath_var=$hardcode_shlibpath_var
10782
10783# Set to yes if building a shared library automatically hardcodes DIR into the library
10784# and all subsequent libraries and executables linked against it.
10785hardcode_automatic=$hardcode_automatic
10786
10787# Variables whose values should be saved in libtool wrapper scripts and
10788# restored at relink time.
10789variables_saved_for_relink="$variables_saved_for_relink"
10790
10791# Whether libtool must link a program against all its dependency libraries.
10792link_all_deplibs=$link_all_deplibs
10793
10794# Compile-time system search path for libraries
10795sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10796
10797# Run-time system search path for libraries
10798sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10799
10800# Fix the shell variable \$srcfile for the compiler.
10801fix_srcfile_path=$lt_fix_srcfile_path
10802
10803# Set to yes if exported symbols are required.
10804always_export_symbols=$always_export_symbols
10805
10806# The commands to list exported symbols.
10807export_symbols_cmds=$lt_export_symbols_cmds
10808
10809# The commands to extract the exported symbol list from a shared archive.
10810extract_expsyms_cmds=$lt_extract_expsyms_cmds
10811
10812# Symbols that should not be listed in the preloaded symbols.
10813exclude_expsyms=$lt_exclude_expsyms
10814
10815# Symbols that must always be exported.
10816include_expsyms=$lt_include_expsyms
10817
10818# ### END LIBTOOL CONFIG
10819
10820__EOF__
10821
10822
10823  case $host_os in
10824  aix3*)
10825    cat <<\EOF >> "$cfgfile"
10826
10827# AIX sometimes has problems with the GCC collect2 program.  For some
10828# reason, if we set the COLLECT_NAMES environment variable, the problems
10829# vanish in a puff of smoke.
10830if test "X${COLLECT_NAMES+set}" != Xset; then
10831  COLLECT_NAMES=
10832  export COLLECT_NAMES
10833fi
10834EOF
10835    ;;
10836  esac
10837
10838  # We use sed instead of cat because bash on DJGPP gets confused if
10839  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10840  # text mode, it properly converts lines to CR/LF.  This bash problem
10841  # is reportedly fixed, but why not run on old versions too?
10842  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10843
10844  mv -f "$cfgfile" "$ofile" || \
10845    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10846  chmod +x "$ofile"
10847
10848else
10849  # If there is no Makefile yet, we rely on a make rule to execute
10850  # `config.status --recheck' to rerun these tests and create the
10851  # libtool script then.
10852  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10853  if test -f "$ltmain_in"; then
10854    test -f Makefile && make "$ltmain"
10855  fi
10856fi
10857
10858
10859ac_ext=c
10860ac_cpp='$CPP $CPPFLAGS'
10861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10863ac_compiler_gnu=$ac_cv_c_compiler_gnu
10864
10865CC="$lt_save_CC"
10866
10867
10868# Check whether --with-tags was given.
10869if test "${with_tags+set}" = set; then
10870  withval=$with_tags; tagnames="$withval"
10871fi
10872
10873
10874if test -f "$ltmain" && test -n "$tagnames"; then
10875  if test ! -f "${ofile}"; then
10876    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10877echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10878  fi
10879
10880  if test -z "$LTCC"; then
10881    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10882    if test -z "$LTCC"; then
10883      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10884echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10885    else
10886      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10887echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10888    fi
10889  fi
10890  if test -z "$LTCFLAGS"; then
10891    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10892  fi
10893
10894  # Extract list of available tagged configurations in $ofile.
10895  # Note that this assumes the entire list is on one line.
10896  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10897
10898  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10899  for tagname in $tagnames; do
10900    IFS="$lt_save_ifs"
10901    # Check whether tagname contains only valid characters
10902    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10903    "") ;;
10904    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10905echo "$as_me: error: invalid tag name: $tagname" >&2;}
10906   { (exit 1); exit 1; }; }
10907	;;
10908    esac
10909
10910    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10911    then
10912      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10913echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10914   { (exit 1); exit 1; }; }
10915    fi
10916
10917    # Update the list of available tags.
10918    if test -n "$tagname"; then
10919      echo appending configuration tag \"$tagname\" to $ofile
10920
10921      case $tagname in
10922      CXX)
10923	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10924	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10925	    (test "X$CXX" != "Xg++"))) ; then
10926	  ac_ext=cpp
10927ac_cpp='$CXXCPP $CPPFLAGS'
10928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10931
10932
10933
10934
10935archive_cmds_need_lc_CXX=no
10936allow_undefined_flag_CXX=
10937always_export_symbols_CXX=no
10938archive_expsym_cmds_CXX=
10939export_dynamic_flag_spec_CXX=
10940hardcode_direct_CXX=no
10941hardcode_libdir_flag_spec_CXX=
10942hardcode_libdir_flag_spec_ld_CXX=
10943hardcode_libdir_separator_CXX=
10944hardcode_minus_L_CXX=no
10945hardcode_shlibpath_var_CXX=unsupported
10946hardcode_automatic_CXX=no
10947module_cmds_CXX=
10948module_expsym_cmds_CXX=
10949link_all_deplibs_CXX=unknown
10950old_archive_cmds_CXX=$old_archive_cmds
10951no_undefined_flag_CXX=
10952whole_archive_flag_spec_CXX=
10953enable_shared_with_static_runtimes_CXX=no
10954
10955# Dependencies to place before and after the object being linked:
10956predep_objects_CXX=
10957postdep_objects_CXX=
10958predeps_CXX=
10959postdeps_CXX=
10960compiler_lib_search_path_CXX=
10961compiler_lib_search_dirs_CXX=
10962
10963# Source file extension for C++ test sources.
10964ac_ext=cpp
10965
10966# Object file extension for compiled C++ test sources.
10967objext=o
10968objext_CXX=$objext
10969
10970# Code to be used in simple compile tests
10971lt_simple_compile_test_code="int some_variable = 0;"
10972
10973# Code to be used in simple link tests
10974lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10975
10976# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10977
10978# If no C compiler was specified, use CC.
10979LTCC=${LTCC-"$CC"}
10980
10981# If no C compiler flags were specified, use CFLAGS.
10982LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10983
10984# Allow CC to be a program name with arguments.
10985compiler=$CC
10986
10987
10988# save warnings/boilerplate of simple test code
10989ac_outfile=conftest.$ac_objext
10990echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10991eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10992_lt_compiler_boilerplate=`cat conftest.err`
10993$rm conftest*
10994
10995ac_outfile=conftest.$ac_objext
10996echo "$lt_simple_link_test_code" >conftest.$ac_ext
10997eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10998_lt_linker_boilerplate=`cat conftest.err`
10999$rm -r conftest*
11000
11001
11002# Allow CC to be a program name with arguments.
11003lt_save_CC=$CC
11004lt_save_LD=$LD
11005lt_save_GCC=$GCC
11006GCC=$GXX
11007lt_save_with_gnu_ld=$with_gnu_ld
11008lt_save_path_LD=$lt_cv_path_LD
11009if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11010  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11011else
11012  $as_unset lt_cv_prog_gnu_ld
11013fi
11014if test -n "${lt_cv_path_LDCXX+set}"; then
11015  lt_cv_path_LD=$lt_cv_path_LDCXX
11016else
11017  $as_unset lt_cv_path_LD
11018fi
11019test -z "${LDCXX+set}" || LD=$LDCXX
11020CC=${CXX-"c++"}
11021compiler=$CC
11022compiler_CXX=$CC
11023for cc_temp in $compiler""; do
11024  case $cc_temp in
11025    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11026    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11027    \-*) ;;
11028    *) break;;
11029  esac
11030done
11031cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11032
11033
11034# We don't want -fno-exception wen compiling C++ code, so set the
11035# no_builtin_flag separately
11036if test "$GXX" = yes; then
11037  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11038else
11039  lt_prog_compiler_no_builtin_flag_CXX=
11040fi
11041
11042if test "$GXX" = yes; then
11043  # Set up default GNU C++ configuration
11044
11045
11046# Check whether --with-gnu-ld was given.
11047if test "${with_gnu_ld+set}" = set; then
11048  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11049else
11050  with_gnu_ld=no
11051fi
11052
11053ac_prog=ld
11054if test "$GCC" = yes; then
11055  # Check if gcc -print-prog-name=ld gives a path.
11056  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11057echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11058  case $host in
11059  *-*-mingw*)
11060    # gcc leaves a trailing carriage return which upsets mingw
11061    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11062  *)
11063    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11064  esac
11065  case $ac_prog in
11066    # Accept absolute paths.
11067    [\\/]* | ?:[\\/]*)
11068      re_direlt='/[^/][^/]*/\.\./'
11069      # Canonicalize the pathname of ld
11070      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11071      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11072	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11073      done
11074      test -z "$LD" && LD="$ac_prog"
11075      ;;
11076  "")
11077    # If it fails, then pretend we aren't using GCC.
11078    ac_prog=ld
11079    ;;
11080  *)
11081    # If it is relative, then search for the first ld in PATH.
11082    with_gnu_ld=unknown
11083    ;;
11084  esac
11085elif test "$with_gnu_ld" = yes; then
11086  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11087echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11088else
11089  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11090echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11091fi
11092if test "${lt_cv_path_LD+set}" = set; then
11093  echo $ECHO_N "(cached) $ECHO_C" >&6
11094else
11095  if test -z "$LD"; then
11096  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11097  for ac_dir in $PATH; do
11098    IFS="$lt_save_ifs"
11099    test -z "$ac_dir" && ac_dir=.
11100    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11101      lt_cv_path_LD="$ac_dir/$ac_prog"
11102      # Check to see if the program is GNU ld.  I'd rather use --version,
11103      # but apparently some variants of GNU ld only accept -v.
11104      # Break only if it was the GNU/non-GNU ld that we prefer.
11105      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11106      *GNU* | *'with BFD'*)
11107	test "$with_gnu_ld" != no && break
11108	;;
11109      *)
11110	test "$with_gnu_ld" != yes && break
11111	;;
11112      esac
11113    fi
11114  done
11115  IFS="$lt_save_ifs"
11116else
11117  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11118fi
11119fi
11120
11121LD="$lt_cv_path_LD"
11122if test -n "$LD"; then
11123  { echo "$as_me:$LINENO: result: $LD" >&5
11124echo "${ECHO_T}$LD" >&6; }
11125else
11126  { echo "$as_me:$LINENO: result: no" >&5
11127echo "${ECHO_T}no" >&6; }
11128fi
11129test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11130echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11131   { (exit 1); exit 1; }; }
11132{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11133echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11134if test "${lt_cv_prog_gnu_ld+set}" = set; then
11135  echo $ECHO_N "(cached) $ECHO_C" >&6
11136else
11137  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11138case `$LD -v 2>&1 </dev/null` in
11139*GNU* | *'with BFD'*)
11140  lt_cv_prog_gnu_ld=yes
11141  ;;
11142*)
11143  lt_cv_prog_gnu_ld=no
11144  ;;
11145esac
11146fi
11147{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11148echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11149with_gnu_ld=$lt_cv_prog_gnu_ld
11150
11151
11152
11153  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11154  # archiving commands below assume that GNU ld is being used.
11155  if test "$with_gnu_ld" = yes; then
11156    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11157    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'
11158
11159    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11160    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11161
11162    # If archive_cmds runs LD, not CC, wlarc should be empty
11163    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11164    #     investigate it a little bit more. (MM)
11165    wlarc='${wl}'
11166
11167    # ancient GNU ld didn't support --whole-archive et. al.
11168    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11169	grep 'no-whole-archive' > /dev/null; then
11170      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11171    else
11172      whole_archive_flag_spec_CXX=
11173    fi
11174  else
11175    with_gnu_ld=no
11176    wlarc=
11177
11178    # A generic and very simple default shared library creation
11179    # command for GNU C++ for the case where it uses the native
11180    # linker, instead of GNU ld.  If possible, this setting should
11181    # overridden to take advantage of the native linker features on
11182    # the platform it is being used on.
11183    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11184  fi
11185
11186  # Commands to make compiler produce verbose output that lists
11187  # what "hidden" libraries, object files and flags are used when
11188  # linking a shared library.
11189  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11190
11191else
11192  GXX=no
11193  with_gnu_ld=no
11194  wlarc=
11195fi
11196
11197# PORTME: fill in a description of your system's C++ link characteristics
11198{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11199echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11200ld_shlibs_CXX=yes
11201case $host_os in
11202  aix3*)
11203    # FIXME: insert proper C++ library support
11204    ld_shlibs_CXX=no
11205    ;;
11206  aix[4-9]*)
11207    if test "$host_cpu" = ia64; then
11208      # On IA64, the linker does run time linking by default, so we don't
11209      # have to do anything special.
11210      aix_use_runtimelinking=no
11211      exp_sym_flag='-Bexport'
11212      no_entry_flag=""
11213    else
11214      aix_use_runtimelinking=no
11215
11216      # Test if we are trying to use run time linking or normal
11217      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11218      # need to do runtime linking.
11219      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11220	for ld_flag in $LDFLAGS; do
11221	  case $ld_flag in
11222	  *-brtl*)
11223	    aix_use_runtimelinking=yes
11224	    break
11225	    ;;
11226	  esac
11227	done
11228	;;
11229      esac
11230
11231      exp_sym_flag='-bexport'
11232      no_entry_flag='-bnoentry'
11233    fi
11234
11235    # When large executables or shared objects are built, AIX ld can
11236    # have problems creating the table of contents.  If linking a library
11237    # or program results in "error TOC overflow" add -mminimal-toc to
11238    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11239    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11240
11241    archive_cmds_CXX=''
11242    hardcode_direct_CXX=yes
11243    hardcode_libdir_separator_CXX=':'
11244    link_all_deplibs_CXX=yes
11245
11246    if test "$GXX" = yes; then
11247      case $host_os in aix4.[012]|aix4.[012].*)
11248      # We only want to do this on AIX 4.2 and lower, the check
11249      # below for broken collect2 doesn't work under 4.3+
11250	collect2name=`${CC} -print-prog-name=collect2`
11251	if test -f "$collect2name" && \
11252	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11253	then
11254	  # We have reworked collect2
11255	  :
11256	else
11257	  # We have old collect2
11258	  hardcode_direct_CXX=unsupported
11259	  # It fails to find uninstalled libraries when the uninstalled
11260	  # path is not listed in the libpath.  Setting hardcode_minus_L
11261	  # to unsupported forces relinking
11262	  hardcode_minus_L_CXX=yes
11263	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11264	  hardcode_libdir_separator_CXX=
11265	fi
11266	;;
11267      esac
11268      shared_flag='-shared'
11269      if test "$aix_use_runtimelinking" = yes; then
11270	shared_flag="$shared_flag "'${wl}-G'
11271      fi
11272    else
11273      # not using gcc
11274      if test "$host_cpu" = ia64; then
11275	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11276	# chokes on -Wl,-G. The following line is correct:
11277	shared_flag='-G'
11278      else
11279	if test "$aix_use_runtimelinking" = yes; then
11280	  shared_flag='${wl}-G'
11281	else
11282	  shared_flag='${wl}-bM:SRE'
11283	fi
11284      fi
11285    fi
11286
11287    # It seems that -bexpall does not export symbols beginning with
11288    # underscore (_), so it is better to generate a list of symbols to export.
11289    always_export_symbols_CXX=yes
11290    if test "$aix_use_runtimelinking" = yes; then
11291      # Warning - without using the other runtime loading flags (-brtl),
11292      # -berok will link without error, but may produce a broken library.
11293      allow_undefined_flag_CXX='-berok'
11294      # Determine the default libpath from the value encoded in an empty executable.
11295      cat >conftest.$ac_ext <<_ACEOF
11296/* confdefs.h.  */
11297_ACEOF
11298cat confdefs.h >>conftest.$ac_ext
11299cat >>conftest.$ac_ext <<_ACEOF
11300/* end confdefs.h.  */
11301
11302int
11303main ()
11304{
11305
11306  ;
11307  return 0;
11308}
11309_ACEOF
11310rm -f conftest.$ac_objext conftest$ac_exeext
11311if { (ac_try="$ac_link"
11312case "(($ac_try" in
11313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314  *) ac_try_echo=$ac_try;;
11315esac
11316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317  (eval "$ac_link") 2>conftest.er1
11318  ac_status=$?
11319  grep -v '^ *+' conftest.er1 >conftest.err
11320  rm -f conftest.er1
11321  cat conftest.err >&5
11322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323  (exit $ac_status); } && {
11324	 test -z "$ac_cxx_werror_flag" ||
11325	 test ! -s conftest.err
11326       } && test -s conftest$ac_exeext &&
11327       $as_test_x conftest$ac_exeext; then
11328
11329lt_aix_libpath_sed='
11330    /Import File Strings/,/^$/ {
11331	/^0/ {
11332	    s/^0  *\(.*\)$/\1/
11333	    p
11334	}
11335    }'
11336aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11337# Check for a 64-bit object if we didn't find anything.
11338if test -z "$aix_libpath"; then
11339  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11340fi
11341else
11342  echo "$as_me: failed program was:" >&5
11343sed 's/^/| /' conftest.$ac_ext >&5
11344
11345
11346fi
11347
11348rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11349      conftest$ac_exeext conftest.$ac_ext
11350if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11351
11352      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11353
11354      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"
11355     else
11356      if test "$host_cpu" = ia64; then
11357	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11358	allow_undefined_flag_CXX="-z nodefs"
11359	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"
11360      else
11361	# Determine the default libpath from the value encoded in an empty executable.
11362	cat >conftest.$ac_ext <<_ACEOF
11363/* confdefs.h.  */
11364_ACEOF
11365cat confdefs.h >>conftest.$ac_ext
11366cat >>conftest.$ac_ext <<_ACEOF
11367/* end confdefs.h.  */
11368
11369int
11370main ()
11371{
11372
11373  ;
11374  return 0;
11375}
11376_ACEOF
11377rm -f conftest.$ac_objext conftest$ac_exeext
11378if { (ac_try="$ac_link"
11379case "(($ac_try" in
11380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381  *) ac_try_echo=$ac_try;;
11382esac
11383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11384  (eval "$ac_link") 2>conftest.er1
11385  ac_status=$?
11386  grep -v '^ *+' conftest.er1 >conftest.err
11387  rm -f conftest.er1
11388  cat conftest.err >&5
11389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390  (exit $ac_status); } && {
11391	 test -z "$ac_cxx_werror_flag" ||
11392	 test ! -s conftest.err
11393       } && test -s conftest$ac_exeext &&
11394       $as_test_x conftest$ac_exeext; then
11395
11396lt_aix_libpath_sed='
11397    /Import File Strings/,/^$/ {
11398	/^0/ {
11399	    s/^0  *\(.*\)$/\1/
11400	    p
11401	}
11402    }'
11403aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11404# Check for a 64-bit object if we didn't find anything.
11405if test -z "$aix_libpath"; then
11406  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11407fi
11408else
11409  echo "$as_me: failed program was:" >&5
11410sed 's/^/| /' conftest.$ac_ext >&5
11411
11412
11413fi
11414
11415rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11416      conftest$ac_exeext conftest.$ac_ext
11417if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11418
11419	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11420	# Warning - without using the other run time loading flags,
11421	# -berok will link without error, but may produce a broken library.
11422	no_undefined_flag_CXX=' ${wl}-bernotok'
11423	allow_undefined_flag_CXX=' ${wl}-berok'
11424	# Exported symbols can be pulled into shared objects from archives
11425	whole_archive_flag_spec_CXX='$convenience'
11426	archive_cmds_need_lc_CXX=yes
11427	# This is similar to how AIX traditionally builds its shared libraries.
11428	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'
11429      fi
11430    fi
11431    ;;
11432
11433  beos*)
11434    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11435      allow_undefined_flag_CXX=unsupported
11436      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11437      # support --undefined.  This deserves some investigation.  FIXME
11438      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11439    else
11440      ld_shlibs_CXX=no
11441    fi
11442    ;;
11443
11444  chorus*)
11445    case $cc_basename in
11446      *)
11447	# FIXME: insert proper C++ library support
11448	ld_shlibs_CXX=no
11449	;;
11450    esac
11451    ;;
11452
11453  cygwin* | mingw* | pw32*)
11454    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11455    # as there is no search path for DLLs.
11456    hardcode_libdir_flag_spec_CXX='-L$libdir'
11457    allow_undefined_flag_CXX=unsupported
11458    always_export_symbols_CXX=no
11459    enable_shared_with_static_runtimes_CXX=yes
11460
11461    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11462      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'
11463      # If the export-symbols file already is a .def file (1st line
11464      # is EXPORTS), use it as is; otherwise, prepend...
11465      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11466	cp $export_symbols $output_objdir/$soname.def;
11467      else
11468	echo EXPORTS > $output_objdir/$soname.def;
11469	cat $export_symbols >> $output_objdir/$soname.def;
11470      fi~
11471      $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'
11472    else
11473      ld_shlibs_CXX=no
11474    fi
11475  ;;
11476      darwin* | rhapsody*)
11477      archive_cmds_need_lc_CXX=no
11478      hardcode_direct_CXX=no
11479      hardcode_automatic_CXX=yes
11480      hardcode_shlibpath_var_CXX=unsupported
11481      whole_archive_flag_spec_CXX=''
11482      link_all_deplibs_CXX=yes
11483      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11484      if test "$GXX" = yes ; then
11485      output_verbose_link_cmd='echo'
11486      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11487      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11488      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11489      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11490      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11491        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11492        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11493      fi
11494      else
11495      case $cc_basename in
11496        xlc*)
11497         output_verbose_link_cmd='echo'
11498          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11499          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11500          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11501          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11502          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}'
11503          ;;
11504       *)
11505         ld_shlibs_CXX=no
11506          ;;
11507      esac
11508      fi
11509        ;;
11510
11511  dgux*)
11512    case $cc_basename in
11513      ec++*)
11514	# FIXME: insert proper C++ library support
11515	ld_shlibs_CXX=no
11516	;;
11517      ghcx*)
11518	# Green Hills C++ Compiler
11519	# FIXME: insert proper C++ library support
11520	ld_shlibs_CXX=no
11521	;;
11522      *)
11523	# FIXME: insert proper C++ library support
11524	ld_shlibs_CXX=no
11525	;;
11526    esac
11527    ;;
11528  freebsd[12]*)
11529    # C++ shared libraries reported to be fairly broken before switch to ELF
11530    ld_shlibs_CXX=no
11531    ;;
11532  freebsd-elf*)
11533    archive_cmds_need_lc_CXX=no
11534    ;;
11535  freebsd* | dragonfly*)
11536    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11537    # conventions
11538    ld_shlibs_CXX=yes
11539    ;;
11540  gnu*)
11541    ;;
11542  hpux9*)
11543    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11544    hardcode_libdir_separator_CXX=:
11545    export_dynamic_flag_spec_CXX='${wl}-E'
11546    hardcode_direct_CXX=yes
11547    hardcode_minus_L_CXX=yes # Not in the search PATH,
11548				# but as the default
11549				# location of the library.
11550
11551    case $cc_basename in
11552    CC*)
11553      # FIXME: insert proper C++ library support
11554      ld_shlibs_CXX=no
11555      ;;
11556    aCC*)
11557      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'
11558      # Commands to make compiler produce verbose output that lists
11559      # what "hidden" libraries, object files and flags are used when
11560      # linking a shared library.
11561      #
11562      # There doesn't appear to be a way to prevent this compiler from
11563      # explicitly linking system object files so we need to strip them
11564      # from the output so that they don't get included in the library
11565      # dependencies.
11566      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'
11567      ;;
11568    *)
11569      if test "$GXX" = yes; then
11570        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'
11571      else
11572        # FIXME: insert proper C++ library support
11573        ld_shlibs_CXX=no
11574      fi
11575      ;;
11576    esac
11577    ;;
11578  hpux10*|hpux11*)
11579    if test $with_gnu_ld = no; then
11580      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11581      hardcode_libdir_separator_CXX=:
11582
11583      case $host_cpu in
11584      hppa*64*|ia64*) ;;
11585      *)
11586	export_dynamic_flag_spec_CXX='${wl}-E'
11587        ;;
11588      esac
11589    fi
11590    case $host_cpu in
11591    hppa*64*|ia64*)
11592      hardcode_direct_CXX=no
11593      hardcode_shlibpath_var_CXX=no
11594      ;;
11595    *)
11596      hardcode_direct_CXX=yes
11597      hardcode_minus_L_CXX=yes # Not in the search PATH,
11598					      # but as the default
11599					      # location of the library.
11600      ;;
11601    esac
11602
11603    case $cc_basename in
11604      CC*)
11605	# FIXME: insert proper C++ library support
11606	ld_shlibs_CXX=no
11607	;;
11608      aCC*)
11609	case $host_cpu in
11610	hppa*64*)
11611	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11612	  ;;
11613	ia64*)
11614	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11615	  ;;
11616	*)
11617	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11618	  ;;
11619	esac
11620	# Commands to make compiler produce verbose output that lists
11621	# what "hidden" libraries, object files and flags are used when
11622	# linking a shared library.
11623	#
11624	# There doesn't appear to be a way to prevent this compiler from
11625	# explicitly linking system object files so we need to strip them
11626	# from the output so that they don't get included in the library
11627	# dependencies.
11628	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'
11629	;;
11630      *)
11631	if test "$GXX" = yes; then
11632	  if test $with_gnu_ld = no; then
11633	    case $host_cpu in
11634	    hppa*64*)
11635	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11636	      ;;
11637	    ia64*)
11638	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11639	      ;;
11640	    *)
11641	      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'
11642	      ;;
11643	    esac
11644	  fi
11645	else
11646	  # FIXME: insert proper C++ library support
11647	  ld_shlibs_CXX=no
11648	fi
11649	;;
11650    esac
11651    ;;
11652  interix[3-9]*)
11653    hardcode_direct_CXX=no
11654    hardcode_shlibpath_var_CXX=no
11655    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11656    export_dynamic_flag_spec_CXX='${wl}-E'
11657    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11658    # Instead, shared libraries are loaded at an image base (0x10000000 by
11659    # default) and relocated if they conflict, which is a slow very memory
11660    # consuming and fragmenting process.  To avoid this, we pick a random,
11661    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11662    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11663    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'
11664    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'
11665    ;;
11666  irix5* | irix6*)
11667    case $cc_basename in
11668      CC*)
11669	# SGI C++
11670	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'
11671
11672	# Archives containing C++ object files must be created using
11673	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11674	# necessary to make sure instantiated templates are included
11675	# in the archive.
11676	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11677	;;
11678      *)
11679	if test "$GXX" = yes; then
11680	  if test "$with_gnu_ld" = no; then
11681	    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'
11682	  else
11683	    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'
11684	  fi
11685	fi
11686	link_all_deplibs_CXX=yes
11687	;;
11688    esac
11689    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11690    hardcode_libdir_separator_CXX=:
11691    ;;
11692  linux* | k*bsd*-gnu)
11693    case $cc_basename in
11694      KCC*)
11695	# Kuck and Associates, Inc. (KAI) C++ Compiler
11696
11697	# KCC will only create a shared library if the output file
11698	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11699	# to its proper name (with version) after linking.
11700	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'
11701	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'
11702	# Commands to make compiler produce verbose output that lists
11703	# what "hidden" libraries, object files and flags are used when
11704	# linking a shared library.
11705	#
11706	# There doesn't appear to be a way to prevent this compiler from
11707	# explicitly linking system object files so we need to strip them
11708	# from the output so that they don't get included in the library
11709	# dependencies.
11710	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'
11711
11712	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11713	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11714
11715	# Archives containing C++ object files must be created using
11716	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11717	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11718	;;
11719      icpc*)
11720	# Intel C++
11721	with_gnu_ld=yes
11722	# version 8.0 and above of icpc choke on multiply defined symbols
11723	# if we add $predep_objects and $postdep_objects, however 7.1 and
11724	# earlier do not add the objects themselves.
11725	case `$CC -V 2>&1` in
11726	*"Version 7."*)
11727  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11728  	  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'
11729	  ;;
11730	*)  # Version 8.0 or newer
11731	  tmp_idyn=
11732	  case $host_cpu in
11733	    ia64*) tmp_idyn=' -i_dynamic';;
11734	  esac
11735  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11736	  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'
11737	  ;;
11738	esac
11739	archive_cmds_need_lc_CXX=no
11740	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11741	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11742	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11743	;;
11744      pgCC* | pgcpp*)
11745        # Portland Group C++ compiler
11746	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11747  	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'
11748
11749	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11750	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11751	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'
11752        ;;
11753      cxx*)
11754	# Compaq C++
11755	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11756	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'
11757
11758	runpath_var=LD_RUN_PATH
11759	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11760	hardcode_libdir_separator_CXX=:
11761
11762	# Commands to make compiler produce verbose output that lists
11763	# what "hidden" libraries, object files and flags are used when
11764	# linking a shared library.
11765	#
11766	# There doesn't appear to be a way to prevent this compiler from
11767	# explicitly linking system object files so we need to strip them
11768	# from the output so that they don't get included in the library
11769	# dependencies.
11770	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'
11771	;;
11772      *)
11773	case `$CC -V 2>&1 | sed 5q` in
11774	*Sun\ C*)
11775	  # Sun C++ 5.9
11776	  no_undefined_flag_CXX=' -zdefs'
11777	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11778	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11779	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11780	  whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11781
11782	  # Not sure whether something based on
11783	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11784	  # would be better.
11785	  output_verbose_link_cmd='echo'
11786
11787	  # Archives containing C++ object files must be created using
11788	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11789	  # necessary to make sure instantiated templates are included
11790	  # in the archive.
11791	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11792	  ;;
11793	esac
11794	;;
11795    esac
11796    ;;
11797  lynxos*)
11798    # FIXME: insert proper C++ library support
11799    ld_shlibs_CXX=no
11800    ;;
11801  m88k*)
11802    # FIXME: insert proper C++ library support
11803    ld_shlibs_CXX=no
11804    ;;
11805  mvs*)
11806    case $cc_basename in
11807      cxx*)
11808	# FIXME: insert proper C++ library support
11809	ld_shlibs_CXX=no
11810	;;
11811      *)
11812	# FIXME: insert proper C++ library support
11813	ld_shlibs_CXX=no
11814	;;
11815    esac
11816    ;;
11817  netbsd* | netbsdelf*-gnu)
11818    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11819      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11820      wlarc=
11821      hardcode_libdir_flag_spec_CXX='-R$libdir'
11822      hardcode_direct_CXX=yes
11823      hardcode_shlibpath_var_CXX=no
11824    fi
11825    # Workaround some broken pre-1.5 toolchains
11826    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11827    ;;
11828  openbsd2*)
11829    # C++ shared libraries are fairly broken
11830    ld_shlibs_CXX=no
11831    ;;
11832  openbsd*)
11833    if test -f /usr/libexec/ld.so; then
11834      hardcode_direct_CXX=yes
11835      hardcode_shlibpath_var_CXX=no
11836      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11837      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11838      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11839	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11840	export_dynamic_flag_spec_CXX='${wl}-E'
11841	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11842      fi
11843      output_verbose_link_cmd='echo'
11844    else
11845      ld_shlibs_CXX=no
11846    fi
11847    ;;
11848  osf3*)
11849    case $cc_basename in
11850      KCC*)
11851	# Kuck and Associates, Inc. (KAI) C++ Compiler
11852
11853	# KCC will only create a shared library if the output file
11854	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11855	# to its proper name (with version) after linking.
11856	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'
11857
11858	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11859	hardcode_libdir_separator_CXX=:
11860
11861	# Archives containing C++ object files must be created using
11862	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11863	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11864
11865	;;
11866      RCC*)
11867	# Rational C++ 2.4.1
11868	# FIXME: insert proper C++ library support
11869	ld_shlibs_CXX=no
11870	;;
11871      cxx*)
11872	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11873	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'
11874
11875	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11876	hardcode_libdir_separator_CXX=:
11877
11878	# Commands to make compiler produce verbose output that lists
11879	# what "hidden" libraries, object files and flags are used when
11880	# linking a shared library.
11881	#
11882	# There doesn't appear to be a way to prevent this compiler from
11883	# explicitly linking system object files so we need to strip them
11884	# from the output so that they don't get included in the library
11885	# dependencies.
11886	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'
11887	;;
11888      *)
11889	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11890	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11891	  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'
11892
11893	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11894	  hardcode_libdir_separator_CXX=:
11895
11896	  # Commands to make compiler produce verbose output that lists
11897	  # what "hidden" libraries, object files and flags are used when
11898	  # linking a shared library.
11899	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11900
11901	else
11902	  # FIXME: insert proper C++ library support
11903	  ld_shlibs_CXX=no
11904	fi
11905	;;
11906    esac
11907    ;;
11908  osf4* | osf5*)
11909    case $cc_basename in
11910      KCC*)
11911	# Kuck and Associates, Inc. (KAI) C++ Compiler
11912
11913	# KCC will only create a shared library if the output file
11914	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11915	# to its proper name (with version) after linking.
11916	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'
11917
11918	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11919	hardcode_libdir_separator_CXX=:
11920
11921	# Archives containing C++ object files must be created using
11922	# the KAI C++ compiler.
11923	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11924	;;
11925      RCC*)
11926	# Rational C++ 2.4.1
11927	# FIXME: insert proper C++ library support
11928	ld_shlibs_CXX=no
11929	;;
11930      cxx*)
11931	allow_undefined_flag_CXX=' -expect_unresolved \*'
11932	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'
11933	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11934	  echo "-hidden">> $lib.exp~
11935	  $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~
11936	  $rm $lib.exp'
11937
11938	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11939	hardcode_libdir_separator_CXX=:
11940
11941	# Commands to make compiler produce verbose output that lists
11942	# what "hidden" libraries, object files and flags are used when
11943	# linking a shared library.
11944	#
11945	# There doesn't appear to be a way to prevent this compiler from
11946	# explicitly linking system object files so we need to strip them
11947	# from the output so that they don't get included in the library
11948	# dependencies.
11949	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'
11950	;;
11951      *)
11952	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11953	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11954	 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'
11955
11956	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11957	  hardcode_libdir_separator_CXX=:
11958
11959	  # Commands to make compiler produce verbose output that lists
11960	  # what "hidden" libraries, object files and flags are used when
11961	  # linking a shared library.
11962	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11963
11964	else
11965	  # FIXME: insert proper C++ library support
11966	  ld_shlibs_CXX=no
11967	fi
11968	;;
11969    esac
11970    ;;
11971  psos*)
11972    # FIXME: insert proper C++ library support
11973    ld_shlibs_CXX=no
11974    ;;
11975  sunos4*)
11976    case $cc_basename in
11977      CC*)
11978	# Sun C++ 4.x
11979	# FIXME: insert proper C++ library support
11980	ld_shlibs_CXX=no
11981	;;
11982      lcc*)
11983	# Lucid
11984	# FIXME: insert proper C++ library support
11985	ld_shlibs_CXX=no
11986	;;
11987      *)
11988	# FIXME: insert proper C++ library support
11989	ld_shlibs_CXX=no
11990	;;
11991    esac
11992    ;;
11993  solaris*)
11994    case $cc_basename in
11995      CC*)
11996	# Sun C++ 4.2, 5.x and Centerline C++
11997        archive_cmds_need_lc_CXX=yes
11998	no_undefined_flag_CXX=' -zdefs'
11999	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12000	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12001	$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'
12002
12003	hardcode_libdir_flag_spec_CXX='-R$libdir'
12004	hardcode_shlibpath_var_CXX=no
12005	case $host_os in
12006	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12007	  *)
12008	    # The compiler driver will combine and reorder linker options,
12009	    # but understands `-z linker_flag'.
12010	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12011	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12012	    ;;
12013	esac
12014	link_all_deplibs_CXX=yes
12015
12016	output_verbose_link_cmd='echo'
12017
12018	# Archives containing C++ object files must be created using
12019	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12020	# necessary to make sure instantiated templates are included
12021	# in the archive.
12022	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12023	;;
12024      gcx*)
12025	# Green Hills C++ Compiler
12026	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12027
12028	# The C++ compiler must be used to create the archive.
12029	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12030	;;
12031      *)
12032	# GNU C++ compiler with Solaris linker
12033	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12034	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12035	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12036	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12037	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12038		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12039
12040	    # Commands to make compiler produce verbose output that lists
12041	    # what "hidden" libraries, object files and flags are used when
12042	    # linking a shared library.
12043	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12044	  else
12045	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12046	    # platform.
12047	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12048	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12049		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12050
12051	    # Commands to make compiler produce verbose output that lists
12052	    # what "hidden" libraries, object files and flags are used when
12053	    # linking a shared library.
12054	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12055	  fi
12056
12057	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12058	  case $host_os in
12059	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12060	  *)
12061	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12062	    ;;
12063	  esac
12064	fi
12065	;;
12066    esac
12067    ;;
12068  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12069    no_undefined_flag_CXX='${wl}-z,text'
12070    archive_cmds_need_lc_CXX=no
12071    hardcode_shlibpath_var_CXX=no
12072    runpath_var='LD_RUN_PATH'
12073
12074    case $cc_basename in
12075      CC*)
12076	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12077	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12078	;;
12079      *)
12080	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12081	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12082	;;
12083    esac
12084    ;;
12085  sysv5* | sco3.2v5* | sco5v6*)
12086    # Note: We can NOT use -z defs as we might desire, because we do not
12087    # link with -lc, and that would cause any symbols used from libc to
12088    # always be unresolved, which means just about no library would
12089    # ever link correctly.  If we're not using GNU ld we use -z text
12090    # though, which does catch some bad symbols but isn't as heavy-handed
12091    # as -z defs.
12092    # For security reasons, it is highly recommended that you always
12093    # use absolute paths for naming shared libraries, and exclude the
12094    # DT_RUNPATH tag from executables and libraries.  But doing so
12095    # requires that you compile everything twice, which is a pain.
12096    # So that behaviour is only enabled if SCOABSPATH is set to a
12097    # non-empty value in the environment.  Most likely only useful for
12098    # creating official distributions of packages.
12099    # This is a hack until libtool officially supports absolute path
12100    # names for shared libraries.
12101    no_undefined_flag_CXX='${wl}-z,text'
12102    allow_undefined_flag_CXX='${wl}-z,nodefs'
12103    archive_cmds_need_lc_CXX=no
12104    hardcode_shlibpath_var_CXX=no
12105    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12106    hardcode_libdir_separator_CXX=':'
12107    link_all_deplibs_CXX=yes
12108    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12109    runpath_var='LD_RUN_PATH'
12110
12111    case $cc_basename in
12112      CC*)
12113	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12114	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12115	;;
12116      *)
12117	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12118	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12119	;;
12120    esac
12121    ;;
12122  tandem*)
12123    case $cc_basename in
12124      NCC*)
12125	# NonStop-UX NCC 3.20
12126	# FIXME: insert proper C++ library support
12127	ld_shlibs_CXX=no
12128	;;
12129      *)
12130	# FIXME: insert proper C++ library support
12131	ld_shlibs_CXX=no
12132	;;
12133    esac
12134    ;;
12135  vxworks*)
12136    # FIXME: insert proper C++ library support
12137    ld_shlibs_CXX=no
12138    ;;
12139  *)
12140    # FIXME: insert proper C++ library support
12141    ld_shlibs_CXX=no
12142    ;;
12143esac
12144{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12145echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12146test "$ld_shlibs_CXX" = no && can_build_shared=no
12147
12148GCC_CXX="$GXX"
12149LD_CXX="$LD"
12150
12151cat > conftest.$ac_ext <<EOF
12152class Foo
12153{
12154public:
12155  Foo (void) { a = 0; }
12156private:
12157  int a;
12158};
12159EOF
12160
12161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12162  (eval $ac_compile) 2>&5
12163  ac_status=$?
12164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165  (exit $ac_status); }; then
12166  # Parse the compiler output and extract the necessary
12167  # objects, libraries and library flags.
12168
12169  # Sentinel used to keep track of whether or not we are before
12170  # the conftest object file.
12171  pre_test_object_deps_done=no
12172
12173  # The `*' in the case matches for architectures that use `case' in
12174  # $output_verbose_cmd can trigger glob expansion during the loop
12175  # eval without this substitution.
12176  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12177
12178  for p in `eval $output_verbose_link_cmd`; do
12179    case $p in
12180
12181    -L* | -R* | -l*)
12182       # Some compilers place space between "-{L,R}" and the path.
12183       # Remove the space.
12184       if test $p = "-L" \
12185	  || test $p = "-R"; then
12186	 prev=$p
12187	 continue
12188       else
12189	 prev=
12190       fi
12191
12192       if test "$pre_test_object_deps_done" = no; then
12193	 case $p in
12194	 -L* | -R*)
12195	   # Internal compiler library paths should come after those
12196	   # provided the user.  The postdeps already come after the
12197	   # user supplied libs so there is no need to process them.
12198	   if test -z "$compiler_lib_search_path_CXX"; then
12199	     compiler_lib_search_path_CXX="${prev}${p}"
12200	   else
12201	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12202	   fi
12203	   ;;
12204	 # The "-l" case would never come before the object being
12205	 # linked, so don't bother handling this case.
12206	 esac
12207       else
12208	 if test -z "$postdeps_CXX"; then
12209	   postdeps_CXX="${prev}${p}"
12210	 else
12211	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12212	 fi
12213       fi
12214       ;;
12215
12216    *.$objext)
12217       # This assumes that the test object file only shows up
12218       # once in the compiler output.
12219       if test "$p" = "conftest.$objext"; then
12220	 pre_test_object_deps_done=yes
12221	 continue
12222       fi
12223
12224       if test "$pre_test_object_deps_done" = no; then
12225	 if test -z "$predep_objects_CXX"; then
12226	   predep_objects_CXX="$p"
12227	 else
12228	   predep_objects_CXX="$predep_objects_CXX $p"
12229	 fi
12230       else
12231	 if test -z "$postdep_objects_CXX"; then
12232	   postdep_objects_CXX="$p"
12233	 else
12234	   postdep_objects_CXX="$postdep_objects_CXX $p"
12235	 fi
12236       fi
12237       ;;
12238
12239    *) ;; # Ignore the rest.
12240
12241    esac
12242  done
12243
12244  # Clean up.
12245  rm -f a.out a.exe
12246else
12247  echo "libtool.m4: error: problem compiling CXX test program"
12248fi
12249
12250$rm -f confest.$objext
12251
12252compiler_lib_search_dirs_CXX=
12253if test -n "$compiler_lib_search_path_CXX"; then
12254  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12255fi
12256
12257# PORTME: override above test on systems where it is broken
12258case $host_os in
12259interix[3-9]*)
12260  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12261  # hack all around it, let's just trust "g++" to DTRT.
12262  predep_objects_CXX=
12263  postdep_objects_CXX=
12264  postdeps_CXX=
12265  ;;
12266
12267linux*)
12268  case `$CC -V 2>&1 | sed 5q` in
12269  *Sun\ C*)
12270    # Sun C++ 5.9
12271    #
12272    # The more standards-conforming stlport4 library is
12273    # incompatible with the Cstd library. Avoid specifying
12274    # it if it's in CXXFLAGS. Ignore libCrun as
12275    # -library=stlport4 depends on it.
12276    case " $CXX $CXXFLAGS " in
12277    *" -library=stlport4 "*)
12278      solaris_use_stlport4=yes
12279      ;;
12280    esac
12281    if test "$solaris_use_stlport4" != yes; then
12282      postdeps_CXX='-library=Cstd -library=Crun'
12283    fi
12284    ;;
12285  esac
12286  ;;
12287
12288solaris*)
12289  case $cc_basename in
12290  CC*)
12291    # The more standards-conforming stlport4 library is
12292    # incompatible with the Cstd library. Avoid specifying
12293    # it if it's in CXXFLAGS. Ignore libCrun as
12294    # -library=stlport4 depends on it.
12295    case " $CXX $CXXFLAGS " in
12296    *" -library=stlport4 "*)
12297      solaris_use_stlport4=yes
12298      ;;
12299    esac
12300
12301    # Adding this requires a known-good setup of shared libraries for
12302    # Sun compiler versions before 5.6, else PIC objects from an old
12303    # archive will be linked into the output, leading to subtle bugs.
12304    if test "$solaris_use_stlport4" != yes; then
12305      postdeps_CXX='-library=Cstd -library=Crun'
12306    fi
12307    ;;
12308  esac
12309  ;;
12310esac
12311
12312case " $postdeps_CXX " in
12313*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12314esac
12315
12316lt_prog_compiler_wl_CXX=
12317lt_prog_compiler_pic_CXX=
12318lt_prog_compiler_static_CXX=
12319
12320{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12321echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12322
12323  # C++ specific cases for pic, static, wl, etc.
12324  if test "$GXX" = yes; then
12325    lt_prog_compiler_wl_CXX='-Wl,'
12326    lt_prog_compiler_static_CXX='-static'
12327
12328    case $host_os in
12329    aix*)
12330      # All AIX code is PIC.
12331      if test "$host_cpu" = ia64; then
12332	# AIX 5 now supports IA64 processor
12333	lt_prog_compiler_static_CXX='-Bstatic'
12334      fi
12335      ;;
12336    amigaos*)
12337      # FIXME: we need at least 68020 code to build shared libraries, but
12338      # adding the `-m68020' flag to GCC prevents building anything better,
12339      # like `-m68040'.
12340      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12341      ;;
12342    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12343      # PIC is the default for these OSes.
12344      ;;
12345    mingw* | cygwin* | os2* | pw32*)
12346      # This hack is so that the source file can tell whether it is being
12347      # built for inclusion in a dll (and should export symbols for example).
12348      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12349      # (--disable-auto-import) libraries
12350      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12351      ;;
12352    darwin* | rhapsody*)
12353      # PIC is the default on this platform
12354      # Common symbols not allowed in MH_DYLIB files
12355      lt_prog_compiler_pic_CXX='-fno-common'
12356      ;;
12357    *djgpp*)
12358      # DJGPP does not support shared libraries at all
12359      lt_prog_compiler_pic_CXX=
12360      ;;
12361    interix[3-9]*)
12362      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12363      # Instead, we relocate shared libraries at runtime.
12364      ;;
12365    sysv4*MP*)
12366      if test -d /usr/nec; then
12367	lt_prog_compiler_pic_CXX=-Kconform_pic
12368      fi
12369      ;;
12370    hpux*)
12371      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12372      # not for PA HP-UX.
12373      case $host_cpu in
12374      hppa*64*|ia64*)
12375	;;
12376      *)
12377	lt_prog_compiler_pic_CXX='-fPIC'
12378	;;
12379      esac
12380      ;;
12381    *)
12382      lt_prog_compiler_pic_CXX='-fPIC'
12383      ;;
12384    esac
12385  else
12386    case $host_os in
12387      aix[4-9]*)
12388	# All AIX code is PIC.
12389	if test "$host_cpu" = ia64; then
12390	  # AIX 5 now supports IA64 processor
12391	  lt_prog_compiler_static_CXX='-Bstatic'
12392	else
12393	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12394	fi
12395	;;
12396      chorus*)
12397	case $cc_basename in
12398	cxch68*)
12399	  # Green Hills C++ Compiler
12400	  # _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"
12401	  ;;
12402	esac
12403	;;
12404       darwin*)
12405         # PIC is the default on this platform
12406         # Common symbols not allowed in MH_DYLIB files
12407         case $cc_basename in
12408           xlc*)
12409           lt_prog_compiler_pic_CXX='-qnocommon'
12410           lt_prog_compiler_wl_CXX='-Wl,'
12411           ;;
12412         esac
12413       ;;
12414      dgux*)
12415	case $cc_basename in
12416	  ec++*)
12417	    lt_prog_compiler_pic_CXX='-KPIC'
12418	    ;;
12419	  ghcx*)
12420	    # Green Hills C++ Compiler
12421	    lt_prog_compiler_pic_CXX='-pic'
12422	    ;;
12423	  *)
12424	    ;;
12425	esac
12426	;;
12427      freebsd* | dragonfly*)
12428	# FreeBSD uses GNU C++
12429	;;
12430      hpux9* | hpux10* | hpux11*)
12431	case $cc_basename in
12432	  CC*)
12433	    lt_prog_compiler_wl_CXX='-Wl,'
12434	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12435	    if test "$host_cpu" != ia64; then
12436	      lt_prog_compiler_pic_CXX='+Z'
12437	    fi
12438	    ;;
12439	  aCC*)
12440	    lt_prog_compiler_wl_CXX='-Wl,'
12441	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12442	    case $host_cpu in
12443	    hppa*64*|ia64*)
12444	      # +Z the default
12445	      ;;
12446	    *)
12447	      lt_prog_compiler_pic_CXX='+Z'
12448	      ;;
12449	    esac
12450	    ;;
12451	  *)
12452	    ;;
12453	esac
12454	;;
12455      interix*)
12456	# This is c89, which is MS Visual C++ (no shared libs)
12457	# Anyone wants to do a port?
12458	;;
12459      irix5* | irix6* | nonstopux*)
12460	case $cc_basename in
12461	  CC*)
12462	    lt_prog_compiler_wl_CXX='-Wl,'
12463	    lt_prog_compiler_static_CXX='-non_shared'
12464	    # CC pic flag -KPIC is the default.
12465	    ;;
12466	  *)
12467	    ;;
12468	esac
12469	;;
12470      linux* | k*bsd*-gnu)
12471	case $cc_basename in
12472	  KCC*)
12473	    # KAI C++ Compiler
12474	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12475	    lt_prog_compiler_pic_CXX='-fPIC'
12476	    ;;
12477	  icpc* | ecpc*)
12478	    # Intel C++
12479	    lt_prog_compiler_wl_CXX='-Wl,'
12480	    lt_prog_compiler_pic_CXX='-KPIC'
12481	    lt_prog_compiler_static_CXX='-static'
12482	    ;;
12483	  pgCC* | pgcpp*)
12484	    # Portland Group C++ compiler.
12485	    lt_prog_compiler_wl_CXX='-Wl,'
12486	    lt_prog_compiler_pic_CXX='-fpic'
12487	    lt_prog_compiler_static_CXX='-Bstatic'
12488	    ;;
12489	  cxx*)
12490	    # Compaq C++
12491	    # Make sure the PIC flag is empty.  It appears that all Alpha
12492	    # Linux and Compaq Tru64 Unix objects are PIC.
12493	    lt_prog_compiler_pic_CXX=
12494	    lt_prog_compiler_static_CXX='-non_shared'
12495	    ;;
12496	  *)
12497	    case `$CC -V 2>&1 | sed 5q` in
12498	    *Sun\ C*)
12499	      # Sun C++ 5.9
12500	      lt_prog_compiler_pic_CXX='-KPIC'
12501	      lt_prog_compiler_static_CXX='-Bstatic'
12502	      lt_prog_compiler_wl_CXX='-Qoption ld '
12503	      ;;
12504	    esac
12505	    ;;
12506	esac
12507	;;
12508      lynxos*)
12509	;;
12510      m88k*)
12511	;;
12512      mvs*)
12513	case $cc_basename in
12514	  cxx*)
12515	    lt_prog_compiler_pic_CXX='-W c,exportall'
12516	    ;;
12517	  *)
12518	    ;;
12519	esac
12520	;;
12521      netbsd* | netbsdelf*-gnu)
12522	;;
12523      osf3* | osf4* | osf5*)
12524	case $cc_basename in
12525	  KCC*)
12526	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12527	    ;;
12528	  RCC*)
12529	    # Rational C++ 2.4.1
12530	    lt_prog_compiler_pic_CXX='-pic'
12531	    ;;
12532	  cxx*)
12533	    # Digital/Compaq C++
12534	    lt_prog_compiler_wl_CXX='-Wl,'
12535	    # Make sure the PIC flag is empty.  It appears that all Alpha
12536	    # Linux and Compaq Tru64 Unix objects are PIC.
12537	    lt_prog_compiler_pic_CXX=
12538	    lt_prog_compiler_static_CXX='-non_shared'
12539	    ;;
12540	  *)
12541	    ;;
12542	esac
12543	;;
12544      psos*)
12545	;;
12546      solaris*)
12547	case $cc_basename in
12548	  CC*)
12549	    # Sun C++ 4.2, 5.x and Centerline C++
12550	    lt_prog_compiler_pic_CXX='-KPIC'
12551	    lt_prog_compiler_static_CXX='-Bstatic'
12552	    lt_prog_compiler_wl_CXX='-Qoption ld '
12553	    ;;
12554	  gcx*)
12555	    # Green Hills C++ Compiler
12556	    lt_prog_compiler_pic_CXX='-PIC'
12557	    ;;
12558	  *)
12559	    ;;
12560	esac
12561	;;
12562      sunos4*)
12563	case $cc_basename in
12564	  CC*)
12565	    # Sun C++ 4.x
12566	    lt_prog_compiler_pic_CXX='-pic'
12567	    lt_prog_compiler_static_CXX='-Bstatic'
12568	    ;;
12569	  lcc*)
12570	    # Lucid
12571	    lt_prog_compiler_pic_CXX='-pic'
12572	    ;;
12573	  *)
12574	    ;;
12575	esac
12576	;;
12577      tandem*)
12578	case $cc_basename in
12579	  NCC*)
12580	    # NonStop-UX NCC 3.20
12581	    lt_prog_compiler_pic_CXX='-KPIC'
12582	    ;;
12583	  *)
12584	    ;;
12585	esac
12586	;;
12587      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12588	case $cc_basename in
12589	  CC*)
12590	    lt_prog_compiler_wl_CXX='-Wl,'
12591	    lt_prog_compiler_pic_CXX='-KPIC'
12592	    lt_prog_compiler_static_CXX='-Bstatic'
12593	    ;;
12594	esac
12595	;;
12596      vxworks*)
12597	;;
12598      *)
12599	lt_prog_compiler_can_build_shared_CXX=no
12600	;;
12601    esac
12602  fi
12603
12604{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12605echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12606
12607#
12608# Check to make sure the PIC flag actually works.
12609#
12610if test -n "$lt_prog_compiler_pic_CXX"; then
12611
12612{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12613echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12614if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12615  echo $ECHO_N "(cached) $ECHO_C" >&6
12616else
12617  lt_cv_prog_compiler_pic_works_CXX=no
12618  ac_outfile=conftest.$ac_objext
12619   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12620   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12621   # Insert the option either (1) after the last *FLAGS variable, or
12622   # (2) before a word containing "conftest.", or (3) at the end.
12623   # Note that $ac_compile itself does not contain backslashes and begins
12624   # with a dollar sign (not a hyphen), so the echo should work correctly.
12625   # The option is referenced via a variable to avoid confusing sed.
12626   lt_compile=`echo "$ac_compile" | $SED \
12627   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12628   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12629   -e 's:$: $lt_compiler_flag:'`
12630   (eval echo "\"\$as_me:12630: $lt_compile\"" >&5)
12631   (eval "$lt_compile" 2>conftest.err)
12632   ac_status=$?
12633   cat conftest.err >&5
12634   echo "$as_me:12634: \$? = $ac_status" >&5
12635   if (exit $ac_status) && test -s "$ac_outfile"; then
12636     # The compiler can only warn and ignore the option if not recognized
12637     # So say no if there are warnings other than the usual output.
12638     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12639     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12640     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12641       lt_cv_prog_compiler_pic_works_CXX=yes
12642     fi
12643   fi
12644   $rm conftest*
12645
12646fi
12647{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12648echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12649
12650if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12651    case $lt_prog_compiler_pic_CXX in
12652     "" | " "*) ;;
12653     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12654     esac
12655else
12656    lt_prog_compiler_pic_CXX=
12657     lt_prog_compiler_can_build_shared_CXX=no
12658fi
12659
12660fi
12661case $host_os in
12662  # For platforms which do not support PIC, -DPIC is meaningless:
12663  *djgpp*)
12664    lt_prog_compiler_pic_CXX=
12665    ;;
12666  *)
12667    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12668    ;;
12669esac
12670
12671#
12672# Check to make sure the static flag actually works.
12673#
12674wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12675{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12676echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12677if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12678  echo $ECHO_N "(cached) $ECHO_C" >&6
12679else
12680  lt_cv_prog_compiler_static_works_CXX=no
12681   save_LDFLAGS="$LDFLAGS"
12682   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12683   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12684   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12685     # The linker can only warn and ignore the option if not recognized
12686     # So say no if there are warnings
12687     if test -s conftest.err; then
12688       # Append any errors to the config.log.
12689       cat conftest.err 1>&5
12690       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12691       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12692       if diff conftest.exp conftest.er2 >/dev/null; then
12693         lt_cv_prog_compiler_static_works_CXX=yes
12694       fi
12695     else
12696       lt_cv_prog_compiler_static_works_CXX=yes
12697     fi
12698   fi
12699   $rm -r conftest*
12700   LDFLAGS="$save_LDFLAGS"
12701
12702fi
12703{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12704echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12705
12706if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12707    :
12708else
12709    lt_prog_compiler_static_CXX=
12710fi
12711
12712
12713{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12714echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12715if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12716  echo $ECHO_N "(cached) $ECHO_C" >&6
12717else
12718  lt_cv_prog_compiler_c_o_CXX=no
12719   $rm -r conftest 2>/dev/null
12720   mkdir conftest
12721   cd conftest
12722   mkdir out
12723   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12724
12725   lt_compiler_flag="-o out/conftest2.$ac_objext"
12726   # Insert the option either (1) after the last *FLAGS variable, or
12727   # (2) before a word containing "conftest.", or (3) at the end.
12728   # Note that $ac_compile itself does not contain backslashes and begins
12729   # with a dollar sign (not a hyphen), so the echo should work correctly.
12730   lt_compile=`echo "$ac_compile" | $SED \
12731   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12732   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12733   -e 's:$: $lt_compiler_flag:'`
12734   (eval echo "\"\$as_me:12734: $lt_compile\"" >&5)
12735   (eval "$lt_compile" 2>out/conftest.err)
12736   ac_status=$?
12737   cat out/conftest.err >&5
12738   echo "$as_me:12738: \$? = $ac_status" >&5
12739   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12740   then
12741     # The compiler can only warn and ignore the option if not recognized
12742     # So say no if there are warnings
12743     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12744     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12745     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12746       lt_cv_prog_compiler_c_o_CXX=yes
12747     fi
12748   fi
12749   chmod u+w . 2>&5
12750   $rm conftest*
12751   # SGI C++ compiler will create directory out/ii_files/ for
12752   # template instantiation
12753   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12754   $rm out/* && rmdir out
12755   cd ..
12756   rmdir conftest
12757   $rm conftest*
12758
12759fi
12760{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12761echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12762
12763
12764hard_links="nottested"
12765if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12766  # do not overwrite the value of need_locks provided by the user
12767  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12768echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12769  hard_links=yes
12770  $rm conftest*
12771  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12772  touch conftest.a
12773  ln conftest.a conftest.b 2>&5 || hard_links=no
12774  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12775  { echo "$as_me:$LINENO: result: $hard_links" >&5
12776echo "${ECHO_T}$hard_links" >&6; }
12777  if test "$hard_links" = no; then
12778    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12779echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12780    need_locks=warn
12781  fi
12782else
12783  need_locks=no
12784fi
12785
12786{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12787echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12788
12789  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12790  case $host_os in
12791  aix[4-9]*)
12792    # If we're using GNU nm, then we don't want the "-C" option.
12793    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12794    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12795      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'
12796    else
12797      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'
12798    fi
12799    ;;
12800  pw32*)
12801    export_symbols_cmds_CXX="$ltdll_cmds"
12802  ;;
12803  cygwin* | mingw*)
12804    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'
12805  ;;
12806  linux* | k*bsd*-gnu)
12807    link_all_deplibs_CXX=no
12808  ;;
12809  *)
12810    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12811  ;;
12812  esac
12813  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12814
12815{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12816echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12817test "$ld_shlibs_CXX" = no && can_build_shared=no
12818
12819#
12820# Do we need to explicitly link libc?
12821#
12822case "x$archive_cmds_need_lc_CXX" in
12823x|xyes)
12824  # Assume -lc should be added
12825  archive_cmds_need_lc_CXX=yes
12826
12827  if test "$enable_shared" = yes && test "$GCC" = yes; then
12828    case $archive_cmds_CXX in
12829    *'~'*)
12830      # FIXME: we may have to deal with multi-command sequences.
12831      ;;
12832    '$CC '*)
12833      # Test whether the compiler implicitly links with -lc since on some
12834      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12835      # to ld, don't add -lc before -lgcc.
12836      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12837echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12838      $rm conftest*
12839      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12840
12841      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12842  (eval $ac_compile) 2>&5
12843  ac_status=$?
12844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845  (exit $ac_status); } 2>conftest.err; then
12846        soname=conftest
12847        lib=conftest
12848        libobjs=conftest.$ac_objext
12849        deplibs=
12850        wl=$lt_prog_compiler_wl_CXX
12851	pic_flag=$lt_prog_compiler_pic_CXX
12852        compiler_flags=-v
12853        linker_flags=-v
12854        verstring=
12855        output_objdir=.
12856        libname=conftest
12857        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12858        allow_undefined_flag_CXX=
12859        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12860  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12861  ac_status=$?
12862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863  (exit $ac_status); }
12864        then
12865	  archive_cmds_need_lc_CXX=no
12866        else
12867	  archive_cmds_need_lc_CXX=yes
12868        fi
12869        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12870      else
12871        cat conftest.err 1>&5
12872      fi
12873      $rm conftest*
12874      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12875echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12876      ;;
12877    esac
12878  fi
12879  ;;
12880esac
12881
12882{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12883echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12884library_names_spec=
12885libname_spec='lib$name'
12886soname_spec=
12887shrext_cmds=".so"
12888postinstall_cmds=
12889postuninstall_cmds=
12890finish_cmds=
12891finish_eval=
12892shlibpath_var=
12893shlibpath_overrides_runpath=unknown
12894version_type=none
12895dynamic_linker="$host_os ld.so"
12896sys_lib_dlsearch_path_spec="/lib /usr/lib"
12897
12898need_lib_prefix=unknown
12899hardcode_into_libs=no
12900
12901# when you set need_version to no, make sure it does not cause -set_version
12902# flags to be left without arguments
12903need_version=unknown
12904
12905case $host_os in
12906aix3*)
12907  version_type=linux
12908  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12909  shlibpath_var=LIBPATH
12910
12911  # AIX 3 has no versioning support, so we append a major version to the name.
12912  soname_spec='${libname}${release}${shared_ext}$major'
12913  ;;
12914
12915aix[4-9]*)
12916  version_type=linux
12917  need_lib_prefix=no
12918  need_version=no
12919  hardcode_into_libs=yes
12920  if test "$host_cpu" = ia64; then
12921    # AIX 5 supports IA64
12922    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12923    shlibpath_var=LD_LIBRARY_PATH
12924  else
12925    # With GCC up to 2.95.x, collect2 would create an import file
12926    # for dependence libraries.  The import file would start with
12927    # the line `#! .'.  This would cause the generated library to
12928    # depend on `.', always an invalid library.  This was fixed in
12929    # development snapshots of GCC prior to 3.0.
12930    case $host_os in
12931      aix4 | aix4.[01] | aix4.[01].*)
12932      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12933	   echo ' yes '
12934	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12935	:
12936      else
12937	can_build_shared=no
12938      fi
12939      ;;
12940    esac
12941    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12942    # soname into executable. Probably we can add versioning support to
12943    # collect2, so additional links can be useful in future.
12944    if test "$aix_use_runtimelinking" = yes; then
12945      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12946      # instead of lib<name>.a to let people know that these are not
12947      # typical AIX shared libraries.
12948      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12949    else
12950      # We preserve .a as extension for shared libraries through AIX4.2
12951      # and later when we are not doing run time linking.
12952      library_names_spec='${libname}${release}.a $libname.a'
12953      soname_spec='${libname}${release}${shared_ext}$major'
12954    fi
12955    shlibpath_var=LIBPATH
12956  fi
12957  ;;
12958
12959amigaos*)
12960  library_names_spec='$libname.ixlibrary $libname.a'
12961  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12962  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'
12963  ;;
12964
12965beos*)
12966  library_names_spec='${libname}${shared_ext}'
12967  dynamic_linker="$host_os ld.so"
12968  shlibpath_var=LIBRARY_PATH
12969  ;;
12970
12971bsdi[45]*)
12972  version_type=linux
12973  need_version=no
12974  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12975  soname_spec='${libname}${release}${shared_ext}$major'
12976  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12977  shlibpath_var=LD_LIBRARY_PATH
12978  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12979  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12980  # the default ld.so.conf also contains /usr/contrib/lib and
12981  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12982  # libtool to hard-code these into programs
12983  ;;
12984
12985cygwin* | mingw* | pw32*)
12986  version_type=windows
12987  shrext_cmds=".dll"
12988  need_version=no
12989  need_lib_prefix=no
12990
12991  case $GCC,$host_os in
12992  yes,cygwin* | yes,mingw* | yes,pw32*)
12993    library_names_spec='$libname.dll.a'
12994    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12995    postinstall_cmds='base_file=`basename \${file}`~
12996      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12997      dldir=$destdir/`dirname \$dlpath`~
12998      test -d \$dldir || mkdir -p \$dldir~
12999      $install_prog $dir/$dlname \$dldir/$dlname~
13000      chmod a+x \$dldir/$dlname'
13001    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13002      dlpath=$dir/\$dldll~
13003       $rm \$dlpath'
13004    shlibpath_overrides_runpath=yes
13005
13006    case $host_os in
13007    cygwin*)
13008      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13009      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13010      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13011      ;;
13012    mingw*)
13013      # MinGW DLLs use traditional 'lib' prefix
13014      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13015      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13016      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13017        # It is most probably a Windows format PATH printed by
13018        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13019        # path with ; separators, and with drive letters. We can handle the
13020        # drive letters (cygwin fileutils understands them), so leave them,
13021        # especially as we might pass files found there to a mingw objdump,
13022        # which wouldn't understand a cygwinified path. Ahh.
13023        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13024      else
13025        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13026      fi
13027      ;;
13028    pw32*)
13029      # pw32 DLLs use 'pw' prefix rather than 'lib'
13030      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13031      ;;
13032    esac
13033    ;;
13034
13035  *)
13036    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13037    ;;
13038  esac
13039  dynamic_linker='Win32 ld.exe'
13040  # FIXME: first we should search . and the directory the executable is in
13041  shlibpath_var=PATH
13042  ;;
13043
13044darwin* | rhapsody*)
13045  dynamic_linker="$host_os dyld"
13046  version_type=darwin
13047  need_lib_prefix=no
13048  need_version=no
13049  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13050  soname_spec='${libname}${release}${major}$shared_ext'
13051  shlibpath_overrides_runpath=yes
13052  shlibpath_var=DYLD_LIBRARY_PATH
13053  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13054
13055  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13056  ;;
13057
13058dgux*)
13059  version_type=linux
13060  need_lib_prefix=no
13061  need_version=no
13062  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13063  soname_spec='${libname}${release}${shared_ext}$major'
13064  shlibpath_var=LD_LIBRARY_PATH
13065  ;;
13066
13067freebsd1*)
13068  dynamic_linker=no
13069  ;;
13070
13071freebsd* | dragonfly*)
13072  # DragonFly does not have aout.  When/if they implement a new
13073  # versioning mechanism, adjust this.
13074  if test -x /usr/bin/objformat; then
13075    objformat=`/usr/bin/objformat`
13076  else
13077    case $host_os in
13078    freebsd[123]*) objformat=aout ;;
13079    *) objformat=elf ;;
13080    esac
13081  fi
13082  version_type=freebsd-$objformat
13083  case $version_type in
13084    freebsd-elf*)
13085      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13086      need_version=no
13087      need_lib_prefix=no
13088      ;;
13089    freebsd-*)
13090      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13091      need_version=yes
13092      ;;
13093  esac
13094  shlibpath_var=LD_LIBRARY_PATH
13095  case $host_os in
13096  freebsd2*)
13097    shlibpath_overrides_runpath=yes
13098    ;;
13099  freebsd3.[01]* | freebsdelf3.[01]*)
13100    shlibpath_overrides_runpath=yes
13101    hardcode_into_libs=yes
13102    ;;
13103  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13104  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13105    shlibpath_overrides_runpath=no
13106    hardcode_into_libs=yes
13107    ;;
13108  *) # from 4.6 on, and DragonFly
13109    shlibpath_overrides_runpath=yes
13110    hardcode_into_libs=yes
13111    ;;
13112  esac
13113  ;;
13114
13115gnu*)
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  shlibpath_var=LD_LIBRARY_PATH
13122  hardcode_into_libs=yes
13123  ;;
13124
13125hpux9* | hpux10* | hpux11*)
13126  # Give a soname corresponding to the major version so that dld.sl refuses to
13127  # link against other versions.
13128  version_type=sunos
13129  need_lib_prefix=no
13130  need_version=no
13131  case $host_cpu in
13132  ia64*)
13133    shrext_cmds='.so'
13134    hardcode_into_libs=yes
13135    dynamic_linker="$host_os dld.so"
13136    shlibpath_var=LD_LIBRARY_PATH
13137    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13138    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13139    soname_spec='${libname}${release}${shared_ext}$major'
13140    if test "X$HPUX_IA64_MODE" = X32; then
13141      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13142    else
13143      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13144    fi
13145    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13146    ;;
13147   hppa*64*)
13148     shrext_cmds='.sl'
13149     hardcode_into_libs=yes
13150     dynamic_linker="$host_os dld.sl"
13151     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13152     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13153     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13154     soname_spec='${libname}${release}${shared_ext}$major'
13155     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13156     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13157     ;;
13158   *)
13159    shrext_cmds='.sl'
13160    dynamic_linker="$host_os dld.sl"
13161    shlibpath_var=SHLIB_PATH
13162    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13163    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13164    soname_spec='${libname}${release}${shared_ext}$major'
13165    ;;
13166  esac
13167  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13168  postinstall_cmds='chmod 555 $lib'
13169  ;;
13170
13171interix[3-9]*)
13172  version_type=linux
13173  need_lib_prefix=no
13174  need_version=no
13175  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13176  soname_spec='${libname}${release}${shared_ext}$major'
13177  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13178  shlibpath_var=LD_LIBRARY_PATH
13179  shlibpath_overrides_runpath=no
13180  hardcode_into_libs=yes
13181  ;;
13182
13183irix5* | irix6* | nonstopux*)
13184  case $host_os in
13185    nonstopux*) version_type=nonstopux ;;
13186    *)
13187	if test "$lt_cv_prog_gnu_ld" = yes; then
13188		version_type=linux
13189	else
13190		version_type=irix
13191	fi ;;
13192  esac
13193  need_lib_prefix=no
13194  need_version=no
13195  soname_spec='${libname}${release}${shared_ext}$major'
13196  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13197  case $host_os in
13198  irix5* | nonstopux*)
13199    libsuff= shlibsuff=
13200    ;;
13201  *)
13202    case $LD in # libtool.m4 will add one of these switches to LD
13203    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13204      libsuff= shlibsuff= libmagic=32-bit;;
13205    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13206      libsuff=32 shlibsuff=N32 libmagic=N32;;
13207    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13208      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13209    *) libsuff= shlibsuff= libmagic=never-match;;
13210    esac
13211    ;;
13212  esac
13213  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13214  shlibpath_overrides_runpath=no
13215  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13216  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13217  hardcode_into_libs=yes
13218  ;;
13219
13220# No shared lib support for Linux oldld, aout, or coff.
13221linux*oldld* | linux*aout* | linux*coff*)
13222  dynamic_linker=no
13223  ;;
13224
13225# This must be Linux ELF.
13226linux* | k*bsd*-gnu)
13227  version_type=linux
13228  need_lib_prefix=no
13229  need_version=no
13230  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13231  soname_spec='${libname}${release}${shared_ext}$major'
13232  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13233  shlibpath_var=LD_LIBRARY_PATH
13234  shlibpath_overrides_runpath=no
13235  # This implies no fast_install, which is unacceptable.
13236  # Some rework will be needed to allow for fast_install
13237  # before this can be enabled.
13238  hardcode_into_libs=yes
13239
13240  # Append ld.so.conf contents to the search path
13241  if test -f /etc/ld.so.conf; then
13242    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13243    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13244  fi
13245
13246  # We used to test for /lib/ld.so.1 and disable shared libraries on
13247  # powerpc, because MkLinux only supported shared libraries with the
13248  # GNU dynamic linker.  Since this was broken with cross compilers,
13249  # most powerpc-linux boxes support dynamic linking these days and
13250  # people can always --disable-shared, the test was removed, and we
13251  # assume the GNU/Linux dynamic linker is in use.
13252  dynamic_linker='GNU/Linux ld.so'
13253  ;;
13254
13255netbsdelf*-gnu)
13256  version_type=linux
13257  need_lib_prefix=no
13258  need_version=no
13259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13260  soname_spec='${libname}${release}${shared_ext}$major'
13261  shlibpath_var=LD_LIBRARY_PATH
13262  shlibpath_overrides_runpath=no
13263  hardcode_into_libs=yes
13264  dynamic_linker='NetBSD ld.elf_so'
13265  ;;
13266
13267netbsd*)
13268  version_type=sunos
13269  need_lib_prefix=no
13270  need_version=no
13271  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13272    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13273    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13274    dynamic_linker='NetBSD (a.out) ld.so'
13275  else
13276    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13277    soname_spec='${libname}${release}${shared_ext}$major'
13278    dynamic_linker='NetBSD ld.elf_so'
13279  fi
13280  shlibpath_var=LD_LIBRARY_PATH
13281  shlibpath_overrides_runpath=yes
13282  hardcode_into_libs=yes
13283  ;;
13284
13285newsos6)
13286  version_type=linux
13287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13288  shlibpath_var=LD_LIBRARY_PATH
13289  shlibpath_overrides_runpath=yes
13290  ;;
13291
13292nto-qnx*)
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  ;;
13301
13302openbsd*)
13303  version_type=sunos
13304  sys_lib_dlsearch_path_spec="/usr/lib"
13305  need_lib_prefix=no
13306  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13307  case $host_os in
13308    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13309    *)                         need_version=no  ;;
13310  esac
13311  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13312  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13313  shlibpath_var=LD_LIBRARY_PATH
13314  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13315    case $host_os in
13316      openbsd2.[89] | openbsd2.[89].*)
13317	shlibpath_overrides_runpath=no
13318	;;
13319      *)
13320	shlibpath_overrides_runpath=yes
13321	;;
13322      esac
13323  else
13324    shlibpath_overrides_runpath=yes
13325  fi
13326  ;;
13327
13328os2*)
13329  libname_spec='$name'
13330  shrext_cmds=".dll"
13331  need_lib_prefix=no
13332  library_names_spec='$libname${shared_ext} $libname.a'
13333  dynamic_linker='OS/2 ld.exe'
13334  shlibpath_var=LIBPATH
13335  ;;
13336
13337osf3* | osf4* | osf5*)
13338  version_type=osf
13339  need_lib_prefix=no
13340  need_version=no
13341  soname_spec='${libname}${release}${shared_ext}$major'
13342  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13343  shlibpath_var=LD_LIBRARY_PATH
13344  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13345  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13346  ;;
13347
13348rdos*)
13349  dynamic_linker=no
13350  ;;
13351
13352solaris*)
13353  version_type=linux
13354  need_lib_prefix=no
13355  need_version=no
13356  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13357  soname_spec='${libname}${release}${shared_ext}$major'
13358  shlibpath_var=LD_LIBRARY_PATH
13359  shlibpath_overrides_runpath=yes
13360  hardcode_into_libs=yes
13361  # ldd complains unless libraries are executable
13362  postinstall_cmds='chmod +x $lib'
13363  ;;
13364
13365sunos4*)
13366  version_type=sunos
13367  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13368  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13369  shlibpath_var=LD_LIBRARY_PATH
13370  shlibpath_overrides_runpath=yes
13371  if test "$with_gnu_ld" = yes; then
13372    need_lib_prefix=no
13373  fi
13374  need_version=yes
13375  ;;
13376
13377sysv4 | sysv4.3*)
13378  version_type=linux
13379  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13380  soname_spec='${libname}${release}${shared_ext}$major'
13381  shlibpath_var=LD_LIBRARY_PATH
13382  case $host_vendor in
13383    sni)
13384      shlibpath_overrides_runpath=no
13385      need_lib_prefix=no
13386      export_dynamic_flag_spec='${wl}-Blargedynsym'
13387      runpath_var=LD_RUN_PATH
13388      ;;
13389    siemens)
13390      need_lib_prefix=no
13391      ;;
13392    motorola)
13393      need_lib_prefix=no
13394      need_version=no
13395      shlibpath_overrides_runpath=no
13396      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13397      ;;
13398  esac
13399  ;;
13400
13401sysv4*MP*)
13402  if test -d /usr/nec ;then
13403    version_type=linux
13404    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13405    soname_spec='$libname${shared_ext}.$major'
13406    shlibpath_var=LD_LIBRARY_PATH
13407  fi
13408  ;;
13409
13410sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13411  version_type=freebsd-elf
13412  need_lib_prefix=no
13413  need_version=no
13414  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13415  soname_spec='${libname}${release}${shared_ext}$major'
13416  shlibpath_var=LD_LIBRARY_PATH
13417  hardcode_into_libs=yes
13418  if test "$with_gnu_ld" = yes; then
13419    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13420    shlibpath_overrides_runpath=no
13421  else
13422    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13423    shlibpath_overrides_runpath=yes
13424    case $host_os in
13425      sco3.2v5*)
13426        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13427	;;
13428    esac
13429  fi
13430  sys_lib_dlsearch_path_spec='/usr/lib'
13431  ;;
13432
13433uts4*)
13434  version_type=linux
13435  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13436  soname_spec='${libname}${release}${shared_ext}$major'
13437  shlibpath_var=LD_LIBRARY_PATH
13438  ;;
13439
13440*)
13441  dynamic_linker=no
13442  ;;
13443esac
13444{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13445echo "${ECHO_T}$dynamic_linker" >&6; }
13446test "$dynamic_linker" = no && can_build_shared=no
13447
13448if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13449  echo $ECHO_N "(cached) $ECHO_C" >&6
13450else
13451  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13452fi
13453
13454sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13455if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13456  echo $ECHO_N "(cached) $ECHO_C" >&6
13457else
13458  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13459fi
13460
13461sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13462
13463variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13464if test "$GCC" = yes; then
13465  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13466fi
13467
13468{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13469echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13470hardcode_action_CXX=
13471if test -n "$hardcode_libdir_flag_spec_CXX" || \
13472   test -n "$runpath_var_CXX" || \
13473   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13474
13475  # We can hardcode non-existant directories.
13476  if test "$hardcode_direct_CXX" != no &&
13477     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13478     # have to relink, otherwise we might link with an installed library
13479     # when we should be linking with a yet-to-be-installed one
13480     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13481     test "$hardcode_minus_L_CXX" != no; then
13482    # Linking always hardcodes the temporary library directory.
13483    hardcode_action_CXX=relink
13484  else
13485    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13486    hardcode_action_CXX=immediate
13487  fi
13488else
13489  # We cannot hardcode anything, or else we can only hardcode existing
13490  # directories.
13491  hardcode_action_CXX=unsupported
13492fi
13493{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13494echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13495
13496if test "$hardcode_action_CXX" = relink; then
13497  # Fast installation is not supported
13498  enable_fast_install=no
13499elif test "$shlibpath_overrides_runpath" = yes ||
13500     test "$enable_shared" = no; then
13501  # Fast installation is not necessary
13502  enable_fast_install=needless
13503fi
13504
13505
13506# The else clause should only fire when bootstrapping the
13507# libtool distribution, otherwise you forgot to ship ltmain.sh
13508# with your package, and you will get complaints that there are
13509# no rules to generate ltmain.sh.
13510if test -f "$ltmain"; then
13511  # See if we are running on zsh, and set the options which allow our commands through
13512  # without removal of \ escapes.
13513  if test -n "${ZSH_VERSION+set}" ; then
13514    setopt NO_GLOB_SUBST
13515  fi
13516  # Now quote all the things that may contain metacharacters while being
13517  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13518  # variables and quote the copies for generation of the libtool script.
13519  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13520    SED SHELL STRIP \
13521    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13522    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13523    deplibs_check_method reload_flag reload_cmds need_locks \
13524    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13525    lt_cv_sys_global_symbol_to_c_name_address \
13526    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13527    old_postinstall_cmds old_postuninstall_cmds \
13528    compiler_CXX \
13529    CC_CXX \
13530    LD_CXX \
13531    lt_prog_compiler_wl_CXX \
13532    lt_prog_compiler_pic_CXX \
13533    lt_prog_compiler_static_CXX \
13534    lt_prog_compiler_no_builtin_flag_CXX \
13535    export_dynamic_flag_spec_CXX \
13536    thread_safe_flag_spec_CXX \
13537    whole_archive_flag_spec_CXX \
13538    enable_shared_with_static_runtimes_CXX \
13539    old_archive_cmds_CXX \
13540    old_archive_from_new_cmds_CXX \
13541    predep_objects_CXX \
13542    postdep_objects_CXX \
13543    predeps_CXX \
13544    postdeps_CXX \
13545    compiler_lib_search_path_CXX \
13546    compiler_lib_search_dirs_CXX \
13547    archive_cmds_CXX \
13548    archive_expsym_cmds_CXX \
13549    postinstall_cmds_CXX \
13550    postuninstall_cmds_CXX \
13551    old_archive_from_expsyms_cmds_CXX \
13552    allow_undefined_flag_CXX \
13553    no_undefined_flag_CXX \
13554    export_symbols_cmds_CXX \
13555    hardcode_libdir_flag_spec_CXX \
13556    hardcode_libdir_flag_spec_ld_CXX \
13557    hardcode_libdir_separator_CXX \
13558    hardcode_automatic_CXX \
13559    module_cmds_CXX \
13560    module_expsym_cmds_CXX \
13561    lt_cv_prog_compiler_c_o_CXX \
13562    fix_srcfile_path_CXX \
13563    exclude_expsyms_CXX \
13564    include_expsyms_CXX; do
13565
13566    case $var in
13567    old_archive_cmds_CXX | \
13568    old_archive_from_new_cmds_CXX | \
13569    archive_cmds_CXX | \
13570    archive_expsym_cmds_CXX | \
13571    module_cmds_CXX | \
13572    module_expsym_cmds_CXX | \
13573    old_archive_from_expsyms_cmds_CXX | \
13574    export_symbols_cmds_CXX | \
13575    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13576    postinstall_cmds | postuninstall_cmds | \
13577    old_postinstall_cmds | old_postuninstall_cmds | \
13578    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13579      # Double-quote double-evaled strings.
13580      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13581      ;;
13582    *)
13583      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13584      ;;
13585    esac
13586  done
13587
13588  case $lt_echo in
13589  *'\$0 --fallback-echo"')
13590    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13591    ;;
13592  esac
13593
13594cfgfile="$ofile"
13595
13596  cat <<__EOF__ >> "$cfgfile"
13597# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13598
13599# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13600
13601# Shell to use when invoking shell scripts.
13602SHELL=$lt_SHELL
13603
13604# Whether or not to build shared libraries.
13605build_libtool_libs=$enable_shared
13606
13607# Whether or not to build static libraries.
13608build_old_libs=$enable_static
13609
13610# Whether or not to add -lc for building shared libraries.
13611build_libtool_need_lc=$archive_cmds_need_lc_CXX
13612
13613# Whether or not to disallow shared libs when runtime libs are static
13614allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13615
13616# Whether or not to optimize for fast installation.
13617fast_install=$enable_fast_install
13618
13619# The host system.
13620host_alias=$host_alias
13621host=$host
13622host_os=$host_os
13623
13624# The build system.
13625build_alias=$build_alias
13626build=$build
13627build_os=$build_os
13628
13629# An echo program that does not interpret backslashes.
13630echo=$lt_echo
13631
13632# The archiver.
13633AR=$lt_AR
13634AR_FLAGS=$lt_AR_FLAGS
13635
13636# A C compiler.
13637LTCC=$lt_LTCC
13638
13639# LTCC compiler flags.
13640LTCFLAGS=$lt_LTCFLAGS
13641
13642# A language-specific compiler.
13643CC=$lt_compiler_CXX
13644
13645# Is the compiler the GNU C compiler?
13646with_gcc=$GCC_CXX
13647
13648# An ERE matcher.
13649EGREP=$lt_EGREP
13650
13651# The linker used to build libraries.
13652LD=$lt_LD_CXX
13653
13654# Whether we need hard or soft links.
13655LN_S=$lt_LN_S
13656
13657# A BSD-compatible nm program.
13658NM=$lt_NM
13659
13660# A symbol stripping program
13661STRIP=$lt_STRIP
13662
13663# Used to examine libraries when file_magic_cmd begins "file"
13664MAGIC_CMD=$MAGIC_CMD
13665
13666# Used on cygwin: DLL creation program.
13667DLLTOOL="$DLLTOOL"
13668
13669# Used on cygwin: object dumper.
13670OBJDUMP="$OBJDUMP"
13671
13672# Used on cygwin: assembler.
13673AS="$AS"
13674
13675# The name of the directory that contains temporary libtool files.
13676objdir=$objdir
13677
13678# How to create reloadable object files.
13679reload_flag=$lt_reload_flag
13680reload_cmds=$lt_reload_cmds
13681
13682# How to pass a linker flag through the compiler.
13683wl=$lt_lt_prog_compiler_wl_CXX
13684
13685# Object file suffix (normally "o").
13686objext="$ac_objext"
13687
13688# Old archive suffix (normally "a").
13689libext="$libext"
13690
13691# Shared library suffix (normally ".so").
13692shrext_cmds='$shrext_cmds'
13693
13694# Executable file suffix (normally "").
13695exeext="$exeext"
13696
13697# Additional compiler flags for building library objects.
13698pic_flag=$lt_lt_prog_compiler_pic_CXX
13699pic_mode=$pic_mode
13700
13701# What is the maximum length of a command?
13702max_cmd_len=$lt_cv_sys_max_cmd_len
13703
13704# Does compiler simultaneously support -c and -o options?
13705compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13706
13707# Must we lock files when doing compilation?
13708need_locks=$lt_need_locks
13709
13710# Do we need the lib prefix for modules?
13711need_lib_prefix=$need_lib_prefix
13712
13713# Do we need a version for libraries?
13714need_version=$need_version
13715
13716# Whether dlopen is supported.
13717dlopen_support=$enable_dlopen
13718
13719# Whether dlopen of programs is supported.
13720dlopen_self=$enable_dlopen_self
13721
13722# Whether dlopen of statically linked programs is supported.
13723dlopen_self_static=$enable_dlopen_self_static
13724
13725# Compiler flag to prevent dynamic linking.
13726link_static_flag=$lt_lt_prog_compiler_static_CXX
13727
13728# Compiler flag to turn off builtin functions.
13729no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13730
13731# Compiler flag to allow reflexive dlopens.
13732export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13733
13734# Compiler flag to generate shared objects directly from archives.
13735whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13736
13737# Compiler flag to generate thread-safe objects.
13738thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13739
13740# Library versioning type.
13741version_type=$version_type
13742
13743# Format of library name prefix.
13744libname_spec=$lt_libname_spec
13745
13746# List of archive names.  First name is the real one, the rest are links.
13747# The last name is the one that the linker finds with -lNAME.
13748library_names_spec=$lt_library_names_spec
13749
13750# The coded name of the library, if different from the real name.
13751soname_spec=$lt_soname_spec
13752
13753# Commands used to build and install an old-style archive.
13754RANLIB=$lt_RANLIB
13755old_archive_cmds=$lt_old_archive_cmds_CXX
13756old_postinstall_cmds=$lt_old_postinstall_cmds
13757old_postuninstall_cmds=$lt_old_postuninstall_cmds
13758
13759# Create an old-style archive from a shared archive.
13760old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13761
13762# Create a temporary old-style archive to link instead of a shared archive.
13763old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13764
13765# Commands used to build and install a shared archive.
13766archive_cmds=$lt_archive_cmds_CXX
13767archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13768postinstall_cmds=$lt_postinstall_cmds
13769postuninstall_cmds=$lt_postuninstall_cmds
13770
13771# Commands used to build a loadable module (assumed same as above if empty)
13772module_cmds=$lt_module_cmds_CXX
13773module_expsym_cmds=$lt_module_expsym_cmds_CXX
13774
13775# Commands to strip libraries.
13776old_striplib=$lt_old_striplib
13777striplib=$lt_striplib
13778
13779# Dependencies to place before the objects being linked to create a
13780# shared library.
13781predep_objects=$lt_predep_objects_CXX
13782
13783# Dependencies to place after the objects being linked to create a
13784# shared library.
13785postdep_objects=$lt_postdep_objects_CXX
13786
13787# Dependencies to place before the objects being linked to create a
13788# shared library.
13789predeps=$lt_predeps_CXX
13790
13791# Dependencies to place after the objects being linked to create a
13792# shared library.
13793postdeps=$lt_postdeps_CXX
13794
13795# The directories searched by this compiler when creating a shared
13796# library
13797compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13798
13799# The library search path used internally by the compiler when linking
13800# a shared library.
13801compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13802
13803# Method to check whether dependent libraries are shared objects.
13804deplibs_check_method=$lt_deplibs_check_method
13805
13806# Command to use when deplibs_check_method == file_magic.
13807file_magic_cmd=$lt_file_magic_cmd
13808
13809# Flag that allows shared libraries with undefined symbols to be built.
13810allow_undefined_flag=$lt_allow_undefined_flag_CXX
13811
13812# Flag that forces no undefined symbols.
13813no_undefined_flag=$lt_no_undefined_flag_CXX
13814
13815# Commands used to finish a libtool library installation in a directory.
13816finish_cmds=$lt_finish_cmds
13817
13818# Same as above, but a single script fragment to be evaled but not shown.
13819finish_eval=$lt_finish_eval
13820
13821# Take the output of nm and produce a listing of raw symbols and C names.
13822global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13823
13824# Transform the output of nm in a proper C declaration
13825global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13826
13827# Transform the output of nm in a C name address pair
13828global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13829
13830# This is the shared library runtime path variable.
13831runpath_var=$runpath_var
13832
13833# This is the shared library path variable.
13834shlibpath_var=$shlibpath_var
13835
13836# Is shlibpath searched before the hard-coded library search path?
13837shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13838
13839# How to hardcode a shared library path into an executable.
13840hardcode_action=$hardcode_action_CXX
13841
13842# Whether we should hardcode library paths into libraries.
13843hardcode_into_libs=$hardcode_into_libs
13844
13845# Flag to hardcode \$libdir into a binary during linking.
13846# This must work even if \$libdir does not exist.
13847hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13848
13849# If ld is used when linking, flag to hardcode \$libdir into
13850# a binary during linking. This must work even if \$libdir does
13851# not exist.
13852hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13853
13854# Whether we need a single -rpath flag with a separated argument.
13855hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13856
13857# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13858# resulting binary.
13859hardcode_direct=$hardcode_direct_CXX
13860
13861# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13862# resulting binary.
13863hardcode_minus_L=$hardcode_minus_L_CXX
13864
13865# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13866# the resulting binary.
13867hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13868
13869# Set to yes if building a shared library automatically hardcodes DIR into the library
13870# and all subsequent libraries and executables linked against it.
13871hardcode_automatic=$hardcode_automatic_CXX
13872
13873# Variables whose values should be saved in libtool wrapper scripts and
13874# restored at relink time.
13875variables_saved_for_relink="$variables_saved_for_relink"
13876
13877# Whether libtool must link a program against all its dependency libraries.
13878link_all_deplibs=$link_all_deplibs_CXX
13879
13880# Compile-time system search path for libraries
13881sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13882
13883# Run-time system search path for libraries
13884sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13885
13886# Fix the shell variable \$srcfile for the compiler.
13887fix_srcfile_path=$lt_fix_srcfile_path
13888
13889# Set to yes if exported symbols are required.
13890always_export_symbols=$always_export_symbols_CXX
13891
13892# The commands to list exported symbols.
13893export_symbols_cmds=$lt_export_symbols_cmds_CXX
13894
13895# The commands to extract the exported symbol list from a shared archive.
13896extract_expsyms_cmds=$lt_extract_expsyms_cmds
13897
13898# Symbols that should not be listed in the preloaded symbols.
13899exclude_expsyms=$lt_exclude_expsyms_CXX
13900
13901# Symbols that must always be exported.
13902include_expsyms=$lt_include_expsyms_CXX
13903
13904# ### END LIBTOOL TAG CONFIG: $tagname
13905
13906__EOF__
13907
13908
13909else
13910  # If there is no Makefile yet, we rely on a make rule to execute
13911  # `config.status --recheck' to rerun these tests and create the
13912  # libtool script then.
13913  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13914  if test -f "$ltmain_in"; then
13915    test -f Makefile && make "$ltmain"
13916  fi
13917fi
13918
13919
13920ac_ext=c
13921ac_cpp='$CPP $CPPFLAGS'
13922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13924ac_compiler_gnu=$ac_cv_c_compiler_gnu
13925
13926CC=$lt_save_CC
13927LDCXX=$LD
13928LD=$lt_save_LD
13929GCC=$lt_save_GCC
13930with_gnu_ldcxx=$with_gnu_ld
13931with_gnu_ld=$lt_save_with_gnu_ld
13932lt_cv_path_LDCXX=$lt_cv_path_LD
13933lt_cv_path_LD=$lt_save_path_LD
13934lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13935lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13936
13937	else
13938	  tagname=""
13939	fi
13940	;;
13941
13942      F77)
13943	if test -n "$F77" && test "X$F77" != "Xno"; then
13944
13945ac_ext=f
13946ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13947ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13948ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13949
13950
13951archive_cmds_need_lc_F77=no
13952allow_undefined_flag_F77=
13953always_export_symbols_F77=no
13954archive_expsym_cmds_F77=
13955export_dynamic_flag_spec_F77=
13956hardcode_direct_F77=no
13957hardcode_libdir_flag_spec_F77=
13958hardcode_libdir_flag_spec_ld_F77=
13959hardcode_libdir_separator_F77=
13960hardcode_minus_L_F77=no
13961hardcode_automatic_F77=no
13962module_cmds_F77=
13963module_expsym_cmds_F77=
13964link_all_deplibs_F77=unknown
13965old_archive_cmds_F77=$old_archive_cmds
13966no_undefined_flag_F77=
13967whole_archive_flag_spec_F77=
13968enable_shared_with_static_runtimes_F77=no
13969
13970# Source file extension for f77 test sources.
13971ac_ext=f
13972
13973# Object file extension for compiled f77 test sources.
13974objext=o
13975objext_F77=$objext
13976
13977# Code to be used in simple compile tests
13978lt_simple_compile_test_code="\
13979      subroutine t
13980      return
13981      end
13982"
13983
13984# Code to be used in simple link tests
13985lt_simple_link_test_code="\
13986      program t
13987      end
13988"
13989
13990# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13991
13992# If no C compiler was specified, use CC.
13993LTCC=${LTCC-"$CC"}
13994
13995# If no C compiler flags were specified, use CFLAGS.
13996LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13997
13998# Allow CC to be a program name with arguments.
13999compiler=$CC
14000
14001
14002# save warnings/boilerplate of simple test code
14003ac_outfile=conftest.$ac_objext
14004echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14005eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14006_lt_compiler_boilerplate=`cat conftest.err`
14007$rm conftest*
14008
14009ac_outfile=conftest.$ac_objext
14010echo "$lt_simple_link_test_code" >conftest.$ac_ext
14011eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14012_lt_linker_boilerplate=`cat conftest.err`
14013$rm -r conftest*
14014
14015
14016# Allow CC to be a program name with arguments.
14017lt_save_CC="$CC"
14018CC=${F77-"f77"}
14019compiler=$CC
14020compiler_F77=$CC
14021for cc_temp in $compiler""; do
14022  case $cc_temp in
14023    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14024    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14025    \-*) ;;
14026    *) break;;
14027  esac
14028done
14029cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14030
14031
14032{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14033echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14034{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14035echo "${ECHO_T}$can_build_shared" >&6; }
14036
14037{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14038echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14039test "$can_build_shared" = "no" && enable_shared=no
14040
14041# On AIX, shared libraries and static libraries use the same namespace, and
14042# are all built from PIC.
14043case $host_os in
14044aix3*)
14045  test "$enable_shared" = yes && enable_static=no
14046  if test -n "$RANLIB"; then
14047    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14048    postinstall_cmds='$RANLIB $lib'
14049  fi
14050  ;;
14051aix[4-9]*)
14052  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14053    test "$enable_shared" = yes && enable_static=no
14054  fi
14055  ;;
14056esac
14057{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14058echo "${ECHO_T}$enable_shared" >&6; }
14059
14060{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14061echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14062# Make sure either enable_shared or enable_static is yes.
14063test "$enable_shared" = yes || enable_static=yes
14064{ echo "$as_me:$LINENO: result: $enable_static" >&5
14065echo "${ECHO_T}$enable_static" >&6; }
14066
14067GCC_F77="$G77"
14068LD_F77="$LD"
14069
14070lt_prog_compiler_wl_F77=
14071lt_prog_compiler_pic_F77=
14072lt_prog_compiler_static_F77=
14073
14074{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14075echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14076
14077  if test "$GCC" = yes; then
14078    lt_prog_compiler_wl_F77='-Wl,'
14079    lt_prog_compiler_static_F77='-static'
14080
14081    case $host_os in
14082      aix*)
14083      # All AIX code is PIC.
14084      if test "$host_cpu" = ia64; then
14085	# AIX 5 now supports IA64 processor
14086	lt_prog_compiler_static_F77='-Bstatic'
14087      fi
14088      ;;
14089
14090    amigaos*)
14091      # FIXME: we need at least 68020 code to build shared libraries, but
14092      # adding the `-m68020' flag to GCC prevents building anything better,
14093      # like `-m68040'.
14094      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14095      ;;
14096
14097    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14098      # PIC is the default for these OSes.
14099      ;;
14100
14101    mingw* | cygwin* | pw32* | os2*)
14102      # This hack is so that the source file can tell whether it is being
14103      # built for inclusion in a dll (and should export symbols for example).
14104      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14105      # (--disable-auto-import) libraries
14106      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14107      ;;
14108
14109    darwin* | rhapsody*)
14110      # PIC is the default on this platform
14111      # Common symbols not allowed in MH_DYLIB files
14112      lt_prog_compiler_pic_F77='-fno-common'
14113      ;;
14114
14115    interix[3-9]*)
14116      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14117      # Instead, we relocate shared libraries at runtime.
14118      ;;
14119
14120    msdosdjgpp*)
14121      # Just because we use GCC doesn't mean we suddenly get shared libraries
14122      # on systems that don't support them.
14123      lt_prog_compiler_can_build_shared_F77=no
14124      enable_shared=no
14125      ;;
14126
14127    sysv4*MP*)
14128      if test -d /usr/nec; then
14129	lt_prog_compiler_pic_F77=-Kconform_pic
14130      fi
14131      ;;
14132
14133    hpux*)
14134      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14135      # not for PA HP-UX.
14136      case $host_cpu in
14137      hppa*64*|ia64*)
14138	# +Z the default
14139	;;
14140      *)
14141	lt_prog_compiler_pic_F77='-fPIC'
14142	;;
14143      esac
14144      ;;
14145
14146    *)
14147      lt_prog_compiler_pic_F77='-fPIC'
14148      ;;
14149    esac
14150  else
14151    # PORTME Check for flag to pass linker flags through the system compiler.
14152    case $host_os in
14153    aix*)
14154      lt_prog_compiler_wl_F77='-Wl,'
14155      if test "$host_cpu" = ia64; then
14156	# AIX 5 now supports IA64 processor
14157	lt_prog_compiler_static_F77='-Bstatic'
14158      else
14159	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14160      fi
14161      ;;
14162      darwin*)
14163        # PIC is the default on this platform
14164        # Common symbols not allowed in MH_DYLIB files
14165       case $cc_basename in
14166         xlc*)
14167         lt_prog_compiler_pic_F77='-qnocommon'
14168         lt_prog_compiler_wl_F77='-Wl,'
14169         ;;
14170       esac
14171       ;;
14172
14173    mingw* | cygwin* | pw32* | os2*)
14174      # This hack is so that the source file can tell whether it is being
14175      # built for inclusion in a dll (and should export symbols for example).
14176      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14177      ;;
14178
14179    hpux9* | hpux10* | hpux11*)
14180      lt_prog_compiler_wl_F77='-Wl,'
14181      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14182      # not for PA HP-UX.
14183      case $host_cpu in
14184      hppa*64*|ia64*)
14185	# +Z the default
14186	;;
14187      *)
14188	lt_prog_compiler_pic_F77='+Z'
14189	;;
14190      esac
14191      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14192      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14193      ;;
14194
14195    irix5* | irix6* | nonstopux*)
14196      lt_prog_compiler_wl_F77='-Wl,'
14197      # PIC (with -KPIC) is the default.
14198      lt_prog_compiler_static_F77='-non_shared'
14199      ;;
14200
14201    newsos6)
14202      lt_prog_compiler_pic_F77='-KPIC'
14203      lt_prog_compiler_static_F77='-Bstatic'
14204      ;;
14205
14206    linux* | k*bsd*-gnu)
14207      case $cc_basename in
14208      icc* | ecc*)
14209	lt_prog_compiler_wl_F77='-Wl,'
14210	lt_prog_compiler_pic_F77='-KPIC'
14211	lt_prog_compiler_static_F77='-static'
14212        ;;
14213      pgcc* | pgf77* | pgf90* | pgf95*)
14214        # Portland Group compilers (*not* the Pentium gcc compiler,
14215	# which looks to be a dead project)
14216	lt_prog_compiler_wl_F77='-Wl,'
14217	lt_prog_compiler_pic_F77='-fpic'
14218	lt_prog_compiler_static_F77='-Bstatic'
14219        ;;
14220      ccc*)
14221        lt_prog_compiler_wl_F77='-Wl,'
14222        # All Alpha code is PIC.
14223        lt_prog_compiler_static_F77='-non_shared'
14224        ;;
14225      *)
14226        case `$CC -V 2>&1 | sed 5q` in
14227	*Sun\ C*)
14228	  # Sun C 5.9
14229	  lt_prog_compiler_pic_F77='-KPIC'
14230	  lt_prog_compiler_static_F77='-Bstatic'
14231	  lt_prog_compiler_wl_F77='-Wl,'
14232	  ;;
14233	*Sun\ F*)
14234	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14235	  lt_prog_compiler_pic_F77='-KPIC'
14236	  lt_prog_compiler_static_F77='-Bstatic'
14237	  lt_prog_compiler_wl_F77=''
14238	  ;;
14239	esac
14240	;;
14241      esac
14242      ;;
14243
14244    osf3* | osf4* | osf5*)
14245      lt_prog_compiler_wl_F77='-Wl,'
14246      # All OSF/1 code is PIC.
14247      lt_prog_compiler_static_F77='-non_shared'
14248      ;;
14249
14250    rdos*)
14251      lt_prog_compiler_static_F77='-non_shared'
14252      ;;
14253
14254    solaris*)
14255      lt_prog_compiler_pic_F77='-KPIC'
14256      lt_prog_compiler_static_F77='-Bstatic'
14257      case $cc_basename in
14258      f77* | f90* | f95*)
14259	lt_prog_compiler_wl_F77='-Qoption ld ';;
14260      *)
14261	lt_prog_compiler_wl_F77='-Wl,';;
14262      esac
14263      ;;
14264
14265    sunos4*)
14266      lt_prog_compiler_wl_F77='-Qoption ld '
14267      lt_prog_compiler_pic_F77='-PIC'
14268      lt_prog_compiler_static_F77='-Bstatic'
14269      ;;
14270
14271    sysv4 | sysv4.2uw2* | sysv4.3*)
14272      lt_prog_compiler_wl_F77='-Wl,'
14273      lt_prog_compiler_pic_F77='-KPIC'
14274      lt_prog_compiler_static_F77='-Bstatic'
14275      ;;
14276
14277    sysv4*MP*)
14278      if test -d /usr/nec ;then
14279	lt_prog_compiler_pic_F77='-Kconform_pic'
14280	lt_prog_compiler_static_F77='-Bstatic'
14281      fi
14282      ;;
14283
14284    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14285      lt_prog_compiler_wl_F77='-Wl,'
14286      lt_prog_compiler_pic_F77='-KPIC'
14287      lt_prog_compiler_static_F77='-Bstatic'
14288      ;;
14289
14290    unicos*)
14291      lt_prog_compiler_wl_F77='-Wl,'
14292      lt_prog_compiler_can_build_shared_F77=no
14293      ;;
14294
14295    uts4*)
14296      lt_prog_compiler_pic_F77='-pic'
14297      lt_prog_compiler_static_F77='-Bstatic'
14298      ;;
14299
14300    *)
14301      lt_prog_compiler_can_build_shared_F77=no
14302      ;;
14303    esac
14304  fi
14305
14306{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14307echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14308
14309#
14310# Check to make sure the PIC flag actually works.
14311#
14312if test -n "$lt_prog_compiler_pic_F77"; then
14313
14314{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14315echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14316if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14317  echo $ECHO_N "(cached) $ECHO_C" >&6
14318else
14319  lt_cv_prog_compiler_pic_works_F77=no
14320  ac_outfile=conftest.$ac_objext
14321   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14322   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14323   # Insert the option either (1) after the last *FLAGS variable, or
14324   # (2) before a word containing "conftest.", or (3) at the end.
14325   # Note that $ac_compile itself does not contain backslashes and begins
14326   # with a dollar sign (not a hyphen), so the echo should work correctly.
14327   # The option is referenced via a variable to avoid confusing sed.
14328   lt_compile=`echo "$ac_compile" | $SED \
14329   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14330   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14331   -e 's:$: $lt_compiler_flag:'`
14332   (eval echo "\"\$as_me:14332: $lt_compile\"" >&5)
14333   (eval "$lt_compile" 2>conftest.err)
14334   ac_status=$?
14335   cat conftest.err >&5
14336   echo "$as_me:14336: \$? = $ac_status" >&5
14337   if (exit $ac_status) && test -s "$ac_outfile"; then
14338     # The compiler can only warn and ignore the option if not recognized
14339     # So say no if there are warnings other than the usual output.
14340     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14341     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14342     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14343       lt_cv_prog_compiler_pic_works_F77=yes
14344     fi
14345   fi
14346   $rm conftest*
14347
14348fi
14349{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14350echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14351
14352if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14353    case $lt_prog_compiler_pic_F77 in
14354     "" | " "*) ;;
14355     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14356     esac
14357else
14358    lt_prog_compiler_pic_F77=
14359     lt_prog_compiler_can_build_shared_F77=no
14360fi
14361
14362fi
14363case $host_os in
14364  # For platforms which do not support PIC, -DPIC is meaningless:
14365  *djgpp*)
14366    lt_prog_compiler_pic_F77=
14367    ;;
14368  *)
14369    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14370    ;;
14371esac
14372
14373#
14374# Check to make sure the static flag actually works.
14375#
14376wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14377{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14378echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14379if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14380  echo $ECHO_N "(cached) $ECHO_C" >&6
14381else
14382  lt_cv_prog_compiler_static_works_F77=no
14383   save_LDFLAGS="$LDFLAGS"
14384   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14385   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14386   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14387     # The linker can only warn and ignore the option if not recognized
14388     # So say no if there are warnings
14389     if test -s conftest.err; then
14390       # Append any errors to the config.log.
14391       cat conftest.err 1>&5
14392       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14393       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14394       if diff conftest.exp conftest.er2 >/dev/null; then
14395         lt_cv_prog_compiler_static_works_F77=yes
14396       fi
14397     else
14398       lt_cv_prog_compiler_static_works_F77=yes
14399     fi
14400   fi
14401   $rm -r conftest*
14402   LDFLAGS="$save_LDFLAGS"
14403
14404fi
14405{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14406echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14407
14408if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14409    :
14410else
14411    lt_prog_compiler_static_F77=
14412fi
14413
14414
14415{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14416echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14417if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14418  echo $ECHO_N "(cached) $ECHO_C" >&6
14419else
14420  lt_cv_prog_compiler_c_o_F77=no
14421   $rm -r conftest 2>/dev/null
14422   mkdir conftest
14423   cd conftest
14424   mkdir out
14425   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14426
14427   lt_compiler_flag="-o out/conftest2.$ac_objext"
14428   # Insert the option either (1) after the last *FLAGS variable, or
14429   # (2) before a word containing "conftest.", or (3) at the end.
14430   # Note that $ac_compile itself does not contain backslashes and begins
14431   # with a dollar sign (not a hyphen), so the echo should work correctly.
14432   lt_compile=`echo "$ac_compile" | $SED \
14433   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14434   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14435   -e 's:$: $lt_compiler_flag:'`
14436   (eval echo "\"\$as_me:14436: $lt_compile\"" >&5)
14437   (eval "$lt_compile" 2>out/conftest.err)
14438   ac_status=$?
14439   cat out/conftest.err >&5
14440   echo "$as_me:14440: \$? = $ac_status" >&5
14441   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14442   then
14443     # The compiler can only warn and ignore the option if not recognized
14444     # So say no if there are warnings
14445     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14446     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14447     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14448       lt_cv_prog_compiler_c_o_F77=yes
14449     fi
14450   fi
14451   chmod u+w . 2>&5
14452   $rm conftest*
14453   # SGI C++ compiler will create directory out/ii_files/ for
14454   # template instantiation
14455   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14456   $rm out/* && rmdir out
14457   cd ..
14458   rmdir conftest
14459   $rm conftest*
14460
14461fi
14462{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14463echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14464
14465
14466hard_links="nottested"
14467if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14468  # do not overwrite the value of need_locks provided by the user
14469  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14470echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14471  hard_links=yes
14472  $rm conftest*
14473  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14474  touch conftest.a
14475  ln conftest.a conftest.b 2>&5 || hard_links=no
14476  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14477  { echo "$as_me:$LINENO: result: $hard_links" >&5
14478echo "${ECHO_T}$hard_links" >&6; }
14479  if test "$hard_links" = no; then
14480    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14481echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14482    need_locks=warn
14483  fi
14484else
14485  need_locks=no
14486fi
14487
14488{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14489echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14490
14491  runpath_var=
14492  allow_undefined_flag_F77=
14493  enable_shared_with_static_runtimes_F77=no
14494  archive_cmds_F77=
14495  archive_expsym_cmds_F77=
14496  old_archive_From_new_cmds_F77=
14497  old_archive_from_expsyms_cmds_F77=
14498  export_dynamic_flag_spec_F77=
14499  whole_archive_flag_spec_F77=
14500  thread_safe_flag_spec_F77=
14501  hardcode_libdir_flag_spec_F77=
14502  hardcode_libdir_flag_spec_ld_F77=
14503  hardcode_libdir_separator_F77=
14504  hardcode_direct_F77=no
14505  hardcode_minus_L_F77=no
14506  hardcode_shlibpath_var_F77=unsupported
14507  link_all_deplibs_F77=unknown
14508  hardcode_automatic_F77=no
14509  module_cmds_F77=
14510  module_expsym_cmds_F77=
14511  always_export_symbols_F77=no
14512  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14513  # include_expsyms should be a list of space-separated symbols to be *always*
14514  # included in the symbol list
14515  include_expsyms_F77=
14516  # exclude_expsyms can be an extended regexp of symbols to exclude
14517  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14518  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14519  # as well as any symbol that contains `d'.
14520  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14521  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14522  # platforms (ab)use it in PIC code, but their linkers get confused if
14523  # the symbol is explicitly referenced.  Since portable code cannot
14524  # rely on this symbol name, it's probably fine to never include it in
14525  # preloaded symbol tables.
14526  # Exclude shared library initialization/finalization symbols.
14527  extract_expsyms_cmds=
14528  # Just being paranoid about ensuring that cc_basename is set.
14529  for cc_temp in $compiler""; do
14530  case $cc_temp in
14531    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14532    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14533    \-*) ;;
14534    *) break;;
14535  esac
14536done
14537cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14538
14539  case $host_os in
14540  cygwin* | mingw* | pw32*)
14541    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14542    # When not using gcc, we currently assume that we are using
14543    # Microsoft Visual C++.
14544    if test "$GCC" != yes; then
14545      with_gnu_ld=no
14546    fi
14547    ;;
14548  interix*)
14549    # we just hope/assume this is gcc and not c89 (= MSVC++)
14550    with_gnu_ld=yes
14551    ;;
14552  openbsd*)
14553    with_gnu_ld=no
14554    ;;
14555  esac
14556
14557  ld_shlibs_F77=yes
14558  if test "$with_gnu_ld" = yes; then
14559    # If archive_cmds runs LD, not CC, wlarc should be empty
14560    wlarc='${wl}'
14561
14562    # Set some defaults for GNU ld with shared library support. These
14563    # are reset later if shared libraries are not supported. Putting them
14564    # here allows them to be overridden if necessary.
14565    runpath_var=LD_RUN_PATH
14566    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14567    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14568    # ancient GNU ld didn't support --whole-archive et. al.
14569    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14570	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14571      else
14572  	whole_archive_flag_spec_F77=
14573    fi
14574    supports_anon_versioning=no
14575    case `$LD -v 2>/dev/null` in
14576      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14577      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14578      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14579      *\ 2.11.*) ;; # other 2.11 versions
14580      *) supports_anon_versioning=yes ;;
14581    esac
14582
14583    # See if GNU ld supports shared libraries.
14584    case $host_os in
14585    aix[3-9]*)
14586      # On AIX/PPC, the GNU linker is very broken
14587      if test "$host_cpu" != ia64; then
14588	ld_shlibs_F77=no
14589	cat <<EOF 1>&2
14590
14591*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14592*** to be unable to reliably create shared libraries on AIX.
14593*** Therefore, libtool is disabling shared libraries support.  If you
14594*** really care for shared libraries, you may want to modify your PATH
14595*** so that a non-GNU linker is found, and then restart.
14596
14597EOF
14598      fi
14599      ;;
14600
14601    amigaos*)
14602      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)'
14603      hardcode_libdir_flag_spec_F77='-L$libdir'
14604      hardcode_minus_L_F77=yes
14605
14606      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14607      # that the semantics of dynamic libraries on AmigaOS, at least up
14608      # to version 4, is to share data among multiple programs linked
14609      # with the same dynamic library.  Since this doesn't match the
14610      # behavior of shared libraries on other platforms, we can't use
14611      # them.
14612      ld_shlibs_F77=no
14613      ;;
14614
14615    beos*)
14616      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14617	allow_undefined_flag_F77=unsupported
14618	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14619	# support --undefined.  This deserves some investigation.  FIXME
14620	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14621      else
14622	ld_shlibs_F77=no
14623      fi
14624      ;;
14625
14626    cygwin* | mingw* | pw32*)
14627      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14628      # as there is no search path for DLLs.
14629      hardcode_libdir_flag_spec_F77='-L$libdir'
14630      allow_undefined_flag_F77=unsupported
14631      always_export_symbols_F77=no
14632      enable_shared_with_static_runtimes_F77=yes
14633      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14634
14635      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14636        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14637	# If the export-symbols file already is a .def file (1st line
14638	# is EXPORTS), use it as is; otherwise, prepend...
14639	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14640	  cp $export_symbols $output_objdir/$soname.def;
14641	else
14642	  echo EXPORTS > $output_objdir/$soname.def;
14643	  cat $export_symbols >> $output_objdir/$soname.def;
14644	fi~
14645	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14646      else
14647	ld_shlibs_F77=no
14648      fi
14649      ;;
14650
14651    interix[3-9]*)
14652      hardcode_direct_F77=no
14653      hardcode_shlibpath_var_F77=no
14654      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14655      export_dynamic_flag_spec_F77='${wl}-E'
14656      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14657      # Instead, shared libraries are loaded at an image base (0x10000000 by
14658      # default) and relocated if they conflict, which is a slow very memory
14659      # consuming and fragmenting process.  To avoid this, we pick a random,
14660      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14661      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14662      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'
14663      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'
14664      ;;
14665
14666    gnu* | linux* | k*bsd*-gnu)
14667      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14668	tmp_addflag=
14669	case $cc_basename,$host_cpu in
14670	pgcc*)				# Portland Group C compiler
14671	  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'
14672	  tmp_addflag=' $pic_flag'
14673	  ;;
14674	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14675	  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'
14676	  tmp_addflag=' $pic_flag -Mnomain' ;;
14677	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14678	  tmp_addflag=' -i_dynamic' ;;
14679	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14680	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14681	ifc* | ifort*)			# Intel Fortran compiler
14682	  tmp_addflag=' -nofor_main' ;;
14683	esac
14684	case `$CC -V 2>&1 | sed 5q` in
14685	*Sun\ C*)			# Sun C 5.9
14686	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14687	  tmp_sharedflag='-G' ;;
14688	*Sun\ F*)			# Sun Fortran 8.3
14689	  tmp_sharedflag='-G' ;;
14690	*)
14691	  tmp_sharedflag='-shared' ;;
14692	esac
14693	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14694
14695	if test $supports_anon_versioning = yes; then
14696	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14697  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14698  $echo "local: *; };" >> $output_objdir/$libname.ver~
14699	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14700	fi
14701	link_all_deplibs_F77=no
14702      else
14703	ld_shlibs_F77=no
14704      fi
14705      ;;
14706
14707    netbsd* | netbsdelf*-gnu)
14708      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14709	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14710	wlarc=
14711      else
14712	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14713	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14714      fi
14715      ;;
14716
14717    solaris*)
14718      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14719	ld_shlibs_F77=no
14720	cat <<EOF 1>&2
14721
14722*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14723*** create shared libraries on Solaris systems.  Therefore, libtool
14724*** is disabling shared libraries support.  We urge you to upgrade GNU
14725*** binutils to release 2.9.1 or newer.  Another option is to modify
14726*** your PATH or compiler configuration so that the native linker is
14727*** used, and then restart.
14728
14729EOF
14730      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14731	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14732	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14733      else
14734	ld_shlibs_F77=no
14735      fi
14736      ;;
14737
14738    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14739      case `$LD -v 2>&1` in
14740        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14741	ld_shlibs_F77=no
14742	cat <<_LT_EOF 1>&2
14743
14744*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14745*** reliably create shared libraries on SCO systems.  Therefore, libtool
14746*** is disabling shared libraries support.  We urge you to upgrade GNU
14747*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14748*** your PATH or compiler configuration so that the native linker is
14749*** used, and then restart.
14750
14751_LT_EOF
14752	;;
14753	*)
14754	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14755	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14756	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14757	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14758	  else
14759	    ld_shlibs_F77=no
14760	  fi
14761	;;
14762      esac
14763      ;;
14764
14765    sunos4*)
14766      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14767      wlarc=
14768      hardcode_direct_F77=yes
14769      hardcode_shlibpath_var_F77=no
14770      ;;
14771
14772    *)
14773      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14774	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14775	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14776      else
14777	ld_shlibs_F77=no
14778      fi
14779      ;;
14780    esac
14781
14782    if test "$ld_shlibs_F77" = no; then
14783      runpath_var=
14784      hardcode_libdir_flag_spec_F77=
14785      export_dynamic_flag_spec_F77=
14786      whole_archive_flag_spec_F77=
14787    fi
14788  else
14789    # PORTME fill in a description of your system's linker (not GNU ld)
14790    case $host_os in
14791    aix3*)
14792      allow_undefined_flag_F77=unsupported
14793      always_export_symbols_F77=yes
14794      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'
14795      # Note: this linker hardcodes the directories in LIBPATH if there
14796      # are no directories specified by -L.
14797      hardcode_minus_L_F77=yes
14798      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14799	# Neither direct hardcoding nor static linking is supported with a
14800	# broken collect2.
14801	hardcode_direct_F77=unsupported
14802      fi
14803      ;;
14804
14805    aix[4-9]*)
14806      if test "$host_cpu" = ia64; then
14807	# On IA64, the linker does run time linking by default, so we don't
14808	# have to do anything special.
14809	aix_use_runtimelinking=no
14810	exp_sym_flag='-Bexport'
14811	no_entry_flag=""
14812      else
14813	# If we're using GNU nm, then we don't want the "-C" option.
14814	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14815	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14816	  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'
14817	else
14818	  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'
14819	fi
14820	aix_use_runtimelinking=no
14821
14822	# Test if we are trying to use run time linking or normal
14823	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14824	# need to do runtime linking.
14825	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14826	  for ld_flag in $LDFLAGS; do
14827  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14828  	    aix_use_runtimelinking=yes
14829  	    break
14830  	  fi
14831	  done
14832	  ;;
14833	esac
14834
14835	exp_sym_flag='-bexport'
14836	no_entry_flag='-bnoentry'
14837      fi
14838
14839      # When large executables or shared objects are built, AIX ld can
14840      # have problems creating the table of contents.  If linking a library
14841      # or program results in "error TOC overflow" add -mminimal-toc to
14842      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14843      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14844
14845      archive_cmds_F77=''
14846      hardcode_direct_F77=yes
14847      hardcode_libdir_separator_F77=':'
14848      link_all_deplibs_F77=yes
14849
14850      if test "$GCC" = yes; then
14851	case $host_os in aix4.[012]|aix4.[012].*)
14852	# We only want to do this on AIX 4.2 and lower, the check
14853	# below for broken collect2 doesn't work under 4.3+
14854	  collect2name=`${CC} -print-prog-name=collect2`
14855	  if test -f "$collect2name" && \
14856  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14857	  then
14858  	  # We have reworked collect2
14859  	  :
14860	  else
14861  	  # We have old collect2
14862  	  hardcode_direct_F77=unsupported
14863  	  # It fails to find uninstalled libraries when the uninstalled
14864  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14865  	  # to unsupported forces relinking
14866  	  hardcode_minus_L_F77=yes
14867  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14868  	  hardcode_libdir_separator_F77=
14869	  fi
14870	  ;;
14871	esac
14872	shared_flag='-shared'
14873	if test "$aix_use_runtimelinking" = yes; then
14874	  shared_flag="$shared_flag "'${wl}-G'
14875	fi
14876      else
14877	# not using gcc
14878	if test "$host_cpu" = ia64; then
14879  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14880  	# chokes on -Wl,-G. The following line is correct:
14881	  shared_flag='-G'
14882	else
14883	  if test "$aix_use_runtimelinking" = yes; then
14884	    shared_flag='${wl}-G'
14885	  else
14886	    shared_flag='${wl}-bM:SRE'
14887	  fi
14888	fi
14889      fi
14890
14891      # It seems that -bexpall does not export symbols beginning with
14892      # underscore (_), so it is better to generate a list of symbols to export.
14893      always_export_symbols_F77=yes
14894      if test "$aix_use_runtimelinking" = yes; then
14895	# Warning - without using the other runtime loading flags (-brtl),
14896	# -berok will link without error, but may produce a broken library.
14897	allow_undefined_flag_F77='-berok'
14898       # Determine the default libpath from the value encoded in an empty executable.
14899       cat >conftest.$ac_ext <<_ACEOF
14900      program main
14901
14902      end
14903_ACEOF
14904rm -f conftest.$ac_objext conftest$ac_exeext
14905if { (ac_try="$ac_link"
14906case "(($ac_try" in
14907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14908  *) ac_try_echo=$ac_try;;
14909esac
14910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14911  (eval "$ac_link") 2>conftest.er1
14912  ac_status=$?
14913  grep -v '^ *+' conftest.er1 >conftest.err
14914  rm -f conftest.er1
14915  cat conftest.err >&5
14916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917  (exit $ac_status); } && {
14918	 test -z "$ac_f77_werror_flag" ||
14919	 test ! -s conftest.err
14920       } && test -s conftest$ac_exeext &&
14921       $as_test_x conftest$ac_exeext; then
14922
14923lt_aix_libpath_sed='
14924    /Import File Strings/,/^$/ {
14925	/^0/ {
14926	    s/^0  *\(.*\)$/\1/
14927	    p
14928	}
14929    }'
14930aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14931# Check for a 64-bit object if we didn't find anything.
14932if test -z "$aix_libpath"; then
14933  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14934fi
14935else
14936  echo "$as_me: failed program was:" >&5
14937sed 's/^/| /' conftest.$ac_ext >&5
14938
14939
14940fi
14941
14942rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14943      conftest$ac_exeext conftest.$ac_ext
14944if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14945
14946       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14947	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"
14948       else
14949	if test "$host_cpu" = ia64; then
14950	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14951	  allow_undefined_flag_F77="-z nodefs"
14952	  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"
14953	else
14954	 # Determine the default libpath from the value encoded in an empty executable.
14955	 cat >conftest.$ac_ext <<_ACEOF
14956      program main
14957
14958      end
14959_ACEOF
14960rm -f conftest.$ac_objext conftest$ac_exeext
14961if { (ac_try="$ac_link"
14962case "(($ac_try" in
14963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964  *) ac_try_echo=$ac_try;;
14965esac
14966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967  (eval "$ac_link") 2>conftest.er1
14968  ac_status=$?
14969  grep -v '^ *+' conftest.er1 >conftest.err
14970  rm -f conftest.er1
14971  cat conftest.err >&5
14972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973  (exit $ac_status); } && {
14974	 test -z "$ac_f77_werror_flag" ||
14975	 test ! -s conftest.err
14976       } && test -s conftest$ac_exeext &&
14977       $as_test_x conftest$ac_exeext; then
14978
14979lt_aix_libpath_sed='
14980    /Import File Strings/,/^$/ {
14981	/^0/ {
14982	    s/^0  *\(.*\)$/\1/
14983	    p
14984	}
14985    }'
14986aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14987# Check for a 64-bit object if we didn't find anything.
14988if test -z "$aix_libpath"; then
14989  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14990fi
14991else
14992  echo "$as_me: failed program was:" >&5
14993sed 's/^/| /' conftest.$ac_ext >&5
14994
14995
14996fi
14997
14998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14999      conftest$ac_exeext conftest.$ac_ext
15000if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15001
15002	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15003	  # Warning - without using the other run time loading flags,
15004	  # -berok will link without error, but may produce a broken library.
15005	  no_undefined_flag_F77=' ${wl}-bernotok'
15006	  allow_undefined_flag_F77=' ${wl}-berok'
15007	  # Exported symbols can be pulled into shared objects from archives
15008	  whole_archive_flag_spec_F77='$convenience'
15009	  archive_cmds_need_lc_F77=yes
15010	  # This is similar to how AIX traditionally builds its shared libraries.
15011	  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'
15012	fi
15013      fi
15014      ;;
15015
15016    amigaos*)
15017      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)'
15018      hardcode_libdir_flag_spec_F77='-L$libdir'
15019      hardcode_minus_L_F77=yes
15020      # see comment about different semantics on the GNU ld section
15021      ld_shlibs_F77=no
15022      ;;
15023
15024    bsdi[45]*)
15025      export_dynamic_flag_spec_F77=-rdynamic
15026      ;;
15027
15028    cygwin* | mingw* | pw32*)
15029      # When not using gcc, we currently assume that we are using
15030      # Microsoft Visual C++.
15031      # hardcode_libdir_flag_spec is actually meaningless, as there is
15032      # no search path for DLLs.
15033      hardcode_libdir_flag_spec_F77=' '
15034      allow_undefined_flag_F77=unsupported
15035      # Tell ltmain to make .lib files, not .a files.
15036      libext=lib
15037      # Tell ltmain to make .dll files, not .so files.
15038      shrext_cmds=".dll"
15039      # FIXME: Setting linknames here is a bad hack.
15040      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15041      # The linker will automatically build a .lib file if we build a DLL.
15042      old_archive_From_new_cmds_F77='true'
15043      # FIXME: Should let the user specify the lib program.
15044      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15045      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15046      enable_shared_with_static_runtimes_F77=yes
15047      ;;
15048
15049    darwin* | rhapsody*)
15050      case $host_os in
15051        rhapsody* | darwin1.[012])
15052         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15053         ;;
15054       *) # Darwin 1.3 on
15055         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15056           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15057         else
15058           case ${MACOSX_DEPLOYMENT_TARGET} in
15059             10.[012])
15060               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15061               ;;
15062             10.*)
15063               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15064               ;;
15065           esac
15066         fi
15067         ;;
15068      esac
15069      archive_cmds_need_lc_F77=no
15070      hardcode_direct_F77=no
15071      hardcode_automatic_F77=yes
15072      hardcode_shlibpath_var_F77=unsupported
15073      whole_archive_flag_spec_F77=''
15074      link_all_deplibs_F77=yes
15075    if test "$GCC" = yes ; then
15076    	output_verbose_link_cmd='echo'
15077        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15078        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15079        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15080        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15081    else
15082      case $cc_basename in
15083        xlc*)
15084         output_verbose_link_cmd='echo'
15085         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15086         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15087          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15088         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15089          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}'
15090          ;;
15091       *)
15092         ld_shlibs_F77=no
15093          ;;
15094      esac
15095    fi
15096      ;;
15097
15098    dgux*)
15099      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15100      hardcode_libdir_flag_spec_F77='-L$libdir'
15101      hardcode_shlibpath_var_F77=no
15102      ;;
15103
15104    freebsd1*)
15105      ld_shlibs_F77=no
15106      ;;
15107
15108    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15109    # support.  Future versions do this automatically, but an explicit c++rt0.o
15110    # does not break anything, and helps significantly (at the cost of a little
15111    # extra space).
15112    freebsd2.2*)
15113      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15114      hardcode_libdir_flag_spec_F77='-R$libdir'
15115      hardcode_direct_F77=yes
15116      hardcode_shlibpath_var_F77=no
15117      ;;
15118
15119    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15120    freebsd2*)
15121      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15122      hardcode_direct_F77=yes
15123      hardcode_minus_L_F77=yes
15124      hardcode_shlibpath_var_F77=no
15125      ;;
15126
15127    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15128    freebsd* | dragonfly*)
15129      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15130      hardcode_libdir_flag_spec_F77='-R$libdir'
15131      hardcode_direct_F77=yes
15132      hardcode_shlibpath_var_F77=no
15133      ;;
15134
15135    hpux9*)
15136      if test "$GCC" = yes; then
15137	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'
15138      else
15139	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'
15140      fi
15141      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15142      hardcode_libdir_separator_F77=:
15143      hardcode_direct_F77=yes
15144
15145      # hardcode_minus_L: Not really in the search PATH,
15146      # but as the default location of the library.
15147      hardcode_minus_L_F77=yes
15148      export_dynamic_flag_spec_F77='${wl}-E'
15149      ;;
15150
15151    hpux10*)
15152      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15153	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15154      else
15155	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15156      fi
15157      if test "$with_gnu_ld" = no; then
15158	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15159	hardcode_libdir_separator_F77=:
15160
15161	hardcode_direct_F77=yes
15162	export_dynamic_flag_spec_F77='${wl}-E'
15163
15164	# hardcode_minus_L: Not really in the search PATH,
15165	# but as the default location of the library.
15166	hardcode_minus_L_F77=yes
15167      fi
15168      ;;
15169
15170    hpux11*)
15171      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15172	case $host_cpu in
15173	hppa*64*)
15174	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15175	  ;;
15176	ia64*)
15177	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15178	  ;;
15179	*)
15180	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15181	  ;;
15182	esac
15183      else
15184	case $host_cpu in
15185	hppa*64*)
15186	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15187	  ;;
15188	ia64*)
15189	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15190	  ;;
15191	*)
15192	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15193	  ;;
15194	esac
15195      fi
15196      if test "$with_gnu_ld" = no; then
15197	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15198	hardcode_libdir_separator_F77=:
15199
15200	case $host_cpu in
15201	hppa*64*|ia64*)
15202	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15203	  hardcode_direct_F77=no
15204	  hardcode_shlibpath_var_F77=no
15205	  ;;
15206	*)
15207	  hardcode_direct_F77=yes
15208	  export_dynamic_flag_spec_F77='${wl}-E'
15209
15210	  # hardcode_minus_L: Not really in the search PATH,
15211	  # but as the default location of the library.
15212	  hardcode_minus_L_F77=yes
15213	  ;;
15214	esac
15215      fi
15216      ;;
15217
15218    irix5* | irix6* | nonstopux*)
15219      if test "$GCC" = yes; then
15220	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'
15221      else
15222	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'
15223	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15224      fi
15225      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15226      hardcode_libdir_separator_F77=:
15227      link_all_deplibs_F77=yes
15228      ;;
15229
15230    netbsd* | netbsdelf*-gnu)
15231      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15232	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15233      else
15234	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15235      fi
15236      hardcode_libdir_flag_spec_F77='-R$libdir'
15237      hardcode_direct_F77=yes
15238      hardcode_shlibpath_var_F77=no
15239      ;;
15240
15241    newsos6)
15242      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15243      hardcode_direct_F77=yes
15244      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15245      hardcode_libdir_separator_F77=:
15246      hardcode_shlibpath_var_F77=no
15247      ;;
15248
15249    openbsd*)
15250      if test -f /usr/libexec/ld.so; then
15251	hardcode_direct_F77=yes
15252	hardcode_shlibpath_var_F77=no
15253	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15254	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15255	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15256	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15257	  export_dynamic_flag_spec_F77='${wl}-E'
15258	else
15259	  case $host_os in
15260	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15261	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15262	     hardcode_libdir_flag_spec_F77='-R$libdir'
15263	     ;;
15264	   *)
15265	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15266	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15267	     ;;
15268	  esac
15269        fi
15270      else
15271	ld_shlibs_F77=no
15272      fi
15273      ;;
15274
15275    os2*)
15276      hardcode_libdir_flag_spec_F77='-L$libdir'
15277      hardcode_minus_L_F77=yes
15278      allow_undefined_flag_F77=unsupported
15279      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'
15280      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15281      ;;
15282
15283    osf3*)
15284      if test "$GCC" = yes; then
15285	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15286	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'
15287      else
15288	allow_undefined_flag_F77=' -expect_unresolved \*'
15289	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'
15290      fi
15291      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15292      hardcode_libdir_separator_F77=:
15293      ;;
15294
15295    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15296      if test "$GCC" = yes; then
15297	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15298	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'
15299	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15300      else
15301	allow_undefined_flag_F77=' -expect_unresolved \*'
15302	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'
15303	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~
15304	$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'
15305
15306	# Both c and cxx compiler support -rpath directly
15307	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15308      fi
15309      hardcode_libdir_separator_F77=:
15310      ;;
15311
15312    solaris*)
15313      no_undefined_flag_F77=' -z text'
15314      if test "$GCC" = yes; then
15315	wlarc='${wl}'
15316	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15317	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15318	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15319      else
15320	wlarc=''
15321	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15322	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15323  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15324      fi
15325      hardcode_libdir_flag_spec_F77='-R$libdir'
15326      hardcode_shlibpath_var_F77=no
15327      case $host_os in
15328      solaris2.[0-5] | solaris2.[0-5].*) ;;
15329      *)
15330	# The compiler driver will combine and reorder linker options,
15331	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15332	# but is careful enough not to reorder.
15333 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15334	if test "$GCC" = yes; then
15335	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15336	else
15337	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15338	fi
15339	;;
15340      esac
15341      link_all_deplibs_F77=yes
15342      ;;
15343
15344    sunos4*)
15345      if test "x$host_vendor" = xsequent; then
15346	# Use $CC to link under sequent, because it throws in some extra .o
15347	# files that make .init and .fini sections work.
15348	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15349      else
15350	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15351      fi
15352      hardcode_libdir_flag_spec_F77='-L$libdir'
15353      hardcode_direct_F77=yes
15354      hardcode_minus_L_F77=yes
15355      hardcode_shlibpath_var_F77=no
15356      ;;
15357
15358    sysv4)
15359      case $host_vendor in
15360	sni)
15361	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15362	  hardcode_direct_F77=yes # is this really true???
15363	;;
15364	siemens)
15365	  ## LD is ld it makes a PLAMLIB
15366	  ## CC just makes a GrossModule.
15367	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15368	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15369	  hardcode_direct_F77=no
15370        ;;
15371	motorola)
15372	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15373	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15374	;;
15375      esac
15376      runpath_var='LD_RUN_PATH'
15377      hardcode_shlibpath_var_F77=no
15378      ;;
15379
15380    sysv4.3*)
15381      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15382      hardcode_shlibpath_var_F77=no
15383      export_dynamic_flag_spec_F77='-Bexport'
15384      ;;
15385
15386    sysv4*MP*)
15387      if test -d /usr/nec; then
15388	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15389	hardcode_shlibpath_var_F77=no
15390	runpath_var=LD_RUN_PATH
15391	hardcode_runpath_var=yes
15392	ld_shlibs_F77=yes
15393      fi
15394      ;;
15395
15396    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15397      no_undefined_flag_F77='${wl}-z,text'
15398      archive_cmds_need_lc_F77=no
15399      hardcode_shlibpath_var_F77=no
15400      runpath_var='LD_RUN_PATH'
15401
15402      if test "$GCC" = yes; then
15403	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15404	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15405      else
15406	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15407	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15408      fi
15409      ;;
15410
15411    sysv5* | sco3.2v5* | sco5v6*)
15412      # Note: We can NOT use -z defs as we might desire, because we do not
15413      # link with -lc, and that would cause any symbols used from libc to
15414      # always be unresolved, which means just about no library would
15415      # ever link correctly.  If we're not using GNU ld we use -z text
15416      # though, which does catch some bad symbols but isn't as heavy-handed
15417      # as -z defs.
15418      no_undefined_flag_F77='${wl}-z,text'
15419      allow_undefined_flag_F77='${wl}-z,nodefs'
15420      archive_cmds_need_lc_F77=no
15421      hardcode_shlibpath_var_F77=no
15422      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15423      hardcode_libdir_separator_F77=':'
15424      link_all_deplibs_F77=yes
15425      export_dynamic_flag_spec_F77='${wl}-Bexport'
15426      runpath_var='LD_RUN_PATH'
15427
15428      if test "$GCC" = yes; then
15429	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15430	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15431      else
15432	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15433	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15434      fi
15435      ;;
15436
15437    uts4*)
15438      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15439      hardcode_libdir_flag_spec_F77='-L$libdir'
15440      hardcode_shlibpath_var_F77=no
15441      ;;
15442
15443    *)
15444      ld_shlibs_F77=no
15445      ;;
15446    esac
15447  fi
15448
15449{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15450echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15451test "$ld_shlibs_F77" = no && can_build_shared=no
15452
15453#
15454# Do we need to explicitly link libc?
15455#
15456case "x$archive_cmds_need_lc_F77" in
15457x|xyes)
15458  # Assume -lc should be added
15459  archive_cmds_need_lc_F77=yes
15460
15461  if test "$enable_shared" = yes && test "$GCC" = yes; then
15462    case $archive_cmds_F77 in
15463    *'~'*)
15464      # FIXME: we may have to deal with multi-command sequences.
15465      ;;
15466    '$CC '*)
15467      # Test whether the compiler implicitly links with -lc since on some
15468      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15469      # to ld, don't add -lc before -lgcc.
15470      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15471echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15472      $rm conftest*
15473      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15474
15475      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15476  (eval $ac_compile) 2>&5
15477  ac_status=$?
15478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479  (exit $ac_status); } 2>conftest.err; then
15480        soname=conftest
15481        lib=conftest
15482        libobjs=conftest.$ac_objext
15483        deplibs=
15484        wl=$lt_prog_compiler_wl_F77
15485	pic_flag=$lt_prog_compiler_pic_F77
15486        compiler_flags=-v
15487        linker_flags=-v
15488        verstring=
15489        output_objdir=.
15490        libname=conftest
15491        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15492        allow_undefined_flag_F77=
15493        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15494  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15495  ac_status=$?
15496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497  (exit $ac_status); }
15498        then
15499	  archive_cmds_need_lc_F77=no
15500        else
15501	  archive_cmds_need_lc_F77=yes
15502        fi
15503        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15504      else
15505        cat conftest.err 1>&5
15506      fi
15507      $rm conftest*
15508      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15509echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15510      ;;
15511    esac
15512  fi
15513  ;;
15514esac
15515
15516{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15517echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15518library_names_spec=
15519libname_spec='lib$name'
15520soname_spec=
15521shrext_cmds=".so"
15522postinstall_cmds=
15523postuninstall_cmds=
15524finish_cmds=
15525finish_eval=
15526shlibpath_var=
15527shlibpath_overrides_runpath=unknown
15528version_type=none
15529dynamic_linker="$host_os ld.so"
15530sys_lib_dlsearch_path_spec="/lib /usr/lib"
15531
15532need_lib_prefix=unknown
15533hardcode_into_libs=no
15534
15535# when you set need_version to no, make sure it does not cause -set_version
15536# flags to be left without arguments
15537need_version=unknown
15538
15539case $host_os in
15540aix3*)
15541  version_type=linux
15542  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15543  shlibpath_var=LIBPATH
15544
15545  # AIX 3 has no versioning support, so we append a major version to the name.
15546  soname_spec='${libname}${release}${shared_ext}$major'
15547  ;;
15548
15549aix[4-9]*)
15550  version_type=linux
15551  need_lib_prefix=no
15552  need_version=no
15553  hardcode_into_libs=yes
15554  if test "$host_cpu" = ia64; then
15555    # AIX 5 supports IA64
15556    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15557    shlibpath_var=LD_LIBRARY_PATH
15558  else
15559    # With GCC up to 2.95.x, collect2 would create an import file
15560    # for dependence libraries.  The import file would start with
15561    # the line `#! .'.  This would cause the generated library to
15562    # depend on `.', always an invalid library.  This was fixed in
15563    # development snapshots of GCC prior to 3.0.
15564    case $host_os in
15565      aix4 | aix4.[01] | aix4.[01].*)
15566      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15567	   echo ' yes '
15568	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15569	:
15570      else
15571	can_build_shared=no
15572      fi
15573      ;;
15574    esac
15575    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15576    # soname into executable. Probably we can add versioning support to
15577    # collect2, so additional links can be useful in future.
15578    if test "$aix_use_runtimelinking" = yes; then
15579      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15580      # instead of lib<name>.a to let people know that these are not
15581      # typical AIX shared libraries.
15582      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15583    else
15584      # We preserve .a as extension for shared libraries through AIX4.2
15585      # and later when we are not doing run time linking.
15586      library_names_spec='${libname}${release}.a $libname.a'
15587      soname_spec='${libname}${release}${shared_ext}$major'
15588    fi
15589    shlibpath_var=LIBPATH
15590  fi
15591  ;;
15592
15593amigaos*)
15594  library_names_spec='$libname.ixlibrary $libname.a'
15595  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15596  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'
15597  ;;
15598
15599beos*)
15600  library_names_spec='${libname}${shared_ext}'
15601  dynamic_linker="$host_os ld.so"
15602  shlibpath_var=LIBRARY_PATH
15603  ;;
15604
15605bsdi[45]*)
15606  version_type=linux
15607  need_version=no
15608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15609  soname_spec='${libname}${release}${shared_ext}$major'
15610  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15611  shlibpath_var=LD_LIBRARY_PATH
15612  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15613  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15614  # the default ld.so.conf also contains /usr/contrib/lib and
15615  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15616  # libtool to hard-code these into programs
15617  ;;
15618
15619cygwin* | mingw* | pw32*)
15620  version_type=windows
15621  shrext_cmds=".dll"
15622  need_version=no
15623  need_lib_prefix=no
15624
15625  case $GCC,$host_os in
15626  yes,cygwin* | yes,mingw* | yes,pw32*)
15627    library_names_spec='$libname.dll.a'
15628    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15629    postinstall_cmds='base_file=`basename \${file}`~
15630      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15631      dldir=$destdir/`dirname \$dlpath`~
15632      test -d \$dldir || mkdir -p \$dldir~
15633      $install_prog $dir/$dlname \$dldir/$dlname~
15634      chmod a+x \$dldir/$dlname'
15635    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15636      dlpath=$dir/\$dldll~
15637       $rm \$dlpath'
15638    shlibpath_overrides_runpath=yes
15639
15640    case $host_os in
15641    cygwin*)
15642      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15643      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15644      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15645      ;;
15646    mingw*)
15647      # MinGW DLLs use traditional 'lib' prefix
15648      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15649      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15650      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15651        # It is most probably a Windows format PATH printed by
15652        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15653        # path with ; separators, and with drive letters. We can handle the
15654        # drive letters (cygwin fileutils understands them), so leave them,
15655        # especially as we might pass files found there to a mingw objdump,
15656        # which wouldn't understand a cygwinified path. Ahh.
15657        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15658      else
15659        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15660      fi
15661      ;;
15662    pw32*)
15663      # pw32 DLLs use 'pw' prefix rather than 'lib'
15664      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15665      ;;
15666    esac
15667    ;;
15668
15669  *)
15670    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15671    ;;
15672  esac
15673  dynamic_linker='Win32 ld.exe'
15674  # FIXME: first we should search . and the directory the executable is in
15675  shlibpath_var=PATH
15676  ;;
15677
15678darwin* | rhapsody*)
15679  dynamic_linker="$host_os dyld"
15680  version_type=darwin
15681  need_lib_prefix=no
15682  need_version=no
15683  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15684  soname_spec='${libname}${release}${major}$shared_ext'
15685  shlibpath_overrides_runpath=yes
15686  shlibpath_var=DYLD_LIBRARY_PATH
15687  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15688
15689  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15690  ;;
15691
15692dgux*)
15693  version_type=linux
15694  need_lib_prefix=no
15695  need_version=no
15696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15697  soname_spec='${libname}${release}${shared_ext}$major'
15698  shlibpath_var=LD_LIBRARY_PATH
15699  ;;
15700
15701freebsd1*)
15702  dynamic_linker=no
15703  ;;
15704
15705freebsd* | dragonfly*)
15706  # DragonFly does not have aout.  When/if they implement a new
15707  # versioning mechanism, adjust this.
15708  if test -x /usr/bin/objformat; then
15709    objformat=`/usr/bin/objformat`
15710  else
15711    case $host_os in
15712    freebsd[123]*) objformat=aout ;;
15713    *) objformat=elf ;;
15714    esac
15715  fi
15716  version_type=freebsd-$objformat
15717  case $version_type in
15718    freebsd-elf*)
15719      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15720      need_version=no
15721      need_lib_prefix=no
15722      ;;
15723    freebsd-*)
15724      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15725      need_version=yes
15726      ;;
15727  esac
15728  shlibpath_var=LD_LIBRARY_PATH
15729  case $host_os in
15730  freebsd2*)
15731    shlibpath_overrides_runpath=yes
15732    ;;
15733  freebsd3.[01]* | freebsdelf3.[01]*)
15734    shlibpath_overrides_runpath=yes
15735    hardcode_into_libs=yes
15736    ;;
15737  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15738  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15739    shlibpath_overrides_runpath=no
15740    hardcode_into_libs=yes
15741    ;;
15742  *) # from 4.6 on, and DragonFly
15743    shlibpath_overrides_runpath=yes
15744    hardcode_into_libs=yes
15745    ;;
15746  esac
15747  ;;
15748
15749gnu*)
15750  version_type=linux
15751  need_lib_prefix=no
15752  need_version=no
15753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15754  soname_spec='${libname}${release}${shared_ext}$major'
15755  shlibpath_var=LD_LIBRARY_PATH
15756  hardcode_into_libs=yes
15757  ;;
15758
15759hpux9* | hpux10* | hpux11*)
15760  # Give a soname corresponding to the major version so that dld.sl refuses to
15761  # link against other versions.
15762  version_type=sunos
15763  need_lib_prefix=no
15764  need_version=no
15765  case $host_cpu in
15766  ia64*)
15767    shrext_cmds='.so'
15768    hardcode_into_libs=yes
15769    dynamic_linker="$host_os dld.so"
15770    shlibpath_var=LD_LIBRARY_PATH
15771    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15772    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15773    soname_spec='${libname}${release}${shared_ext}$major'
15774    if test "X$HPUX_IA64_MODE" = X32; then
15775      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15776    else
15777      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15778    fi
15779    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15780    ;;
15781   hppa*64*)
15782     shrext_cmds='.sl'
15783     hardcode_into_libs=yes
15784     dynamic_linker="$host_os dld.sl"
15785     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15786     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15787     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788     soname_spec='${libname}${release}${shared_ext}$major'
15789     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15790     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15791     ;;
15792   *)
15793    shrext_cmds='.sl'
15794    dynamic_linker="$host_os dld.sl"
15795    shlibpath_var=SHLIB_PATH
15796    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15797    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15798    soname_spec='${libname}${release}${shared_ext}$major'
15799    ;;
15800  esac
15801  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15802  postinstall_cmds='chmod 555 $lib'
15803  ;;
15804
15805interix[3-9]*)
15806  version_type=linux
15807  need_lib_prefix=no
15808  need_version=no
15809  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15810  soname_spec='${libname}${release}${shared_ext}$major'
15811  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15812  shlibpath_var=LD_LIBRARY_PATH
15813  shlibpath_overrides_runpath=no
15814  hardcode_into_libs=yes
15815  ;;
15816
15817irix5* | irix6* | nonstopux*)
15818  case $host_os in
15819    nonstopux*) version_type=nonstopux ;;
15820    *)
15821	if test "$lt_cv_prog_gnu_ld" = yes; then
15822		version_type=linux
15823	else
15824		version_type=irix
15825	fi ;;
15826  esac
15827  need_lib_prefix=no
15828  need_version=no
15829  soname_spec='${libname}${release}${shared_ext}$major'
15830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15831  case $host_os in
15832  irix5* | nonstopux*)
15833    libsuff= shlibsuff=
15834    ;;
15835  *)
15836    case $LD in # libtool.m4 will add one of these switches to LD
15837    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15838      libsuff= shlibsuff= libmagic=32-bit;;
15839    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15840      libsuff=32 shlibsuff=N32 libmagic=N32;;
15841    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15842      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15843    *) libsuff= shlibsuff= libmagic=never-match;;
15844    esac
15845    ;;
15846  esac
15847  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15848  shlibpath_overrides_runpath=no
15849  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15850  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15851  hardcode_into_libs=yes
15852  ;;
15853
15854# No shared lib support for Linux oldld, aout, or coff.
15855linux*oldld* | linux*aout* | linux*coff*)
15856  dynamic_linker=no
15857  ;;
15858
15859# This must be Linux ELF.
15860linux* | k*bsd*-gnu)
15861  version_type=linux
15862  need_lib_prefix=no
15863  need_version=no
15864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15865  soname_spec='${libname}${release}${shared_ext}$major'
15866  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15867  shlibpath_var=LD_LIBRARY_PATH
15868  shlibpath_overrides_runpath=no
15869  # This implies no fast_install, which is unacceptable.
15870  # Some rework will be needed to allow for fast_install
15871  # before this can be enabled.
15872  hardcode_into_libs=yes
15873
15874  # Append ld.so.conf contents to the search path
15875  if test -f /etc/ld.so.conf; then
15876    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15877    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15878  fi
15879
15880  # We used to test for /lib/ld.so.1 and disable shared libraries on
15881  # powerpc, because MkLinux only supported shared libraries with the
15882  # GNU dynamic linker.  Since this was broken with cross compilers,
15883  # most powerpc-linux boxes support dynamic linking these days and
15884  # people can always --disable-shared, the test was removed, and we
15885  # assume the GNU/Linux dynamic linker is in use.
15886  dynamic_linker='GNU/Linux ld.so'
15887  ;;
15888
15889netbsdelf*-gnu)
15890  version_type=linux
15891  need_lib_prefix=no
15892  need_version=no
15893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15894  soname_spec='${libname}${release}${shared_ext}$major'
15895  shlibpath_var=LD_LIBRARY_PATH
15896  shlibpath_overrides_runpath=no
15897  hardcode_into_libs=yes
15898  dynamic_linker='NetBSD ld.elf_so'
15899  ;;
15900
15901netbsd*)
15902  version_type=sunos
15903  need_lib_prefix=no
15904  need_version=no
15905  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15906    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15907    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15908    dynamic_linker='NetBSD (a.out) ld.so'
15909  else
15910    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15911    soname_spec='${libname}${release}${shared_ext}$major'
15912    dynamic_linker='NetBSD ld.elf_so'
15913  fi
15914  shlibpath_var=LD_LIBRARY_PATH
15915  shlibpath_overrides_runpath=yes
15916  hardcode_into_libs=yes
15917  ;;
15918
15919newsos6)
15920  version_type=linux
15921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15922  shlibpath_var=LD_LIBRARY_PATH
15923  shlibpath_overrides_runpath=yes
15924  ;;
15925
15926nto-qnx*)
15927  version_type=linux
15928  need_lib_prefix=no
15929  need_version=no
15930  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15931  soname_spec='${libname}${release}${shared_ext}$major'
15932  shlibpath_var=LD_LIBRARY_PATH
15933  shlibpath_overrides_runpath=yes
15934  ;;
15935
15936openbsd*)
15937  version_type=sunos
15938  sys_lib_dlsearch_path_spec="/usr/lib"
15939  need_lib_prefix=no
15940  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15941  case $host_os in
15942    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15943    *)                         need_version=no  ;;
15944  esac
15945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15946  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15947  shlibpath_var=LD_LIBRARY_PATH
15948  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15949    case $host_os in
15950      openbsd2.[89] | openbsd2.[89].*)
15951	shlibpath_overrides_runpath=no
15952	;;
15953      *)
15954	shlibpath_overrides_runpath=yes
15955	;;
15956      esac
15957  else
15958    shlibpath_overrides_runpath=yes
15959  fi
15960  ;;
15961
15962os2*)
15963  libname_spec='$name'
15964  shrext_cmds=".dll"
15965  need_lib_prefix=no
15966  library_names_spec='$libname${shared_ext} $libname.a'
15967  dynamic_linker='OS/2 ld.exe'
15968  shlibpath_var=LIBPATH
15969  ;;
15970
15971osf3* | osf4* | osf5*)
15972  version_type=osf
15973  need_lib_prefix=no
15974  need_version=no
15975  soname_spec='${libname}${release}${shared_ext}$major'
15976  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15977  shlibpath_var=LD_LIBRARY_PATH
15978  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15979  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15980  ;;
15981
15982rdos*)
15983  dynamic_linker=no
15984  ;;
15985
15986solaris*)
15987  version_type=linux
15988  need_lib_prefix=no
15989  need_version=no
15990  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15991  soname_spec='${libname}${release}${shared_ext}$major'
15992  shlibpath_var=LD_LIBRARY_PATH
15993  shlibpath_overrides_runpath=yes
15994  hardcode_into_libs=yes
15995  # ldd complains unless libraries are executable
15996  postinstall_cmds='chmod +x $lib'
15997  ;;
15998
15999sunos4*)
16000  version_type=sunos
16001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16002  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16003  shlibpath_var=LD_LIBRARY_PATH
16004  shlibpath_overrides_runpath=yes
16005  if test "$with_gnu_ld" = yes; then
16006    need_lib_prefix=no
16007  fi
16008  need_version=yes
16009  ;;
16010
16011sysv4 | sysv4.3*)
16012  version_type=linux
16013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16014  soname_spec='${libname}${release}${shared_ext}$major'
16015  shlibpath_var=LD_LIBRARY_PATH
16016  case $host_vendor in
16017    sni)
16018      shlibpath_overrides_runpath=no
16019      need_lib_prefix=no
16020      export_dynamic_flag_spec='${wl}-Blargedynsym'
16021      runpath_var=LD_RUN_PATH
16022      ;;
16023    siemens)
16024      need_lib_prefix=no
16025      ;;
16026    motorola)
16027      need_lib_prefix=no
16028      need_version=no
16029      shlibpath_overrides_runpath=no
16030      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16031      ;;
16032  esac
16033  ;;
16034
16035sysv4*MP*)
16036  if test -d /usr/nec ;then
16037    version_type=linux
16038    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16039    soname_spec='$libname${shared_ext}.$major'
16040    shlibpath_var=LD_LIBRARY_PATH
16041  fi
16042  ;;
16043
16044sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16045  version_type=freebsd-elf
16046  need_lib_prefix=no
16047  need_version=no
16048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16049  soname_spec='${libname}${release}${shared_ext}$major'
16050  shlibpath_var=LD_LIBRARY_PATH
16051  hardcode_into_libs=yes
16052  if test "$with_gnu_ld" = yes; then
16053    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16054    shlibpath_overrides_runpath=no
16055  else
16056    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16057    shlibpath_overrides_runpath=yes
16058    case $host_os in
16059      sco3.2v5*)
16060        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16061	;;
16062    esac
16063  fi
16064  sys_lib_dlsearch_path_spec='/usr/lib'
16065  ;;
16066
16067uts4*)
16068  version_type=linux
16069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16070  soname_spec='${libname}${release}${shared_ext}$major'
16071  shlibpath_var=LD_LIBRARY_PATH
16072  ;;
16073
16074*)
16075  dynamic_linker=no
16076  ;;
16077esac
16078{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16079echo "${ECHO_T}$dynamic_linker" >&6; }
16080test "$dynamic_linker" = no && can_build_shared=no
16081
16082if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16083  echo $ECHO_N "(cached) $ECHO_C" >&6
16084else
16085  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16086fi
16087
16088sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16089if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16090  echo $ECHO_N "(cached) $ECHO_C" >&6
16091else
16092  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16093fi
16094
16095sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16096
16097variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16098if test "$GCC" = yes; then
16099  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16100fi
16101
16102{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16103echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16104hardcode_action_F77=
16105if test -n "$hardcode_libdir_flag_spec_F77" || \
16106   test -n "$runpath_var_F77" || \
16107   test "X$hardcode_automatic_F77" = "Xyes" ; then
16108
16109  # We can hardcode non-existant directories.
16110  if test "$hardcode_direct_F77" != no &&
16111     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16112     # have to relink, otherwise we might link with an installed library
16113     # when we should be linking with a yet-to-be-installed one
16114     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16115     test "$hardcode_minus_L_F77" != no; then
16116    # Linking always hardcodes the temporary library directory.
16117    hardcode_action_F77=relink
16118  else
16119    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16120    hardcode_action_F77=immediate
16121  fi
16122else
16123  # We cannot hardcode anything, or else we can only hardcode existing
16124  # directories.
16125  hardcode_action_F77=unsupported
16126fi
16127{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16128echo "${ECHO_T}$hardcode_action_F77" >&6; }
16129
16130if test "$hardcode_action_F77" = relink; then
16131  # Fast installation is not supported
16132  enable_fast_install=no
16133elif test "$shlibpath_overrides_runpath" = yes ||
16134     test "$enable_shared" = no; then
16135  # Fast installation is not necessary
16136  enable_fast_install=needless
16137fi
16138
16139
16140# The else clause should only fire when bootstrapping the
16141# libtool distribution, otherwise you forgot to ship ltmain.sh
16142# with your package, and you will get complaints that there are
16143# no rules to generate ltmain.sh.
16144if test -f "$ltmain"; then
16145  # See if we are running on zsh, and set the options which allow our commands through
16146  # without removal of \ escapes.
16147  if test -n "${ZSH_VERSION+set}" ; then
16148    setopt NO_GLOB_SUBST
16149  fi
16150  # Now quote all the things that may contain metacharacters while being
16151  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16152  # variables and quote the copies for generation of the libtool script.
16153  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16154    SED SHELL STRIP \
16155    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16156    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16157    deplibs_check_method reload_flag reload_cmds need_locks \
16158    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16159    lt_cv_sys_global_symbol_to_c_name_address \
16160    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16161    old_postinstall_cmds old_postuninstall_cmds \
16162    compiler_F77 \
16163    CC_F77 \
16164    LD_F77 \
16165    lt_prog_compiler_wl_F77 \
16166    lt_prog_compiler_pic_F77 \
16167    lt_prog_compiler_static_F77 \
16168    lt_prog_compiler_no_builtin_flag_F77 \
16169    export_dynamic_flag_spec_F77 \
16170    thread_safe_flag_spec_F77 \
16171    whole_archive_flag_spec_F77 \
16172    enable_shared_with_static_runtimes_F77 \
16173    old_archive_cmds_F77 \
16174    old_archive_from_new_cmds_F77 \
16175    predep_objects_F77 \
16176    postdep_objects_F77 \
16177    predeps_F77 \
16178    postdeps_F77 \
16179    compiler_lib_search_path_F77 \
16180    compiler_lib_search_dirs_F77 \
16181    archive_cmds_F77 \
16182    archive_expsym_cmds_F77 \
16183    postinstall_cmds_F77 \
16184    postuninstall_cmds_F77 \
16185    old_archive_from_expsyms_cmds_F77 \
16186    allow_undefined_flag_F77 \
16187    no_undefined_flag_F77 \
16188    export_symbols_cmds_F77 \
16189    hardcode_libdir_flag_spec_F77 \
16190    hardcode_libdir_flag_spec_ld_F77 \
16191    hardcode_libdir_separator_F77 \
16192    hardcode_automatic_F77 \
16193    module_cmds_F77 \
16194    module_expsym_cmds_F77 \
16195    lt_cv_prog_compiler_c_o_F77 \
16196    fix_srcfile_path_F77 \
16197    exclude_expsyms_F77 \
16198    include_expsyms_F77; do
16199
16200    case $var in
16201    old_archive_cmds_F77 | \
16202    old_archive_from_new_cmds_F77 | \
16203    archive_cmds_F77 | \
16204    archive_expsym_cmds_F77 | \
16205    module_cmds_F77 | \
16206    module_expsym_cmds_F77 | \
16207    old_archive_from_expsyms_cmds_F77 | \
16208    export_symbols_cmds_F77 | \
16209    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16210    postinstall_cmds | postuninstall_cmds | \
16211    old_postinstall_cmds | old_postuninstall_cmds | \
16212    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16213      # Double-quote double-evaled strings.
16214      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16215      ;;
16216    *)
16217      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16218      ;;
16219    esac
16220  done
16221
16222  case $lt_echo in
16223  *'\$0 --fallback-echo"')
16224    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16225    ;;
16226  esac
16227
16228cfgfile="$ofile"
16229
16230  cat <<__EOF__ >> "$cfgfile"
16231# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16232
16233# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16234
16235# Shell to use when invoking shell scripts.
16236SHELL=$lt_SHELL
16237
16238# Whether or not to build shared libraries.
16239build_libtool_libs=$enable_shared
16240
16241# Whether or not to build static libraries.
16242build_old_libs=$enable_static
16243
16244# Whether or not to add -lc for building shared libraries.
16245build_libtool_need_lc=$archive_cmds_need_lc_F77
16246
16247# Whether or not to disallow shared libs when runtime libs are static
16248allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16249
16250# Whether or not to optimize for fast installation.
16251fast_install=$enable_fast_install
16252
16253# The host system.
16254host_alias=$host_alias
16255host=$host
16256host_os=$host_os
16257
16258# The build system.
16259build_alias=$build_alias
16260build=$build
16261build_os=$build_os
16262
16263# An echo program that does not interpret backslashes.
16264echo=$lt_echo
16265
16266# The archiver.
16267AR=$lt_AR
16268AR_FLAGS=$lt_AR_FLAGS
16269
16270# A C compiler.
16271LTCC=$lt_LTCC
16272
16273# LTCC compiler flags.
16274LTCFLAGS=$lt_LTCFLAGS
16275
16276# A language-specific compiler.
16277CC=$lt_compiler_F77
16278
16279# Is the compiler the GNU C compiler?
16280with_gcc=$GCC_F77
16281
16282# An ERE matcher.
16283EGREP=$lt_EGREP
16284
16285# The linker used to build libraries.
16286LD=$lt_LD_F77
16287
16288# Whether we need hard or soft links.
16289LN_S=$lt_LN_S
16290
16291# A BSD-compatible nm program.
16292NM=$lt_NM
16293
16294# A symbol stripping program
16295STRIP=$lt_STRIP
16296
16297# Used to examine libraries when file_magic_cmd begins "file"
16298MAGIC_CMD=$MAGIC_CMD
16299
16300# Used on cygwin: DLL creation program.
16301DLLTOOL="$DLLTOOL"
16302
16303# Used on cygwin: object dumper.
16304OBJDUMP="$OBJDUMP"
16305
16306# Used on cygwin: assembler.
16307AS="$AS"
16308
16309# The name of the directory that contains temporary libtool files.
16310objdir=$objdir
16311
16312# How to create reloadable object files.
16313reload_flag=$lt_reload_flag
16314reload_cmds=$lt_reload_cmds
16315
16316# How to pass a linker flag through the compiler.
16317wl=$lt_lt_prog_compiler_wl_F77
16318
16319# Object file suffix (normally "o").
16320objext="$ac_objext"
16321
16322# Old archive suffix (normally "a").
16323libext="$libext"
16324
16325# Shared library suffix (normally ".so").
16326shrext_cmds='$shrext_cmds'
16327
16328# Executable file suffix (normally "").
16329exeext="$exeext"
16330
16331# Additional compiler flags for building library objects.
16332pic_flag=$lt_lt_prog_compiler_pic_F77
16333pic_mode=$pic_mode
16334
16335# What is the maximum length of a command?
16336max_cmd_len=$lt_cv_sys_max_cmd_len
16337
16338# Does compiler simultaneously support -c and -o options?
16339compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16340
16341# Must we lock files when doing compilation?
16342need_locks=$lt_need_locks
16343
16344# Do we need the lib prefix for modules?
16345need_lib_prefix=$need_lib_prefix
16346
16347# Do we need a version for libraries?
16348need_version=$need_version
16349
16350# Whether dlopen is supported.
16351dlopen_support=$enable_dlopen
16352
16353# Whether dlopen of programs is supported.
16354dlopen_self=$enable_dlopen_self
16355
16356# Whether dlopen of statically linked programs is supported.
16357dlopen_self_static=$enable_dlopen_self_static
16358
16359# Compiler flag to prevent dynamic linking.
16360link_static_flag=$lt_lt_prog_compiler_static_F77
16361
16362# Compiler flag to turn off builtin functions.
16363no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16364
16365# Compiler flag to allow reflexive dlopens.
16366export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16367
16368# Compiler flag to generate shared objects directly from archives.
16369whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16370
16371# Compiler flag to generate thread-safe objects.
16372thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16373
16374# Library versioning type.
16375version_type=$version_type
16376
16377# Format of library name prefix.
16378libname_spec=$lt_libname_spec
16379
16380# List of archive names.  First name is the real one, the rest are links.
16381# The last name is the one that the linker finds with -lNAME.
16382library_names_spec=$lt_library_names_spec
16383
16384# The coded name of the library, if different from the real name.
16385soname_spec=$lt_soname_spec
16386
16387# Commands used to build and install an old-style archive.
16388RANLIB=$lt_RANLIB
16389old_archive_cmds=$lt_old_archive_cmds_F77
16390old_postinstall_cmds=$lt_old_postinstall_cmds
16391old_postuninstall_cmds=$lt_old_postuninstall_cmds
16392
16393# Create an old-style archive from a shared archive.
16394old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16395
16396# Create a temporary old-style archive to link instead of a shared archive.
16397old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16398
16399# Commands used to build and install a shared archive.
16400archive_cmds=$lt_archive_cmds_F77
16401archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16402postinstall_cmds=$lt_postinstall_cmds
16403postuninstall_cmds=$lt_postuninstall_cmds
16404
16405# Commands used to build a loadable module (assumed same as above if empty)
16406module_cmds=$lt_module_cmds_F77
16407module_expsym_cmds=$lt_module_expsym_cmds_F77
16408
16409# Commands to strip libraries.
16410old_striplib=$lt_old_striplib
16411striplib=$lt_striplib
16412
16413# Dependencies to place before the objects being linked to create a
16414# shared library.
16415predep_objects=$lt_predep_objects_F77
16416
16417# Dependencies to place after the objects being linked to create a
16418# shared library.
16419postdep_objects=$lt_postdep_objects_F77
16420
16421# Dependencies to place before the objects being linked to create a
16422# shared library.
16423predeps=$lt_predeps_F77
16424
16425# Dependencies to place after the objects being linked to create a
16426# shared library.
16427postdeps=$lt_postdeps_F77
16428
16429# The directories searched by this compiler when creating a shared
16430# library
16431compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16432
16433# The library search path used internally by the compiler when linking
16434# a shared library.
16435compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16436
16437# Method to check whether dependent libraries are shared objects.
16438deplibs_check_method=$lt_deplibs_check_method
16439
16440# Command to use when deplibs_check_method == file_magic.
16441file_magic_cmd=$lt_file_magic_cmd
16442
16443# Flag that allows shared libraries with undefined symbols to be built.
16444allow_undefined_flag=$lt_allow_undefined_flag_F77
16445
16446# Flag that forces no undefined symbols.
16447no_undefined_flag=$lt_no_undefined_flag_F77
16448
16449# Commands used to finish a libtool library installation in a directory.
16450finish_cmds=$lt_finish_cmds
16451
16452# Same as above, but a single script fragment to be evaled but not shown.
16453finish_eval=$lt_finish_eval
16454
16455# Take the output of nm and produce a listing of raw symbols and C names.
16456global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16457
16458# Transform the output of nm in a proper C declaration
16459global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16460
16461# Transform the output of nm in a C name address pair
16462global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16463
16464# This is the shared library runtime path variable.
16465runpath_var=$runpath_var
16466
16467# This is the shared library path variable.
16468shlibpath_var=$shlibpath_var
16469
16470# Is shlibpath searched before the hard-coded library search path?
16471shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16472
16473# How to hardcode a shared library path into an executable.
16474hardcode_action=$hardcode_action_F77
16475
16476# Whether we should hardcode library paths into libraries.
16477hardcode_into_libs=$hardcode_into_libs
16478
16479# Flag to hardcode \$libdir into a binary during linking.
16480# This must work even if \$libdir does not exist.
16481hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16482
16483# If ld is used when linking, flag to hardcode \$libdir into
16484# a binary during linking. This must work even if \$libdir does
16485# not exist.
16486hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16487
16488# Whether we need a single -rpath flag with a separated argument.
16489hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16490
16491# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16492# resulting binary.
16493hardcode_direct=$hardcode_direct_F77
16494
16495# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16496# resulting binary.
16497hardcode_minus_L=$hardcode_minus_L_F77
16498
16499# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16500# the resulting binary.
16501hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16502
16503# Set to yes if building a shared library automatically hardcodes DIR into the library
16504# and all subsequent libraries and executables linked against it.
16505hardcode_automatic=$hardcode_automatic_F77
16506
16507# Variables whose values should be saved in libtool wrapper scripts and
16508# restored at relink time.
16509variables_saved_for_relink="$variables_saved_for_relink"
16510
16511# Whether libtool must link a program against all its dependency libraries.
16512link_all_deplibs=$link_all_deplibs_F77
16513
16514# Compile-time system search path for libraries
16515sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16516
16517# Run-time system search path for libraries
16518sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16519
16520# Fix the shell variable \$srcfile for the compiler.
16521fix_srcfile_path=$lt_fix_srcfile_path
16522
16523# Set to yes if exported symbols are required.
16524always_export_symbols=$always_export_symbols_F77
16525
16526# The commands to list exported symbols.
16527export_symbols_cmds=$lt_export_symbols_cmds_F77
16528
16529# The commands to extract the exported symbol list from a shared archive.
16530extract_expsyms_cmds=$lt_extract_expsyms_cmds
16531
16532# Symbols that should not be listed in the preloaded symbols.
16533exclude_expsyms=$lt_exclude_expsyms_F77
16534
16535# Symbols that must always be exported.
16536include_expsyms=$lt_include_expsyms_F77
16537
16538# ### END LIBTOOL TAG CONFIG: $tagname
16539
16540__EOF__
16541
16542
16543else
16544  # If there is no Makefile yet, we rely on a make rule to execute
16545  # `config.status --recheck' to rerun these tests and create the
16546  # libtool script then.
16547  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16548  if test -f "$ltmain_in"; then
16549    test -f Makefile && make "$ltmain"
16550  fi
16551fi
16552
16553
16554ac_ext=c
16555ac_cpp='$CPP $CPPFLAGS'
16556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16558ac_compiler_gnu=$ac_cv_c_compiler_gnu
16559
16560CC="$lt_save_CC"
16561
16562	else
16563	  tagname=""
16564	fi
16565	;;
16566
16567      GCJ)
16568	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16569
16570
16571# Source file extension for Java test sources.
16572ac_ext=java
16573
16574# Object file extension for compiled Java test sources.
16575objext=o
16576objext_GCJ=$objext
16577
16578# Code to be used in simple compile tests
16579lt_simple_compile_test_code="class foo {}"
16580
16581# Code to be used in simple link tests
16582lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16583
16584# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16585
16586# If no C compiler was specified, use CC.
16587LTCC=${LTCC-"$CC"}
16588
16589# If no C compiler flags were specified, use CFLAGS.
16590LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16591
16592# Allow CC to be a program name with arguments.
16593compiler=$CC
16594
16595
16596# save warnings/boilerplate of simple test code
16597ac_outfile=conftest.$ac_objext
16598echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16599eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16600_lt_compiler_boilerplate=`cat conftest.err`
16601$rm conftest*
16602
16603ac_outfile=conftest.$ac_objext
16604echo "$lt_simple_link_test_code" >conftest.$ac_ext
16605eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16606_lt_linker_boilerplate=`cat conftest.err`
16607$rm -r conftest*
16608
16609
16610# Allow CC to be a program name with arguments.
16611lt_save_CC="$CC"
16612CC=${GCJ-"gcj"}
16613compiler=$CC
16614compiler_GCJ=$CC
16615for cc_temp in $compiler""; do
16616  case $cc_temp in
16617    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16618    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16619    \-*) ;;
16620    *) break;;
16621  esac
16622done
16623cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16624
16625
16626# GCJ did not exist at the time GCC didn't implicitly link libc in.
16627archive_cmds_need_lc_GCJ=no
16628
16629old_archive_cmds_GCJ=$old_archive_cmds
16630
16631
16632lt_prog_compiler_no_builtin_flag_GCJ=
16633
16634if test "$GCC" = yes; then
16635  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16636
16637
16638{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16639echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16640if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16641  echo $ECHO_N "(cached) $ECHO_C" >&6
16642else
16643  lt_cv_prog_compiler_rtti_exceptions=no
16644  ac_outfile=conftest.$ac_objext
16645   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16646   lt_compiler_flag="-fno-rtti -fno-exceptions"
16647   # Insert the option either (1) after the last *FLAGS variable, or
16648   # (2) before a word containing "conftest.", or (3) at the end.
16649   # Note that $ac_compile itself does not contain backslashes and begins
16650   # with a dollar sign (not a hyphen), so the echo should work correctly.
16651   # The option is referenced via a variable to avoid confusing sed.
16652   lt_compile=`echo "$ac_compile" | $SED \
16653   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16654   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16655   -e 's:$: $lt_compiler_flag:'`
16656   (eval echo "\"\$as_me:16656: $lt_compile\"" >&5)
16657   (eval "$lt_compile" 2>conftest.err)
16658   ac_status=$?
16659   cat conftest.err >&5
16660   echo "$as_me:16660: \$? = $ac_status" >&5
16661   if (exit $ac_status) && test -s "$ac_outfile"; then
16662     # The compiler can only warn and ignore the option if not recognized
16663     # So say no if there are warnings other than the usual output.
16664     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16665     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16666     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16667       lt_cv_prog_compiler_rtti_exceptions=yes
16668     fi
16669   fi
16670   $rm conftest*
16671
16672fi
16673{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16674echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16675
16676if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16677    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16678else
16679    :
16680fi
16681
16682fi
16683
16684lt_prog_compiler_wl_GCJ=
16685lt_prog_compiler_pic_GCJ=
16686lt_prog_compiler_static_GCJ=
16687
16688{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16689echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16690
16691  if test "$GCC" = yes; then
16692    lt_prog_compiler_wl_GCJ='-Wl,'
16693    lt_prog_compiler_static_GCJ='-static'
16694
16695    case $host_os in
16696      aix*)
16697      # All AIX code is PIC.
16698      if test "$host_cpu" = ia64; then
16699	# AIX 5 now supports IA64 processor
16700	lt_prog_compiler_static_GCJ='-Bstatic'
16701      fi
16702      ;;
16703
16704    amigaos*)
16705      # FIXME: we need at least 68020 code to build shared libraries, but
16706      # adding the `-m68020' flag to GCC prevents building anything better,
16707      # like `-m68040'.
16708      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16709      ;;
16710
16711    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16712      # PIC is the default for these OSes.
16713      ;;
16714
16715    mingw* | cygwin* | pw32* | os2*)
16716      # This hack is so that the source file can tell whether it is being
16717      # built for inclusion in a dll (and should export symbols for example).
16718      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16719      # (--disable-auto-import) libraries
16720
16721      ;;
16722
16723    darwin* | rhapsody*)
16724      # PIC is the default on this platform
16725      # Common symbols not allowed in MH_DYLIB files
16726      lt_prog_compiler_pic_GCJ='-fno-common'
16727      ;;
16728
16729    interix[3-9]*)
16730      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16731      # Instead, we relocate shared libraries at runtime.
16732      ;;
16733
16734    msdosdjgpp*)
16735      # Just because we use GCC doesn't mean we suddenly get shared libraries
16736      # on systems that don't support them.
16737      lt_prog_compiler_can_build_shared_GCJ=no
16738      enable_shared=no
16739      ;;
16740
16741    sysv4*MP*)
16742      if test -d /usr/nec; then
16743	lt_prog_compiler_pic_GCJ=-Kconform_pic
16744      fi
16745      ;;
16746
16747    hpux*)
16748      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16749      # not for PA HP-UX.
16750      case $host_cpu in
16751      hppa*64*|ia64*)
16752	# +Z the default
16753	;;
16754      *)
16755	lt_prog_compiler_pic_GCJ='-fPIC'
16756	;;
16757      esac
16758      ;;
16759
16760    *)
16761      lt_prog_compiler_pic_GCJ='-fPIC'
16762      ;;
16763    esac
16764  else
16765    # PORTME Check for flag to pass linker flags through the system compiler.
16766    case $host_os in
16767    aix*)
16768      lt_prog_compiler_wl_GCJ='-Wl,'
16769      if test "$host_cpu" = ia64; then
16770	# AIX 5 now supports IA64 processor
16771	lt_prog_compiler_static_GCJ='-Bstatic'
16772      else
16773	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16774      fi
16775      ;;
16776      darwin*)
16777        # PIC is the default on this platform
16778        # Common symbols not allowed in MH_DYLIB files
16779       case $cc_basename in
16780         xlc*)
16781         lt_prog_compiler_pic_GCJ='-qnocommon'
16782         lt_prog_compiler_wl_GCJ='-Wl,'
16783         ;;
16784       esac
16785       ;;
16786
16787    mingw* | cygwin* | pw32* | os2*)
16788      # This hack is so that the source file can tell whether it is being
16789      # built for inclusion in a dll (and should export symbols for example).
16790
16791      ;;
16792
16793    hpux9* | hpux10* | hpux11*)
16794      lt_prog_compiler_wl_GCJ='-Wl,'
16795      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16796      # not for PA HP-UX.
16797      case $host_cpu in
16798      hppa*64*|ia64*)
16799	# +Z the default
16800	;;
16801      *)
16802	lt_prog_compiler_pic_GCJ='+Z'
16803	;;
16804      esac
16805      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16806      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16807      ;;
16808
16809    irix5* | irix6* | nonstopux*)
16810      lt_prog_compiler_wl_GCJ='-Wl,'
16811      # PIC (with -KPIC) is the default.
16812      lt_prog_compiler_static_GCJ='-non_shared'
16813      ;;
16814
16815    newsos6)
16816      lt_prog_compiler_pic_GCJ='-KPIC'
16817      lt_prog_compiler_static_GCJ='-Bstatic'
16818      ;;
16819
16820    linux* | k*bsd*-gnu)
16821      case $cc_basename in
16822      icc* | ecc*)
16823	lt_prog_compiler_wl_GCJ='-Wl,'
16824	lt_prog_compiler_pic_GCJ='-KPIC'
16825	lt_prog_compiler_static_GCJ='-static'
16826        ;;
16827      pgcc* | pgf77* | pgf90* | pgf95*)
16828        # Portland Group compilers (*not* the Pentium gcc compiler,
16829	# which looks to be a dead project)
16830	lt_prog_compiler_wl_GCJ='-Wl,'
16831	lt_prog_compiler_pic_GCJ='-fpic'
16832	lt_prog_compiler_static_GCJ='-Bstatic'
16833        ;;
16834      ccc*)
16835        lt_prog_compiler_wl_GCJ='-Wl,'
16836        # All Alpha code is PIC.
16837        lt_prog_compiler_static_GCJ='-non_shared'
16838        ;;
16839      *)
16840        case `$CC -V 2>&1 | sed 5q` in
16841	*Sun\ C*)
16842	  # Sun C 5.9
16843	  lt_prog_compiler_pic_GCJ='-KPIC'
16844	  lt_prog_compiler_static_GCJ='-Bstatic'
16845	  lt_prog_compiler_wl_GCJ='-Wl,'
16846	  ;;
16847	*Sun\ F*)
16848	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16849	  lt_prog_compiler_pic_GCJ='-KPIC'
16850	  lt_prog_compiler_static_GCJ='-Bstatic'
16851	  lt_prog_compiler_wl_GCJ=''
16852	  ;;
16853	esac
16854	;;
16855      esac
16856      ;;
16857
16858    osf3* | osf4* | osf5*)
16859      lt_prog_compiler_wl_GCJ='-Wl,'
16860      # All OSF/1 code is PIC.
16861      lt_prog_compiler_static_GCJ='-non_shared'
16862      ;;
16863
16864    rdos*)
16865      lt_prog_compiler_static_GCJ='-non_shared'
16866      ;;
16867
16868    solaris*)
16869      lt_prog_compiler_pic_GCJ='-KPIC'
16870      lt_prog_compiler_static_GCJ='-Bstatic'
16871      case $cc_basename in
16872      f77* | f90* | f95*)
16873	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16874      *)
16875	lt_prog_compiler_wl_GCJ='-Wl,';;
16876      esac
16877      ;;
16878
16879    sunos4*)
16880      lt_prog_compiler_wl_GCJ='-Qoption ld '
16881      lt_prog_compiler_pic_GCJ='-PIC'
16882      lt_prog_compiler_static_GCJ='-Bstatic'
16883      ;;
16884
16885    sysv4 | sysv4.2uw2* | sysv4.3*)
16886      lt_prog_compiler_wl_GCJ='-Wl,'
16887      lt_prog_compiler_pic_GCJ='-KPIC'
16888      lt_prog_compiler_static_GCJ='-Bstatic'
16889      ;;
16890
16891    sysv4*MP*)
16892      if test -d /usr/nec ;then
16893	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16894	lt_prog_compiler_static_GCJ='-Bstatic'
16895      fi
16896      ;;
16897
16898    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16899      lt_prog_compiler_wl_GCJ='-Wl,'
16900      lt_prog_compiler_pic_GCJ='-KPIC'
16901      lt_prog_compiler_static_GCJ='-Bstatic'
16902      ;;
16903
16904    unicos*)
16905      lt_prog_compiler_wl_GCJ='-Wl,'
16906      lt_prog_compiler_can_build_shared_GCJ=no
16907      ;;
16908
16909    uts4*)
16910      lt_prog_compiler_pic_GCJ='-pic'
16911      lt_prog_compiler_static_GCJ='-Bstatic'
16912      ;;
16913
16914    *)
16915      lt_prog_compiler_can_build_shared_GCJ=no
16916      ;;
16917    esac
16918  fi
16919
16920{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16921echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16922
16923#
16924# Check to make sure the PIC flag actually works.
16925#
16926if test -n "$lt_prog_compiler_pic_GCJ"; then
16927
16928{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16929echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16930if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16931  echo $ECHO_N "(cached) $ECHO_C" >&6
16932else
16933  lt_cv_prog_compiler_pic_works_GCJ=no
16934  ac_outfile=conftest.$ac_objext
16935   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16936   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16937   # Insert the option either (1) after the last *FLAGS variable, or
16938   # (2) before a word containing "conftest.", or (3) at the end.
16939   # Note that $ac_compile itself does not contain backslashes and begins
16940   # with a dollar sign (not a hyphen), so the echo should work correctly.
16941   # The option is referenced via a variable to avoid confusing sed.
16942   lt_compile=`echo "$ac_compile" | $SED \
16943   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16944   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16945   -e 's:$: $lt_compiler_flag:'`
16946   (eval echo "\"\$as_me:16946: $lt_compile\"" >&5)
16947   (eval "$lt_compile" 2>conftest.err)
16948   ac_status=$?
16949   cat conftest.err >&5
16950   echo "$as_me:16950: \$? = $ac_status" >&5
16951   if (exit $ac_status) && test -s "$ac_outfile"; then
16952     # The compiler can only warn and ignore the option if not recognized
16953     # So say no if there are warnings other than the usual output.
16954     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16955     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16956     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16957       lt_cv_prog_compiler_pic_works_GCJ=yes
16958     fi
16959   fi
16960   $rm conftest*
16961
16962fi
16963{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16964echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16965
16966if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16967    case $lt_prog_compiler_pic_GCJ in
16968     "" | " "*) ;;
16969     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16970     esac
16971else
16972    lt_prog_compiler_pic_GCJ=
16973     lt_prog_compiler_can_build_shared_GCJ=no
16974fi
16975
16976fi
16977case $host_os in
16978  # For platforms which do not support PIC, -DPIC is meaningless:
16979  *djgpp*)
16980    lt_prog_compiler_pic_GCJ=
16981    ;;
16982  *)
16983    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16984    ;;
16985esac
16986
16987#
16988# Check to make sure the static flag actually works.
16989#
16990wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16991{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16992echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16993if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16994  echo $ECHO_N "(cached) $ECHO_C" >&6
16995else
16996  lt_cv_prog_compiler_static_works_GCJ=no
16997   save_LDFLAGS="$LDFLAGS"
16998   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16999   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17000   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17001     # The linker can only warn and ignore the option if not recognized
17002     # So say no if there are warnings
17003     if test -s conftest.err; then
17004       # Append any errors to the config.log.
17005       cat conftest.err 1>&5
17006       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17007       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17008       if diff conftest.exp conftest.er2 >/dev/null; then
17009         lt_cv_prog_compiler_static_works_GCJ=yes
17010       fi
17011     else
17012       lt_cv_prog_compiler_static_works_GCJ=yes
17013     fi
17014   fi
17015   $rm -r conftest*
17016   LDFLAGS="$save_LDFLAGS"
17017
17018fi
17019{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17020echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17021
17022if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17023    :
17024else
17025    lt_prog_compiler_static_GCJ=
17026fi
17027
17028
17029{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17030echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17031if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17032  echo $ECHO_N "(cached) $ECHO_C" >&6
17033else
17034  lt_cv_prog_compiler_c_o_GCJ=no
17035   $rm -r conftest 2>/dev/null
17036   mkdir conftest
17037   cd conftest
17038   mkdir out
17039   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17040
17041   lt_compiler_flag="-o out/conftest2.$ac_objext"
17042   # Insert the option either (1) after the last *FLAGS variable, or
17043   # (2) before a word containing "conftest.", or (3) at the end.
17044   # Note that $ac_compile itself does not contain backslashes and begins
17045   # with a dollar sign (not a hyphen), so the echo should work correctly.
17046   lt_compile=`echo "$ac_compile" | $SED \
17047   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17048   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17049   -e 's:$: $lt_compiler_flag:'`
17050   (eval echo "\"\$as_me:17050: $lt_compile\"" >&5)
17051   (eval "$lt_compile" 2>out/conftest.err)
17052   ac_status=$?
17053   cat out/conftest.err >&5
17054   echo "$as_me:17054: \$? = $ac_status" >&5
17055   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17056   then
17057     # The compiler can only warn and ignore the option if not recognized
17058     # So say no if there are warnings
17059     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17060     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17061     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17062       lt_cv_prog_compiler_c_o_GCJ=yes
17063     fi
17064   fi
17065   chmod u+w . 2>&5
17066   $rm conftest*
17067   # SGI C++ compiler will create directory out/ii_files/ for
17068   # template instantiation
17069   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17070   $rm out/* && rmdir out
17071   cd ..
17072   rmdir conftest
17073   $rm conftest*
17074
17075fi
17076{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17077echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17078
17079
17080hard_links="nottested"
17081if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17082  # do not overwrite the value of need_locks provided by the user
17083  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17084echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17085  hard_links=yes
17086  $rm conftest*
17087  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17088  touch conftest.a
17089  ln conftest.a conftest.b 2>&5 || hard_links=no
17090  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17091  { echo "$as_me:$LINENO: result: $hard_links" >&5
17092echo "${ECHO_T}$hard_links" >&6; }
17093  if test "$hard_links" = no; then
17094    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17095echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17096    need_locks=warn
17097  fi
17098else
17099  need_locks=no
17100fi
17101
17102{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17103echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17104
17105  runpath_var=
17106  allow_undefined_flag_GCJ=
17107  enable_shared_with_static_runtimes_GCJ=no
17108  archive_cmds_GCJ=
17109  archive_expsym_cmds_GCJ=
17110  old_archive_From_new_cmds_GCJ=
17111  old_archive_from_expsyms_cmds_GCJ=
17112  export_dynamic_flag_spec_GCJ=
17113  whole_archive_flag_spec_GCJ=
17114  thread_safe_flag_spec_GCJ=
17115  hardcode_libdir_flag_spec_GCJ=
17116  hardcode_libdir_flag_spec_ld_GCJ=
17117  hardcode_libdir_separator_GCJ=
17118  hardcode_direct_GCJ=no
17119  hardcode_minus_L_GCJ=no
17120  hardcode_shlibpath_var_GCJ=unsupported
17121  link_all_deplibs_GCJ=unknown
17122  hardcode_automatic_GCJ=no
17123  module_cmds_GCJ=
17124  module_expsym_cmds_GCJ=
17125  always_export_symbols_GCJ=no
17126  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17127  # include_expsyms should be a list of space-separated symbols to be *always*
17128  # included in the symbol list
17129  include_expsyms_GCJ=
17130  # exclude_expsyms can be an extended regexp of symbols to exclude
17131  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17132  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17133  # as well as any symbol that contains `d'.
17134  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17135  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17136  # platforms (ab)use it in PIC code, but their linkers get confused if
17137  # the symbol is explicitly referenced.  Since portable code cannot
17138  # rely on this symbol name, it's probably fine to never include it in
17139  # preloaded symbol tables.
17140  # Exclude shared library initialization/finalization symbols.
17141  extract_expsyms_cmds=
17142  # Just being paranoid about ensuring that cc_basename is set.
17143  for cc_temp in $compiler""; do
17144  case $cc_temp in
17145    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17146    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17147    \-*) ;;
17148    *) break;;
17149  esac
17150done
17151cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17152
17153  case $host_os in
17154  cygwin* | mingw* | pw32*)
17155    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17156    # When not using gcc, we currently assume that we are using
17157    # Microsoft Visual C++.
17158    if test "$GCC" != yes; then
17159      with_gnu_ld=no
17160    fi
17161    ;;
17162  interix*)
17163    # we just hope/assume this is gcc and not c89 (= MSVC++)
17164    with_gnu_ld=yes
17165    ;;
17166  openbsd*)
17167    with_gnu_ld=no
17168    ;;
17169  esac
17170
17171  ld_shlibs_GCJ=yes
17172  if test "$with_gnu_ld" = yes; then
17173    # If archive_cmds runs LD, not CC, wlarc should be empty
17174    wlarc='${wl}'
17175
17176    # Set some defaults for GNU ld with shared library support. These
17177    # are reset later if shared libraries are not supported. Putting them
17178    # here allows them to be overridden if necessary.
17179    runpath_var=LD_RUN_PATH
17180    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17181    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17182    # ancient GNU ld didn't support --whole-archive et. al.
17183    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17184	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17185      else
17186  	whole_archive_flag_spec_GCJ=
17187    fi
17188    supports_anon_versioning=no
17189    case `$LD -v 2>/dev/null` in
17190      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17191      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17192      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17193      *\ 2.11.*) ;; # other 2.11 versions
17194      *) supports_anon_versioning=yes ;;
17195    esac
17196
17197    # See if GNU ld supports shared libraries.
17198    case $host_os in
17199    aix[3-9]*)
17200      # On AIX/PPC, the GNU linker is very broken
17201      if test "$host_cpu" != ia64; then
17202	ld_shlibs_GCJ=no
17203	cat <<EOF 1>&2
17204
17205*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17206*** to be unable to reliably create shared libraries on AIX.
17207*** Therefore, libtool is disabling shared libraries support.  If you
17208*** really care for shared libraries, you may want to modify your PATH
17209*** so that a non-GNU linker is found, and then restart.
17210
17211EOF
17212      fi
17213      ;;
17214
17215    amigaos*)
17216      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)'
17217      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17218      hardcode_minus_L_GCJ=yes
17219
17220      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17221      # that the semantics of dynamic libraries on AmigaOS, at least up
17222      # to version 4, is to share data among multiple programs linked
17223      # with the same dynamic library.  Since this doesn't match the
17224      # behavior of shared libraries on other platforms, we can't use
17225      # them.
17226      ld_shlibs_GCJ=no
17227      ;;
17228
17229    beos*)
17230      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17231	allow_undefined_flag_GCJ=unsupported
17232	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17233	# support --undefined.  This deserves some investigation.  FIXME
17234	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17235      else
17236	ld_shlibs_GCJ=no
17237      fi
17238      ;;
17239
17240    cygwin* | mingw* | pw32*)
17241      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17242      # as there is no search path for DLLs.
17243      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17244      allow_undefined_flag_GCJ=unsupported
17245      always_export_symbols_GCJ=no
17246      enable_shared_with_static_runtimes_GCJ=yes
17247      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17248
17249      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17250        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17251	# If the export-symbols file already is a .def file (1st line
17252	# is EXPORTS), use it as is; otherwise, prepend...
17253	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17254	  cp $export_symbols $output_objdir/$soname.def;
17255	else
17256	  echo EXPORTS > $output_objdir/$soname.def;
17257	  cat $export_symbols >> $output_objdir/$soname.def;
17258	fi~
17259	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17260      else
17261	ld_shlibs_GCJ=no
17262      fi
17263      ;;
17264
17265    interix[3-9]*)
17266      hardcode_direct_GCJ=no
17267      hardcode_shlibpath_var_GCJ=no
17268      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17269      export_dynamic_flag_spec_GCJ='${wl}-E'
17270      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17271      # Instead, shared libraries are loaded at an image base (0x10000000 by
17272      # default) and relocated if they conflict, which is a slow very memory
17273      # consuming and fragmenting process.  To avoid this, we pick a random,
17274      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17275      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17276      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'
17277      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'
17278      ;;
17279
17280    gnu* | linux* | k*bsd*-gnu)
17281      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17282	tmp_addflag=
17283	case $cc_basename,$host_cpu in
17284	pgcc*)				# Portland Group C compiler
17285	  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'
17286	  tmp_addflag=' $pic_flag'
17287	  ;;
17288	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17289	  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'
17290	  tmp_addflag=' $pic_flag -Mnomain' ;;
17291	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17292	  tmp_addflag=' -i_dynamic' ;;
17293	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17294	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17295	ifc* | ifort*)			# Intel Fortran compiler
17296	  tmp_addflag=' -nofor_main' ;;
17297	esac
17298	case `$CC -V 2>&1 | sed 5q` in
17299	*Sun\ C*)			# Sun C 5.9
17300	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17301	  tmp_sharedflag='-G' ;;
17302	*Sun\ F*)			# Sun Fortran 8.3
17303	  tmp_sharedflag='-G' ;;
17304	*)
17305	  tmp_sharedflag='-shared' ;;
17306	esac
17307	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17308
17309	if test $supports_anon_versioning = yes; then
17310	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17311  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17312  $echo "local: *; };" >> $output_objdir/$libname.ver~
17313	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17314	fi
17315	link_all_deplibs_GCJ=no
17316      else
17317	ld_shlibs_GCJ=no
17318      fi
17319      ;;
17320
17321    netbsd* | netbsdelf*-gnu)
17322      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17323	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17324	wlarc=
17325      else
17326	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17327	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17328      fi
17329      ;;
17330
17331    solaris*)
17332      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17333	ld_shlibs_GCJ=no
17334	cat <<EOF 1>&2
17335
17336*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17337*** create shared libraries on Solaris systems.  Therefore, libtool
17338*** is disabling shared libraries support.  We urge you to upgrade GNU
17339*** binutils to release 2.9.1 or newer.  Another option is to modify
17340*** your PATH or compiler configuration so that the native linker is
17341*** used, and then restart.
17342
17343EOF
17344      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17345	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17346	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17347      else
17348	ld_shlibs_GCJ=no
17349      fi
17350      ;;
17351
17352    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17353      case `$LD -v 2>&1` in
17354        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17355	ld_shlibs_GCJ=no
17356	cat <<_LT_EOF 1>&2
17357
17358*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17359*** reliably create shared libraries on SCO systems.  Therefore, libtool
17360*** is disabling shared libraries support.  We urge you to upgrade GNU
17361*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17362*** your PATH or compiler configuration so that the native linker is
17363*** used, and then restart.
17364
17365_LT_EOF
17366	;;
17367	*)
17368	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17369	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17370	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17371	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17372	  else
17373	    ld_shlibs_GCJ=no
17374	  fi
17375	;;
17376      esac
17377      ;;
17378
17379    sunos4*)
17380      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17381      wlarc=
17382      hardcode_direct_GCJ=yes
17383      hardcode_shlibpath_var_GCJ=no
17384      ;;
17385
17386    *)
17387      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17388	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17389	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17390      else
17391	ld_shlibs_GCJ=no
17392      fi
17393      ;;
17394    esac
17395
17396    if test "$ld_shlibs_GCJ" = no; then
17397      runpath_var=
17398      hardcode_libdir_flag_spec_GCJ=
17399      export_dynamic_flag_spec_GCJ=
17400      whole_archive_flag_spec_GCJ=
17401    fi
17402  else
17403    # PORTME fill in a description of your system's linker (not GNU ld)
17404    case $host_os in
17405    aix3*)
17406      allow_undefined_flag_GCJ=unsupported
17407      always_export_symbols_GCJ=yes
17408      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'
17409      # Note: this linker hardcodes the directories in LIBPATH if there
17410      # are no directories specified by -L.
17411      hardcode_minus_L_GCJ=yes
17412      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17413	# Neither direct hardcoding nor static linking is supported with a
17414	# broken collect2.
17415	hardcode_direct_GCJ=unsupported
17416      fi
17417      ;;
17418
17419    aix[4-9]*)
17420      if test "$host_cpu" = ia64; then
17421	# On IA64, the linker does run time linking by default, so we don't
17422	# have to do anything special.
17423	aix_use_runtimelinking=no
17424	exp_sym_flag='-Bexport'
17425	no_entry_flag=""
17426      else
17427	# If we're using GNU nm, then we don't want the "-C" option.
17428	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17429	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17430	  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'
17431	else
17432	  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'
17433	fi
17434	aix_use_runtimelinking=no
17435
17436	# Test if we are trying to use run time linking or normal
17437	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17438	# need to do runtime linking.
17439	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17440	  for ld_flag in $LDFLAGS; do
17441  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17442  	    aix_use_runtimelinking=yes
17443  	    break
17444  	  fi
17445	  done
17446	  ;;
17447	esac
17448
17449	exp_sym_flag='-bexport'
17450	no_entry_flag='-bnoentry'
17451      fi
17452
17453      # When large executables or shared objects are built, AIX ld can
17454      # have problems creating the table of contents.  If linking a library
17455      # or program results in "error TOC overflow" add -mminimal-toc to
17456      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17457      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17458
17459      archive_cmds_GCJ=''
17460      hardcode_direct_GCJ=yes
17461      hardcode_libdir_separator_GCJ=':'
17462      link_all_deplibs_GCJ=yes
17463
17464      if test "$GCC" = yes; then
17465	case $host_os in aix4.[012]|aix4.[012].*)
17466	# We only want to do this on AIX 4.2 and lower, the check
17467	# below for broken collect2 doesn't work under 4.3+
17468	  collect2name=`${CC} -print-prog-name=collect2`
17469	  if test -f "$collect2name" && \
17470  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17471	  then
17472  	  # We have reworked collect2
17473  	  :
17474	  else
17475  	  # We have old collect2
17476  	  hardcode_direct_GCJ=unsupported
17477  	  # It fails to find uninstalled libraries when the uninstalled
17478  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17479  	  # to unsupported forces relinking
17480  	  hardcode_minus_L_GCJ=yes
17481  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17482  	  hardcode_libdir_separator_GCJ=
17483	  fi
17484	  ;;
17485	esac
17486	shared_flag='-shared'
17487	if test "$aix_use_runtimelinking" = yes; then
17488	  shared_flag="$shared_flag "'${wl}-G'
17489	fi
17490      else
17491	# not using gcc
17492	if test "$host_cpu" = ia64; then
17493  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17494  	# chokes on -Wl,-G. The following line is correct:
17495	  shared_flag='-G'
17496	else
17497	  if test "$aix_use_runtimelinking" = yes; then
17498	    shared_flag='${wl}-G'
17499	  else
17500	    shared_flag='${wl}-bM:SRE'
17501	  fi
17502	fi
17503      fi
17504
17505      # It seems that -bexpall does not export symbols beginning with
17506      # underscore (_), so it is better to generate a list of symbols to export.
17507      always_export_symbols_GCJ=yes
17508      if test "$aix_use_runtimelinking" = yes; then
17509	# Warning - without using the other runtime loading flags (-brtl),
17510	# -berok will link without error, but may produce a broken library.
17511	allow_undefined_flag_GCJ='-berok'
17512       # Determine the default libpath from the value encoded in an empty executable.
17513       cat >conftest.$ac_ext <<_ACEOF
17514/* confdefs.h.  */
17515_ACEOF
17516cat confdefs.h >>conftest.$ac_ext
17517cat >>conftest.$ac_ext <<_ACEOF
17518/* end confdefs.h.  */
17519
17520int
17521main ()
17522{
17523
17524  ;
17525  return 0;
17526}
17527_ACEOF
17528rm -f conftest.$ac_objext conftest$ac_exeext
17529if { (ac_try="$ac_link"
17530case "(($ac_try" in
17531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17532  *) ac_try_echo=$ac_try;;
17533esac
17534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17535  (eval "$ac_link") 2>conftest.er1
17536  ac_status=$?
17537  grep -v '^ *+' conftest.er1 >conftest.err
17538  rm -f conftest.er1
17539  cat conftest.err >&5
17540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541  (exit $ac_status); } && {
17542	 test -z "$ac_c_werror_flag" ||
17543	 test ! -s conftest.err
17544       } && test -s conftest$ac_exeext &&
17545       $as_test_x conftest$ac_exeext; then
17546
17547lt_aix_libpath_sed='
17548    /Import File Strings/,/^$/ {
17549	/^0/ {
17550	    s/^0  *\(.*\)$/\1/
17551	    p
17552	}
17553    }'
17554aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17555# Check for a 64-bit object if we didn't find anything.
17556if test -z "$aix_libpath"; then
17557  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17558fi
17559else
17560  echo "$as_me: failed program was:" >&5
17561sed 's/^/| /' conftest.$ac_ext >&5
17562
17563
17564fi
17565
17566rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17567      conftest$ac_exeext conftest.$ac_ext
17568if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17569
17570       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17571	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"
17572       else
17573	if test "$host_cpu" = ia64; then
17574	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17575	  allow_undefined_flag_GCJ="-z nodefs"
17576	  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"
17577	else
17578	 # Determine the default libpath from the value encoded in an empty executable.
17579	 cat >conftest.$ac_ext <<_ACEOF
17580/* confdefs.h.  */
17581_ACEOF
17582cat confdefs.h >>conftest.$ac_ext
17583cat >>conftest.$ac_ext <<_ACEOF
17584/* end confdefs.h.  */
17585
17586int
17587main ()
17588{
17589
17590  ;
17591  return 0;
17592}
17593_ACEOF
17594rm -f conftest.$ac_objext conftest$ac_exeext
17595if { (ac_try="$ac_link"
17596case "(($ac_try" in
17597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598  *) ac_try_echo=$ac_try;;
17599esac
17600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601  (eval "$ac_link") 2>conftest.er1
17602  ac_status=$?
17603  grep -v '^ *+' conftest.er1 >conftest.err
17604  rm -f conftest.er1
17605  cat conftest.err >&5
17606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607  (exit $ac_status); } && {
17608	 test -z "$ac_c_werror_flag" ||
17609	 test ! -s conftest.err
17610       } && test -s conftest$ac_exeext &&
17611       $as_test_x conftest$ac_exeext; then
17612
17613lt_aix_libpath_sed='
17614    /Import File Strings/,/^$/ {
17615	/^0/ {
17616	    s/^0  *\(.*\)$/\1/
17617	    p
17618	}
17619    }'
17620aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17621# Check for a 64-bit object if we didn't find anything.
17622if test -z "$aix_libpath"; then
17623  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17624fi
17625else
17626  echo "$as_me: failed program was:" >&5
17627sed 's/^/| /' conftest.$ac_ext >&5
17628
17629
17630fi
17631
17632rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17633      conftest$ac_exeext conftest.$ac_ext
17634if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17635
17636	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17637	  # Warning - without using the other run time loading flags,
17638	  # -berok will link without error, but may produce a broken library.
17639	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17640	  allow_undefined_flag_GCJ=' ${wl}-berok'
17641	  # Exported symbols can be pulled into shared objects from archives
17642	  whole_archive_flag_spec_GCJ='$convenience'
17643	  archive_cmds_need_lc_GCJ=yes
17644	  # This is similar to how AIX traditionally builds its shared libraries.
17645	  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'
17646	fi
17647      fi
17648      ;;
17649
17650    amigaos*)
17651      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)'
17652      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17653      hardcode_minus_L_GCJ=yes
17654      # see comment about different semantics on the GNU ld section
17655      ld_shlibs_GCJ=no
17656      ;;
17657
17658    bsdi[45]*)
17659      export_dynamic_flag_spec_GCJ=-rdynamic
17660      ;;
17661
17662    cygwin* | mingw* | pw32*)
17663      # When not using gcc, we currently assume that we are using
17664      # Microsoft Visual C++.
17665      # hardcode_libdir_flag_spec is actually meaningless, as there is
17666      # no search path for DLLs.
17667      hardcode_libdir_flag_spec_GCJ=' '
17668      allow_undefined_flag_GCJ=unsupported
17669      # Tell ltmain to make .lib files, not .a files.
17670      libext=lib
17671      # Tell ltmain to make .dll files, not .so files.
17672      shrext_cmds=".dll"
17673      # FIXME: Setting linknames here is a bad hack.
17674      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17675      # The linker will automatically build a .lib file if we build a DLL.
17676      old_archive_From_new_cmds_GCJ='true'
17677      # FIXME: Should let the user specify the lib program.
17678      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17679      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17680      enable_shared_with_static_runtimes_GCJ=yes
17681      ;;
17682
17683    darwin* | rhapsody*)
17684      case $host_os in
17685        rhapsody* | darwin1.[012])
17686         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17687         ;;
17688       *) # Darwin 1.3 on
17689         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17690           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17691         else
17692           case ${MACOSX_DEPLOYMENT_TARGET} in
17693             10.[012])
17694               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17695               ;;
17696             10.*)
17697               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17698               ;;
17699           esac
17700         fi
17701         ;;
17702      esac
17703      archive_cmds_need_lc_GCJ=no
17704      hardcode_direct_GCJ=no
17705      hardcode_automatic_GCJ=yes
17706      hardcode_shlibpath_var_GCJ=unsupported
17707      whole_archive_flag_spec_GCJ=''
17708      link_all_deplibs_GCJ=yes
17709    if test "$GCC" = yes ; then
17710    	output_verbose_link_cmd='echo'
17711        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17712        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17713        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17714        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17715    else
17716      case $cc_basename in
17717        xlc*)
17718         output_verbose_link_cmd='echo'
17719         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17720         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17721          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17722         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17723          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}'
17724          ;;
17725       *)
17726         ld_shlibs_GCJ=no
17727          ;;
17728      esac
17729    fi
17730      ;;
17731
17732    dgux*)
17733      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17734      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17735      hardcode_shlibpath_var_GCJ=no
17736      ;;
17737
17738    freebsd1*)
17739      ld_shlibs_GCJ=no
17740      ;;
17741
17742    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17743    # support.  Future versions do this automatically, but an explicit c++rt0.o
17744    # does not break anything, and helps significantly (at the cost of a little
17745    # extra space).
17746    freebsd2.2*)
17747      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17748      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17749      hardcode_direct_GCJ=yes
17750      hardcode_shlibpath_var_GCJ=no
17751      ;;
17752
17753    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17754    freebsd2*)
17755      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17756      hardcode_direct_GCJ=yes
17757      hardcode_minus_L_GCJ=yes
17758      hardcode_shlibpath_var_GCJ=no
17759      ;;
17760
17761    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17762    freebsd* | dragonfly*)
17763      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17764      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17765      hardcode_direct_GCJ=yes
17766      hardcode_shlibpath_var_GCJ=no
17767      ;;
17768
17769    hpux9*)
17770      if test "$GCC" = yes; then
17771	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'
17772      else
17773	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'
17774      fi
17775      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17776      hardcode_libdir_separator_GCJ=:
17777      hardcode_direct_GCJ=yes
17778
17779      # hardcode_minus_L: Not really in the search PATH,
17780      # but as the default location of the library.
17781      hardcode_minus_L_GCJ=yes
17782      export_dynamic_flag_spec_GCJ='${wl}-E'
17783      ;;
17784
17785    hpux10*)
17786      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17787	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17788      else
17789	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17790      fi
17791      if test "$with_gnu_ld" = no; then
17792	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17793	hardcode_libdir_separator_GCJ=:
17794
17795	hardcode_direct_GCJ=yes
17796	export_dynamic_flag_spec_GCJ='${wl}-E'
17797
17798	# hardcode_minus_L: Not really in the search PATH,
17799	# but as the default location of the library.
17800	hardcode_minus_L_GCJ=yes
17801      fi
17802      ;;
17803
17804    hpux11*)
17805      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17806	case $host_cpu in
17807	hppa*64*)
17808	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17809	  ;;
17810	ia64*)
17811	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17812	  ;;
17813	*)
17814	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17815	  ;;
17816	esac
17817      else
17818	case $host_cpu in
17819	hppa*64*)
17820	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17821	  ;;
17822	ia64*)
17823	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17824	  ;;
17825	*)
17826	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17827	  ;;
17828	esac
17829      fi
17830      if test "$with_gnu_ld" = no; then
17831	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17832	hardcode_libdir_separator_GCJ=:
17833
17834	case $host_cpu in
17835	hppa*64*|ia64*)
17836	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17837	  hardcode_direct_GCJ=no
17838	  hardcode_shlibpath_var_GCJ=no
17839	  ;;
17840	*)
17841	  hardcode_direct_GCJ=yes
17842	  export_dynamic_flag_spec_GCJ='${wl}-E'
17843
17844	  # hardcode_minus_L: Not really in the search PATH,
17845	  # but as the default location of the library.
17846	  hardcode_minus_L_GCJ=yes
17847	  ;;
17848	esac
17849      fi
17850      ;;
17851
17852    irix5* | irix6* | nonstopux*)
17853      if test "$GCC" = yes; then
17854	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'
17855      else
17856	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'
17857	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17858      fi
17859      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17860      hardcode_libdir_separator_GCJ=:
17861      link_all_deplibs_GCJ=yes
17862      ;;
17863
17864    netbsd* | netbsdelf*-gnu)
17865      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17866	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17867      else
17868	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17869      fi
17870      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17871      hardcode_direct_GCJ=yes
17872      hardcode_shlibpath_var_GCJ=no
17873      ;;
17874
17875    newsos6)
17876      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17877      hardcode_direct_GCJ=yes
17878      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17879      hardcode_libdir_separator_GCJ=:
17880      hardcode_shlibpath_var_GCJ=no
17881      ;;
17882
17883    openbsd*)
17884      if test -f /usr/libexec/ld.so; then
17885	hardcode_direct_GCJ=yes
17886	hardcode_shlibpath_var_GCJ=no
17887	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17888	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17889	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17890	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17891	  export_dynamic_flag_spec_GCJ='${wl}-E'
17892	else
17893	  case $host_os in
17894	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17895	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17896	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
17897	     ;;
17898	   *)
17899	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17900	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17901	     ;;
17902	  esac
17903        fi
17904      else
17905	ld_shlibs_GCJ=no
17906      fi
17907      ;;
17908
17909    os2*)
17910      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17911      hardcode_minus_L_GCJ=yes
17912      allow_undefined_flag_GCJ=unsupported
17913      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'
17914      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17915      ;;
17916
17917    osf3*)
17918      if test "$GCC" = yes; then
17919	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17920	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'
17921      else
17922	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17923	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'
17924      fi
17925      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17926      hardcode_libdir_separator_GCJ=:
17927      ;;
17928
17929    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17930      if test "$GCC" = yes; then
17931	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17932	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'
17933	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17934      else
17935	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17936	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'
17937	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~
17938	$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'
17939
17940	# Both c and cxx compiler support -rpath directly
17941	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17942      fi
17943      hardcode_libdir_separator_GCJ=:
17944      ;;
17945
17946    solaris*)
17947      no_undefined_flag_GCJ=' -z text'
17948      if test "$GCC" = yes; then
17949	wlarc='${wl}'
17950	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17951	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17952	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17953      else
17954	wlarc=''
17955	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17956	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17957  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17958      fi
17959      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17960      hardcode_shlibpath_var_GCJ=no
17961      case $host_os in
17962      solaris2.[0-5] | solaris2.[0-5].*) ;;
17963      *)
17964	# The compiler driver will combine and reorder linker options,
17965	# but understands `-z linker_flag'.  GCC discards it without `$wl',
17966	# but is careful enough not to reorder.
17967 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17968	if test "$GCC" = yes; then
17969	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17970	else
17971	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17972	fi
17973	;;
17974      esac
17975      link_all_deplibs_GCJ=yes
17976      ;;
17977
17978    sunos4*)
17979      if test "x$host_vendor" = xsequent; then
17980	# Use $CC to link under sequent, because it throws in some extra .o
17981	# files that make .init and .fini sections work.
17982	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17983      else
17984	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17985      fi
17986      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17987      hardcode_direct_GCJ=yes
17988      hardcode_minus_L_GCJ=yes
17989      hardcode_shlibpath_var_GCJ=no
17990      ;;
17991
17992    sysv4)
17993      case $host_vendor in
17994	sni)
17995	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17996	  hardcode_direct_GCJ=yes # is this really true???
17997	;;
17998	siemens)
17999	  ## LD is ld it makes a PLAMLIB
18000	  ## CC just makes a GrossModule.
18001	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18002	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18003	  hardcode_direct_GCJ=no
18004        ;;
18005	motorola)
18006	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18007	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18008	;;
18009      esac
18010      runpath_var='LD_RUN_PATH'
18011      hardcode_shlibpath_var_GCJ=no
18012      ;;
18013
18014    sysv4.3*)
18015      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18016      hardcode_shlibpath_var_GCJ=no
18017      export_dynamic_flag_spec_GCJ='-Bexport'
18018      ;;
18019
18020    sysv4*MP*)
18021      if test -d /usr/nec; then
18022	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18023	hardcode_shlibpath_var_GCJ=no
18024	runpath_var=LD_RUN_PATH
18025	hardcode_runpath_var=yes
18026	ld_shlibs_GCJ=yes
18027      fi
18028      ;;
18029
18030    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18031      no_undefined_flag_GCJ='${wl}-z,text'
18032      archive_cmds_need_lc_GCJ=no
18033      hardcode_shlibpath_var_GCJ=no
18034      runpath_var='LD_RUN_PATH'
18035
18036      if test "$GCC" = yes; then
18037	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18038	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18039      else
18040	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18041	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18042      fi
18043      ;;
18044
18045    sysv5* | sco3.2v5* | sco5v6*)
18046      # Note: We can NOT use -z defs as we might desire, because we do not
18047      # link with -lc, and that would cause any symbols used from libc to
18048      # always be unresolved, which means just about no library would
18049      # ever link correctly.  If we're not using GNU ld we use -z text
18050      # though, which does catch some bad symbols but isn't as heavy-handed
18051      # as -z defs.
18052      no_undefined_flag_GCJ='${wl}-z,text'
18053      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18054      archive_cmds_need_lc_GCJ=no
18055      hardcode_shlibpath_var_GCJ=no
18056      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18057      hardcode_libdir_separator_GCJ=':'
18058      link_all_deplibs_GCJ=yes
18059      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18060      runpath_var='LD_RUN_PATH'
18061
18062      if test "$GCC" = yes; then
18063	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18064	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18065      else
18066	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18067	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18068      fi
18069      ;;
18070
18071    uts4*)
18072      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18073      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18074      hardcode_shlibpath_var_GCJ=no
18075      ;;
18076
18077    *)
18078      ld_shlibs_GCJ=no
18079      ;;
18080    esac
18081  fi
18082
18083{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18084echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18085test "$ld_shlibs_GCJ" = no && can_build_shared=no
18086
18087#
18088# Do we need to explicitly link libc?
18089#
18090case "x$archive_cmds_need_lc_GCJ" in
18091x|xyes)
18092  # Assume -lc should be added
18093  archive_cmds_need_lc_GCJ=yes
18094
18095  if test "$enable_shared" = yes && test "$GCC" = yes; then
18096    case $archive_cmds_GCJ in
18097    *'~'*)
18098      # FIXME: we may have to deal with multi-command sequences.
18099      ;;
18100    '$CC '*)
18101      # Test whether the compiler implicitly links with -lc since on some
18102      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18103      # to ld, don't add -lc before -lgcc.
18104      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18105echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18106      $rm conftest*
18107      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18108
18109      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18110  (eval $ac_compile) 2>&5
18111  ac_status=$?
18112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113  (exit $ac_status); } 2>conftest.err; then
18114        soname=conftest
18115        lib=conftest
18116        libobjs=conftest.$ac_objext
18117        deplibs=
18118        wl=$lt_prog_compiler_wl_GCJ
18119	pic_flag=$lt_prog_compiler_pic_GCJ
18120        compiler_flags=-v
18121        linker_flags=-v
18122        verstring=
18123        output_objdir=.
18124        libname=conftest
18125        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18126        allow_undefined_flag_GCJ=
18127        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18128  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18129  ac_status=$?
18130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131  (exit $ac_status); }
18132        then
18133	  archive_cmds_need_lc_GCJ=no
18134        else
18135	  archive_cmds_need_lc_GCJ=yes
18136        fi
18137        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18138      else
18139        cat conftest.err 1>&5
18140      fi
18141      $rm conftest*
18142      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18143echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18144      ;;
18145    esac
18146  fi
18147  ;;
18148esac
18149
18150{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18151echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18152library_names_spec=
18153libname_spec='lib$name'
18154soname_spec=
18155shrext_cmds=".so"
18156postinstall_cmds=
18157postuninstall_cmds=
18158finish_cmds=
18159finish_eval=
18160shlibpath_var=
18161shlibpath_overrides_runpath=unknown
18162version_type=none
18163dynamic_linker="$host_os ld.so"
18164sys_lib_dlsearch_path_spec="/lib /usr/lib"
18165
18166need_lib_prefix=unknown
18167hardcode_into_libs=no
18168
18169# when you set need_version to no, make sure it does not cause -set_version
18170# flags to be left without arguments
18171need_version=unknown
18172
18173case $host_os in
18174aix3*)
18175  version_type=linux
18176  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18177  shlibpath_var=LIBPATH
18178
18179  # AIX 3 has no versioning support, so we append a major version to the name.
18180  soname_spec='${libname}${release}${shared_ext}$major'
18181  ;;
18182
18183aix[4-9]*)
18184  version_type=linux
18185  need_lib_prefix=no
18186  need_version=no
18187  hardcode_into_libs=yes
18188  if test "$host_cpu" = ia64; then
18189    # AIX 5 supports IA64
18190    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18191    shlibpath_var=LD_LIBRARY_PATH
18192  else
18193    # With GCC up to 2.95.x, collect2 would create an import file
18194    # for dependence libraries.  The import file would start with
18195    # the line `#! .'.  This would cause the generated library to
18196    # depend on `.', always an invalid library.  This was fixed in
18197    # development snapshots of GCC prior to 3.0.
18198    case $host_os in
18199      aix4 | aix4.[01] | aix4.[01].*)
18200      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18201	   echo ' yes '
18202	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18203	:
18204      else
18205	can_build_shared=no
18206      fi
18207      ;;
18208    esac
18209    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18210    # soname into executable. Probably we can add versioning support to
18211    # collect2, so additional links can be useful in future.
18212    if test "$aix_use_runtimelinking" = yes; then
18213      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18214      # instead of lib<name>.a to let people know that these are not
18215      # typical AIX shared libraries.
18216      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18217    else
18218      # We preserve .a as extension for shared libraries through AIX4.2
18219      # and later when we are not doing run time linking.
18220      library_names_spec='${libname}${release}.a $libname.a'
18221      soname_spec='${libname}${release}${shared_ext}$major'
18222    fi
18223    shlibpath_var=LIBPATH
18224  fi
18225  ;;
18226
18227amigaos*)
18228  library_names_spec='$libname.ixlibrary $libname.a'
18229  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18230  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'
18231  ;;
18232
18233beos*)
18234  library_names_spec='${libname}${shared_ext}'
18235  dynamic_linker="$host_os ld.so"
18236  shlibpath_var=LIBRARY_PATH
18237  ;;
18238
18239bsdi[45]*)
18240  version_type=linux
18241  need_version=no
18242  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18243  soname_spec='${libname}${release}${shared_ext}$major'
18244  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18245  shlibpath_var=LD_LIBRARY_PATH
18246  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18247  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18248  # the default ld.so.conf also contains /usr/contrib/lib and
18249  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18250  # libtool to hard-code these into programs
18251  ;;
18252
18253cygwin* | mingw* | pw32*)
18254  version_type=windows
18255  shrext_cmds=".dll"
18256  need_version=no
18257  need_lib_prefix=no
18258
18259  case $GCC,$host_os in
18260  yes,cygwin* | yes,mingw* | yes,pw32*)
18261    library_names_spec='$libname.dll.a'
18262    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18263    postinstall_cmds='base_file=`basename \${file}`~
18264      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18265      dldir=$destdir/`dirname \$dlpath`~
18266      test -d \$dldir || mkdir -p \$dldir~
18267      $install_prog $dir/$dlname \$dldir/$dlname~
18268      chmod a+x \$dldir/$dlname'
18269    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18270      dlpath=$dir/\$dldll~
18271       $rm \$dlpath'
18272    shlibpath_overrides_runpath=yes
18273
18274    case $host_os in
18275    cygwin*)
18276      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18277      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18278      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18279      ;;
18280    mingw*)
18281      # MinGW DLLs use traditional 'lib' prefix
18282      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18283      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18284      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18285        # It is most probably a Windows format PATH printed by
18286        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18287        # path with ; separators, and with drive letters. We can handle the
18288        # drive letters (cygwin fileutils understands them), so leave them,
18289        # especially as we might pass files found there to a mingw objdump,
18290        # which wouldn't understand a cygwinified path. Ahh.
18291        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18292      else
18293        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18294      fi
18295      ;;
18296    pw32*)
18297      # pw32 DLLs use 'pw' prefix rather than 'lib'
18298      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18299      ;;
18300    esac
18301    ;;
18302
18303  *)
18304    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18305    ;;
18306  esac
18307  dynamic_linker='Win32 ld.exe'
18308  # FIXME: first we should search . and the directory the executable is in
18309  shlibpath_var=PATH
18310  ;;
18311
18312darwin* | rhapsody*)
18313  dynamic_linker="$host_os dyld"
18314  version_type=darwin
18315  need_lib_prefix=no
18316  need_version=no
18317  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18318  soname_spec='${libname}${release}${major}$shared_ext'
18319  shlibpath_overrides_runpath=yes
18320  shlibpath_var=DYLD_LIBRARY_PATH
18321  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18322
18323  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18324  ;;
18325
18326dgux*)
18327  version_type=linux
18328  need_lib_prefix=no
18329  need_version=no
18330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18331  soname_spec='${libname}${release}${shared_ext}$major'
18332  shlibpath_var=LD_LIBRARY_PATH
18333  ;;
18334
18335freebsd1*)
18336  dynamic_linker=no
18337  ;;
18338
18339freebsd* | dragonfly*)
18340  # DragonFly does not have aout.  When/if they implement a new
18341  # versioning mechanism, adjust this.
18342  if test -x /usr/bin/objformat; then
18343    objformat=`/usr/bin/objformat`
18344  else
18345    case $host_os in
18346    freebsd[123]*) objformat=aout ;;
18347    *) objformat=elf ;;
18348    esac
18349  fi
18350  version_type=freebsd-$objformat
18351  case $version_type in
18352    freebsd-elf*)
18353      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18354      need_version=no
18355      need_lib_prefix=no
18356      ;;
18357    freebsd-*)
18358      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18359      need_version=yes
18360      ;;
18361  esac
18362  shlibpath_var=LD_LIBRARY_PATH
18363  case $host_os in
18364  freebsd2*)
18365    shlibpath_overrides_runpath=yes
18366    ;;
18367  freebsd3.[01]* | freebsdelf3.[01]*)
18368    shlibpath_overrides_runpath=yes
18369    hardcode_into_libs=yes
18370    ;;
18371  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18372  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18373    shlibpath_overrides_runpath=no
18374    hardcode_into_libs=yes
18375    ;;
18376  *) # from 4.6 on, and DragonFly
18377    shlibpath_overrides_runpath=yes
18378    hardcode_into_libs=yes
18379    ;;
18380  esac
18381  ;;
18382
18383gnu*)
18384  version_type=linux
18385  need_lib_prefix=no
18386  need_version=no
18387  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18388  soname_spec='${libname}${release}${shared_ext}$major'
18389  shlibpath_var=LD_LIBRARY_PATH
18390  hardcode_into_libs=yes
18391  ;;
18392
18393hpux9* | hpux10* | hpux11*)
18394  # Give a soname corresponding to the major version so that dld.sl refuses to
18395  # link against other versions.
18396  version_type=sunos
18397  need_lib_prefix=no
18398  need_version=no
18399  case $host_cpu in
18400  ia64*)
18401    shrext_cmds='.so'
18402    hardcode_into_libs=yes
18403    dynamic_linker="$host_os dld.so"
18404    shlibpath_var=LD_LIBRARY_PATH
18405    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18406    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18407    soname_spec='${libname}${release}${shared_ext}$major'
18408    if test "X$HPUX_IA64_MODE" = X32; then
18409      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18410    else
18411      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18412    fi
18413    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18414    ;;
18415   hppa*64*)
18416     shrext_cmds='.sl'
18417     hardcode_into_libs=yes
18418     dynamic_linker="$host_os dld.sl"
18419     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18420     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18421     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18422     soname_spec='${libname}${release}${shared_ext}$major'
18423     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18424     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18425     ;;
18426   *)
18427    shrext_cmds='.sl'
18428    dynamic_linker="$host_os dld.sl"
18429    shlibpath_var=SHLIB_PATH
18430    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18431    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18432    soname_spec='${libname}${release}${shared_ext}$major'
18433    ;;
18434  esac
18435  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18436  postinstall_cmds='chmod 555 $lib'
18437  ;;
18438
18439interix[3-9]*)
18440  version_type=linux
18441  need_lib_prefix=no
18442  need_version=no
18443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18444  soname_spec='${libname}${release}${shared_ext}$major'
18445  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18446  shlibpath_var=LD_LIBRARY_PATH
18447  shlibpath_overrides_runpath=no
18448  hardcode_into_libs=yes
18449  ;;
18450
18451irix5* | irix6* | nonstopux*)
18452  case $host_os in
18453    nonstopux*) version_type=nonstopux ;;
18454    *)
18455	if test "$lt_cv_prog_gnu_ld" = yes; then
18456		version_type=linux
18457	else
18458		version_type=irix
18459	fi ;;
18460  esac
18461  need_lib_prefix=no
18462  need_version=no
18463  soname_spec='${libname}${release}${shared_ext}$major'
18464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18465  case $host_os in
18466  irix5* | nonstopux*)
18467    libsuff= shlibsuff=
18468    ;;
18469  *)
18470    case $LD in # libtool.m4 will add one of these switches to LD
18471    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18472      libsuff= shlibsuff= libmagic=32-bit;;
18473    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18474      libsuff=32 shlibsuff=N32 libmagic=N32;;
18475    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18476      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18477    *) libsuff= shlibsuff= libmagic=never-match;;
18478    esac
18479    ;;
18480  esac
18481  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18482  shlibpath_overrides_runpath=no
18483  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18484  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18485  hardcode_into_libs=yes
18486  ;;
18487
18488# No shared lib support for Linux oldld, aout, or coff.
18489linux*oldld* | linux*aout* | linux*coff*)
18490  dynamic_linker=no
18491  ;;
18492
18493# This must be Linux ELF.
18494linux* | k*bsd*-gnu)
18495  version_type=linux
18496  need_lib_prefix=no
18497  need_version=no
18498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18499  soname_spec='${libname}${release}${shared_ext}$major'
18500  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18501  shlibpath_var=LD_LIBRARY_PATH
18502  shlibpath_overrides_runpath=no
18503  # This implies no fast_install, which is unacceptable.
18504  # Some rework will be needed to allow for fast_install
18505  # before this can be enabled.
18506  hardcode_into_libs=yes
18507
18508  # Append ld.so.conf contents to the search path
18509  if test -f /etc/ld.so.conf; then
18510    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18511    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18512  fi
18513
18514  # We used to test for /lib/ld.so.1 and disable shared libraries on
18515  # powerpc, because MkLinux only supported shared libraries with the
18516  # GNU dynamic linker.  Since this was broken with cross compilers,
18517  # most powerpc-linux boxes support dynamic linking these days and
18518  # people can always --disable-shared, the test was removed, and we
18519  # assume the GNU/Linux dynamic linker is in use.
18520  dynamic_linker='GNU/Linux ld.so'
18521  ;;
18522
18523netbsdelf*-gnu)
18524  version_type=linux
18525  need_lib_prefix=no
18526  need_version=no
18527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18528  soname_spec='${libname}${release}${shared_ext}$major'
18529  shlibpath_var=LD_LIBRARY_PATH
18530  shlibpath_overrides_runpath=no
18531  hardcode_into_libs=yes
18532  dynamic_linker='NetBSD ld.elf_so'
18533  ;;
18534
18535netbsd*)
18536  version_type=sunos
18537  need_lib_prefix=no
18538  need_version=no
18539  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18540    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18541    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18542    dynamic_linker='NetBSD (a.out) ld.so'
18543  else
18544    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18545    soname_spec='${libname}${release}${shared_ext}$major'
18546    dynamic_linker='NetBSD ld.elf_so'
18547  fi
18548  shlibpath_var=LD_LIBRARY_PATH
18549  shlibpath_overrides_runpath=yes
18550  hardcode_into_libs=yes
18551  ;;
18552
18553newsos6)
18554  version_type=linux
18555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18556  shlibpath_var=LD_LIBRARY_PATH
18557  shlibpath_overrides_runpath=yes
18558  ;;
18559
18560nto-qnx*)
18561  version_type=linux
18562  need_lib_prefix=no
18563  need_version=no
18564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18565  soname_spec='${libname}${release}${shared_ext}$major'
18566  shlibpath_var=LD_LIBRARY_PATH
18567  shlibpath_overrides_runpath=yes
18568  ;;
18569
18570openbsd*)
18571  version_type=sunos
18572  sys_lib_dlsearch_path_spec="/usr/lib"
18573  need_lib_prefix=no
18574  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18575  case $host_os in
18576    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18577    *)                         need_version=no  ;;
18578  esac
18579  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18580  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18581  shlibpath_var=LD_LIBRARY_PATH
18582  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18583    case $host_os in
18584      openbsd2.[89] | openbsd2.[89].*)
18585	shlibpath_overrides_runpath=no
18586	;;
18587      *)
18588	shlibpath_overrides_runpath=yes
18589	;;
18590      esac
18591  else
18592    shlibpath_overrides_runpath=yes
18593  fi
18594  ;;
18595
18596os2*)
18597  libname_spec='$name'
18598  shrext_cmds=".dll"
18599  need_lib_prefix=no
18600  library_names_spec='$libname${shared_ext} $libname.a'
18601  dynamic_linker='OS/2 ld.exe'
18602  shlibpath_var=LIBPATH
18603  ;;
18604
18605osf3* | osf4* | osf5*)
18606  version_type=osf
18607  need_lib_prefix=no
18608  need_version=no
18609  soname_spec='${libname}${release}${shared_ext}$major'
18610  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18611  shlibpath_var=LD_LIBRARY_PATH
18612  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18613  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18614  ;;
18615
18616rdos*)
18617  dynamic_linker=no
18618  ;;
18619
18620solaris*)
18621  version_type=linux
18622  need_lib_prefix=no
18623  need_version=no
18624  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18625  soname_spec='${libname}${release}${shared_ext}$major'
18626  shlibpath_var=LD_LIBRARY_PATH
18627  shlibpath_overrides_runpath=yes
18628  hardcode_into_libs=yes
18629  # ldd complains unless libraries are executable
18630  postinstall_cmds='chmod +x $lib'
18631  ;;
18632
18633sunos4*)
18634  version_type=sunos
18635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18636  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18637  shlibpath_var=LD_LIBRARY_PATH
18638  shlibpath_overrides_runpath=yes
18639  if test "$with_gnu_ld" = yes; then
18640    need_lib_prefix=no
18641  fi
18642  need_version=yes
18643  ;;
18644
18645sysv4 | sysv4.3*)
18646  version_type=linux
18647  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18648  soname_spec='${libname}${release}${shared_ext}$major'
18649  shlibpath_var=LD_LIBRARY_PATH
18650  case $host_vendor in
18651    sni)
18652      shlibpath_overrides_runpath=no
18653      need_lib_prefix=no
18654      export_dynamic_flag_spec='${wl}-Blargedynsym'
18655      runpath_var=LD_RUN_PATH
18656      ;;
18657    siemens)
18658      need_lib_prefix=no
18659      ;;
18660    motorola)
18661      need_lib_prefix=no
18662      need_version=no
18663      shlibpath_overrides_runpath=no
18664      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18665      ;;
18666  esac
18667  ;;
18668
18669sysv4*MP*)
18670  if test -d /usr/nec ;then
18671    version_type=linux
18672    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18673    soname_spec='$libname${shared_ext}.$major'
18674    shlibpath_var=LD_LIBRARY_PATH
18675  fi
18676  ;;
18677
18678sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18679  version_type=freebsd-elf
18680  need_lib_prefix=no
18681  need_version=no
18682  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18683  soname_spec='${libname}${release}${shared_ext}$major'
18684  shlibpath_var=LD_LIBRARY_PATH
18685  hardcode_into_libs=yes
18686  if test "$with_gnu_ld" = yes; then
18687    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18688    shlibpath_overrides_runpath=no
18689  else
18690    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18691    shlibpath_overrides_runpath=yes
18692    case $host_os in
18693      sco3.2v5*)
18694        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18695	;;
18696    esac
18697  fi
18698  sys_lib_dlsearch_path_spec='/usr/lib'
18699  ;;
18700
18701uts4*)
18702  version_type=linux
18703  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18704  soname_spec='${libname}${release}${shared_ext}$major'
18705  shlibpath_var=LD_LIBRARY_PATH
18706  ;;
18707
18708*)
18709  dynamic_linker=no
18710  ;;
18711esac
18712{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18713echo "${ECHO_T}$dynamic_linker" >&6; }
18714test "$dynamic_linker" = no && can_build_shared=no
18715
18716if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18717  echo $ECHO_N "(cached) $ECHO_C" >&6
18718else
18719  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18720fi
18721
18722sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18723if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18724  echo $ECHO_N "(cached) $ECHO_C" >&6
18725else
18726  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18727fi
18728
18729sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18730
18731variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18732if test "$GCC" = yes; then
18733  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18734fi
18735
18736{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18737echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18738hardcode_action_GCJ=
18739if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18740   test -n "$runpath_var_GCJ" || \
18741   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18742
18743  # We can hardcode non-existant directories.
18744  if test "$hardcode_direct_GCJ" != no &&
18745     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18746     # have to relink, otherwise we might link with an installed library
18747     # when we should be linking with a yet-to-be-installed one
18748     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18749     test "$hardcode_minus_L_GCJ" != no; then
18750    # Linking always hardcodes the temporary library directory.
18751    hardcode_action_GCJ=relink
18752  else
18753    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18754    hardcode_action_GCJ=immediate
18755  fi
18756else
18757  # We cannot hardcode anything, or else we can only hardcode existing
18758  # directories.
18759  hardcode_action_GCJ=unsupported
18760fi
18761{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18762echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18763
18764if test "$hardcode_action_GCJ" = relink; then
18765  # Fast installation is not supported
18766  enable_fast_install=no
18767elif test "$shlibpath_overrides_runpath" = yes ||
18768     test "$enable_shared" = no; then
18769  # Fast installation is not necessary
18770  enable_fast_install=needless
18771fi
18772
18773
18774# The else clause should only fire when bootstrapping the
18775# libtool distribution, otherwise you forgot to ship ltmain.sh
18776# with your package, and you will get complaints that there are
18777# no rules to generate ltmain.sh.
18778if test -f "$ltmain"; then
18779  # See if we are running on zsh, and set the options which allow our commands through
18780  # without removal of \ escapes.
18781  if test -n "${ZSH_VERSION+set}" ; then
18782    setopt NO_GLOB_SUBST
18783  fi
18784  # Now quote all the things that may contain metacharacters while being
18785  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18786  # variables and quote the copies for generation of the libtool script.
18787  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18788    SED SHELL STRIP \
18789    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18790    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18791    deplibs_check_method reload_flag reload_cmds need_locks \
18792    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18793    lt_cv_sys_global_symbol_to_c_name_address \
18794    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18795    old_postinstall_cmds old_postuninstall_cmds \
18796    compiler_GCJ \
18797    CC_GCJ \
18798    LD_GCJ \
18799    lt_prog_compiler_wl_GCJ \
18800    lt_prog_compiler_pic_GCJ \
18801    lt_prog_compiler_static_GCJ \
18802    lt_prog_compiler_no_builtin_flag_GCJ \
18803    export_dynamic_flag_spec_GCJ \
18804    thread_safe_flag_spec_GCJ \
18805    whole_archive_flag_spec_GCJ \
18806    enable_shared_with_static_runtimes_GCJ \
18807    old_archive_cmds_GCJ \
18808    old_archive_from_new_cmds_GCJ \
18809    predep_objects_GCJ \
18810    postdep_objects_GCJ \
18811    predeps_GCJ \
18812    postdeps_GCJ \
18813    compiler_lib_search_path_GCJ \
18814    compiler_lib_search_dirs_GCJ \
18815    archive_cmds_GCJ \
18816    archive_expsym_cmds_GCJ \
18817    postinstall_cmds_GCJ \
18818    postuninstall_cmds_GCJ \
18819    old_archive_from_expsyms_cmds_GCJ \
18820    allow_undefined_flag_GCJ \
18821    no_undefined_flag_GCJ \
18822    export_symbols_cmds_GCJ \
18823    hardcode_libdir_flag_spec_GCJ \
18824    hardcode_libdir_flag_spec_ld_GCJ \
18825    hardcode_libdir_separator_GCJ \
18826    hardcode_automatic_GCJ \
18827    module_cmds_GCJ \
18828    module_expsym_cmds_GCJ \
18829    lt_cv_prog_compiler_c_o_GCJ \
18830    fix_srcfile_path_GCJ \
18831    exclude_expsyms_GCJ \
18832    include_expsyms_GCJ; do
18833
18834    case $var in
18835    old_archive_cmds_GCJ | \
18836    old_archive_from_new_cmds_GCJ | \
18837    archive_cmds_GCJ | \
18838    archive_expsym_cmds_GCJ | \
18839    module_cmds_GCJ | \
18840    module_expsym_cmds_GCJ | \
18841    old_archive_from_expsyms_cmds_GCJ | \
18842    export_symbols_cmds_GCJ | \
18843    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18844    postinstall_cmds | postuninstall_cmds | \
18845    old_postinstall_cmds | old_postuninstall_cmds | \
18846    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18847      # Double-quote double-evaled strings.
18848      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18849      ;;
18850    *)
18851      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18852      ;;
18853    esac
18854  done
18855
18856  case $lt_echo in
18857  *'\$0 --fallback-echo"')
18858    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18859    ;;
18860  esac
18861
18862cfgfile="$ofile"
18863
18864  cat <<__EOF__ >> "$cfgfile"
18865# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18866
18867# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18868
18869# Shell to use when invoking shell scripts.
18870SHELL=$lt_SHELL
18871
18872# Whether or not to build shared libraries.
18873build_libtool_libs=$enable_shared
18874
18875# Whether or not to build static libraries.
18876build_old_libs=$enable_static
18877
18878# Whether or not to add -lc for building shared libraries.
18879build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18880
18881# Whether or not to disallow shared libs when runtime libs are static
18882allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18883
18884# Whether or not to optimize for fast installation.
18885fast_install=$enable_fast_install
18886
18887# The host system.
18888host_alias=$host_alias
18889host=$host
18890host_os=$host_os
18891
18892# The build system.
18893build_alias=$build_alias
18894build=$build
18895build_os=$build_os
18896
18897# An echo program that does not interpret backslashes.
18898echo=$lt_echo
18899
18900# The archiver.
18901AR=$lt_AR
18902AR_FLAGS=$lt_AR_FLAGS
18903
18904# A C compiler.
18905LTCC=$lt_LTCC
18906
18907# LTCC compiler flags.
18908LTCFLAGS=$lt_LTCFLAGS
18909
18910# A language-specific compiler.
18911CC=$lt_compiler_GCJ
18912
18913# Is the compiler the GNU C compiler?
18914with_gcc=$GCC_GCJ
18915
18916# An ERE matcher.
18917EGREP=$lt_EGREP
18918
18919# The linker used to build libraries.
18920LD=$lt_LD_GCJ
18921
18922# Whether we need hard or soft links.
18923LN_S=$lt_LN_S
18924
18925# A BSD-compatible nm program.
18926NM=$lt_NM
18927
18928# A symbol stripping program
18929STRIP=$lt_STRIP
18930
18931# Used to examine libraries when file_magic_cmd begins "file"
18932MAGIC_CMD=$MAGIC_CMD
18933
18934# Used on cygwin: DLL creation program.
18935DLLTOOL="$DLLTOOL"
18936
18937# Used on cygwin: object dumper.
18938OBJDUMP="$OBJDUMP"
18939
18940# Used on cygwin: assembler.
18941AS="$AS"
18942
18943# The name of the directory that contains temporary libtool files.
18944objdir=$objdir
18945
18946# How to create reloadable object files.
18947reload_flag=$lt_reload_flag
18948reload_cmds=$lt_reload_cmds
18949
18950# How to pass a linker flag through the compiler.
18951wl=$lt_lt_prog_compiler_wl_GCJ
18952
18953# Object file suffix (normally "o").
18954objext="$ac_objext"
18955
18956# Old archive suffix (normally "a").
18957libext="$libext"
18958
18959# Shared library suffix (normally ".so").
18960shrext_cmds='$shrext_cmds'
18961
18962# Executable file suffix (normally "").
18963exeext="$exeext"
18964
18965# Additional compiler flags for building library objects.
18966pic_flag=$lt_lt_prog_compiler_pic_GCJ
18967pic_mode=$pic_mode
18968
18969# What is the maximum length of a command?
18970max_cmd_len=$lt_cv_sys_max_cmd_len
18971
18972# Does compiler simultaneously support -c and -o options?
18973compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18974
18975# Must we lock files when doing compilation?
18976need_locks=$lt_need_locks
18977
18978# Do we need the lib prefix for modules?
18979need_lib_prefix=$need_lib_prefix
18980
18981# Do we need a version for libraries?
18982need_version=$need_version
18983
18984# Whether dlopen is supported.
18985dlopen_support=$enable_dlopen
18986
18987# Whether dlopen of programs is supported.
18988dlopen_self=$enable_dlopen_self
18989
18990# Whether dlopen of statically linked programs is supported.
18991dlopen_self_static=$enable_dlopen_self_static
18992
18993# Compiler flag to prevent dynamic linking.
18994link_static_flag=$lt_lt_prog_compiler_static_GCJ
18995
18996# Compiler flag to turn off builtin functions.
18997no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18998
18999# Compiler flag to allow reflexive dlopens.
19000export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19001
19002# Compiler flag to generate shared objects directly from archives.
19003whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19004
19005# Compiler flag to generate thread-safe objects.
19006thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19007
19008# Library versioning type.
19009version_type=$version_type
19010
19011# Format of library name prefix.
19012libname_spec=$lt_libname_spec
19013
19014# List of archive names.  First name is the real one, the rest are links.
19015# The last name is the one that the linker finds with -lNAME.
19016library_names_spec=$lt_library_names_spec
19017
19018# The coded name of the library, if different from the real name.
19019soname_spec=$lt_soname_spec
19020
19021# Commands used to build and install an old-style archive.
19022RANLIB=$lt_RANLIB
19023old_archive_cmds=$lt_old_archive_cmds_GCJ
19024old_postinstall_cmds=$lt_old_postinstall_cmds
19025old_postuninstall_cmds=$lt_old_postuninstall_cmds
19026
19027# Create an old-style archive from a shared archive.
19028old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19029
19030# Create a temporary old-style archive to link instead of a shared archive.
19031old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19032
19033# Commands used to build and install a shared archive.
19034archive_cmds=$lt_archive_cmds_GCJ
19035archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19036postinstall_cmds=$lt_postinstall_cmds
19037postuninstall_cmds=$lt_postuninstall_cmds
19038
19039# Commands used to build a loadable module (assumed same as above if empty)
19040module_cmds=$lt_module_cmds_GCJ
19041module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19042
19043# Commands to strip libraries.
19044old_striplib=$lt_old_striplib
19045striplib=$lt_striplib
19046
19047# Dependencies to place before the objects being linked to create a
19048# shared library.
19049predep_objects=$lt_predep_objects_GCJ
19050
19051# Dependencies to place after the objects being linked to create a
19052# shared library.
19053postdep_objects=$lt_postdep_objects_GCJ
19054
19055# Dependencies to place before the objects being linked to create a
19056# shared library.
19057predeps=$lt_predeps_GCJ
19058
19059# Dependencies to place after the objects being linked to create a
19060# shared library.
19061postdeps=$lt_postdeps_GCJ
19062
19063# The directories searched by this compiler when creating a shared
19064# library
19065compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19066
19067# The library search path used internally by the compiler when linking
19068# a shared library.
19069compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19070
19071# Method to check whether dependent libraries are shared objects.
19072deplibs_check_method=$lt_deplibs_check_method
19073
19074# Command to use when deplibs_check_method == file_magic.
19075file_magic_cmd=$lt_file_magic_cmd
19076
19077# Flag that allows shared libraries with undefined symbols to be built.
19078allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19079
19080# Flag that forces no undefined symbols.
19081no_undefined_flag=$lt_no_undefined_flag_GCJ
19082
19083# Commands used to finish a libtool library installation in a directory.
19084finish_cmds=$lt_finish_cmds
19085
19086# Same as above, but a single script fragment to be evaled but not shown.
19087finish_eval=$lt_finish_eval
19088
19089# Take the output of nm and produce a listing of raw symbols and C names.
19090global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19091
19092# Transform the output of nm in a proper C declaration
19093global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19094
19095# Transform the output of nm in a C name address pair
19096global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19097
19098# This is the shared library runtime path variable.
19099runpath_var=$runpath_var
19100
19101# This is the shared library path variable.
19102shlibpath_var=$shlibpath_var
19103
19104# Is shlibpath searched before the hard-coded library search path?
19105shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19106
19107# How to hardcode a shared library path into an executable.
19108hardcode_action=$hardcode_action_GCJ
19109
19110# Whether we should hardcode library paths into libraries.
19111hardcode_into_libs=$hardcode_into_libs
19112
19113# Flag to hardcode \$libdir into a binary during linking.
19114# This must work even if \$libdir does not exist.
19115hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19116
19117# If ld is used when linking, flag to hardcode \$libdir into
19118# a binary during linking. This must work even if \$libdir does
19119# not exist.
19120hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19121
19122# Whether we need a single -rpath flag with a separated argument.
19123hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19124
19125# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19126# resulting binary.
19127hardcode_direct=$hardcode_direct_GCJ
19128
19129# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19130# resulting binary.
19131hardcode_minus_L=$hardcode_minus_L_GCJ
19132
19133# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19134# the resulting binary.
19135hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19136
19137# Set to yes if building a shared library automatically hardcodes DIR into the library
19138# and all subsequent libraries and executables linked against it.
19139hardcode_automatic=$hardcode_automatic_GCJ
19140
19141# Variables whose values should be saved in libtool wrapper scripts and
19142# restored at relink time.
19143variables_saved_for_relink="$variables_saved_for_relink"
19144
19145# Whether libtool must link a program against all its dependency libraries.
19146link_all_deplibs=$link_all_deplibs_GCJ
19147
19148# Compile-time system search path for libraries
19149sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19150
19151# Run-time system search path for libraries
19152sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19153
19154# Fix the shell variable \$srcfile for the compiler.
19155fix_srcfile_path=$lt_fix_srcfile_path
19156
19157# Set to yes if exported symbols are required.
19158always_export_symbols=$always_export_symbols_GCJ
19159
19160# The commands to list exported symbols.
19161export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19162
19163# The commands to extract the exported symbol list from a shared archive.
19164extract_expsyms_cmds=$lt_extract_expsyms_cmds
19165
19166# Symbols that should not be listed in the preloaded symbols.
19167exclude_expsyms=$lt_exclude_expsyms_GCJ
19168
19169# Symbols that must always be exported.
19170include_expsyms=$lt_include_expsyms_GCJ
19171
19172# ### END LIBTOOL TAG CONFIG: $tagname
19173
19174__EOF__
19175
19176
19177else
19178  # If there is no Makefile yet, we rely on a make rule to execute
19179  # `config.status --recheck' to rerun these tests and create the
19180  # libtool script then.
19181  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19182  if test -f "$ltmain_in"; then
19183    test -f Makefile && make "$ltmain"
19184  fi
19185fi
19186
19187
19188ac_ext=c
19189ac_cpp='$CPP $CPPFLAGS'
19190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19192ac_compiler_gnu=$ac_cv_c_compiler_gnu
19193
19194CC="$lt_save_CC"
19195
19196	else
19197	  tagname=""
19198	fi
19199	;;
19200
19201      RC)
19202
19203
19204# Source file extension for RC test sources.
19205ac_ext=rc
19206
19207# Object file extension for compiled RC test sources.
19208objext=o
19209objext_RC=$objext
19210
19211# Code to be used in simple compile tests
19212lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19213
19214# Code to be used in simple link tests
19215lt_simple_link_test_code="$lt_simple_compile_test_code"
19216
19217# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19218
19219# If no C compiler was specified, use CC.
19220LTCC=${LTCC-"$CC"}
19221
19222# If no C compiler flags were specified, use CFLAGS.
19223LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19224
19225# Allow CC to be a program name with arguments.
19226compiler=$CC
19227
19228
19229# save warnings/boilerplate of simple test code
19230ac_outfile=conftest.$ac_objext
19231echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19232eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19233_lt_compiler_boilerplate=`cat conftest.err`
19234$rm conftest*
19235
19236ac_outfile=conftest.$ac_objext
19237echo "$lt_simple_link_test_code" >conftest.$ac_ext
19238eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19239_lt_linker_boilerplate=`cat conftest.err`
19240$rm -r conftest*
19241
19242
19243# Allow CC to be a program name with arguments.
19244lt_save_CC="$CC"
19245CC=${RC-"windres"}
19246compiler=$CC
19247compiler_RC=$CC
19248for cc_temp in $compiler""; do
19249  case $cc_temp in
19250    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19251    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19252    \-*) ;;
19253    *) break;;
19254  esac
19255done
19256cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19257
19258lt_cv_prog_compiler_c_o_RC=yes
19259
19260# The else clause should only fire when bootstrapping the
19261# libtool distribution, otherwise you forgot to ship ltmain.sh
19262# with your package, and you will get complaints that there are
19263# no rules to generate ltmain.sh.
19264if test -f "$ltmain"; then
19265  # See if we are running on zsh, and set the options which allow our commands through
19266  # without removal of \ escapes.
19267  if test -n "${ZSH_VERSION+set}" ; then
19268    setopt NO_GLOB_SUBST
19269  fi
19270  # Now quote all the things that may contain metacharacters while being
19271  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19272  # variables and quote the copies for generation of the libtool script.
19273  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19274    SED SHELL STRIP \
19275    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19276    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19277    deplibs_check_method reload_flag reload_cmds need_locks \
19278    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19279    lt_cv_sys_global_symbol_to_c_name_address \
19280    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19281    old_postinstall_cmds old_postuninstall_cmds \
19282    compiler_RC \
19283    CC_RC \
19284    LD_RC \
19285    lt_prog_compiler_wl_RC \
19286    lt_prog_compiler_pic_RC \
19287    lt_prog_compiler_static_RC \
19288    lt_prog_compiler_no_builtin_flag_RC \
19289    export_dynamic_flag_spec_RC \
19290    thread_safe_flag_spec_RC \
19291    whole_archive_flag_spec_RC \
19292    enable_shared_with_static_runtimes_RC \
19293    old_archive_cmds_RC \
19294    old_archive_from_new_cmds_RC \
19295    predep_objects_RC \
19296    postdep_objects_RC \
19297    predeps_RC \
19298    postdeps_RC \
19299    compiler_lib_search_path_RC \
19300    compiler_lib_search_dirs_RC \
19301    archive_cmds_RC \
19302    archive_expsym_cmds_RC \
19303    postinstall_cmds_RC \
19304    postuninstall_cmds_RC \
19305    old_archive_from_expsyms_cmds_RC \
19306    allow_undefined_flag_RC \
19307    no_undefined_flag_RC \
19308    export_symbols_cmds_RC \
19309    hardcode_libdir_flag_spec_RC \
19310    hardcode_libdir_flag_spec_ld_RC \
19311    hardcode_libdir_separator_RC \
19312    hardcode_automatic_RC \
19313    module_cmds_RC \
19314    module_expsym_cmds_RC \
19315    lt_cv_prog_compiler_c_o_RC \
19316    fix_srcfile_path_RC \
19317    exclude_expsyms_RC \
19318    include_expsyms_RC; do
19319
19320    case $var in
19321    old_archive_cmds_RC | \
19322    old_archive_from_new_cmds_RC | \
19323    archive_cmds_RC | \
19324    archive_expsym_cmds_RC | \
19325    module_cmds_RC | \
19326    module_expsym_cmds_RC | \
19327    old_archive_from_expsyms_cmds_RC | \
19328    export_symbols_cmds_RC | \
19329    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19330    postinstall_cmds | postuninstall_cmds | \
19331    old_postinstall_cmds | old_postuninstall_cmds | \
19332    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19333      # Double-quote double-evaled strings.
19334      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19335      ;;
19336    *)
19337      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19338      ;;
19339    esac
19340  done
19341
19342  case $lt_echo in
19343  *'\$0 --fallback-echo"')
19344    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19345    ;;
19346  esac
19347
19348cfgfile="$ofile"
19349
19350  cat <<__EOF__ >> "$cfgfile"
19351# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19352
19353# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19354
19355# Shell to use when invoking shell scripts.
19356SHELL=$lt_SHELL
19357
19358# Whether or not to build shared libraries.
19359build_libtool_libs=$enable_shared
19360
19361# Whether or not to build static libraries.
19362build_old_libs=$enable_static
19363
19364# Whether or not to add -lc for building shared libraries.
19365build_libtool_need_lc=$archive_cmds_need_lc_RC
19366
19367# Whether or not to disallow shared libs when runtime libs are static
19368allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19369
19370# Whether or not to optimize for fast installation.
19371fast_install=$enable_fast_install
19372
19373# The host system.
19374host_alias=$host_alias
19375host=$host
19376host_os=$host_os
19377
19378# The build system.
19379build_alias=$build_alias
19380build=$build
19381build_os=$build_os
19382
19383# An echo program that does not interpret backslashes.
19384echo=$lt_echo
19385
19386# The archiver.
19387AR=$lt_AR
19388AR_FLAGS=$lt_AR_FLAGS
19389
19390# A C compiler.
19391LTCC=$lt_LTCC
19392
19393# LTCC compiler flags.
19394LTCFLAGS=$lt_LTCFLAGS
19395
19396# A language-specific compiler.
19397CC=$lt_compiler_RC
19398
19399# Is the compiler the GNU C compiler?
19400with_gcc=$GCC_RC
19401
19402# An ERE matcher.
19403EGREP=$lt_EGREP
19404
19405# The linker used to build libraries.
19406LD=$lt_LD_RC
19407
19408# Whether we need hard or soft links.
19409LN_S=$lt_LN_S
19410
19411# A BSD-compatible nm program.
19412NM=$lt_NM
19413
19414# A symbol stripping program
19415STRIP=$lt_STRIP
19416
19417# Used to examine libraries when file_magic_cmd begins "file"
19418MAGIC_CMD=$MAGIC_CMD
19419
19420# Used on cygwin: DLL creation program.
19421DLLTOOL="$DLLTOOL"
19422
19423# Used on cygwin: object dumper.
19424OBJDUMP="$OBJDUMP"
19425
19426# Used on cygwin: assembler.
19427AS="$AS"
19428
19429# The name of the directory that contains temporary libtool files.
19430objdir=$objdir
19431
19432# How to create reloadable object files.
19433reload_flag=$lt_reload_flag
19434reload_cmds=$lt_reload_cmds
19435
19436# How to pass a linker flag through the compiler.
19437wl=$lt_lt_prog_compiler_wl_RC
19438
19439# Object file suffix (normally "o").
19440objext="$ac_objext"
19441
19442# Old archive suffix (normally "a").
19443libext="$libext"
19444
19445# Shared library suffix (normally ".so").
19446shrext_cmds='$shrext_cmds'
19447
19448# Executable file suffix (normally "").
19449exeext="$exeext"
19450
19451# Additional compiler flags for building library objects.
19452pic_flag=$lt_lt_prog_compiler_pic_RC
19453pic_mode=$pic_mode
19454
19455# What is the maximum length of a command?
19456max_cmd_len=$lt_cv_sys_max_cmd_len
19457
19458# Does compiler simultaneously support -c and -o options?
19459compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19460
19461# Must we lock files when doing compilation?
19462need_locks=$lt_need_locks
19463
19464# Do we need the lib prefix for modules?
19465need_lib_prefix=$need_lib_prefix
19466
19467# Do we need a version for libraries?
19468need_version=$need_version
19469
19470# Whether dlopen is supported.
19471dlopen_support=$enable_dlopen
19472
19473# Whether dlopen of programs is supported.
19474dlopen_self=$enable_dlopen_self
19475
19476# Whether dlopen of statically linked programs is supported.
19477dlopen_self_static=$enable_dlopen_self_static
19478
19479# Compiler flag to prevent dynamic linking.
19480link_static_flag=$lt_lt_prog_compiler_static_RC
19481
19482# Compiler flag to turn off builtin functions.
19483no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19484
19485# Compiler flag to allow reflexive dlopens.
19486export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19487
19488# Compiler flag to generate shared objects directly from archives.
19489whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19490
19491# Compiler flag to generate thread-safe objects.
19492thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19493
19494# Library versioning type.
19495version_type=$version_type
19496
19497# Format of library name prefix.
19498libname_spec=$lt_libname_spec
19499
19500# List of archive names.  First name is the real one, the rest are links.
19501# The last name is the one that the linker finds with -lNAME.
19502library_names_spec=$lt_library_names_spec
19503
19504# The coded name of the library, if different from the real name.
19505soname_spec=$lt_soname_spec
19506
19507# Commands used to build and install an old-style archive.
19508RANLIB=$lt_RANLIB
19509old_archive_cmds=$lt_old_archive_cmds_RC
19510old_postinstall_cmds=$lt_old_postinstall_cmds
19511old_postuninstall_cmds=$lt_old_postuninstall_cmds
19512
19513# Create an old-style archive from a shared archive.
19514old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19515
19516# Create a temporary old-style archive to link instead of a shared archive.
19517old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19518
19519# Commands used to build and install a shared archive.
19520archive_cmds=$lt_archive_cmds_RC
19521archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19522postinstall_cmds=$lt_postinstall_cmds
19523postuninstall_cmds=$lt_postuninstall_cmds
19524
19525# Commands used to build a loadable module (assumed same as above if empty)
19526module_cmds=$lt_module_cmds_RC
19527module_expsym_cmds=$lt_module_expsym_cmds_RC
19528
19529# Commands to strip libraries.
19530old_striplib=$lt_old_striplib
19531striplib=$lt_striplib
19532
19533# Dependencies to place before the objects being linked to create a
19534# shared library.
19535predep_objects=$lt_predep_objects_RC
19536
19537# Dependencies to place after the objects being linked to create a
19538# shared library.
19539postdep_objects=$lt_postdep_objects_RC
19540
19541# Dependencies to place before the objects being linked to create a
19542# shared library.
19543predeps=$lt_predeps_RC
19544
19545# Dependencies to place after the objects being linked to create a
19546# shared library.
19547postdeps=$lt_postdeps_RC
19548
19549# The directories searched by this compiler when creating a shared
19550# library
19551compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19552
19553# The library search path used internally by the compiler when linking
19554# a shared library.
19555compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19556
19557# Method to check whether dependent libraries are shared objects.
19558deplibs_check_method=$lt_deplibs_check_method
19559
19560# Command to use when deplibs_check_method == file_magic.
19561file_magic_cmd=$lt_file_magic_cmd
19562
19563# Flag that allows shared libraries with undefined symbols to be built.
19564allow_undefined_flag=$lt_allow_undefined_flag_RC
19565
19566# Flag that forces no undefined symbols.
19567no_undefined_flag=$lt_no_undefined_flag_RC
19568
19569# Commands used to finish a libtool library installation in a directory.
19570finish_cmds=$lt_finish_cmds
19571
19572# Same as above, but a single script fragment to be evaled but not shown.
19573finish_eval=$lt_finish_eval
19574
19575# Take the output of nm and produce a listing of raw symbols and C names.
19576global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19577
19578# Transform the output of nm in a proper C declaration
19579global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19580
19581# Transform the output of nm in a C name address pair
19582global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19583
19584# This is the shared library runtime path variable.
19585runpath_var=$runpath_var
19586
19587# This is the shared library path variable.
19588shlibpath_var=$shlibpath_var
19589
19590# Is shlibpath searched before the hard-coded library search path?
19591shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19592
19593# How to hardcode a shared library path into an executable.
19594hardcode_action=$hardcode_action_RC
19595
19596# Whether we should hardcode library paths into libraries.
19597hardcode_into_libs=$hardcode_into_libs
19598
19599# Flag to hardcode \$libdir into a binary during linking.
19600# This must work even if \$libdir does not exist.
19601hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19602
19603# If ld is used when linking, flag to hardcode \$libdir into
19604# a binary during linking. This must work even if \$libdir does
19605# not exist.
19606hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19607
19608# Whether we need a single -rpath flag with a separated argument.
19609hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19610
19611# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19612# resulting binary.
19613hardcode_direct=$hardcode_direct_RC
19614
19615# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19616# resulting binary.
19617hardcode_minus_L=$hardcode_minus_L_RC
19618
19619# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19620# the resulting binary.
19621hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19622
19623# Set to yes if building a shared library automatically hardcodes DIR into the library
19624# and all subsequent libraries and executables linked against it.
19625hardcode_automatic=$hardcode_automatic_RC
19626
19627# Variables whose values should be saved in libtool wrapper scripts and
19628# restored at relink time.
19629variables_saved_for_relink="$variables_saved_for_relink"
19630
19631# Whether libtool must link a program against all its dependency libraries.
19632link_all_deplibs=$link_all_deplibs_RC
19633
19634# Compile-time system search path for libraries
19635sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19636
19637# Run-time system search path for libraries
19638sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19639
19640# Fix the shell variable \$srcfile for the compiler.
19641fix_srcfile_path=$lt_fix_srcfile_path
19642
19643# Set to yes if exported symbols are required.
19644always_export_symbols=$always_export_symbols_RC
19645
19646# The commands to list exported symbols.
19647export_symbols_cmds=$lt_export_symbols_cmds_RC
19648
19649# The commands to extract the exported symbol list from a shared archive.
19650extract_expsyms_cmds=$lt_extract_expsyms_cmds
19651
19652# Symbols that should not be listed in the preloaded symbols.
19653exclude_expsyms=$lt_exclude_expsyms_RC
19654
19655# Symbols that must always be exported.
19656include_expsyms=$lt_include_expsyms_RC
19657
19658# ### END LIBTOOL TAG CONFIG: $tagname
19659
19660__EOF__
19661
19662
19663else
19664  # If there is no Makefile yet, we rely on a make rule to execute
19665  # `config.status --recheck' to rerun these tests and create the
19666  # libtool script then.
19667  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19668  if test -f "$ltmain_in"; then
19669    test -f Makefile && make "$ltmain"
19670  fi
19671fi
19672
19673
19674ac_ext=c
19675ac_cpp='$CPP $CPPFLAGS'
19676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19678ac_compiler_gnu=$ac_cv_c_compiler_gnu
19679
19680CC="$lt_save_CC"
19681
19682	;;
19683
19684      *)
19685	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19686echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19687   { (exit 1); exit 1; }; }
19688	;;
19689      esac
19690
19691      # Append the new tag name to the list of available tags.
19692      if test -n "$tagname" ; then
19693      available_tags="$available_tags $tagname"
19694    fi
19695    fi
19696  done
19697  IFS="$lt_save_ifs"
19698
19699  # Now substitute the updated list of available tags.
19700  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19701    mv "${ofile}T" "$ofile"
19702    chmod +x "$ofile"
19703  else
19704    rm -f "${ofile}T"
19705    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19706echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19707   { (exit 1); exit 1; }; }
19708  fi
19709fi
19710
19711
19712
19713# This can be used to rebuild libtool when needed
19714LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19715
19716# Always use our own libtool.
19717LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19718
19719# Prevent multiple expansion
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742ac_ext=cpp
19743ac_cpp='$CXXCPP $CPPFLAGS'
19744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19747
19748ac_config_files="$ac_config_files Makefile"
19749
19750
19751{ echo "$as_me:$LINENO: checking for main in -ldbi" >&5
19752echo $ECHO_N "checking for main in -ldbi... $ECHO_C" >&6; }
19753if test "${ac_cv_lib_dbi_main+set}" = set; then
19754  echo $ECHO_N "(cached) $ECHO_C" >&6
19755else
19756  ac_check_lib_save_LIBS=$LIBS
19757LIBS="-ldbi  $LIBS"
19758cat >conftest.$ac_ext <<_ACEOF
19759/* confdefs.h.  */
19760_ACEOF
19761cat confdefs.h >>conftest.$ac_ext
19762cat >>conftest.$ac_ext <<_ACEOF
19763/* end confdefs.h.  */
19764
19765
19766int
19767main ()
19768{
19769return main ();
19770  ;
19771  return 0;
19772}
19773_ACEOF
19774rm -f conftest.$ac_objext conftest$ac_exeext
19775if { (ac_try="$ac_link"
19776case "(($ac_try" in
19777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19778  *) ac_try_echo=$ac_try;;
19779esac
19780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19781  (eval "$ac_link") 2>conftest.er1
19782  ac_status=$?
19783  grep -v '^ *+' conftest.er1 >conftest.err
19784  rm -f conftest.er1
19785  cat conftest.err >&5
19786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787  (exit $ac_status); } && {
19788	 test -z "$ac_cxx_werror_flag" ||
19789	 test ! -s conftest.err
19790       } && test -s conftest$ac_exeext &&
19791       $as_test_x conftest$ac_exeext; then
19792  ac_cv_lib_dbi_main=yes
19793else
19794  echo "$as_me: failed program was:" >&5
19795sed 's/^/| /' conftest.$ac_ext >&5
19796
19797	ac_cv_lib_dbi_main=no
19798fi
19799
19800rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19801      conftest$ac_exeext conftest.$ac_ext
19802LIBS=$ac_check_lib_save_LIBS
19803fi
19804{ echo "$as_me:$LINENO: result: $ac_cv_lib_dbi_main" >&5
19805echo "${ECHO_T}$ac_cv_lib_dbi_main" >&6; }
19806if test $ac_cv_lib_dbi_main = yes; then
19807  cat >>confdefs.h <<_ACEOF
19808#define HAVE_LIBDBI 1
19809_ACEOF
19810
19811  LIBS="-ldbi $LIBS"
19812
19813else
19814  echo "DBI library not installed" ; exit -1
19815fi
19816
19817cat >confcache <<\_ACEOF
19818# This file is a shell script that caches the results of configure
19819# tests run on this system so they can be shared between configure
19820# scripts and configure runs, see configure's option --config-cache.
19821# It is not useful on other systems.  If it contains results you don't
19822# want to keep, you may remove or edit it.
19823#
19824# config.status only pays attention to the cache file if you give it
19825# the --recheck option to rerun configure.
19826#
19827# `ac_cv_env_foo' variables (set or unset) will be overridden when
19828# loading this file, other *unset* `ac_cv_foo' will be assigned the
19829# following values.
19830
19831_ACEOF
19832
19833# The following way of writing the cache mishandles newlines in values,
19834# but we know of no workaround that is simple, portable, and efficient.
19835# So, we kill variables containing newlines.
19836# Ultrix sh set writes to stderr and can't be redirected directly,
19837# and sets the high bit in the cache file unless we assign to the vars.
19838(
19839  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19840    eval ac_val=\$$ac_var
19841    case $ac_val in #(
19842    *${as_nl}*)
19843      case $ac_var in #(
19844      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19845echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19846      esac
19847      case $ac_var in #(
19848      _ | IFS | as_nl) ;; #(
19849      *) $as_unset $ac_var ;;
19850      esac ;;
19851    esac
19852  done
19853
19854  (set) 2>&1 |
19855    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19856    *${as_nl}ac_space=\ *)
19857      # `set' does not quote correctly, so add quotes (double-quote
19858      # substitution turns \\\\ into \\, and sed turns \\ into \).
19859      sed -n \
19860	"s/'/'\\\\''/g;
19861	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19862      ;; #(
19863    *)
19864      # `set' quotes correctly as required by POSIX, so do not add quotes.
19865      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19866      ;;
19867    esac |
19868    sort
19869) |
19870  sed '
19871     /^ac_cv_env_/b end
19872     t clear
19873     :clear
19874     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19875     t end
19876     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19877     :end' >>confcache
19878if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19879  if test -w "$cache_file"; then
19880    test "x$cache_file" != "x/dev/null" &&
19881      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19882echo "$as_me: updating cache $cache_file" >&6;}
19883    cat confcache >$cache_file
19884  else
19885    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19886echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19887  fi
19888fi
19889rm -f confcache
19890
19891test "x$prefix" = xNONE && prefix=$ac_default_prefix
19892# Let make expand exec_prefix.
19893test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19894
19895# Transform confdefs.h into DEFS.
19896# Protect against shell expansion while executing Makefile rules.
19897# Protect against Makefile macro expansion.
19898#
19899# If the first sed substitution is executed (which looks for macros that
19900# take arguments), then branch to the quote section.  Otherwise,
19901# look for a macro that doesn't take arguments.
19902ac_script='
19903t clear
19904:clear
19905s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
19906t quote
19907s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
19908t quote
19909b any
19910:quote
19911s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19912s/\[/\\&/g
19913s/\]/\\&/g
19914s/\$/$$/g
19915H
19916:any
19917${
19918	g
19919	s/^\n//
19920	s/\n/ /g
19921	p
19922}
19923'
19924DEFS=`sed -n "$ac_script" confdefs.h`
19925
19926
19927ac_libobjs=
19928ac_ltlibobjs=
19929for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19930  # 1. Remove the extension, and $U if already installed.
19931  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19932  ac_i=`echo "$ac_i" | sed "$ac_script"`
19933  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19934  #    will be set to the directory where LIBOBJS objects are built.
19935  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19936  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19937done
19938LIBOBJS=$ac_libobjs
19939
19940LTLIBOBJS=$ac_ltlibobjs
19941
19942
19943if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19944  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19945Usually this means the macro was only invoked conditionally." >&5
19946echo "$as_me: error: conditional \"AMDEP\" was never defined.
19947Usually this means the macro was only invoked conditionally." >&2;}
19948   { (exit 1); exit 1; }; }
19949fi
19950if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19951  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19952Usually this means the macro was only invoked conditionally." >&5
19953echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19954Usually this means the macro was only invoked conditionally." >&2;}
19955   { (exit 1); exit 1; }; }
19956fi
19957if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19958  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19959Usually this means the macro was only invoked conditionally." >&5
19960echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19961Usually this means the macro was only invoked conditionally." >&2;}
19962   { (exit 1); exit 1; }; }
19963fi
19964
19965: ${CONFIG_STATUS=./config.status}
19966ac_clean_files_save=$ac_clean_files
19967ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19968{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19969echo "$as_me: creating $CONFIG_STATUS" >&6;}
19970cat >$CONFIG_STATUS <<_ACEOF
19971#! $SHELL
19972# Generated by $as_me.
19973# Run this file to recreate the current configuration.
19974# Compiler output produced by configure, useful for debugging
19975# configure, is in config.log if it exists.
19976
19977debug=false
19978ac_cs_recheck=false
19979ac_cs_silent=false
19980SHELL=\${CONFIG_SHELL-$SHELL}
19981_ACEOF
19982
19983cat >>$CONFIG_STATUS <<\_ACEOF
19984## --------------------- ##
19985## M4sh Initialization.  ##
19986## --------------------- ##
19987
19988# Be more Bourne compatible
19989DUALCASE=1; export DUALCASE # for MKS sh
19990if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19991  emulate sh
19992  NULLCMD=:
19993  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19994  # is contrary to our usage.  Disable this feature.
19995  alias -g '${1+"$@"}'='"$@"'
19996  setopt NO_GLOB_SUBST
19997else
19998  case `(set -o) 2>/dev/null` in
19999  *posix*) set -o posix ;;
20000esac
20001
20002fi
20003
20004
20005
20006
20007# PATH needs CR
20008# Avoid depending upon Character Ranges.
20009as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20010as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20011as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20012as_cr_digits='0123456789'
20013as_cr_alnum=$as_cr_Letters$as_cr_digits
20014
20015# The user is always right.
20016if test "${PATH_SEPARATOR+set}" != set; then
20017  echo "#! /bin/sh" >conf$$.sh
20018  echo  "exit 0"   >>conf$$.sh
20019  chmod +x conf$$.sh
20020  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20021    PATH_SEPARATOR=';'
20022  else
20023    PATH_SEPARATOR=:
20024  fi
20025  rm -f conf$$.sh
20026fi
20027
20028# Support unset when possible.
20029if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20030  as_unset=unset
20031else
20032  as_unset=false
20033fi
20034
20035
20036# IFS
20037# We need space, tab and new line, in precisely that order.  Quoting is
20038# there to prevent editors from complaining about space-tab.
20039# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20040# splitting by setting IFS to empty value.)
20041as_nl='
20042'
20043IFS=" ""	$as_nl"
20044
20045# Find who we are.  Look in the path if we contain no directory separator.
20046case $0 in
20047  *[\\/]* ) as_myself=$0 ;;
20048  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20049for as_dir in $PATH
20050do
20051  IFS=$as_save_IFS
20052  test -z "$as_dir" && as_dir=.
20053  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20054done
20055IFS=$as_save_IFS
20056
20057     ;;
20058esac
20059# We did not find ourselves, most probably we were run as `sh COMMAND'
20060# in which case we are not to be found in the path.
20061if test "x$as_myself" = x; then
20062  as_myself=$0
20063fi
20064if test ! -f "$as_myself"; then
20065  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20066  { (exit 1); exit 1; }
20067fi
20068
20069# Work around bugs in pre-3.0 UWIN ksh.
20070for as_var in ENV MAIL MAILPATH
20071do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20072done
20073PS1='$ '
20074PS2='> '
20075PS4='+ '
20076
20077# NLS nuisances.
20078for as_var in \
20079  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20080  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20081  LC_TELEPHONE LC_TIME
20082do
20083  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20084    eval $as_var=C; export $as_var
20085  else
20086    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20087  fi
20088done
20089
20090# Required to use basename.
20091if expr a : '\(a\)' >/dev/null 2>&1 &&
20092   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20093  as_expr=expr
20094else
20095  as_expr=false
20096fi
20097
20098if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20099  as_basename=basename
20100else
20101  as_basename=false
20102fi
20103
20104
20105# Name of the executable.
20106as_me=`$as_basename -- "$0" ||
20107$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20108	 X"$0" : 'X\(//\)$' \| \
20109	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20110echo X/"$0" |
20111    sed '/^.*\/\([^/][^/]*\)\/*$/{
20112	    s//\1/
20113	    q
20114	  }
20115	  /^X\/\(\/\/\)$/{
20116	    s//\1/
20117	    q
20118	  }
20119	  /^X\/\(\/\).*/{
20120	    s//\1/
20121	    q
20122	  }
20123	  s/.*/./; q'`
20124
20125# CDPATH.
20126$as_unset CDPATH
20127
20128
20129
20130  as_lineno_1=$LINENO
20131  as_lineno_2=$LINENO
20132  test "x$as_lineno_1" != "x$as_lineno_2" &&
20133  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20134
20135  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20136  # uniformly replaced by the line number.  The first 'sed' inserts a
20137  # line-number line after each line using $LINENO; the second 'sed'
20138  # does the real work.  The second script uses 'N' to pair each
20139  # line-number line with the line containing $LINENO, and appends
20140  # trailing '-' during substitution so that $LINENO is not a special
20141  # case at line end.
20142  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20143  # scripts with optimization help from Paolo Bonzini.  Blame Lee
20144  # E. McMahon (1931-1989) for sed's syntax.  :-)
20145  sed -n '
20146    p
20147    /[$]LINENO/=
20148  ' <$as_myself |
20149    sed '
20150      s/[$]LINENO.*/&-/
20151      t lineno
20152      b
20153      :lineno
20154      N
20155      :loop
20156      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20157      t loop
20158      s/-\n.*//
20159    ' >$as_me.lineno &&
20160  chmod +x "$as_me.lineno" ||
20161    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20162   { (exit 1); exit 1; }; }
20163
20164  # Don't try to exec as it changes $[0], causing all sort of problems
20165  # (the dirname of $[0] is not the place where we might find the
20166  # original and so on.  Autoconf is especially sensitive to this).
20167  . "./$as_me.lineno"
20168  # Exit status is that of the last command.
20169  exit
20170}
20171
20172
20173if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20174  as_dirname=dirname
20175else
20176  as_dirname=false
20177fi
20178
20179ECHO_C= ECHO_N= ECHO_T=
20180case `echo -n x` in
20181-n*)
20182  case `echo 'x\c'` in
20183  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20184  *)   ECHO_C='\c';;
20185  esac;;
20186*)
20187  ECHO_N='-n';;
20188esac
20189
20190if expr a : '\(a\)' >/dev/null 2>&1 &&
20191   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20192  as_expr=expr
20193else
20194  as_expr=false
20195fi
20196
20197rm -f conf$$ conf$$.exe conf$$.file
20198if test -d conf$$.dir; then
20199  rm -f conf$$.dir/conf$$.file
20200else
20201  rm -f conf$$.dir
20202  mkdir conf$$.dir
20203fi
20204echo >conf$$.file
20205if ln -s conf$$.file conf$$ 2>/dev/null; then
20206  as_ln_s='ln -s'
20207  # ... but there are two gotchas:
20208  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20209  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20210  # In both cases, we have to default to `cp -p'.
20211  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20212    as_ln_s='cp -p'
20213elif ln conf$$.file conf$$ 2>/dev/null; then
20214  as_ln_s=ln
20215else
20216  as_ln_s='cp -p'
20217fi
20218rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20219rmdir conf$$.dir 2>/dev/null
20220
20221if mkdir -p . 2>/dev/null; then
20222  as_mkdir_p=:
20223else
20224  test -d ./-p && rmdir ./-p
20225  as_mkdir_p=false
20226fi
20227
20228if test -x / >/dev/null 2>&1; then
20229  as_test_x='test -x'
20230else
20231  if ls -dL / >/dev/null 2>&1; then
20232    as_ls_L_option=L
20233  else
20234    as_ls_L_option=
20235  fi
20236  as_test_x='
20237    eval sh -c '\''
20238      if test -d "$1"; then
20239        test -d "$1/.";
20240      else
20241	case $1 in
20242        -*)set "./$1";;
20243	esac;
20244	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20245	???[sx]*):;;*)false;;esac;fi
20246    '\'' sh
20247  '
20248fi
20249as_executable_p=$as_test_x
20250
20251# Sed expression to map a string onto a valid CPP name.
20252as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20253
20254# Sed expression to map a string onto a valid variable name.
20255as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20256
20257
20258exec 6>&1
20259
20260# Save the log message, to keep $[0] and so on meaningful, and to
20261# report actual input values of CONFIG_FILES etc. instead of their
20262# values after options handling.
20263ac_log="
20264This file was extended by dbixx $as_me 0.0.4, which was
20265generated by GNU Autoconf 2.61.  Invocation command line was
20266
20267  CONFIG_FILES    = $CONFIG_FILES
20268  CONFIG_HEADERS  = $CONFIG_HEADERS
20269  CONFIG_LINKS    = $CONFIG_LINKS
20270  CONFIG_COMMANDS = $CONFIG_COMMANDS
20271  $ $0 $@
20272
20273on `(hostname || uname -n) 2>/dev/null | sed 1q`
20274"
20275
20276_ACEOF
20277
20278cat >>$CONFIG_STATUS <<_ACEOF
20279# Files that config.status was made for.
20280config_files="$ac_config_files"
20281config_commands="$ac_config_commands"
20282
20283_ACEOF
20284
20285cat >>$CONFIG_STATUS <<\_ACEOF
20286ac_cs_usage="\
20287\`$as_me' instantiates files from templates according to the
20288current configuration.
20289
20290Usage: $0 [OPTIONS] [FILE]...
20291
20292  -h, --help       print this help, then exit
20293  -V, --version    print version number and configuration settings, then exit
20294  -q, --quiet      do not print progress messages
20295  -d, --debug      don't remove temporary files
20296      --recheck    update $as_me by reconfiguring in the same conditions
20297  --file=FILE[:TEMPLATE]
20298		   instantiate the configuration file FILE
20299
20300Configuration files:
20301$config_files
20302
20303Configuration commands:
20304$config_commands
20305
20306Report bugs to <bug-autoconf@gnu.org>."
20307
20308_ACEOF
20309cat >>$CONFIG_STATUS <<_ACEOF
20310ac_cs_version="\\
20311dbixx config.status 0.0.4
20312configured by $0, generated by GNU Autoconf 2.61,
20313  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20314
20315Copyright (C) 2006 Free Software Foundation, Inc.
20316This config.status script is free software; the Free Software Foundation
20317gives unlimited permission to copy, distribute and modify it."
20318
20319ac_pwd='$ac_pwd'
20320srcdir='$srcdir'
20321INSTALL='$INSTALL'
20322_ACEOF
20323
20324cat >>$CONFIG_STATUS <<\_ACEOF
20325# If no file are specified by the user, then we need to provide default
20326# value.  By we need to know if files were specified by the user.
20327ac_need_defaults=:
20328while test $# != 0
20329do
20330  case $1 in
20331  --*=*)
20332    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20333    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20334    ac_shift=:
20335    ;;
20336  *)
20337    ac_option=$1
20338    ac_optarg=$2
20339    ac_shift=shift
20340    ;;
20341  esac
20342
20343  case $ac_option in
20344  # Handling of the options.
20345  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20346    ac_cs_recheck=: ;;
20347  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20348    echo "$ac_cs_version"; exit ;;
20349  --debug | --debu | --deb | --de | --d | -d )
20350    debug=: ;;
20351  --file | --fil | --fi | --f )
20352    $ac_shift
20353    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20354    ac_need_defaults=false;;
20355  --he | --h |  --help | --hel | -h )
20356    echo "$ac_cs_usage"; exit ;;
20357  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20358  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20359    ac_cs_silent=: ;;
20360
20361  # This is an error.
20362  -*) { echo "$as_me: error: unrecognized option: $1
20363Try \`$0 --help' for more information." >&2
20364   { (exit 1); exit 1; }; } ;;
20365
20366  *) ac_config_targets="$ac_config_targets $1"
20367     ac_need_defaults=false ;;
20368
20369  esac
20370  shift
20371done
20372
20373ac_configure_extra_args=
20374
20375if $ac_cs_silent; then
20376  exec 6>/dev/null
20377  ac_configure_extra_args="$ac_configure_extra_args --silent"
20378fi
20379
20380_ACEOF
20381cat >>$CONFIG_STATUS <<_ACEOF
20382if \$ac_cs_recheck; then
20383  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20384  CONFIG_SHELL=$SHELL
20385  export CONFIG_SHELL
20386  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20387fi
20388
20389_ACEOF
20390cat >>$CONFIG_STATUS <<\_ACEOF
20391exec 5>>config.log
20392{
20393  echo
20394  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20395## Running $as_me. ##
20396_ASBOX
20397  echo "$ac_log"
20398} >&5
20399
20400_ACEOF
20401cat >>$CONFIG_STATUS <<_ACEOF
20402#
20403# INIT-COMMANDS
20404#
20405AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20406
20407_ACEOF
20408
20409cat >>$CONFIG_STATUS <<\_ACEOF
20410
20411# Handling of arguments.
20412for ac_config_target in $ac_config_targets
20413do
20414  case $ac_config_target in
20415    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20416    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20417
20418  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20419echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20420   { (exit 1); exit 1; }; };;
20421  esac
20422done
20423
20424
20425# If the user did not use the arguments to specify the items to instantiate,
20426# then the envvar interface is used.  Set only those that are not.
20427# We use the long form for the default assignment because of an extremely
20428# bizarre bug on SunOS 4.1.3.
20429if $ac_need_defaults; then
20430  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20431  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20432fi
20433
20434# Have a temporary directory for convenience.  Make it in the build tree
20435# simply because there is no reason against having it here, and in addition,
20436# creating and moving files from /tmp can sometimes cause problems.
20437# Hook for its removal unless debugging.
20438# Note that there is a small window in which the directory will not be cleaned:
20439# after its creation but before its name has been assigned to `$tmp'.
20440$debug ||
20441{
20442  tmp=
20443  trap 'exit_status=$?
20444  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20445' 0
20446  trap '{ (exit 1); exit 1; }' 1 2 13 15
20447}
20448# Create a (secure) tmp directory for tmp files.
20449
20450{
20451  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20452  test -n "$tmp" && test -d "$tmp"
20453}  ||
20454{
20455  tmp=./conf$$-$RANDOM
20456  (umask 077 && mkdir "$tmp")
20457} ||
20458{
20459   echo "$me: cannot create a temporary directory in ." >&2
20460   { (exit 1); exit 1; }
20461}
20462
20463#
20464# Set up the sed scripts for CONFIG_FILES section.
20465#
20466
20467# No need to generate the scripts if there are no CONFIG_FILES.
20468# This happens for instance when ./config.status config.h
20469if test -n "$CONFIG_FILES"; then
20470
20471_ACEOF
20472
20473
20474
20475ac_delim='%!_!# '
20476for ac_last_try in false false false false false :; do
20477  cat >conf$$subs.sed <<_ACEOF
20478SHELL!$SHELL$ac_delim
20479PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20480PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20481PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20482PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20483PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20484PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20485exec_prefix!$exec_prefix$ac_delim
20486prefix!$prefix$ac_delim
20487program_transform_name!$program_transform_name$ac_delim
20488bindir!$bindir$ac_delim
20489sbindir!$sbindir$ac_delim
20490libexecdir!$libexecdir$ac_delim
20491datarootdir!$datarootdir$ac_delim
20492datadir!$datadir$ac_delim
20493sysconfdir!$sysconfdir$ac_delim
20494sharedstatedir!$sharedstatedir$ac_delim
20495localstatedir!$localstatedir$ac_delim
20496includedir!$includedir$ac_delim
20497oldincludedir!$oldincludedir$ac_delim
20498docdir!$docdir$ac_delim
20499infodir!$infodir$ac_delim
20500htmldir!$htmldir$ac_delim
20501dvidir!$dvidir$ac_delim
20502pdfdir!$pdfdir$ac_delim
20503psdir!$psdir$ac_delim
20504libdir!$libdir$ac_delim
20505localedir!$localedir$ac_delim
20506mandir!$mandir$ac_delim
20507DEFS!$DEFS$ac_delim
20508ECHO_C!$ECHO_C$ac_delim
20509ECHO_N!$ECHO_N$ac_delim
20510ECHO_T!$ECHO_T$ac_delim
20511LIBS!$LIBS$ac_delim
20512build_alias!$build_alias$ac_delim
20513host_alias!$host_alias$ac_delim
20514target_alias!$target_alias$ac_delim
20515INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20516INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20517INSTALL_DATA!$INSTALL_DATA$ac_delim
20518CYGPATH_W!$CYGPATH_W$ac_delim
20519PACKAGE!$PACKAGE$ac_delim
20520VERSION!$VERSION$ac_delim
20521ACLOCAL!$ACLOCAL$ac_delim
20522AUTOCONF!$AUTOCONF$ac_delim
20523AUTOMAKE!$AUTOMAKE$ac_delim
20524AUTOHEADER!$AUTOHEADER$ac_delim
20525MAKEINFO!$MAKEINFO$ac_delim
20526install_sh!$install_sh$ac_delim
20527STRIP!$STRIP$ac_delim
20528INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20529mkdir_p!$mkdir_p$ac_delim
20530AWK!$AWK$ac_delim
20531SET_MAKE!$SET_MAKE$ac_delim
20532am__leading_dot!$am__leading_dot$ac_delim
20533AMTAR!$AMTAR$ac_delim
20534am__tar!$am__tar$ac_delim
20535am__untar!$am__untar$ac_delim
20536CXX!$CXX$ac_delim
20537CXXFLAGS!$CXXFLAGS$ac_delim
20538LDFLAGS!$LDFLAGS$ac_delim
20539CPPFLAGS!$CPPFLAGS$ac_delim
20540ac_ct_CXX!$ac_ct_CXX$ac_delim
20541EXEEXT!$EXEEXT$ac_delim
20542OBJEXT!$OBJEXT$ac_delim
20543DEPDIR!$DEPDIR$ac_delim
20544am__include!$am__include$ac_delim
20545am__quote!$am__quote$ac_delim
20546AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20547AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20548AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20549CXXDEPMODE!$CXXDEPMODE$ac_delim
20550am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20551am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20552build!$build$ac_delim
20553build_cpu!$build_cpu$ac_delim
20554build_vendor!$build_vendor$ac_delim
20555build_os!$build_os$ac_delim
20556host!$host$ac_delim
20557host_cpu!$host_cpu$ac_delim
20558host_vendor!$host_vendor$ac_delim
20559host_os!$host_os$ac_delim
20560CC!$CC$ac_delim
20561CFLAGS!$CFLAGS$ac_delim
20562ac_ct_CC!$ac_ct_CC$ac_delim
20563CCDEPMODE!$CCDEPMODE$ac_delim
20564am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20565am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20566SED!$SED$ac_delim
20567GREP!$GREP$ac_delim
20568EGREP!$EGREP$ac_delim
20569LN_S!$LN_S$ac_delim
20570ECHO!$ECHO$ac_delim
20571AR!$AR$ac_delim
20572RANLIB!$RANLIB$ac_delim
20573DSYMUTIL!$DSYMUTIL$ac_delim
20574NMEDIT!$NMEDIT$ac_delim
20575_ACEOF
20576
20577  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20578    break
20579  elif $ac_last_try; then
20580    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20581echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20582   { (exit 1); exit 1; }; }
20583  else
20584    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20585  fi
20586done
20587
20588ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20589if test -n "$ac_eof"; then
20590  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20591  ac_eof=`expr $ac_eof + 1`
20592fi
20593
20594cat >>$CONFIG_STATUS <<_ACEOF
20595cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20596/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20597_ACEOF
20598sed '
20599s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20600s/^/s,@/; s/!/@,|#_!!_#|/
20601:n
20602t n
20603s/'"$ac_delim"'$/,g/; t
20604s/$/\\/; p
20605N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20606' >>$CONFIG_STATUS <conf$$subs.sed
20607rm -f conf$$subs.sed
20608cat >>$CONFIG_STATUS <<_ACEOF
20609CEOF$ac_eof
20610_ACEOF
20611
20612
20613ac_delim='%!_!# '
20614for ac_last_try in false false false false false :; do
20615  cat >conf$$subs.sed <<_ACEOF
20616CPP!$CPP$ac_delim
20617CXXCPP!$CXXCPP$ac_delim
20618F77!$F77$ac_delim
20619FFLAGS!$FFLAGS$ac_delim
20620ac_ct_F77!$ac_ct_F77$ac_delim
20621LIBTOOL!$LIBTOOL$ac_delim
20622LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
20623LIBOBJS!$LIBOBJS$ac_delim
20624LTLIBOBJS!$LTLIBOBJS$ac_delim
20625_ACEOF
20626
20627  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
20628    break
20629  elif $ac_last_try; then
20630    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20631echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20632   { (exit 1); exit 1; }; }
20633  else
20634    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20635  fi
20636done
20637
20638ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20639if test -n "$ac_eof"; then
20640  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20641  ac_eof=`expr $ac_eof + 1`
20642fi
20643
20644cat >>$CONFIG_STATUS <<_ACEOF
20645cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20646/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20647_ACEOF
20648sed '
20649s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20650s/^/s,@/; s/!/@,|#_!!_#|/
20651:n
20652t n
20653s/'"$ac_delim"'$/,g/; t
20654s/$/\\/; p
20655N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20656' >>$CONFIG_STATUS <conf$$subs.sed
20657rm -f conf$$subs.sed
20658cat >>$CONFIG_STATUS <<_ACEOF
20659:end
20660s/|#_!!_#|//g
20661CEOF$ac_eof
20662_ACEOF
20663
20664
20665# VPATH may cause trouble with some makes, so we remove $(srcdir),
20666# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20667# trailing colons and then remove the whole line if VPATH becomes empty
20668# (actually we leave an empty line to preserve line numbers).
20669if test "x$srcdir" = x.; then
20670  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20671s/:*\$(srcdir):*/:/
20672s/:*\${srcdir}:*/:/
20673s/:*@srcdir@:*/:/
20674s/^\([^=]*=[	 ]*\):*/\1/
20675s/:*$//
20676s/^[^=]*=[	 ]*$//
20677}'
20678fi
20679
20680cat >>$CONFIG_STATUS <<\_ACEOF
20681fi # test -n "$CONFIG_FILES"
20682
20683
20684for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
20685do
20686  case $ac_tag in
20687  :[FHLC]) ac_mode=$ac_tag; continue;;
20688  esac
20689  case $ac_mode$ac_tag in
20690  :[FHL]*:*);;
20691  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20692echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20693   { (exit 1); exit 1; }; };;
20694  :[FH]-) ac_tag=-:-;;
20695  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20696  esac
20697  ac_save_IFS=$IFS
20698  IFS=:
20699  set x $ac_tag
20700  IFS=$ac_save_IFS
20701  shift
20702  ac_file=$1
20703  shift
20704
20705  case $ac_mode in
20706  :L) ac_source=$1;;
20707  :[FH])
20708    ac_file_inputs=
20709    for ac_f
20710    do
20711      case $ac_f in
20712      -) ac_f="$tmp/stdin";;
20713      *) # Look for the file first in the build tree, then in the source tree
20714	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20715	 # because $ac_f cannot contain `:'.
20716	 test -f "$ac_f" ||
20717	   case $ac_f in
20718	   [\\/$]*) false;;
20719	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20720	   esac ||
20721	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20722echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20723   { (exit 1); exit 1; }; };;
20724      esac
20725      ac_file_inputs="$ac_file_inputs $ac_f"
20726    done
20727
20728    # Let's still pretend it is `configure' which instantiates (i.e., don't
20729    # use $as_me), people would be surprised to read:
20730    #    /* config.h.  Generated by config.status.  */
20731    configure_input="Generated from "`IFS=:
20732	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20733    if test x"$ac_file" != x-; then
20734      configure_input="$ac_file.  $configure_input"
20735      { echo "$as_me:$LINENO: creating $ac_file" >&5
20736echo "$as_me: creating $ac_file" >&6;}
20737    fi
20738
20739    case $ac_tag in
20740    *:-:* | *:-) cat >"$tmp/stdin";;
20741    esac
20742    ;;
20743  esac
20744
20745  ac_dir=`$as_dirname -- "$ac_file" ||
20746$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20747	 X"$ac_file" : 'X\(//\)[^/]' \| \
20748	 X"$ac_file" : 'X\(//\)$' \| \
20749	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20750echo X"$ac_file" |
20751    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20752	    s//\1/
20753	    q
20754	  }
20755	  /^X\(\/\/\)[^/].*/{
20756	    s//\1/
20757	    q
20758	  }
20759	  /^X\(\/\/\)$/{
20760	    s//\1/
20761	    q
20762	  }
20763	  /^X\(\/\).*/{
20764	    s//\1/
20765	    q
20766	  }
20767	  s/.*/./; q'`
20768  { as_dir="$ac_dir"
20769  case $as_dir in #(
20770  -*) as_dir=./$as_dir;;
20771  esac
20772  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20773    as_dirs=
20774    while :; do
20775      case $as_dir in #(
20776      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20777      *) as_qdir=$as_dir;;
20778      esac
20779      as_dirs="'$as_qdir' $as_dirs"
20780      as_dir=`$as_dirname -- "$as_dir" ||
20781$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20782	 X"$as_dir" : 'X\(//\)[^/]' \| \
20783	 X"$as_dir" : 'X\(//\)$' \| \
20784	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20785echo X"$as_dir" |
20786    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20787	    s//\1/
20788	    q
20789	  }
20790	  /^X\(\/\/\)[^/].*/{
20791	    s//\1/
20792	    q
20793	  }
20794	  /^X\(\/\/\)$/{
20795	    s//\1/
20796	    q
20797	  }
20798	  /^X\(\/\).*/{
20799	    s//\1/
20800	    q
20801	  }
20802	  s/.*/./; q'`
20803      test -d "$as_dir" && break
20804    done
20805    test -z "$as_dirs" || eval "mkdir $as_dirs"
20806  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20807echo "$as_me: error: cannot create directory $as_dir" >&2;}
20808   { (exit 1); exit 1; }; }; }
20809  ac_builddir=.
20810
20811case "$ac_dir" in
20812.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20813*)
20814  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20815  # A ".." for each directory in $ac_dir_suffix.
20816  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20817  case $ac_top_builddir_sub in
20818  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20819  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20820  esac ;;
20821esac
20822ac_abs_top_builddir=$ac_pwd
20823ac_abs_builddir=$ac_pwd$ac_dir_suffix
20824# for backward compatibility:
20825ac_top_builddir=$ac_top_build_prefix
20826
20827case $srcdir in
20828  .)  # We are building in place.
20829    ac_srcdir=.
20830    ac_top_srcdir=$ac_top_builddir_sub
20831    ac_abs_top_srcdir=$ac_pwd ;;
20832  [\\/]* | ?:[\\/]* )  # Absolute name.
20833    ac_srcdir=$srcdir$ac_dir_suffix;
20834    ac_top_srcdir=$srcdir
20835    ac_abs_top_srcdir=$srcdir ;;
20836  *) # Relative name.
20837    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20838    ac_top_srcdir=$ac_top_build_prefix$srcdir
20839    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20840esac
20841ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20842
20843
20844  case $ac_mode in
20845  :F)
20846  #
20847  # CONFIG_FILE
20848  #
20849
20850  case $INSTALL in
20851  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20852  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20853  esac
20854_ACEOF
20855
20856cat >>$CONFIG_STATUS <<\_ACEOF
20857# If the template does not know about datarootdir, expand it.
20858# FIXME: This hack should be removed a few years after 2.60.
20859ac_datarootdir_hack=; ac_datarootdir_seen=
20860
20861case `sed -n '/datarootdir/ {
20862  p
20863  q
20864}
20865/@datadir@/p
20866/@docdir@/p
20867/@infodir@/p
20868/@localedir@/p
20869/@mandir@/p
20870' $ac_file_inputs` in
20871*datarootdir*) ac_datarootdir_seen=yes;;
20872*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20873  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20874echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20875_ACEOF
20876cat >>$CONFIG_STATUS <<_ACEOF
20877  ac_datarootdir_hack='
20878  s&@datadir@&$datadir&g
20879  s&@docdir@&$docdir&g
20880  s&@infodir@&$infodir&g
20881  s&@localedir@&$localedir&g
20882  s&@mandir@&$mandir&g
20883    s&\\\${datarootdir}&$datarootdir&g' ;;
20884esac
20885_ACEOF
20886
20887# Neutralize VPATH when `$srcdir' = `.'.
20888# Shell code in configure.ac might set extrasub.
20889# FIXME: do we really want to maintain this feature?
20890cat >>$CONFIG_STATUS <<_ACEOF
20891  sed "$ac_vpsub
20892$extrasub
20893_ACEOF
20894cat >>$CONFIG_STATUS <<\_ACEOF
20895:t
20896/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20897s&@configure_input@&$configure_input&;t t
20898s&@top_builddir@&$ac_top_builddir_sub&;t t
20899s&@srcdir@&$ac_srcdir&;t t
20900s&@abs_srcdir@&$ac_abs_srcdir&;t t
20901s&@top_srcdir@&$ac_top_srcdir&;t t
20902s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20903s&@builddir@&$ac_builddir&;t t
20904s&@abs_builddir@&$ac_abs_builddir&;t t
20905s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20906s&@INSTALL@&$ac_INSTALL&;t t
20907$ac_datarootdir_hack
20908" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20909
20910test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20911  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20912  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20913  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20914which seems to be undefined.  Please make sure it is defined." >&5
20915echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20916which seems to be undefined.  Please make sure it is defined." >&2;}
20917
20918  rm -f "$tmp/stdin"
20919  case $ac_file in
20920  -) cat "$tmp/out"; rm -f "$tmp/out";;
20921  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20922  esac
20923 ;;
20924
20925
20926  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20927echo "$as_me: executing $ac_file commands" >&6;}
20928 ;;
20929  esac
20930
20931
20932  case $ac_file$ac_mode in
20933    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20934  # Strip MF so we end up with the name of the file.
20935  mf=`echo "$mf" | sed -e 's/:.*$//'`
20936  # Check whether this is an Automake generated Makefile or not.
20937  # We used to match only the files named `Makefile.in', but
20938  # some people rename them; so instead we look at the file content.
20939  # Grep'ing the first line is not enough: some people post-process
20940  # each Makefile.in and add a new line on top of each file to say so.
20941  # So let's grep whole file.
20942  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20943    dirpart=`$as_dirname -- "$mf" ||
20944$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20945	 X"$mf" : 'X\(//\)[^/]' \| \
20946	 X"$mf" : 'X\(//\)$' \| \
20947	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20948echo X"$mf" |
20949    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20950	    s//\1/
20951	    q
20952	  }
20953	  /^X\(\/\/\)[^/].*/{
20954	    s//\1/
20955	    q
20956	  }
20957	  /^X\(\/\/\)$/{
20958	    s//\1/
20959	    q
20960	  }
20961	  /^X\(\/\).*/{
20962	    s//\1/
20963	    q
20964	  }
20965	  s/.*/./; q'`
20966  else
20967    continue
20968  fi
20969  # Extract the definition of DEPDIR, am__include, and am__quote
20970  # from the Makefile without running `make'.
20971  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20972  test -z "$DEPDIR" && continue
20973  am__include=`sed -n 's/^am__include = //p' < "$mf"`
20974  test -z "am__include" && continue
20975  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20976  # When using ansi2knr, U may be empty or an underscore; expand it
20977  U=`sed -n 's/^U = //p' < "$mf"`
20978  # Find all dependency output files, they are included files with
20979  # $(DEPDIR) in their names.  We invoke sed twice because it is the
20980  # simplest approach to changing $(DEPDIR) to its actual value in the
20981  # expansion.
20982  for file in `sed -n "
20983    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20984       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20985    # Make sure the directory exists.
20986    test -f "$dirpart/$file" && continue
20987    fdir=`$as_dirname -- "$file" ||
20988$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20989	 X"$file" : 'X\(//\)[^/]' \| \
20990	 X"$file" : 'X\(//\)$' \| \
20991	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20992echo X"$file" |
20993    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20994	    s//\1/
20995	    q
20996	  }
20997	  /^X\(\/\/\)[^/].*/{
20998	    s//\1/
20999	    q
21000	  }
21001	  /^X\(\/\/\)$/{
21002	    s//\1/
21003	    q
21004	  }
21005	  /^X\(\/\).*/{
21006	    s//\1/
21007	    q
21008	  }
21009	  s/.*/./; q'`
21010    { as_dir=$dirpart/$fdir
21011  case $as_dir in #(
21012  -*) as_dir=./$as_dir;;
21013  esac
21014  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21015    as_dirs=
21016    while :; do
21017      case $as_dir in #(
21018      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21019      *) as_qdir=$as_dir;;
21020      esac
21021      as_dirs="'$as_qdir' $as_dirs"
21022      as_dir=`$as_dirname -- "$as_dir" ||
21023$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21024	 X"$as_dir" : 'X\(//\)[^/]' \| \
21025	 X"$as_dir" : 'X\(//\)$' \| \
21026	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21027echo X"$as_dir" |
21028    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21029	    s//\1/
21030	    q
21031	  }
21032	  /^X\(\/\/\)[^/].*/{
21033	    s//\1/
21034	    q
21035	  }
21036	  /^X\(\/\/\)$/{
21037	    s//\1/
21038	    q
21039	  }
21040	  /^X\(\/\).*/{
21041	    s//\1/
21042	    q
21043	  }
21044	  s/.*/./; q'`
21045      test -d "$as_dir" && break
21046    done
21047    test -z "$as_dirs" || eval "mkdir $as_dirs"
21048  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21049echo "$as_me: error: cannot create directory $as_dir" >&2;}
21050   { (exit 1); exit 1; }; }; }
21051    # echo "creating $dirpart/$file"
21052    echo '# dummy' > "$dirpart/$file"
21053  done
21054done
21055 ;;
21056
21057  esac
21058done # for ac_tag
21059
21060
21061{ (exit 0); exit 0; }
21062_ACEOF
21063chmod +x $CONFIG_STATUS
21064ac_clean_files=$ac_clean_files_save
21065
21066
21067# configure is writing to config.log, and then calls config.status.
21068# config.status does its own redirection, appending to config.log.
21069# Unfortunately, on DOS this fails, as config.log is still kept open
21070# by configure, so config.status won't be able to write to it; its
21071# output is simply discarded.  So we exec the FD to /dev/null,
21072# effectively closing config.log, so it can be properly (re)opened and
21073# appended to by config.status.  When coming back to configure, we
21074# need to make the FD available again.
21075if test "$no_create" != yes; then
21076  ac_cs_success=:
21077  ac_config_status_args=
21078  test "$silent" = yes &&
21079    ac_config_status_args="$ac_config_status_args --quiet"
21080  exec 5>/dev/null
21081  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21082  exec 5>>config.log
21083  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21084  # would make configure fail if this is the last instruction.
21085  $ac_cs_success || { (exit 1); exit 1; }
21086fi
21087
21088