• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/gettext-0.17/autoconf-lib-link/tests/rpathx/
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241  emulate sh
242  NULLCMD=:
243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244  # is contrary to our usage.  Disable this feature.
245  alias -g '${1+"$@"}'='"$@"'
246  setopt NO_GLOB_SUBST
247else
248  case `(set -o) 2>/dev/null` in
249  *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258  CONFIG_SHELL=$as_shell
259	       as_have_required=yes
260	       if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278  (exit $1)
279}
280as_func_success () {
281  as_func_return 0
282}
283as_func_failure () {
284  as_func_return 1
285}
286as_func_ret_success () {
287  return 0
288}
289as_func_ret_failure () {
290  return 1
291}
292
293exitcode=0
294if as_func_success; then
295  :
296else
297  exitcode=1
298  echo as_func_success failed.
299fi
300
301if as_func_failure; then
302  exitcode=1
303  echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307  :
308else
309  exitcode=1
310  echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314  exitcode=1
315  echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319  :
320else
321  exitcode=1
322  echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328  as_lineno_1=$LINENO
329  as_lineno_2=$LINENO
330  test "x$as_lineno_1" != "x$as_lineno_2" &&
331  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335  break
336fi
337
338fi
339
340      done
341
342      if test "x$CONFIG_SHELL" != x; then
343  for as_var in BASH_ENV ENV
344        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345        done
346        export CONFIG_SHELL
347        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351    if test $as_have_required = no; then
352  echo This script requires a shell more modern than all the
353      echo shells that I found on your system.  Please install a
354      echo modern shell, or manually run the script under such a
355      echo shell if you do have one.
356      { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367  (exit \$1)
368}
369as_func_success () {
370  as_func_return 0
371}
372as_func_failure () {
373  as_func_return 1
374}
375as_func_ret_success () {
376  return 0
377}
378as_func_ret_failure () {
379  return 1
380}
381
382exitcode=0
383if as_func_success; then
384  :
385else
386  exitcode=1
387  echo as_func_success failed.
388fi
389
390if as_func_failure; then
391  exitcode=1
392  echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396  :
397else
398  exitcode=1
399  echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403  exitcode=1
404  echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408  :
409else
410  exitcode=1
411  echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415  echo No shell found that supports shell functions.
416  echo Please tell autoconf@gnu.org about your system,
417  echo including any error possibly output before this
418  echo message
419}
420
421
422
423  as_lineno_1=$LINENO
424  as_lineno_2=$LINENO
425  test "x$as_lineno_1" != "x$as_lineno_2" &&
426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429  # uniformly replaced by the line number.  The first 'sed' inserts a
430  # line-number line after each line using $LINENO; the second 'sed'
431  # does the real work.  The second script uses 'N' to pair each
432  # line-number line with the line containing $LINENO, and appends
433  # trailing '-' during substitution so that $LINENO is not a special
434  # case at line end.
435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437  # E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455   { (exit 1); exit 1; }; }
456
457  # Don't try to exec as it changes $[0], causing all sort of problems
458  # (the dirname of $[0] is not the place where we might find the
459  # original and so on.  Autoconf is especially sensitive to this).
460  . "./$as_me.lineno"
461  # Exit status is that of the last command.
462  exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467  as_dirname=dirname
468else
469  as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475  case `echo 'x\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  *)   ECHO_C='\c';;
478  esac;;
479*)
480  ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485  as_expr=expr
486else
487  as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492  rm -f conf$$.dir/conf$$.file
493else
494  rm -f conf$$.dir
495  mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499  as_ln_s='ln -s'
500  # ... but there are two gotchas:
501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503  # In both cases, we have to default to `cp -p'.
504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505    as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507  as_ln_s=ln
508else
509  as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515  as_mkdir_p=:
516else
517  test -d ./-p && rmdir ./-p
518  as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522  as_test_x='test -x'
523else
524  if ls -dL / >/dev/null 2>&1; then
525    as_ls_L_option=L
526  else
527    as_ls_L_option=
528  fi
529  as_test_x='
530    eval sh -c '\''
531      if test -d "$1"; then
532        test -d "$1/.";
533      else
534	case $1 in
535        -*)set "./$1";;
536	esac;
537	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538	???[sx]*):;;*)false;;esac;fi
539    '\'' sh
540  '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553# Check that we are running under the correct shell.
554SHELL=${CONFIG_SHELL-/bin/sh}
555
556case X$ECHO in
557X*--fallback-echo)
558  # Remove one level of quotation (which was required for Make).
559  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560  ;;
561esac
562
563echo=${ECHO-echo}
564if test "X$1" = X--no-reexec; then
565  # Discard the --no-reexec flag, and continue.
566  shift
567elif test "X$1" = X--fallback-echo; then
568  # Avoid inline document here, it may be left over
569  :
570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571  # Yippee, $echo works!
572  :
573else
574  # Restart under the correct shell.
575  exec $SHELL "$0" --no-reexec ${1+"$@"}
576fi
577
578if test "X$1" = X--fallback-echo; then
579  # used as fallback echo
580  shift
581  cat <<EOF
582$*
583EOF
584  exit 0
585fi
586
587# The HP-UX ksh and POSIX shell print the target directory to stdout
588# if CDPATH is set.
589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591if test -z "$ECHO"; then
592if test "X${echo_test_string+set}" != Xset; then
593# find a string as large as possible, as long as the shell can cope with it
594  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597       echo_test_string=`eval $cmd` &&
598       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599    then
600      break
601    fi
602  done
603fi
604
605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607   test "X$echo_testing_string" = "X$echo_test_string"; then
608  :
609else
610  # The Solaris, AIX, and Digital Unix default echo programs unquote
611  # backslashes.  This makes it impossible to quote backslashes using
612  #   echo "$something" | sed 's/\\/\\\\/g'
613  #
614  # So, first we look for a working echo in the user's PATH.
615
616  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617  for dir in $PATH /usr/ucb; do
618    IFS="$lt_save_ifs"
619    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622       test "X$echo_testing_string" = "X$echo_test_string"; then
623      echo="$dir/echo"
624      break
625    fi
626  done
627  IFS="$lt_save_ifs"
628
629  if test "X$echo" = Xecho; then
630    # We didn't find a better echo, so look for alternatives.
631    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633       test "X$echo_testing_string" = "X$echo_test_string"; then
634      # This shell has a builtin print -r that does the trick.
635      echo='print -r'
636    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637	 test "X$CONFIG_SHELL" != X/bin/ksh; then
638      # If we have ksh, try running configure again with it.
639      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640      export ORIGINAL_CONFIG_SHELL
641      CONFIG_SHELL=/bin/ksh
642      export CONFIG_SHELL
643      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644    else
645      # Try using printf.
646      echo='printf %s\n'
647      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649	 test "X$echo_testing_string" = "X$echo_test_string"; then
650	# Cool, printf works
651	:
652      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653	   test "X$echo_testing_string" = 'X\t' &&
654	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655	   test "X$echo_testing_string" = "X$echo_test_string"; then
656	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657	export CONFIG_SHELL
658	SHELL="$CONFIG_SHELL"
659	export SHELL
660	echo="$CONFIG_SHELL $0 --fallback-echo"
661      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662	   test "X$echo_testing_string" = 'X\t' &&
663	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664	   test "X$echo_testing_string" = "X$echo_test_string"; then
665	echo="$CONFIG_SHELL $0 --fallback-echo"
666      else
667	# maybe with a smaller string...
668	prev=:
669
670	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672	  then
673	    break
674	  fi
675	  prev="$cmd"
676	done
677
678	if test "$prev" != 'sed 50q "$0"'; then
679	  echo_test_string=`eval $prev`
680	  export echo_test_string
681	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682	else
683	  # Oops.  We lost completely, so just stick with echo.
684	  echo=echo
685	fi
686      fi
687    fi
688  fi
689fi
690fi
691
692# Copy echo and quote the copy suitably for passing to libtool from
693# the Makefile, instead of quoting the original, which is used later.
694ECHO=$echo
695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697fi
698
699
700
701
702tagnames=${tagnames+${tagnames},}CXX
703
704tagnames=${tagnames+${tagnames},}F77
705
706exec 7<&0 </dev/null 6>&1
707
708# Name of the host.
709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710# so uname gets run too.
711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713#
714# Initializations.
715#
716ac_default_prefix=/usr/local
717ac_clean_files=
718ac_config_libobj_dir=.
719LIBOBJS=
720cross_compiling=no
721subdirs=
722MFLAGS=
723MAKEFLAGS=
724SHELL=${CONFIG_SHELL-/bin/sh}
725
726# Identity of this package.
727PACKAGE_NAME=
728PACKAGE_TARNAME=
729PACKAGE_VERSION=
730PACKAGE_STRING=
731PACKAGE_BUGREPORT=
732
733ac_unique_file="configure.ac"
734# Factoring default headers for most tests.
735ac_includes_default="\
736#include <stdio.h>
737#ifdef HAVE_SYS_TYPES_H
738# include <sys/types.h>
739#endif
740#ifdef HAVE_SYS_STAT_H
741# include <sys/stat.h>
742#endif
743#ifdef STDC_HEADERS
744# include <stdlib.h>
745# include <stddef.h>
746#else
747# ifdef HAVE_STDLIB_H
748#  include <stdlib.h>
749# endif
750#endif
751#ifdef HAVE_STRING_H
752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753#  include <memory.h>
754# endif
755# include <string.h>
756#endif
757#ifdef HAVE_STRINGS_H
758# include <strings.h>
759#endif
760#ifdef HAVE_INTTYPES_H
761# include <inttypes.h>
762#endif
763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
767# include <unistd.h>
768#endif"
769
770ac_subst_vars='SHELL
771PATH_SEPARATOR
772PACKAGE_NAME
773PACKAGE_TARNAME
774PACKAGE_VERSION
775PACKAGE_STRING
776PACKAGE_BUGREPORT
777exec_prefix
778prefix
779program_transform_name
780bindir
781sbindir
782libexecdir
783datarootdir
784datadir
785sysconfdir
786sharedstatedir
787localstatedir
788includedir
789oldincludedir
790docdir
791infodir
792htmldir
793dvidir
794pdfdir
795psdir
796libdir
797localedir
798mandir
799DEFS
800ECHO_C
801ECHO_N
802ECHO_T
803LIBS
804build_alias
805host_alias
806target_alias
807INSTALL_PROGRAM
808INSTALL_SCRIPT
809INSTALL_DATA
810am__isrc
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
829CC
830CFLAGS
831LDFLAGS
832CPPFLAGS
833ac_ct_CC
834EXEEXT
835OBJEXT
836DEPDIR
837am__include
838am__quote
839AMDEP_TRUE
840AMDEP_FALSE
841AMDEPBACKSLASH
842CCDEPMODE
843am__fastdepCC_TRUE
844am__fastdepCC_FALSE
845build
846build_cpu
847build_vendor
848build_os
849host
850host_cpu
851host_vendor
852host_os
853SED
854GREP
855EGREP
856LN_S
857ECHO
858AR
859RANLIB
860CPP
861CXX
862CXXFLAGS
863ac_ct_CXX
864CXXDEPMODE
865am__fastdepCXX_TRUE
866am__fastdepCXX_FALSE
867CXXCPP
868F77
869FFLAGS
870ac_ct_F77
871LIBTOOL
872global_top_auxdir
873LIBOBJS
874LTLIBOBJS'
875ac_subst_files=''
876      ac_precious_vars='build_alias
877host_alias
878target_alias
879CC
880CFLAGS
881LDFLAGS
882LIBS
883CPPFLAGS
884CPP
885CXX
886CXXFLAGS
887CCC
888CXXCPP
889F77
890FFLAGS'
891
892
893# Initialize some variables set by options.
894ac_init_help=
895ac_init_version=false
896# The variables have the same names as the options, with
897# dashes changed to underlines.
898cache_file=/dev/null
899exec_prefix=NONE
900no_create=
901no_recursion=
902prefix=NONE
903program_prefix=NONE
904program_suffix=NONE
905program_transform_name=s,x,x,
906silent=
907site=
908srcdir=
909verbose=
910x_includes=NONE
911x_libraries=NONE
912
913# Installation directory options.
914# These are left unexpanded so users can "make install exec_prefix=/foo"
915# and all the variables that are supposed to be based on exec_prefix
916# by default will actually change.
917# Use braces instead of parens because sh, perl, etc. also accept them.
918# (The list follows the same order as the GNU Coding Standards.)
919bindir='${exec_prefix}/bin'
920sbindir='${exec_prefix}/sbin'
921libexecdir='${exec_prefix}/libexec'
922datarootdir='${prefix}/share'
923datadir='${datarootdir}'
924sysconfdir='${prefix}/etc'
925sharedstatedir='${prefix}/com'
926localstatedir='${prefix}/var'
927includedir='${prefix}/include'
928oldincludedir='/usr/include'
929docdir='${datarootdir}/doc/${PACKAGE}'
930infodir='${datarootdir}/info'
931htmldir='${docdir}'
932dvidir='${docdir}'
933pdfdir='${docdir}'
934psdir='${docdir}'
935libdir='${exec_prefix}/lib'
936localedir='${datarootdir}/locale'
937mandir='${datarootdir}/man'
938
939ac_prev=
940ac_dashdash=
941for ac_option
942do
943  # If the previous option needs an argument, assign it.
944  if test -n "$ac_prev"; then
945    eval $ac_prev=\$ac_option
946    ac_prev=
947    continue
948  fi
949
950  case $ac_option in
951  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952  *)	ac_optarg=yes ;;
953  esac
954
955  # Accept the important Cygnus configure options, so we can diagnose typos.
956
957  case $ac_dashdash$ac_option in
958  --)
959    ac_dashdash=yes ;;
960
961  -bindir | --bindir | --bindi | --bind | --bin | --bi)
962    ac_prev=bindir ;;
963  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964    bindir=$ac_optarg ;;
965
966  -build | --build | --buil | --bui | --bu)
967    ac_prev=build_alias ;;
968  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969    build_alias=$ac_optarg ;;
970
971  -cache-file | --cache-file | --cache-fil | --cache-fi \
972  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973    ac_prev=cache_file ;;
974  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976    cache_file=$ac_optarg ;;
977
978  --config-cache | -C)
979    cache_file=config.cache ;;
980
981  -datadir | --datadir | --datadi | --datad)
982    ac_prev=datadir ;;
983  -datadir=* | --datadir=* | --datadi=* | --datad=*)
984    datadir=$ac_optarg ;;
985
986  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987  | --dataroo | --dataro | --datar)
988    ac_prev=datarootdir ;;
989  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991    datarootdir=$ac_optarg ;;
992
993  -disable-* | --disable-*)
994    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995    # Reject names that are not valid shell variable names.
996    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
997      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
998   { (exit 1); exit 1; }; }
999    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1000    eval enable_$ac_feature=no ;;
1001
1002  -docdir | --docdir | --docdi | --doc | --do)
1003    ac_prev=docdir ;;
1004  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005    docdir=$ac_optarg ;;
1006
1007  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008    ac_prev=dvidir ;;
1009  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010    dvidir=$ac_optarg ;;
1011
1012  -enable-* | --enable-*)
1013    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014    # Reject names that are not valid shell variable names.
1015    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1016      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1017   { (exit 1); exit 1; }; }
1018    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1019    eval enable_$ac_feature=\$ac_optarg ;;
1020
1021  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023  | --exec | --exe | --ex)
1024    ac_prev=exec_prefix ;;
1025  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027  | --exec=* | --exe=* | --ex=*)
1028    exec_prefix=$ac_optarg ;;
1029
1030  -gas | --gas | --ga | --g)
1031    # Obsolete; use --with-gas.
1032    with_gas=yes ;;
1033
1034  -help | --help | --hel | --he | -h)
1035    ac_init_help=long ;;
1036  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037    ac_init_help=recursive ;;
1038  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039    ac_init_help=short ;;
1040
1041  -host | --host | --hos | --ho)
1042    ac_prev=host_alias ;;
1043  -host=* | --host=* | --hos=* | --ho=*)
1044    host_alias=$ac_optarg ;;
1045
1046  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1047    ac_prev=htmldir ;;
1048  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1049  | --ht=*)
1050    htmldir=$ac_optarg ;;
1051
1052  -includedir | --includedir | --includedi | --included | --include \
1053  | --includ | --inclu | --incl | --inc)
1054    ac_prev=includedir ;;
1055  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056  | --includ=* | --inclu=* | --incl=* | --inc=*)
1057    includedir=$ac_optarg ;;
1058
1059  -infodir | --infodir | --infodi | --infod | --info | --inf)
1060    ac_prev=infodir ;;
1061  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1062    infodir=$ac_optarg ;;
1063
1064  -libdir | --libdir | --libdi | --libd)
1065    ac_prev=libdir ;;
1066  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1067    libdir=$ac_optarg ;;
1068
1069  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070  | --libexe | --libex | --libe)
1071    ac_prev=libexecdir ;;
1072  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073  | --libexe=* | --libex=* | --libe=*)
1074    libexecdir=$ac_optarg ;;
1075
1076  -localedir | --localedir | --localedi | --localed | --locale)
1077    ac_prev=localedir ;;
1078  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079    localedir=$ac_optarg ;;
1080
1081  -localstatedir | --localstatedir | --localstatedi | --localstated \
1082  | --localstate | --localstat | --localsta | --localst | --locals)
1083    ac_prev=localstatedir ;;
1084  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1085  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1086    localstatedir=$ac_optarg ;;
1087
1088  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1089    ac_prev=mandir ;;
1090  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1091    mandir=$ac_optarg ;;
1092
1093  -nfp | --nfp | --nf)
1094    # Obsolete; use --without-fp.
1095    with_fp=no ;;
1096
1097  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1098  | --no-cr | --no-c | -n)
1099    no_create=yes ;;
1100
1101  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103    no_recursion=yes ;;
1104
1105  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107  | --oldin | --oldi | --old | --ol | --o)
1108    ac_prev=oldincludedir ;;
1109  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1112    oldincludedir=$ac_optarg ;;
1113
1114  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1115    ac_prev=prefix ;;
1116  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1117    prefix=$ac_optarg ;;
1118
1119  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120  | --program-pre | --program-pr | --program-p)
1121    ac_prev=program_prefix ;;
1122  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1124    program_prefix=$ac_optarg ;;
1125
1126  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127  | --program-suf | --program-su | --program-s)
1128    ac_prev=program_suffix ;;
1129  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1131    program_suffix=$ac_optarg ;;
1132
1133  -program-transform-name | --program-transform-name \
1134  | --program-transform-nam | --program-transform-na \
1135  | --program-transform-n | --program-transform- \
1136  | --program-transform | --program-transfor \
1137  | --program-transfo | --program-transf \
1138  | --program-trans | --program-tran \
1139  | --progr-tra | --program-tr | --program-t)
1140    ac_prev=program_transform_name ;;
1141  -program-transform-name=* | --program-transform-name=* \
1142  | --program-transform-nam=* | --program-transform-na=* \
1143  | --program-transform-n=* | --program-transform-=* \
1144  | --program-transform=* | --program-transfor=* \
1145  | --program-transfo=* | --program-transf=* \
1146  | --program-trans=* | --program-tran=* \
1147  | --progr-tra=* | --program-tr=* | --program-t=*)
1148    program_transform_name=$ac_optarg ;;
1149
1150  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1151    ac_prev=pdfdir ;;
1152  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153    pdfdir=$ac_optarg ;;
1154
1155  -psdir | --psdir | --psdi | --psd | --ps)
1156    ac_prev=psdir ;;
1157  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158    psdir=$ac_optarg ;;
1159
1160  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161  | -silent | --silent | --silen | --sile | --sil)
1162    silent=yes ;;
1163
1164  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165    ac_prev=sbindir ;;
1166  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167  | --sbi=* | --sb=*)
1168    sbindir=$ac_optarg ;;
1169
1170  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172  | --sharedst | --shareds | --shared | --share | --shar \
1173  | --sha | --sh)
1174    ac_prev=sharedstatedir ;;
1175  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178  | --sha=* | --sh=*)
1179    sharedstatedir=$ac_optarg ;;
1180
1181  -site | --site | --sit)
1182    ac_prev=site ;;
1183  -site=* | --site=* | --sit=*)
1184    site=$ac_optarg ;;
1185
1186  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187    ac_prev=srcdir ;;
1188  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189    srcdir=$ac_optarg ;;
1190
1191  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192  | --syscon | --sysco | --sysc | --sys | --sy)
1193    ac_prev=sysconfdir ;;
1194  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196    sysconfdir=$ac_optarg ;;
1197
1198  -target | --target | --targe | --targ | --tar | --ta | --t)
1199    ac_prev=target_alias ;;
1200  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201    target_alias=$ac_optarg ;;
1202
1203  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204    verbose=yes ;;
1205
1206  -version | --version | --versio | --versi | --vers | -V)
1207    ac_init_version=: ;;
1208
1209  -with-* | --with-*)
1210    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211    # Reject names that are not valid shell variable names.
1212    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213      { echo "$as_me: error: invalid package name: $ac_package" >&2
1214   { (exit 1); exit 1; }; }
1215    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1216    eval with_$ac_package=\$ac_optarg ;;
1217
1218  -without-* | --without-*)
1219    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220    # Reject names that are not valid shell variable names.
1221    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222      { echo "$as_me: error: invalid package name: $ac_package" >&2
1223   { (exit 1); exit 1; }; }
1224    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225    eval with_$ac_package=no ;;
1226
1227  --x)
1228    # Obsolete; use --with-x.
1229    with_x=yes ;;
1230
1231  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232  | --x-incl | --x-inc | --x-in | --x-i)
1233    ac_prev=x_includes ;;
1234  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236    x_includes=$ac_optarg ;;
1237
1238  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240    ac_prev=x_libraries ;;
1241  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243    x_libraries=$ac_optarg ;;
1244
1245  -*) { echo "$as_me: error: unrecognized option: $ac_option
1246Try \`$0 --help' for more information." >&2
1247   { (exit 1); exit 1; }; }
1248    ;;
1249
1250  *=*)
1251    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252    # Reject names that are not valid shell variable names.
1253    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1254      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1255   { (exit 1); exit 1; }; }
1256    eval $ac_envvar=\$ac_optarg
1257    export $ac_envvar ;;
1258
1259  *)
1260    # FIXME: should be removed in autoconf 3.0.
1261    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1265    ;;
1266
1267  esac
1268done
1269
1270if test -n "$ac_prev"; then
1271  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272  { echo "$as_me: error: missing argument to $ac_option" >&2
1273   { (exit 1); exit 1; }; }
1274fi
1275
1276# Be sure to have absolute directory names.
1277for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278		datadir sysconfdir sharedstatedir localstatedir includedir \
1279		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280		libdir localedir mandir
1281do
1282  eval ac_val=\$$ac_var
1283  case $ac_val in
1284    [\\/$]* | ?:[\\/]* )  continue;;
1285    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286  esac
1287  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1288   { (exit 1); exit 1; }; }
1289done
1290
1291# There might be people who depend on the old broken behavior: `$host'
1292# used to hold the argument of --host etc.
1293# FIXME: To remove some day.
1294build=$build_alias
1295host=$host_alias
1296target=$target_alias
1297
1298# FIXME: To remove some day.
1299if test "x$host_alias" != x; then
1300  if test "x$build_alias" = x; then
1301    cross_compiling=maybe
1302    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303    If a cross compiler is detected then cross compile mode will be used." >&2
1304  elif test "x$build_alias" != "x$host_alias"; then
1305    cross_compiling=yes
1306  fi
1307fi
1308
1309ac_tool_prefix=
1310test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311
1312test "$silent" = yes && exec 6>/dev/null
1313
1314
1315ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316ac_ls_di=`ls -di .` &&
1317ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318  { echo "$as_me: error: Working directory cannot be determined" >&2
1319   { (exit 1); exit 1; }; }
1320test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321  { echo "$as_me: error: pwd does not report name of working directory" >&2
1322   { (exit 1); exit 1; }; }
1323
1324
1325# Find the source files, if location was not specified.
1326if test -z "$srcdir"; then
1327  ac_srcdir_defaulted=yes
1328  # Try the directory containing this script, then the parent directory.
1329  ac_confdir=`$as_dirname -- "$0" ||
1330$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331	 X"$0" : 'X\(//\)[^/]' \| \
1332	 X"$0" : 'X\(//\)$' \| \
1333	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1334echo X"$0" |
1335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336	    s//\1/
1337	    q
1338	  }
1339	  /^X\(\/\/\)[^/].*/{
1340	    s//\1/
1341	    q
1342	  }
1343	  /^X\(\/\/\)$/{
1344	    s//\1/
1345	    q
1346	  }
1347	  /^X\(\/\).*/{
1348	    s//\1/
1349	    q
1350	  }
1351	  s/.*/./; q'`
1352  srcdir=$ac_confdir
1353  if test ! -r "$srcdir/$ac_unique_file"; then
1354    srcdir=..
1355  fi
1356else
1357  ac_srcdir_defaulted=no
1358fi
1359if test ! -r "$srcdir/$ac_unique_file"; then
1360  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1362   { (exit 1); exit 1; }; }
1363fi
1364ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365ac_abs_confdir=`(
1366	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1367   { (exit 1); exit 1; }; }
1368	pwd)`
1369# When building in place, set srcdir=.
1370if test "$ac_abs_confdir" = "$ac_pwd"; then
1371  srcdir=.
1372fi
1373# Remove unnecessary trailing slashes from srcdir.
1374# Double slashes in file names in object file debugging info
1375# mess up M-x gdb in Emacs.
1376case $srcdir in
1377*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378esac
1379for ac_var in $ac_precious_vars; do
1380  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381  eval ac_env_${ac_var}_value=\$${ac_var}
1382  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384done
1385
1386#
1387# Report the --help message.
1388#
1389if test "$ac_init_help" = "long"; then
1390  # Omit some internal or obsolete options to make the list less imposing.
1391  # This message is too long to be a string in the A/UX 3.1 sh.
1392  cat <<_ACEOF
1393\`configure' configures this package to adapt to many kinds of systems.
1394
1395Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398VAR=VALUE.  See below for descriptions of some of the useful variables.
1399
1400Defaults for the options are specified in brackets.
1401
1402Configuration:
1403  -h, --help              display this help and exit
1404      --help=short        display options specific to this package
1405      --help=recursive    display the short help of all the included packages
1406  -V, --version           display version information and exit
1407  -q, --quiet, --silent   do not print \`checking...' messages
1408      --cache-file=FILE   cache test results in FILE [disabled]
1409  -C, --config-cache      alias for \`--cache-file=config.cache'
1410  -n, --no-create         do not create output files
1411      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1412
1413Installation directories:
1414  --prefix=PREFIX         install architecture-independent files in PREFIX
1415			  [$ac_default_prefix]
1416  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1417			  [PREFIX]
1418
1419By default, \`make install' will install all the files in
1420\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1421an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422for instance \`--prefix=\$HOME'.
1423
1424For better control, use the options below.
1425
1426Fine tuning of the installation directories:
1427  --bindir=DIR           user executables [EPREFIX/bin]
1428  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1429  --libexecdir=DIR       program executables [EPREFIX/libexec]
1430  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1431  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1432  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1433  --libdir=DIR           object code libraries [EPREFIX/lib]
1434  --includedir=DIR       C header files [PREFIX/include]
1435  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1436  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1437  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1438  --infodir=DIR          info documentation [DATAROOTDIR/info]
1439  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1440  --mandir=DIR           man documentation [DATAROOTDIR/man]
1441  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1442  --htmldir=DIR          html documentation [DOCDIR]
1443  --dvidir=DIR           dvi documentation [DOCDIR]
1444  --pdfdir=DIR           pdf documentation [DOCDIR]
1445  --psdir=DIR            ps documentation [DOCDIR]
1446_ACEOF
1447
1448  cat <<\_ACEOF
1449
1450Program names:
1451  --program-prefix=PREFIX            prepend PREFIX to installed program names
1452  --program-suffix=SUFFIX            append SUFFIX to installed program names
1453  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1454
1455System types:
1456  --build=BUILD     configure for building on BUILD [guessed]
1457  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1458_ACEOF
1459fi
1460
1461if test -n "$ac_init_help"; then
1462
1463  cat <<\_ACEOF
1464
1465Optional Features:
1466  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1467  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1468  --disable-dependency-tracking  speeds up one-time build
1469  --enable-dependency-tracking   do not reject slow dependency extractors
1470  --enable-shared[=PKGS]  build shared libraries [default=yes]
1471  --enable-static[=PKGS]  build static libraries [default=yes]
1472  --enable-fast-install[=PKGS]
1473                          optimize for fast installation [default=yes]
1474  --disable-libtool-lock  avoid locking (might break parallel builds)
1475
1476Optional Packages:
1477  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1478  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1479  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1480  --with-pic              try to use only PIC/non-PIC objects [default=use
1481                          both]
1482  --with-tags[=TAGS]      include additional configurations [automatic]
1483
1484Some influential environment variables:
1485  CC          C compiler command
1486  CFLAGS      C compiler flags
1487  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1488              nonstandard directory <lib dir>
1489  LIBS        libraries to pass to the linker, e.g. -l<library>
1490  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1491              you have headers in a nonstandard directory <include dir>
1492  CPP         C preprocessor
1493  CXX         C++ compiler command
1494  CXXFLAGS    C++ compiler flags
1495  CXXCPP      C++ preprocessor
1496  F77         Fortran 77 compiler command
1497  FFLAGS      Fortran 77 compiler flags
1498
1499Use these variables to override the choices made by `configure' or to help
1500it to find libraries and programs with nonstandard names/locations.
1501
1502_ACEOF
1503ac_status=$?
1504fi
1505
1506if test "$ac_init_help" = "recursive"; then
1507  # If there are subdirs, report their specific --help.
1508  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509    test -d "$ac_dir" || continue
1510    ac_builddir=.
1511
1512case "$ac_dir" in
1513.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514*)
1515  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1516  # A ".." for each directory in $ac_dir_suffix.
1517  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1518  case $ac_top_builddir_sub in
1519  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521  esac ;;
1522esac
1523ac_abs_top_builddir=$ac_pwd
1524ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525# for backward compatibility:
1526ac_top_builddir=$ac_top_build_prefix
1527
1528case $srcdir in
1529  .)  # We are building in place.
1530    ac_srcdir=.
1531    ac_top_srcdir=$ac_top_builddir_sub
1532    ac_abs_top_srcdir=$ac_pwd ;;
1533  [\\/]* | ?:[\\/]* )  # Absolute name.
1534    ac_srcdir=$srcdir$ac_dir_suffix;
1535    ac_top_srcdir=$srcdir
1536    ac_abs_top_srcdir=$srcdir ;;
1537  *) # Relative name.
1538    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539    ac_top_srcdir=$ac_top_build_prefix$srcdir
1540    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541esac
1542ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543
1544    cd "$ac_dir" || { ac_status=$?; continue; }
1545    # Check for guested configure.
1546    if test -f "$ac_srcdir/configure.gnu"; then
1547      echo &&
1548      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549    elif test -f "$ac_srcdir/configure"; then
1550      echo &&
1551      $SHELL "$ac_srcdir/configure" --help=recursive
1552    else
1553      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554    fi || ac_status=$?
1555    cd "$ac_pwd" || { ac_status=$?; break; }
1556  done
1557fi
1558
1559test -n "$ac_init_help" && exit $ac_status
1560if $ac_init_version; then
1561  cat <<\_ACEOF
1562configure
1563generated by GNU Autoconf 2.61
1564
1565Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15662002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1567This configure script is free software; the Free Software Foundation
1568gives unlimited permission to copy, distribute and modify it.
1569_ACEOF
1570  exit
1571fi
1572cat >config.log <<_ACEOF
1573This file contains any messages produced by compilers while
1574running configure, to aid debugging if configure makes a mistake.
1575
1576It was created by $as_me, which was
1577generated by GNU Autoconf 2.61.  Invocation command line was
1578
1579  $ $0 $@
1580
1581_ACEOF
1582exec 5>>config.log
1583{
1584cat <<_ASUNAME
1585## --------- ##
1586## Platform. ##
1587## --------- ##
1588
1589hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1590uname -m = `(uname -m) 2>/dev/null || echo unknown`
1591uname -r = `(uname -r) 2>/dev/null || echo unknown`
1592uname -s = `(uname -s) 2>/dev/null || echo unknown`
1593uname -v = `(uname -v) 2>/dev/null || echo unknown`
1594
1595/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1596/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1597
1598/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1599/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1600/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1601/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1602/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1603/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1604/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1605
1606_ASUNAME
1607
1608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609for as_dir in $PATH
1610do
1611  IFS=$as_save_IFS
1612  test -z "$as_dir" && as_dir=.
1613  echo "PATH: $as_dir"
1614done
1615IFS=$as_save_IFS
1616
1617} >&5
1618
1619cat >&5 <<_ACEOF
1620
1621
1622## ----------- ##
1623## Core tests. ##
1624## ----------- ##
1625
1626_ACEOF
1627
1628
1629# Keep a trace of the command line.
1630# Strip out --no-create and --no-recursion so they do not pile up.
1631# Strip out --silent because we don't want to record it for future runs.
1632# Also quote any args containing shell meta-characters.
1633# Make two passes to allow for proper duplicate-argument suppression.
1634ac_configure_args=
1635ac_configure_args0=
1636ac_configure_args1=
1637ac_must_keep_next=false
1638for ac_pass in 1 2
1639do
1640  for ac_arg
1641  do
1642    case $ac_arg in
1643    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1644    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1645    | -silent | --silent | --silen | --sile | --sil)
1646      continue ;;
1647    *\'*)
1648      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1649    esac
1650    case $ac_pass in
1651    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1652    2)
1653      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1654      if test $ac_must_keep_next = true; then
1655	ac_must_keep_next=false # Got value, back to normal.
1656      else
1657	case $ac_arg in
1658	  *=* | --config-cache | -C | -disable-* | --disable-* \
1659	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1660	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1661	  | -with-* | --with-* | -without-* | --without-* | --x)
1662	    case "$ac_configure_args0 " in
1663	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1664	    esac
1665	    ;;
1666	  -* ) ac_must_keep_next=true ;;
1667	esac
1668      fi
1669      ac_configure_args="$ac_configure_args '$ac_arg'"
1670      ;;
1671    esac
1672  done
1673done
1674$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1675$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1676
1677# When interrupted or exit'd, cleanup temporary files, and complete
1678# config.log.  We remove comments because anyway the quotes in there
1679# would cause problems or look ugly.
1680# WARNING: Use '\'' to represent an apostrophe within the trap.
1681# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1682trap 'exit_status=$?
1683  # Save into config.log some information that might help in debugging.
1684  {
1685    echo
1686
1687    cat <<\_ASBOX
1688## ---------------- ##
1689## Cache variables. ##
1690## ---------------- ##
1691_ASBOX
1692    echo
1693    # The following way of writing the cache mishandles newlines in values,
1694(
1695  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1696    eval ac_val=\$$ac_var
1697    case $ac_val in #(
1698    *${as_nl}*)
1699      case $ac_var in #(
1700      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1701echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1702      esac
1703      case $ac_var in #(
1704      _ | IFS | as_nl) ;; #(
1705      *) $as_unset $ac_var ;;
1706      esac ;;
1707    esac
1708  done
1709  (set) 2>&1 |
1710    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1711    *${as_nl}ac_space=\ *)
1712      sed -n \
1713	"s/'\''/'\''\\\\'\'''\''/g;
1714	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1715      ;; #(
1716    *)
1717      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1718      ;;
1719    esac |
1720    sort
1721)
1722    echo
1723
1724    cat <<\_ASBOX
1725## ----------------- ##
1726## Output variables. ##
1727## ----------------- ##
1728_ASBOX
1729    echo
1730    for ac_var in $ac_subst_vars
1731    do
1732      eval ac_val=\$$ac_var
1733      case $ac_val in
1734      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1735      esac
1736      echo "$ac_var='\''$ac_val'\''"
1737    done | sort
1738    echo
1739
1740    if test -n "$ac_subst_files"; then
1741      cat <<\_ASBOX
1742## ------------------- ##
1743## File substitutions. ##
1744## ------------------- ##
1745_ASBOX
1746      echo
1747      for ac_var in $ac_subst_files
1748      do
1749	eval ac_val=\$$ac_var
1750	case $ac_val in
1751	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752	esac
1753	echo "$ac_var='\''$ac_val'\''"
1754      done | sort
1755      echo
1756    fi
1757
1758    if test -s confdefs.h; then
1759      cat <<\_ASBOX
1760## ----------- ##
1761## confdefs.h. ##
1762## ----------- ##
1763_ASBOX
1764      echo
1765      cat confdefs.h
1766      echo
1767    fi
1768    test "$ac_signal" != 0 &&
1769      echo "$as_me: caught signal $ac_signal"
1770    echo "$as_me: exit $exit_status"
1771  } >&5
1772  rm -f core *.core core.conftest.* &&
1773    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1774    exit $exit_status
1775' 0
1776for ac_signal in 1 2 13 15; do
1777  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1778done
1779ac_signal=0
1780
1781# confdefs.h avoids OS command line length limits that DEFS can exceed.
1782rm -f -r conftest* confdefs.h
1783
1784# Predefined preprocessor variables.
1785
1786cat >>confdefs.h <<_ACEOF
1787#define PACKAGE_NAME "$PACKAGE_NAME"
1788_ACEOF
1789
1790
1791cat >>confdefs.h <<_ACEOF
1792#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1793_ACEOF
1794
1795
1796cat >>confdefs.h <<_ACEOF
1797#define PACKAGE_VERSION "$PACKAGE_VERSION"
1798_ACEOF
1799
1800
1801cat >>confdefs.h <<_ACEOF
1802#define PACKAGE_STRING "$PACKAGE_STRING"
1803_ACEOF
1804
1805
1806cat >>confdefs.h <<_ACEOF
1807#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1808_ACEOF
1809
1810
1811# Let the site file select an alternate cache file if it wants to.
1812# Prefer explicitly selected file to automatically selected ones.
1813if test -n "$CONFIG_SITE"; then
1814  set x "$CONFIG_SITE"
1815elif test "x$prefix" != xNONE; then
1816  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1817else
1818  set x "$ac_default_prefix/share/config.site" \
1819	"$ac_default_prefix/etc/config.site"
1820fi
1821shift
1822for ac_site_file
1823do
1824  if test -r "$ac_site_file"; then
1825    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1826echo "$as_me: loading site script $ac_site_file" >&6;}
1827    sed 's/^/| /' "$ac_site_file" >&5
1828    . "$ac_site_file"
1829  fi
1830done
1831
1832if test -r "$cache_file"; then
1833  # Some versions of bash will fail to source /dev/null (special
1834  # files actually), so we avoid doing that.
1835  if test -f "$cache_file"; then
1836    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1837echo "$as_me: loading cache $cache_file" >&6;}
1838    case $cache_file in
1839      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1840      *)                      . "./$cache_file";;
1841    esac
1842  fi
1843else
1844  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1845echo "$as_me: creating cache $cache_file" >&6;}
1846  >$cache_file
1847fi
1848
1849# Check that the precious variables saved in the cache have kept the same
1850# value.
1851ac_cache_corrupted=false
1852for ac_var in $ac_precious_vars; do
1853  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1854  eval ac_new_set=\$ac_env_${ac_var}_set
1855  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1856  eval ac_new_val=\$ac_env_${ac_var}_value
1857  case $ac_old_set,$ac_new_set in
1858    set,)
1859      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1860echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1861      ac_cache_corrupted=: ;;
1862    ,set)
1863      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1864echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1865      ac_cache_corrupted=: ;;
1866    ,);;
1867    *)
1868      if test "x$ac_old_val" != "x$ac_new_val"; then
1869	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1870echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1871	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1872echo "$as_me:   former value:  $ac_old_val" >&2;}
1873	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1874echo "$as_me:   current value: $ac_new_val" >&2;}
1875	ac_cache_corrupted=:
1876      fi;;
1877  esac
1878  # Pass precious variables to config.status.
1879  if test "$ac_new_set" = set; then
1880    case $ac_new_val in
1881    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1882    *) ac_arg=$ac_var=$ac_new_val ;;
1883    esac
1884    case " $ac_configure_args " in
1885      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1886      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1887    esac
1888  fi
1889done
1890if $ac_cache_corrupted; then
1891  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1892echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1893  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1894echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1895   { (exit 1); exit 1; }; }
1896fi
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914ac_ext=c
1915ac_cpp='$CPP $CPPFLAGS'
1916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1918ac_compiler_gnu=$ac_cv_c_compiler_gnu
1919
1920
1921ac_aux_dir=
1922for ac_dir in ../../../build-aux "$srcdir"/../../../build-aux; do
1923  if test -f "$ac_dir/install-sh"; then
1924    ac_aux_dir=$ac_dir
1925    ac_install_sh="$ac_aux_dir/install-sh -c"
1926    break
1927  elif test -f "$ac_dir/install.sh"; then
1928    ac_aux_dir=$ac_dir
1929    ac_install_sh="$ac_aux_dir/install.sh -c"
1930    break
1931  elif test -f "$ac_dir/shtool"; then
1932    ac_aux_dir=$ac_dir
1933    ac_install_sh="$ac_aux_dir/shtool install -c"
1934    break
1935  fi
1936done
1937if test -z "$ac_aux_dir"; then
1938  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&5
1939echo "$as_me: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&2;}
1940   { (exit 1); exit 1; }; }
1941fi
1942
1943# These three variables are undocumented and unsupported,
1944# and are intended to be withdrawn in a future Autoconf release.
1945# They can cause serious problems if a builder's source tree is in a directory
1946# whose full name contains unusual characters.
1947ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1948ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1949ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1950
1951
1952am__api_version='1.10'
1953
1954# Find a good install program.  We prefer a C program (faster),
1955# so one script is as good as another.  But avoid the broken or
1956# incompatible versions:
1957# SysV /etc/install, /usr/sbin/install
1958# SunOS /usr/etc/install
1959# IRIX /sbin/install
1960# AIX /bin/install
1961# AmigaOS /C/install, which installs bootblocks on floppy discs
1962# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1963# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1964# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1965# OS/2's system install, which has a completely different semantic
1966# ./install, which can be erroneously created by make from ./install.sh.
1967{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1968echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1969if test -z "$INSTALL"; then
1970if test "${ac_cv_path_install+set}" = set; then
1971  echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
1973  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974for as_dir in $PATH
1975do
1976  IFS=$as_save_IFS
1977  test -z "$as_dir" && as_dir=.
1978  # Account for people who put trailing slashes in PATH elements.
1979case $as_dir/ in
1980  ./ | .// | /cC/* | \
1981  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1982  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1983  /usr/ucb/* ) ;;
1984  *)
1985    # OSF1 and SCO ODT 3.0 have their own names for install.
1986    # Don't use installbsd from OSF since it installs stuff as root
1987    # by default.
1988    for ac_prog in ginstall scoinst install; do
1989      for ac_exec_ext in '' $ac_executable_extensions; do
1990	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1991	  if test $ac_prog = install &&
1992	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1993	    # AIX install.  It has an incompatible calling convention.
1994	    :
1995	  elif test $ac_prog = install &&
1996	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1997	    # program-specific install script used by HP pwplus--don't use.
1998	    :
1999	  else
2000	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2001	    break 3
2002	  fi
2003	fi
2004      done
2005    done
2006    ;;
2007esac
2008done
2009IFS=$as_save_IFS
2010
2011
2012fi
2013  if test "${ac_cv_path_install+set}" = set; then
2014    INSTALL=$ac_cv_path_install
2015  else
2016    # As a last resort, use the slow shell script.  Don't cache a
2017    # value for INSTALL within a source directory, because that will
2018    # break other packages using the cache if that directory is
2019    # removed, or if the value is a relative name.
2020    INSTALL=$ac_install_sh
2021  fi
2022fi
2023{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2024echo "${ECHO_T}$INSTALL" >&6; }
2025
2026# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2027# It thinks the first close brace ends the variable substitution.
2028test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2029
2030test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2031
2032test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2033
2034{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2035echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2036# Just in case
2037sleep 1
2038echo timestamp > conftest.file
2039# Do `set' in a subshell so we don't clobber the current shell's
2040# arguments.  Must try -L first in case configure is actually a
2041# symlink; some systems play weird games with the mod time of symlinks
2042# (eg FreeBSD returns the mod time of the symlink's containing
2043# directory).
2044if (
2045   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2046   if test "$*" = "X"; then
2047      # -L didn't work.
2048      set X `ls -t $srcdir/configure conftest.file`
2049   fi
2050   rm -f conftest.file
2051   if test "$*" != "X $srcdir/configure conftest.file" \
2052      && test "$*" != "X conftest.file $srcdir/configure"; then
2053
2054      # If neither matched, then we have a broken ls.  This can happen
2055      # if, for instance, CONFIG_SHELL is bash and it inherits a
2056      # broken ls alias from the environment.  This has actually
2057      # happened.  Such a system could not be considered "sane".
2058      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2059alias in your environment" >&5
2060echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2061alias in your environment" >&2;}
2062   { (exit 1); exit 1; }; }
2063   fi
2064
2065   test "$2" = conftest.file
2066   )
2067then
2068   # Ok.
2069   :
2070else
2071   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2072Check your system clock" >&5
2073echo "$as_me: error: newly created file is older than distributed files!
2074Check your system clock" >&2;}
2075   { (exit 1); exit 1; }; }
2076fi
2077{ echo "$as_me:$LINENO: result: yes" >&5
2078echo "${ECHO_T}yes" >&6; }
2079test "$program_prefix" != NONE &&
2080  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2081# Use a double $ so make ignores it.
2082test "$program_suffix" != NONE &&
2083  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2084# Double any \ or $.  echo might interpret backslashes.
2085# By default was `s,x,x', remove it if useless.
2086cat <<\_ACEOF >conftest.sed
2087s/[\\$]/&&/g;s/;s,x,x,$//
2088_ACEOF
2089program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2090rm -f conftest.sed
2091
2092# expand $ac_aux_dir to an absolute path
2093am_aux_dir=`cd $ac_aux_dir && pwd`
2094
2095test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2096# Use eval to expand $SHELL
2097if eval "$MISSING --run true"; then
2098  am_missing_run="$MISSING --run "
2099else
2100  am_missing_run=
2101  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2102echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2103fi
2104
2105{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2106echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2107if test -z "$MKDIR_P"; then
2108  if test "${ac_cv_path_mkdir+set}" = set; then
2109  echo $ECHO_N "(cached) $ECHO_C" >&6
2110else
2111  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2113do
2114  IFS=$as_save_IFS
2115  test -z "$as_dir" && as_dir=.
2116  for ac_prog in mkdir gmkdir; do
2117	 for ac_exec_ext in '' $ac_executable_extensions; do
2118	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2119	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2120	     'mkdir (GNU coreutils) '* | \
2121	     'mkdir (coreutils) '* | \
2122	     'mkdir (fileutils) '4.1*)
2123	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2124	       break 3;;
2125	   esac
2126	 done
2127       done
2128done
2129IFS=$as_save_IFS
2130
2131fi
2132
2133  if test "${ac_cv_path_mkdir+set}" = set; then
2134    MKDIR_P="$ac_cv_path_mkdir -p"
2135  else
2136    # As a last resort, use the slow shell script.  Don't cache a
2137    # value for MKDIR_P within a source directory, because that will
2138    # break other packages using the cache if that directory is
2139    # removed, or if the value is a relative name.
2140    test -d ./--version && rmdir ./--version
2141    MKDIR_P="$ac_install_sh -d"
2142  fi
2143fi
2144{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2145echo "${ECHO_T}$MKDIR_P" >&6; }
2146
2147mkdir_p="$MKDIR_P"
2148case $mkdir_p in
2149  [\\/$]* | ?:[\\/]*) ;;
2150  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2151esac
2152
2153for ac_prog in gawk mawk nawk awk
2154do
2155  # Extract the first word of "$ac_prog", so it can be a program name with args.
2156set dummy $ac_prog; ac_word=$2
2157{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2159if test "${ac_cv_prog_AWK+set}" = set; then
2160  echo $ECHO_N "(cached) $ECHO_C" >&6
2161else
2162  if test -n "$AWK"; then
2163  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2164else
2165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166for as_dir in $PATH
2167do
2168  IFS=$as_save_IFS
2169  test -z "$as_dir" && as_dir=.
2170  for ac_exec_ext in '' $ac_executable_extensions; do
2171  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2172    ac_cv_prog_AWK="$ac_prog"
2173    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174    break 2
2175  fi
2176done
2177done
2178IFS=$as_save_IFS
2179
2180fi
2181fi
2182AWK=$ac_cv_prog_AWK
2183if test -n "$AWK"; then
2184  { echo "$as_me:$LINENO: result: $AWK" >&5
2185echo "${ECHO_T}$AWK" >&6; }
2186else
2187  { echo "$as_me:$LINENO: result: no" >&5
2188echo "${ECHO_T}no" >&6; }
2189fi
2190
2191
2192  test -n "$AWK" && break
2193done
2194
2195{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2196echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2197set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2198if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2199  echo $ECHO_N "(cached) $ECHO_C" >&6
2200else
2201  cat >conftest.make <<\_ACEOF
2202SHELL = /bin/sh
2203all:
2204	@echo '@@@%%%=$(MAKE)=@@@%%%'
2205_ACEOF
2206# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2207case `${MAKE-make} -f conftest.make 2>/dev/null` in
2208  *@@@%%%=?*=@@@%%%*)
2209    eval ac_cv_prog_make_${ac_make}_set=yes;;
2210  *)
2211    eval ac_cv_prog_make_${ac_make}_set=no;;
2212esac
2213rm -f conftest.make
2214fi
2215if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2216  { echo "$as_me:$LINENO: result: yes" >&5
2217echo "${ECHO_T}yes" >&6; }
2218  SET_MAKE=
2219else
2220  { echo "$as_me:$LINENO: result: no" >&5
2221echo "${ECHO_T}no" >&6; }
2222  SET_MAKE="MAKE=${MAKE-make}"
2223fi
2224
2225rm -rf .tst 2>/dev/null
2226mkdir .tst 2>/dev/null
2227if test -d .tst; then
2228  am__leading_dot=.
2229else
2230  am__leading_dot=_
2231fi
2232rmdir .tst 2>/dev/null
2233
2234if test "`cd $srcdir && pwd`" != "`pwd`"; then
2235  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2236  # is not polluted with repeated "-I."
2237  am__isrc=' -I$(srcdir)'
2238  # test to see if srcdir already configured
2239  if test -f $srcdir/config.status; then
2240    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2241echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2242   { (exit 1); exit 1; }; }
2243  fi
2244fi
2245
2246# test whether we have cygpath
2247if test -z "$CYGPATH_W"; then
2248  if (cygpath --version) >/dev/null 2>/dev/null; then
2249    CYGPATH_W='cygpath -w'
2250  else
2251    CYGPATH_W=echo
2252  fi
2253fi
2254
2255
2256# Define the identity of the package.
2257 PACKAGE=gettext_rpathx
2258 VERSION=0
2259
2260
2261cat >>confdefs.h <<_ACEOF
2262#define PACKAGE "$PACKAGE"
2263_ACEOF
2264
2265
2266cat >>confdefs.h <<_ACEOF
2267#define VERSION "$VERSION"
2268_ACEOF
2269
2270# Some tools Automake needs.
2271
2272ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2273
2274
2275AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2276
2277
2278AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2279
2280
2281AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2282
2283
2284MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2285
2286install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2287
2288# Installed binaries are usually stripped using `strip' when the user
2289# run `make install-strip'.  However `strip' might not be the right
2290# tool to use in cross-compilation environments, therefore Automake
2291# will honor the `STRIP' environment variable to overrule this program.
2292if test "$cross_compiling" != no; then
2293  if test -n "$ac_tool_prefix"; then
2294  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2295set dummy ${ac_tool_prefix}strip; ac_word=$2
2296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2298if test "${ac_cv_prog_STRIP+set}" = set; then
2299  echo $ECHO_N "(cached) $ECHO_C" >&6
2300else
2301  if test -n "$STRIP"; then
2302  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2303else
2304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305for as_dir in $PATH
2306do
2307  IFS=$as_save_IFS
2308  test -z "$as_dir" && as_dir=.
2309  for ac_exec_ext in '' $ac_executable_extensions; do
2310  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2311    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2312    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313    break 2
2314  fi
2315done
2316done
2317IFS=$as_save_IFS
2318
2319fi
2320fi
2321STRIP=$ac_cv_prog_STRIP
2322if test -n "$STRIP"; then
2323  { echo "$as_me:$LINENO: result: $STRIP" >&5
2324echo "${ECHO_T}$STRIP" >&6; }
2325else
2326  { echo "$as_me:$LINENO: result: no" >&5
2327echo "${ECHO_T}no" >&6; }
2328fi
2329
2330
2331fi
2332if test -z "$ac_cv_prog_STRIP"; then
2333  ac_ct_STRIP=$STRIP
2334  # Extract the first word of "strip", so it can be a program name with args.
2335set dummy strip; ac_word=$2
2336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2338if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2339  echo $ECHO_N "(cached) $ECHO_C" >&6
2340else
2341  if test -n "$ac_ct_STRIP"; then
2342  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2343else
2344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345for as_dir in $PATH
2346do
2347  IFS=$as_save_IFS
2348  test -z "$as_dir" && as_dir=.
2349  for ac_exec_ext in '' $ac_executable_extensions; do
2350  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2351    ac_cv_prog_ac_ct_STRIP="strip"
2352    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353    break 2
2354  fi
2355done
2356done
2357IFS=$as_save_IFS
2358
2359fi
2360fi
2361ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2362if test -n "$ac_ct_STRIP"; then
2363  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2364echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2365else
2366  { echo "$as_me:$LINENO: result: no" >&5
2367echo "${ECHO_T}no" >&6; }
2368fi
2369
2370  if test "x$ac_ct_STRIP" = x; then
2371    STRIP=":"
2372  else
2373    case $cross_compiling:$ac_tool_warned in
2374yes:)
2375{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2376whose name does not start with the host triplet.  If you think this
2377configuration is useful to you, please write to autoconf@gnu.org." >&5
2378echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2379whose name does not start with the host triplet.  If you think this
2380configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2381ac_tool_warned=yes ;;
2382esac
2383    STRIP=$ac_ct_STRIP
2384  fi
2385else
2386  STRIP="$ac_cv_prog_STRIP"
2387fi
2388
2389fi
2390INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2391
2392# We need awk for the "check" target.  The system "awk" is bad on
2393# some platforms.
2394# Always define AMTAR for backward compatibility.
2395
2396AMTAR=${AMTAR-"${am_missing_run}tar"}
2397
2398am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2399
2400
2401
2402
2403
2404ac_ext=c
2405ac_cpp='$CPP $CPPFLAGS'
2406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2408ac_compiler_gnu=$ac_cv_c_compiler_gnu
2409if test -n "$ac_tool_prefix"; then
2410  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2411set dummy ${ac_tool_prefix}gcc; ac_word=$2
2412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2414if test "${ac_cv_prog_CC+set}" = set; then
2415  echo $ECHO_N "(cached) $ECHO_C" >&6
2416else
2417  if test -n "$CC"; then
2418  ac_cv_prog_CC="$CC" # Let the user override the test.
2419else
2420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421for as_dir in $PATH
2422do
2423  IFS=$as_save_IFS
2424  test -z "$as_dir" && as_dir=.
2425  for ac_exec_ext in '' $ac_executable_extensions; do
2426  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2427    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2428    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2429    break 2
2430  fi
2431done
2432done
2433IFS=$as_save_IFS
2434
2435fi
2436fi
2437CC=$ac_cv_prog_CC
2438if test -n "$CC"; then
2439  { echo "$as_me:$LINENO: result: $CC" >&5
2440echo "${ECHO_T}$CC" >&6; }
2441else
2442  { echo "$as_me:$LINENO: result: no" >&5
2443echo "${ECHO_T}no" >&6; }
2444fi
2445
2446
2447fi
2448if test -z "$ac_cv_prog_CC"; then
2449  ac_ct_CC=$CC
2450  # Extract the first word of "gcc", so it can be a program name with args.
2451set dummy gcc; ac_word=$2
2452{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2454if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2455  echo $ECHO_N "(cached) $ECHO_C" >&6
2456else
2457  if test -n "$ac_ct_CC"; then
2458  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2459else
2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463  IFS=$as_save_IFS
2464  test -z "$as_dir" && as_dir=.
2465  for ac_exec_ext in '' $ac_executable_extensions; do
2466  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467    ac_cv_prog_ac_ct_CC="gcc"
2468    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469    break 2
2470  fi
2471done
2472done
2473IFS=$as_save_IFS
2474
2475fi
2476fi
2477ac_ct_CC=$ac_cv_prog_ac_ct_CC
2478if test -n "$ac_ct_CC"; then
2479  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2480echo "${ECHO_T}$ac_ct_CC" >&6; }
2481else
2482  { echo "$as_me:$LINENO: result: no" >&5
2483echo "${ECHO_T}no" >&6; }
2484fi
2485
2486  if test "x$ac_ct_CC" = x; then
2487    CC=""
2488  else
2489    case $cross_compiling:$ac_tool_warned in
2490yes:)
2491{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2492whose name does not start with the host triplet.  If you think this
2493configuration is useful to you, please write to autoconf@gnu.org." >&5
2494echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2495whose name does not start with the host triplet.  If you think this
2496configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2497ac_tool_warned=yes ;;
2498esac
2499    CC=$ac_ct_CC
2500  fi
2501else
2502  CC="$ac_cv_prog_CC"
2503fi
2504
2505if test -z "$CC"; then
2506          if test -n "$ac_tool_prefix"; then
2507    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2508set dummy ${ac_tool_prefix}cc; ac_word=$2
2509{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2511if test "${ac_cv_prog_CC+set}" = set; then
2512  echo $ECHO_N "(cached) $ECHO_C" >&6
2513else
2514  if test -n "$CC"; then
2515  ac_cv_prog_CC="$CC" # Let the user override the test.
2516else
2517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518for as_dir in $PATH
2519do
2520  IFS=$as_save_IFS
2521  test -z "$as_dir" && as_dir=.
2522  for ac_exec_ext in '' $ac_executable_extensions; do
2523  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2524    ac_cv_prog_CC="${ac_tool_prefix}cc"
2525    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526    break 2
2527  fi
2528done
2529done
2530IFS=$as_save_IFS
2531
2532fi
2533fi
2534CC=$ac_cv_prog_CC
2535if test -n "$CC"; then
2536  { echo "$as_me:$LINENO: result: $CC" >&5
2537echo "${ECHO_T}$CC" >&6; }
2538else
2539  { echo "$as_me:$LINENO: result: no" >&5
2540echo "${ECHO_T}no" >&6; }
2541fi
2542
2543
2544  fi
2545fi
2546if test -z "$CC"; then
2547  # Extract the first word of "cc", so it can be a program name with args.
2548set dummy cc; ac_word=$2
2549{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2551if test "${ac_cv_prog_CC+set}" = set; then
2552  echo $ECHO_N "(cached) $ECHO_C" >&6
2553else
2554  if test -n "$CC"; then
2555  ac_cv_prog_CC="$CC" # Let the user override the test.
2556else
2557  ac_prog_rejected=no
2558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559for as_dir in $PATH
2560do
2561  IFS=$as_save_IFS
2562  test -z "$as_dir" && as_dir=.
2563  for ac_exec_ext in '' $ac_executable_extensions; do
2564  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2565    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2566       ac_prog_rejected=yes
2567       continue
2568     fi
2569    ac_cv_prog_CC="cc"
2570    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571    break 2
2572  fi
2573done
2574done
2575IFS=$as_save_IFS
2576
2577if test $ac_prog_rejected = yes; then
2578  # We found a bogon in the path, so make sure we never use it.
2579  set dummy $ac_cv_prog_CC
2580  shift
2581  if test $# != 0; then
2582    # We chose a different compiler from the bogus one.
2583    # However, it has the same basename, so the bogon will be chosen
2584    # first if we set CC to just the basename; use the full file name.
2585    shift
2586    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2587  fi
2588fi
2589fi
2590fi
2591CC=$ac_cv_prog_CC
2592if test -n "$CC"; then
2593  { echo "$as_me:$LINENO: result: $CC" >&5
2594echo "${ECHO_T}$CC" >&6; }
2595else
2596  { echo "$as_me:$LINENO: result: no" >&5
2597echo "${ECHO_T}no" >&6; }
2598fi
2599
2600
2601fi
2602if test -z "$CC"; then
2603  if test -n "$ac_tool_prefix"; then
2604  for ac_prog in cl.exe
2605  do
2606    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2607set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2608{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2610if test "${ac_cv_prog_CC+set}" = set; then
2611  echo $ECHO_N "(cached) $ECHO_C" >&6
2612else
2613  if test -n "$CC"; then
2614  ac_cv_prog_CC="$CC" # Let the user override the test.
2615else
2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617for as_dir in $PATH
2618do
2619  IFS=$as_save_IFS
2620  test -z "$as_dir" && as_dir=.
2621  for ac_exec_ext in '' $ac_executable_extensions; do
2622  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2624    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625    break 2
2626  fi
2627done
2628done
2629IFS=$as_save_IFS
2630
2631fi
2632fi
2633CC=$ac_cv_prog_CC
2634if test -n "$CC"; then
2635  { echo "$as_me:$LINENO: result: $CC" >&5
2636echo "${ECHO_T}$CC" >&6; }
2637else
2638  { echo "$as_me:$LINENO: result: no" >&5
2639echo "${ECHO_T}no" >&6; }
2640fi
2641
2642
2643    test -n "$CC" && break
2644  done
2645fi
2646if test -z "$CC"; then
2647  ac_ct_CC=$CC
2648  for ac_prog in cl.exe
2649do
2650  # Extract the first word of "$ac_prog", so it can be a program name with args.
2651set dummy $ac_prog; ac_word=$2
2652{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2654if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2655  echo $ECHO_N "(cached) $ECHO_C" >&6
2656else
2657  if test -n "$ac_ct_CC"; then
2658  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2659else
2660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661for as_dir in $PATH
2662do
2663  IFS=$as_save_IFS
2664  test -z "$as_dir" && as_dir=.
2665  for ac_exec_ext in '' $ac_executable_extensions; do
2666  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667    ac_cv_prog_ac_ct_CC="$ac_prog"
2668    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669    break 2
2670  fi
2671done
2672done
2673IFS=$as_save_IFS
2674
2675fi
2676fi
2677ac_ct_CC=$ac_cv_prog_ac_ct_CC
2678if test -n "$ac_ct_CC"; then
2679  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2680echo "${ECHO_T}$ac_ct_CC" >&6; }
2681else
2682  { echo "$as_me:$LINENO: result: no" >&5
2683echo "${ECHO_T}no" >&6; }
2684fi
2685
2686
2687  test -n "$ac_ct_CC" && break
2688done
2689
2690  if test "x$ac_ct_CC" = x; then
2691    CC=""
2692  else
2693    case $cross_compiling:$ac_tool_warned in
2694yes:)
2695{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2696whose name does not start with the host triplet.  If you think this
2697configuration is useful to you, please write to autoconf@gnu.org." >&5
2698echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2699whose name does not start with the host triplet.  If you think this
2700configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2701ac_tool_warned=yes ;;
2702esac
2703    CC=$ac_ct_CC
2704  fi
2705fi
2706
2707fi
2708
2709
2710test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2711See \`config.log' for more details." >&5
2712echo "$as_me: error: no acceptable C compiler found in \$PATH
2713See \`config.log' for more details." >&2;}
2714   { (exit 1); exit 1; }; }
2715
2716# Provide some information about the compiler.
2717echo "$as_me:$LINENO: checking for C compiler version" >&5
2718ac_compiler=`set X $ac_compile; echo $2`
2719{ (ac_try="$ac_compiler --version >&5"
2720case "(($ac_try" in
2721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722  *) ac_try_echo=$ac_try;;
2723esac
2724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725  (eval "$ac_compiler --version >&5") 2>&5
2726  ac_status=$?
2727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728  (exit $ac_status); }
2729{ (ac_try="$ac_compiler -v >&5"
2730case "(($ac_try" in
2731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732  *) ac_try_echo=$ac_try;;
2733esac
2734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735  (eval "$ac_compiler -v >&5") 2>&5
2736  ac_status=$?
2737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738  (exit $ac_status); }
2739{ (ac_try="$ac_compiler -V >&5"
2740case "(($ac_try" in
2741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742  *) ac_try_echo=$ac_try;;
2743esac
2744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745  (eval "$ac_compiler -V >&5") 2>&5
2746  ac_status=$?
2747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748  (exit $ac_status); }
2749
2750cat >conftest.$ac_ext <<_ACEOF
2751/* confdefs.h.  */
2752_ACEOF
2753cat confdefs.h >>conftest.$ac_ext
2754cat >>conftest.$ac_ext <<_ACEOF
2755/* end confdefs.h.  */
2756
2757int
2758main ()
2759{
2760
2761  ;
2762  return 0;
2763}
2764_ACEOF
2765ac_clean_files_save=$ac_clean_files
2766ac_clean_files="$ac_clean_files a.out a.exe b.out"
2767# Try to create an executable without -o first, disregard a.out.
2768# It will help us diagnose broken compilers, and finding out an intuition
2769# of exeext.
2770{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2771echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2772ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2773#
2774# List of possible output files, starting from the most likely.
2775# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2776# only as a last resort.  b.out is created by i960 compilers.
2777ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2778#
2779# The IRIX 6 linker writes into existing files which may not be
2780# executable, retaining their permissions.  Remove them first so a
2781# subsequent execution test works.
2782ac_rmfiles=
2783for ac_file in $ac_files
2784do
2785  case $ac_file in
2786    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2787    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2788  esac
2789done
2790rm -f $ac_rmfiles
2791
2792if { (ac_try="$ac_link_default"
2793case "(($ac_try" in
2794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795  *) ac_try_echo=$ac_try;;
2796esac
2797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798  (eval "$ac_link_default") 2>&5
2799  ac_status=$?
2800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801  (exit $ac_status); }; then
2802  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2803# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2804# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2805# so that the user can short-circuit this test for compilers unknown to
2806# Autoconf.
2807for ac_file in $ac_files ''
2808do
2809  test -f "$ac_file" || continue
2810  case $ac_file in
2811    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2812	;;
2813    [ab].out )
2814	# We found the default executable, but exeext='' is most
2815	# certainly right.
2816	break;;
2817    *.* )
2818        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2819	then :; else
2820	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2821	fi
2822	# We set ac_cv_exeext here because the later test for it is not
2823	# safe: cross compilers may not add the suffix if given an `-o'
2824	# argument, so we may need to know it at that point already.
2825	# Even if this section looks crufty: it has the advantage of
2826	# actually working.
2827	break;;
2828    * )
2829	break;;
2830  esac
2831done
2832test "$ac_cv_exeext" = no && ac_cv_exeext=
2833
2834else
2835  ac_file=''
2836fi
2837
2838{ echo "$as_me:$LINENO: result: $ac_file" >&5
2839echo "${ECHO_T}$ac_file" >&6; }
2840if test -z "$ac_file"; then
2841  echo "$as_me: failed program was:" >&5
2842sed 's/^/| /' conftest.$ac_ext >&5
2843
2844{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2845See \`config.log' for more details." >&5
2846echo "$as_me: error: C compiler cannot create executables
2847See \`config.log' for more details." >&2;}
2848   { (exit 77); exit 77; }; }
2849fi
2850
2851ac_exeext=$ac_cv_exeext
2852
2853# Check that the compiler produces executables we can run.  If not, either
2854# the compiler is broken, or we cross compile.
2855{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2856echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2857# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2858# If not cross compiling, check that we can run a simple program.
2859if test "$cross_compiling" != yes; then
2860  if { ac_try='./$ac_file'
2861  { (case "(($ac_try" in
2862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863  *) ac_try_echo=$ac_try;;
2864esac
2865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2866  (eval "$ac_try") 2>&5
2867  ac_status=$?
2868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869  (exit $ac_status); }; }; then
2870    cross_compiling=no
2871  else
2872    if test "$cross_compiling" = maybe; then
2873	cross_compiling=yes
2874    else
2875	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2876If you meant to cross compile, use \`--host'.
2877See \`config.log' for more details." >&5
2878echo "$as_me: error: cannot run C compiled programs.
2879If you meant to cross compile, use \`--host'.
2880See \`config.log' for more details." >&2;}
2881   { (exit 1); exit 1; }; }
2882    fi
2883  fi
2884fi
2885{ echo "$as_me:$LINENO: result: yes" >&5
2886echo "${ECHO_T}yes" >&6; }
2887
2888rm -f a.out a.exe conftest$ac_cv_exeext b.out
2889ac_clean_files=$ac_clean_files_save
2890# Check that the compiler produces executables we can run.  If not, either
2891# the compiler is broken, or we cross compile.
2892{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2893echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2894{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2895echo "${ECHO_T}$cross_compiling" >&6; }
2896
2897{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2898echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2899if { (ac_try="$ac_link"
2900case "(($ac_try" in
2901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902  *) ac_try_echo=$ac_try;;
2903esac
2904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905  (eval "$ac_link") 2>&5
2906  ac_status=$?
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); }; then
2909  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2910# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2911# work properly (i.e., refer to `conftest.exe'), while it won't with
2912# `rm'.
2913for ac_file in conftest.exe conftest conftest.*; do
2914  test -f "$ac_file" || continue
2915  case $ac_file in
2916    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2917    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2918	  break;;
2919    * ) break;;
2920  esac
2921done
2922else
2923  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2924See \`config.log' for more details." >&5
2925echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2926See \`config.log' for more details." >&2;}
2927   { (exit 1); exit 1; }; }
2928fi
2929
2930rm -f conftest$ac_cv_exeext
2931{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2932echo "${ECHO_T}$ac_cv_exeext" >&6; }
2933
2934rm -f conftest.$ac_ext
2935EXEEXT=$ac_cv_exeext
2936ac_exeext=$EXEEXT
2937{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2938echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2939if test "${ac_cv_objext+set}" = set; then
2940  echo $ECHO_N "(cached) $ECHO_C" >&6
2941else
2942  cat >conftest.$ac_ext <<_ACEOF
2943/* confdefs.h.  */
2944_ACEOF
2945cat confdefs.h >>conftest.$ac_ext
2946cat >>conftest.$ac_ext <<_ACEOF
2947/* end confdefs.h.  */
2948
2949int
2950main ()
2951{
2952
2953  ;
2954  return 0;
2955}
2956_ACEOF
2957rm -f conftest.o conftest.obj
2958if { (ac_try="$ac_compile"
2959case "(($ac_try" in
2960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961  *) ac_try_echo=$ac_try;;
2962esac
2963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964  (eval "$ac_compile") 2>&5
2965  ac_status=$?
2966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967  (exit $ac_status); }; then
2968  for ac_file in conftest.o conftest.obj conftest.*; do
2969  test -f "$ac_file" || continue;
2970  case $ac_file in
2971    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2972    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2973       break;;
2974  esac
2975done
2976else
2977  echo "$as_me: failed program was:" >&5
2978sed 's/^/| /' conftest.$ac_ext >&5
2979
2980{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2981See \`config.log' for more details." >&5
2982echo "$as_me: error: cannot compute suffix of object files: cannot compile
2983See \`config.log' for more details." >&2;}
2984   { (exit 1); exit 1; }; }
2985fi
2986
2987rm -f conftest.$ac_cv_objext conftest.$ac_ext
2988fi
2989{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2990echo "${ECHO_T}$ac_cv_objext" >&6; }
2991OBJEXT=$ac_cv_objext
2992ac_objext=$OBJEXT
2993{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2994echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2995if test "${ac_cv_c_compiler_gnu+set}" = set; then
2996  echo $ECHO_N "(cached) $ECHO_C" >&6
2997else
2998  cat >conftest.$ac_ext <<_ACEOF
2999/* confdefs.h.  */
3000_ACEOF
3001cat confdefs.h >>conftest.$ac_ext
3002cat >>conftest.$ac_ext <<_ACEOF
3003/* end confdefs.h.  */
3004
3005int
3006main ()
3007{
3008#ifndef __GNUC__
3009       choke me
3010#endif
3011
3012  ;
3013  return 0;
3014}
3015_ACEOF
3016rm -f conftest.$ac_objext
3017if { (ac_try="$ac_compile"
3018case "(($ac_try" in
3019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020  *) ac_try_echo=$ac_try;;
3021esac
3022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023  (eval "$ac_compile") 2>conftest.er1
3024  ac_status=$?
3025  grep -v '^ *+' conftest.er1 >conftest.err
3026  rm -f conftest.er1
3027  cat conftest.err >&5
3028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029  (exit $ac_status); } && {
3030	 test -z "$ac_c_werror_flag" ||
3031	 test ! -s conftest.err
3032       } && test -s conftest.$ac_objext; then
3033  ac_compiler_gnu=yes
3034else
3035  echo "$as_me: failed program was:" >&5
3036sed 's/^/| /' conftest.$ac_ext >&5
3037
3038	ac_compiler_gnu=no
3039fi
3040
3041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042ac_cv_c_compiler_gnu=$ac_compiler_gnu
3043
3044fi
3045{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3046echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3047GCC=`test $ac_compiler_gnu = yes && echo yes`
3048ac_test_CFLAGS=${CFLAGS+set}
3049ac_save_CFLAGS=$CFLAGS
3050{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3051echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3052if test "${ac_cv_prog_cc_g+set}" = set; then
3053  echo $ECHO_N "(cached) $ECHO_C" >&6
3054else
3055  ac_save_c_werror_flag=$ac_c_werror_flag
3056   ac_c_werror_flag=yes
3057   ac_cv_prog_cc_g=no
3058   CFLAGS="-g"
3059   cat >conftest.$ac_ext <<_ACEOF
3060/* confdefs.h.  */
3061_ACEOF
3062cat confdefs.h >>conftest.$ac_ext
3063cat >>conftest.$ac_ext <<_ACEOF
3064/* end confdefs.h.  */
3065
3066int
3067main ()
3068{
3069
3070  ;
3071  return 0;
3072}
3073_ACEOF
3074rm -f conftest.$ac_objext
3075if { (ac_try="$ac_compile"
3076case "(($ac_try" in
3077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078  *) ac_try_echo=$ac_try;;
3079esac
3080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081  (eval "$ac_compile") 2>conftest.er1
3082  ac_status=$?
3083  grep -v '^ *+' conftest.er1 >conftest.err
3084  rm -f conftest.er1
3085  cat conftest.err >&5
3086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087  (exit $ac_status); } && {
3088	 test -z "$ac_c_werror_flag" ||
3089	 test ! -s conftest.err
3090       } && test -s conftest.$ac_objext; then
3091  ac_cv_prog_cc_g=yes
3092else
3093  echo "$as_me: failed program was:" >&5
3094sed 's/^/| /' conftest.$ac_ext >&5
3095
3096	CFLAGS=""
3097      cat >conftest.$ac_ext <<_ACEOF
3098/* confdefs.h.  */
3099_ACEOF
3100cat confdefs.h >>conftest.$ac_ext
3101cat >>conftest.$ac_ext <<_ACEOF
3102/* end confdefs.h.  */
3103
3104int
3105main ()
3106{
3107
3108  ;
3109  return 0;
3110}
3111_ACEOF
3112rm -f conftest.$ac_objext
3113if { (ac_try="$ac_compile"
3114case "(($ac_try" in
3115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116  *) ac_try_echo=$ac_try;;
3117esac
3118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119  (eval "$ac_compile") 2>conftest.er1
3120  ac_status=$?
3121  grep -v '^ *+' conftest.er1 >conftest.err
3122  rm -f conftest.er1
3123  cat conftest.err >&5
3124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125  (exit $ac_status); } && {
3126	 test -z "$ac_c_werror_flag" ||
3127	 test ! -s conftest.err
3128       } && test -s conftest.$ac_objext; then
3129  :
3130else
3131  echo "$as_me: failed program was:" >&5
3132sed 's/^/| /' conftest.$ac_ext >&5
3133
3134	ac_c_werror_flag=$ac_save_c_werror_flag
3135	 CFLAGS="-g"
3136	 cat >conftest.$ac_ext <<_ACEOF
3137/* confdefs.h.  */
3138_ACEOF
3139cat confdefs.h >>conftest.$ac_ext
3140cat >>conftest.$ac_ext <<_ACEOF
3141/* end confdefs.h.  */
3142
3143int
3144main ()
3145{
3146
3147  ;
3148  return 0;
3149}
3150_ACEOF
3151rm -f conftest.$ac_objext
3152if { (ac_try="$ac_compile"
3153case "(($ac_try" in
3154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155  *) ac_try_echo=$ac_try;;
3156esac
3157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158  (eval "$ac_compile") 2>conftest.er1
3159  ac_status=$?
3160  grep -v '^ *+' conftest.er1 >conftest.err
3161  rm -f conftest.er1
3162  cat conftest.err >&5
3163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164  (exit $ac_status); } && {
3165	 test -z "$ac_c_werror_flag" ||
3166	 test ! -s conftest.err
3167       } && test -s conftest.$ac_objext; then
3168  ac_cv_prog_cc_g=yes
3169else
3170  echo "$as_me: failed program was:" >&5
3171sed 's/^/| /' conftest.$ac_ext >&5
3172
3173
3174fi
3175
3176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177fi
3178
3179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180fi
3181
3182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3183   ac_c_werror_flag=$ac_save_c_werror_flag
3184fi
3185{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3186echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3187if test "$ac_test_CFLAGS" = set; then
3188  CFLAGS=$ac_save_CFLAGS
3189elif test $ac_cv_prog_cc_g = yes; then
3190  if test "$GCC" = yes; then
3191    CFLAGS="-g -O2"
3192  else
3193    CFLAGS="-g"
3194  fi
3195else
3196  if test "$GCC" = yes; then
3197    CFLAGS="-O2"
3198  else
3199    CFLAGS=
3200  fi
3201fi
3202{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3203echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3204if test "${ac_cv_prog_cc_c89+set}" = set; then
3205  echo $ECHO_N "(cached) $ECHO_C" >&6
3206else
3207  ac_cv_prog_cc_c89=no
3208ac_save_CC=$CC
3209cat >conftest.$ac_ext <<_ACEOF
3210/* confdefs.h.  */
3211_ACEOF
3212cat confdefs.h >>conftest.$ac_ext
3213cat >>conftest.$ac_ext <<_ACEOF
3214/* end confdefs.h.  */
3215#include <stdarg.h>
3216#include <stdio.h>
3217#include <sys/types.h>
3218#include <sys/stat.h>
3219/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3220struct buf { int x; };
3221FILE * (*rcsopen) (struct buf *, struct stat *, int);
3222static char *e (p, i)
3223     char **p;
3224     int i;
3225{
3226  return p[i];
3227}
3228static char *f (char * (*g) (char **, int), char **p, ...)
3229{
3230  char *s;
3231  va_list v;
3232  va_start (v,p);
3233  s = g (p, va_arg (v,int));
3234  va_end (v);
3235  return s;
3236}
3237
3238/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3239   function prototypes and stuff, but not '\xHH' hex character constants.
3240   These don't provoke an error unfortunately, instead are silently treated
3241   as 'x'.  The following induces an error, until -std is added to get
3242   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3243   array size at least.  It's necessary to write '\x00'==0 to get something
3244   that's true only with -std.  */
3245int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3246
3247/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3248   inside strings and character constants.  */
3249#define FOO(x) 'x'
3250int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3251
3252int test (int i, double x);
3253struct s1 {int (*f) (int a);};
3254struct s2 {int (*f) (double a);};
3255int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3256int argc;
3257char **argv;
3258int
3259main ()
3260{
3261return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3262  ;
3263  return 0;
3264}
3265_ACEOF
3266for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3267	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3268do
3269  CC="$ac_save_CC $ac_arg"
3270  rm -f conftest.$ac_objext
3271if { (ac_try="$ac_compile"
3272case "(($ac_try" in
3273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274  *) ac_try_echo=$ac_try;;
3275esac
3276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277  (eval "$ac_compile") 2>conftest.er1
3278  ac_status=$?
3279  grep -v '^ *+' conftest.er1 >conftest.err
3280  rm -f conftest.er1
3281  cat conftest.err >&5
3282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283  (exit $ac_status); } && {
3284	 test -z "$ac_c_werror_flag" ||
3285	 test ! -s conftest.err
3286       } && test -s conftest.$ac_objext; then
3287  ac_cv_prog_cc_c89=$ac_arg
3288else
3289  echo "$as_me: failed program was:" >&5
3290sed 's/^/| /' conftest.$ac_ext >&5
3291
3292
3293fi
3294
3295rm -f core conftest.err conftest.$ac_objext
3296  test "x$ac_cv_prog_cc_c89" != "xno" && break
3297done
3298rm -f conftest.$ac_ext
3299CC=$ac_save_CC
3300
3301fi
3302# AC_CACHE_VAL
3303case "x$ac_cv_prog_cc_c89" in
3304  x)
3305    { echo "$as_me:$LINENO: result: none needed" >&5
3306echo "${ECHO_T}none needed" >&6; } ;;
3307  xno)
3308    { echo "$as_me:$LINENO: result: unsupported" >&5
3309echo "${ECHO_T}unsupported" >&6; } ;;
3310  *)
3311    CC="$CC $ac_cv_prog_cc_c89"
3312    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3313echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3314esac
3315
3316
3317ac_ext=c
3318ac_cpp='$CPP $CPPFLAGS'
3319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321ac_compiler_gnu=$ac_cv_c_compiler_gnu
3322DEPDIR="${am__leading_dot}deps"
3323
3324ac_config_commands="$ac_config_commands depfiles"
3325
3326
3327am_make=${MAKE-make}
3328cat > confinc << 'END'
3329am__doit:
3330	@echo done
3331.PHONY: am__doit
3332END
3333# If we don't find an include directive, just comment out the code.
3334{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3335echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3336am__include="#"
3337am__quote=
3338_am_result=none
3339# First try GNU make style include.
3340echo "include confinc" > confmf
3341# We grep out `Entering directory' and `Leaving directory'
3342# messages which can occur if `w' ends up in MAKEFLAGS.
3343# In particular we don't look at `^make:' because GNU make might
3344# be invoked under some other name (usually "gmake"), in which
3345# case it prints its new name instead of `make'.
3346if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3347   am__include=include
3348   am__quote=
3349   _am_result=GNU
3350fi
3351# Now try BSD make style include.
3352if test "$am__include" = "#"; then
3353   echo '.include "confinc"' > confmf
3354   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3355      am__include=.include
3356      am__quote="\""
3357      _am_result=BSD
3358   fi
3359fi
3360
3361
3362{ echo "$as_me:$LINENO: result: $_am_result" >&5
3363echo "${ECHO_T}$_am_result" >&6; }
3364rm -f confinc confmf
3365
3366# Check whether --enable-dependency-tracking was given.
3367if test "${enable_dependency_tracking+set}" = set; then
3368  enableval=$enable_dependency_tracking;
3369fi
3370
3371if test "x$enable_dependency_tracking" != xno; then
3372  am_depcomp="$ac_aux_dir/depcomp"
3373  AMDEPBACKSLASH='\'
3374fi
3375 if test "x$enable_dependency_tracking" != xno; then
3376  AMDEP_TRUE=
3377  AMDEP_FALSE='#'
3378else
3379  AMDEP_TRUE='#'
3380  AMDEP_FALSE=
3381fi
3382
3383
3384
3385depcc="$CC"   am_compiler_list=
3386
3387{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3388echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3389if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3390  echo $ECHO_N "(cached) $ECHO_C" >&6
3391else
3392  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3393  # We make a subdir and do the tests there.  Otherwise we can end up
3394  # making bogus files that we don't know about and never remove.  For
3395  # instance it was reported that on HP-UX the gcc test will end up
3396  # making a dummy file named `D' -- because `-MD' means `put the output
3397  # in D'.
3398  mkdir conftest.dir
3399  # Copy depcomp to subdir because otherwise we won't find it if we're
3400  # using a relative directory.
3401  cp "$am_depcomp" conftest.dir
3402  cd conftest.dir
3403  # We will build objects and dependencies in a subdirectory because
3404  # it helps to detect inapplicable dependency modes.  For instance
3405  # both Tru64's cc and ICC support -MD to output dependencies as a
3406  # side effect of compilation, but ICC will put the dependencies in
3407  # the current directory while Tru64 will put them in the object
3408  # directory.
3409  mkdir sub
3410
3411  am_cv_CC_dependencies_compiler_type=none
3412  if test "$am_compiler_list" = ""; then
3413     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3414  fi
3415  for depmode in $am_compiler_list; do
3416    # Setup a source with many dependencies, because some compilers
3417    # like to wrap large dependency lists on column 80 (with \), and
3418    # we should not choose a depcomp mode which is confused by this.
3419    #
3420    # We need to recreate these files for each test, as the compiler may
3421    # overwrite some of them when testing with obscure command lines.
3422    # This happens at least with the AIX C compiler.
3423    : > sub/conftest.c
3424    for i in 1 2 3 4 5 6; do
3425      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3426      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3427      # Solaris 8's {/usr,}/bin/sh.
3428      touch sub/conftst$i.h
3429    done
3430    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3431
3432    case $depmode in
3433    nosideeffect)
3434      # after this tag, mechanisms are not by side-effect, so they'll
3435      # only be used when explicitly requested
3436      if test "x$enable_dependency_tracking" = xyes; then
3437	continue
3438      else
3439	break
3440      fi
3441      ;;
3442    none) break ;;
3443    esac
3444    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3445    # mode.  It turns out that the SunPro C++ compiler does not properly
3446    # handle `-M -o', and we need to detect this.
3447    if depmode=$depmode \
3448       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3449       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3450       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3451         >/dev/null 2>conftest.err &&
3452       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3453       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3454       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3455       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3456      # icc doesn't choke on unknown options, it will just issue warnings
3457      # or remarks (even with -Werror).  So we grep stderr for any message
3458      # that says an option was ignored or not supported.
3459      # When given -MP, icc 7.0 and 7.1 complain thusly:
3460      #   icc: Command line warning: ignoring option '-M'; no argument required
3461      # The diagnosis changed in icc 8.0:
3462      #   icc: Command line remark: option '-MP' not supported
3463      if (grep 'ignoring option' conftest.err ||
3464          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3465        am_cv_CC_dependencies_compiler_type=$depmode
3466        break
3467      fi
3468    fi
3469  done
3470
3471  cd ..
3472  rm -rf conftest.dir
3473else
3474  am_cv_CC_dependencies_compiler_type=none
3475fi
3476
3477fi
3478{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3479echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3480CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3481
3482 if
3483  test "x$enable_dependency_tracking" != xno \
3484  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3485  am__fastdepCC_TRUE=
3486  am__fastdepCC_FALSE='#'
3487else
3488  am__fastdepCC_TRUE='#'
3489  am__fastdepCC_FALSE=
3490fi
3491
3492
3493# Check whether --enable-shared was given.
3494if test "${enable_shared+set}" = set; then
3495  enableval=$enable_shared; p=${PACKAGE-default}
3496    case $enableval in
3497    yes) enable_shared=yes ;;
3498    no) enable_shared=no ;;
3499    *)
3500      enable_shared=no
3501      # Look at the argument we got.  We use all the common list separators.
3502      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3503      for pkg in $enableval; do
3504	IFS="$lt_save_ifs"
3505	if test "X$pkg" = "X$p"; then
3506	  enable_shared=yes
3507	fi
3508      done
3509      IFS="$lt_save_ifs"
3510      ;;
3511    esac
3512else
3513  enable_shared=yes
3514fi
3515
3516
3517# Check whether --enable-static was given.
3518if test "${enable_static+set}" = set; then
3519  enableval=$enable_static; p=${PACKAGE-default}
3520    case $enableval in
3521    yes) enable_static=yes ;;
3522    no) enable_static=no ;;
3523    *)
3524     enable_static=no
3525      # Look at the argument we got.  We use all the common list separators.
3526      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3527      for pkg in $enableval; do
3528	IFS="$lt_save_ifs"
3529	if test "X$pkg" = "X$p"; then
3530	  enable_static=yes
3531	fi
3532      done
3533      IFS="$lt_save_ifs"
3534      ;;
3535    esac
3536else
3537  enable_static=yes
3538fi
3539
3540
3541# Check whether --enable-fast-install was given.
3542if test "${enable_fast_install+set}" = set; then
3543  enableval=$enable_fast_install; p=${PACKAGE-default}
3544    case $enableval in
3545    yes) enable_fast_install=yes ;;
3546    no) enable_fast_install=no ;;
3547    *)
3548      enable_fast_install=no
3549      # Look at the argument we got.  We use all the common list separators.
3550      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3551      for pkg in $enableval; do
3552	IFS="$lt_save_ifs"
3553	if test "X$pkg" = "X$p"; then
3554	  enable_fast_install=yes
3555	fi
3556      done
3557      IFS="$lt_save_ifs"
3558      ;;
3559    esac
3560else
3561  enable_fast_install=yes
3562fi
3563
3564
3565# Make sure we can run config.sub.
3566$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3567  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3568echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3569   { (exit 1); exit 1; }; }
3570
3571{ echo "$as_me:$LINENO: checking build system type" >&5
3572echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3573if test "${ac_cv_build+set}" = set; then
3574  echo $ECHO_N "(cached) $ECHO_C" >&6
3575else
3576  ac_build_alias=$build_alias
3577test "x$ac_build_alias" = x &&
3578  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3579test "x$ac_build_alias" = x &&
3580  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3581echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3582   { (exit 1); exit 1; }; }
3583ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3584  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3585echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3586   { (exit 1); exit 1; }; }
3587
3588fi
3589{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3590echo "${ECHO_T}$ac_cv_build" >&6; }
3591case $ac_cv_build in
3592*-*-*) ;;
3593*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3594echo "$as_me: error: invalid value of canonical build" >&2;}
3595   { (exit 1); exit 1; }; };;
3596esac
3597build=$ac_cv_build
3598ac_save_IFS=$IFS; IFS='-'
3599set x $ac_cv_build
3600shift
3601build_cpu=$1
3602build_vendor=$2
3603shift; shift
3604# Remember, the first character of IFS is used to create $*,
3605# except with old shells:
3606build_os=$*
3607IFS=$ac_save_IFS
3608case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3609
3610
3611{ echo "$as_me:$LINENO: checking host system type" >&5
3612echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3613if test "${ac_cv_host+set}" = set; then
3614  echo $ECHO_N "(cached) $ECHO_C" >&6
3615else
3616  if test "x$host_alias" = x; then
3617  ac_cv_host=$ac_cv_build
3618else
3619  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3620    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3621echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3622   { (exit 1); exit 1; }; }
3623fi
3624
3625fi
3626{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3627echo "${ECHO_T}$ac_cv_host" >&6; }
3628case $ac_cv_host in
3629*-*-*) ;;
3630*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3631echo "$as_me: error: invalid value of canonical host" >&2;}
3632   { (exit 1); exit 1; }; };;
3633esac
3634host=$ac_cv_host
3635ac_save_IFS=$IFS; IFS='-'
3636set x $ac_cv_host
3637shift
3638host_cpu=$1
3639host_vendor=$2
3640shift; shift
3641# Remember, the first character of IFS is used to create $*,
3642# except with old shells:
3643host_os=$*
3644IFS=$ac_save_IFS
3645case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3646
3647
3648{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3649echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3650if test "${lt_cv_path_SED+set}" = set; then
3651  echo $ECHO_N "(cached) $ECHO_C" >&6
3652else
3653  # Loop through the user's path and test for sed and gsed.
3654# Then use that list of sed's as ones to test for truncation.
3655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656for as_dir in $PATH
3657do
3658  IFS=$as_save_IFS
3659  test -z "$as_dir" && as_dir=.
3660  for lt_ac_prog in sed gsed; do
3661    for ac_exec_ext in '' $ac_executable_extensions; do
3662      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3663        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3664      fi
3665    done
3666  done
3667done
3668IFS=$as_save_IFS
3669lt_ac_max=0
3670lt_ac_count=0
3671# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3672# along with /bin/sed that truncates output.
3673for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3674  test ! -f $lt_ac_sed && continue
3675  cat /dev/null > conftest.in
3676  lt_ac_count=0
3677  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3678  # Check for GNU sed and select it if it is found.
3679  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3680    lt_cv_path_SED=$lt_ac_sed
3681    break
3682  fi
3683  while true; do
3684    cat conftest.in conftest.in >conftest.tmp
3685    mv conftest.tmp conftest.in
3686    cp conftest.in conftest.nl
3687    echo >>conftest.nl
3688    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3689    cmp -s conftest.out conftest.nl || break
3690    # 10000 chars as input seems more than enough
3691    test $lt_ac_count -gt 10 && break
3692    lt_ac_count=`expr $lt_ac_count + 1`
3693    if test $lt_ac_count -gt $lt_ac_max; then
3694      lt_ac_max=$lt_ac_count
3695      lt_cv_path_SED=$lt_ac_sed
3696    fi
3697  done
3698done
3699
3700fi
3701
3702SED=$lt_cv_path_SED
3703
3704{ echo "$as_me:$LINENO: result: $SED" >&5
3705echo "${ECHO_T}$SED" >&6; }
3706
3707{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3708echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3709if test "${ac_cv_path_GREP+set}" = set; then
3710  echo $ECHO_N "(cached) $ECHO_C" >&6
3711else
3712  # Extract the first word of "grep ggrep" to use in msg output
3713if test -z "$GREP"; then
3714set dummy grep ggrep; ac_prog_name=$2
3715if test "${ac_cv_path_GREP+set}" = set; then
3716  echo $ECHO_N "(cached) $ECHO_C" >&6
3717else
3718  ac_path_GREP_found=false
3719# Loop through the user's path and test for each of PROGNAME-LIST
3720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3722do
3723  IFS=$as_save_IFS
3724  test -z "$as_dir" && as_dir=.
3725  for ac_prog in grep ggrep; do
3726  for ac_exec_ext in '' $ac_executable_extensions; do
3727    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3728    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3729    # Check for GNU ac_path_GREP and select it if it is found.
3730  # Check for GNU $ac_path_GREP
3731case `"$ac_path_GREP" --version 2>&1` in
3732*GNU*)
3733  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3734*)
3735  ac_count=0
3736  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3737  while :
3738  do
3739    cat "conftest.in" "conftest.in" >"conftest.tmp"
3740    mv "conftest.tmp" "conftest.in"
3741    cp "conftest.in" "conftest.nl"
3742    echo 'GREP' >> "conftest.nl"
3743    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3744    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3745    ac_count=`expr $ac_count + 1`
3746    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3747      # Best one so far, save it but keep looking for a better one
3748      ac_cv_path_GREP="$ac_path_GREP"
3749      ac_path_GREP_max=$ac_count
3750    fi
3751    # 10*(2^10) chars as input seems more than enough
3752    test $ac_count -gt 10 && break
3753  done
3754  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3755esac
3756
3757
3758    $ac_path_GREP_found && break 3
3759  done
3760done
3761
3762done
3763IFS=$as_save_IFS
3764
3765
3766fi
3767
3768GREP="$ac_cv_path_GREP"
3769if test -z "$GREP"; then
3770  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3771echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3772   { (exit 1); exit 1; }; }
3773fi
3774
3775else
3776  ac_cv_path_GREP=$GREP
3777fi
3778
3779
3780fi
3781{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3782echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3783 GREP="$ac_cv_path_GREP"
3784
3785
3786{ echo "$as_me:$LINENO: checking for egrep" >&5
3787echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3788if test "${ac_cv_path_EGREP+set}" = set; then
3789  echo $ECHO_N "(cached) $ECHO_C" >&6
3790else
3791  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3792   then ac_cv_path_EGREP="$GREP -E"
3793   else
3794     # Extract the first word of "egrep" to use in msg output
3795if test -z "$EGREP"; then
3796set dummy egrep; ac_prog_name=$2
3797if test "${ac_cv_path_EGREP+set}" = set; then
3798  echo $ECHO_N "(cached) $ECHO_C" >&6
3799else
3800  ac_path_EGREP_found=false
3801# Loop through the user's path and test for each of PROGNAME-LIST
3802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3804do
3805  IFS=$as_save_IFS
3806  test -z "$as_dir" && as_dir=.
3807  for ac_prog in egrep; do
3808  for ac_exec_ext in '' $ac_executable_extensions; do
3809    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3810    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3811    # Check for GNU ac_path_EGREP and select it if it is found.
3812  # Check for GNU $ac_path_EGREP
3813case `"$ac_path_EGREP" --version 2>&1` in
3814*GNU*)
3815  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3816*)
3817  ac_count=0
3818  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3819  while :
3820  do
3821    cat "conftest.in" "conftest.in" >"conftest.tmp"
3822    mv "conftest.tmp" "conftest.in"
3823    cp "conftest.in" "conftest.nl"
3824    echo 'EGREP' >> "conftest.nl"
3825    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3826    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3827    ac_count=`expr $ac_count + 1`
3828    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3829      # Best one so far, save it but keep looking for a better one
3830      ac_cv_path_EGREP="$ac_path_EGREP"
3831      ac_path_EGREP_max=$ac_count
3832    fi
3833    # 10*(2^10) chars as input seems more than enough
3834    test $ac_count -gt 10 && break
3835  done
3836  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3837esac
3838
3839
3840    $ac_path_EGREP_found && break 3
3841  done
3842done
3843
3844done
3845IFS=$as_save_IFS
3846
3847
3848fi
3849
3850EGREP="$ac_cv_path_EGREP"
3851if test -z "$EGREP"; then
3852  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3853echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3854   { (exit 1); exit 1; }; }
3855fi
3856
3857else
3858  ac_cv_path_EGREP=$EGREP
3859fi
3860
3861
3862   fi
3863fi
3864{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3865echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3866 EGREP="$ac_cv_path_EGREP"
3867
3868
3869
3870# Check whether --with-gnu-ld was given.
3871if test "${with_gnu_ld+set}" = set; then
3872  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3873else
3874  with_gnu_ld=no
3875fi
3876
3877ac_prog=ld
3878if test "$GCC" = yes; then
3879  # Check if gcc -print-prog-name=ld gives a path.
3880  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3881echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3882  case $host in
3883  *-*-mingw*)
3884    # gcc leaves a trailing carriage return which upsets mingw
3885    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3886  *)
3887    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3888  esac
3889  case $ac_prog in
3890    # Accept absolute paths.
3891    [\\/]* | ?:[\\/]*)
3892      re_direlt='/[^/][^/]*/\.\./'
3893      # Canonicalize the pathname of ld
3894      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3895      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3896	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3897      done
3898      test -z "$LD" && LD="$ac_prog"
3899      ;;
3900  "")
3901    # If it fails, then pretend we aren't using GCC.
3902    ac_prog=ld
3903    ;;
3904  *)
3905    # If it is relative, then search for the first ld in PATH.
3906    with_gnu_ld=unknown
3907    ;;
3908  esac
3909elif test "$with_gnu_ld" = yes; then
3910  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3911echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3912else
3913  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3914echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3915fi
3916if test "${lt_cv_path_LD+set}" = set; then
3917  echo $ECHO_N "(cached) $ECHO_C" >&6
3918else
3919  if test -z "$LD"; then
3920  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3921  for ac_dir in $PATH; do
3922    IFS="$lt_save_ifs"
3923    test -z "$ac_dir" && ac_dir=.
3924    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3925      lt_cv_path_LD="$ac_dir/$ac_prog"
3926      # Check to see if the program is GNU ld.  I'd rather use --version,
3927      # but apparently some variants of GNU ld only accept -v.
3928      # Break only if it was the GNU/non-GNU ld that we prefer.
3929      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3930      *GNU* | *'with BFD'*)
3931	test "$with_gnu_ld" != no && break
3932	;;
3933      *)
3934	test "$with_gnu_ld" != yes && break
3935	;;
3936      esac
3937    fi
3938  done
3939  IFS="$lt_save_ifs"
3940else
3941  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3942fi
3943fi
3944
3945LD="$lt_cv_path_LD"
3946if test -n "$LD"; then
3947  { echo "$as_me:$LINENO: result: $LD" >&5
3948echo "${ECHO_T}$LD" >&6; }
3949else
3950  { echo "$as_me:$LINENO: result: no" >&5
3951echo "${ECHO_T}no" >&6; }
3952fi
3953test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3954echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3955   { (exit 1); exit 1; }; }
3956{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3957echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3958if test "${lt_cv_prog_gnu_ld+set}" = set; then
3959  echo $ECHO_N "(cached) $ECHO_C" >&6
3960else
3961  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3962case `$LD -v 2>&1 </dev/null` in
3963*GNU* | *'with BFD'*)
3964  lt_cv_prog_gnu_ld=yes
3965  ;;
3966*)
3967  lt_cv_prog_gnu_ld=no
3968  ;;
3969esac
3970fi
3971{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3972echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3973with_gnu_ld=$lt_cv_prog_gnu_ld
3974
3975
3976{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3977echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3978if test "${lt_cv_ld_reload_flag+set}" = set; then
3979  echo $ECHO_N "(cached) $ECHO_C" >&6
3980else
3981  lt_cv_ld_reload_flag='-r'
3982fi
3983{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3984echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3985reload_flag=$lt_cv_ld_reload_flag
3986case $reload_flag in
3987"" | " "*) ;;
3988*) reload_flag=" $reload_flag" ;;
3989esac
3990reload_cmds='$LD$reload_flag -o $output$reload_objs'
3991case $host_os in
3992  darwin*)
3993    if test "$GCC" = yes; then
3994      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3995    else
3996      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3997    fi
3998    ;;
3999esac
4000
4001{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4002echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4003if test "${lt_cv_path_NM+set}" = set; then
4004  echo $ECHO_N "(cached) $ECHO_C" >&6
4005else
4006  if test -n "$NM"; then
4007  # Let the user override the test.
4008  lt_cv_path_NM="$NM"
4009else
4010  lt_nm_to_check="${ac_tool_prefix}nm"
4011  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4012    lt_nm_to_check="$lt_nm_to_check nm"
4013  fi
4014  for lt_tmp_nm in $lt_nm_to_check; do
4015    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4016    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4017      IFS="$lt_save_ifs"
4018      test -z "$ac_dir" && ac_dir=.
4019      tmp_nm="$ac_dir/$lt_tmp_nm"
4020      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4021	# Check to see if the nm accepts a BSD-compat flag.
4022	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4023	#   nm: unknown option "B" ignored
4024	# Tru64's nm complains that /dev/null is an invalid object file
4025	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4026	*/dev/null* | *'Invalid file or object type'*)
4027	  lt_cv_path_NM="$tmp_nm -B"
4028	  break
4029	  ;;
4030	*)
4031	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4032	  */dev/null*)
4033	    lt_cv_path_NM="$tmp_nm -p"
4034	    break
4035	    ;;
4036	  *)
4037	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4038	    continue # so that we can try to find one that supports BSD flags
4039	    ;;
4040	  esac
4041	  ;;
4042	esac
4043      fi
4044    done
4045    IFS="$lt_save_ifs"
4046  done
4047  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4048fi
4049fi
4050{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4051echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4052NM="$lt_cv_path_NM"
4053
4054{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4055echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4056LN_S=$as_ln_s
4057if test "$LN_S" = "ln -s"; then
4058  { echo "$as_me:$LINENO: result: yes" >&5
4059echo "${ECHO_T}yes" >&6; }
4060else
4061  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4062echo "${ECHO_T}no, using $LN_S" >&6; }
4063fi
4064
4065{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4066echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4067if test "${lt_cv_deplibs_check_method+set}" = set; then
4068  echo $ECHO_N "(cached) $ECHO_C" >&6
4069else
4070  lt_cv_file_magic_cmd='$MAGIC_CMD'
4071lt_cv_file_magic_test_file=
4072lt_cv_deplibs_check_method='unknown'
4073# Need to set the preceding variable on all platforms that support
4074# interlibrary dependencies.
4075# 'none' -- dependencies not supported.
4076# `unknown' -- same as none, but documents that we really don't know.
4077# 'pass_all' -- all dependencies passed with no checks.
4078# 'test_compile' -- check by making test program.
4079# 'file_magic [[regex]]' -- check by looking for files in library path
4080# which responds to the $file_magic_cmd with a given extended regex.
4081# If you have `file' or equivalent on your system and you're not sure
4082# whether `pass_all' will *always* work, you probably want this one.
4083
4084case $host_os in
4085aix4* | aix5*)
4086  lt_cv_deplibs_check_method=pass_all
4087  ;;
4088
4089beos*)
4090  lt_cv_deplibs_check_method=pass_all
4091  ;;
4092
4093bsdi[45]*)
4094  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4095  lt_cv_file_magic_cmd='/usr/bin/file -L'
4096  lt_cv_file_magic_test_file=/shlib/libc.so
4097  ;;
4098
4099cygwin*)
4100  # func_win32_libid is a shell function defined in ltmain.sh
4101  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4102  lt_cv_file_magic_cmd='func_win32_libid'
4103  ;;
4104
4105mingw* | pw32*)
4106  # Base MSYS/MinGW do not provide the 'file' command needed by
4107  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4108  # unless we find 'file', for example because we are cross-compiling.
4109  if ( file / ) >/dev/null 2>&1; then
4110    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4111    lt_cv_file_magic_cmd='func_win32_libid'
4112  else
4113    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4114    lt_cv_file_magic_cmd='$OBJDUMP -f'
4115  fi
4116  ;;
4117
4118darwin* | rhapsody*)
4119  lt_cv_deplibs_check_method=pass_all
4120  ;;
4121
4122freebsd* | dragonfly*)
4123  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4124    case $host_cpu in
4125    i*86 )
4126      # Not sure whether the presence of OpenBSD here was a mistake.
4127      # Let's accept both of them until this is cleared up.
4128      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4129      lt_cv_file_magic_cmd=/usr/bin/file
4130      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4131      ;;
4132    esac
4133  else
4134    lt_cv_deplibs_check_method=pass_all
4135  fi
4136  ;;
4137
4138gnu*)
4139  lt_cv_deplibs_check_method=pass_all
4140  ;;
4141
4142hpux10.20* | hpux11*)
4143  lt_cv_file_magic_cmd=/usr/bin/file
4144  case $host_cpu in
4145  ia64*)
4146    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4147    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4148    ;;
4149  hppa*64*)
4150    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]'
4151    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4152    ;;
4153  *)
4154    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4155    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4156    ;;
4157  esac
4158  ;;
4159
4160interix[3-9]*)
4161  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4162  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4163  ;;
4164
4165irix5* | irix6* | nonstopux*)
4166  case $LD in
4167  *-32|*"-32 ") libmagic=32-bit;;
4168  *-n32|*"-n32 ") libmagic=N32;;
4169  *-64|*"-64 ") libmagic=64-bit;;
4170  *) libmagic=never-match;;
4171  esac
4172  lt_cv_deplibs_check_method=pass_all
4173  ;;
4174
4175# This must be Linux ELF.
4176linux* | k*bsd*-gnu)
4177  lt_cv_deplibs_check_method=pass_all
4178  ;;
4179
4180netbsd*)
4181  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4182    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4183  else
4184    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4185  fi
4186  ;;
4187
4188newos6*)
4189  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4190  lt_cv_file_magic_cmd=/usr/bin/file
4191  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4192  ;;
4193
4194nto-qnx*)
4195  lt_cv_deplibs_check_method=unknown
4196  ;;
4197
4198openbsd*)
4199  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4200    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4201  else
4202    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4203  fi
4204  ;;
4205
4206osf3* | osf4* | osf5*)
4207  lt_cv_deplibs_check_method=pass_all
4208  ;;
4209
4210rdos*)
4211  lt_cv_deplibs_check_method=pass_all
4212  ;;
4213
4214solaris*)
4215  lt_cv_deplibs_check_method=pass_all
4216  ;;
4217
4218sysv4 | sysv4.3*)
4219  case $host_vendor in
4220  motorola)
4221    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]'
4222    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4223    ;;
4224  ncr)
4225    lt_cv_deplibs_check_method=pass_all
4226    ;;
4227  sequent)
4228    lt_cv_file_magic_cmd='/bin/file'
4229    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4230    ;;
4231  sni)
4232    lt_cv_file_magic_cmd='/bin/file'
4233    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4234    lt_cv_file_magic_test_file=/lib/libc.so
4235    ;;
4236  siemens)
4237    lt_cv_deplibs_check_method=pass_all
4238    ;;
4239  pc)
4240    lt_cv_deplibs_check_method=pass_all
4241    ;;
4242  esac
4243  ;;
4244
4245sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4246  lt_cv_deplibs_check_method=pass_all
4247  ;;
4248esac
4249
4250fi
4251{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4252echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4253file_magic_cmd=$lt_cv_file_magic_cmd
4254deplibs_check_method=$lt_cv_deplibs_check_method
4255test -z "$deplibs_check_method" && deplibs_check_method=unknown
4256
4257
4258
4259
4260# If no C compiler was specified, use CC.
4261LTCC=${LTCC-"$CC"}
4262
4263# If no C compiler flags were specified, use CFLAGS.
4264LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4265
4266# Allow CC to be a program name with arguments.
4267compiler=$CC
4268
4269
4270# Check whether --enable-libtool-lock was given.
4271if test "${enable_libtool_lock+set}" = set; then
4272  enableval=$enable_libtool_lock;
4273fi
4274
4275test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4276
4277# Some flags need to be propagated to the compiler or linker for good
4278# libtool support.
4279case $host in
4280ia64-*-hpux*)
4281  # Find out which ABI we are using.
4282  echo 'int i;' > conftest.$ac_ext
4283  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4284  (eval $ac_compile) 2>&5
4285  ac_status=$?
4286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287  (exit $ac_status); }; then
4288    case `/usr/bin/file conftest.$ac_objext` in
4289    *ELF-32*)
4290      HPUX_IA64_MODE="32"
4291      ;;
4292    *ELF-64*)
4293      HPUX_IA64_MODE="64"
4294      ;;
4295    esac
4296  fi
4297  rm -rf conftest*
4298  ;;
4299*-*-irix6*)
4300  # Find out which ABI we are using.
4301  echo '#line 4301 "configure"' > conftest.$ac_ext
4302  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4303  (eval $ac_compile) 2>&5
4304  ac_status=$?
4305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306  (exit $ac_status); }; then
4307   if test "$lt_cv_prog_gnu_ld" = yes; then
4308    case `/usr/bin/file conftest.$ac_objext` in
4309    *32-bit*)
4310      LD="${LD-ld} -melf32bsmip"
4311      ;;
4312    *N32*)
4313      LD="${LD-ld} -melf32bmipn32"
4314      ;;
4315    *64-bit*)
4316      LD="${LD-ld} -melf64bmip"
4317      ;;
4318    esac
4319   else
4320    case `/usr/bin/file conftest.$ac_objext` in
4321    *32-bit*)
4322      LD="${LD-ld} -32"
4323      ;;
4324    *N32*)
4325      LD="${LD-ld} -n32"
4326      ;;
4327    *64-bit*)
4328      LD="${LD-ld} -64"
4329      ;;
4330    esac
4331   fi
4332  fi
4333  rm -rf conftest*
4334  ;;
4335
4336x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4337s390*-*linux*|sparc*-*linux*)
4338  # Find out which ABI we are using.
4339  echo 'int i;' > conftest.$ac_ext
4340  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4341  (eval $ac_compile) 2>&5
4342  ac_status=$?
4343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344  (exit $ac_status); }; then
4345    case `/usr/bin/file conftest.o` in
4346    *32-bit*)
4347      case $host in
4348        x86_64-*kfreebsd*-gnu)
4349          LD="${LD-ld} -m elf_i386_fbsd"
4350          ;;
4351        x86_64-*linux*)
4352          LD="${LD-ld} -m elf_i386"
4353          ;;
4354        ppc64-*linux*|powerpc64-*linux*)
4355          LD="${LD-ld} -m elf32ppclinux"
4356          ;;
4357        s390x-*linux*)
4358          LD="${LD-ld} -m elf_s390"
4359          ;;
4360        sparc64-*linux*)
4361          LD="${LD-ld} -m elf32_sparc"
4362          ;;
4363      esac
4364      ;;
4365    *64-bit*)
4366      case $host in
4367        x86_64-*kfreebsd*-gnu)
4368          LD="${LD-ld} -m elf_x86_64_fbsd"
4369          ;;
4370        x86_64-*linux*)
4371          LD="${LD-ld} -m elf_x86_64"
4372          ;;
4373        ppc*-*linux*|powerpc*-*linux*)
4374          LD="${LD-ld} -m elf64ppc"
4375          ;;
4376        s390*-*linux*)
4377          LD="${LD-ld} -m elf64_s390"
4378          ;;
4379        sparc*-*linux*)
4380          LD="${LD-ld} -m elf64_sparc"
4381          ;;
4382      esac
4383      ;;
4384    esac
4385  fi
4386  rm -rf conftest*
4387  ;;
4388
4389*-*-sco3.2v5*)
4390  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4391  SAVE_CFLAGS="$CFLAGS"
4392  CFLAGS="$CFLAGS -belf"
4393  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4394echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4395if test "${lt_cv_cc_needs_belf+set}" = set; then
4396  echo $ECHO_N "(cached) $ECHO_C" >&6
4397else
4398  ac_ext=c
4399ac_cpp='$CPP $CPPFLAGS'
4400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4402ac_compiler_gnu=$ac_cv_c_compiler_gnu
4403
4404     cat >conftest.$ac_ext <<_ACEOF
4405/* confdefs.h.  */
4406_ACEOF
4407cat confdefs.h >>conftest.$ac_ext
4408cat >>conftest.$ac_ext <<_ACEOF
4409/* end confdefs.h.  */
4410
4411int
4412main ()
4413{
4414
4415  ;
4416  return 0;
4417}
4418_ACEOF
4419rm -f conftest.$ac_objext conftest$ac_exeext
4420if { (ac_try="$ac_link"
4421case "(($ac_try" in
4422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423  *) ac_try_echo=$ac_try;;
4424esac
4425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4426  (eval "$ac_link") 2>conftest.er1
4427  ac_status=$?
4428  grep -v '^ *+' conftest.er1 >conftest.err
4429  rm -f conftest.er1
4430  cat conftest.err >&5
4431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432  (exit $ac_status); } && {
4433	 test -z "$ac_c_werror_flag" ||
4434	 test ! -s conftest.err
4435       } && test -s conftest$ac_exeext &&
4436       $as_test_x conftest$ac_exeext; then
4437  lt_cv_cc_needs_belf=yes
4438else
4439  echo "$as_me: failed program was:" >&5
4440sed 's/^/| /' conftest.$ac_ext >&5
4441
4442	lt_cv_cc_needs_belf=no
4443fi
4444
4445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4446      conftest$ac_exeext conftest.$ac_ext
4447     ac_ext=c
4448ac_cpp='$CPP $CPPFLAGS'
4449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451ac_compiler_gnu=$ac_cv_c_compiler_gnu
4452
4453fi
4454{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4455echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4456  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4457    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4458    CFLAGS="$SAVE_CFLAGS"
4459  fi
4460  ;;
4461sparc*-*solaris*)
4462  # Find out which ABI we are using.
4463  echo 'int i;' > conftest.$ac_ext
4464  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465  (eval $ac_compile) 2>&5
4466  ac_status=$?
4467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468  (exit $ac_status); }; then
4469    case `/usr/bin/file conftest.o` in
4470    *64-bit*)
4471      case $lt_cv_prog_gnu_ld in
4472      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4473      *)    LD="${LD-ld} -64" ;;
4474      esac
4475      ;;
4476    esac
4477  fi
4478  rm -rf conftest*
4479  ;;
4480
4481
4482esac
4483
4484need_locks="$enable_libtool_lock"
4485
4486
4487ac_ext=c
4488ac_cpp='$CPP $CPPFLAGS'
4489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4491ac_compiler_gnu=$ac_cv_c_compiler_gnu
4492{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4493echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4494# On Suns, sometimes $CPP names a directory.
4495if test -n "$CPP" && test -d "$CPP"; then
4496  CPP=
4497fi
4498if test -z "$CPP"; then
4499  if test "${ac_cv_prog_CPP+set}" = set; then
4500  echo $ECHO_N "(cached) $ECHO_C" >&6
4501else
4502      # Double quotes because CPP needs to be expanded
4503    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4504    do
4505      ac_preproc_ok=false
4506for ac_c_preproc_warn_flag in '' yes
4507do
4508  # Use a header file that comes with gcc, so configuring glibc
4509  # with a fresh cross-compiler works.
4510  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4511  # <limits.h> exists even on freestanding compilers.
4512  # On the NeXT, cc -E runs the code through the compiler's parser,
4513  # not just through cpp. "Syntax error" is here to catch this case.
4514  cat >conftest.$ac_ext <<_ACEOF
4515/* confdefs.h.  */
4516_ACEOF
4517cat confdefs.h >>conftest.$ac_ext
4518cat >>conftest.$ac_ext <<_ACEOF
4519/* end confdefs.h.  */
4520#ifdef __STDC__
4521# include <limits.h>
4522#else
4523# include <assert.h>
4524#endif
4525		     Syntax error
4526_ACEOF
4527if { (ac_try="$ac_cpp conftest.$ac_ext"
4528case "(($ac_try" in
4529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530  *) ac_try_echo=$ac_try;;
4531esac
4532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4534  ac_status=$?
4535  grep -v '^ *+' conftest.er1 >conftest.err
4536  rm -f conftest.er1
4537  cat conftest.err >&5
4538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539  (exit $ac_status); } >/dev/null && {
4540	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4541	 test ! -s conftest.err
4542       }; then
4543  :
4544else
4545  echo "$as_me: failed program was:" >&5
4546sed 's/^/| /' conftest.$ac_ext >&5
4547
4548  # Broken: fails on valid input.
4549continue
4550fi
4551
4552rm -f conftest.err conftest.$ac_ext
4553
4554  # OK, works on sane cases.  Now check whether nonexistent headers
4555  # can be detected and how.
4556  cat >conftest.$ac_ext <<_ACEOF
4557/* confdefs.h.  */
4558_ACEOF
4559cat confdefs.h >>conftest.$ac_ext
4560cat >>conftest.$ac_ext <<_ACEOF
4561/* end confdefs.h.  */
4562#include <ac_nonexistent.h>
4563_ACEOF
4564if { (ac_try="$ac_cpp conftest.$ac_ext"
4565case "(($ac_try" in
4566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567  *) ac_try_echo=$ac_try;;
4568esac
4569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4571  ac_status=$?
4572  grep -v '^ *+' conftest.er1 >conftest.err
4573  rm -f conftest.er1
4574  cat conftest.err >&5
4575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576  (exit $ac_status); } >/dev/null && {
4577	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4578	 test ! -s conftest.err
4579       }; then
4580  # Broken: success on invalid input.
4581continue
4582else
4583  echo "$as_me: failed program was:" >&5
4584sed 's/^/| /' conftest.$ac_ext >&5
4585
4586  # Passes both tests.
4587ac_preproc_ok=:
4588break
4589fi
4590
4591rm -f conftest.err conftest.$ac_ext
4592
4593done
4594# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4595rm -f conftest.err conftest.$ac_ext
4596if $ac_preproc_ok; then
4597  break
4598fi
4599
4600    done
4601    ac_cv_prog_CPP=$CPP
4602
4603fi
4604  CPP=$ac_cv_prog_CPP
4605else
4606  ac_cv_prog_CPP=$CPP
4607fi
4608{ echo "$as_me:$LINENO: result: $CPP" >&5
4609echo "${ECHO_T}$CPP" >&6; }
4610ac_preproc_ok=false
4611for ac_c_preproc_warn_flag in '' yes
4612do
4613  # Use a header file that comes with gcc, so configuring glibc
4614  # with a fresh cross-compiler works.
4615  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4616  # <limits.h> exists even on freestanding compilers.
4617  # On the NeXT, cc -E runs the code through the compiler's parser,
4618  # not just through cpp. "Syntax error" is here to catch this case.
4619  cat >conftest.$ac_ext <<_ACEOF
4620/* confdefs.h.  */
4621_ACEOF
4622cat confdefs.h >>conftest.$ac_ext
4623cat >>conftest.$ac_ext <<_ACEOF
4624/* end confdefs.h.  */
4625#ifdef __STDC__
4626# include <limits.h>
4627#else
4628# include <assert.h>
4629#endif
4630		     Syntax error
4631_ACEOF
4632if { (ac_try="$ac_cpp conftest.$ac_ext"
4633case "(($ac_try" in
4634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635  *) ac_try_echo=$ac_try;;
4636esac
4637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4638  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4639  ac_status=$?
4640  grep -v '^ *+' conftest.er1 >conftest.err
4641  rm -f conftest.er1
4642  cat conftest.err >&5
4643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644  (exit $ac_status); } >/dev/null && {
4645	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4646	 test ! -s conftest.err
4647       }; then
4648  :
4649else
4650  echo "$as_me: failed program was:" >&5
4651sed 's/^/| /' conftest.$ac_ext >&5
4652
4653  # Broken: fails on valid input.
4654continue
4655fi
4656
4657rm -f conftest.err conftest.$ac_ext
4658
4659  # OK, works on sane cases.  Now check whether nonexistent headers
4660  # can be detected and how.
4661  cat >conftest.$ac_ext <<_ACEOF
4662/* confdefs.h.  */
4663_ACEOF
4664cat confdefs.h >>conftest.$ac_ext
4665cat >>conftest.$ac_ext <<_ACEOF
4666/* end confdefs.h.  */
4667#include <ac_nonexistent.h>
4668_ACEOF
4669if { (ac_try="$ac_cpp conftest.$ac_ext"
4670case "(($ac_try" in
4671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672  *) ac_try_echo=$ac_try;;
4673esac
4674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4676  ac_status=$?
4677  grep -v '^ *+' conftest.er1 >conftest.err
4678  rm -f conftest.er1
4679  cat conftest.err >&5
4680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681  (exit $ac_status); } >/dev/null && {
4682	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4683	 test ! -s conftest.err
4684       }; then
4685  # Broken: success on invalid input.
4686continue
4687else
4688  echo "$as_me: failed program was:" >&5
4689sed 's/^/| /' conftest.$ac_ext >&5
4690
4691  # Passes both tests.
4692ac_preproc_ok=:
4693break
4694fi
4695
4696rm -f conftest.err conftest.$ac_ext
4697
4698done
4699# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4700rm -f conftest.err conftest.$ac_ext
4701if $ac_preproc_ok; then
4702  :
4703else
4704  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4705See \`config.log' for more details." >&5
4706echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4707See \`config.log' for more details." >&2;}
4708   { (exit 1); exit 1; }; }
4709fi
4710
4711ac_ext=c
4712ac_cpp='$CPP $CPPFLAGS'
4713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715ac_compiler_gnu=$ac_cv_c_compiler_gnu
4716
4717
4718{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4719echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4720if test "${ac_cv_header_stdc+set}" = set; then
4721  echo $ECHO_N "(cached) $ECHO_C" >&6
4722else
4723  cat >conftest.$ac_ext <<_ACEOF
4724/* confdefs.h.  */
4725_ACEOF
4726cat confdefs.h >>conftest.$ac_ext
4727cat >>conftest.$ac_ext <<_ACEOF
4728/* end confdefs.h.  */
4729#include <stdlib.h>
4730#include <stdarg.h>
4731#include <string.h>
4732#include <float.h>
4733
4734int
4735main ()
4736{
4737
4738  ;
4739  return 0;
4740}
4741_ACEOF
4742rm -f conftest.$ac_objext
4743if { (ac_try="$ac_compile"
4744case "(($ac_try" in
4745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746  *) ac_try_echo=$ac_try;;
4747esac
4748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4749  (eval "$ac_compile") 2>conftest.er1
4750  ac_status=$?
4751  grep -v '^ *+' conftest.er1 >conftest.err
4752  rm -f conftest.er1
4753  cat conftest.err >&5
4754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755  (exit $ac_status); } && {
4756	 test -z "$ac_c_werror_flag" ||
4757	 test ! -s conftest.err
4758       } && test -s conftest.$ac_objext; then
4759  ac_cv_header_stdc=yes
4760else
4761  echo "$as_me: failed program was:" >&5
4762sed 's/^/| /' conftest.$ac_ext >&5
4763
4764	ac_cv_header_stdc=no
4765fi
4766
4767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768
4769if test $ac_cv_header_stdc = yes; then
4770  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4771  cat >conftest.$ac_ext <<_ACEOF
4772/* confdefs.h.  */
4773_ACEOF
4774cat confdefs.h >>conftest.$ac_ext
4775cat >>conftest.$ac_ext <<_ACEOF
4776/* end confdefs.h.  */
4777#include <string.h>
4778
4779_ACEOF
4780if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4781  $EGREP "memchr" >/dev/null 2>&1; then
4782  :
4783else
4784  ac_cv_header_stdc=no
4785fi
4786rm -f conftest*
4787
4788fi
4789
4790if test $ac_cv_header_stdc = yes; then
4791  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4792  cat >conftest.$ac_ext <<_ACEOF
4793/* confdefs.h.  */
4794_ACEOF
4795cat confdefs.h >>conftest.$ac_ext
4796cat >>conftest.$ac_ext <<_ACEOF
4797/* end confdefs.h.  */
4798#include <stdlib.h>
4799
4800_ACEOF
4801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4802  $EGREP "free" >/dev/null 2>&1; then
4803  :
4804else
4805  ac_cv_header_stdc=no
4806fi
4807rm -f conftest*
4808
4809fi
4810
4811if test $ac_cv_header_stdc = yes; then
4812  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4813  if test "$cross_compiling" = yes; then
4814  :
4815else
4816  cat >conftest.$ac_ext <<_ACEOF
4817/* confdefs.h.  */
4818_ACEOF
4819cat confdefs.h >>conftest.$ac_ext
4820cat >>conftest.$ac_ext <<_ACEOF
4821/* end confdefs.h.  */
4822#include <ctype.h>
4823#include <stdlib.h>
4824#if ((' ' & 0x0FF) == 0x020)
4825# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4826# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4827#else
4828# define ISLOWER(c) \
4829		   (('a' <= (c) && (c) <= 'i') \
4830		     || ('j' <= (c) && (c) <= 'r') \
4831		     || ('s' <= (c) && (c) <= 'z'))
4832# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4833#endif
4834
4835#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4836int
4837main ()
4838{
4839  int i;
4840  for (i = 0; i < 256; i++)
4841    if (XOR (islower (i), ISLOWER (i))
4842	|| toupper (i) != TOUPPER (i))
4843      return 2;
4844  return 0;
4845}
4846_ACEOF
4847rm -f conftest$ac_exeext
4848if { (ac_try="$ac_link"
4849case "(($ac_try" in
4850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851  *) ac_try_echo=$ac_try;;
4852esac
4853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4854  (eval "$ac_link") 2>&5
4855  ac_status=$?
4856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4858  { (case "(($ac_try" in
4859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860  *) ac_try_echo=$ac_try;;
4861esac
4862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4863  (eval "$ac_try") 2>&5
4864  ac_status=$?
4865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866  (exit $ac_status); }; }; then
4867  :
4868else
4869  echo "$as_me: program exited with status $ac_status" >&5
4870echo "$as_me: failed program was:" >&5
4871sed 's/^/| /' conftest.$ac_ext >&5
4872
4873( exit $ac_status )
4874ac_cv_header_stdc=no
4875fi
4876rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4877fi
4878
4879
4880fi
4881fi
4882{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4883echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4884if test $ac_cv_header_stdc = yes; then
4885
4886cat >>confdefs.h <<\_ACEOF
4887#define STDC_HEADERS 1
4888_ACEOF
4889
4890fi
4891
4892# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4903		  inttypes.h stdint.h unistd.h
4904do
4905as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4906{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4909  echo $ECHO_N "(cached) $ECHO_C" >&6
4910else
4911  cat >conftest.$ac_ext <<_ACEOF
4912/* confdefs.h.  */
4913_ACEOF
4914cat confdefs.h >>conftest.$ac_ext
4915cat >>conftest.$ac_ext <<_ACEOF
4916/* end confdefs.h.  */
4917$ac_includes_default
4918
4919#include <$ac_header>
4920_ACEOF
4921rm -f conftest.$ac_objext
4922if { (ac_try="$ac_compile"
4923case "(($ac_try" in
4924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925  *) ac_try_echo=$ac_try;;
4926esac
4927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4928  (eval "$ac_compile") 2>conftest.er1
4929  ac_status=$?
4930  grep -v '^ *+' conftest.er1 >conftest.err
4931  rm -f conftest.er1
4932  cat conftest.err >&5
4933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934  (exit $ac_status); } && {
4935	 test -z "$ac_c_werror_flag" ||
4936	 test ! -s conftest.err
4937       } && test -s conftest.$ac_objext; then
4938  eval "$as_ac_Header=yes"
4939else
4940  echo "$as_me: failed program was:" >&5
4941sed 's/^/| /' conftest.$ac_ext >&5
4942
4943	eval "$as_ac_Header=no"
4944fi
4945
4946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947fi
4948ac_res=`eval echo '${'$as_ac_Header'}'`
4949	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4950echo "${ECHO_T}$ac_res" >&6; }
4951if test `eval echo '${'$as_ac_Header'}'` = yes; then
4952  cat >>confdefs.h <<_ACEOF
4953#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4954_ACEOF
4955
4956fi
4957
4958done
4959
4960
4961
4962for ac_header in dlfcn.h
4963do
4964as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4965if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4966  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4968if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4969  echo $ECHO_N "(cached) $ECHO_C" >&6
4970fi
4971ac_res=`eval echo '${'$as_ac_Header'}'`
4972	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4973echo "${ECHO_T}$ac_res" >&6; }
4974else
4975  # Is the header compilable?
4976{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4977echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4978cat >conftest.$ac_ext <<_ACEOF
4979/* confdefs.h.  */
4980_ACEOF
4981cat confdefs.h >>conftest.$ac_ext
4982cat >>conftest.$ac_ext <<_ACEOF
4983/* end confdefs.h.  */
4984$ac_includes_default
4985#include <$ac_header>
4986_ACEOF
4987rm -f conftest.$ac_objext
4988if { (ac_try="$ac_compile"
4989case "(($ac_try" in
4990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991  *) ac_try_echo=$ac_try;;
4992esac
4993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994  (eval "$ac_compile") 2>conftest.er1
4995  ac_status=$?
4996  grep -v '^ *+' conftest.er1 >conftest.err
4997  rm -f conftest.er1
4998  cat conftest.err >&5
4999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000  (exit $ac_status); } && {
5001	 test -z "$ac_c_werror_flag" ||
5002	 test ! -s conftest.err
5003       } && test -s conftest.$ac_objext; then
5004  ac_header_compiler=yes
5005else
5006  echo "$as_me: failed program was:" >&5
5007sed 's/^/| /' conftest.$ac_ext >&5
5008
5009	ac_header_compiler=no
5010fi
5011
5012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5014echo "${ECHO_T}$ac_header_compiler" >&6; }
5015
5016# Is the header present?
5017{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5018echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5019cat >conftest.$ac_ext <<_ACEOF
5020/* confdefs.h.  */
5021_ACEOF
5022cat confdefs.h >>conftest.$ac_ext
5023cat >>conftest.$ac_ext <<_ACEOF
5024/* end confdefs.h.  */
5025#include <$ac_header>
5026_ACEOF
5027if { (ac_try="$ac_cpp conftest.$ac_ext"
5028case "(($ac_try" in
5029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030  *) ac_try_echo=$ac_try;;
5031esac
5032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5034  ac_status=$?
5035  grep -v '^ *+' conftest.er1 >conftest.err
5036  rm -f conftest.er1
5037  cat conftest.err >&5
5038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039  (exit $ac_status); } >/dev/null && {
5040	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5041	 test ! -s conftest.err
5042       }; then
5043  ac_header_preproc=yes
5044else
5045  echo "$as_me: failed program was:" >&5
5046sed 's/^/| /' conftest.$ac_ext >&5
5047
5048  ac_header_preproc=no
5049fi
5050
5051rm -f conftest.err conftest.$ac_ext
5052{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5053echo "${ECHO_T}$ac_header_preproc" >&6; }
5054
5055# So?  What about this header?
5056case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5057  yes:no: )
5058    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5059echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5060    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5061echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5062    ac_header_preproc=yes
5063    ;;
5064  no:yes:* )
5065    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5066echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5067    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5068echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5069    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5070echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5071    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5072echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5073    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5074echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5075    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5076echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5077
5078    ;;
5079esac
5080{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5083  echo $ECHO_N "(cached) $ECHO_C" >&6
5084else
5085  eval "$as_ac_Header=\$ac_header_preproc"
5086fi
5087ac_res=`eval echo '${'$as_ac_Header'}'`
5088	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5089echo "${ECHO_T}$ac_res" >&6; }
5090
5091fi
5092if test `eval echo '${'$as_ac_Header'}'` = yes; then
5093  cat >>confdefs.h <<_ACEOF
5094#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5095_ACEOF
5096
5097fi
5098
5099done
5100
5101ac_ext=cpp
5102ac_cpp='$CXXCPP $CPPFLAGS'
5103ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5106if test -z "$CXX"; then
5107  if test -n "$CCC"; then
5108    CXX=$CCC
5109  else
5110    if test -n "$ac_tool_prefix"; then
5111  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5112  do
5113    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5114set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5115{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5117if test "${ac_cv_prog_CXX+set}" = set; then
5118  echo $ECHO_N "(cached) $ECHO_C" >&6
5119else
5120  if test -n "$CXX"; then
5121  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5122else
5123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124for as_dir in $PATH
5125do
5126  IFS=$as_save_IFS
5127  test -z "$as_dir" && as_dir=.
5128  for ac_exec_ext in '' $ac_executable_extensions; do
5129  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5131    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5132    break 2
5133  fi
5134done
5135done
5136IFS=$as_save_IFS
5137
5138fi
5139fi
5140CXX=$ac_cv_prog_CXX
5141if test -n "$CXX"; then
5142  { echo "$as_me:$LINENO: result: $CXX" >&5
5143echo "${ECHO_T}$CXX" >&6; }
5144else
5145  { echo "$as_me:$LINENO: result: no" >&5
5146echo "${ECHO_T}no" >&6; }
5147fi
5148
5149
5150    test -n "$CXX" && break
5151  done
5152fi
5153if test -z "$CXX"; then
5154  ac_ct_CXX=$CXX
5155  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5156do
5157  # Extract the first word of "$ac_prog", so it can be a program name with args.
5158set dummy $ac_prog; ac_word=$2
5159{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5161if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5162  echo $ECHO_N "(cached) $ECHO_C" >&6
5163else
5164  if test -n "$ac_ct_CXX"; then
5165  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5166else
5167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168for as_dir in $PATH
5169do
5170  IFS=$as_save_IFS
5171  test -z "$as_dir" && as_dir=.
5172  for ac_exec_ext in '' $ac_executable_extensions; do
5173  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5174    ac_cv_prog_ac_ct_CXX="$ac_prog"
5175    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176    break 2
5177  fi
5178done
5179done
5180IFS=$as_save_IFS
5181
5182fi
5183fi
5184ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5185if test -n "$ac_ct_CXX"; then
5186  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5187echo "${ECHO_T}$ac_ct_CXX" >&6; }
5188else
5189  { echo "$as_me:$LINENO: result: no" >&5
5190echo "${ECHO_T}no" >&6; }
5191fi
5192
5193
5194  test -n "$ac_ct_CXX" && break
5195done
5196
5197  if test "x$ac_ct_CXX" = x; then
5198    CXX="g++"
5199  else
5200    case $cross_compiling:$ac_tool_warned in
5201yes:)
5202{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5203whose name does not start with the host triplet.  If you think this
5204configuration is useful to you, please write to autoconf@gnu.org." >&5
5205echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5206whose name does not start with the host triplet.  If you think this
5207configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5208ac_tool_warned=yes ;;
5209esac
5210    CXX=$ac_ct_CXX
5211  fi
5212fi
5213
5214  fi
5215fi
5216# Provide some information about the compiler.
5217echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5218ac_compiler=`set X $ac_compile; echo $2`
5219{ (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
5226  ac_status=$?
5227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228  (exit $ac_status); }
5229{ (ac_try="$ac_compiler -v >&5"
5230case "(($ac_try" in
5231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232  *) ac_try_echo=$ac_try;;
5233esac
5234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235  (eval "$ac_compiler -v >&5") 2>&5
5236  ac_status=$?
5237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238  (exit $ac_status); }
5239{ (ac_try="$ac_compiler -V >&5"
5240case "(($ac_try" in
5241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242  *) ac_try_echo=$ac_try;;
5243esac
5244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245  (eval "$ac_compiler -V >&5") 2>&5
5246  ac_status=$?
5247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248  (exit $ac_status); }
5249
5250{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5251echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5252if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5253  echo $ECHO_N "(cached) $ECHO_C" >&6
5254else
5255  cat >conftest.$ac_ext <<_ACEOF
5256/* confdefs.h.  */
5257_ACEOF
5258cat confdefs.h >>conftest.$ac_ext
5259cat >>conftest.$ac_ext <<_ACEOF
5260/* end confdefs.h.  */
5261
5262int
5263main ()
5264{
5265#ifndef __GNUC__
5266       choke me
5267#endif
5268
5269  ;
5270  return 0;
5271}
5272_ACEOF
5273rm -f conftest.$ac_objext
5274if { (ac_try="$ac_compile"
5275case "(($ac_try" in
5276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277  *) ac_try_echo=$ac_try;;
5278esac
5279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280  (eval "$ac_compile") 2>conftest.er1
5281  ac_status=$?
5282  grep -v '^ *+' conftest.er1 >conftest.err
5283  rm -f conftest.er1
5284  cat conftest.err >&5
5285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286  (exit $ac_status); } && {
5287	 test -z "$ac_cxx_werror_flag" ||
5288	 test ! -s conftest.err
5289       } && test -s conftest.$ac_objext; then
5290  ac_compiler_gnu=yes
5291else
5292  echo "$as_me: failed program was:" >&5
5293sed 's/^/| /' conftest.$ac_ext >&5
5294
5295	ac_compiler_gnu=no
5296fi
5297
5298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5300
5301fi
5302{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5303echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5304GXX=`test $ac_compiler_gnu = yes && echo yes`
5305ac_test_CXXFLAGS=${CXXFLAGS+set}
5306ac_save_CXXFLAGS=$CXXFLAGS
5307{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5308echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5309if test "${ac_cv_prog_cxx_g+set}" = set; then
5310  echo $ECHO_N "(cached) $ECHO_C" >&6
5311else
5312  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5313   ac_cxx_werror_flag=yes
5314   ac_cv_prog_cxx_g=no
5315   CXXFLAGS="-g"
5316   cat >conftest.$ac_ext <<_ACEOF
5317/* confdefs.h.  */
5318_ACEOF
5319cat confdefs.h >>conftest.$ac_ext
5320cat >>conftest.$ac_ext <<_ACEOF
5321/* end confdefs.h.  */
5322
5323int
5324main ()
5325{
5326
5327  ;
5328  return 0;
5329}
5330_ACEOF
5331rm -f conftest.$ac_objext
5332if { (ac_try="$ac_compile"
5333case "(($ac_try" in
5334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335  *) ac_try_echo=$ac_try;;
5336esac
5337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338  (eval "$ac_compile") 2>conftest.er1
5339  ac_status=$?
5340  grep -v '^ *+' conftest.er1 >conftest.err
5341  rm -f conftest.er1
5342  cat conftest.err >&5
5343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344  (exit $ac_status); } && {
5345	 test -z "$ac_cxx_werror_flag" ||
5346	 test ! -s conftest.err
5347       } && test -s conftest.$ac_objext; then
5348  ac_cv_prog_cxx_g=yes
5349else
5350  echo "$as_me: failed program was:" >&5
5351sed 's/^/| /' conftest.$ac_ext >&5
5352
5353	CXXFLAGS=""
5354      cat >conftest.$ac_ext <<_ACEOF
5355/* confdefs.h.  */
5356_ACEOF
5357cat confdefs.h >>conftest.$ac_ext
5358cat >>conftest.$ac_ext <<_ACEOF
5359/* end confdefs.h.  */
5360
5361int
5362main ()
5363{
5364
5365  ;
5366  return 0;
5367}
5368_ACEOF
5369rm -f conftest.$ac_objext
5370if { (ac_try="$ac_compile"
5371case "(($ac_try" in
5372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373  *) ac_try_echo=$ac_try;;
5374esac
5375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5376  (eval "$ac_compile") 2>conftest.er1
5377  ac_status=$?
5378  grep -v '^ *+' conftest.er1 >conftest.err
5379  rm -f conftest.er1
5380  cat conftest.err >&5
5381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382  (exit $ac_status); } && {
5383	 test -z "$ac_cxx_werror_flag" ||
5384	 test ! -s conftest.err
5385       } && test -s conftest.$ac_objext; then
5386  :
5387else
5388  echo "$as_me: failed program was:" >&5
5389sed 's/^/| /' conftest.$ac_ext >&5
5390
5391	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5392	 CXXFLAGS="-g"
5393	 cat >conftest.$ac_ext <<_ACEOF
5394/* confdefs.h.  */
5395_ACEOF
5396cat confdefs.h >>conftest.$ac_ext
5397cat >>conftest.$ac_ext <<_ACEOF
5398/* end confdefs.h.  */
5399
5400int
5401main ()
5402{
5403
5404  ;
5405  return 0;
5406}
5407_ACEOF
5408rm -f conftest.$ac_objext
5409if { (ac_try="$ac_compile"
5410case "(($ac_try" in
5411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412  *) ac_try_echo=$ac_try;;
5413esac
5414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5415  (eval "$ac_compile") 2>conftest.er1
5416  ac_status=$?
5417  grep -v '^ *+' conftest.er1 >conftest.err
5418  rm -f conftest.er1
5419  cat conftest.err >&5
5420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421  (exit $ac_status); } && {
5422	 test -z "$ac_cxx_werror_flag" ||
5423	 test ! -s conftest.err
5424       } && test -s conftest.$ac_objext; then
5425  ac_cv_prog_cxx_g=yes
5426else
5427  echo "$as_me: failed program was:" >&5
5428sed 's/^/| /' conftest.$ac_ext >&5
5429
5430
5431fi
5432
5433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5434fi
5435
5436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5437fi
5438
5439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5441fi
5442{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5443echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5444if test "$ac_test_CXXFLAGS" = set; then
5445  CXXFLAGS=$ac_save_CXXFLAGS
5446elif test $ac_cv_prog_cxx_g = yes; then
5447  if test "$GXX" = yes; then
5448    CXXFLAGS="-g -O2"
5449  else
5450    CXXFLAGS="-g"
5451  fi
5452else
5453  if test "$GXX" = yes; then
5454    CXXFLAGS="-O2"
5455  else
5456    CXXFLAGS=
5457  fi
5458fi
5459ac_ext=cpp
5460ac_cpp='$CXXCPP $CPPFLAGS'
5461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5464
5465depcc="$CXX"  am_compiler_list=
5466
5467{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5468echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5469if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5470  echo $ECHO_N "(cached) $ECHO_C" >&6
5471else
5472  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5473  # We make a subdir and do the tests there.  Otherwise we can end up
5474  # making bogus files that we don't know about and never remove.  For
5475  # instance it was reported that on HP-UX the gcc test will end up
5476  # making a dummy file named `D' -- because `-MD' means `put the output
5477  # in D'.
5478  mkdir conftest.dir
5479  # Copy depcomp to subdir because otherwise we won't find it if we're
5480  # using a relative directory.
5481  cp "$am_depcomp" conftest.dir
5482  cd conftest.dir
5483  # We will build objects and dependencies in a subdirectory because
5484  # it helps to detect inapplicable dependency modes.  For instance
5485  # both Tru64's cc and ICC support -MD to output dependencies as a
5486  # side effect of compilation, but ICC will put the dependencies in
5487  # the current directory while Tru64 will put them in the object
5488  # directory.
5489  mkdir sub
5490
5491  am_cv_CXX_dependencies_compiler_type=none
5492  if test "$am_compiler_list" = ""; then
5493     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5494  fi
5495  for depmode in $am_compiler_list; do
5496    # Setup a source with many dependencies, because some compilers
5497    # like to wrap large dependency lists on column 80 (with \), and
5498    # we should not choose a depcomp mode which is confused by this.
5499    #
5500    # We need to recreate these files for each test, as the compiler may
5501    # overwrite some of them when testing with obscure command lines.
5502    # This happens at least with the AIX C compiler.
5503    : > sub/conftest.c
5504    for i in 1 2 3 4 5 6; do
5505      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5506      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5507      # Solaris 8's {/usr,}/bin/sh.
5508      touch sub/conftst$i.h
5509    done
5510    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5511
5512    case $depmode in
5513    nosideeffect)
5514      # after this tag, mechanisms are not by side-effect, so they'll
5515      # only be used when explicitly requested
5516      if test "x$enable_dependency_tracking" = xyes; then
5517	continue
5518      else
5519	break
5520      fi
5521      ;;
5522    none) break ;;
5523    esac
5524    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5525    # mode.  It turns out that the SunPro C++ compiler does not properly
5526    # handle `-M -o', and we need to detect this.
5527    if depmode=$depmode \
5528       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5529       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5530       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5531         >/dev/null 2>conftest.err &&
5532       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5533       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5534       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5535       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5536      # icc doesn't choke on unknown options, it will just issue warnings
5537      # or remarks (even with -Werror).  So we grep stderr for any message
5538      # that says an option was ignored or not supported.
5539      # When given -MP, icc 7.0 and 7.1 complain thusly:
5540      #   icc: Command line warning: ignoring option '-M'; no argument required
5541      # The diagnosis changed in icc 8.0:
5542      #   icc: Command line remark: option '-MP' not supported
5543      if (grep 'ignoring option' conftest.err ||
5544          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5545        am_cv_CXX_dependencies_compiler_type=$depmode
5546        break
5547      fi
5548    fi
5549  done
5550
5551  cd ..
5552  rm -rf conftest.dir
5553else
5554  am_cv_CXX_dependencies_compiler_type=none
5555fi
5556
5557fi
5558{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5559echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5560CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5561
5562 if
5563  test "x$enable_dependency_tracking" != xno \
5564  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5565  am__fastdepCXX_TRUE=
5566  am__fastdepCXX_FALSE='#'
5567else
5568  am__fastdepCXX_TRUE='#'
5569  am__fastdepCXX_FALSE=
5570fi
5571
5572
5573
5574
5575if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5576    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5577    (test "X$CXX" != "Xg++"))) ; then
5578  ac_ext=cpp
5579ac_cpp='$CXXCPP $CPPFLAGS'
5580ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5581ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5582ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5583{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5584echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5585if test -z "$CXXCPP"; then
5586  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5587  echo $ECHO_N "(cached) $ECHO_C" >&6
5588else
5589      # Double quotes because CXXCPP needs to be expanded
5590    for CXXCPP in "$CXX -E" "/lib/cpp"
5591    do
5592      ac_preproc_ok=false
5593for ac_cxx_preproc_warn_flag in '' yes
5594do
5595  # Use a header file that comes with gcc, so configuring glibc
5596  # with a fresh cross-compiler works.
5597  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5598  # <limits.h> exists even on freestanding compilers.
5599  # On the NeXT, cc -E runs the code through the compiler's parser,
5600  # not just through cpp. "Syntax error" is here to catch this case.
5601  cat >conftest.$ac_ext <<_ACEOF
5602/* confdefs.h.  */
5603_ACEOF
5604cat confdefs.h >>conftest.$ac_ext
5605cat >>conftest.$ac_ext <<_ACEOF
5606/* end confdefs.h.  */
5607#ifdef __STDC__
5608# include <limits.h>
5609#else
5610# include <assert.h>
5611#endif
5612		     Syntax error
5613_ACEOF
5614if { (ac_try="$ac_cpp conftest.$ac_ext"
5615case "(($ac_try" in
5616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617  *) ac_try_echo=$ac_try;;
5618esac
5619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5621  ac_status=$?
5622  grep -v '^ *+' conftest.er1 >conftest.err
5623  rm -f conftest.er1
5624  cat conftest.err >&5
5625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626  (exit $ac_status); } >/dev/null && {
5627	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5628	 test ! -s conftest.err
5629       }; then
5630  :
5631else
5632  echo "$as_me: failed program was:" >&5
5633sed 's/^/| /' conftest.$ac_ext >&5
5634
5635  # Broken: fails on valid input.
5636continue
5637fi
5638
5639rm -f conftest.err conftest.$ac_ext
5640
5641  # OK, works on sane cases.  Now check whether nonexistent headers
5642  # can be detected and how.
5643  cat >conftest.$ac_ext <<_ACEOF
5644/* confdefs.h.  */
5645_ACEOF
5646cat confdefs.h >>conftest.$ac_ext
5647cat >>conftest.$ac_ext <<_ACEOF
5648/* end confdefs.h.  */
5649#include <ac_nonexistent.h>
5650_ACEOF
5651if { (ac_try="$ac_cpp conftest.$ac_ext"
5652case "(($ac_try" in
5653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654  *) ac_try_echo=$ac_try;;
5655esac
5656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5658  ac_status=$?
5659  grep -v '^ *+' conftest.er1 >conftest.err
5660  rm -f conftest.er1
5661  cat conftest.err >&5
5662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663  (exit $ac_status); } >/dev/null && {
5664	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5665	 test ! -s conftest.err
5666       }; then
5667  # Broken: success on invalid input.
5668continue
5669else
5670  echo "$as_me: failed program was:" >&5
5671sed 's/^/| /' conftest.$ac_ext >&5
5672
5673  # Passes both tests.
5674ac_preproc_ok=:
5675break
5676fi
5677
5678rm -f conftest.err conftest.$ac_ext
5679
5680done
5681# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5682rm -f conftest.err conftest.$ac_ext
5683if $ac_preproc_ok; then
5684  break
5685fi
5686
5687    done
5688    ac_cv_prog_CXXCPP=$CXXCPP
5689
5690fi
5691  CXXCPP=$ac_cv_prog_CXXCPP
5692else
5693  ac_cv_prog_CXXCPP=$CXXCPP
5694fi
5695{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5696echo "${ECHO_T}$CXXCPP" >&6; }
5697ac_preproc_ok=false
5698for ac_cxx_preproc_warn_flag in '' yes
5699do
5700  # Use a header file that comes with gcc, so configuring glibc
5701  # with a fresh cross-compiler works.
5702  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5703  # <limits.h> exists even on freestanding compilers.
5704  # On the NeXT, cc -E runs the code through the compiler's parser,
5705  # not just through cpp. "Syntax error" is here to catch this case.
5706  cat >conftest.$ac_ext <<_ACEOF
5707/* confdefs.h.  */
5708_ACEOF
5709cat confdefs.h >>conftest.$ac_ext
5710cat >>conftest.$ac_ext <<_ACEOF
5711/* end confdefs.h.  */
5712#ifdef __STDC__
5713# include <limits.h>
5714#else
5715# include <assert.h>
5716#endif
5717		     Syntax error
5718_ACEOF
5719if { (ac_try="$ac_cpp conftest.$ac_ext"
5720case "(($ac_try" in
5721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722  *) ac_try_echo=$ac_try;;
5723esac
5724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5726  ac_status=$?
5727  grep -v '^ *+' conftest.er1 >conftest.err
5728  rm -f conftest.er1
5729  cat conftest.err >&5
5730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731  (exit $ac_status); } >/dev/null && {
5732	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5733	 test ! -s conftest.err
5734       }; then
5735  :
5736else
5737  echo "$as_me: failed program was:" >&5
5738sed 's/^/| /' conftest.$ac_ext >&5
5739
5740  # Broken: fails on valid input.
5741continue
5742fi
5743
5744rm -f conftest.err conftest.$ac_ext
5745
5746  # OK, works on sane cases.  Now check whether nonexistent headers
5747  # can be detected and how.
5748  cat >conftest.$ac_ext <<_ACEOF
5749/* confdefs.h.  */
5750_ACEOF
5751cat confdefs.h >>conftest.$ac_ext
5752cat >>conftest.$ac_ext <<_ACEOF
5753/* end confdefs.h.  */
5754#include <ac_nonexistent.h>
5755_ACEOF
5756if { (ac_try="$ac_cpp conftest.$ac_ext"
5757case "(($ac_try" in
5758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759  *) ac_try_echo=$ac_try;;
5760esac
5761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5763  ac_status=$?
5764  grep -v '^ *+' conftest.er1 >conftest.err
5765  rm -f conftest.er1
5766  cat conftest.err >&5
5767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768  (exit $ac_status); } >/dev/null && {
5769	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5770	 test ! -s conftest.err
5771       }; then
5772  # Broken: success on invalid input.
5773continue
5774else
5775  echo "$as_me: failed program was:" >&5
5776sed 's/^/| /' conftest.$ac_ext >&5
5777
5778  # Passes both tests.
5779ac_preproc_ok=:
5780break
5781fi
5782
5783rm -f conftest.err conftest.$ac_ext
5784
5785done
5786# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5787rm -f conftest.err conftest.$ac_ext
5788if $ac_preproc_ok; then
5789  :
5790else
5791  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5792See \`config.log' for more details." >&5
5793echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5794See \`config.log' for more details." >&2;}
5795   { (exit 1); exit 1; }; }
5796fi
5797
5798ac_ext=cpp
5799ac_cpp='$CXXCPP $CPPFLAGS'
5800ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5801ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5802ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5803
5804fi
5805
5806
5807ac_ext=f
5808ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5809ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5811if test -n "$ac_tool_prefix"; then
5812  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
5813  do
5814    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5815set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5816{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5818if test "${ac_cv_prog_F77+set}" = set; then
5819  echo $ECHO_N "(cached) $ECHO_C" >&6
5820else
5821  if test -n "$F77"; then
5822  ac_cv_prog_F77="$F77" # Let the user override the test.
5823else
5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825for as_dir in $PATH
5826do
5827  IFS=$as_save_IFS
5828  test -z "$as_dir" && as_dir=.
5829  for ac_exec_ext in '' $ac_executable_extensions; do
5830  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5831    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5832    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5833    break 2
5834  fi
5835done
5836done
5837IFS=$as_save_IFS
5838
5839fi
5840fi
5841F77=$ac_cv_prog_F77
5842if test -n "$F77"; then
5843  { echo "$as_me:$LINENO: result: $F77" >&5
5844echo "${ECHO_T}$F77" >&6; }
5845else
5846  { echo "$as_me:$LINENO: result: no" >&5
5847echo "${ECHO_T}no" >&6; }
5848fi
5849
5850
5851    test -n "$F77" && break
5852  done
5853fi
5854if test -z "$F77"; then
5855  ac_ct_F77=$F77
5856  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
5857do
5858  # Extract the first word of "$ac_prog", so it can be a program name with args.
5859set dummy $ac_prog; ac_word=$2
5860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5862if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5863  echo $ECHO_N "(cached) $ECHO_C" >&6
5864else
5865  if test -n "$ac_ct_F77"; then
5866  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5867else
5868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869for as_dir in $PATH
5870do
5871  IFS=$as_save_IFS
5872  test -z "$as_dir" && as_dir=.
5873  for ac_exec_ext in '' $ac_executable_extensions; do
5874  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5875    ac_cv_prog_ac_ct_F77="$ac_prog"
5876    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877    break 2
5878  fi
5879done
5880done
5881IFS=$as_save_IFS
5882
5883fi
5884fi
5885ac_ct_F77=$ac_cv_prog_ac_ct_F77
5886if test -n "$ac_ct_F77"; then
5887  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5888echo "${ECHO_T}$ac_ct_F77" >&6; }
5889else
5890  { echo "$as_me:$LINENO: result: no" >&5
5891echo "${ECHO_T}no" >&6; }
5892fi
5893
5894
5895  test -n "$ac_ct_F77" && break
5896done
5897
5898  if test "x$ac_ct_F77" = x; then
5899    F77=""
5900  else
5901    case $cross_compiling:$ac_tool_warned in
5902yes:)
5903{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5904whose name does not start with the host triplet.  If you think this
5905configuration is useful to you, please write to autoconf@gnu.org." >&5
5906echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5907whose name does not start with the host triplet.  If you think this
5908configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5909ac_tool_warned=yes ;;
5910esac
5911    F77=$ac_ct_F77
5912  fi
5913fi
5914
5915
5916# Provide some information about the compiler.
5917echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5918ac_compiler=`set X $ac_compile; echo $2`
5919{ (ac_try="$ac_compiler --version >&5"
5920case "(($ac_try" in
5921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922  *) ac_try_echo=$ac_try;;
5923esac
5924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925  (eval "$ac_compiler --version >&5") 2>&5
5926  ac_status=$?
5927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928  (exit $ac_status); }
5929{ (ac_try="$ac_compiler -v >&5"
5930case "(($ac_try" in
5931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932  *) ac_try_echo=$ac_try;;
5933esac
5934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935  (eval "$ac_compiler -v >&5") 2>&5
5936  ac_status=$?
5937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938  (exit $ac_status); }
5939{ (ac_try="$ac_compiler -V >&5"
5940case "(($ac_try" in
5941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942  *) ac_try_echo=$ac_try;;
5943esac
5944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945  (eval "$ac_compiler -V >&5") 2>&5
5946  ac_status=$?
5947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948  (exit $ac_status); }
5949rm -f a.out
5950
5951# If we don't use `.F' as extension, the preprocessor is not run on the
5952# input file.  (Note that this only needs to work for GNU compilers.)
5953ac_save_ext=$ac_ext
5954ac_ext=F
5955{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5956echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5957if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5958  echo $ECHO_N "(cached) $ECHO_C" >&6
5959else
5960  cat >conftest.$ac_ext <<_ACEOF
5961      program main
5962#ifndef __GNUC__
5963       choke me
5964#endif
5965
5966      end
5967_ACEOF
5968rm -f conftest.$ac_objext
5969if { (ac_try="$ac_compile"
5970case "(($ac_try" in
5971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972  *) ac_try_echo=$ac_try;;
5973esac
5974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975  (eval "$ac_compile") 2>conftest.er1
5976  ac_status=$?
5977  grep -v '^ *+' conftest.er1 >conftest.err
5978  rm -f conftest.er1
5979  cat conftest.err >&5
5980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981  (exit $ac_status); } && {
5982	 test -z "$ac_f77_werror_flag" ||
5983	 test ! -s conftest.err
5984       } && test -s conftest.$ac_objext; then
5985  ac_compiler_gnu=yes
5986else
5987  echo "$as_me: failed program was:" >&5
5988sed 's/^/| /' conftest.$ac_ext >&5
5989
5990	ac_compiler_gnu=no
5991fi
5992
5993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5994ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5995
5996fi
5997{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5998echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5999ac_ext=$ac_save_ext
6000ac_test_FFLAGS=${FFLAGS+set}
6001ac_save_FFLAGS=$FFLAGS
6002FFLAGS=
6003{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6004echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6005if test "${ac_cv_prog_f77_g+set}" = set; then
6006  echo $ECHO_N "(cached) $ECHO_C" >&6
6007else
6008  FFLAGS=-g
6009cat >conftest.$ac_ext <<_ACEOF
6010      program main
6011
6012      end
6013_ACEOF
6014rm -f conftest.$ac_objext
6015if { (ac_try="$ac_compile"
6016case "(($ac_try" in
6017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018  *) ac_try_echo=$ac_try;;
6019esac
6020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021  (eval "$ac_compile") 2>conftest.er1
6022  ac_status=$?
6023  grep -v '^ *+' conftest.er1 >conftest.err
6024  rm -f conftest.er1
6025  cat conftest.err >&5
6026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027  (exit $ac_status); } && {
6028	 test -z "$ac_f77_werror_flag" ||
6029	 test ! -s conftest.err
6030       } && test -s conftest.$ac_objext; then
6031  ac_cv_prog_f77_g=yes
6032else
6033  echo "$as_me: failed program was:" >&5
6034sed 's/^/| /' conftest.$ac_ext >&5
6035
6036	ac_cv_prog_f77_g=no
6037fi
6038
6039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6040
6041fi
6042{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6043echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6044if test "$ac_test_FFLAGS" = set; then
6045  FFLAGS=$ac_save_FFLAGS
6046elif test $ac_cv_prog_f77_g = yes; then
6047  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6048    FFLAGS="-g -O2"
6049  else
6050    FFLAGS="-g"
6051  fi
6052else
6053  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6054    FFLAGS="-O2"
6055  else
6056    FFLAGS=
6057  fi
6058fi
6059
6060G77=`test $ac_compiler_gnu = yes && echo yes`
6061ac_ext=c
6062ac_cpp='$CPP $CPPFLAGS'
6063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6065ac_compiler_gnu=$ac_cv_c_compiler_gnu
6066
6067
6068
6069# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6070
6071# find the maximum length of command line arguments
6072{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6073echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6074if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6075  echo $ECHO_N "(cached) $ECHO_C" >&6
6076else
6077    i=0
6078  teststring="ABCD"
6079
6080  case $build_os in
6081  msdosdjgpp*)
6082    # On DJGPP, this test can blow up pretty badly due to problems in libc
6083    # (any single argument exceeding 2000 bytes causes a buffer overrun
6084    # during glob expansion).  Even if it were fixed, the result of this
6085    # check would be larger than it should be.
6086    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6087    ;;
6088
6089  gnu*)
6090    # Under GNU Hurd, this test is not required because there is
6091    # no limit to the length of command line arguments.
6092    # Libtool will interpret -1 as no limit whatsoever
6093    lt_cv_sys_max_cmd_len=-1;
6094    ;;
6095
6096  cygwin* | mingw*)
6097    # On Win9x/ME, this test blows up -- it succeeds, but takes
6098    # about 5 minutes as the teststring grows exponentially.
6099    # Worse, since 9x/ME are not pre-emptively multitasking,
6100    # you end up with a "frozen" computer, even though with patience
6101    # the test eventually succeeds (with a max line length of 256k).
6102    # Instead, let's just punt: use the minimum linelength reported by
6103    # all of the supported platforms: 8192 (on NT/2K/XP).
6104    lt_cv_sys_max_cmd_len=8192;
6105    ;;
6106
6107  amigaos*)
6108    # On AmigaOS with pdksh, this test takes hours, literally.
6109    # So we just punt and use a minimum line length of 8192.
6110    lt_cv_sys_max_cmd_len=8192;
6111    ;;
6112
6113  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6114    # This has been around since 386BSD, at least.  Likely further.
6115    if test -x /sbin/sysctl; then
6116      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6117    elif test -x /usr/sbin/sysctl; then
6118      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6119    else
6120      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6121    fi
6122    # And add a safety zone
6123    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6124    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6125    ;;
6126
6127  interix*)
6128    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6129    lt_cv_sys_max_cmd_len=196608
6130    ;;
6131
6132  osf*)
6133    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6134    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6135    # nice to cause kernel panics so lets avoid the loop below.
6136    # First set a reasonable default.
6137    lt_cv_sys_max_cmd_len=16384
6138    #
6139    if test -x /sbin/sysconfig; then
6140      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6141        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6142      esac
6143    fi
6144    ;;
6145  sco3.2v5*)
6146    lt_cv_sys_max_cmd_len=102400
6147    ;;
6148  sysv5* | sco5v6* | sysv4.2uw2*)
6149    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6150    if test -n "$kargmax"; then
6151      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6152    else
6153      lt_cv_sys_max_cmd_len=32768
6154    fi
6155    ;;
6156  *)
6157    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6158    if test -n "$lt_cv_sys_max_cmd_len"; then
6159      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6160      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6161    else
6162      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6163      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6164	       = "XX$teststring") >/dev/null 2>&1 &&
6165	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6166	      lt_cv_sys_max_cmd_len=$new_result &&
6167	      test $i != 17 # 1/2 MB should be enough
6168      do
6169        i=`expr $i + 1`
6170        teststring=$teststring$teststring
6171      done
6172      teststring=
6173      # Add a significant safety factor because C++ compilers can tack on massive
6174      # amounts of additional arguments before passing them to the linker.
6175      # It appears as though 1/2 is a usable value.
6176      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6177    fi
6178    ;;
6179  esac
6180
6181fi
6182
6183if test -n $lt_cv_sys_max_cmd_len ; then
6184  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6185echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6186else
6187  { echo "$as_me:$LINENO: result: none" >&5
6188echo "${ECHO_T}none" >&6; }
6189fi
6190
6191
6192
6193
6194
6195# Check for command to grab the raw symbol name followed by C symbol from nm.
6196{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6197echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6198if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6199  echo $ECHO_N "(cached) $ECHO_C" >&6
6200else
6201
6202# These are sane defaults that work on at least a few old systems.
6203# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6204
6205# Character class describing NM global symbol codes.
6206symcode='[BCDEGRST]'
6207
6208# Regexp to match symbols that can be accessed directly from C.
6209sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6210
6211# Transform an extracted symbol line into a proper C declaration
6212lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6213
6214# Transform an extracted symbol line into symbol name and symbol address
6215lt_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'"
6216
6217# Define system-specific variables.
6218case $host_os in
6219aix*)
6220  symcode='[BCDT]'
6221  ;;
6222cygwin* | mingw* | pw32*)
6223  symcode='[ABCDGISTW]'
6224  ;;
6225hpux*) # Its linker distinguishes data from code symbols
6226  if test "$host_cpu" = ia64; then
6227    symcode='[ABCDEGRST]'
6228  fi
6229  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6230  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'"
6231  ;;
6232linux* | k*bsd*-gnu)
6233  if test "$host_cpu" = ia64; then
6234    symcode='[ABCDGIRSTW]'
6235    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6236    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'"
6237  fi
6238  ;;
6239irix* | nonstopux*)
6240  symcode='[BCDEGRST]'
6241  ;;
6242osf*)
6243  symcode='[BCDEGQRST]'
6244  ;;
6245solaris*)
6246  symcode='[BDRT]'
6247  ;;
6248sco3.2v5*)
6249  symcode='[DT]'
6250  ;;
6251sysv4.2uw2*)
6252  symcode='[DT]'
6253  ;;
6254sysv5* | sco5v6* | unixware* | OpenUNIX*)
6255  symcode='[ABDT]'
6256  ;;
6257sysv4)
6258  symcode='[DFNSTU]'
6259  ;;
6260esac
6261
6262# Handle CRLF in mingw tool chain
6263opt_cr=
6264case $build_os in
6265mingw*)
6266  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6267  ;;
6268esac
6269
6270# If we're using GNU nm, then use its standard symbol codes.
6271case `$NM -V 2>&1` in
6272*GNU* | *'with BFD'*)
6273  symcode='[ABCDGIRSTW]' ;;
6274esac
6275
6276# Try without a prefix undercore, then with it.
6277for ac_symprfx in "" "_"; do
6278
6279  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6280  symxfrm="\\1 $ac_symprfx\\2 \\2"
6281
6282  # Write the raw and C identifiers.
6283  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6284
6285  # Check to see that the pipe works correctly.
6286  pipe_works=no
6287
6288  rm -f conftest*
6289  cat > conftest.$ac_ext <<EOF
6290#ifdef __cplusplus
6291extern "C" {
6292#endif
6293char nm_test_var;
6294void nm_test_func(){}
6295#ifdef __cplusplus
6296}
6297#endif
6298int main(){nm_test_var='a';nm_test_func();return(0);}
6299EOF
6300
6301  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302  (eval $ac_compile) 2>&5
6303  ac_status=$?
6304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305  (exit $ac_status); }; then
6306    # Now try to grab the symbols.
6307    nlist=conftest.nm
6308    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6309  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6310  ac_status=$?
6311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312  (exit $ac_status); } && test -s "$nlist"; then
6313      # Try sorting and uniquifying the output.
6314      if sort "$nlist" | uniq > "$nlist"T; then
6315	mv -f "$nlist"T "$nlist"
6316      else
6317	rm -f "$nlist"T
6318      fi
6319
6320      # Make sure that we snagged all the symbols we need.
6321      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6322	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6323	  cat <<EOF > conftest.$ac_ext
6324#ifdef __cplusplus
6325extern "C" {
6326#endif
6327
6328EOF
6329	  # Now generate the symbol file.
6330	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6331
6332	  cat <<EOF >> conftest.$ac_ext
6333#if defined (__STDC__) && __STDC__
6334# define lt_ptr_t void *
6335#else
6336# define lt_ptr_t char *
6337# define const
6338#endif
6339
6340/* The mapping between symbol names and symbols. */
6341const struct {
6342  const char *name;
6343  lt_ptr_t address;
6344}
6345lt_preloaded_symbols[] =
6346{
6347EOF
6348	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6349	  cat <<\EOF >> conftest.$ac_ext
6350  {0, (lt_ptr_t) 0}
6351};
6352
6353#ifdef __cplusplus
6354}
6355#endif
6356EOF
6357	  # Now try linking the two files.
6358	  mv conftest.$ac_objext conftstm.$ac_objext
6359	  lt_save_LIBS="$LIBS"
6360	  lt_save_CFLAGS="$CFLAGS"
6361	  LIBS="conftstm.$ac_objext"
6362	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6363	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6364  (eval $ac_link) 2>&5
6365  ac_status=$?
6366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6368	    pipe_works=yes
6369	  fi
6370	  LIBS="$lt_save_LIBS"
6371	  CFLAGS="$lt_save_CFLAGS"
6372	else
6373	  echo "cannot find nm_test_func in $nlist" >&5
6374	fi
6375      else
6376	echo "cannot find nm_test_var in $nlist" >&5
6377      fi
6378    else
6379      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6380    fi
6381  else
6382    echo "$progname: failed program was:" >&5
6383    cat conftest.$ac_ext >&5
6384  fi
6385  rm -f conftest* conftst*
6386
6387  # Do not use the global_symbol_pipe unless it works.
6388  if test "$pipe_works" = yes; then
6389    break
6390  else
6391    lt_cv_sys_global_symbol_pipe=
6392  fi
6393done
6394
6395fi
6396
6397if test -z "$lt_cv_sys_global_symbol_pipe"; then
6398  lt_cv_sys_global_symbol_to_cdecl=
6399fi
6400if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6401  { echo "$as_me:$LINENO: result: failed" >&5
6402echo "${ECHO_T}failed" >&6; }
6403else
6404  { echo "$as_me:$LINENO: result: ok" >&5
6405echo "${ECHO_T}ok" >&6; }
6406fi
6407
6408{ echo "$as_me:$LINENO: checking for objdir" >&5
6409echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6410if test "${lt_cv_objdir+set}" = set; then
6411  echo $ECHO_N "(cached) $ECHO_C" >&6
6412else
6413  rm -f .libs 2>/dev/null
6414mkdir .libs 2>/dev/null
6415if test -d .libs; then
6416  lt_cv_objdir=.libs
6417else
6418  # MS-DOS does not allow filenames that begin with a dot.
6419  lt_cv_objdir=_libs
6420fi
6421rmdir .libs 2>/dev/null
6422fi
6423{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6424echo "${ECHO_T}$lt_cv_objdir" >&6; }
6425objdir=$lt_cv_objdir
6426
6427
6428
6429
6430
6431case $host_os in
6432aix3*)
6433  # AIX sometimes has problems with the GCC collect2 program.  For some
6434  # reason, if we set the COLLECT_NAMES environment variable, the problems
6435  # vanish in a puff of smoke.
6436  if test "X${COLLECT_NAMES+set}" != Xset; then
6437    COLLECT_NAMES=
6438    export COLLECT_NAMES
6439  fi
6440  ;;
6441esac
6442
6443# Sed substitution that helps us do robust quoting.  It backslashifies
6444# metacharacters that are still active within double-quoted strings.
6445Xsed='sed -e 1s/^X//'
6446sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6447
6448# Same as above, but do not quote variable references.
6449double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6450
6451# Sed substitution to delay expansion of an escaped shell variable in a
6452# double_quote_subst'ed string.
6453delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6454
6455# Sed substitution to avoid accidental globbing in evaled expressions
6456no_glob_subst='s/\*/\\\*/g'
6457
6458# Constants:
6459rm="rm -f"
6460
6461# Global variables:
6462default_ofile=libtool
6463can_build_shared=yes
6464
6465# All known linkers require a `.a' archive for static linking (except MSVC,
6466# which needs '.lib').
6467libext=a
6468ltmain="$ac_aux_dir/ltmain.sh"
6469ofile="$default_ofile"
6470with_gnu_ld="$lt_cv_prog_gnu_ld"
6471
6472if test -n "$ac_tool_prefix"; then
6473  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6474set dummy ${ac_tool_prefix}ar; ac_word=$2
6475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6477if test "${ac_cv_prog_AR+set}" = set; then
6478  echo $ECHO_N "(cached) $ECHO_C" >&6
6479else
6480  if test -n "$AR"; then
6481  ac_cv_prog_AR="$AR" # Let the user override the test.
6482else
6483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484for as_dir in $PATH
6485do
6486  IFS=$as_save_IFS
6487  test -z "$as_dir" && as_dir=.
6488  for ac_exec_ext in '' $ac_executable_extensions; do
6489  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6490    ac_cv_prog_AR="${ac_tool_prefix}ar"
6491    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6492    break 2
6493  fi
6494done
6495done
6496IFS=$as_save_IFS
6497
6498fi
6499fi
6500AR=$ac_cv_prog_AR
6501if test -n "$AR"; then
6502  { echo "$as_me:$LINENO: result: $AR" >&5
6503echo "${ECHO_T}$AR" >&6; }
6504else
6505  { echo "$as_me:$LINENO: result: no" >&5
6506echo "${ECHO_T}no" >&6; }
6507fi
6508
6509
6510fi
6511if test -z "$ac_cv_prog_AR"; then
6512  ac_ct_AR=$AR
6513  # Extract the first word of "ar", so it can be a program name with args.
6514set dummy ar; ac_word=$2
6515{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6517if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6518  echo $ECHO_N "(cached) $ECHO_C" >&6
6519else
6520  if test -n "$ac_ct_AR"; then
6521  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6522else
6523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524for as_dir in $PATH
6525do
6526  IFS=$as_save_IFS
6527  test -z "$as_dir" && as_dir=.
6528  for ac_exec_ext in '' $ac_executable_extensions; do
6529  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6530    ac_cv_prog_ac_ct_AR="ar"
6531    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6532    break 2
6533  fi
6534done
6535done
6536IFS=$as_save_IFS
6537
6538fi
6539fi
6540ac_ct_AR=$ac_cv_prog_ac_ct_AR
6541if test -n "$ac_ct_AR"; then
6542  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6543echo "${ECHO_T}$ac_ct_AR" >&6; }
6544else
6545  { echo "$as_me:$LINENO: result: no" >&5
6546echo "${ECHO_T}no" >&6; }
6547fi
6548
6549  if test "x$ac_ct_AR" = x; then
6550    AR="false"
6551  else
6552    case $cross_compiling:$ac_tool_warned in
6553yes:)
6554{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6555whose name does not start with the host triplet.  If you think this
6556configuration is useful to you, please write to autoconf@gnu.org." >&5
6557echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6558whose name does not start with the host triplet.  If you think this
6559configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6560ac_tool_warned=yes ;;
6561esac
6562    AR=$ac_ct_AR
6563  fi
6564else
6565  AR="$ac_cv_prog_AR"
6566fi
6567
6568if test -n "$ac_tool_prefix"; then
6569  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6570set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6571{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6573if test "${ac_cv_prog_RANLIB+set}" = set; then
6574  echo $ECHO_N "(cached) $ECHO_C" >&6
6575else
6576  if test -n "$RANLIB"; then
6577  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6578else
6579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580for as_dir in $PATH
6581do
6582  IFS=$as_save_IFS
6583  test -z "$as_dir" && as_dir=.
6584  for ac_exec_ext in '' $ac_executable_extensions; do
6585  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6586    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6587    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6588    break 2
6589  fi
6590done
6591done
6592IFS=$as_save_IFS
6593
6594fi
6595fi
6596RANLIB=$ac_cv_prog_RANLIB
6597if test -n "$RANLIB"; then
6598  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6599echo "${ECHO_T}$RANLIB" >&6; }
6600else
6601  { echo "$as_me:$LINENO: result: no" >&5
6602echo "${ECHO_T}no" >&6; }
6603fi
6604
6605
6606fi
6607if test -z "$ac_cv_prog_RANLIB"; then
6608  ac_ct_RANLIB=$RANLIB
6609  # Extract the first word of "ranlib", so it can be a program name with args.
6610set dummy ranlib; ac_word=$2
6611{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6613if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6614  echo $ECHO_N "(cached) $ECHO_C" >&6
6615else
6616  if test -n "$ac_ct_RANLIB"; then
6617  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6618else
6619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620for as_dir in $PATH
6621do
6622  IFS=$as_save_IFS
6623  test -z "$as_dir" && as_dir=.
6624  for ac_exec_ext in '' $ac_executable_extensions; do
6625  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6626    ac_cv_prog_ac_ct_RANLIB="ranlib"
6627    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6628    break 2
6629  fi
6630done
6631done
6632IFS=$as_save_IFS
6633
6634fi
6635fi
6636ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6637if test -n "$ac_ct_RANLIB"; then
6638  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6639echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6640else
6641  { echo "$as_me:$LINENO: result: no" >&5
6642echo "${ECHO_T}no" >&6; }
6643fi
6644
6645  if test "x$ac_ct_RANLIB" = x; then
6646    RANLIB=":"
6647  else
6648    case $cross_compiling:$ac_tool_warned in
6649yes:)
6650{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6651whose name does not start with the host triplet.  If you think this
6652configuration is useful to you, please write to autoconf@gnu.org." >&5
6653echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6654whose name does not start with the host triplet.  If you think this
6655configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6656ac_tool_warned=yes ;;
6657esac
6658    RANLIB=$ac_ct_RANLIB
6659  fi
6660else
6661  RANLIB="$ac_cv_prog_RANLIB"
6662fi
6663
6664if test -n "$ac_tool_prefix"; then
6665  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6666set dummy ${ac_tool_prefix}strip; ac_word=$2
6667{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6669if test "${ac_cv_prog_STRIP+set}" = set; then
6670  echo $ECHO_N "(cached) $ECHO_C" >&6
6671else
6672  if test -n "$STRIP"; then
6673  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6674else
6675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676for as_dir in $PATH
6677do
6678  IFS=$as_save_IFS
6679  test -z "$as_dir" && as_dir=.
6680  for ac_exec_ext in '' $ac_executable_extensions; do
6681  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6683    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684    break 2
6685  fi
6686done
6687done
6688IFS=$as_save_IFS
6689
6690fi
6691fi
6692STRIP=$ac_cv_prog_STRIP
6693if test -n "$STRIP"; then
6694  { echo "$as_me:$LINENO: result: $STRIP" >&5
6695echo "${ECHO_T}$STRIP" >&6; }
6696else
6697  { echo "$as_me:$LINENO: result: no" >&5
6698echo "${ECHO_T}no" >&6; }
6699fi
6700
6701
6702fi
6703if test -z "$ac_cv_prog_STRIP"; then
6704  ac_ct_STRIP=$STRIP
6705  # Extract the first word of "strip", so it can be a program name with args.
6706set dummy strip; ac_word=$2
6707{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6709if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6710  echo $ECHO_N "(cached) $ECHO_C" >&6
6711else
6712  if test -n "$ac_ct_STRIP"; then
6713  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6714else
6715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716for as_dir in $PATH
6717do
6718  IFS=$as_save_IFS
6719  test -z "$as_dir" && as_dir=.
6720  for ac_exec_ext in '' $ac_executable_extensions; do
6721  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722    ac_cv_prog_ac_ct_STRIP="strip"
6723    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724    break 2
6725  fi
6726done
6727done
6728IFS=$as_save_IFS
6729
6730fi
6731fi
6732ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6733if test -n "$ac_ct_STRIP"; then
6734  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6735echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6736else
6737  { echo "$as_me:$LINENO: result: no" >&5
6738echo "${ECHO_T}no" >&6; }
6739fi
6740
6741  if test "x$ac_ct_STRIP" = x; then
6742    STRIP=":"
6743  else
6744    case $cross_compiling:$ac_tool_warned in
6745yes:)
6746{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6747whose name does not start with the host triplet.  If you think this
6748configuration is useful to you, please write to autoconf@gnu.org." >&5
6749echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6750whose name does not start with the host triplet.  If you think this
6751configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6752ac_tool_warned=yes ;;
6753esac
6754    STRIP=$ac_ct_STRIP
6755  fi
6756else
6757  STRIP="$ac_cv_prog_STRIP"
6758fi
6759
6760
6761old_CC="$CC"
6762old_CFLAGS="$CFLAGS"
6763
6764# Set sane defaults for various variables
6765test -z "$AR" && AR=ar
6766test -z "$AR_FLAGS" && AR_FLAGS=cru
6767test -z "$AS" && AS=as
6768test -z "$CC" && CC=cc
6769test -z "$LTCC" && LTCC=$CC
6770test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6771test -z "$DLLTOOL" && DLLTOOL=dlltool
6772test -z "$LD" && LD=ld
6773test -z "$LN_S" && LN_S="ln -s"
6774test -z "$MAGIC_CMD" && MAGIC_CMD=file
6775test -z "$NM" && NM=nm
6776test -z "$SED" && SED=sed
6777test -z "$OBJDUMP" && OBJDUMP=objdump
6778test -z "$RANLIB" && RANLIB=:
6779test -z "$STRIP" && STRIP=:
6780test -z "$ac_objext" && ac_objext=o
6781
6782# Determine commands to create old-style static archives.
6783old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6784old_postinstall_cmds='chmod 644 $oldlib'
6785old_postuninstall_cmds=
6786
6787if test -n "$RANLIB"; then
6788  case $host_os in
6789  openbsd*)
6790    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6791    ;;
6792  *)
6793    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6794    ;;
6795  esac
6796  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6797fi
6798
6799for cc_temp in $compiler""; do
6800  case $cc_temp in
6801    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6802    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6803    \-*) ;;
6804    *) break;;
6805  esac
6806done
6807cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6808
6809
6810# Only perform the check for file, if the check method requires it
6811case $deplibs_check_method in
6812file_magic*)
6813  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6814    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6815echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6816if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6817  echo $ECHO_N "(cached) $ECHO_C" >&6
6818else
6819  case $MAGIC_CMD in
6820[\\/*] |  ?:[\\/]*)
6821  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6822  ;;
6823*)
6824  lt_save_MAGIC_CMD="$MAGIC_CMD"
6825  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6826  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6827  for ac_dir in $ac_dummy; do
6828    IFS="$lt_save_ifs"
6829    test -z "$ac_dir" && ac_dir=.
6830    if test -f $ac_dir/${ac_tool_prefix}file; then
6831      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6832      if test -n "$file_magic_test_file"; then
6833	case $deplibs_check_method in
6834	"file_magic "*)
6835	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6836	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6837	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6838	    $EGREP "$file_magic_regex" > /dev/null; then
6839	    :
6840	  else
6841	    cat <<EOF 1>&2
6842
6843*** Warning: the command libtool uses to detect shared libraries,
6844*** $file_magic_cmd, produces output that libtool cannot recognize.
6845*** The result is that libtool may fail to recognize shared libraries
6846*** as such.  This will affect the creation of libtool libraries that
6847*** depend on shared libraries, but programs linked with such libtool
6848*** libraries will work regardless of this problem.  Nevertheless, you
6849*** may want to report the problem to your system manager and/or to
6850*** bug-libtool@gnu.org
6851
6852EOF
6853	  fi ;;
6854	esac
6855      fi
6856      break
6857    fi
6858  done
6859  IFS="$lt_save_ifs"
6860  MAGIC_CMD="$lt_save_MAGIC_CMD"
6861  ;;
6862esac
6863fi
6864
6865MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6866if test -n "$MAGIC_CMD"; then
6867  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6868echo "${ECHO_T}$MAGIC_CMD" >&6; }
6869else
6870  { echo "$as_me:$LINENO: result: no" >&5
6871echo "${ECHO_T}no" >&6; }
6872fi
6873
6874if test -z "$lt_cv_path_MAGIC_CMD"; then
6875  if test -n "$ac_tool_prefix"; then
6876    { echo "$as_me:$LINENO: checking for file" >&5
6877echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6878if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6879  echo $ECHO_N "(cached) $ECHO_C" >&6
6880else
6881  case $MAGIC_CMD in
6882[\\/*] |  ?:[\\/]*)
6883  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6884  ;;
6885*)
6886  lt_save_MAGIC_CMD="$MAGIC_CMD"
6887  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6888  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6889  for ac_dir in $ac_dummy; do
6890    IFS="$lt_save_ifs"
6891    test -z "$ac_dir" && ac_dir=.
6892    if test -f $ac_dir/file; then
6893      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6894      if test -n "$file_magic_test_file"; then
6895	case $deplibs_check_method in
6896	"file_magic "*)
6897	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6898	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6899	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6900	    $EGREP "$file_magic_regex" > /dev/null; then
6901	    :
6902	  else
6903	    cat <<EOF 1>&2
6904
6905*** Warning: the command libtool uses to detect shared libraries,
6906*** $file_magic_cmd, produces output that libtool cannot recognize.
6907*** The result is that libtool may fail to recognize shared libraries
6908*** as such.  This will affect the creation of libtool libraries that
6909*** depend on shared libraries, but programs linked with such libtool
6910*** libraries will work regardless of this problem.  Nevertheless, you
6911*** may want to report the problem to your system manager and/or to
6912*** bug-libtool@gnu.org
6913
6914EOF
6915	  fi ;;
6916	esac
6917      fi
6918      break
6919    fi
6920  done
6921  IFS="$lt_save_ifs"
6922  MAGIC_CMD="$lt_save_MAGIC_CMD"
6923  ;;
6924esac
6925fi
6926
6927MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6928if test -n "$MAGIC_CMD"; then
6929  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6930echo "${ECHO_T}$MAGIC_CMD" >&6; }
6931else
6932  { echo "$as_me:$LINENO: result: no" >&5
6933echo "${ECHO_T}no" >&6; }
6934fi
6935
6936  else
6937    MAGIC_CMD=:
6938  fi
6939fi
6940
6941  fi
6942  ;;
6943esac
6944
6945enable_dlopen=no
6946enable_win32_dll=no
6947
6948# Check whether --enable-libtool-lock was given.
6949if test "${enable_libtool_lock+set}" = set; then
6950  enableval=$enable_libtool_lock;
6951fi
6952
6953test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6954
6955
6956# Check whether --with-pic was given.
6957if test "${with_pic+set}" = set; then
6958  withval=$with_pic; pic_mode="$withval"
6959else
6960  pic_mode=default
6961fi
6962
6963test -z "$pic_mode" && pic_mode=default
6964
6965# Use C for the default configuration in the libtool script
6966tagname=
6967lt_save_CC="$CC"
6968ac_ext=c
6969ac_cpp='$CPP $CPPFLAGS'
6970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6972ac_compiler_gnu=$ac_cv_c_compiler_gnu
6973
6974
6975# Source file extension for C test sources.
6976ac_ext=c
6977
6978# Object file extension for compiled C test sources.
6979objext=o
6980objext=$objext
6981
6982# Code to be used in simple compile tests
6983lt_simple_compile_test_code="int some_variable = 0;"
6984
6985# Code to be used in simple link tests
6986lt_simple_link_test_code='int main(){return(0);}'
6987
6988
6989# If no C compiler was specified, use CC.
6990LTCC=${LTCC-"$CC"}
6991
6992# If no C compiler flags were specified, use CFLAGS.
6993LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6994
6995# Allow CC to be a program name with arguments.
6996compiler=$CC
6997
6998
6999# save warnings/boilerplate of simple test code
7000ac_outfile=conftest.$ac_objext
7001echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7002eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7003_lt_compiler_boilerplate=`cat conftest.err`
7004$rm conftest*
7005
7006ac_outfile=conftest.$ac_objext
7007echo "$lt_simple_link_test_code" >conftest.$ac_ext
7008eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7009_lt_linker_boilerplate=`cat conftest.err`
7010$rm conftest*
7011
7012
7013
7014lt_prog_compiler_no_builtin_flag=
7015
7016if test "$GCC" = yes; then
7017  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7018
7019
7020{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7021echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7022if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7023  echo $ECHO_N "(cached) $ECHO_C" >&6
7024else
7025  lt_cv_prog_compiler_rtti_exceptions=no
7026  ac_outfile=conftest.$ac_objext
7027   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7028   lt_compiler_flag="-fno-rtti -fno-exceptions"
7029   # Insert the option either (1) after the last *FLAGS variable, or
7030   # (2) before a word containing "conftest.", or (3) at the end.
7031   # Note that $ac_compile itself does not contain backslashes and begins
7032   # with a dollar sign (not a hyphen), so the echo should work correctly.
7033   # The option is referenced via a variable to avoid confusing sed.
7034   lt_compile=`echo "$ac_compile" | $SED \
7035   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7036   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7037   -e 's:$: $lt_compiler_flag:'`
7038   (eval echo "\"\$as_me:7038: $lt_compile\"" >&5)
7039   (eval "$lt_compile" 2>conftest.err)
7040   ac_status=$?
7041   cat conftest.err >&5
7042   echo "$as_me:7042: \$? = $ac_status" >&5
7043   if (exit $ac_status) && test -s "$ac_outfile"; then
7044     # The compiler can only warn and ignore the option if not recognized
7045     # So say no if there are warnings other than the usual output.
7046     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7047     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7048     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7049       lt_cv_prog_compiler_rtti_exceptions=yes
7050     fi
7051   fi
7052   $rm conftest*
7053
7054fi
7055{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7056echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7057
7058if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7059    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7060else
7061    :
7062fi
7063
7064fi
7065
7066lt_prog_compiler_wl=
7067lt_prog_compiler_pic=
7068lt_prog_compiler_static=
7069
7070{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7071echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7072
7073  if test "$GCC" = yes; then
7074    lt_prog_compiler_wl='-Wl,'
7075    lt_prog_compiler_static='-static'
7076
7077    case $host_os in
7078      aix*)
7079      # All AIX code is PIC.
7080      if test "$host_cpu" = ia64; then
7081	# AIX 5 now supports IA64 processor
7082	lt_prog_compiler_static='-Bstatic'
7083      fi
7084      ;;
7085
7086    amigaos*)
7087      # FIXME: we need at least 68020 code to build shared libraries, but
7088      # adding the `-m68020' flag to GCC prevents building anything better,
7089      # like `-m68040'.
7090      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7091      ;;
7092
7093    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7094      # PIC is the default for these OSes.
7095      ;;
7096
7097    mingw* | cygwin* | pw32* | os2*)
7098      # This hack is so that the source file can tell whether it is being
7099      # built for inclusion in a dll (and should export symbols for example).
7100      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7101      # (--disable-auto-import) libraries
7102      lt_prog_compiler_pic='-DDLL_EXPORT'
7103      ;;
7104
7105    darwin* | rhapsody*)
7106      # PIC is the default on this platform
7107      # Common symbols not allowed in MH_DYLIB files
7108      lt_prog_compiler_pic='-fno-common'
7109      ;;
7110
7111    interix[3-9]*)
7112      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7113      # Instead, we relocate shared libraries at runtime.
7114      ;;
7115
7116    msdosdjgpp*)
7117      # Just because we use GCC doesn't mean we suddenly get shared libraries
7118      # on systems that don't support them.
7119      lt_prog_compiler_can_build_shared=no
7120      enable_shared=no
7121      ;;
7122
7123    sysv4*MP*)
7124      if test -d /usr/nec; then
7125	lt_prog_compiler_pic=-Kconform_pic
7126      fi
7127      ;;
7128
7129    hpux*)
7130      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7131      # not for PA HP-UX.
7132      case $host_cpu in
7133      hppa*64*|ia64*)
7134	# +Z the default
7135	;;
7136      *)
7137	lt_prog_compiler_pic='-fPIC'
7138	;;
7139      esac
7140      ;;
7141
7142    *)
7143      lt_prog_compiler_pic='-fPIC'
7144      ;;
7145    esac
7146  else
7147    # PORTME Check for flag to pass linker flags through the system compiler.
7148    case $host_os in
7149    aix*)
7150      lt_prog_compiler_wl='-Wl,'
7151      if test "$host_cpu" = ia64; then
7152	# AIX 5 now supports IA64 processor
7153	lt_prog_compiler_static='-Bstatic'
7154      else
7155	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7156      fi
7157      ;;
7158      darwin*)
7159        # PIC is the default on this platform
7160        # Common symbols not allowed in MH_DYLIB files
7161       case $cc_basename in
7162         xlc*)
7163         lt_prog_compiler_pic='-qnocommon'
7164         lt_prog_compiler_wl='-Wl,'
7165         ;;
7166       esac
7167       ;;
7168
7169    mingw* | cygwin* | pw32* | os2*)
7170      # This hack is so that the source file can tell whether it is being
7171      # built for inclusion in a dll (and should export symbols for example).
7172      lt_prog_compiler_pic='-DDLL_EXPORT'
7173      ;;
7174
7175    hpux9* | hpux10* | hpux11*)
7176      lt_prog_compiler_wl='-Wl,'
7177      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7178      # not for PA HP-UX.
7179      case $host_cpu in
7180      hppa*64*|ia64*)
7181	# +Z the default
7182	;;
7183      *)
7184	lt_prog_compiler_pic='+Z'
7185	;;
7186      esac
7187      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7188      lt_prog_compiler_static='${wl}-a ${wl}archive'
7189      ;;
7190
7191    irix5* | irix6* | nonstopux*)
7192      lt_prog_compiler_wl='-Wl,'
7193      # PIC (with -KPIC) is the default.
7194      lt_prog_compiler_static='-non_shared'
7195      ;;
7196
7197    newsos6)
7198      lt_prog_compiler_pic='-KPIC'
7199      lt_prog_compiler_static='-Bstatic'
7200      ;;
7201
7202    linux* | k*bsd*-gnu)
7203      case $cc_basename in
7204      icc* | ecc*)
7205	lt_prog_compiler_wl='-Wl,'
7206	lt_prog_compiler_pic='-KPIC'
7207	lt_prog_compiler_static='-static'
7208        ;;
7209      pgcc* | pgf77* | pgf90* | pgf95*)
7210        # Portland Group compilers (*not* the Pentium gcc compiler,
7211	# which looks to be a dead project)
7212	lt_prog_compiler_wl='-Wl,'
7213	lt_prog_compiler_pic='-fpic'
7214	lt_prog_compiler_static='-Bstatic'
7215        ;;
7216      ccc*)
7217        lt_prog_compiler_wl='-Wl,'
7218        # All Alpha code is PIC.
7219        lt_prog_compiler_static='-non_shared'
7220        ;;
7221      como)
7222        lt_prog_compiler_wl='-lopt='
7223        ;;
7224      *)
7225        case `$CC -V 2>&1 | sed 5q` in
7226	*Sun\ C*)
7227	  # Sun C 5.9
7228	  lt_prog_compiler_pic='-KPIC'
7229	  lt_prog_compiler_static='-Bstatic'
7230	  lt_prog_compiler_wl='-Wl,'
7231	  ;;
7232	*Sun\ F*)
7233	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7234	  lt_prog_compiler_pic='-KPIC'
7235	  lt_prog_compiler_static='-Bstatic'
7236	  lt_prog_compiler_wl=''
7237	  ;;
7238	esac
7239	;;
7240      esac
7241      ;;
7242
7243    osf3* | osf4* | osf5*)
7244      lt_prog_compiler_wl='-Wl,'
7245      # All OSF/1 code is PIC.
7246      lt_prog_compiler_static='-non_shared'
7247      ;;
7248
7249    rdos*)
7250      lt_prog_compiler_static='-non_shared'
7251      ;;
7252
7253    solaris*)
7254      lt_prog_compiler_pic='-KPIC'
7255      lt_prog_compiler_static='-Bstatic'
7256      case $cc_basename in
7257      f77* | f90* | f95*)
7258	lt_prog_compiler_wl='-Qoption ld ';;
7259      *)
7260	lt_prog_compiler_wl='-Wl,';;
7261      esac
7262      ;;
7263
7264    sunos4*)
7265      lt_prog_compiler_wl='-Qoption ld '
7266      lt_prog_compiler_pic='-PIC'
7267      lt_prog_compiler_static='-Bstatic'
7268      ;;
7269
7270    sysv4 | sysv4.2uw2* | sysv4.3*)
7271      lt_prog_compiler_wl='-Wl,'
7272      lt_prog_compiler_pic='-KPIC'
7273      lt_prog_compiler_static='-Bstatic'
7274      ;;
7275
7276    sysv4*MP*)
7277      if test -d /usr/nec ;then
7278	lt_prog_compiler_pic='-Kconform_pic'
7279	lt_prog_compiler_static='-Bstatic'
7280      fi
7281      ;;
7282
7283    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7284      lt_prog_compiler_wl='-Wl,'
7285      lt_prog_compiler_pic='-KPIC'
7286      lt_prog_compiler_static='-Bstatic'
7287      ;;
7288
7289    unicos*)
7290      lt_prog_compiler_wl='-Wl,'
7291      lt_prog_compiler_can_build_shared=no
7292      ;;
7293
7294    uts4*)
7295      lt_prog_compiler_pic='-pic'
7296      lt_prog_compiler_static='-Bstatic'
7297      ;;
7298
7299    *)
7300      lt_prog_compiler_can_build_shared=no
7301      ;;
7302    esac
7303  fi
7304
7305{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7306echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7307
7308#
7309# Check to make sure the PIC flag actually works.
7310#
7311if test -n "$lt_prog_compiler_pic"; then
7312
7313{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7314echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7315if test "${lt_prog_compiler_pic_works+set}" = set; then
7316  echo $ECHO_N "(cached) $ECHO_C" >&6
7317else
7318  lt_prog_compiler_pic_works=no
7319  ac_outfile=conftest.$ac_objext
7320   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7321   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7322   # Insert the option either (1) after the last *FLAGS variable, or
7323   # (2) before a word containing "conftest.", or (3) at the end.
7324   # Note that $ac_compile itself does not contain backslashes and begins
7325   # with a dollar sign (not a hyphen), so the echo should work correctly.
7326   # The option is referenced via a variable to avoid confusing sed.
7327   lt_compile=`echo "$ac_compile" | $SED \
7328   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7329   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7330   -e 's:$: $lt_compiler_flag:'`
7331   (eval echo "\"\$as_me:7331: $lt_compile\"" >&5)
7332   (eval "$lt_compile" 2>conftest.err)
7333   ac_status=$?
7334   cat conftest.err >&5
7335   echo "$as_me:7335: \$? = $ac_status" >&5
7336   if (exit $ac_status) && test -s "$ac_outfile"; then
7337     # The compiler can only warn and ignore the option if not recognized
7338     # So say no if there are warnings other than the usual output.
7339     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7340     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7341     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7342       lt_prog_compiler_pic_works=yes
7343     fi
7344   fi
7345   $rm conftest*
7346
7347fi
7348{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7349echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7350
7351if test x"$lt_prog_compiler_pic_works" = xyes; then
7352    case $lt_prog_compiler_pic in
7353     "" | " "*) ;;
7354     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7355     esac
7356else
7357    lt_prog_compiler_pic=
7358     lt_prog_compiler_can_build_shared=no
7359fi
7360
7361fi
7362case $host_os in
7363  # For platforms which do not support PIC, -DPIC is meaningless:
7364  *djgpp*)
7365    lt_prog_compiler_pic=
7366    ;;
7367  *)
7368    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7369    ;;
7370esac
7371
7372#
7373# Check to make sure the static flag actually works.
7374#
7375wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7376{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7377echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7378if test "${lt_prog_compiler_static_works+set}" = set; then
7379  echo $ECHO_N "(cached) $ECHO_C" >&6
7380else
7381  lt_prog_compiler_static_works=no
7382   save_LDFLAGS="$LDFLAGS"
7383   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7384   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7385   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7386     # The linker can only warn and ignore the option if not recognized
7387     # So say no if there are warnings
7388     if test -s conftest.err; then
7389       # Append any errors to the config.log.
7390       cat conftest.err 1>&5
7391       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7392       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7393       if diff conftest.exp conftest.er2 >/dev/null; then
7394         lt_prog_compiler_static_works=yes
7395       fi
7396     else
7397       lt_prog_compiler_static_works=yes
7398     fi
7399   fi
7400   $rm conftest*
7401   LDFLAGS="$save_LDFLAGS"
7402
7403fi
7404{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7405echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7406
7407if test x"$lt_prog_compiler_static_works" = xyes; then
7408    :
7409else
7410    lt_prog_compiler_static=
7411fi
7412
7413
7414{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7415echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7416if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7417  echo $ECHO_N "(cached) $ECHO_C" >&6
7418else
7419  lt_cv_prog_compiler_c_o=no
7420   $rm -r conftest 2>/dev/null
7421   mkdir conftest
7422   cd conftest
7423   mkdir out
7424   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7425
7426   lt_compiler_flag="-o out/conftest2.$ac_objext"
7427   # Insert the option either (1) after the last *FLAGS variable, or
7428   # (2) before a word containing "conftest.", or (3) at the end.
7429   # Note that $ac_compile itself does not contain backslashes and begins
7430   # with a dollar sign (not a hyphen), so the echo should work correctly.
7431   lt_compile=`echo "$ac_compile" | $SED \
7432   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7433   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7434   -e 's:$: $lt_compiler_flag:'`
7435   (eval echo "\"\$as_me:7435: $lt_compile\"" >&5)
7436   (eval "$lt_compile" 2>out/conftest.err)
7437   ac_status=$?
7438   cat out/conftest.err >&5
7439   echo "$as_me:7439: \$? = $ac_status" >&5
7440   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7441   then
7442     # The compiler can only warn and ignore the option if not recognized
7443     # So say no if there are warnings
7444     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7445     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7446     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7447       lt_cv_prog_compiler_c_o=yes
7448     fi
7449   fi
7450   chmod u+w . 2>&5
7451   $rm conftest*
7452   # SGI C++ compiler will create directory out/ii_files/ for
7453   # template instantiation
7454   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7455   $rm out/* && rmdir out
7456   cd ..
7457   rmdir conftest
7458   $rm conftest*
7459
7460fi
7461{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7462echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7463
7464
7465hard_links="nottested"
7466if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7467  # do not overwrite the value of need_locks provided by the user
7468  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7469echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7470  hard_links=yes
7471  $rm conftest*
7472  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7473  touch conftest.a
7474  ln conftest.a conftest.b 2>&5 || hard_links=no
7475  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7476  { echo "$as_me:$LINENO: result: $hard_links" >&5
7477echo "${ECHO_T}$hard_links" >&6; }
7478  if test "$hard_links" = no; then
7479    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7480echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7481    need_locks=warn
7482  fi
7483else
7484  need_locks=no
7485fi
7486
7487{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7488echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7489
7490  runpath_var=
7491  allow_undefined_flag=
7492  enable_shared_with_static_runtimes=no
7493  archive_cmds=
7494  archive_expsym_cmds=
7495  old_archive_From_new_cmds=
7496  old_archive_from_expsyms_cmds=
7497  export_dynamic_flag_spec=
7498  whole_archive_flag_spec=
7499  thread_safe_flag_spec=
7500  hardcode_libdir_flag_spec=
7501  hardcode_libdir_flag_spec_ld=
7502  hardcode_libdir_separator=
7503  hardcode_direct=no
7504  hardcode_minus_L=no
7505  hardcode_shlibpath_var=unsupported
7506  link_all_deplibs=unknown
7507  hardcode_automatic=no
7508  module_cmds=
7509  module_expsym_cmds=
7510  always_export_symbols=no
7511  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7512  # include_expsyms should be a list of space-separated symbols to be *always*
7513  # included in the symbol list
7514  include_expsyms=
7515  # exclude_expsyms can be an extended regexp of symbols to exclude
7516  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7517  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7518  # as well as any symbol that contains `d'.
7519  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7520  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7521  # platforms (ab)use it in PIC code, but their linkers get confused if
7522  # the symbol is explicitly referenced.  Since portable code cannot
7523  # rely on this symbol name, it's probably fine to never include it in
7524  # preloaded symbol tables.
7525  extract_expsyms_cmds=
7526  # Just being paranoid about ensuring that cc_basename is set.
7527  for cc_temp in $compiler""; do
7528  case $cc_temp in
7529    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7530    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7531    \-*) ;;
7532    *) break;;
7533  esac
7534done
7535cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7536
7537  case $host_os in
7538  cygwin* | mingw* | pw32*)
7539    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7540    # When not using gcc, we currently assume that we are using
7541    # Microsoft Visual C++.
7542    if test "$GCC" != yes; then
7543      with_gnu_ld=no
7544    fi
7545    ;;
7546  interix*)
7547    # we just hope/assume this is gcc and not c89 (= MSVC++)
7548    with_gnu_ld=yes
7549    ;;
7550  openbsd*)
7551    with_gnu_ld=no
7552    ;;
7553  esac
7554
7555  ld_shlibs=yes
7556  if test "$with_gnu_ld" = yes; then
7557    # If archive_cmds runs LD, not CC, wlarc should be empty
7558    wlarc='${wl}'
7559
7560    # Set some defaults for GNU ld with shared library support. These
7561    # are reset later if shared libraries are not supported. Putting them
7562    # here allows them to be overridden if necessary.
7563    runpath_var=LD_RUN_PATH
7564    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7565    export_dynamic_flag_spec='${wl}--export-dynamic'
7566    # ancient GNU ld didn't support --whole-archive et. al.
7567    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7568	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7569      else
7570  	whole_archive_flag_spec=
7571    fi
7572    supports_anon_versioning=no
7573    case `$LD -v 2>/dev/null` in
7574      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7575      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7576      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7577      *\ 2.11.*) ;; # other 2.11 versions
7578      *) supports_anon_versioning=yes ;;
7579    esac
7580
7581    # See if GNU ld supports shared libraries.
7582    case $host_os in
7583    aix3* | aix4* | aix5*)
7584      # On AIX/PPC, the GNU linker is very broken
7585      if test "$host_cpu" != ia64; then
7586	ld_shlibs=no
7587	cat <<EOF 1>&2
7588
7589*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7590*** to be unable to reliably create shared libraries on AIX.
7591*** Therefore, libtool is disabling shared libraries support.  If you
7592*** really care for shared libraries, you may want to modify your PATH
7593*** so that a non-GNU linker is found, and then restart.
7594
7595EOF
7596      fi
7597      ;;
7598
7599    amigaos*)
7600      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)'
7601      hardcode_libdir_flag_spec='-L$libdir'
7602      hardcode_minus_L=yes
7603
7604      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7605      # that the semantics of dynamic libraries on AmigaOS, at least up
7606      # to version 4, is to share data among multiple programs linked
7607      # with the same dynamic library.  Since this doesn't match the
7608      # behavior of shared libraries on other platforms, we can't use
7609      # them.
7610      ld_shlibs=no
7611      ;;
7612
7613    beos*)
7614      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7615	allow_undefined_flag=unsupported
7616	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7617	# support --undefined.  This deserves some investigation.  FIXME
7618	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7619      else
7620	ld_shlibs=no
7621      fi
7622      ;;
7623
7624    cygwin* | mingw* | pw32*)
7625      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7626      # as there is no search path for DLLs.
7627      hardcode_libdir_flag_spec='-L$libdir'
7628      allow_undefined_flag=unsupported
7629      always_export_symbols=no
7630      enable_shared_with_static_runtimes=yes
7631      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7632
7633      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7634        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7635	# If the export-symbols file already is a .def file (1st line
7636	# is EXPORTS), use it as is; otherwise, prepend...
7637	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7638	  cp $export_symbols $output_objdir/$soname.def;
7639	else
7640	  echo EXPORTS > $output_objdir/$soname.def;
7641	  cat $export_symbols >> $output_objdir/$soname.def;
7642	fi~
7643	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7644      else
7645	ld_shlibs=no
7646      fi
7647      ;;
7648
7649    interix[3-9]*)
7650      hardcode_direct=no
7651      hardcode_shlibpath_var=no
7652      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7653      export_dynamic_flag_spec='${wl}-E'
7654      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7655      # Instead, shared libraries are loaded at an image base (0x10000000 by
7656      # default) and relocated if they conflict, which is a slow very memory
7657      # consuming and fragmenting process.  To avoid this, we pick a random,
7658      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7659      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7660      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7661      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'
7662      ;;
7663
7664    gnu* | linux* | k*bsd*-gnu)
7665      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7666	tmp_addflag=
7667	case $cc_basename,$host_cpu in
7668	pgcc*)				# Portland Group C compiler
7669	  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'
7670	  tmp_addflag=' $pic_flag'
7671	  ;;
7672	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7673	  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'
7674	  tmp_addflag=' $pic_flag -Mnomain' ;;
7675	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7676	  tmp_addflag=' -i_dynamic' ;;
7677	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7678	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7679	ifc* | ifort*)			# Intel Fortran compiler
7680	  tmp_addflag=' -nofor_main' ;;
7681	esac
7682	case `$CC -V 2>&1 | sed 5q` in
7683	*Sun\ C*)			# Sun C 5.9
7684	  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'
7685	  tmp_sharedflag='-G' ;;
7686	*Sun\ F*)			# Sun Fortran 8.3
7687	  tmp_sharedflag='-G' ;;
7688	*)
7689	  tmp_sharedflag='-shared' ;;
7690	esac
7691	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7692
7693	if test $supports_anon_versioning = yes; then
7694	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7695  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7696  $echo "local: *; };" >> $output_objdir/$libname.ver~
7697	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7698	fi
7699      else
7700	ld_shlibs=no
7701      fi
7702      ;;
7703
7704    netbsd*)
7705      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7706	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7707	wlarc=
7708      else
7709	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7710	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7711      fi
7712      ;;
7713
7714    solaris*)
7715      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7716	ld_shlibs=no
7717	cat <<EOF 1>&2
7718
7719*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7720*** create shared libraries on Solaris systems.  Therefore, libtool
7721*** is disabling shared libraries support.  We urge you to upgrade GNU
7722*** binutils to release 2.9.1 or newer.  Another option is to modify
7723*** your PATH or compiler configuration so that the native linker is
7724*** used, and then restart.
7725
7726EOF
7727      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7728	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7729	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7730      else
7731	ld_shlibs=no
7732      fi
7733      ;;
7734
7735    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7736      case `$LD -v 2>&1` in
7737        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7738	ld_shlibs=no
7739	cat <<_LT_EOF 1>&2
7740
7741*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7742*** reliably create shared libraries on SCO systems.  Therefore, libtool
7743*** is disabling shared libraries support.  We urge you to upgrade GNU
7744*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7745*** your PATH or compiler configuration so that the native linker is
7746*** used, and then restart.
7747
7748_LT_EOF
7749	;;
7750	*)
7751	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7752	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7753	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7754	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7755	  else
7756	    ld_shlibs=no
7757	  fi
7758	;;
7759      esac
7760      ;;
7761
7762    sunos4*)
7763      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7764      wlarc=
7765      hardcode_direct=yes
7766      hardcode_shlibpath_var=no
7767      ;;
7768
7769    *)
7770      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7771	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7772	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7773      else
7774	ld_shlibs=no
7775      fi
7776      ;;
7777    esac
7778
7779    if test "$ld_shlibs" = no; then
7780      runpath_var=
7781      hardcode_libdir_flag_spec=
7782      export_dynamic_flag_spec=
7783      whole_archive_flag_spec=
7784    fi
7785  else
7786    # PORTME fill in a description of your system's linker (not GNU ld)
7787    case $host_os in
7788    aix3*)
7789      allow_undefined_flag=unsupported
7790      always_export_symbols=yes
7791      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'
7792      # Note: this linker hardcodes the directories in LIBPATH if there
7793      # are no directories specified by -L.
7794      hardcode_minus_L=yes
7795      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7796	# Neither direct hardcoding nor static linking is supported with a
7797	# broken collect2.
7798	hardcode_direct=unsupported
7799      fi
7800      ;;
7801
7802    aix4* | aix5*)
7803      if test "$host_cpu" = ia64; then
7804	# On IA64, the linker does run time linking by default, so we don't
7805	# have to do anything special.
7806	aix_use_runtimelinking=no
7807	exp_sym_flag='-Bexport'
7808	no_entry_flag=""
7809      else
7810	# If we're using GNU nm, then we don't want the "-C" option.
7811	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7812	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7813	  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'
7814	else
7815	  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'
7816	fi
7817	aix_use_runtimelinking=no
7818
7819	# Test if we are trying to use run time linking or normal
7820	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7821	# need to do runtime linking.
7822	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7823	  for ld_flag in $LDFLAGS; do
7824  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7825  	    aix_use_runtimelinking=yes
7826  	    break
7827  	  fi
7828	  done
7829	  ;;
7830	esac
7831
7832	exp_sym_flag='-bexport'
7833	no_entry_flag='-bnoentry'
7834      fi
7835
7836      # When large executables or shared objects are built, AIX ld can
7837      # have problems creating the table of contents.  If linking a library
7838      # or program results in "error TOC overflow" add -mminimal-toc to
7839      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7840      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7841
7842      archive_cmds=''
7843      hardcode_direct=yes
7844      hardcode_libdir_separator=':'
7845      link_all_deplibs=yes
7846
7847      if test "$GCC" = yes; then
7848	case $host_os in aix4.[012]|aix4.[012].*)
7849	# We only want to do this on AIX 4.2 and lower, the check
7850	# below for broken collect2 doesn't work under 4.3+
7851	  collect2name=`${CC} -print-prog-name=collect2`
7852	  if test -f "$collect2name" && \
7853  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7854	  then
7855  	  # We have reworked collect2
7856  	  :
7857	  else
7858  	  # We have old collect2
7859  	  hardcode_direct=unsupported
7860  	  # It fails to find uninstalled libraries when the uninstalled
7861  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7862  	  # to unsupported forces relinking
7863  	  hardcode_minus_L=yes
7864  	  hardcode_libdir_flag_spec='-L$libdir'
7865  	  hardcode_libdir_separator=
7866	  fi
7867	  ;;
7868	esac
7869	shared_flag='-shared'
7870	if test "$aix_use_runtimelinking" = yes; then
7871	  shared_flag="$shared_flag "'${wl}-G'
7872	fi
7873      else
7874	# not using gcc
7875	if test "$host_cpu" = ia64; then
7876  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7877  	# chokes on -Wl,-G. The following line is correct:
7878	  shared_flag='-G'
7879	else
7880	  if test "$aix_use_runtimelinking" = yes; then
7881	    shared_flag='${wl}-G'
7882	  else
7883	    shared_flag='${wl}-bM:SRE'
7884	  fi
7885	fi
7886      fi
7887
7888      # It seems that -bexpall does not export symbols beginning with
7889      # underscore (_), so it is better to generate a list of symbols to export.
7890      always_export_symbols=yes
7891      if test "$aix_use_runtimelinking" = yes; then
7892	# Warning - without using the other runtime loading flags (-brtl),
7893	# -berok will link without error, but may produce a broken library.
7894	allow_undefined_flag='-berok'
7895       # Determine the default libpath from the value encoded in an empty executable.
7896       cat >conftest.$ac_ext <<_ACEOF
7897/* confdefs.h.  */
7898_ACEOF
7899cat confdefs.h >>conftest.$ac_ext
7900cat >>conftest.$ac_ext <<_ACEOF
7901/* end confdefs.h.  */
7902
7903int
7904main ()
7905{
7906
7907  ;
7908  return 0;
7909}
7910_ACEOF
7911rm -f conftest.$ac_objext conftest$ac_exeext
7912if { (ac_try="$ac_link"
7913case "(($ac_try" in
7914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7915  *) ac_try_echo=$ac_try;;
7916esac
7917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7918  (eval "$ac_link") 2>conftest.er1
7919  ac_status=$?
7920  grep -v '^ *+' conftest.er1 >conftest.err
7921  rm -f conftest.er1
7922  cat conftest.err >&5
7923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924  (exit $ac_status); } && {
7925	 test -z "$ac_c_werror_flag" ||
7926	 test ! -s conftest.err
7927       } && test -s conftest$ac_exeext &&
7928       $as_test_x conftest$ac_exeext; then
7929
7930lt_aix_libpath_sed='
7931    /Import File Strings/,/^$/ {
7932	/^0/ {
7933	    s/^0  *\(.*\)$/\1/
7934	    p
7935	}
7936    }'
7937aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7938# Check for a 64-bit object if we didn't find anything.
7939if test -z "$aix_libpath"; then
7940  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7941fi
7942else
7943  echo "$as_me: failed program was:" >&5
7944sed 's/^/| /' conftest.$ac_ext >&5
7945
7946
7947fi
7948
7949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7950      conftest$ac_exeext conftest.$ac_ext
7951if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7952
7953       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7954	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"
7955       else
7956	if test "$host_cpu" = ia64; then
7957	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7958	  allow_undefined_flag="-z nodefs"
7959	  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"
7960	else
7961	 # Determine the default libpath from the value encoded in an empty executable.
7962	 cat >conftest.$ac_ext <<_ACEOF
7963/* confdefs.h.  */
7964_ACEOF
7965cat confdefs.h >>conftest.$ac_ext
7966cat >>conftest.$ac_ext <<_ACEOF
7967/* end confdefs.h.  */
7968
7969int
7970main ()
7971{
7972
7973  ;
7974  return 0;
7975}
7976_ACEOF
7977rm -f conftest.$ac_objext conftest$ac_exeext
7978if { (ac_try="$ac_link"
7979case "(($ac_try" in
7980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981  *) ac_try_echo=$ac_try;;
7982esac
7983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984  (eval "$ac_link") 2>conftest.er1
7985  ac_status=$?
7986  grep -v '^ *+' conftest.er1 >conftest.err
7987  rm -f conftest.er1
7988  cat conftest.err >&5
7989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990  (exit $ac_status); } && {
7991	 test -z "$ac_c_werror_flag" ||
7992	 test ! -s conftest.err
7993       } && test -s conftest$ac_exeext &&
7994       $as_test_x conftest$ac_exeext; then
7995
7996lt_aix_libpath_sed='
7997    /Import File Strings/,/^$/ {
7998	/^0/ {
7999	    s/^0  *\(.*\)$/\1/
8000	    p
8001	}
8002    }'
8003aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8004# Check for a 64-bit object if we didn't find anything.
8005if test -z "$aix_libpath"; then
8006  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8007fi
8008else
8009  echo "$as_me: failed program was:" >&5
8010sed 's/^/| /' conftest.$ac_ext >&5
8011
8012
8013fi
8014
8015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8016      conftest$ac_exeext conftest.$ac_ext
8017if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8018
8019	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8020	  # Warning - without using the other run time loading flags,
8021	  # -berok will link without error, but may produce a broken library.
8022	  no_undefined_flag=' ${wl}-bernotok'
8023	  allow_undefined_flag=' ${wl}-berok'
8024	  # Exported symbols can be pulled into shared objects from archives
8025	  whole_archive_flag_spec='$convenience'
8026	  archive_cmds_need_lc=yes
8027	  # This is similar to how AIX traditionally builds its shared libraries.
8028	  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'
8029	fi
8030      fi
8031      ;;
8032
8033    amigaos*)
8034      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)'
8035      hardcode_libdir_flag_spec='-L$libdir'
8036      hardcode_minus_L=yes
8037      # see comment about different semantics on the GNU ld section
8038      ld_shlibs=no
8039      ;;
8040
8041    bsdi[45]*)
8042      export_dynamic_flag_spec=-rdynamic
8043      ;;
8044
8045    cygwin* | mingw* | pw32*)
8046      # When not using gcc, we currently assume that we are using
8047      # Microsoft Visual C++.
8048      # hardcode_libdir_flag_spec is actually meaningless, as there is
8049      # no search path for DLLs.
8050      hardcode_libdir_flag_spec=' '
8051      allow_undefined_flag=unsupported
8052      # Tell ltmain to make .lib files, not .a files.
8053      libext=lib
8054      # Tell ltmain to make .dll files, not .so files.
8055      shrext_cmds=".dll"
8056      # FIXME: Setting linknames here is a bad hack.
8057      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8058      # The linker will automatically build a .lib file if we build a DLL.
8059      old_archive_From_new_cmds='true'
8060      # FIXME: Should let the user specify the lib program.
8061      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8062      fix_srcfile_path='`cygpath -w "$srcfile"`'
8063      enable_shared_with_static_runtimes=yes
8064      ;;
8065
8066    darwin* | rhapsody*)
8067      case $host_os in
8068        rhapsody* | darwin1.[012])
8069         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8070         ;;
8071       *) # Darwin 1.3 on
8072         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8073           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8074         else
8075           case ${MACOSX_DEPLOYMENT_TARGET} in
8076             10.[012])
8077               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8078               ;;
8079             10.*)
8080               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8081               ;;
8082           esac
8083         fi
8084         ;;
8085      esac
8086      archive_cmds_need_lc=no
8087      hardcode_direct=no
8088      hardcode_automatic=yes
8089      hardcode_shlibpath_var=unsupported
8090      whole_archive_flag_spec=''
8091      link_all_deplibs=yes
8092    if test "$GCC" = yes ; then
8093    	output_verbose_link_cmd='echo'
8094        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8095      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8096      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8097      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8098      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}'
8099    else
8100      case $cc_basename in
8101        xlc*)
8102         output_verbose_link_cmd='echo'
8103         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8104         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8105          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8106         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}'
8107          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}'
8108          ;;
8109       *)
8110         ld_shlibs=no
8111          ;;
8112      esac
8113    fi
8114      ;;
8115
8116    dgux*)
8117      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8118      hardcode_libdir_flag_spec='-L$libdir'
8119      hardcode_shlibpath_var=no
8120      ;;
8121
8122    freebsd1*)
8123      ld_shlibs=no
8124      ;;
8125
8126    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8127    # support.  Future versions do this automatically, but an explicit c++rt0.o
8128    # does not break anything, and helps significantly (at the cost of a little
8129    # extra space).
8130    freebsd2.2*)
8131      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8132      hardcode_libdir_flag_spec='-R$libdir'
8133      hardcode_direct=yes
8134      hardcode_shlibpath_var=no
8135      ;;
8136
8137    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8138    freebsd2*)
8139      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8140      hardcode_direct=yes
8141      hardcode_minus_L=yes
8142      hardcode_shlibpath_var=no
8143      ;;
8144
8145    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8146    freebsd* | dragonfly*)
8147      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8148      hardcode_libdir_flag_spec='-R$libdir'
8149      hardcode_direct=yes
8150      hardcode_shlibpath_var=no
8151      ;;
8152
8153    hpux9*)
8154      if test "$GCC" = yes; then
8155	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'
8156      else
8157	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'
8158      fi
8159      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8160      hardcode_libdir_separator=:
8161      hardcode_direct=yes
8162
8163      # hardcode_minus_L: Not really in the search PATH,
8164      # but as the default location of the library.
8165      hardcode_minus_L=yes
8166      export_dynamic_flag_spec='${wl}-E'
8167      ;;
8168
8169    hpux10*)
8170      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8171	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8172      else
8173	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8174      fi
8175      if test "$with_gnu_ld" = no; then
8176	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8177	hardcode_libdir_separator=:
8178
8179	hardcode_direct=yes
8180	export_dynamic_flag_spec='${wl}-E'
8181
8182	# hardcode_minus_L: Not really in the search PATH,
8183	# but as the default location of the library.
8184	hardcode_minus_L=yes
8185      fi
8186      ;;
8187
8188    hpux11*)
8189      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8190	case $host_cpu in
8191	hppa*64*)
8192	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8193	  ;;
8194	ia64*)
8195	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8196	  ;;
8197	*)
8198	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8199	  ;;
8200	esac
8201      else
8202	case $host_cpu in
8203	hppa*64*)
8204	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8205	  ;;
8206	ia64*)
8207	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8208	  ;;
8209	*)
8210	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8211	  ;;
8212	esac
8213      fi
8214      if test "$with_gnu_ld" = no; then
8215	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8216	hardcode_libdir_separator=:
8217
8218	case $host_cpu in
8219	hppa*64*|ia64*)
8220	  hardcode_libdir_flag_spec_ld='+b $libdir'
8221	  hardcode_direct=no
8222	  hardcode_shlibpath_var=no
8223	  ;;
8224	*)
8225	  hardcode_direct=yes
8226	  export_dynamic_flag_spec='${wl}-E'
8227
8228	  # hardcode_minus_L: Not really in the search PATH,
8229	  # but as the default location of the library.
8230	  hardcode_minus_L=yes
8231	  ;;
8232	esac
8233      fi
8234      ;;
8235
8236    irix5* | irix6* | nonstopux*)
8237      if test "$GCC" = yes; then
8238	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'
8239      else
8240	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'
8241	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8242      fi
8243      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8244      hardcode_libdir_separator=:
8245      link_all_deplibs=yes
8246      ;;
8247
8248    netbsd*)
8249      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8250	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8251      else
8252	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8253      fi
8254      hardcode_libdir_flag_spec='-R$libdir'
8255      hardcode_direct=yes
8256      hardcode_shlibpath_var=no
8257      ;;
8258
8259    newsos6)
8260      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8261      hardcode_direct=yes
8262      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8263      hardcode_libdir_separator=:
8264      hardcode_shlibpath_var=no
8265      ;;
8266
8267    openbsd*)
8268      if test -f /usr/libexec/ld.so; then
8269	hardcode_direct=yes
8270	hardcode_shlibpath_var=no
8271	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8272	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8273	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8274	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8275	  export_dynamic_flag_spec='${wl}-E'
8276	else
8277	  case $host_os in
8278	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8279	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8280	     hardcode_libdir_flag_spec='-R$libdir'
8281	     ;;
8282	   *)
8283	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8284	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8285	     ;;
8286	  esac
8287        fi
8288      else
8289	ld_shlibs=no
8290      fi
8291      ;;
8292
8293    os2*)
8294      hardcode_libdir_flag_spec='-L$libdir'
8295      hardcode_minus_L=yes
8296      allow_undefined_flag=unsupported
8297      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'
8298      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8299      ;;
8300
8301    osf3*)
8302      if test "$GCC" = yes; then
8303	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8304	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'
8305      else
8306	allow_undefined_flag=' -expect_unresolved \*'
8307	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'
8308      fi
8309      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8310      hardcode_libdir_separator=:
8311      ;;
8312
8313    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8314      if test "$GCC" = yes; then
8315	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8316	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'
8317	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8318      else
8319	allow_undefined_flag=' -expect_unresolved \*'
8320	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'
8321	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8322	$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'
8323
8324	# Both c and cxx compiler support -rpath directly
8325	hardcode_libdir_flag_spec='-rpath $libdir'
8326      fi
8327      hardcode_libdir_separator=:
8328      ;;
8329
8330    solaris*)
8331      no_undefined_flag=' -z text'
8332      if test "$GCC" = yes; then
8333	wlarc='${wl}'
8334	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8335	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8336	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8337      else
8338	wlarc=''
8339	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8340	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8341  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8342      fi
8343      hardcode_libdir_flag_spec='-R$libdir'
8344      hardcode_shlibpath_var=no
8345      case $host_os in
8346      solaris2.[0-5] | solaris2.[0-5].*) ;;
8347      *)
8348	# The compiler driver will combine and reorder linker options,
8349	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8350	# but is careful enough not to reorder.
8351 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8352	if test "$GCC" = yes; then
8353	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8354	else
8355	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8356	fi
8357	;;
8358      esac
8359      link_all_deplibs=yes
8360      ;;
8361
8362    sunos4*)
8363      if test "x$host_vendor" = xsequent; then
8364	# Use $CC to link under sequent, because it throws in some extra .o
8365	# files that make .init and .fini sections work.
8366	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8367      else
8368	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8369      fi
8370      hardcode_libdir_flag_spec='-L$libdir'
8371      hardcode_direct=yes
8372      hardcode_minus_L=yes
8373      hardcode_shlibpath_var=no
8374      ;;
8375
8376    sysv4)
8377      case $host_vendor in
8378	sni)
8379	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8380	  hardcode_direct=yes # is this really true???
8381	;;
8382	siemens)
8383	  ## LD is ld it makes a PLAMLIB
8384	  ## CC just makes a GrossModule.
8385	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8386	  reload_cmds='$CC -r -o $output$reload_objs'
8387	  hardcode_direct=no
8388        ;;
8389	motorola)
8390	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8391	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8392	;;
8393      esac
8394      runpath_var='LD_RUN_PATH'
8395      hardcode_shlibpath_var=no
8396      ;;
8397
8398    sysv4.3*)
8399      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8400      hardcode_shlibpath_var=no
8401      export_dynamic_flag_spec='-Bexport'
8402      ;;
8403
8404    sysv4*MP*)
8405      if test -d /usr/nec; then
8406	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8407	hardcode_shlibpath_var=no
8408	runpath_var=LD_RUN_PATH
8409	hardcode_runpath_var=yes
8410	ld_shlibs=yes
8411      fi
8412      ;;
8413
8414    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8415      no_undefined_flag='${wl}-z,text'
8416      archive_cmds_need_lc=no
8417      hardcode_shlibpath_var=no
8418      runpath_var='LD_RUN_PATH'
8419
8420      if test "$GCC" = yes; then
8421	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8422	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8423      else
8424	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8425	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8426      fi
8427      ;;
8428
8429    sysv5* | sco3.2v5* | sco5v6*)
8430      # Note: We can NOT use -z defs as we might desire, because we do not
8431      # link with -lc, and that would cause any symbols used from libc to
8432      # always be unresolved, which means just about no library would
8433      # ever link correctly.  If we're not using GNU ld we use -z text
8434      # though, which does catch some bad symbols but isn't as heavy-handed
8435      # as -z defs.
8436      no_undefined_flag='${wl}-z,text'
8437      allow_undefined_flag='${wl}-z,nodefs'
8438      archive_cmds_need_lc=no
8439      hardcode_shlibpath_var=no
8440      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8441      hardcode_libdir_separator=':'
8442      link_all_deplibs=yes
8443      export_dynamic_flag_spec='${wl}-Bexport'
8444      runpath_var='LD_RUN_PATH'
8445
8446      if test "$GCC" = yes; then
8447	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8448	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8449      else
8450	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8451	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8452      fi
8453      ;;
8454
8455    uts4*)
8456      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8457      hardcode_libdir_flag_spec='-L$libdir'
8458      hardcode_shlibpath_var=no
8459      ;;
8460
8461    *)
8462      ld_shlibs=no
8463      ;;
8464    esac
8465  fi
8466
8467{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8468echo "${ECHO_T}$ld_shlibs" >&6; }
8469test "$ld_shlibs" = no && can_build_shared=no
8470
8471#
8472# Do we need to explicitly link libc?
8473#
8474case "x$archive_cmds_need_lc" in
8475x|xyes)
8476  # Assume -lc should be added
8477  archive_cmds_need_lc=yes
8478
8479  if test "$enable_shared" = yes && test "$GCC" = yes; then
8480    case $archive_cmds in
8481    *'~'*)
8482      # FIXME: we may have to deal with multi-command sequences.
8483      ;;
8484    '$CC '*)
8485      # Test whether the compiler implicitly links with -lc since on some
8486      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8487      # to ld, don't add -lc before -lgcc.
8488      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8489echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8490      $rm conftest*
8491      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8492
8493      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8494  (eval $ac_compile) 2>&5
8495  ac_status=$?
8496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497  (exit $ac_status); } 2>conftest.err; then
8498        soname=conftest
8499        lib=conftest
8500        libobjs=conftest.$ac_objext
8501        deplibs=
8502        wl=$lt_prog_compiler_wl
8503	pic_flag=$lt_prog_compiler_pic
8504        compiler_flags=-v
8505        linker_flags=-v
8506        verstring=
8507        output_objdir=.
8508        libname=conftest
8509        lt_save_allow_undefined_flag=$allow_undefined_flag
8510        allow_undefined_flag=
8511        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8512  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8513  ac_status=$?
8514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515  (exit $ac_status); }
8516        then
8517	  archive_cmds_need_lc=no
8518        else
8519	  archive_cmds_need_lc=yes
8520        fi
8521        allow_undefined_flag=$lt_save_allow_undefined_flag
8522      else
8523        cat conftest.err 1>&5
8524      fi
8525      $rm conftest*
8526      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8527echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8528      ;;
8529    esac
8530  fi
8531  ;;
8532esac
8533
8534{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8535echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8536library_names_spec=
8537libname_spec='lib$name'
8538soname_spec=
8539shrext_cmds=".so"
8540postinstall_cmds=
8541postuninstall_cmds=
8542finish_cmds=
8543finish_eval=
8544shlibpath_var=
8545shlibpath_overrides_runpath=unknown
8546version_type=none
8547dynamic_linker="$host_os ld.so"
8548sys_lib_dlsearch_path_spec="/lib /usr/lib"
8549
8550if test "$GCC" = yes; then
8551  case $host_os in
8552    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8553    *) lt_awk_arg="/^libraries:/" ;;
8554  esac
8555  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8556  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8557    # if the path contains ";" then we assume it to be the separator
8558    # otherwise default to the standard path separator (i.e. ":") - it is
8559    # assumed that no part of a normal pathname contains ";" but that should
8560    # okay in the real world where ";" in dirpaths is itself problematic.
8561    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8562  else
8563    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8564  fi
8565  # Ok, now we have the path, separated by spaces, we can step through it
8566  # and add multilib dir if necessary.
8567  lt_tmp_lt_search_path_spec=
8568  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8569  for lt_sys_path in $lt_search_path_spec; do
8570    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8571      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8572    else
8573      test -d "$lt_sys_path" && \
8574	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8575    fi
8576  done
8577  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8578BEGIN {RS=" "; FS="/|\n";} {
8579  lt_foo="";
8580  lt_count=0;
8581  for (lt_i = NF; lt_i > 0; lt_i--) {
8582    if ($lt_i != "" && $lt_i != ".") {
8583      if ($lt_i == "..") {
8584        lt_count++;
8585      } else {
8586        if (lt_count == 0) {
8587          lt_foo="/" $lt_i lt_foo;
8588        } else {
8589          lt_count--;
8590        }
8591      }
8592    }
8593  }
8594  if (lt_foo != "") { lt_freq[lt_foo]++; }
8595  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8596}'`
8597  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8598else
8599  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8600fi
8601need_lib_prefix=unknown
8602hardcode_into_libs=no
8603
8604# when you set need_version to no, make sure it does not cause -set_version
8605# flags to be left without arguments
8606need_version=unknown
8607
8608case $host_os in
8609aix3*)
8610  version_type=linux
8611  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8612  shlibpath_var=LIBPATH
8613
8614  # AIX 3 has no versioning support, so we append a major version to the name.
8615  soname_spec='${libname}${release}${shared_ext}$major'
8616  ;;
8617
8618aix4* | aix5*)
8619  version_type=linux
8620  need_lib_prefix=no
8621  need_version=no
8622  hardcode_into_libs=yes
8623  if test "$host_cpu" = ia64; then
8624    # AIX 5 supports IA64
8625    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8626    shlibpath_var=LD_LIBRARY_PATH
8627  else
8628    # With GCC up to 2.95.x, collect2 would create an import file
8629    # for dependence libraries.  The import file would start with
8630    # the line `#! .'.  This would cause the generated library to
8631    # depend on `.', always an invalid library.  This was fixed in
8632    # development snapshots of GCC prior to 3.0.
8633    case $host_os in
8634      aix4 | aix4.[01] | aix4.[01].*)
8635      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8636	   echo ' yes '
8637	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8638	:
8639      else
8640	can_build_shared=no
8641      fi
8642      ;;
8643    esac
8644    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8645    # soname into executable. Probably we can add versioning support to
8646    # collect2, so additional links can be useful in future.
8647    if test "$aix_use_runtimelinking" = yes; then
8648      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8649      # instead of lib<name>.a to let people know that these are not
8650      # typical AIX shared libraries.
8651      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8652    else
8653      # We preserve .a as extension for shared libraries through AIX4.2
8654      # and later when we are not doing run time linking.
8655      library_names_spec='${libname}${release}.a $libname.a'
8656      soname_spec='${libname}${release}${shared_ext}$major'
8657    fi
8658    shlibpath_var=LIBPATH
8659  fi
8660  ;;
8661
8662amigaos*)
8663  library_names_spec='$libname.ixlibrary $libname.a'
8664  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8665  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'
8666  ;;
8667
8668beos*)
8669  library_names_spec='${libname}${shared_ext}'
8670  dynamic_linker="$host_os ld.so"
8671  shlibpath_var=LIBRARY_PATH
8672  ;;
8673
8674bsdi[45]*)
8675  version_type=linux
8676  need_version=no
8677  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8678  soname_spec='${libname}${release}${shared_ext}$major'
8679  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8680  shlibpath_var=LD_LIBRARY_PATH
8681  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8682  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8683  # the default ld.so.conf also contains /usr/contrib/lib and
8684  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8685  # libtool to hard-code these into programs
8686  ;;
8687
8688cygwin* | mingw* | pw32*)
8689  version_type=windows
8690  shrext_cmds=".dll"
8691  need_version=no
8692  need_lib_prefix=no
8693
8694  case $GCC,$host_os in
8695  yes,cygwin* | yes,mingw* | yes,pw32*)
8696    library_names_spec='$libname.dll.a'
8697    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8698    postinstall_cmds='base_file=`basename \${file}`~
8699      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8700      dldir=$destdir/`dirname \$dlpath`~
8701      test -d \$dldir || mkdir -p \$dldir~
8702      $install_prog $dir/$dlname \$dldir/$dlname~
8703      chmod a+x \$dldir/$dlname'
8704    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8705      dlpath=$dir/\$dldll~
8706       $rm \$dlpath'
8707    shlibpath_overrides_runpath=yes
8708
8709    case $host_os in
8710    cygwin*)
8711      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8712      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8713      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8714      ;;
8715    mingw*)
8716      # MinGW DLLs use traditional 'lib' prefix
8717      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8718      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8719      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8720        # It is most probably a Windows format PATH printed by
8721        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8722        # path with ; separators, and with drive letters. We can handle the
8723        # drive letters (cygwin fileutils understands them), so leave them,
8724        # especially as we might pass files found there to a mingw objdump,
8725        # which wouldn't understand a cygwinified path. Ahh.
8726        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8727      else
8728        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8729      fi
8730      ;;
8731    pw32*)
8732      # pw32 DLLs use 'pw' prefix rather than 'lib'
8733      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8734      ;;
8735    esac
8736    ;;
8737
8738  *)
8739    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8740    ;;
8741  esac
8742  dynamic_linker='Win32 ld.exe'
8743  # FIXME: first we should search . and the directory the executable is in
8744  shlibpath_var=PATH
8745  ;;
8746
8747darwin* | rhapsody*)
8748  dynamic_linker="$host_os dyld"
8749  version_type=darwin
8750  need_lib_prefix=no
8751  need_version=no
8752  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8753  soname_spec='${libname}${release}${major}$shared_ext'
8754  shlibpath_overrides_runpath=yes
8755  shlibpath_var=DYLD_LIBRARY_PATH
8756  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8757
8758  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8759  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8760  ;;
8761
8762dgux*)
8763  version_type=linux
8764  need_lib_prefix=no
8765  need_version=no
8766  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8767  soname_spec='${libname}${release}${shared_ext}$major'
8768  shlibpath_var=LD_LIBRARY_PATH
8769  ;;
8770
8771freebsd1*)
8772  dynamic_linker=no
8773  ;;
8774
8775freebsd* | dragonfly*)
8776  # DragonFly does not have aout.  When/if they implement a new
8777  # versioning mechanism, adjust this.
8778  if test -x /usr/bin/objformat; then
8779    objformat=`/usr/bin/objformat`
8780  else
8781    case $host_os in
8782    freebsd[123]*) objformat=aout ;;
8783    *) objformat=elf ;;
8784    esac
8785  fi
8786  version_type=freebsd-$objformat
8787  case $version_type in
8788    freebsd-elf*)
8789      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8790      need_version=no
8791      need_lib_prefix=no
8792      ;;
8793    freebsd-*)
8794      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8795      need_version=yes
8796      ;;
8797  esac
8798  shlibpath_var=LD_LIBRARY_PATH
8799  case $host_os in
8800  freebsd2*)
8801    shlibpath_overrides_runpath=yes
8802    ;;
8803  freebsd3.[01]* | freebsdelf3.[01]*)
8804    shlibpath_overrides_runpath=yes
8805    hardcode_into_libs=yes
8806    ;;
8807  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8808  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8809    shlibpath_overrides_runpath=no
8810    hardcode_into_libs=yes
8811    ;;
8812  *) # from 4.6 on, and DragonFly
8813    shlibpath_overrides_runpath=yes
8814    hardcode_into_libs=yes
8815    ;;
8816  esac
8817  ;;
8818
8819gnu*)
8820  version_type=linux
8821  need_lib_prefix=no
8822  need_version=no
8823  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8824  soname_spec='${libname}${release}${shared_ext}$major'
8825  shlibpath_var=LD_LIBRARY_PATH
8826  hardcode_into_libs=yes
8827  ;;
8828
8829hpux9* | hpux10* | hpux11*)
8830  # Give a soname corresponding to the major version so that dld.sl refuses to
8831  # link against other versions.
8832  version_type=sunos
8833  need_lib_prefix=no
8834  need_version=no
8835  case $host_cpu in
8836  ia64*)
8837    shrext_cmds='.so'
8838    hardcode_into_libs=yes
8839    dynamic_linker="$host_os dld.so"
8840    shlibpath_var=LD_LIBRARY_PATH
8841    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8842    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8843    soname_spec='${libname}${release}${shared_ext}$major'
8844    if test "X$HPUX_IA64_MODE" = X32; then
8845      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8846    else
8847      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8848    fi
8849    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8850    ;;
8851   hppa*64*)
8852     shrext_cmds='.sl'
8853     hardcode_into_libs=yes
8854     dynamic_linker="$host_os dld.sl"
8855     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8856     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8857     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8858     soname_spec='${libname}${release}${shared_ext}$major'
8859     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8860     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8861     ;;
8862   *)
8863    shrext_cmds='.sl'
8864    dynamic_linker="$host_os dld.sl"
8865    shlibpath_var=SHLIB_PATH
8866    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8867    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8868    soname_spec='${libname}${release}${shared_ext}$major'
8869    ;;
8870  esac
8871  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8872  postinstall_cmds='chmod 555 $lib'
8873  ;;
8874
8875interix[3-9]*)
8876  version_type=linux
8877  need_lib_prefix=no
8878  need_version=no
8879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8880  soname_spec='${libname}${release}${shared_ext}$major'
8881  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8882  shlibpath_var=LD_LIBRARY_PATH
8883  shlibpath_overrides_runpath=no
8884  hardcode_into_libs=yes
8885  ;;
8886
8887irix5* | irix6* | nonstopux*)
8888  case $host_os in
8889    nonstopux*) version_type=nonstopux ;;
8890    *)
8891	if test "$lt_cv_prog_gnu_ld" = yes; then
8892		version_type=linux
8893	else
8894		version_type=irix
8895	fi ;;
8896  esac
8897  need_lib_prefix=no
8898  need_version=no
8899  soname_spec='${libname}${release}${shared_ext}$major'
8900  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8901  case $host_os in
8902  irix5* | nonstopux*)
8903    libsuff= shlibsuff=
8904    ;;
8905  *)
8906    case $LD in # libtool.m4 will add one of these switches to LD
8907    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8908      libsuff= shlibsuff= libmagic=32-bit;;
8909    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8910      libsuff=32 shlibsuff=N32 libmagic=N32;;
8911    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8912      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8913    *) libsuff= shlibsuff= libmagic=never-match;;
8914    esac
8915    ;;
8916  esac
8917  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8918  shlibpath_overrides_runpath=no
8919  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8920  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8921  hardcode_into_libs=yes
8922  ;;
8923
8924# No shared lib support for Linux oldld, aout, or coff.
8925linux*oldld* | linux*aout* | linux*coff*)
8926  dynamic_linker=no
8927  ;;
8928
8929# This must be Linux ELF.
8930linux* | k*bsd*-gnu)
8931  version_type=linux
8932  need_lib_prefix=no
8933  need_version=no
8934  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8935  soname_spec='${libname}${release}${shared_ext}$major'
8936  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8937  shlibpath_var=LD_LIBRARY_PATH
8938  shlibpath_overrides_runpath=no
8939  # This implies no fast_install, which is unacceptable.
8940  # Some rework will be needed to allow for fast_install
8941  # before this can be enabled.
8942  hardcode_into_libs=yes
8943
8944  # Append ld.so.conf contents to the search path
8945  if test -f /etc/ld.so.conf; then
8946    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' ' '`
8947    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8948  fi
8949
8950  # We used to test for /lib/ld.so.1 and disable shared libraries on
8951  # powerpc, because MkLinux only supported shared libraries with the
8952  # GNU dynamic linker.  Since this was broken with cross compilers,
8953  # most powerpc-linux boxes support dynamic linking these days and
8954  # people can always --disable-shared, the test was removed, and we
8955  # assume the GNU/Linux dynamic linker is in use.
8956  dynamic_linker='GNU/Linux ld.so'
8957  ;;
8958
8959netbsd*)
8960  version_type=sunos
8961  need_lib_prefix=no
8962  need_version=no
8963  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8964    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8965    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8966    dynamic_linker='NetBSD (a.out) ld.so'
8967  else
8968    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8969    soname_spec='${libname}${release}${shared_ext}$major'
8970    dynamic_linker='NetBSD ld.elf_so'
8971  fi
8972  shlibpath_var=LD_LIBRARY_PATH
8973  shlibpath_overrides_runpath=yes
8974  hardcode_into_libs=yes
8975  ;;
8976
8977newsos6)
8978  version_type=linux
8979  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980  shlibpath_var=LD_LIBRARY_PATH
8981  shlibpath_overrides_runpath=yes
8982  ;;
8983
8984nto-qnx*)
8985  version_type=linux
8986  need_lib_prefix=no
8987  need_version=no
8988  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8989  soname_spec='${libname}${release}${shared_ext}$major'
8990  shlibpath_var=LD_LIBRARY_PATH
8991  shlibpath_overrides_runpath=yes
8992  ;;
8993
8994openbsd*)
8995  version_type=sunos
8996  sys_lib_dlsearch_path_spec="/usr/lib"
8997  need_lib_prefix=no
8998  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8999  case $host_os in
9000    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9001    *)                         need_version=no  ;;
9002  esac
9003  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9004  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9005  shlibpath_var=LD_LIBRARY_PATH
9006  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9007    case $host_os in
9008      openbsd2.[89] | openbsd2.[89].*)
9009	shlibpath_overrides_runpath=no
9010	;;
9011      *)
9012	shlibpath_overrides_runpath=yes
9013	;;
9014      esac
9015  else
9016    shlibpath_overrides_runpath=yes
9017  fi
9018  ;;
9019
9020os2*)
9021  libname_spec='$name'
9022  shrext_cmds=".dll"
9023  need_lib_prefix=no
9024  library_names_spec='$libname${shared_ext} $libname.a'
9025  dynamic_linker='OS/2 ld.exe'
9026  shlibpath_var=LIBPATH
9027  ;;
9028
9029osf3* | osf4* | osf5*)
9030  version_type=osf
9031  need_lib_prefix=no
9032  need_version=no
9033  soname_spec='${libname}${release}${shared_ext}$major'
9034  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9035  shlibpath_var=LD_LIBRARY_PATH
9036  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9037  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9038  ;;
9039
9040rdos*)
9041  dynamic_linker=no
9042  ;;
9043
9044solaris*)
9045  version_type=linux
9046  need_lib_prefix=no
9047  need_version=no
9048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9049  soname_spec='${libname}${release}${shared_ext}$major'
9050  shlibpath_var=LD_LIBRARY_PATH
9051  shlibpath_overrides_runpath=yes
9052  hardcode_into_libs=yes
9053  # ldd complains unless libraries are executable
9054  postinstall_cmds='chmod +x $lib'
9055  ;;
9056
9057sunos4*)
9058  version_type=sunos
9059  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9060  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9061  shlibpath_var=LD_LIBRARY_PATH
9062  shlibpath_overrides_runpath=yes
9063  if test "$with_gnu_ld" = yes; then
9064    need_lib_prefix=no
9065  fi
9066  need_version=yes
9067  ;;
9068
9069sysv4 | sysv4.3*)
9070  version_type=linux
9071  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9072  soname_spec='${libname}${release}${shared_ext}$major'
9073  shlibpath_var=LD_LIBRARY_PATH
9074  case $host_vendor in
9075    sni)
9076      shlibpath_overrides_runpath=no
9077      need_lib_prefix=no
9078      export_dynamic_flag_spec='${wl}-Blargedynsym'
9079      runpath_var=LD_RUN_PATH
9080      ;;
9081    siemens)
9082      need_lib_prefix=no
9083      ;;
9084    motorola)
9085      need_lib_prefix=no
9086      need_version=no
9087      shlibpath_overrides_runpath=no
9088      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9089      ;;
9090  esac
9091  ;;
9092
9093sysv4*MP*)
9094  if test -d /usr/nec ;then
9095    version_type=linux
9096    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9097    soname_spec='$libname${shared_ext}.$major'
9098    shlibpath_var=LD_LIBRARY_PATH
9099  fi
9100  ;;
9101
9102sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9103  version_type=freebsd-elf
9104  need_lib_prefix=no
9105  need_version=no
9106  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9107  soname_spec='${libname}${release}${shared_ext}$major'
9108  shlibpath_var=LD_LIBRARY_PATH
9109  hardcode_into_libs=yes
9110  if test "$with_gnu_ld" = yes; then
9111    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9112    shlibpath_overrides_runpath=no
9113  else
9114    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9115    shlibpath_overrides_runpath=yes
9116    case $host_os in
9117      sco3.2v5*)
9118        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9119	;;
9120    esac
9121  fi
9122  sys_lib_dlsearch_path_spec='/usr/lib'
9123  ;;
9124
9125uts4*)
9126  version_type=linux
9127  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9128  soname_spec='${libname}${release}${shared_ext}$major'
9129  shlibpath_var=LD_LIBRARY_PATH
9130  ;;
9131
9132*)
9133  dynamic_linker=no
9134  ;;
9135esac
9136{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9137echo "${ECHO_T}$dynamic_linker" >&6; }
9138test "$dynamic_linker" = no && can_build_shared=no
9139
9140variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9141if test "$GCC" = yes; then
9142  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9143fi
9144
9145{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9146echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9147hardcode_action=
9148if test -n "$hardcode_libdir_flag_spec" || \
9149   test -n "$runpath_var" || \
9150   test "X$hardcode_automatic" = "Xyes" ; then
9151
9152  # We can hardcode non-existant directories.
9153  if test "$hardcode_direct" != no &&
9154     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9155     # have to relink, otherwise we might link with an installed library
9156     # when we should be linking with a yet-to-be-installed one
9157     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9158     test "$hardcode_minus_L" != no; then
9159    # Linking always hardcodes the temporary library directory.
9160    hardcode_action=relink
9161  else
9162    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9163    hardcode_action=immediate
9164  fi
9165else
9166  # We cannot hardcode anything, or else we can only hardcode existing
9167  # directories.
9168  hardcode_action=unsupported
9169fi
9170{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9171echo "${ECHO_T}$hardcode_action" >&6; }
9172
9173if test "$hardcode_action" = relink; then
9174  # Fast installation is not supported
9175  enable_fast_install=no
9176elif test "$shlibpath_overrides_runpath" = yes ||
9177     test "$enable_shared" = no; then
9178  # Fast installation is not necessary
9179  enable_fast_install=needless
9180fi
9181
9182striplib=
9183old_striplib=
9184{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9185echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9186if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9187  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9188  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9189  { echo "$as_me:$LINENO: result: yes" >&5
9190echo "${ECHO_T}yes" >&6; }
9191else
9192# FIXME - insert some real tests, host_os isn't really good enough
9193  case $host_os in
9194   darwin*)
9195       if test -n "$STRIP" ; then
9196         striplib="$STRIP -x"
9197         old_striplib="$STRIP -S"
9198         { echo "$as_me:$LINENO: result: yes" >&5
9199echo "${ECHO_T}yes" >&6; }
9200       else
9201  { echo "$as_me:$LINENO: result: no" >&5
9202echo "${ECHO_T}no" >&6; }
9203fi
9204       ;;
9205   *)
9206  { echo "$as_me:$LINENO: result: no" >&5
9207echo "${ECHO_T}no" >&6; }
9208    ;;
9209  esac
9210fi
9211
9212if test "x$enable_dlopen" != xyes; then
9213  enable_dlopen=unknown
9214  enable_dlopen_self=unknown
9215  enable_dlopen_self_static=unknown
9216else
9217  lt_cv_dlopen=no
9218  lt_cv_dlopen_libs=
9219
9220  case $host_os in
9221  beos*)
9222    lt_cv_dlopen="load_add_on"
9223    lt_cv_dlopen_libs=
9224    lt_cv_dlopen_self=yes
9225    ;;
9226
9227  mingw* | pw32*)
9228    lt_cv_dlopen="LoadLibrary"
9229    lt_cv_dlopen_libs=
9230   ;;
9231
9232  cygwin*)
9233    lt_cv_dlopen="dlopen"
9234    lt_cv_dlopen_libs=
9235   ;;
9236
9237  darwin*)
9238  # if libdl is installed we need to link against it
9239    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9240echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9241if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9242  echo $ECHO_N "(cached) $ECHO_C" >&6
9243else
9244  ac_check_lib_save_LIBS=$LIBS
9245LIBS="-ldl  $LIBS"
9246cat >conftest.$ac_ext <<_ACEOF
9247/* confdefs.h.  */
9248_ACEOF
9249cat confdefs.h >>conftest.$ac_ext
9250cat >>conftest.$ac_ext <<_ACEOF
9251/* end confdefs.h.  */
9252
9253/* Override any GCC internal prototype to avoid an error.
9254   Use char because int might match the return type of a GCC
9255   builtin and then its argument prototype would still apply.  */
9256#ifdef __cplusplus
9257extern "C"
9258#endif
9259char dlopen ();
9260int
9261main ()
9262{
9263return dlopen ();
9264  ;
9265  return 0;
9266}
9267_ACEOF
9268rm -f conftest.$ac_objext conftest$ac_exeext
9269if { (ac_try="$ac_link"
9270case "(($ac_try" in
9271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272  *) ac_try_echo=$ac_try;;
9273esac
9274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275  (eval "$ac_link") 2>conftest.er1
9276  ac_status=$?
9277  grep -v '^ *+' conftest.er1 >conftest.err
9278  rm -f conftest.er1
9279  cat conftest.err >&5
9280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281  (exit $ac_status); } && {
9282	 test -z "$ac_c_werror_flag" ||
9283	 test ! -s conftest.err
9284       } && test -s conftest$ac_exeext &&
9285       $as_test_x conftest$ac_exeext; then
9286  ac_cv_lib_dl_dlopen=yes
9287else
9288  echo "$as_me: failed program was:" >&5
9289sed 's/^/| /' conftest.$ac_ext >&5
9290
9291	ac_cv_lib_dl_dlopen=no
9292fi
9293
9294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9295      conftest$ac_exeext conftest.$ac_ext
9296LIBS=$ac_check_lib_save_LIBS
9297fi
9298{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9299echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9300if test $ac_cv_lib_dl_dlopen = yes; then
9301  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9302else
9303
9304    lt_cv_dlopen="dyld"
9305    lt_cv_dlopen_libs=
9306    lt_cv_dlopen_self=yes
9307
9308fi
9309
9310   ;;
9311
9312  *)
9313    { echo "$as_me:$LINENO: checking for shl_load" >&5
9314echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9315if test "${ac_cv_func_shl_load+set}" = set; then
9316  echo $ECHO_N "(cached) $ECHO_C" >&6
9317else
9318  cat >conftest.$ac_ext <<_ACEOF
9319/* confdefs.h.  */
9320_ACEOF
9321cat confdefs.h >>conftest.$ac_ext
9322cat >>conftest.$ac_ext <<_ACEOF
9323/* end confdefs.h.  */
9324/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9325   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9326#define shl_load innocuous_shl_load
9327
9328/* System header to define __stub macros and hopefully few prototypes,
9329    which can conflict with char shl_load (); below.
9330    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9331    <limits.h> exists even on freestanding compilers.  */
9332
9333#ifdef __STDC__
9334# include <limits.h>
9335#else
9336# include <assert.h>
9337#endif
9338
9339#undef shl_load
9340
9341/* Override any GCC internal prototype to avoid an error.
9342   Use char because int might match the return type of a GCC
9343   builtin and then its argument prototype would still apply.  */
9344#ifdef __cplusplus
9345extern "C"
9346#endif
9347char shl_load ();
9348/* The GNU C library defines this for functions which it implements
9349    to always fail with ENOSYS.  Some functions are actually named
9350    something starting with __ and the normal name is an alias.  */
9351#if defined __stub_shl_load || defined __stub___shl_load
9352choke me
9353#endif
9354
9355int
9356main ()
9357{
9358return shl_load ();
9359  ;
9360  return 0;
9361}
9362_ACEOF
9363rm -f conftest.$ac_objext conftest$ac_exeext
9364if { (ac_try="$ac_link"
9365case "(($ac_try" in
9366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9367  *) ac_try_echo=$ac_try;;
9368esac
9369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9370  (eval "$ac_link") 2>conftest.er1
9371  ac_status=$?
9372  grep -v '^ *+' conftest.er1 >conftest.err
9373  rm -f conftest.er1
9374  cat conftest.err >&5
9375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376  (exit $ac_status); } && {
9377	 test -z "$ac_c_werror_flag" ||
9378	 test ! -s conftest.err
9379       } && test -s conftest$ac_exeext &&
9380       $as_test_x conftest$ac_exeext; then
9381  ac_cv_func_shl_load=yes
9382else
9383  echo "$as_me: failed program was:" >&5
9384sed 's/^/| /' conftest.$ac_ext >&5
9385
9386	ac_cv_func_shl_load=no
9387fi
9388
9389rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9390      conftest$ac_exeext conftest.$ac_ext
9391fi
9392{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9393echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9394if test $ac_cv_func_shl_load = yes; then
9395  lt_cv_dlopen="shl_load"
9396else
9397  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9398echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9399if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9400  echo $ECHO_N "(cached) $ECHO_C" >&6
9401else
9402  ac_check_lib_save_LIBS=$LIBS
9403LIBS="-ldld  $LIBS"
9404cat >conftest.$ac_ext <<_ACEOF
9405/* confdefs.h.  */
9406_ACEOF
9407cat confdefs.h >>conftest.$ac_ext
9408cat >>conftest.$ac_ext <<_ACEOF
9409/* end confdefs.h.  */
9410
9411/* Override any GCC internal prototype to avoid an error.
9412   Use char because int might match the return type of a GCC
9413   builtin and then its argument prototype would still apply.  */
9414#ifdef __cplusplus
9415extern "C"
9416#endif
9417char shl_load ();
9418int
9419main ()
9420{
9421return shl_load ();
9422  ;
9423  return 0;
9424}
9425_ACEOF
9426rm -f conftest.$ac_objext conftest$ac_exeext
9427if { (ac_try="$ac_link"
9428case "(($ac_try" in
9429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9430  *) ac_try_echo=$ac_try;;
9431esac
9432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9433  (eval "$ac_link") 2>conftest.er1
9434  ac_status=$?
9435  grep -v '^ *+' conftest.er1 >conftest.err
9436  rm -f conftest.er1
9437  cat conftest.err >&5
9438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439  (exit $ac_status); } && {
9440	 test -z "$ac_c_werror_flag" ||
9441	 test ! -s conftest.err
9442       } && test -s conftest$ac_exeext &&
9443       $as_test_x conftest$ac_exeext; then
9444  ac_cv_lib_dld_shl_load=yes
9445else
9446  echo "$as_me: failed program was:" >&5
9447sed 's/^/| /' conftest.$ac_ext >&5
9448
9449	ac_cv_lib_dld_shl_load=no
9450fi
9451
9452rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9453      conftest$ac_exeext conftest.$ac_ext
9454LIBS=$ac_check_lib_save_LIBS
9455fi
9456{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9457echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9458if test $ac_cv_lib_dld_shl_load = yes; then
9459  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9460else
9461  { echo "$as_me:$LINENO: checking for dlopen" >&5
9462echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9463if test "${ac_cv_func_dlopen+set}" = set; then
9464  echo $ECHO_N "(cached) $ECHO_C" >&6
9465else
9466  cat >conftest.$ac_ext <<_ACEOF
9467/* confdefs.h.  */
9468_ACEOF
9469cat confdefs.h >>conftest.$ac_ext
9470cat >>conftest.$ac_ext <<_ACEOF
9471/* end confdefs.h.  */
9472/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9473   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9474#define dlopen innocuous_dlopen
9475
9476/* System header to define __stub macros and hopefully few prototypes,
9477    which can conflict with char dlopen (); below.
9478    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9479    <limits.h> exists even on freestanding compilers.  */
9480
9481#ifdef __STDC__
9482# include <limits.h>
9483#else
9484# include <assert.h>
9485#endif
9486
9487#undef dlopen
9488
9489/* Override any GCC internal prototype to avoid an error.
9490   Use char because int might match the return type of a GCC
9491   builtin and then its argument prototype would still apply.  */
9492#ifdef __cplusplus
9493extern "C"
9494#endif
9495char dlopen ();
9496/* The GNU C library defines this for functions which it implements
9497    to always fail with ENOSYS.  Some functions are actually named
9498    something starting with __ and the normal name is an alias.  */
9499#if defined __stub_dlopen || defined __stub___dlopen
9500choke me
9501#endif
9502
9503int
9504main ()
9505{
9506return dlopen ();
9507  ;
9508  return 0;
9509}
9510_ACEOF
9511rm -f conftest.$ac_objext conftest$ac_exeext
9512if { (ac_try="$ac_link"
9513case "(($ac_try" in
9514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515  *) ac_try_echo=$ac_try;;
9516esac
9517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9518  (eval "$ac_link") 2>conftest.er1
9519  ac_status=$?
9520  grep -v '^ *+' conftest.er1 >conftest.err
9521  rm -f conftest.er1
9522  cat conftest.err >&5
9523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524  (exit $ac_status); } && {
9525	 test -z "$ac_c_werror_flag" ||
9526	 test ! -s conftest.err
9527       } && test -s conftest$ac_exeext &&
9528       $as_test_x conftest$ac_exeext; then
9529  ac_cv_func_dlopen=yes
9530else
9531  echo "$as_me: failed program was:" >&5
9532sed 's/^/| /' conftest.$ac_ext >&5
9533
9534	ac_cv_func_dlopen=no
9535fi
9536
9537rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9538      conftest$ac_exeext conftest.$ac_ext
9539fi
9540{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9541echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9542if test $ac_cv_func_dlopen = yes; then
9543  lt_cv_dlopen="dlopen"
9544else
9545  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9546echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9547if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9548  echo $ECHO_N "(cached) $ECHO_C" >&6
9549else
9550  ac_check_lib_save_LIBS=$LIBS
9551LIBS="-ldl  $LIBS"
9552cat >conftest.$ac_ext <<_ACEOF
9553/* confdefs.h.  */
9554_ACEOF
9555cat confdefs.h >>conftest.$ac_ext
9556cat >>conftest.$ac_ext <<_ACEOF
9557/* end confdefs.h.  */
9558
9559/* Override any GCC internal prototype to avoid an error.
9560   Use char because int might match the return type of a GCC
9561   builtin and then its argument prototype would still apply.  */
9562#ifdef __cplusplus
9563extern "C"
9564#endif
9565char dlopen ();
9566int
9567main ()
9568{
9569return dlopen ();
9570  ;
9571  return 0;
9572}
9573_ACEOF
9574rm -f conftest.$ac_objext conftest$ac_exeext
9575if { (ac_try="$ac_link"
9576case "(($ac_try" in
9577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578  *) ac_try_echo=$ac_try;;
9579esac
9580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581  (eval "$ac_link") 2>conftest.er1
9582  ac_status=$?
9583  grep -v '^ *+' conftest.er1 >conftest.err
9584  rm -f conftest.er1
9585  cat conftest.err >&5
9586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587  (exit $ac_status); } && {
9588	 test -z "$ac_c_werror_flag" ||
9589	 test ! -s conftest.err
9590       } && test -s conftest$ac_exeext &&
9591       $as_test_x conftest$ac_exeext; then
9592  ac_cv_lib_dl_dlopen=yes
9593else
9594  echo "$as_me: failed program was:" >&5
9595sed 's/^/| /' conftest.$ac_ext >&5
9596
9597	ac_cv_lib_dl_dlopen=no
9598fi
9599
9600rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9601      conftest$ac_exeext conftest.$ac_ext
9602LIBS=$ac_check_lib_save_LIBS
9603fi
9604{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9605echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9606if test $ac_cv_lib_dl_dlopen = yes; then
9607  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9608else
9609  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9610echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9611if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9612  echo $ECHO_N "(cached) $ECHO_C" >&6
9613else
9614  ac_check_lib_save_LIBS=$LIBS
9615LIBS="-lsvld  $LIBS"
9616cat >conftest.$ac_ext <<_ACEOF
9617/* confdefs.h.  */
9618_ACEOF
9619cat confdefs.h >>conftest.$ac_ext
9620cat >>conftest.$ac_ext <<_ACEOF
9621/* end confdefs.h.  */
9622
9623/* Override any GCC internal prototype to avoid an error.
9624   Use char because int might match the return type of a GCC
9625   builtin and then its argument prototype would still apply.  */
9626#ifdef __cplusplus
9627extern "C"
9628#endif
9629char dlopen ();
9630int
9631main ()
9632{
9633return dlopen ();
9634  ;
9635  return 0;
9636}
9637_ACEOF
9638rm -f conftest.$ac_objext conftest$ac_exeext
9639if { (ac_try="$ac_link"
9640case "(($ac_try" in
9641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9642  *) ac_try_echo=$ac_try;;
9643esac
9644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9645  (eval "$ac_link") 2>conftest.er1
9646  ac_status=$?
9647  grep -v '^ *+' conftest.er1 >conftest.err
9648  rm -f conftest.er1
9649  cat conftest.err >&5
9650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651  (exit $ac_status); } && {
9652	 test -z "$ac_c_werror_flag" ||
9653	 test ! -s conftest.err
9654       } && test -s conftest$ac_exeext &&
9655       $as_test_x conftest$ac_exeext; then
9656  ac_cv_lib_svld_dlopen=yes
9657else
9658  echo "$as_me: failed program was:" >&5
9659sed 's/^/| /' conftest.$ac_ext >&5
9660
9661	ac_cv_lib_svld_dlopen=no
9662fi
9663
9664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9665      conftest$ac_exeext conftest.$ac_ext
9666LIBS=$ac_check_lib_save_LIBS
9667fi
9668{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9669echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9670if test $ac_cv_lib_svld_dlopen = yes; then
9671  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9672else
9673  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9674echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9675if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9676  echo $ECHO_N "(cached) $ECHO_C" >&6
9677else
9678  ac_check_lib_save_LIBS=$LIBS
9679LIBS="-ldld  $LIBS"
9680cat >conftest.$ac_ext <<_ACEOF
9681/* confdefs.h.  */
9682_ACEOF
9683cat confdefs.h >>conftest.$ac_ext
9684cat >>conftest.$ac_ext <<_ACEOF
9685/* end confdefs.h.  */
9686
9687/* Override any GCC internal prototype to avoid an error.
9688   Use char because int might match the return type of a GCC
9689   builtin and then its argument prototype would still apply.  */
9690#ifdef __cplusplus
9691extern "C"
9692#endif
9693char dld_link ();
9694int
9695main ()
9696{
9697return dld_link ();
9698  ;
9699  return 0;
9700}
9701_ACEOF
9702rm -f conftest.$ac_objext conftest$ac_exeext
9703if { (ac_try="$ac_link"
9704case "(($ac_try" in
9705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706  *) ac_try_echo=$ac_try;;
9707esac
9708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709  (eval "$ac_link") 2>conftest.er1
9710  ac_status=$?
9711  grep -v '^ *+' conftest.er1 >conftest.err
9712  rm -f conftest.er1
9713  cat conftest.err >&5
9714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715  (exit $ac_status); } && {
9716	 test -z "$ac_c_werror_flag" ||
9717	 test ! -s conftest.err
9718       } && test -s conftest$ac_exeext &&
9719       $as_test_x conftest$ac_exeext; then
9720  ac_cv_lib_dld_dld_link=yes
9721else
9722  echo "$as_me: failed program was:" >&5
9723sed 's/^/| /' conftest.$ac_ext >&5
9724
9725	ac_cv_lib_dld_dld_link=no
9726fi
9727
9728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9729      conftest$ac_exeext conftest.$ac_ext
9730LIBS=$ac_check_lib_save_LIBS
9731fi
9732{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9733echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9734if test $ac_cv_lib_dld_dld_link = yes; then
9735  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9736fi
9737
9738
9739fi
9740
9741
9742fi
9743
9744
9745fi
9746
9747
9748fi
9749
9750
9751fi
9752
9753    ;;
9754  esac
9755
9756  if test "x$lt_cv_dlopen" != xno; then
9757    enable_dlopen=yes
9758  else
9759    enable_dlopen=no
9760  fi
9761
9762  case $lt_cv_dlopen in
9763  dlopen)
9764    save_CPPFLAGS="$CPPFLAGS"
9765    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9766
9767    save_LDFLAGS="$LDFLAGS"
9768    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9769
9770    save_LIBS="$LIBS"
9771    LIBS="$lt_cv_dlopen_libs $LIBS"
9772
9773    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9774echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9775if test "${lt_cv_dlopen_self+set}" = set; then
9776  echo $ECHO_N "(cached) $ECHO_C" >&6
9777else
9778  	  if test "$cross_compiling" = yes; then :
9779  lt_cv_dlopen_self=cross
9780else
9781  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9782  lt_status=$lt_dlunknown
9783  cat > conftest.$ac_ext <<EOF
9784#line 9784 "configure"
9785#include "confdefs.h"
9786
9787#if HAVE_DLFCN_H
9788#include <dlfcn.h>
9789#endif
9790
9791#include <stdio.h>
9792
9793#ifdef RTLD_GLOBAL
9794#  define LT_DLGLOBAL		RTLD_GLOBAL
9795#else
9796#  ifdef DL_GLOBAL
9797#    define LT_DLGLOBAL		DL_GLOBAL
9798#  else
9799#    define LT_DLGLOBAL		0
9800#  endif
9801#endif
9802
9803/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9804   find out it does not work in some platform. */
9805#ifndef LT_DLLAZY_OR_NOW
9806#  ifdef RTLD_LAZY
9807#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9808#  else
9809#    ifdef DL_LAZY
9810#      define LT_DLLAZY_OR_NOW		DL_LAZY
9811#    else
9812#      ifdef RTLD_NOW
9813#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9814#      else
9815#        ifdef DL_NOW
9816#          define LT_DLLAZY_OR_NOW	DL_NOW
9817#        else
9818#          define LT_DLLAZY_OR_NOW	0
9819#        endif
9820#      endif
9821#    endif
9822#  endif
9823#endif
9824
9825#ifdef __cplusplus
9826extern "C" void exit (int);
9827#endif
9828
9829void fnord() { int i=42;}
9830int main ()
9831{
9832  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9833  int status = $lt_dlunknown;
9834
9835  if (self)
9836    {
9837      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9838      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9839      /* dlclose (self); */
9840    }
9841  else
9842    puts (dlerror ());
9843
9844    exit (status);
9845}
9846EOF
9847  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9848  (eval $ac_link) 2>&5
9849  ac_status=$?
9850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9852    (./conftest; exit; ) >&5 2>/dev/null
9853    lt_status=$?
9854    case x$lt_status in
9855      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9856      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9857      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9858    esac
9859  else :
9860    # compilation failed
9861    lt_cv_dlopen_self=no
9862  fi
9863fi
9864rm -fr conftest*
9865
9866
9867fi
9868{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9869echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9870
9871    if test "x$lt_cv_dlopen_self" = xyes; then
9872      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9873      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9874echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9875if test "${lt_cv_dlopen_self_static+set}" = set; then
9876  echo $ECHO_N "(cached) $ECHO_C" >&6
9877else
9878  	  if test "$cross_compiling" = yes; then :
9879  lt_cv_dlopen_self_static=cross
9880else
9881  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9882  lt_status=$lt_dlunknown
9883  cat > conftest.$ac_ext <<EOF
9884#line 9884 "configure"
9885#include "confdefs.h"
9886
9887#if HAVE_DLFCN_H
9888#include <dlfcn.h>
9889#endif
9890
9891#include <stdio.h>
9892
9893#ifdef RTLD_GLOBAL
9894#  define LT_DLGLOBAL		RTLD_GLOBAL
9895#else
9896#  ifdef DL_GLOBAL
9897#    define LT_DLGLOBAL		DL_GLOBAL
9898#  else
9899#    define LT_DLGLOBAL		0
9900#  endif
9901#endif
9902
9903/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9904   find out it does not work in some platform. */
9905#ifndef LT_DLLAZY_OR_NOW
9906#  ifdef RTLD_LAZY
9907#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9908#  else
9909#    ifdef DL_LAZY
9910#      define LT_DLLAZY_OR_NOW		DL_LAZY
9911#    else
9912#      ifdef RTLD_NOW
9913#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9914#      else
9915#        ifdef DL_NOW
9916#          define LT_DLLAZY_OR_NOW	DL_NOW
9917#        else
9918#          define LT_DLLAZY_OR_NOW	0
9919#        endif
9920#      endif
9921#    endif
9922#  endif
9923#endif
9924
9925#ifdef __cplusplus
9926extern "C" void exit (int);
9927#endif
9928
9929void fnord() { int i=42;}
9930int main ()
9931{
9932  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9933  int status = $lt_dlunknown;
9934
9935  if (self)
9936    {
9937      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9938      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9939      /* dlclose (self); */
9940    }
9941  else
9942    puts (dlerror ());
9943
9944    exit (status);
9945}
9946EOF
9947  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9948  (eval $ac_link) 2>&5
9949  ac_status=$?
9950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9952    (./conftest; exit; ) >&5 2>/dev/null
9953    lt_status=$?
9954    case x$lt_status in
9955      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9956      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9957      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9958    esac
9959  else :
9960    # compilation failed
9961    lt_cv_dlopen_self_static=no
9962  fi
9963fi
9964rm -fr conftest*
9965
9966
9967fi
9968{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9969echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9970    fi
9971
9972    CPPFLAGS="$save_CPPFLAGS"
9973    LDFLAGS="$save_LDFLAGS"
9974    LIBS="$save_LIBS"
9975    ;;
9976  esac
9977
9978  case $lt_cv_dlopen_self in
9979  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9980  *) enable_dlopen_self=unknown ;;
9981  esac
9982
9983  case $lt_cv_dlopen_self_static in
9984  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9985  *) enable_dlopen_self_static=unknown ;;
9986  esac
9987fi
9988
9989
9990# Report which library types will actually be built
9991{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9992echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9993{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9994echo "${ECHO_T}$can_build_shared" >&6; }
9995
9996{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9997echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9998test "$can_build_shared" = "no" && enable_shared=no
9999
10000# On AIX, shared libraries and static libraries use the same namespace, and
10001# are all built from PIC.
10002case $host_os in
10003aix3*)
10004  test "$enable_shared" = yes && enable_static=no
10005  if test -n "$RANLIB"; then
10006    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10007    postinstall_cmds='$RANLIB $lib'
10008  fi
10009  ;;
10010
10011aix4* | aix5*)
10012  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10013    test "$enable_shared" = yes && enable_static=no
10014  fi
10015    ;;
10016esac
10017{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10018echo "${ECHO_T}$enable_shared" >&6; }
10019
10020{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10021echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10022# Make sure either enable_shared or enable_static is yes.
10023test "$enable_shared" = yes || enable_static=yes
10024{ echo "$as_me:$LINENO: result: $enable_static" >&5
10025echo "${ECHO_T}$enable_static" >&6; }
10026
10027# The else clause should only fire when bootstrapping the
10028# libtool distribution, otherwise you forgot to ship ltmain.sh
10029# with your package, and you will get complaints that there are
10030# no rules to generate ltmain.sh.
10031if test -f "$ltmain"; then
10032  # See if we are running on zsh, and set the options which allow our commands through
10033  # without removal of \ escapes.
10034  if test -n "${ZSH_VERSION+set}" ; then
10035    setopt NO_GLOB_SUBST
10036  fi
10037  # Now quote all the things that may contain metacharacters while being
10038  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10039  # variables and quote the copies for generation of the libtool script.
10040  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10041    SED SHELL STRIP \
10042    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10043    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10044    deplibs_check_method reload_flag reload_cmds need_locks \
10045    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10046    lt_cv_sys_global_symbol_to_c_name_address \
10047    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10048    old_postinstall_cmds old_postuninstall_cmds \
10049    compiler \
10050    CC \
10051    LD \
10052    lt_prog_compiler_wl \
10053    lt_prog_compiler_pic \
10054    lt_prog_compiler_static \
10055    lt_prog_compiler_no_builtin_flag \
10056    export_dynamic_flag_spec \
10057    thread_safe_flag_spec \
10058    whole_archive_flag_spec \
10059    enable_shared_with_static_runtimes \
10060    old_archive_cmds \
10061    old_archive_from_new_cmds \
10062    predep_objects \
10063    postdep_objects \
10064    predeps \
10065    postdeps \
10066    compiler_lib_search_path \
10067    archive_cmds \
10068    archive_expsym_cmds \
10069    postinstall_cmds \
10070    postuninstall_cmds \
10071    old_archive_from_expsyms_cmds \
10072    allow_undefined_flag \
10073    no_undefined_flag \
10074    export_symbols_cmds \
10075    hardcode_libdir_flag_spec \
10076    hardcode_libdir_flag_spec_ld \
10077    hardcode_libdir_separator \
10078    hardcode_automatic \
10079    module_cmds \
10080    module_expsym_cmds \
10081    lt_cv_prog_compiler_c_o \
10082    fix_srcfile_path \
10083    exclude_expsyms \
10084    include_expsyms; do
10085
10086    case $var in
10087    old_archive_cmds | \
10088    old_archive_from_new_cmds | \
10089    archive_cmds | \
10090    archive_expsym_cmds | \
10091    module_cmds | \
10092    module_expsym_cmds | \
10093    old_archive_from_expsyms_cmds | \
10094    export_symbols_cmds | \
10095    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10096    postinstall_cmds | postuninstall_cmds | \
10097    old_postinstall_cmds | old_postuninstall_cmds | \
10098    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10099      # Double-quote double-evaled strings.
10100      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10101      ;;
10102    *)
10103      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10104      ;;
10105    esac
10106  done
10107
10108  case $lt_echo in
10109  *'\$0 --fallback-echo"')
10110    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10111    ;;
10112  esac
10113
10114cfgfile="${ofile}T"
10115  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10116  $rm -f "$cfgfile"
10117  { echo "$as_me:$LINENO: creating $ofile" >&5
10118echo "$as_me: creating $ofile" >&6;}
10119
10120  cat <<__EOF__ >> "$cfgfile"
10121#! $SHELL
10122
10123# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10124# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10125# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10126#
10127# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10128# Free Software Foundation, Inc.
10129#
10130# This file is part of GNU Libtool:
10131# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10132#
10133# This program is free software; you can redistribute it and/or modify
10134# it under the terms of the GNU General Public License as published by
10135# the Free Software Foundation; either version 2 of the License, or
10136# (at your option) any later version.
10137#
10138# This program is distributed in the hope that it will be useful, but
10139# WITHOUT ANY WARRANTY; without even the implied warranty of
10140# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10141# General Public License for more details.
10142#
10143# You should have received a copy of the GNU General Public License
10144# along with this program; if not, write to the Free Software
10145# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10146#
10147# As a special exception to the GNU General Public License, if you
10148# distribute this file as part of a program that contains a
10149# configuration script generated by Autoconf, you may include it under
10150# the same distribution terms that you use for the rest of that program.
10151
10152# A sed program that does not truncate output.
10153SED=$lt_SED
10154
10155# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10156Xsed="$SED -e 1s/^X//"
10157
10158# The HP-UX ksh and POSIX shell print the target directory to stdout
10159# if CDPATH is set.
10160(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10161
10162# The names of the tagged configurations supported by this script.
10163available_tags=
10164
10165# ### BEGIN LIBTOOL CONFIG
10166
10167# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10168
10169# Shell to use when invoking shell scripts.
10170SHELL=$lt_SHELL
10171
10172# Whether or not to build shared libraries.
10173build_libtool_libs=$enable_shared
10174
10175# Whether or not to build static libraries.
10176build_old_libs=$enable_static
10177
10178# Whether or not to add -lc for building shared libraries.
10179build_libtool_need_lc=$archive_cmds_need_lc
10180
10181# Whether or not to disallow shared libs when runtime libs are static
10182allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10183
10184# Whether or not to optimize for fast installation.
10185fast_install=$enable_fast_install
10186
10187# The host system.
10188host_alias=$host_alias
10189host=$host
10190host_os=$host_os
10191
10192# The build system.
10193build_alias=$build_alias
10194build=$build
10195build_os=$build_os
10196
10197# An echo program that does not interpret backslashes.
10198echo=$lt_echo
10199
10200# The archiver.
10201AR=$lt_AR
10202AR_FLAGS=$lt_AR_FLAGS
10203
10204# A C compiler.
10205LTCC=$lt_LTCC
10206
10207# LTCC compiler flags.
10208LTCFLAGS=$lt_LTCFLAGS
10209
10210# A language-specific compiler.
10211CC=$lt_compiler
10212
10213# Is the compiler the GNU C compiler?
10214with_gcc=$GCC
10215
10216# An ERE matcher.
10217EGREP=$lt_EGREP
10218
10219# The linker used to build libraries.
10220LD=$lt_LD
10221
10222# Whether we need hard or soft links.
10223LN_S=$lt_LN_S
10224
10225# A BSD-compatible nm program.
10226NM=$lt_NM
10227
10228# A symbol stripping program
10229STRIP=$lt_STRIP
10230
10231# Used to examine libraries when file_magic_cmd begins "file"
10232MAGIC_CMD=$MAGIC_CMD
10233
10234# Used on cygwin: DLL creation program.
10235DLLTOOL="$DLLTOOL"
10236
10237# Used on cygwin: object dumper.
10238OBJDUMP="$OBJDUMP"
10239
10240# Used on cygwin: assembler.
10241AS="$AS"
10242
10243# The name of the directory that contains temporary libtool files.
10244objdir=$objdir
10245
10246# How to create reloadable object files.
10247reload_flag=$lt_reload_flag
10248reload_cmds=$lt_reload_cmds
10249
10250# How to pass a linker flag through the compiler.
10251wl=$lt_lt_prog_compiler_wl
10252
10253# Object file suffix (normally "o").
10254objext="$ac_objext"
10255
10256# Old archive suffix (normally "a").
10257libext="$libext"
10258
10259# Shared library suffix (normally ".so").
10260shrext_cmds='$shrext_cmds'
10261
10262# Executable file suffix (normally "").
10263exeext="$exeext"
10264
10265# Additional compiler flags for building library objects.
10266pic_flag=$lt_lt_prog_compiler_pic
10267pic_mode=$pic_mode
10268
10269# What is the maximum length of a command?
10270max_cmd_len=$lt_cv_sys_max_cmd_len
10271
10272# Does compiler simultaneously support -c and -o options?
10273compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10274
10275# Must we lock files when doing compilation?
10276need_locks=$lt_need_locks
10277
10278# Do we need the lib prefix for modules?
10279need_lib_prefix=$need_lib_prefix
10280
10281# Do we need a version for libraries?
10282need_version=$need_version
10283
10284# Whether dlopen is supported.
10285dlopen_support=$enable_dlopen
10286
10287# Whether dlopen of programs is supported.
10288dlopen_self=$enable_dlopen_self
10289
10290# Whether dlopen of statically linked programs is supported.
10291dlopen_self_static=$enable_dlopen_self_static
10292
10293# Compiler flag to prevent dynamic linking.
10294link_static_flag=$lt_lt_prog_compiler_static
10295
10296# Compiler flag to turn off builtin functions.
10297no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10298
10299# Compiler flag to allow reflexive dlopens.
10300export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10301
10302# Compiler flag to generate shared objects directly from archives.
10303whole_archive_flag_spec=$lt_whole_archive_flag_spec
10304
10305# Compiler flag to generate thread-safe objects.
10306thread_safe_flag_spec=$lt_thread_safe_flag_spec
10307
10308# Library versioning type.
10309version_type=$version_type
10310
10311# Format of library name prefix.
10312libname_spec=$lt_libname_spec
10313
10314# List of archive names.  First name is the real one, the rest are links.
10315# The last name is the one that the linker finds with -lNAME.
10316library_names_spec=$lt_library_names_spec
10317
10318# The coded name of the library, if different from the real name.
10319soname_spec=$lt_soname_spec
10320
10321# Commands used to build and install an old-style archive.
10322RANLIB=$lt_RANLIB
10323old_archive_cmds=$lt_old_archive_cmds
10324old_postinstall_cmds=$lt_old_postinstall_cmds
10325old_postuninstall_cmds=$lt_old_postuninstall_cmds
10326
10327# Create an old-style archive from a shared archive.
10328old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10329
10330# Create a temporary old-style archive to link instead of a shared archive.
10331old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10332
10333# Commands used to build and install a shared archive.
10334archive_cmds=$lt_archive_cmds
10335archive_expsym_cmds=$lt_archive_expsym_cmds
10336postinstall_cmds=$lt_postinstall_cmds
10337postuninstall_cmds=$lt_postuninstall_cmds
10338
10339# Commands used to build a loadable module (assumed same as above if empty)
10340module_cmds=$lt_module_cmds
10341module_expsym_cmds=$lt_module_expsym_cmds
10342
10343# Commands to strip libraries.
10344old_striplib=$lt_old_striplib
10345striplib=$lt_striplib
10346
10347# Dependencies to place before the objects being linked to create a
10348# shared library.
10349predep_objects=$lt_predep_objects
10350
10351# Dependencies to place after the objects being linked to create a
10352# shared library.
10353postdep_objects=$lt_postdep_objects
10354
10355# Dependencies to place before the objects being linked to create a
10356# shared library.
10357predeps=$lt_predeps
10358
10359# Dependencies to place after the objects being linked to create a
10360# shared library.
10361postdeps=$lt_postdeps
10362
10363# The library search path used internally by the compiler when linking
10364# a shared library.
10365compiler_lib_search_path=$lt_compiler_lib_search_path
10366
10367# Method to check whether dependent libraries are shared objects.
10368deplibs_check_method=$lt_deplibs_check_method
10369
10370# Command to use when deplibs_check_method == file_magic.
10371file_magic_cmd=$lt_file_magic_cmd
10372
10373# Flag that allows shared libraries with undefined symbols to be built.
10374allow_undefined_flag=$lt_allow_undefined_flag
10375
10376# Flag that forces no undefined symbols.
10377no_undefined_flag=$lt_no_undefined_flag
10378
10379# Commands used to finish a libtool library installation in a directory.
10380finish_cmds=$lt_finish_cmds
10381
10382# Same as above, but a single script fragment to be evaled but not shown.
10383finish_eval=$lt_finish_eval
10384
10385# Take the output of nm and produce a listing of raw symbols and C names.
10386global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10387
10388# Transform the output of nm in a proper C declaration
10389global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10390
10391# Transform the output of nm in a C name address pair
10392global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10393
10394# This is the shared library runtime path variable.
10395runpath_var=$runpath_var
10396
10397# This is the shared library path variable.
10398shlibpath_var=$shlibpath_var
10399
10400# Is shlibpath searched before the hard-coded library search path?
10401shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10402
10403# How to hardcode a shared library path into an executable.
10404hardcode_action=$hardcode_action
10405
10406# Whether we should hardcode library paths into libraries.
10407hardcode_into_libs=$hardcode_into_libs
10408
10409# Flag to hardcode \$libdir into a binary during linking.
10410# This must work even if \$libdir does not exist.
10411hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10412
10413# If ld is used when linking, flag to hardcode \$libdir into
10414# a binary during linking. This must work even if \$libdir does
10415# not exist.
10416hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10417
10418# Whether we need a single -rpath flag with a separated argument.
10419hardcode_libdir_separator=$lt_hardcode_libdir_separator
10420
10421# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10422# resulting binary.
10423hardcode_direct=$hardcode_direct
10424
10425# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10426# resulting binary.
10427hardcode_minus_L=$hardcode_minus_L
10428
10429# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10430# the resulting binary.
10431hardcode_shlibpath_var=$hardcode_shlibpath_var
10432
10433# Set to yes if building a shared library automatically hardcodes DIR into the library
10434# and all subsequent libraries and executables linked against it.
10435hardcode_automatic=$hardcode_automatic
10436
10437# Variables whose values should be saved in libtool wrapper scripts and
10438# restored at relink time.
10439variables_saved_for_relink="$variables_saved_for_relink"
10440
10441# Whether libtool must link a program against all its dependency libraries.
10442link_all_deplibs=$link_all_deplibs
10443
10444# Compile-time system search path for libraries
10445sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10446
10447# Run-time system search path for libraries
10448sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10449
10450# Fix the shell variable \$srcfile for the compiler.
10451fix_srcfile_path=$lt_fix_srcfile_path
10452
10453# Set to yes if exported symbols are required.
10454always_export_symbols=$always_export_symbols
10455
10456# The commands to list exported symbols.
10457export_symbols_cmds=$lt_export_symbols_cmds
10458
10459# The commands to extract the exported symbol list from a shared archive.
10460extract_expsyms_cmds=$lt_extract_expsyms_cmds
10461
10462# Symbols that should not be listed in the preloaded symbols.
10463exclude_expsyms=$lt_exclude_expsyms
10464
10465# Symbols that must always be exported.
10466include_expsyms=$lt_include_expsyms
10467
10468# ### END LIBTOOL CONFIG
10469
10470__EOF__
10471
10472
10473  case $host_os in
10474  aix3*)
10475    cat <<\EOF >> "$cfgfile"
10476
10477# AIX sometimes has problems with the GCC collect2 program.  For some
10478# reason, if we set the COLLECT_NAMES environment variable, the problems
10479# vanish in a puff of smoke.
10480if test "X${COLLECT_NAMES+set}" != Xset; then
10481  COLLECT_NAMES=
10482  export COLLECT_NAMES
10483fi
10484EOF
10485    ;;
10486  esac
10487
10488  # We use sed instead of cat because bash on DJGPP gets confused if
10489  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10490  # text mode, it properly converts lines to CR/LF.  This bash problem
10491  # is reportedly fixed, but why not run on old versions too?
10492  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10493
10494  mv -f "$cfgfile" "$ofile" || \
10495    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10496  chmod +x "$ofile"
10497
10498else
10499  # If there is no Makefile yet, we rely on a make rule to execute
10500  # `config.status --recheck' to rerun these tests and create the
10501  # libtool script then.
10502  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10503  if test -f "$ltmain_in"; then
10504    test -f Makefile && make "$ltmain"
10505  fi
10506fi
10507
10508
10509ac_ext=c
10510ac_cpp='$CPP $CPPFLAGS'
10511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10513ac_compiler_gnu=$ac_cv_c_compiler_gnu
10514
10515CC="$lt_save_CC"
10516
10517
10518# Check whether --with-tags was given.
10519if test "${with_tags+set}" = set; then
10520  withval=$with_tags; tagnames="$withval"
10521fi
10522
10523
10524if test -f "$ltmain" && test -n "$tagnames"; then
10525  if test ! -f "${ofile}"; then
10526    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10527echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10528  fi
10529
10530  if test -z "$LTCC"; then
10531    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10532    if test -z "$LTCC"; then
10533      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10534echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10535    else
10536      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10537echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10538    fi
10539  fi
10540  if test -z "$LTCFLAGS"; then
10541    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10542  fi
10543
10544  # Extract list of available tagged configurations in $ofile.
10545  # Note that this assumes the entire list is on one line.
10546  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10547
10548  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10549  for tagname in $tagnames; do
10550    IFS="$lt_save_ifs"
10551    # Check whether tagname contains only valid characters
10552    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10553    "") ;;
10554    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10555echo "$as_me: error: invalid tag name: $tagname" >&2;}
10556   { (exit 1); exit 1; }; }
10557	;;
10558    esac
10559
10560    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10561    then
10562      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10563echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10564   { (exit 1); exit 1; }; }
10565    fi
10566
10567    # Update the list of available tags.
10568    if test -n "$tagname"; then
10569      echo appending configuration tag \"$tagname\" to $ofile
10570
10571      case $tagname in
10572      CXX)
10573	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10574	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10575	    (test "X$CXX" != "Xg++"))) ; then
10576	  ac_ext=cpp
10577ac_cpp='$CXXCPP $CPPFLAGS'
10578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10581
10582
10583
10584
10585archive_cmds_need_lc_CXX=no
10586allow_undefined_flag_CXX=
10587always_export_symbols_CXX=no
10588archive_expsym_cmds_CXX=
10589export_dynamic_flag_spec_CXX=
10590hardcode_direct_CXX=no
10591hardcode_libdir_flag_spec_CXX=
10592hardcode_libdir_flag_spec_ld_CXX=
10593hardcode_libdir_separator_CXX=
10594hardcode_minus_L_CXX=no
10595hardcode_shlibpath_var_CXX=unsupported
10596hardcode_automatic_CXX=no
10597module_cmds_CXX=
10598module_expsym_cmds_CXX=
10599link_all_deplibs_CXX=unknown
10600old_archive_cmds_CXX=$old_archive_cmds
10601no_undefined_flag_CXX=
10602whole_archive_flag_spec_CXX=
10603enable_shared_with_static_runtimes_CXX=no
10604
10605# Dependencies to place before and after the object being linked:
10606predep_objects_CXX=
10607postdep_objects_CXX=
10608predeps_CXX=
10609postdeps_CXX=
10610compiler_lib_search_path_CXX=
10611
10612# Source file extension for C++ test sources.
10613ac_ext=cpp
10614
10615# Object file extension for compiled C++ test sources.
10616objext=o
10617objext_CXX=$objext
10618
10619# Code to be used in simple compile tests
10620lt_simple_compile_test_code="int some_variable = 0;"
10621
10622# Code to be used in simple link tests
10623lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10624
10625# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10626
10627# If no C compiler was specified, use CC.
10628LTCC=${LTCC-"$CC"}
10629
10630# If no C compiler flags were specified, use CFLAGS.
10631LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10632
10633# Allow CC to be a program name with arguments.
10634compiler=$CC
10635
10636
10637# save warnings/boilerplate of simple test code
10638ac_outfile=conftest.$ac_objext
10639echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10640eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10641_lt_compiler_boilerplate=`cat conftest.err`
10642$rm conftest*
10643
10644ac_outfile=conftest.$ac_objext
10645echo "$lt_simple_link_test_code" >conftest.$ac_ext
10646eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10647_lt_linker_boilerplate=`cat conftest.err`
10648$rm conftest*
10649
10650
10651# Allow CC to be a program name with arguments.
10652lt_save_CC=$CC
10653lt_save_LD=$LD
10654lt_save_GCC=$GCC
10655GCC=$GXX
10656lt_save_with_gnu_ld=$with_gnu_ld
10657lt_save_path_LD=$lt_cv_path_LD
10658if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10659  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10660else
10661  $as_unset lt_cv_prog_gnu_ld
10662fi
10663if test -n "${lt_cv_path_LDCXX+set}"; then
10664  lt_cv_path_LD=$lt_cv_path_LDCXX
10665else
10666  $as_unset lt_cv_path_LD
10667fi
10668test -z "${LDCXX+set}" || LD=$LDCXX
10669CC=${CXX-"c++"}
10670compiler=$CC
10671compiler_CXX=$CC
10672for cc_temp in $compiler""; do
10673  case $cc_temp in
10674    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10675    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10676    \-*) ;;
10677    *) break;;
10678  esac
10679done
10680cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10681
10682
10683# We don't want -fno-exception wen compiling C++ code, so set the
10684# no_builtin_flag separately
10685if test "$GXX" = yes; then
10686  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10687else
10688  lt_prog_compiler_no_builtin_flag_CXX=
10689fi
10690
10691if test "$GXX" = yes; then
10692  # Set up default GNU C++ configuration
10693
10694
10695# Check whether --with-gnu-ld was given.
10696if test "${with_gnu_ld+set}" = set; then
10697  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10698else
10699  with_gnu_ld=no
10700fi
10701
10702ac_prog=ld
10703if test "$GCC" = yes; then
10704  # Check if gcc -print-prog-name=ld gives a path.
10705  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10706echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10707  case $host in
10708  *-*-mingw*)
10709    # gcc leaves a trailing carriage return which upsets mingw
10710    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10711  *)
10712    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10713  esac
10714  case $ac_prog in
10715    # Accept absolute paths.
10716    [\\/]* | ?:[\\/]*)
10717      re_direlt='/[^/][^/]*/\.\./'
10718      # Canonicalize the pathname of ld
10719      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10720      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10721	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10722      done
10723      test -z "$LD" && LD="$ac_prog"
10724      ;;
10725  "")
10726    # If it fails, then pretend we aren't using GCC.
10727    ac_prog=ld
10728    ;;
10729  *)
10730    # If it is relative, then search for the first ld in PATH.
10731    with_gnu_ld=unknown
10732    ;;
10733  esac
10734elif test "$with_gnu_ld" = yes; then
10735  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10736echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10737else
10738  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10739echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10740fi
10741if test "${lt_cv_path_LD+set}" = set; then
10742  echo $ECHO_N "(cached) $ECHO_C" >&6
10743else
10744  if test -z "$LD"; then
10745  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10746  for ac_dir in $PATH; do
10747    IFS="$lt_save_ifs"
10748    test -z "$ac_dir" && ac_dir=.
10749    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10750      lt_cv_path_LD="$ac_dir/$ac_prog"
10751      # Check to see if the program is GNU ld.  I'd rather use --version,
10752      # but apparently some variants of GNU ld only accept -v.
10753      # Break only if it was the GNU/non-GNU ld that we prefer.
10754      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10755      *GNU* | *'with BFD'*)
10756	test "$with_gnu_ld" != no && break
10757	;;
10758      *)
10759	test "$with_gnu_ld" != yes && break
10760	;;
10761      esac
10762    fi
10763  done
10764  IFS="$lt_save_ifs"
10765else
10766  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10767fi
10768fi
10769
10770LD="$lt_cv_path_LD"
10771if test -n "$LD"; then
10772  { echo "$as_me:$LINENO: result: $LD" >&5
10773echo "${ECHO_T}$LD" >&6; }
10774else
10775  { echo "$as_me:$LINENO: result: no" >&5
10776echo "${ECHO_T}no" >&6; }
10777fi
10778test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10779echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10780   { (exit 1); exit 1; }; }
10781{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10782echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10783if test "${lt_cv_prog_gnu_ld+set}" = set; then
10784  echo $ECHO_N "(cached) $ECHO_C" >&6
10785else
10786  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10787case `$LD -v 2>&1 </dev/null` in
10788*GNU* | *'with BFD'*)
10789  lt_cv_prog_gnu_ld=yes
10790  ;;
10791*)
10792  lt_cv_prog_gnu_ld=no
10793  ;;
10794esac
10795fi
10796{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10797echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10798with_gnu_ld=$lt_cv_prog_gnu_ld
10799
10800
10801
10802  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10803  # archiving commands below assume that GNU ld is being used.
10804  if test "$with_gnu_ld" = yes; then
10805    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10806    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'
10807
10808    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10809    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10810
10811    # If archive_cmds runs LD, not CC, wlarc should be empty
10812    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10813    #     investigate it a little bit more. (MM)
10814    wlarc='${wl}'
10815
10816    # ancient GNU ld didn't support --whole-archive et. al.
10817    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10818	grep 'no-whole-archive' > /dev/null; then
10819      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10820    else
10821      whole_archive_flag_spec_CXX=
10822    fi
10823  else
10824    with_gnu_ld=no
10825    wlarc=
10826
10827    # A generic and very simple default shared library creation
10828    # command for GNU C++ for the case where it uses the native
10829    # linker, instead of GNU ld.  If possible, this setting should
10830    # overridden to take advantage of the native linker features on
10831    # the platform it is being used on.
10832    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10833  fi
10834
10835  # Commands to make compiler produce verbose output that lists
10836  # what "hidden" libraries, object files and flags are used when
10837  # linking a shared library.
10838  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10839
10840else
10841  GXX=no
10842  with_gnu_ld=no
10843  wlarc=
10844fi
10845
10846# PORTME: fill in a description of your system's C++ link characteristics
10847{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10848echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10849ld_shlibs_CXX=yes
10850case $host_os in
10851  aix3*)
10852    # FIXME: insert proper C++ library support
10853    ld_shlibs_CXX=no
10854    ;;
10855  aix4* | aix5*)
10856    if test "$host_cpu" = ia64; then
10857      # On IA64, the linker does run time linking by default, so we don't
10858      # have to do anything special.
10859      aix_use_runtimelinking=no
10860      exp_sym_flag='-Bexport'
10861      no_entry_flag=""
10862    else
10863      aix_use_runtimelinking=no
10864
10865      # Test if we are trying to use run time linking or normal
10866      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10867      # need to do runtime linking.
10868      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10869	for ld_flag in $LDFLAGS; do
10870	  case $ld_flag in
10871	  *-brtl*)
10872	    aix_use_runtimelinking=yes
10873	    break
10874	    ;;
10875	  esac
10876	done
10877	;;
10878      esac
10879
10880      exp_sym_flag='-bexport'
10881      no_entry_flag='-bnoentry'
10882    fi
10883
10884    # When large executables or shared objects are built, AIX ld can
10885    # have problems creating the table of contents.  If linking a library
10886    # or program results in "error TOC overflow" add -mminimal-toc to
10887    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10888    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10889
10890    archive_cmds_CXX=''
10891    hardcode_direct_CXX=yes
10892    hardcode_libdir_separator_CXX=':'
10893    link_all_deplibs_CXX=yes
10894
10895    if test "$GXX" = yes; then
10896      case $host_os in aix4.[012]|aix4.[012].*)
10897      # We only want to do this on AIX 4.2 and lower, the check
10898      # below for broken collect2 doesn't work under 4.3+
10899	collect2name=`${CC} -print-prog-name=collect2`
10900	if test -f "$collect2name" && \
10901	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10902	then
10903	  # We have reworked collect2
10904	  :
10905	else
10906	  # We have old collect2
10907	  hardcode_direct_CXX=unsupported
10908	  # It fails to find uninstalled libraries when the uninstalled
10909	  # path is not listed in the libpath.  Setting hardcode_minus_L
10910	  # to unsupported forces relinking
10911	  hardcode_minus_L_CXX=yes
10912	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10913	  hardcode_libdir_separator_CXX=
10914	fi
10915	;;
10916      esac
10917      shared_flag='-shared'
10918      if test "$aix_use_runtimelinking" = yes; then
10919	shared_flag="$shared_flag "'${wl}-G'
10920      fi
10921    else
10922      # not using gcc
10923      if test "$host_cpu" = ia64; then
10924	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10925	# chokes on -Wl,-G. The following line is correct:
10926	shared_flag='-G'
10927      else
10928	if test "$aix_use_runtimelinking" = yes; then
10929	  shared_flag='${wl}-G'
10930	else
10931	  shared_flag='${wl}-bM:SRE'
10932	fi
10933      fi
10934    fi
10935
10936    # It seems that -bexpall does not export symbols beginning with
10937    # underscore (_), so it is better to generate a list of symbols to export.
10938    always_export_symbols_CXX=yes
10939    if test "$aix_use_runtimelinking" = yes; then
10940      # Warning - without using the other runtime loading flags (-brtl),
10941      # -berok will link without error, but may produce a broken library.
10942      allow_undefined_flag_CXX='-berok'
10943      # Determine the default libpath from the value encoded in an empty executable.
10944      cat >conftest.$ac_ext <<_ACEOF
10945/* confdefs.h.  */
10946_ACEOF
10947cat confdefs.h >>conftest.$ac_ext
10948cat >>conftest.$ac_ext <<_ACEOF
10949/* end confdefs.h.  */
10950
10951int
10952main ()
10953{
10954
10955  ;
10956  return 0;
10957}
10958_ACEOF
10959rm -f conftest.$ac_objext conftest$ac_exeext
10960if { (ac_try="$ac_link"
10961case "(($ac_try" in
10962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963  *) ac_try_echo=$ac_try;;
10964esac
10965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966  (eval "$ac_link") 2>conftest.er1
10967  ac_status=$?
10968  grep -v '^ *+' conftest.er1 >conftest.err
10969  rm -f conftest.er1
10970  cat conftest.err >&5
10971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972  (exit $ac_status); } && {
10973	 test -z "$ac_cxx_werror_flag" ||
10974	 test ! -s conftest.err
10975       } && test -s conftest$ac_exeext &&
10976       $as_test_x conftest$ac_exeext; then
10977
10978lt_aix_libpath_sed='
10979    /Import File Strings/,/^$/ {
10980	/^0/ {
10981	    s/^0  *\(.*\)$/\1/
10982	    p
10983	}
10984    }'
10985aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10986# Check for a 64-bit object if we didn't find anything.
10987if test -z "$aix_libpath"; then
10988  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10989fi
10990else
10991  echo "$as_me: failed program was:" >&5
10992sed 's/^/| /' conftest.$ac_ext >&5
10993
10994
10995fi
10996
10997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10998      conftest$ac_exeext conftest.$ac_ext
10999if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11000
11001      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11002
11003      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"
11004     else
11005      if test "$host_cpu" = ia64; then
11006	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11007	allow_undefined_flag_CXX="-z nodefs"
11008	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"
11009      else
11010	# Determine the default libpath from the value encoded in an empty executable.
11011	cat >conftest.$ac_ext <<_ACEOF
11012/* confdefs.h.  */
11013_ACEOF
11014cat confdefs.h >>conftest.$ac_ext
11015cat >>conftest.$ac_ext <<_ACEOF
11016/* end confdefs.h.  */
11017
11018int
11019main ()
11020{
11021
11022  ;
11023  return 0;
11024}
11025_ACEOF
11026rm -f conftest.$ac_objext conftest$ac_exeext
11027if { (ac_try="$ac_link"
11028case "(($ac_try" in
11029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11030  *) ac_try_echo=$ac_try;;
11031esac
11032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11033  (eval "$ac_link") 2>conftest.er1
11034  ac_status=$?
11035  grep -v '^ *+' conftest.er1 >conftest.err
11036  rm -f conftest.er1
11037  cat conftest.err >&5
11038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039  (exit $ac_status); } && {
11040	 test -z "$ac_cxx_werror_flag" ||
11041	 test ! -s conftest.err
11042       } && test -s conftest$ac_exeext &&
11043       $as_test_x conftest$ac_exeext; then
11044
11045lt_aix_libpath_sed='
11046    /Import File Strings/,/^$/ {
11047	/^0/ {
11048	    s/^0  *\(.*\)$/\1/
11049	    p
11050	}
11051    }'
11052aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11053# Check for a 64-bit object if we didn't find anything.
11054if test -z "$aix_libpath"; then
11055  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11056fi
11057else
11058  echo "$as_me: failed program was:" >&5
11059sed 's/^/| /' conftest.$ac_ext >&5
11060
11061
11062fi
11063
11064rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11065      conftest$ac_exeext conftest.$ac_ext
11066if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11067
11068	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11069	# Warning - without using the other run time loading flags,
11070	# -berok will link without error, but may produce a broken library.
11071	no_undefined_flag_CXX=' ${wl}-bernotok'
11072	allow_undefined_flag_CXX=' ${wl}-berok'
11073	# Exported symbols can be pulled into shared objects from archives
11074	whole_archive_flag_spec_CXX='$convenience'
11075	archive_cmds_need_lc_CXX=yes
11076	# This is similar to how AIX traditionally builds its shared libraries.
11077	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'
11078      fi
11079    fi
11080    ;;
11081
11082  beos*)
11083    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11084      allow_undefined_flag_CXX=unsupported
11085      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11086      # support --undefined.  This deserves some investigation.  FIXME
11087      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11088    else
11089      ld_shlibs_CXX=no
11090    fi
11091    ;;
11092
11093  chorus*)
11094    case $cc_basename in
11095      *)
11096	# FIXME: insert proper C++ library support
11097	ld_shlibs_CXX=no
11098	;;
11099    esac
11100    ;;
11101
11102  cygwin* | mingw* | pw32*)
11103    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11104    # as there is no search path for DLLs.
11105    hardcode_libdir_flag_spec_CXX='-L$libdir'
11106    allow_undefined_flag_CXX=unsupported
11107    always_export_symbols_CXX=no
11108    enable_shared_with_static_runtimes_CXX=yes
11109
11110    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11111      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'
11112      # If the export-symbols file already is a .def file (1st line
11113      # is EXPORTS), use it as is; otherwise, prepend...
11114      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11115	cp $export_symbols $output_objdir/$soname.def;
11116      else
11117	echo EXPORTS > $output_objdir/$soname.def;
11118	cat $export_symbols >> $output_objdir/$soname.def;
11119      fi~
11120      $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'
11121    else
11122      ld_shlibs_CXX=no
11123    fi
11124  ;;
11125      darwin* | rhapsody*)
11126        case $host_os in
11127        rhapsody* | darwin1.[012])
11128         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11129         ;;
11130       *) # Darwin 1.3 on
11131         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11132           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11133         else
11134           case ${MACOSX_DEPLOYMENT_TARGET} in
11135             10.[012])
11136               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11137               ;;
11138             10.*)
11139               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11140               ;;
11141           esac
11142         fi
11143         ;;
11144        esac
11145      archive_cmds_need_lc_CXX=no
11146      hardcode_direct_CXX=no
11147      hardcode_automatic_CXX=yes
11148      hardcode_shlibpath_var_CXX=unsupported
11149      whole_archive_flag_spec_CXX=''
11150      link_all_deplibs_CXX=yes
11151
11152    if test "$GXX" = yes ; then
11153      lt_int_apple_cc_single_mod=no
11154      output_verbose_link_cmd='echo'
11155      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11156       lt_int_apple_cc_single_mod=yes
11157      fi
11158      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11159       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11160      else
11161          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'
11162        fi
11163        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11164        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11165          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11166            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11167          else
11168            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11169          fi
11170            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}'
11171      else
11172      case $cc_basename in
11173        xlc*)
11174         output_verbose_link_cmd='echo'
11175          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'
11176          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11177          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11178          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}'
11179          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}'
11180          ;;
11181       *)
11182         ld_shlibs_CXX=no
11183          ;;
11184      esac
11185      fi
11186        ;;
11187
11188  dgux*)
11189    case $cc_basename in
11190      ec++*)
11191	# FIXME: insert proper C++ library support
11192	ld_shlibs_CXX=no
11193	;;
11194      ghcx*)
11195	# Green Hills C++ Compiler
11196	# FIXME: insert proper C++ library support
11197	ld_shlibs_CXX=no
11198	;;
11199      *)
11200	# FIXME: insert proper C++ library support
11201	ld_shlibs_CXX=no
11202	;;
11203    esac
11204    ;;
11205  freebsd[12]*)
11206    # C++ shared libraries reported to be fairly broken before switch to ELF
11207    ld_shlibs_CXX=no
11208    ;;
11209  freebsd-elf*)
11210    archive_cmds_need_lc_CXX=no
11211    ;;
11212  freebsd* | dragonfly*)
11213    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11214    # conventions
11215    ld_shlibs_CXX=yes
11216    ;;
11217  gnu*)
11218    ;;
11219  hpux9*)
11220    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11221    hardcode_libdir_separator_CXX=:
11222    export_dynamic_flag_spec_CXX='${wl}-E'
11223    hardcode_direct_CXX=yes
11224    hardcode_minus_L_CXX=yes # Not in the search PATH,
11225				# but as the default
11226				# location of the library.
11227
11228    case $cc_basename in
11229    CC*)
11230      # FIXME: insert proper C++ library support
11231      ld_shlibs_CXX=no
11232      ;;
11233    aCC*)
11234      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'
11235      # Commands to make compiler produce verbose output that lists
11236      # what "hidden" libraries, object files and flags are used when
11237      # linking a shared library.
11238      #
11239      # There doesn't appear to be a way to prevent this compiler from
11240      # explicitly linking system object files so we need to strip them
11241      # from the output so that they don't get included in the library
11242      # dependencies.
11243      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'
11244      ;;
11245    *)
11246      if test "$GXX" = yes; then
11247        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'
11248      else
11249        # FIXME: insert proper C++ library support
11250        ld_shlibs_CXX=no
11251      fi
11252      ;;
11253    esac
11254    ;;
11255  hpux10*|hpux11*)
11256    if test $with_gnu_ld = no; then
11257      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11258      hardcode_libdir_separator_CXX=:
11259
11260      case $host_cpu in
11261      hppa*64*|ia64*) ;;
11262      *)
11263	export_dynamic_flag_spec_CXX='${wl}-E'
11264        ;;
11265      esac
11266    fi
11267    case $host_cpu in
11268    hppa*64*|ia64*)
11269      hardcode_direct_CXX=no
11270      hardcode_shlibpath_var_CXX=no
11271      ;;
11272    *)
11273      hardcode_direct_CXX=yes
11274      hardcode_minus_L_CXX=yes # Not in the search PATH,
11275					      # but as the default
11276					      # location of the library.
11277      ;;
11278    esac
11279
11280    case $cc_basename in
11281      CC*)
11282	# FIXME: insert proper C++ library support
11283	ld_shlibs_CXX=no
11284	;;
11285      aCC*)
11286	case $host_cpu in
11287	hppa*64*)
11288	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11289	  ;;
11290	ia64*)
11291	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11292	  ;;
11293	*)
11294	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11295	  ;;
11296	esac
11297	# Commands to make compiler produce verbose output that lists
11298	# what "hidden" libraries, object files and flags are used when
11299	# linking a shared library.
11300	#
11301	# There doesn't appear to be a way to prevent this compiler from
11302	# explicitly linking system object files so we need to strip them
11303	# from the output so that they don't get included in the library
11304	# dependencies.
11305	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'
11306	;;
11307      *)
11308	if test "$GXX" = yes; then
11309	  if test $with_gnu_ld = no; then
11310	    case $host_cpu in
11311	    hppa*64*)
11312	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11313	      ;;
11314	    ia64*)
11315	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11316	      ;;
11317	    *)
11318	      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'
11319	      ;;
11320	    esac
11321	  fi
11322	else
11323	  # FIXME: insert proper C++ library support
11324	  ld_shlibs_CXX=no
11325	fi
11326	;;
11327    esac
11328    ;;
11329  interix[3-9]*)
11330    hardcode_direct_CXX=no
11331    hardcode_shlibpath_var_CXX=no
11332    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11333    export_dynamic_flag_spec_CXX='${wl}-E'
11334    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11335    # Instead, shared libraries are loaded at an image base (0x10000000 by
11336    # default) and relocated if they conflict, which is a slow very memory
11337    # consuming and fragmenting process.  To avoid this, we pick a random,
11338    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11339    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11340    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'
11341    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'
11342    ;;
11343  irix5* | irix6*)
11344    case $cc_basename in
11345      CC*)
11346	# SGI C++
11347	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'
11348
11349	# Archives containing C++ object files must be created using
11350	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11351	# necessary to make sure instantiated templates are included
11352	# in the archive.
11353	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11354	;;
11355      *)
11356	if test "$GXX" = yes; then
11357	  if test "$with_gnu_ld" = no; then
11358	    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'
11359	  else
11360	    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'
11361	  fi
11362	fi
11363	link_all_deplibs_CXX=yes
11364	;;
11365    esac
11366    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11367    hardcode_libdir_separator_CXX=:
11368    ;;
11369  linux* | k*bsd*-gnu)
11370    case $cc_basename in
11371      KCC*)
11372	# Kuck and Associates, Inc. (KAI) C++ Compiler
11373
11374	# KCC will only create a shared library if the output file
11375	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11376	# to its proper name (with version) after linking.
11377	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'
11378	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'
11379	# Commands to make compiler produce verbose output that lists
11380	# what "hidden" libraries, object files and flags are used when
11381	# linking a shared library.
11382	#
11383	# There doesn't appear to be a way to prevent this compiler from
11384	# explicitly linking system object files so we need to strip them
11385	# from the output so that they don't get included in the library
11386	# dependencies.
11387	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'
11388
11389	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11390	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11391
11392	# Archives containing C++ object files must be created using
11393	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11394	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11395	;;
11396      icpc*)
11397	# Intel C++
11398	with_gnu_ld=yes
11399	# version 8.0 and above of icpc choke on multiply defined symbols
11400	# if we add $predep_objects and $postdep_objects, however 7.1 and
11401	# earlier do not add the objects themselves.
11402	case `$CC -V 2>&1` in
11403	*"Version 7."*)
11404  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11405  	  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'
11406	  ;;
11407	*)  # Version 8.0 or newer
11408	  tmp_idyn=
11409	  case $host_cpu in
11410	    ia64*) tmp_idyn=' -i_dynamic';;
11411	  esac
11412  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11413	  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'
11414	  ;;
11415	esac
11416	archive_cmds_need_lc_CXX=no
11417	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11418	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11419	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11420	;;
11421      pgCC*)
11422        # Portland Group C++ compiler
11423	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11424  	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'
11425
11426	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11427	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11428	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'
11429        ;;
11430      cxx*)
11431	# Compaq C++
11432	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11433	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'
11434
11435	runpath_var=LD_RUN_PATH
11436	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11437	hardcode_libdir_separator_CXX=:
11438
11439	# Commands to make compiler produce verbose output that lists
11440	# what "hidden" libraries, object files and flags are used when
11441	# linking a shared library.
11442	#
11443	# There doesn't appear to be a way to prevent this compiler from
11444	# explicitly linking system object files so we need to strip them
11445	# from the output so that they don't get included in the library
11446	# dependencies.
11447	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'
11448	;;
11449      *)
11450	case `$CC -V 2>&1 | sed 5q` in
11451	*Sun\ C*)
11452	  # Sun C++ 5.9
11453	  no_undefined_flag_CXX=' -zdefs'
11454	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11455	  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'
11456	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11457	  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'
11458
11459	  # Not sure whether something based on
11460	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11461	  # would be better.
11462	  output_verbose_link_cmd='echo'
11463
11464	  # Archives containing C++ object files must be created using
11465	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11466	  # necessary to make sure instantiated templates are included
11467	  # in the archive.
11468	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11469	  ;;
11470	esac
11471	;;
11472    esac
11473    ;;
11474  lynxos*)
11475    # FIXME: insert proper C++ library support
11476    ld_shlibs_CXX=no
11477    ;;
11478  m88k*)
11479    # FIXME: insert proper C++ library support
11480    ld_shlibs_CXX=no
11481    ;;
11482  mvs*)
11483    case $cc_basename in
11484      cxx*)
11485	# FIXME: insert proper C++ library support
11486	ld_shlibs_CXX=no
11487	;;
11488      *)
11489	# FIXME: insert proper C++ library support
11490	ld_shlibs_CXX=no
11491	;;
11492    esac
11493    ;;
11494  netbsd*)
11495    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11496      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11497      wlarc=
11498      hardcode_libdir_flag_spec_CXX='-R$libdir'
11499      hardcode_direct_CXX=yes
11500      hardcode_shlibpath_var_CXX=no
11501    fi
11502    # Workaround some broken pre-1.5 toolchains
11503    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11504    ;;
11505  openbsd2*)
11506    # C++ shared libraries are fairly broken
11507    ld_shlibs_CXX=no
11508    ;;
11509  openbsd*)
11510    if test -f /usr/libexec/ld.so; then
11511      hardcode_direct_CXX=yes
11512      hardcode_shlibpath_var_CXX=no
11513      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11514      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11515      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11516	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11517	export_dynamic_flag_spec_CXX='${wl}-E'
11518	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11519      fi
11520      output_verbose_link_cmd='echo'
11521    else
11522      ld_shlibs_CXX=no
11523    fi
11524    ;;
11525  osf3*)
11526    case $cc_basename in
11527      KCC*)
11528	# Kuck and Associates, Inc. (KAI) C++ Compiler
11529
11530	# KCC will only create a shared library if the output file
11531	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11532	# to its proper name (with version) after linking.
11533	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'
11534
11535	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11536	hardcode_libdir_separator_CXX=:
11537
11538	# Archives containing C++ object files must be created using
11539	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11540	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11541
11542	;;
11543      RCC*)
11544	# Rational C++ 2.4.1
11545	# FIXME: insert proper C++ library support
11546	ld_shlibs_CXX=no
11547	;;
11548      cxx*)
11549	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11550	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'
11551
11552	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11553	hardcode_libdir_separator_CXX=:
11554
11555	# Commands to make compiler produce verbose output that lists
11556	# what "hidden" libraries, object files and flags are used when
11557	# linking a shared library.
11558	#
11559	# There doesn't appear to be a way to prevent this compiler from
11560	# explicitly linking system object files so we need to strip them
11561	# from the output so that they don't get included in the library
11562	# dependencies.
11563	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'
11564	;;
11565      *)
11566	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11567	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11568	  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'
11569
11570	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11571	  hardcode_libdir_separator_CXX=:
11572
11573	  # Commands to make compiler produce verbose output that lists
11574	  # what "hidden" libraries, object files and flags are used when
11575	  # linking a shared library.
11576	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11577
11578	else
11579	  # FIXME: insert proper C++ library support
11580	  ld_shlibs_CXX=no
11581	fi
11582	;;
11583    esac
11584    ;;
11585  osf4* | osf5*)
11586    case $cc_basename in
11587      KCC*)
11588	# Kuck and Associates, Inc. (KAI) C++ Compiler
11589
11590	# KCC will only create a shared library if the output file
11591	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11592	# to its proper name (with version) after linking.
11593	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'
11594
11595	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11596	hardcode_libdir_separator_CXX=:
11597
11598	# Archives containing C++ object files must be created using
11599	# the KAI C++ compiler.
11600	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11601	;;
11602      RCC*)
11603	# Rational C++ 2.4.1
11604	# FIXME: insert proper C++ library support
11605	ld_shlibs_CXX=no
11606	;;
11607      cxx*)
11608	allow_undefined_flag_CXX=' -expect_unresolved \*'
11609	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'
11610	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11611	  echo "-hidden">> $lib.exp~
11612	  $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~
11613	  $rm $lib.exp'
11614
11615	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11616	hardcode_libdir_separator_CXX=:
11617
11618	# Commands to make compiler produce verbose output that lists
11619	# what "hidden" libraries, object files and flags are used when
11620	# linking a shared library.
11621	#
11622	# There doesn't appear to be a way to prevent this compiler from
11623	# explicitly linking system object files so we need to strip them
11624	# from the output so that they don't get included in the library
11625	# dependencies.
11626	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'
11627	;;
11628      *)
11629	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11630	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11631	 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'
11632
11633	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11634	  hardcode_libdir_separator_CXX=:
11635
11636	  # Commands to make compiler produce verbose output that lists
11637	  # what "hidden" libraries, object files and flags are used when
11638	  # linking a shared library.
11639	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11640
11641	else
11642	  # FIXME: insert proper C++ library support
11643	  ld_shlibs_CXX=no
11644	fi
11645	;;
11646    esac
11647    ;;
11648  psos*)
11649    # FIXME: insert proper C++ library support
11650    ld_shlibs_CXX=no
11651    ;;
11652  sunos4*)
11653    case $cc_basename in
11654      CC*)
11655	# Sun C++ 4.x
11656	# FIXME: insert proper C++ library support
11657	ld_shlibs_CXX=no
11658	;;
11659      lcc*)
11660	# Lucid
11661	# FIXME: insert proper C++ library support
11662	ld_shlibs_CXX=no
11663	;;
11664      *)
11665	# FIXME: insert proper C++ library support
11666	ld_shlibs_CXX=no
11667	;;
11668    esac
11669    ;;
11670  solaris*)
11671    case $cc_basename in
11672      CC*)
11673	# Sun C++ 4.2, 5.x and Centerline C++
11674        archive_cmds_need_lc_CXX=yes
11675	no_undefined_flag_CXX=' -zdefs'
11676	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11677	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11678	$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'
11679
11680	hardcode_libdir_flag_spec_CXX='-R$libdir'
11681	hardcode_shlibpath_var_CXX=no
11682	case $host_os in
11683	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11684	  *)
11685	    # The compiler driver will combine and reorder linker options,
11686	    # but understands `-z linker_flag'.
11687	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11688	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11689	    ;;
11690	esac
11691	link_all_deplibs_CXX=yes
11692
11693	output_verbose_link_cmd='echo'
11694
11695	# Archives containing C++ object files must be created using
11696	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11697	# necessary to make sure instantiated templates are included
11698	# in the archive.
11699	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11700	;;
11701      gcx*)
11702	# Green Hills C++ Compiler
11703	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11704
11705	# The C++ compiler must be used to create the archive.
11706	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11707	;;
11708      *)
11709	# GNU C++ compiler with Solaris linker
11710	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11711	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11712	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11713	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11714	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11715		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11716
11717	    # Commands to make compiler produce verbose output that lists
11718	    # what "hidden" libraries, object files and flags are used when
11719	    # linking a shared library.
11720	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11721	  else
11722	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11723	    # platform.
11724	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11725	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11726		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11727
11728	    # Commands to make compiler produce verbose output that lists
11729	    # what "hidden" libraries, object files and flags are used when
11730	    # linking a shared library.
11731	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11732	  fi
11733
11734	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11735	  case $host_os in
11736	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11737	  *)
11738	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11739	    ;;
11740	  esac
11741	fi
11742	;;
11743    esac
11744    ;;
11745  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11746    no_undefined_flag_CXX='${wl}-z,text'
11747    archive_cmds_need_lc_CXX=no
11748    hardcode_shlibpath_var_CXX=no
11749    runpath_var='LD_RUN_PATH'
11750
11751    case $cc_basename in
11752      CC*)
11753	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11754	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11755	;;
11756      *)
11757	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11758	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11759	;;
11760    esac
11761    ;;
11762  sysv5* | sco3.2v5* | sco5v6*)
11763    # Note: We can NOT use -z defs as we might desire, because we do not
11764    # link with -lc, and that would cause any symbols used from libc to
11765    # always be unresolved, which means just about no library would
11766    # ever link correctly.  If we're not using GNU ld we use -z text
11767    # though, which does catch some bad symbols but isn't as heavy-handed
11768    # as -z defs.
11769    # For security reasons, it is highly recommended that you always
11770    # use absolute paths for naming shared libraries, and exclude the
11771    # DT_RUNPATH tag from executables and libraries.  But doing so
11772    # requires that you compile everything twice, which is a pain.
11773    # So that behaviour is only enabled if SCOABSPATH is set to a
11774    # non-empty value in the environment.  Most likely only useful for
11775    # creating official distributions of packages.
11776    # This is a hack until libtool officially supports absolute path
11777    # names for shared libraries.
11778    no_undefined_flag_CXX='${wl}-z,text'
11779    allow_undefined_flag_CXX='${wl}-z,nodefs'
11780    archive_cmds_need_lc_CXX=no
11781    hardcode_shlibpath_var_CXX=no
11782    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11783    hardcode_libdir_separator_CXX=':'
11784    link_all_deplibs_CXX=yes
11785    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11786    runpath_var='LD_RUN_PATH'
11787
11788    case $cc_basename in
11789      CC*)
11790	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11791	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11792	;;
11793      *)
11794	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11795	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11796	;;
11797    esac
11798    ;;
11799  tandem*)
11800    case $cc_basename in
11801      NCC*)
11802	# NonStop-UX NCC 3.20
11803	# FIXME: insert proper C++ library support
11804	ld_shlibs_CXX=no
11805	;;
11806      *)
11807	# FIXME: insert proper C++ library support
11808	ld_shlibs_CXX=no
11809	;;
11810    esac
11811    ;;
11812  vxworks*)
11813    # FIXME: insert proper C++ library support
11814    ld_shlibs_CXX=no
11815    ;;
11816  *)
11817    # FIXME: insert proper C++ library support
11818    ld_shlibs_CXX=no
11819    ;;
11820esac
11821{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11822echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11823test "$ld_shlibs_CXX" = no && can_build_shared=no
11824
11825GCC_CXX="$GXX"
11826LD_CXX="$LD"
11827
11828
11829cat > conftest.$ac_ext <<EOF
11830class Foo
11831{
11832public:
11833  Foo (void) { a = 0; }
11834private:
11835  int a;
11836};
11837EOF
11838
11839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11840  (eval $ac_compile) 2>&5
11841  ac_status=$?
11842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843  (exit $ac_status); }; then
11844  # Parse the compiler output and extract the necessary
11845  # objects, libraries and library flags.
11846
11847  # Sentinel used to keep track of whether or not we are before
11848  # the conftest object file.
11849  pre_test_object_deps_done=no
11850
11851  # The `*' in the case matches for architectures that use `case' in
11852  # $output_verbose_cmd can trigger glob expansion during the loop
11853  # eval without this substitution.
11854  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11855
11856  for p in `eval $output_verbose_link_cmd`; do
11857    case $p in
11858
11859    -L* | -R* | -l*)
11860       # Some compilers place space between "-{L,R}" and the path.
11861       # Remove the space.
11862       if test $p = "-L" \
11863	  || test $p = "-R"; then
11864	 prev=$p
11865	 continue
11866       else
11867	 prev=
11868       fi
11869
11870       if test "$pre_test_object_deps_done" = no; then
11871	 case $p in
11872	 -L* | -R*)
11873	   # Internal compiler library paths should come after those
11874	   # provided the user.  The postdeps already come after the
11875	   # user supplied libs so there is no need to process them.
11876	   if test -z "$compiler_lib_search_path_CXX"; then
11877	     compiler_lib_search_path_CXX="${prev}${p}"
11878	   else
11879	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11880	   fi
11881	   ;;
11882	 # The "-l" case would never come before the object being
11883	 # linked, so don't bother handling this case.
11884	 esac
11885       else
11886	 if test -z "$postdeps_CXX"; then
11887	   postdeps_CXX="${prev}${p}"
11888	 else
11889	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11890	 fi
11891       fi
11892       ;;
11893
11894    *.$objext)
11895       # This assumes that the test object file only shows up
11896       # once in the compiler output.
11897       if test "$p" = "conftest.$objext"; then
11898	 pre_test_object_deps_done=yes
11899	 continue
11900       fi
11901
11902       if test "$pre_test_object_deps_done" = no; then
11903	 if test -z "$predep_objects_CXX"; then
11904	   predep_objects_CXX="$p"
11905	 else
11906	   predep_objects_CXX="$predep_objects_CXX $p"
11907	 fi
11908       else
11909	 if test -z "$postdep_objects_CXX"; then
11910	   postdep_objects_CXX="$p"
11911	 else
11912	   postdep_objects_CXX="$postdep_objects_CXX $p"
11913	 fi
11914       fi
11915       ;;
11916
11917    *) ;; # Ignore the rest.
11918
11919    esac
11920  done
11921
11922  # Clean up.
11923  rm -f a.out a.exe
11924else
11925  echo "libtool.m4: error: problem compiling CXX test program"
11926fi
11927
11928$rm -f confest.$objext
11929
11930# PORTME: override above test on systems where it is broken
11931case $host_os in
11932interix[3-9]*)
11933  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11934  # hack all around it, let's just trust "g++" to DTRT.
11935  predep_objects_CXX=
11936  postdep_objects_CXX=
11937  postdeps_CXX=
11938  ;;
11939
11940linux*)
11941  case `$CC -V 2>&1 | sed 5q` in
11942  *Sun\ C*)
11943    # Sun C++ 5.9
11944    #
11945    # The more standards-conforming stlport4 library is
11946    # incompatible with the Cstd library. Avoid specifying
11947    # it if it's in CXXFLAGS. Ignore libCrun as
11948    # -library=stlport4 depends on it.
11949    case " $CXX $CXXFLAGS " in
11950    *" -library=stlport4 "*)
11951      solaris_use_stlport4=yes
11952      ;;
11953    esac
11954    if test "$solaris_use_stlport4" != yes; then
11955      postdeps_CXX='-library=Cstd -library=Crun'
11956    fi
11957    ;;
11958  esac
11959  ;;
11960
11961solaris*)
11962  case $cc_basename in
11963  CC*)
11964    # The more standards-conforming stlport4 library is
11965    # incompatible with the Cstd library. Avoid specifying
11966    # it if it's in CXXFLAGS. Ignore libCrun as
11967    # -library=stlport4 depends on it.
11968    case " $CXX $CXXFLAGS " in
11969    *" -library=stlport4 "*)
11970      solaris_use_stlport4=yes
11971      ;;
11972    esac
11973
11974    # Adding this requires a known-good setup of shared libraries for
11975    # Sun compiler versions before 5.6, else PIC objects from an old
11976    # archive will be linked into the output, leading to subtle bugs.
11977    if test "$solaris_use_stlport4" != yes; then
11978      postdeps_CXX='-library=Cstd -library=Crun'
11979    fi
11980    ;;
11981  esac
11982  ;;
11983esac
11984
11985
11986case " $postdeps_CXX " in
11987*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11988esac
11989
11990lt_prog_compiler_wl_CXX=
11991lt_prog_compiler_pic_CXX=
11992lt_prog_compiler_static_CXX=
11993
11994{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11995echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11996
11997  # C++ specific cases for pic, static, wl, etc.
11998  if test "$GXX" = yes; then
11999    lt_prog_compiler_wl_CXX='-Wl,'
12000    lt_prog_compiler_static_CXX='-static'
12001
12002    case $host_os in
12003    aix*)
12004      # All AIX code is PIC.
12005      if test "$host_cpu" = ia64; then
12006	# AIX 5 now supports IA64 processor
12007	lt_prog_compiler_static_CXX='-Bstatic'
12008      fi
12009      ;;
12010    amigaos*)
12011      # FIXME: we need at least 68020 code to build shared libraries, but
12012      # adding the `-m68020' flag to GCC prevents building anything better,
12013      # like `-m68040'.
12014      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12015      ;;
12016    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12017      # PIC is the default for these OSes.
12018      ;;
12019    mingw* | cygwin* | os2* | pw32*)
12020      # This hack is so that the source file can tell whether it is being
12021      # built for inclusion in a dll (and should export symbols for example).
12022      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12023      # (--disable-auto-import) libraries
12024      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12025      ;;
12026    darwin* | rhapsody*)
12027      # PIC is the default on this platform
12028      # Common symbols not allowed in MH_DYLIB files
12029      lt_prog_compiler_pic_CXX='-fno-common'
12030      ;;
12031    *djgpp*)
12032      # DJGPP does not support shared libraries at all
12033      lt_prog_compiler_pic_CXX=
12034      ;;
12035    interix[3-9]*)
12036      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12037      # Instead, we relocate shared libraries at runtime.
12038      ;;
12039    sysv4*MP*)
12040      if test -d /usr/nec; then
12041	lt_prog_compiler_pic_CXX=-Kconform_pic
12042      fi
12043      ;;
12044    hpux*)
12045      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12046      # not for PA HP-UX.
12047      case $host_cpu in
12048      hppa*64*|ia64*)
12049	;;
12050      *)
12051	lt_prog_compiler_pic_CXX='-fPIC'
12052	;;
12053      esac
12054      ;;
12055    *)
12056      lt_prog_compiler_pic_CXX='-fPIC'
12057      ;;
12058    esac
12059  else
12060    case $host_os in
12061      aix4* | aix5*)
12062	# All AIX code is PIC.
12063	if test "$host_cpu" = ia64; then
12064	  # AIX 5 now supports IA64 processor
12065	  lt_prog_compiler_static_CXX='-Bstatic'
12066	else
12067	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12068	fi
12069	;;
12070      chorus*)
12071	case $cc_basename in
12072	cxch68*)
12073	  # Green Hills C++ Compiler
12074	  # _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"
12075	  ;;
12076	esac
12077	;;
12078       darwin*)
12079         # PIC is the default on this platform
12080         # Common symbols not allowed in MH_DYLIB files
12081         case $cc_basename in
12082           xlc*)
12083           lt_prog_compiler_pic_CXX='-qnocommon'
12084           lt_prog_compiler_wl_CXX='-Wl,'
12085           ;;
12086         esac
12087       ;;
12088      dgux*)
12089	case $cc_basename in
12090	  ec++*)
12091	    lt_prog_compiler_pic_CXX='-KPIC'
12092	    ;;
12093	  ghcx*)
12094	    # Green Hills C++ Compiler
12095	    lt_prog_compiler_pic_CXX='-pic'
12096	    ;;
12097	  *)
12098	    ;;
12099	esac
12100	;;
12101      freebsd* | dragonfly*)
12102	# FreeBSD uses GNU C++
12103	;;
12104      hpux9* | hpux10* | hpux11*)
12105	case $cc_basename in
12106	  CC*)
12107	    lt_prog_compiler_wl_CXX='-Wl,'
12108	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12109	    if test "$host_cpu" != ia64; then
12110	      lt_prog_compiler_pic_CXX='+Z'
12111	    fi
12112	    ;;
12113	  aCC*)
12114	    lt_prog_compiler_wl_CXX='-Wl,'
12115	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12116	    case $host_cpu in
12117	    hppa*64*|ia64*)
12118	      # +Z the default
12119	      ;;
12120	    *)
12121	      lt_prog_compiler_pic_CXX='+Z'
12122	      ;;
12123	    esac
12124	    ;;
12125	  *)
12126	    ;;
12127	esac
12128	;;
12129      interix*)
12130	# This is c89, which is MS Visual C++ (no shared libs)
12131	# Anyone wants to do a port?
12132	;;
12133      irix5* | irix6* | nonstopux*)
12134	case $cc_basename in
12135	  CC*)
12136	    lt_prog_compiler_wl_CXX='-Wl,'
12137	    lt_prog_compiler_static_CXX='-non_shared'
12138	    # CC pic flag -KPIC is the default.
12139	    ;;
12140	  *)
12141	    ;;
12142	esac
12143	;;
12144      linux* | k*bsd*-gnu)
12145	case $cc_basename in
12146	  KCC*)
12147	    # KAI C++ Compiler
12148	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12149	    lt_prog_compiler_pic_CXX='-fPIC'
12150	    ;;
12151	  icpc* | ecpc*)
12152	    # Intel C++
12153	    lt_prog_compiler_wl_CXX='-Wl,'
12154	    lt_prog_compiler_pic_CXX='-KPIC'
12155	    lt_prog_compiler_static_CXX='-static'
12156	    ;;
12157	  pgCC*)
12158	    # Portland Group C++ compiler.
12159	    lt_prog_compiler_wl_CXX='-Wl,'
12160	    lt_prog_compiler_pic_CXX='-fpic'
12161	    lt_prog_compiler_static_CXX='-Bstatic'
12162	    ;;
12163	  cxx*)
12164	    # Compaq C++
12165	    # Make sure the PIC flag is empty.  It appears that all Alpha
12166	    # Linux and Compaq Tru64 Unix objects are PIC.
12167	    lt_prog_compiler_pic_CXX=
12168	    lt_prog_compiler_static_CXX='-non_shared'
12169	    ;;
12170	  *)
12171	    case `$CC -V 2>&1 | sed 5q` in
12172	    *Sun\ C*)
12173	      # Sun C++ 5.9
12174	      lt_prog_compiler_pic_CXX='-KPIC'
12175	      lt_prog_compiler_static_CXX='-Bstatic'
12176	      lt_prog_compiler_wl_CXX='-Qoption ld '
12177	      ;;
12178	    esac
12179	    ;;
12180	esac
12181	;;
12182      lynxos*)
12183	;;
12184      m88k*)
12185	;;
12186      mvs*)
12187	case $cc_basename in
12188	  cxx*)
12189	    lt_prog_compiler_pic_CXX='-W c,exportall'
12190	    ;;
12191	  *)
12192	    ;;
12193	esac
12194	;;
12195      netbsd*)
12196	;;
12197      osf3* | osf4* | osf5*)
12198	case $cc_basename in
12199	  KCC*)
12200	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12201	    ;;
12202	  RCC*)
12203	    # Rational C++ 2.4.1
12204	    lt_prog_compiler_pic_CXX='-pic'
12205	    ;;
12206	  cxx*)
12207	    # Digital/Compaq C++
12208	    lt_prog_compiler_wl_CXX='-Wl,'
12209	    # Make sure the PIC flag is empty.  It appears that all Alpha
12210	    # Linux and Compaq Tru64 Unix objects are PIC.
12211	    lt_prog_compiler_pic_CXX=
12212	    lt_prog_compiler_static_CXX='-non_shared'
12213	    ;;
12214	  *)
12215	    ;;
12216	esac
12217	;;
12218      psos*)
12219	;;
12220      solaris*)
12221	case $cc_basename in
12222	  CC*)
12223	    # Sun C++ 4.2, 5.x and Centerline C++
12224	    lt_prog_compiler_pic_CXX='-KPIC'
12225	    lt_prog_compiler_static_CXX='-Bstatic'
12226	    lt_prog_compiler_wl_CXX='-Qoption ld '
12227	    ;;
12228	  gcx*)
12229	    # Green Hills C++ Compiler
12230	    lt_prog_compiler_pic_CXX='-PIC'
12231	    ;;
12232	  *)
12233	    ;;
12234	esac
12235	;;
12236      sunos4*)
12237	case $cc_basename in
12238	  CC*)
12239	    # Sun C++ 4.x
12240	    lt_prog_compiler_pic_CXX='-pic'
12241	    lt_prog_compiler_static_CXX='-Bstatic'
12242	    ;;
12243	  lcc*)
12244	    # Lucid
12245	    lt_prog_compiler_pic_CXX='-pic'
12246	    ;;
12247	  *)
12248	    ;;
12249	esac
12250	;;
12251      tandem*)
12252	case $cc_basename in
12253	  NCC*)
12254	    # NonStop-UX NCC 3.20
12255	    lt_prog_compiler_pic_CXX='-KPIC'
12256	    ;;
12257	  *)
12258	    ;;
12259	esac
12260	;;
12261      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12262	case $cc_basename in
12263	  CC*)
12264	    lt_prog_compiler_wl_CXX='-Wl,'
12265	    lt_prog_compiler_pic_CXX='-KPIC'
12266	    lt_prog_compiler_static_CXX='-Bstatic'
12267	    ;;
12268	esac
12269	;;
12270      vxworks*)
12271	;;
12272      *)
12273	lt_prog_compiler_can_build_shared_CXX=no
12274	;;
12275    esac
12276  fi
12277
12278{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12279echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12280
12281#
12282# Check to make sure the PIC flag actually works.
12283#
12284if test -n "$lt_prog_compiler_pic_CXX"; then
12285
12286{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12287echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12288if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12289  echo $ECHO_N "(cached) $ECHO_C" >&6
12290else
12291  lt_prog_compiler_pic_works_CXX=no
12292  ac_outfile=conftest.$ac_objext
12293   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12294   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12295   # Insert the option either (1) after the last *FLAGS variable, or
12296   # (2) before a word containing "conftest.", or (3) at the end.
12297   # Note that $ac_compile itself does not contain backslashes and begins
12298   # with a dollar sign (not a hyphen), so the echo should work correctly.
12299   # The option is referenced via a variable to avoid confusing sed.
12300   lt_compile=`echo "$ac_compile" | $SED \
12301   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12302   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12303   -e 's:$: $lt_compiler_flag:'`
12304   (eval echo "\"\$as_me:12304: $lt_compile\"" >&5)
12305   (eval "$lt_compile" 2>conftest.err)
12306   ac_status=$?
12307   cat conftest.err >&5
12308   echo "$as_me:12308: \$? = $ac_status" >&5
12309   if (exit $ac_status) && test -s "$ac_outfile"; then
12310     # The compiler can only warn and ignore the option if not recognized
12311     # So say no if there are warnings other than the usual output.
12312     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12313     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12314     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12315       lt_prog_compiler_pic_works_CXX=yes
12316     fi
12317   fi
12318   $rm conftest*
12319
12320fi
12321{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12322echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12323
12324if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12325    case $lt_prog_compiler_pic_CXX in
12326     "" | " "*) ;;
12327     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12328     esac
12329else
12330    lt_prog_compiler_pic_CXX=
12331     lt_prog_compiler_can_build_shared_CXX=no
12332fi
12333
12334fi
12335case $host_os in
12336  # For platforms which do not support PIC, -DPIC is meaningless:
12337  *djgpp*)
12338    lt_prog_compiler_pic_CXX=
12339    ;;
12340  *)
12341    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12342    ;;
12343esac
12344
12345#
12346# Check to make sure the static flag actually works.
12347#
12348wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12349{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12350echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12351if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12352  echo $ECHO_N "(cached) $ECHO_C" >&6
12353else
12354  lt_prog_compiler_static_works_CXX=no
12355   save_LDFLAGS="$LDFLAGS"
12356   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12357   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12358   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12359     # The linker can only warn and ignore the option if not recognized
12360     # So say no if there are warnings
12361     if test -s conftest.err; then
12362       # Append any errors to the config.log.
12363       cat conftest.err 1>&5
12364       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12365       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12366       if diff conftest.exp conftest.er2 >/dev/null; then
12367         lt_prog_compiler_static_works_CXX=yes
12368       fi
12369     else
12370       lt_prog_compiler_static_works_CXX=yes
12371     fi
12372   fi
12373   $rm conftest*
12374   LDFLAGS="$save_LDFLAGS"
12375
12376fi
12377{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12378echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12379
12380if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12381    :
12382else
12383    lt_prog_compiler_static_CXX=
12384fi
12385
12386
12387{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12388echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12389if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12390  echo $ECHO_N "(cached) $ECHO_C" >&6
12391else
12392  lt_cv_prog_compiler_c_o_CXX=no
12393   $rm -r conftest 2>/dev/null
12394   mkdir conftest
12395   cd conftest
12396   mkdir out
12397   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12398
12399   lt_compiler_flag="-o out/conftest2.$ac_objext"
12400   # Insert the option either (1) after the last *FLAGS variable, or
12401   # (2) before a word containing "conftest.", or (3) at the end.
12402   # Note that $ac_compile itself does not contain backslashes and begins
12403   # with a dollar sign (not a hyphen), so the echo should work correctly.
12404   lt_compile=`echo "$ac_compile" | $SED \
12405   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12406   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12407   -e 's:$: $lt_compiler_flag:'`
12408   (eval echo "\"\$as_me:12408: $lt_compile\"" >&5)
12409   (eval "$lt_compile" 2>out/conftest.err)
12410   ac_status=$?
12411   cat out/conftest.err >&5
12412   echo "$as_me:12412: \$? = $ac_status" >&5
12413   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12414   then
12415     # The compiler can only warn and ignore the option if not recognized
12416     # So say no if there are warnings
12417     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12418     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12419     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12420       lt_cv_prog_compiler_c_o_CXX=yes
12421     fi
12422   fi
12423   chmod u+w . 2>&5
12424   $rm conftest*
12425   # SGI C++ compiler will create directory out/ii_files/ for
12426   # template instantiation
12427   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12428   $rm out/* && rmdir out
12429   cd ..
12430   rmdir conftest
12431   $rm conftest*
12432
12433fi
12434{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12435echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12436
12437
12438hard_links="nottested"
12439if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12440  # do not overwrite the value of need_locks provided by the user
12441  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12442echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12443  hard_links=yes
12444  $rm conftest*
12445  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12446  touch conftest.a
12447  ln conftest.a conftest.b 2>&5 || hard_links=no
12448  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12449  { echo "$as_me:$LINENO: result: $hard_links" >&5
12450echo "${ECHO_T}$hard_links" >&6; }
12451  if test "$hard_links" = no; then
12452    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12453echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12454    need_locks=warn
12455  fi
12456else
12457  need_locks=no
12458fi
12459
12460{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12461echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12462
12463  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12464  case $host_os in
12465  aix4* | aix5*)
12466    # If we're using GNU nm, then we don't want the "-C" option.
12467    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12468    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12469      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'
12470    else
12471      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'
12472    fi
12473    ;;
12474  pw32*)
12475    export_symbols_cmds_CXX="$ltdll_cmds"
12476  ;;
12477  cygwin* | mingw*)
12478    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'
12479  ;;
12480  *)
12481    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12482  ;;
12483  esac
12484
12485{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12486echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12487test "$ld_shlibs_CXX" = no && can_build_shared=no
12488
12489#
12490# Do we need to explicitly link libc?
12491#
12492case "x$archive_cmds_need_lc_CXX" in
12493x|xyes)
12494  # Assume -lc should be added
12495  archive_cmds_need_lc_CXX=yes
12496
12497  if test "$enable_shared" = yes && test "$GCC" = yes; then
12498    case $archive_cmds_CXX in
12499    *'~'*)
12500      # FIXME: we may have to deal with multi-command sequences.
12501      ;;
12502    '$CC '*)
12503      # Test whether the compiler implicitly links with -lc since on some
12504      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12505      # to ld, don't add -lc before -lgcc.
12506      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12507echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12508      $rm conftest*
12509      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12510
12511      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12512  (eval $ac_compile) 2>&5
12513  ac_status=$?
12514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515  (exit $ac_status); } 2>conftest.err; then
12516        soname=conftest
12517        lib=conftest
12518        libobjs=conftest.$ac_objext
12519        deplibs=
12520        wl=$lt_prog_compiler_wl_CXX
12521	pic_flag=$lt_prog_compiler_pic_CXX
12522        compiler_flags=-v
12523        linker_flags=-v
12524        verstring=
12525        output_objdir=.
12526        libname=conftest
12527        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12528        allow_undefined_flag_CXX=
12529        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12530  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12531  ac_status=$?
12532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533  (exit $ac_status); }
12534        then
12535	  archive_cmds_need_lc_CXX=no
12536        else
12537	  archive_cmds_need_lc_CXX=yes
12538        fi
12539        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12540      else
12541        cat conftest.err 1>&5
12542      fi
12543      $rm conftest*
12544      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12545echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12546      ;;
12547    esac
12548  fi
12549  ;;
12550esac
12551
12552{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12553echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12554library_names_spec=
12555libname_spec='lib$name'
12556soname_spec=
12557shrext_cmds=".so"
12558postinstall_cmds=
12559postuninstall_cmds=
12560finish_cmds=
12561finish_eval=
12562shlibpath_var=
12563shlibpath_overrides_runpath=unknown
12564version_type=none
12565dynamic_linker="$host_os ld.so"
12566sys_lib_dlsearch_path_spec="/lib /usr/lib"
12567
12568need_lib_prefix=unknown
12569hardcode_into_libs=no
12570
12571# when you set need_version to no, make sure it does not cause -set_version
12572# flags to be left without arguments
12573need_version=unknown
12574
12575case $host_os in
12576aix3*)
12577  version_type=linux
12578  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12579  shlibpath_var=LIBPATH
12580
12581  # AIX 3 has no versioning support, so we append a major version to the name.
12582  soname_spec='${libname}${release}${shared_ext}$major'
12583  ;;
12584
12585aix4* | aix5*)
12586  version_type=linux
12587  need_lib_prefix=no
12588  need_version=no
12589  hardcode_into_libs=yes
12590  if test "$host_cpu" = ia64; then
12591    # AIX 5 supports IA64
12592    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12593    shlibpath_var=LD_LIBRARY_PATH
12594  else
12595    # With GCC up to 2.95.x, collect2 would create an import file
12596    # for dependence libraries.  The import file would start with
12597    # the line `#! .'.  This would cause the generated library to
12598    # depend on `.', always an invalid library.  This was fixed in
12599    # development snapshots of GCC prior to 3.0.
12600    case $host_os in
12601      aix4 | aix4.[01] | aix4.[01].*)
12602      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12603	   echo ' yes '
12604	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12605	:
12606      else
12607	can_build_shared=no
12608      fi
12609      ;;
12610    esac
12611    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12612    # soname into executable. Probably we can add versioning support to
12613    # collect2, so additional links can be useful in future.
12614    if test "$aix_use_runtimelinking" = yes; then
12615      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12616      # instead of lib<name>.a to let people know that these are not
12617      # typical AIX shared libraries.
12618      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12619    else
12620      # We preserve .a as extension for shared libraries through AIX4.2
12621      # and later when we are not doing run time linking.
12622      library_names_spec='${libname}${release}.a $libname.a'
12623      soname_spec='${libname}${release}${shared_ext}$major'
12624    fi
12625    shlibpath_var=LIBPATH
12626  fi
12627  ;;
12628
12629amigaos*)
12630  library_names_spec='$libname.ixlibrary $libname.a'
12631  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12632  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'
12633  ;;
12634
12635beos*)
12636  library_names_spec='${libname}${shared_ext}'
12637  dynamic_linker="$host_os ld.so"
12638  shlibpath_var=LIBRARY_PATH
12639  ;;
12640
12641bsdi[45]*)
12642  version_type=linux
12643  need_version=no
12644  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12645  soname_spec='${libname}${release}${shared_ext}$major'
12646  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12647  shlibpath_var=LD_LIBRARY_PATH
12648  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12649  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12650  # the default ld.so.conf also contains /usr/contrib/lib and
12651  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12652  # libtool to hard-code these into programs
12653  ;;
12654
12655cygwin* | mingw* | pw32*)
12656  version_type=windows
12657  shrext_cmds=".dll"
12658  need_version=no
12659  need_lib_prefix=no
12660
12661  case $GCC,$host_os in
12662  yes,cygwin* | yes,mingw* | yes,pw32*)
12663    library_names_spec='$libname.dll.a'
12664    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12665    postinstall_cmds='base_file=`basename \${file}`~
12666      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12667      dldir=$destdir/`dirname \$dlpath`~
12668      test -d \$dldir || mkdir -p \$dldir~
12669      $install_prog $dir/$dlname \$dldir/$dlname~
12670      chmod a+x \$dldir/$dlname'
12671    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12672      dlpath=$dir/\$dldll~
12673       $rm \$dlpath'
12674    shlibpath_overrides_runpath=yes
12675
12676    case $host_os in
12677    cygwin*)
12678      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12679      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12680      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12681      ;;
12682    mingw*)
12683      # MinGW DLLs use traditional 'lib' prefix
12684      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12685      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12686      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12687        # It is most probably a Windows format PATH printed by
12688        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12689        # path with ; separators, and with drive letters. We can handle the
12690        # drive letters (cygwin fileutils understands them), so leave them,
12691        # especially as we might pass files found there to a mingw objdump,
12692        # which wouldn't understand a cygwinified path. Ahh.
12693        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12694      else
12695        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12696      fi
12697      ;;
12698    pw32*)
12699      # pw32 DLLs use 'pw' prefix rather than 'lib'
12700      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12701      ;;
12702    esac
12703    ;;
12704
12705  *)
12706    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12707    ;;
12708  esac
12709  dynamic_linker='Win32 ld.exe'
12710  # FIXME: first we should search . and the directory the executable is in
12711  shlibpath_var=PATH
12712  ;;
12713
12714darwin* | rhapsody*)
12715  dynamic_linker="$host_os dyld"
12716  version_type=darwin
12717  need_lib_prefix=no
12718  need_version=no
12719  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12720  soname_spec='${libname}${release}${major}$shared_ext'
12721  shlibpath_overrides_runpath=yes
12722  shlibpath_var=DYLD_LIBRARY_PATH
12723  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12724
12725  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12726  ;;
12727
12728dgux*)
12729  version_type=linux
12730  need_lib_prefix=no
12731  need_version=no
12732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12733  soname_spec='${libname}${release}${shared_ext}$major'
12734  shlibpath_var=LD_LIBRARY_PATH
12735  ;;
12736
12737freebsd1*)
12738  dynamic_linker=no
12739  ;;
12740
12741freebsd* | dragonfly*)
12742  # DragonFly does not have aout.  When/if they implement a new
12743  # versioning mechanism, adjust this.
12744  if test -x /usr/bin/objformat; then
12745    objformat=`/usr/bin/objformat`
12746  else
12747    case $host_os in
12748    freebsd[123]*) objformat=aout ;;
12749    *) objformat=elf ;;
12750    esac
12751  fi
12752  version_type=freebsd-$objformat
12753  case $version_type in
12754    freebsd-elf*)
12755      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12756      need_version=no
12757      need_lib_prefix=no
12758      ;;
12759    freebsd-*)
12760      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12761      need_version=yes
12762      ;;
12763  esac
12764  shlibpath_var=LD_LIBRARY_PATH
12765  case $host_os in
12766  freebsd2*)
12767    shlibpath_overrides_runpath=yes
12768    ;;
12769  freebsd3.[01]* | freebsdelf3.[01]*)
12770    shlibpath_overrides_runpath=yes
12771    hardcode_into_libs=yes
12772    ;;
12773  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12774  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12775    shlibpath_overrides_runpath=no
12776    hardcode_into_libs=yes
12777    ;;
12778  *) # from 4.6 on, and DragonFly
12779    shlibpath_overrides_runpath=yes
12780    hardcode_into_libs=yes
12781    ;;
12782  esac
12783  ;;
12784
12785gnu*)
12786  version_type=linux
12787  need_lib_prefix=no
12788  need_version=no
12789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12790  soname_spec='${libname}${release}${shared_ext}$major'
12791  shlibpath_var=LD_LIBRARY_PATH
12792  hardcode_into_libs=yes
12793  ;;
12794
12795hpux9* | hpux10* | hpux11*)
12796  # Give a soname corresponding to the major version so that dld.sl refuses to
12797  # link against other versions.
12798  version_type=sunos
12799  need_lib_prefix=no
12800  need_version=no
12801  case $host_cpu in
12802  ia64*)
12803    shrext_cmds='.so'
12804    hardcode_into_libs=yes
12805    dynamic_linker="$host_os dld.so"
12806    shlibpath_var=LD_LIBRARY_PATH
12807    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12808    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12809    soname_spec='${libname}${release}${shared_ext}$major'
12810    if test "X$HPUX_IA64_MODE" = X32; then
12811      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12812    else
12813      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12814    fi
12815    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12816    ;;
12817   hppa*64*)
12818     shrext_cmds='.sl'
12819     hardcode_into_libs=yes
12820     dynamic_linker="$host_os dld.sl"
12821     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12822     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12823     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12824     soname_spec='${libname}${release}${shared_ext}$major'
12825     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12826     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12827     ;;
12828   *)
12829    shrext_cmds='.sl'
12830    dynamic_linker="$host_os dld.sl"
12831    shlibpath_var=SHLIB_PATH
12832    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12833    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12834    soname_spec='${libname}${release}${shared_ext}$major'
12835    ;;
12836  esac
12837  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12838  postinstall_cmds='chmod 555 $lib'
12839  ;;
12840
12841interix[3-9]*)
12842  version_type=linux
12843  need_lib_prefix=no
12844  need_version=no
12845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12846  soname_spec='${libname}${release}${shared_ext}$major'
12847  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12848  shlibpath_var=LD_LIBRARY_PATH
12849  shlibpath_overrides_runpath=no
12850  hardcode_into_libs=yes
12851  ;;
12852
12853irix5* | irix6* | nonstopux*)
12854  case $host_os in
12855    nonstopux*) version_type=nonstopux ;;
12856    *)
12857	if test "$lt_cv_prog_gnu_ld" = yes; then
12858		version_type=linux
12859	else
12860		version_type=irix
12861	fi ;;
12862  esac
12863  need_lib_prefix=no
12864  need_version=no
12865  soname_spec='${libname}${release}${shared_ext}$major'
12866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12867  case $host_os in
12868  irix5* | nonstopux*)
12869    libsuff= shlibsuff=
12870    ;;
12871  *)
12872    case $LD in # libtool.m4 will add one of these switches to LD
12873    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12874      libsuff= shlibsuff= libmagic=32-bit;;
12875    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12876      libsuff=32 shlibsuff=N32 libmagic=N32;;
12877    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12878      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12879    *) libsuff= shlibsuff= libmagic=never-match;;
12880    esac
12881    ;;
12882  esac
12883  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12884  shlibpath_overrides_runpath=no
12885  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12886  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12887  hardcode_into_libs=yes
12888  ;;
12889
12890# No shared lib support for Linux oldld, aout, or coff.
12891linux*oldld* | linux*aout* | linux*coff*)
12892  dynamic_linker=no
12893  ;;
12894
12895# This must be Linux ELF.
12896linux* | k*bsd*-gnu)
12897  version_type=linux
12898  need_lib_prefix=no
12899  need_version=no
12900  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12901  soname_spec='${libname}${release}${shared_ext}$major'
12902  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12903  shlibpath_var=LD_LIBRARY_PATH
12904  shlibpath_overrides_runpath=no
12905  # This implies no fast_install, which is unacceptable.
12906  # Some rework will be needed to allow for fast_install
12907  # before this can be enabled.
12908  hardcode_into_libs=yes
12909
12910  # Append ld.so.conf contents to the search path
12911  if test -f /etc/ld.so.conf; then
12912    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' ' '`
12913    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12914  fi
12915
12916  # We used to test for /lib/ld.so.1 and disable shared libraries on
12917  # powerpc, because MkLinux only supported shared libraries with the
12918  # GNU dynamic linker.  Since this was broken with cross compilers,
12919  # most powerpc-linux boxes support dynamic linking these days and
12920  # people can always --disable-shared, the test was removed, and we
12921  # assume the GNU/Linux dynamic linker is in use.
12922  dynamic_linker='GNU/Linux ld.so'
12923  ;;
12924
12925netbsd*)
12926  version_type=sunos
12927  need_lib_prefix=no
12928  need_version=no
12929  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12930    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12931    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12932    dynamic_linker='NetBSD (a.out) ld.so'
12933  else
12934    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12935    soname_spec='${libname}${release}${shared_ext}$major'
12936    dynamic_linker='NetBSD ld.elf_so'
12937  fi
12938  shlibpath_var=LD_LIBRARY_PATH
12939  shlibpath_overrides_runpath=yes
12940  hardcode_into_libs=yes
12941  ;;
12942
12943newsos6)
12944  version_type=linux
12945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12946  shlibpath_var=LD_LIBRARY_PATH
12947  shlibpath_overrides_runpath=yes
12948  ;;
12949
12950nto-qnx*)
12951  version_type=linux
12952  need_lib_prefix=no
12953  need_version=no
12954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12955  soname_spec='${libname}${release}${shared_ext}$major'
12956  shlibpath_var=LD_LIBRARY_PATH
12957  shlibpath_overrides_runpath=yes
12958  ;;
12959
12960openbsd*)
12961  version_type=sunos
12962  sys_lib_dlsearch_path_spec="/usr/lib"
12963  need_lib_prefix=no
12964  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12965  case $host_os in
12966    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12967    *)                         need_version=no  ;;
12968  esac
12969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12970  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12971  shlibpath_var=LD_LIBRARY_PATH
12972  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12973    case $host_os in
12974      openbsd2.[89] | openbsd2.[89].*)
12975	shlibpath_overrides_runpath=no
12976	;;
12977      *)
12978	shlibpath_overrides_runpath=yes
12979	;;
12980      esac
12981  else
12982    shlibpath_overrides_runpath=yes
12983  fi
12984  ;;
12985
12986os2*)
12987  libname_spec='$name'
12988  shrext_cmds=".dll"
12989  need_lib_prefix=no
12990  library_names_spec='$libname${shared_ext} $libname.a'
12991  dynamic_linker='OS/2 ld.exe'
12992  shlibpath_var=LIBPATH
12993  ;;
12994
12995osf3* | osf4* | osf5*)
12996  version_type=osf
12997  need_lib_prefix=no
12998  need_version=no
12999  soname_spec='${libname}${release}${shared_ext}$major'
13000  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13001  shlibpath_var=LD_LIBRARY_PATH
13002  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13003  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13004  ;;
13005
13006rdos*)
13007  dynamic_linker=no
13008  ;;
13009
13010solaris*)
13011  version_type=linux
13012  need_lib_prefix=no
13013  need_version=no
13014  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13015  soname_spec='${libname}${release}${shared_ext}$major'
13016  shlibpath_var=LD_LIBRARY_PATH
13017  shlibpath_overrides_runpath=yes
13018  hardcode_into_libs=yes
13019  # ldd complains unless libraries are executable
13020  postinstall_cmds='chmod +x $lib'
13021  ;;
13022
13023sunos4*)
13024  version_type=sunos
13025  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13026  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13027  shlibpath_var=LD_LIBRARY_PATH
13028  shlibpath_overrides_runpath=yes
13029  if test "$with_gnu_ld" = yes; then
13030    need_lib_prefix=no
13031  fi
13032  need_version=yes
13033  ;;
13034
13035sysv4 | sysv4.3*)
13036  version_type=linux
13037  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13038  soname_spec='${libname}${release}${shared_ext}$major'
13039  shlibpath_var=LD_LIBRARY_PATH
13040  case $host_vendor in
13041    sni)
13042      shlibpath_overrides_runpath=no
13043      need_lib_prefix=no
13044      export_dynamic_flag_spec='${wl}-Blargedynsym'
13045      runpath_var=LD_RUN_PATH
13046      ;;
13047    siemens)
13048      need_lib_prefix=no
13049      ;;
13050    motorola)
13051      need_lib_prefix=no
13052      need_version=no
13053      shlibpath_overrides_runpath=no
13054      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13055      ;;
13056  esac
13057  ;;
13058
13059sysv4*MP*)
13060  if test -d /usr/nec ;then
13061    version_type=linux
13062    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13063    soname_spec='$libname${shared_ext}.$major'
13064    shlibpath_var=LD_LIBRARY_PATH
13065  fi
13066  ;;
13067
13068sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13069  version_type=freebsd-elf
13070  need_lib_prefix=no
13071  need_version=no
13072  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13073  soname_spec='${libname}${release}${shared_ext}$major'
13074  shlibpath_var=LD_LIBRARY_PATH
13075  hardcode_into_libs=yes
13076  if test "$with_gnu_ld" = yes; then
13077    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13078    shlibpath_overrides_runpath=no
13079  else
13080    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13081    shlibpath_overrides_runpath=yes
13082    case $host_os in
13083      sco3.2v5*)
13084        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13085	;;
13086    esac
13087  fi
13088  sys_lib_dlsearch_path_spec='/usr/lib'
13089  ;;
13090
13091uts4*)
13092  version_type=linux
13093  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13094  soname_spec='${libname}${release}${shared_ext}$major'
13095  shlibpath_var=LD_LIBRARY_PATH
13096  ;;
13097
13098*)
13099  dynamic_linker=no
13100  ;;
13101esac
13102{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13103echo "${ECHO_T}$dynamic_linker" >&6; }
13104test "$dynamic_linker" = no && can_build_shared=no
13105
13106variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13107if test "$GCC" = yes; then
13108  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13109fi
13110
13111{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13112echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13113hardcode_action_CXX=
13114if test -n "$hardcode_libdir_flag_spec_CXX" || \
13115   test -n "$runpath_var_CXX" || \
13116   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13117
13118  # We can hardcode non-existant directories.
13119  if test "$hardcode_direct_CXX" != no &&
13120     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13121     # have to relink, otherwise we might link with an installed library
13122     # when we should be linking with a yet-to-be-installed one
13123     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13124     test "$hardcode_minus_L_CXX" != no; then
13125    # Linking always hardcodes the temporary library directory.
13126    hardcode_action_CXX=relink
13127  else
13128    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13129    hardcode_action_CXX=immediate
13130  fi
13131else
13132  # We cannot hardcode anything, or else we can only hardcode existing
13133  # directories.
13134  hardcode_action_CXX=unsupported
13135fi
13136{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13137echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13138
13139if test "$hardcode_action_CXX" = relink; then
13140  # Fast installation is not supported
13141  enable_fast_install=no
13142elif test "$shlibpath_overrides_runpath" = yes ||
13143     test "$enable_shared" = no; then
13144  # Fast installation is not necessary
13145  enable_fast_install=needless
13146fi
13147
13148
13149# The else clause should only fire when bootstrapping the
13150# libtool distribution, otherwise you forgot to ship ltmain.sh
13151# with your package, and you will get complaints that there are
13152# no rules to generate ltmain.sh.
13153if test -f "$ltmain"; then
13154  # See if we are running on zsh, and set the options which allow our commands through
13155  # without removal of \ escapes.
13156  if test -n "${ZSH_VERSION+set}" ; then
13157    setopt NO_GLOB_SUBST
13158  fi
13159  # Now quote all the things that may contain metacharacters while being
13160  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13161  # variables and quote the copies for generation of the libtool script.
13162  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13163    SED SHELL STRIP \
13164    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13165    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13166    deplibs_check_method reload_flag reload_cmds need_locks \
13167    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13168    lt_cv_sys_global_symbol_to_c_name_address \
13169    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13170    old_postinstall_cmds old_postuninstall_cmds \
13171    compiler_CXX \
13172    CC_CXX \
13173    LD_CXX \
13174    lt_prog_compiler_wl_CXX \
13175    lt_prog_compiler_pic_CXX \
13176    lt_prog_compiler_static_CXX \
13177    lt_prog_compiler_no_builtin_flag_CXX \
13178    export_dynamic_flag_spec_CXX \
13179    thread_safe_flag_spec_CXX \
13180    whole_archive_flag_spec_CXX \
13181    enable_shared_with_static_runtimes_CXX \
13182    old_archive_cmds_CXX \
13183    old_archive_from_new_cmds_CXX \
13184    predep_objects_CXX \
13185    postdep_objects_CXX \
13186    predeps_CXX \
13187    postdeps_CXX \
13188    compiler_lib_search_path_CXX \
13189    archive_cmds_CXX \
13190    archive_expsym_cmds_CXX \
13191    postinstall_cmds_CXX \
13192    postuninstall_cmds_CXX \
13193    old_archive_from_expsyms_cmds_CXX \
13194    allow_undefined_flag_CXX \
13195    no_undefined_flag_CXX \
13196    export_symbols_cmds_CXX \
13197    hardcode_libdir_flag_spec_CXX \
13198    hardcode_libdir_flag_spec_ld_CXX \
13199    hardcode_libdir_separator_CXX \
13200    hardcode_automatic_CXX \
13201    module_cmds_CXX \
13202    module_expsym_cmds_CXX \
13203    lt_cv_prog_compiler_c_o_CXX \
13204    fix_srcfile_path_CXX \
13205    exclude_expsyms_CXX \
13206    include_expsyms_CXX; do
13207
13208    case $var in
13209    old_archive_cmds_CXX | \
13210    old_archive_from_new_cmds_CXX | \
13211    archive_cmds_CXX | \
13212    archive_expsym_cmds_CXX | \
13213    module_cmds_CXX | \
13214    module_expsym_cmds_CXX | \
13215    old_archive_from_expsyms_cmds_CXX | \
13216    export_symbols_cmds_CXX | \
13217    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13218    postinstall_cmds | postuninstall_cmds | \
13219    old_postinstall_cmds | old_postuninstall_cmds | \
13220    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13221      # Double-quote double-evaled strings.
13222      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13223      ;;
13224    *)
13225      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13226      ;;
13227    esac
13228  done
13229
13230  case $lt_echo in
13231  *'\$0 --fallback-echo"')
13232    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13233    ;;
13234  esac
13235
13236cfgfile="$ofile"
13237
13238  cat <<__EOF__ >> "$cfgfile"
13239# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13240
13241# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13242
13243# Shell to use when invoking shell scripts.
13244SHELL=$lt_SHELL
13245
13246# Whether or not to build shared libraries.
13247build_libtool_libs=$enable_shared
13248
13249# Whether or not to build static libraries.
13250build_old_libs=$enable_static
13251
13252# Whether or not to add -lc for building shared libraries.
13253build_libtool_need_lc=$archive_cmds_need_lc_CXX
13254
13255# Whether or not to disallow shared libs when runtime libs are static
13256allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13257
13258# Whether or not to optimize for fast installation.
13259fast_install=$enable_fast_install
13260
13261# The host system.
13262host_alias=$host_alias
13263host=$host
13264host_os=$host_os
13265
13266# The build system.
13267build_alias=$build_alias
13268build=$build
13269build_os=$build_os
13270
13271# An echo program that does not interpret backslashes.
13272echo=$lt_echo
13273
13274# The archiver.
13275AR=$lt_AR
13276AR_FLAGS=$lt_AR_FLAGS
13277
13278# A C compiler.
13279LTCC=$lt_LTCC
13280
13281# LTCC compiler flags.
13282LTCFLAGS=$lt_LTCFLAGS
13283
13284# A language-specific compiler.
13285CC=$lt_compiler_CXX
13286
13287# Is the compiler the GNU C compiler?
13288with_gcc=$GCC_CXX
13289
13290# An ERE matcher.
13291EGREP=$lt_EGREP
13292
13293# The linker used to build libraries.
13294LD=$lt_LD_CXX
13295
13296# Whether we need hard or soft links.
13297LN_S=$lt_LN_S
13298
13299# A BSD-compatible nm program.
13300NM=$lt_NM
13301
13302# A symbol stripping program
13303STRIP=$lt_STRIP
13304
13305# Used to examine libraries when file_magic_cmd begins "file"
13306MAGIC_CMD=$MAGIC_CMD
13307
13308# Used on cygwin: DLL creation program.
13309DLLTOOL="$DLLTOOL"
13310
13311# Used on cygwin: object dumper.
13312OBJDUMP="$OBJDUMP"
13313
13314# Used on cygwin: assembler.
13315AS="$AS"
13316
13317# The name of the directory that contains temporary libtool files.
13318objdir=$objdir
13319
13320# How to create reloadable object files.
13321reload_flag=$lt_reload_flag
13322reload_cmds=$lt_reload_cmds
13323
13324# How to pass a linker flag through the compiler.
13325wl=$lt_lt_prog_compiler_wl_CXX
13326
13327# Object file suffix (normally "o").
13328objext="$ac_objext"
13329
13330# Old archive suffix (normally "a").
13331libext="$libext"
13332
13333# Shared library suffix (normally ".so").
13334shrext_cmds='$shrext_cmds'
13335
13336# Executable file suffix (normally "").
13337exeext="$exeext"
13338
13339# Additional compiler flags for building library objects.
13340pic_flag=$lt_lt_prog_compiler_pic_CXX
13341pic_mode=$pic_mode
13342
13343# What is the maximum length of a command?
13344max_cmd_len=$lt_cv_sys_max_cmd_len
13345
13346# Does compiler simultaneously support -c and -o options?
13347compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13348
13349# Must we lock files when doing compilation?
13350need_locks=$lt_need_locks
13351
13352# Do we need the lib prefix for modules?
13353need_lib_prefix=$need_lib_prefix
13354
13355# Do we need a version for libraries?
13356need_version=$need_version
13357
13358# Whether dlopen is supported.
13359dlopen_support=$enable_dlopen
13360
13361# Whether dlopen of programs is supported.
13362dlopen_self=$enable_dlopen_self
13363
13364# Whether dlopen of statically linked programs is supported.
13365dlopen_self_static=$enable_dlopen_self_static
13366
13367# Compiler flag to prevent dynamic linking.
13368link_static_flag=$lt_lt_prog_compiler_static_CXX
13369
13370# Compiler flag to turn off builtin functions.
13371no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13372
13373# Compiler flag to allow reflexive dlopens.
13374export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13375
13376# Compiler flag to generate shared objects directly from archives.
13377whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13378
13379# Compiler flag to generate thread-safe objects.
13380thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13381
13382# Library versioning type.
13383version_type=$version_type
13384
13385# Format of library name prefix.
13386libname_spec=$lt_libname_spec
13387
13388# List of archive names.  First name is the real one, the rest are links.
13389# The last name is the one that the linker finds with -lNAME.
13390library_names_spec=$lt_library_names_spec
13391
13392# The coded name of the library, if different from the real name.
13393soname_spec=$lt_soname_spec
13394
13395# Commands used to build and install an old-style archive.
13396RANLIB=$lt_RANLIB
13397old_archive_cmds=$lt_old_archive_cmds_CXX
13398old_postinstall_cmds=$lt_old_postinstall_cmds
13399old_postuninstall_cmds=$lt_old_postuninstall_cmds
13400
13401# Create an old-style archive from a shared archive.
13402old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13403
13404# Create a temporary old-style archive to link instead of a shared archive.
13405old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13406
13407# Commands used to build and install a shared archive.
13408archive_cmds=$lt_archive_cmds_CXX
13409archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13410postinstall_cmds=$lt_postinstall_cmds
13411postuninstall_cmds=$lt_postuninstall_cmds
13412
13413# Commands used to build a loadable module (assumed same as above if empty)
13414module_cmds=$lt_module_cmds_CXX
13415module_expsym_cmds=$lt_module_expsym_cmds_CXX
13416
13417# Commands to strip libraries.
13418old_striplib=$lt_old_striplib
13419striplib=$lt_striplib
13420
13421# Dependencies to place before the objects being linked to create a
13422# shared library.
13423predep_objects=$lt_predep_objects_CXX
13424
13425# Dependencies to place after the objects being linked to create a
13426# shared library.
13427postdep_objects=$lt_postdep_objects_CXX
13428
13429# Dependencies to place before the objects being linked to create a
13430# shared library.
13431predeps=$lt_predeps_CXX
13432
13433# Dependencies to place after the objects being linked to create a
13434# shared library.
13435postdeps=$lt_postdeps_CXX
13436
13437# The library search path used internally by the compiler when linking
13438# a shared library.
13439compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13440
13441# Method to check whether dependent libraries are shared objects.
13442deplibs_check_method=$lt_deplibs_check_method
13443
13444# Command to use when deplibs_check_method == file_magic.
13445file_magic_cmd=$lt_file_magic_cmd
13446
13447# Flag that allows shared libraries with undefined symbols to be built.
13448allow_undefined_flag=$lt_allow_undefined_flag_CXX
13449
13450# Flag that forces no undefined symbols.
13451no_undefined_flag=$lt_no_undefined_flag_CXX
13452
13453# Commands used to finish a libtool library installation in a directory.
13454finish_cmds=$lt_finish_cmds
13455
13456# Same as above, but a single script fragment to be evaled but not shown.
13457finish_eval=$lt_finish_eval
13458
13459# Take the output of nm and produce a listing of raw symbols and C names.
13460global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13461
13462# Transform the output of nm in a proper C declaration
13463global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13464
13465# Transform the output of nm in a C name address pair
13466global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13467
13468# This is the shared library runtime path variable.
13469runpath_var=$runpath_var
13470
13471# This is the shared library path variable.
13472shlibpath_var=$shlibpath_var
13473
13474# Is shlibpath searched before the hard-coded library search path?
13475shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13476
13477# How to hardcode a shared library path into an executable.
13478hardcode_action=$hardcode_action_CXX
13479
13480# Whether we should hardcode library paths into libraries.
13481hardcode_into_libs=$hardcode_into_libs
13482
13483# Flag to hardcode \$libdir into a binary during linking.
13484# This must work even if \$libdir does not exist.
13485hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13486
13487# If ld is used when linking, flag to hardcode \$libdir into
13488# a binary during linking. This must work even if \$libdir does
13489# not exist.
13490hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13491
13492# Whether we need a single -rpath flag with a separated argument.
13493hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13494
13495# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13496# resulting binary.
13497hardcode_direct=$hardcode_direct_CXX
13498
13499# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13500# resulting binary.
13501hardcode_minus_L=$hardcode_minus_L_CXX
13502
13503# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13504# the resulting binary.
13505hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13506
13507# Set to yes if building a shared library automatically hardcodes DIR into the library
13508# and all subsequent libraries and executables linked against it.
13509hardcode_automatic=$hardcode_automatic_CXX
13510
13511# Variables whose values should be saved in libtool wrapper scripts and
13512# restored at relink time.
13513variables_saved_for_relink="$variables_saved_for_relink"
13514
13515# Whether libtool must link a program against all its dependency libraries.
13516link_all_deplibs=$link_all_deplibs_CXX
13517
13518# Compile-time system search path for libraries
13519sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13520
13521# Run-time system search path for libraries
13522sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13523
13524# Fix the shell variable \$srcfile for the compiler.
13525fix_srcfile_path=$lt_fix_srcfile_path
13526
13527# Set to yes if exported symbols are required.
13528always_export_symbols=$always_export_symbols_CXX
13529
13530# The commands to list exported symbols.
13531export_symbols_cmds=$lt_export_symbols_cmds_CXX
13532
13533# The commands to extract the exported symbol list from a shared archive.
13534extract_expsyms_cmds=$lt_extract_expsyms_cmds
13535
13536# Symbols that should not be listed in the preloaded symbols.
13537exclude_expsyms=$lt_exclude_expsyms_CXX
13538
13539# Symbols that must always be exported.
13540include_expsyms=$lt_include_expsyms_CXX
13541
13542# ### END LIBTOOL TAG CONFIG: $tagname
13543
13544__EOF__
13545
13546
13547else
13548  # If there is no Makefile yet, we rely on a make rule to execute
13549  # `config.status --recheck' to rerun these tests and create the
13550  # libtool script then.
13551  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13552  if test -f "$ltmain_in"; then
13553    test -f Makefile && make "$ltmain"
13554  fi
13555fi
13556
13557
13558ac_ext=c
13559ac_cpp='$CPP $CPPFLAGS'
13560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13562ac_compiler_gnu=$ac_cv_c_compiler_gnu
13563
13564CC=$lt_save_CC
13565LDCXX=$LD
13566LD=$lt_save_LD
13567GCC=$lt_save_GCC
13568with_gnu_ldcxx=$with_gnu_ld
13569with_gnu_ld=$lt_save_with_gnu_ld
13570lt_cv_path_LDCXX=$lt_cv_path_LD
13571lt_cv_path_LD=$lt_save_path_LD
13572lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13573lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13574
13575	else
13576	  tagname=""
13577	fi
13578	;;
13579
13580      F77)
13581	if test -n "$F77" && test "X$F77" != "Xno"; then
13582
13583ac_ext=f
13584ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13585ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13586ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13587
13588
13589archive_cmds_need_lc_F77=no
13590allow_undefined_flag_F77=
13591always_export_symbols_F77=no
13592archive_expsym_cmds_F77=
13593export_dynamic_flag_spec_F77=
13594hardcode_direct_F77=no
13595hardcode_libdir_flag_spec_F77=
13596hardcode_libdir_flag_spec_ld_F77=
13597hardcode_libdir_separator_F77=
13598hardcode_minus_L_F77=no
13599hardcode_automatic_F77=no
13600module_cmds_F77=
13601module_expsym_cmds_F77=
13602link_all_deplibs_F77=unknown
13603old_archive_cmds_F77=$old_archive_cmds
13604no_undefined_flag_F77=
13605whole_archive_flag_spec_F77=
13606enable_shared_with_static_runtimes_F77=no
13607
13608# Source file extension for f77 test sources.
13609ac_ext=f
13610
13611# Object file extension for compiled f77 test sources.
13612objext=o
13613objext_F77=$objext
13614
13615# Code to be used in simple compile tests
13616lt_simple_compile_test_code="\
13617      subroutine t
13618      return
13619      end
13620"
13621
13622# Code to be used in simple link tests
13623lt_simple_link_test_code="\
13624      program t
13625      end
13626"
13627
13628# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13629
13630# If no C compiler was specified, use CC.
13631LTCC=${LTCC-"$CC"}
13632
13633# If no C compiler flags were specified, use CFLAGS.
13634LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13635
13636# Allow CC to be a program name with arguments.
13637compiler=$CC
13638
13639
13640# save warnings/boilerplate of simple test code
13641ac_outfile=conftest.$ac_objext
13642echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13643eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13644_lt_compiler_boilerplate=`cat conftest.err`
13645$rm conftest*
13646
13647ac_outfile=conftest.$ac_objext
13648echo "$lt_simple_link_test_code" >conftest.$ac_ext
13649eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13650_lt_linker_boilerplate=`cat conftest.err`
13651$rm conftest*
13652
13653
13654# Allow CC to be a program name with arguments.
13655lt_save_CC="$CC"
13656CC=${F77-"f77"}
13657compiler=$CC
13658compiler_F77=$CC
13659for cc_temp in $compiler""; do
13660  case $cc_temp in
13661    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13662    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13663    \-*) ;;
13664    *) break;;
13665  esac
13666done
13667cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13668
13669
13670{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13671echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13672{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13673echo "${ECHO_T}$can_build_shared" >&6; }
13674
13675{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13676echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13677test "$can_build_shared" = "no" && enable_shared=no
13678
13679# On AIX, shared libraries and static libraries use the same namespace, and
13680# are all built from PIC.
13681case $host_os in
13682aix3*)
13683  test "$enable_shared" = yes && enable_static=no
13684  if test -n "$RANLIB"; then
13685    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13686    postinstall_cmds='$RANLIB $lib'
13687  fi
13688  ;;
13689aix4* | aix5*)
13690  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13691    test "$enable_shared" = yes && enable_static=no
13692  fi
13693  ;;
13694esac
13695{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13696echo "${ECHO_T}$enable_shared" >&6; }
13697
13698{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13699echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13700# Make sure either enable_shared or enable_static is yes.
13701test "$enable_shared" = yes || enable_static=yes
13702{ echo "$as_me:$LINENO: result: $enable_static" >&5
13703echo "${ECHO_T}$enable_static" >&6; }
13704
13705GCC_F77="$G77"
13706LD_F77="$LD"
13707
13708lt_prog_compiler_wl_F77=
13709lt_prog_compiler_pic_F77=
13710lt_prog_compiler_static_F77=
13711
13712{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13713echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13714
13715  if test "$GCC" = yes; then
13716    lt_prog_compiler_wl_F77='-Wl,'
13717    lt_prog_compiler_static_F77='-static'
13718
13719    case $host_os in
13720      aix*)
13721      # All AIX code is PIC.
13722      if test "$host_cpu" = ia64; then
13723	# AIX 5 now supports IA64 processor
13724	lt_prog_compiler_static_F77='-Bstatic'
13725      fi
13726      ;;
13727
13728    amigaos*)
13729      # FIXME: we need at least 68020 code to build shared libraries, but
13730      # adding the `-m68020' flag to GCC prevents building anything better,
13731      # like `-m68040'.
13732      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13733      ;;
13734
13735    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13736      # PIC is the default for these OSes.
13737      ;;
13738
13739    mingw* | cygwin* | pw32* | os2*)
13740      # This hack is so that the source file can tell whether it is being
13741      # built for inclusion in a dll (and should export symbols for example).
13742      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13743      # (--disable-auto-import) libraries
13744      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13745      ;;
13746
13747    darwin* | rhapsody*)
13748      # PIC is the default on this platform
13749      # Common symbols not allowed in MH_DYLIB files
13750      lt_prog_compiler_pic_F77='-fno-common'
13751      ;;
13752
13753    interix[3-9]*)
13754      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13755      # Instead, we relocate shared libraries at runtime.
13756      ;;
13757
13758    msdosdjgpp*)
13759      # Just because we use GCC doesn't mean we suddenly get shared libraries
13760      # on systems that don't support them.
13761      lt_prog_compiler_can_build_shared_F77=no
13762      enable_shared=no
13763      ;;
13764
13765    sysv4*MP*)
13766      if test -d /usr/nec; then
13767	lt_prog_compiler_pic_F77=-Kconform_pic
13768      fi
13769      ;;
13770
13771    hpux*)
13772      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13773      # not for PA HP-UX.
13774      case $host_cpu in
13775      hppa*64*|ia64*)
13776	# +Z the default
13777	;;
13778      *)
13779	lt_prog_compiler_pic_F77='-fPIC'
13780	;;
13781      esac
13782      ;;
13783
13784    *)
13785      lt_prog_compiler_pic_F77='-fPIC'
13786      ;;
13787    esac
13788  else
13789    # PORTME Check for flag to pass linker flags through the system compiler.
13790    case $host_os in
13791    aix*)
13792      lt_prog_compiler_wl_F77='-Wl,'
13793      if test "$host_cpu" = ia64; then
13794	# AIX 5 now supports IA64 processor
13795	lt_prog_compiler_static_F77='-Bstatic'
13796      else
13797	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13798      fi
13799      ;;
13800      darwin*)
13801        # PIC is the default on this platform
13802        # Common symbols not allowed in MH_DYLIB files
13803       case $cc_basename in
13804         xlc*)
13805         lt_prog_compiler_pic_F77='-qnocommon'
13806         lt_prog_compiler_wl_F77='-Wl,'
13807         ;;
13808       esac
13809       ;;
13810
13811    mingw* | cygwin* | pw32* | os2*)
13812      # This hack is so that the source file can tell whether it is being
13813      # built for inclusion in a dll (and should export symbols for example).
13814      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13815      ;;
13816
13817    hpux9* | hpux10* | hpux11*)
13818      lt_prog_compiler_wl_F77='-Wl,'
13819      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13820      # not for PA HP-UX.
13821      case $host_cpu in
13822      hppa*64*|ia64*)
13823	# +Z the default
13824	;;
13825      *)
13826	lt_prog_compiler_pic_F77='+Z'
13827	;;
13828      esac
13829      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13830      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13831      ;;
13832
13833    irix5* | irix6* | nonstopux*)
13834      lt_prog_compiler_wl_F77='-Wl,'
13835      # PIC (with -KPIC) is the default.
13836      lt_prog_compiler_static_F77='-non_shared'
13837      ;;
13838
13839    newsos6)
13840      lt_prog_compiler_pic_F77='-KPIC'
13841      lt_prog_compiler_static_F77='-Bstatic'
13842      ;;
13843
13844    linux* | k*bsd*-gnu)
13845      case $cc_basename in
13846      icc* | ecc*)
13847	lt_prog_compiler_wl_F77='-Wl,'
13848	lt_prog_compiler_pic_F77='-KPIC'
13849	lt_prog_compiler_static_F77='-static'
13850        ;;
13851      pgcc* | pgf77* | pgf90* | pgf95*)
13852        # Portland Group compilers (*not* the Pentium gcc compiler,
13853	# which looks to be a dead project)
13854	lt_prog_compiler_wl_F77='-Wl,'
13855	lt_prog_compiler_pic_F77='-fpic'
13856	lt_prog_compiler_static_F77='-Bstatic'
13857        ;;
13858      ccc*)
13859        lt_prog_compiler_wl_F77='-Wl,'
13860        # All Alpha code is PIC.
13861        lt_prog_compiler_static_F77='-non_shared'
13862        ;;
13863      como)
13864        lt_prog_compiler_wl_F77='-lopt='
13865        ;;
13866      *)
13867        case `$CC -V 2>&1 | sed 5q` in
13868	*Sun\ C*)
13869	  # Sun C 5.9
13870	  lt_prog_compiler_pic_F77='-KPIC'
13871	  lt_prog_compiler_static_F77='-Bstatic'
13872	  lt_prog_compiler_wl_F77='-Wl,'
13873	  ;;
13874	*Sun\ F*)
13875	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13876	  lt_prog_compiler_pic_F77='-KPIC'
13877	  lt_prog_compiler_static_F77='-Bstatic'
13878	  lt_prog_compiler_wl_F77=''
13879	  ;;
13880	esac
13881	;;
13882      esac
13883      ;;
13884
13885    osf3* | osf4* | osf5*)
13886      lt_prog_compiler_wl_F77='-Wl,'
13887      # All OSF/1 code is PIC.
13888      lt_prog_compiler_static_F77='-non_shared'
13889      ;;
13890
13891    rdos*)
13892      lt_prog_compiler_static_F77='-non_shared'
13893      ;;
13894
13895    solaris*)
13896      lt_prog_compiler_pic_F77='-KPIC'
13897      lt_prog_compiler_static_F77='-Bstatic'
13898      case $cc_basename in
13899      f77* | f90* | f95*)
13900	lt_prog_compiler_wl_F77='-Qoption ld ';;
13901      *)
13902	lt_prog_compiler_wl_F77='-Wl,';;
13903      esac
13904      ;;
13905
13906    sunos4*)
13907      lt_prog_compiler_wl_F77='-Qoption ld '
13908      lt_prog_compiler_pic_F77='-PIC'
13909      lt_prog_compiler_static_F77='-Bstatic'
13910      ;;
13911
13912    sysv4 | sysv4.2uw2* | sysv4.3*)
13913      lt_prog_compiler_wl_F77='-Wl,'
13914      lt_prog_compiler_pic_F77='-KPIC'
13915      lt_prog_compiler_static_F77='-Bstatic'
13916      ;;
13917
13918    sysv4*MP*)
13919      if test -d /usr/nec ;then
13920	lt_prog_compiler_pic_F77='-Kconform_pic'
13921	lt_prog_compiler_static_F77='-Bstatic'
13922      fi
13923      ;;
13924
13925    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13926      lt_prog_compiler_wl_F77='-Wl,'
13927      lt_prog_compiler_pic_F77='-KPIC'
13928      lt_prog_compiler_static_F77='-Bstatic'
13929      ;;
13930
13931    unicos*)
13932      lt_prog_compiler_wl_F77='-Wl,'
13933      lt_prog_compiler_can_build_shared_F77=no
13934      ;;
13935
13936    uts4*)
13937      lt_prog_compiler_pic_F77='-pic'
13938      lt_prog_compiler_static_F77='-Bstatic'
13939      ;;
13940
13941    *)
13942      lt_prog_compiler_can_build_shared_F77=no
13943      ;;
13944    esac
13945  fi
13946
13947{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13948echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13949
13950#
13951# Check to make sure the PIC flag actually works.
13952#
13953if test -n "$lt_prog_compiler_pic_F77"; then
13954
13955{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13956echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13957if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13958  echo $ECHO_N "(cached) $ECHO_C" >&6
13959else
13960  lt_prog_compiler_pic_works_F77=no
13961  ac_outfile=conftest.$ac_objext
13962   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13963   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13964   # Insert the option either (1) after the last *FLAGS variable, or
13965   # (2) before a word containing "conftest.", or (3) at the end.
13966   # Note that $ac_compile itself does not contain backslashes and begins
13967   # with a dollar sign (not a hyphen), so the echo should work correctly.
13968   # The option is referenced via a variable to avoid confusing sed.
13969   lt_compile=`echo "$ac_compile" | $SED \
13970   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13971   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13972   -e 's:$: $lt_compiler_flag:'`
13973   (eval echo "\"\$as_me:13973: $lt_compile\"" >&5)
13974   (eval "$lt_compile" 2>conftest.err)
13975   ac_status=$?
13976   cat conftest.err >&5
13977   echo "$as_me:13977: \$? = $ac_status" >&5
13978   if (exit $ac_status) && test -s "$ac_outfile"; then
13979     # The compiler can only warn and ignore the option if not recognized
13980     # So say no if there are warnings other than the usual output.
13981     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13982     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13983     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13984       lt_prog_compiler_pic_works_F77=yes
13985     fi
13986   fi
13987   $rm conftest*
13988
13989fi
13990{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13991echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13992
13993if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13994    case $lt_prog_compiler_pic_F77 in
13995     "" | " "*) ;;
13996     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13997     esac
13998else
13999    lt_prog_compiler_pic_F77=
14000     lt_prog_compiler_can_build_shared_F77=no
14001fi
14002
14003fi
14004case $host_os in
14005  # For platforms which do not support PIC, -DPIC is meaningless:
14006  *djgpp*)
14007    lt_prog_compiler_pic_F77=
14008    ;;
14009  *)
14010    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14011    ;;
14012esac
14013
14014#
14015# Check to make sure the static flag actually works.
14016#
14017wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14018{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14019echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14020if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14021  echo $ECHO_N "(cached) $ECHO_C" >&6
14022else
14023  lt_prog_compiler_static_works_F77=no
14024   save_LDFLAGS="$LDFLAGS"
14025   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14026   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14027   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14028     # The linker can only warn and ignore the option if not recognized
14029     # So say no if there are warnings
14030     if test -s conftest.err; then
14031       # Append any errors to the config.log.
14032       cat conftest.err 1>&5
14033       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14034       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14035       if diff conftest.exp conftest.er2 >/dev/null; then
14036         lt_prog_compiler_static_works_F77=yes
14037       fi
14038     else
14039       lt_prog_compiler_static_works_F77=yes
14040     fi
14041   fi
14042   $rm conftest*
14043   LDFLAGS="$save_LDFLAGS"
14044
14045fi
14046{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14047echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14048
14049if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14050    :
14051else
14052    lt_prog_compiler_static_F77=
14053fi
14054
14055
14056{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14057echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14058if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14059  echo $ECHO_N "(cached) $ECHO_C" >&6
14060else
14061  lt_cv_prog_compiler_c_o_F77=no
14062   $rm -r conftest 2>/dev/null
14063   mkdir conftest
14064   cd conftest
14065   mkdir out
14066   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14067
14068   lt_compiler_flag="-o out/conftest2.$ac_objext"
14069   # Insert the option either (1) after the last *FLAGS variable, or
14070   # (2) before a word containing "conftest.", or (3) at the end.
14071   # Note that $ac_compile itself does not contain backslashes and begins
14072   # with a dollar sign (not a hyphen), so the echo should work correctly.
14073   lt_compile=`echo "$ac_compile" | $SED \
14074   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14075   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14076   -e 's:$: $lt_compiler_flag:'`
14077   (eval echo "\"\$as_me:14077: $lt_compile\"" >&5)
14078   (eval "$lt_compile" 2>out/conftest.err)
14079   ac_status=$?
14080   cat out/conftest.err >&5
14081   echo "$as_me:14081: \$? = $ac_status" >&5
14082   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14083   then
14084     # The compiler can only warn and ignore the option if not recognized
14085     # So say no if there are warnings
14086     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14087     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14088     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14089       lt_cv_prog_compiler_c_o_F77=yes
14090     fi
14091   fi
14092   chmod u+w . 2>&5
14093   $rm conftest*
14094   # SGI C++ compiler will create directory out/ii_files/ for
14095   # template instantiation
14096   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14097   $rm out/* && rmdir out
14098   cd ..
14099   rmdir conftest
14100   $rm conftest*
14101
14102fi
14103{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14104echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14105
14106
14107hard_links="nottested"
14108if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14109  # do not overwrite the value of need_locks provided by the user
14110  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14111echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14112  hard_links=yes
14113  $rm conftest*
14114  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14115  touch conftest.a
14116  ln conftest.a conftest.b 2>&5 || hard_links=no
14117  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14118  { echo "$as_me:$LINENO: result: $hard_links" >&5
14119echo "${ECHO_T}$hard_links" >&6; }
14120  if test "$hard_links" = no; then
14121    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14122echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14123    need_locks=warn
14124  fi
14125else
14126  need_locks=no
14127fi
14128
14129{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14130echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14131
14132  runpath_var=
14133  allow_undefined_flag_F77=
14134  enable_shared_with_static_runtimes_F77=no
14135  archive_cmds_F77=
14136  archive_expsym_cmds_F77=
14137  old_archive_From_new_cmds_F77=
14138  old_archive_from_expsyms_cmds_F77=
14139  export_dynamic_flag_spec_F77=
14140  whole_archive_flag_spec_F77=
14141  thread_safe_flag_spec_F77=
14142  hardcode_libdir_flag_spec_F77=
14143  hardcode_libdir_flag_spec_ld_F77=
14144  hardcode_libdir_separator_F77=
14145  hardcode_direct_F77=no
14146  hardcode_minus_L_F77=no
14147  hardcode_shlibpath_var_F77=unsupported
14148  link_all_deplibs_F77=unknown
14149  hardcode_automatic_F77=no
14150  module_cmds_F77=
14151  module_expsym_cmds_F77=
14152  always_export_symbols_F77=no
14153  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14154  # include_expsyms should be a list of space-separated symbols to be *always*
14155  # included in the symbol list
14156  include_expsyms_F77=
14157  # exclude_expsyms can be an extended regexp of symbols to exclude
14158  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14159  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14160  # as well as any symbol that contains `d'.
14161  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14162  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14163  # platforms (ab)use it in PIC code, but their linkers get confused if
14164  # the symbol is explicitly referenced.  Since portable code cannot
14165  # rely on this symbol name, it's probably fine to never include it in
14166  # preloaded symbol tables.
14167  extract_expsyms_cmds=
14168  # Just being paranoid about ensuring that cc_basename is set.
14169  for cc_temp in $compiler""; do
14170  case $cc_temp in
14171    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14172    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14173    \-*) ;;
14174    *) break;;
14175  esac
14176done
14177cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14178
14179  case $host_os in
14180  cygwin* | mingw* | pw32*)
14181    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14182    # When not using gcc, we currently assume that we are using
14183    # Microsoft Visual C++.
14184    if test "$GCC" != yes; then
14185      with_gnu_ld=no
14186    fi
14187    ;;
14188  interix*)
14189    # we just hope/assume this is gcc and not c89 (= MSVC++)
14190    with_gnu_ld=yes
14191    ;;
14192  openbsd*)
14193    with_gnu_ld=no
14194    ;;
14195  esac
14196
14197  ld_shlibs_F77=yes
14198  if test "$with_gnu_ld" = yes; then
14199    # If archive_cmds runs LD, not CC, wlarc should be empty
14200    wlarc='${wl}'
14201
14202    # Set some defaults for GNU ld with shared library support. These
14203    # are reset later if shared libraries are not supported. Putting them
14204    # here allows them to be overridden if necessary.
14205    runpath_var=LD_RUN_PATH
14206    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14207    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14208    # ancient GNU ld didn't support --whole-archive et. al.
14209    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14210	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14211      else
14212  	whole_archive_flag_spec_F77=
14213    fi
14214    supports_anon_versioning=no
14215    case `$LD -v 2>/dev/null` in
14216      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14217      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14218      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14219      *\ 2.11.*) ;; # other 2.11 versions
14220      *) supports_anon_versioning=yes ;;
14221    esac
14222
14223    # See if GNU ld supports shared libraries.
14224    case $host_os in
14225    aix3* | aix4* | aix5*)
14226      # On AIX/PPC, the GNU linker is very broken
14227      if test "$host_cpu" != ia64; then
14228	ld_shlibs_F77=no
14229	cat <<EOF 1>&2
14230
14231*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14232*** to be unable to reliably create shared libraries on AIX.
14233*** Therefore, libtool is disabling shared libraries support.  If you
14234*** really care for shared libraries, you may want to modify your PATH
14235*** so that a non-GNU linker is found, and then restart.
14236
14237EOF
14238      fi
14239      ;;
14240
14241    amigaos*)
14242      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)'
14243      hardcode_libdir_flag_spec_F77='-L$libdir'
14244      hardcode_minus_L_F77=yes
14245
14246      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14247      # that the semantics of dynamic libraries on AmigaOS, at least up
14248      # to version 4, is to share data among multiple programs linked
14249      # with the same dynamic library.  Since this doesn't match the
14250      # behavior of shared libraries on other platforms, we can't use
14251      # them.
14252      ld_shlibs_F77=no
14253      ;;
14254
14255    beos*)
14256      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14257	allow_undefined_flag_F77=unsupported
14258	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14259	# support --undefined.  This deserves some investigation.  FIXME
14260	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14261      else
14262	ld_shlibs_F77=no
14263      fi
14264      ;;
14265
14266    cygwin* | mingw* | pw32*)
14267      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14268      # as there is no search path for DLLs.
14269      hardcode_libdir_flag_spec_F77='-L$libdir'
14270      allow_undefined_flag_F77=unsupported
14271      always_export_symbols_F77=no
14272      enable_shared_with_static_runtimes_F77=yes
14273      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14274
14275      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14276        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14277	# If the export-symbols file already is a .def file (1st line
14278	# is EXPORTS), use it as is; otherwise, prepend...
14279	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14280	  cp $export_symbols $output_objdir/$soname.def;
14281	else
14282	  echo EXPORTS > $output_objdir/$soname.def;
14283	  cat $export_symbols >> $output_objdir/$soname.def;
14284	fi~
14285	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14286      else
14287	ld_shlibs_F77=no
14288      fi
14289      ;;
14290
14291    interix[3-9]*)
14292      hardcode_direct_F77=no
14293      hardcode_shlibpath_var_F77=no
14294      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14295      export_dynamic_flag_spec_F77='${wl}-E'
14296      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14297      # Instead, shared libraries are loaded at an image base (0x10000000 by
14298      # default) and relocated if they conflict, which is a slow very memory
14299      # consuming and fragmenting process.  To avoid this, we pick a random,
14300      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14301      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14302      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'
14303      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'
14304      ;;
14305
14306    gnu* | linux* | k*bsd*-gnu)
14307      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14308	tmp_addflag=
14309	case $cc_basename,$host_cpu in
14310	pgcc*)				# Portland Group C compiler
14311	  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'
14312	  tmp_addflag=' $pic_flag'
14313	  ;;
14314	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14315	  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'
14316	  tmp_addflag=' $pic_flag -Mnomain' ;;
14317	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14318	  tmp_addflag=' -i_dynamic' ;;
14319	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14320	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14321	ifc* | ifort*)			# Intel Fortran compiler
14322	  tmp_addflag=' -nofor_main' ;;
14323	esac
14324	case `$CC -V 2>&1 | sed 5q` in
14325	*Sun\ C*)			# Sun C 5.9
14326	  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'
14327	  tmp_sharedflag='-G' ;;
14328	*Sun\ F*)			# Sun Fortran 8.3
14329	  tmp_sharedflag='-G' ;;
14330	*)
14331	  tmp_sharedflag='-shared' ;;
14332	esac
14333	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14334
14335	if test $supports_anon_versioning = yes; then
14336	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14337  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14338  $echo "local: *; };" >> $output_objdir/$libname.ver~
14339	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14340	fi
14341      else
14342	ld_shlibs_F77=no
14343      fi
14344      ;;
14345
14346    netbsd*)
14347      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14348	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14349	wlarc=
14350      else
14351	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14352	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14353      fi
14354      ;;
14355
14356    solaris*)
14357      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14358	ld_shlibs_F77=no
14359	cat <<EOF 1>&2
14360
14361*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14362*** create shared libraries on Solaris systems.  Therefore, libtool
14363*** is disabling shared libraries support.  We urge you to upgrade GNU
14364*** binutils to release 2.9.1 or newer.  Another option is to modify
14365*** your PATH or compiler configuration so that the native linker is
14366*** used, and then restart.
14367
14368EOF
14369      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14370	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14371	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14372      else
14373	ld_shlibs_F77=no
14374      fi
14375      ;;
14376
14377    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14378      case `$LD -v 2>&1` in
14379        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14380	ld_shlibs_F77=no
14381	cat <<_LT_EOF 1>&2
14382
14383*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14384*** reliably create shared libraries on SCO systems.  Therefore, libtool
14385*** is disabling shared libraries support.  We urge you to upgrade GNU
14386*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14387*** your PATH or compiler configuration so that the native linker is
14388*** used, and then restart.
14389
14390_LT_EOF
14391	;;
14392	*)
14393	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14394	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14395	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14396	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14397	  else
14398	    ld_shlibs_F77=no
14399	  fi
14400	;;
14401      esac
14402      ;;
14403
14404    sunos4*)
14405      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14406      wlarc=
14407      hardcode_direct_F77=yes
14408      hardcode_shlibpath_var_F77=no
14409      ;;
14410
14411    *)
14412      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14413	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14414	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14415      else
14416	ld_shlibs_F77=no
14417      fi
14418      ;;
14419    esac
14420
14421    if test "$ld_shlibs_F77" = no; then
14422      runpath_var=
14423      hardcode_libdir_flag_spec_F77=
14424      export_dynamic_flag_spec_F77=
14425      whole_archive_flag_spec_F77=
14426    fi
14427  else
14428    # PORTME fill in a description of your system's linker (not GNU ld)
14429    case $host_os in
14430    aix3*)
14431      allow_undefined_flag_F77=unsupported
14432      always_export_symbols_F77=yes
14433      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'
14434      # Note: this linker hardcodes the directories in LIBPATH if there
14435      # are no directories specified by -L.
14436      hardcode_minus_L_F77=yes
14437      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14438	# Neither direct hardcoding nor static linking is supported with a
14439	# broken collect2.
14440	hardcode_direct_F77=unsupported
14441      fi
14442      ;;
14443
14444    aix4* | aix5*)
14445      if test "$host_cpu" = ia64; then
14446	# On IA64, the linker does run time linking by default, so we don't
14447	# have to do anything special.
14448	aix_use_runtimelinking=no
14449	exp_sym_flag='-Bexport'
14450	no_entry_flag=""
14451      else
14452	# If we're using GNU nm, then we don't want the "-C" option.
14453	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14454	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14455	  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'
14456	else
14457	  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'
14458	fi
14459	aix_use_runtimelinking=no
14460
14461	# Test if we are trying to use run time linking or normal
14462	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14463	# need to do runtime linking.
14464	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14465	  for ld_flag in $LDFLAGS; do
14466  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14467  	    aix_use_runtimelinking=yes
14468  	    break
14469  	  fi
14470	  done
14471	  ;;
14472	esac
14473
14474	exp_sym_flag='-bexport'
14475	no_entry_flag='-bnoentry'
14476      fi
14477
14478      # When large executables or shared objects are built, AIX ld can
14479      # have problems creating the table of contents.  If linking a library
14480      # or program results in "error TOC overflow" add -mminimal-toc to
14481      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14482      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14483
14484      archive_cmds_F77=''
14485      hardcode_direct_F77=yes
14486      hardcode_libdir_separator_F77=':'
14487      link_all_deplibs_F77=yes
14488
14489      if test "$GCC" = yes; then
14490	case $host_os in aix4.[012]|aix4.[012].*)
14491	# We only want to do this on AIX 4.2 and lower, the check
14492	# below for broken collect2 doesn't work under 4.3+
14493	  collect2name=`${CC} -print-prog-name=collect2`
14494	  if test -f "$collect2name" && \
14495  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14496	  then
14497  	  # We have reworked collect2
14498  	  :
14499	  else
14500  	  # We have old collect2
14501  	  hardcode_direct_F77=unsupported
14502  	  # It fails to find uninstalled libraries when the uninstalled
14503  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14504  	  # to unsupported forces relinking
14505  	  hardcode_minus_L_F77=yes
14506  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14507  	  hardcode_libdir_separator_F77=
14508	  fi
14509	  ;;
14510	esac
14511	shared_flag='-shared'
14512	if test "$aix_use_runtimelinking" = yes; then
14513	  shared_flag="$shared_flag "'${wl}-G'
14514	fi
14515      else
14516	# not using gcc
14517	if test "$host_cpu" = ia64; then
14518  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14519  	# chokes on -Wl,-G. The following line is correct:
14520	  shared_flag='-G'
14521	else
14522	  if test "$aix_use_runtimelinking" = yes; then
14523	    shared_flag='${wl}-G'
14524	  else
14525	    shared_flag='${wl}-bM:SRE'
14526	  fi
14527	fi
14528      fi
14529
14530      # It seems that -bexpall does not export symbols beginning with
14531      # underscore (_), so it is better to generate a list of symbols to export.
14532      always_export_symbols_F77=yes
14533      if test "$aix_use_runtimelinking" = yes; then
14534	# Warning - without using the other runtime loading flags (-brtl),
14535	# -berok will link without error, but may produce a broken library.
14536	allow_undefined_flag_F77='-berok'
14537       # Determine the default libpath from the value encoded in an empty executable.
14538       cat >conftest.$ac_ext <<_ACEOF
14539      program main
14540
14541      end
14542_ACEOF
14543rm -f conftest.$ac_objext conftest$ac_exeext
14544if { (ac_try="$ac_link"
14545case "(($ac_try" in
14546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547  *) ac_try_echo=$ac_try;;
14548esac
14549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550  (eval "$ac_link") 2>conftest.er1
14551  ac_status=$?
14552  grep -v '^ *+' conftest.er1 >conftest.err
14553  rm -f conftest.er1
14554  cat conftest.err >&5
14555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556  (exit $ac_status); } && {
14557	 test -z "$ac_f77_werror_flag" ||
14558	 test ! -s conftest.err
14559       } && test -s conftest$ac_exeext &&
14560       $as_test_x conftest$ac_exeext; then
14561
14562lt_aix_libpath_sed='
14563    /Import File Strings/,/^$/ {
14564	/^0/ {
14565	    s/^0  *\(.*\)$/\1/
14566	    p
14567	}
14568    }'
14569aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14570# Check for a 64-bit object if we didn't find anything.
14571if test -z "$aix_libpath"; then
14572  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14573fi
14574else
14575  echo "$as_me: failed program was:" >&5
14576sed 's/^/| /' conftest.$ac_ext >&5
14577
14578
14579fi
14580
14581rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14582      conftest$ac_exeext conftest.$ac_ext
14583if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14584
14585       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14586	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"
14587       else
14588	if test "$host_cpu" = ia64; then
14589	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14590	  allow_undefined_flag_F77="-z nodefs"
14591	  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"
14592	else
14593	 # Determine the default libpath from the value encoded in an empty executable.
14594	 cat >conftest.$ac_ext <<_ACEOF
14595      program main
14596
14597      end
14598_ACEOF
14599rm -f conftest.$ac_objext conftest$ac_exeext
14600if { (ac_try="$ac_link"
14601case "(($ac_try" in
14602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603  *) ac_try_echo=$ac_try;;
14604esac
14605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606  (eval "$ac_link") 2>conftest.er1
14607  ac_status=$?
14608  grep -v '^ *+' conftest.er1 >conftest.err
14609  rm -f conftest.er1
14610  cat conftest.err >&5
14611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612  (exit $ac_status); } && {
14613	 test -z "$ac_f77_werror_flag" ||
14614	 test ! -s conftest.err
14615       } && test -s conftest$ac_exeext &&
14616       $as_test_x conftest$ac_exeext; then
14617
14618lt_aix_libpath_sed='
14619    /Import File Strings/,/^$/ {
14620	/^0/ {
14621	    s/^0  *\(.*\)$/\1/
14622	    p
14623	}
14624    }'
14625aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14626# Check for a 64-bit object if we didn't find anything.
14627if test -z "$aix_libpath"; then
14628  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14629fi
14630else
14631  echo "$as_me: failed program was:" >&5
14632sed 's/^/| /' conftest.$ac_ext >&5
14633
14634
14635fi
14636
14637rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14638      conftest$ac_exeext conftest.$ac_ext
14639if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14640
14641	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14642	  # Warning - without using the other run time loading flags,
14643	  # -berok will link without error, but may produce a broken library.
14644	  no_undefined_flag_F77=' ${wl}-bernotok'
14645	  allow_undefined_flag_F77=' ${wl}-berok'
14646	  # Exported symbols can be pulled into shared objects from archives
14647	  whole_archive_flag_spec_F77='$convenience'
14648	  archive_cmds_need_lc_F77=yes
14649	  # This is similar to how AIX traditionally builds its shared libraries.
14650	  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'
14651	fi
14652      fi
14653      ;;
14654
14655    amigaos*)
14656      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)'
14657      hardcode_libdir_flag_spec_F77='-L$libdir'
14658      hardcode_minus_L_F77=yes
14659      # see comment about different semantics on the GNU ld section
14660      ld_shlibs_F77=no
14661      ;;
14662
14663    bsdi[45]*)
14664      export_dynamic_flag_spec_F77=-rdynamic
14665      ;;
14666
14667    cygwin* | mingw* | pw32*)
14668      # When not using gcc, we currently assume that we are using
14669      # Microsoft Visual C++.
14670      # hardcode_libdir_flag_spec is actually meaningless, as there is
14671      # no search path for DLLs.
14672      hardcode_libdir_flag_spec_F77=' '
14673      allow_undefined_flag_F77=unsupported
14674      # Tell ltmain to make .lib files, not .a files.
14675      libext=lib
14676      # Tell ltmain to make .dll files, not .so files.
14677      shrext_cmds=".dll"
14678      # FIXME: Setting linknames here is a bad hack.
14679      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14680      # The linker will automatically build a .lib file if we build a DLL.
14681      old_archive_From_new_cmds_F77='true'
14682      # FIXME: Should let the user specify the lib program.
14683      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14684      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14685      enable_shared_with_static_runtimes_F77=yes
14686      ;;
14687
14688    darwin* | rhapsody*)
14689      case $host_os in
14690        rhapsody* | darwin1.[012])
14691         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14692         ;;
14693       *) # Darwin 1.3 on
14694         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14695           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14696         else
14697           case ${MACOSX_DEPLOYMENT_TARGET} in
14698             10.[012])
14699               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14700               ;;
14701             10.*)
14702               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14703               ;;
14704           esac
14705         fi
14706         ;;
14707      esac
14708      archive_cmds_need_lc_F77=no
14709      hardcode_direct_F77=no
14710      hardcode_automatic_F77=yes
14711      hardcode_shlibpath_var_F77=unsupported
14712      whole_archive_flag_spec_F77=''
14713      link_all_deplibs_F77=yes
14714    if test "$GCC" = yes ; then
14715    	output_verbose_link_cmd='echo'
14716        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14717      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14718      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14719      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14720      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}'
14721    else
14722      case $cc_basename in
14723        xlc*)
14724         output_verbose_link_cmd='echo'
14725         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14726         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14727          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14728         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}'
14729          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}'
14730          ;;
14731       *)
14732         ld_shlibs_F77=no
14733          ;;
14734      esac
14735    fi
14736      ;;
14737
14738    dgux*)
14739      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14740      hardcode_libdir_flag_spec_F77='-L$libdir'
14741      hardcode_shlibpath_var_F77=no
14742      ;;
14743
14744    freebsd1*)
14745      ld_shlibs_F77=no
14746      ;;
14747
14748    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14749    # support.  Future versions do this automatically, but an explicit c++rt0.o
14750    # does not break anything, and helps significantly (at the cost of a little
14751    # extra space).
14752    freebsd2.2*)
14753      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14754      hardcode_libdir_flag_spec_F77='-R$libdir'
14755      hardcode_direct_F77=yes
14756      hardcode_shlibpath_var_F77=no
14757      ;;
14758
14759    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14760    freebsd2*)
14761      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14762      hardcode_direct_F77=yes
14763      hardcode_minus_L_F77=yes
14764      hardcode_shlibpath_var_F77=no
14765      ;;
14766
14767    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14768    freebsd* | dragonfly*)
14769      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14770      hardcode_libdir_flag_spec_F77='-R$libdir'
14771      hardcode_direct_F77=yes
14772      hardcode_shlibpath_var_F77=no
14773      ;;
14774
14775    hpux9*)
14776      if test "$GCC" = yes; then
14777	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'
14778      else
14779	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'
14780      fi
14781      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14782      hardcode_libdir_separator_F77=:
14783      hardcode_direct_F77=yes
14784
14785      # hardcode_minus_L: Not really in the search PATH,
14786      # but as the default location of the library.
14787      hardcode_minus_L_F77=yes
14788      export_dynamic_flag_spec_F77='${wl}-E'
14789      ;;
14790
14791    hpux10*)
14792      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14793	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14794      else
14795	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14796      fi
14797      if test "$with_gnu_ld" = no; then
14798	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14799	hardcode_libdir_separator_F77=:
14800
14801	hardcode_direct_F77=yes
14802	export_dynamic_flag_spec_F77='${wl}-E'
14803
14804	# hardcode_minus_L: Not really in the search PATH,
14805	# but as the default location of the library.
14806	hardcode_minus_L_F77=yes
14807      fi
14808      ;;
14809
14810    hpux11*)
14811      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14812	case $host_cpu in
14813	hppa*64*)
14814	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14815	  ;;
14816	ia64*)
14817	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14818	  ;;
14819	*)
14820	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14821	  ;;
14822	esac
14823      else
14824	case $host_cpu in
14825	hppa*64*)
14826	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14827	  ;;
14828	ia64*)
14829	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14830	  ;;
14831	*)
14832	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14833	  ;;
14834	esac
14835      fi
14836      if test "$with_gnu_ld" = no; then
14837	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14838	hardcode_libdir_separator_F77=:
14839
14840	case $host_cpu in
14841	hppa*64*|ia64*)
14842	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14843	  hardcode_direct_F77=no
14844	  hardcode_shlibpath_var_F77=no
14845	  ;;
14846	*)
14847	  hardcode_direct_F77=yes
14848	  export_dynamic_flag_spec_F77='${wl}-E'
14849
14850	  # hardcode_minus_L: Not really in the search PATH,
14851	  # but as the default location of the library.
14852	  hardcode_minus_L_F77=yes
14853	  ;;
14854	esac
14855      fi
14856      ;;
14857
14858    irix5* | irix6* | nonstopux*)
14859      if test "$GCC" = yes; then
14860	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'
14861      else
14862	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'
14863	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14864      fi
14865      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14866      hardcode_libdir_separator_F77=:
14867      link_all_deplibs_F77=yes
14868      ;;
14869
14870    netbsd*)
14871      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14872	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14873      else
14874	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14875      fi
14876      hardcode_libdir_flag_spec_F77='-R$libdir'
14877      hardcode_direct_F77=yes
14878      hardcode_shlibpath_var_F77=no
14879      ;;
14880
14881    newsos6)
14882      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14883      hardcode_direct_F77=yes
14884      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14885      hardcode_libdir_separator_F77=:
14886      hardcode_shlibpath_var_F77=no
14887      ;;
14888
14889    openbsd*)
14890      if test -f /usr/libexec/ld.so; then
14891	hardcode_direct_F77=yes
14892	hardcode_shlibpath_var_F77=no
14893	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14894	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14895	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14896	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14897	  export_dynamic_flag_spec_F77='${wl}-E'
14898	else
14899	  case $host_os in
14900	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14901	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14902	     hardcode_libdir_flag_spec_F77='-R$libdir'
14903	     ;;
14904	   *)
14905	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14906	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14907	     ;;
14908	  esac
14909        fi
14910      else
14911	ld_shlibs_F77=no
14912      fi
14913      ;;
14914
14915    os2*)
14916      hardcode_libdir_flag_spec_F77='-L$libdir'
14917      hardcode_minus_L_F77=yes
14918      allow_undefined_flag_F77=unsupported
14919      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'
14920      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14921      ;;
14922
14923    osf3*)
14924      if test "$GCC" = yes; then
14925	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14926	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'
14927      else
14928	allow_undefined_flag_F77=' -expect_unresolved \*'
14929	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'
14930      fi
14931      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14932      hardcode_libdir_separator_F77=:
14933      ;;
14934
14935    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14936      if test "$GCC" = yes; then
14937	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14938	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'
14939	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14940      else
14941	allow_undefined_flag_F77=' -expect_unresolved \*'
14942	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'
14943	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~
14944	$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'
14945
14946	# Both c and cxx compiler support -rpath directly
14947	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14948      fi
14949      hardcode_libdir_separator_F77=:
14950      ;;
14951
14952    solaris*)
14953      no_undefined_flag_F77=' -z text'
14954      if test "$GCC" = yes; then
14955	wlarc='${wl}'
14956	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14957	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14958	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14959      else
14960	wlarc=''
14961	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14962	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14963  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14964      fi
14965      hardcode_libdir_flag_spec_F77='-R$libdir'
14966      hardcode_shlibpath_var_F77=no
14967      case $host_os in
14968      solaris2.[0-5] | solaris2.[0-5].*) ;;
14969      *)
14970	# The compiler driver will combine and reorder linker options,
14971	# but understands `-z linker_flag'.  GCC discards it without `$wl',
14972	# but is careful enough not to reorder.
14973 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14974	if test "$GCC" = yes; then
14975	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14976	else
14977	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14978	fi
14979	;;
14980      esac
14981      link_all_deplibs_F77=yes
14982      ;;
14983
14984    sunos4*)
14985      if test "x$host_vendor" = xsequent; then
14986	# Use $CC to link under sequent, because it throws in some extra .o
14987	# files that make .init and .fini sections work.
14988	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14989      else
14990	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14991      fi
14992      hardcode_libdir_flag_spec_F77='-L$libdir'
14993      hardcode_direct_F77=yes
14994      hardcode_minus_L_F77=yes
14995      hardcode_shlibpath_var_F77=no
14996      ;;
14997
14998    sysv4)
14999      case $host_vendor in
15000	sni)
15001	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15002	  hardcode_direct_F77=yes # is this really true???
15003	;;
15004	siemens)
15005	  ## LD is ld it makes a PLAMLIB
15006	  ## CC just makes a GrossModule.
15007	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15008	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15009	  hardcode_direct_F77=no
15010        ;;
15011	motorola)
15012	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15013	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15014	;;
15015      esac
15016      runpath_var='LD_RUN_PATH'
15017      hardcode_shlibpath_var_F77=no
15018      ;;
15019
15020    sysv4.3*)
15021      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15022      hardcode_shlibpath_var_F77=no
15023      export_dynamic_flag_spec_F77='-Bexport'
15024      ;;
15025
15026    sysv4*MP*)
15027      if test -d /usr/nec; then
15028	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15029	hardcode_shlibpath_var_F77=no
15030	runpath_var=LD_RUN_PATH
15031	hardcode_runpath_var=yes
15032	ld_shlibs_F77=yes
15033      fi
15034      ;;
15035
15036    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15037      no_undefined_flag_F77='${wl}-z,text'
15038      archive_cmds_need_lc_F77=no
15039      hardcode_shlibpath_var_F77=no
15040      runpath_var='LD_RUN_PATH'
15041
15042      if test "$GCC" = yes; then
15043	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15044	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15045      else
15046	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15047	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15048      fi
15049      ;;
15050
15051    sysv5* | sco3.2v5* | sco5v6*)
15052      # Note: We can NOT use -z defs as we might desire, because we do not
15053      # link with -lc, and that would cause any symbols used from libc to
15054      # always be unresolved, which means just about no library would
15055      # ever link correctly.  If we're not using GNU ld we use -z text
15056      # though, which does catch some bad symbols but isn't as heavy-handed
15057      # as -z defs.
15058      no_undefined_flag_F77='${wl}-z,text'
15059      allow_undefined_flag_F77='${wl}-z,nodefs'
15060      archive_cmds_need_lc_F77=no
15061      hardcode_shlibpath_var_F77=no
15062      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15063      hardcode_libdir_separator_F77=':'
15064      link_all_deplibs_F77=yes
15065      export_dynamic_flag_spec_F77='${wl}-Bexport'
15066      runpath_var='LD_RUN_PATH'
15067
15068      if test "$GCC" = yes; then
15069	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15070	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15071      else
15072	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15073	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15074      fi
15075      ;;
15076
15077    uts4*)
15078      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15079      hardcode_libdir_flag_spec_F77='-L$libdir'
15080      hardcode_shlibpath_var_F77=no
15081      ;;
15082
15083    *)
15084      ld_shlibs_F77=no
15085      ;;
15086    esac
15087  fi
15088
15089{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15090echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15091test "$ld_shlibs_F77" = no && can_build_shared=no
15092
15093#
15094# Do we need to explicitly link libc?
15095#
15096case "x$archive_cmds_need_lc_F77" in
15097x|xyes)
15098  # Assume -lc should be added
15099  archive_cmds_need_lc_F77=yes
15100
15101  if test "$enable_shared" = yes && test "$GCC" = yes; then
15102    case $archive_cmds_F77 in
15103    *'~'*)
15104      # FIXME: we may have to deal with multi-command sequences.
15105      ;;
15106    '$CC '*)
15107      # Test whether the compiler implicitly links with -lc since on some
15108      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15109      # to ld, don't add -lc before -lgcc.
15110      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15111echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15112      $rm conftest*
15113      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15114
15115      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15116  (eval $ac_compile) 2>&5
15117  ac_status=$?
15118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119  (exit $ac_status); } 2>conftest.err; then
15120        soname=conftest
15121        lib=conftest
15122        libobjs=conftest.$ac_objext
15123        deplibs=
15124        wl=$lt_prog_compiler_wl_F77
15125	pic_flag=$lt_prog_compiler_pic_F77
15126        compiler_flags=-v
15127        linker_flags=-v
15128        verstring=
15129        output_objdir=.
15130        libname=conftest
15131        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15132        allow_undefined_flag_F77=
15133        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15134  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15135  ac_status=$?
15136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137  (exit $ac_status); }
15138        then
15139	  archive_cmds_need_lc_F77=no
15140        else
15141	  archive_cmds_need_lc_F77=yes
15142        fi
15143        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15144      else
15145        cat conftest.err 1>&5
15146      fi
15147      $rm conftest*
15148      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15149echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15150      ;;
15151    esac
15152  fi
15153  ;;
15154esac
15155
15156{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15157echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15158library_names_spec=
15159libname_spec='lib$name'
15160soname_spec=
15161shrext_cmds=".so"
15162postinstall_cmds=
15163postuninstall_cmds=
15164finish_cmds=
15165finish_eval=
15166shlibpath_var=
15167shlibpath_overrides_runpath=unknown
15168version_type=none
15169dynamic_linker="$host_os ld.so"
15170sys_lib_dlsearch_path_spec="/lib /usr/lib"
15171
15172need_lib_prefix=unknown
15173hardcode_into_libs=no
15174
15175# when you set need_version to no, make sure it does not cause -set_version
15176# flags to be left without arguments
15177need_version=unknown
15178
15179case $host_os in
15180aix3*)
15181  version_type=linux
15182  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15183  shlibpath_var=LIBPATH
15184
15185  # AIX 3 has no versioning support, so we append a major version to the name.
15186  soname_spec='${libname}${release}${shared_ext}$major'
15187  ;;
15188
15189aix4* | aix5*)
15190  version_type=linux
15191  need_lib_prefix=no
15192  need_version=no
15193  hardcode_into_libs=yes
15194  if test "$host_cpu" = ia64; then
15195    # AIX 5 supports IA64
15196    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15197    shlibpath_var=LD_LIBRARY_PATH
15198  else
15199    # With GCC up to 2.95.x, collect2 would create an import file
15200    # for dependence libraries.  The import file would start with
15201    # the line `#! .'.  This would cause the generated library to
15202    # depend on `.', always an invalid library.  This was fixed in
15203    # development snapshots of GCC prior to 3.0.
15204    case $host_os in
15205      aix4 | aix4.[01] | aix4.[01].*)
15206      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15207	   echo ' yes '
15208	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15209	:
15210      else
15211	can_build_shared=no
15212      fi
15213      ;;
15214    esac
15215    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15216    # soname into executable. Probably we can add versioning support to
15217    # collect2, so additional links can be useful in future.
15218    if test "$aix_use_runtimelinking" = yes; then
15219      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15220      # instead of lib<name>.a to let people know that these are not
15221      # typical AIX shared libraries.
15222      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15223    else
15224      # We preserve .a as extension for shared libraries through AIX4.2
15225      # and later when we are not doing run time linking.
15226      library_names_spec='${libname}${release}.a $libname.a'
15227      soname_spec='${libname}${release}${shared_ext}$major'
15228    fi
15229    shlibpath_var=LIBPATH
15230  fi
15231  ;;
15232
15233amigaos*)
15234  library_names_spec='$libname.ixlibrary $libname.a'
15235  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15236  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'
15237  ;;
15238
15239beos*)
15240  library_names_spec='${libname}${shared_ext}'
15241  dynamic_linker="$host_os ld.so"
15242  shlibpath_var=LIBRARY_PATH
15243  ;;
15244
15245bsdi[45]*)
15246  version_type=linux
15247  need_version=no
15248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15249  soname_spec='${libname}${release}${shared_ext}$major'
15250  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15251  shlibpath_var=LD_LIBRARY_PATH
15252  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15253  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15254  # the default ld.so.conf also contains /usr/contrib/lib and
15255  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15256  # libtool to hard-code these into programs
15257  ;;
15258
15259cygwin* | mingw* | pw32*)
15260  version_type=windows
15261  shrext_cmds=".dll"
15262  need_version=no
15263  need_lib_prefix=no
15264
15265  case $GCC,$host_os in
15266  yes,cygwin* | yes,mingw* | yes,pw32*)
15267    library_names_spec='$libname.dll.a'
15268    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15269    postinstall_cmds='base_file=`basename \${file}`~
15270      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15271      dldir=$destdir/`dirname \$dlpath`~
15272      test -d \$dldir || mkdir -p \$dldir~
15273      $install_prog $dir/$dlname \$dldir/$dlname~
15274      chmod a+x \$dldir/$dlname'
15275    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15276      dlpath=$dir/\$dldll~
15277       $rm \$dlpath'
15278    shlibpath_overrides_runpath=yes
15279
15280    case $host_os in
15281    cygwin*)
15282      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15283      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15284      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15285      ;;
15286    mingw*)
15287      # MinGW DLLs use traditional 'lib' prefix
15288      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15289      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15290      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15291        # It is most probably a Windows format PATH printed by
15292        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15293        # path with ; separators, and with drive letters. We can handle the
15294        # drive letters (cygwin fileutils understands them), so leave them,
15295        # especially as we might pass files found there to a mingw objdump,
15296        # which wouldn't understand a cygwinified path. Ahh.
15297        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15298      else
15299        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15300      fi
15301      ;;
15302    pw32*)
15303      # pw32 DLLs use 'pw' prefix rather than 'lib'
15304      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15305      ;;
15306    esac
15307    ;;
15308
15309  *)
15310    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15311    ;;
15312  esac
15313  dynamic_linker='Win32 ld.exe'
15314  # FIXME: first we should search . and the directory the executable is in
15315  shlibpath_var=PATH
15316  ;;
15317
15318darwin* | rhapsody*)
15319  dynamic_linker="$host_os dyld"
15320  version_type=darwin
15321  need_lib_prefix=no
15322  need_version=no
15323  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15324  soname_spec='${libname}${release}${major}$shared_ext'
15325  shlibpath_overrides_runpath=yes
15326  shlibpath_var=DYLD_LIBRARY_PATH
15327  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15328
15329  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15330  ;;
15331
15332dgux*)
15333  version_type=linux
15334  need_lib_prefix=no
15335  need_version=no
15336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15337  soname_spec='${libname}${release}${shared_ext}$major'
15338  shlibpath_var=LD_LIBRARY_PATH
15339  ;;
15340
15341freebsd1*)
15342  dynamic_linker=no
15343  ;;
15344
15345freebsd* | dragonfly*)
15346  # DragonFly does not have aout.  When/if they implement a new
15347  # versioning mechanism, adjust this.
15348  if test -x /usr/bin/objformat; then
15349    objformat=`/usr/bin/objformat`
15350  else
15351    case $host_os in
15352    freebsd[123]*) objformat=aout ;;
15353    *) objformat=elf ;;
15354    esac
15355  fi
15356  version_type=freebsd-$objformat
15357  case $version_type in
15358    freebsd-elf*)
15359      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15360      need_version=no
15361      need_lib_prefix=no
15362      ;;
15363    freebsd-*)
15364      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15365      need_version=yes
15366      ;;
15367  esac
15368  shlibpath_var=LD_LIBRARY_PATH
15369  case $host_os in
15370  freebsd2*)
15371    shlibpath_overrides_runpath=yes
15372    ;;
15373  freebsd3.[01]* | freebsdelf3.[01]*)
15374    shlibpath_overrides_runpath=yes
15375    hardcode_into_libs=yes
15376    ;;
15377  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15378  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15379    shlibpath_overrides_runpath=no
15380    hardcode_into_libs=yes
15381    ;;
15382  *) # from 4.6 on, and DragonFly
15383    shlibpath_overrides_runpath=yes
15384    hardcode_into_libs=yes
15385    ;;
15386  esac
15387  ;;
15388
15389gnu*)
15390  version_type=linux
15391  need_lib_prefix=no
15392  need_version=no
15393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15394  soname_spec='${libname}${release}${shared_ext}$major'
15395  shlibpath_var=LD_LIBRARY_PATH
15396  hardcode_into_libs=yes
15397  ;;
15398
15399hpux9* | hpux10* | hpux11*)
15400  # Give a soname corresponding to the major version so that dld.sl refuses to
15401  # link against other versions.
15402  version_type=sunos
15403  need_lib_prefix=no
15404  need_version=no
15405  case $host_cpu in
15406  ia64*)
15407    shrext_cmds='.so'
15408    hardcode_into_libs=yes
15409    dynamic_linker="$host_os dld.so"
15410    shlibpath_var=LD_LIBRARY_PATH
15411    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15412    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15413    soname_spec='${libname}${release}${shared_ext}$major'
15414    if test "X$HPUX_IA64_MODE" = X32; then
15415      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15416    else
15417      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15418    fi
15419    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15420    ;;
15421   hppa*64*)
15422     shrext_cmds='.sl'
15423     hardcode_into_libs=yes
15424     dynamic_linker="$host_os dld.sl"
15425     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15426     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15427     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428     soname_spec='${libname}${release}${shared_ext}$major'
15429     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15430     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15431     ;;
15432   *)
15433    shrext_cmds='.sl'
15434    dynamic_linker="$host_os dld.sl"
15435    shlibpath_var=SHLIB_PATH
15436    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15437    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438    soname_spec='${libname}${release}${shared_ext}$major'
15439    ;;
15440  esac
15441  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15442  postinstall_cmds='chmod 555 $lib'
15443  ;;
15444
15445interix[3-9]*)
15446  version_type=linux
15447  need_lib_prefix=no
15448  need_version=no
15449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15450  soname_spec='${libname}${release}${shared_ext}$major'
15451  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15452  shlibpath_var=LD_LIBRARY_PATH
15453  shlibpath_overrides_runpath=no
15454  hardcode_into_libs=yes
15455  ;;
15456
15457irix5* | irix6* | nonstopux*)
15458  case $host_os in
15459    nonstopux*) version_type=nonstopux ;;
15460    *)
15461	if test "$lt_cv_prog_gnu_ld" = yes; then
15462		version_type=linux
15463	else
15464		version_type=irix
15465	fi ;;
15466  esac
15467  need_lib_prefix=no
15468  need_version=no
15469  soname_spec='${libname}${release}${shared_ext}$major'
15470  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15471  case $host_os in
15472  irix5* | nonstopux*)
15473    libsuff= shlibsuff=
15474    ;;
15475  *)
15476    case $LD in # libtool.m4 will add one of these switches to LD
15477    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15478      libsuff= shlibsuff= libmagic=32-bit;;
15479    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15480      libsuff=32 shlibsuff=N32 libmagic=N32;;
15481    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15482      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15483    *) libsuff= shlibsuff= libmagic=never-match;;
15484    esac
15485    ;;
15486  esac
15487  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15488  shlibpath_overrides_runpath=no
15489  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15490  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15491  hardcode_into_libs=yes
15492  ;;
15493
15494# No shared lib support for Linux oldld, aout, or coff.
15495linux*oldld* | linux*aout* | linux*coff*)
15496  dynamic_linker=no
15497  ;;
15498
15499# This must be Linux ELF.
15500linux* | k*bsd*-gnu)
15501  version_type=linux
15502  need_lib_prefix=no
15503  need_version=no
15504  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15505  soname_spec='${libname}${release}${shared_ext}$major'
15506  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15507  shlibpath_var=LD_LIBRARY_PATH
15508  shlibpath_overrides_runpath=no
15509  # This implies no fast_install, which is unacceptable.
15510  # Some rework will be needed to allow for fast_install
15511  # before this can be enabled.
15512  hardcode_into_libs=yes
15513
15514  # Append ld.so.conf contents to the search path
15515  if test -f /etc/ld.so.conf; then
15516    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' ' '`
15517    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15518  fi
15519
15520  # We used to test for /lib/ld.so.1 and disable shared libraries on
15521  # powerpc, because MkLinux only supported shared libraries with the
15522  # GNU dynamic linker.  Since this was broken with cross compilers,
15523  # most powerpc-linux boxes support dynamic linking these days and
15524  # people can always --disable-shared, the test was removed, and we
15525  # assume the GNU/Linux dynamic linker is in use.
15526  dynamic_linker='GNU/Linux ld.so'
15527  ;;
15528
15529netbsd*)
15530  version_type=sunos
15531  need_lib_prefix=no
15532  need_version=no
15533  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15534    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15535    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15536    dynamic_linker='NetBSD (a.out) ld.so'
15537  else
15538    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15539    soname_spec='${libname}${release}${shared_ext}$major'
15540    dynamic_linker='NetBSD ld.elf_so'
15541  fi
15542  shlibpath_var=LD_LIBRARY_PATH
15543  shlibpath_overrides_runpath=yes
15544  hardcode_into_libs=yes
15545  ;;
15546
15547newsos6)
15548  version_type=linux
15549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15550  shlibpath_var=LD_LIBRARY_PATH
15551  shlibpath_overrides_runpath=yes
15552  ;;
15553
15554nto-qnx*)
15555  version_type=linux
15556  need_lib_prefix=no
15557  need_version=no
15558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15559  soname_spec='${libname}${release}${shared_ext}$major'
15560  shlibpath_var=LD_LIBRARY_PATH
15561  shlibpath_overrides_runpath=yes
15562  ;;
15563
15564openbsd*)
15565  version_type=sunos
15566  sys_lib_dlsearch_path_spec="/usr/lib"
15567  need_lib_prefix=no
15568  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15569  case $host_os in
15570    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15571    *)                         need_version=no  ;;
15572  esac
15573  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15574  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15575  shlibpath_var=LD_LIBRARY_PATH
15576  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15577    case $host_os in
15578      openbsd2.[89] | openbsd2.[89].*)
15579	shlibpath_overrides_runpath=no
15580	;;
15581      *)
15582	shlibpath_overrides_runpath=yes
15583	;;
15584      esac
15585  else
15586    shlibpath_overrides_runpath=yes
15587  fi
15588  ;;
15589
15590os2*)
15591  libname_spec='$name'
15592  shrext_cmds=".dll"
15593  need_lib_prefix=no
15594  library_names_spec='$libname${shared_ext} $libname.a'
15595  dynamic_linker='OS/2 ld.exe'
15596  shlibpath_var=LIBPATH
15597  ;;
15598
15599osf3* | osf4* | osf5*)
15600  version_type=osf
15601  need_lib_prefix=no
15602  need_version=no
15603  soname_spec='${libname}${release}${shared_ext}$major'
15604  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15605  shlibpath_var=LD_LIBRARY_PATH
15606  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15607  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15608  ;;
15609
15610rdos*)
15611  dynamic_linker=no
15612  ;;
15613
15614solaris*)
15615  version_type=linux
15616  need_lib_prefix=no
15617  need_version=no
15618  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15619  soname_spec='${libname}${release}${shared_ext}$major'
15620  shlibpath_var=LD_LIBRARY_PATH
15621  shlibpath_overrides_runpath=yes
15622  hardcode_into_libs=yes
15623  # ldd complains unless libraries are executable
15624  postinstall_cmds='chmod +x $lib'
15625  ;;
15626
15627sunos4*)
15628  version_type=sunos
15629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15630  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15631  shlibpath_var=LD_LIBRARY_PATH
15632  shlibpath_overrides_runpath=yes
15633  if test "$with_gnu_ld" = yes; then
15634    need_lib_prefix=no
15635  fi
15636  need_version=yes
15637  ;;
15638
15639sysv4 | sysv4.3*)
15640  version_type=linux
15641  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15642  soname_spec='${libname}${release}${shared_ext}$major'
15643  shlibpath_var=LD_LIBRARY_PATH
15644  case $host_vendor in
15645    sni)
15646      shlibpath_overrides_runpath=no
15647      need_lib_prefix=no
15648      export_dynamic_flag_spec='${wl}-Blargedynsym'
15649      runpath_var=LD_RUN_PATH
15650      ;;
15651    siemens)
15652      need_lib_prefix=no
15653      ;;
15654    motorola)
15655      need_lib_prefix=no
15656      need_version=no
15657      shlibpath_overrides_runpath=no
15658      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15659      ;;
15660  esac
15661  ;;
15662
15663sysv4*MP*)
15664  if test -d /usr/nec ;then
15665    version_type=linux
15666    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15667    soname_spec='$libname${shared_ext}.$major'
15668    shlibpath_var=LD_LIBRARY_PATH
15669  fi
15670  ;;
15671
15672sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15673  version_type=freebsd-elf
15674  need_lib_prefix=no
15675  need_version=no
15676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15677  soname_spec='${libname}${release}${shared_ext}$major'
15678  shlibpath_var=LD_LIBRARY_PATH
15679  hardcode_into_libs=yes
15680  if test "$with_gnu_ld" = yes; then
15681    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15682    shlibpath_overrides_runpath=no
15683  else
15684    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15685    shlibpath_overrides_runpath=yes
15686    case $host_os in
15687      sco3.2v5*)
15688        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15689	;;
15690    esac
15691  fi
15692  sys_lib_dlsearch_path_spec='/usr/lib'
15693  ;;
15694
15695uts4*)
15696  version_type=linux
15697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15698  soname_spec='${libname}${release}${shared_ext}$major'
15699  shlibpath_var=LD_LIBRARY_PATH
15700  ;;
15701
15702*)
15703  dynamic_linker=no
15704  ;;
15705esac
15706{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15707echo "${ECHO_T}$dynamic_linker" >&6; }
15708test "$dynamic_linker" = no && can_build_shared=no
15709
15710variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15711if test "$GCC" = yes; then
15712  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15713fi
15714
15715{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15716echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15717hardcode_action_F77=
15718if test -n "$hardcode_libdir_flag_spec_F77" || \
15719   test -n "$runpath_var_F77" || \
15720   test "X$hardcode_automatic_F77" = "Xyes" ; then
15721
15722  # We can hardcode non-existant directories.
15723  if test "$hardcode_direct_F77" != no &&
15724     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15725     # have to relink, otherwise we might link with an installed library
15726     # when we should be linking with a yet-to-be-installed one
15727     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15728     test "$hardcode_minus_L_F77" != no; then
15729    # Linking always hardcodes the temporary library directory.
15730    hardcode_action_F77=relink
15731  else
15732    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15733    hardcode_action_F77=immediate
15734  fi
15735else
15736  # We cannot hardcode anything, or else we can only hardcode existing
15737  # directories.
15738  hardcode_action_F77=unsupported
15739fi
15740{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15741echo "${ECHO_T}$hardcode_action_F77" >&6; }
15742
15743if test "$hardcode_action_F77" = relink; then
15744  # Fast installation is not supported
15745  enable_fast_install=no
15746elif test "$shlibpath_overrides_runpath" = yes ||
15747     test "$enable_shared" = no; then
15748  # Fast installation is not necessary
15749  enable_fast_install=needless
15750fi
15751
15752
15753# The else clause should only fire when bootstrapping the
15754# libtool distribution, otherwise you forgot to ship ltmain.sh
15755# with your package, and you will get complaints that there are
15756# no rules to generate ltmain.sh.
15757if test -f "$ltmain"; then
15758  # See if we are running on zsh, and set the options which allow our commands through
15759  # without removal of \ escapes.
15760  if test -n "${ZSH_VERSION+set}" ; then
15761    setopt NO_GLOB_SUBST
15762  fi
15763  # Now quote all the things that may contain metacharacters while being
15764  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15765  # variables and quote the copies for generation of the libtool script.
15766  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15767    SED SHELL STRIP \
15768    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15769    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15770    deplibs_check_method reload_flag reload_cmds need_locks \
15771    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15772    lt_cv_sys_global_symbol_to_c_name_address \
15773    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15774    old_postinstall_cmds old_postuninstall_cmds \
15775    compiler_F77 \
15776    CC_F77 \
15777    LD_F77 \
15778    lt_prog_compiler_wl_F77 \
15779    lt_prog_compiler_pic_F77 \
15780    lt_prog_compiler_static_F77 \
15781    lt_prog_compiler_no_builtin_flag_F77 \
15782    export_dynamic_flag_spec_F77 \
15783    thread_safe_flag_spec_F77 \
15784    whole_archive_flag_spec_F77 \
15785    enable_shared_with_static_runtimes_F77 \
15786    old_archive_cmds_F77 \
15787    old_archive_from_new_cmds_F77 \
15788    predep_objects_F77 \
15789    postdep_objects_F77 \
15790    predeps_F77 \
15791    postdeps_F77 \
15792    compiler_lib_search_path_F77 \
15793    archive_cmds_F77 \
15794    archive_expsym_cmds_F77 \
15795    postinstall_cmds_F77 \
15796    postuninstall_cmds_F77 \
15797    old_archive_from_expsyms_cmds_F77 \
15798    allow_undefined_flag_F77 \
15799    no_undefined_flag_F77 \
15800    export_symbols_cmds_F77 \
15801    hardcode_libdir_flag_spec_F77 \
15802    hardcode_libdir_flag_spec_ld_F77 \
15803    hardcode_libdir_separator_F77 \
15804    hardcode_automatic_F77 \
15805    module_cmds_F77 \
15806    module_expsym_cmds_F77 \
15807    lt_cv_prog_compiler_c_o_F77 \
15808    fix_srcfile_path_F77 \
15809    exclude_expsyms_F77 \
15810    include_expsyms_F77; do
15811
15812    case $var in
15813    old_archive_cmds_F77 | \
15814    old_archive_from_new_cmds_F77 | \
15815    archive_cmds_F77 | \
15816    archive_expsym_cmds_F77 | \
15817    module_cmds_F77 | \
15818    module_expsym_cmds_F77 | \
15819    old_archive_from_expsyms_cmds_F77 | \
15820    export_symbols_cmds_F77 | \
15821    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15822    postinstall_cmds | postuninstall_cmds | \
15823    old_postinstall_cmds | old_postuninstall_cmds | \
15824    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15825      # Double-quote double-evaled strings.
15826      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15827      ;;
15828    *)
15829      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15830      ;;
15831    esac
15832  done
15833
15834  case $lt_echo in
15835  *'\$0 --fallback-echo"')
15836    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15837    ;;
15838  esac
15839
15840cfgfile="$ofile"
15841
15842  cat <<__EOF__ >> "$cfgfile"
15843# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15844
15845# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15846
15847# Shell to use when invoking shell scripts.
15848SHELL=$lt_SHELL
15849
15850# Whether or not to build shared libraries.
15851build_libtool_libs=$enable_shared
15852
15853# Whether or not to build static libraries.
15854build_old_libs=$enable_static
15855
15856# Whether or not to add -lc for building shared libraries.
15857build_libtool_need_lc=$archive_cmds_need_lc_F77
15858
15859# Whether or not to disallow shared libs when runtime libs are static
15860allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15861
15862# Whether or not to optimize for fast installation.
15863fast_install=$enable_fast_install
15864
15865# The host system.
15866host_alias=$host_alias
15867host=$host
15868host_os=$host_os
15869
15870# The build system.
15871build_alias=$build_alias
15872build=$build
15873build_os=$build_os
15874
15875# An echo program that does not interpret backslashes.
15876echo=$lt_echo
15877
15878# The archiver.
15879AR=$lt_AR
15880AR_FLAGS=$lt_AR_FLAGS
15881
15882# A C compiler.
15883LTCC=$lt_LTCC
15884
15885# LTCC compiler flags.
15886LTCFLAGS=$lt_LTCFLAGS
15887
15888# A language-specific compiler.
15889CC=$lt_compiler_F77
15890
15891# Is the compiler the GNU C compiler?
15892with_gcc=$GCC_F77
15893
15894# An ERE matcher.
15895EGREP=$lt_EGREP
15896
15897# The linker used to build libraries.
15898LD=$lt_LD_F77
15899
15900# Whether we need hard or soft links.
15901LN_S=$lt_LN_S
15902
15903# A BSD-compatible nm program.
15904NM=$lt_NM
15905
15906# A symbol stripping program
15907STRIP=$lt_STRIP
15908
15909# Used to examine libraries when file_magic_cmd begins "file"
15910MAGIC_CMD=$MAGIC_CMD
15911
15912# Used on cygwin: DLL creation program.
15913DLLTOOL="$DLLTOOL"
15914
15915# Used on cygwin: object dumper.
15916OBJDUMP="$OBJDUMP"
15917
15918# Used on cygwin: assembler.
15919AS="$AS"
15920
15921# The name of the directory that contains temporary libtool files.
15922objdir=$objdir
15923
15924# How to create reloadable object files.
15925reload_flag=$lt_reload_flag
15926reload_cmds=$lt_reload_cmds
15927
15928# How to pass a linker flag through the compiler.
15929wl=$lt_lt_prog_compiler_wl_F77
15930
15931# Object file suffix (normally "o").
15932objext="$ac_objext"
15933
15934# Old archive suffix (normally "a").
15935libext="$libext"
15936
15937# Shared library suffix (normally ".so").
15938shrext_cmds='$shrext_cmds'
15939
15940# Executable file suffix (normally "").
15941exeext="$exeext"
15942
15943# Additional compiler flags for building library objects.
15944pic_flag=$lt_lt_prog_compiler_pic_F77
15945pic_mode=$pic_mode
15946
15947# What is the maximum length of a command?
15948max_cmd_len=$lt_cv_sys_max_cmd_len
15949
15950# Does compiler simultaneously support -c and -o options?
15951compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15952
15953# Must we lock files when doing compilation?
15954need_locks=$lt_need_locks
15955
15956# Do we need the lib prefix for modules?
15957need_lib_prefix=$need_lib_prefix
15958
15959# Do we need a version for libraries?
15960need_version=$need_version
15961
15962# Whether dlopen is supported.
15963dlopen_support=$enable_dlopen
15964
15965# Whether dlopen of programs is supported.
15966dlopen_self=$enable_dlopen_self
15967
15968# Whether dlopen of statically linked programs is supported.
15969dlopen_self_static=$enable_dlopen_self_static
15970
15971# Compiler flag to prevent dynamic linking.
15972link_static_flag=$lt_lt_prog_compiler_static_F77
15973
15974# Compiler flag to turn off builtin functions.
15975no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15976
15977# Compiler flag to allow reflexive dlopens.
15978export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15979
15980# Compiler flag to generate shared objects directly from archives.
15981whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15982
15983# Compiler flag to generate thread-safe objects.
15984thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15985
15986# Library versioning type.
15987version_type=$version_type
15988
15989# Format of library name prefix.
15990libname_spec=$lt_libname_spec
15991
15992# List of archive names.  First name is the real one, the rest are links.
15993# The last name is the one that the linker finds with -lNAME.
15994library_names_spec=$lt_library_names_spec
15995
15996# The coded name of the library, if different from the real name.
15997soname_spec=$lt_soname_spec
15998
15999# Commands used to build and install an old-style archive.
16000RANLIB=$lt_RANLIB
16001old_archive_cmds=$lt_old_archive_cmds_F77
16002old_postinstall_cmds=$lt_old_postinstall_cmds
16003old_postuninstall_cmds=$lt_old_postuninstall_cmds
16004
16005# Create an old-style archive from a shared archive.
16006old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16007
16008# Create a temporary old-style archive to link instead of a shared archive.
16009old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16010
16011# Commands used to build and install a shared archive.
16012archive_cmds=$lt_archive_cmds_F77
16013archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16014postinstall_cmds=$lt_postinstall_cmds
16015postuninstall_cmds=$lt_postuninstall_cmds
16016
16017# Commands used to build a loadable module (assumed same as above if empty)
16018module_cmds=$lt_module_cmds_F77
16019module_expsym_cmds=$lt_module_expsym_cmds_F77
16020
16021# Commands to strip libraries.
16022old_striplib=$lt_old_striplib
16023striplib=$lt_striplib
16024
16025# Dependencies to place before the objects being linked to create a
16026# shared library.
16027predep_objects=$lt_predep_objects_F77
16028
16029# Dependencies to place after the objects being linked to create a
16030# shared library.
16031postdep_objects=$lt_postdep_objects_F77
16032
16033# Dependencies to place before the objects being linked to create a
16034# shared library.
16035predeps=$lt_predeps_F77
16036
16037# Dependencies to place after the objects being linked to create a
16038# shared library.
16039postdeps=$lt_postdeps_F77
16040
16041# The library search path used internally by the compiler when linking
16042# a shared library.
16043compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16044
16045# Method to check whether dependent libraries are shared objects.
16046deplibs_check_method=$lt_deplibs_check_method
16047
16048# Command to use when deplibs_check_method == file_magic.
16049file_magic_cmd=$lt_file_magic_cmd
16050
16051# Flag that allows shared libraries with undefined symbols to be built.
16052allow_undefined_flag=$lt_allow_undefined_flag_F77
16053
16054# Flag that forces no undefined symbols.
16055no_undefined_flag=$lt_no_undefined_flag_F77
16056
16057# Commands used to finish a libtool library installation in a directory.
16058finish_cmds=$lt_finish_cmds
16059
16060# Same as above, but a single script fragment to be evaled but not shown.
16061finish_eval=$lt_finish_eval
16062
16063# Take the output of nm and produce a listing of raw symbols and C names.
16064global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16065
16066# Transform the output of nm in a proper C declaration
16067global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16068
16069# Transform the output of nm in a C name address pair
16070global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16071
16072# This is the shared library runtime path variable.
16073runpath_var=$runpath_var
16074
16075# This is the shared library path variable.
16076shlibpath_var=$shlibpath_var
16077
16078# Is shlibpath searched before the hard-coded library search path?
16079shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16080
16081# How to hardcode a shared library path into an executable.
16082hardcode_action=$hardcode_action_F77
16083
16084# Whether we should hardcode library paths into libraries.
16085hardcode_into_libs=$hardcode_into_libs
16086
16087# Flag to hardcode \$libdir into a binary during linking.
16088# This must work even if \$libdir does not exist.
16089hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16090
16091# If ld is used when linking, flag to hardcode \$libdir into
16092# a binary during linking. This must work even if \$libdir does
16093# not exist.
16094hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16095
16096# Whether we need a single -rpath flag with a separated argument.
16097hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16098
16099# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16100# resulting binary.
16101hardcode_direct=$hardcode_direct_F77
16102
16103# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16104# resulting binary.
16105hardcode_minus_L=$hardcode_minus_L_F77
16106
16107# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16108# the resulting binary.
16109hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16110
16111# Set to yes if building a shared library automatically hardcodes DIR into the library
16112# and all subsequent libraries and executables linked against it.
16113hardcode_automatic=$hardcode_automatic_F77
16114
16115# Variables whose values should be saved in libtool wrapper scripts and
16116# restored at relink time.
16117variables_saved_for_relink="$variables_saved_for_relink"
16118
16119# Whether libtool must link a program against all its dependency libraries.
16120link_all_deplibs=$link_all_deplibs_F77
16121
16122# Compile-time system search path for libraries
16123sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16124
16125# Run-time system search path for libraries
16126sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16127
16128# Fix the shell variable \$srcfile for the compiler.
16129fix_srcfile_path=$lt_fix_srcfile_path
16130
16131# Set to yes if exported symbols are required.
16132always_export_symbols=$always_export_symbols_F77
16133
16134# The commands to list exported symbols.
16135export_symbols_cmds=$lt_export_symbols_cmds_F77
16136
16137# The commands to extract the exported symbol list from a shared archive.
16138extract_expsyms_cmds=$lt_extract_expsyms_cmds
16139
16140# Symbols that should not be listed in the preloaded symbols.
16141exclude_expsyms=$lt_exclude_expsyms_F77
16142
16143# Symbols that must always be exported.
16144include_expsyms=$lt_include_expsyms_F77
16145
16146# ### END LIBTOOL TAG CONFIG: $tagname
16147
16148__EOF__
16149
16150
16151else
16152  # If there is no Makefile yet, we rely on a make rule to execute
16153  # `config.status --recheck' to rerun these tests and create the
16154  # libtool script then.
16155  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16156  if test -f "$ltmain_in"; then
16157    test -f Makefile && make "$ltmain"
16158  fi
16159fi
16160
16161
16162ac_ext=c
16163ac_cpp='$CPP $CPPFLAGS'
16164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16166ac_compiler_gnu=$ac_cv_c_compiler_gnu
16167
16168CC="$lt_save_CC"
16169
16170	else
16171	  tagname=""
16172	fi
16173	;;
16174
16175      GCJ)
16176	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16177
16178
16179# Source file extension for Java test sources.
16180ac_ext=java
16181
16182# Object file extension for compiled Java test sources.
16183objext=o
16184objext_GCJ=$objext
16185
16186# Code to be used in simple compile tests
16187lt_simple_compile_test_code="class foo {}"
16188
16189# Code to be used in simple link tests
16190lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16191
16192# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16193
16194# If no C compiler was specified, use CC.
16195LTCC=${LTCC-"$CC"}
16196
16197# If no C compiler flags were specified, use CFLAGS.
16198LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16199
16200# Allow CC to be a program name with arguments.
16201compiler=$CC
16202
16203
16204# save warnings/boilerplate of simple test code
16205ac_outfile=conftest.$ac_objext
16206echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16207eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16208_lt_compiler_boilerplate=`cat conftest.err`
16209$rm conftest*
16210
16211ac_outfile=conftest.$ac_objext
16212echo "$lt_simple_link_test_code" >conftest.$ac_ext
16213eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16214_lt_linker_boilerplate=`cat conftest.err`
16215$rm conftest*
16216
16217
16218# Allow CC to be a program name with arguments.
16219lt_save_CC="$CC"
16220CC=${GCJ-"gcj"}
16221compiler=$CC
16222compiler_GCJ=$CC
16223for cc_temp in $compiler""; do
16224  case $cc_temp in
16225    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16226    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16227    \-*) ;;
16228    *) break;;
16229  esac
16230done
16231cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16232
16233
16234# GCJ did not exist at the time GCC didn't implicitly link libc in.
16235archive_cmds_need_lc_GCJ=no
16236
16237old_archive_cmds_GCJ=$old_archive_cmds
16238
16239
16240lt_prog_compiler_no_builtin_flag_GCJ=
16241
16242if test "$GCC" = yes; then
16243  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16244
16245
16246{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16247echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16248if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16249  echo $ECHO_N "(cached) $ECHO_C" >&6
16250else
16251  lt_cv_prog_compiler_rtti_exceptions=no
16252  ac_outfile=conftest.$ac_objext
16253   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16254   lt_compiler_flag="-fno-rtti -fno-exceptions"
16255   # Insert the option either (1) after the last *FLAGS variable, or
16256   # (2) before a word containing "conftest.", or (3) at the end.
16257   # Note that $ac_compile itself does not contain backslashes and begins
16258   # with a dollar sign (not a hyphen), so the echo should work correctly.
16259   # The option is referenced via a variable to avoid confusing sed.
16260   lt_compile=`echo "$ac_compile" | $SED \
16261   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16262   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16263   -e 's:$: $lt_compiler_flag:'`
16264   (eval echo "\"\$as_me:16264: $lt_compile\"" >&5)
16265   (eval "$lt_compile" 2>conftest.err)
16266   ac_status=$?
16267   cat conftest.err >&5
16268   echo "$as_me:16268: \$? = $ac_status" >&5
16269   if (exit $ac_status) && test -s "$ac_outfile"; then
16270     # The compiler can only warn and ignore the option if not recognized
16271     # So say no if there are warnings other than the usual output.
16272     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16273     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16274     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16275       lt_cv_prog_compiler_rtti_exceptions=yes
16276     fi
16277   fi
16278   $rm conftest*
16279
16280fi
16281{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16282echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16283
16284if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16285    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16286else
16287    :
16288fi
16289
16290fi
16291
16292lt_prog_compiler_wl_GCJ=
16293lt_prog_compiler_pic_GCJ=
16294lt_prog_compiler_static_GCJ=
16295
16296{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16297echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16298
16299  if test "$GCC" = yes; then
16300    lt_prog_compiler_wl_GCJ='-Wl,'
16301    lt_prog_compiler_static_GCJ='-static'
16302
16303    case $host_os in
16304      aix*)
16305      # All AIX code is PIC.
16306      if test "$host_cpu" = ia64; then
16307	# AIX 5 now supports IA64 processor
16308	lt_prog_compiler_static_GCJ='-Bstatic'
16309      fi
16310      ;;
16311
16312    amigaos*)
16313      # FIXME: we need at least 68020 code to build shared libraries, but
16314      # adding the `-m68020' flag to GCC prevents building anything better,
16315      # like `-m68040'.
16316      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16317      ;;
16318
16319    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16320      # PIC is the default for these OSes.
16321      ;;
16322
16323    mingw* | cygwin* | pw32* | os2*)
16324      # This hack is so that the source file can tell whether it is being
16325      # built for inclusion in a dll (and should export symbols for example).
16326      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16327      # (--disable-auto-import) libraries
16328      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16329      ;;
16330
16331    darwin* | rhapsody*)
16332      # PIC is the default on this platform
16333      # Common symbols not allowed in MH_DYLIB files
16334      lt_prog_compiler_pic_GCJ='-fno-common'
16335      ;;
16336
16337    interix[3-9]*)
16338      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16339      # Instead, we relocate shared libraries at runtime.
16340      ;;
16341
16342    msdosdjgpp*)
16343      # Just because we use GCC doesn't mean we suddenly get shared libraries
16344      # on systems that don't support them.
16345      lt_prog_compiler_can_build_shared_GCJ=no
16346      enable_shared=no
16347      ;;
16348
16349    sysv4*MP*)
16350      if test -d /usr/nec; then
16351	lt_prog_compiler_pic_GCJ=-Kconform_pic
16352      fi
16353      ;;
16354
16355    hpux*)
16356      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16357      # not for PA HP-UX.
16358      case $host_cpu in
16359      hppa*64*|ia64*)
16360	# +Z the default
16361	;;
16362      *)
16363	lt_prog_compiler_pic_GCJ='-fPIC'
16364	;;
16365      esac
16366      ;;
16367
16368    *)
16369      lt_prog_compiler_pic_GCJ='-fPIC'
16370      ;;
16371    esac
16372  else
16373    # PORTME Check for flag to pass linker flags through the system compiler.
16374    case $host_os in
16375    aix*)
16376      lt_prog_compiler_wl_GCJ='-Wl,'
16377      if test "$host_cpu" = ia64; then
16378	# AIX 5 now supports IA64 processor
16379	lt_prog_compiler_static_GCJ='-Bstatic'
16380      else
16381	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16382      fi
16383      ;;
16384      darwin*)
16385        # PIC is the default on this platform
16386        # Common symbols not allowed in MH_DYLIB files
16387       case $cc_basename in
16388         xlc*)
16389         lt_prog_compiler_pic_GCJ='-qnocommon'
16390         lt_prog_compiler_wl_GCJ='-Wl,'
16391         ;;
16392       esac
16393       ;;
16394
16395    mingw* | cygwin* | pw32* | os2*)
16396      # This hack is so that the source file can tell whether it is being
16397      # built for inclusion in a dll (and should export symbols for example).
16398      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16399      ;;
16400
16401    hpux9* | hpux10* | hpux11*)
16402      lt_prog_compiler_wl_GCJ='-Wl,'
16403      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16404      # not for PA HP-UX.
16405      case $host_cpu in
16406      hppa*64*|ia64*)
16407	# +Z the default
16408	;;
16409      *)
16410	lt_prog_compiler_pic_GCJ='+Z'
16411	;;
16412      esac
16413      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16414      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16415      ;;
16416
16417    irix5* | irix6* | nonstopux*)
16418      lt_prog_compiler_wl_GCJ='-Wl,'
16419      # PIC (with -KPIC) is the default.
16420      lt_prog_compiler_static_GCJ='-non_shared'
16421      ;;
16422
16423    newsos6)
16424      lt_prog_compiler_pic_GCJ='-KPIC'
16425      lt_prog_compiler_static_GCJ='-Bstatic'
16426      ;;
16427
16428    linux* | k*bsd*-gnu)
16429      case $cc_basename in
16430      icc* | ecc*)
16431	lt_prog_compiler_wl_GCJ='-Wl,'
16432	lt_prog_compiler_pic_GCJ='-KPIC'
16433	lt_prog_compiler_static_GCJ='-static'
16434        ;;
16435      pgcc* | pgf77* | pgf90* | pgf95*)
16436        # Portland Group compilers (*not* the Pentium gcc compiler,
16437	# which looks to be a dead project)
16438	lt_prog_compiler_wl_GCJ='-Wl,'
16439	lt_prog_compiler_pic_GCJ='-fpic'
16440	lt_prog_compiler_static_GCJ='-Bstatic'
16441        ;;
16442      ccc*)
16443        lt_prog_compiler_wl_GCJ='-Wl,'
16444        # All Alpha code is PIC.
16445        lt_prog_compiler_static_GCJ='-non_shared'
16446        ;;
16447      como)
16448        lt_prog_compiler_wl_GCJ='-lopt='
16449        ;;
16450      *)
16451        case `$CC -V 2>&1 | sed 5q` in
16452	*Sun\ C*)
16453	  # Sun C 5.9
16454	  lt_prog_compiler_pic_GCJ='-KPIC'
16455	  lt_prog_compiler_static_GCJ='-Bstatic'
16456	  lt_prog_compiler_wl_GCJ='-Wl,'
16457	  ;;
16458	*Sun\ F*)
16459	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16460	  lt_prog_compiler_pic_GCJ='-KPIC'
16461	  lt_prog_compiler_static_GCJ='-Bstatic'
16462	  lt_prog_compiler_wl_GCJ=''
16463	  ;;
16464	esac
16465	;;
16466      esac
16467      ;;
16468
16469    osf3* | osf4* | osf5*)
16470      lt_prog_compiler_wl_GCJ='-Wl,'
16471      # All OSF/1 code is PIC.
16472      lt_prog_compiler_static_GCJ='-non_shared'
16473      ;;
16474
16475    rdos*)
16476      lt_prog_compiler_static_GCJ='-non_shared'
16477      ;;
16478
16479    solaris*)
16480      lt_prog_compiler_pic_GCJ='-KPIC'
16481      lt_prog_compiler_static_GCJ='-Bstatic'
16482      case $cc_basename in
16483      f77* | f90* | f95*)
16484	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16485      *)
16486	lt_prog_compiler_wl_GCJ='-Wl,';;
16487      esac
16488      ;;
16489
16490    sunos4*)
16491      lt_prog_compiler_wl_GCJ='-Qoption ld '
16492      lt_prog_compiler_pic_GCJ='-PIC'
16493      lt_prog_compiler_static_GCJ='-Bstatic'
16494      ;;
16495
16496    sysv4 | sysv4.2uw2* | sysv4.3*)
16497      lt_prog_compiler_wl_GCJ='-Wl,'
16498      lt_prog_compiler_pic_GCJ='-KPIC'
16499      lt_prog_compiler_static_GCJ='-Bstatic'
16500      ;;
16501
16502    sysv4*MP*)
16503      if test -d /usr/nec ;then
16504	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16505	lt_prog_compiler_static_GCJ='-Bstatic'
16506      fi
16507      ;;
16508
16509    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16510      lt_prog_compiler_wl_GCJ='-Wl,'
16511      lt_prog_compiler_pic_GCJ='-KPIC'
16512      lt_prog_compiler_static_GCJ='-Bstatic'
16513      ;;
16514
16515    unicos*)
16516      lt_prog_compiler_wl_GCJ='-Wl,'
16517      lt_prog_compiler_can_build_shared_GCJ=no
16518      ;;
16519
16520    uts4*)
16521      lt_prog_compiler_pic_GCJ='-pic'
16522      lt_prog_compiler_static_GCJ='-Bstatic'
16523      ;;
16524
16525    *)
16526      lt_prog_compiler_can_build_shared_GCJ=no
16527      ;;
16528    esac
16529  fi
16530
16531{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16532echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16533
16534#
16535# Check to make sure the PIC flag actually works.
16536#
16537if test -n "$lt_prog_compiler_pic_GCJ"; then
16538
16539{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16540echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16541if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16542  echo $ECHO_N "(cached) $ECHO_C" >&6
16543else
16544  lt_prog_compiler_pic_works_GCJ=no
16545  ac_outfile=conftest.$ac_objext
16546   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16547   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16548   # Insert the option either (1) after the last *FLAGS variable, or
16549   # (2) before a word containing "conftest.", or (3) at the end.
16550   # Note that $ac_compile itself does not contain backslashes and begins
16551   # with a dollar sign (not a hyphen), so the echo should work correctly.
16552   # The option is referenced via a variable to avoid confusing sed.
16553   lt_compile=`echo "$ac_compile" | $SED \
16554   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16555   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16556   -e 's:$: $lt_compiler_flag:'`
16557   (eval echo "\"\$as_me:16557: $lt_compile\"" >&5)
16558   (eval "$lt_compile" 2>conftest.err)
16559   ac_status=$?
16560   cat conftest.err >&5
16561   echo "$as_me:16561: \$? = $ac_status" >&5
16562   if (exit $ac_status) && test -s "$ac_outfile"; then
16563     # The compiler can only warn and ignore the option if not recognized
16564     # So say no if there are warnings other than the usual output.
16565     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16566     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16567     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16568       lt_prog_compiler_pic_works_GCJ=yes
16569     fi
16570   fi
16571   $rm conftest*
16572
16573fi
16574{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16575echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16576
16577if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16578    case $lt_prog_compiler_pic_GCJ in
16579     "" | " "*) ;;
16580     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16581     esac
16582else
16583    lt_prog_compiler_pic_GCJ=
16584     lt_prog_compiler_can_build_shared_GCJ=no
16585fi
16586
16587fi
16588case $host_os in
16589  # For platforms which do not support PIC, -DPIC is meaningless:
16590  *djgpp*)
16591    lt_prog_compiler_pic_GCJ=
16592    ;;
16593  *)
16594    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16595    ;;
16596esac
16597
16598#
16599# Check to make sure the static flag actually works.
16600#
16601wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16602{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16603echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16604if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16605  echo $ECHO_N "(cached) $ECHO_C" >&6
16606else
16607  lt_prog_compiler_static_works_GCJ=no
16608   save_LDFLAGS="$LDFLAGS"
16609   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16610   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16611   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16612     # The linker can only warn and ignore the option if not recognized
16613     # So say no if there are warnings
16614     if test -s conftest.err; then
16615       # Append any errors to the config.log.
16616       cat conftest.err 1>&5
16617       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16618       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16619       if diff conftest.exp conftest.er2 >/dev/null; then
16620         lt_prog_compiler_static_works_GCJ=yes
16621       fi
16622     else
16623       lt_prog_compiler_static_works_GCJ=yes
16624     fi
16625   fi
16626   $rm conftest*
16627   LDFLAGS="$save_LDFLAGS"
16628
16629fi
16630{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16631echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16632
16633if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16634    :
16635else
16636    lt_prog_compiler_static_GCJ=
16637fi
16638
16639
16640{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16641echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16642if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16643  echo $ECHO_N "(cached) $ECHO_C" >&6
16644else
16645  lt_cv_prog_compiler_c_o_GCJ=no
16646   $rm -r conftest 2>/dev/null
16647   mkdir conftest
16648   cd conftest
16649   mkdir out
16650   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16651
16652   lt_compiler_flag="-o out/conftest2.$ac_objext"
16653   # Insert the option either (1) after the last *FLAGS variable, or
16654   # (2) before a word containing "conftest.", or (3) at the end.
16655   # Note that $ac_compile itself does not contain backslashes and begins
16656   # with a dollar sign (not a hyphen), so the echo should work correctly.
16657   lt_compile=`echo "$ac_compile" | $SED \
16658   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16659   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16660   -e 's:$: $lt_compiler_flag:'`
16661   (eval echo "\"\$as_me:16661: $lt_compile\"" >&5)
16662   (eval "$lt_compile" 2>out/conftest.err)
16663   ac_status=$?
16664   cat out/conftest.err >&5
16665   echo "$as_me:16665: \$? = $ac_status" >&5
16666   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16667   then
16668     # The compiler can only warn and ignore the option if not recognized
16669     # So say no if there are warnings
16670     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16671     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16672     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16673       lt_cv_prog_compiler_c_o_GCJ=yes
16674     fi
16675   fi
16676   chmod u+w . 2>&5
16677   $rm conftest*
16678   # SGI C++ compiler will create directory out/ii_files/ for
16679   # template instantiation
16680   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16681   $rm out/* && rmdir out
16682   cd ..
16683   rmdir conftest
16684   $rm conftest*
16685
16686fi
16687{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16688echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16689
16690
16691hard_links="nottested"
16692if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16693  # do not overwrite the value of need_locks provided by the user
16694  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16695echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16696  hard_links=yes
16697  $rm conftest*
16698  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16699  touch conftest.a
16700  ln conftest.a conftest.b 2>&5 || hard_links=no
16701  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16702  { echo "$as_me:$LINENO: result: $hard_links" >&5
16703echo "${ECHO_T}$hard_links" >&6; }
16704  if test "$hard_links" = no; then
16705    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16706echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16707    need_locks=warn
16708  fi
16709else
16710  need_locks=no
16711fi
16712
16713{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16714echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16715
16716  runpath_var=
16717  allow_undefined_flag_GCJ=
16718  enable_shared_with_static_runtimes_GCJ=no
16719  archive_cmds_GCJ=
16720  archive_expsym_cmds_GCJ=
16721  old_archive_From_new_cmds_GCJ=
16722  old_archive_from_expsyms_cmds_GCJ=
16723  export_dynamic_flag_spec_GCJ=
16724  whole_archive_flag_spec_GCJ=
16725  thread_safe_flag_spec_GCJ=
16726  hardcode_libdir_flag_spec_GCJ=
16727  hardcode_libdir_flag_spec_ld_GCJ=
16728  hardcode_libdir_separator_GCJ=
16729  hardcode_direct_GCJ=no
16730  hardcode_minus_L_GCJ=no
16731  hardcode_shlibpath_var_GCJ=unsupported
16732  link_all_deplibs_GCJ=unknown
16733  hardcode_automatic_GCJ=no
16734  module_cmds_GCJ=
16735  module_expsym_cmds_GCJ=
16736  always_export_symbols_GCJ=no
16737  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16738  # include_expsyms should be a list of space-separated symbols to be *always*
16739  # included in the symbol list
16740  include_expsyms_GCJ=
16741  # exclude_expsyms can be an extended regexp of symbols to exclude
16742  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16743  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16744  # as well as any symbol that contains `d'.
16745  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16746  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16747  # platforms (ab)use it in PIC code, but their linkers get confused if
16748  # the symbol is explicitly referenced.  Since portable code cannot
16749  # rely on this symbol name, it's probably fine to never include it in
16750  # preloaded symbol tables.
16751  extract_expsyms_cmds=
16752  # Just being paranoid about ensuring that cc_basename is set.
16753  for cc_temp in $compiler""; do
16754  case $cc_temp in
16755    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16756    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16757    \-*) ;;
16758    *) break;;
16759  esac
16760done
16761cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16762
16763  case $host_os in
16764  cygwin* | mingw* | pw32*)
16765    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16766    # When not using gcc, we currently assume that we are using
16767    # Microsoft Visual C++.
16768    if test "$GCC" != yes; then
16769      with_gnu_ld=no
16770    fi
16771    ;;
16772  interix*)
16773    # we just hope/assume this is gcc and not c89 (= MSVC++)
16774    with_gnu_ld=yes
16775    ;;
16776  openbsd*)
16777    with_gnu_ld=no
16778    ;;
16779  esac
16780
16781  ld_shlibs_GCJ=yes
16782  if test "$with_gnu_ld" = yes; then
16783    # If archive_cmds runs LD, not CC, wlarc should be empty
16784    wlarc='${wl}'
16785
16786    # Set some defaults for GNU ld with shared library support. These
16787    # are reset later if shared libraries are not supported. Putting them
16788    # here allows them to be overridden if necessary.
16789    runpath_var=LD_RUN_PATH
16790    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16791    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16792    # ancient GNU ld didn't support --whole-archive et. al.
16793    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16794	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16795      else
16796  	whole_archive_flag_spec_GCJ=
16797    fi
16798    supports_anon_versioning=no
16799    case `$LD -v 2>/dev/null` in
16800      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16801      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16802      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16803      *\ 2.11.*) ;; # other 2.11 versions
16804      *) supports_anon_versioning=yes ;;
16805    esac
16806
16807    # See if GNU ld supports shared libraries.
16808    case $host_os in
16809    aix3* | aix4* | aix5*)
16810      # On AIX/PPC, the GNU linker is very broken
16811      if test "$host_cpu" != ia64; then
16812	ld_shlibs_GCJ=no
16813	cat <<EOF 1>&2
16814
16815*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16816*** to be unable to reliably create shared libraries on AIX.
16817*** Therefore, libtool is disabling shared libraries support.  If you
16818*** really care for shared libraries, you may want to modify your PATH
16819*** so that a non-GNU linker is found, and then restart.
16820
16821EOF
16822      fi
16823      ;;
16824
16825    amigaos*)
16826      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)'
16827      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16828      hardcode_minus_L_GCJ=yes
16829
16830      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16831      # that the semantics of dynamic libraries on AmigaOS, at least up
16832      # to version 4, is to share data among multiple programs linked
16833      # with the same dynamic library.  Since this doesn't match the
16834      # behavior of shared libraries on other platforms, we can't use
16835      # them.
16836      ld_shlibs_GCJ=no
16837      ;;
16838
16839    beos*)
16840      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16841	allow_undefined_flag_GCJ=unsupported
16842	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16843	# support --undefined.  This deserves some investigation.  FIXME
16844	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16845      else
16846	ld_shlibs_GCJ=no
16847      fi
16848      ;;
16849
16850    cygwin* | mingw* | pw32*)
16851      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16852      # as there is no search path for DLLs.
16853      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16854      allow_undefined_flag_GCJ=unsupported
16855      always_export_symbols_GCJ=no
16856      enable_shared_with_static_runtimes_GCJ=yes
16857      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16858
16859      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16860        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16861	# If the export-symbols file already is a .def file (1st line
16862	# is EXPORTS), use it as is; otherwise, prepend...
16863	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16864	  cp $export_symbols $output_objdir/$soname.def;
16865	else
16866	  echo EXPORTS > $output_objdir/$soname.def;
16867	  cat $export_symbols >> $output_objdir/$soname.def;
16868	fi~
16869	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16870      else
16871	ld_shlibs_GCJ=no
16872      fi
16873      ;;
16874
16875    interix[3-9]*)
16876      hardcode_direct_GCJ=no
16877      hardcode_shlibpath_var_GCJ=no
16878      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16879      export_dynamic_flag_spec_GCJ='${wl}-E'
16880      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16881      # Instead, shared libraries are loaded at an image base (0x10000000 by
16882      # default) and relocated if they conflict, which is a slow very memory
16883      # consuming and fragmenting process.  To avoid this, we pick a random,
16884      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16885      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16886      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'
16887      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'
16888      ;;
16889
16890    gnu* | linux* | k*bsd*-gnu)
16891      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16892	tmp_addflag=
16893	case $cc_basename,$host_cpu in
16894	pgcc*)				# Portland Group C compiler
16895	  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'
16896	  tmp_addflag=' $pic_flag'
16897	  ;;
16898	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16899	  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'
16900	  tmp_addflag=' $pic_flag -Mnomain' ;;
16901	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16902	  tmp_addflag=' -i_dynamic' ;;
16903	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16904	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16905	ifc* | ifort*)			# Intel Fortran compiler
16906	  tmp_addflag=' -nofor_main' ;;
16907	esac
16908	case `$CC -V 2>&1 | sed 5q` in
16909	*Sun\ C*)			# Sun C 5.9
16910	  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'
16911	  tmp_sharedflag='-G' ;;
16912	*Sun\ F*)			# Sun Fortran 8.3
16913	  tmp_sharedflag='-G' ;;
16914	*)
16915	  tmp_sharedflag='-shared' ;;
16916	esac
16917	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16918
16919	if test $supports_anon_versioning = yes; then
16920	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16921  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16922  $echo "local: *; };" >> $output_objdir/$libname.ver~
16923	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16924	fi
16925      else
16926	ld_shlibs_GCJ=no
16927      fi
16928      ;;
16929
16930    netbsd*)
16931      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16932	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16933	wlarc=
16934      else
16935	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16936	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16937      fi
16938      ;;
16939
16940    solaris*)
16941      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16942	ld_shlibs_GCJ=no
16943	cat <<EOF 1>&2
16944
16945*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16946*** create shared libraries on Solaris systems.  Therefore, libtool
16947*** is disabling shared libraries support.  We urge you to upgrade GNU
16948*** binutils to release 2.9.1 or newer.  Another option is to modify
16949*** your PATH or compiler configuration so that the native linker is
16950*** used, and then restart.
16951
16952EOF
16953      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16954	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16955	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16956      else
16957	ld_shlibs_GCJ=no
16958      fi
16959      ;;
16960
16961    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16962      case `$LD -v 2>&1` in
16963        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16964	ld_shlibs_GCJ=no
16965	cat <<_LT_EOF 1>&2
16966
16967*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16968*** reliably create shared libraries on SCO systems.  Therefore, libtool
16969*** is disabling shared libraries support.  We urge you to upgrade GNU
16970*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16971*** your PATH or compiler configuration so that the native linker is
16972*** used, and then restart.
16973
16974_LT_EOF
16975	;;
16976	*)
16977	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16978	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16979	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16980	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16981	  else
16982	    ld_shlibs_GCJ=no
16983	  fi
16984	;;
16985      esac
16986      ;;
16987
16988    sunos4*)
16989      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16990      wlarc=
16991      hardcode_direct_GCJ=yes
16992      hardcode_shlibpath_var_GCJ=no
16993      ;;
16994
16995    *)
16996      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16997	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16998	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16999      else
17000	ld_shlibs_GCJ=no
17001      fi
17002      ;;
17003    esac
17004
17005    if test "$ld_shlibs_GCJ" = no; then
17006      runpath_var=
17007      hardcode_libdir_flag_spec_GCJ=
17008      export_dynamic_flag_spec_GCJ=
17009      whole_archive_flag_spec_GCJ=
17010    fi
17011  else
17012    # PORTME fill in a description of your system's linker (not GNU ld)
17013    case $host_os in
17014    aix3*)
17015      allow_undefined_flag_GCJ=unsupported
17016      always_export_symbols_GCJ=yes
17017      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'
17018      # Note: this linker hardcodes the directories in LIBPATH if there
17019      # are no directories specified by -L.
17020      hardcode_minus_L_GCJ=yes
17021      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17022	# Neither direct hardcoding nor static linking is supported with a
17023	# broken collect2.
17024	hardcode_direct_GCJ=unsupported
17025      fi
17026      ;;
17027
17028    aix4* | aix5*)
17029      if test "$host_cpu" = ia64; then
17030	# On IA64, the linker does run time linking by default, so we don't
17031	# have to do anything special.
17032	aix_use_runtimelinking=no
17033	exp_sym_flag='-Bexport'
17034	no_entry_flag=""
17035      else
17036	# If we're using GNU nm, then we don't want the "-C" option.
17037	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17038	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17039	  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'
17040	else
17041	  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'
17042	fi
17043	aix_use_runtimelinking=no
17044
17045	# Test if we are trying to use run time linking or normal
17046	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17047	# need to do runtime linking.
17048	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17049	  for ld_flag in $LDFLAGS; do
17050  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17051  	    aix_use_runtimelinking=yes
17052  	    break
17053  	  fi
17054	  done
17055	  ;;
17056	esac
17057
17058	exp_sym_flag='-bexport'
17059	no_entry_flag='-bnoentry'
17060      fi
17061
17062      # When large executables or shared objects are built, AIX ld can
17063      # have problems creating the table of contents.  If linking a library
17064      # or program results in "error TOC overflow" add -mminimal-toc to
17065      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17066      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17067
17068      archive_cmds_GCJ=''
17069      hardcode_direct_GCJ=yes
17070      hardcode_libdir_separator_GCJ=':'
17071      link_all_deplibs_GCJ=yes
17072
17073      if test "$GCC" = yes; then
17074	case $host_os in aix4.[012]|aix4.[012].*)
17075	# We only want to do this on AIX 4.2 and lower, the check
17076	# below for broken collect2 doesn't work under 4.3+
17077	  collect2name=`${CC} -print-prog-name=collect2`
17078	  if test -f "$collect2name" && \
17079  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17080	  then
17081  	  # We have reworked collect2
17082  	  :
17083	  else
17084  	  # We have old collect2
17085  	  hardcode_direct_GCJ=unsupported
17086  	  # It fails to find uninstalled libraries when the uninstalled
17087  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17088  	  # to unsupported forces relinking
17089  	  hardcode_minus_L_GCJ=yes
17090  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17091  	  hardcode_libdir_separator_GCJ=
17092	  fi
17093	  ;;
17094	esac
17095	shared_flag='-shared'
17096	if test "$aix_use_runtimelinking" = yes; then
17097	  shared_flag="$shared_flag "'${wl}-G'
17098	fi
17099      else
17100	# not using gcc
17101	if test "$host_cpu" = ia64; then
17102  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17103  	# chokes on -Wl,-G. The following line is correct:
17104	  shared_flag='-G'
17105	else
17106	  if test "$aix_use_runtimelinking" = yes; then
17107	    shared_flag='${wl}-G'
17108	  else
17109	    shared_flag='${wl}-bM:SRE'
17110	  fi
17111	fi
17112      fi
17113
17114      # It seems that -bexpall does not export symbols beginning with
17115      # underscore (_), so it is better to generate a list of symbols to export.
17116      always_export_symbols_GCJ=yes
17117      if test "$aix_use_runtimelinking" = yes; then
17118	# Warning - without using the other runtime loading flags (-brtl),
17119	# -berok will link without error, but may produce a broken library.
17120	allow_undefined_flag_GCJ='-berok'
17121       # Determine the default libpath from the value encoded in an empty executable.
17122       cat >conftest.$ac_ext <<_ACEOF
17123/* confdefs.h.  */
17124_ACEOF
17125cat confdefs.h >>conftest.$ac_ext
17126cat >>conftest.$ac_ext <<_ACEOF
17127/* end confdefs.h.  */
17128
17129int
17130main ()
17131{
17132
17133  ;
17134  return 0;
17135}
17136_ACEOF
17137rm -f conftest.$ac_objext conftest$ac_exeext
17138if { (ac_try="$ac_link"
17139case "(($ac_try" in
17140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17141  *) ac_try_echo=$ac_try;;
17142esac
17143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17144  (eval "$ac_link") 2>conftest.er1
17145  ac_status=$?
17146  grep -v '^ *+' conftest.er1 >conftest.err
17147  rm -f conftest.er1
17148  cat conftest.err >&5
17149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150  (exit $ac_status); } && {
17151	 test -z "$ac_c_werror_flag" ||
17152	 test ! -s conftest.err
17153       } && test -s conftest$ac_exeext &&
17154       $as_test_x conftest$ac_exeext; then
17155
17156lt_aix_libpath_sed='
17157    /Import File Strings/,/^$/ {
17158	/^0/ {
17159	    s/^0  *\(.*\)$/\1/
17160	    p
17161	}
17162    }'
17163aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17164# Check for a 64-bit object if we didn't find anything.
17165if test -z "$aix_libpath"; then
17166  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17167fi
17168else
17169  echo "$as_me: failed program was:" >&5
17170sed 's/^/| /' conftest.$ac_ext >&5
17171
17172
17173fi
17174
17175rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17176      conftest$ac_exeext conftest.$ac_ext
17177if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17178
17179       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17180	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"
17181       else
17182	if test "$host_cpu" = ia64; then
17183	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17184	  allow_undefined_flag_GCJ="-z nodefs"
17185	  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"
17186	else
17187	 # Determine the default libpath from the value encoded in an empty executable.
17188	 cat >conftest.$ac_ext <<_ACEOF
17189/* confdefs.h.  */
17190_ACEOF
17191cat confdefs.h >>conftest.$ac_ext
17192cat >>conftest.$ac_ext <<_ACEOF
17193/* end confdefs.h.  */
17194
17195int
17196main ()
17197{
17198
17199  ;
17200  return 0;
17201}
17202_ACEOF
17203rm -f conftest.$ac_objext conftest$ac_exeext
17204if { (ac_try="$ac_link"
17205case "(($ac_try" in
17206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207  *) ac_try_echo=$ac_try;;
17208esac
17209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210  (eval "$ac_link") 2>conftest.er1
17211  ac_status=$?
17212  grep -v '^ *+' conftest.er1 >conftest.err
17213  rm -f conftest.er1
17214  cat conftest.err >&5
17215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216  (exit $ac_status); } && {
17217	 test -z "$ac_c_werror_flag" ||
17218	 test ! -s conftest.err
17219       } && test -s conftest$ac_exeext &&
17220       $as_test_x conftest$ac_exeext; then
17221
17222lt_aix_libpath_sed='
17223    /Import File Strings/,/^$/ {
17224	/^0/ {
17225	    s/^0  *\(.*\)$/\1/
17226	    p
17227	}
17228    }'
17229aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17230# Check for a 64-bit object if we didn't find anything.
17231if test -z "$aix_libpath"; then
17232  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17233fi
17234else
17235  echo "$as_me: failed program was:" >&5
17236sed 's/^/| /' conftest.$ac_ext >&5
17237
17238
17239fi
17240
17241rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17242      conftest$ac_exeext conftest.$ac_ext
17243if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17244
17245	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17246	  # Warning - without using the other run time loading flags,
17247	  # -berok will link without error, but may produce a broken library.
17248	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17249	  allow_undefined_flag_GCJ=' ${wl}-berok'
17250	  # Exported symbols can be pulled into shared objects from archives
17251	  whole_archive_flag_spec_GCJ='$convenience'
17252	  archive_cmds_need_lc_GCJ=yes
17253	  # This is similar to how AIX traditionally builds its shared libraries.
17254	  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'
17255	fi
17256      fi
17257      ;;
17258
17259    amigaos*)
17260      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)'
17261      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17262      hardcode_minus_L_GCJ=yes
17263      # see comment about different semantics on the GNU ld section
17264      ld_shlibs_GCJ=no
17265      ;;
17266
17267    bsdi[45]*)
17268      export_dynamic_flag_spec_GCJ=-rdynamic
17269      ;;
17270
17271    cygwin* | mingw* | pw32*)
17272      # When not using gcc, we currently assume that we are using
17273      # Microsoft Visual C++.
17274      # hardcode_libdir_flag_spec is actually meaningless, as there is
17275      # no search path for DLLs.
17276      hardcode_libdir_flag_spec_GCJ=' '
17277      allow_undefined_flag_GCJ=unsupported
17278      # Tell ltmain to make .lib files, not .a files.
17279      libext=lib
17280      # Tell ltmain to make .dll files, not .so files.
17281      shrext_cmds=".dll"
17282      # FIXME: Setting linknames here is a bad hack.
17283      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17284      # The linker will automatically build a .lib file if we build a DLL.
17285      old_archive_From_new_cmds_GCJ='true'
17286      # FIXME: Should let the user specify the lib program.
17287      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17288      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17289      enable_shared_with_static_runtimes_GCJ=yes
17290      ;;
17291
17292    darwin* | rhapsody*)
17293      case $host_os in
17294        rhapsody* | darwin1.[012])
17295         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17296         ;;
17297       *) # Darwin 1.3 on
17298         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17299           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17300         else
17301           case ${MACOSX_DEPLOYMENT_TARGET} in
17302             10.[012])
17303               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17304               ;;
17305             10.*)
17306               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17307               ;;
17308           esac
17309         fi
17310         ;;
17311      esac
17312      archive_cmds_need_lc_GCJ=no
17313      hardcode_direct_GCJ=no
17314      hardcode_automatic_GCJ=yes
17315      hardcode_shlibpath_var_GCJ=unsupported
17316      whole_archive_flag_spec_GCJ=''
17317      link_all_deplibs_GCJ=yes
17318    if test "$GCC" = yes ; then
17319    	output_verbose_link_cmd='echo'
17320        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17321      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17322      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17323      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17324      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}'
17325    else
17326      case $cc_basename in
17327        xlc*)
17328         output_verbose_link_cmd='echo'
17329         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17330         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17331          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17332         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}'
17333          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}'
17334          ;;
17335       *)
17336         ld_shlibs_GCJ=no
17337          ;;
17338      esac
17339    fi
17340      ;;
17341
17342    dgux*)
17343      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17344      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17345      hardcode_shlibpath_var_GCJ=no
17346      ;;
17347
17348    freebsd1*)
17349      ld_shlibs_GCJ=no
17350      ;;
17351
17352    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17353    # support.  Future versions do this automatically, but an explicit c++rt0.o
17354    # does not break anything, and helps significantly (at the cost of a little
17355    # extra space).
17356    freebsd2.2*)
17357      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17358      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17359      hardcode_direct_GCJ=yes
17360      hardcode_shlibpath_var_GCJ=no
17361      ;;
17362
17363    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17364    freebsd2*)
17365      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17366      hardcode_direct_GCJ=yes
17367      hardcode_minus_L_GCJ=yes
17368      hardcode_shlibpath_var_GCJ=no
17369      ;;
17370
17371    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17372    freebsd* | dragonfly*)
17373      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17374      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17375      hardcode_direct_GCJ=yes
17376      hardcode_shlibpath_var_GCJ=no
17377      ;;
17378
17379    hpux9*)
17380      if test "$GCC" = yes; then
17381	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'
17382      else
17383	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'
17384      fi
17385      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17386      hardcode_libdir_separator_GCJ=:
17387      hardcode_direct_GCJ=yes
17388
17389      # hardcode_minus_L: Not really in the search PATH,
17390      # but as the default location of the library.
17391      hardcode_minus_L_GCJ=yes
17392      export_dynamic_flag_spec_GCJ='${wl}-E'
17393      ;;
17394
17395    hpux10*)
17396      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17397	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17398      else
17399	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17400      fi
17401      if test "$with_gnu_ld" = no; then
17402	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17403	hardcode_libdir_separator_GCJ=:
17404
17405	hardcode_direct_GCJ=yes
17406	export_dynamic_flag_spec_GCJ='${wl}-E'
17407
17408	# hardcode_minus_L: Not really in the search PATH,
17409	# but as the default location of the library.
17410	hardcode_minus_L_GCJ=yes
17411      fi
17412      ;;
17413
17414    hpux11*)
17415      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17416	case $host_cpu in
17417	hppa*64*)
17418	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17419	  ;;
17420	ia64*)
17421	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17422	  ;;
17423	*)
17424	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17425	  ;;
17426	esac
17427      else
17428	case $host_cpu in
17429	hppa*64*)
17430	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17431	  ;;
17432	ia64*)
17433	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17434	  ;;
17435	*)
17436	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17437	  ;;
17438	esac
17439      fi
17440      if test "$with_gnu_ld" = no; then
17441	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17442	hardcode_libdir_separator_GCJ=:
17443
17444	case $host_cpu in
17445	hppa*64*|ia64*)
17446	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17447	  hardcode_direct_GCJ=no
17448	  hardcode_shlibpath_var_GCJ=no
17449	  ;;
17450	*)
17451	  hardcode_direct_GCJ=yes
17452	  export_dynamic_flag_spec_GCJ='${wl}-E'
17453
17454	  # hardcode_minus_L: Not really in the search PATH,
17455	  # but as the default location of the library.
17456	  hardcode_minus_L_GCJ=yes
17457	  ;;
17458	esac
17459      fi
17460      ;;
17461
17462    irix5* | irix6* | nonstopux*)
17463      if test "$GCC" = yes; then
17464	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'
17465      else
17466	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'
17467	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17468      fi
17469      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17470      hardcode_libdir_separator_GCJ=:
17471      link_all_deplibs_GCJ=yes
17472      ;;
17473
17474    netbsd*)
17475      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17476	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17477      else
17478	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17479      fi
17480      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17481      hardcode_direct_GCJ=yes
17482      hardcode_shlibpath_var_GCJ=no
17483      ;;
17484
17485    newsos6)
17486      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17487      hardcode_direct_GCJ=yes
17488      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17489      hardcode_libdir_separator_GCJ=:
17490      hardcode_shlibpath_var_GCJ=no
17491      ;;
17492
17493    openbsd*)
17494      if test -f /usr/libexec/ld.so; then
17495	hardcode_direct_GCJ=yes
17496	hardcode_shlibpath_var_GCJ=no
17497	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17498	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17499	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17500	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17501	  export_dynamic_flag_spec_GCJ='${wl}-E'
17502	else
17503	  case $host_os in
17504	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17505	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17506	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
17507	     ;;
17508	   *)
17509	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17510	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17511	     ;;
17512	  esac
17513        fi
17514      else
17515	ld_shlibs_GCJ=no
17516      fi
17517      ;;
17518
17519    os2*)
17520      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17521      hardcode_minus_L_GCJ=yes
17522      allow_undefined_flag_GCJ=unsupported
17523      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'
17524      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17525      ;;
17526
17527    osf3*)
17528      if test "$GCC" = yes; then
17529	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17530	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'
17531      else
17532	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17533	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'
17534      fi
17535      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17536      hardcode_libdir_separator_GCJ=:
17537      ;;
17538
17539    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17540      if test "$GCC" = yes; then
17541	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17542	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'
17543	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17544      else
17545	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17546	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'
17547	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~
17548	$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'
17549
17550	# Both c and cxx compiler support -rpath directly
17551	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17552      fi
17553      hardcode_libdir_separator_GCJ=:
17554      ;;
17555
17556    solaris*)
17557      no_undefined_flag_GCJ=' -z text'
17558      if test "$GCC" = yes; then
17559	wlarc='${wl}'
17560	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17561	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17562	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17563      else
17564	wlarc=''
17565	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17566	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17567  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17568      fi
17569      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17570      hardcode_shlibpath_var_GCJ=no
17571      case $host_os in
17572      solaris2.[0-5] | solaris2.[0-5].*) ;;
17573      *)
17574	# The compiler driver will combine and reorder linker options,
17575	# but understands `-z linker_flag'.  GCC discards it without `$wl',
17576	# but is careful enough not to reorder.
17577 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17578	if test "$GCC" = yes; then
17579	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17580	else
17581	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17582	fi
17583	;;
17584      esac
17585      link_all_deplibs_GCJ=yes
17586      ;;
17587
17588    sunos4*)
17589      if test "x$host_vendor" = xsequent; then
17590	# Use $CC to link under sequent, because it throws in some extra .o
17591	# files that make .init and .fini sections work.
17592	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17593      else
17594	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17595      fi
17596      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17597      hardcode_direct_GCJ=yes
17598      hardcode_minus_L_GCJ=yes
17599      hardcode_shlibpath_var_GCJ=no
17600      ;;
17601
17602    sysv4)
17603      case $host_vendor in
17604	sni)
17605	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17606	  hardcode_direct_GCJ=yes # is this really true???
17607	;;
17608	siemens)
17609	  ## LD is ld it makes a PLAMLIB
17610	  ## CC just makes a GrossModule.
17611	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17612	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17613	  hardcode_direct_GCJ=no
17614        ;;
17615	motorola)
17616	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17617	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17618	;;
17619      esac
17620      runpath_var='LD_RUN_PATH'
17621      hardcode_shlibpath_var_GCJ=no
17622      ;;
17623
17624    sysv4.3*)
17625      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17626      hardcode_shlibpath_var_GCJ=no
17627      export_dynamic_flag_spec_GCJ='-Bexport'
17628      ;;
17629
17630    sysv4*MP*)
17631      if test -d /usr/nec; then
17632	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17633	hardcode_shlibpath_var_GCJ=no
17634	runpath_var=LD_RUN_PATH
17635	hardcode_runpath_var=yes
17636	ld_shlibs_GCJ=yes
17637      fi
17638      ;;
17639
17640    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17641      no_undefined_flag_GCJ='${wl}-z,text'
17642      archive_cmds_need_lc_GCJ=no
17643      hardcode_shlibpath_var_GCJ=no
17644      runpath_var='LD_RUN_PATH'
17645
17646      if test "$GCC" = yes; then
17647	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17648	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17649      else
17650	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17651	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17652      fi
17653      ;;
17654
17655    sysv5* | sco3.2v5* | sco5v6*)
17656      # Note: We can NOT use -z defs as we might desire, because we do not
17657      # link with -lc, and that would cause any symbols used from libc to
17658      # always be unresolved, which means just about no library would
17659      # ever link correctly.  If we're not using GNU ld we use -z text
17660      # though, which does catch some bad symbols but isn't as heavy-handed
17661      # as -z defs.
17662      no_undefined_flag_GCJ='${wl}-z,text'
17663      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17664      archive_cmds_need_lc_GCJ=no
17665      hardcode_shlibpath_var_GCJ=no
17666      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17667      hardcode_libdir_separator_GCJ=':'
17668      link_all_deplibs_GCJ=yes
17669      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17670      runpath_var='LD_RUN_PATH'
17671
17672      if test "$GCC" = yes; then
17673	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17674	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17675      else
17676	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17677	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17678      fi
17679      ;;
17680
17681    uts4*)
17682      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17683      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17684      hardcode_shlibpath_var_GCJ=no
17685      ;;
17686
17687    *)
17688      ld_shlibs_GCJ=no
17689      ;;
17690    esac
17691  fi
17692
17693{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17694echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17695test "$ld_shlibs_GCJ" = no && can_build_shared=no
17696
17697#
17698# Do we need to explicitly link libc?
17699#
17700case "x$archive_cmds_need_lc_GCJ" in
17701x|xyes)
17702  # Assume -lc should be added
17703  archive_cmds_need_lc_GCJ=yes
17704
17705  if test "$enable_shared" = yes && test "$GCC" = yes; then
17706    case $archive_cmds_GCJ in
17707    *'~'*)
17708      # FIXME: we may have to deal with multi-command sequences.
17709      ;;
17710    '$CC '*)
17711      # Test whether the compiler implicitly links with -lc since on some
17712      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17713      # to ld, don't add -lc before -lgcc.
17714      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17715echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17716      $rm conftest*
17717      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17718
17719      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17720  (eval $ac_compile) 2>&5
17721  ac_status=$?
17722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723  (exit $ac_status); } 2>conftest.err; then
17724        soname=conftest
17725        lib=conftest
17726        libobjs=conftest.$ac_objext
17727        deplibs=
17728        wl=$lt_prog_compiler_wl_GCJ
17729	pic_flag=$lt_prog_compiler_pic_GCJ
17730        compiler_flags=-v
17731        linker_flags=-v
17732        verstring=
17733        output_objdir=.
17734        libname=conftest
17735        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17736        allow_undefined_flag_GCJ=
17737        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17738  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17739  ac_status=$?
17740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741  (exit $ac_status); }
17742        then
17743	  archive_cmds_need_lc_GCJ=no
17744        else
17745	  archive_cmds_need_lc_GCJ=yes
17746        fi
17747        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17748      else
17749        cat conftest.err 1>&5
17750      fi
17751      $rm conftest*
17752      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17753echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17754      ;;
17755    esac
17756  fi
17757  ;;
17758esac
17759
17760{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17761echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17762library_names_spec=
17763libname_spec='lib$name'
17764soname_spec=
17765shrext_cmds=".so"
17766postinstall_cmds=
17767postuninstall_cmds=
17768finish_cmds=
17769finish_eval=
17770shlibpath_var=
17771shlibpath_overrides_runpath=unknown
17772version_type=none
17773dynamic_linker="$host_os ld.so"
17774sys_lib_dlsearch_path_spec="/lib /usr/lib"
17775
17776need_lib_prefix=unknown
17777hardcode_into_libs=no
17778
17779# when you set need_version to no, make sure it does not cause -set_version
17780# flags to be left without arguments
17781need_version=unknown
17782
17783case $host_os in
17784aix3*)
17785  version_type=linux
17786  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17787  shlibpath_var=LIBPATH
17788
17789  # AIX 3 has no versioning support, so we append a major version to the name.
17790  soname_spec='${libname}${release}${shared_ext}$major'
17791  ;;
17792
17793aix4* | aix5*)
17794  version_type=linux
17795  need_lib_prefix=no
17796  need_version=no
17797  hardcode_into_libs=yes
17798  if test "$host_cpu" = ia64; then
17799    # AIX 5 supports IA64
17800    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17801    shlibpath_var=LD_LIBRARY_PATH
17802  else
17803    # With GCC up to 2.95.x, collect2 would create an import file
17804    # for dependence libraries.  The import file would start with
17805    # the line `#! .'.  This would cause the generated library to
17806    # depend on `.', always an invalid library.  This was fixed in
17807    # development snapshots of GCC prior to 3.0.
17808    case $host_os in
17809      aix4 | aix4.[01] | aix4.[01].*)
17810      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17811	   echo ' yes '
17812	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17813	:
17814      else
17815	can_build_shared=no
17816      fi
17817      ;;
17818    esac
17819    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17820    # soname into executable. Probably we can add versioning support to
17821    # collect2, so additional links can be useful in future.
17822    if test "$aix_use_runtimelinking" = yes; then
17823      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17824      # instead of lib<name>.a to let people know that these are not
17825      # typical AIX shared libraries.
17826      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17827    else
17828      # We preserve .a as extension for shared libraries through AIX4.2
17829      # and later when we are not doing run time linking.
17830      library_names_spec='${libname}${release}.a $libname.a'
17831      soname_spec='${libname}${release}${shared_ext}$major'
17832    fi
17833    shlibpath_var=LIBPATH
17834  fi
17835  ;;
17836
17837amigaos*)
17838  library_names_spec='$libname.ixlibrary $libname.a'
17839  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17840  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'
17841  ;;
17842
17843beos*)
17844  library_names_spec='${libname}${shared_ext}'
17845  dynamic_linker="$host_os ld.so"
17846  shlibpath_var=LIBRARY_PATH
17847  ;;
17848
17849bsdi[45]*)
17850  version_type=linux
17851  need_version=no
17852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17853  soname_spec='${libname}${release}${shared_ext}$major'
17854  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17855  shlibpath_var=LD_LIBRARY_PATH
17856  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17857  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17858  # the default ld.so.conf also contains /usr/contrib/lib and
17859  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17860  # libtool to hard-code these into programs
17861  ;;
17862
17863cygwin* | mingw* | pw32*)
17864  version_type=windows
17865  shrext_cmds=".dll"
17866  need_version=no
17867  need_lib_prefix=no
17868
17869  case $GCC,$host_os in
17870  yes,cygwin* | yes,mingw* | yes,pw32*)
17871    library_names_spec='$libname.dll.a'
17872    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17873    postinstall_cmds='base_file=`basename \${file}`~
17874      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17875      dldir=$destdir/`dirname \$dlpath`~
17876      test -d \$dldir || mkdir -p \$dldir~
17877      $install_prog $dir/$dlname \$dldir/$dlname~
17878      chmod a+x \$dldir/$dlname'
17879    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17880      dlpath=$dir/\$dldll~
17881       $rm \$dlpath'
17882    shlibpath_overrides_runpath=yes
17883
17884    case $host_os in
17885    cygwin*)
17886      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17887      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17888      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17889      ;;
17890    mingw*)
17891      # MinGW DLLs use traditional 'lib' prefix
17892      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17893      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17894      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17895        # It is most probably a Windows format PATH printed by
17896        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17897        # path with ; separators, and with drive letters. We can handle the
17898        # drive letters (cygwin fileutils understands them), so leave them,
17899        # especially as we might pass files found there to a mingw objdump,
17900        # which wouldn't understand a cygwinified path. Ahh.
17901        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17902      else
17903        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17904      fi
17905      ;;
17906    pw32*)
17907      # pw32 DLLs use 'pw' prefix rather than 'lib'
17908      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17909      ;;
17910    esac
17911    ;;
17912
17913  *)
17914    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17915    ;;
17916  esac
17917  dynamic_linker='Win32 ld.exe'
17918  # FIXME: first we should search . and the directory the executable is in
17919  shlibpath_var=PATH
17920  ;;
17921
17922darwin* | rhapsody*)
17923  dynamic_linker="$host_os dyld"
17924  version_type=darwin
17925  need_lib_prefix=no
17926  need_version=no
17927  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17928  soname_spec='${libname}${release}${major}$shared_ext'
17929  shlibpath_overrides_runpath=yes
17930  shlibpath_var=DYLD_LIBRARY_PATH
17931  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17932
17933  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17934  ;;
17935
17936dgux*)
17937  version_type=linux
17938  need_lib_prefix=no
17939  need_version=no
17940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17941  soname_spec='${libname}${release}${shared_ext}$major'
17942  shlibpath_var=LD_LIBRARY_PATH
17943  ;;
17944
17945freebsd1*)
17946  dynamic_linker=no
17947  ;;
17948
17949freebsd* | dragonfly*)
17950  # DragonFly does not have aout.  When/if they implement a new
17951  # versioning mechanism, adjust this.
17952  if test -x /usr/bin/objformat; then
17953    objformat=`/usr/bin/objformat`
17954  else
17955    case $host_os in
17956    freebsd[123]*) objformat=aout ;;
17957    *) objformat=elf ;;
17958    esac
17959  fi
17960  version_type=freebsd-$objformat
17961  case $version_type in
17962    freebsd-elf*)
17963      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17964      need_version=no
17965      need_lib_prefix=no
17966      ;;
17967    freebsd-*)
17968      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17969      need_version=yes
17970      ;;
17971  esac
17972  shlibpath_var=LD_LIBRARY_PATH
17973  case $host_os in
17974  freebsd2*)
17975    shlibpath_overrides_runpath=yes
17976    ;;
17977  freebsd3.[01]* | freebsdelf3.[01]*)
17978    shlibpath_overrides_runpath=yes
17979    hardcode_into_libs=yes
17980    ;;
17981  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17982  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17983    shlibpath_overrides_runpath=no
17984    hardcode_into_libs=yes
17985    ;;
17986  *) # from 4.6 on, and DragonFly
17987    shlibpath_overrides_runpath=yes
17988    hardcode_into_libs=yes
17989    ;;
17990  esac
17991  ;;
17992
17993gnu*)
17994  version_type=linux
17995  need_lib_prefix=no
17996  need_version=no
17997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17998  soname_spec='${libname}${release}${shared_ext}$major'
17999  shlibpath_var=LD_LIBRARY_PATH
18000  hardcode_into_libs=yes
18001  ;;
18002
18003hpux9* | hpux10* | hpux11*)
18004  # Give a soname corresponding to the major version so that dld.sl refuses to
18005  # link against other versions.
18006  version_type=sunos
18007  need_lib_prefix=no
18008  need_version=no
18009  case $host_cpu in
18010  ia64*)
18011    shrext_cmds='.so'
18012    hardcode_into_libs=yes
18013    dynamic_linker="$host_os dld.so"
18014    shlibpath_var=LD_LIBRARY_PATH
18015    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18016    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18017    soname_spec='${libname}${release}${shared_ext}$major'
18018    if test "X$HPUX_IA64_MODE" = X32; then
18019      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18020    else
18021      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18022    fi
18023    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18024    ;;
18025   hppa*64*)
18026     shrext_cmds='.sl'
18027     hardcode_into_libs=yes
18028     dynamic_linker="$host_os dld.sl"
18029     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18030     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18031     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18032     soname_spec='${libname}${release}${shared_ext}$major'
18033     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18034     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18035     ;;
18036   *)
18037    shrext_cmds='.sl'
18038    dynamic_linker="$host_os dld.sl"
18039    shlibpath_var=SHLIB_PATH
18040    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18041    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18042    soname_spec='${libname}${release}${shared_ext}$major'
18043    ;;
18044  esac
18045  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18046  postinstall_cmds='chmod 555 $lib'
18047  ;;
18048
18049interix[3-9]*)
18050  version_type=linux
18051  need_lib_prefix=no
18052  need_version=no
18053  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18054  soname_spec='${libname}${release}${shared_ext}$major'
18055  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18056  shlibpath_var=LD_LIBRARY_PATH
18057  shlibpath_overrides_runpath=no
18058  hardcode_into_libs=yes
18059  ;;
18060
18061irix5* | irix6* | nonstopux*)
18062  case $host_os in
18063    nonstopux*) version_type=nonstopux ;;
18064    *)
18065	if test "$lt_cv_prog_gnu_ld" = yes; then
18066		version_type=linux
18067	else
18068		version_type=irix
18069	fi ;;
18070  esac
18071  need_lib_prefix=no
18072  need_version=no
18073  soname_spec='${libname}${release}${shared_ext}$major'
18074  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18075  case $host_os in
18076  irix5* | nonstopux*)
18077    libsuff= shlibsuff=
18078    ;;
18079  *)
18080    case $LD in # libtool.m4 will add one of these switches to LD
18081    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18082      libsuff= shlibsuff= libmagic=32-bit;;
18083    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18084      libsuff=32 shlibsuff=N32 libmagic=N32;;
18085    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18086      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18087    *) libsuff= shlibsuff= libmagic=never-match;;
18088    esac
18089    ;;
18090  esac
18091  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18092  shlibpath_overrides_runpath=no
18093  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18094  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18095  hardcode_into_libs=yes
18096  ;;
18097
18098# No shared lib support for Linux oldld, aout, or coff.
18099linux*oldld* | linux*aout* | linux*coff*)
18100  dynamic_linker=no
18101  ;;
18102
18103# This must be Linux ELF.
18104linux* | k*bsd*-gnu)
18105  version_type=linux
18106  need_lib_prefix=no
18107  need_version=no
18108  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18109  soname_spec='${libname}${release}${shared_ext}$major'
18110  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18111  shlibpath_var=LD_LIBRARY_PATH
18112  shlibpath_overrides_runpath=no
18113  # This implies no fast_install, which is unacceptable.
18114  # Some rework will be needed to allow for fast_install
18115  # before this can be enabled.
18116  hardcode_into_libs=yes
18117
18118  # Append ld.so.conf contents to the search path
18119  if test -f /etc/ld.so.conf; then
18120    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' ' '`
18121    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18122  fi
18123
18124  # We used to test for /lib/ld.so.1 and disable shared libraries on
18125  # powerpc, because MkLinux only supported shared libraries with the
18126  # GNU dynamic linker.  Since this was broken with cross compilers,
18127  # most powerpc-linux boxes support dynamic linking these days and
18128  # people can always --disable-shared, the test was removed, and we
18129  # assume the GNU/Linux dynamic linker is in use.
18130  dynamic_linker='GNU/Linux ld.so'
18131  ;;
18132
18133netbsd*)
18134  version_type=sunos
18135  need_lib_prefix=no
18136  need_version=no
18137  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18138    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18139    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18140    dynamic_linker='NetBSD (a.out) ld.so'
18141  else
18142    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18143    soname_spec='${libname}${release}${shared_ext}$major'
18144    dynamic_linker='NetBSD ld.elf_so'
18145  fi
18146  shlibpath_var=LD_LIBRARY_PATH
18147  shlibpath_overrides_runpath=yes
18148  hardcode_into_libs=yes
18149  ;;
18150
18151newsos6)
18152  version_type=linux
18153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18154  shlibpath_var=LD_LIBRARY_PATH
18155  shlibpath_overrides_runpath=yes
18156  ;;
18157
18158nto-qnx*)
18159  version_type=linux
18160  need_lib_prefix=no
18161  need_version=no
18162  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18163  soname_spec='${libname}${release}${shared_ext}$major'
18164  shlibpath_var=LD_LIBRARY_PATH
18165  shlibpath_overrides_runpath=yes
18166  ;;
18167
18168openbsd*)
18169  version_type=sunos
18170  sys_lib_dlsearch_path_spec="/usr/lib"
18171  need_lib_prefix=no
18172  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18173  case $host_os in
18174    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18175    *)                         need_version=no  ;;
18176  esac
18177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18178  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18179  shlibpath_var=LD_LIBRARY_PATH
18180  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18181    case $host_os in
18182      openbsd2.[89] | openbsd2.[89].*)
18183	shlibpath_overrides_runpath=no
18184	;;
18185      *)
18186	shlibpath_overrides_runpath=yes
18187	;;
18188      esac
18189  else
18190    shlibpath_overrides_runpath=yes
18191  fi
18192  ;;
18193
18194os2*)
18195  libname_spec='$name'
18196  shrext_cmds=".dll"
18197  need_lib_prefix=no
18198  library_names_spec='$libname${shared_ext} $libname.a'
18199  dynamic_linker='OS/2 ld.exe'
18200  shlibpath_var=LIBPATH
18201  ;;
18202
18203osf3* | osf4* | osf5*)
18204  version_type=osf
18205  need_lib_prefix=no
18206  need_version=no
18207  soname_spec='${libname}${release}${shared_ext}$major'
18208  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18209  shlibpath_var=LD_LIBRARY_PATH
18210  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18211  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18212  ;;
18213
18214rdos*)
18215  dynamic_linker=no
18216  ;;
18217
18218solaris*)
18219  version_type=linux
18220  need_lib_prefix=no
18221  need_version=no
18222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18223  soname_spec='${libname}${release}${shared_ext}$major'
18224  shlibpath_var=LD_LIBRARY_PATH
18225  shlibpath_overrides_runpath=yes
18226  hardcode_into_libs=yes
18227  # ldd complains unless libraries are executable
18228  postinstall_cmds='chmod +x $lib'
18229  ;;
18230
18231sunos4*)
18232  version_type=sunos
18233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18234  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18235  shlibpath_var=LD_LIBRARY_PATH
18236  shlibpath_overrides_runpath=yes
18237  if test "$with_gnu_ld" = yes; then
18238    need_lib_prefix=no
18239  fi
18240  need_version=yes
18241  ;;
18242
18243sysv4 | sysv4.3*)
18244  version_type=linux
18245  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18246  soname_spec='${libname}${release}${shared_ext}$major'
18247  shlibpath_var=LD_LIBRARY_PATH
18248  case $host_vendor in
18249    sni)
18250      shlibpath_overrides_runpath=no
18251      need_lib_prefix=no
18252      export_dynamic_flag_spec='${wl}-Blargedynsym'
18253      runpath_var=LD_RUN_PATH
18254      ;;
18255    siemens)
18256      need_lib_prefix=no
18257      ;;
18258    motorola)
18259      need_lib_prefix=no
18260      need_version=no
18261      shlibpath_overrides_runpath=no
18262      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18263      ;;
18264  esac
18265  ;;
18266
18267sysv4*MP*)
18268  if test -d /usr/nec ;then
18269    version_type=linux
18270    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18271    soname_spec='$libname${shared_ext}.$major'
18272    shlibpath_var=LD_LIBRARY_PATH
18273  fi
18274  ;;
18275
18276sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18277  version_type=freebsd-elf
18278  need_lib_prefix=no
18279  need_version=no
18280  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18281  soname_spec='${libname}${release}${shared_ext}$major'
18282  shlibpath_var=LD_LIBRARY_PATH
18283  hardcode_into_libs=yes
18284  if test "$with_gnu_ld" = yes; then
18285    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18286    shlibpath_overrides_runpath=no
18287  else
18288    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18289    shlibpath_overrides_runpath=yes
18290    case $host_os in
18291      sco3.2v5*)
18292        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18293	;;
18294    esac
18295  fi
18296  sys_lib_dlsearch_path_spec='/usr/lib'
18297  ;;
18298
18299uts4*)
18300  version_type=linux
18301  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18302  soname_spec='${libname}${release}${shared_ext}$major'
18303  shlibpath_var=LD_LIBRARY_PATH
18304  ;;
18305
18306*)
18307  dynamic_linker=no
18308  ;;
18309esac
18310{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18311echo "${ECHO_T}$dynamic_linker" >&6; }
18312test "$dynamic_linker" = no && can_build_shared=no
18313
18314variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18315if test "$GCC" = yes; then
18316  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18317fi
18318
18319{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18320echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18321hardcode_action_GCJ=
18322if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18323   test -n "$runpath_var_GCJ" || \
18324   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18325
18326  # We can hardcode non-existant directories.
18327  if test "$hardcode_direct_GCJ" != no &&
18328     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18329     # have to relink, otherwise we might link with an installed library
18330     # when we should be linking with a yet-to-be-installed one
18331     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18332     test "$hardcode_minus_L_GCJ" != no; then
18333    # Linking always hardcodes the temporary library directory.
18334    hardcode_action_GCJ=relink
18335  else
18336    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18337    hardcode_action_GCJ=immediate
18338  fi
18339else
18340  # We cannot hardcode anything, or else we can only hardcode existing
18341  # directories.
18342  hardcode_action_GCJ=unsupported
18343fi
18344{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18345echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18346
18347if test "$hardcode_action_GCJ" = relink; then
18348  # Fast installation is not supported
18349  enable_fast_install=no
18350elif test "$shlibpath_overrides_runpath" = yes ||
18351     test "$enable_shared" = no; then
18352  # Fast installation is not necessary
18353  enable_fast_install=needless
18354fi
18355
18356
18357# The else clause should only fire when bootstrapping the
18358# libtool distribution, otherwise you forgot to ship ltmain.sh
18359# with your package, and you will get complaints that there are
18360# no rules to generate ltmain.sh.
18361if test -f "$ltmain"; then
18362  # See if we are running on zsh, and set the options which allow our commands through
18363  # without removal of \ escapes.
18364  if test -n "${ZSH_VERSION+set}" ; then
18365    setopt NO_GLOB_SUBST
18366  fi
18367  # Now quote all the things that may contain metacharacters while being
18368  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18369  # variables and quote the copies for generation of the libtool script.
18370  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18371    SED SHELL STRIP \
18372    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18373    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18374    deplibs_check_method reload_flag reload_cmds need_locks \
18375    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18376    lt_cv_sys_global_symbol_to_c_name_address \
18377    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18378    old_postinstall_cmds old_postuninstall_cmds \
18379    compiler_GCJ \
18380    CC_GCJ \
18381    LD_GCJ \
18382    lt_prog_compiler_wl_GCJ \
18383    lt_prog_compiler_pic_GCJ \
18384    lt_prog_compiler_static_GCJ \
18385    lt_prog_compiler_no_builtin_flag_GCJ \
18386    export_dynamic_flag_spec_GCJ \
18387    thread_safe_flag_spec_GCJ \
18388    whole_archive_flag_spec_GCJ \
18389    enable_shared_with_static_runtimes_GCJ \
18390    old_archive_cmds_GCJ \
18391    old_archive_from_new_cmds_GCJ \
18392    predep_objects_GCJ \
18393    postdep_objects_GCJ \
18394    predeps_GCJ \
18395    postdeps_GCJ \
18396    compiler_lib_search_path_GCJ \
18397    archive_cmds_GCJ \
18398    archive_expsym_cmds_GCJ \
18399    postinstall_cmds_GCJ \
18400    postuninstall_cmds_GCJ \
18401    old_archive_from_expsyms_cmds_GCJ \
18402    allow_undefined_flag_GCJ \
18403    no_undefined_flag_GCJ \
18404    export_symbols_cmds_GCJ \
18405    hardcode_libdir_flag_spec_GCJ \
18406    hardcode_libdir_flag_spec_ld_GCJ \
18407    hardcode_libdir_separator_GCJ \
18408    hardcode_automatic_GCJ \
18409    module_cmds_GCJ \
18410    module_expsym_cmds_GCJ \
18411    lt_cv_prog_compiler_c_o_GCJ \
18412    fix_srcfile_path_GCJ \
18413    exclude_expsyms_GCJ \
18414    include_expsyms_GCJ; do
18415
18416    case $var in
18417    old_archive_cmds_GCJ | \
18418    old_archive_from_new_cmds_GCJ | \
18419    archive_cmds_GCJ | \
18420    archive_expsym_cmds_GCJ | \
18421    module_cmds_GCJ | \
18422    module_expsym_cmds_GCJ | \
18423    old_archive_from_expsyms_cmds_GCJ | \
18424    export_symbols_cmds_GCJ | \
18425    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18426    postinstall_cmds | postuninstall_cmds | \
18427    old_postinstall_cmds | old_postuninstall_cmds | \
18428    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18429      # Double-quote double-evaled strings.
18430      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18431      ;;
18432    *)
18433      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18434      ;;
18435    esac
18436  done
18437
18438  case $lt_echo in
18439  *'\$0 --fallback-echo"')
18440    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18441    ;;
18442  esac
18443
18444cfgfile="$ofile"
18445
18446  cat <<__EOF__ >> "$cfgfile"
18447# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18448
18449# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18450
18451# Shell to use when invoking shell scripts.
18452SHELL=$lt_SHELL
18453
18454# Whether or not to build shared libraries.
18455build_libtool_libs=$enable_shared
18456
18457# Whether or not to build static libraries.
18458build_old_libs=$enable_static
18459
18460# Whether or not to add -lc for building shared libraries.
18461build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18462
18463# Whether or not to disallow shared libs when runtime libs are static
18464allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18465
18466# Whether or not to optimize for fast installation.
18467fast_install=$enable_fast_install
18468
18469# The host system.
18470host_alias=$host_alias
18471host=$host
18472host_os=$host_os
18473
18474# The build system.
18475build_alias=$build_alias
18476build=$build
18477build_os=$build_os
18478
18479# An echo program that does not interpret backslashes.
18480echo=$lt_echo
18481
18482# The archiver.
18483AR=$lt_AR
18484AR_FLAGS=$lt_AR_FLAGS
18485
18486# A C compiler.
18487LTCC=$lt_LTCC
18488
18489# LTCC compiler flags.
18490LTCFLAGS=$lt_LTCFLAGS
18491
18492# A language-specific compiler.
18493CC=$lt_compiler_GCJ
18494
18495# Is the compiler the GNU C compiler?
18496with_gcc=$GCC_GCJ
18497
18498# An ERE matcher.
18499EGREP=$lt_EGREP
18500
18501# The linker used to build libraries.
18502LD=$lt_LD_GCJ
18503
18504# Whether we need hard or soft links.
18505LN_S=$lt_LN_S
18506
18507# A BSD-compatible nm program.
18508NM=$lt_NM
18509
18510# A symbol stripping program
18511STRIP=$lt_STRIP
18512
18513# Used to examine libraries when file_magic_cmd begins "file"
18514MAGIC_CMD=$MAGIC_CMD
18515
18516# Used on cygwin: DLL creation program.
18517DLLTOOL="$DLLTOOL"
18518
18519# Used on cygwin: object dumper.
18520OBJDUMP="$OBJDUMP"
18521
18522# Used on cygwin: assembler.
18523AS="$AS"
18524
18525# The name of the directory that contains temporary libtool files.
18526objdir=$objdir
18527
18528# How to create reloadable object files.
18529reload_flag=$lt_reload_flag
18530reload_cmds=$lt_reload_cmds
18531
18532# How to pass a linker flag through the compiler.
18533wl=$lt_lt_prog_compiler_wl_GCJ
18534
18535# Object file suffix (normally "o").
18536objext="$ac_objext"
18537
18538# Old archive suffix (normally "a").
18539libext="$libext"
18540
18541# Shared library suffix (normally ".so").
18542shrext_cmds='$shrext_cmds'
18543
18544# Executable file suffix (normally "").
18545exeext="$exeext"
18546
18547# Additional compiler flags for building library objects.
18548pic_flag=$lt_lt_prog_compiler_pic_GCJ
18549pic_mode=$pic_mode
18550
18551# What is the maximum length of a command?
18552max_cmd_len=$lt_cv_sys_max_cmd_len
18553
18554# Does compiler simultaneously support -c and -o options?
18555compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18556
18557# Must we lock files when doing compilation?
18558need_locks=$lt_need_locks
18559
18560# Do we need the lib prefix for modules?
18561need_lib_prefix=$need_lib_prefix
18562
18563# Do we need a version for libraries?
18564need_version=$need_version
18565
18566# Whether dlopen is supported.
18567dlopen_support=$enable_dlopen
18568
18569# Whether dlopen of programs is supported.
18570dlopen_self=$enable_dlopen_self
18571
18572# Whether dlopen of statically linked programs is supported.
18573dlopen_self_static=$enable_dlopen_self_static
18574
18575# Compiler flag to prevent dynamic linking.
18576link_static_flag=$lt_lt_prog_compiler_static_GCJ
18577
18578# Compiler flag to turn off builtin functions.
18579no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18580
18581# Compiler flag to allow reflexive dlopens.
18582export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18583
18584# Compiler flag to generate shared objects directly from archives.
18585whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18586
18587# Compiler flag to generate thread-safe objects.
18588thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18589
18590# Library versioning type.
18591version_type=$version_type
18592
18593# Format of library name prefix.
18594libname_spec=$lt_libname_spec
18595
18596# List of archive names.  First name is the real one, the rest are links.
18597# The last name is the one that the linker finds with -lNAME.
18598library_names_spec=$lt_library_names_spec
18599
18600# The coded name of the library, if different from the real name.
18601soname_spec=$lt_soname_spec
18602
18603# Commands used to build and install an old-style archive.
18604RANLIB=$lt_RANLIB
18605old_archive_cmds=$lt_old_archive_cmds_GCJ
18606old_postinstall_cmds=$lt_old_postinstall_cmds
18607old_postuninstall_cmds=$lt_old_postuninstall_cmds
18608
18609# Create an old-style archive from a shared archive.
18610old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18611
18612# Create a temporary old-style archive to link instead of a shared archive.
18613old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18614
18615# Commands used to build and install a shared archive.
18616archive_cmds=$lt_archive_cmds_GCJ
18617archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18618postinstall_cmds=$lt_postinstall_cmds
18619postuninstall_cmds=$lt_postuninstall_cmds
18620
18621# Commands used to build a loadable module (assumed same as above if empty)
18622module_cmds=$lt_module_cmds_GCJ
18623module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18624
18625# Commands to strip libraries.
18626old_striplib=$lt_old_striplib
18627striplib=$lt_striplib
18628
18629# Dependencies to place before the objects being linked to create a
18630# shared library.
18631predep_objects=$lt_predep_objects_GCJ
18632
18633# Dependencies to place after the objects being linked to create a
18634# shared library.
18635postdep_objects=$lt_postdep_objects_GCJ
18636
18637# Dependencies to place before the objects being linked to create a
18638# shared library.
18639predeps=$lt_predeps_GCJ
18640
18641# Dependencies to place after the objects being linked to create a
18642# shared library.
18643postdeps=$lt_postdeps_GCJ
18644
18645# The library search path used internally by the compiler when linking
18646# a shared library.
18647compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18648
18649# Method to check whether dependent libraries are shared objects.
18650deplibs_check_method=$lt_deplibs_check_method
18651
18652# Command to use when deplibs_check_method == file_magic.
18653file_magic_cmd=$lt_file_magic_cmd
18654
18655# Flag that allows shared libraries with undefined symbols to be built.
18656allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18657
18658# Flag that forces no undefined symbols.
18659no_undefined_flag=$lt_no_undefined_flag_GCJ
18660
18661# Commands used to finish a libtool library installation in a directory.
18662finish_cmds=$lt_finish_cmds
18663
18664# Same as above, but a single script fragment to be evaled but not shown.
18665finish_eval=$lt_finish_eval
18666
18667# Take the output of nm and produce a listing of raw symbols and C names.
18668global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18669
18670# Transform the output of nm in a proper C declaration
18671global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18672
18673# Transform the output of nm in a C name address pair
18674global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18675
18676# This is the shared library runtime path variable.
18677runpath_var=$runpath_var
18678
18679# This is the shared library path variable.
18680shlibpath_var=$shlibpath_var
18681
18682# Is shlibpath searched before the hard-coded library search path?
18683shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18684
18685# How to hardcode a shared library path into an executable.
18686hardcode_action=$hardcode_action_GCJ
18687
18688# Whether we should hardcode library paths into libraries.
18689hardcode_into_libs=$hardcode_into_libs
18690
18691# Flag to hardcode \$libdir into a binary during linking.
18692# This must work even if \$libdir does not exist.
18693hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18694
18695# If ld is used when linking, flag to hardcode \$libdir into
18696# a binary during linking. This must work even if \$libdir does
18697# not exist.
18698hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18699
18700# Whether we need a single -rpath flag with a separated argument.
18701hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18702
18703# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18704# resulting binary.
18705hardcode_direct=$hardcode_direct_GCJ
18706
18707# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18708# resulting binary.
18709hardcode_minus_L=$hardcode_minus_L_GCJ
18710
18711# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18712# the resulting binary.
18713hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18714
18715# Set to yes if building a shared library automatically hardcodes DIR into the library
18716# and all subsequent libraries and executables linked against it.
18717hardcode_automatic=$hardcode_automatic_GCJ
18718
18719# Variables whose values should be saved in libtool wrapper scripts and
18720# restored at relink time.
18721variables_saved_for_relink="$variables_saved_for_relink"
18722
18723# Whether libtool must link a program against all its dependency libraries.
18724link_all_deplibs=$link_all_deplibs_GCJ
18725
18726# Compile-time system search path for libraries
18727sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18728
18729# Run-time system search path for libraries
18730sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18731
18732# Fix the shell variable \$srcfile for the compiler.
18733fix_srcfile_path=$lt_fix_srcfile_path
18734
18735# Set to yes if exported symbols are required.
18736always_export_symbols=$always_export_symbols_GCJ
18737
18738# The commands to list exported symbols.
18739export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18740
18741# The commands to extract the exported symbol list from a shared archive.
18742extract_expsyms_cmds=$lt_extract_expsyms_cmds
18743
18744# Symbols that should not be listed in the preloaded symbols.
18745exclude_expsyms=$lt_exclude_expsyms_GCJ
18746
18747# Symbols that must always be exported.
18748include_expsyms=$lt_include_expsyms_GCJ
18749
18750# ### END LIBTOOL TAG CONFIG: $tagname
18751
18752__EOF__
18753
18754
18755else
18756  # If there is no Makefile yet, we rely on a make rule to execute
18757  # `config.status --recheck' to rerun these tests and create the
18758  # libtool script then.
18759  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18760  if test -f "$ltmain_in"; then
18761    test -f Makefile && make "$ltmain"
18762  fi
18763fi
18764
18765
18766ac_ext=c
18767ac_cpp='$CPP $CPPFLAGS'
18768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18770ac_compiler_gnu=$ac_cv_c_compiler_gnu
18771
18772CC="$lt_save_CC"
18773
18774	else
18775	  tagname=""
18776	fi
18777	;;
18778
18779      RC)
18780
18781
18782# Source file extension for RC test sources.
18783ac_ext=rc
18784
18785# Object file extension for compiled RC test sources.
18786objext=o
18787objext_RC=$objext
18788
18789# Code to be used in simple compile tests
18790lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18791
18792# Code to be used in simple link tests
18793lt_simple_link_test_code="$lt_simple_compile_test_code"
18794
18795# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18796
18797# If no C compiler was specified, use CC.
18798LTCC=${LTCC-"$CC"}
18799
18800# If no C compiler flags were specified, use CFLAGS.
18801LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18802
18803# Allow CC to be a program name with arguments.
18804compiler=$CC
18805
18806
18807# save warnings/boilerplate of simple test code
18808ac_outfile=conftest.$ac_objext
18809echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18810eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18811_lt_compiler_boilerplate=`cat conftest.err`
18812$rm conftest*
18813
18814ac_outfile=conftest.$ac_objext
18815echo "$lt_simple_link_test_code" >conftest.$ac_ext
18816eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18817_lt_linker_boilerplate=`cat conftest.err`
18818$rm conftest*
18819
18820
18821# Allow CC to be a program name with arguments.
18822lt_save_CC="$CC"
18823CC=${RC-"windres"}
18824compiler=$CC
18825compiler_RC=$CC
18826for cc_temp in $compiler""; do
18827  case $cc_temp in
18828    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18829    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18830    \-*) ;;
18831    *) break;;
18832  esac
18833done
18834cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18835
18836lt_cv_prog_compiler_c_o_RC=yes
18837
18838# The else clause should only fire when bootstrapping the
18839# libtool distribution, otherwise you forgot to ship ltmain.sh
18840# with your package, and you will get complaints that there are
18841# no rules to generate ltmain.sh.
18842if test -f "$ltmain"; then
18843  # See if we are running on zsh, and set the options which allow our commands through
18844  # without removal of \ escapes.
18845  if test -n "${ZSH_VERSION+set}" ; then
18846    setopt NO_GLOB_SUBST
18847  fi
18848  # Now quote all the things that may contain metacharacters while being
18849  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18850  # variables and quote the copies for generation of the libtool script.
18851  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18852    SED SHELL STRIP \
18853    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18854    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18855    deplibs_check_method reload_flag reload_cmds need_locks \
18856    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18857    lt_cv_sys_global_symbol_to_c_name_address \
18858    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18859    old_postinstall_cmds old_postuninstall_cmds \
18860    compiler_RC \
18861    CC_RC \
18862    LD_RC \
18863    lt_prog_compiler_wl_RC \
18864    lt_prog_compiler_pic_RC \
18865    lt_prog_compiler_static_RC \
18866    lt_prog_compiler_no_builtin_flag_RC \
18867    export_dynamic_flag_spec_RC \
18868    thread_safe_flag_spec_RC \
18869    whole_archive_flag_spec_RC \
18870    enable_shared_with_static_runtimes_RC \
18871    old_archive_cmds_RC \
18872    old_archive_from_new_cmds_RC \
18873    predep_objects_RC \
18874    postdep_objects_RC \
18875    predeps_RC \
18876    postdeps_RC \
18877    compiler_lib_search_path_RC \
18878    archive_cmds_RC \
18879    archive_expsym_cmds_RC \
18880    postinstall_cmds_RC \
18881    postuninstall_cmds_RC \
18882    old_archive_from_expsyms_cmds_RC \
18883    allow_undefined_flag_RC \
18884    no_undefined_flag_RC \
18885    export_symbols_cmds_RC \
18886    hardcode_libdir_flag_spec_RC \
18887    hardcode_libdir_flag_spec_ld_RC \
18888    hardcode_libdir_separator_RC \
18889    hardcode_automatic_RC \
18890    module_cmds_RC \
18891    module_expsym_cmds_RC \
18892    lt_cv_prog_compiler_c_o_RC \
18893    fix_srcfile_path_RC \
18894    exclude_expsyms_RC \
18895    include_expsyms_RC; do
18896
18897    case $var in
18898    old_archive_cmds_RC | \
18899    old_archive_from_new_cmds_RC | \
18900    archive_cmds_RC | \
18901    archive_expsym_cmds_RC | \
18902    module_cmds_RC | \
18903    module_expsym_cmds_RC | \
18904    old_archive_from_expsyms_cmds_RC | \
18905    export_symbols_cmds_RC | \
18906    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18907    postinstall_cmds | postuninstall_cmds | \
18908    old_postinstall_cmds | old_postuninstall_cmds | \
18909    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18910      # Double-quote double-evaled strings.
18911      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18912      ;;
18913    *)
18914      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18915      ;;
18916    esac
18917  done
18918
18919  case $lt_echo in
18920  *'\$0 --fallback-echo"')
18921    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18922    ;;
18923  esac
18924
18925cfgfile="$ofile"
18926
18927  cat <<__EOF__ >> "$cfgfile"
18928# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18929
18930# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18931
18932# Shell to use when invoking shell scripts.
18933SHELL=$lt_SHELL
18934
18935# Whether or not to build shared libraries.
18936build_libtool_libs=$enable_shared
18937
18938# Whether or not to build static libraries.
18939build_old_libs=$enable_static
18940
18941# Whether or not to add -lc for building shared libraries.
18942build_libtool_need_lc=$archive_cmds_need_lc_RC
18943
18944# Whether or not to disallow shared libs when runtime libs are static
18945allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18946
18947# Whether or not to optimize for fast installation.
18948fast_install=$enable_fast_install
18949
18950# The host system.
18951host_alias=$host_alias
18952host=$host
18953host_os=$host_os
18954
18955# The build system.
18956build_alias=$build_alias
18957build=$build
18958build_os=$build_os
18959
18960# An echo program that does not interpret backslashes.
18961echo=$lt_echo
18962
18963# The archiver.
18964AR=$lt_AR
18965AR_FLAGS=$lt_AR_FLAGS
18966
18967# A C compiler.
18968LTCC=$lt_LTCC
18969
18970# LTCC compiler flags.
18971LTCFLAGS=$lt_LTCFLAGS
18972
18973# A language-specific compiler.
18974CC=$lt_compiler_RC
18975
18976# Is the compiler the GNU C compiler?
18977with_gcc=$GCC_RC
18978
18979# An ERE matcher.
18980EGREP=$lt_EGREP
18981
18982# The linker used to build libraries.
18983LD=$lt_LD_RC
18984
18985# Whether we need hard or soft links.
18986LN_S=$lt_LN_S
18987
18988# A BSD-compatible nm program.
18989NM=$lt_NM
18990
18991# A symbol stripping program
18992STRIP=$lt_STRIP
18993
18994# Used to examine libraries when file_magic_cmd begins "file"
18995MAGIC_CMD=$MAGIC_CMD
18996
18997# Used on cygwin: DLL creation program.
18998DLLTOOL="$DLLTOOL"
18999
19000# Used on cygwin: object dumper.
19001OBJDUMP="$OBJDUMP"
19002
19003# Used on cygwin: assembler.
19004AS="$AS"
19005
19006# The name of the directory that contains temporary libtool files.
19007objdir=$objdir
19008
19009# How to create reloadable object files.
19010reload_flag=$lt_reload_flag
19011reload_cmds=$lt_reload_cmds
19012
19013# How to pass a linker flag through the compiler.
19014wl=$lt_lt_prog_compiler_wl_RC
19015
19016# Object file suffix (normally "o").
19017objext="$ac_objext"
19018
19019# Old archive suffix (normally "a").
19020libext="$libext"
19021
19022# Shared library suffix (normally ".so").
19023shrext_cmds='$shrext_cmds'
19024
19025# Executable file suffix (normally "").
19026exeext="$exeext"
19027
19028# Additional compiler flags for building library objects.
19029pic_flag=$lt_lt_prog_compiler_pic_RC
19030pic_mode=$pic_mode
19031
19032# What is the maximum length of a command?
19033max_cmd_len=$lt_cv_sys_max_cmd_len
19034
19035# Does compiler simultaneously support -c and -o options?
19036compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19037
19038# Must we lock files when doing compilation?
19039need_locks=$lt_need_locks
19040
19041# Do we need the lib prefix for modules?
19042need_lib_prefix=$need_lib_prefix
19043
19044# Do we need a version for libraries?
19045need_version=$need_version
19046
19047# Whether dlopen is supported.
19048dlopen_support=$enable_dlopen
19049
19050# Whether dlopen of programs is supported.
19051dlopen_self=$enable_dlopen_self
19052
19053# Whether dlopen of statically linked programs is supported.
19054dlopen_self_static=$enable_dlopen_self_static
19055
19056# Compiler flag to prevent dynamic linking.
19057link_static_flag=$lt_lt_prog_compiler_static_RC
19058
19059# Compiler flag to turn off builtin functions.
19060no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19061
19062# Compiler flag to allow reflexive dlopens.
19063export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19064
19065# Compiler flag to generate shared objects directly from archives.
19066whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19067
19068# Compiler flag to generate thread-safe objects.
19069thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19070
19071# Library versioning type.
19072version_type=$version_type
19073
19074# Format of library name prefix.
19075libname_spec=$lt_libname_spec
19076
19077# List of archive names.  First name is the real one, the rest are links.
19078# The last name is the one that the linker finds with -lNAME.
19079library_names_spec=$lt_library_names_spec
19080
19081# The coded name of the library, if different from the real name.
19082soname_spec=$lt_soname_spec
19083
19084# Commands used to build and install an old-style archive.
19085RANLIB=$lt_RANLIB
19086old_archive_cmds=$lt_old_archive_cmds_RC
19087old_postinstall_cmds=$lt_old_postinstall_cmds
19088old_postuninstall_cmds=$lt_old_postuninstall_cmds
19089
19090# Create an old-style archive from a shared archive.
19091old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19092
19093# Create a temporary old-style archive to link instead of a shared archive.
19094old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19095
19096# Commands used to build and install a shared archive.
19097archive_cmds=$lt_archive_cmds_RC
19098archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19099postinstall_cmds=$lt_postinstall_cmds
19100postuninstall_cmds=$lt_postuninstall_cmds
19101
19102# Commands used to build a loadable module (assumed same as above if empty)
19103module_cmds=$lt_module_cmds_RC
19104module_expsym_cmds=$lt_module_expsym_cmds_RC
19105
19106# Commands to strip libraries.
19107old_striplib=$lt_old_striplib
19108striplib=$lt_striplib
19109
19110# Dependencies to place before the objects being linked to create a
19111# shared library.
19112predep_objects=$lt_predep_objects_RC
19113
19114# Dependencies to place after the objects being linked to create a
19115# shared library.
19116postdep_objects=$lt_postdep_objects_RC
19117
19118# Dependencies to place before the objects being linked to create a
19119# shared library.
19120predeps=$lt_predeps_RC
19121
19122# Dependencies to place after the objects being linked to create a
19123# shared library.
19124postdeps=$lt_postdeps_RC
19125
19126# The library search path used internally by the compiler when linking
19127# a shared library.
19128compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19129
19130# Method to check whether dependent libraries are shared objects.
19131deplibs_check_method=$lt_deplibs_check_method
19132
19133# Command to use when deplibs_check_method == file_magic.
19134file_magic_cmd=$lt_file_magic_cmd
19135
19136# Flag that allows shared libraries with undefined symbols to be built.
19137allow_undefined_flag=$lt_allow_undefined_flag_RC
19138
19139# Flag that forces no undefined symbols.
19140no_undefined_flag=$lt_no_undefined_flag_RC
19141
19142# Commands used to finish a libtool library installation in a directory.
19143finish_cmds=$lt_finish_cmds
19144
19145# Same as above, but a single script fragment to be evaled but not shown.
19146finish_eval=$lt_finish_eval
19147
19148# Take the output of nm and produce a listing of raw symbols and C names.
19149global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19150
19151# Transform the output of nm in a proper C declaration
19152global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19153
19154# Transform the output of nm in a C name address pair
19155global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19156
19157# This is the shared library runtime path variable.
19158runpath_var=$runpath_var
19159
19160# This is the shared library path variable.
19161shlibpath_var=$shlibpath_var
19162
19163# Is shlibpath searched before the hard-coded library search path?
19164shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19165
19166# How to hardcode a shared library path into an executable.
19167hardcode_action=$hardcode_action_RC
19168
19169# Whether we should hardcode library paths into libraries.
19170hardcode_into_libs=$hardcode_into_libs
19171
19172# Flag to hardcode \$libdir into a binary during linking.
19173# This must work even if \$libdir does not exist.
19174hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19175
19176# If ld is used when linking, flag to hardcode \$libdir into
19177# a binary during linking. This must work even if \$libdir does
19178# not exist.
19179hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19180
19181# Whether we need a single -rpath flag with a separated argument.
19182hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19183
19184# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19185# resulting binary.
19186hardcode_direct=$hardcode_direct_RC
19187
19188# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19189# resulting binary.
19190hardcode_minus_L=$hardcode_minus_L_RC
19191
19192# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19193# the resulting binary.
19194hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19195
19196# Set to yes if building a shared library automatically hardcodes DIR into the library
19197# and all subsequent libraries and executables linked against it.
19198hardcode_automatic=$hardcode_automatic_RC
19199
19200# Variables whose values should be saved in libtool wrapper scripts and
19201# restored at relink time.
19202variables_saved_for_relink="$variables_saved_for_relink"
19203
19204# Whether libtool must link a program against all its dependency libraries.
19205link_all_deplibs=$link_all_deplibs_RC
19206
19207# Compile-time system search path for libraries
19208sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19209
19210# Run-time system search path for libraries
19211sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19212
19213# Fix the shell variable \$srcfile for the compiler.
19214fix_srcfile_path=$lt_fix_srcfile_path
19215
19216# Set to yes if exported symbols are required.
19217always_export_symbols=$always_export_symbols_RC
19218
19219# The commands to list exported symbols.
19220export_symbols_cmds=$lt_export_symbols_cmds_RC
19221
19222# The commands to extract the exported symbol list from a shared archive.
19223extract_expsyms_cmds=$lt_extract_expsyms_cmds
19224
19225# Symbols that should not be listed in the preloaded symbols.
19226exclude_expsyms=$lt_exclude_expsyms_RC
19227
19228# Symbols that must always be exported.
19229include_expsyms=$lt_include_expsyms_RC
19230
19231# ### END LIBTOOL TAG CONFIG: $tagname
19232
19233__EOF__
19234
19235
19236else
19237  # If there is no Makefile yet, we rely on a make rule to execute
19238  # `config.status --recheck' to rerun these tests and create the
19239  # libtool script then.
19240  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19241  if test -f "$ltmain_in"; then
19242    test -f Makefile && make "$ltmain"
19243  fi
19244fi
19245
19246
19247ac_ext=c
19248ac_cpp='$CPP $CPPFLAGS'
19249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19251ac_compiler_gnu=$ac_cv_c_compiler_gnu
19252
19253CC="$lt_save_CC"
19254
19255	;;
19256
19257      *)
19258	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19259echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19260   { (exit 1); exit 1; }; }
19261	;;
19262      esac
19263
19264      # Append the new tag name to the list of available tags.
19265      if test -n "$tagname" ; then
19266      available_tags="$available_tags $tagname"
19267    fi
19268    fi
19269  done
19270  IFS="$lt_save_ifs"
19271
19272  # Now substitute the updated list of available tags.
19273  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19274    mv "${ofile}T" "$ofile"
19275    chmod +x "$ofile"
19276  else
19277    rm -f "${ofile}T"
19278    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19279echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19280   { (exit 1); exit 1; }; }
19281  fi
19282fi
19283
19284
19285
19286# This can be used to rebuild libtool when needed
19287LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19288
19289# Always use our own libtool.
19290LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19291
19292# Prevent multiple expansion
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314ac_config_files="$ac_config_files Makefile"
19315
19316cat >confcache <<\_ACEOF
19317# This file is a shell script that caches the results of configure
19318# tests run on this system so they can be shared between configure
19319# scripts and configure runs, see configure's option --config-cache.
19320# It is not useful on other systems.  If it contains results you don't
19321# want to keep, you may remove or edit it.
19322#
19323# config.status only pays attention to the cache file if you give it
19324# the --recheck option to rerun configure.
19325#
19326# `ac_cv_env_foo' variables (set or unset) will be overridden when
19327# loading this file, other *unset* `ac_cv_foo' will be assigned the
19328# following values.
19329
19330_ACEOF
19331
19332# The following way of writing the cache mishandles newlines in values,
19333# but we know of no workaround that is simple, portable, and efficient.
19334# So, we kill variables containing newlines.
19335# Ultrix sh set writes to stderr and can't be redirected directly,
19336# and sets the high bit in the cache file unless we assign to the vars.
19337(
19338  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19339    eval ac_val=\$$ac_var
19340    case $ac_val in #(
19341    *${as_nl}*)
19342      case $ac_var in #(
19343      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19344echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19345      esac
19346      case $ac_var in #(
19347      _ | IFS | as_nl) ;; #(
19348      *) $as_unset $ac_var ;;
19349      esac ;;
19350    esac
19351  done
19352
19353  (set) 2>&1 |
19354    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19355    *${as_nl}ac_space=\ *)
19356      # `set' does not quote correctly, so add quotes (double-quote
19357      # substitution turns \\\\ into \\, and sed turns \\ into \).
19358      sed -n \
19359	"s/'/'\\\\''/g;
19360	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19361      ;; #(
19362    *)
19363      # `set' quotes correctly as required by POSIX, so do not add quotes.
19364      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19365      ;;
19366    esac |
19367    sort
19368) |
19369  sed '
19370     /^ac_cv_env_/b end
19371     t clear
19372     :clear
19373     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19374     t end
19375     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19376     :end' >>confcache
19377if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19378  if test -w "$cache_file"; then
19379    test "x$cache_file" != "x/dev/null" &&
19380      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19381echo "$as_me: updating cache $cache_file" >&6;}
19382    cat confcache >$cache_file
19383  else
19384    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19385echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19386  fi
19387fi
19388rm -f confcache
19389
19390test "x$prefix" = xNONE && prefix=$ac_default_prefix
19391# Let make expand exec_prefix.
19392test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19393
19394# Transform confdefs.h into DEFS.
19395# Protect against shell expansion while executing Makefile rules.
19396# Protect against Makefile macro expansion.
19397#
19398# If the first sed substitution is executed (which looks for macros that
19399# take arguments), then branch to the quote section.  Otherwise,
19400# look for a macro that doesn't take arguments.
19401ac_script='
19402t clear
19403:clear
19404s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
19405t quote
19406s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
19407t quote
19408b any
19409:quote
19410s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19411s/\[/\\&/g
19412s/\]/\\&/g
19413s/\$/$$/g
19414H
19415:any
19416${
19417	g
19418	s/^\n//
19419	s/\n/ /g
19420	p
19421}
19422'
19423DEFS=`sed -n "$ac_script" confdefs.h`
19424
19425
19426ac_libobjs=
19427ac_ltlibobjs=
19428for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19429  # 1. Remove the extension, and $U if already installed.
19430  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19431  ac_i=`echo "$ac_i" | sed "$ac_script"`
19432  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19433  #    will be set to the directory where LIBOBJS objects are built.
19434  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19435  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19436done
19437LIBOBJS=$ac_libobjs
19438
19439LTLIBOBJS=$ac_ltlibobjs
19440
19441
19442if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19443  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19444Usually this means the macro was only invoked conditionally." >&5
19445echo "$as_me: error: conditional \"AMDEP\" was never defined.
19446Usually this means the macro was only invoked conditionally." >&2;}
19447   { (exit 1); exit 1; }; }
19448fi
19449if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19450  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19451Usually this means the macro was only invoked conditionally." >&5
19452echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19453Usually this means the macro was only invoked conditionally." >&2;}
19454   { (exit 1); exit 1; }; }
19455fi
19456if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19457  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19458Usually this means the macro was only invoked conditionally." >&5
19459echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19460Usually this means the macro was only invoked conditionally." >&2;}
19461   { (exit 1); exit 1; }; }
19462fi
19463
19464: ${CONFIG_STATUS=./config.status}
19465ac_clean_files_save=$ac_clean_files
19466ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19467{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19468echo "$as_me: creating $CONFIG_STATUS" >&6;}
19469cat >$CONFIG_STATUS <<_ACEOF
19470#! $SHELL
19471# Generated by $as_me.
19472# Run this file to recreate the current configuration.
19473# Compiler output produced by configure, useful for debugging
19474# configure, is in config.log if it exists.
19475
19476debug=false
19477ac_cs_recheck=false
19478ac_cs_silent=false
19479SHELL=\${CONFIG_SHELL-$SHELL}
19480_ACEOF
19481
19482cat >>$CONFIG_STATUS <<\_ACEOF
19483## --------------------- ##
19484## M4sh Initialization.  ##
19485## --------------------- ##
19486
19487# Be more Bourne compatible
19488DUALCASE=1; export DUALCASE # for MKS sh
19489if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19490  emulate sh
19491  NULLCMD=:
19492  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19493  # is contrary to our usage.  Disable this feature.
19494  alias -g '${1+"$@"}'='"$@"'
19495  setopt NO_GLOB_SUBST
19496else
19497  case `(set -o) 2>/dev/null` in
19498  *posix*) set -o posix ;;
19499esac
19500
19501fi
19502
19503
19504
19505
19506# PATH needs CR
19507# Avoid depending upon Character Ranges.
19508as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19509as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19510as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19511as_cr_digits='0123456789'
19512as_cr_alnum=$as_cr_Letters$as_cr_digits
19513
19514# The user is always right.
19515if test "${PATH_SEPARATOR+set}" != set; then
19516  echo "#! /bin/sh" >conf$$.sh
19517  echo  "exit 0"   >>conf$$.sh
19518  chmod +x conf$$.sh
19519  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19520    PATH_SEPARATOR=';'
19521  else
19522    PATH_SEPARATOR=:
19523  fi
19524  rm -f conf$$.sh
19525fi
19526
19527# Support unset when possible.
19528if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19529  as_unset=unset
19530else
19531  as_unset=false
19532fi
19533
19534
19535# IFS
19536# We need space, tab and new line, in precisely that order.  Quoting is
19537# there to prevent editors from complaining about space-tab.
19538# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19539# splitting by setting IFS to empty value.)
19540as_nl='
19541'
19542IFS=" ""	$as_nl"
19543
19544# Find who we are.  Look in the path if we contain no directory separator.
19545case $0 in
19546  *[\\/]* ) as_myself=$0 ;;
19547  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19548for as_dir in $PATH
19549do
19550  IFS=$as_save_IFS
19551  test -z "$as_dir" && as_dir=.
19552  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19553done
19554IFS=$as_save_IFS
19555
19556     ;;
19557esac
19558# We did not find ourselves, most probably we were run as `sh COMMAND'
19559# in which case we are not to be found in the path.
19560if test "x$as_myself" = x; then
19561  as_myself=$0
19562fi
19563if test ! -f "$as_myself"; then
19564  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19565  { (exit 1); exit 1; }
19566fi
19567
19568# Work around bugs in pre-3.0 UWIN ksh.
19569for as_var in ENV MAIL MAILPATH
19570do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19571done
19572PS1='$ '
19573PS2='> '
19574PS4='+ '
19575
19576# NLS nuisances.
19577for as_var in \
19578  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19579  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19580  LC_TELEPHONE LC_TIME
19581do
19582  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19583    eval $as_var=C; export $as_var
19584  else
19585    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19586  fi
19587done
19588
19589# Required to use basename.
19590if expr a : '\(a\)' >/dev/null 2>&1 &&
19591   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19592  as_expr=expr
19593else
19594  as_expr=false
19595fi
19596
19597if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19598  as_basename=basename
19599else
19600  as_basename=false
19601fi
19602
19603
19604# Name of the executable.
19605as_me=`$as_basename -- "$0" ||
19606$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19607	 X"$0" : 'X\(//\)$' \| \
19608	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19609echo X/"$0" |
19610    sed '/^.*\/\([^/][^/]*\)\/*$/{
19611	    s//\1/
19612	    q
19613	  }
19614	  /^X\/\(\/\/\)$/{
19615	    s//\1/
19616	    q
19617	  }
19618	  /^X\/\(\/\).*/{
19619	    s//\1/
19620	    q
19621	  }
19622	  s/.*/./; q'`
19623
19624# CDPATH.
19625$as_unset CDPATH
19626
19627
19628
19629  as_lineno_1=$LINENO
19630  as_lineno_2=$LINENO
19631  test "x$as_lineno_1" != "x$as_lineno_2" &&
19632  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19633
19634  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19635  # uniformly replaced by the line number.  The first 'sed' inserts a
19636  # line-number line after each line using $LINENO; the second 'sed'
19637  # does the real work.  The second script uses 'N' to pair each
19638  # line-number line with the line containing $LINENO, and appends
19639  # trailing '-' during substitution so that $LINENO is not a special
19640  # case at line end.
19641  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19642  # scripts with optimization help from Paolo Bonzini.  Blame Lee
19643  # E. McMahon (1931-1989) for sed's syntax.  :-)
19644  sed -n '
19645    p
19646    /[$]LINENO/=
19647  ' <$as_myself |
19648    sed '
19649      s/[$]LINENO.*/&-/
19650      t lineno
19651      b
19652      :lineno
19653      N
19654      :loop
19655      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19656      t loop
19657      s/-\n.*//
19658    ' >$as_me.lineno &&
19659  chmod +x "$as_me.lineno" ||
19660    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19661   { (exit 1); exit 1; }; }
19662
19663  # Don't try to exec as it changes $[0], causing all sort of problems
19664  # (the dirname of $[0] is not the place where we might find the
19665  # original and so on.  Autoconf is especially sensitive to this).
19666  . "./$as_me.lineno"
19667  # Exit status is that of the last command.
19668  exit
19669}
19670
19671
19672if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19673  as_dirname=dirname
19674else
19675  as_dirname=false
19676fi
19677
19678ECHO_C= ECHO_N= ECHO_T=
19679case `echo -n x` in
19680-n*)
19681  case `echo 'x\c'` in
19682  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19683  *)   ECHO_C='\c';;
19684  esac;;
19685*)
19686  ECHO_N='-n';;
19687esac
19688
19689if expr a : '\(a\)' >/dev/null 2>&1 &&
19690   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19691  as_expr=expr
19692else
19693  as_expr=false
19694fi
19695
19696rm -f conf$$ conf$$.exe conf$$.file
19697if test -d conf$$.dir; then
19698  rm -f conf$$.dir/conf$$.file
19699else
19700  rm -f conf$$.dir
19701  mkdir conf$$.dir
19702fi
19703echo >conf$$.file
19704if ln -s conf$$.file conf$$ 2>/dev/null; then
19705  as_ln_s='ln -s'
19706  # ... but there are two gotchas:
19707  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19708  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19709  # In both cases, we have to default to `cp -p'.
19710  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19711    as_ln_s='cp -p'
19712elif ln conf$$.file conf$$ 2>/dev/null; then
19713  as_ln_s=ln
19714else
19715  as_ln_s='cp -p'
19716fi
19717rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19718rmdir conf$$.dir 2>/dev/null
19719
19720if mkdir -p . 2>/dev/null; then
19721  as_mkdir_p=:
19722else
19723  test -d ./-p && rmdir ./-p
19724  as_mkdir_p=false
19725fi
19726
19727if test -x / >/dev/null 2>&1; then
19728  as_test_x='test -x'
19729else
19730  if ls -dL / >/dev/null 2>&1; then
19731    as_ls_L_option=L
19732  else
19733    as_ls_L_option=
19734  fi
19735  as_test_x='
19736    eval sh -c '\''
19737      if test -d "$1"; then
19738        test -d "$1/.";
19739      else
19740	case $1 in
19741        -*)set "./$1";;
19742	esac;
19743	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
19744	???[sx]*):;;*)false;;esac;fi
19745    '\'' sh
19746  '
19747fi
19748as_executable_p=$as_test_x
19749
19750# Sed expression to map a string onto a valid CPP name.
19751as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19752
19753# Sed expression to map a string onto a valid variable name.
19754as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19755
19756
19757exec 6>&1
19758
19759# Save the log message, to keep $[0] and so on meaningful, and to
19760# report actual input values of CONFIG_FILES etc. instead of their
19761# values after options handling.
19762ac_log="
19763This file was extended by $as_me, which was
19764generated by GNU Autoconf 2.61.  Invocation command line was
19765
19766  CONFIG_FILES    = $CONFIG_FILES
19767  CONFIG_HEADERS  = $CONFIG_HEADERS
19768  CONFIG_LINKS    = $CONFIG_LINKS
19769  CONFIG_COMMANDS = $CONFIG_COMMANDS
19770  $ $0 $@
19771
19772on `(hostname || uname -n) 2>/dev/null | sed 1q`
19773"
19774
19775_ACEOF
19776
19777cat >>$CONFIG_STATUS <<_ACEOF
19778# Files that config.status was made for.
19779config_files="$ac_config_files"
19780config_commands="$ac_config_commands"
19781
19782_ACEOF
19783
19784cat >>$CONFIG_STATUS <<\_ACEOF
19785ac_cs_usage="\
19786\`$as_me' instantiates files from templates according to the
19787current configuration.
19788
19789Usage: $0 [OPTIONS] [FILE]...
19790
19791  -h, --help       print this help, then exit
19792  -V, --version    print version number and configuration settings, then exit
19793  -q, --quiet      do not print progress messages
19794  -d, --debug      don't remove temporary files
19795      --recheck    update $as_me by reconfiguring in the same conditions
19796  --file=FILE[:TEMPLATE]
19797		   instantiate the configuration file FILE
19798
19799Configuration files:
19800$config_files
19801
19802Configuration commands:
19803$config_commands
19804
19805Report bugs to <bug-autoconf@gnu.org>."
19806
19807_ACEOF
19808cat >>$CONFIG_STATUS <<_ACEOF
19809ac_cs_version="\\
19810config.status
19811configured by $0, generated by GNU Autoconf 2.61,
19812  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19813
19814Copyright (C) 2006 Free Software Foundation, Inc.
19815This config.status script is free software; the Free Software Foundation
19816gives unlimited permission to copy, distribute and modify it."
19817
19818ac_pwd='$ac_pwd'
19819srcdir='$srcdir'
19820INSTALL='$INSTALL'
19821MKDIR_P='$MKDIR_P'
19822_ACEOF
19823
19824cat >>$CONFIG_STATUS <<\_ACEOF
19825# If no file are specified by the user, then we need to provide default
19826# value.  By we need to know if files were specified by the user.
19827ac_need_defaults=:
19828while test $# != 0
19829do
19830  case $1 in
19831  --*=*)
19832    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19833    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19834    ac_shift=:
19835    ;;
19836  *)
19837    ac_option=$1
19838    ac_optarg=$2
19839    ac_shift=shift
19840    ;;
19841  esac
19842
19843  case $ac_option in
19844  # Handling of the options.
19845  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19846    ac_cs_recheck=: ;;
19847  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19848    echo "$ac_cs_version"; exit ;;
19849  --debug | --debu | --deb | --de | --d | -d )
19850    debug=: ;;
19851  --file | --fil | --fi | --f )
19852    $ac_shift
19853    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19854    ac_need_defaults=false;;
19855  --he | --h |  --help | --hel | -h )
19856    echo "$ac_cs_usage"; exit ;;
19857  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19858  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19859    ac_cs_silent=: ;;
19860
19861  # This is an error.
19862  -*) { echo "$as_me: error: unrecognized option: $1
19863Try \`$0 --help' for more information." >&2
19864   { (exit 1); exit 1; }; } ;;
19865
19866  *) ac_config_targets="$ac_config_targets $1"
19867     ac_need_defaults=false ;;
19868
19869  esac
19870  shift
19871done
19872
19873ac_configure_extra_args=
19874
19875if $ac_cs_silent; then
19876  exec 6>/dev/null
19877  ac_configure_extra_args="$ac_configure_extra_args --silent"
19878fi
19879
19880_ACEOF
19881cat >>$CONFIG_STATUS <<_ACEOF
19882if \$ac_cs_recheck; then
19883  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19884  CONFIG_SHELL=$SHELL
19885  export CONFIG_SHELL
19886  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19887fi
19888
19889_ACEOF
19890cat >>$CONFIG_STATUS <<\_ACEOF
19891exec 5>>config.log
19892{
19893  echo
19894  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19895## Running $as_me. ##
19896_ASBOX
19897  echo "$ac_log"
19898} >&5
19899
19900_ACEOF
19901cat >>$CONFIG_STATUS <<_ACEOF
19902#
19903# INIT-COMMANDS
19904#
19905AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19906
19907_ACEOF
19908
19909cat >>$CONFIG_STATUS <<\_ACEOF
19910
19911# Handling of arguments.
19912for ac_config_target in $ac_config_targets
19913do
19914  case $ac_config_target in
19915    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19916    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19917
19918  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19919echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19920   { (exit 1); exit 1; }; };;
19921  esac
19922done
19923
19924
19925# If the user did not use the arguments to specify the items to instantiate,
19926# then the envvar interface is used.  Set only those that are not.
19927# We use the long form for the default assignment because of an extremely
19928# bizarre bug on SunOS 4.1.3.
19929if $ac_need_defaults; then
19930  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19931  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19932fi
19933
19934# Have a temporary directory for convenience.  Make it in the build tree
19935# simply because there is no reason against having it here, and in addition,
19936# creating and moving files from /tmp can sometimes cause problems.
19937# Hook for its removal unless debugging.
19938# Note that there is a small window in which the directory will not be cleaned:
19939# after its creation but before its name has been assigned to `$tmp'.
19940$debug ||
19941{
19942  tmp=
19943  trap 'exit_status=$?
19944  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19945' 0
19946  trap '{ (exit 1); exit 1; }' 1 2 13 15
19947}
19948# Create a (secure) tmp directory for tmp files.
19949
19950{
19951  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19952  test -n "$tmp" && test -d "$tmp"
19953}  ||
19954{
19955  tmp=./conf$$-$RANDOM
19956  (umask 077 && mkdir "$tmp")
19957} ||
19958{
19959   echo "$me: cannot create a temporary directory in ." >&2
19960   { (exit 1); exit 1; }
19961}
19962
19963#
19964# Set up the sed scripts for CONFIG_FILES section.
19965#
19966
19967# No need to generate the scripts if there are no CONFIG_FILES.
19968# This happens for instance when ./config.status config.h
19969if test -n "$CONFIG_FILES"; then
19970
19971_ACEOF
19972
19973
19974
19975ac_delim='%!_!# '
19976for ac_last_try in false false false false false :; do
19977  cat >conf$$subs.sed <<_ACEOF
19978SHELL!$SHELL$ac_delim
19979PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19980PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19981PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19982PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19983PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19984PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19985exec_prefix!$exec_prefix$ac_delim
19986prefix!$prefix$ac_delim
19987program_transform_name!$program_transform_name$ac_delim
19988bindir!$bindir$ac_delim
19989sbindir!$sbindir$ac_delim
19990libexecdir!$libexecdir$ac_delim
19991datarootdir!$datarootdir$ac_delim
19992datadir!$datadir$ac_delim
19993sysconfdir!$sysconfdir$ac_delim
19994sharedstatedir!$sharedstatedir$ac_delim
19995localstatedir!$localstatedir$ac_delim
19996includedir!$includedir$ac_delim
19997oldincludedir!$oldincludedir$ac_delim
19998docdir!$docdir$ac_delim
19999infodir!$infodir$ac_delim
20000htmldir!$htmldir$ac_delim
20001dvidir!$dvidir$ac_delim
20002pdfdir!$pdfdir$ac_delim
20003psdir!$psdir$ac_delim
20004libdir!$libdir$ac_delim
20005localedir!$localedir$ac_delim
20006mandir!$mandir$ac_delim
20007DEFS!$DEFS$ac_delim
20008ECHO_C!$ECHO_C$ac_delim
20009ECHO_N!$ECHO_N$ac_delim
20010ECHO_T!$ECHO_T$ac_delim
20011LIBS!$LIBS$ac_delim
20012build_alias!$build_alias$ac_delim
20013host_alias!$host_alias$ac_delim
20014target_alias!$target_alias$ac_delim
20015INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20016INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20017INSTALL_DATA!$INSTALL_DATA$ac_delim
20018am__isrc!$am__isrc$ac_delim
20019CYGPATH_W!$CYGPATH_W$ac_delim
20020PACKAGE!$PACKAGE$ac_delim
20021VERSION!$VERSION$ac_delim
20022ACLOCAL!$ACLOCAL$ac_delim
20023AUTOCONF!$AUTOCONF$ac_delim
20024AUTOMAKE!$AUTOMAKE$ac_delim
20025AUTOHEADER!$AUTOHEADER$ac_delim
20026MAKEINFO!$MAKEINFO$ac_delim
20027install_sh!$install_sh$ac_delim
20028STRIP!$STRIP$ac_delim
20029INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20030mkdir_p!$mkdir_p$ac_delim
20031AWK!$AWK$ac_delim
20032SET_MAKE!$SET_MAKE$ac_delim
20033am__leading_dot!$am__leading_dot$ac_delim
20034AMTAR!$AMTAR$ac_delim
20035am__tar!$am__tar$ac_delim
20036am__untar!$am__untar$ac_delim
20037CC!$CC$ac_delim
20038CFLAGS!$CFLAGS$ac_delim
20039LDFLAGS!$LDFLAGS$ac_delim
20040CPPFLAGS!$CPPFLAGS$ac_delim
20041ac_ct_CC!$ac_ct_CC$ac_delim
20042EXEEXT!$EXEEXT$ac_delim
20043OBJEXT!$OBJEXT$ac_delim
20044DEPDIR!$DEPDIR$ac_delim
20045am__include!$am__include$ac_delim
20046am__quote!$am__quote$ac_delim
20047AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20048AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20049AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20050CCDEPMODE!$CCDEPMODE$ac_delim
20051am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20052am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20053build!$build$ac_delim
20054build_cpu!$build_cpu$ac_delim
20055build_vendor!$build_vendor$ac_delim
20056build_os!$build_os$ac_delim
20057host!$host$ac_delim
20058host_cpu!$host_cpu$ac_delim
20059host_vendor!$host_vendor$ac_delim
20060host_os!$host_os$ac_delim
20061SED!$SED$ac_delim
20062GREP!$GREP$ac_delim
20063EGREP!$EGREP$ac_delim
20064LN_S!$LN_S$ac_delim
20065ECHO!$ECHO$ac_delim
20066AR!$AR$ac_delim
20067RANLIB!$RANLIB$ac_delim
20068CPP!$CPP$ac_delim
20069CXX!$CXX$ac_delim
20070CXXFLAGS!$CXXFLAGS$ac_delim
20071ac_ct_CXX!$ac_ct_CXX$ac_delim
20072CXXDEPMODE!$CXXDEPMODE$ac_delim
20073am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20074am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20075_ACEOF
20076
20077  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20078    break
20079  elif $ac_last_try; then
20080    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20081echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20082   { (exit 1); exit 1; }; }
20083  else
20084    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20085  fi
20086done
20087
20088ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20089if test -n "$ac_eof"; then
20090  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20091  ac_eof=`expr $ac_eof + 1`
20092fi
20093
20094cat >>$CONFIG_STATUS <<_ACEOF
20095cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20096/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20097_ACEOF
20098sed '
20099s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20100s/^/s,@/; s/!/@,|#_!!_#|/
20101:n
20102t n
20103s/'"$ac_delim"'$/,g/; t
20104s/$/\\/; p
20105N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20106' >>$CONFIG_STATUS <conf$$subs.sed
20107rm -f conf$$subs.sed
20108cat >>$CONFIG_STATUS <<_ACEOF
20109CEOF$ac_eof
20110_ACEOF
20111
20112
20113ac_delim='%!_!# '
20114for ac_last_try in false false false false false :; do
20115  cat >conf$$subs.sed <<_ACEOF
20116CXXCPP!$CXXCPP$ac_delim
20117F77!$F77$ac_delim
20118FFLAGS!$FFLAGS$ac_delim
20119ac_ct_F77!$ac_ct_F77$ac_delim
20120LIBTOOL!$LIBTOOL$ac_delim
20121global_top_auxdir!$global_top_auxdir$ac_delim
20122LIBOBJS!$LIBOBJS$ac_delim
20123LTLIBOBJS!$LTLIBOBJS$ac_delim
20124_ACEOF
20125
20126  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
20127    break
20128  elif $ac_last_try; then
20129    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20130echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20131   { (exit 1); exit 1; }; }
20132  else
20133    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20134  fi
20135done
20136
20137ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20138if test -n "$ac_eof"; then
20139  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20140  ac_eof=`expr $ac_eof + 1`
20141fi
20142
20143cat >>$CONFIG_STATUS <<_ACEOF
20144cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20145/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20146_ACEOF
20147sed '
20148s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20149s/^/s,@/; s/!/@,|#_!!_#|/
20150:n
20151t n
20152s/'"$ac_delim"'$/,g/; t
20153s/$/\\/; p
20154N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20155' >>$CONFIG_STATUS <conf$$subs.sed
20156rm -f conf$$subs.sed
20157cat >>$CONFIG_STATUS <<_ACEOF
20158:end
20159s/|#_!!_#|//g
20160CEOF$ac_eof
20161_ACEOF
20162
20163
20164# VPATH may cause trouble with some makes, so we remove $(srcdir),
20165# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20166# trailing colons and then remove the whole line if VPATH becomes empty
20167# (actually we leave an empty line to preserve line numbers).
20168if test "x$srcdir" = x.; then
20169  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20170s/:*\$(srcdir):*/:/
20171s/:*\${srcdir}:*/:/
20172s/:*@srcdir@:*/:/
20173s/^\([^=]*=[	 ]*\):*/\1/
20174s/:*$//
20175s/^[^=]*=[	 ]*$//
20176}'
20177fi
20178
20179cat >>$CONFIG_STATUS <<\_ACEOF
20180fi # test -n "$CONFIG_FILES"
20181
20182
20183for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
20184do
20185  case $ac_tag in
20186  :[FHLC]) ac_mode=$ac_tag; continue;;
20187  esac
20188  case $ac_mode$ac_tag in
20189  :[FHL]*:*);;
20190  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20191echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20192   { (exit 1); exit 1; }; };;
20193  :[FH]-) ac_tag=-:-;;
20194  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20195  esac
20196  ac_save_IFS=$IFS
20197  IFS=:
20198  set x $ac_tag
20199  IFS=$ac_save_IFS
20200  shift
20201  ac_file=$1
20202  shift
20203
20204  case $ac_mode in
20205  :L) ac_source=$1;;
20206  :[FH])
20207    ac_file_inputs=
20208    for ac_f
20209    do
20210      case $ac_f in
20211      -) ac_f="$tmp/stdin";;
20212      *) # Look for the file first in the build tree, then in the source tree
20213	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20214	 # because $ac_f cannot contain `:'.
20215	 test -f "$ac_f" ||
20216	   case $ac_f in
20217	   [\\/$]*) false;;
20218	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20219	   esac ||
20220	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20221echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20222   { (exit 1); exit 1; }; };;
20223      esac
20224      ac_file_inputs="$ac_file_inputs $ac_f"
20225    done
20226
20227    # Let's still pretend it is `configure' which instantiates (i.e., don't
20228    # use $as_me), people would be surprised to read:
20229    #    /* config.h.  Generated by config.status.  */
20230    configure_input="Generated from "`IFS=:
20231	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20232    if test x"$ac_file" != x-; then
20233      configure_input="$ac_file.  $configure_input"
20234      { echo "$as_me:$LINENO: creating $ac_file" >&5
20235echo "$as_me: creating $ac_file" >&6;}
20236    fi
20237
20238    case $ac_tag in
20239    *:-:* | *:-) cat >"$tmp/stdin";;
20240    esac
20241    ;;
20242  esac
20243
20244  ac_dir=`$as_dirname -- "$ac_file" ||
20245$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20246	 X"$ac_file" : 'X\(//\)[^/]' \| \
20247	 X"$ac_file" : 'X\(//\)$' \| \
20248	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20249echo X"$ac_file" |
20250    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20251	    s//\1/
20252	    q
20253	  }
20254	  /^X\(\/\/\)[^/].*/{
20255	    s//\1/
20256	    q
20257	  }
20258	  /^X\(\/\/\)$/{
20259	    s//\1/
20260	    q
20261	  }
20262	  /^X\(\/\).*/{
20263	    s//\1/
20264	    q
20265	  }
20266	  s/.*/./; q'`
20267  { as_dir="$ac_dir"
20268  case $as_dir in #(
20269  -*) as_dir=./$as_dir;;
20270  esac
20271  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20272    as_dirs=
20273    while :; do
20274      case $as_dir in #(
20275      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20276      *) as_qdir=$as_dir;;
20277      esac
20278      as_dirs="'$as_qdir' $as_dirs"
20279      as_dir=`$as_dirname -- "$as_dir" ||
20280$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20281	 X"$as_dir" : 'X\(//\)[^/]' \| \
20282	 X"$as_dir" : 'X\(//\)$' \| \
20283	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20284echo X"$as_dir" |
20285    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20286	    s//\1/
20287	    q
20288	  }
20289	  /^X\(\/\/\)[^/].*/{
20290	    s//\1/
20291	    q
20292	  }
20293	  /^X\(\/\/\)$/{
20294	    s//\1/
20295	    q
20296	  }
20297	  /^X\(\/\).*/{
20298	    s//\1/
20299	    q
20300	  }
20301	  s/.*/./; q'`
20302      test -d "$as_dir" && break
20303    done
20304    test -z "$as_dirs" || eval "mkdir $as_dirs"
20305  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20306echo "$as_me: error: cannot create directory $as_dir" >&2;}
20307   { (exit 1); exit 1; }; }; }
20308  ac_builddir=.
20309
20310case "$ac_dir" in
20311.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20312*)
20313  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20314  # A ".." for each directory in $ac_dir_suffix.
20315  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20316  case $ac_top_builddir_sub in
20317  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20318  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20319  esac ;;
20320esac
20321ac_abs_top_builddir=$ac_pwd
20322ac_abs_builddir=$ac_pwd$ac_dir_suffix
20323# for backward compatibility:
20324ac_top_builddir=$ac_top_build_prefix
20325
20326case $srcdir in
20327  .)  # We are building in place.
20328    ac_srcdir=.
20329    ac_top_srcdir=$ac_top_builddir_sub
20330    ac_abs_top_srcdir=$ac_pwd ;;
20331  [\\/]* | ?:[\\/]* )  # Absolute name.
20332    ac_srcdir=$srcdir$ac_dir_suffix;
20333    ac_top_srcdir=$srcdir
20334    ac_abs_top_srcdir=$srcdir ;;
20335  *) # Relative name.
20336    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20337    ac_top_srcdir=$ac_top_build_prefix$srcdir
20338    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20339esac
20340ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20341
20342
20343  case $ac_mode in
20344  :F)
20345  #
20346  # CONFIG_FILE
20347  #
20348
20349  case $INSTALL in
20350  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20351  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20352  esac
20353  ac_MKDIR_P=$MKDIR_P
20354  case $MKDIR_P in
20355  [\\/$]* | ?:[\\/]* ) ;;
20356  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20357  esac
20358_ACEOF
20359
20360cat >>$CONFIG_STATUS <<\_ACEOF
20361# If the template does not know about datarootdir, expand it.
20362# FIXME: This hack should be removed a few years after 2.60.
20363ac_datarootdir_hack=; ac_datarootdir_seen=
20364
20365case `sed -n '/datarootdir/ {
20366  p
20367  q
20368}
20369/@datadir@/p
20370/@docdir@/p
20371/@infodir@/p
20372/@localedir@/p
20373/@mandir@/p
20374' $ac_file_inputs` in
20375*datarootdir*) ac_datarootdir_seen=yes;;
20376*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20377  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20378echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20379_ACEOF
20380cat >>$CONFIG_STATUS <<_ACEOF
20381  ac_datarootdir_hack='
20382  s&@datadir@&$datadir&g
20383  s&@docdir@&$docdir&g
20384  s&@infodir@&$infodir&g
20385  s&@localedir@&$localedir&g
20386  s&@mandir@&$mandir&g
20387    s&\\\${datarootdir}&$datarootdir&g' ;;
20388esac
20389_ACEOF
20390
20391# Neutralize VPATH when `$srcdir' = `.'.
20392# Shell code in configure.ac might set extrasub.
20393# FIXME: do we really want to maintain this feature?
20394cat >>$CONFIG_STATUS <<_ACEOF
20395  sed "$ac_vpsub
20396$extrasub
20397_ACEOF
20398cat >>$CONFIG_STATUS <<\_ACEOF
20399:t
20400/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20401s&@configure_input@&$configure_input&;t t
20402s&@top_builddir@&$ac_top_builddir_sub&;t t
20403s&@srcdir@&$ac_srcdir&;t t
20404s&@abs_srcdir@&$ac_abs_srcdir&;t t
20405s&@top_srcdir@&$ac_top_srcdir&;t t
20406s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20407s&@builddir@&$ac_builddir&;t t
20408s&@abs_builddir@&$ac_abs_builddir&;t t
20409s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20410s&@INSTALL@&$ac_INSTALL&;t t
20411s&@MKDIR_P@&$ac_MKDIR_P&;t t
20412$ac_datarootdir_hack
20413" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20414
20415test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20416  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20417  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20418  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20419which seems to be undefined.  Please make sure it is defined." >&5
20420echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20421which seems to be undefined.  Please make sure it is defined." >&2;}
20422
20423  rm -f "$tmp/stdin"
20424  case $ac_file in
20425  -) cat "$tmp/out"; rm -f "$tmp/out";;
20426  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20427  esac
20428 ;;
20429
20430
20431  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20432echo "$as_me: executing $ac_file commands" >&6;}
20433 ;;
20434  esac
20435
20436
20437  case $ac_file$ac_mode in
20438    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20439  # Strip MF so we end up with the name of the file.
20440  mf=`echo "$mf" | sed -e 's/:.*$//'`
20441  # Check whether this is an Automake generated Makefile or not.
20442  # We used to match only the files named `Makefile.in', but
20443  # some people rename them; so instead we look at the file content.
20444  # Grep'ing the first line is not enough: some people post-process
20445  # each Makefile.in and add a new line on top of each file to say so.
20446  # Grep'ing the whole file is not good either: AIX grep has a line
20447  # limit of 2048, but all sed's we know have understand at least 4000.
20448  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
20449    dirpart=`$as_dirname -- "$mf" ||
20450$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20451	 X"$mf" : 'X\(//\)[^/]' \| \
20452	 X"$mf" : 'X\(//\)$' \| \
20453	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20454echo X"$mf" |
20455    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20456	    s//\1/
20457	    q
20458	  }
20459	  /^X\(\/\/\)[^/].*/{
20460	    s//\1/
20461	    q
20462	  }
20463	  /^X\(\/\/\)$/{
20464	    s//\1/
20465	    q
20466	  }
20467	  /^X\(\/\).*/{
20468	    s//\1/
20469	    q
20470	  }
20471	  s/.*/./; q'`
20472  else
20473    continue
20474  fi
20475  # Extract the definition of DEPDIR, am__include, and am__quote
20476  # from the Makefile without running `make'.
20477  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20478  test -z "$DEPDIR" && continue
20479  am__include=`sed -n 's/^am__include = //p' < "$mf"`
20480  test -z "am__include" && continue
20481  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20482  # When using ansi2knr, U may be empty or an underscore; expand it
20483  U=`sed -n 's/^U = //p' < "$mf"`
20484  # Find all dependency output files, they are included files with
20485  # $(DEPDIR) in their names.  We invoke sed twice because it is the
20486  # simplest approach to changing $(DEPDIR) to its actual value in the
20487  # expansion.
20488  for file in `sed -n "
20489    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20490       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20491    # Make sure the directory exists.
20492    test -f "$dirpart/$file" && continue
20493    fdir=`$as_dirname -- "$file" ||
20494$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20495	 X"$file" : 'X\(//\)[^/]' \| \
20496	 X"$file" : 'X\(//\)$' \| \
20497	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20498echo X"$file" |
20499    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20500	    s//\1/
20501	    q
20502	  }
20503	  /^X\(\/\/\)[^/].*/{
20504	    s//\1/
20505	    q
20506	  }
20507	  /^X\(\/\/\)$/{
20508	    s//\1/
20509	    q
20510	  }
20511	  /^X\(\/\).*/{
20512	    s//\1/
20513	    q
20514	  }
20515	  s/.*/./; q'`
20516    { as_dir=$dirpart/$fdir
20517  case $as_dir in #(
20518  -*) as_dir=./$as_dir;;
20519  esac
20520  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20521    as_dirs=
20522    while :; do
20523      case $as_dir in #(
20524      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20525      *) as_qdir=$as_dir;;
20526      esac
20527      as_dirs="'$as_qdir' $as_dirs"
20528      as_dir=`$as_dirname -- "$as_dir" ||
20529$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20530	 X"$as_dir" : 'X\(//\)[^/]' \| \
20531	 X"$as_dir" : 'X\(//\)$' \| \
20532	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20533echo X"$as_dir" |
20534    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20535	    s//\1/
20536	    q
20537	  }
20538	  /^X\(\/\/\)[^/].*/{
20539	    s//\1/
20540	    q
20541	  }
20542	  /^X\(\/\/\)$/{
20543	    s//\1/
20544	    q
20545	  }
20546	  /^X\(\/\).*/{
20547	    s//\1/
20548	    q
20549	  }
20550	  s/.*/./; q'`
20551      test -d "$as_dir" && break
20552    done
20553    test -z "$as_dirs" || eval "mkdir $as_dirs"
20554  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20555echo "$as_me: error: cannot create directory $as_dir" >&2;}
20556   { (exit 1); exit 1; }; }; }
20557    # echo "creating $dirpart/$file"
20558    echo '# dummy' > "$dirpart/$file"
20559  done
20560done
20561 ;;
20562
20563  esac
20564done # for ac_tag
20565
20566
20567{ (exit 0); exit 0; }
20568_ACEOF
20569chmod +x $CONFIG_STATUS
20570ac_clean_files=$ac_clean_files_save
20571
20572
20573# configure is writing to config.log, and then calls config.status.
20574# config.status does its own redirection, appending to config.log.
20575# Unfortunately, on DOS this fails, as config.log is still kept open
20576# by configure, so config.status won't be able to write to it; its
20577# output is simply discarded.  So we exec the FD to /dev/null,
20578# effectively closing config.log, so it can be properly (re)opened and
20579# appended to by config.status.  When coming back to configure, we
20580# need to make the FD available again.
20581if test "$no_create" != yes; then
20582  ac_cs_success=:
20583  ac_config_status_args=
20584  test "$silent" = yes &&
20585    ac_config_status_args="$ac_config_status_args --quiet"
20586  exec 5>/dev/null
20587  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20588  exec 5>>config.log
20589  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20590  # would make configure fail if this is the last instruction.
20591  $ac_cs_success || { (exit 1); exit 1; }
20592fi
20593
20594