xref: /netbsd-src/external/gpl2/gettext/dist/autoconf-lib-link/tests/rpathz/configure (revision 946379e7b37692fc43f68eb0d1c10daa0a7f3b6c)
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
853GREP
854EGREP
855LN_S
856ECHO
857AR
858RANLIB
859CPP
860CXX
861CXXFLAGS
862ac_ct_CXX
863CXXDEPMODE
864am__fastdepCXX_TRUE
865am__fastdepCXX_FALSE
866CXXCPP
867F77
868FFLAGS
869ac_ct_F77
870LIBTOOL
871LIBRPATHX
872LTLIBRPATHX
873LIBRPATHY
874LTLIBRPATHY
875global_top_auxdir
876LIBOBJS
877LTLIBOBJS'
878ac_subst_files=''
879      ac_precious_vars='build_alias
880host_alias
881target_alias
882CC
883CFLAGS
884LDFLAGS
885LIBS
886CPPFLAGS
887CPP
888CXX
889CXXFLAGS
890CCC
891CXXCPP
892F77
893FFLAGS'
894
895
896# Initialize some variables set by options.
897ac_init_help=
898ac_init_version=false
899# The variables have the same names as the options, with
900# dashes changed to underlines.
901cache_file=/dev/null
902exec_prefix=NONE
903no_create=
904no_recursion=
905prefix=NONE
906program_prefix=NONE
907program_suffix=NONE
908program_transform_name=s,x,x,
909silent=
910site=
911srcdir=
912verbose=
913x_includes=NONE
914x_libraries=NONE
915
916# Installation directory options.
917# These are left unexpanded so users can "make install exec_prefix=/foo"
918# and all the variables that are supposed to be based on exec_prefix
919# by default will actually change.
920# Use braces instead of parens because sh, perl, etc. also accept them.
921# (The list follows the same order as the GNU Coding Standards.)
922bindir='${exec_prefix}/bin'
923sbindir='${exec_prefix}/sbin'
924libexecdir='${exec_prefix}/libexec'
925datarootdir='${prefix}/share'
926datadir='${datarootdir}'
927sysconfdir='${prefix}/etc'
928sharedstatedir='${prefix}/com'
929localstatedir='${prefix}/var'
930includedir='${prefix}/include'
931oldincludedir='/usr/include'
932docdir='${datarootdir}/doc/${PACKAGE}'
933infodir='${datarootdir}/info'
934htmldir='${docdir}'
935dvidir='${docdir}'
936pdfdir='${docdir}'
937psdir='${docdir}'
938libdir='${exec_prefix}/lib'
939localedir='${datarootdir}/locale'
940mandir='${datarootdir}/man'
941
942ac_prev=
943ac_dashdash=
944for ac_option
945do
946  # If the previous option needs an argument, assign it.
947  if test -n "$ac_prev"; then
948    eval $ac_prev=\$ac_option
949    ac_prev=
950    continue
951  fi
952
953  case $ac_option in
954  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955  *)	ac_optarg=yes ;;
956  esac
957
958  # Accept the important Cygnus configure options, so we can diagnose typos.
959
960  case $ac_dashdash$ac_option in
961  --)
962    ac_dashdash=yes ;;
963
964  -bindir | --bindir | --bindi | --bind | --bin | --bi)
965    ac_prev=bindir ;;
966  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
967    bindir=$ac_optarg ;;
968
969  -build | --build | --buil | --bui | --bu)
970    ac_prev=build_alias ;;
971  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
972    build_alias=$ac_optarg ;;
973
974  -cache-file | --cache-file | --cache-fil | --cache-fi \
975  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
976    ac_prev=cache_file ;;
977  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
978  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
979    cache_file=$ac_optarg ;;
980
981  --config-cache | -C)
982    cache_file=config.cache ;;
983
984  -datadir | --datadir | --datadi | --datad)
985    ac_prev=datadir ;;
986  -datadir=* | --datadir=* | --datadi=* | --datad=*)
987    datadir=$ac_optarg ;;
988
989  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
990  | --dataroo | --dataro | --datar)
991    ac_prev=datarootdir ;;
992  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
993  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
994    datarootdir=$ac_optarg ;;
995
996  -disable-* | --disable-*)
997    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
998    # Reject names that are not valid shell variable names.
999    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1000      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1001   { (exit 1); exit 1; }; }
1002    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1003    eval enable_$ac_feature=no ;;
1004
1005  -docdir | --docdir | --docdi | --doc | --do)
1006    ac_prev=docdir ;;
1007  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008    docdir=$ac_optarg ;;
1009
1010  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011    ac_prev=dvidir ;;
1012  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013    dvidir=$ac_optarg ;;
1014
1015  -enable-* | --enable-*)
1016    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017    # Reject names that are not valid shell variable names.
1018    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1019      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020   { (exit 1); exit 1; }; }
1021    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1022    eval enable_$ac_feature=\$ac_optarg ;;
1023
1024  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026  | --exec | --exe | --ex)
1027    ac_prev=exec_prefix ;;
1028  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030  | --exec=* | --exe=* | --ex=*)
1031    exec_prefix=$ac_optarg ;;
1032
1033  -gas | --gas | --ga | --g)
1034    # Obsolete; use --with-gas.
1035    with_gas=yes ;;
1036
1037  -help | --help | --hel | --he | -h)
1038    ac_init_help=long ;;
1039  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040    ac_init_help=recursive ;;
1041  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042    ac_init_help=short ;;
1043
1044  -host | --host | --hos | --ho)
1045    ac_prev=host_alias ;;
1046  -host=* | --host=* | --hos=* | --ho=*)
1047    host_alias=$ac_optarg ;;
1048
1049  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050    ac_prev=htmldir ;;
1051  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052  | --ht=*)
1053    htmldir=$ac_optarg ;;
1054
1055  -includedir | --includedir | --includedi | --included | --include \
1056  | --includ | --inclu | --incl | --inc)
1057    ac_prev=includedir ;;
1058  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059  | --includ=* | --inclu=* | --incl=* | --inc=*)
1060    includedir=$ac_optarg ;;
1061
1062  -infodir | --infodir | --infodi | --infod | --info | --inf)
1063    ac_prev=infodir ;;
1064  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065    infodir=$ac_optarg ;;
1066
1067  -libdir | --libdir | --libdi | --libd)
1068    ac_prev=libdir ;;
1069  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070    libdir=$ac_optarg ;;
1071
1072  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073  | --libexe | --libex | --libe)
1074    ac_prev=libexecdir ;;
1075  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076  | --libexe=* | --libex=* | --libe=*)
1077    libexecdir=$ac_optarg ;;
1078
1079  -localedir | --localedir | --localedi | --localed | --locale)
1080    ac_prev=localedir ;;
1081  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082    localedir=$ac_optarg ;;
1083
1084  -localstatedir | --localstatedir | --localstatedi | --localstated \
1085  | --localstate | --localstat | --localsta | --localst | --locals)
1086    ac_prev=localstatedir ;;
1087  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089    localstatedir=$ac_optarg ;;
1090
1091  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092    ac_prev=mandir ;;
1093  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094    mandir=$ac_optarg ;;
1095
1096  -nfp | --nfp | --nf)
1097    # Obsolete; use --without-fp.
1098    with_fp=no ;;
1099
1100  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101  | --no-cr | --no-c | -n)
1102    no_create=yes ;;
1103
1104  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106    no_recursion=yes ;;
1107
1108  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110  | --oldin | --oldi | --old | --ol | --o)
1111    ac_prev=oldincludedir ;;
1112  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115    oldincludedir=$ac_optarg ;;
1116
1117  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118    ac_prev=prefix ;;
1119  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120    prefix=$ac_optarg ;;
1121
1122  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123  | --program-pre | --program-pr | --program-p)
1124    ac_prev=program_prefix ;;
1125  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127    program_prefix=$ac_optarg ;;
1128
1129  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130  | --program-suf | --program-su | --program-s)
1131    ac_prev=program_suffix ;;
1132  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134    program_suffix=$ac_optarg ;;
1135
1136  -program-transform-name | --program-transform-name \
1137  | --program-transform-nam | --program-transform-na \
1138  | --program-transform-n | --program-transform- \
1139  | --program-transform | --program-transfor \
1140  | --program-transfo | --program-transf \
1141  | --program-trans | --program-tran \
1142  | --progr-tra | --program-tr | --program-t)
1143    ac_prev=program_transform_name ;;
1144  -program-transform-name=* | --program-transform-name=* \
1145  | --program-transform-nam=* | --program-transform-na=* \
1146  | --program-transform-n=* | --program-transform-=* \
1147  | --program-transform=* | --program-transfor=* \
1148  | --program-transfo=* | --program-transf=* \
1149  | --program-trans=* | --program-tran=* \
1150  | --progr-tra=* | --program-tr=* | --program-t=*)
1151    program_transform_name=$ac_optarg ;;
1152
1153  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154    ac_prev=pdfdir ;;
1155  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156    pdfdir=$ac_optarg ;;
1157
1158  -psdir | --psdir | --psdi | --psd | --ps)
1159    ac_prev=psdir ;;
1160  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161    psdir=$ac_optarg ;;
1162
1163  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164  | -silent | --silent | --silen | --sile | --sil)
1165    silent=yes ;;
1166
1167  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168    ac_prev=sbindir ;;
1169  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170  | --sbi=* | --sb=*)
1171    sbindir=$ac_optarg ;;
1172
1173  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175  | --sharedst | --shareds | --shared | --share | --shar \
1176  | --sha | --sh)
1177    ac_prev=sharedstatedir ;;
1178  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181  | --sha=* | --sh=*)
1182    sharedstatedir=$ac_optarg ;;
1183
1184  -site | --site | --sit)
1185    ac_prev=site ;;
1186  -site=* | --site=* | --sit=*)
1187    site=$ac_optarg ;;
1188
1189  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190    ac_prev=srcdir ;;
1191  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192    srcdir=$ac_optarg ;;
1193
1194  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195  | --syscon | --sysco | --sysc | --sys | --sy)
1196    ac_prev=sysconfdir ;;
1197  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199    sysconfdir=$ac_optarg ;;
1200
1201  -target | --target | --targe | --targ | --tar | --ta | --t)
1202    ac_prev=target_alias ;;
1203  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204    target_alias=$ac_optarg ;;
1205
1206  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207    verbose=yes ;;
1208
1209  -version | --version | --versio | --versi | --vers | -V)
1210    ac_init_version=: ;;
1211
1212  -with-* | --with-*)
1213    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214    # Reject names that are not valid shell variable names.
1215    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216      { echo "$as_me: error: invalid package name: $ac_package" >&2
1217   { (exit 1); exit 1; }; }
1218    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1219    eval with_$ac_package=\$ac_optarg ;;
1220
1221  -without-* | --without-*)
1222    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223    # Reject names that are not valid shell variable names.
1224    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225      { echo "$as_me: error: invalid package name: $ac_package" >&2
1226   { (exit 1); exit 1; }; }
1227    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1228    eval with_$ac_package=no ;;
1229
1230  --x)
1231    # Obsolete; use --with-x.
1232    with_x=yes ;;
1233
1234  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235  | --x-incl | --x-inc | --x-in | --x-i)
1236    ac_prev=x_includes ;;
1237  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239    x_includes=$ac_optarg ;;
1240
1241  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243    ac_prev=x_libraries ;;
1244  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246    x_libraries=$ac_optarg ;;
1247
1248  -*) { echo "$as_me: error: unrecognized option: $ac_option
1249Try \`$0 --help' for more information." >&2
1250   { (exit 1); exit 1; }; }
1251    ;;
1252
1253  *=*)
1254    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255    # Reject names that are not valid shell variable names.
1256    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1257      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1258   { (exit 1); exit 1; }; }
1259    eval $ac_envvar=\$ac_optarg
1260    export $ac_envvar ;;
1261
1262  *)
1263    # FIXME: should be removed in autoconf 3.0.
1264    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1268    ;;
1269
1270  esac
1271done
1272
1273if test -n "$ac_prev"; then
1274  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275  { echo "$as_me: error: missing argument to $ac_option" >&2
1276   { (exit 1); exit 1; }; }
1277fi
1278
1279# Be sure to have absolute directory names.
1280for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281		datadir sysconfdir sharedstatedir localstatedir includedir \
1282		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283		libdir localedir mandir
1284do
1285  eval ac_val=\$$ac_var
1286  case $ac_val in
1287    [\\/$]* | ?:[\\/]* )  continue;;
1288    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289  esac
1290  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1291   { (exit 1); exit 1; }; }
1292done
1293
1294# There might be people who depend on the old broken behavior: `$host'
1295# used to hold the argument of --host etc.
1296# FIXME: To remove some day.
1297build=$build_alias
1298host=$host_alias
1299target=$target_alias
1300
1301# FIXME: To remove some day.
1302if test "x$host_alias" != x; then
1303  if test "x$build_alias" = x; then
1304    cross_compiling=maybe
1305    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1306    If a cross compiler is detected then cross compile mode will be used." >&2
1307  elif test "x$build_alias" != "x$host_alias"; then
1308    cross_compiling=yes
1309  fi
1310fi
1311
1312ac_tool_prefix=
1313test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315test "$silent" = yes && exec 6>/dev/null
1316
1317
1318ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319ac_ls_di=`ls -di .` &&
1320ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321  { echo "$as_me: error: Working directory cannot be determined" >&2
1322   { (exit 1); exit 1; }; }
1323test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324  { echo "$as_me: error: pwd does not report name of working directory" >&2
1325   { (exit 1); exit 1; }; }
1326
1327
1328# Find the source files, if location was not specified.
1329if test -z "$srcdir"; then
1330  ac_srcdir_defaulted=yes
1331  # Try the directory containing this script, then the parent directory.
1332  ac_confdir=`$as_dirname -- "$0" ||
1333$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334	 X"$0" : 'X\(//\)[^/]' \| \
1335	 X"$0" : 'X\(//\)$' \| \
1336	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1337echo X"$0" |
1338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339	    s//\1/
1340	    q
1341	  }
1342	  /^X\(\/\/\)[^/].*/{
1343	    s//\1/
1344	    q
1345	  }
1346	  /^X\(\/\/\)$/{
1347	    s//\1/
1348	    q
1349	  }
1350	  /^X\(\/\).*/{
1351	    s//\1/
1352	    q
1353	  }
1354	  s/.*/./; q'`
1355  srcdir=$ac_confdir
1356  if test ! -r "$srcdir/$ac_unique_file"; then
1357    srcdir=..
1358  fi
1359else
1360  ac_srcdir_defaulted=no
1361fi
1362if test ! -r "$srcdir/$ac_unique_file"; then
1363  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1365   { (exit 1); exit 1; }; }
1366fi
1367ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368ac_abs_confdir=`(
1369	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1370   { (exit 1); exit 1; }; }
1371	pwd)`
1372# When building in place, set srcdir=.
1373if test "$ac_abs_confdir" = "$ac_pwd"; then
1374  srcdir=.
1375fi
1376# Remove unnecessary trailing slashes from srcdir.
1377# Double slashes in file names in object file debugging info
1378# mess up M-x gdb in Emacs.
1379case $srcdir in
1380*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381esac
1382for ac_var in $ac_precious_vars; do
1383  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384  eval ac_env_${ac_var}_value=\$${ac_var}
1385  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387done
1388
1389#
1390# Report the --help message.
1391#
1392if test "$ac_init_help" = "long"; then
1393  # Omit some internal or obsolete options to make the list less imposing.
1394  # This message is too long to be a string in the A/UX 3.1 sh.
1395  cat <<_ACEOF
1396\`configure' configures this package to adapt to many kinds of systems.
1397
1398Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401VAR=VALUE.  See below for descriptions of some of the useful variables.
1402
1403Defaults for the options are specified in brackets.
1404
1405Configuration:
1406  -h, --help              display this help and exit
1407      --help=short        display options specific to this package
1408      --help=recursive    display the short help of all the included packages
1409  -V, --version           display version information and exit
1410  -q, --quiet, --silent   do not print \`checking...' messages
1411      --cache-file=FILE   cache test results in FILE [disabled]
1412  -C, --config-cache      alias for \`--cache-file=config.cache'
1413  -n, --no-create         do not create output files
1414      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1415
1416Installation directories:
1417  --prefix=PREFIX         install architecture-independent files in PREFIX
1418			  [$ac_default_prefix]
1419  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1420			  [PREFIX]
1421
1422By default, \`make install' will install all the files in
1423\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1424an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425for instance \`--prefix=\$HOME'.
1426
1427For better control, use the options below.
1428
1429Fine tuning of the installation directories:
1430  --bindir=DIR           user executables [EPREFIX/bin]
1431  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1432  --libexecdir=DIR       program executables [EPREFIX/libexec]
1433  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1434  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1435  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1436  --libdir=DIR           object code libraries [EPREFIX/lib]
1437  --includedir=DIR       C header files [PREFIX/include]
1438  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1439  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1440  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1441  --infodir=DIR          info documentation [DATAROOTDIR/info]
1442  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1443  --mandir=DIR           man documentation [DATAROOTDIR/man]
1444  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1445  --htmldir=DIR          html documentation [DOCDIR]
1446  --dvidir=DIR           dvi documentation [DOCDIR]
1447  --pdfdir=DIR           pdf documentation [DOCDIR]
1448  --psdir=DIR            ps documentation [DOCDIR]
1449_ACEOF
1450
1451  cat <<\_ACEOF
1452
1453Program names:
1454  --program-prefix=PREFIX            prepend PREFIX to installed program names
1455  --program-suffix=SUFFIX            append SUFFIX to installed program names
1456  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1457
1458System types:
1459  --build=BUILD     configure for building on BUILD [guessed]
1460  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1461_ACEOF
1462fi
1463
1464if test -n "$ac_init_help"; then
1465
1466  cat <<\_ACEOF
1467
1468Optional Features:
1469  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1470  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1471  --disable-dependency-tracking  speeds up one-time build
1472  --enable-dependency-tracking   do not reject slow dependency extractors
1473  --enable-shared[=PKGS]  build shared libraries [default=yes]
1474  --enable-static[=PKGS]  build static libraries [default=yes]
1475  --enable-fast-install[=PKGS]
1476                          optimize for fast installation [default=yes]
1477  --disable-libtool-lock  avoid locking (might break parallel builds)
1478  --disable-rpath         do not hardcode runtime library paths
1479
1480Optional Packages:
1481  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1482  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1483  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1484  --with-pic              try to use only PIC/non-PIC objects [default=use
1485                          both]
1486  --with-tags[=TAGS]      include additional configurations [automatic]
1487  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1488  --with-librpathx-prefix[=DIR]  search for librpathx in DIR/include and DIR/lib
1489  --without-librpathx-prefix     don't search for librpathx in includedir and libdir
1490  --with-librpathy-prefix[=DIR]  search for librpathy in DIR/include and DIR/lib
1491  --without-librpathy-prefix     don't search for librpathy in includedir and libdir
1492
1493Some influential environment variables:
1494  CC          C compiler command
1495  CFLAGS      C compiler flags
1496  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1497              nonstandard directory <lib dir>
1498  LIBS        libraries to pass to the linker, e.g. -l<library>
1499  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1500              you have headers in a nonstandard directory <include dir>
1501  CPP         C preprocessor
1502  CXX         C++ compiler command
1503  CXXFLAGS    C++ compiler flags
1504  CXXCPP      C++ preprocessor
1505  F77         Fortran 77 compiler command
1506  FFLAGS      Fortran 77 compiler flags
1507
1508Use these variables to override the choices made by `configure' or to help
1509it to find libraries and programs with nonstandard names/locations.
1510
1511_ACEOF
1512ac_status=$?
1513fi
1514
1515if test "$ac_init_help" = "recursive"; then
1516  # If there are subdirs, report their specific --help.
1517  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518    test -d "$ac_dir" || continue
1519    ac_builddir=.
1520
1521case "$ac_dir" in
1522.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523*)
1524  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1525  # A ".." for each directory in $ac_dir_suffix.
1526  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1527  case $ac_top_builddir_sub in
1528  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530  esac ;;
1531esac
1532ac_abs_top_builddir=$ac_pwd
1533ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534# for backward compatibility:
1535ac_top_builddir=$ac_top_build_prefix
1536
1537case $srcdir in
1538  .)  # We are building in place.
1539    ac_srcdir=.
1540    ac_top_srcdir=$ac_top_builddir_sub
1541    ac_abs_top_srcdir=$ac_pwd ;;
1542  [\\/]* | ?:[\\/]* )  # Absolute name.
1543    ac_srcdir=$srcdir$ac_dir_suffix;
1544    ac_top_srcdir=$srcdir
1545    ac_abs_top_srcdir=$srcdir ;;
1546  *) # Relative name.
1547    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548    ac_top_srcdir=$ac_top_build_prefix$srcdir
1549    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550esac
1551ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552
1553    cd "$ac_dir" || { ac_status=$?; continue; }
1554    # Check for guested configure.
1555    if test -f "$ac_srcdir/configure.gnu"; then
1556      echo &&
1557      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558    elif test -f "$ac_srcdir/configure"; then
1559      echo &&
1560      $SHELL "$ac_srcdir/configure" --help=recursive
1561    else
1562      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563    fi || ac_status=$?
1564    cd "$ac_pwd" || { ac_status=$?; break; }
1565  done
1566fi
1567
1568test -n "$ac_init_help" && exit $ac_status
1569if $ac_init_version; then
1570  cat <<\_ACEOF
1571configure
1572generated by GNU Autoconf 2.61
1573
1574Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15752002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1576This configure script is free software; the Free Software Foundation
1577gives unlimited permission to copy, distribute and modify it.
1578_ACEOF
1579  exit
1580fi
1581cat >config.log <<_ACEOF
1582This file contains any messages produced by compilers while
1583running configure, to aid debugging if configure makes a mistake.
1584
1585It was created by $as_me, which was
1586generated by GNU Autoconf 2.61.  Invocation command line was
1587
1588  $ $0 $@
1589
1590_ACEOF
1591exec 5>>config.log
1592{
1593cat <<_ASUNAME
1594## --------- ##
1595## Platform. ##
1596## --------- ##
1597
1598hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1599uname -m = `(uname -m) 2>/dev/null || echo unknown`
1600uname -r = `(uname -r) 2>/dev/null || echo unknown`
1601uname -s = `(uname -s) 2>/dev/null || echo unknown`
1602uname -v = `(uname -v) 2>/dev/null || echo unknown`
1603
1604/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1605/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1606
1607/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1608/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1609/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1610/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1611/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1612/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1613/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1614
1615_ASUNAME
1616
1617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618for as_dir in $PATH
1619do
1620  IFS=$as_save_IFS
1621  test -z "$as_dir" && as_dir=.
1622  echo "PATH: $as_dir"
1623done
1624IFS=$as_save_IFS
1625
1626} >&5
1627
1628cat >&5 <<_ACEOF
1629
1630
1631## ----------- ##
1632## Core tests. ##
1633## ----------- ##
1634
1635_ACEOF
1636
1637
1638# Keep a trace of the command line.
1639# Strip out --no-create and --no-recursion so they do not pile up.
1640# Strip out --silent because we don't want to record it for future runs.
1641# Also quote any args containing shell meta-characters.
1642# Make two passes to allow for proper duplicate-argument suppression.
1643ac_configure_args=
1644ac_configure_args0=
1645ac_configure_args1=
1646ac_must_keep_next=false
1647for ac_pass in 1 2
1648do
1649  for ac_arg
1650  do
1651    case $ac_arg in
1652    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1653    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1654    | -silent | --silent | --silen | --sile | --sil)
1655      continue ;;
1656    *\'*)
1657      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1658    esac
1659    case $ac_pass in
1660    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1661    2)
1662      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1663      if test $ac_must_keep_next = true; then
1664	ac_must_keep_next=false # Got value, back to normal.
1665      else
1666	case $ac_arg in
1667	  *=* | --config-cache | -C | -disable-* | --disable-* \
1668	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1669	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1670	  | -with-* | --with-* | -without-* | --without-* | --x)
1671	    case "$ac_configure_args0 " in
1672	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1673	    esac
1674	    ;;
1675	  -* ) ac_must_keep_next=true ;;
1676	esac
1677      fi
1678      ac_configure_args="$ac_configure_args '$ac_arg'"
1679      ;;
1680    esac
1681  done
1682done
1683$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1684$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1685
1686# When interrupted or exit'd, cleanup temporary files, and complete
1687# config.log.  We remove comments because anyway the quotes in there
1688# would cause problems or look ugly.
1689# WARNING: Use '\'' to represent an apostrophe within the trap.
1690# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1691trap 'exit_status=$?
1692  # Save into config.log some information that might help in debugging.
1693  {
1694    echo
1695
1696    cat <<\_ASBOX
1697## ---------------- ##
1698## Cache variables. ##
1699## ---------------- ##
1700_ASBOX
1701    echo
1702    # The following way of writing the cache mishandles newlines in values,
1703(
1704  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1705    eval ac_val=\$$ac_var
1706    case $ac_val in #(
1707    *${as_nl}*)
1708      case $ac_var in #(
1709      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1710echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1711      esac
1712      case $ac_var in #(
1713      _ | IFS | as_nl) ;; #(
1714      *) $as_unset $ac_var ;;
1715      esac ;;
1716    esac
1717  done
1718  (set) 2>&1 |
1719    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1720    *${as_nl}ac_space=\ *)
1721      sed -n \
1722	"s/'\''/'\''\\\\'\'''\''/g;
1723	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1724      ;; #(
1725    *)
1726      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1727      ;;
1728    esac |
1729    sort
1730)
1731    echo
1732
1733    cat <<\_ASBOX
1734## ----------------- ##
1735## Output variables. ##
1736## ----------------- ##
1737_ASBOX
1738    echo
1739    for ac_var in $ac_subst_vars
1740    do
1741      eval ac_val=\$$ac_var
1742      case $ac_val in
1743      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744      esac
1745      echo "$ac_var='\''$ac_val'\''"
1746    done | sort
1747    echo
1748
1749    if test -n "$ac_subst_files"; then
1750      cat <<\_ASBOX
1751## ------------------- ##
1752## File substitutions. ##
1753## ------------------- ##
1754_ASBOX
1755      echo
1756      for ac_var in $ac_subst_files
1757      do
1758	eval ac_val=\$$ac_var
1759	case $ac_val in
1760	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761	esac
1762	echo "$ac_var='\''$ac_val'\''"
1763      done | sort
1764      echo
1765    fi
1766
1767    if test -s confdefs.h; then
1768      cat <<\_ASBOX
1769## ----------- ##
1770## confdefs.h. ##
1771## ----------- ##
1772_ASBOX
1773      echo
1774      cat confdefs.h
1775      echo
1776    fi
1777    test "$ac_signal" != 0 &&
1778      echo "$as_me: caught signal $ac_signal"
1779    echo "$as_me: exit $exit_status"
1780  } >&5
1781  rm -f core *.core core.conftest.* &&
1782    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1783    exit $exit_status
1784' 0
1785for ac_signal in 1 2 13 15; do
1786  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1787done
1788ac_signal=0
1789
1790# confdefs.h avoids OS command line length limits that DEFS can exceed.
1791rm -f -r conftest* confdefs.h
1792
1793# Predefined preprocessor variables.
1794
1795cat >>confdefs.h <<_ACEOF
1796#define PACKAGE_NAME "$PACKAGE_NAME"
1797_ACEOF
1798
1799
1800cat >>confdefs.h <<_ACEOF
1801#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1802_ACEOF
1803
1804
1805cat >>confdefs.h <<_ACEOF
1806#define PACKAGE_VERSION "$PACKAGE_VERSION"
1807_ACEOF
1808
1809
1810cat >>confdefs.h <<_ACEOF
1811#define PACKAGE_STRING "$PACKAGE_STRING"
1812_ACEOF
1813
1814
1815cat >>confdefs.h <<_ACEOF
1816#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1817_ACEOF
1818
1819
1820# Let the site file select an alternate cache file if it wants to.
1821# Prefer explicitly selected file to automatically selected ones.
1822if test -n "$CONFIG_SITE"; then
1823  set x "$CONFIG_SITE"
1824elif test "x$prefix" != xNONE; then
1825  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1826else
1827  set x "$ac_default_prefix/share/config.site" \
1828	"$ac_default_prefix/etc/config.site"
1829fi
1830shift
1831for ac_site_file
1832do
1833  if test -r "$ac_site_file"; then
1834    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1835echo "$as_me: loading site script $ac_site_file" >&6;}
1836    sed 's/^/| /' "$ac_site_file" >&5
1837    . "$ac_site_file"
1838  fi
1839done
1840
1841if test -r "$cache_file"; then
1842  # Some versions of bash will fail to source /dev/null (special
1843  # files actually), so we avoid doing that.
1844  if test -f "$cache_file"; then
1845    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1846echo "$as_me: loading cache $cache_file" >&6;}
1847    case $cache_file in
1848      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1849      *)                      . "./$cache_file";;
1850    esac
1851  fi
1852else
1853  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1854echo "$as_me: creating cache $cache_file" >&6;}
1855  >$cache_file
1856fi
1857
1858# Check that the precious variables saved in the cache have kept the same
1859# value.
1860ac_cache_corrupted=false
1861for ac_var in $ac_precious_vars; do
1862  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1863  eval ac_new_set=\$ac_env_${ac_var}_set
1864  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1865  eval ac_new_val=\$ac_env_${ac_var}_value
1866  case $ac_old_set,$ac_new_set in
1867    set,)
1868      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1869echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1870      ac_cache_corrupted=: ;;
1871    ,set)
1872      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1873echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1874      ac_cache_corrupted=: ;;
1875    ,);;
1876    *)
1877      if test "x$ac_old_val" != "x$ac_new_val"; then
1878	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1879echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1880	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1881echo "$as_me:   former value:  $ac_old_val" >&2;}
1882	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1883echo "$as_me:   current value: $ac_new_val" >&2;}
1884	ac_cache_corrupted=:
1885      fi;;
1886  esac
1887  # Pass precious variables to config.status.
1888  if test "$ac_new_set" = set; then
1889    case $ac_new_val in
1890    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1891    *) ac_arg=$ac_var=$ac_new_val ;;
1892    esac
1893    case " $ac_configure_args " in
1894      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1895      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1896    esac
1897  fi
1898done
1899if $ac_cache_corrupted; then
1900  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1901echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1902  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1903echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1904   { (exit 1); exit 1; }; }
1905fi
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923ac_ext=c
1924ac_cpp='$CPP $CPPFLAGS'
1925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1927ac_compiler_gnu=$ac_cv_c_compiler_gnu
1928
1929
1930ac_aux_dir=
1931for ac_dir in ../../../build-aux "$srcdir"/../../../build-aux; do
1932  if test -f "$ac_dir/install-sh"; then
1933    ac_aux_dir=$ac_dir
1934    ac_install_sh="$ac_aux_dir/install-sh -c"
1935    break
1936  elif test -f "$ac_dir/install.sh"; then
1937    ac_aux_dir=$ac_dir
1938    ac_install_sh="$ac_aux_dir/install.sh -c"
1939    break
1940  elif test -f "$ac_dir/shtool"; then
1941    ac_aux_dir=$ac_dir
1942    ac_install_sh="$ac_aux_dir/shtool install -c"
1943    break
1944  fi
1945done
1946if test -z "$ac_aux_dir"; then
1947  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&5
1948echo "$as_me: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&2;}
1949   { (exit 1); exit 1; }; }
1950fi
1951
1952# These three variables are undocumented and unsupported,
1953# and are intended to be withdrawn in a future Autoconf release.
1954# They can cause serious problems if a builder's source tree is in a directory
1955# whose full name contains unusual characters.
1956ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1957ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1958ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1959
1960
1961am__api_version='1.10'
1962
1963# Find a good install program.  We prefer a C program (faster),
1964# so one script is as good as another.  But avoid the broken or
1965# incompatible versions:
1966# SysV /etc/install, /usr/sbin/install
1967# SunOS /usr/etc/install
1968# IRIX /sbin/install
1969# AIX /bin/install
1970# AmigaOS /C/install, which installs bootblocks on floppy discs
1971# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1972# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1973# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1974# OS/2's system install, which has a completely different semantic
1975# ./install, which can be erroneously created by make from ./install.sh.
1976{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1977echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1978if test -z "$INSTALL"; then
1979if test "${ac_cv_path_install+set}" = set; then
1980  echo $ECHO_N "(cached) $ECHO_C" >&6
1981else
1982  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983for as_dir in $PATH
1984do
1985  IFS=$as_save_IFS
1986  test -z "$as_dir" && as_dir=.
1987  # Account for people who put trailing slashes in PATH elements.
1988case $as_dir/ in
1989  ./ | .// | /cC/* | \
1990  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1991  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1992  /usr/ucb/* ) ;;
1993  *)
1994    # OSF1 and SCO ODT 3.0 have their own names for install.
1995    # Don't use installbsd from OSF since it installs stuff as root
1996    # by default.
1997    for ac_prog in ginstall scoinst install; do
1998      for ac_exec_ext in '' $ac_executable_extensions; do
1999	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2000	  if test $ac_prog = install &&
2001	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2002	    # AIX install.  It has an incompatible calling convention.
2003	    :
2004	  elif test $ac_prog = install &&
2005	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2006	    # program-specific install script used by HP pwplus--don't use.
2007	    :
2008	  else
2009	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2010	    break 3
2011	  fi
2012	fi
2013      done
2014    done
2015    ;;
2016esac
2017done
2018IFS=$as_save_IFS
2019
2020
2021fi
2022  if test "${ac_cv_path_install+set}" = set; then
2023    INSTALL=$ac_cv_path_install
2024  else
2025    # As a last resort, use the slow shell script.  Don't cache a
2026    # value for INSTALL within a source directory, because that will
2027    # break other packages using the cache if that directory is
2028    # removed, or if the value is a relative name.
2029    INSTALL=$ac_install_sh
2030  fi
2031fi
2032{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2033echo "${ECHO_T}$INSTALL" >&6; }
2034
2035# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2036# It thinks the first close brace ends the variable substitution.
2037test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2038
2039test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2040
2041test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2042
2043{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2044echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2045# Just in case
2046sleep 1
2047echo timestamp > conftest.file
2048# Do `set' in a subshell so we don't clobber the current shell's
2049# arguments.  Must try -L first in case configure is actually a
2050# symlink; some systems play weird games with the mod time of symlinks
2051# (eg FreeBSD returns the mod time of the symlink's containing
2052# directory).
2053if (
2054   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2055   if test "$*" = "X"; then
2056      # -L didn't work.
2057      set X `ls -t $srcdir/configure conftest.file`
2058   fi
2059   rm -f conftest.file
2060   if test "$*" != "X $srcdir/configure conftest.file" \
2061      && test "$*" != "X conftest.file $srcdir/configure"; then
2062
2063      # If neither matched, then we have a broken ls.  This can happen
2064      # if, for instance, CONFIG_SHELL is bash and it inherits a
2065      # broken ls alias from the environment.  This has actually
2066      # happened.  Such a system could not be considered "sane".
2067      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2068alias in your environment" >&5
2069echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2070alias in your environment" >&2;}
2071   { (exit 1); exit 1; }; }
2072   fi
2073
2074   test "$2" = conftest.file
2075   )
2076then
2077   # Ok.
2078   :
2079else
2080   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2081Check your system clock" >&5
2082echo "$as_me: error: newly created file is older than distributed files!
2083Check your system clock" >&2;}
2084   { (exit 1); exit 1; }; }
2085fi
2086{ echo "$as_me:$LINENO: result: yes" >&5
2087echo "${ECHO_T}yes" >&6; }
2088test "$program_prefix" != NONE &&
2089  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2090# Use a double $ so make ignores it.
2091test "$program_suffix" != NONE &&
2092  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2093# Double any \ or $.  echo might interpret backslashes.
2094# By default was `s,x,x', remove it if useless.
2095cat <<\_ACEOF >conftest.sed
2096s/[\\$]/&&/g;s/;s,x,x,$//
2097_ACEOF
2098program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2099rm -f conftest.sed
2100
2101# expand $ac_aux_dir to an absolute path
2102am_aux_dir=`cd $ac_aux_dir && pwd`
2103
2104test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2105# Use eval to expand $SHELL
2106if eval "$MISSING --run true"; then
2107  am_missing_run="$MISSING --run "
2108else
2109  am_missing_run=
2110  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2111echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2112fi
2113
2114{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2115echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2116if test -z "$MKDIR_P"; then
2117  if test "${ac_cv_path_mkdir+set}" = set; then
2118  echo $ECHO_N "(cached) $ECHO_C" >&6
2119else
2120  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2122do
2123  IFS=$as_save_IFS
2124  test -z "$as_dir" && as_dir=.
2125  for ac_prog in mkdir gmkdir; do
2126	 for ac_exec_ext in '' $ac_executable_extensions; do
2127	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2128	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2129	     'mkdir (GNU coreutils) '* | \
2130	     'mkdir (coreutils) '* | \
2131	     'mkdir (fileutils) '4.1*)
2132	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2133	       break 3;;
2134	   esac
2135	 done
2136       done
2137done
2138IFS=$as_save_IFS
2139
2140fi
2141
2142  if test "${ac_cv_path_mkdir+set}" = set; then
2143    MKDIR_P="$ac_cv_path_mkdir -p"
2144  else
2145    # As a last resort, use the slow shell script.  Don't cache a
2146    # value for MKDIR_P within a source directory, because that will
2147    # break other packages using the cache if that directory is
2148    # removed, or if the value is a relative name.
2149    test -d ./--version && rmdir ./--version
2150    MKDIR_P="$ac_install_sh -d"
2151  fi
2152fi
2153{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2154echo "${ECHO_T}$MKDIR_P" >&6; }
2155
2156mkdir_p="$MKDIR_P"
2157case $mkdir_p in
2158  [\\/$]* | ?:[\\/]*) ;;
2159  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2160esac
2161
2162for ac_prog in gawk mawk nawk awk
2163do
2164  # Extract the first word of "$ac_prog", so it can be a program name with args.
2165set dummy $ac_prog; ac_word=$2
2166{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2168if test "${ac_cv_prog_AWK+set}" = set; then
2169  echo $ECHO_N "(cached) $ECHO_C" >&6
2170else
2171  if test -n "$AWK"; then
2172  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2173else
2174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175for as_dir in $PATH
2176do
2177  IFS=$as_save_IFS
2178  test -z "$as_dir" && as_dir=.
2179  for ac_exec_ext in '' $ac_executable_extensions; do
2180  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2181    ac_cv_prog_AWK="$ac_prog"
2182    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183    break 2
2184  fi
2185done
2186done
2187IFS=$as_save_IFS
2188
2189fi
2190fi
2191AWK=$ac_cv_prog_AWK
2192if test -n "$AWK"; then
2193  { echo "$as_me:$LINENO: result: $AWK" >&5
2194echo "${ECHO_T}$AWK" >&6; }
2195else
2196  { echo "$as_me:$LINENO: result: no" >&5
2197echo "${ECHO_T}no" >&6; }
2198fi
2199
2200
2201  test -n "$AWK" && break
2202done
2203
2204{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2205echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2206set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2207if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2208  echo $ECHO_N "(cached) $ECHO_C" >&6
2209else
2210  cat >conftest.make <<\_ACEOF
2211SHELL = /bin/sh
2212all:
2213	@echo '@@@%%%=$(MAKE)=@@@%%%'
2214_ACEOF
2215# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2216case `${MAKE-make} -f conftest.make 2>/dev/null` in
2217  *@@@%%%=?*=@@@%%%*)
2218    eval ac_cv_prog_make_${ac_make}_set=yes;;
2219  *)
2220    eval ac_cv_prog_make_${ac_make}_set=no;;
2221esac
2222rm -f conftest.make
2223fi
2224if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2225  { echo "$as_me:$LINENO: result: yes" >&5
2226echo "${ECHO_T}yes" >&6; }
2227  SET_MAKE=
2228else
2229  { echo "$as_me:$LINENO: result: no" >&5
2230echo "${ECHO_T}no" >&6; }
2231  SET_MAKE="MAKE=${MAKE-make}"
2232fi
2233
2234rm -rf .tst 2>/dev/null
2235mkdir .tst 2>/dev/null
2236if test -d .tst; then
2237  am__leading_dot=.
2238else
2239  am__leading_dot=_
2240fi
2241rmdir .tst 2>/dev/null
2242
2243if test "`cd $srcdir && pwd`" != "`pwd`"; then
2244  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2245  # is not polluted with repeated "-I."
2246  am__isrc=' -I$(srcdir)'
2247  # test to see if srcdir already configured
2248  if test -f $srcdir/config.status; then
2249    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2250echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2251   { (exit 1); exit 1; }; }
2252  fi
2253fi
2254
2255# test whether we have cygpath
2256if test -z "$CYGPATH_W"; then
2257  if (cygpath --version) >/dev/null 2>/dev/null; then
2258    CYGPATH_W='cygpath -w'
2259  else
2260    CYGPATH_W=echo
2261  fi
2262fi
2263
2264
2265# Define the identity of the package.
2266 PACKAGE=gettext_rpathz
2267 VERSION=0
2268
2269
2270cat >>confdefs.h <<_ACEOF
2271#define PACKAGE "$PACKAGE"
2272_ACEOF
2273
2274
2275cat >>confdefs.h <<_ACEOF
2276#define VERSION "$VERSION"
2277_ACEOF
2278
2279# Some tools Automake needs.
2280
2281ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2282
2283
2284AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2285
2286
2287AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2288
2289
2290AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2291
2292
2293MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2294
2295install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2296
2297# Installed binaries are usually stripped using `strip' when the user
2298# run `make install-strip'.  However `strip' might not be the right
2299# tool to use in cross-compilation environments, therefore Automake
2300# will honor the `STRIP' environment variable to overrule this program.
2301if test "$cross_compiling" != no; then
2302  if test -n "$ac_tool_prefix"; then
2303  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2304set dummy ${ac_tool_prefix}strip; ac_word=$2
2305{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2307if test "${ac_cv_prog_STRIP+set}" = set; then
2308  echo $ECHO_N "(cached) $ECHO_C" >&6
2309else
2310  if test -n "$STRIP"; then
2311  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2312else
2313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314for as_dir in $PATH
2315do
2316  IFS=$as_save_IFS
2317  test -z "$as_dir" && as_dir=.
2318  for ac_exec_ext in '' $ac_executable_extensions; do
2319  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2320    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2321    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322    break 2
2323  fi
2324done
2325done
2326IFS=$as_save_IFS
2327
2328fi
2329fi
2330STRIP=$ac_cv_prog_STRIP
2331if test -n "$STRIP"; then
2332  { echo "$as_me:$LINENO: result: $STRIP" >&5
2333echo "${ECHO_T}$STRIP" >&6; }
2334else
2335  { echo "$as_me:$LINENO: result: no" >&5
2336echo "${ECHO_T}no" >&6; }
2337fi
2338
2339
2340fi
2341if test -z "$ac_cv_prog_STRIP"; then
2342  ac_ct_STRIP=$STRIP
2343  # Extract the first word of "strip", so it can be a program name with args.
2344set dummy strip; ac_word=$2
2345{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2347if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2348  echo $ECHO_N "(cached) $ECHO_C" >&6
2349else
2350  if test -n "$ac_ct_STRIP"; then
2351  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2352else
2353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354for as_dir in $PATH
2355do
2356  IFS=$as_save_IFS
2357  test -z "$as_dir" && as_dir=.
2358  for ac_exec_ext in '' $ac_executable_extensions; do
2359  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360    ac_cv_prog_ac_ct_STRIP="strip"
2361    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362    break 2
2363  fi
2364done
2365done
2366IFS=$as_save_IFS
2367
2368fi
2369fi
2370ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2371if test -n "$ac_ct_STRIP"; then
2372  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2373echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2374else
2375  { echo "$as_me:$LINENO: result: no" >&5
2376echo "${ECHO_T}no" >&6; }
2377fi
2378
2379  if test "x$ac_ct_STRIP" = x; then
2380    STRIP=":"
2381  else
2382    case $cross_compiling:$ac_tool_warned in
2383yes:)
2384{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2385whose name does not start with the host triplet.  If you think this
2386configuration is useful to you, please write to autoconf@gnu.org." >&5
2387echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2388whose name does not start with the host triplet.  If you think this
2389configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2390ac_tool_warned=yes ;;
2391esac
2392    STRIP=$ac_ct_STRIP
2393  fi
2394else
2395  STRIP="$ac_cv_prog_STRIP"
2396fi
2397
2398fi
2399INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2400
2401# We need awk for the "check" target.  The system "awk" is bad on
2402# some platforms.
2403# Always define AMTAR for backward compatibility.
2404
2405AMTAR=${AMTAR-"${am_missing_run}tar"}
2406
2407am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2408
2409
2410
2411
2412
2413ac_ext=c
2414ac_cpp='$CPP $CPPFLAGS'
2415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418if test -n "$ac_tool_prefix"; then
2419  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2420set dummy ${ac_tool_prefix}gcc; ac_word=$2
2421{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2423if test "${ac_cv_prog_CC+set}" = set; then
2424  echo $ECHO_N "(cached) $ECHO_C" >&6
2425else
2426  if test -n "$CC"; then
2427  ac_cv_prog_CC="$CC" # Let the user override the test.
2428else
2429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430for as_dir in $PATH
2431do
2432  IFS=$as_save_IFS
2433  test -z "$as_dir" && as_dir=.
2434  for ac_exec_ext in '' $ac_executable_extensions; do
2435  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2436    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2437    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438    break 2
2439  fi
2440done
2441done
2442IFS=$as_save_IFS
2443
2444fi
2445fi
2446CC=$ac_cv_prog_CC
2447if test -n "$CC"; then
2448  { echo "$as_me:$LINENO: result: $CC" >&5
2449echo "${ECHO_T}$CC" >&6; }
2450else
2451  { echo "$as_me:$LINENO: result: no" >&5
2452echo "${ECHO_T}no" >&6; }
2453fi
2454
2455
2456fi
2457if test -z "$ac_cv_prog_CC"; then
2458  ac_ct_CC=$CC
2459  # Extract the first word of "gcc", so it can be a program name with args.
2460set dummy gcc; ac_word=$2
2461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2464  echo $ECHO_N "(cached) $ECHO_C" >&6
2465else
2466  if test -n "$ac_ct_CC"; then
2467  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2468else
2469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470for as_dir in $PATH
2471do
2472  IFS=$as_save_IFS
2473  test -z "$as_dir" && as_dir=.
2474  for ac_exec_ext in '' $ac_executable_extensions; do
2475  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476    ac_cv_prog_ac_ct_CC="gcc"
2477    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478    break 2
2479  fi
2480done
2481done
2482IFS=$as_save_IFS
2483
2484fi
2485fi
2486ac_ct_CC=$ac_cv_prog_ac_ct_CC
2487if test -n "$ac_ct_CC"; then
2488  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2489echo "${ECHO_T}$ac_ct_CC" >&6; }
2490else
2491  { echo "$as_me:$LINENO: result: no" >&5
2492echo "${ECHO_T}no" >&6; }
2493fi
2494
2495  if test "x$ac_ct_CC" = x; then
2496    CC=""
2497  else
2498    case $cross_compiling:$ac_tool_warned in
2499yes:)
2500{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2501whose name does not start with the host triplet.  If you think this
2502configuration is useful to you, please write to autoconf@gnu.org." >&5
2503echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2504whose name does not start with the host triplet.  If you think this
2505configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2506ac_tool_warned=yes ;;
2507esac
2508    CC=$ac_ct_CC
2509  fi
2510else
2511  CC="$ac_cv_prog_CC"
2512fi
2513
2514if test -z "$CC"; then
2515          if test -n "$ac_tool_prefix"; then
2516    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2517set dummy ${ac_tool_prefix}cc; ac_word=$2
2518{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2520if test "${ac_cv_prog_CC+set}" = set; then
2521  echo $ECHO_N "(cached) $ECHO_C" >&6
2522else
2523  if test -n "$CC"; then
2524  ac_cv_prog_CC="$CC" # Let the user override the test.
2525else
2526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527for as_dir in $PATH
2528do
2529  IFS=$as_save_IFS
2530  test -z "$as_dir" && as_dir=.
2531  for ac_exec_ext in '' $ac_executable_extensions; do
2532  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533    ac_cv_prog_CC="${ac_tool_prefix}cc"
2534    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535    break 2
2536  fi
2537done
2538done
2539IFS=$as_save_IFS
2540
2541fi
2542fi
2543CC=$ac_cv_prog_CC
2544if test -n "$CC"; then
2545  { echo "$as_me:$LINENO: result: $CC" >&5
2546echo "${ECHO_T}$CC" >&6; }
2547else
2548  { echo "$as_me:$LINENO: result: no" >&5
2549echo "${ECHO_T}no" >&6; }
2550fi
2551
2552
2553  fi
2554fi
2555if test -z "$CC"; then
2556  # Extract the first word of "cc", so it can be a program name with args.
2557set dummy cc; ac_word=$2
2558{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2560if test "${ac_cv_prog_CC+set}" = set; then
2561  echo $ECHO_N "(cached) $ECHO_C" >&6
2562else
2563  if test -n "$CC"; then
2564  ac_cv_prog_CC="$CC" # Let the user override the test.
2565else
2566  ac_prog_rejected=no
2567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568for as_dir in $PATH
2569do
2570  IFS=$as_save_IFS
2571  test -z "$as_dir" && as_dir=.
2572  for ac_exec_ext in '' $ac_executable_extensions; do
2573  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2575       ac_prog_rejected=yes
2576       continue
2577     fi
2578    ac_cv_prog_CC="cc"
2579    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580    break 2
2581  fi
2582done
2583done
2584IFS=$as_save_IFS
2585
2586if test $ac_prog_rejected = yes; then
2587  # We found a bogon in the path, so make sure we never use it.
2588  set dummy $ac_cv_prog_CC
2589  shift
2590  if test $# != 0; then
2591    # We chose a different compiler from the bogus one.
2592    # However, it has the same basename, so the bogon will be chosen
2593    # first if we set CC to just the basename; use the full file name.
2594    shift
2595    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2596  fi
2597fi
2598fi
2599fi
2600CC=$ac_cv_prog_CC
2601if test -n "$CC"; then
2602  { echo "$as_me:$LINENO: result: $CC" >&5
2603echo "${ECHO_T}$CC" >&6; }
2604else
2605  { echo "$as_me:$LINENO: result: no" >&5
2606echo "${ECHO_T}no" >&6; }
2607fi
2608
2609
2610fi
2611if test -z "$CC"; then
2612  if test -n "$ac_tool_prefix"; then
2613  for ac_prog in cl.exe
2614  do
2615    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2616set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2619if test "${ac_cv_prog_CC+set}" = set; then
2620  echo $ECHO_N "(cached) $ECHO_C" >&6
2621else
2622  if test -n "$CC"; then
2623  ac_cv_prog_CC="$CC" # Let the user override the test.
2624else
2625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626for as_dir in $PATH
2627do
2628  IFS=$as_save_IFS
2629  test -z "$as_dir" && as_dir=.
2630  for ac_exec_ext in '' $ac_executable_extensions; do
2631  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2632    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2633    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2634    break 2
2635  fi
2636done
2637done
2638IFS=$as_save_IFS
2639
2640fi
2641fi
2642CC=$ac_cv_prog_CC
2643if test -n "$CC"; then
2644  { echo "$as_me:$LINENO: result: $CC" >&5
2645echo "${ECHO_T}$CC" >&6; }
2646else
2647  { echo "$as_me:$LINENO: result: no" >&5
2648echo "${ECHO_T}no" >&6; }
2649fi
2650
2651
2652    test -n "$CC" && break
2653  done
2654fi
2655if test -z "$CC"; then
2656  ac_ct_CC=$CC
2657  for ac_prog in cl.exe
2658do
2659  # Extract the first word of "$ac_prog", so it can be a program name with args.
2660set dummy $ac_prog; ac_word=$2
2661{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2663if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2664  echo $ECHO_N "(cached) $ECHO_C" >&6
2665else
2666  if test -n "$ac_ct_CC"; then
2667  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2668else
2669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670for as_dir in $PATH
2671do
2672  IFS=$as_save_IFS
2673  test -z "$as_dir" && as_dir=.
2674  for ac_exec_ext in '' $ac_executable_extensions; do
2675  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676    ac_cv_prog_ac_ct_CC="$ac_prog"
2677    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678    break 2
2679  fi
2680done
2681done
2682IFS=$as_save_IFS
2683
2684fi
2685fi
2686ac_ct_CC=$ac_cv_prog_ac_ct_CC
2687if test -n "$ac_ct_CC"; then
2688  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2689echo "${ECHO_T}$ac_ct_CC" >&6; }
2690else
2691  { echo "$as_me:$LINENO: result: no" >&5
2692echo "${ECHO_T}no" >&6; }
2693fi
2694
2695
2696  test -n "$ac_ct_CC" && break
2697done
2698
2699  if test "x$ac_ct_CC" = x; then
2700    CC=""
2701  else
2702    case $cross_compiling:$ac_tool_warned in
2703yes:)
2704{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2705whose name does not start with the host triplet.  If you think this
2706configuration is useful to you, please write to autoconf@gnu.org." >&5
2707echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2708whose name does not start with the host triplet.  If you think this
2709configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2710ac_tool_warned=yes ;;
2711esac
2712    CC=$ac_ct_CC
2713  fi
2714fi
2715
2716fi
2717
2718
2719test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2720See \`config.log' for more details." >&5
2721echo "$as_me: error: no acceptable C compiler found in \$PATH
2722See \`config.log' for more details." >&2;}
2723   { (exit 1); exit 1; }; }
2724
2725# Provide some information about the compiler.
2726echo "$as_me:$LINENO: checking for C compiler version" >&5
2727ac_compiler=`set X $ac_compile; echo $2`
2728{ (ac_try="$ac_compiler --version >&5"
2729case "(($ac_try" in
2730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731  *) ac_try_echo=$ac_try;;
2732esac
2733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734  (eval "$ac_compiler --version >&5") 2>&5
2735  ac_status=$?
2736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737  (exit $ac_status); }
2738{ (ac_try="$ac_compiler -v >&5"
2739case "(($ac_try" in
2740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741  *) ac_try_echo=$ac_try;;
2742esac
2743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744  (eval "$ac_compiler -v >&5") 2>&5
2745  ac_status=$?
2746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747  (exit $ac_status); }
2748{ (ac_try="$ac_compiler -V >&5"
2749case "(($ac_try" in
2750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751  *) ac_try_echo=$ac_try;;
2752esac
2753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754  (eval "$ac_compiler -V >&5") 2>&5
2755  ac_status=$?
2756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757  (exit $ac_status); }
2758
2759cat >conftest.$ac_ext <<_ACEOF
2760/* confdefs.h.  */
2761_ACEOF
2762cat confdefs.h >>conftest.$ac_ext
2763cat >>conftest.$ac_ext <<_ACEOF
2764/* end confdefs.h.  */
2765
2766int
2767main ()
2768{
2769
2770  ;
2771  return 0;
2772}
2773_ACEOF
2774ac_clean_files_save=$ac_clean_files
2775ac_clean_files="$ac_clean_files a.out a.exe b.out"
2776# Try to create an executable without -o first, disregard a.out.
2777# It will help us diagnose broken compilers, and finding out an intuition
2778# of exeext.
2779{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2780echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2781ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2782#
2783# List of possible output files, starting from the most likely.
2784# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2785# only as a last resort.  b.out is created by i960 compilers.
2786ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2787#
2788# The IRIX 6 linker writes into existing files which may not be
2789# executable, retaining their permissions.  Remove them first so a
2790# subsequent execution test works.
2791ac_rmfiles=
2792for ac_file in $ac_files
2793do
2794  case $ac_file in
2795    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2796    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2797  esac
2798done
2799rm -f $ac_rmfiles
2800
2801if { (ac_try="$ac_link_default"
2802case "(($ac_try" in
2803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804  *) ac_try_echo=$ac_try;;
2805esac
2806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2807  (eval "$ac_link_default") 2>&5
2808  ac_status=$?
2809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810  (exit $ac_status); }; then
2811  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2812# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2813# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2814# so that the user can short-circuit this test for compilers unknown to
2815# Autoconf.
2816for ac_file in $ac_files ''
2817do
2818  test -f "$ac_file" || continue
2819  case $ac_file in
2820    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2821	;;
2822    [ab].out )
2823	# We found the default executable, but exeext='' is most
2824	# certainly right.
2825	break;;
2826    *.* )
2827        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2828	then :; else
2829	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2830	fi
2831	# We set ac_cv_exeext here because the later test for it is not
2832	# safe: cross compilers may not add the suffix if given an `-o'
2833	# argument, so we may need to know it at that point already.
2834	# Even if this section looks crufty: it has the advantage of
2835	# actually working.
2836	break;;
2837    * )
2838	break;;
2839  esac
2840done
2841test "$ac_cv_exeext" = no && ac_cv_exeext=
2842
2843else
2844  ac_file=''
2845fi
2846
2847{ echo "$as_me:$LINENO: result: $ac_file" >&5
2848echo "${ECHO_T}$ac_file" >&6; }
2849if test -z "$ac_file"; then
2850  echo "$as_me: failed program was:" >&5
2851sed 's/^/| /' conftest.$ac_ext >&5
2852
2853{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2854See \`config.log' for more details." >&5
2855echo "$as_me: error: C compiler cannot create executables
2856See \`config.log' for more details." >&2;}
2857   { (exit 77); exit 77; }; }
2858fi
2859
2860ac_exeext=$ac_cv_exeext
2861
2862# Check that the compiler produces executables we can run.  If not, either
2863# the compiler is broken, or we cross compile.
2864{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2865echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2866# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2867# If not cross compiling, check that we can run a simple program.
2868if test "$cross_compiling" != yes; then
2869  if { ac_try='./$ac_file'
2870  { (case "(($ac_try" in
2871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872  *) ac_try_echo=$ac_try;;
2873esac
2874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2875  (eval "$ac_try") 2>&5
2876  ac_status=$?
2877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878  (exit $ac_status); }; }; then
2879    cross_compiling=no
2880  else
2881    if test "$cross_compiling" = maybe; then
2882	cross_compiling=yes
2883    else
2884	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2885If you meant to cross compile, use \`--host'.
2886See \`config.log' for more details." >&5
2887echo "$as_me: error: cannot run C compiled programs.
2888If you meant to cross compile, use \`--host'.
2889See \`config.log' for more details." >&2;}
2890   { (exit 1); exit 1; }; }
2891    fi
2892  fi
2893fi
2894{ echo "$as_me:$LINENO: result: yes" >&5
2895echo "${ECHO_T}yes" >&6; }
2896
2897rm -f a.out a.exe conftest$ac_cv_exeext b.out
2898ac_clean_files=$ac_clean_files_save
2899# Check that the compiler produces executables we can run.  If not, either
2900# the compiler is broken, or we cross compile.
2901{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2902echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2903{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2904echo "${ECHO_T}$cross_compiling" >&6; }
2905
2906{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2907echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2908if { (ac_try="$ac_link"
2909case "(($ac_try" in
2910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911  *) ac_try_echo=$ac_try;;
2912esac
2913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914  (eval "$ac_link") 2>&5
2915  ac_status=$?
2916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917  (exit $ac_status); }; then
2918  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2919# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2920# work properly (i.e., refer to `conftest.exe'), while it won't with
2921# `rm'.
2922for ac_file in conftest.exe conftest conftest.*; do
2923  test -f "$ac_file" || continue
2924  case $ac_file in
2925    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2926    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2927	  break;;
2928    * ) break;;
2929  esac
2930done
2931else
2932  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2933See \`config.log' for more details." >&5
2934echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2935See \`config.log' for more details." >&2;}
2936   { (exit 1); exit 1; }; }
2937fi
2938
2939rm -f conftest$ac_cv_exeext
2940{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2941echo "${ECHO_T}$ac_cv_exeext" >&6; }
2942
2943rm -f conftest.$ac_ext
2944EXEEXT=$ac_cv_exeext
2945ac_exeext=$EXEEXT
2946{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2947echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2948if test "${ac_cv_objext+set}" = set; then
2949  echo $ECHO_N "(cached) $ECHO_C" >&6
2950else
2951  cat >conftest.$ac_ext <<_ACEOF
2952/* confdefs.h.  */
2953_ACEOF
2954cat confdefs.h >>conftest.$ac_ext
2955cat >>conftest.$ac_ext <<_ACEOF
2956/* end confdefs.h.  */
2957
2958int
2959main ()
2960{
2961
2962  ;
2963  return 0;
2964}
2965_ACEOF
2966rm -f conftest.o conftest.obj
2967if { (ac_try="$ac_compile"
2968case "(($ac_try" in
2969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970  *) ac_try_echo=$ac_try;;
2971esac
2972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973  (eval "$ac_compile") 2>&5
2974  ac_status=$?
2975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976  (exit $ac_status); }; then
2977  for ac_file in conftest.o conftest.obj conftest.*; do
2978  test -f "$ac_file" || continue;
2979  case $ac_file in
2980    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2981    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2982       break;;
2983  esac
2984done
2985else
2986  echo "$as_me: failed program was:" >&5
2987sed 's/^/| /' conftest.$ac_ext >&5
2988
2989{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2990See \`config.log' for more details." >&5
2991echo "$as_me: error: cannot compute suffix of object files: cannot compile
2992See \`config.log' for more details." >&2;}
2993   { (exit 1); exit 1; }; }
2994fi
2995
2996rm -f conftest.$ac_cv_objext conftest.$ac_ext
2997fi
2998{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2999echo "${ECHO_T}$ac_cv_objext" >&6; }
3000OBJEXT=$ac_cv_objext
3001ac_objext=$OBJEXT
3002{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3003echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3004if test "${ac_cv_c_compiler_gnu+set}" = set; then
3005  echo $ECHO_N "(cached) $ECHO_C" >&6
3006else
3007  cat >conftest.$ac_ext <<_ACEOF
3008/* confdefs.h.  */
3009_ACEOF
3010cat confdefs.h >>conftest.$ac_ext
3011cat >>conftest.$ac_ext <<_ACEOF
3012/* end confdefs.h.  */
3013
3014int
3015main ()
3016{
3017#ifndef __GNUC__
3018       choke me
3019#endif
3020
3021  ;
3022  return 0;
3023}
3024_ACEOF
3025rm -f conftest.$ac_objext
3026if { (ac_try="$ac_compile"
3027case "(($ac_try" in
3028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029  *) ac_try_echo=$ac_try;;
3030esac
3031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032  (eval "$ac_compile") 2>conftest.er1
3033  ac_status=$?
3034  grep -v '^ *+' conftest.er1 >conftest.err
3035  rm -f conftest.er1
3036  cat conftest.err >&5
3037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038  (exit $ac_status); } && {
3039	 test -z "$ac_c_werror_flag" ||
3040	 test ! -s conftest.err
3041       } && test -s conftest.$ac_objext; then
3042  ac_compiler_gnu=yes
3043else
3044  echo "$as_me: failed program was:" >&5
3045sed 's/^/| /' conftest.$ac_ext >&5
3046
3047	ac_compiler_gnu=no
3048fi
3049
3050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3051ac_cv_c_compiler_gnu=$ac_compiler_gnu
3052
3053fi
3054{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3055echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3056GCC=`test $ac_compiler_gnu = yes && echo yes`
3057ac_test_CFLAGS=${CFLAGS+set}
3058ac_save_CFLAGS=$CFLAGS
3059{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3060echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3061if test "${ac_cv_prog_cc_g+set}" = set; then
3062  echo $ECHO_N "(cached) $ECHO_C" >&6
3063else
3064  ac_save_c_werror_flag=$ac_c_werror_flag
3065   ac_c_werror_flag=yes
3066   ac_cv_prog_cc_g=no
3067   CFLAGS="-g"
3068   cat >conftest.$ac_ext <<_ACEOF
3069/* confdefs.h.  */
3070_ACEOF
3071cat confdefs.h >>conftest.$ac_ext
3072cat >>conftest.$ac_ext <<_ACEOF
3073/* end confdefs.h.  */
3074
3075int
3076main ()
3077{
3078
3079  ;
3080  return 0;
3081}
3082_ACEOF
3083rm -f conftest.$ac_objext
3084if { (ac_try="$ac_compile"
3085case "(($ac_try" in
3086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087  *) ac_try_echo=$ac_try;;
3088esac
3089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090  (eval "$ac_compile") 2>conftest.er1
3091  ac_status=$?
3092  grep -v '^ *+' conftest.er1 >conftest.err
3093  rm -f conftest.er1
3094  cat conftest.err >&5
3095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096  (exit $ac_status); } && {
3097	 test -z "$ac_c_werror_flag" ||
3098	 test ! -s conftest.err
3099       } && test -s conftest.$ac_objext; then
3100  ac_cv_prog_cc_g=yes
3101else
3102  echo "$as_me: failed program was:" >&5
3103sed 's/^/| /' conftest.$ac_ext >&5
3104
3105	CFLAGS=""
3106      cat >conftest.$ac_ext <<_ACEOF
3107/* confdefs.h.  */
3108_ACEOF
3109cat confdefs.h >>conftest.$ac_ext
3110cat >>conftest.$ac_ext <<_ACEOF
3111/* end confdefs.h.  */
3112
3113int
3114main ()
3115{
3116
3117  ;
3118  return 0;
3119}
3120_ACEOF
3121rm -f conftest.$ac_objext
3122if { (ac_try="$ac_compile"
3123case "(($ac_try" in
3124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125  *) ac_try_echo=$ac_try;;
3126esac
3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128  (eval "$ac_compile") 2>conftest.er1
3129  ac_status=$?
3130  grep -v '^ *+' conftest.er1 >conftest.err
3131  rm -f conftest.er1
3132  cat conftest.err >&5
3133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134  (exit $ac_status); } && {
3135	 test -z "$ac_c_werror_flag" ||
3136	 test ! -s conftest.err
3137       } && test -s conftest.$ac_objext; then
3138  :
3139else
3140  echo "$as_me: failed program was:" >&5
3141sed 's/^/| /' conftest.$ac_ext >&5
3142
3143	ac_c_werror_flag=$ac_save_c_werror_flag
3144	 CFLAGS="-g"
3145	 cat >conftest.$ac_ext <<_ACEOF
3146/* confdefs.h.  */
3147_ACEOF
3148cat confdefs.h >>conftest.$ac_ext
3149cat >>conftest.$ac_ext <<_ACEOF
3150/* end confdefs.h.  */
3151
3152int
3153main ()
3154{
3155
3156  ;
3157  return 0;
3158}
3159_ACEOF
3160rm -f conftest.$ac_objext
3161if { (ac_try="$ac_compile"
3162case "(($ac_try" in
3163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164  *) ac_try_echo=$ac_try;;
3165esac
3166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167  (eval "$ac_compile") 2>conftest.er1
3168  ac_status=$?
3169  grep -v '^ *+' conftest.er1 >conftest.err
3170  rm -f conftest.er1
3171  cat conftest.err >&5
3172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173  (exit $ac_status); } && {
3174	 test -z "$ac_c_werror_flag" ||
3175	 test ! -s conftest.err
3176       } && test -s conftest.$ac_objext; then
3177  ac_cv_prog_cc_g=yes
3178else
3179  echo "$as_me: failed program was:" >&5
3180sed 's/^/| /' conftest.$ac_ext >&5
3181
3182
3183fi
3184
3185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186fi
3187
3188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189fi
3190
3191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192   ac_c_werror_flag=$ac_save_c_werror_flag
3193fi
3194{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3195echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3196if test "$ac_test_CFLAGS" = set; then
3197  CFLAGS=$ac_save_CFLAGS
3198elif test $ac_cv_prog_cc_g = yes; then
3199  if test "$GCC" = yes; then
3200    CFLAGS="-g -O2"
3201  else
3202    CFLAGS="-g"
3203  fi
3204else
3205  if test "$GCC" = yes; then
3206    CFLAGS="-O2"
3207  else
3208    CFLAGS=
3209  fi
3210fi
3211{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3212echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3213if test "${ac_cv_prog_cc_c89+set}" = set; then
3214  echo $ECHO_N "(cached) $ECHO_C" >&6
3215else
3216  ac_cv_prog_cc_c89=no
3217ac_save_CC=$CC
3218cat >conftest.$ac_ext <<_ACEOF
3219/* confdefs.h.  */
3220_ACEOF
3221cat confdefs.h >>conftest.$ac_ext
3222cat >>conftest.$ac_ext <<_ACEOF
3223/* end confdefs.h.  */
3224#include <stdarg.h>
3225#include <stdio.h>
3226#include <sys/types.h>
3227#include <sys/stat.h>
3228/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3229struct buf { int x; };
3230FILE * (*rcsopen) (struct buf *, struct stat *, int);
3231static char *e (p, i)
3232     char **p;
3233     int i;
3234{
3235  return p[i];
3236}
3237static char *f (char * (*g) (char **, int), char **p, ...)
3238{
3239  char *s;
3240  va_list v;
3241  va_start (v,p);
3242  s = g (p, va_arg (v,int));
3243  va_end (v);
3244  return s;
3245}
3246
3247/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3248   function prototypes and stuff, but not '\xHH' hex character constants.
3249   These don't provoke an error unfortunately, instead are silently treated
3250   as 'x'.  The following induces an error, until -std is added to get
3251   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3252   array size at least.  It's necessary to write '\x00'==0 to get something
3253   that's true only with -std.  */
3254int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3255
3256/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3257   inside strings and character constants.  */
3258#define FOO(x) 'x'
3259int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3260
3261int test (int i, double x);
3262struct s1 {int (*f) (int a);};
3263struct s2 {int (*f) (double a);};
3264int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3265int argc;
3266char **argv;
3267int
3268main ()
3269{
3270return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3271  ;
3272  return 0;
3273}
3274_ACEOF
3275for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3276	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3277do
3278  CC="$ac_save_CC $ac_arg"
3279  rm -f conftest.$ac_objext
3280if { (ac_try="$ac_compile"
3281case "(($ac_try" in
3282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283  *) ac_try_echo=$ac_try;;
3284esac
3285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3286  (eval "$ac_compile") 2>conftest.er1
3287  ac_status=$?
3288  grep -v '^ *+' conftest.er1 >conftest.err
3289  rm -f conftest.er1
3290  cat conftest.err >&5
3291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292  (exit $ac_status); } && {
3293	 test -z "$ac_c_werror_flag" ||
3294	 test ! -s conftest.err
3295       } && test -s conftest.$ac_objext; then
3296  ac_cv_prog_cc_c89=$ac_arg
3297else
3298  echo "$as_me: failed program was:" >&5
3299sed 's/^/| /' conftest.$ac_ext >&5
3300
3301
3302fi
3303
3304rm -f core conftest.err conftest.$ac_objext
3305  test "x$ac_cv_prog_cc_c89" != "xno" && break
3306done
3307rm -f conftest.$ac_ext
3308CC=$ac_save_CC
3309
3310fi
3311# AC_CACHE_VAL
3312case "x$ac_cv_prog_cc_c89" in
3313  x)
3314    { echo "$as_me:$LINENO: result: none needed" >&5
3315echo "${ECHO_T}none needed" >&6; } ;;
3316  xno)
3317    { echo "$as_me:$LINENO: result: unsupported" >&5
3318echo "${ECHO_T}unsupported" >&6; } ;;
3319  *)
3320    CC="$CC $ac_cv_prog_cc_c89"
3321    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3322echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3323esac
3324
3325
3326ac_ext=c
3327ac_cpp='$CPP $CPPFLAGS'
3328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3330ac_compiler_gnu=$ac_cv_c_compiler_gnu
3331DEPDIR="${am__leading_dot}deps"
3332
3333ac_config_commands="$ac_config_commands depfiles"
3334
3335
3336am_make=${MAKE-make}
3337cat > confinc << 'END'
3338am__doit:
3339	@echo done
3340.PHONY: am__doit
3341END
3342# If we don't find an include directive, just comment out the code.
3343{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3344echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3345am__include="#"
3346am__quote=
3347_am_result=none
3348# First try GNU make style include.
3349echo "include confinc" > confmf
3350# We grep out `Entering directory' and `Leaving directory'
3351# messages which can occur if `w' ends up in MAKEFLAGS.
3352# In particular we don't look at `^make:' because GNU make might
3353# be invoked under some other name (usually "gmake"), in which
3354# case it prints its new name instead of `make'.
3355if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3356   am__include=include
3357   am__quote=
3358   _am_result=GNU
3359fi
3360# Now try BSD make style include.
3361if test "$am__include" = "#"; then
3362   echo '.include "confinc"' > confmf
3363   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3364      am__include=.include
3365      am__quote="\""
3366      _am_result=BSD
3367   fi
3368fi
3369
3370
3371{ echo "$as_me:$LINENO: result: $_am_result" >&5
3372echo "${ECHO_T}$_am_result" >&6; }
3373rm -f confinc confmf
3374
3375# Check whether --enable-dependency-tracking was given.
3376if test "${enable_dependency_tracking+set}" = set; then
3377  enableval=$enable_dependency_tracking;
3378fi
3379
3380if test "x$enable_dependency_tracking" != xno; then
3381  am_depcomp="$ac_aux_dir/depcomp"
3382  AMDEPBACKSLASH='\'
3383fi
3384 if test "x$enable_dependency_tracking" != xno; then
3385  AMDEP_TRUE=
3386  AMDEP_FALSE='#'
3387else
3388  AMDEP_TRUE='#'
3389  AMDEP_FALSE=
3390fi
3391
3392
3393
3394depcc="$CC"   am_compiler_list=
3395
3396{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3397echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3398if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3399  echo $ECHO_N "(cached) $ECHO_C" >&6
3400else
3401  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3402  # We make a subdir and do the tests there.  Otherwise we can end up
3403  # making bogus files that we don't know about and never remove.  For
3404  # instance it was reported that on HP-UX the gcc test will end up
3405  # making a dummy file named `D' -- because `-MD' means `put the output
3406  # in D'.
3407  mkdir conftest.dir
3408  # Copy depcomp to subdir because otherwise we won't find it if we're
3409  # using a relative directory.
3410  cp "$am_depcomp" conftest.dir
3411  cd conftest.dir
3412  # We will build objects and dependencies in a subdirectory because
3413  # it helps to detect inapplicable dependency modes.  For instance
3414  # both Tru64's cc and ICC support -MD to output dependencies as a
3415  # side effect of compilation, but ICC will put the dependencies in
3416  # the current directory while Tru64 will put them in the object
3417  # directory.
3418  mkdir sub
3419
3420  am_cv_CC_dependencies_compiler_type=none
3421  if test "$am_compiler_list" = ""; then
3422     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3423  fi
3424  for depmode in $am_compiler_list; do
3425    # Setup a source with many dependencies, because some compilers
3426    # like to wrap large dependency lists on column 80 (with \), and
3427    # we should not choose a depcomp mode which is confused by this.
3428    #
3429    # We need to recreate these files for each test, as the compiler may
3430    # overwrite some of them when testing with obscure command lines.
3431    # This happens at least with the AIX C compiler.
3432    : > sub/conftest.c
3433    for i in 1 2 3 4 5 6; do
3434      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3435      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3436      # Solaris 8's {/usr,}/bin/sh.
3437      touch sub/conftst$i.h
3438    done
3439    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3440
3441    case $depmode in
3442    nosideeffect)
3443      # after this tag, mechanisms are not by side-effect, so they'll
3444      # only be used when explicitly requested
3445      if test "x$enable_dependency_tracking" = xyes; then
3446	continue
3447      else
3448	break
3449      fi
3450      ;;
3451    none) break ;;
3452    esac
3453    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3454    # mode.  It turns out that the SunPro C++ compiler does not properly
3455    # handle `-M -o', and we need to detect this.
3456    if depmode=$depmode \
3457       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3458       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3459       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3460         >/dev/null 2>conftest.err &&
3461       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3462       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3463       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3464       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3465      # icc doesn't choke on unknown options, it will just issue warnings
3466      # or remarks (even with -Werror).  So we grep stderr for any message
3467      # that says an option was ignored or not supported.
3468      # When given -MP, icc 7.0 and 7.1 complain thusly:
3469      #   icc: Command line warning: ignoring option '-M'; no argument required
3470      # The diagnosis changed in icc 8.0:
3471      #   icc: Command line remark: option '-MP' not supported
3472      if (grep 'ignoring option' conftest.err ||
3473          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3474        am_cv_CC_dependencies_compiler_type=$depmode
3475        break
3476      fi
3477    fi
3478  done
3479
3480  cd ..
3481  rm -rf conftest.dir
3482else
3483  am_cv_CC_dependencies_compiler_type=none
3484fi
3485
3486fi
3487{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3488echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3489CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3490
3491 if
3492  test "x$enable_dependency_tracking" != xno \
3493  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3494  am__fastdepCC_TRUE=
3495  am__fastdepCC_FALSE='#'
3496else
3497  am__fastdepCC_TRUE='#'
3498  am__fastdepCC_FALSE=
3499fi
3500
3501
3502# Check whether --enable-shared was given.
3503if test "${enable_shared+set}" = set; then
3504  enableval=$enable_shared; p=${PACKAGE-default}
3505    case $enableval in
3506    yes) enable_shared=yes ;;
3507    no) enable_shared=no ;;
3508    *)
3509      enable_shared=no
3510      # Look at the argument we got.  We use all the common list separators.
3511      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3512      for pkg in $enableval; do
3513	IFS="$lt_save_ifs"
3514	if test "X$pkg" = "X$p"; then
3515	  enable_shared=yes
3516	fi
3517      done
3518      IFS="$lt_save_ifs"
3519      ;;
3520    esac
3521else
3522  enable_shared=yes
3523fi
3524
3525
3526# Check whether --enable-static was given.
3527if test "${enable_static+set}" = set; then
3528  enableval=$enable_static; p=${PACKAGE-default}
3529    case $enableval in
3530    yes) enable_static=yes ;;
3531    no) enable_static=no ;;
3532    *)
3533     enable_static=no
3534      # Look at the argument we got.  We use all the common list separators.
3535      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3536      for pkg in $enableval; do
3537	IFS="$lt_save_ifs"
3538	if test "X$pkg" = "X$p"; then
3539	  enable_static=yes
3540	fi
3541      done
3542      IFS="$lt_save_ifs"
3543      ;;
3544    esac
3545else
3546  enable_static=yes
3547fi
3548
3549
3550# Check whether --enable-fast-install was given.
3551if test "${enable_fast_install+set}" = set; then
3552  enableval=$enable_fast_install; p=${PACKAGE-default}
3553    case $enableval in
3554    yes) enable_fast_install=yes ;;
3555    no) enable_fast_install=no ;;
3556    *)
3557      enable_fast_install=no
3558      # Look at the argument we got.  We use all the common list separators.
3559      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3560      for pkg in $enableval; do
3561	IFS="$lt_save_ifs"
3562	if test "X$pkg" = "X$p"; then
3563	  enable_fast_install=yes
3564	fi
3565      done
3566      IFS="$lt_save_ifs"
3567      ;;
3568    esac
3569else
3570  enable_fast_install=yes
3571fi
3572
3573
3574# Make sure we can run config.sub.
3575$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3576  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3577echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3578   { (exit 1); exit 1; }; }
3579
3580{ echo "$as_me:$LINENO: checking build system type" >&5
3581echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3582if test "${ac_cv_build+set}" = set; then
3583  echo $ECHO_N "(cached) $ECHO_C" >&6
3584else
3585  ac_build_alias=$build_alias
3586test "x$ac_build_alias" = x &&
3587  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3588test "x$ac_build_alias" = x &&
3589  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3590echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3591   { (exit 1); exit 1; }; }
3592ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3593  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3594echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3595   { (exit 1); exit 1; }; }
3596
3597fi
3598{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3599echo "${ECHO_T}$ac_cv_build" >&6; }
3600case $ac_cv_build in
3601*-*-*) ;;
3602*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3603echo "$as_me: error: invalid value of canonical build" >&2;}
3604   { (exit 1); exit 1; }; };;
3605esac
3606build=$ac_cv_build
3607ac_save_IFS=$IFS; IFS='-'
3608set x $ac_cv_build
3609shift
3610build_cpu=$1
3611build_vendor=$2
3612shift; shift
3613# Remember, the first character of IFS is used to create $*,
3614# except with old shells:
3615build_os=$*
3616IFS=$ac_save_IFS
3617case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3618
3619
3620{ echo "$as_me:$LINENO: checking host system type" >&5
3621echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3622if test "${ac_cv_host+set}" = set; then
3623  echo $ECHO_N "(cached) $ECHO_C" >&6
3624else
3625  if test "x$host_alias" = x; then
3626  ac_cv_host=$ac_cv_build
3627else
3628  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3629    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3630echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3631   { (exit 1); exit 1; }; }
3632fi
3633
3634fi
3635{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3636echo "${ECHO_T}$ac_cv_host" >&6; }
3637case $ac_cv_host in
3638*-*-*) ;;
3639*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3640echo "$as_me: error: invalid value of canonical host" >&2;}
3641   { (exit 1); exit 1; }; };;
3642esac
3643host=$ac_cv_host
3644ac_save_IFS=$IFS; IFS='-'
3645set x $ac_cv_host
3646shift
3647host_cpu=$1
3648host_vendor=$2
3649shift; shift
3650# Remember, the first character of IFS is used to create $*,
3651# except with old shells:
3652host_os=$*
3653IFS=$ac_save_IFS
3654case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3655
3656
3657{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3658echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3659if test "${lt_cv_path_SED+set}" = set; then
3660  echo $ECHO_N "(cached) $ECHO_C" >&6
3661else
3662  # Loop through the user's path and test for sed and gsed.
3663# Then use that list of sed's as ones to test for truncation.
3664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665for as_dir in $PATH
3666do
3667  IFS=$as_save_IFS
3668  test -z "$as_dir" && as_dir=.
3669  for lt_ac_prog in sed gsed; do
3670    for ac_exec_ext in '' $ac_executable_extensions; do
3671      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3672        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3673      fi
3674    done
3675  done
3676done
3677lt_ac_max=0
3678lt_ac_count=0
3679# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3680# along with /bin/sed that truncates output.
3681for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3682  test ! -f $lt_ac_sed && continue
3683  cat /dev/null > conftest.in
3684  lt_ac_count=0
3685  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3686  # Check for GNU sed and select it if it is found.
3687  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3688    lt_cv_path_SED=$lt_ac_sed
3689    break
3690  fi
3691  while true; do
3692    cat conftest.in conftest.in >conftest.tmp
3693    mv conftest.tmp conftest.in
3694    cp conftest.in conftest.nl
3695    echo >>conftest.nl
3696    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3697    cmp -s conftest.out conftest.nl || break
3698    # 10000 chars as input seems more than enough
3699    test $lt_ac_count -gt 10 && break
3700    lt_ac_count=`expr $lt_ac_count + 1`
3701    if test $lt_ac_count -gt $lt_ac_max; then
3702      lt_ac_max=$lt_ac_count
3703      lt_cv_path_SED=$lt_ac_sed
3704    fi
3705  done
3706done
3707
3708fi
3709
3710SED=$lt_cv_path_SED
3711{ echo "$as_me:$LINENO: result: $SED" >&5
3712echo "${ECHO_T}$SED" >&6; }
3713
3714{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3715echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3716if test "${ac_cv_path_GREP+set}" = set; then
3717  echo $ECHO_N "(cached) $ECHO_C" >&6
3718else
3719  # Extract the first word of "grep ggrep" to use in msg output
3720if test -z "$GREP"; then
3721set dummy grep ggrep; ac_prog_name=$2
3722if test "${ac_cv_path_GREP+set}" = set; then
3723  echo $ECHO_N "(cached) $ECHO_C" >&6
3724else
3725  ac_path_GREP_found=false
3726# Loop through the user's path and test for each of PROGNAME-LIST
3727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3729do
3730  IFS=$as_save_IFS
3731  test -z "$as_dir" && as_dir=.
3732  for ac_prog in grep ggrep; do
3733  for ac_exec_ext in '' $ac_executable_extensions; do
3734    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3735    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3736    # Check for GNU ac_path_GREP and select it if it is found.
3737  # Check for GNU $ac_path_GREP
3738case `"$ac_path_GREP" --version 2>&1` in
3739*GNU*)
3740  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3741*)
3742  ac_count=0
3743  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3744  while :
3745  do
3746    cat "conftest.in" "conftest.in" >"conftest.tmp"
3747    mv "conftest.tmp" "conftest.in"
3748    cp "conftest.in" "conftest.nl"
3749    echo 'GREP' >> "conftest.nl"
3750    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3751    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3752    ac_count=`expr $ac_count + 1`
3753    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3754      # Best one so far, save it but keep looking for a better one
3755      ac_cv_path_GREP="$ac_path_GREP"
3756      ac_path_GREP_max=$ac_count
3757    fi
3758    # 10*(2^10) chars as input seems more than enough
3759    test $ac_count -gt 10 && break
3760  done
3761  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3762esac
3763
3764
3765    $ac_path_GREP_found && break 3
3766  done
3767done
3768
3769done
3770IFS=$as_save_IFS
3771
3772
3773fi
3774
3775GREP="$ac_cv_path_GREP"
3776if test -z "$GREP"; then
3777  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3778echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3779   { (exit 1); exit 1; }; }
3780fi
3781
3782else
3783  ac_cv_path_GREP=$GREP
3784fi
3785
3786
3787fi
3788{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3789echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3790 GREP="$ac_cv_path_GREP"
3791
3792
3793{ echo "$as_me:$LINENO: checking for egrep" >&5
3794echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3795if test "${ac_cv_path_EGREP+set}" = set; then
3796  echo $ECHO_N "(cached) $ECHO_C" >&6
3797else
3798  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3799   then ac_cv_path_EGREP="$GREP -E"
3800   else
3801     # Extract the first word of "egrep" to use in msg output
3802if test -z "$EGREP"; then
3803set dummy egrep; ac_prog_name=$2
3804if test "${ac_cv_path_EGREP+set}" = set; then
3805  echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
3807  ac_path_EGREP_found=false
3808# Loop through the user's path and test for each of PROGNAME-LIST
3809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3811do
3812  IFS=$as_save_IFS
3813  test -z "$as_dir" && as_dir=.
3814  for ac_prog in egrep; do
3815  for ac_exec_ext in '' $ac_executable_extensions; do
3816    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3817    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3818    # Check for GNU ac_path_EGREP and select it if it is found.
3819  # Check for GNU $ac_path_EGREP
3820case `"$ac_path_EGREP" --version 2>&1` in
3821*GNU*)
3822  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3823*)
3824  ac_count=0
3825  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3826  while :
3827  do
3828    cat "conftest.in" "conftest.in" >"conftest.tmp"
3829    mv "conftest.tmp" "conftest.in"
3830    cp "conftest.in" "conftest.nl"
3831    echo 'EGREP' >> "conftest.nl"
3832    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3833    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3834    ac_count=`expr $ac_count + 1`
3835    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3836      # Best one so far, save it but keep looking for a better one
3837      ac_cv_path_EGREP="$ac_path_EGREP"
3838      ac_path_EGREP_max=$ac_count
3839    fi
3840    # 10*(2^10) chars as input seems more than enough
3841    test $ac_count -gt 10 && break
3842  done
3843  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3844esac
3845
3846
3847    $ac_path_EGREP_found && break 3
3848  done
3849done
3850
3851done
3852IFS=$as_save_IFS
3853
3854
3855fi
3856
3857EGREP="$ac_cv_path_EGREP"
3858if test -z "$EGREP"; then
3859  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3860echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3861   { (exit 1); exit 1; }; }
3862fi
3863
3864else
3865  ac_cv_path_EGREP=$EGREP
3866fi
3867
3868
3869   fi
3870fi
3871{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3872echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3873 EGREP="$ac_cv_path_EGREP"
3874
3875
3876
3877# Check whether --with-gnu-ld was given.
3878if test "${with_gnu_ld+set}" = set; then
3879  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3880else
3881  with_gnu_ld=no
3882fi
3883
3884ac_prog=ld
3885if test "$GCC" = yes; then
3886  # Check if gcc -print-prog-name=ld gives a path.
3887  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3888echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3889  case $host in
3890  *-*-mingw*)
3891    # gcc leaves a trailing carriage return which upsets mingw
3892    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3893  *)
3894    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3895  esac
3896  case $ac_prog in
3897    # Accept absolute paths.
3898    [\\/]* | ?:[\\/]*)
3899      re_direlt='/[^/][^/]*/\.\./'
3900      # Canonicalize the pathname of ld
3901      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3902      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3903	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3904      done
3905      test -z "$LD" && LD="$ac_prog"
3906      ;;
3907  "")
3908    # If it fails, then pretend we aren't using GCC.
3909    ac_prog=ld
3910    ;;
3911  *)
3912    # If it is relative, then search for the first ld in PATH.
3913    with_gnu_ld=unknown
3914    ;;
3915  esac
3916elif test "$with_gnu_ld" = yes; then
3917  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3918echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3919else
3920  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3921echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3922fi
3923if test "${lt_cv_path_LD+set}" = set; then
3924  echo $ECHO_N "(cached) $ECHO_C" >&6
3925else
3926  if test -z "$LD"; then
3927  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3928  for ac_dir in $PATH; do
3929    IFS="$lt_save_ifs"
3930    test -z "$ac_dir" && ac_dir=.
3931    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3932      lt_cv_path_LD="$ac_dir/$ac_prog"
3933      # Check to see if the program is GNU ld.  I'd rather use --version,
3934      # but apparently some variants of GNU ld only accept -v.
3935      # Break only if it was the GNU/non-GNU ld that we prefer.
3936      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3937      *GNU* | *'with BFD'*)
3938	test "$with_gnu_ld" != no && break
3939	;;
3940      *)
3941	test "$with_gnu_ld" != yes && break
3942	;;
3943      esac
3944    fi
3945  done
3946  IFS="$lt_save_ifs"
3947else
3948  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3949fi
3950fi
3951
3952LD="$lt_cv_path_LD"
3953if test -n "$LD"; then
3954  { echo "$as_me:$LINENO: result: $LD" >&5
3955echo "${ECHO_T}$LD" >&6; }
3956else
3957  { echo "$as_me:$LINENO: result: no" >&5
3958echo "${ECHO_T}no" >&6; }
3959fi
3960test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3961echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3962   { (exit 1); exit 1; }; }
3963{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3964echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3965if test "${lt_cv_prog_gnu_ld+set}" = set; then
3966  echo $ECHO_N "(cached) $ECHO_C" >&6
3967else
3968  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3969case `$LD -v 2>&1 </dev/null` in
3970*GNU* | *'with BFD'*)
3971  lt_cv_prog_gnu_ld=yes
3972  ;;
3973*)
3974  lt_cv_prog_gnu_ld=no
3975  ;;
3976esac
3977fi
3978{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3979echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3980with_gnu_ld=$lt_cv_prog_gnu_ld
3981
3982
3983{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3984echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3985if test "${lt_cv_ld_reload_flag+set}" = set; then
3986  echo $ECHO_N "(cached) $ECHO_C" >&6
3987else
3988  lt_cv_ld_reload_flag='-r'
3989fi
3990{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3991echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3992reload_flag=$lt_cv_ld_reload_flag
3993case $reload_flag in
3994"" | " "*) ;;
3995*) reload_flag=" $reload_flag" ;;
3996esac
3997reload_cmds='$LD$reload_flag -o $output$reload_objs'
3998case $host_os in
3999  darwin*)
4000    if test "$GCC" = yes; then
4001      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4002    else
4003      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4004    fi
4005    ;;
4006esac
4007
4008{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4009echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4010if test "${lt_cv_path_NM+set}" = set; then
4011  echo $ECHO_N "(cached) $ECHO_C" >&6
4012else
4013  if test -n "$NM"; then
4014  # Let the user override the test.
4015  lt_cv_path_NM="$NM"
4016else
4017  lt_nm_to_check="${ac_tool_prefix}nm"
4018  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4019    lt_nm_to_check="$lt_nm_to_check nm"
4020  fi
4021  for lt_tmp_nm in $lt_nm_to_check; do
4022    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4023    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4024      IFS="$lt_save_ifs"
4025      test -z "$ac_dir" && ac_dir=.
4026      tmp_nm="$ac_dir/$lt_tmp_nm"
4027      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4028	# Check to see if the nm accepts a BSD-compat flag.
4029	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4030	#   nm: unknown option "B" ignored
4031	# Tru64's nm complains that /dev/null is an invalid object file
4032	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4033	*/dev/null* | *'Invalid file or object type'*)
4034	  lt_cv_path_NM="$tmp_nm -B"
4035	  break
4036	  ;;
4037	*)
4038	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4039	  */dev/null*)
4040	    lt_cv_path_NM="$tmp_nm -p"
4041	    break
4042	    ;;
4043	  *)
4044	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4045	    continue # so that we can try to find one that supports BSD flags
4046	    ;;
4047	  esac
4048	  ;;
4049	esac
4050      fi
4051    done
4052    IFS="$lt_save_ifs"
4053  done
4054  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4055fi
4056fi
4057{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4058echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4059NM="$lt_cv_path_NM"
4060
4061{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4062echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4063LN_S=$as_ln_s
4064if test "$LN_S" = "ln -s"; then
4065  { echo "$as_me:$LINENO: result: yes" >&5
4066echo "${ECHO_T}yes" >&6; }
4067else
4068  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4069echo "${ECHO_T}no, using $LN_S" >&6; }
4070fi
4071
4072{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4073echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4074if test "${lt_cv_deplibs_check_method+set}" = set; then
4075  echo $ECHO_N "(cached) $ECHO_C" >&6
4076else
4077  lt_cv_file_magic_cmd='$MAGIC_CMD'
4078lt_cv_file_magic_test_file=
4079lt_cv_deplibs_check_method='unknown'
4080# Need to set the preceding variable on all platforms that support
4081# interlibrary dependencies.
4082# 'none' -- dependencies not supported.
4083# `unknown' -- same as none, but documents that we really don't know.
4084# 'pass_all' -- all dependencies passed with no checks.
4085# 'test_compile' -- check by making test program.
4086# 'file_magic [[regex]]' -- check by looking for files in library path
4087# which responds to the $file_magic_cmd with a given extended regex.
4088# If you have `file' or equivalent on your system and you're not sure
4089# whether `pass_all' will *always* work, you probably want this one.
4090
4091case $host_os in
4092aix4* | aix5*)
4093  lt_cv_deplibs_check_method=pass_all
4094  ;;
4095
4096beos*)
4097  lt_cv_deplibs_check_method=pass_all
4098  ;;
4099
4100bsdi[45]*)
4101  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4102  lt_cv_file_magic_cmd='/usr/bin/file -L'
4103  lt_cv_file_magic_test_file=/shlib/libc.so
4104  ;;
4105
4106cygwin*)
4107  # func_win32_libid is a shell function defined in ltmain.sh
4108  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4109  lt_cv_file_magic_cmd='func_win32_libid'
4110  ;;
4111
4112mingw* | pw32*)
4113  # Base MSYS/MinGW do not provide the 'file' command needed by
4114  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4115  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4116  lt_cv_file_magic_cmd='$OBJDUMP -f'
4117  ;;
4118
4119darwin* | rhapsody*)
4120  lt_cv_deplibs_check_method=pass_all
4121  ;;
4122
4123freebsd* | kfreebsd*-gnu | dragonfly*)
4124  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4125    case $host_cpu in
4126    i*86 )
4127      # Not sure whether the presence of OpenBSD here was a mistake.
4128      # Let's accept both of them until this is cleared up.
4129      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4130      lt_cv_file_magic_cmd=/usr/bin/file
4131      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4132      ;;
4133    esac
4134  else
4135    lt_cv_deplibs_check_method=pass_all
4136  fi
4137  ;;
4138
4139gnu*)
4140  lt_cv_deplibs_check_method=pass_all
4141  ;;
4142
4143hpux10.20* | hpux11*)
4144  lt_cv_file_magic_cmd=/usr/bin/file
4145  case $host_cpu in
4146  ia64*)
4147    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4148    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4149    ;;
4150  hppa*64*)
4151    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]'
4152    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4153    ;;
4154  *)
4155    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4156    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4157    ;;
4158  esac
4159  ;;
4160
4161interix3*)
4162  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4163  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4164  ;;
4165
4166irix5* | irix6* | nonstopux*)
4167  case $LD in
4168  *-32|*"-32 ") libmagic=32-bit;;
4169  *-n32|*"-n32 ") libmagic=N32;;
4170  *-64|*"-64 ") libmagic=64-bit;;
4171  *) libmagic=never-match;;
4172  esac
4173  lt_cv_deplibs_check_method=pass_all
4174  ;;
4175
4176# This must be Linux ELF.
4177linux*)
4178  lt_cv_deplibs_check_method=pass_all
4179  ;;
4180
4181netbsd*)
4182  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4183    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4184  else
4185    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4186  fi
4187  ;;
4188
4189newos6*)
4190  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4191  lt_cv_file_magic_cmd=/usr/bin/file
4192  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4193  ;;
4194
4195nto-qnx*)
4196  lt_cv_deplibs_check_method=unknown
4197  ;;
4198
4199openbsd*)
4200  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4201    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4202  else
4203    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4204  fi
4205  ;;
4206
4207osf3* | osf4* | osf5*)
4208  lt_cv_deplibs_check_method=pass_all
4209  ;;
4210
4211solaris*)
4212  lt_cv_deplibs_check_method=pass_all
4213  ;;
4214
4215sysv4 | sysv4.3*)
4216  case $host_vendor in
4217  motorola)
4218    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]'
4219    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4220    ;;
4221  ncr)
4222    lt_cv_deplibs_check_method=pass_all
4223    ;;
4224  sequent)
4225    lt_cv_file_magic_cmd='/bin/file'
4226    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4227    ;;
4228  sni)
4229    lt_cv_file_magic_cmd='/bin/file'
4230    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4231    lt_cv_file_magic_test_file=/lib/libc.so
4232    ;;
4233  siemens)
4234    lt_cv_deplibs_check_method=pass_all
4235    ;;
4236  pc)
4237    lt_cv_deplibs_check_method=pass_all
4238    ;;
4239  esac
4240  ;;
4241
4242sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4243  lt_cv_deplibs_check_method=pass_all
4244  ;;
4245esac
4246
4247fi
4248{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4249echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4250file_magic_cmd=$lt_cv_file_magic_cmd
4251deplibs_check_method=$lt_cv_deplibs_check_method
4252test -z "$deplibs_check_method" && deplibs_check_method=unknown
4253
4254
4255
4256
4257# If no C compiler was specified, use CC.
4258LTCC=${LTCC-"$CC"}
4259
4260# If no C compiler flags were specified, use CFLAGS.
4261LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4262
4263# Allow CC to be a program name with arguments.
4264compiler=$CC
4265
4266
4267# Check whether --enable-libtool-lock was given.
4268if test "${enable_libtool_lock+set}" = set; then
4269  enableval=$enable_libtool_lock;
4270fi
4271
4272test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4273
4274# Some flags need to be propagated to the compiler or linker for good
4275# libtool support.
4276case $host in
4277ia64-*-hpux*)
4278  # Find out which ABI we are using.
4279  echo 'int i;' > conftest.$ac_ext
4280  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4281  (eval $ac_compile) 2>&5
4282  ac_status=$?
4283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284  (exit $ac_status); }; then
4285    case `/usr/bin/file conftest.$ac_objext` in
4286    *ELF-32*)
4287      HPUX_IA64_MODE="32"
4288      ;;
4289    *ELF-64*)
4290      HPUX_IA64_MODE="64"
4291      ;;
4292    esac
4293  fi
4294  rm -rf conftest*
4295  ;;
4296*-*-irix6*)
4297  # Find out which ABI we are using.
4298  echo '#line 4298 "configure"' > conftest.$ac_ext
4299  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4300  (eval $ac_compile) 2>&5
4301  ac_status=$?
4302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303  (exit $ac_status); }; then
4304   if test "$lt_cv_prog_gnu_ld" = yes; then
4305    case `/usr/bin/file conftest.$ac_objext` in
4306    *32-bit*)
4307      LD="${LD-ld} -melf32bsmip"
4308      ;;
4309    *N32*)
4310      LD="${LD-ld} -melf32bmipn32"
4311      ;;
4312    *64-bit*)
4313      LD="${LD-ld} -melf64bmip"
4314      ;;
4315    esac
4316   else
4317    case `/usr/bin/file conftest.$ac_objext` in
4318    *32-bit*)
4319      LD="${LD-ld} -32"
4320      ;;
4321    *N32*)
4322      LD="${LD-ld} -n32"
4323      ;;
4324    *64-bit*)
4325      LD="${LD-ld} -64"
4326      ;;
4327    esac
4328   fi
4329  fi
4330  rm -rf conftest*
4331  ;;
4332
4333x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4334  # Find out which ABI we are using.
4335  echo 'int i;' > conftest.$ac_ext
4336  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4337  (eval $ac_compile) 2>&5
4338  ac_status=$?
4339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340  (exit $ac_status); }; then
4341    case `/usr/bin/file conftest.o` in
4342    *32-bit*)
4343      case $host in
4344        x86_64-*linux*)
4345          LD="${LD-ld} -m elf_i386"
4346          ;;
4347        ppc64-*linux*|powerpc64-*linux*)
4348          LD="${LD-ld} -m elf32ppclinux"
4349          ;;
4350        s390x-*linux*)
4351          LD="${LD-ld} -m elf_s390"
4352          ;;
4353        sparc64-*linux*)
4354          LD="${LD-ld} -m elf32_sparc"
4355          ;;
4356      esac
4357      ;;
4358    *64-bit*)
4359      case $host in
4360        x86_64-*linux*)
4361          LD="${LD-ld} -m elf_x86_64"
4362          ;;
4363        ppc*-*linux*|powerpc*-*linux*)
4364          LD="${LD-ld} -m elf64ppc"
4365          ;;
4366        s390*-*linux*)
4367          LD="${LD-ld} -m elf64_s390"
4368          ;;
4369        sparc*-*linux*)
4370          LD="${LD-ld} -m elf64_sparc"
4371          ;;
4372      esac
4373      ;;
4374    esac
4375  fi
4376  rm -rf conftest*
4377  ;;
4378
4379*-*-sco3.2v5*)
4380  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4381  SAVE_CFLAGS="$CFLAGS"
4382  CFLAGS="$CFLAGS -belf"
4383  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4384echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4385if test "${lt_cv_cc_needs_belf+set}" = set; then
4386  echo $ECHO_N "(cached) $ECHO_C" >&6
4387else
4388  ac_ext=c
4389ac_cpp='$CPP $CPPFLAGS'
4390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392ac_compiler_gnu=$ac_cv_c_compiler_gnu
4393
4394     cat >conftest.$ac_ext <<_ACEOF
4395/* confdefs.h.  */
4396_ACEOF
4397cat confdefs.h >>conftest.$ac_ext
4398cat >>conftest.$ac_ext <<_ACEOF
4399/* end confdefs.h.  */
4400
4401int
4402main ()
4403{
4404
4405  ;
4406  return 0;
4407}
4408_ACEOF
4409rm -f conftest.$ac_objext conftest$ac_exeext
4410if { (ac_try="$ac_link"
4411case "(($ac_try" in
4412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413  *) ac_try_echo=$ac_try;;
4414esac
4415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4416  (eval "$ac_link") 2>conftest.er1
4417  ac_status=$?
4418  grep -v '^ *+' conftest.er1 >conftest.err
4419  rm -f conftest.er1
4420  cat conftest.err >&5
4421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422  (exit $ac_status); } && {
4423	 test -z "$ac_c_werror_flag" ||
4424	 test ! -s conftest.err
4425       } && test -s conftest$ac_exeext &&
4426       $as_test_x conftest$ac_exeext; then
4427  lt_cv_cc_needs_belf=yes
4428else
4429  echo "$as_me: failed program was:" >&5
4430sed 's/^/| /' conftest.$ac_ext >&5
4431
4432	lt_cv_cc_needs_belf=no
4433fi
4434
4435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4436      conftest$ac_exeext conftest.$ac_ext
4437     ac_ext=c
4438ac_cpp='$CPP $CPPFLAGS'
4439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4441ac_compiler_gnu=$ac_cv_c_compiler_gnu
4442
4443fi
4444{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4445echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4446  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4447    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4448    CFLAGS="$SAVE_CFLAGS"
4449  fi
4450  ;;
4451sparc*-*solaris*)
4452  # Find out which ABI we are using.
4453  echo 'int i;' > conftest.$ac_ext
4454  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455  (eval $ac_compile) 2>&5
4456  ac_status=$?
4457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458  (exit $ac_status); }; then
4459    case `/usr/bin/file conftest.o` in
4460    *64-bit*)
4461      case $lt_cv_prog_gnu_ld in
4462      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4463      *)    LD="${LD-ld} -64" ;;
4464      esac
4465      ;;
4466    esac
4467  fi
4468  rm -rf conftest*
4469  ;;
4470
4471
4472esac
4473
4474need_locks="$enable_libtool_lock"
4475
4476
4477ac_ext=c
4478ac_cpp='$CPP $CPPFLAGS'
4479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4481ac_compiler_gnu=$ac_cv_c_compiler_gnu
4482{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4483echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4484# On Suns, sometimes $CPP names a directory.
4485if test -n "$CPP" && test -d "$CPP"; then
4486  CPP=
4487fi
4488if test -z "$CPP"; then
4489  if test "${ac_cv_prog_CPP+set}" = set; then
4490  echo $ECHO_N "(cached) $ECHO_C" >&6
4491else
4492      # Double quotes because CPP needs to be expanded
4493    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4494    do
4495      ac_preproc_ok=false
4496for ac_c_preproc_warn_flag in '' yes
4497do
4498  # Use a header file that comes with gcc, so configuring glibc
4499  # with a fresh cross-compiler works.
4500  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4501  # <limits.h> exists even on freestanding compilers.
4502  # On the NeXT, cc -E runs the code through the compiler's parser,
4503  # not just through cpp. "Syntax error" is here to catch this case.
4504  cat >conftest.$ac_ext <<_ACEOF
4505/* confdefs.h.  */
4506_ACEOF
4507cat confdefs.h >>conftest.$ac_ext
4508cat >>conftest.$ac_ext <<_ACEOF
4509/* end confdefs.h.  */
4510#ifdef __STDC__
4511# include <limits.h>
4512#else
4513# include <assert.h>
4514#endif
4515		     Syntax error
4516_ACEOF
4517if { (ac_try="$ac_cpp conftest.$ac_ext"
4518case "(($ac_try" in
4519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520  *) ac_try_echo=$ac_try;;
4521esac
4522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4523  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4524  ac_status=$?
4525  grep -v '^ *+' conftest.er1 >conftest.err
4526  rm -f conftest.er1
4527  cat conftest.err >&5
4528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529  (exit $ac_status); } >/dev/null && {
4530	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4531	 test ! -s conftest.err
4532       }; then
4533  :
4534else
4535  echo "$as_me: failed program was:" >&5
4536sed 's/^/| /' conftest.$ac_ext >&5
4537
4538  # Broken: fails on valid input.
4539continue
4540fi
4541
4542rm -f conftest.err conftest.$ac_ext
4543
4544  # OK, works on sane cases.  Now check whether nonexistent headers
4545  # can be detected and how.
4546  cat >conftest.$ac_ext <<_ACEOF
4547/* confdefs.h.  */
4548_ACEOF
4549cat confdefs.h >>conftest.$ac_ext
4550cat >>conftest.$ac_ext <<_ACEOF
4551/* end confdefs.h.  */
4552#include <ac_nonexistent.h>
4553_ACEOF
4554if { (ac_try="$ac_cpp conftest.$ac_ext"
4555case "(($ac_try" in
4556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557  *) ac_try_echo=$ac_try;;
4558esac
4559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4560  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4561  ac_status=$?
4562  grep -v '^ *+' conftest.er1 >conftest.err
4563  rm -f conftest.er1
4564  cat conftest.err >&5
4565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566  (exit $ac_status); } >/dev/null && {
4567	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4568	 test ! -s conftest.err
4569       }; then
4570  # Broken: success on invalid input.
4571continue
4572else
4573  echo "$as_me: failed program was:" >&5
4574sed 's/^/| /' conftest.$ac_ext >&5
4575
4576  # Passes both tests.
4577ac_preproc_ok=:
4578break
4579fi
4580
4581rm -f conftest.err conftest.$ac_ext
4582
4583done
4584# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4585rm -f conftest.err conftest.$ac_ext
4586if $ac_preproc_ok; then
4587  break
4588fi
4589
4590    done
4591    ac_cv_prog_CPP=$CPP
4592
4593fi
4594  CPP=$ac_cv_prog_CPP
4595else
4596  ac_cv_prog_CPP=$CPP
4597fi
4598{ echo "$as_me:$LINENO: result: $CPP" >&5
4599echo "${ECHO_T}$CPP" >&6; }
4600ac_preproc_ok=false
4601for ac_c_preproc_warn_flag in '' yes
4602do
4603  # Use a header file that comes with gcc, so configuring glibc
4604  # with a fresh cross-compiler works.
4605  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4606  # <limits.h> exists even on freestanding compilers.
4607  # On the NeXT, cc -E runs the code through the compiler's parser,
4608  # not just through cpp. "Syntax error" is here to catch this case.
4609  cat >conftest.$ac_ext <<_ACEOF
4610/* confdefs.h.  */
4611_ACEOF
4612cat confdefs.h >>conftest.$ac_ext
4613cat >>conftest.$ac_ext <<_ACEOF
4614/* end confdefs.h.  */
4615#ifdef __STDC__
4616# include <limits.h>
4617#else
4618# include <assert.h>
4619#endif
4620		     Syntax error
4621_ACEOF
4622if { (ac_try="$ac_cpp conftest.$ac_ext"
4623case "(($ac_try" in
4624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625  *) ac_try_echo=$ac_try;;
4626esac
4627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4628  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4629  ac_status=$?
4630  grep -v '^ *+' conftest.er1 >conftest.err
4631  rm -f conftest.er1
4632  cat conftest.err >&5
4633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634  (exit $ac_status); } >/dev/null && {
4635	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4636	 test ! -s conftest.err
4637       }; then
4638  :
4639else
4640  echo "$as_me: failed program was:" >&5
4641sed 's/^/| /' conftest.$ac_ext >&5
4642
4643  # Broken: fails on valid input.
4644continue
4645fi
4646
4647rm -f conftest.err conftest.$ac_ext
4648
4649  # OK, works on sane cases.  Now check whether nonexistent headers
4650  # can be detected and how.
4651  cat >conftest.$ac_ext <<_ACEOF
4652/* confdefs.h.  */
4653_ACEOF
4654cat confdefs.h >>conftest.$ac_ext
4655cat >>conftest.$ac_ext <<_ACEOF
4656/* end confdefs.h.  */
4657#include <ac_nonexistent.h>
4658_ACEOF
4659if { (ac_try="$ac_cpp conftest.$ac_ext"
4660case "(($ac_try" in
4661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662  *) ac_try_echo=$ac_try;;
4663esac
4664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4665  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4666  ac_status=$?
4667  grep -v '^ *+' conftest.er1 >conftest.err
4668  rm -f conftest.er1
4669  cat conftest.err >&5
4670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671  (exit $ac_status); } >/dev/null && {
4672	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4673	 test ! -s conftest.err
4674       }; then
4675  # Broken: success on invalid input.
4676continue
4677else
4678  echo "$as_me: failed program was:" >&5
4679sed 's/^/| /' conftest.$ac_ext >&5
4680
4681  # Passes both tests.
4682ac_preproc_ok=:
4683break
4684fi
4685
4686rm -f conftest.err conftest.$ac_ext
4687
4688done
4689# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4690rm -f conftest.err conftest.$ac_ext
4691if $ac_preproc_ok; then
4692  :
4693else
4694  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4695See \`config.log' for more details." >&5
4696echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4697See \`config.log' for more details." >&2;}
4698   { (exit 1); exit 1; }; }
4699fi
4700
4701ac_ext=c
4702ac_cpp='$CPP $CPPFLAGS'
4703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4705ac_compiler_gnu=$ac_cv_c_compiler_gnu
4706
4707
4708{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4709echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4710if test "${ac_cv_header_stdc+set}" = set; then
4711  echo $ECHO_N "(cached) $ECHO_C" >&6
4712else
4713  cat >conftest.$ac_ext <<_ACEOF
4714/* confdefs.h.  */
4715_ACEOF
4716cat confdefs.h >>conftest.$ac_ext
4717cat >>conftest.$ac_ext <<_ACEOF
4718/* end confdefs.h.  */
4719#include <stdlib.h>
4720#include <stdarg.h>
4721#include <string.h>
4722#include <float.h>
4723
4724int
4725main ()
4726{
4727
4728  ;
4729  return 0;
4730}
4731_ACEOF
4732rm -f conftest.$ac_objext
4733if { (ac_try="$ac_compile"
4734case "(($ac_try" in
4735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736  *) ac_try_echo=$ac_try;;
4737esac
4738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4739  (eval "$ac_compile") 2>conftest.er1
4740  ac_status=$?
4741  grep -v '^ *+' conftest.er1 >conftest.err
4742  rm -f conftest.er1
4743  cat conftest.err >&5
4744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745  (exit $ac_status); } && {
4746	 test -z "$ac_c_werror_flag" ||
4747	 test ! -s conftest.err
4748       } && test -s conftest.$ac_objext; then
4749  ac_cv_header_stdc=yes
4750else
4751  echo "$as_me: failed program was:" >&5
4752sed 's/^/| /' conftest.$ac_ext >&5
4753
4754	ac_cv_header_stdc=no
4755fi
4756
4757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758
4759if test $ac_cv_header_stdc = yes; then
4760  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4761  cat >conftest.$ac_ext <<_ACEOF
4762/* confdefs.h.  */
4763_ACEOF
4764cat confdefs.h >>conftest.$ac_ext
4765cat >>conftest.$ac_ext <<_ACEOF
4766/* end confdefs.h.  */
4767#include <string.h>
4768
4769_ACEOF
4770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4771  $EGREP "memchr" >/dev/null 2>&1; then
4772  :
4773else
4774  ac_cv_header_stdc=no
4775fi
4776rm -f conftest*
4777
4778fi
4779
4780if test $ac_cv_header_stdc = yes; then
4781  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4782  cat >conftest.$ac_ext <<_ACEOF
4783/* confdefs.h.  */
4784_ACEOF
4785cat confdefs.h >>conftest.$ac_ext
4786cat >>conftest.$ac_ext <<_ACEOF
4787/* end confdefs.h.  */
4788#include <stdlib.h>
4789
4790_ACEOF
4791if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4792  $EGREP "free" >/dev/null 2>&1; then
4793  :
4794else
4795  ac_cv_header_stdc=no
4796fi
4797rm -f conftest*
4798
4799fi
4800
4801if test $ac_cv_header_stdc = yes; then
4802  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4803  if test "$cross_compiling" = yes; then
4804  :
4805else
4806  cat >conftest.$ac_ext <<_ACEOF
4807/* confdefs.h.  */
4808_ACEOF
4809cat confdefs.h >>conftest.$ac_ext
4810cat >>conftest.$ac_ext <<_ACEOF
4811/* end confdefs.h.  */
4812#include <ctype.h>
4813#include <stdlib.h>
4814#if ((' ' & 0x0FF) == 0x020)
4815# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4816# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4817#else
4818# define ISLOWER(c) \
4819		   (('a' <= (c) && (c) <= 'i') \
4820		     || ('j' <= (c) && (c) <= 'r') \
4821		     || ('s' <= (c) && (c) <= 'z'))
4822# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4823#endif
4824
4825#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4826int
4827main ()
4828{
4829  int i;
4830  for (i = 0; i < 256; i++)
4831    if (XOR (islower (i), ISLOWER (i))
4832	|| toupper (i) != TOUPPER (i))
4833      return 2;
4834  return 0;
4835}
4836_ACEOF
4837rm -f conftest$ac_exeext
4838if { (ac_try="$ac_link"
4839case "(($ac_try" in
4840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841  *) ac_try_echo=$ac_try;;
4842esac
4843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4844  (eval "$ac_link") 2>&5
4845  ac_status=$?
4846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4848  { (case "(($ac_try" in
4849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850  *) ac_try_echo=$ac_try;;
4851esac
4852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4853  (eval "$ac_try") 2>&5
4854  ac_status=$?
4855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856  (exit $ac_status); }; }; then
4857  :
4858else
4859  echo "$as_me: program exited with status $ac_status" >&5
4860echo "$as_me: failed program was:" >&5
4861sed 's/^/| /' conftest.$ac_ext >&5
4862
4863( exit $ac_status )
4864ac_cv_header_stdc=no
4865fi
4866rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4867fi
4868
4869
4870fi
4871fi
4872{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4873echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4874if test $ac_cv_header_stdc = yes; then
4875
4876cat >>confdefs.h <<\_ACEOF
4877#define STDC_HEADERS 1
4878_ACEOF
4879
4880fi
4881
4882# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4893		  inttypes.h stdint.h unistd.h
4894do
4895as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4896{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4897echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4898if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4899  echo $ECHO_N "(cached) $ECHO_C" >&6
4900else
4901  cat >conftest.$ac_ext <<_ACEOF
4902/* confdefs.h.  */
4903_ACEOF
4904cat confdefs.h >>conftest.$ac_ext
4905cat >>conftest.$ac_ext <<_ACEOF
4906/* end confdefs.h.  */
4907$ac_includes_default
4908
4909#include <$ac_header>
4910_ACEOF
4911rm -f conftest.$ac_objext
4912if { (ac_try="$ac_compile"
4913case "(($ac_try" in
4914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915  *) ac_try_echo=$ac_try;;
4916esac
4917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4918  (eval "$ac_compile") 2>conftest.er1
4919  ac_status=$?
4920  grep -v '^ *+' conftest.er1 >conftest.err
4921  rm -f conftest.er1
4922  cat conftest.err >&5
4923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924  (exit $ac_status); } && {
4925	 test -z "$ac_c_werror_flag" ||
4926	 test ! -s conftest.err
4927       } && test -s conftest.$ac_objext; then
4928  eval "$as_ac_Header=yes"
4929else
4930  echo "$as_me: failed program was:" >&5
4931sed 's/^/| /' conftest.$ac_ext >&5
4932
4933	eval "$as_ac_Header=no"
4934fi
4935
4936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937fi
4938ac_res=`eval echo '${'$as_ac_Header'}'`
4939	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4940echo "${ECHO_T}$ac_res" >&6; }
4941if test `eval echo '${'$as_ac_Header'}'` = yes; then
4942  cat >>confdefs.h <<_ACEOF
4943#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4944_ACEOF
4945
4946fi
4947
4948done
4949
4950
4951
4952for ac_header in dlfcn.h
4953do
4954as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4956  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4959  echo $ECHO_N "(cached) $ECHO_C" >&6
4960fi
4961ac_res=`eval echo '${'$as_ac_Header'}'`
4962	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4963echo "${ECHO_T}$ac_res" >&6; }
4964else
4965  # Is the header compilable?
4966{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4967echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4968cat >conftest.$ac_ext <<_ACEOF
4969/* confdefs.h.  */
4970_ACEOF
4971cat confdefs.h >>conftest.$ac_ext
4972cat >>conftest.$ac_ext <<_ACEOF
4973/* end confdefs.h.  */
4974$ac_includes_default
4975#include <$ac_header>
4976_ACEOF
4977rm -f conftest.$ac_objext
4978if { (ac_try="$ac_compile"
4979case "(($ac_try" in
4980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981  *) ac_try_echo=$ac_try;;
4982esac
4983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4984  (eval "$ac_compile") 2>conftest.er1
4985  ac_status=$?
4986  grep -v '^ *+' conftest.er1 >conftest.err
4987  rm -f conftest.er1
4988  cat conftest.err >&5
4989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990  (exit $ac_status); } && {
4991	 test -z "$ac_c_werror_flag" ||
4992	 test ! -s conftest.err
4993       } && test -s conftest.$ac_objext; then
4994  ac_header_compiler=yes
4995else
4996  echo "$as_me: failed program was:" >&5
4997sed 's/^/| /' conftest.$ac_ext >&5
4998
4999	ac_header_compiler=no
5000fi
5001
5002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5004echo "${ECHO_T}$ac_header_compiler" >&6; }
5005
5006# Is the header present?
5007{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5008echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5009cat >conftest.$ac_ext <<_ACEOF
5010/* confdefs.h.  */
5011_ACEOF
5012cat confdefs.h >>conftest.$ac_ext
5013cat >>conftest.$ac_ext <<_ACEOF
5014/* end confdefs.h.  */
5015#include <$ac_header>
5016_ACEOF
5017if { (ac_try="$ac_cpp conftest.$ac_ext"
5018case "(($ac_try" in
5019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5020  *) ac_try_echo=$ac_try;;
5021esac
5022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5023  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5024  ac_status=$?
5025  grep -v '^ *+' conftest.er1 >conftest.err
5026  rm -f conftest.er1
5027  cat conftest.err >&5
5028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029  (exit $ac_status); } >/dev/null && {
5030	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5031	 test ! -s conftest.err
5032       }; then
5033  ac_header_preproc=yes
5034else
5035  echo "$as_me: failed program was:" >&5
5036sed 's/^/| /' conftest.$ac_ext >&5
5037
5038  ac_header_preproc=no
5039fi
5040
5041rm -f conftest.err conftest.$ac_ext
5042{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5043echo "${ECHO_T}$ac_header_preproc" >&6; }
5044
5045# So?  What about this header?
5046case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5047  yes:no: )
5048    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5049echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5050    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5051echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5052    ac_header_preproc=yes
5053    ;;
5054  no:yes:* )
5055    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5056echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5057    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5058echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5059    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5060echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5061    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5062echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5063    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5064echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5065    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5066echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5067
5068    ;;
5069esac
5070{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5072if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5073  echo $ECHO_N "(cached) $ECHO_C" >&6
5074else
5075  eval "$as_ac_Header=\$ac_header_preproc"
5076fi
5077ac_res=`eval echo '${'$as_ac_Header'}'`
5078	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5079echo "${ECHO_T}$ac_res" >&6; }
5080
5081fi
5082if test `eval echo '${'$as_ac_Header'}'` = yes; then
5083  cat >>confdefs.h <<_ACEOF
5084#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5085_ACEOF
5086
5087fi
5088
5089done
5090
5091ac_ext=cpp
5092ac_cpp='$CXXCPP $CPPFLAGS'
5093ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5094ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5095ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5096if test -z "$CXX"; then
5097  if test -n "$CCC"; then
5098    CXX=$CCC
5099  else
5100    if test -n "$ac_tool_prefix"; then
5101  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5102  do
5103    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5104set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5105{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5107if test "${ac_cv_prog_CXX+set}" = set; then
5108  echo $ECHO_N "(cached) $ECHO_C" >&6
5109else
5110  if test -n "$CXX"; then
5111  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5112else
5113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114for as_dir in $PATH
5115do
5116  IFS=$as_save_IFS
5117  test -z "$as_dir" && as_dir=.
5118  for ac_exec_ext in '' $ac_executable_extensions; do
5119  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5120    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5121    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5122    break 2
5123  fi
5124done
5125done
5126IFS=$as_save_IFS
5127
5128fi
5129fi
5130CXX=$ac_cv_prog_CXX
5131if test -n "$CXX"; then
5132  { echo "$as_me:$LINENO: result: $CXX" >&5
5133echo "${ECHO_T}$CXX" >&6; }
5134else
5135  { echo "$as_me:$LINENO: result: no" >&5
5136echo "${ECHO_T}no" >&6; }
5137fi
5138
5139
5140    test -n "$CXX" && break
5141  done
5142fi
5143if test -z "$CXX"; then
5144  ac_ct_CXX=$CXX
5145  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5146do
5147  # Extract the first word of "$ac_prog", so it can be a program name with args.
5148set dummy $ac_prog; ac_word=$2
5149{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5151if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5152  echo $ECHO_N "(cached) $ECHO_C" >&6
5153else
5154  if test -n "$ac_ct_CXX"; then
5155  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5156else
5157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158for as_dir in $PATH
5159do
5160  IFS=$as_save_IFS
5161  test -z "$as_dir" && as_dir=.
5162  for ac_exec_ext in '' $ac_executable_extensions; do
5163  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164    ac_cv_prog_ac_ct_CXX="$ac_prog"
5165    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166    break 2
5167  fi
5168done
5169done
5170IFS=$as_save_IFS
5171
5172fi
5173fi
5174ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5175if test -n "$ac_ct_CXX"; then
5176  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5177echo "${ECHO_T}$ac_ct_CXX" >&6; }
5178else
5179  { echo "$as_me:$LINENO: result: no" >&5
5180echo "${ECHO_T}no" >&6; }
5181fi
5182
5183
5184  test -n "$ac_ct_CXX" && break
5185done
5186
5187  if test "x$ac_ct_CXX" = x; then
5188    CXX="g++"
5189  else
5190    case $cross_compiling:$ac_tool_warned in
5191yes:)
5192{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5193whose name does not start with the host triplet.  If you think this
5194configuration is useful to you, please write to autoconf@gnu.org." >&5
5195echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5196whose name does not start with the host triplet.  If you think this
5197configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5198ac_tool_warned=yes ;;
5199esac
5200    CXX=$ac_ct_CXX
5201  fi
5202fi
5203
5204  fi
5205fi
5206# Provide some information about the compiler.
5207echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5208ac_compiler=`set X $ac_compile; echo $2`
5209{ (ac_try="$ac_compiler --version >&5"
5210case "(($ac_try" in
5211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212  *) ac_try_echo=$ac_try;;
5213esac
5214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5215  (eval "$ac_compiler --version >&5") 2>&5
5216  ac_status=$?
5217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218  (exit $ac_status); }
5219{ (ac_try="$ac_compiler -v >&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 -v >&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
5240{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5241echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5242if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5243  echo $ECHO_N "(cached) $ECHO_C" >&6
5244else
5245  cat >conftest.$ac_ext <<_ACEOF
5246/* confdefs.h.  */
5247_ACEOF
5248cat confdefs.h >>conftest.$ac_ext
5249cat >>conftest.$ac_ext <<_ACEOF
5250/* end confdefs.h.  */
5251
5252int
5253main ()
5254{
5255#ifndef __GNUC__
5256       choke me
5257#endif
5258
5259  ;
5260  return 0;
5261}
5262_ACEOF
5263rm -f conftest.$ac_objext
5264if { (ac_try="$ac_compile"
5265case "(($ac_try" in
5266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267  *) ac_try_echo=$ac_try;;
5268esac
5269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270  (eval "$ac_compile") 2>conftest.er1
5271  ac_status=$?
5272  grep -v '^ *+' conftest.er1 >conftest.err
5273  rm -f conftest.er1
5274  cat conftest.err >&5
5275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276  (exit $ac_status); } && {
5277	 test -z "$ac_cxx_werror_flag" ||
5278	 test ! -s conftest.err
5279       } && test -s conftest.$ac_objext; then
5280  ac_compiler_gnu=yes
5281else
5282  echo "$as_me: failed program was:" >&5
5283sed 's/^/| /' conftest.$ac_ext >&5
5284
5285	ac_compiler_gnu=no
5286fi
5287
5288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5290
5291fi
5292{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5293echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5294GXX=`test $ac_compiler_gnu = yes && echo yes`
5295ac_test_CXXFLAGS=${CXXFLAGS+set}
5296ac_save_CXXFLAGS=$CXXFLAGS
5297{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5298echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5299if test "${ac_cv_prog_cxx_g+set}" = set; then
5300  echo $ECHO_N "(cached) $ECHO_C" >&6
5301else
5302  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5303   ac_cxx_werror_flag=yes
5304   ac_cv_prog_cxx_g=no
5305   CXXFLAGS="-g"
5306   cat >conftest.$ac_ext <<_ACEOF
5307/* confdefs.h.  */
5308_ACEOF
5309cat confdefs.h >>conftest.$ac_ext
5310cat >>conftest.$ac_ext <<_ACEOF
5311/* end confdefs.h.  */
5312
5313int
5314main ()
5315{
5316
5317  ;
5318  return 0;
5319}
5320_ACEOF
5321rm -f conftest.$ac_objext
5322if { (ac_try="$ac_compile"
5323case "(($ac_try" in
5324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5325  *) ac_try_echo=$ac_try;;
5326esac
5327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5328  (eval "$ac_compile") 2>conftest.er1
5329  ac_status=$?
5330  grep -v '^ *+' conftest.er1 >conftest.err
5331  rm -f conftest.er1
5332  cat conftest.err >&5
5333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334  (exit $ac_status); } && {
5335	 test -z "$ac_cxx_werror_flag" ||
5336	 test ! -s conftest.err
5337       } && test -s conftest.$ac_objext; then
5338  ac_cv_prog_cxx_g=yes
5339else
5340  echo "$as_me: failed program was:" >&5
5341sed 's/^/| /' conftest.$ac_ext >&5
5342
5343	CXXFLAGS=""
5344      cat >conftest.$ac_ext <<_ACEOF
5345/* confdefs.h.  */
5346_ACEOF
5347cat confdefs.h >>conftest.$ac_ext
5348cat >>conftest.$ac_ext <<_ACEOF
5349/* end confdefs.h.  */
5350
5351int
5352main ()
5353{
5354
5355  ;
5356  return 0;
5357}
5358_ACEOF
5359rm -f conftest.$ac_objext
5360if { (ac_try="$ac_compile"
5361case "(($ac_try" in
5362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363  *) ac_try_echo=$ac_try;;
5364esac
5365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5366  (eval "$ac_compile") 2>conftest.er1
5367  ac_status=$?
5368  grep -v '^ *+' conftest.er1 >conftest.err
5369  rm -f conftest.er1
5370  cat conftest.err >&5
5371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372  (exit $ac_status); } && {
5373	 test -z "$ac_cxx_werror_flag" ||
5374	 test ! -s conftest.err
5375       } && test -s conftest.$ac_objext; then
5376  :
5377else
5378  echo "$as_me: failed program was:" >&5
5379sed 's/^/| /' conftest.$ac_ext >&5
5380
5381	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5382	 CXXFLAGS="-g"
5383	 cat >conftest.$ac_ext <<_ACEOF
5384/* confdefs.h.  */
5385_ACEOF
5386cat confdefs.h >>conftest.$ac_ext
5387cat >>conftest.$ac_ext <<_ACEOF
5388/* end confdefs.h.  */
5389
5390int
5391main ()
5392{
5393
5394  ;
5395  return 0;
5396}
5397_ACEOF
5398rm -f conftest.$ac_objext
5399if { (ac_try="$ac_compile"
5400case "(($ac_try" in
5401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402  *) ac_try_echo=$ac_try;;
5403esac
5404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405  (eval "$ac_compile") 2>conftest.er1
5406  ac_status=$?
5407  grep -v '^ *+' conftest.er1 >conftest.err
5408  rm -f conftest.er1
5409  cat conftest.err >&5
5410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411  (exit $ac_status); } && {
5412	 test -z "$ac_cxx_werror_flag" ||
5413	 test ! -s conftest.err
5414       } && test -s conftest.$ac_objext; then
5415  ac_cv_prog_cxx_g=yes
5416else
5417  echo "$as_me: failed program was:" >&5
5418sed 's/^/| /' conftest.$ac_ext >&5
5419
5420
5421fi
5422
5423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424fi
5425
5426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427fi
5428
5429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5431fi
5432{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5433echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5434if test "$ac_test_CXXFLAGS" = set; then
5435  CXXFLAGS=$ac_save_CXXFLAGS
5436elif test $ac_cv_prog_cxx_g = yes; then
5437  if test "$GXX" = yes; then
5438    CXXFLAGS="-g -O2"
5439  else
5440    CXXFLAGS="-g"
5441  fi
5442else
5443  if test "$GXX" = yes; then
5444    CXXFLAGS="-O2"
5445  else
5446    CXXFLAGS=
5447  fi
5448fi
5449ac_ext=cpp
5450ac_cpp='$CXXCPP $CPPFLAGS'
5451ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5452ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5453ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5454
5455depcc="$CXX"  am_compiler_list=
5456
5457{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5458echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5459if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5460  echo $ECHO_N "(cached) $ECHO_C" >&6
5461else
5462  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5463  # We make a subdir and do the tests there.  Otherwise we can end up
5464  # making bogus files that we don't know about and never remove.  For
5465  # instance it was reported that on HP-UX the gcc test will end up
5466  # making a dummy file named `D' -- because `-MD' means `put the output
5467  # in D'.
5468  mkdir conftest.dir
5469  # Copy depcomp to subdir because otherwise we won't find it if we're
5470  # using a relative directory.
5471  cp "$am_depcomp" conftest.dir
5472  cd conftest.dir
5473  # We will build objects and dependencies in a subdirectory because
5474  # it helps to detect inapplicable dependency modes.  For instance
5475  # both Tru64's cc and ICC support -MD to output dependencies as a
5476  # side effect of compilation, but ICC will put the dependencies in
5477  # the current directory while Tru64 will put them in the object
5478  # directory.
5479  mkdir sub
5480
5481  am_cv_CXX_dependencies_compiler_type=none
5482  if test "$am_compiler_list" = ""; then
5483     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5484  fi
5485  for depmode in $am_compiler_list; do
5486    # Setup a source with many dependencies, because some compilers
5487    # like to wrap large dependency lists on column 80 (with \), and
5488    # we should not choose a depcomp mode which is confused by this.
5489    #
5490    # We need to recreate these files for each test, as the compiler may
5491    # overwrite some of them when testing with obscure command lines.
5492    # This happens at least with the AIX C compiler.
5493    : > sub/conftest.c
5494    for i in 1 2 3 4 5 6; do
5495      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5496      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5497      # Solaris 8's {/usr,}/bin/sh.
5498      touch sub/conftst$i.h
5499    done
5500    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5501
5502    case $depmode in
5503    nosideeffect)
5504      # after this tag, mechanisms are not by side-effect, so they'll
5505      # only be used when explicitly requested
5506      if test "x$enable_dependency_tracking" = xyes; then
5507	continue
5508      else
5509	break
5510      fi
5511      ;;
5512    none) break ;;
5513    esac
5514    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5515    # mode.  It turns out that the SunPro C++ compiler does not properly
5516    # handle `-M -o', and we need to detect this.
5517    if depmode=$depmode \
5518       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5519       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5520       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5521         >/dev/null 2>conftest.err &&
5522       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5523       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5524       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5525       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5526      # icc doesn't choke on unknown options, it will just issue warnings
5527      # or remarks (even with -Werror).  So we grep stderr for any message
5528      # that says an option was ignored or not supported.
5529      # When given -MP, icc 7.0 and 7.1 complain thusly:
5530      #   icc: Command line warning: ignoring option '-M'; no argument required
5531      # The diagnosis changed in icc 8.0:
5532      #   icc: Command line remark: option '-MP' not supported
5533      if (grep 'ignoring option' conftest.err ||
5534          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5535        am_cv_CXX_dependencies_compiler_type=$depmode
5536        break
5537      fi
5538    fi
5539  done
5540
5541  cd ..
5542  rm -rf conftest.dir
5543else
5544  am_cv_CXX_dependencies_compiler_type=none
5545fi
5546
5547fi
5548{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5549echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5550CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5551
5552 if
5553  test "x$enable_dependency_tracking" != xno \
5554  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5555  am__fastdepCXX_TRUE=
5556  am__fastdepCXX_FALSE='#'
5557else
5558  am__fastdepCXX_TRUE='#'
5559  am__fastdepCXX_FALSE=
5560fi
5561
5562
5563
5564
5565if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5566    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5567    (test "X$CXX" != "Xg++"))) ; then
5568  ac_ext=cpp
5569ac_cpp='$CXXCPP $CPPFLAGS'
5570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5573{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5574echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5575if test -z "$CXXCPP"; then
5576  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5577  echo $ECHO_N "(cached) $ECHO_C" >&6
5578else
5579      # Double quotes because CXXCPP needs to be expanded
5580    for CXXCPP in "$CXX -E" "/lib/cpp"
5581    do
5582      ac_preproc_ok=false
5583for ac_cxx_preproc_warn_flag in '' yes
5584do
5585  # Use a header file that comes with gcc, so configuring glibc
5586  # with a fresh cross-compiler works.
5587  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5588  # <limits.h> exists even on freestanding compilers.
5589  # On the NeXT, cc -E runs the code through the compiler's parser,
5590  # not just through cpp. "Syntax error" is here to catch this case.
5591  cat >conftest.$ac_ext <<_ACEOF
5592/* confdefs.h.  */
5593_ACEOF
5594cat confdefs.h >>conftest.$ac_ext
5595cat >>conftest.$ac_ext <<_ACEOF
5596/* end confdefs.h.  */
5597#ifdef __STDC__
5598# include <limits.h>
5599#else
5600# include <assert.h>
5601#endif
5602		     Syntax error
5603_ACEOF
5604if { (ac_try="$ac_cpp conftest.$ac_ext"
5605case "(($ac_try" in
5606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607  *) ac_try_echo=$ac_try;;
5608esac
5609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5610  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5611  ac_status=$?
5612  grep -v '^ *+' conftest.er1 >conftest.err
5613  rm -f conftest.er1
5614  cat conftest.err >&5
5615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616  (exit $ac_status); } >/dev/null && {
5617	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5618	 test ! -s conftest.err
5619       }; then
5620  :
5621else
5622  echo "$as_me: failed program was:" >&5
5623sed 's/^/| /' conftest.$ac_ext >&5
5624
5625  # Broken: fails on valid input.
5626continue
5627fi
5628
5629rm -f conftest.err conftest.$ac_ext
5630
5631  # OK, works on sane cases.  Now check whether nonexistent headers
5632  # can be detected and how.
5633  cat >conftest.$ac_ext <<_ACEOF
5634/* confdefs.h.  */
5635_ACEOF
5636cat confdefs.h >>conftest.$ac_ext
5637cat >>conftest.$ac_ext <<_ACEOF
5638/* end confdefs.h.  */
5639#include <ac_nonexistent.h>
5640_ACEOF
5641if { (ac_try="$ac_cpp conftest.$ac_ext"
5642case "(($ac_try" in
5643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644  *) ac_try_echo=$ac_try;;
5645esac
5646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5648  ac_status=$?
5649  grep -v '^ *+' conftest.er1 >conftest.err
5650  rm -f conftest.er1
5651  cat conftest.err >&5
5652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653  (exit $ac_status); } >/dev/null && {
5654	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5655	 test ! -s conftest.err
5656       }; then
5657  # Broken: success on invalid input.
5658continue
5659else
5660  echo "$as_me: failed program was:" >&5
5661sed 's/^/| /' conftest.$ac_ext >&5
5662
5663  # Passes both tests.
5664ac_preproc_ok=:
5665break
5666fi
5667
5668rm -f conftest.err conftest.$ac_ext
5669
5670done
5671# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5672rm -f conftest.err conftest.$ac_ext
5673if $ac_preproc_ok; then
5674  break
5675fi
5676
5677    done
5678    ac_cv_prog_CXXCPP=$CXXCPP
5679
5680fi
5681  CXXCPP=$ac_cv_prog_CXXCPP
5682else
5683  ac_cv_prog_CXXCPP=$CXXCPP
5684fi
5685{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5686echo "${ECHO_T}$CXXCPP" >&6; }
5687ac_preproc_ok=false
5688for ac_cxx_preproc_warn_flag in '' yes
5689do
5690  # Use a header file that comes with gcc, so configuring glibc
5691  # with a fresh cross-compiler works.
5692  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5693  # <limits.h> exists even on freestanding compilers.
5694  # On the NeXT, cc -E runs the code through the compiler's parser,
5695  # not just through cpp. "Syntax error" is here to catch this case.
5696  cat >conftest.$ac_ext <<_ACEOF
5697/* confdefs.h.  */
5698_ACEOF
5699cat confdefs.h >>conftest.$ac_ext
5700cat >>conftest.$ac_ext <<_ACEOF
5701/* end confdefs.h.  */
5702#ifdef __STDC__
5703# include <limits.h>
5704#else
5705# include <assert.h>
5706#endif
5707		     Syntax error
5708_ACEOF
5709if { (ac_try="$ac_cpp conftest.$ac_ext"
5710case "(($ac_try" in
5711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712  *) ac_try_echo=$ac_try;;
5713esac
5714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5716  ac_status=$?
5717  grep -v '^ *+' conftest.er1 >conftest.err
5718  rm -f conftest.er1
5719  cat conftest.err >&5
5720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721  (exit $ac_status); } >/dev/null && {
5722	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5723	 test ! -s conftest.err
5724       }; then
5725  :
5726else
5727  echo "$as_me: failed program was:" >&5
5728sed 's/^/| /' conftest.$ac_ext >&5
5729
5730  # Broken: fails on valid input.
5731continue
5732fi
5733
5734rm -f conftest.err conftest.$ac_ext
5735
5736  # OK, works on sane cases.  Now check whether nonexistent headers
5737  # can be detected and how.
5738  cat >conftest.$ac_ext <<_ACEOF
5739/* confdefs.h.  */
5740_ACEOF
5741cat confdefs.h >>conftest.$ac_ext
5742cat >>conftest.$ac_ext <<_ACEOF
5743/* end confdefs.h.  */
5744#include <ac_nonexistent.h>
5745_ACEOF
5746if { (ac_try="$ac_cpp conftest.$ac_ext"
5747case "(($ac_try" in
5748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5749  *) ac_try_echo=$ac_try;;
5750esac
5751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5752  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5753  ac_status=$?
5754  grep -v '^ *+' conftest.er1 >conftest.err
5755  rm -f conftest.er1
5756  cat conftest.err >&5
5757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758  (exit $ac_status); } >/dev/null && {
5759	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5760	 test ! -s conftest.err
5761       }; then
5762  # Broken: success on invalid input.
5763continue
5764else
5765  echo "$as_me: failed program was:" >&5
5766sed 's/^/| /' conftest.$ac_ext >&5
5767
5768  # Passes both tests.
5769ac_preproc_ok=:
5770break
5771fi
5772
5773rm -f conftest.err conftest.$ac_ext
5774
5775done
5776# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5777rm -f conftest.err conftest.$ac_ext
5778if $ac_preproc_ok; then
5779  :
5780else
5781  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5782See \`config.log' for more details." >&5
5783echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5784See \`config.log' for more details." >&2;}
5785   { (exit 1); exit 1; }; }
5786fi
5787
5788ac_ext=cpp
5789ac_cpp='$CXXCPP $CPPFLAGS'
5790ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5791ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5792ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5793
5794fi
5795
5796
5797ac_ext=f
5798ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5799ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5800ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5801if test -n "$ac_tool_prefix"; then
5802  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
5803  do
5804    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5805set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5806{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5808if test "${ac_cv_prog_F77+set}" = set; then
5809  echo $ECHO_N "(cached) $ECHO_C" >&6
5810else
5811  if test -n "$F77"; then
5812  ac_cv_prog_F77="$F77" # Let the user override the test.
5813else
5814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815for as_dir in $PATH
5816do
5817  IFS=$as_save_IFS
5818  test -z "$as_dir" && as_dir=.
5819  for ac_exec_ext in '' $ac_executable_extensions; do
5820  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5821    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5822    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5823    break 2
5824  fi
5825done
5826done
5827IFS=$as_save_IFS
5828
5829fi
5830fi
5831F77=$ac_cv_prog_F77
5832if test -n "$F77"; then
5833  { echo "$as_me:$LINENO: result: $F77" >&5
5834echo "${ECHO_T}$F77" >&6; }
5835else
5836  { echo "$as_me:$LINENO: result: no" >&5
5837echo "${ECHO_T}no" >&6; }
5838fi
5839
5840
5841    test -n "$F77" && break
5842  done
5843fi
5844if test -z "$F77"; then
5845  ac_ct_F77=$F77
5846  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
5847do
5848  # Extract the first word of "$ac_prog", so it can be a program name with args.
5849set dummy $ac_prog; ac_word=$2
5850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5852if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5853  echo $ECHO_N "(cached) $ECHO_C" >&6
5854else
5855  if test -n "$ac_ct_F77"; then
5856  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5857else
5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859for as_dir in $PATH
5860do
5861  IFS=$as_save_IFS
5862  test -z "$as_dir" && as_dir=.
5863  for ac_exec_ext in '' $ac_executable_extensions; do
5864  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5865    ac_cv_prog_ac_ct_F77="$ac_prog"
5866    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867    break 2
5868  fi
5869done
5870done
5871IFS=$as_save_IFS
5872
5873fi
5874fi
5875ac_ct_F77=$ac_cv_prog_ac_ct_F77
5876if test -n "$ac_ct_F77"; then
5877  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5878echo "${ECHO_T}$ac_ct_F77" >&6; }
5879else
5880  { echo "$as_me:$LINENO: result: no" >&5
5881echo "${ECHO_T}no" >&6; }
5882fi
5883
5884
5885  test -n "$ac_ct_F77" && break
5886done
5887
5888  if test "x$ac_ct_F77" = x; then
5889    F77=""
5890  else
5891    case $cross_compiling:$ac_tool_warned in
5892yes:)
5893{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5894whose name does not start with the host triplet.  If you think this
5895configuration is useful to you, please write to autoconf@gnu.org." >&5
5896echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5897whose name does not start with the host triplet.  If you think this
5898configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5899ac_tool_warned=yes ;;
5900esac
5901    F77=$ac_ct_F77
5902  fi
5903fi
5904
5905
5906# Provide some information about the compiler.
5907echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5908ac_compiler=`set X $ac_compile; echo $2`
5909{ (ac_try="$ac_compiler --version >&5"
5910case "(($ac_try" in
5911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912  *) ac_try_echo=$ac_try;;
5913esac
5914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915  (eval "$ac_compiler --version >&5") 2>&5
5916  ac_status=$?
5917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918  (exit $ac_status); }
5919{ (ac_try="$ac_compiler -v >&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 -v >&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); }
5939rm -f a.out
5940
5941# If we don't use `.F' as extension, the preprocessor is not run on the
5942# input file.  (Note that this only needs to work for GNU compilers.)
5943ac_save_ext=$ac_ext
5944ac_ext=F
5945{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5946echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5947if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5948  echo $ECHO_N "(cached) $ECHO_C" >&6
5949else
5950  cat >conftest.$ac_ext <<_ACEOF
5951      program main
5952#ifndef __GNUC__
5953       choke me
5954#endif
5955
5956      end
5957_ACEOF
5958rm -f conftest.$ac_objext
5959if { (ac_try="$ac_compile"
5960case "(($ac_try" in
5961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5962  *) ac_try_echo=$ac_try;;
5963esac
5964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5965  (eval "$ac_compile") 2>conftest.er1
5966  ac_status=$?
5967  grep -v '^ *+' conftest.er1 >conftest.err
5968  rm -f conftest.er1
5969  cat conftest.err >&5
5970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971  (exit $ac_status); } && {
5972	 test -z "$ac_f77_werror_flag" ||
5973	 test ! -s conftest.err
5974       } && test -s conftest.$ac_objext; then
5975  ac_compiler_gnu=yes
5976else
5977  echo "$as_me: failed program was:" >&5
5978sed 's/^/| /' conftest.$ac_ext >&5
5979
5980	ac_compiler_gnu=no
5981fi
5982
5983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5985
5986fi
5987{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5988echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5989ac_ext=$ac_save_ext
5990ac_test_FFLAGS=${FFLAGS+set}
5991ac_save_FFLAGS=$FFLAGS
5992FFLAGS=
5993{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5994echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5995if test "${ac_cv_prog_f77_g+set}" = set; then
5996  echo $ECHO_N "(cached) $ECHO_C" >&6
5997else
5998  FFLAGS=-g
5999cat >conftest.$ac_ext <<_ACEOF
6000      program main
6001
6002      end
6003_ACEOF
6004rm -f conftest.$ac_objext
6005if { (ac_try="$ac_compile"
6006case "(($ac_try" in
6007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008  *) ac_try_echo=$ac_try;;
6009esac
6010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011  (eval "$ac_compile") 2>conftest.er1
6012  ac_status=$?
6013  grep -v '^ *+' conftest.er1 >conftest.err
6014  rm -f conftest.er1
6015  cat conftest.err >&5
6016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017  (exit $ac_status); } && {
6018	 test -z "$ac_f77_werror_flag" ||
6019	 test ! -s conftest.err
6020       } && test -s conftest.$ac_objext; then
6021  ac_cv_prog_f77_g=yes
6022else
6023  echo "$as_me: failed program was:" >&5
6024sed 's/^/| /' conftest.$ac_ext >&5
6025
6026	ac_cv_prog_f77_g=no
6027fi
6028
6029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030
6031fi
6032{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6033echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6034if test "$ac_test_FFLAGS" = set; then
6035  FFLAGS=$ac_save_FFLAGS
6036elif test $ac_cv_prog_f77_g = yes; then
6037  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6038    FFLAGS="-g -O2"
6039  else
6040    FFLAGS="-g"
6041  fi
6042else
6043  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6044    FFLAGS="-O2"
6045  else
6046    FFLAGS=
6047  fi
6048fi
6049
6050G77=`test $ac_compiler_gnu = yes && echo yes`
6051ac_ext=c
6052ac_cpp='$CPP $CPPFLAGS'
6053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6055ac_compiler_gnu=$ac_cv_c_compiler_gnu
6056
6057
6058
6059# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6060
6061# find the maximum length of command line arguments
6062{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6063echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6064if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6065  echo $ECHO_N "(cached) $ECHO_C" >&6
6066else
6067    i=0
6068  teststring="ABCD"
6069
6070  case $build_os in
6071  msdosdjgpp*)
6072    # On DJGPP, this test can blow up pretty badly due to problems in libc
6073    # (any single argument exceeding 2000 bytes causes a buffer overrun
6074    # during glob expansion).  Even if it were fixed, the result of this
6075    # check would be larger than it should be.
6076    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6077    ;;
6078
6079  gnu*)
6080    # Under GNU Hurd, this test is not required because there is
6081    # no limit to the length of command line arguments.
6082    # Libtool will interpret -1 as no limit whatsoever
6083    lt_cv_sys_max_cmd_len=-1;
6084    ;;
6085
6086  cygwin* | mingw*)
6087    # On Win9x/ME, this test blows up -- it succeeds, but takes
6088    # about 5 minutes as the teststring grows exponentially.
6089    # Worse, since 9x/ME are not pre-emptively multitasking,
6090    # you end up with a "frozen" computer, even though with patience
6091    # the test eventually succeeds (with a max line length of 256k).
6092    # Instead, let's just punt: use the minimum linelength reported by
6093    # all of the supported platforms: 8192 (on NT/2K/XP).
6094    lt_cv_sys_max_cmd_len=8192;
6095    ;;
6096
6097  amigaos*)
6098    # On AmigaOS with pdksh, this test takes hours, literally.
6099    # So we just punt and use a minimum line length of 8192.
6100    lt_cv_sys_max_cmd_len=8192;
6101    ;;
6102
6103  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6104    # This has been around since 386BSD, at least.  Likely further.
6105    if test -x /sbin/sysctl; then
6106      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6107    elif test -x /usr/sbin/sysctl; then
6108      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6109    else
6110      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6111    fi
6112    # And add a safety zone
6113    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6114    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6115    ;;
6116
6117  interix*)
6118    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6119    lt_cv_sys_max_cmd_len=196608
6120    ;;
6121
6122  osf*)
6123    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6124    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6125    # nice to cause kernel panics so lets avoid the loop below.
6126    # First set a reasonable default.
6127    lt_cv_sys_max_cmd_len=16384
6128    #
6129    if test -x /sbin/sysconfig; then
6130      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6131        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6132      esac
6133    fi
6134    ;;
6135  sco3.2v5*)
6136    lt_cv_sys_max_cmd_len=102400
6137    ;;
6138  sysv5* | sco5v6* | sysv4.2uw2*)
6139    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6140    if test -n "$kargmax"; then
6141      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6142    else
6143      lt_cv_sys_max_cmd_len=32768
6144    fi
6145    ;;
6146  *)
6147    # If test is not a shell built-in, we'll probably end up computing a
6148    # maximum length that is only half of the actual maximum length, but
6149    # we can't tell.
6150    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6151    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6152	       = "XX$teststring") >/dev/null 2>&1 &&
6153	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6154	    lt_cv_sys_max_cmd_len=$new_result &&
6155	    test $i != 17 # 1/2 MB should be enough
6156    do
6157      i=`expr $i + 1`
6158      teststring=$teststring$teststring
6159    done
6160    teststring=
6161    # Add a significant safety factor because C++ compilers can tack on massive
6162    # amounts of additional arguments before passing them to the linker.
6163    # It appears as though 1/2 is a usable value.
6164    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6165    ;;
6166  esac
6167
6168fi
6169
6170if test -n $lt_cv_sys_max_cmd_len ; then
6171  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6172echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6173else
6174  { echo "$as_me:$LINENO: result: none" >&5
6175echo "${ECHO_T}none" >&6; }
6176fi
6177
6178
6179
6180
6181# Check for command to grab the raw symbol name followed by C symbol from nm.
6182{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6183echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6184if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6185  echo $ECHO_N "(cached) $ECHO_C" >&6
6186else
6187
6188# These are sane defaults that work on at least a few old systems.
6189# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6190
6191# Character class describing NM global symbol codes.
6192symcode='[BCDEGRST]'
6193
6194# Regexp to match symbols that can be accessed directly from C.
6195sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6196
6197# Transform an extracted symbol line into a proper C declaration
6198lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6199
6200# Transform an extracted symbol line into symbol name and symbol address
6201lt_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'"
6202
6203# Define system-specific variables.
6204case $host_os in
6205aix*)
6206  symcode='[BCDT]'
6207  ;;
6208cygwin* | mingw* | pw32*)
6209  symcode='[ABCDGISTW]'
6210  ;;
6211hpux*) # Its linker distinguishes data from code symbols
6212  if test "$host_cpu" = ia64; then
6213    symcode='[ABCDEGRST]'
6214  fi
6215  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6216  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'"
6217  ;;
6218linux*)
6219  if test "$host_cpu" = ia64; then
6220    symcode='[ABCDGIRSTW]'
6221    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6222    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'"
6223  fi
6224  ;;
6225irix* | nonstopux*)
6226  symcode='[BCDEGRST]'
6227  ;;
6228osf*)
6229  symcode='[BCDEGQRST]'
6230  ;;
6231solaris*)
6232  symcode='[BDRT]'
6233  ;;
6234sco3.2v5*)
6235  symcode='[DT]'
6236  ;;
6237sysv4.2uw2*)
6238  symcode='[DT]'
6239  ;;
6240sysv5* | sco5v6* | unixware* | OpenUNIX*)
6241  symcode='[ABDT]'
6242  ;;
6243sysv4)
6244  symcode='[DFNSTU]'
6245  ;;
6246esac
6247
6248# Handle CRLF in mingw tool chain
6249opt_cr=
6250case $build_os in
6251mingw*)
6252  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6253  ;;
6254esac
6255
6256# If we're using GNU nm, then use its standard symbol codes.
6257case `$NM -V 2>&1` in
6258*GNU* | *'with BFD'*)
6259  symcode='[ABCDGIRSTW]' ;;
6260esac
6261
6262# Try without a prefix undercore, then with it.
6263for ac_symprfx in "" "_"; do
6264
6265  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6266  symxfrm="\\1 $ac_symprfx\\2 \\2"
6267
6268  # Write the raw and C identifiers.
6269  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6270
6271  # Check to see that the pipe works correctly.
6272  pipe_works=no
6273
6274  rm -f conftest*
6275  cat > conftest.$ac_ext <<EOF
6276#ifdef __cplusplus
6277extern "C" {
6278#endif
6279char nm_test_var;
6280void nm_test_func(){}
6281#ifdef __cplusplus
6282}
6283#endif
6284int main(){nm_test_var='a';nm_test_func();return(0);}
6285EOF
6286
6287  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6288  (eval $ac_compile) 2>&5
6289  ac_status=$?
6290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291  (exit $ac_status); }; then
6292    # Now try to grab the symbols.
6293    nlist=conftest.nm
6294    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6295  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6296  ac_status=$?
6297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298  (exit $ac_status); } && test -s "$nlist"; then
6299      # Try sorting and uniquifying the output.
6300      if sort "$nlist" | uniq > "$nlist"T; then
6301	mv -f "$nlist"T "$nlist"
6302      else
6303	rm -f "$nlist"T
6304      fi
6305
6306      # Make sure that we snagged all the symbols we need.
6307      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6308	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6309	  cat <<EOF > conftest.$ac_ext
6310#ifdef __cplusplus
6311extern "C" {
6312#endif
6313
6314EOF
6315	  # Now generate the symbol file.
6316	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6317
6318	  cat <<EOF >> conftest.$ac_ext
6319#if defined (__STDC__) && __STDC__
6320# define lt_ptr_t void *
6321#else
6322# define lt_ptr_t char *
6323# define const
6324#endif
6325
6326/* The mapping between symbol names and symbols. */
6327const struct {
6328  const char *name;
6329  lt_ptr_t address;
6330}
6331lt_preloaded_symbols[] =
6332{
6333EOF
6334	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6335	  cat <<\EOF >> conftest.$ac_ext
6336  {0, (lt_ptr_t) 0}
6337};
6338
6339#ifdef __cplusplus
6340}
6341#endif
6342EOF
6343	  # Now try linking the two files.
6344	  mv conftest.$ac_objext conftstm.$ac_objext
6345	  lt_save_LIBS="$LIBS"
6346	  lt_save_CFLAGS="$CFLAGS"
6347	  LIBS="conftstm.$ac_objext"
6348	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6349	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6350  (eval $ac_link) 2>&5
6351  ac_status=$?
6352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6354	    pipe_works=yes
6355	  fi
6356	  LIBS="$lt_save_LIBS"
6357	  CFLAGS="$lt_save_CFLAGS"
6358	else
6359	  echo "cannot find nm_test_func in $nlist" >&5
6360	fi
6361      else
6362	echo "cannot find nm_test_var in $nlist" >&5
6363      fi
6364    else
6365      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6366    fi
6367  else
6368    echo "$progname: failed program was:" >&5
6369    cat conftest.$ac_ext >&5
6370  fi
6371  rm -f conftest* conftst*
6372
6373  # Do not use the global_symbol_pipe unless it works.
6374  if test "$pipe_works" = yes; then
6375    break
6376  else
6377    lt_cv_sys_global_symbol_pipe=
6378  fi
6379done
6380
6381fi
6382
6383if test -z "$lt_cv_sys_global_symbol_pipe"; then
6384  lt_cv_sys_global_symbol_to_cdecl=
6385fi
6386if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6387  { echo "$as_me:$LINENO: result: failed" >&5
6388echo "${ECHO_T}failed" >&6; }
6389else
6390  { echo "$as_me:$LINENO: result: ok" >&5
6391echo "${ECHO_T}ok" >&6; }
6392fi
6393
6394{ echo "$as_me:$LINENO: checking for objdir" >&5
6395echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6396if test "${lt_cv_objdir+set}" = set; then
6397  echo $ECHO_N "(cached) $ECHO_C" >&6
6398else
6399  rm -f .libs 2>/dev/null
6400mkdir .libs 2>/dev/null
6401if test -d .libs; then
6402  lt_cv_objdir=.libs
6403else
6404  # MS-DOS does not allow filenames that begin with a dot.
6405  lt_cv_objdir=_libs
6406fi
6407rmdir .libs 2>/dev/null
6408fi
6409{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6410echo "${ECHO_T}$lt_cv_objdir" >&6; }
6411objdir=$lt_cv_objdir
6412
6413
6414
6415
6416
6417case $host_os in
6418aix3*)
6419  # AIX sometimes has problems with the GCC collect2 program.  For some
6420  # reason, if we set the COLLECT_NAMES environment variable, the problems
6421  # vanish in a puff of smoke.
6422  if test "X${COLLECT_NAMES+set}" != Xset; then
6423    COLLECT_NAMES=
6424    export COLLECT_NAMES
6425  fi
6426  ;;
6427esac
6428
6429# Sed substitution that helps us do robust quoting.  It backslashifies
6430# metacharacters that are still active within double-quoted strings.
6431Xsed='sed -e 1s/^X//'
6432sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6433
6434# Same as above, but do not quote variable references.
6435double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6436
6437# Sed substitution to delay expansion of an escaped shell variable in a
6438# double_quote_subst'ed string.
6439delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6440
6441# Sed substitution to avoid accidental globbing in evaled expressions
6442no_glob_subst='s/\*/\\\*/g'
6443
6444# Constants:
6445rm="rm -f"
6446
6447# Global variables:
6448default_ofile=libtool
6449can_build_shared=yes
6450
6451# All known linkers require a `.a' archive for static linking (except MSVC,
6452# which needs '.lib').
6453libext=a
6454ltmain="$ac_aux_dir/ltmain.sh"
6455ofile="$default_ofile"
6456with_gnu_ld="$lt_cv_prog_gnu_ld"
6457
6458if test -n "$ac_tool_prefix"; then
6459  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6460set dummy ${ac_tool_prefix}ar; ac_word=$2
6461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6463if test "${ac_cv_prog_AR+set}" = set; then
6464  echo $ECHO_N "(cached) $ECHO_C" >&6
6465else
6466  if test -n "$AR"; then
6467  ac_cv_prog_AR="$AR" # Let the user override the test.
6468else
6469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470for as_dir in $PATH
6471do
6472  IFS=$as_save_IFS
6473  test -z "$as_dir" && as_dir=.
6474  for ac_exec_ext in '' $ac_executable_extensions; do
6475  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6476    ac_cv_prog_AR="${ac_tool_prefix}ar"
6477    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6478    break 2
6479  fi
6480done
6481done
6482IFS=$as_save_IFS
6483
6484fi
6485fi
6486AR=$ac_cv_prog_AR
6487if test -n "$AR"; then
6488  { echo "$as_me:$LINENO: result: $AR" >&5
6489echo "${ECHO_T}$AR" >&6; }
6490else
6491  { echo "$as_me:$LINENO: result: no" >&5
6492echo "${ECHO_T}no" >&6; }
6493fi
6494
6495
6496fi
6497if test -z "$ac_cv_prog_AR"; then
6498  ac_ct_AR=$AR
6499  # Extract the first word of "ar", so it can be a program name with args.
6500set dummy ar; ac_word=$2
6501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6503if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6504  echo $ECHO_N "(cached) $ECHO_C" >&6
6505else
6506  if test -n "$ac_ct_AR"; then
6507  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6508else
6509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510for as_dir in $PATH
6511do
6512  IFS=$as_save_IFS
6513  test -z "$as_dir" && as_dir=.
6514  for ac_exec_ext in '' $ac_executable_extensions; do
6515  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516    ac_cv_prog_ac_ct_AR="ar"
6517    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6518    break 2
6519  fi
6520done
6521done
6522IFS=$as_save_IFS
6523
6524fi
6525fi
6526ac_ct_AR=$ac_cv_prog_ac_ct_AR
6527if test -n "$ac_ct_AR"; then
6528  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6529echo "${ECHO_T}$ac_ct_AR" >&6; }
6530else
6531  { echo "$as_me:$LINENO: result: no" >&5
6532echo "${ECHO_T}no" >&6; }
6533fi
6534
6535  if test "x$ac_ct_AR" = x; then
6536    AR="false"
6537  else
6538    case $cross_compiling:$ac_tool_warned in
6539yes:)
6540{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6541whose name does not start with the host triplet.  If you think this
6542configuration is useful to you, please write to autoconf@gnu.org." >&5
6543echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6544whose name does not start with the host triplet.  If you think this
6545configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6546ac_tool_warned=yes ;;
6547esac
6548    AR=$ac_ct_AR
6549  fi
6550else
6551  AR="$ac_cv_prog_AR"
6552fi
6553
6554if test -n "$ac_tool_prefix"; then
6555  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6556set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6557{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6559if test "${ac_cv_prog_RANLIB+set}" = set; then
6560  echo $ECHO_N "(cached) $ECHO_C" >&6
6561else
6562  if test -n "$RANLIB"; then
6563  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6564else
6565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566for as_dir in $PATH
6567do
6568  IFS=$as_save_IFS
6569  test -z "$as_dir" && as_dir=.
6570  for ac_exec_ext in '' $ac_executable_extensions; do
6571  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6573    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574    break 2
6575  fi
6576done
6577done
6578IFS=$as_save_IFS
6579
6580fi
6581fi
6582RANLIB=$ac_cv_prog_RANLIB
6583if test -n "$RANLIB"; then
6584  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6585echo "${ECHO_T}$RANLIB" >&6; }
6586else
6587  { echo "$as_me:$LINENO: result: no" >&5
6588echo "${ECHO_T}no" >&6; }
6589fi
6590
6591
6592fi
6593if test -z "$ac_cv_prog_RANLIB"; then
6594  ac_ct_RANLIB=$RANLIB
6595  # Extract the first word of "ranlib", so it can be a program name with args.
6596set dummy ranlib; ac_word=$2
6597{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6599if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6600  echo $ECHO_N "(cached) $ECHO_C" >&6
6601else
6602  if test -n "$ac_ct_RANLIB"; then
6603  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6604else
6605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606for as_dir in $PATH
6607do
6608  IFS=$as_save_IFS
6609  test -z "$as_dir" && as_dir=.
6610  for ac_exec_ext in '' $ac_executable_extensions; do
6611  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612    ac_cv_prog_ac_ct_RANLIB="ranlib"
6613    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6614    break 2
6615  fi
6616done
6617done
6618IFS=$as_save_IFS
6619
6620fi
6621fi
6622ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6623if test -n "$ac_ct_RANLIB"; then
6624  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6625echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6626else
6627  { echo "$as_me:$LINENO: result: no" >&5
6628echo "${ECHO_T}no" >&6; }
6629fi
6630
6631  if test "x$ac_ct_RANLIB" = x; then
6632    RANLIB=":"
6633  else
6634    case $cross_compiling:$ac_tool_warned in
6635yes:)
6636{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6637whose name does not start with the host triplet.  If you think this
6638configuration is useful to you, please write to autoconf@gnu.org." >&5
6639echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6640whose name does not start with the host triplet.  If you think this
6641configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6642ac_tool_warned=yes ;;
6643esac
6644    RANLIB=$ac_ct_RANLIB
6645  fi
6646else
6647  RANLIB="$ac_cv_prog_RANLIB"
6648fi
6649
6650if test -n "$ac_tool_prefix"; then
6651  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6652set dummy ${ac_tool_prefix}strip; ac_word=$2
6653{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6655if test "${ac_cv_prog_STRIP+set}" = set; then
6656  echo $ECHO_N "(cached) $ECHO_C" >&6
6657else
6658  if test -n "$STRIP"; then
6659  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6660else
6661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662for as_dir in $PATH
6663do
6664  IFS=$as_save_IFS
6665  test -z "$as_dir" && as_dir=.
6666  for ac_exec_ext in '' $ac_executable_extensions; do
6667  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6668    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6669    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6670    break 2
6671  fi
6672done
6673done
6674IFS=$as_save_IFS
6675
6676fi
6677fi
6678STRIP=$ac_cv_prog_STRIP
6679if test -n "$STRIP"; then
6680  { echo "$as_me:$LINENO: result: $STRIP" >&5
6681echo "${ECHO_T}$STRIP" >&6; }
6682else
6683  { echo "$as_me:$LINENO: result: no" >&5
6684echo "${ECHO_T}no" >&6; }
6685fi
6686
6687
6688fi
6689if test -z "$ac_cv_prog_STRIP"; then
6690  ac_ct_STRIP=$STRIP
6691  # Extract the first word of "strip", so it can be a program name with args.
6692set dummy strip; ac_word=$2
6693{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6695if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6696  echo $ECHO_N "(cached) $ECHO_C" >&6
6697else
6698  if test -n "$ac_ct_STRIP"; then
6699  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6700else
6701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702for as_dir in $PATH
6703do
6704  IFS=$as_save_IFS
6705  test -z "$as_dir" && as_dir=.
6706  for ac_exec_ext in '' $ac_executable_extensions; do
6707  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6708    ac_cv_prog_ac_ct_STRIP="strip"
6709    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710    break 2
6711  fi
6712done
6713done
6714IFS=$as_save_IFS
6715
6716fi
6717fi
6718ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6719if test -n "$ac_ct_STRIP"; then
6720  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6721echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6722else
6723  { echo "$as_me:$LINENO: result: no" >&5
6724echo "${ECHO_T}no" >&6; }
6725fi
6726
6727  if test "x$ac_ct_STRIP" = x; then
6728    STRIP=":"
6729  else
6730    case $cross_compiling:$ac_tool_warned in
6731yes:)
6732{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6733whose name does not start with the host triplet.  If you think this
6734configuration is useful to you, please write to autoconf@gnu.org." >&5
6735echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6736whose name does not start with the host triplet.  If you think this
6737configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6738ac_tool_warned=yes ;;
6739esac
6740    STRIP=$ac_ct_STRIP
6741  fi
6742else
6743  STRIP="$ac_cv_prog_STRIP"
6744fi
6745
6746
6747old_CC="$CC"
6748old_CFLAGS="$CFLAGS"
6749
6750# Set sane defaults for various variables
6751test -z "$AR" && AR=ar
6752test -z "$AR_FLAGS" && AR_FLAGS=cru
6753test -z "$AS" && AS=as
6754test -z "$CC" && CC=cc
6755test -z "$LTCC" && LTCC=$CC
6756test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6757test -z "$DLLTOOL" && DLLTOOL=dlltool
6758test -z "$LD" && LD=ld
6759test -z "$LN_S" && LN_S="ln -s"
6760test -z "$MAGIC_CMD" && MAGIC_CMD=file
6761test -z "$NM" && NM=nm
6762test -z "$SED" && SED=sed
6763test -z "$OBJDUMP" && OBJDUMP=objdump
6764test -z "$RANLIB" && RANLIB=:
6765test -z "$STRIP" && STRIP=:
6766test -z "$ac_objext" && ac_objext=o
6767
6768# Determine commands to create old-style static archives.
6769old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6770old_postinstall_cmds='chmod 644 $oldlib'
6771old_postuninstall_cmds=
6772
6773if test -n "$RANLIB"; then
6774  case $host_os in
6775  openbsd*)
6776    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6777    ;;
6778  *)
6779    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6780    ;;
6781  esac
6782  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6783fi
6784
6785for cc_temp in $compiler""; do
6786  case $cc_temp in
6787    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6788    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6789    \-*) ;;
6790    *) break;;
6791  esac
6792done
6793cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6794
6795
6796# Only perform the check for file, if the check method requires it
6797case $deplibs_check_method in
6798file_magic*)
6799  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6800    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6801echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6802if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6803  echo $ECHO_N "(cached) $ECHO_C" >&6
6804else
6805  case $MAGIC_CMD in
6806[\\/*] |  ?:[\\/]*)
6807  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6808  ;;
6809*)
6810  lt_save_MAGIC_CMD="$MAGIC_CMD"
6811  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6812  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6813  for ac_dir in $ac_dummy; do
6814    IFS="$lt_save_ifs"
6815    test -z "$ac_dir" && ac_dir=.
6816    if test -f $ac_dir/${ac_tool_prefix}file; then
6817      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6818      if test -n "$file_magic_test_file"; then
6819	case $deplibs_check_method in
6820	"file_magic "*)
6821	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6822	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6823	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6824	    $EGREP "$file_magic_regex" > /dev/null; then
6825	    :
6826	  else
6827	    cat <<EOF 1>&2
6828
6829*** Warning: the command libtool uses to detect shared libraries,
6830*** $file_magic_cmd, produces output that libtool cannot recognize.
6831*** The result is that libtool may fail to recognize shared libraries
6832*** as such.  This will affect the creation of libtool libraries that
6833*** depend on shared libraries, but programs linked with such libtool
6834*** libraries will work regardless of this problem.  Nevertheless, you
6835*** may want to report the problem to your system manager and/or to
6836*** bug-libtool@gnu.org
6837
6838EOF
6839	  fi ;;
6840	esac
6841      fi
6842      break
6843    fi
6844  done
6845  IFS="$lt_save_ifs"
6846  MAGIC_CMD="$lt_save_MAGIC_CMD"
6847  ;;
6848esac
6849fi
6850
6851MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6852if test -n "$MAGIC_CMD"; then
6853  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6854echo "${ECHO_T}$MAGIC_CMD" >&6; }
6855else
6856  { echo "$as_me:$LINENO: result: no" >&5
6857echo "${ECHO_T}no" >&6; }
6858fi
6859
6860if test -z "$lt_cv_path_MAGIC_CMD"; then
6861  if test -n "$ac_tool_prefix"; then
6862    { echo "$as_me:$LINENO: checking for file" >&5
6863echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6864if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6865  echo $ECHO_N "(cached) $ECHO_C" >&6
6866else
6867  case $MAGIC_CMD in
6868[\\/*] |  ?:[\\/]*)
6869  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6870  ;;
6871*)
6872  lt_save_MAGIC_CMD="$MAGIC_CMD"
6873  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6874  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6875  for ac_dir in $ac_dummy; do
6876    IFS="$lt_save_ifs"
6877    test -z "$ac_dir" && ac_dir=.
6878    if test -f $ac_dir/file; then
6879      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6880      if test -n "$file_magic_test_file"; then
6881	case $deplibs_check_method in
6882	"file_magic "*)
6883	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6884	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6885	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6886	    $EGREP "$file_magic_regex" > /dev/null; then
6887	    :
6888	  else
6889	    cat <<EOF 1>&2
6890
6891*** Warning: the command libtool uses to detect shared libraries,
6892*** $file_magic_cmd, produces output that libtool cannot recognize.
6893*** The result is that libtool may fail to recognize shared libraries
6894*** as such.  This will affect the creation of libtool libraries that
6895*** depend on shared libraries, but programs linked with such libtool
6896*** libraries will work regardless of this problem.  Nevertheless, you
6897*** may want to report the problem to your system manager and/or to
6898*** bug-libtool@gnu.org
6899
6900EOF
6901	  fi ;;
6902	esac
6903      fi
6904      break
6905    fi
6906  done
6907  IFS="$lt_save_ifs"
6908  MAGIC_CMD="$lt_save_MAGIC_CMD"
6909  ;;
6910esac
6911fi
6912
6913MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6914if test -n "$MAGIC_CMD"; then
6915  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6916echo "${ECHO_T}$MAGIC_CMD" >&6; }
6917else
6918  { echo "$as_me:$LINENO: result: no" >&5
6919echo "${ECHO_T}no" >&6; }
6920fi
6921
6922  else
6923    MAGIC_CMD=:
6924  fi
6925fi
6926
6927  fi
6928  ;;
6929esac
6930
6931enable_dlopen=no
6932enable_win32_dll=no
6933
6934# Check whether --enable-libtool-lock was given.
6935if test "${enable_libtool_lock+set}" = set; then
6936  enableval=$enable_libtool_lock;
6937fi
6938
6939test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6940
6941
6942# Check whether --with-pic was given.
6943if test "${with_pic+set}" = set; then
6944  withval=$with_pic; pic_mode="$withval"
6945else
6946  pic_mode=default
6947fi
6948
6949test -z "$pic_mode" && pic_mode=default
6950
6951# Use C for the default configuration in the libtool script
6952tagname=
6953lt_save_CC="$CC"
6954ac_ext=c
6955ac_cpp='$CPP $CPPFLAGS'
6956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6958ac_compiler_gnu=$ac_cv_c_compiler_gnu
6959
6960
6961# Source file extension for C test sources.
6962ac_ext=c
6963
6964# Object file extension for compiled C test sources.
6965objext=o
6966objext=$objext
6967
6968# Code to be used in simple compile tests
6969lt_simple_compile_test_code="int some_variable = 0;\n"
6970
6971# Code to be used in simple link tests
6972lt_simple_link_test_code='int main(){return(0);}\n'
6973
6974
6975# If no C compiler was specified, use CC.
6976LTCC=${LTCC-"$CC"}
6977
6978# If no C compiler flags were specified, use CFLAGS.
6979LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6980
6981# Allow CC to be a program name with arguments.
6982compiler=$CC
6983
6984
6985# save warnings/boilerplate of simple test code
6986ac_outfile=conftest.$ac_objext
6987printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6988eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6989_lt_compiler_boilerplate=`cat conftest.err`
6990$rm conftest*
6991
6992ac_outfile=conftest.$ac_objext
6993printf "$lt_simple_link_test_code" >conftest.$ac_ext
6994eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6995_lt_linker_boilerplate=`cat conftest.err`
6996$rm conftest*
6997
6998
6999
7000lt_prog_compiler_no_builtin_flag=
7001
7002if test "$GCC" = yes; then
7003  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7004
7005
7006{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7007echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7008if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7009  echo $ECHO_N "(cached) $ECHO_C" >&6
7010else
7011  lt_cv_prog_compiler_rtti_exceptions=no
7012  ac_outfile=conftest.$ac_objext
7013   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7014   lt_compiler_flag="-fno-rtti -fno-exceptions"
7015   # Insert the option either (1) after the last *FLAGS variable, or
7016   # (2) before a word containing "conftest.", or (3) at the end.
7017   # Note that $ac_compile itself does not contain backslashes and begins
7018   # with a dollar sign (not a hyphen), so the echo should work correctly.
7019   # The option is referenced via a variable to avoid confusing sed.
7020   lt_compile=`echo "$ac_compile" | $SED \
7021   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7022   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7023   -e 's:$: $lt_compiler_flag:'`
7024   (eval echo "\"\$as_me:7024: $lt_compile\"" >&5)
7025   (eval "$lt_compile" 2>conftest.err)
7026   ac_status=$?
7027   cat conftest.err >&5
7028   echo "$as_me:7028: \$? = $ac_status" >&5
7029   if (exit $ac_status) && test -s "$ac_outfile"; then
7030     # The compiler can only warn and ignore the option if not recognized
7031     # So say no if there are warnings other than the usual output.
7032     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7033     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7034     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7035       lt_cv_prog_compiler_rtti_exceptions=yes
7036     fi
7037   fi
7038   $rm conftest*
7039
7040fi
7041{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7042echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7043
7044if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7045    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7046else
7047    :
7048fi
7049
7050fi
7051
7052lt_prog_compiler_wl=
7053lt_prog_compiler_pic=
7054lt_prog_compiler_static=
7055
7056{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7057echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7058
7059  if test "$GCC" = yes; then
7060    lt_prog_compiler_wl='-Wl,'
7061    lt_prog_compiler_static='-static'
7062
7063    case $host_os in
7064      aix*)
7065      # All AIX code is PIC.
7066      if test "$host_cpu" = ia64; then
7067	# AIX 5 now supports IA64 processor
7068	lt_prog_compiler_static='-Bstatic'
7069      fi
7070      ;;
7071
7072    amigaos*)
7073      # FIXME: we need at least 68020 code to build shared libraries, but
7074      # adding the `-m68020' flag to GCC prevents building anything better,
7075      # like `-m68040'.
7076      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7077      ;;
7078
7079    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7080      # PIC is the default for these OSes.
7081      ;;
7082
7083    mingw* | cygwin* | pw32* | os2*)
7084      # This hack is so that the source file can tell whether it is being
7085      # built for inclusion in a dll (and should export symbols for example).
7086      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7087      # (--disable-auto-import) libraries
7088      lt_prog_compiler_pic='-DDLL_EXPORT'
7089      ;;
7090
7091    darwin* | rhapsody*)
7092      # PIC is the default on this platform
7093      # Common symbols not allowed in MH_DYLIB files
7094      lt_prog_compiler_pic='-fno-common'
7095      ;;
7096
7097    interix3*)
7098      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7099      # Instead, we relocate shared libraries at runtime.
7100      ;;
7101
7102    msdosdjgpp*)
7103      # Just because we use GCC doesn't mean we suddenly get shared libraries
7104      # on systems that don't support them.
7105      lt_prog_compiler_can_build_shared=no
7106      enable_shared=no
7107      ;;
7108
7109    sysv4*MP*)
7110      if test -d /usr/nec; then
7111	lt_prog_compiler_pic=-Kconform_pic
7112      fi
7113      ;;
7114
7115    hpux*)
7116      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7117      # not for PA HP-UX.
7118      case $host_cpu in
7119      hppa*64*|ia64*)
7120	# +Z the default
7121	;;
7122      *)
7123	lt_prog_compiler_pic='-fPIC'
7124	;;
7125      esac
7126      ;;
7127
7128    *)
7129      lt_prog_compiler_pic='-fPIC'
7130      ;;
7131    esac
7132  else
7133    # PORTME Check for flag to pass linker flags through the system compiler.
7134    case $host_os in
7135    aix*)
7136      lt_prog_compiler_wl='-Wl,'
7137      if test "$host_cpu" = ia64; then
7138	# AIX 5 now supports IA64 processor
7139	lt_prog_compiler_static='-Bstatic'
7140      else
7141	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7142      fi
7143      ;;
7144      darwin*)
7145        # PIC is the default on this platform
7146        # Common symbols not allowed in MH_DYLIB files
7147       case $cc_basename in
7148         xlc*)
7149         lt_prog_compiler_pic='-qnocommon'
7150         lt_prog_compiler_wl='-Wl,'
7151         ;;
7152       esac
7153       ;;
7154
7155    mingw* | cygwin* | pw32* | os2*)
7156      # This hack is so that the source file can tell whether it is being
7157      # built for inclusion in a dll (and should export symbols for example).
7158      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7159      # (--disable-auto-import) libraries
7160      lt_prog_compiler_pic='-DDLL_EXPORT'
7161      ;;
7162
7163    hpux9* | hpux10* | hpux11*)
7164      lt_prog_compiler_wl='-Wl,'
7165      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7166      # not for PA HP-UX.
7167      case $host_cpu in
7168      hppa*64*|ia64*)
7169	# +Z the default
7170	;;
7171      *)
7172	lt_prog_compiler_pic='+Z'
7173	;;
7174      esac
7175      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7176      lt_prog_compiler_static='${wl}-a ${wl}archive'
7177      ;;
7178
7179    irix5* | irix6* | nonstopux*)
7180      lt_prog_compiler_wl='-Wl,'
7181      # PIC (with -KPIC) is the default.
7182      lt_prog_compiler_static='-non_shared'
7183      ;;
7184
7185    newsos6)
7186      lt_prog_compiler_pic='-KPIC'
7187      lt_prog_compiler_static='-Bstatic'
7188      ;;
7189
7190    linux*)
7191      case $cc_basename in
7192      icc* | ecc*)
7193	lt_prog_compiler_wl='-Wl,'
7194	lt_prog_compiler_pic='-KPIC'
7195	lt_prog_compiler_static='-static'
7196        ;;
7197      pgcc* | pgf77* | pgf90* | pgf95*)
7198        # Portland Group compilers (*not* the Pentium gcc compiler,
7199	# which looks to be a dead project)
7200	lt_prog_compiler_wl='-Wl,'
7201	lt_prog_compiler_pic='-fpic'
7202	lt_prog_compiler_static='-Bstatic'
7203        ;;
7204      ccc*)
7205        lt_prog_compiler_wl='-Wl,'
7206        # All Alpha code is PIC.
7207        lt_prog_compiler_static='-non_shared'
7208        ;;
7209      como)
7210        lt_prog_compiler_wl='-lopt='
7211        ;;
7212      *)
7213        case `$CC -V 2>&1 | sed 5q` in
7214	*Sun\ C*)
7215	  # Sun C 5.9
7216	  lt_prog_compiler_pic='-KPIC'
7217	  lt_prog_compiler_static='-Bstatic'
7218	  lt_prog_compiler_wl='-Wl,'
7219	  ;;
7220	*Sun\ F*)
7221	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7222	  lt_prog_compiler_pic='-KPIC'
7223	  lt_prog_compiler_static='-Bstatic'
7224	  lt_prog_compiler_wl=''
7225	  ;;
7226	esac
7227	;;
7228      esac
7229      ;;
7230
7231    osf3* | osf4* | osf5*)
7232      lt_prog_compiler_wl='-Wl,'
7233      # All OSF/1 code is PIC.
7234      lt_prog_compiler_static='-non_shared'
7235      ;;
7236
7237    solaris*)
7238      lt_prog_compiler_pic='-KPIC'
7239      lt_prog_compiler_static='-Bstatic'
7240      case $cc_basename in
7241      f77* | f90* | f95*)
7242	lt_prog_compiler_wl='-Qoption ld ';;
7243      *)
7244	lt_prog_compiler_wl='-Wl,';;
7245      esac
7246      ;;
7247
7248    sunos4*)
7249      lt_prog_compiler_wl='-Qoption ld '
7250      lt_prog_compiler_pic='-PIC'
7251      lt_prog_compiler_static='-Bstatic'
7252      ;;
7253
7254    sysv4 | sysv4.2uw2* | sysv4.3*)
7255      lt_prog_compiler_wl='-Wl,'
7256      lt_prog_compiler_pic='-KPIC'
7257      lt_prog_compiler_static='-Bstatic'
7258      ;;
7259
7260    sysv4*MP*)
7261      if test -d /usr/nec ;then
7262	lt_prog_compiler_pic='-Kconform_pic'
7263	lt_prog_compiler_static='-Bstatic'
7264      fi
7265      ;;
7266
7267    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7268      lt_prog_compiler_wl='-Wl,'
7269      lt_prog_compiler_pic='-KPIC'
7270      lt_prog_compiler_static='-Bstatic'
7271      ;;
7272
7273    unicos*)
7274      lt_prog_compiler_wl='-Wl,'
7275      lt_prog_compiler_can_build_shared=no
7276      ;;
7277
7278    uts4*)
7279      lt_prog_compiler_pic='-pic'
7280      lt_prog_compiler_static='-Bstatic'
7281      ;;
7282
7283    *)
7284      lt_prog_compiler_can_build_shared=no
7285      ;;
7286    esac
7287  fi
7288
7289{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7290echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7291
7292#
7293# Check to make sure the PIC flag actually works.
7294#
7295if test -n "$lt_prog_compiler_pic"; then
7296
7297{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7298echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7299if test "${lt_prog_compiler_pic_works+set}" = set; then
7300  echo $ECHO_N "(cached) $ECHO_C" >&6
7301else
7302  lt_prog_compiler_pic_works=no
7303  ac_outfile=conftest.$ac_objext
7304   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7305   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7306   # Insert the option either (1) after the last *FLAGS variable, or
7307   # (2) before a word containing "conftest.", or (3) at the end.
7308   # Note that $ac_compile itself does not contain backslashes and begins
7309   # with a dollar sign (not a hyphen), so the echo should work correctly.
7310   # The option is referenced via a variable to avoid confusing sed.
7311   lt_compile=`echo "$ac_compile" | $SED \
7312   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7313   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7314   -e 's:$: $lt_compiler_flag:'`
7315   (eval echo "\"\$as_me:7315: $lt_compile\"" >&5)
7316   (eval "$lt_compile" 2>conftest.err)
7317   ac_status=$?
7318   cat conftest.err >&5
7319   echo "$as_me:7319: \$? = $ac_status" >&5
7320   if (exit $ac_status) && test -s "$ac_outfile"; then
7321     # The compiler can only warn and ignore the option if not recognized
7322     # So say no if there are warnings other than the usual output.
7323     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7324     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7325     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7326       lt_prog_compiler_pic_works=yes
7327     fi
7328   fi
7329   $rm conftest*
7330
7331fi
7332{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7333echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7334
7335if test x"$lt_prog_compiler_pic_works" = xyes; then
7336    case $lt_prog_compiler_pic in
7337     "" | " "*) ;;
7338     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7339     esac
7340else
7341    lt_prog_compiler_pic=
7342     lt_prog_compiler_can_build_shared=no
7343fi
7344
7345fi
7346case $host_os in
7347  # For platforms which do not support PIC, -DPIC is meaningless:
7348  *djgpp*)
7349    lt_prog_compiler_pic=
7350    ;;
7351  *)
7352    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7353    ;;
7354esac
7355
7356#
7357# Check to make sure the static flag actually works.
7358#
7359wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7360{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7361echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7362if test "${lt_prog_compiler_static_works+set}" = set; then
7363  echo $ECHO_N "(cached) $ECHO_C" >&6
7364else
7365  lt_prog_compiler_static_works=no
7366   save_LDFLAGS="$LDFLAGS"
7367   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7368   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7369   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7370     # The linker can only warn and ignore the option if not recognized
7371     # So say no if there are warnings
7372     if test -s conftest.err; then
7373       # Append any errors to the config.log.
7374       cat conftest.err 1>&5
7375       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7376       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7377       if diff conftest.exp conftest.er2 >/dev/null; then
7378         lt_prog_compiler_static_works=yes
7379       fi
7380     else
7381       lt_prog_compiler_static_works=yes
7382     fi
7383   fi
7384   $rm conftest*
7385   LDFLAGS="$save_LDFLAGS"
7386
7387fi
7388{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7389echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7390
7391if test x"$lt_prog_compiler_static_works" = xyes; then
7392    :
7393else
7394    lt_prog_compiler_static=
7395fi
7396
7397
7398{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7399echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7400if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7401  echo $ECHO_N "(cached) $ECHO_C" >&6
7402else
7403  lt_cv_prog_compiler_c_o=no
7404   $rm -r conftest 2>/dev/null
7405   mkdir conftest
7406   cd conftest
7407   mkdir out
7408   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7409
7410   lt_compiler_flag="-o out/conftest2.$ac_objext"
7411   # Insert the option either (1) after the last *FLAGS variable, or
7412   # (2) before a word containing "conftest.", or (3) at the end.
7413   # Note that $ac_compile itself does not contain backslashes and begins
7414   # with a dollar sign (not a hyphen), so the echo should work correctly.
7415   lt_compile=`echo "$ac_compile" | $SED \
7416   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7417   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7418   -e 's:$: $lt_compiler_flag:'`
7419   (eval echo "\"\$as_me:7419: $lt_compile\"" >&5)
7420   (eval "$lt_compile" 2>out/conftest.err)
7421   ac_status=$?
7422   cat out/conftest.err >&5
7423   echo "$as_me:7423: \$? = $ac_status" >&5
7424   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7425   then
7426     # The compiler can only warn and ignore the option if not recognized
7427     # So say no if there are warnings
7428     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7429     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7430     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7431       lt_cv_prog_compiler_c_o=yes
7432     fi
7433   fi
7434   chmod u+w . 2>&5
7435   $rm conftest*
7436   # SGI C++ compiler will create directory out/ii_files/ for
7437   # template instantiation
7438   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7439   $rm out/* && rmdir out
7440   cd ..
7441   rmdir conftest
7442   $rm conftest*
7443
7444fi
7445{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7446echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7447
7448
7449hard_links="nottested"
7450if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7451  # do not overwrite the value of need_locks provided by the user
7452  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7453echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7454  hard_links=yes
7455  $rm conftest*
7456  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7457  touch conftest.a
7458  ln conftest.a conftest.b 2>&5 || hard_links=no
7459  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7460  { echo "$as_me:$LINENO: result: $hard_links" >&5
7461echo "${ECHO_T}$hard_links" >&6; }
7462  if test "$hard_links" = no; then
7463    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7464echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7465    need_locks=warn
7466  fi
7467else
7468  need_locks=no
7469fi
7470
7471{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7472echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7473
7474  runpath_var=
7475  allow_undefined_flag=
7476  enable_shared_with_static_runtimes=no
7477  archive_cmds=
7478  archive_expsym_cmds=
7479  old_archive_From_new_cmds=
7480  old_archive_from_expsyms_cmds=
7481  export_dynamic_flag_spec=
7482  whole_archive_flag_spec=
7483  thread_safe_flag_spec=
7484  hardcode_libdir_flag_spec=
7485  hardcode_libdir_flag_spec_ld=
7486  hardcode_libdir_separator=
7487  hardcode_direct=no
7488  hardcode_minus_L=no
7489  hardcode_shlibpath_var=unsupported
7490  link_all_deplibs=unknown
7491  hardcode_automatic=no
7492  module_cmds=
7493  module_expsym_cmds=
7494  always_export_symbols=no
7495  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7496  # include_expsyms should be a list of space-separated symbols to be *always*
7497  # included in the symbol list
7498  include_expsyms=
7499  # exclude_expsyms can be an extended regexp of symbols to exclude
7500  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7501  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7502  # as well as any symbol that contains `d'.
7503  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7504  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7505  # platforms (ab)use it in PIC code, but their linkers get confused if
7506  # the symbol is explicitly referenced.  Since portable code cannot
7507  # rely on this symbol name, it's probably fine to never include it in
7508  # preloaded symbol tables.
7509  extract_expsyms_cmds=
7510  # Just being paranoid about ensuring that cc_basename is set.
7511  for cc_temp in $compiler""; do
7512  case $cc_temp in
7513    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7514    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7515    \-*) ;;
7516    *) break;;
7517  esac
7518done
7519cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7520
7521  case $host_os in
7522  cygwin* | mingw* | pw32*)
7523    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7524    # When not using gcc, we currently assume that we are using
7525    # Microsoft Visual C++.
7526    if test "$GCC" != yes; then
7527      with_gnu_ld=no
7528    fi
7529    ;;
7530  interix*)
7531    # we just hope/assume this is gcc and not c89 (= MSVC++)
7532    with_gnu_ld=yes
7533    ;;
7534  openbsd*)
7535    with_gnu_ld=no
7536    ;;
7537  esac
7538
7539  ld_shlibs=yes
7540  if test "$with_gnu_ld" = yes; then
7541    # If archive_cmds runs LD, not CC, wlarc should be empty
7542    wlarc='${wl}'
7543
7544    # Set some defaults for GNU ld with shared library support. These
7545    # are reset later if shared libraries are not supported. Putting them
7546    # here allows them to be overridden if necessary.
7547    runpath_var=LD_RUN_PATH
7548    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7549    export_dynamic_flag_spec='${wl}--export-dynamic'
7550    # ancient GNU ld didn't support --whole-archive et. al.
7551    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7552	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7553      else
7554  	whole_archive_flag_spec=
7555    fi
7556    supports_anon_versioning=no
7557    case `$LD -v 2>/dev/null` in
7558      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7559      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7560      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7561      *\ 2.11.*) ;; # other 2.11 versions
7562      *) supports_anon_versioning=yes ;;
7563    esac
7564
7565    # See if GNU ld supports shared libraries.
7566    case $host_os in
7567    aix3* | aix4* | aix5*)
7568      # On AIX/PPC, the GNU linker is very broken
7569      if test "$host_cpu" != ia64; then
7570	ld_shlibs=no
7571	cat <<EOF 1>&2
7572
7573*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7574*** to be unable to reliably create shared libraries on AIX.
7575*** Therefore, libtool is disabling shared libraries support.  If you
7576*** really care for shared libraries, you may want to modify your PATH
7577*** so that a non-GNU linker is found, and then restart.
7578
7579EOF
7580      fi
7581      ;;
7582
7583    amigaos*)
7584      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)'
7585      hardcode_libdir_flag_spec='-L$libdir'
7586      hardcode_minus_L=yes
7587
7588      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7589      # that the semantics of dynamic libraries on AmigaOS, at least up
7590      # to version 4, is to share data among multiple programs linked
7591      # with the same dynamic library.  Since this doesn't match the
7592      # behavior of shared libraries on other platforms, we can't use
7593      # them.
7594      ld_shlibs=no
7595      ;;
7596
7597    beos*)
7598      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7599	allow_undefined_flag=unsupported
7600	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7601	# support --undefined.  This deserves some investigation.  FIXME
7602	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7603      else
7604	ld_shlibs=no
7605      fi
7606      ;;
7607
7608    cygwin* | mingw* | pw32*)
7609      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7610      # as there is no search path for DLLs.
7611      hardcode_libdir_flag_spec='-L$libdir'
7612      allow_undefined_flag=unsupported
7613      always_export_symbols=no
7614      enable_shared_with_static_runtimes=yes
7615      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7616
7617      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7618        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7619	# If the export-symbols file already is a .def file (1st line
7620	# is EXPORTS), use it as is; otherwise, prepend...
7621	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7622	  cp $export_symbols $output_objdir/$soname.def;
7623	else
7624	  echo EXPORTS > $output_objdir/$soname.def;
7625	  cat $export_symbols >> $output_objdir/$soname.def;
7626	fi~
7627	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7628      else
7629	ld_shlibs=no
7630      fi
7631      ;;
7632
7633    interix3*)
7634      hardcode_direct=no
7635      hardcode_shlibpath_var=no
7636      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7637      export_dynamic_flag_spec='${wl}-E'
7638      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7639      # Instead, shared libraries are loaded at an image base (0x10000000 by
7640      # default) and relocated if they conflict, which is a slow very memory
7641      # consuming and fragmenting process.  To avoid this, we pick a random,
7642      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7643      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7644      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7645      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'
7646      ;;
7647
7648    linux*)
7649      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7650	tmp_addflag=
7651	case $cc_basename,$host_cpu in
7652	pgcc*)				# Portland Group C compiler
7653	  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'
7654	  tmp_addflag=' $pic_flag'
7655	  ;;
7656	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7657	  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'
7658	  tmp_addflag=' $pic_flag -Mnomain' ;;
7659	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7660	  tmp_addflag=' -i_dynamic' ;;
7661	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7662	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7663	ifc* | ifort*)			# Intel Fortran compiler
7664	  tmp_addflag=' -nofor_main' ;;
7665	esac
7666	case `$CC -V 2>&1 | sed 5q` in
7667	*Sun\ C*)			# Sun C 5.9
7668	  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 /dev/null'
7669	  tmp_sharedflag='-G' ;;
7670	*Sun\ F*)			# Sun Fortran 8.3
7671	  tmp_sharedflag='-G' ;;
7672	*)
7673	  tmp_sharedflag='-shared' ;;
7674	esac
7675	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7676
7677	if test $supports_anon_versioning = yes; then
7678	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7679  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7680  $echo "local: *; };" >> $output_objdir/$libname.ver~
7681	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7682	fi
7683      else
7684	ld_shlibs=no
7685      fi
7686      ;;
7687
7688    netbsd*)
7689      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7690	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7691	wlarc=
7692      else
7693	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7694	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7695      fi
7696      ;;
7697
7698    solaris*)
7699      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7700	ld_shlibs=no
7701	cat <<EOF 1>&2
7702
7703*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7704*** create shared libraries on Solaris systems.  Therefore, libtool
7705*** is disabling shared libraries support.  We urge you to upgrade GNU
7706*** binutils to release 2.9.1 or newer.  Another option is to modify
7707*** your PATH or compiler configuration so that the native linker is
7708*** used, and then restart.
7709
7710EOF
7711      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7712	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7713	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7714      else
7715	ld_shlibs=no
7716      fi
7717      ;;
7718
7719    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7720      case `$LD -v 2>&1` in
7721        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7722	ld_shlibs=no
7723	cat <<_LT_EOF 1>&2
7724
7725*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7726*** reliably create shared libraries on SCO systems.  Therefore, libtool
7727*** is disabling shared libraries support.  We urge you to upgrade GNU
7728*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7729*** your PATH or compiler configuration so that the native linker is
7730*** used, and then restart.
7731
7732_LT_EOF
7733	;;
7734	*)
7735	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7736	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7737	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7738	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7739	  else
7740	    ld_shlibs=no
7741	  fi
7742	;;
7743      esac
7744      ;;
7745
7746    sunos4*)
7747      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7748      wlarc=
7749      hardcode_direct=yes
7750      hardcode_shlibpath_var=no
7751      ;;
7752
7753    *)
7754      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7755	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7756	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7757      else
7758	ld_shlibs=no
7759      fi
7760      ;;
7761    esac
7762
7763    if test "$ld_shlibs" = no; then
7764      runpath_var=
7765      hardcode_libdir_flag_spec=
7766      export_dynamic_flag_spec=
7767      whole_archive_flag_spec=
7768    fi
7769  else
7770    # PORTME fill in a description of your system's linker (not GNU ld)
7771    case $host_os in
7772    aix3*)
7773      allow_undefined_flag=unsupported
7774      always_export_symbols=yes
7775      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'
7776      # Note: this linker hardcodes the directories in LIBPATH if there
7777      # are no directories specified by -L.
7778      hardcode_minus_L=yes
7779      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7780	# Neither direct hardcoding nor static linking is supported with a
7781	# broken collect2.
7782	hardcode_direct=unsupported
7783      fi
7784      ;;
7785
7786    aix4* | aix5*)
7787      if test "$host_cpu" = ia64; then
7788	# On IA64, the linker does run time linking by default, so we don't
7789	# have to do anything special.
7790	aix_use_runtimelinking=no
7791	exp_sym_flag='-Bexport'
7792	no_entry_flag=""
7793      else
7794	# If we're using GNU nm, then we don't want the "-C" option.
7795	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7796	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7797	  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'
7798	else
7799	  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'
7800	fi
7801	aix_use_runtimelinking=no
7802
7803	# Test if we are trying to use run time linking or normal
7804	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7805	# need to do runtime linking.
7806	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7807	  for ld_flag in $LDFLAGS; do
7808  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7809  	    aix_use_runtimelinking=yes
7810  	    break
7811  	  fi
7812	  done
7813	  ;;
7814	esac
7815
7816	exp_sym_flag='-bexport'
7817	no_entry_flag='-bnoentry'
7818      fi
7819
7820      # When large executables or shared objects are built, AIX ld can
7821      # have problems creating the table of contents.  If linking a library
7822      # or program results in "error TOC overflow" add -mminimal-toc to
7823      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7824      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7825
7826      archive_cmds=''
7827      hardcode_direct=yes
7828      hardcode_libdir_separator=':'
7829      link_all_deplibs=yes
7830
7831      if test "$GCC" = yes; then
7832	case $host_os in aix4.[012]|aix4.[012].*)
7833	# We only want to do this on AIX 4.2 and lower, the check
7834	# below for broken collect2 doesn't work under 4.3+
7835	  collect2name=`${CC} -print-prog-name=collect2`
7836	  if test -f "$collect2name" && \
7837  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7838	  then
7839  	  # We have reworked collect2
7840  	  hardcode_direct=yes
7841	  else
7842  	  # We have old collect2
7843  	  hardcode_direct=unsupported
7844  	  # It fails to find uninstalled libraries when the uninstalled
7845  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7846  	  # to unsupported forces relinking
7847  	  hardcode_minus_L=yes
7848  	  hardcode_libdir_flag_spec='-L$libdir'
7849  	  hardcode_libdir_separator=
7850	  fi
7851	  ;;
7852	esac
7853	shared_flag='-shared'
7854	if test "$aix_use_runtimelinking" = yes; then
7855	  shared_flag="$shared_flag "'${wl}-G'
7856	fi
7857      else
7858	# not using gcc
7859	if test "$host_cpu" = ia64; then
7860  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7861  	# chokes on -Wl,-G. The following line is correct:
7862	  shared_flag='-G'
7863	else
7864	  if test "$aix_use_runtimelinking" = yes; then
7865	    shared_flag='${wl}-G'
7866	  else
7867	    shared_flag='${wl}-bM:SRE'
7868	  fi
7869	fi
7870      fi
7871
7872      # It seems that -bexpall does not export symbols beginning with
7873      # underscore (_), so it is better to generate a list of symbols to export.
7874      always_export_symbols=yes
7875      if test "$aix_use_runtimelinking" = yes; then
7876	# Warning - without using the other runtime loading flags (-brtl),
7877	# -berok will link without error, but may produce a broken library.
7878	allow_undefined_flag='-berok'
7879       # Determine the default libpath from the value encoded in an empty executable.
7880       cat >conftest.$ac_ext <<_ACEOF
7881/* confdefs.h.  */
7882_ACEOF
7883cat confdefs.h >>conftest.$ac_ext
7884cat >>conftest.$ac_ext <<_ACEOF
7885/* end confdefs.h.  */
7886
7887int
7888main ()
7889{
7890
7891  ;
7892  return 0;
7893}
7894_ACEOF
7895rm -f conftest.$ac_objext conftest$ac_exeext
7896if { (ac_try="$ac_link"
7897case "(($ac_try" in
7898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899  *) ac_try_echo=$ac_try;;
7900esac
7901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7902  (eval "$ac_link") 2>conftest.er1
7903  ac_status=$?
7904  grep -v '^ *+' conftest.er1 >conftest.err
7905  rm -f conftest.er1
7906  cat conftest.err >&5
7907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908  (exit $ac_status); } && {
7909	 test -z "$ac_c_werror_flag" ||
7910	 test ! -s conftest.err
7911       } && test -s conftest$ac_exeext &&
7912       $as_test_x conftest$ac_exeext; then
7913
7914aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7915}'`
7916# Check for a 64-bit object if we didn't find anything.
7917if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7918}'`; fi
7919else
7920  echo "$as_me: failed program was:" >&5
7921sed 's/^/| /' conftest.$ac_ext >&5
7922
7923
7924fi
7925
7926rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7927      conftest$ac_exeext conftest.$ac_ext
7928if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7929
7930       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7931	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"
7932       else
7933	if test "$host_cpu" = ia64; then
7934	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7935	  allow_undefined_flag="-z nodefs"
7936	  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"
7937	else
7938	 # Determine the default libpath from the value encoded in an empty executable.
7939	 cat >conftest.$ac_ext <<_ACEOF
7940/* confdefs.h.  */
7941_ACEOF
7942cat confdefs.h >>conftest.$ac_ext
7943cat >>conftest.$ac_ext <<_ACEOF
7944/* end confdefs.h.  */
7945
7946int
7947main ()
7948{
7949
7950  ;
7951  return 0;
7952}
7953_ACEOF
7954rm -f conftest.$ac_objext conftest$ac_exeext
7955if { (ac_try="$ac_link"
7956case "(($ac_try" in
7957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7958  *) ac_try_echo=$ac_try;;
7959esac
7960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7961  (eval "$ac_link") 2>conftest.er1
7962  ac_status=$?
7963  grep -v '^ *+' conftest.er1 >conftest.err
7964  rm -f conftest.er1
7965  cat conftest.err >&5
7966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967  (exit $ac_status); } && {
7968	 test -z "$ac_c_werror_flag" ||
7969	 test ! -s conftest.err
7970       } && test -s conftest$ac_exeext &&
7971       $as_test_x conftest$ac_exeext; then
7972
7973aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7974}'`
7975# Check for a 64-bit object if we didn't find anything.
7976if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7977}'`; fi
7978else
7979  echo "$as_me: failed program was:" >&5
7980sed 's/^/| /' conftest.$ac_ext >&5
7981
7982
7983fi
7984
7985rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7986      conftest$ac_exeext conftest.$ac_ext
7987if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7988
7989	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7990	  # Warning - without using the other run time loading flags,
7991	  # -berok will link without error, but may produce a broken library.
7992	  no_undefined_flag=' ${wl}-bernotok'
7993	  allow_undefined_flag=' ${wl}-berok'
7994	  # Exported symbols can be pulled into shared objects from archives
7995	  whole_archive_flag_spec='$convenience'
7996	  archive_cmds_need_lc=yes
7997	  # This is similar to how AIX traditionally builds its shared libraries.
7998	  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'
7999	fi
8000      fi
8001      ;;
8002
8003    amigaos*)
8004      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)'
8005      hardcode_libdir_flag_spec='-L$libdir'
8006      hardcode_minus_L=yes
8007      # see comment about different semantics on the GNU ld section
8008      ld_shlibs=no
8009      ;;
8010
8011    bsdi[45]*)
8012      export_dynamic_flag_spec=-rdynamic
8013      ;;
8014
8015    cygwin* | mingw* | pw32*)
8016      # When not using gcc, we currently assume that we are using
8017      # Microsoft Visual C++.
8018      # hardcode_libdir_flag_spec is actually meaningless, as there is
8019      # no search path for DLLs.
8020      hardcode_libdir_flag_spec=' '
8021      allow_undefined_flag=unsupported
8022      # Tell ltmain to make .lib files, not .a files.
8023      libext=lib
8024      # Tell ltmain to make .dll files, not .so files.
8025      shrext_cmds=".dll"
8026      # FIXME: Setting linknames here is a bad hack.
8027      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8028      # The linker will automatically build a .lib file if we build a DLL.
8029      old_archive_From_new_cmds='true'
8030      # FIXME: Should let the user specify the lib program.
8031      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8032      fix_srcfile_path='`cygpath -w "$srcfile"`'
8033      enable_shared_with_static_runtimes=yes
8034      ;;
8035
8036    darwin* | rhapsody*)
8037      case $host_os in
8038        rhapsody* | darwin1.[012])
8039         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8040         ;;
8041       *) # Darwin 1.3 on
8042         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8043           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8044         else
8045           case ${MACOSX_DEPLOYMENT_TARGET} in
8046             10.[012])
8047               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8048               ;;
8049             10.*)
8050               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8051               ;;
8052           esac
8053         fi
8054         ;;
8055      esac
8056      archive_cmds_need_lc=no
8057      hardcode_direct=no
8058      hardcode_automatic=yes
8059      hardcode_shlibpath_var=unsupported
8060      whole_archive_flag_spec=''
8061      link_all_deplibs=yes
8062    if test "$GCC" = yes ; then
8063    	output_verbose_link_cmd='echo'
8064        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8065      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8066      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8067      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}'
8068      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}'
8069    else
8070      case $cc_basename in
8071        xlc*)
8072         output_verbose_link_cmd='echo'
8073         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8074         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8075          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8076         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8077          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}'
8078          ;;
8079       *)
8080         ld_shlibs=no
8081          ;;
8082      esac
8083    fi
8084      ;;
8085
8086    dgux*)
8087      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8088      hardcode_libdir_flag_spec='-L$libdir'
8089      hardcode_shlibpath_var=no
8090      ;;
8091
8092    freebsd1*)
8093      ld_shlibs=no
8094      ;;
8095
8096    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8097    # support.  Future versions do this automatically, but an explicit c++rt0.o
8098    # does not break anything, and helps significantly (at the cost of a little
8099    # extra space).
8100    freebsd2.2*)
8101      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8102      hardcode_libdir_flag_spec='-R$libdir'
8103      hardcode_direct=yes
8104      hardcode_shlibpath_var=no
8105      ;;
8106
8107    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8108    freebsd2*)
8109      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8110      hardcode_direct=yes
8111      hardcode_minus_L=yes
8112      hardcode_shlibpath_var=no
8113      ;;
8114
8115    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8116    freebsd* | kfreebsd*-gnu | dragonfly*)
8117      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8118      hardcode_libdir_flag_spec='-R$libdir'
8119      hardcode_direct=yes
8120      hardcode_shlibpath_var=no
8121      ;;
8122
8123    hpux9*)
8124      if test "$GCC" = yes; then
8125	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'
8126      else
8127	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'
8128      fi
8129      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8130      hardcode_libdir_separator=:
8131      hardcode_direct=yes
8132
8133      # hardcode_minus_L: Not really in the search PATH,
8134      # but as the default location of the library.
8135      hardcode_minus_L=yes
8136      export_dynamic_flag_spec='${wl}-E'
8137      ;;
8138
8139    hpux10*)
8140      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8141	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8142      else
8143	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8144      fi
8145      if test "$with_gnu_ld" = no; then
8146	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8147	hardcode_libdir_separator=:
8148
8149	hardcode_direct=yes
8150	export_dynamic_flag_spec='${wl}-E'
8151
8152	# hardcode_minus_L: Not really in the search PATH,
8153	# but as the default location of the library.
8154	hardcode_minus_L=yes
8155      fi
8156      ;;
8157
8158    hpux11*)
8159      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8160	case $host_cpu in
8161	hppa*64*)
8162	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8163	  ;;
8164	ia64*)
8165	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8166	  ;;
8167	*)
8168	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8169	  ;;
8170	esac
8171      else
8172	case $host_cpu in
8173	hppa*64*)
8174	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8175	  ;;
8176	ia64*)
8177	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8178	  ;;
8179	*)
8180	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8181	  ;;
8182	esac
8183      fi
8184      if test "$with_gnu_ld" = no; then
8185	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8186	hardcode_libdir_separator=:
8187
8188	case $host_cpu in
8189	hppa*64*|ia64*)
8190	  hardcode_libdir_flag_spec_ld='+b $libdir'
8191	  hardcode_direct=no
8192	  hardcode_shlibpath_var=no
8193	  ;;
8194	*)
8195	  hardcode_direct=yes
8196	  export_dynamic_flag_spec='${wl}-E'
8197
8198	  # hardcode_minus_L: Not really in the search PATH,
8199	  # but as the default location of the library.
8200	  hardcode_minus_L=yes
8201	  ;;
8202	esac
8203      fi
8204      ;;
8205
8206    irix5* | irix6* | nonstopux*)
8207      if test "$GCC" = yes; then
8208	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'
8209      else
8210	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'
8211	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8212      fi
8213      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8214      hardcode_libdir_separator=:
8215      link_all_deplibs=yes
8216      ;;
8217
8218    netbsd*)
8219      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8220	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8221      else
8222	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8223      fi
8224      hardcode_libdir_flag_spec='-R$libdir'
8225      hardcode_direct=yes
8226      hardcode_shlibpath_var=no
8227      ;;
8228
8229    newsos6)
8230      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8231      hardcode_direct=yes
8232      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8233      hardcode_libdir_separator=:
8234      hardcode_shlibpath_var=no
8235      ;;
8236
8237    openbsd*)
8238      hardcode_direct=yes
8239      hardcode_shlibpath_var=no
8240      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8241	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8242	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8243	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8244	export_dynamic_flag_spec='${wl}-E'
8245      else
8246       case $host_os in
8247	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8248	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8249	   hardcode_libdir_flag_spec='-R$libdir'
8250	   ;;
8251	 *)
8252	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8253	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8254	   ;;
8255       esac
8256      fi
8257      ;;
8258
8259    os2*)
8260      hardcode_libdir_flag_spec='-L$libdir'
8261      hardcode_minus_L=yes
8262      allow_undefined_flag=unsupported
8263      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'
8264      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8265      ;;
8266
8267    osf3*)
8268      if test "$GCC" = yes; then
8269	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8270	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'
8271      else
8272	allow_undefined_flag=' -expect_unresolved \*'
8273	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'
8274      fi
8275      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8276      hardcode_libdir_separator=:
8277      ;;
8278
8279    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8280      if test "$GCC" = yes; then
8281	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8282	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'
8283	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8284      else
8285	allow_undefined_flag=' -expect_unresolved \*'
8286	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'
8287	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8288	$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'
8289
8290	# Both c and cxx compiler support -rpath directly
8291	hardcode_libdir_flag_spec='-rpath $libdir'
8292      fi
8293      hardcode_libdir_separator=:
8294      ;;
8295
8296    solaris*)
8297      no_undefined_flag=' -z text'
8298      if test "$GCC" = yes; then
8299	wlarc='${wl}'
8300	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8301	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8302	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8303      else
8304	wlarc=''
8305	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8306	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8307  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8308      fi
8309      hardcode_libdir_flag_spec='-R$libdir'
8310      hardcode_shlibpath_var=no
8311      case $host_os in
8312      solaris2.[0-5] | solaris2.[0-5].*) ;;
8313      *)
8314 	# The compiler driver will combine linker options so we
8315 	# cannot just pass the convience library names through
8316 	# without $wl, iff we do not link with $LD.
8317 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8318 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8319 	case $wlarc in
8320 	'')
8321 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8322 	*)
8323 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8324 	esac ;;
8325      esac
8326      link_all_deplibs=yes
8327      ;;
8328
8329    sunos4*)
8330      if test "x$host_vendor" = xsequent; then
8331	# Use $CC to link under sequent, because it throws in some extra .o
8332	# files that make .init and .fini sections work.
8333	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8334      else
8335	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8336      fi
8337      hardcode_libdir_flag_spec='-L$libdir'
8338      hardcode_direct=yes
8339      hardcode_minus_L=yes
8340      hardcode_shlibpath_var=no
8341      ;;
8342
8343    sysv4)
8344      case $host_vendor in
8345	sni)
8346	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8347	  hardcode_direct=yes # is this really true???
8348	;;
8349	siemens)
8350	  ## LD is ld it makes a PLAMLIB
8351	  ## CC just makes a GrossModule.
8352	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8353	  reload_cmds='$CC -r -o $output$reload_objs'
8354	  hardcode_direct=no
8355        ;;
8356	motorola)
8357	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8358	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8359	;;
8360      esac
8361      runpath_var='LD_RUN_PATH'
8362      hardcode_shlibpath_var=no
8363      ;;
8364
8365    sysv4.3*)
8366      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8367      hardcode_shlibpath_var=no
8368      export_dynamic_flag_spec='-Bexport'
8369      ;;
8370
8371    sysv4*MP*)
8372      if test -d /usr/nec; then
8373	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8374	hardcode_shlibpath_var=no
8375	runpath_var=LD_RUN_PATH
8376	hardcode_runpath_var=yes
8377	ld_shlibs=yes
8378      fi
8379      ;;
8380
8381    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8382      no_undefined_flag='${wl}-z,text'
8383      archive_cmds_need_lc=no
8384      hardcode_shlibpath_var=no
8385      runpath_var='LD_RUN_PATH'
8386
8387      if test "$GCC" = yes; then
8388	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8389	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8390      else
8391	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8392	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8393      fi
8394      ;;
8395
8396    sysv5* | sco3.2v5* | sco5v6*)
8397      # Note: We can NOT use -z defs as we might desire, because we do not
8398      # link with -lc, and that would cause any symbols used from libc to
8399      # always be unresolved, which means just about no library would
8400      # ever link correctly.  If we're not using GNU ld we use -z text
8401      # though, which does catch some bad symbols but isn't as heavy-handed
8402      # as -z defs.
8403      no_undefined_flag='${wl}-z,text'
8404      allow_undefined_flag='${wl}-z,nodefs'
8405      archive_cmds_need_lc=no
8406      hardcode_shlibpath_var=no
8407      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8408      hardcode_libdir_separator=':'
8409      link_all_deplibs=yes
8410      export_dynamic_flag_spec='${wl}-Bexport'
8411      runpath_var='LD_RUN_PATH'
8412
8413      if test "$GCC" = yes; then
8414	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8415	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8416      else
8417	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8418	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8419      fi
8420      ;;
8421
8422    uts4*)
8423      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8424      hardcode_libdir_flag_spec='-L$libdir'
8425      hardcode_shlibpath_var=no
8426      ;;
8427
8428    *)
8429      ld_shlibs=no
8430      ;;
8431    esac
8432  fi
8433
8434{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8435echo "${ECHO_T}$ld_shlibs" >&6; }
8436test "$ld_shlibs" = no && can_build_shared=no
8437
8438#
8439# Do we need to explicitly link libc?
8440#
8441case "x$archive_cmds_need_lc" in
8442x|xyes)
8443  # Assume -lc should be added
8444  archive_cmds_need_lc=yes
8445
8446  if test "$enable_shared" = yes && test "$GCC" = yes; then
8447    case $archive_cmds in
8448    *'~'*)
8449      # FIXME: we may have to deal with multi-command sequences.
8450      ;;
8451    '$CC '*)
8452      # Test whether the compiler implicitly links with -lc since on some
8453      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8454      # to ld, don't add -lc before -lgcc.
8455      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8456echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8457      $rm conftest*
8458      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8459
8460      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8461  (eval $ac_compile) 2>&5
8462  ac_status=$?
8463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464  (exit $ac_status); } 2>conftest.err; then
8465        soname=conftest
8466        lib=conftest
8467        libobjs=conftest.$ac_objext
8468        deplibs=
8469        wl=$lt_prog_compiler_wl
8470	pic_flag=$lt_prog_compiler_pic
8471        compiler_flags=-v
8472        linker_flags=-v
8473        verstring=
8474        output_objdir=.
8475        libname=conftest
8476        lt_save_allow_undefined_flag=$allow_undefined_flag
8477        allow_undefined_flag=
8478        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8479  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8480  ac_status=$?
8481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482  (exit $ac_status); }
8483        then
8484	  archive_cmds_need_lc=no
8485        else
8486	  archive_cmds_need_lc=yes
8487        fi
8488        allow_undefined_flag=$lt_save_allow_undefined_flag
8489      else
8490        cat conftest.err 1>&5
8491      fi
8492      $rm conftest*
8493      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8494echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8495      ;;
8496    esac
8497  fi
8498  ;;
8499esac
8500
8501{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8502echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8503library_names_spec=
8504libname_spec='lib$name'
8505soname_spec=
8506shrext_cmds=".so"
8507postinstall_cmds=
8508postuninstall_cmds=
8509finish_cmds=
8510finish_eval=
8511shlibpath_var=
8512shlibpath_overrides_runpath=unknown
8513version_type=none
8514dynamic_linker="$host_os ld.so"
8515sys_lib_dlsearch_path_spec="/lib /usr/lib"
8516if test "$GCC" = yes; then
8517  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8518  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8519    # if the path contains ";" then we assume it to be the separator
8520    # otherwise default to the standard path separator (i.e. ":") - it is
8521    # assumed that no part of a normal pathname contains ";" but that should
8522    # okay in the real world where ";" in dirpaths is itself problematic.
8523    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8524  else
8525    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8526  fi
8527else
8528  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8529fi
8530need_lib_prefix=unknown
8531hardcode_into_libs=no
8532
8533# when you set need_version to no, make sure it does not cause -set_version
8534# flags to be left without arguments
8535need_version=unknown
8536
8537case $host_os in
8538aix3*)
8539  version_type=linux
8540  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8541  shlibpath_var=LIBPATH
8542
8543  # AIX 3 has no versioning support, so we append a major version to the name.
8544  soname_spec='${libname}${release}${shared_ext}$major'
8545  ;;
8546
8547aix4* | aix5*)
8548  version_type=linux
8549  need_lib_prefix=no
8550  need_version=no
8551  hardcode_into_libs=yes
8552  if test "$host_cpu" = ia64; then
8553    # AIX 5 supports IA64
8554    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8555    shlibpath_var=LD_LIBRARY_PATH
8556  else
8557    # With GCC up to 2.95.x, collect2 would create an import file
8558    # for dependence libraries.  The import file would start with
8559    # the line `#! .'.  This would cause the generated library to
8560    # depend on `.', always an invalid library.  This was fixed in
8561    # development snapshots of GCC prior to 3.0.
8562    case $host_os in
8563      aix4 | aix4.[01] | aix4.[01].*)
8564      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8565	   echo ' yes '
8566	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8567	:
8568      else
8569	can_build_shared=no
8570      fi
8571      ;;
8572    esac
8573    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8574    # soname into executable. Probably we can add versioning support to
8575    # collect2, so additional links can be useful in future.
8576    if test "$aix_use_runtimelinking" = yes; then
8577      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8578      # instead of lib<name>.a to let people know that these are not
8579      # typical AIX shared libraries.
8580      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8581    else
8582      # We preserve .a as extension for shared libraries through AIX4.2
8583      # and later when we are not doing run time linking.
8584      library_names_spec='${libname}${release}.a $libname.a'
8585      soname_spec='${libname}${release}${shared_ext}$major'
8586    fi
8587    shlibpath_var=LIBPATH
8588  fi
8589  ;;
8590
8591amigaos*)
8592  library_names_spec='$libname.ixlibrary $libname.a'
8593  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8594  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'
8595  ;;
8596
8597beos*)
8598  library_names_spec='${libname}${shared_ext}'
8599  dynamic_linker="$host_os ld.so"
8600  shlibpath_var=LIBRARY_PATH
8601  ;;
8602
8603bsdi[45]*)
8604  version_type=linux
8605  need_version=no
8606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8607  soname_spec='${libname}${release}${shared_ext}$major'
8608  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8609  shlibpath_var=LD_LIBRARY_PATH
8610  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8611  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8612  # the default ld.so.conf also contains /usr/contrib/lib and
8613  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8614  # libtool to hard-code these into programs
8615  ;;
8616
8617cygwin* | mingw* | pw32*)
8618  version_type=windows
8619  shrext_cmds=".dll"
8620  need_version=no
8621  need_lib_prefix=no
8622
8623  case $GCC,$host_os in
8624  yes,cygwin* | yes,mingw* | yes,pw32*)
8625    library_names_spec='$libname.dll.a'
8626    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8627    postinstall_cmds='base_file=`basename \${file}`~
8628      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8629      dldir=$destdir/`dirname \$dlpath`~
8630      test -d \$dldir || mkdir -p \$dldir~
8631      $install_prog $dir/$dlname \$dldir/$dlname~
8632      chmod a+x \$dldir/$dlname'
8633    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8634      dlpath=$dir/\$dldll~
8635       $rm \$dlpath'
8636    shlibpath_overrides_runpath=yes
8637
8638    case $host_os in
8639    cygwin*)
8640      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8641      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8642      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8643      ;;
8644    mingw*)
8645      # MinGW DLLs use traditional 'lib' prefix
8646      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8647      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8648      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8649        # It is most probably a Windows format PATH printed by
8650        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8651        # path with ; separators, and with drive letters. We can handle the
8652        # drive letters (cygwin fileutils understands them), so leave them,
8653        # especially as we might pass files found there to a mingw objdump,
8654        # which wouldn't understand a cygwinified path. Ahh.
8655        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8656      else
8657        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8658      fi
8659      ;;
8660    pw32*)
8661      # pw32 DLLs use 'pw' prefix rather than 'lib'
8662      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8663      ;;
8664    esac
8665    ;;
8666
8667  *)
8668    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8669    ;;
8670  esac
8671  dynamic_linker='Win32 ld.exe'
8672  # FIXME: first we should search . and the directory the executable is in
8673  shlibpath_var=PATH
8674  ;;
8675
8676darwin* | rhapsody*)
8677  dynamic_linker="$host_os dyld"
8678  version_type=darwin
8679  need_lib_prefix=no
8680  need_version=no
8681  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8682  soname_spec='${libname}${release}${major}$shared_ext'
8683  shlibpath_overrides_runpath=yes
8684  shlibpath_var=DYLD_LIBRARY_PATH
8685  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8686  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8687  if test "$GCC" = yes; then
8688    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8689  else
8690    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8691  fi
8692  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8693  ;;
8694
8695dgux*)
8696  version_type=linux
8697  need_lib_prefix=no
8698  need_version=no
8699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8700  soname_spec='${libname}${release}${shared_ext}$major'
8701  shlibpath_var=LD_LIBRARY_PATH
8702  ;;
8703
8704freebsd1*)
8705  dynamic_linker=no
8706  ;;
8707
8708kfreebsd*-gnu)
8709  version_type=linux
8710  need_lib_prefix=no
8711  need_version=no
8712  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8713  soname_spec='${libname}${release}${shared_ext}$major'
8714  shlibpath_var=LD_LIBRARY_PATH
8715  shlibpath_overrides_runpath=no
8716  hardcode_into_libs=yes
8717  dynamic_linker='GNU ld.so'
8718  ;;
8719
8720freebsd* | dragonfly*)
8721  # DragonFly does not have aout.  When/if they implement a new
8722  # versioning mechanism, adjust this.
8723  if test -x /usr/bin/objformat; then
8724    objformat=`/usr/bin/objformat`
8725  else
8726    case $host_os in
8727    freebsd[123]*) objformat=aout ;;
8728    *) objformat=elf ;;
8729    esac
8730  fi
8731  version_type=freebsd-$objformat
8732  case $version_type in
8733    freebsd-elf*)
8734      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8735      need_version=no
8736      need_lib_prefix=no
8737      ;;
8738    freebsd-*)
8739      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8740      need_version=yes
8741      ;;
8742  esac
8743  shlibpath_var=LD_LIBRARY_PATH
8744  case $host_os in
8745  freebsd2*)
8746    shlibpath_overrides_runpath=yes
8747    ;;
8748  freebsd3.[01]* | freebsdelf3.[01]*)
8749    shlibpath_overrides_runpath=yes
8750    hardcode_into_libs=yes
8751    ;;
8752  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8753  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8754    shlibpath_overrides_runpath=no
8755    hardcode_into_libs=yes
8756    ;;
8757  freebsd*) # from 4.6 on
8758    shlibpath_overrides_runpath=yes
8759    hardcode_into_libs=yes
8760    ;;
8761  esac
8762  ;;
8763
8764gnu*)
8765  version_type=linux
8766  need_lib_prefix=no
8767  need_version=no
8768  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8769  soname_spec='${libname}${release}${shared_ext}$major'
8770  shlibpath_var=LD_LIBRARY_PATH
8771  hardcode_into_libs=yes
8772  ;;
8773
8774hpux9* | hpux10* | hpux11*)
8775  # Give a soname corresponding to the major version so that dld.sl refuses to
8776  # link against other versions.
8777  version_type=sunos
8778  need_lib_prefix=no
8779  need_version=no
8780  case $host_cpu in
8781  ia64*)
8782    shrext_cmds='.so'
8783    hardcode_into_libs=yes
8784    dynamic_linker="$host_os dld.so"
8785    shlibpath_var=LD_LIBRARY_PATH
8786    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8787    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8788    soname_spec='${libname}${release}${shared_ext}$major'
8789    if test "X$HPUX_IA64_MODE" = X32; then
8790      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8791    else
8792      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8793    fi
8794    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8795    ;;
8796   hppa*64*)
8797     shrext_cmds='.sl'
8798     hardcode_into_libs=yes
8799     dynamic_linker="$host_os dld.sl"
8800     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8801     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8802     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8803     soname_spec='${libname}${release}${shared_ext}$major'
8804     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8805     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8806     ;;
8807   *)
8808    shrext_cmds='.sl'
8809    dynamic_linker="$host_os dld.sl"
8810    shlibpath_var=SHLIB_PATH
8811    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8812    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8813    soname_spec='${libname}${release}${shared_ext}$major'
8814    ;;
8815  esac
8816  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8817  postinstall_cmds='chmod 555 $lib'
8818  ;;
8819
8820interix3*)
8821  version_type=linux
8822  need_lib_prefix=no
8823  need_version=no
8824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8825  soname_spec='${libname}${release}${shared_ext}$major'
8826  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8827  shlibpath_var=LD_LIBRARY_PATH
8828  shlibpath_overrides_runpath=no
8829  hardcode_into_libs=yes
8830  ;;
8831
8832irix5* | irix6* | nonstopux*)
8833  case $host_os in
8834    nonstopux*) version_type=nonstopux ;;
8835    *)
8836	if test "$lt_cv_prog_gnu_ld" = yes; then
8837		version_type=linux
8838	else
8839		version_type=irix
8840	fi ;;
8841  esac
8842  need_lib_prefix=no
8843  need_version=no
8844  soname_spec='${libname}${release}${shared_ext}$major'
8845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8846  case $host_os in
8847  irix5* | nonstopux*)
8848    libsuff= shlibsuff=
8849    ;;
8850  *)
8851    case $LD in # libtool.m4 will add one of these switches to LD
8852    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8853      libsuff= shlibsuff= libmagic=32-bit;;
8854    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8855      libsuff=32 shlibsuff=N32 libmagic=N32;;
8856    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8857      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8858    *) libsuff= shlibsuff= libmagic=never-match;;
8859    esac
8860    ;;
8861  esac
8862  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8863  shlibpath_overrides_runpath=no
8864  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8865  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8866  hardcode_into_libs=yes
8867  ;;
8868
8869# No shared lib support for Linux oldld, aout, or coff.
8870linux*oldld* | linux*aout* | linux*coff*)
8871  dynamic_linker=no
8872  ;;
8873
8874# This must be Linux ELF.
8875linux*)
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  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8882  shlibpath_var=LD_LIBRARY_PATH
8883  shlibpath_overrides_runpath=no
8884  # This implies no fast_install, which is unacceptable.
8885  # Some rework will be needed to allow for fast_install
8886  # before this can be enabled.
8887  hardcode_into_libs=yes
8888
8889  # Append ld.so.conf contents to the search path
8890  if test -f /etc/ld.so.conf; then
8891    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/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8892    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8893  fi
8894
8895  # We used to test for /lib/ld.so.1 and disable shared libraries on
8896  # powerpc, because MkLinux only supported shared libraries with the
8897  # GNU dynamic linker.  Since this was broken with cross compilers,
8898  # most powerpc-linux boxes support dynamic linking these days and
8899  # people can always --disable-shared, the test was removed, and we
8900  # assume the GNU/Linux dynamic linker is in use.
8901  dynamic_linker='GNU/Linux ld.so'
8902  ;;
8903
8904knetbsd*-gnu)
8905  version_type=linux
8906  need_lib_prefix=no
8907  need_version=no
8908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8909  soname_spec='${libname}${release}${shared_ext}$major'
8910  shlibpath_var=LD_LIBRARY_PATH
8911  shlibpath_overrides_runpath=no
8912  hardcode_into_libs=yes
8913  dynamic_linker='GNU ld.so'
8914  ;;
8915
8916netbsd*)
8917  version_type=sunos
8918  need_lib_prefix=no
8919  need_version=no
8920  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8921    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8922    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8923    dynamic_linker='NetBSD (a.out) ld.so'
8924  else
8925    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8926    soname_spec='${libname}${release}${shared_ext}$major'
8927    dynamic_linker='NetBSD ld.elf_so'
8928  fi
8929  shlibpath_var=LD_LIBRARY_PATH
8930  shlibpath_overrides_runpath=yes
8931  hardcode_into_libs=yes
8932  ;;
8933
8934newsos6)
8935  version_type=linux
8936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937  shlibpath_var=LD_LIBRARY_PATH
8938  shlibpath_overrides_runpath=yes
8939  ;;
8940
8941nto-qnx*)
8942  version_type=linux
8943  need_lib_prefix=no
8944  need_version=no
8945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8946  soname_spec='${libname}${release}${shared_ext}$major'
8947  shlibpath_var=LD_LIBRARY_PATH
8948  shlibpath_overrides_runpath=yes
8949  ;;
8950
8951openbsd*)
8952  version_type=sunos
8953  sys_lib_dlsearch_path_spec="/usr/lib"
8954  need_lib_prefix=no
8955  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8956  case $host_os in
8957    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8958    *)                         need_version=no  ;;
8959  esac
8960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8961  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8962  shlibpath_var=LD_LIBRARY_PATH
8963  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8964    case $host_os in
8965      openbsd2.[89] | openbsd2.[89].*)
8966	shlibpath_overrides_runpath=no
8967	;;
8968      *)
8969	shlibpath_overrides_runpath=yes
8970	;;
8971      esac
8972  else
8973    shlibpath_overrides_runpath=yes
8974  fi
8975  ;;
8976
8977os2*)
8978  libname_spec='$name'
8979  shrext_cmds=".dll"
8980  need_lib_prefix=no
8981  library_names_spec='$libname${shared_ext} $libname.a'
8982  dynamic_linker='OS/2 ld.exe'
8983  shlibpath_var=LIBPATH
8984  ;;
8985
8986osf3* | osf4* | osf5*)
8987  version_type=osf
8988  need_lib_prefix=no
8989  need_version=no
8990  soname_spec='${libname}${release}${shared_ext}$major'
8991  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8992  shlibpath_var=LD_LIBRARY_PATH
8993  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8994  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8995  ;;
8996
8997solaris*)
8998  version_type=linux
8999  need_lib_prefix=no
9000  need_version=no
9001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9002  soname_spec='${libname}${release}${shared_ext}$major'
9003  shlibpath_var=LD_LIBRARY_PATH
9004  shlibpath_overrides_runpath=yes
9005  hardcode_into_libs=yes
9006  # ldd complains unless libraries are executable
9007  postinstall_cmds='chmod +x $lib'
9008  ;;
9009
9010sunos4*)
9011  version_type=sunos
9012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9013  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9014  shlibpath_var=LD_LIBRARY_PATH
9015  shlibpath_overrides_runpath=yes
9016  if test "$with_gnu_ld" = yes; then
9017    need_lib_prefix=no
9018  fi
9019  need_version=yes
9020  ;;
9021
9022sysv4 | sysv4.3*)
9023  version_type=linux
9024  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9025  soname_spec='${libname}${release}${shared_ext}$major'
9026  shlibpath_var=LD_LIBRARY_PATH
9027  case $host_vendor in
9028    sni)
9029      shlibpath_overrides_runpath=no
9030      need_lib_prefix=no
9031      export_dynamic_flag_spec='${wl}-Blargedynsym'
9032      runpath_var=LD_RUN_PATH
9033      ;;
9034    siemens)
9035      need_lib_prefix=no
9036      ;;
9037    motorola)
9038      need_lib_prefix=no
9039      need_version=no
9040      shlibpath_overrides_runpath=no
9041      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9042      ;;
9043  esac
9044  ;;
9045
9046sysv4*MP*)
9047  if test -d /usr/nec ;then
9048    version_type=linux
9049    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9050    soname_spec='$libname${shared_ext}.$major'
9051    shlibpath_var=LD_LIBRARY_PATH
9052  fi
9053  ;;
9054
9055sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9056  version_type=freebsd-elf
9057  need_lib_prefix=no
9058  need_version=no
9059  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9060  soname_spec='${libname}${release}${shared_ext}$major'
9061  shlibpath_var=LD_LIBRARY_PATH
9062  hardcode_into_libs=yes
9063  if test "$with_gnu_ld" = yes; then
9064    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9065    shlibpath_overrides_runpath=no
9066  else
9067    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9068    shlibpath_overrides_runpath=yes
9069    case $host_os in
9070      sco3.2v5*)
9071        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9072	;;
9073    esac
9074  fi
9075  sys_lib_dlsearch_path_spec='/usr/lib'
9076  ;;
9077
9078uts4*)
9079  version_type=linux
9080  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9081  soname_spec='${libname}${release}${shared_ext}$major'
9082  shlibpath_var=LD_LIBRARY_PATH
9083  ;;
9084
9085*)
9086  dynamic_linker=no
9087  ;;
9088esac
9089{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9090echo "${ECHO_T}$dynamic_linker" >&6; }
9091test "$dynamic_linker" = no && can_build_shared=no
9092
9093variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9094if test "$GCC" = yes; then
9095  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9096fi
9097
9098{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9099echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9100hardcode_action=
9101if test -n "$hardcode_libdir_flag_spec" || \
9102   test -n "$runpath_var" || \
9103   test "X$hardcode_automatic" = "Xyes" ; then
9104
9105  # We can hardcode non-existant directories.
9106  if test "$hardcode_direct" != no &&
9107     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9108     # have to relink, otherwise we might link with an installed library
9109     # when we should be linking with a yet-to-be-installed one
9110     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9111     test "$hardcode_minus_L" != no; then
9112    # Linking always hardcodes the temporary library directory.
9113    hardcode_action=relink
9114  else
9115    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9116    hardcode_action=immediate
9117  fi
9118else
9119  # We cannot hardcode anything, or else we can only hardcode existing
9120  # directories.
9121  hardcode_action=unsupported
9122fi
9123{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9124echo "${ECHO_T}$hardcode_action" >&6; }
9125
9126if test "$hardcode_action" = relink; then
9127  # Fast installation is not supported
9128  enable_fast_install=no
9129elif test "$shlibpath_overrides_runpath" = yes ||
9130     test "$enable_shared" = no; then
9131  # Fast installation is not necessary
9132  enable_fast_install=needless
9133fi
9134
9135striplib=
9136old_striplib=
9137{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9138echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9139if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9140  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9141  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9142  { echo "$as_me:$LINENO: result: yes" >&5
9143echo "${ECHO_T}yes" >&6; }
9144else
9145# FIXME - insert some real tests, host_os isn't really good enough
9146  case $host_os in
9147   darwin*)
9148       if test -n "$STRIP" ; then
9149         striplib="$STRIP -x"
9150         { echo "$as_me:$LINENO: result: yes" >&5
9151echo "${ECHO_T}yes" >&6; }
9152       else
9153  { echo "$as_me:$LINENO: result: no" >&5
9154echo "${ECHO_T}no" >&6; }
9155fi
9156       ;;
9157   *)
9158  { echo "$as_me:$LINENO: result: no" >&5
9159echo "${ECHO_T}no" >&6; }
9160    ;;
9161  esac
9162fi
9163
9164if test "x$enable_dlopen" != xyes; then
9165  enable_dlopen=unknown
9166  enable_dlopen_self=unknown
9167  enable_dlopen_self_static=unknown
9168else
9169  lt_cv_dlopen=no
9170  lt_cv_dlopen_libs=
9171
9172  case $host_os in
9173  beos*)
9174    lt_cv_dlopen="load_add_on"
9175    lt_cv_dlopen_libs=
9176    lt_cv_dlopen_self=yes
9177    ;;
9178
9179  mingw* | pw32*)
9180    lt_cv_dlopen="LoadLibrary"
9181    lt_cv_dlopen_libs=
9182   ;;
9183
9184  cygwin*)
9185    lt_cv_dlopen="dlopen"
9186    lt_cv_dlopen_libs=
9187   ;;
9188
9189  darwin*)
9190  # if libdl is installed we need to link against it
9191    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9192echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9193if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9194  echo $ECHO_N "(cached) $ECHO_C" >&6
9195else
9196  ac_check_lib_save_LIBS=$LIBS
9197LIBS="-ldl  $LIBS"
9198cat >conftest.$ac_ext <<_ACEOF
9199/* confdefs.h.  */
9200_ACEOF
9201cat confdefs.h >>conftest.$ac_ext
9202cat >>conftest.$ac_ext <<_ACEOF
9203/* end confdefs.h.  */
9204
9205/* Override any GCC internal prototype to avoid an error.
9206   Use char because int might match the return type of a GCC
9207   builtin and then its argument prototype would still apply.  */
9208#ifdef __cplusplus
9209extern "C"
9210#endif
9211char dlopen ();
9212int
9213main ()
9214{
9215return dlopen ();
9216  ;
9217  return 0;
9218}
9219_ACEOF
9220rm -f conftest.$ac_objext conftest$ac_exeext
9221if { (ac_try="$ac_link"
9222case "(($ac_try" in
9223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9224  *) ac_try_echo=$ac_try;;
9225esac
9226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9227  (eval "$ac_link") 2>conftest.er1
9228  ac_status=$?
9229  grep -v '^ *+' conftest.er1 >conftest.err
9230  rm -f conftest.er1
9231  cat conftest.err >&5
9232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233  (exit $ac_status); } && {
9234	 test -z "$ac_c_werror_flag" ||
9235	 test ! -s conftest.err
9236       } && test -s conftest$ac_exeext &&
9237       $as_test_x conftest$ac_exeext; then
9238  ac_cv_lib_dl_dlopen=yes
9239else
9240  echo "$as_me: failed program was:" >&5
9241sed 's/^/| /' conftest.$ac_ext >&5
9242
9243	ac_cv_lib_dl_dlopen=no
9244fi
9245
9246rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9247      conftest$ac_exeext conftest.$ac_ext
9248LIBS=$ac_check_lib_save_LIBS
9249fi
9250{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9251echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9252if test $ac_cv_lib_dl_dlopen = yes; then
9253  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9254else
9255
9256    lt_cv_dlopen="dyld"
9257    lt_cv_dlopen_libs=
9258    lt_cv_dlopen_self=yes
9259
9260fi
9261
9262   ;;
9263
9264  *)
9265    { echo "$as_me:$LINENO: checking for shl_load" >&5
9266echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9267if test "${ac_cv_func_shl_load+set}" = set; then
9268  echo $ECHO_N "(cached) $ECHO_C" >&6
9269else
9270  cat >conftest.$ac_ext <<_ACEOF
9271/* confdefs.h.  */
9272_ACEOF
9273cat confdefs.h >>conftest.$ac_ext
9274cat >>conftest.$ac_ext <<_ACEOF
9275/* end confdefs.h.  */
9276/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9277   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9278#define shl_load innocuous_shl_load
9279
9280/* System header to define __stub macros and hopefully few prototypes,
9281    which can conflict with char shl_load (); below.
9282    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9283    <limits.h> exists even on freestanding compilers.  */
9284
9285#ifdef __STDC__
9286# include <limits.h>
9287#else
9288# include <assert.h>
9289#endif
9290
9291#undef shl_load
9292
9293/* Override any GCC internal prototype to avoid an error.
9294   Use char because int might match the return type of a GCC
9295   builtin and then its argument prototype would still apply.  */
9296#ifdef __cplusplus
9297extern "C"
9298#endif
9299char shl_load ();
9300/* The GNU C library defines this for functions which it implements
9301    to always fail with ENOSYS.  Some functions are actually named
9302    something starting with __ and the normal name is an alias.  */
9303#if defined __stub_shl_load || defined __stub___shl_load
9304choke me
9305#endif
9306
9307int
9308main ()
9309{
9310return shl_load ();
9311  ;
9312  return 0;
9313}
9314_ACEOF
9315rm -f conftest.$ac_objext conftest$ac_exeext
9316if { (ac_try="$ac_link"
9317case "(($ac_try" in
9318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9319  *) ac_try_echo=$ac_try;;
9320esac
9321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9322  (eval "$ac_link") 2>conftest.er1
9323  ac_status=$?
9324  grep -v '^ *+' conftest.er1 >conftest.err
9325  rm -f conftest.er1
9326  cat conftest.err >&5
9327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328  (exit $ac_status); } && {
9329	 test -z "$ac_c_werror_flag" ||
9330	 test ! -s conftest.err
9331       } && test -s conftest$ac_exeext &&
9332       $as_test_x conftest$ac_exeext; then
9333  ac_cv_func_shl_load=yes
9334else
9335  echo "$as_me: failed program was:" >&5
9336sed 's/^/| /' conftest.$ac_ext >&5
9337
9338	ac_cv_func_shl_load=no
9339fi
9340
9341rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9342      conftest$ac_exeext conftest.$ac_ext
9343fi
9344{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9345echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9346if test $ac_cv_func_shl_load = yes; then
9347  lt_cv_dlopen="shl_load"
9348else
9349  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9350echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9351if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9352  echo $ECHO_N "(cached) $ECHO_C" >&6
9353else
9354  ac_check_lib_save_LIBS=$LIBS
9355LIBS="-ldld  $LIBS"
9356cat >conftest.$ac_ext <<_ACEOF
9357/* confdefs.h.  */
9358_ACEOF
9359cat confdefs.h >>conftest.$ac_ext
9360cat >>conftest.$ac_ext <<_ACEOF
9361/* end confdefs.h.  */
9362
9363/* Override any GCC internal prototype to avoid an error.
9364   Use char because int might match the return type of a GCC
9365   builtin and then its argument prototype would still apply.  */
9366#ifdef __cplusplus
9367extern "C"
9368#endif
9369char shl_load ();
9370int
9371main ()
9372{
9373return shl_load ();
9374  ;
9375  return 0;
9376}
9377_ACEOF
9378rm -f conftest.$ac_objext conftest$ac_exeext
9379if { (ac_try="$ac_link"
9380case "(($ac_try" in
9381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9382  *) ac_try_echo=$ac_try;;
9383esac
9384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9385  (eval "$ac_link") 2>conftest.er1
9386  ac_status=$?
9387  grep -v '^ *+' conftest.er1 >conftest.err
9388  rm -f conftest.er1
9389  cat conftest.err >&5
9390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391  (exit $ac_status); } && {
9392	 test -z "$ac_c_werror_flag" ||
9393	 test ! -s conftest.err
9394       } && test -s conftest$ac_exeext &&
9395       $as_test_x conftest$ac_exeext; then
9396  ac_cv_lib_dld_shl_load=yes
9397else
9398  echo "$as_me: failed program was:" >&5
9399sed 's/^/| /' conftest.$ac_ext >&5
9400
9401	ac_cv_lib_dld_shl_load=no
9402fi
9403
9404rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9405      conftest$ac_exeext conftest.$ac_ext
9406LIBS=$ac_check_lib_save_LIBS
9407fi
9408{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9409echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9410if test $ac_cv_lib_dld_shl_load = yes; then
9411  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9412else
9413  { echo "$as_me:$LINENO: checking for dlopen" >&5
9414echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9415if test "${ac_cv_func_dlopen+set}" = set; then
9416  echo $ECHO_N "(cached) $ECHO_C" >&6
9417else
9418  cat >conftest.$ac_ext <<_ACEOF
9419/* confdefs.h.  */
9420_ACEOF
9421cat confdefs.h >>conftest.$ac_ext
9422cat >>conftest.$ac_ext <<_ACEOF
9423/* end confdefs.h.  */
9424/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9425   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9426#define dlopen innocuous_dlopen
9427
9428/* System header to define __stub macros and hopefully few prototypes,
9429    which can conflict with char dlopen (); below.
9430    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9431    <limits.h> exists even on freestanding compilers.  */
9432
9433#ifdef __STDC__
9434# include <limits.h>
9435#else
9436# include <assert.h>
9437#endif
9438
9439#undef dlopen
9440
9441/* Override any GCC internal prototype to avoid an error.
9442   Use char because int might match the return type of a GCC
9443   builtin and then its argument prototype would still apply.  */
9444#ifdef __cplusplus
9445extern "C"
9446#endif
9447char dlopen ();
9448/* The GNU C library defines this for functions which it implements
9449    to always fail with ENOSYS.  Some functions are actually named
9450    something starting with __ and the normal name is an alias.  */
9451#if defined __stub_dlopen || defined __stub___dlopen
9452choke me
9453#endif
9454
9455int
9456main ()
9457{
9458return dlopen ();
9459  ;
9460  return 0;
9461}
9462_ACEOF
9463rm -f conftest.$ac_objext conftest$ac_exeext
9464if { (ac_try="$ac_link"
9465case "(($ac_try" in
9466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9467  *) ac_try_echo=$ac_try;;
9468esac
9469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9470  (eval "$ac_link") 2>conftest.er1
9471  ac_status=$?
9472  grep -v '^ *+' conftest.er1 >conftest.err
9473  rm -f conftest.er1
9474  cat conftest.err >&5
9475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476  (exit $ac_status); } && {
9477	 test -z "$ac_c_werror_flag" ||
9478	 test ! -s conftest.err
9479       } && test -s conftest$ac_exeext &&
9480       $as_test_x conftest$ac_exeext; then
9481  ac_cv_func_dlopen=yes
9482else
9483  echo "$as_me: failed program was:" >&5
9484sed 's/^/| /' conftest.$ac_ext >&5
9485
9486	ac_cv_func_dlopen=no
9487fi
9488
9489rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9490      conftest$ac_exeext conftest.$ac_ext
9491fi
9492{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9493echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9494if test $ac_cv_func_dlopen = yes; then
9495  lt_cv_dlopen="dlopen"
9496else
9497  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9498echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9499if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9500  echo $ECHO_N "(cached) $ECHO_C" >&6
9501else
9502  ac_check_lib_save_LIBS=$LIBS
9503LIBS="-ldl  $LIBS"
9504cat >conftest.$ac_ext <<_ACEOF
9505/* confdefs.h.  */
9506_ACEOF
9507cat confdefs.h >>conftest.$ac_ext
9508cat >>conftest.$ac_ext <<_ACEOF
9509/* end confdefs.h.  */
9510
9511/* Override any GCC internal prototype to avoid an error.
9512   Use char because int might match the return type of a GCC
9513   builtin and then its argument prototype would still apply.  */
9514#ifdef __cplusplus
9515extern "C"
9516#endif
9517char dlopen ();
9518int
9519main ()
9520{
9521return dlopen ();
9522  ;
9523  return 0;
9524}
9525_ACEOF
9526rm -f conftest.$ac_objext conftest$ac_exeext
9527if { (ac_try="$ac_link"
9528case "(($ac_try" in
9529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530  *) ac_try_echo=$ac_try;;
9531esac
9532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533  (eval "$ac_link") 2>conftest.er1
9534  ac_status=$?
9535  grep -v '^ *+' conftest.er1 >conftest.err
9536  rm -f conftest.er1
9537  cat conftest.err >&5
9538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539  (exit $ac_status); } && {
9540	 test -z "$ac_c_werror_flag" ||
9541	 test ! -s conftest.err
9542       } && test -s conftest$ac_exeext &&
9543       $as_test_x conftest$ac_exeext; then
9544  ac_cv_lib_dl_dlopen=yes
9545else
9546  echo "$as_me: failed program was:" >&5
9547sed 's/^/| /' conftest.$ac_ext >&5
9548
9549	ac_cv_lib_dl_dlopen=no
9550fi
9551
9552rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9553      conftest$ac_exeext conftest.$ac_ext
9554LIBS=$ac_check_lib_save_LIBS
9555fi
9556{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9557echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9558if test $ac_cv_lib_dl_dlopen = yes; then
9559  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9560else
9561  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9562echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9563if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9564  echo $ECHO_N "(cached) $ECHO_C" >&6
9565else
9566  ac_check_lib_save_LIBS=$LIBS
9567LIBS="-lsvld  $LIBS"
9568cat >conftest.$ac_ext <<_ACEOF
9569/* confdefs.h.  */
9570_ACEOF
9571cat confdefs.h >>conftest.$ac_ext
9572cat >>conftest.$ac_ext <<_ACEOF
9573/* end confdefs.h.  */
9574
9575/* Override any GCC internal prototype to avoid an error.
9576   Use char because int might match the return type of a GCC
9577   builtin and then its argument prototype would still apply.  */
9578#ifdef __cplusplus
9579extern "C"
9580#endif
9581char dlopen ();
9582int
9583main ()
9584{
9585return dlopen ();
9586  ;
9587  return 0;
9588}
9589_ACEOF
9590rm -f conftest.$ac_objext conftest$ac_exeext
9591if { (ac_try="$ac_link"
9592case "(($ac_try" in
9593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594  *) ac_try_echo=$ac_try;;
9595esac
9596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9597  (eval "$ac_link") 2>conftest.er1
9598  ac_status=$?
9599  grep -v '^ *+' conftest.er1 >conftest.err
9600  rm -f conftest.er1
9601  cat conftest.err >&5
9602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603  (exit $ac_status); } && {
9604	 test -z "$ac_c_werror_flag" ||
9605	 test ! -s conftest.err
9606       } && test -s conftest$ac_exeext &&
9607       $as_test_x conftest$ac_exeext; then
9608  ac_cv_lib_svld_dlopen=yes
9609else
9610  echo "$as_me: failed program was:" >&5
9611sed 's/^/| /' conftest.$ac_ext >&5
9612
9613	ac_cv_lib_svld_dlopen=no
9614fi
9615
9616rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9617      conftest$ac_exeext conftest.$ac_ext
9618LIBS=$ac_check_lib_save_LIBS
9619fi
9620{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9621echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9622if test $ac_cv_lib_svld_dlopen = yes; then
9623  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9624else
9625  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9626echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9627if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9628  echo $ECHO_N "(cached) $ECHO_C" >&6
9629else
9630  ac_check_lib_save_LIBS=$LIBS
9631LIBS="-ldld  $LIBS"
9632cat >conftest.$ac_ext <<_ACEOF
9633/* confdefs.h.  */
9634_ACEOF
9635cat confdefs.h >>conftest.$ac_ext
9636cat >>conftest.$ac_ext <<_ACEOF
9637/* end confdefs.h.  */
9638
9639/* Override any GCC internal prototype to avoid an error.
9640   Use char because int might match the return type of a GCC
9641   builtin and then its argument prototype would still apply.  */
9642#ifdef __cplusplus
9643extern "C"
9644#endif
9645char dld_link ();
9646int
9647main ()
9648{
9649return dld_link ();
9650  ;
9651  return 0;
9652}
9653_ACEOF
9654rm -f conftest.$ac_objext conftest$ac_exeext
9655if { (ac_try="$ac_link"
9656case "(($ac_try" in
9657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658  *) ac_try_echo=$ac_try;;
9659esac
9660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661  (eval "$ac_link") 2>conftest.er1
9662  ac_status=$?
9663  grep -v '^ *+' conftest.er1 >conftest.err
9664  rm -f conftest.er1
9665  cat conftest.err >&5
9666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667  (exit $ac_status); } && {
9668	 test -z "$ac_c_werror_flag" ||
9669	 test ! -s conftest.err
9670       } && test -s conftest$ac_exeext &&
9671       $as_test_x conftest$ac_exeext; then
9672  ac_cv_lib_dld_dld_link=yes
9673else
9674  echo "$as_me: failed program was:" >&5
9675sed 's/^/| /' conftest.$ac_ext >&5
9676
9677	ac_cv_lib_dld_dld_link=no
9678fi
9679
9680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9681      conftest$ac_exeext conftest.$ac_ext
9682LIBS=$ac_check_lib_save_LIBS
9683fi
9684{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9685echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9686if test $ac_cv_lib_dld_dld_link = yes; then
9687  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9688fi
9689
9690
9691fi
9692
9693
9694fi
9695
9696
9697fi
9698
9699
9700fi
9701
9702
9703fi
9704
9705    ;;
9706  esac
9707
9708  if test "x$lt_cv_dlopen" != xno; then
9709    enable_dlopen=yes
9710  else
9711    enable_dlopen=no
9712  fi
9713
9714  case $lt_cv_dlopen in
9715  dlopen)
9716    save_CPPFLAGS="$CPPFLAGS"
9717    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9718
9719    save_LDFLAGS="$LDFLAGS"
9720    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9721
9722    save_LIBS="$LIBS"
9723    LIBS="$lt_cv_dlopen_libs $LIBS"
9724
9725    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9726echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9727if test "${lt_cv_dlopen_self+set}" = set; then
9728  echo $ECHO_N "(cached) $ECHO_C" >&6
9729else
9730  	  if test "$cross_compiling" = yes; then :
9731  lt_cv_dlopen_self=cross
9732else
9733  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9734  lt_status=$lt_dlunknown
9735  cat > conftest.$ac_ext <<EOF
9736#line 9736 "configure"
9737#include "confdefs.h"
9738
9739#if HAVE_DLFCN_H
9740#include <dlfcn.h>
9741#endif
9742
9743#include <stdio.h>
9744
9745#ifdef RTLD_GLOBAL
9746#  define LT_DLGLOBAL		RTLD_GLOBAL
9747#else
9748#  ifdef DL_GLOBAL
9749#    define LT_DLGLOBAL		DL_GLOBAL
9750#  else
9751#    define LT_DLGLOBAL		0
9752#  endif
9753#endif
9754
9755/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9756   find out it does not work in some platform. */
9757#ifndef LT_DLLAZY_OR_NOW
9758#  ifdef RTLD_LAZY
9759#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9760#  else
9761#    ifdef DL_LAZY
9762#      define LT_DLLAZY_OR_NOW		DL_LAZY
9763#    else
9764#      ifdef RTLD_NOW
9765#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9766#      else
9767#        ifdef DL_NOW
9768#          define LT_DLLAZY_OR_NOW	DL_NOW
9769#        else
9770#          define LT_DLLAZY_OR_NOW	0
9771#        endif
9772#      endif
9773#    endif
9774#  endif
9775#endif
9776
9777#ifdef __cplusplus
9778extern "C" void exit (int);
9779#endif
9780
9781void fnord() { int i=42;}
9782int main ()
9783{
9784  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9785  int status = $lt_dlunknown;
9786
9787  if (self)
9788    {
9789      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9790      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9791      /* dlclose (self); */
9792    }
9793  else
9794    puts (dlerror ());
9795
9796    exit (status);
9797}
9798EOF
9799  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9800  (eval $ac_link) 2>&5
9801  ac_status=$?
9802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9804    (./conftest; exit; ) >&5 2>/dev/null
9805    lt_status=$?
9806    case x$lt_status in
9807      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9808      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9809      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9810    esac
9811  else :
9812    # compilation failed
9813    lt_cv_dlopen_self=no
9814  fi
9815fi
9816rm -fr conftest*
9817
9818
9819fi
9820{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9821echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9822
9823    if test "x$lt_cv_dlopen_self" = xyes; then
9824      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9825      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9826echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9827if test "${lt_cv_dlopen_self_static+set}" = set; then
9828  echo $ECHO_N "(cached) $ECHO_C" >&6
9829else
9830  	  if test "$cross_compiling" = yes; then :
9831  lt_cv_dlopen_self_static=cross
9832else
9833  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9834  lt_status=$lt_dlunknown
9835  cat > conftest.$ac_ext <<EOF
9836#line 9836 "configure"
9837#include "confdefs.h"
9838
9839#if HAVE_DLFCN_H
9840#include <dlfcn.h>
9841#endif
9842
9843#include <stdio.h>
9844
9845#ifdef RTLD_GLOBAL
9846#  define LT_DLGLOBAL		RTLD_GLOBAL
9847#else
9848#  ifdef DL_GLOBAL
9849#    define LT_DLGLOBAL		DL_GLOBAL
9850#  else
9851#    define LT_DLGLOBAL		0
9852#  endif
9853#endif
9854
9855/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9856   find out it does not work in some platform. */
9857#ifndef LT_DLLAZY_OR_NOW
9858#  ifdef RTLD_LAZY
9859#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9860#  else
9861#    ifdef DL_LAZY
9862#      define LT_DLLAZY_OR_NOW		DL_LAZY
9863#    else
9864#      ifdef RTLD_NOW
9865#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9866#      else
9867#        ifdef DL_NOW
9868#          define LT_DLLAZY_OR_NOW	DL_NOW
9869#        else
9870#          define LT_DLLAZY_OR_NOW	0
9871#        endif
9872#      endif
9873#    endif
9874#  endif
9875#endif
9876
9877#ifdef __cplusplus
9878extern "C" void exit (int);
9879#endif
9880
9881void fnord() { int i=42;}
9882int main ()
9883{
9884  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9885  int status = $lt_dlunknown;
9886
9887  if (self)
9888    {
9889      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9890      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9891      /* dlclose (self); */
9892    }
9893  else
9894    puts (dlerror ());
9895
9896    exit (status);
9897}
9898EOF
9899  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9900  (eval $ac_link) 2>&5
9901  ac_status=$?
9902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9904    (./conftest; exit; ) >&5 2>/dev/null
9905    lt_status=$?
9906    case x$lt_status in
9907      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9908      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9909      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9910    esac
9911  else :
9912    # compilation failed
9913    lt_cv_dlopen_self_static=no
9914  fi
9915fi
9916rm -fr conftest*
9917
9918
9919fi
9920{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9921echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9922    fi
9923
9924    CPPFLAGS="$save_CPPFLAGS"
9925    LDFLAGS="$save_LDFLAGS"
9926    LIBS="$save_LIBS"
9927    ;;
9928  esac
9929
9930  case $lt_cv_dlopen_self in
9931  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9932  *) enable_dlopen_self=unknown ;;
9933  esac
9934
9935  case $lt_cv_dlopen_self_static in
9936  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9937  *) enable_dlopen_self_static=unknown ;;
9938  esac
9939fi
9940
9941
9942# Report which library types will actually be built
9943{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9944echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9945{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9946echo "${ECHO_T}$can_build_shared" >&6; }
9947
9948{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9949echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9950test "$can_build_shared" = "no" && enable_shared=no
9951
9952# On AIX, shared libraries and static libraries use the same namespace, and
9953# are all built from PIC.
9954case $host_os in
9955aix3*)
9956  test "$enable_shared" = yes && enable_static=no
9957  if test -n "$RANLIB"; then
9958    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9959    postinstall_cmds='$RANLIB $lib'
9960  fi
9961  ;;
9962
9963aix4* | aix5*)
9964  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9965    test "$enable_shared" = yes && enable_static=no
9966  fi
9967    ;;
9968esac
9969{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9970echo "${ECHO_T}$enable_shared" >&6; }
9971
9972{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9973echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9974# Make sure either enable_shared or enable_static is yes.
9975test "$enable_shared" = yes || enable_static=yes
9976{ echo "$as_me:$LINENO: result: $enable_static" >&5
9977echo "${ECHO_T}$enable_static" >&6; }
9978
9979# The else clause should only fire when bootstrapping the
9980# libtool distribution, otherwise you forgot to ship ltmain.sh
9981# with your package, and you will get complaints that there are
9982# no rules to generate ltmain.sh.
9983if test -f "$ltmain"; then
9984  # See if we are running on zsh, and set the options which allow our commands through
9985  # without removal of \ escapes.
9986  if test -n "${ZSH_VERSION+set}" ; then
9987    setopt NO_GLOB_SUBST
9988  fi
9989  # Now quote all the things that may contain metacharacters while being
9990  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9991  # variables and quote the copies for generation of the libtool script.
9992  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9993    SED SHELL STRIP \
9994    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9995    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9996    deplibs_check_method reload_flag reload_cmds need_locks \
9997    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9998    lt_cv_sys_global_symbol_to_c_name_address \
9999    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10000    old_postinstall_cmds old_postuninstall_cmds \
10001    compiler \
10002    CC \
10003    LD \
10004    lt_prog_compiler_wl \
10005    lt_prog_compiler_pic \
10006    lt_prog_compiler_static \
10007    lt_prog_compiler_no_builtin_flag \
10008    export_dynamic_flag_spec \
10009    thread_safe_flag_spec \
10010    whole_archive_flag_spec \
10011    enable_shared_with_static_runtimes \
10012    old_archive_cmds \
10013    old_archive_from_new_cmds \
10014    predep_objects \
10015    postdep_objects \
10016    predeps \
10017    postdeps \
10018    compiler_lib_search_path \
10019    archive_cmds \
10020    archive_expsym_cmds \
10021    postinstall_cmds \
10022    postuninstall_cmds \
10023    old_archive_from_expsyms_cmds \
10024    allow_undefined_flag \
10025    no_undefined_flag \
10026    export_symbols_cmds \
10027    hardcode_libdir_flag_spec \
10028    hardcode_libdir_flag_spec_ld \
10029    hardcode_libdir_separator \
10030    hardcode_automatic \
10031    module_cmds \
10032    module_expsym_cmds \
10033    lt_cv_prog_compiler_c_o \
10034    exclude_expsyms \
10035    include_expsyms; do
10036
10037    case $var in
10038    old_archive_cmds | \
10039    old_archive_from_new_cmds | \
10040    archive_cmds | \
10041    archive_expsym_cmds | \
10042    module_cmds | \
10043    module_expsym_cmds | \
10044    old_archive_from_expsyms_cmds | \
10045    export_symbols_cmds | \
10046    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10047    postinstall_cmds | postuninstall_cmds | \
10048    old_postinstall_cmds | old_postuninstall_cmds | \
10049    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10050      # Double-quote double-evaled strings.
10051      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10052      ;;
10053    *)
10054      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10055      ;;
10056    esac
10057  done
10058
10059  case $lt_echo in
10060  *'\$0 --fallback-echo"')
10061    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10062    ;;
10063  esac
10064
10065cfgfile="${ofile}T"
10066  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10067  $rm -f "$cfgfile"
10068  { echo "$as_me:$LINENO: creating $ofile" >&5
10069echo "$as_me: creating $ofile" >&6;}
10070
10071  cat <<__EOF__ >> "$cfgfile"
10072#! $SHELL
10073
10074# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10075# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10076# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10077#
10078# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10079# Free Software Foundation, Inc.
10080#
10081# This file is part of GNU Libtool:
10082# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10083#
10084# This program is free software; you can redistribute it and/or modify
10085# it under the terms of the GNU General Public License as published by
10086# the Free Software Foundation; either version 2 of the License, or
10087# (at your option) any later version.
10088#
10089# This program is distributed in the hope that it will be useful, but
10090# WITHOUT ANY WARRANTY; without even the implied warranty of
10091# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10092# General Public License for more details.
10093#
10094# You should have received a copy of the GNU General Public License
10095# along with this program; if not, write to the Free Software
10096# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10097#
10098# As a special exception to the GNU General Public License, if you
10099# distribute this file as part of a program that contains a
10100# configuration script generated by Autoconf, you may include it under
10101# the same distribution terms that you use for the rest of that program.
10102
10103# A sed program that does not truncate output.
10104SED=$lt_SED
10105
10106# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10107Xsed="$SED -e 1s/^X//"
10108
10109# The HP-UX ksh and POSIX shell print the target directory to stdout
10110# if CDPATH is set.
10111(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10112
10113# The names of the tagged configurations supported by this script.
10114available_tags=
10115
10116# ### BEGIN LIBTOOL CONFIG
10117
10118# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10119
10120# Shell to use when invoking shell scripts.
10121SHELL=$lt_SHELL
10122
10123# Whether or not to build shared libraries.
10124build_libtool_libs=$enable_shared
10125
10126# Whether or not to build static libraries.
10127build_old_libs=$enable_static
10128
10129# Whether or not to add -lc for building shared libraries.
10130build_libtool_need_lc=$archive_cmds_need_lc
10131
10132# Whether or not to disallow shared libs when runtime libs are static
10133allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10134
10135# Whether or not to optimize for fast installation.
10136fast_install=$enable_fast_install
10137
10138# The host system.
10139host_alias=$host_alias
10140host=$host
10141host_os=$host_os
10142
10143# The build system.
10144build_alias=$build_alias
10145build=$build
10146build_os=$build_os
10147
10148# An echo program that does not interpret backslashes.
10149echo=$lt_echo
10150
10151# The archiver.
10152AR=$lt_AR
10153AR_FLAGS=$lt_AR_FLAGS
10154
10155# A C compiler.
10156LTCC=$lt_LTCC
10157
10158# LTCC compiler flags.
10159LTCFLAGS=$lt_LTCFLAGS
10160
10161# A language-specific compiler.
10162CC=$lt_compiler
10163
10164# Is the compiler the GNU C compiler?
10165with_gcc=$GCC
10166
10167# An ERE matcher.
10168EGREP=$lt_EGREP
10169
10170# The linker used to build libraries.
10171LD=$lt_LD
10172
10173# Whether we need hard or soft links.
10174LN_S=$lt_LN_S
10175
10176# A BSD-compatible nm program.
10177NM=$lt_NM
10178
10179# A symbol stripping program
10180STRIP=$lt_STRIP
10181
10182# Used to examine libraries when file_magic_cmd begins "file"
10183MAGIC_CMD=$MAGIC_CMD
10184
10185# Used on cygwin: DLL creation program.
10186DLLTOOL="$DLLTOOL"
10187
10188# Used on cygwin: object dumper.
10189OBJDUMP="$OBJDUMP"
10190
10191# Used on cygwin: assembler.
10192AS="$AS"
10193
10194# The name of the directory that contains temporary libtool files.
10195objdir=$objdir
10196
10197# How to create reloadable object files.
10198reload_flag=$lt_reload_flag
10199reload_cmds=$lt_reload_cmds
10200
10201# How to pass a linker flag through the compiler.
10202wl=$lt_lt_prog_compiler_wl
10203
10204# Object file suffix (normally "o").
10205objext="$ac_objext"
10206
10207# Old archive suffix (normally "a").
10208libext="$libext"
10209
10210# Shared library suffix (normally ".so").
10211shrext_cmds='$shrext_cmds'
10212
10213# Executable file suffix (normally "").
10214exeext="$exeext"
10215
10216# Additional compiler flags for building library objects.
10217pic_flag=$lt_lt_prog_compiler_pic
10218pic_mode=$pic_mode
10219
10220# What is the maximum length of a command?
10221max_cmd_len=$lt_cv_sys_max_cmd_len
10222
10223# Does compiler simultaneously support -c and -o options?
10224compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10225
10226# Must we lock files when doing compilation?
10227need_locks=$lt_need_locks
10228
10229# Do we need the lib prefix for modules?
10230need_lib_prefix=$need_lib_prefix
10231
10232# Do we need a version for libraries?
10233need_version=$need_version
10234
10235# Whether dlopen is supported.
10236dlopen_support=$enable_dlopen
10237
10238# Whether dlopen of programs is supported.
10239dlopen_self=$enable_dlopen_self
10240
10241# Whether dlopen of statically linked programs is supported.
10242dlopen_self_static=$enable_dlopen_self_static
10243
10244# Compiler flag to prevent dynamic linking.
10245link_static_flag=$lt_lt_prog_compiler_static
10246
10247# Compiler flag to turn off builtin functions.
10248no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10249
10250# Compiler flag to allow reflexive dlopens.
10251export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10252
10253# Compiler flag to generate shared objects directly from archives.
10254whole_archive_flag_spec=$lt_whole_archive_flag_spec
10255
10256# Compiler flag to generate thread-safe objects.
10257thread_safe_flag_spec=$lt_thread_safe_flag_spec
10258
10259# Library versioning type.
10260version_type=$version_type
10261
10262# Format of library name prefix.
10263libname_spec=$lt_libname_spec
10264
10265# List of archive names.  First name is the real one, the rest are links.
10266# The last name is the one that the linker finds with -lNAME.
10267library_names_spec=$lt_library_names_spec
10268
10269# The coded name of the library, if different from the real name.
10270soname_spec=$lt_soname_spec
10271
10272# Commands used to build and install an old-style archive.
10273RANLIB=$lt_RANLIB
10274old_archive_cmds=$lt_old_archive_cmds
10275old_postinstall_cmds=$lt_old_postinstall_cmds
10276old_postuninstall_cmds=$lt_old_postuninstall_cmds
10277
10278# Create an old-style archive from a shared archive.
10279old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10280
10281# Create a temporary old-style archive to link instead of a shared archive.
10282old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10283
10284# Commands used to build and install a shared archive.
10285archive_cmds=$lt_archive_cmds
10286archive_expsym_cmds=$lt_archive_expsym_cmds
10287postinstall_cmds=$lt_postinstall_cmds
10288postuninstall_cmds=$lt_postuninstall_cmds
10289
10290# Commands used to build a loadable module (assumed same as above if empty)
10291module_cmds=$lt_module_cmds
10292module_expsym_cmds=$lt_module_expsym_cmds
10293
10294# Commands to strip libraries.
10295old_striplib=$lt_old_striplib
10296striplib=$lt_striplib
10297
10298# Dependencies to place before the objects being linked to create a
10299# shared library.
10300predep_objects=$lt_predep_objects
10301
10302# Dependencies to place after the objects being linked to create a
10303# shared library.
10304postdep_objects=$lt_postdep_objects
10305
10306# Dependencies to place before the objects being linked to create a
10307# shared library.
10308predeps=$lt_predeps
10309
10310# Dependencies to place after the objects being linked to create a
10311# shared library.
10312postdeps=$lt_postdeps
10313
10314# The library search path used internally by the compiler when linking
10315# a shared library.
10316compiler_lib_search_path=$lt_compiler_lib_search_path
10317
10318# Method to check whether dependent libraries are shared objects.
10319deplibs_check_method=$lt_deplibs_check_method
10320
10321# Command to use when deplibs_check_method == file_magic.
10322file_magic_cmd=$lt_file_magic_cmd
10323
10324# Flag that allows shared libraries with undefined symbols to be built.
10325allow_undefined_flag=$lt_allow_undefined_flag
10326
10327# Flag that forces no undefined symbols.
10328no_undefined_flag=$lt_no_undefined_flag
10329
10330# Commands used to finish a libtool library installation in a directory.
10331finish_cmds=$lt_finish_cmds
10332
10333# Same as above, but a single script fragment to be evaled but not shown.
10334finish_eval=$lt_finish_eval
10335
10336# Take the output of nm and produce a listing of raw symbols and C names.
10337global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10338
10339# Transform the output of nm in a proper C declaration
10340global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10341
10342# Transform the output of nm in a C name address pair
10343global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10344
10345# This is the shared library runtime path variable.
10346runpath_var=$runpath_var
10347
10348# This is the shared library path variable.
10349shlibpath_var=$shlibpath_var
10350
10351# Is shlibpath searched before the hard-coded library search path?
10352shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10353
10354# How to hardcode a shared library path into an executable.
10355hardcode_action=$hardcode_action
10356
10357# Whether we should hardcode library paths into libraries.
10358hardcode_into_libs=$hardcode_into_libs
10359
10360# Flag to hardcode \$libdir into a binary during linking.
10361# This must work even if \$libdir does not exist.
10362hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10363
10364# If ld is used when linking, flag to hardcode \$libdir into
10365# a binary during linking. This must work even if \$libdir does
10366# not exist.
10367hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10368
10369# Whether we need a single -rpath flag with a separated argument.
10370hardcode_libdir_separator=$lt_hardcode_libdir_separator
10371
10372# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10373# resulting binary.
10374hardcode_direct=$hardcode_direct
10375
10376# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10377# resulting binary.
10378hardcode_minus_L=$hardcode_minus_L
10379
10380# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10381# the resulting binary.
10382hardcode_shlibpath_var=$hardcode_shlibpath_var
10383
10384# Set to yes if building a shared library automatically hardcodes DIR into the library
10385# and all subsequent libraries and executables linked against it.
10386hardcode_automatic=$hardcode_automatic
10387
10388# Variables whose values should be saved in libtool wrapper scripts and
10389# restored at relink time.
10390variables_saved_for_relink="$variables_saved_for_relink"
10391
10392# Whether libtool must link a program against all its dependency libraries.
10393link_all_deplibs=$link_all_deplibs
10394
10395# Compile-time system search path for libraries
10396sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10397
10398# Run-time system search path for libraries
10399sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10400
10401# Fix the shell variable \$srcfile for the compiler.
10402fix_srcfile_path="$fix_srcfile_path"
10403
10404# Set to yes if exported symbols are required.
10405always_export_symbols=$always_export_symbols
10406
10407# The commands to list exported symbols.
10408export_symbols_cmds=$lt_export_symbols_cmds
10409
10410# The commands to extract the exported symbol list from a shared archive.
10411extract_expsyms_cmds=$lt_extract_expsyms_cmds
10412
10413# Symbols that should not be listed in the preloaded symbols.
10414exclude_expsyms=$lt_exclude_expsyms
10415
10416# Symbols that must always be exported.
10417include_expsyms=$lt_include_expsyms
10418
10419# ### END LIBTOOL CONFIG
10420
10421__EOF__
10422
10423
10424  case $host_os in
10425  aix3*)
10426    cat <<\EOF >> "$cfgfile"
10427
10428# AIX sometimes has problems with the GCC collect2 program.  For some
10429# reason, if we set the COLLECT_NAMES environment variable, the problems
10430# vanish in a puff of smoke.
10431if test "X${COLLECT_NAMES+set}" != Xset; then
10432  COLLECT_NAMES=
10433  export COLLECT_NAMES
10434fi
10435EOF
10436    ;;
10437  esac
10438
10439  # We use sed instead of cat because bash on DJGPP gets confused if
10440  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10441  # text mode, it properly converts lines to CR/LF.  This bash problem
10442  # is reportedly fixed, but why not run on old versions too?
10443  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10444
10445  mv -f "$cfgfile" "$ofile" || \
10446    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10447  chmod +x "$ofile"
10448
10449else
10450  # If there is no Makefile yet, we rely on a make rule to execute
10451  # `config.status --recheck' to rerun these tests and create the
10452  # libtool script then.
10453  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10454  if test -f "$ltmain_in"; then
10455    test -f Makefile && make "$ltmain"
10456  fi
10457fi
10458
10459
10460ac_ext=c
10461ac_cpp='$CPP $CPPFLAGS'
10462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10464ac_compiler_gnu=$ac_cv_c_compiler_gnu
10465
10466CC="$lt_save_CC"
10467
10468
10469# Check whether --with-tags was given.
10470if test "${with_tags+set}" = set; then
10471  withval=$with_tags; tagnames="$withval"
10472fi
10473
10474
10475if test -f "$ltmain" && test -n "$tagnames"; then
10476  if test ! -f "${ofile}"; then
10477    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10478echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10479  fi
10480
10481  if test -z "$LTCC"; then
10482    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10483    if test -z "$LTCC"; then
10484      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10485echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10486    else
10487      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10488echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10489    fi
10490  fi
10491  if test -z "$LTCFLAGS"; then
10492    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10493  fi
10494
10495  # Extract list of available tagged configurations in $ofile.
10496  # Note that this assumes the entire list is on one line.
10497  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10498
10499  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10500  for tagname in $tagnames; do
10501    IFS="$lt_save_ifs"
10502    # Check whether tagname contains only valid characters
10503    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10504    "") ;;
10505    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10506echo "$as_me: error: invalid tag name: $tagname" >&2;}
10507   { (exit 1); exit 1; }; }
10508	;;
10509    esac
10510
10511    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10512    then
10513      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10514echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10515   { (exit 1); exit 1; }; }
10516    fi
10517
10518    # Update the list of available tags.
10519    if test -n "$tagname"; then
10520      echo appending configuration tag \"$tagname\" to $ofile
10521
10522      case $tagname in
10523      CXX)
10524	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10525	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10526	    (test "X$CXX" != "Xg++"))) ; then
10527	  ac_ext=cpp
10528ac_cpp='$CXXCPP $CPPFLAGS'
10529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10532
10533
10534
10535
10536archive_cmds_need_lc_CXX=no
10537allow_undefined_flag_CXX=
10538always_export_symbols_CXX=no
10539archive_expsym_cmds_CXX=
10540export_dynamic_flag_spec_CXX=
10541hardcode_direct_CXX=no
10542hardcode_libdir_flag_spec_CXX=
10543hardcode_libdir_flag_spec_ld_CXX=
10544hardcode_libdir_separator_CXX=
10545hardcode_minus_L_CXX=no
10546hardcode_shlibpath_var_CXX=unsupported
10547hardcode_automatic_CXX=no
10548module_cmds_CXX=
10549module_expsym_cmds_CXX=
10550link_all_deplibs_CXX=unknown
10551old_archive_cmds_CXX=$old_archive_cmds
10552no_undefined_flag_CXX=
10553whole_archive_flag_spec_CXX=
10554enable_shared_with_static_runtimes_CXX=no
10555
10556# Dependencies to place before and after the object being linked:
10557predep_objects_CXX=
10558postdep_objects_CXX=
10559predeps_CXX=
10560postdeps_CXX=
10561compiler_lib_search_path_CXX=
10562
10563# Source file extension for C++ test sources.
10564ac_ext=cpp
10565
10566# Object file extension for compiled C++ test sources.
10567objext=o
10568objext_CXX=$objext
10569
10570# Code to be used in simple compile tests
10571lt_simple_compile_test_code="int some_variable = 0;\n"
10572
10573# Code to be used in simple link tests
10574lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10575
10576# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10577
10578# If no C compiler was specified, use CC.
10579LTCC=${LTCC-"$CC"}
10580
10581# If no C compiler flags were specified, use CFLAGS.
10582LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10583
10584# Allow CC to be a program name with arguments.
10585compiler=$CC
10586
10587
10588# save warnings/boilerplate of simple test code
10589ac_outfile=conftest.$ac_objext
10590printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10591eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10592_lt_compiler_boilerplate=`cat conftest.err`
10593$rm conftest*
10594
10595ac_outfile=conftest.$ac_objext
10596printf "$lt_simple_link_test_code" >conftest.$ac_ext
10597eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10598_lt_linker_boilerplate=`cat conftest.err`
10599$rm conftest*
10600
10601
10602# Allow CC to be a program name with arguments.
10603lt_save_CC=$CC
10604lt_save_LD=$LD
10605lt_save_GCC=$GCC
10606GCC=$GXX
10607lt_save_with_gnu_ld=$with_gnu_ld
10608lt_save_path_LD=$lt_cv_path_LD
10609if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10610  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10611else
10612  $as_unset lt_cv_prog_gnu_ld
10613fi
10614if test -n "${lt_cv_path_LDCXX+set}"; then
10615  lt_cv_path_LD=$lt_cv_path_LDCXX
10616else
10617  $as_unset lt_cv_path_LD
10618fi
10619test -z "${LDCXX+set}" || LD=$LDCXX
10620CC=${CXX-"c++"}
10621compiler=$CC
10622compiler_CXX=$CC
10623for cc_temp in $compiler""; do
10624  case $cc_temp in
10625    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10626    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10627    \-*) ;;
10628    *) break;;
10629  esac
10630done
10631cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10632
10633
10634# We don't want -fno-exception wen compiling C++ code, so set the
10635# no_builtin_flag separately
10636if test "$GXX" = yes; then
10637  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10638else
10639  lt_prog_compiler_no_builtin_flag_CXX=
10640fi
10641
10642if test "$GXX" = yes; then
10643  # Set up default GNU C++ configuration
10644
10645
10646# Check whether --with-gnu-ld was given.
10647if test "${with_gnu_ld+set}" = set; then
10648  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10649else
10650  with_gnu_ld=no
10651fi
10652
10653ac_prog=ld
10654if test "$GCC" = yes; then
10655  # Check if gcc -print-prog-name=ld gives a path.
10656  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10657echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10658  case $host in
10659  *-*-mingw*)
10660    # gcc leaves a trailing carriage return which upsets mingw
10661    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10662  *)
10663    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10664  esac
10665  case $ac_prog in
10666    # Accept absolute paths.
10667    [\\/]* | ?:[\\/]*)
10668      re_direlt='/[^/][^/]*/\.\./'
10669      # Canonicalize the pathname of ld
10670      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10671      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10672	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10673      done
10674      test -z "$LD" && LD="$ac_prog"
10675      ;;
10676  "")
10677    # If it fails, then pretend we aren't using GCC.
10678    ac_prog=ld
10679    ;;
10680  *)
10681    # If it is relative, then search for the first ld in PATH.
10682    with_gnu_ld=unknown
10683    ;;
10684  esac
10685elif test "$with_gnu_ld" = yes; then
10686  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10687echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10688else
10689  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10690echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10691fi
10692if test "${lt_cv_path_LD+set}" = set; then
10693  echo $ECHO_N "(cached) $ECHO_C" >&6
10694else
10695  if test -z "$LD"; then
10696  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10697  for ac_dir in $PATH; do
10698    IFS="$lt_save_ifs"
10699    test -z "$ac_dir" && ac_dir=.
10700    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10701      lt_cv_path_LD="$ac_dir/$ac_prog"
10702      # Check to see if the program is GNU ld.  I'd rather use --version,
10703      # but apparently some variants of GNU ld only accept -v.
10704      # Break only if it was the GNU/non-GNU ld that we prefer.
10705      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10706      *GNU* | *'with BFD'*)
10707	test "$with_gnu_ld" != no && break
10708	;;
10709      *)
10710	test "$with_gnu_ld" != yes && break
10711	;;
10712      esac
10713    fi
10714  done
10715  IFS="$lt_save_ifs"
10716else
10717  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10718fi
10719fi
10720
10721LD="$lt_cv_path_LD"
10722if test -n "$LD"; then
10723  { echo "$as_me:$LINENO: result: $LD" >&5
10724echo "${ECHO_T}$LD" >&6; }
10725else
10726  { echo "$as_me:$LINENO: result: no" >&5
10727echo "${ECHO_T}no" >&6; }
10728fi
10729test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10730echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10731   { (exit 1); exit 1; }; }
10732{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10733echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10734if test "${lt_cv_prog_gnu_ld+set}" = set; then
10735  echo $ECHO_N "(cached) $ECHO_C" >&6
10736else
10737  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10738case `$LD -v 2>&1 </dev/null` in
10739*GNU* | *'with BFD'*)
10740  lt_cv_prog_gnu_ld=yes
10741  ;;
10742*)
10743  lt_cv_prog_gnu_ld=no
10744  ;;
10745esac
10746fi
10747{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10748echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10749with_gnu_ld=$lt_cv_prog_gnu_ld
10750
10751
10752
10753  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10754  # archiving commands below assume that GNU ld is being used.
10755  if test "$with_gnu_ld" = yes; then
10756    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10757    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'
10758
10759    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10760    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10761
10762    # If archive_cmds runs LD, not CC, wlarc should be empty
10763    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10764    #     investigate it a little bit more. (MM)
10765    wlarc='${wl}'
10766
10767    # ancient GNU ld didn't support --whole-archive et. al.
10768    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10769	grep 'no-whole-archive' > /dev/null; then
10770      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10771    else
10772      whole_archive_flag_spec_CXX=
10773    fi
10774  else
10775    with_gnu_ld=no
10776    wlarc=
10777
10778    # A generic and very simple default shared library creation
10779    # command for GNU C++ for the case where it uses the native
10780    # linker, instead of GNU ld.  If possible, this setting should
10781    # overridden to take advantage of the native linker features on
10782    # the platform it is being used on.
10783    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10784  fi
10785
10786  # Commands to make compiler produce verbose output that lists
10787  # what "hidden" libraries, object files and flags are used when
10788  # linking a shared library.
10789  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10790
10791else
10792  GXX=no
10793  with_gnu_ld=no
10794  wlarc=
10795fi
10796
10797# PORTME: fill in a description of your system's C++ link characteristics
10798{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10799echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10800ld_shlibs_CXX=yes
10801case $host_os in
10802  aix3*)
10803    # FIXME: insert proper C++ library support
10804    ld_shlibs_CXX=no
10805    ;;
10806  aix4* | aix5*)
10807    if test "$host_cpu" = ia64; then
10808      # On IA64, the linker does run time linking by default, so we don't
10809      # have to do anything special.
10810      aix_use_runtimelinking=no
10811      exp_sym_flag='-Bexport'
10812      no_entry_flag=""
10813    else
10814      aix_use_runtimelinking=no
10815
10816      # Test if we are trying to use run time linking or normal
10817      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10818      # need to do runtime linking.
10819      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10820	for ld_flag in $LDFLAGS; do
10821	  case $ld_flag in
10822	  *-brtl*)
10823	    aix_use_runtimelinking=yes
10824	    break
10825	    ;;
10826	  esac
10827	done
10828	;;
10829      esac
10830
10831      exp_sym_flag='-bexport'
10832      no_entry_flag='-bnoentry'
10833    fi
10834
10835    # When large executables or shared objects are built, AIX ld can
10836    # have problems creating the table of contents.  If linking a library
10837    # or program results in "error TOC overflow" add -mminimal-toc to
10838    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10839    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10840
10841    archive_cmds_CXX=''
10842    hardcode_direct_CXX=yes
10843    hardcode_libdir_separator_CXX=':'
10844    link_all_deplibs_CXX=yes
10845
10846    if test "$GXX" = yes; then
10847      case $host_os in aix4.[012]|aix4.[012].*)
10848      # We only want to do this on AIX 4.2 and lower, the check
10849      # below for broken collect2 doesn't work under 4.3+
10850	collect2name=`${CC} -print-prog-name=collect2`
10851	if test -f "$collect2name" && \
10852	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10853	then
10854	  # We have reworked collect2
10855	  hardcode_direct_CXX=yes
10856	else
10857	  # We have old collect2
10858	  hardcode_direct_CXX=unsupported
10859	  # It fails to find uninstalled libraries when the uninstalled
10860	  # path is not listed in the libpath.  Setting hardcode_minus_L
10861	  # to unsupported forces relinking
10862	  hardcode_minus_L_CXX=yes
10863	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10864	  hardcode_libdir_separator_CXX=
10865	fi
10866	;;
10867      esac
10868      shared_flag='-shared'
10869      if test "$aix_use_runtimelinking" = yes; then
10870	shared_flag="$shared_flag "'${wl}-G'
10871      fi
10872    else
10873      # not using gcc
10874      if test "$host_cpu" = ia64; then
10875	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10876	# chokes on -Wl,-G. The following line is correct:
10877	shared_flag='-G'
10878      else
10879	if test "$aix_use_runtimelinking" = yes; then
10880	  shared_flag='${wl}-G'
10881	else
10882	  shared_flag='${wl}-bM:SRE'
10883	fi
10884      fi
10885    fi
10886
10887    # It seems that -bexpall does not export symbols beginning with
10888    # underscore (_), so it is better to generate a list of symbols to export.
10889    always_export_symbols_CXX=yes
10890    if test "$aix_use_runtimelinking" = yes; then
10891      # Warning - without using the other runtime loading flags (-brtl),
10892      # -berok will link without error, but may produce a broken library.
10893      allow_undefined_flag_CXX='-berok'
10894      # Determine the default libpath from the value encoded in an empty executable.
10895      cat >conftest.$ac_ext <<_ACEOF
10896/* confdefs.h.  */
10897_ACEOF
10898cat confdefs.h >>conftest.$ac_ext
10899cat >>conftest.$ac_ext <<_ACEOF
10900/* end confdefs.h.  */
10901
10902int
10903main ()
10904{
10905
10906  ;
10907  return 0;
10908}
10909_ACEOF
10910rm -f conftest.$ac_objext conftest$ac_exeext
10911if { (ac_try="$ac_link"
10912case "(($ac_try" in
10913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914  *) ac_try_echo=$ac_try;;
10915esac
10916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917  (eval "$ac_link") 2>conftest.er1
10918  ac_status=$?
10919  grep -v '^ *+' conftest.er1 >conftest.err
10920  rm -f conftest.er1
10921  cat conftest.err >&5
10922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923  (exit $ac_status); } && {
10924	 test -z "$ac_cxx_werror_flag" ||
10925	 test ! -s conftest.err
10926       } && test -s conftest$ac_exeext &&
10927       $as_test_x conftest$ac_exeext; then
10928
10929aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10930}'`
10931# Check for a 64-bit object if we didn't find anything.
10932if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10933}'`; fi
10934else
10935  echo "$as_me: failed program was:" >&5
10936sed 's/^/| /' conftest.$ac_ext >&5
10937
10938
10939fi
10940
10941rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10942      conftest$ac_exeext conftest.$ac_ext
10943if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10944
10945      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10946
10947      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"
10948     else
10949      if test "$host_cpu" = ia64; then
10950	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10951	allow_undefined_flag_CXX="-z nodefs"
10952	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"
10953      else
10954	# Determine the default libpath from the value encoded in an empty executable.
10955	cat >conftest.$ac_ext <<_ACEOF
10956/* confdefs.h.  */
10957_ACEOF
10958cat confdefs.h >>conftest.$ac_ext
10959cat >>conftest.$ac_ext <<_ACEOF
10960/* end confdefs.h.  */
10961
10962int
10963main ()
10964{
10965
10966  ;
10967  return 0;
10968}
10969_ACEOF
10970rm -f conftest.$ac_objext conftest$ac_exeext
10971if { (ac_try="$ac_link"
10972case "(($ac_try" in
10973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974  *) ac_try_echo=$ac_try;;
10975esac
10976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977  (eval "$ac_link") 2>conftest.er1
10978  ac_status=$?
10979  grep -v '^ *+' conftest.er1 >conftest.err
10980  rm -f conftest.er1
10981  cat conftest.err >&5
10982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983  (exit $ac_status); } && {
10984	 test -z "$ac_cxx_werror_flag" ||
10985	 test ! -s conftest.err
10986       } && test -s conftest$ac_exeext &&
10987       $as_test_x conftest$ac_exeext; then
10988
10989aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10990}'`
10991# Check for a 64-bit object if we didn't find anything.
10992if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10993}'`; fi
10994else
10995  echo "$as_me: failed program was:" >&5
10996sed 's/^/| /' conftest.$ac_ext >&5
10997
10998
10999fi
11000
11001rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11002      conftest$ac_exeext conftest.$ac_ext
11003if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11004
11005	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11006	# Warning - without using the other run time loading flags,
11007	# -berok will link without error, but may produce a broken library.
11008	no_undefined_flag_CXX=' ${wl}-bernotok'
11009	allow_undefined_flag_CXX=' ${wl}-berok'
11010	# Exported symbols can be pulled into shared objects from archives
11011	whole_archive_flag_spec_CXX='$convenience'
11012	archive_cmds_need_lc_CXX=yes
11013	# This is similar to how AIX traditionally builds its shared libraries.
11014	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'
11015      fi
11016    fi
11017    ;;
11018
11019  beos*)
11020    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11021      allow_undefined_flag_CXX=unsupported
11022      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11023      # support --undefined.  This deserves some investigation.  FIXME
11024      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11025    else
11026      ld_shlibs_CXX=no
11027    fi
11028    ;;
11029
11030  chorus*)
11031    case $cc_basename in
11032      *)
11033	# FIXME: insert proper C++ library support
11034	ld_shlibs_CXX=no
11035	;;
11036    esac
11037    ;;
11038
11039  cygwin* | mingw* | pw32*)
11040    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11041    # as there is no search path for DLLs.
11042    hardcode_libdir_flag_spec_CXX='-L$libdir'
11043    allow_undefined_flag_CXX=unsupported
11044    always_export_symbols_CXX=no
11045    enable_shared_with_static_runtimes_CXX=yes
11046
11047    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11048      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'
11049      # If the export-symbols file already is a .def file (1st line
11050      # is EXPORTS), use it as is; otherwise, prepend...
11051      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11052	cp $export_symbols $output_objdir/$soname.def;
11053      else
11054	echo EXPORTS > $output_objdir/$soname.def;
11055	cat $export_symbols >> $output_objdir/$soname.def;
11056      fi~
11057      $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'
11058    else
11059      ld_shlibs_CXX=no
11060    fi
11061  ;;
11062      darwin* | rhapsody*)
11063        case $host_os in
11064        rhapsody* | darwin1.[012])
11065         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11066         ;;
11067       *) # Darwin 1.3 on
11068         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11069           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11070         else
11071           case ${MACOSX_DEPLOYMENT_TARGET} in
11072             10.[012])
11073               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11074               ;;
11075             10.*)
11076               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11077               ;;
11078           esac
11079         fi
11080         ;;
11081        esac
11082      archive_cmds_need_lc_CXX=no
11083      hardcode_direct_CXX=no
11084      hardcode_automatic_CXX=yes
11085      hardcode_shlibpath_var_CXX=unsupported
11086      whole_archive_flag_spec_CXX=''
11087      link_all_deplibs_CXX=yes
11088
11089    if test "$GXX" = yes ; then
11090      lt_int_apple_cc_single_mod=no
11091      output_verbose_link_cmd='echo'
11092      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11093       lt_int_apple_cc_single_mod=yes
11094      fi
11095      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11096       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11097      else
11098          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'
11099        fi
11100        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11101        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11102          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11103            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}'
11104          else
11105            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}'
11106          fi
11107            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}'
11108      else
11109      case $cc_basename in
11110        xlc*)
11111         output_verbose_link_cmd='echo'
11112          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11113          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11114          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11115          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11116          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}'
11117          ;;
11118       *)
11119         ld_shlibs_CXX=no
11120          ;;
11121      esac
11122      fi
11123        ;;
11124
11125  dgux*)
11126    case $cc_basename in
11127      ec++*)
11128	# FIXME: insert proper C++ library support
11129	ld_shlibs_CXX=no
11130	;;
11131      ghcx*)
11132	# Green Hills C++ Compiler
11133	# FIXME: insert proper C++ library support
11134	ld_shlibs_CXX=no
11135	;;
11136      *)
11137	# FIXME: insert proper C++ library support
11138	ld_shlibs_CXX=no
11139	;;
11140    esac
11141    ;;
11142  freebsd[12]*)
11143    # C++ shared libraries reported to be fairly broken before switch to ELF
11144    ld_shlibs_CXX=no
11145    ;;
11146  freebsd-elf*)
11147    archive_cmds_need_lc_CXX=no
11148    ;;
11149  freebsd* | kfreebsd*-gnu | dragonfly*)
11150    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11151    # conventions
11152    ld_shlibs_CXX=yes
11153    ;;
11154  gnu*)
11155    ;;
11156  hpux9*)
11157    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11158    hardcode_libdir_separator_CXX=:
11159    export_dynamic_flag_spec_CXX='${wl}-E'
11160    hardcode_direct_CXX=yes
11161    hardcode_minus_L_CXX=yes # Not in the search PATH,
11162				# but as the default
11163				# location of the library.
11164
11165    case $cc_basename in
11166    CC*)
11167      # FIXME: insert proper C++ library support
11168      ld_shlibs_CXX=no
11169      ;;
11170    aCC*)
11171      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'
11172      # Commands to make compiler produce verbose output that lists
11173      # what "hidden" libraries, object files and flags are used when
11174      # linking a shared library.
11175      #
11176      # There doesn't appear to be a way to prevent this compiler from
11177      # explicitly linking system object files so we need to strip them
11178      # from the output so that they don't get included in the library
11179      # dependencies.
11180      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'
11181      ;;
11182    *)
11183      if test "$GXX" = yes; then
11184        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'
11185      else
11186        # FIXME: insert proper C++ library support
11187        ld_shlibs_CXX=no
11188      fi
11189      ;;
11190    esac
11191    ;;
11192  hpux10*|hpux11*)
11193    if test $with_gnu_ld = no; then
11194      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11195      hardcode_libdir_separator_CXX=:
11196
11197      case $host_cpu in
11198      hppa*64*|ia64*)
11199	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11200        ;;
11201      *)
11202	export_dynamic_flag_spec_CXX='${wl}-E'
11203        ;;
11204      esac
11205    fi
11206    case $host_cpu in
11207    hppa*64*|ia64*)
11208      hardcode_direct_CXX=no
11209      hardcode_shlibpath_var_CXX=no
11210      ;;
11211    *)
11212      hardcode_direct_CXX=yes
11213      hardcode_minus_L_CXX=yes # Not in the search PATH,
11214					      # but as the default
11215					      # location of the library.
11216      ;;
11217    esac
11218
11219    case $cc_basename in
11220      CC*)
11221	# FIXME: insert proper C++ library support
11222	ld_shlibs_CXX=no
11223	;;
11224      aCC*)
11225	case $host_cpu in
11226	hppa*64*)
11227	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11228	  ;;
11229	ia64*)
11230	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11231	  ;;
11232	*)
11233	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11234	  ;;
11235	esac
11236	# Commands to make compiler produce verbose output that lists
11237	# what "hidden" libraries, object files and flags are used when
11238	# linking a shared library.
11239	#
11240	# There doesn't appear to be a way to prevent this compiler from
11241	# explicitly linking system object files so we need to strip them
11242	# from the output so that they don't get included in the library
11243	# dependencies.
11244	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'
11245	;;
11246      *)
11247	if test "$GXX" = yes; then
11248	  if test $with_gnu_ld = no; then
11249	    case $host_cpu in
11250	    hppa*64*)
11251	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11252	      ;;
11253	    ia64*)
11254	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11255	      ;;
11256	    *)
11257	      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'
11258	      ;;
11259	    esac
11260	  fi
11261	else
11262	  # FIXME: insert proper C++ library support
11263	  ld_shlibs_CXX=no
11264	fi
11265	;;
11266    esac
11267    ;;
11268  interix3*)
11269    hardcode_direct_CXX=no
11270    hardcode_shlibpath_var_CXX=no
11271    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11272    export_dynamic_flag_spec_CXX='${wl}-E'
11273    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11274    # Instead, shared libraries are loaded at an image base (0x10000000 by
11275    # default) and relocated if they conflict, which is a slow very memory
11276    # consuming and fragmenting process.  To avoid this, we pick a random,
11277    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11278    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11279    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'
11280    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'
11281    ;;
11282  irix5* | irix6*)
11283    case $cc_basename in
11284      CC*)
11285	# SGI C++
11286	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'
11287
11288	# Archives containing C++ object files must be created using
11289	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11290	# necessary to make sure instantiated templates are included
11291	# in the archive.
11292	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11293	;;
11294      *)
11295	if test "$GXX" = yes; then
11296	  if test "$with_gnu_ld" = no; then
11297	    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'
11298	  else
11299	    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'
11300	  fi
11301	fi
11302	link_all_deplibs_CXX=yes
11303	;;
11304    esac
11305    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11306    hardcode_libdir_separator_CXX=:
11307    ;;
11308  linux*)
11309    case $cc_basename in
11310      KCC*)
11311	# Kuck and Associates, Inc. (KAI) C++ Compiler
11312
11313	# KCC will only create a shared library if the output file
11314	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11315	# to its proper name (with version) after linking.
11316	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'
11317	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'
11318	# Commands to make compiler produce verbose output that lists
11319	# what "hidden" libraries, object files and flags are used when
11320	# linking a shared library.
11321	#
11322	# There doesn't appear to be a way to prevent this compiler from
11323	# explicitly linking system object files so we need to strip them
11324	# from the output so that they don't get included in the library
11325	# dependencies.
11326	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'
11327
11328	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11329	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11330
11331	# Archives containing C++ object files must be created using
11332	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11333	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11334	;;
11335      icpc*)
11336	# Intel C++
11337	with_gnu_ld=yes
11338	# version 8.0 and above of icpc choke on multiply defined symbols
11339	# if we add $predep_objects and $postdep_objects, however 7.1 and
11340	# earlier do not add the objects themselves.
11341	case `$CC -V 2>&1` in
11342	*"Version 7."*)
11343  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11344  	  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'
11345	  ;;
11346	*)  # Version 8.0 or newer
11347	  tmp_idyn=
11348	  case $host_cpu in
11349	    ia64*) tmp_idyn=' -i_dynamic';;
11350	  esac
11351  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11352	  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'
11353	  ;;
11354	esac
11355	archive_cmds_need_lc_CXX=no
11356	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11357	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11358	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11359	;;
11360      pgCC*)
11361        # Portland Group C++ compiler
11362	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11363  	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'
11364
11365	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11366	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11367	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'
11368        ;;
11369      cxx*)
11370	# Compaq C++
11371	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11372	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'
11373
11374	runpath_var=LD_RUN_PATH
11375	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11376	hardcode_libdir_separator_CXX=:
11377
11378	# Commands to make compiler produce verbose output that lists
11379	# what "hidden" libraries, object files and flags are used when
11380	# linking a shared library.
11381	#
11382	# There doesn't appear to be a way to prevent this compiler from
11383	# explicitly linking system object files so we need to strip them
11384	# from the output so that they don't get included in the library
11385	# dependencies.
11386	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'
11387	;;
11388      *)
11389	case `$CC -V 2>&1 | sed 5q` in
11390	*Sun\ C*)
11391	  # Sun C++ 5.9
11392	  no_undefined_flag_CXX=' -zdefs'
11393	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11394	  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'
11395	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11396	  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'
11397
11398	  # Not sure whether something based on
11399	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11400	  # would be better.
11401	  output_verbose_link_cmd='echo'
11402
11403	  # Archives containing C++ object files must be created using
11404	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11405	  # necessary to make sure instantiated templates are included
11406	  # in the archive.
11407	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11408	  ;;
11409	esac
11410	;;
11411    esac
11412    ;;
11413  lynxos*)
11414    # FIXME: insert proper C++ library support
11415    ld_shlibs_CXX=no
11416    ;;
11417  m88k*)
11418    # FIXME: insert proper C++ library support
11419    ld_shlibs_CXX=no
11420    ;;
11421  mvs*)
11422    case $cc_basename in
11423      cxx*)
11424	# FIXME: insert proper C++ library support
11425	ld_shlibs_CXX=no
11426	;;
11427      *)
11428	# FIXME: insert proper C++ library support
11429	ld_shlibs_CXX=no
11430	;;
11431    esac
11432    ;;
11433  netbsd*)
11434    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11435      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11436      wlarc=
11437      hardcode_libdir_flag_spec_CXX='-R$libdir'
11438      hardcode_direct_CXX=yes
11439      hardcode_shlibpath_var_CXX=no
11440    fi
11441    # Workaround some broken pre-1.5 toolchains
11442    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11443    ;;
11444  openbsd2*)
11445    # C++ shared libraries are fairly broken
11446    ld_shlibs_CXX=no
11447    ;;
11448  openbsd*)
11449    hardcode_direct_CXX=yes
11450    hardcode_shlibpath_var_CXX=no
11451    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11452    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11453    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11454      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11455      export_dynamic_flag_spec_CXX='${wl}-E'
11456      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11457    fi
11458    output_verbose_link_cmd='echo'
11459    ;;
11460  osf3*)
11461    case $cc_basename in
11462      KCC*)
11463	# Kuck and Associates, Inc. (KAI) C++ Compiler
11464
11465	# KCC will only create a shared library if the output file
11466	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11467	# to its proper name (with version) after linking.
11468	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'
11469
11470	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11471	hardcode_libdir_separator_CXX=:
11472
11473	# Archives containing C++ object files must be created using
11474	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11475	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11476
11477	;;
11478      RCC*)
11479	# Rational C++ 2.4.1
11480	# FIXME: insert proper C++ library support
11481	ld_shlibs_CXX=no
11482	;;
11483      cxx*)
11484	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11485	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'
11486
11487	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11488	hardcode_libdir_separator_CXX=:
11489
11490	# Commands to make compiler produce verbose output that lists
11491	# what "hidden" libraries, object files and flags are used when
11492	# linking a shared library.
11493	#
11494	# There doesn't appear to be a way to prevent this compiler from
11495	# explicitly linking system object files so we need to strip them
11496	# from the output so that they don't get included in the library
11497	# dependencies.
11498	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'
11499	;;
11500      *)
11501	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11502	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11503	  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'
11504
11505	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11506	  hardcode_libdir_separator_CXX=:
11507
11508	  # Commands to make compiler produce verbose output that lists
11509	  # what "hidden" libraries, object files and flags are used when
11510	  # linking a shared library.
11511	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11512
11513	else
11514	  # FIXME: insert proper C++ library support
11515	  ld_shlibs_CXX=no
11516	fi
11517	;;
11518    esac
11519    ;;
11520  osf4* | osf5*)
11521    case $cc_basename in
11522      KCC*)
11523	# Kuck and Associates, Inc. (KAI) C++ Compiler
11524
11525	# KCC will only create a shared library if the output file
11526	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11527	# to its proper name (with version) after linking.
11528	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'
11529
11530	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11531	hardcode_libdir_separator_CXX=:
11532
11533	# Archives containing C++ object files must be created using
11534	# the KAI C++ compiler.
11535	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11536	;;
11537      RCC*)
11538	# Rational C++ 2.4.1
11539	# FIXME: insert proper C++ library support
11540	ld_shlibs_CXX=no
11541	;;
11542      cxx*)
11543	allow_undefined_flag_CXX=' -expect_unresolved \*'
11544	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'
11545	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11546	  echo "-hidden">> $lib.exp~
11547	  $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~
11548	  $rm $lib.exp'
11549
11550	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11551	hardcode_libdir_separator_CXX=:
11552
11553	# Commands to make compiler produce verbose output that lists
11554	# what "hidden" libraries, object files and flags are used when
11555	# linking a shared library.
11556	#
11557	# There doesn't appear to be a way to prevent this compiler from
11558	# explicitly linking system object files so we need to strip them
11559	# from the output so that they don't get included in the library
11560	# dependencies.
11561	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'
11562	;;
11563      *)
11564	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11565	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11566	 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'
11567
11568	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11569	  hardcode_libdir_separator_CXX=:
11570
11571	  # Commands to make compiler produce verbose output that lists
11572	  # what "hidden" libraries, object files and flags are used when
11573	  # linking a shared library.
11574	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11575
11576	else
11577	  # FIXME: insert proper C++ library support
11578	  ld_shlibs_CXX=no
11579	fi
11580	;;
11581    esac
11582    ;;
11583  psos*)
11584    # FIXME: insert proper C++ library support
11585    ld_shlibs_CXX=no
11586    ;;
11587  sunos4*)
11588    case $cc_basename in
11589      CC*)
11590	# Sun C++ 4.x
11591	# FIXME: insert proper C++ library support
11592	ld_shlibs_CXX=no
11593	;;
11594      lcc*)
11595	# Lucid
11596	# FIXME: insert proper C++ library support
11597	ld_shlibs_CXX=no
11598	;;
11599      *)
11600	# FIXME: insert proper C++ library support
11601	ld_shlibs_CXX=no
11602	;;
11603    esac
11604    ;;
11605  solaris*)
11606    case $cc_basename in
11607      CC*)
11608	# Sun C++ 4.2, 5.x and Centerline C++
11609        archive_cmds_need_lc_CXX=yes
11610	no_undefined_flag_CXX=' -zdefs'
11611	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11612	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11613	$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'
11614
11615	hardcode_libdir_flag_spec_CXX='-R$libdir'
11616	hardcode_shlibpath_var_CXX=no
11617	case $host_os in
11618	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11619	  *)
11620	    # The C++ compiler is used as linker so we must use $wl
11621	    # flag to pass the commands to the underlying system
11622	    # linker. We must also pass each convience library through
11623	    # to the system linker between allextract/defaultextract.
11624	    # The C++ compiler will combine linker options so we
11625	    # cannot just pass the convience library names through
11626	    # without $wl.
11627	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11628	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11629	    ;;
11630	esac
11631	link_all_deplibs_CXX=yes
11632
11633	output_verbose_link_cmd='echo'
11634
11635	# Archives containing C++ object files must be created using
11636	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11637	# necessary to make sure instantiated templates are included
11638	# in the archive.
11639	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11640	;;
11641      gcx*)
11642	# Green Hills C++ Compiler
11643	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11644
11645	# The C++ compiler must be used to create the archive.
11646	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11647	;;
11648      *)
11649	# GNU C++ compiler with Solaris linker
11650	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11651	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11652	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11653	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11654	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11655		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11656
11657	    # Commands to make compiler produce verbose output that lists
11658	    # what "hidden" libraries, object files and flags are used when
11659	    # linking a shared library.
11660	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11661	  else
11662	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11663	    # platform.
11664	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11665	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11666		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11667
11668	    # Commands to make compiler produce verbose output that lists
11669	    # what "hidden" libraries, object files and flags are used when
11670	    # linking a shared library.
11671	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11672	  fi
11673
11674	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11675	fi
11676	;;
11677    esac
11678    ;;
11679  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11680    no_undefined_flag_CXX='${wl}-z,text'
11681    archive_cmds_need_lc_CXX=no
11682    hardcode_shlibpath_var_CXX=no
11683    runpath_var='LD_RUN_PATH'
11684
11685    case $cc_basename in
11686      CC*)
11687	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11688	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11689	;;
11690      *)
11691	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11692	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11693	;;
11694    esac
11695    ;;
11696  sysv5* | sco3.2v5* | sco5v6*)
11697    # Note: We can NOT use -z defs as we might desire, because we do not
11698    # link with -lc, and that would cause any symbols used from libc to
11699    # always be unresolved, which means just about no library would
11700    # ever link correctly.  If we're not using GNU ld we use -z text
11701    # though, which does catch some bad symbols but isn't as heavy-handed
11702    # as -z defs.
11703    # For security reasons, it is highly recommended that you always
11704    # use absolute paths for naming shared libraries, and exclude the
11705    # DT_RUNPATH tag from executables and libraries.  But doing so
11706    # requires that you compile everything twice, which is a pain.
11707    # So that behaviour is only enabled if SCOABSPATH is set to a
11708    # non-empty value in the environment.  Most likely only useful for
11709    # creating official distributions of packages.
11710    # This is a hack until libtool officially supports absolute path
11711    # names for shared libraries.
11712    no_undefined_flag_CXX='${wl}-z,text'
11713    allow_undefined_flag_CXX='${wl}-z,nodefs'
11714    archive_cmds_need_lc_CXX=no
11715    hardcode_shlibpath_var_CXX=no
11716    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11717    hardcode_libdir_separator_CXX=':'
11718    link_all_deplibs_CXX=yes
11719    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11720    runpath_var='LD_RUN_PATH'
11721
11722    case $cc_basename in
11723      CC*)
11724	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11725	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11726	;;
11727      *)
11728	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11729	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11730	;;
11731    esac
11732    ;;
11733  tandem*)
11734    case $cc_basename in
11735      NCC*)
11736	# NonStop-UX NCC 3.20
11737	# FIXME: insert proper C++ library support
11738	ld_shlibs_CXX=no
11739	;;
11740      *)
11741	# FIXME: insert proper C++ library support
11742	ld_shlibs_CXX=no
11743	;;
11744    esac
11745    ;;
11746  vxworks*)
11747    # FIXME: insert proper C++ library support
11748    ld_shlibs_CXX=no
11749    ;;
11750  *)
11751    # FIXME: insert proper C++ library support
11752    ld_shlibs_CXX=no
11753    ;;
11754esac
11755{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11756echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11757test "$ld_shlibs_CXX" = no && can_build_shared=no
11758
11759GCC_CXX="$GXX"
11760LD_CXX="$LD"
11761
11762
11763cat > conftest.$ac_ext <<EOF
11764class Foo
11765{
11766public:
11767  Foo (void) { a = 0; }
11768private:
11769  int a;
11770};
11771EOF
11772
11773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11774  (eval $ac_compile) 2>&5
11775  ac_status=$?
11776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777  (exit $ac_status); }; then
11778  # Parse the compiler output and extract the necessary
11779  # objects, libraries and library flags.
11780
11781  # Sentinel used to keep track of whether or not we are before
11782  # the conftest object file.
11783  pre_test_object_deps_done=no
11784
11785  # The `*' in the case matches for architectures that use `case' in
11786  # $output_verbose_cmd can trigger glob expansion during the loop
11787  # eval without this substitution.
11788  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11789
11790  for p in `eval $output_verbose_link_cmd`; do
11791    case $p in
11792
11793    -L* | -R* | -l*)
11794       # Some compilers place space between "-{L,R}" and the path.
11795       # Remove the space.
11796       if test $p = "-L" \
11797	  || test $p = "-R"; then
11798	 prev=$p
11799	 continue
11800       else
11801	 prev=
11802       fi
11803
11804       if test "$pre_test_object_deps_done" = no; then
11805	 case $p in
11806	 -L* | -R*)
11807	   # Internal compiler library paths should come after those
11808	   # provided the user.  The postdeps already come after the
11809	   # user supplied libs so there is no need to process them.
11810	   if test -z "$compiler_lib_search_path_CXX"; then
11811	     compiler_lib_search_path_CXX="${prev}${p}"
11812	   else
11813	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11814	   fi
11815	   ;;
11816	 # The "-l" case would never come before the object being
11817	 # linked, so don't bother handling this case.
11818	 esac
11819       else
11820	 if test -z "$postdeps_CXX"; then
11821	   postdeps_CXX="${prev}${p}"
11822	 else
11823	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11824	 fi
11825       fi
11826       ;;
11827
11828    *.$objext)
11829       # This assumes that the test object file only shows up
11830       # once in the compiler output.
11831       if test "$p" = "conftest.$objext"; then
11832	 pre_test_object_deps_done=yes
11833	 continue
11834       fi
11835
11836       if test "$pre_test_object_deps_done" = no; then
11837	 if test -z "$predep_objects_CXX"; then
11838	   predep_objects_CXX="$p"
11839	 else
11840	   predep_objects_CXX="$predep_objects_CXX $p"
11841	 fi
11842       else
11843	 if test -z "$postdep_objects_CXX"; then
11844	   postdep_objects_CXX="$p"
11845	 else
11846	   postdep_objects_CXX="$postdep_objects_CXX $p"
11847	 fi
11848       fi
11849       ;;
11850
11851    *) ;; # Ignore the rest.
11852
11853    esac
11854  done
11855
11856  # Clean up.
11857  rm -f a.out a.exe
11858else
11859  echo "libtool.m4: error: problem compiling CXX test program"
11860fi
11861
11862$rm -f confest.$objext
11863
11864# PORTME: override above test on systems where it is broken
11865case $host_os in
11866interix3*)
11867  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11868  # hack all around it, let's just trust "g++" to DTRT.
11869  predep_objects_CXX=
11870  postdep_objects_CXX=
11871  postdeps_CXX=
11872  ;;
11873
11874linux*)
11875  case `$CC -V 2>&1 | sed 5q` in
11876  *Sun\ C*)
11877    # Sun C++ 5.9
11878    postdeps_CXX='-lCstd -lCrun'
11879    ;;
11880  esac
11881  ;;
11882
11883solaris*)
11884  case $cc_basename in
11885  CC*)
11886    # Adding this requires a known-good setup of shared libraries for
11887    # Sun compiler versions before 5.6, else PIC objects from an old
11888    # archive will be linked into the output, leading to subtle bugs.
11889    postdeps_CXX='-lCstd -lCrun'
11890    ;;
11891  esac
11892  ;;
11893esac
11894
11895
11896case " $postdeps_CXX " in
11897*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11898esac
11899
11900lt_prog_compiler_wl_CXX=
11901lt_prog_compiler_pic_CXX=
11902lt_prog_compiler_static_CXX=
11903
11904{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11905echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11906
11907  # C++ specific cases for pic, static, wl, etc.
11908  if test "$GXX" = yes; then
11909    lt_prog_compiler_wl_CXX='-Wl,'
11910    lt_prog_compiler_static_CXX='-static'
11911
11912    case $host_os in
11913    aix*)
11914      # All AIX code is PIC.
11915      if test "$host_cpu" = ia64; then
11916	# AIX 5 now supports IA64 processor
11917	lt_prog_compiler_static_CXX='-Bstatic'
11918      fi
11919      ;;
11920    amigaos*)
11921      # FIXME: we need at least 68020 code to build shared libraries, but
11922      # adding the `-m68020' flag to GCC prevents building anything better,
11923      # like `-m68040'.
11924      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11925      ;;
11926    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11927      # PIC is the default for these OSes.
11928      ;;
11929    mingw* | cygwin* | os2* | pw32*)
11930      # This hack is so that the source file can tell whether it is being
11931      # built for inclusion in a dll (and should export symbols for example).
11932      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11933      # (--disable-auto-import) libraries
11934      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11935      ;;
11936    darwin* | rhapsody*)
11937      # PIC is the default on this platform
11938      # Common symbols not allowed in MH_DYLIB files
11939      lt_prog_compiler_pic_CXX='-fno-common'
11940      ;;
11941    *djgpp*)
11942      # DJGPP does not support shared libraries at all
11943      lt_prog_compiler_pic_CXX=
11944      ;;
11945    interix3*)
11946      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11947      # Instead, we relocate shared libraries at runtime.
11948      ;;
11949    sysv4*MP*)
11950      if test -d /usr/nec; then
11951	lt_prog_compiler_pic_CXX=-Kconform_pic
11952      fi
11953      ;;
11954    hpux*)
11955      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11956      # not for PA HP-UX.
11957      case $host_cpu in
11958      hppa*64*|ia64*)
11959	;;
11960      *)
11961	lt_prog_compiler_pic_CXX='-fPIC'
11962	;;
11963      esac
11964      ;;
11965    *)
11966      lt_prog_compiler_pic_CXX='-fPIC'
11967      ;;
11968    esac
11969  else
11970    case $host_os in
11971      aix4* | aix5*)
11972	# All AIX code is PIC.
11973	if test "$host_cpu" = ia64; then
11974	  # AIX 5 now supports IA64 processor
11975	  lt_prog_compiler_static_CXX='-Bstatic'
11976	else
11977	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11978	fi
11979	;;
11980      chorus*)
11981	case $cc_basename in
11982	cxch68*)
11983	  # Green Hills C++ Compiler
11984	  # _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"
11985	  ;;
11986	esac
11987	;;
11988       darwin*)
11989         # PIC is the default on this platform
11990         # Common symbols not allowed in MH_DYLIB files
11991         case $cc_basename in
11992           xlc*)
11993           lt_prog_compiler_pic_CXX='-qnocommon'
11994           lt_prog_compiler_wl_CXX='-Wl,'
11995           ;;
11996         esac
11997       ;;
11998      dgux*)
11999	case $cc_basename in
12000	  ec++*)
12001	    lt_prog_compiler_pic_CXX='-KPIC'
12002	    ;;
12003	  ghcx*)
12004	    # Green Hills C++ Compiler
12005	    lt_prog_compiler_pic_CXX='-pic'
12006	    ;;
12007	  *)
12008	    ;;
12009	esac
12010	;;
12011      freebsd* | kfreebsd*-gnu | dragonfly*)
12012	# FreeBSD uses GNU C++
12013	;;
12014      hpux9* | hpux10* | hpux11*)
12015	case $cc_basename in
12016	  CC*)
12017	    lt_prog_compiler_wl_CXX='-Wl,'
12018	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12019	    if test "$host_cpu" != ia64; then
12020	      lt_prog_compiler_pic_CXX='+Z'
12021	    fi
12022	    ;;
12023	  aCC*)
12024	    lt_prog_compiler_wl_CXX='-Wl,'
12025	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12026	    case $host_cpu in
12027	    hppa*64*|ia64*)
12028	      # +Z the default
12029	      ;;
12030	    *)
12031	      lt_prog_compiler_pic_CXX='+Z'
12032	      ;;
12033	    esac
12034	    ;;
12035	  *)
12036	    ;;
12037	esac
12038	;;
12039      interix*)
12040	# This is c89, which is MS Visual C++ (no shared libs)
12041	# Anyone wants to do a port?
12042	;;
12043      irix5* | irix6* | nonstopux*)
12044	case $cc_basename in
12045	  CC*)
12046	    lt_prog_compiler_wl_CXX='-Wl,'
12047	    lt_prog_compiler_static_CXX='-non_shared'
12048	    # CC pic flag -KPIC is the default.
12049	    ;;
12050	  *)
12051	    ;;
12052	esac
12053	;;
12054      linux*)
12055	case $cc_basename in
12056	  KCC*)
12057	    # KAI C++ Compiler
12058	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12059	    lt_prog_compiler_pic_CXX='-fPIC'
12060	    ;;
12061	  icpc* | ecpc*)
12062	    # Intel C++
12063	    lt_prog_compiler_wl_CXX='-Wl,'
12064	    lt_prog_compiler_pic_CXX='-KPIC'
12065	    lt_prog_compiler_static_CXX='-static'
12066	    ;;
12067	  pgCC*)
12068	    # Portland Group C++ compiler.
12069	    lt_prog_compiler_wl_CXX='-Wl,'
12070	    lt_prog_compiler_pic_CXX='-fpic'
12071	    lt_prog_compiler_static_CXX='-Bstatic'
12072	    ;;
12073	  cxx*)
12074	    # Compaq C++
12075	    # Make sure the PIC flag is empty.  It appears that all Alpha
12076	    # Linux and Compaq Tru64 Unix objects are PIC.
12077	    lt_prog_compiler_pic_CXX=
12078	    lt_prog_compiler_static_CXX='-non_shared'
12079	    ;;
12080	  *)
12081	    case `$CC -V 2>&1 | sed 5q` in
12082	    *Sun\ C*)
12083	      # Sun C++ 5.9
12084	      lt_prog_compiler_pic_CXX='-KPIC'
12085	      lt_prog_compiler_static_CXX='-Bstatic'
12086	      lt_prog_compiler_wl_CXX='-Qoption ld '
12087	      ;;
12088	    esac
12089	    ;;
12090	esac
12091	;;
12092      lynxos*)
12093	;;
12094      m88k*)
12095	;;
12096      mvs*)
12097	case $cc_basename in
12098	  cxx*)
12099	    lt_prog_compiler_pic_CXX='-W c,exportall'
12100	    ;;
12101	  *)
12102	    ;;
12103	esac
12104	;;
12105      netbsd*)
12106	;;
12107      osf3* | osf4* | osf5*)
12108	case $cc_basename in
12109	  KCC*)
12110	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12111	    ;;
12112	  RCC*)
12113	    # Rational C++ 2.4.1
12114	    lt_prog_compiler_pic_CXX='-pic'
12115	    ;;
12116	  cxx*)
12117	    # Digital/Compaq C++
12118	    lt_prog_compiler_wl_CXX='-Wl,'
12119	    # Make sure the PIC flag is empty.  It appears that all Alpha
12120	    # Linux and Compaq Tru64 Unix objects are PIC.
12121	    lt_prog_compiler_pic_CXX=
12122	    lt_prog_compiler_static_CXX='-non_shared'
12123	    ;;
12124	  *)
12125	    ;;
12126	esac
12127	;;
12128      psos*)
12129	;;
12130      solaris*)
12131	case $cc_basename in
12132	  CC*)
12133	    # Sun C++ 4.2, 5.x and Centerline C++
12134	    lt_prog_compiler_pic_CXX='-KPIC'
12135	    lt_prog_compiler_static_CXX='-Bstatic'
12136	    lt_prog_compiler_wl_CXX='-Qoption ld '
12137	    ;;
12138	  gcx*)
12139	    # Green Hills C++ Compiler
12140	    lt_prog_compiler_pic_CXX='-PIC'
12141	    ;;
12142	  *)
12143	    ;;
12144	esac
12145	;;
12146      sunos4*)
12147	case $cc_basename in
12148	  CC*)
12149	    # Sun C++ 4.x
12150	    lt_prog_compiler_pic_CXX='-pic'
12151	    lt_prog_compiler_static_CXX='-Bstatic'
12152	    ;;
12153	  lcc*)
12154	    # Lucid
12155	    lt_prog_compiler_pic_CXX='-pic'
12156	    ;;
12157	  *)
12158	    ;;
12159	esac
12160	;;
12161      tandem*)
12162	case $cc_basename in
12163	  NCC*)
12164	    # NonStop-UX NCC 3.20
12165	    lt_prog_compiler_pic_CXX='-KPIC'
12166	    ;;
12167	  *)
12168	    ;;
12169	esac
12170	;;
12171      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12172	case $cc_basename in
12173	  CC*)
12174	    lt_prog_compiler_wl_CXX='-Wl,'
12175	    lt_prog_compiler_pic_CXX='-KPIC'
12176	    lt_prog_compiler_static_CXX='-Bstatic'
12177	    ;;
12178	esac
12179	;;
12180      vxworks*)
12181	;;
12182      *)
12183	lt_prog_compiler_can_build_shared_CXX=no
12184	;;
12185    esac
12186  fi
12187
12188{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12189echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12190
12191#
12192# Check to make sure the PIC flag actually works.
12193#
12194if test -n "$lt_prog_compiler_pic_CXX"; then
12195
12196{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12197echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12198if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12199  echo $ECHO_N "(cached) $ECHO_C" >&6
12200else
12201  lt_prog_compiler_pic_works_CXX=no
12202  ac_outfile=conftest.$ac_objext
12203   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12204   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12205   # Insert the option either (1) after the last *FLAGS variable, or
12206   # (2) before a word containing "conftest.", or (3) at the end.
12207   # Note that $ac_compile itself does not contain backslashes and begins
12208   # with a dollar sign (not a hyphen), so the echo should work correctly.
12209   # The option is referenced via a variable to avoid confusing sed.
12210   lt_compile=`echo "$ac_compile" | $SED \
12211   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12212   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12213   -e 's:$: $lt_compiler_flag:'`
12214   (eval echo "\"\$as_me:12214: $lt_compile\"" >&5)
12215   (eval "$lt_compile" 2>conftest.err)
12216   ac_status=$?
12217   cat conftest.err >&5
12218   echo "$as_me:12218: \$? = $ac_status" >&5
12219   if (exit $ac_status) && test -s "$ac_outfile"; then
12220     # The compiler can only warn and ignore the option if not recognized
12221     # So say no if there are warnings other than the usual output.
12222     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12223     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12224     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12225       lt_prog_compiler_pic_works_CXX=yes
12226     fi
12227   fi
12228   $rm conftest*
12229
12230fi
12231{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12232echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12233
12234if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12235    case $lt_prog_compiler_pic_CXX in
12236     "" | " "*) ;;
12237     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12238     esac
12239else
12240    lt_prog_compiler_pic_CXX=
12241     lt_prog_compiler_can_build_shared_CXX=no
12242fi
12243
12244fi
12245case $host_os in
12246  # For platforms which do not support PIC, -DPIC is meaningless:
12247  *djgpp*)
12248    lt_prog_compiler_pic_CXX=
12249    ;;
12250  *)
12251    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12252    ;;
12253esac
12254
12255#
12256# Check to make sure the static flag actually works.
12257#
12258wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12259{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12260echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12261if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12262  echo $ECHO_N "(cached) $ECHO_C" >&6
12263else
12264  lt_prog_compiler_static_works_CXX=no
12265   save_LDFLAGS="$LDFLAGS"
12266   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12267   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12268   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12269     # The linker can only warn and ignore the option if not recognized
12270     # So say no if there are warnings
12271     if test -s conftest.err; then
12272       # Append any errors to the config.log.
12273       cat conftest.err 1>&5
12274       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12275       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12276       if diff conftest.exp conftest.er2 >/dev/null; then
12277         lt_prog_compiler_static_works_CXX=yes
12278       fi
12279     else
12280       lt_prog_compiler_static_works_CXX=yes
12281     fi
12282   fi
12283   $rm conftest*
12284   LDFLAGS="$save_LDFLAGS"
12285
12286fi
12287{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12288echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12289
12290if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12291    :
12292else
12293    lt_prog_compiler_static_CXX=
12294fi
12295
12296
12297{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12298echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12299if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12300  echo $ECHO_N "(cached) $ECHO_C" >&6
12301else
12302  lt_cv_prog_compiler_c_o_CXX=no
12303   $rm -r conftest 2>/dev/null
12304   mkdir conftest
12305   cd conftest
12306   mkdir out
12307   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12308
12309   lt_compiler_flag="-o out/conftest2.$ac_objext"
12310   # Insert the option either (1) after the last *FLAGS variable, or
12311   # (2) before a word containing "conftest.", or (3) at the end.
12312   # Note that $ac_compile itself does not contain backslashes and begins
12313   # with a dollar sign (not a hyphen), so the echo should work correctly.
12314   lt_compile=`echo "$ac_compile" | $SED \
12315   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12316   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12317   -e 's:$: $lt_compiler_flag:'`
12318   (eval echo "\"\$as_me:12318: $lt_compile\"" >&5)
12319   (eval "$lt_compile" 2>out/conftest.err)
12320   ac_status=$?
12321   cat out/conftest.err >&5
12322   echo "$as_me:12322: \$? = $ac_status" >&5
12323   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12324   then
12325     # The compiler can only warn and ignore the option if not recognized
12326     # So say no if there are warnings
12327     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12328     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12329     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12330       lt_cv_prog_compiler_c_o_CXX=yes
12331     fi
12332   fi
12333   chmod u+w . 2>&5
12334   $rm conftest*
12335   # SGI C++ compiler will create directory out/ii_files/ for
12336   # template instantiation
12337   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12338   $rm out/* && rmdir out
12339   cd ..
12340   rmdir conftest
12341   $rm conftest*
12342
12343fi
12344{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12345echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12346
12347
12348hard_links="nottested"
12349if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12350  # do not overwrite the value of need_locks provided by the user
12351  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12352echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12353  hard_links=yes
12354  $rm conftest*
12355  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12356  touch conftest.a
12357  ln conftest.a conftest.b 2>&5 || hard_links=no
12358  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12359  { echo "$as_me:$LINENO: result: $hard_links" >&5
12360echo "${ECHO_T}$hard_links" >&6; }
12361  if test "$hard_links" = no; then
12362    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12363echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12364    need_locks=warn
12365  fi
12366else
12367  need_locks=no
12368fi
12369
12370{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12371echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12372
12373  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12374  case $host_os in
12375  aix4* | aix5*)
12376    # If we're using GNU nm, then we don't want the "-C" option.
12377    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12378    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12379      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'
12380    else
12381      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'
12382    fi
12383    ;;
12384  pw32*)
12385    export_symbols_cmds_CXX="$ltdll_cmds"
12386  ;;
12387  cygwin* | mingw*)
12388    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'
12389  ;;
12390  *)
12391    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12392  ;;
12393  esac
12394
12395{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12396echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12397test "$ld_shlibs_CXX" = no && can_build_shared=no
12398
12399#
12400# Do we need to explicitly link libc?
12401#
12402case "x$archive_cmds_need_lc_CXX" in
12403x|xyes)
12404  # Assume -lc should be added
12405  archive_cmds_need_lc_CXX=yes
12406
12407  if test "$enable_shared" = yes && test "$GCC" = yes; then
12408    case $archive_cmds_CXX in
12409    *'~'*)
12410      # FIXME: we may have to deal with multi-command sequences.
12411      ;;
12412    '$CC '*)
12413      # Test whether the compiler implicitly links with -lc since on some
12414      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12415      # to ld, don't add -lc before -lgcc.
12416      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12417echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12418      $rm conftest*
12419      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12420
12421      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12422  (eval $ac_compile) 2>&5
12423  ac_status=$?
12424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425  (exit $ac_status); } 2>conftest.err; then
12426        soname=conftest
12427        lib=conftest
12428        libobjs=conftest.$ac_objext
12429        deplibs=
12430        wl=$lt_prog_compiler_wl_CXX
12431	pic_flag=$lt_prog_compiler_pic_CXX
12432        compiler_flags=-v
12433        linker_flags=-v
12434        verstring=
12435        output_objdir=.
12436        libname=conftest
12437        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12438        allow_undefined_flag_CXX=
12439        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12440  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12441  ac_status=$?
12442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443  (exit $ac_status); }
12444        then
12445	  archive_cmds_need_lc_CXX=no
12446        else
12447	  archive_cmds_need_lc_CXX=yes
12448        fi
12449        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12450      else
12451        cat conftest.err 1>&5
12452      fi
12453      $rm conftest*
12454      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12455echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12456      ;;
12457    esac
12458  fi
12459  ;;
12460esac
12461
12462{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12463echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12464library_names_spec=
12465libname_spec='lib$name'
12466soname_spec=
12467shrext_cmds=".so"
12468postinstall_cmds=
12469postuninstall_cmds=
12470finish_cmds=
12471finish_eval=
12472shlibpath_var=
12473shlibpath_overrides_runpath=unknown
12474version_type=none
12475dynamic_linker="$host_os ld.so"
12476sys_lib_dlsearch_path_spec="/lib /usr/lib"
12477if test "$GCC" = yes; then
12478  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12479  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12480    # if the path contains ";" then we assume it to be the separator
12481    # otherwise default to the standard path separator (i.e. ":") - it is
12482    # assumed that no part of a normal pathname contains ";" but that should
12483    # okay in the real world where ";" in dirpaths is itself problematic.
12484    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12485  else
12486    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12487  fi
12488else
12489  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12490fi
12491need_lib_prefix=unknown
12492hardcode_into_libs=no
12493
12494# when you set need_version to no, make sure it does not cause -set_version
12495# flags to be left without arguments
12496need_version=unknown
12497
12498case $host_os in
12499aix3*)
12500  version_type=linux
12501  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12502  shlibpath_var=LIBPATH
12503
12504  # AIX 3 has no versioning support, so we append a major version to the name.
12505  soname_spec='${libname}${release}${shared_ext}$major'
12506  ;;
12507
12508aix4* | aix5*)
12509  version_type=linux
12510  need_lib_prefix=no
12511  need_version=no
12512  hardcode_into_libs=yes
12513  if test "$host_cpu" = ia64; then
12514    # AIX 5 supports IA64
12515    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12516    shlibpath_var=LD_LIBRARY_PATH
12517  else
12518    # With GCC up to 2.95.x, collect2 would create an import file
12519    # for dependence libraries.  The import file would start with
12520    # the line `#! .'.  This would cause the generated library to
12521    # depend on `.', always an invalid library.  This was fixed in
12522    # development snapshots of GCC prior to 3.0.
12523    case $host_os in
12524      aix4 | aix4.[01] | aix4.[01].*)
12525      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12526	   echo ' yes '
12527	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12528	:
12529      else
12530	can_build_shared=no
12531      fi
12532      ;;
12533    esac
12534    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12535    # soname into executable. Probably we can add versioning support to
12536    # collect2, so additional links can be useful in future.
12537    if test "$aix_use_runtimelinking" = yes; then
12538      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12539      # instead of lib<name>.a to let people know that these are not
12540      # typical AIX shared libraries.
12541      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12542    else
12543      # We preserve .a as extension for shared libraries through AIX4.2
12544      # and later when we are not doing run time linking.
12545      library_names_spec='${libname}${release}.a $libname.a'
12546      soname_spec='${libname}${release}${shared_ext}$major'
12547    fi
12548    shlibpath_var=LIBPATH
12549  fi
12550  ;;
12551
12552amigaos*)
12553  library_names_spec='$libname.ixlibrary $libname.a'
12554  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12555  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'
12556  ;;
12557
12558beos*)
12559  library_names_spec='${libname}${shared_ext}'
12560  dynamic_linker="$host_os ld.so"
12561  shlibpath_var=LIBRARY_PATH
12562  ;;
12563
12564bsdi[45]*)
12565  version_type=linux
12566  need_version=no
12567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12568  soname_spec='${libname}${release}${shared_ext}$major'
12569  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12570  shlibpath_var=LD_LIBRARY_PATH
12571  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12572  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12573  # the default ld.so.conf also contains /usr/contrib/lib and
12574  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12575  # libtool to hard-code these into programs
12576  ;;
12577
12578cygwin* | mingw* | pw32*)
12579  version_type=windows
12580  shrext_cmds=".dll"
12581  need_version=no
12582  need_lib_prefix=no
12583
12584  case $GCC,$host_os in
12585  yes,cygwin* | yes,mingw* | yes,pw32*)
12586    library_names_spec='$libname.dll.a'
12587    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12588    postinstall_cmds='base_file=`basename \${file}`~
12589      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12590      dldir=$destdir/`dirname \$dlpath`~
12591      test -d \$dldir || mkdir -p \$dldir~
12592      $install_prog $dir/$dlname \$dldir/$dlname~
12593      chmod a+x \$dldir/$dlname'
12594    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12595      dlpath=$dir/\$dldll~
12596       $rm \$dlpath'
12597    shlibpath_overrides_runpath=yes
12598
12599    case $host_os in
12600    cygwin*)
12601      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12602      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12603      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12604      ;;
12605    mingw*)
12606      # MinGW DLLs use traditional 'lib' prefix
12607      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12608      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12609      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12610        # It is most probably a Windows format PATH printed by
12611        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12612        # path with ; separators, and with drive letters. We can handle the
12613        # drive letters (cygwin fileutils understands them), so leave them,
12614        # especially as we might pass files found there to a mingw objdump,
12615        # which wouldn't understand a cygwinified path. Ahh.
12616        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12617      else
12618        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12619      fi
12620      ;;
12621    pw32*)
12622      # pw32 DLLs use 'pw' prefix rather than 'lib'
12623      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12624      ;;
12625    esac
12626    ;;
12627
12628  *)
12629    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12630    ;;
12631  esac
12632  dynamic_linker='Win32 ld.exe'
12633  # FIXME: first we should search . and the directory the executable is in
12634  shlibpath_var=PATH
12635  ;;
12636
12637darwin* | rhapsody*)
12638  dynamic_linker="$host_os dyld"
12639  version_type=darwin
12640  need_lib_prefix=no
12641  need_version=no
12642  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12643  soname_spec='${libname}${release}${major}$shared_ext'
12644  shlibpath_overrides_runpath=yes
12645  shlibpath_var=DYLD_LIBRARY_PATH
12646  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12647  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12648  if test "$GCC" = yes; then
12649    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12650  else
12651    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12652  fi
12653  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12654  ;;
12655
12656dgux*)
12657  version_type=linux
12658  need_lib_prefix=no
12659  need_version=no
12660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12661  soname_spec='${libname}${release}${shared_ext}$major'
12662  shlibpath_var=LD_LIBRARY_PATH
12663  ;;
12664
12665freebsd1*)
12666  dynamic_linker=no
12667  ;;
12668
12669kfreebsd*-gnu)
12670  version_type=linux
12671  need_lib_prefix=no
12672  need_version=no
12673  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12674  soname_spec='${libname}${release}${shared_ext}$major'
12675  shlibpath_var=LD_LIBRARY_PATH
12676  shlibpath_overrides_runpath=no
12677  hardcode_into_libs=yes
12678  dynamic_linker='GNU ld.so'
12679  ;;
12680
12681freebsd* | dragonfly*)
12682  # DragonFly does not have aout.  When/if they implement a new
12683  # versioning mechanism, adjust this.
12684  if test -x /usr/bin/objformat; then
12685    objformat=`/usr/bin/objformat`
12686  else
12687    case $host_os in
12688    freebsd[123]*) objformat=aout ;;
12689    *) objformat=elf ;;
12690    esac
12691  fi
12692  version_type=freebsd-$objformat
12693  case $version_type in
12694    freebsd-elf*)
12695      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12696      need_version=no
12697      need_lib_prefix=no
12698      ;;
12699    freebsd-*)
12700      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12701      need_version=yes
12702      ;;
12703  esac
12704  shlibpath_var=LD_LIBRARY_PATH
12705  case $host_os in
12706  freebsd2*)
12707    shlibpath_overrides_runpath=yes
12708    ;;
12709  freebsd3.[01]* | freebsdelf3.[01]*)
12710    shlibpath_overrides_runpath=yes
12711    hardcode_into_libs=yes
12712    ;;
12713  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12714  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12715    shlibpath_overrides_runpath=no
12716    hardcode_into_libs=yes
12717    ;;
12718  freebsd*) # from 4.6 on
12719    shlibpath_overrides_runpath=yes
12720    hardcode_into_libs=yes
12721    ;;
12722  esac
12723  ;;
12724
12725gnu*)
12726  version_type=linux
12727  need_lib_prefix=no
12728  need_version=no
12729  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12730  soname_spec='${libname}${release}${shared_ext}$major'
12731  shlibpath_var=LD_LIBRARY_PATH
12732  hardcode_into_libs=yes
12733  ;;
12734
12735hpux9* | hpux10* | hpux11*)
12736  # Give a soname corresponding to the major version so that dld.sl refuses to
12737  # link against other versions.
12738  version_type=sunos
12739  need_lib_prefix=no
12740  need_version=no
12741  case $host_cpu in
12742  ia64*)
12743    shrext_cmds='.so'
12744    hardcode_into_libs=yes
12745    dynamic_linker="$host_os dld.so"
12746    shlibpath_var=LD_LIBRARY_PATH
12747    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12748    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12749    soname_spec='${libname}${release}${shared_ext}$major'
12750    if test "X$HPUX_IA64_MODE" = X32; then
12751      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12752    else
12753      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12754    fi
12755    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12756    ;;
12757   hppa*64*)
12758     shrext_cmds='.sl'
12759     hardcode_into_libs=yes
12760     dynamic_linker="$host_os dld.sl"
12761     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12762     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12763     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12764     soname_spec='${libname}${release}${shared_ext}$major'
12765     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12766     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12767     ;;
12768   *)
12769    shrext_cmds='.sl'
12770    dynamic_linker="$host_os dld.sl"
12771    shlibpath_var=SHLIB_PATH
12772    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12773    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12774    soname_spec='${libname}${release}${shared_ext}$major'
12775    ;;
12776  esac
12777  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12778  postinstall_cmds='chmod 555 $lib'
12779  ;;
12780
12781interix3*)
12782  version_type=linux
12783  need_lib_prefix=no
12784  need_version=no
12785  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12786  soname_spec='${libname}${release}${shared_ext}$major'
12787  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12788  shlibpath_var=LD_LIBRARY_PATH
12789  shlibpath_overrides_runpath=no
12790  hardcode_into_libs=yes
12791  ;;
12792
12793irix5* | irix6* | nonstopux*)
12794  case $host_os in
12795    nonstopux*) version_type=nonstopux ;;
12796    *)
12797	if test "$lt_cv_prog_gnu_ld" = yes; then
12798		version_type=linux
12799	else
12800		version_type=irix
12801	fi ;;
12802  esac
12803  need_lib_prefix=no
12804  need_version=no
12805  soname_spec='${libname}${release}${shared_ext}$major'
12806  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12807  case $host_os in
12808  irix5* | nonstopux*)
12809    libsuff= shlibsuff=
12810    ;;
12811  *)
12812    case $LD in # libtool.m4 will add one of these switches to LD
12813    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12814      libsuff= shlibsuff= libmagic=32-bit;;
12815    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12816      libsuff=32 shlibsuff=N32 libmagic=N32;;
12817    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12818      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12819    *) libsuff= shlibsuff= libmagic=never-match;;
12820    esac
12821    ;;
12822  esac
12823  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12824  shlibpath_overrides_runpath=no
12825  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12826  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12827  hardcode_into_libs=yes
12828  ;;
12829
12830# No shared lib support for Linux oldld, aout, or coff.
12831linux*oldld* | linux*aout* | linux*coff*)
12832  dynamic_linker=no
12833  ;;
12834
12835# This must be Linux ELF.
12836linux*)
12837  version_type=linux
12838  need_lib_prefix=no
12839  need_version=no
12840  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12841  soname_spec='${libname}${release}${shared_ext}$major'
12842  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12843  shlibpath_var=LD_LIBRARY_PATH
12844  shlibpath_overrides_runpath=no
12845  # This implies no fast_install, which is unacceptable.
12846  # Some rework will be needed to allow for fast_install
12847  # before this can be enabled.
12848  hardcode_into_libs=yes
12849
12850  # Append ld.so.conf contents to the search path
12851  if test -f /etc/ld.so.conf; then
12852    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/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12853    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12854  fi
12855
12856  # We used to test for /lib/ld.so.1 and disable shared libraries on
12857  # powerpc, because MkLinux only supported shared libraries with the
12858  # GNU dynamic linker.  Since this was broken with cross compilers,
12859  # most powerpc-linux boxes support dynamic linking these days and
12860  # people can always --disable-shared, the test was removed, and we
12861  # assume the GNU/Linux dynamic linker is in use.
12862  dynamic_linker='GNU/Linux ld.so'
12863  ;;
12864
12865knetbsd*-gnu)
12866  version_type=linux
12867  need_lib_prefix=no
12868  need_version=no
12869  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12870  soname_spec='${libname}${release}${shared_ext}$major'
12871  shlibpath_var=LD_LIBRARY_PATH
12872  shlibpath_overrides_runpath=no
12873  hardcode_into_libs=yes
12874  dynamic_linker='GNU ld.so'
12875  ;;
12876
12877netbsd*)
12878  version_type=sunos
12879  need_lib_prefix=no
12880  need_version=no
12881  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12882    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12883    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12884    dynamic_linker='NetBSD (a.out) ld.so'
12885  else
12886    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12887    soname_spec='${libname}${release}${shared_ext}$major'
12888    dynamic_linker='NetBSD ld.elf_so'
12889  fi
12890  shlibpath_var=LD_LIBRARY_PATH
12891  shlibpath_overrides_runpath=yes
12892  hardcode_into_libs=yes
12893  ;;
12894
12895newsos6)
12896  version_type=linux
12897  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12898  shlibpath_var=LD_LIBRARY_PATH
12899  shlibpath_overrides_runpath=yes
12900  ;;
12901
12902nto-qnx*)
12903  version_type=linux
12904  need_lib_prefix=no
12905  need_version=no
12906  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12907  soname_spec='${libname}${release}${shared_ext}$major'
12908  shlibpath_var=LD_LIBRARY_PATH
12909  shlibpath_overrides_runpath=yes
12910  ;;
12911
12912openbsd*)
12913  version_type=sunos
12914  sys_lib_dlsearch_path_spec="/usr/lib"
12915  need_lib_prefix=no
12916  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12917  case $host_os in
12918    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12919    *)                         need_version=no  ;;
12920  esac
12921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12922  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12923  shlibpath_var=LD_LIBRARY_PATH
12924  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12925    case $host_os in
12926      openbsd2.[89] | openbsd2.[89].*)
12927	shlibpath_overrides_runpath=no
12928	;;
12929      *)
12930	shlibpath_overrides_runpath=yes
12931	;;
12932      esac
12933  else
12934    shlibpath_overrides_runpath=yes
12935  fi
12936  ;;
12937
12938os2*)
12939  libname_spec='$name'
12940  shrext_cmds=".dll"
12941  need_lib_prefix=no
12942  library_names_spec='$libname${shared_ext} $libname.a'
12943  dynamic_linker='OS/2 ld.exe'
12944  shlibpath_var=LIBPATH
12945  ;;
12946
12947osf3* | osf4* | osf5*)
12948  version_type=osf
12949  need_lib_prefix=no
12950  need_version=no
12951  soname_spec='${libname}${release}${shared_ext}$major'
12952  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12953  shlibpath_var=LD_LIBRARY_PATH
12954  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12955  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12956  ;;
12957
12958solaris*)
12959  version_type=linux
12960  need_lib_prefix=no
12961  need_version=no
12962  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12963  soname_spec='${libname}${release}${shared_ext}$major'
12964  shlibpath_var=LD_LIBRARY_PATH
12965  shlibpath_overrides_runpath=yes
12966  hardcode_into_libs=yes
12967  # ldd complains unless libraries are executable
12968  postinstall_cmds='chmod +x $lib'
12969  ;;
12970
12971sunos4*)
12972  version_type=sunos
12973  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12974  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12975  shlibpath_var=LD_LIBRARY_PATH
12976  shlibpath_overrides_runpath=yes
12977  if test "$with_gnu_ld" = yes; then
12978    need_lib_prefix=no
12979  fi
12980  need_version=yes
12981  ;;
12982
12983sysv4 | sysv4.3*)
12984  version_type=linux
12985  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12986  soname_spec='${libname}${release}${shared_ext}$major'
12987  shlibpath_var=LD_LIBRARY_PATH
12988  case $host_vendor in
12989    sni)
12990      shlibpath_overrides_runpath=no
12991      need_lib_prefix=no
12992      export_dynamic_flag_spec='${wl}-Blargedynsym'
12993      runpath_var=LD_RUN_PATH
12994      ;;
12995    siemens)
12996      need_lib_prefix=no
12997      ;;
12998    motorola)
12999      need_lib_prefix=no
13000      need_version=no
13001      shlibpath_overrides_runpath=no
13002      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13003      ;;
13004  esac
13005  ;;
13006
13007sysv4*MP*)
13008  if test -d /usr/nec ;then
13009    version_type=linux
13010    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13011    soname_spec='$libname${shared_ext}.$major'
13012    shlibpath_var=LD_LIBRARY_PATH
13013  fi
13014  ;;
13015
13016sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13017  version_type=freebsd-elf
13018  need_lib_prefix=no
13019  need_version=no
13020  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13021  soname_spec='${libname}${release}${shared_ext}$major'
13022  shlibpath_var=LD_LIBRARY_PATH
13023  hardcode_into_libs=yes
13024  if test "$with_gnu_ld" = yes; then
13025    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13026    shlibpath_overrides_runpath=no
13027  else
13028    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13029    shlibpath_overrides_runpath=yes
13030    case $host_os in
13031      sco3.2v5*)
13032        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13033	;;
13034    esac
13035  fi
13036  sys_lib_dlsearch_path_spec='/usr/lib'
13037  ;;
13038
13039uts4*)
13040  version_type=linux
13041  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13042  soname_spec='${libname}${release}${shared_ext}$major'
13043  shlibpath_var=LD_LIBRARY_PATH
13044  ;;
13045
13046*)
13047  dynamic_linker=no
13048  ;;
13049esac
13050{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13051echo "${ECHO_T}$dynamic_linker" >&6; }
13052test "$dynamic_linker" = no && can_build_shared=no
13053
13054variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13055if test "$GCC" = yes; then
13056  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13057fi
13058
13059{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13060echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13061hardcode_action_CXX=
13062if test -n "$hardcode_libdir_flag_spec_CXX" || \
13063   test -n "$runpath_var_CXX" || \
13064   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13065
13066  # We can hardcode non-existant directories.
13067  if test "$hardcode_direct_CXX" != no &&
13068     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13069     # have to relink, otherwise we might link with an installed library
13070     # when we should be linking with a yet-to-be-installed one
13071     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13072     test "$hardcode_minus_L_CXX" != no; then
13073    # Linking always hardcodes the temporary library directory.
13074    hardcode_action_CXX=relink
13075  else
13076    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13077    hardcode_action_CXX=immediate
13078  fi
13079else
13080  # We cannot hardcode anything, or else we can only hardcode existing
13081  # directories.
13082  hardcode_action_CXX=unsupported
13083fi
13084{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13085echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13086
13087if test "$hardcode_action_CXX" = relink; then
13088  # Fast installation is not supported
13089  enable_fast_install=no
13090elif test "$shlibpath_overrides_runpath" = yes ||
13091     test "$enable_shared" = no; then
13092  # Fast installation is not necessary
13093  enable_fast_install=needless
13094fi
13095
13096
13097# The else clause should only fire when bootstrapping the
13098# libtool distribution, otherwise you forgot to ship ltmain.sh
13099# with your package, and you will get complaints that there are
13100# no rules to generate ltmain.sh.
13101if test -f "$ltmain"; then
13102  # See if we are running on zsh, and set the options which allow our commands through
13103  # without removal of \ escapes.
13104  if test -n "${ZSH_VERSION+set}" ; then
13105    setopt NO_GLOB_SUBST
13106  fi
13107  # Now quote all the things that may contain metacharacters while being
13108  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13109  # variables and quote the copies for generation of the libtool script.
13110  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13111    SED SHELL STRIP \
13112    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13113    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13114    deplibs_check_method reload_flag reload_cmds need_locks \
13115    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13116    lt_cv_sys_global_symbol_to_c_name_address \
13117    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13118    old_postinstall_cmds old_postuninstall_cmds \
13119    compiler_CXX \
13120    CC_CXX \
13121    LD_CXX \
13122    lt_prog_compiler_wl_CXX \
13123    lt_prog_compiler_pic_CXX \
13124    lt_prog_compiler_static_CXX \
13125    lt_prog_compiler_no_builtin_flag_CXX \
13126    export_dynamic_flag_spec_CXX \
13127    thread_safe_flag_spec_CXX \
13128    whole_archive_flag_spec_CXX \
13129    enable_shared_with_static_runtimes_CXX \
13130    old_archive_cmds_CXX \
13131    old_archive_from_new_cmds_CXX \
13132    predep_objects_CXX \
13133    postdep_objects_CXX \
13134    predeps_CXX \
13135    postdeps_CXX \
13136    compiler_lib_search_path_CXX \
13137    archive_cmds_CXX \
13138    archive_expsym_cmds_CXX \
13139    postinstall_cmds_CXX \
13140    postuninstall_cmds_CXX \
13141    old_archive_from_expsyms_cmds_CXX \
13142    allow_undefined_flag_CXX \
13143    no_undefined_flag_CXX \
13144    export_symbols_cmds_CXX \
13145    hardcode_libdir_flag_spec_CXX \
13146    hardcode_libdir_flag_spec_ld_CXX \
13147    hardcode_libdir_separator_CXX \
13148    hardcode_automatic_CXX \
13149    module_cmds_CXX \
13150    module_expsym_cmds_CXX \
13151    lt_cv_prog_compiler_c_o_CXX \
13152    exclude_expsyms_CXX \
13153    include_expsyms_CXX; do
13154
13155    case $var in
13156    old_archive_cmds_CXX | \
13157    old_archive_from_new_cmds_CXX | \
13158    archive_cmds_CXX | \
13159    archive_expsym_cmds_CXX | \
13160    module_cmds_CXX | \
13161    module_expsym_cmds_CXX | \
13162    old_archive_from_expsyms_cmds_CXX | \
13163    export_symbols_cmds_CXX | \
13164    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13165    postinstall_cmds | postuninstall_cmds | \
13166    old_postinstall_cmds | old_postuninstall_cmds | \
13167    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13168      # Double-quote double-evaled strings.
13169      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13170      ;;
13171    *)
13172      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13173      ;;
13174    esac
13175  done
13176
13177  case $lt_echo in
13178  *'\$0 --fallback-echo"')
13179    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13180    ;;
13181  esac
13182
13183cfgfile="$ofile"
13184
13185  cat <<__EOF__ >> "$cfgfile"
13186# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13187
13188# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13189
13190# Shell to use when invoking shell scripts.
13191SHELL=$lt_SHELL
13192
13193# Whether or not to build shared libraries.
13194build_libtool_libs=$enable_shared
13195
13196# Whether or not to build static libraries.
13197build_old_libs=$enable_static
13198
13199# Whether or not to add -lc for building shared libraries.
13200build_libtool_need_lc=$archive_cmds_need_lc_CXX
13201
13202# Whether or not to disallow shared libs when runtime libs are static
13203allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13204
13205# Whether or not to optimize for fast installation.
13206fast_install=$enable_fast_install
13207
13208# The host system.
13209host_alias=$host_alias
13210host=$host
13211host_os=$host_os
13212
13213# The build system.
13214build_alias=$build_alias
13215build=$build
13216build_os=$build_os
13217
13218# An echo program that does not interpret backslashes.
13219echo=$lt_echo
13220
13221# The archiver.
13222AR=$lt_AR
13223AR_FLAGS=$lt_AR_FLAGS
13224
13225# A C compiler.
13226LTCC=$lt_LTCC
13227
13228# LTCC compiler flags.
13229LTCFLAGS=$lt_LTCFLAGS
13230
13231# A language-specific compiler.
13232CC=$lt_compiler_CXX
13233
13234# Is the compiler the GNU C compiler?
13235with_gcc=$GCC_CXX
13236
13237# An ERE matcher.
13238EGREP=$lt_EGREP
13239
13240# The linker used to build libraries.
13241LD=$lt_LD_CXX
13242
13243# Whether we need hard or soft links.
13244LN_S=$lt_LN_S
13245
13246# A BSD-compatible nm program.
13247NM=$lt_NM
13248
13249# A symbol stripping program
13250STRIP=$lt_STRIP
13251
13252# Used to examine libraries when file_magic_cmd begins "file"
13253MAGIC_CMD=$MAGIC_CMD
13254
13255# Used on cygwin: DLL creation program.
13256DLLTOOL="$DLLTOOL"
13257
13258# Used on cygwin: object dumper.
13259OBJDUMP="$OBJDUMP"
13260
13261# Used on cygwin: assembler.
13262AS="$AS"
13263
13264# The name of the directory that contains temporary libtool files.
13265objdir=$objdir
13266
13267# How to create reloadable object files.
13268reload_flag=$lt_reload_flag
13269reload_cmds=$lt_reload_cmds
13270
13271# How to pass a linker flag through the compiler.
13272wl=$lt_lt_prog_compiler_wl_CXX
13273
13274# Object file suffix (normally "o").
13275objext="$ac_objext"
13276
13277# Old archive suffix (normally "a").
13278libext="$libext"
13279
13280# Shared library suffix (normally ".so").
13281shrext_cmds='$shrext_cmds'
13282
13283# Executable file suffix (normally "").
13284exeext="$exeext"
13285
13286# Additional compiler flags for building library objects.
13287pic_flag=$lt_lt_prog_compiler_pic_CXX
13288pic_mode=$pic_mode
13289
13290# What is the maximum length of a command?
13291max_cmd_len=$lt_cv_sys_max_cmd_len
13292
13293# Does compiler simultaneously support -c and -o options?
13294compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13295
13296# Must we lock files when doing compilation?
13297need_locks=$lt_need_locks
13298
13299# Do we need the lib prefix for modules?
13300need_lib_prefix=$need_lib_prefix
13301
13302# Do we need a version for libraries?
13303need_version=$need_version
13304
13305# Whether dlopen is supported.
13306dlopen_support=$enable_dlopen
13307
13308# Whether dlopen of programs is supported.
13309dlopen_self=$enable_dlopen_self
13310
13311# Whether dlopen of statically linked programs is supported.
13312dlopen_self_static=$enable_dlopen_self_static
13313
13314# Compiler flag to prevent dynamic linking.
13315link_static_flag=$lt_lt_prog_compiler_static_CXX
13316
13317# Compiler flag to turn off builtin functions.
13318no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13319
13320# Compiler flag to allow reflexive dlopens.
13321export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13322
13323# Compiler flag to generate shared objects directly from archives.
13324whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13325
13326# Compiler flag to generate thread-safe objects.
13327thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13328
13329# Library versioning type.
13330version_type=$version_type
13331
13332# Format of library name prefix.
13333libname_spec=$lt_libname_spec
13334
13335# List of archive names.  First name is the real one, the rest are links.
13336# The last name is the one that the linker finds with -lNAME.
13337library_names_spec=$lt_library_names_spec
13338
13339# The coded name of the library, if different from the real name.
13340soname_spec=$lt_soname_spec
13341
13342# Commands used to build and install an old-style archive.
13343RANLIB=$lt_RANLIB
13344old_archive_cmds=$lt_old_archive_cmds_CXX
13345old_postinstall_cmds=$lt_old_postinstall_cmds
13346old_postuninstall_cmds=$lt_old_postuninstall_cmds
13347
13348# Create an old-style archive from a shared archive.
13349old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13350
13351# Create a temporary old-style archive to link instead of a shared archive.
13352old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13353
13354# Commands used to build and install a shared archive.
13355archive_cmds=$lt_archive_cmds_CXX
13356archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13357postinstall_cmds=$lt_postinstall_cmds
13358postuninstall_cmds=$lt_postuninstall_cmds
13359
13360# Commands used to build a loadable module (assumed same as above if empty)
13361module_cmds=$lt_module_cmds_CXX
13362module_expsym_cmds=$lt_module_expsym_cmds_CXX
13363
13364# Commands to strip libraries.
13365old_striplib=$lt_old_striplib
13366striplib=$lt_striplib
13367
13368# Dependencies to place before the objects being linked to create a
13369# shared library.
13370predep_objects=$lt_predep_objects_CXX
13371
13372# Dependencies to place after the objects being linked to create a
13373# shared library.
13374postdep_objects=$lt_postdep_objects_CXX
13375
13376# Dependencies to place before the objects being linked to create a
13377# shared library.
13378predeps=$lt_predeps_CXX
13379
13380# Dependencies to place after the objects being linked to create a
13381# shared library.
13382postdeps=$lt_postdeps_CXX
13383
13384# The library search path used internally by the compiler when linking
13385# a shared library.
13386compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13387
13388# Method to check whether dependent libraries are shared objects.
13389deplibs_check_method=$lt_deplibs_check_method
13390
13391# Command to use when deplibs_check_method == file_magic.
13392file_magic_cmd=$lt_file_magic_cmd
13393
13394# Flag that allows shared libraries with undefined symbols to be built.
13395allow_undefined_flag=$lt_allow_undefined_flag_CXX
13396
13397# Flag that forces no undefined symbols.
13398no_undefined_flag=$lt_no_undefined_flag_CXX
13399
13400# Commands used to finish a libtool library installation in a directory.
13401finish_cmds=$lt_finish_cmds
13402
13403# Same as above, but a single script fragment to be evaled but not shown.
13404finish_eval=$lt_finish_eval
13405
13406# Take the output of nm and produce a listing of raw symbols and C names.
13407global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13408
13409# Transform the output of nm in a proper C declaration
13410global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13411
13412# Transform the output of nm in a C name address pair
13413global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13414
13415# This is the shared library runtime path variable.
13416runpath_var=$runpath_var
13417
13418# This is the shared library path variable.
13419shlibpath_var=$shlibpath_var
13420
13421# Is shlibpath searched before the hard-coded library search path?
13422shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13423
13424# How to hardcode a shared library path into an executable.
13425hardcode_action=$hardcode_action_CXX
13426
13427# Whether we should hardcode library paths into libraries.
13428hardcode_into_libs=$hardcode_into_libs
13429
13430# Flag to hardcode \$libdir into a binary during linking.
13431# This must work even if \$libdir does not exist.
13432hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13433
13434# If ld is used when linking, flag to hardcode \$libdir into
13435# a binary during linking. This must work even if \$libdir does
13436# not exist.
13437hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13438
13439# Whether we need a single -rpath flag with a separated argument.
13440hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13441
13442# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13443# resulting binary.
13444hardcode_direct=$hardcode_direct_CXX
13445
13446# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13447# resulting binary.
13448hardcode_minus_L=$hardcode_minus_L_CXX
13449
13450# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13451# the resulting binary.
13452hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13453
13454# Set to yes if building a shared library automatically hardcodes DIR into the library
13455# and all subsequent libraries and executables linked against it.
13456hardcode_automatic=$hardcode_automatic_CXX
13457
13458# Variables whose values should be saved in libtool wrapper scripts and
13459# restored at relink time.
13460variables_saved_for_relink="$variables_saved_for_relink"
13461
13462# Whether libtool must link a program against all its dependency libraries.
13463link_all_deplibs=$link_all_deplibs_CXX
13464
13465# Compile-time system search path for libraries
13466sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13467
13468# Run-time system search path for libraries
13469sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13470
13471# Fix the shell variable \$srcfile for the compiler.
13472fix_srcfile_path="$fix_srcfile_path_CXX"
13473
13474# Set to yes if exported symbols are required.
13475always_export_symbols=$always_export_symbols_CXX
13476
13477# The commands to list exported symbols.
13478export_symbols_cmds=$lt_export_symbols_cmds_CXX
13479
13480# The commands to extract the exported symbol list from a shared archive.
13481extract_expsyms_cmds=$lt_extract_expsyms_cmds
13482
13483# Symbols that should not be listed in the preloaded symbols.
13484exclude_expsyms=$lt_exclude_expsyms_CXX
13485
13486# Symbols that must always be exported.
13487include_expsyms=$lt_include_expsyms_CXX
13488
13489# ### END LIBTOOL TAG CONFIG: $tagname
13490
13491__EOF__
13492
13493
13494else
13495  # If there is no Makefile yet, we rely on a make rule to execute
13496  # `config.status --recheck' to rerun these tests and create the
13497  # libtool script then.
13498  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13499  if test -f "$ltmain_in"; then
13500    test -f Makefile && make "$ltmain"
13501  fi
13502fi
13503
13504
13505ac_ext=c
13506ac_cpp='$CPP $CPPFLAGS'
13507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13509ac_compiler_gnu=$ac_cv_c_compiler_gnu
13510
13511CC=$lt_save_CC
13512LDCXX=$LD
13513LD=$lt_save_LD
13514GCC=$lt_save_GCC
13515with_gnu_ldcxx=$with_gnu_ld
13516with_gnu_ld=$lt_save_with_gnu_ld
13517lt_cv_path_LDCXX=$lt_cv_path_LD
13518lt_cv_path_LD=$lt_save_path_LD
13519lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13520lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13521
13522	else
13523	  tagname=""
13524	fi
13525	;;
13526
13527      F77)
13528	if test -n "$F77" && test "X$F77" != "Xno"; then
13529
13530ac_ext=f
13531ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13532ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13533ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13534
13535
13536archive_cmds_need_lc_F77=no
13537allow_undefined_flag_F77=
13538always_export_symbols_F77=no
13539archive_expsym_cmds_F77=
13540export_dynamic_flag_spec_F77=
13541hardcode_direct_F77=no
13542hardcode_libdir_flag_spec_F77=
13543hardcode_libdir_flag_spec_ld_F77=
13544hardcode_libdir_separator_F77=
13545hardcode_minus_L_F77=no
13546hardcode_automatic_F77=no
13547module_cmds_F77=
13548module_expsym_cmds_F77=
13549link_all_deplibs_F77=unknown
13550old_archive_cmds_F77=$old_archive_cmds
13551no_undefined_flag_F77=
13552whole_archive_flag_spec_F77=
13553enable_shared_with_static_runtimes_F77=no
13554
13555# Source file extension for f77 test sources.
13556ac_ext=f
13557
13558# Object file extension for compiled f77 test sources.
13559objext=o
13560objext_F77=$objext
13561
13562# Code to be used in simple compile tests
13563lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13564
13565# Code to be used in simple link tests
13566lt_simple_link_test_code="      program t\n      end\n"
13567
13568# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13569
13570# If no C compiler was specified, use CC.
13571LTCC=${LTCC-"$CC"}
13572
13573# If no C compiler flags were specified, use CFLAGS.
13574LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13575
13576# Allow CC to be a program name with arguments.
13577compiler=$CC
13578
13579
13580# save warnings/boilerplate of simple test code
13581ac_outfile=conftest.$ac_objext
13582printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13583eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13584_lt_compiler_boilerplate=`cat conftest.err`
13585$rm conftest*
13586
13587ac_outfile=conftest.$ac_objext
13588printf "$lt_simple_link_test_code" >conftest.$ac_ext
13589eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13590_lt_linker_boilerplate=`cat conftest.err`
13591$rm conftest*
13592
13593
13594# Allow CC to be a program name with arguments.
13595lt_save_CC="$CC"
13596CC=${F77-"f77"}
13597compiler=$CC
13598compiler_F77=$CC
13599for cc_temp in $compiler""; do
13600  case $cc_temp in
13601    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13602    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13603    \-*) ;;
13604    *) break;;
13605  esac
13606done
13607cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13608
13609
13610{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13611echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13612{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13613echo "${ECHO_T}$can_build_shared" >&6; }
13614
13615{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13616echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13617test "$can_build_shared" = "no" && enable_shared=no
13618
13619# On AIX, shared libraries and static libraries use the same namespace, and
13620# are all built from PIC.
13621case $host_os in
13622aix3*)
13623  test "$enable_shared" = yes && enable_static=no
13624  if test -n "$RANLIB"; then
13625    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13626    postinstall_cmds='$RANLIB $lib'
13627  fi
13628  ;;
13629aix4* | aix5*)
13630  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13631    test "$enable_shared" = yes && enable_static=no
13632  fi
13633  ;;
13634esac
13635{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13636echo "${ECHO_T}$enable_shared" >&6; }
13637
13638{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13639echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13640# Make sure either enable_shared or enable_static is yes.
13641test "$enable_shared" = yes || enable_static=yes
13642{ echo "$as_me:$LINENO: result: $enable_static" >&5
13643echo "${ECHO_T}$enable_static" >&6; }
13644
13645GCC_F77="$G77"
13646LD_F77="$LD"
13647
13648lt_prog_compiler_wl_F77=
13649lt_prog_compiler_pic_F77=
13650lt_prog_compiler_static_F77=
13651
13652{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13653echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13654
13655  if test "$GCC" = yes; then
13656    lt_prog_compiler_wl_F77='-Wl,'
13657    lt_prog_compiler_static_F77='-static'
13658
13659    case $host_os in
13660      aix*)
13661      # All AIX code is PIC.
13662      if test "$host_cpu" = ia64; then
13663	# AIX 5 now supports IA64 processor
13664	lt_prog_compiler_static_F77='-Bstatic'
13665      fi
13666      ;;
13667
13668    amigaos*)
13669      # FIXME: we need at least 68020 code to build shared libraries, but
13670      # adding the `-m68020' flag to GCC prevents building anything better,
13671      # like `-m68040'.
13672      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13673      ;;
13674
13675    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13676      # PIC is the default for these OSes.
13677      ;;
13678
13679    mingw* | cygwin* | pw32* | os2*)
13680      # This hack is so that the source file can tell whether it is being
13681      # built for inclusion in a dll (and should export symbols for example).
13682      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13683      # (--disable-auto-import) libraries
13684      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13685      ;;
13686
13687    darwin* | rhapsody*)
13688      # PIC is the default on this platform
13689      # Common symbols not allowed in MH_DYLIB files
13690      lt_prog_compiler_pic_F77='-fno-common'
13691      ;;
13692
13693    interix3*)
13694      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13695      # Instead, we relocate shared libraries at runtime.
13696      ;;
13697
13698    msdosdjgpp*)
13699      # Just because we use GCC doesn't mean we suddenly get shared libraries
13700      # on systems that don't support them.
13701      lt_prog_compiler_can_build_shared_F77=no
13702      enable_shared=no
13703      ;;
13704
13705    sysv4*MP*)
13706      if test -d /usr/nec; then
13707	lt_prog_compiler_pic_F77=-Kconform_pic
13708      fi
13709      ;;
13710
13711    hpux*)
13712      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13713      # not for PA HP-UX.
13714      case $host_cpu in
13715      hppa*64*|ia64*)
13716	# +Z the default
13717	;;
13718      *)
13719	lt_prog_compiler_pic_F77='-fPIC'
13720	;;
13721      esac
13722      ;;
13723
13724    *)
13725      lt_prog_compiler_pic_F77='-fPIC'
13726      ;;
13727    esac
13728  else
13729    # PORTME Check for flag to pass linker flags through the system compiler.
13730    case $host_os in
13731    aix*)
13732      lt_prog_compiler_wl_F77='-Wl,'
13733      if test "$host_cpu" = ia64; then
13734	# AIX 5 now supports IA64 processor
13735	lt_prog_compiler_static_F77='-Bstatic'
13736      else
13737	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13738      fi
13739      ;;
13740      darwin*)
13741        # PIC is the default on this platform
13742        # Common symbols not allowed in MH_DYLIB files
13743       case $cc_basename in
13744         xlc*)
13745         lt_prog_compiler_pic_F77='-qnocommon'
13746         lt_prog_compiler_wl_F77='-Wl,'
13747         ;;
13748       esac
13749       ;;
13750
13751    mingw* | cygwin* | pw32* | os2*)
13752      # This hack is so that the source file can tell whether it is being
13753      # built for inclusion in a dll (and should export symbols for example).
13754      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13755      # (--disable-auto-import) libraries
13756      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13757      ;;
13758
13759    hpux9* | hpux10* | hpux11*)
13760      lt_prog_compiler_wl_F77='-Wl,'
13761      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13762      # not for PA HP-UX.
13763      case $host_cpu in
13764      hppa*64*|ia64*)
13765	# +Z the default
13766	;;
13767      *)
13768	lt_prog_compiler_pic_F77='+Z'
13769	;;
13770      esac
13771      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13772      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13773      ;;
13774
13775    irix5* | irix6* | nonstopux*)
13776      lt_prog_compiler_wl_F77='-Wl,'
13777      # PIC (with -KPIC) is the default.
13778      lt_prog_compiler_static_F77='-non_shared'
13779      ;;
13780
13781    newsos6)
13782      lt_prog_compiler_pic_F77='-KPIC'
13783      lt_prog_compiler_static_F77='-Bstatic'
13784      ;;
13785
13786    linux*)
13787      case $cc_basename in
13788      icc* | ecc*)
13789	lt_prog_compiler_wl_F77='-Wl,'
13790	lt_prog_compiler_pic_F77='-KPIC'
13791	lt_prog_compiler_static_F77='-static'
13792        ;;
13793      pgcc* | pgf77* | pgf90* | pgf95*)
13794        # Portland Group compilers (*not* the Pentium gcc compiler,
13795	# which looks to be a dead project)
13796	lt_prog_compiler_wl_F77='-Wl,'
13797	lt_prog_compiler_pic_F77='-fpic'
13798	lt_prog_compiler_static_F77='-Bstatic'
13799        ;;
13800      ccc*)
13801        lt_prog_compiler_wl_F77='-Wl,'
13802        # All Alpha code is PIC.
13803        lt_prog_compiler_static_F77='-non_shared'
13804        ;;
13805      como)
13806        lt_prog_compiler_wl_F77='-lopt='
13807        ;;
13808      *)
13809        case `$CC -V 2>&1 | sed 5q` in
13810	*Sun\ C*)
13811	  # Sun C 5.9
13812	  lt_prog_compiler_pic_F77='-KPIC'
13813	  lt_prog_compiler_static_F77='-Bstatic'
13814	  lt_prog_compiler_wl_F77='-Wl,'
13815	  ;;
13816	*Sun\ F*)
13817	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13818	  lt_prog_compiler_pic_F77='-KPIC'
13819	  lt_prog_compiler_static_F77='-Bstatic'
13820	  lt_prog_compiler_wl_F77=''
13821	  ;;
13822	esac
13823	;;
13824      esac
13825      ;;
13826
13827    osf3* | osf4* | osf5*)
13828      lt_prog_compiler_wl_F77='-Wl,'
13829      # All OSF/1 code is PIC.
13830      lt_prog_compiler_static_F77='-non_shared'
13831      ;;
13832
13833    solaris*)
13834      lt_prog_compiler_pic_F77='-KPIC'
13835      lt_prog_compiler_static_F77='-Bstatic'
13836      case $cc_basename in
13837      f77* | f90* | f95*)
13838	lt_prog_compiler_wl_F77='-Qoption ld ';;
13839      *)
13840	lt_prog_compiler_wl_F77='-Wl,';;
13841      esac
13842      ;;
13843
13844    sunos4*)
13845      lt_prog_compiler_wl_F77='-Qoption ld '
13846      lt_prog_compiler_pic_F77='-PIC'
13847      lt_prog_compiler_static_F77='-Bstatic'
13848      ;;
13849
13850    sysv4 | sysv4.2uw2* | sysv4.3*)
13851      lt_prog_compiler_wl_F77='-Wl,'
13852      lt_prog_compiler_pic_F77='-KPIC'
13853      lt_prog_compiler_static_F77='-Bstatic'
13854      ;;
13855
13856    sysv4*MP*)
13857      if test -d /usr/nec ;then
13858	lt_prog_compiler_pic_F77='-Kconform_pic'
13859	lt_prog_compiler_static_F77='-Bstatic'
13860      fi
13861      ;;
13862
13863    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13864      lt_prog_compiler_wl_F77='-Wl,'
13865      lt_prog_compiler_pic_F77='-KPIC'
13866      lt_prog_compiler_static_F77='-Bstatic'
13867      ;;
13868
13869    unicos*)
13870      lt_prog_compiler_wl_F77='-Wl,'
13871      lt_prog_compiler_can_build_shared_F77=no
13872      ;;
13873
13874    uts4*)
13875      lt_prog_compiler_pic_F77='-pic'
13876      lt_prog_compiler_static_F77='-Bstatic'
13877      ;;
13878
13879    *)
13880      lt_prog_compiler_can_build_shared_F77=no
13881      ;;
13882    esac
13883  fi
13884
13885{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13886echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13887
13888#
13889# Check to make sure the PIC flag actually works.
13890#
13891if test -n "$lt_prog_compiler_pic_F77"; then
13892
13893{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13894echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13895if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13896  echo $ECHO_N "(cached) $ECHO_C" >&6
13897else
13898  lt_prog_compiler_pic_works_F77=no
13899  ac_outfile=conftest.$ac_objext
13900   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13901   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13902   # Insert the option either (1) after the last *FLAGS variable, or
13903   # (2) before a word containing "conftest.", or (3) at the end.
13904   # Note that $ac_compile itself does not contain backslashes and begins
13905   # with a dollar sign (not a hyphen), so the echo should work correctly.
13906   # The option is referenced via a variable to avoid confusing sed.
13907   lt_compile=`echo "$ac_compile" | $SED \
13908   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13909   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13910   -e 's:$: $lt_compiler_flag:'`
13911   (eval echo "\"\$as_me:13911: $lt_compile\"" >&5)
13912   (eval "$lt_compile" 2>conftest.err)
13913   ac_status=$?
13914   cat conftest.err >&5
13915   echo "$as_me:13915: \$? = $ac_status" >&5
13916   if (exit $ac_status) && test -s "$ac_outfile"; then
13917     # The compiler can only warn and ignore the option if not recognized
13918     # So say no if there are warnings other than the usual output.
13919     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13920     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13921     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13922       lt_prog_compiler_pic_works_F77=yes
13923     fi
13924   fi
13925   $rm conftest*
13926
13927fi
13928{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13929echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13930
13931if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13932    case $lt_prog_compiler_pic_F77 in
13933     "" | " "*) ;;
13934     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13935     esac
13936else
13937    lt_prog_compiler_pic_F77=
13938     lt_prog_compiler_can_build_shared_F77=no
13939fi
13940
13941fi
13942case $host_os in
13943  # For platforms which do not support PIC, -DPIC is meaningless:
13944  *djgpp*)
13945    lt_prog_compiler_pic_F77=
13946    ;;
13947  *)
13948    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13949    ;;
13950esac
13951
13952#
13953# Check to make sure the static flag actually works.
13954#
13955wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13956{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13957echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13958if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13959  echo $ECHO_N "(cached) $ECHO_C" >&6
13960else
13961  lt_prog_compiler_static_works_F77=no
13962   save_LDFLAGS="$LDFLAGS"
13963   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13964   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13965   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13966     # The linker can only warn and ignore the option if not recognized
13967     # So say no if there are warnings
13968     if test -s conftest.err; then
13969       # Append any errors to the config.log.
13970       cat conftest.err 1>&5
13971       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13972       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13973       if diff conftest.exp conftest.er2 >/dev/null; then
13974         lt_prog_compiler_static_works_F77=yes
13975       fi
13976     else
13977       lt_prog_compiler_static_works_F77=yes
13978     fi
13979   fi
13980   $rm conftest*
13981   LDFLAGS="$save_LDFLAGS"
13982
13983fi
13984{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13985echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13986
13987if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13988    :
13989else
13990    lt_prog_compiler_static_F77=
13991fi
13992
13993
13994{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13995echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13996if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13997  echo $ECHO_N "(cached) $ECHO_C" >&6
13998else
13999  lt_cv_prog_compiler_c_o_F77=no
14000   $rm -r conftest 2>/dev/null
14001   mkdir conftest
14002   cd conftest
14003   mkdir out
14004   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14005
14006   lt_compiler_flag="-o out/conftest2.$ac_objext"
14007   # Insert the option either (1) after the last *FLAGS variable, or
14008   # (2) before a word containing "conftest.", or (3) at the end.
14009   # Note that $ac_compile itself does not contain backslashes and begins
14010   # with a dollar sign (not a hyphen), so the echo should work correctly.
14011   lt_compile=`echo "$ac_compile" | $SED \
14012   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14013   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14014   -e 's:$: $lt_compiler_flag:'`
14015   (eval echo "\"\$as_me:14015: $lt_compile\"" >&5)
14016   (eval "$lt_compile" 2>out/conftest.err)
14017   ac_status=$?
14018   cat out/conftest.err >&5
14019   echo "$as_me:14019: \$? = $ac_status" >&5
14020   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14021   then
14022     # The compiler can only warn and ignore the option if not recognized
14023     # So say no if there are warnings
14024     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14025     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14026     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14027       lt_cv_prog_compiler_c_o_F77=yes
14028     fi
14029   fi
14030   chmod u+w . 2>&5
14031   $rm conftest*
14032   # SGI C++ compiler will create directory out/ii_files/ for
14033   # template instantiation
14034   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14035   $rm out/* && rmdir out
14036   cd ..
14037   rmdir conftest
14038   $rm conftest*
14039
14040fi
14041{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14042echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14043
14044
14045hard_links="nottested"
14046if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14047  # do not overwrite the value of need_locks provided by the user
14048  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14049echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14050  hard_links=yes
14051  $rm conftest*
14052  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14053  touch conftest.a
14054  ln conftest.a conftest.b 2>&5 || hard_links=no
14055  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14056  { echo "$as_me:$LINENO: result: $hard_links" >&5
14057echo "${ECHO_T}$hard_links" >&6; }
14058  if test "$hard_links" = no; then
14059    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14060echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14061    need_locks=warn
14062  fi
14063else
14064  need_locks=no
14065fi
14066
14067{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14068echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14069
14070  runpath_var=
14071  allow_undefined_flag_F77=
14072  enable_shared_with_static_runtimes_F77=no
14073  archive_cmds_F77=
14074  archive_expsym_cmds_F77=
14075  old_archive_From_new_cmds_F77=
14076  old_archive_from_expsyms_cmds_F77=
14077  export_dynamic_flag_spec_F77=
14078  whole_archive_flag_spec_F77=
14079  thread_safe_flag_spec_F77=
14080  hardcode_libdir_flag_spec_F77=
14081  hardcode_libdir_flag_spec_ld_F77=
14082  hardcode_libdir_separator_F77=
14083  hardcode_direct_F77=no
14084  hardcode_minus_L_F77=no
14085  hardcode_shlibpath_var_F77=unsupported
14086  link_all_deplibs_F77=unknown
14087  hardcode_automatic_F77=no
14088  module_cmds_F77=
14089  module_expsym_cmds_F77=
14090  always_export_symbols_F77=no
14091  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14092  # include_expsyms should be a list of space-separated symbols to be *always*
14093  # included in the symbol list
14094  include_expsyms_F77=
14095  # exclude_expsyms can be an extended regexp of symbols to exclude
14096  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14097  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14098  # as well as any symbol that contains `d'.
14099  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14100  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14101  # platforms (ab)use it in PIC code, but their linkers get confused if
14102  # the symbol is explicitly referenced.  Since portable code cannot
14103  # rely on this symbol name, it's probably fine to never include it in
14104  # preloaded symbol tables.
14105  extract_expsyms_cmds=
14106  # Just being paranoid about ensuring that cc_basename is set.
14107  for cc_temp in $compiler""; do
14108  case $cc_temp in
14109    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14110    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14111    \-*) ;;
14112    *) break;;
14113  esac
14114done
14115cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14116
14117  case $host_os in
14118  cygwin* | mingw* | pw32*)
14119    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14120    # When not using gcc, we currently assume that we are using
14121    # Microsoft Visual C++.
14122    if test "$GCC" != yes; then
14123      with_gnu_ld=no
14124    fi
14125    ;;
14126  interix*)
14127    # we just hope/assume this is gcc and not c89 (= MSVC++)
14128    with_gnu_ld=yes
14129    ;;
14130  openbsd*)
14131    with_gnu_ld=no
14132    ;;
14133  esac
14134
14135  ld_shlibs_F77=yes
14136  if test "$with_gnu_ld" = yes; then
14137    # If archive_cmds runs LD, not CC, wlarc should be empty
14138    wlarc='${wl}'
14139
14140    # Set some defaults for GNU ld with shared library support. These
14141    # are reset later if shared libraries are not supported. Putting them
14142    # here allows them to be overridden if necessary.
14143    runpath_var=LD_RUN_PATH
14144    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14145    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14146    # ancient GNU ld didn't support --whole-archive et. al.
14147    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14148	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14149      else
14150  	whole_archive_flag_spec_F77=
14151    fi
14152    supports_anon_versioning=no
14153    case `$LD -v 2>/dev/null` in
14154      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14155      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14156      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14157      *\ 2.11.*) ;; # other 2.11 versions
14158      *) supports_anon_versioning=yes ;;
14159    esac
14160
14161    # See if GNU ld supports shared libraries.
14162    case $host_os in
14163    aix3* | aix4* | aix5*)
14164      # On AIX/PPC, the GNU linker is very broken
14165      if test "$host_cpu" != ia64; then
14166	ld_shlibs_F77=no
14167	cat <<EOF 1>&2
14168
14169*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14170*** to be unable to reliably create shared libraries on AIX.
14171*** Therefore, libtool is disabling shared libraries support.  If you
14172*** really care for shared libraries, you may want to modify your PATH
14173*** so that a non-GNU linker is found, and then restart.
14174
14175EOF
14176      fi
14177      ;;
14178
14179    amigaos*)
14180      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)'
14181      hardcode_libdir_flag_spec_F77='-L$libdir'
14182      hardcode_minus_L_F77=yes
14183
14184      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14185      # that the semantics of dynamic libraries on AmigaOS, at least up
14186      # to version 4, is to share data among multiple programs linked
14187      # with the same dynamic library.  Since this doesn't match the
14188      # behavior of shared libraries on other platforms, we can't use
14189      # them.
14190      ld_shlibs_F77=no
14191      ;;
14192
14193    beos*)
14194      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14195	allow_undefined_flag_F77=unsupported
14196	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14197	# support --undefined.  This deserves some investigation.  FIXME
14198	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14199      else
14200	ld_shlibs_F77=no
14201      fi
14202      ;;
14203
14204    cygwin* | mingw* | pw32*)
14205      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14206      # as there is no search path for DLLs.
14207      hardcode_libdir_flag_spec_F77='-L$libdir'
14208      allow_undefined_flag_F77=unsupported
14209      always_export_symbols_F77=no
14210      enable_shared_with_static_runtimes_F77=yes
14211      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14212
14213      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14214        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14215	# If the export-symbols file already is a .def file (1st line
14216	# is EXPORTS), use it as is; otherwise, prepend...
14217	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14218	  cp $export_symbols $output_objdir/$soname.def;
14219	else
14220	  echo EXPORTS > $output_objdir/$soname.def;
14221	  cat $export_symbols >> $output_objdir/$soname.def;
14222	fi~
14223	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14224      else
14225	ld_shlibs_F77=no
14226      fi
14227      ;;
14228
14229    interix3*)
14230      hardcode_direct_F77=no
14231      hardcode_shlibpath_var_F77=no
14232      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14233      export_dynamic_flag_spec_F77='${wl}-E'
14234      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14235      # Instead, shared libraries are loaded at an image base (0x10000000 by
14236      # default) and relocated if they conflict, which is a slow very memory
14237      # consuming and fragmenting process.  To avoid this, we pick a random,
14238      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14239      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14240      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'
14241      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'
14242      ;;
14243
14244    linux*)
14245      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14246	tmp_addflag=
14247	case $cc_basename,$host_cpu in
14248	pgcc*)				# Portland Group C compiler
14249	  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'
14250	  tmp_addflag=' $pic_flag'
14251	  ;;
14252	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14253	  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'
14254	  tmp_addflag=' $pic_flag -Mnomain' ;;
14255	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14256	  tmp_addflag=' -i_dynamic' ;;
14257	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14258	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14259	ifc* | ifort*)			# Intel Fortran compiler
14260	  tmp_addflag=' -nofor_main' ;;
14261	esac
14262	case `$CC -V 2>&1 | sed 5q` in
14263	*Sun\ C*)			# Sun C 5.9
14264	  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 /dev/null'
14265	  tmp_sharedflag='-G' ;;
14266	*Sun\ F*)			# Sun Fortran 8.3
14267	  tmp_sharedflag='-G' ;;
14268	*)
14269	  tmp_sharedflag='-shared' ;;
14270	esac
14271	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14272
14273	if test $supports_anon_versioning = yes; then
14274	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14275  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14276  $echo "local: *; };" >> $output_objdir/$libname.ver~
14277	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14278	fi
14279      else
14280	ld_shlibs_F77=no
14281      fi
14282      ;;
14283
14284    netbsd*)
14285      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14286	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14287	wlarc=
14288      else
14289	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14290	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14291      fi
14292      ;;
14293
14294    solaris*)
14295      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14296	ld_shlibs_F77=no
14297	cat <<EOF 1>&2
14298
14299*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14300*** create shared libraries on Solaris systems.  Therefore, libtool
14301*** is disabling shared libraries support.  We urge you to upgrade GNU
14302*** binutils to release 2.9.1 or newer.  Another option is to modify
14303*** your PATH or compiler configuration so that the native linker is
14304*** used, and then restart.
14305
14306EOF
14307      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14308	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14309	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14310      else
14311	ld_shlibs_F77=no
14312      fi
14313      ;;
14314
14315    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14316      case `$LD -v 2>&1` in
14317        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14318	ld_shlibs_F77=no
14319	cat <<_LT_EOF 1>&2
14320
14321*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14322*** reliably create shared libraries on SCO systems.  Therefore, libtool
14323*** is disabling shared libraries support.  We urge you to upgrade GNU
14324*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14325*** your PATH or compiler configuration so that the native linker is
14326*** used, and then restart.
14327
14328_LT_EOF
14329	;;
14330	*)
14331	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14332	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14333	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14334	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14335	  else
14336	    ld_shlibs_F77=no
14337	  fi
14338	;;
14339      esac
14340      ;;
14341
14342    sunos4*)
14343      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14344      wlarc=
14345      hardcode_direct_F77=yes
14346      hardcode_shlibpath_var_F77=no
14347      ;;
14348
14349    *)
14350      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
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      else
14354	ld_shlibs_F77=no
14355      fi
14356      ;;
14357    esac
14358
14359    if test "$ld_shlibs_F77" = no; then
14360      runpath_var=
14361      hardcode_libdir_flag_spec_F77=
14362      export_dynamic_flag_spec_F77=
14363      whole_archive_flag_spec_F77=
14364    fi
14365  else
14366    # PORTME fill in a description of your system's linker (not GNU ld)
14367    case $host_os in
14368    aix3*)
14369      allow_undefined_flag_F77=unsupported
14370      always_export_symbols_F77=yes
14371      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'
14372      # Note: this linker hardcodes the directories in LIBPATH if there
14373      # are no directories specified by -L.
14374      hardcode_minus_L_F77=yes
14375      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14376	# Neither direct hardcoding nor static linking is supported with a
14377	# broken collect2.
14378	hardcode_direct_F77=unsupported
14379      fi
14380      ;;
14381
14382    aix4* | aix5*)
14383      if test "$host_cpu" = ia64; then
14384	# On IA64, the linker does run time linking by default, so we don't
14385	# have to do anything special.
14386	aix_use_runtimelinking=no
14387	exp_sym_flag='-Bexport'
14388	no_entry_flag=""
14389      else
14390	# If we're using GNU nm, then we don't want the "-C" option.
14391	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14392	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14393	  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'
14394	else
14395	  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'
14396	fi
14397	aix_use_runtimelinking=no
14398
14399	# Test if we are trying to use run time linking or normal
14400	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14401	# need to do runtime linking.
14402	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14403	  for ld_flag in $LDFLAGS; do
14404  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14405  	    aix_use_runtimelinking=yes
14406  	    break
14407  	  fi
14408	  done
14409	  ;;
14410	esac
14411
14412	exp_sym_flag='-bexport'
14413	no_entry_flag='-bnoentry'
14414      fi
14415
14416      # When large executables or shared objects are built, AIX ld can
14417      # have problems creating the table of contents.  If linking a library
14418      # or program results in "error TOC overflow" add -mminimal-toc to
14419      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14420      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14421
14422      archive_cmds_F77=''
14423      hardcode_direct_F77=yes
14424      hardcode_libdir_separator_F77=':'
14425      link_all_deplibs_F77=yes
14426
14427      if test "$GCC" = yes; then
14428	case $host_os in aix4.[012]|aix4.[012].*)
14429	# We only want to do this on AIX 4.2 and lower, the check
14430	# below for broken collect2 doesn't work under 4.3+
14431	  collect2name=`${CC} -print-prog-name=collect2`
14432	  if test -f "$collect2name" && \
14433  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14434	  then
14435  	  # We have reworked collect2
14436  	  hardcode_direct_F77=yes
14437	  else
14438  	  # We have old collect2
14439  	  hardcode_direct_F77=unsupported
14440  	  # It fails to find uninstalled libraries when the uninstalled
14441  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14442  	  # to unsupported forces relinking
14443  	  hardcode_minus_L_F77=yes
14444  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14445  	  hardcode_libdir_separator_F77=
14446	  fi
14447	  ;;
14448	esac
14449	shared_flag='-shared'
14450	if test "$aix_use_runtimelinking" = yes; then
14451	  shared_flag="$shared_flag "'${wl}-G'
14452	fi
14453      else
14454	# not using gcc
14455	if test "$host_cpu" = ia64; then
14456  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14457  	# chokes on -Wl,-G. The following line is correct:
14458	  shared_flag='-G'
14459	else
14460	  if test "$aix_use_runtimelinking" = yes; then
14461	    shared_flag='${wl}-G'
14462	  else
14463	    shared_flag='${wl}-bM:SRE'
14464	  fi
14465	fi
14466      fi
14467
14468      # It seems that -bexpall does not export symbols beginning with
14469      # underscore (_), so it is better to generate a list of symbols to export.
14470      always_export_symbols_F77=yes
14471      if test "$aix_use_runtimelinking" = yes; then
14472	# Warning - without using the other runtime loading flags (-brtl),
14473	# -berok will link without error, but may produce a broken library.
14474	allow_undefined_flag_F77='-berok'
14475       # Determine the default libpath from the value encoded in an empty executable.
14476       cat >conftest.$ac_ext <<_ACEOF
14477      program main
14478
14479      end
14480_ACEOF
14481rm -f conftest.$ac_objext conftest$ac_exeext
14482if { (ac_try="$ac_link"
14483case "(($ac_try" in
14484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485  *) ac_try_echo=$ac_try;;
14486esac
14487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488  (eval "$ac_link") 2>conftest.er1
14489  ac_status=$?
14490  grep -v '^ *+' conftest.er1 >conftest.err
14491  rm -f conftest.er1
14492  cat conftest.err >&5
14493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494  (exit $ac_status); } && {
14495	 test -z "$ac_f77_werror_flag" ||
14496	 test ! -s conftest.err
14497       } && test -s conftest$ac_exeext &&
14498       $as_test_x conftest$ac_exeext; then
14499
14500aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14501}'`
14502# Check for a 64-bit object if we didn't find anything.
14503if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14504}'`; fi
14505else
14506  echo "$as_me: failed program was:" >&5
14507sed 's/^/| /' conftest.$ac_ext >&5
14508
14509
14510fi
14511
14512rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14513      conftest$ac_exeext conftest.$ac_ext
14514if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14515
14516       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14517	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"
14518       else
14519	if test "$host_cpu" = ia64; then
14520	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14521	  allow_undefined_flag_F77="-z nodefs"
14522	  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"
14523	else
14524	 # Determine the default libpath from the value encoded in an empty executable.
14525	 cat >conftest.$ac_ext <<_ACEOF
14526      program main
14527
14528      end
14529_ACEOF
14530rm -f conftest.$ac_objext conftest$ac_exeext
14531if { (ac_try="$ac_link"
14532case "(($ac_try" in
14533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534  *) ac_try_echo=$ac_try;;
14535esac
14536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537  (eval "$ac_link") 2>conftest.er1
14538  ac_status=$?
14539  grep -v '^ *+' conftest.er1 >conftest.err
14540  rm -f conftest.er1
14541  cat conftest.err >&5
14542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543  (exit $ac_status); } && {
14544	 test -z "$ac_f77_werror_flag" ||
14545	 test ! -s conftest.err
14546       } && test -s conftest$ac_exeext &&
14547       $as_test_x conftest$ac_exeext; then
14548
14549aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14550}'`
14551# Check for a 64-bit object if we didn't find anything.
14552if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14553}'`; fi
14554else
14555  echo "$as_me: failed program was:" >&5
14556sed 's/^/| /' conftest.$ac_ext >&5
14557
14558
14559fi
14560
14561rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14562      conftest$ac_exeext conftest.$ac_ext
14563if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14564
14565	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14566	  # Warning - without using the other run time loading flags,
14567	  # -berok will link without error, but may produce a broken library.
14568	  no_undefined_flag_F77=' ${wl}-bernotok'
14569	  allow_undefined_flag_F77=' ${wl}-berok'
14570	  # Exported symbols can be pulled into shared objects from archives
14571	  whole_archive_flag_spec_F77='$convenience'
14572	  archive_cmds_need_lc_F77=yes
14573	  # This is similar to how AIX traditionally builds its shared libraries.
14574	  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'
14575	fi
14576      fi
14577      ;;
14578
14579    amigaos*)
14580      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)'
14581      hardcode_libdir_flag_spec_F77='-L$libdir'
14582      hardcode_minus_L_F77=yes
14583      # see comment about different semantics on the GNU ld section
14584      ld_shlibs_F77=no
14585      ;;
14586
14587    bsdi[45]*)
14588      export_dynamic_flag_spec_F77=-rdynamic
14589      ;;
14590
14591    cygwin* | mingw* | pw32*)
14592      # When not using gcc, we currently assume that we are using
14593      # Microsoft Visual C++.
14594      # hardcode_libdir_flag_spec is actually meaningless, as there is
14595      # no search path for DLLs.
14596      hardcode_libdir_flag_spec_F77=' '
14597      allow_undefined_flag_F77=unsupported
14598      # Tell ltmain to make .lib files, not .a files.
14599      libext=lib
14600      # Tell ltmain to make .dll files, not .so files.
14601      shrext_cmds=".dll"
14602      # FIXME: Setting linknames here is a bad hack.
14603      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14604      # The linker will automatically build a .lib file if we build a DLL.
14605      old_archive_From_new_cmds_F77='true'
14606      # FIXME: Should let the user specify the lib program.
14607      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14608      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14609      enable_shared_with_static_runtimes_F77=yes
14610      ;;
14611
14612    darwin* | rhapsody*)
14613      case $host_os in
14614        rhapsody* | darwin1.[012])
14615         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14616         ;;
14617       *) # Darwin 1.3 on
14618         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14619           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14620         else
14621           case ${MACOSX_DEPLOYMENT_TARGET} in
14622             10.[012])
14623               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14624               ;;
14625             10.*)
14626               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14627               ;;
14628           esac
14629         fi
14630         ;;
14631      esac
14632      archive_cmds_need_lc_F77=no
14633      hardcode_direct_F77=no
14634      hardcode_automatic_F77=yes
14635      hardcode_shlibpath_var_F77=unsupported
14636      whole_archive_flag_spec_F77=''
14637      link_all_deplibs_F77=yes
14638    if test "$GCC" = yes ; then
14639    	output_verbose_link_cmd='echo'
14640        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14641      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14642      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14643      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}'
14644      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}'
14645    else
14646      case $cc_basename in
14647        xlc*)
14648         output_verbose_link_cmd='echo'
14649         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14650         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14651          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14652         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14653          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}'
14654          ;;
14655       *)
14656         ld_shlibs_F77=no
14657          ;;
14658      esac
14659    fi
14660      ;;
14661
14662    dgux*)
14663      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14664      hardcode_libdir_flag_spec_F77='-L$libdir'
14665      hardcode_shlibpath_var_F77=no
14666      ;;
14667
14668    freebsd1*)
14669      ld_shlibs_F77=no
14670      ;;
14671
14672    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14673    # support.  Future versions do this automatically, but an explicit c++rt0.o
14674    # does not break anything, and helps significantly (at the cost of a little
14675    # extra space).
14676    freebsd2.2*)
14677      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14678      hardcode_libdir_flag_spec_F77='-R$libdir'
14679      hardcode_direct_F77=yes
14680      hardcode_shlibpath_var_F77=no
14681      ;;
14682
14683    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14684    freebsd2*)
14685      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14686      hardcode_direct_F77=yes
14687      hardcode_minus_L_F77=yes
14688      hardcode_shlibpath_var_F77=no
14689      ;;
14690
14691    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14692    freebsd* | kfreebsd*-gnu | dragonfly*)
14693      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14694      hardcode_libdir_flag_spec_F77='-R$libdir'
14695      hardcode_direct_F77=yes
14696      hardcode_shlibpath_var_F77=no
14697      ;;
14698
14699    hpux9*)
14700      if test "$GCC" = yes; then
14701	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'
14702      else
14703	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'
14704      fi
14705      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14706      hardcode_libdir_separator_F77=:
14707      hardcode_direct_F77=yes
14708
14709      # hardcode_minus_L: Not really in the search PATH,
14710      # but as the default location of the library.
14711      hardcode_minus_L_F77=yes
14712      export_dynamic_flag_spec_F77='${wl}-E'
14713      ;;
14714
14715    hpux10*)
14716      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14717	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14718      else
14719	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14720      fi
14721      if test "$with_gnu_ld" = no; then
14722	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14723	hardcode_libdir_separator_F77=:
14724
14725	hardcode_direct_F77=yes
14726	export_dynamic_flag_spec_F77='${wl}-E'
14727
14728	# hardcode_minus_L: Not really in the search PATH,
14729	# but as the default location of the library.
14730	hardcode_minus_L_F77=yes
14731      fi
14732      ;;
14733
14734    hpux11*)
14735      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14736	case $host_cpu in
14737	hppa*64*)
14738	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14739	  ;;
14740	ia64*)
14741	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14742	  ;;
14743	*)
14744	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14745	  ;;
14746	esac
14747      else
14748	case $host_cpu in
14749	hppa*64*)
14750	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14751	  ;;
14752	ia64*)
14753	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14754	  ;;
14755	*)
14756	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14757	  ;;
14758	esac
14759      fi
14760      if test "$with_gnu_ld" = no; then
14761	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14762	hardcode_libdir_separator_F77=:
14763
14764	case $host_cpu in
14765	hppa*64*|ia64*)
14766	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14767	  hardcode_direct_F77=no
14768	  hardcode_shlibpath_var_F77=no
14769	  ;;
14770	*)
14771	  hardcode_direct_F77=yes
14772	  export_dynamic_flag_spec_F77='${wl}-E'
14773
14774	  # hardcode_minus_L: Not really in the search PATH,
14775	  # but as the default location of the library.
14776	  hardcode_minus_L_F77=yes
14777	  ;;
14778	esac
14779      fi
14780      ;;
14781
14782    irix5* | irix6* | nonstopux*)
14783      if test "$GCC" = yes; then
14784	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'
14785      else
14786	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'
14787	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14788      fi
14789      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14790      hardcode_libdir_separator_F77=:
14791      link_all_deplibs_F77=yes
14792      ;;
14793
14794    netbsd*)
14795      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14796	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14797      else
14798	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14799      fi
14800      hardcode_libdir_flag_spec_F77='-R$libdir'
14801      hardcode_direct_F77=yes
14802      hardcode_shlibpath_var_F77=no
14803      ;;
14804
14805    newsos6)
14806      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14807      hardcode_direct_F77=yes
14808      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14809      hardcode_libdir_separator_F77=:
14810      hardcode_shlibpath_var_F77=no
14811      ;;
14812
14813    openbsd*)
14814      hardcode_direct_F77=yes
14815      hardcode_shlibpath_var_F77=no
14816      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14817	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14818	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14819	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14820	export_dynamic_flag_spec_F77='${wl}-E'
14821      else
14822       case $host_os in
14823	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14824	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14825	   hardcode_libdir_flag_spec_F77='-R$libdir'
14826	   ;;
14827	 *)
14828	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14829	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14830	   ;;
14831       esac
14832      fi
14833      ;;
14834
14835    os2*)
14836      hardcode_libdir_flag_spec_F77='-L$libdir'
14837      hardcode_minus_L_F77=yes
14838      allow_undefined_flag_F77=unsupported
14839      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'
14840      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14841      ;;
14842
14843    osf3*)
14844      if test "$GCC" = yes; then
14845	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14846	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'
14847      else
14848	allow_undefined_flag_F77=' -expect_unresolved \*'
14849	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'
14850      fi
14851      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14852      hardcode_libdir_separator_F77=:
14853      ;;
14854
14855    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14856      if test "$GCC" = yes; then
14857	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14858	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'
14859	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14860      else
14861	allow_undefined_flag_F77=' -expect_unresolved \*'
14862	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'
14863	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~
14864	$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'
14865
14866	# Both c and cxx compiler support -rpath directly
14867	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14868      fi
14869      hardcode_libdir_separator_F77=:
14870      ;;
14871
14872    solaris*)
14873      no_undefined_flag_F77=' -z text'
14874      if test "$GCC" = yes; then
14875	wlarc='${wl}'
14876	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14877	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14878	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14879      else
14880	wlarc=''
14881	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14882	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14883  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14884      fi
14885      hardcode_libdir_flag_spec_F77='-R$libdir'
14886      hardcode_shlibpath_var_F77=no
14887      case $host_os in
14888      solaris2.[0-5] | solaris2.[0-5].*) ;;
14889      *)
14890 	# The compiler driver will combine linker options so we
14891 	# cannot just pass the convience library names through
14892 	# without $wl, iff we do not link with $LD.
14893 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14894 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14895 	case $wlarc in
14896 	'')
14897 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14898 	*)
14899 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14900 	esac ;;
14901      esac
14902      link_all_deplibs_F77=yes
14903      ;;
14904
14905    sunos4*)
14906      if test "x$host_vendor" = xsequent; then
14907	# Use $CC to link under sequent, because it throws in some extra .o
14908	# files that make .init and .fini sections work.
14909	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14910      else
14911	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14912      fi
14913      hardcode_libdir_flag_spec_F77='-L$libdir'
14914      hardcode_direct_F77=yes
14915      hardcode_minus_L_F77=yes
14916      hardcode_shlibpath_var_F77=no
14917      ;;
14918
14919    sysv4)
14920      case $host_vendor in
14921	sni)
14922	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14923	  hardcode_direct_F77=yes # is this really true???
14924	;;
14925	siemens)
14926	  ## LD is ld it makes a PLAMLIB
14927	  ## CC just makes a GrossModule.
14928	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14929	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14930	  hardcode_direct_F77=no
14931        ;;
14932	motorola)
14933	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14934	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14935	;;
14936      esac
14937      runpath_var='LD_RUN_PATH'
14938      hardcode_shlibpath_var_F77=no
14939      ;;
14940
14941    sysv4.3*)
14942      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14943      hardcode_shlibpath_var_F77=no
14944      export_dynamic_flag_spec_F77='-Bexport'
14945      ;;
14946
14947    sysv4*MP*)
14948      if test -d /usr/nec; then
14949	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14950	hardcode_shlibpath_var_F77=no
14951	runpath_var=LD_RUN_PATH
14952	hardcode_runpath_var=yes
14953	ld_shlibs_F77=yes
14954      fi
14955      ;;
14956
14957    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14958      no_undefined_flag_F77='${wl}-z,text'
14959      archive_cmds_need_lc_F77=no
14960      hardcode_shlibpath_var_F77=no
14961      runpath_var='LD_RUN_PATH'
14962
14963      if test "$GCC" = yes; then
14964	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14965	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14966      else
14967	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14968	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14969      fi
14970      ;;
14971
14972    sysv5* | sco3.2v5* | sco5v6*)
14973      # Note: We can NOT use -z defs as we might desire, because we do not
14974      # link with -lc, and that would cause any symbols used from libc to
14975      # always be unresolved, which means just about no library would
14976      # ever link correctly.  If we're not using GNU ld we use -z text
14977      # though, which does catch some bad symbols but isn't as heavy-handed
14978      # as -z defs.
14979      no_undefined_flag_F77='${wl}-z,text'
14980      allow_undefined_flag_F77='${wl}-z,nodefs'
14981      archive_cmds_need_lc_F77=no
14982      hardcode_shlibpath_var_F77=no
14983      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14984      hardcode_libdir_separator_F77=':'
14985      link_all_deplibs_F77=yes
14986      export_dynamic_flag_spec_F77='${wl}-Bexport'
14987      runpath_var='LD_RUN_PATH'
14988
14989      if test "$GCC" = yes; then
14990	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14991	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14992      else
14993	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14994	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14995      fi
14996      ;;
14997
14998    uts4*)
14999      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15000      hardcode_libdir_flag_spec_F77='-L$libdir'
15001      hardcode_shlibpath_var_F77=no
15002      ;;
15003
15004    *)
15005      ld_shlibs_F77=no
15006      ;;
15007    esac
15008  fi
15009
15010{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15011echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15012test "$ld_shlibs_F77" = no && can_build_shared=no
15013
15014#
15015# Do we need to explicitly link libc?
15016#
15017case "x$archive_cmds_need_lc_F77" in
15018x|xyes)
15019  # Assume -lc should be added
15020  archive_cmds_need_lc_F77=yes
15021
15022  if test "$enable_shared" = yes && test "$GCC" = yes; then
15023    case $archive_cmds_F77 in
15024    *'~'*)
15025      # FIXME: we may have to deal with multi-command sequences.
15026      ;;
15027    '$CC '*)
15028      # Test whether the compiler implicitly links with -lc since on some
15029      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15030      # to ld, don't add -lc before -lgcc.
15031      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15032echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15033      $rm conftest*
15034      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15035
15036      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15037  (eval $ac_compile) 2>&5
15038  ac_status=$?
15039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040  (exit $ac_status); } 2>conftest.err; then
15041        soname=conftest
15042        lib=conftest
15043        libobjs=conftest.$ac_objext
15044        deplibs=
15045        wl=$lt_prog_compiler_wl_F77
15046	pic_flag=$lt_prog_compiler_pic_F77
15047        compiler_flags=-v
15048        linker_flags=-v
15049        verstring=
15050        output_objdir=.
15051        libname=conftest
15052        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15053        allow_undefined_flag_F77=
15054        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15055  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15056  ac_status=$?
15057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058  (exit $ac_status); }
15059        then
15060	  archive_cmds_need_lc_F77=no
15061        else
15062	  archive_cmds_need_lc_F77=yes
15063        fi
15064        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15065      else
15066        cat conftest.err 1>&5
15067      fi
15068      $rm conftest*
15069      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15070echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15071      ;;
15072    esac
15073  fi
15074  ;;
15075esac
15076
15077{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15078echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15079library_names_spec=
15080libname_spec='lib$name'
15081soname_spec=
15082shrext_cmds=".so"
15083postinstall_cmds=
15084postuninstall_cmds=
15085finish_cmds=
15086finish_eval=
15087shlibpath_var=
15088shlibpath_overrides_runpath=unknown
15089version_type=none
15090dynamic_linker="$host_os ld.so"
15091sys_lib_dlsearch_path_spec="/lib /usr/lib"
15092if test "$GCC" = yes; then
15093  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15094  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15095    # if the path contains ";" then we assume it to be the separator
15096    # otherwise default to the standard path separator (i.e. ":") - it is
15097    # assumed that no part of a normal pathname contains ";" but that should
15098    # okay in the real world where ";" in dirpaths is itself problematic.
15099    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15100  else
15101    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15102  fi
15103else
15104  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15105fi
15106need_lib_prefix=unknown
15107hardcode_into_libs=no
15108
15109# when you set need_version to no, make sure it does not cause -set_version
15110# flags to be left without arguments
15111need_version=unknown
15112
15113case $host_os in
15114aix3*)
15115  version_type=linux
15116  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15117  shlibpath_var=LIBPATH
15118
15119  # AIX 3 has no versioning support, so we append a major version to the name.
15120  soname_spec='${libname}${release}${shared_ext}$major'
15121  ;;
15122
15123aix4* | aix5*)
15124  version_type=linux
15125  need_lib_prefix=no
15126  need_version=no
15127  hardcode_into_libs=yes
15128  if test "$host_cpu" = ia64; then
15129    # AIX 5 supports IA64
15130    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15131    shlibpath_var=LD_LIBRARY_PATH
15132  else
15133    # With GCC up to 2.95.x, collect2 would create an import file
15134    # for dependence libraries.  The import file would start with
15135    # the line `#! .'.  This would cause the generated library to
15136    # depend on `.', always an invalid library.  This was fixed in
15137    # development snapshots of GCC prior to 3.0.
15138    case $host_os in
15139      aix4 | aix4.[01] | aix4.[01].*)
15140      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15141	   echo ' yes '
15142	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15143	:
15144      else
15145	can_build_shared=no
15146      fi
15147      ;;
15148    esac
15149    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15150    # soname into executable. Probably we can add versioning support to
15151    # collect2, so additional links can be useful in future.
15152    if test "$aix_use_runtimelinking" = yes; then
15153      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15154      # instead of lib<name>.a to let people know that these are not
15155      # typical AIX shared libraries.
15156      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15157    else
15158      # We preserve .a as extension for shared libraries through AIX4.2
15159      # and later when we are not doing run time linking.
15160      library_names_spec='${libname}${release}.a $libname.a'
15161      soname_spec='${libname}${release}${shared_ext}$major'
15162    fi
15163    shlibpath_var=LIBPATH
15164  fi
15165  ;;
15166
15167amigaos*)
15168  library_names_spec='$libname.ixlibrary $libname.a'
15169  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15170  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'
15171  ;;
15172
15173beos*)
15174  library_names_spec='${libname}${shared_ext}'
15175  dynamic_linker="$host_os ld.so"
15176  shlibpath_var=LIBRARY_PATH
15177  ;;
15178
15179bsdi[45]*)
15180  version_type=linux
15181  need_version=no
15182  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15183  soname_spec='${libname}${release}${shared_ext}$major'
15184  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15185  shlibpath_var=LD_LIBRARY_PATH
15186  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15187  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15188  # the default ld.so.conf also contains /usr/contrib/lib and
15189  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15190  # libtool to hard-code these into programs
15191  ;;
15192
15193cygwin* | mingw* | pw32*)
15194  version_type=windows
15195  shrext_cmds=".dll"
15196  need_version=no
15197  need_lib_prefix=no
15198
15199  case $GCC,$host_os in
15200  yes,cygwin* | yes,mingw* | yes,pw32*)
15201    library_names_spec='$libname.dll.a'
15202    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15203    postinstall_cmds='base_file=`basename \${file}`~
15204      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15205      dldir=$destdir/`dirname \$dlpath`~
15206      test -d \$dldir || mkdir -p \$dldir~
15207      $install_prog $dir/$dlname \$dldir/$dlname~
15208      chmod a+x \$dldir/$dlname'
15209    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15210      dlpath=$dir/\$dldll~
15211       $rm \$dlpath'
15212    shlibpath_overrides_runpath=yes
15213
15214    case $host_os in
15215    cygwin*)
15216      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15217      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15218      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15219      ;;
15220    mingw*)
15221      # MinGW DLLs use traditional 'lib' prefix
15222      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15223      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15224      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15225        # It is most probably a Windows format PATH printed by
15226        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15227        # path with ; separators, and with drive letters. We can handle the
15228        # drive letters (cygwin fileutils understands them), so leave them,
15229        # especially as we might pass files found there to a mingw objdump,
15230        # which wouldn't understand a cygwinified path. Ahh.
15231        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15232      else
15233        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15234      fi
15235      ;;
15236    pw32*)
15237      # pw32 DLLs use 'pw' prefix rather than 'lib'
15238      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15239      ;;
15240    esac
15241    ;;
15242
15243  *)
15244    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15245    ;;
15246  esac
15247  dynamic_linker='Win32 ld.exe'
15248  # FIXME: first we should search . and the directory the executable is in
15249  shlibpath_var=PATH
15250  ;;
15251
15252darwin* | rhapsody*)
15253  dynamic_linker="$host_os dyld"
15254  version_type=darwin
15255  need_lib_prefix=no
15256  need_version=no
15257  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15258  soname_spec='${libname}${release}${major}$shared_ext'
15259  shlibpath_overrides_runpath=yes
15260  shlibpath_var=DYLD_LIBRARY_PATH
15261  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15262  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15263  if test "$GCC" = yes; then
15264    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15265  else
15266    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15267  fi
15268  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15269  ;;
15270
15271dgux*)
15272  version_type=linux
15273  need_lib_prefix=no
15274  need_version=no
15275  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15276  soname_spec='${libname}${release}${shared_ext}$major'
15277  shlibpath_var=LD_LIBRARY_PATH
15278  ;;
15279
15280freebsd1*)
15281  dynamic_linker=no
15282  ;;
15283
15284kfreebsd*-gnu)
15285  version_type=linux
15286  need_lib_prefix=no
15287  need_version=no
15288  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15289  soname_spec='${libname}${release}${shared_ext}$major'
15290  shlibpath_var=LD_LIBRARY_PATH
15291  shlibpath_overrides_runpath=no
15292  hardcode_into_libs=yes
15293  dynamic_linker='GNU ld.so'
15294  ;;
15295
15296freebsd* | dragonfly*)
15297  # DragonFly does not have aout.  When/if they implement a new
15298  # versioning mechanism, adjust this.
15299  if test -x /usr/bin/objformat; then
15300    objformat=`/usr/bin/objformat`
15301  else
15302    case $host_os in
15303    freebsd[123]*) objformat=aout ;;
15304    *) objformat=elf ;;
15305    esac
15306  fi
15307  version_type=freebsd-$objformat
15308  case $version_type in
15309    freebsd-elf*)
15310      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15311      need_version=no
15312      need_lib_prefix=no
15313      ;;
15314    freebsd-*)
15315      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15316      need_version=yes
15317      ;;
15318  esac
15319  shlibpath_var=LD_LIBRARY_PATH
15320  case $host_os in
15321  freebsd2*)
15322    shlibpath_overrides_runpath=yes
15323    ;;
15324  freebsd3.[01]* | freebsdelf3.[01]*)
15325    shlibpath_overrides_runpath=yes
15326    hardcode_into_libs=yes
15327    ;;
15328  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15329  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15330    shlibpath_overrides_runpath=no
15331    hardcode_into_libs=yes
15332    ;;
15333  freebsd*) # from 4.6 on
15334    shlibpath_overrides_runpath=yes
15335    hardcode_into_libs=yes
15336    ;;
15337  esac
15338  ;;
15339
15340gnu*)
15341  version_type=linux
15342  need_lib_prefix=no
15343  need_version=no
15344  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15345  soname_spec='${libname}${release}${shared_ext}$major'
15346  shlibpath_var=LD_LIBRARY_PATH
15347  hardcode_into_libs=yes
15348  ;;
15349
15350hpux9* | hpux10* | hpux11*)
15351  # Give a soname corresponding to the major version so that dld.sl refuses to
15352  # link against other versions.
15353  version_type=sunos
15354  need_lib_prefix=no
15355  need_version=no
15356  case $host_cpu in
15357  ia64*)
15358    shrext_cmds='.so'
15359    hardcode_into_libs=yes
15360    dynamic_linker="$host_os dld.so"
15361    shlibpath_var=LD_LIBRARY_PATH
15362    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15363    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15364    soname_spec='${libname}${release}${shared_ext}$major'
15365    if test "X$HPUX_IA64_MODE" = X32; then
15366      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15367    else
15368      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15369    fi
15370    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15371    ;;
15372   hppa*64*)
15373     shrext_cmds='.sl'
15374     hardcode_into_libs=yes
15375     dynamic_linker="$host_os dld.sl"
15376     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15377     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15378     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15379     soname_spec='${libname}${release}${shared_ext}$major'
15380     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15381     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15382     ;;
15383   *)
15384    shrext_cmds='.sl'
15385    dynamic_linker="$host_os dld.sl"
15386    shlibpath_var=SHLIB_PATH
15387    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15388    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15389    soname_spec='${libname}${release}${shared_ext}$major'
15390    ;;
15391  esac
15392  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15393  postinstall_cmds='chmod 555 $lib'
15394  ;;
15395
15396interix3*)
15397  version_type=linux
15398  need_lib_prefix=no
15399  need_version=no
15400  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15401  soname_spec='${libname}${release}${shared_ext}$major'
15402  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15403  shlibpath_var=LD_LIBRARY_PATH
15404  shlibpath_overrides_runpath=no
15405  hardcode_into_libs=yes
15406  ;;
15407
15408irix5* | irix6* | nonstopux*)
15409  case $host_os in
15410    nonstopux*) version_type=nonstopux ;;
15411    *)
15412	if test "$lt_cv_prog_gnu_ld" = yes; then
15413		version_type=linux
15414	else
15415		version_type=irix
15416	fi ;;
15417  esac
15418  need_lib_prefix=no
15419  need_version=no
15420  soname_spec='${libname}${release}${shared_ext}$major'
15421  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15422  case $host_os in
15423  irix5* | nonstopux*)
15424    libsuff= shlibsuff=
15425    ;;
15426  *)
15427    case $LD in # libtool.m4 will add one of these switches to LD
15428    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15429      libsuff= shlibsuff= libmagic=32-bit;;
15430    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15431      libsuff=32 shlibsuff=N32 libmagic=N32;;
15432    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15433      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15434    *) libsuff= shlibsuff= libmagic=never-match;;
15435    esac
15436    ;;
15437  esac
15438  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15439  shlibpath_overrides_runpath=no
15440  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15441  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15442  hardcode_into_libs=yes
15443  ;;
15444
15445# No shared lib support for Linux oldld, aout, or coff.
15446linux*oldld* | linux*aout* | linux*coff*)
15447  dynamic_linker=no
15448  ;;
15449
15450# This must be Linux ELF.
15451linux*)
15452  version_type=linux
15453  need_lib_prefix=no
15454  need_version=no
15455  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15456  soname_spec='${libname}${release}${shared_ext}$major'
15457  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15458  shlibpath_var=LD_LIBRARY_PATH
15459  shlibpath_overrides_runpath=no
15460  # This implies no fast_install, which is unacceptable.
15461  # Some rework will be needed to allow for fast_install
15462  # before this can be enabled.
15463  hardcode_into_libs=yes
15464
15465  # Append ld.so.conf contents to the search path
15466  if test -f /etc/ld.so.conf; then
15467    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/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15468    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15469  fi
15470
15471  # We used to test for /lib/ld.so.1 and disable shared libraries on
15472  # powerpc, because MkLinux only supported shared libraries with the
15473  # GNU dynamic linker.  Since this was broken with cross compilers,
15474  # most powerpc-linux boxes support dynamic linking these days and
15475  # people can always --disable-shared, the test was removed, and we
15476  # assume the GNU/Linux dynamic linker is in use.
15477  dynamic_linker='GNU/Linux ld.so'
15478  ;;
15479
15480knetbsd*-gnu)
15481  version_type=linux
15482  need_lib_prefix=no
15483  need_version=no
15484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15485  soname_spec='${libname}${release}${shared_ext}$major'
15486  shlibpath_var=LD_LIBRARY_PATH
15487  shlibpath_overrides_runpath=no
15488  hardcode_into_libs=yes
15489  dynamic_linker='GNU ld.so'
15490  ;;
15491
15492netbsd*)
15493  version_type=sunos
15494  need_lib_prefix=no
15495  need_version=no
15496  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15497    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15498    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15499    dynamic_linker='NetBSD (a.out) ld.so'
15500  else
15501    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15502    soname_spec='${libname}${release}${shared_ext}$major'
15503    dynamic_linker='NetBSD ld.elf_so'
15504  fi
15505  shlibpath_var=LD_LIBRARY_PATH
15506  shlibpath_overrides_runpath=yes
15507  hardcode_into_libs=yes
15508  ;;
15509
15510newsos6)
15511  version_type=linux
15512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15513  shlibpath_var=LD_LIBRARY_PATH
15514  shlibpath_overrides_runpath=yes
15515  ;;
15516
15517nto-qnx*)
15518  version_type=linux
15519  need_lib_prefix=no
15520  need_version=no
15521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15522  soname_spec='${libname}${release}${shared_ext}$major'
15523  shlibpath_var=LD_LIBRARY_PATH
15524  shlibpath_overrides_runpath=yes
15525  ;;
15526
15527openbsd*)
15528  version_type=sunos
15529  sys_lib_dlsearch_path_spec="/usr/lib"
15530  need_lib_prefix=no
15531  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15532  case $host_os in
15533    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15534    *)                         need_version=no  ;;
15535  esac
15536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15537  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15538  shlibpath_var=LD_LIBRARY_PATH
15539  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15540    case $host_os in
15541      openbsd2.[89] | openbsd2.[89].*)
15542	shlibpath_overrides_runpath=no
15543	;;
15544      *)
15545	shlibpath_overrides_runpath=yes
15546	;;
15547      esac
15548  else
15549    shlibpath_overrides_runpath=yes
15550  fi
15551  ;;
15552
15553os2*)
15554  libname_spec='$name'
15555  shrext_cmds=".dll"
15556  need_lib_prefix=no
15557  library_names_spec='$libname${shared_ext} $libname.a'
15558  dynamic_linker='OS/2 ld.exe'
15559  shlibpath_var=LIBPATH
15560  ;;
15561
15562osf3* | osf4* | osf5*)
15563  version_type=osf
15564  need_lib_prefix=no
15565  need_version=no
15566  soname_spec='${libname}${release}${shared_ext}$major'
15567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15568  shlibpath_var=LD_LIBRARY_PATH
15569  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15570  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15571  ;;
15572
15573solaris*)
15574  version_type=linux
15575  need_lib_prefix=no
15576  need_version=no
15577  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578  soname_spec='${libname}${release}${shared_ext}$major'
15579  shlibpath_var=LD_LIBRARY_PATH
15580  shlibpath_overrides_runpath=yes
15581  hardcode_into_libs=yes
15582  # ldd complains unless libraries are executable
15583  postinstall_cmds='chmod +x $lib'
15584  ;;
15585
15586sunos4*)
15587  version_type=sunos
15588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15589  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15590  shlibpath_var=LD_LIBRARY_PATH
15591  shlibpath_overrides_runpath=yes
15592  if test "$with_gnu_ld" = yes; then
15593    need_lib_prefix=no
15594  fi
15595  need_version=yes
15596  ;;
15597
15598sysv4 | sysv4.3*)
15599  version_type=linux
15600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15601  soname_spec='${libname}${release}${shared_ext}$major'
15602  shlibpath_var=LD_LIBRARY_PATH
15603  case $host_vendor in
15604    sni)
15605      shlibpath_overrides_runpath=no
15606      need_lib_prefix=no
15607      export_dynamic_flag_spec='${wl}-Blargedynsym'
15608      runpath_var=LD_RUN_PATH
15609      ;;
15610    siemens)
15611      need_lib_prefix=no
15612      ;;
15613    motorola)
15614      need_lib_prefix=no
15615      need_version=no
15616      shlibpath_overrides_runpath=no
15617      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15618      ;;
15619  esac
15620  ;;
15621
15622sysv4*MP*)
15623  if test -d /usr/nec ;then
15624    version_type=linux
15625    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15626    soname_spec='$libname${shared_ext}.$major'
15627    shlibpath_var=LD_LIBRARY_PATH
15628  fi
15629  ;;
15630
15631sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15632  version_type=freebsd-elf
15633  need_lib_prefix=no
15634  need_version=no
15635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15636  soname_spec='${libname}${release}${shared_ext}$major'
15637  shlibpath_var=LD_LIBRARY_PATH
15638  hardcode_into_libs=yes
15639  if test "$with_gnu_ld" = yes; then
15640    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15641    shlibpath_overrides_runpath=no
15642  else
15643    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15644    shlibpath_overrides_runpath=yes
15645    case $host_os in
15646      sco3.2v5*)
15647        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15648	;;
15649    esac
15650  fi
15651  sys_lib_dlsearch_path_spec='/usr/lib'
15652  ;;
15653
15654uts4*)
15655  version_type=linux
15656  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657  soname_spec='${libname}${release}${shared_ext}$major'
15658  shlibpath_var=LD_LIBRARY_PATH
15659  ;;
15660
15661*)
15662  dynamic_linker=no
15663  ;;
15664esac
15665{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15666echo "${ECHO_T}$dynamic_linker" >&6; }
15667test "$dynamic_linker" = no && can_build_shared=no
15668
15669variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15670if test "$GCC" = yes; then
15671  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15672fi
15673
15674{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15675echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15676hardcode_action_F77=
15677if test -n "$hardcode_libdir_flag_spec_F77" || \
15678   test -n "$runpath_var_F77" || \
15679   test "X$hardcode_automatic_F77" = "Xyes" ; then
15680
15681  # We can hardcode non-existant directories.
15682  if test "$hardcode_direct_F77" != no &&
15683     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15684     # have to relink, otherwise we might link with an installed library
15685     # when we should be linking with a yet-to-be-installed one
15686     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15687     test "$hardcode_minus_L_F77" != no; then
15688    # Linking always hardcodes the temporary library directory.
15689    hardcode_action_F77=relink
15690  else
15691    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15692    hardcode_action_F77=immediate
15693  fi
15694else
15695  # We cannot hardcode anything, or else we can only hardcode existing
15696  # directories.
15697  hardcode_action_F77=unsupported
15698fi
15699{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15700echo "${ECHO_T}$hardcode_action_F77" >&6; }
15701
15702if test "$hardcode_action_F77" = relink; then
15703  # Fast installation is not supported
15704  enable_fast_install=no
15705elif test "$shlibpath_overrides_runpath" = yes ||
15706     test "$enable_shared" = no; then
15707  # Fast installation is not necessary
15708  enable_fast_install=needless
15709fi
15710
15711
15712# The else clause should only fire when bootstrapping the
15713# libtool distribution, otherwise you forgot to ship ltmain.sh
15714# with your package, and you will get complaints that there are
15715# no rules to generate ltmain.sh.
15716if test -f "$ltmain"; then
15717  # See if we are running on zsh, and set the options which allow our commands through
15718  # without removal of \ escapes.
15719  if test -n "${ZSH_VERSION+set}" ; then
15720    setopt NO_GLOB_SUBST
15721  fi
15722  # Now quote all the things that may contain metacharacters while being
15723  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15724  # variables and quote the copies for generation of the libtool script.
15725  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15726    SED SHELL STRIP \
15727    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15728    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15729    deplibs_check_method reload_flag reload_cmds need_locks \
15730    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15731    lt_cv_sys_global_symbol_to_c_name_address \
15732    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15733    old_postinstall_cmds old_postuninstall_cmds \
15734    compiler_F77 \
15735    CC_F77 \
15736    LD_F77 \
15737    lt_prog_compiler_wl_F77 \
15738    lt_prog_compiler_pic_F77 \
15739    lt_prog_compiler_static_F77 \
15740    lt_prog_compiler_no_builtin_flag_F77 \
15741    export_dynamic_flag_spec_F77 \
15742    thread_safe_flag_spec_F77 \
15743    whole_archive_flag_spec_F77 \
15744    enable_shared_with_static_runtimes_F77 \
15745    old_archive_cmds_F77 \
15746    old_archive_from_new_cmds_F77 \
15747    predep_objects_F77 \
15748    postdep_objects_F77 \
15749    predeps_F77 \
15750    postdeps_F77 \
15751    compiler_lib_search_path_F77 \
15752    archive_cmds_F77 \
15753    archive_expsym_cmds_F77 \
15754    postinstall_cmds_F77 \
15755    postuninstall_cmds_F77 \
15756    old_archive_from_expsyms_cmds_F77 \
15757    allow_undefined_flag_F77 \
15758    no_undefined_flag_F77 \
15759    export_symbols_cmds_F77 \
15760    hardcode_libdir_flag_spec_F77 \
15761    hardcode_libdir_flag_spec_ld_F77 \
15762    hardcode_libdir_separator_F77 \
15763    hardcode_automatic_F77 \
15764    module_cmds_F77 \
15765    module_expsym_cmds_F77 \
15766    lt_cv_prog_compiler_c_o_F77 \
15767    exclude_expsyms_F77 \
15768    include_expsyms_F77; do
15769
15770    case $var in
15771    old_archive_cmds_F77 | \
15772    old_archive_from_new_cmds_F77 | \
15773    archive_cmds_F77 | \
15774    archive_expsym_cmds_F77 | \
15775    module_cmds_F77 | \
15776    module_expsym_cmds_F77 | \
15777    old_archive_from_expsyms_cmds_F77 | \
15778    export_symbols_cmds_F77 | \
15779    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15780    postinstall_cmds | postuninstall_cmds | \
15781    old_postinstall_cmds | old_postuninstall_cmds | \
15782    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15783      # Double-quote double-evaled strings.
15784      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15785      ;;
15786    *)
15787      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15788      ;;
15789    esac
15790  done
15791
15792  case $lt_echo in
15793  *'\$0 --fallback-echo"')
15794    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15795    ;;
15796  esac
15797
15798cfgfile="$ofile"
15799
15800  cat <<__EOF__ >> "$cfgfile"
15801# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15802
15803# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15804
15805# Shell to use when invoking shell scripts.
15806SHELL=$lt_SHELL
15807
15808# Whether or not to build shared libraries.
15809build_libtool_libs=$enable_shared
15810
15811# Whether or not to build static libraries.
15812build_old_libs=$enable_static
15813
15814# Whether or not to add -lc for building shared libraries.
15815build_libtool_need_lc=$archive_cmds_need_lc_F77
15816
15817# Whether or not to disallow shared libs when runtime libs are static
15818allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15819
15820# Whether or not to optimize for fast installation.
15821fast_install=$enable_fast_install
15822
15823# The host system.
15824host_alias=$host_alias
15825host=$host
15826host_os=$host_os
15827
15828# The build system.
15829build_alias=$build_alias
15830build=$build
15831build_os=$build_os
15832
15833# An echo program that does not interpret backslashes.
15834echo=$lt_echo
15835
15836# The archiver.
15837AR=$lt_AR
15838AR_FLAGS=$lt_AR_FLAGS
15839
15840# A C compiler.
15841LTCC=$lt_LTCC
15842
15843# LTCC compiler flags.
15844LTCFLAGS=$lt_LTCFLAGS
15845
15846# A language-specific compiler.
15847CC=$lt_compiler_F77
15848
15849# Is the compiler the GNU C compiler?
15850with_gcc=$GCC_F77
15851
15852# An ERE matcher.
15853EGREP=$lt_EGREP
15854
15855# The linker used to build libraries.
15856LD=$lt_LD_F77
15857
15858# Whether we need hard or soft links.
15859LN_S=$lt_LN_S
15860
15861# A BSD-compatible nm program.
15862NM=$lt_NM
15863
15864# A symbol stripping program
15865STRIP=$lt_STRIP
15866
15867# Used to examine libraries when file_magic_cmd begins "file"
15868MAGIC_CMD=$MAGIC_CMD
15869
15870# Used on cygwin: DLL creation program.
15871DLLTOOL="$DLLTOOL"
15872
15873# Used on cygwin: object dumper.
15874OBJDUMP="$OBJDUMP"
15875
15876# Used on cygwin: assembler.
15877AS="$AS"
15878
15879# The name of the directory that contains temporary libtool files.
15880objdir=$objdir
15881
15882# How to create reloadable object files.
15883reload_flag=$lt_reload_flag
15884reload_cmds=$lt_reload_cmds
15885
15886# How to pass a linker flag through the compiler.
15887wl=$lt_lt_prog_compiler_wl_F77
15888
15889# Object file suffix (normally "o").
15890objext="$ac_objext"
15891
15892# Old archive suffix (normally "a").
15893libext="$libext"
15894
15895# Shared library suffix (normally ".so").
15896shrext_cmds='$shrext_cmds'
15897
15898# Executable file suffix (normally "").
15899exeext="$exeext"
15900
15901# Additional compiler flags for building library objects.
15902pic_flag=$lt_lt_prog_compiler_pic_F77
15903pic_mode=$pic_mode
15904
15905# What is the maximum length of a command?
15906max_cmd_len=$lt_cv_sys_max_cmd_len
15907
15908# Does compiler simultaneously support -c and -o options?
15909compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15910
15911# Must we lock files when doing compilation?
15912need_locks=$lt_need_locks
15913
15914# Do we need the lib prefix for modules?
15915need_lib_prefix=$need_lib_prefix
15916
15917# Do we need a version for libraries?
15918need_version=$need_version
15919
15920# Whether dlopen is supported.
15921dlopen_support=$enable_dlopen
15922
15923# Whether dlopen of programs is supported.
15924dlopen_self=$enable_dlopen_self
15925
15926# Whether dlopen of statically linked programs is supported.
15927dlopen_self_static=$enable_dlopen_self_static
15928
15929# Compiler flag to prevent dynamic linking.
15930link_static_flag=$lt_lt_prog_compiler_static_F77
15931
15932# Compiler flag to turn off builtin functions.
15933no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15934
15935# Compiler flag to allow reflexive dlopens.
15936export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15937
15938# Compiler flag to generate shared objects directly from archives.
15939whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15940
15941# Compiler flag to generate thread-safe objects.
15942thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15943
15944# Library versioning type.
15945version_type=$version_type
15946
15947# Format of library name prefix.
15948libname_spec=$lt_libname_spec
15949
15950# List of archive names.  First name is the real one, the rest are links.
15951# The last name is the one that the linker finds with -lNAME.
15952library_names_spec=$lt_library_names_spec
15953
15954# The coded name of the library, if different from the real name.
15955soname_spec=$lt_soname_spec
15956
15957# Commands used to build and install an old-style archive.
15958RANLIB=$lt_RANLIB
15959old_archive_cmds=$lt_old_archive_cmds_F77
15960old_postinstall_cmds=$lt_old_postinstall_cmds
15961old_postuninstall_cmds=$lt_old_postuninstall_cmds
15962
15963# Create an old-style archive from a shared archive.
15964old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15965
15966# Create a temporary old-style archive to link instead of a shared archive.
15967old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15968
15969# Commands used to build and install a shared archive.
15970archive_cmds=$lt_archive_cmds_F77
15971archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15972postinstall_cmds=$lt_postinstall_cmds
15973postuninstall_cmds=$lt_postuninstall_cmds
15974
15975# Commands used to build a loadable module (assumed same as above if empty)
15976module_cmds=$lt_module_cmds_F77
15977module_expsym_cmds=$lt_module_expsym_cmds_F77
15978
15979# Commands to strip libraries.
15980old_striplib=$lt_old_striplib
15981striplib=$lt_striplib
15982
15983# Dependencies to place before the objects being linked to create a
15984# shared library.
15985predep_objects=$lt_predep_objects_F77
15986
15987# Dependencies to place after the objects being linked to create a
15988# shared library.
15989postdep_objects=$lt_postdep_objects_F77
15990
15991# Dependencies to place before the objects being linked to create a
15992# shared library.
15993predeps=$lt_predeps_F77
15994
15995# Dependencies to place after the objects being linked to create a
15996# shared library.
15997postdeps=$lt_postdeps_F77
15998
15999# The library search path used internally by the compiler when linking
16000# a shared library.
16001compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16002
16003# Method to check whether dependent libraries are shared objects.
16004deplibs_check_method=$lt_deplibs_check_method
16005
16006# Command to use when deplibs_check_method == file_magic.
16007file_magic_cmd=$lt_file_magic_cmd
16008
16009# Flag that allows shared libraries with undefined symbols to be built.
16010allow_undefined_flag=$lt_allow_undefined_flag_F77
16011
16012# Flag that forces no undefined symbols.
16013no_undefined_flag=$lt_no_undefined_flag_F77
16014
16015# Commands used to finish a libtool library installation in a directory.
16016finish_cmds=$lt_finish_cmds
16017
16018# Same as above, but a single script fragment to be evaled but not shown.
16019finish_eval=$lt_finish_eval
16020
16021# Take the output of nm and produce a listing of raw symbols and C names.
16022global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16023
16024# Transform the output of nm in a proper C declaration
16025global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16026
16027# Transform the output of nm in a C name address pair
16028global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16029
16030# This is the shared library runtime path variable.
16031runpath_var=$runpath_var
16032
16033# This is the shared library path variable.
16034shlibpath_var=$shlibpath_var
16035
16036# Is shlibpath searched before the hard-coded library search path?
16037shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16038
16039# How to hardcode a shared library path into an executable.
16040hardcode_action=$hardcode_action_F77
16041
16042# Whether we should hardcode library paths into libraries.
16043hardcode_into_libs=$hardcode_into_libs
16044
16045# Flag to hardcode \$libdir into a binary during linking.
16046# This must work even if \$libdir does not exist.
16047hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16048
16049# If ld is used when linking, flag to hardcode \$libdir into
16050# a binary during linking. This must work even if \$libdir does
16051# not exist.
16052hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16053
16054# Whether we need a single -rpath flag with a separated argument.
16055hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16056
16057# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16058# resulting binary.
16059hardcode_direct=$hardcode_direct_F77
16060
16061# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16062# resulting binary.
16063hardcode_minus_L=$hardcode_minus_L_F77
16064
16065# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16066# the resulting binary.
16067hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16068
16069# Set to yes if building a shared library automatically hardcodes DIR into the library
16070# and all subsequent libraries and executables linked against it.
16071hardcode_automatic=$hardcode_automatic_F77
16072
16073# Variables whose values should be saved in libtool wrapper scripts and
16074# restored at relink time.
16075variables_saved_for_relink="$variables_saved_for_relink"
16076
16077# Whether libtool must link a program against all its dependency libraries.
16078link_all_deplibs=$link_all_deplibs_F77
16079
16080# Compile-time system search path for libraries
16081sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16082
16083# Run-time system search path for libraries
16084sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16085
16086# Fix the shell variable \$srcfile for the compiler.
16087fix_srcfile_path="$fix_srcfile_path_F77"
16088
16089# Set to yes if exported symbols are required.
16090always_export_symbols=$always_export_symbols_F77
16091
16092# The commands to list exported symbols.
16093export_symbols_cmds=$lt_export_symbols_cmds_F77
16094
16095# The commands to extract the exported symbol list from a shared archive.
16096extract_expsyms_cmds=$lt_extract_expsyms_cmds
16097
16098# Symbols that should not be listed in the preloaded symbols.
16099exclude_expsyms=$lt_exclude_expsyms_F77
16100
16101# Symbols that must always be exported.
16102include_expsyms=$lt_include_expsyms_F77
16103
16104# ### END LIBTOOL TAG CONFIG: $tagname
16105
16106__EOF__
16107
16108
16109else
16110  # If there is no Makefile yet, we rely on a make rule to execute
16111  # `config.status --recheck' to rerun these tests and create the
16112  # libtool script then.
16113  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16114  if test -f "$ltmain_in"; then
16115    test -f Makefile && make "$ltmain"
16116  fi
16117fi
16118
16119
16120ac_ext=c
16121ac_cpp='$CPP $CPPFLAGS'
16122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16124ac_compiler_gnu=$ac_cv_c_compiler_gnu
16125
16126CC="$lt_save_CC"
16127
16128	else
16129	  tagname=""
16130	fi
16131	;;
16132
16133      GCJ)
16134	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16135
16136
16137# Source file extension for Java test sources.
16138ac_ext=java
16139
16140# Object file extension for compiled Java test sources.
16141objext=o
16142objext_GCJ=$objext
16143
16144# Code to be used in simple compile tests
16145lt_simple_compile_test_code="class foo {}\n"
16146
16147# Code to be used in simple link tests
16148lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16149
16150# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16151
16152# If no C compiler was specified, use CC.
16153LTCC=${LTCC-"$CC"}
16154
16155# If no C compiler flags were specified, use CFLAGS.
16156LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16157
16158# Allow CC to be a program name with arguments.
16159compiler=$CC
16160
16161
16162# save warnings/boilerplate of simple test code
16163ac_outfile=conftest.$ac_objext
16164printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16165eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16166_lt_compiler_boilerplate=`cat conftest.err`
16167$rm conftest*
16168
16169ac_outfile=conftest.$ac_objext
16170printf "$lt_simple_link_test_code" >conftest.$ac_ext
16171eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16172_lt_linker_boilerplate=`cat conftest.err`
16173$rm conftest*
16174
16175
16176# Allow CC to be a program name with arguments.
16177lt_save_CC="$CC"
16178CC=${GCJ-"gcj"}
16179compiler=$CC
16180compiler_GCJ=$CC
16181for cc_temp in $compiler""; do
16182  case $cc_temp in
16183    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16184    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16185    \-*) ;;
16186    *) break;;
16187  esac
16188done
16189cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16190
16191
16192# GCJ did not exist at the time GCC didn't implicitly link libc in.
16193archive_cmds_need_lc_GCJ=no
16194
16195old_archive_cmds_GCJ=$old_archive_cmds
16196
16197
16198lt_prog_compiler_no_builtin_flag_GCJ=
16199
16200if test "$GCC" = yes; then
16201  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16202
16203
16204{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16205echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16206if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16207  echo $ECHO_N "(cached) $ECHO_C" >&6
16208else
16209  lt_cv_prog_compiler_rtti_exceptions=no
16210  ac_outfile=conftest.$ac_objext
16211   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16212   lt_compiler_flag="-fno-rtti -fno-exceptions"
16213   # Insert the option either (1) after the last *FLAGS variable, or
16214   # (2) before a word containing "conftest.", or (3) at the end.
16215   # Note that $ac_compile itself does not contain backslashes and begins
16216   # with a dollar sign (not a hyphen), so the echo should work correctly.
16217   # The option is referenced via a variable to avoid confusing sed.
16218   lt_compile=`echo "$ac_compile" | $SED \
16219   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16220   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16221   -e 's:$: $lt_compiler_flag:'`
16222   (eval echo "\"\$as_me:16222: $lt_compile\"" >&5)
16223   (eval "$lt_compile" 2>conftest.err)
16224   ac_status=$?
16225   cat conftest.err >&5
16226   echo "$as_me:16226: \$? = $ac_status" >&5
16227   if (exit $ac_status) && test -s "$ac_outfile"; then
16228     # The compiler can only warn and ignore the option if not recognized
16229     # So say no if there are warnings other than the usual output.
16230     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16231     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16232     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16233       lt_cv_prog_compiler_rtti_exceptions=yes
16234     fi
16235   fi
16236   $rm conftest*
16237
16238fi
16239{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16240echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16241
16242if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16243    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16244else
16245    :
16246fi
16247
16248fi
16249
16250lt_prog_compiler_wl_GCJ=
16251lt_prog_compiler_pic_GCJ=
16252lt_prog_compiler_static_GCJ=
16253
16254{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16255echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16256
16257  if test "$GCC" = yes; then
16258    lt_prog_compiler_wl_GCJ='-Wl,'
16259    lt_prog_compiler_static_GCJ='-static'
16260
16261    case $host_os in
16262      aix*)
16263      # All AIX code is PIC.
16264      if test "$host_cpu" = ia64; then
16265	# AIX 5 now supports IA64 processor
16266	lt_prog_compiler_static_GCJ='-Bstatic'
16267      fi
16268      ;;
16269
16270    amigaos*)
16271      # FIXME: we need at least 68020 code to build shared libraries, but
16272      # adding the `-m68020' flag to GCC prevents building anything better,
16273      # like `-m68040'.
16274      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16275      ;;
16276
16277    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16278      # PIC is the default for these OSes.
16279      ;;
16280
16281    mingw* | cygwin* | pw32* | os2*)
16282      # This hack is so that the source file can tell whether it is being
16283      # built for inclusion in a dll (and should export symbols for example).
16284      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16285      # (--disable-auto-import) libraries
16286      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16287      ;;
16288
16289    darwin* | rhapsody*)
16290      # PIC is the default on this platform
16291      # Common symbols not allowed in MH_DYLIB files
16292      lt_prog_compiler_pic_GCJ='-fno-common'
16293      ;;
16294
16295    interix3*)
16296      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16297      # Instead, we relocate shared libraries at runtime.
16298      ;;
16299
16300    msdosdjgpp*)
16301      # Just because we use GCC doesn't mean we suddenly get shared libraries
16302      # on systems that don't support them.
16303      lt_prog_compiler_can_build_shared_GCJ=no
16304      enable_shared=no
16305      ;;
16306
16307    sysv4*MP*)
16308      if test -d /usr/nec; then
16309	lt_prog_compiler_pic_GCJ=-Kconform_pic
16310      fi
16311      ;;
16312
16313    hpux*)
16314      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16315      # not for PA HP-UX.
16316      case $host_cpu in
16317      hppa*64*|ia64*)
16318	# +Z the default
16319	;;
16320      *)
16321	lt_prog_compiler_pic_GCJ='-fPIC'
16322	;;
16323      esac
16324      ;;
16325
16326    *)
16327      lt_prog_compiler_pic_GCJ='-fPIC'
16328      ;;
16329    esac
16330  else
16331    # PORTME Check for flag to pass linker flags through the system compiler.
16332    case $host_os in
16333    aix*)
16334      lt_prog_compiler_wl_GCJ='-Wl,'
16335      if test "$host_cpu" = ia64; then
16336	# AIX 5 now supports IA64 processor
16337	lt_prog_compiler_static_GCJ='-Bstatic'
16338      else
16339	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16340      fi
16341      ;;
16342      darwin*)
16343        # PIC is the default on this platform
16344        # Common symbols not allowed in MH_DYLIB files
16345       case $cc_basename in
16346         xlc*)
16347         lt_prog_compiler_pic_GCJ='-qnocommon'
16348         lt_prog_compiler_wl_GCJ='-Wl,'
16349         ;;
16350       esac
16351       ;;
16352
16353    mingw* | cygwin* | pw32* | os2*)
16354      # This hack is so that the source file can tell whether it is being
16355      # built for inclusion in a dll (and should export symbols for example).
16356      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16357      # (--disable-auto-import) libraries
16358      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16359      ;;
16360
16361    hpux9* | hpux10* | hpux11*)
16362      lt_prog_compiler_wl_GCJ='-Wl,'
16363      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16364      # not for PA HP-UX.
16365      case $host_cpu in
16366      hppa*64*|ia64*)
16367	# +Z the default
16368	;;
16369      *)
16370	lt_prog_compiler_pic_GCJ='+Z'
16371	;;
16372      esac
16373      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16374      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16375      ;;
16376
16377    irix5* | irix6* | nonstopux*)
16378      lt_prog_compiler_wl_GCJ='-Wl,'
16379      # PIC (with -KPIC) is the default.
16380      lt_prog_compiler_static_GCJ='-non_shared'
16381      ;;
16382
16383    newsos6)
16384      lt_prog_compiler_pic_GCJ='-KPIC'
16385      lt_prog_compiler_static_GCJ='-Bstatic'
16386      ;;
16387
16388    linux*)
16389      case $cc_basename in
16390      icc* | ecc*)
16391	lt_prog_compiler_wl_GCJ='-Wl,'
16392	lt_prog_compiler_pic_GCJ='-KPIC'
16393	lt_prog_compiler_static_GCJ='-static'
16394        ;;
16395      pgcc* | pgf77* | pgf90* | pgf95*)
16396        # Portland Group compilers (*not* the Pentium gcc compiler,
16397	# which looks to be a dead project)
16398	lt_prog_compiler_wl_GCJ='-Wl,'
16399	lt_prog_compiler_pic_GCJ='-fpic'
16400	lt_prog_compiler_static_GCJ='-Bstatic'
16401        ;;
16402      ccc*)
16403        lt_prog_compiler_wl_GCJ='-Wl,'
16404        # All Alpha code is PIC.
16405        lt_prog_compiler_static_GCJ='-non_shared'
16406        ;;
16407      como)
16408        lt_prog_compiler_wl_GCJ='-lopt='
16409        ;;
16410      *)
16411        case `$CC -V 2>&1 | sed 5q` in
16412	*Sun\ C*)
16413	  # Sun C 5.9
16414	  lt_prog_compiler_pic_GCJ='-KPIC'
16415	  lt_prog_compiler_static_GCJ='-Bstatic'
16416	  lt_prog_compiler_wl_GCJ='-Wl,'
16417	  ;;
16418	*Sun\ F*)
16419	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16420	  lt_prog_compiler_pic_GCJ='-KPIC'
16421	  lt_prog_compiler_static_GCJ='-Bstatic'
16422	  lt_prog_compiler_wl_GCJ=''
16423	  ;;
16424	esac
16425	;;
16426      esac
16427      ;;
16428
16429    osf3* | osf4* | osf5*)
16430      lt_prog_compiler_wl_GCJ='-Wl,'
16431      # All OSF/1 code is PIC.
16432      lt_prog_compiler_static_GCJ='-non_shared'
16433      ;;
16434
16435    solaris*)
16436      lt_prog_compiler_pic_GCJ='-KPIC'
16437      lt_prog_compiler_static_GCJ='-Bstatic'
16438      case $cc_basename in
16439      f77* | f90* | f95*)
16440	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16441      *)
16442	lt_prog_compiler_wl_GCJ='-Wl,';;
16443      esac
16444      ;;
16445
16446    sunos4*)
16447      lt_prog_compiler_wl_GCJ='-Qoption ld '
16448      lt_prog_compiler_pic_GCJ='-PIC'
16449      lt_prog_compiler_static_GCJ='-Bstatic'
16450      ;;
16451
16452    sysv4 | sysv4.2uw2* | sysv4.3*)
16453      lt_prog_compiler_wl_GCJ='-Wl,'
16454      lt_prog_compiler_pic_GCJ='-KPIC'
16455      lt_prog_compiler_static_GCJ='-Bstatic'
16456      ;;
16457
16458    sysv4*MP*)
16459      if test -d /usr/nec ;then
16460	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16461	lt_prog_compiler_static_GCJ='-Bstatic'
16462      fi
16463      ;;
16464
16465    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16466      lt_prog_compiler_wl_GCJ='-Wl,'
16467      lt_prog_compiler_pic_GCJ='-KPIC'
16468      lt_prog_compiler_static_GCJ='-Bstatic'
16469      ;;
16470
16471    unicos*)
16472      lt_prog_compiler_wl_GCJ='-Wl,'
16473      lt_prog_compiler_can_build_shared_GCJ=no
16474      ;;
16475
16476    uts4*)
16477      lt_prog_compiler_pic_GCJ='-pic'
16478      lt_prog_compiler_static_GCJ='-Bstatic'
16479      ;;
16480
16481    *)
16482      lt_prog_compiler_can_build_shared_GCJ=no
16483      ;;
16484    esac
16485  fi
16486
16487{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16488echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16489
16490#
16491# Check to make sure the PIC flag actually works.
16492#
16493if test -n "$lt_prog_compiler_pic_GCJ"; then
16494
16495{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16496echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16497if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16498  echo $ECHO_N "(cached) $ECHO_C" >&6
16499else
16500  lt_prog_compiler_pic_works_GCJ=no
16501  ac_outfile=conftest.$ac_objext
16502   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16503   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16504   # Insert the option either (1) after the last *FLAGS variable, or
16505   # (2) before a word containing "conftest.", or (3) at the end.
16506   # Note that $ac_compile itself does not contain backslashes and begins
16507   # with a dollar sign (not a hyphen), so the echo should work correctly.
16508   # The option is referenced via a variable to avoid confusing sed.
16509   lt_compile=`echo "$ac_compile" | $SED \
16510   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16511   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16512   -e 's:$: $lt_compiler_flag:'`
16513   (eval echo "\"\$as_me:16513: $lt_compile\"" >&5)
16514   (eval "$lt_compile" 2>conftest.err)
16515   ac_status=$?
16516   cat conftest.err >&5
16517   echo "$as_me:16517: \$? = $ac_status" >&5
16518   if (exit $ac_status) && test -s "$ac_outfile"; then
16519     # The compiler can only warn and ignore the option if not recognized
16520     # So say no if there are warnings other than the usual output.
16521     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16522     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16523     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16524       lt_prog_compiler_pic_works_GCJ=yes
16525     fi
16526   fi
16527   $rm conftest*
16528
16529fi
16530{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16531echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16532
16533if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16534    case $lt_prog_compiler_pic_GCJ in
16535     "" | " "*) ;;
16536     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16537     esac
16538else
16539    lt_prog_compiler_pic_GCJ=
16540     lt_prog_compiler_can_build_shared_GCJ=no
16541fi
16542
16543fi
16544case $host_os in
16545  # For platforms which do not support PIC, -DPIC is meaningless:
16546  *djgpp*)
16547    lt_prog_compiler_pic_GCJ=
16548    ;;
16549  *)
16550    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16551    ;;
16552esac
16553
16554#
16555# Check to make sure the static flag actually works.
16556#
16557wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16558{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16559echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16560if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16561  echo $ECHO_N "(cached) $ECHO_C" >&6
16562else
16563  lt_prog_compiler_static_works_GCJ=no
16564   save_LDFLAGS="$LDFLAGS"
16565   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16566   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16567   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16568     # The linker can only warn and ignore the option if not recognized
16569     # So say no if there are warnings
16570     if test -s conftest.err; then
16571       # Append any errors to the config.log.
16572       cat conftest.err 1>&5
16573       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16574       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16575       if diff conftest.exp conftest.er2 >/dev/null; then
16576         lt_prog_compiler_static_works_GCJ=yes
16577       fi
16578     else
16579       lt_prog_compiler_static_works_GCJ=yes
16580     fi
16581   fi
16582   $rm conftest*
16583   LDFLAGS="$save_LDFLAGS"
16584
16585fi
16586{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16587echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16588
16589if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16590    :
16591else
16592    lt_prog_compiler_static_GCJ=
16593fi
16594
16595
16596{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16597echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16598if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16599  echo $ECHO_N "(cached) $ECHO_C" >&6
16600else
16601  lt_cv_prog_compiler_c_o_GCJ=no
16602   $rm -r conftest 2>/dev/null
16603   mkdir conftest
16604   cd conftest
16605   mkdir out
16606   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16607
16608   lt_compiler_flag="-o out/conftest2.$ac_objext"
16609   # Insert the option either (1) after the last *FLAGS variable, or
16610   # (2) before a word containing "conftest.", or (3) at the end.
16611   # Note that $ac_compile itself does not contain backslashes and begins
16612   # with a dollar sign (not a hyphen), so the echo should work correctly.
16613   lt_compile=`echo "$ac_compile" | $SED \
16614   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16615   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16616   -e 's:$: $lt_compiler_flag:'`
16617   (eval echo "\"\$as_me:16617: $lt_compile\"" >&5)
16618   (eval "$lt_compile" 2>out/conftest.err)
16619   ac_status=$?
16620   cat out/conftest.err >&5
16621   echo "$as_me:16621: \$? = $ac_status" >&5
16622   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16623   then
16624     # The compiler can only warn and ignore the option if not recognized
16625     # So say no if there are warnings
16626     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16627     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16628     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16629       lt_cv_prog_compiler_c_o_GCJ=yes
16630     fi
16631   fi
16632   chmod u+w . 2>&5
16633   $rm conftest*
16634   # SGI C++ compiler will create directory out/ii_files/ for
16635   # template instantiation
16636   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16637   $rm out/* && rmdir out
16638   cd ..
16639   rmdir conftest
16640   $rm conftest*
16641
16642fi
16643{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16644echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16645
16646
16647hard_links="nottested"
16648if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16649  # do not overwrite the value of need_locks provided by the user
16650  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16651echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16652  hard_links=yes
16653  $rm conftest*
16654  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16655  touch conftest.a
16656  ln conftest.a conftest.b 2>&5 || hard_links=no
16657  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16658  { echo "$as_me:$LINENO: result: $hard_links" >&5
16659echo "${ECHO_T}$hard_links" >&6; }
16660  if test "$hard_links" = no; then
16661    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16662echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16663    need_locks=warn
16664  fi
16665else
16666  need_locks=no
16667fi
16668
16669{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16670echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16671
16672  runpath_var=
16673  allow_undefined_flag_GCJ=
16674  enable_shared_with_static_runtimes_GCJ=no
16675  archive_cmds_GCJ=
16676  archive_expsym_cmds_GCJ=
16677  old_archive_From_new_cmds_GCJ=
16678  old_archive_from_expsyms_cmds_GCJ=
16679  export_dynamic_flag_spec_GCJ=
16680  whole_archive_flag_spec_GCJ=
16681  thread_safe_flag_spec_GCJ=
16682  hardcode_libdir_flag_spec_GCJ=
16683  hardcode_libdir_flag_spec_ld_GCJ=
16684  hardcode_libdir_separator_GCJ=
16685  hardcode_direct_GCJ=no
16686  hardcode_minus_L_GCJ=no
16687  hardcode_shlibpath_var_GCJ=unsupported
16688  link_all_deplibs_GCJ=unknown
16689  hardcode_automatic_GCJ=no
16690  module_cmds_GCJ=
16691  module_expsym_cmds_GCJ=
16692  always_export_symbols_GCJ=no
16693  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16694  # include_expsyms should be a list of space-separated symbols to be *always*
16695  # included in the symbol list
16696  include_expsyms_GCJ=
16697  # exclude_expsyms can be an extended regexp of symbols to exclude
16698  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16699  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16700  # as well as any symbol that contains `d'.
16701  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16702  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16703  # platforms (ab)use it in PIC code, but their linkers get confused if
16704  # the symbol is explicitly referenced.  Since portable code cannot
16705  # rely on this symbol name, it's probably fine to never include it in
16706  # preloaded symbol tables.
16707  extract_expsyms_cmds=
16708  # Just being paranoid about ensuring that cc_basename is set.
16709  for cc_temp in $compiler""; do
16710  case $cc_temp in
16711    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16712    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16713    \-*) ;;
16714    *) break;;
16715  esac
16716done
16717cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16718
16719  case $host_os in
16720  cygwin* | mingw* | pw32*)
16721    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16722    # When not using gcc, we currently assume that we are using
16723    # Microsoft Visual C++.
16724    if test "$GCC" != yes; then
16725      with_gnu_ld=no
16726    fi
16727    ;;
16728  interix*)
16729    # we just hope/assume this is gcc and not c89 (= MSVC++)
16730    with_gnu_ld=yes
16731    ;;
16732  openbsd*)
16733    with_gnu_ld=no
16734    ;;
16735  esac
16736
16737  ld_shlibs_GCJ=yes
16738  if test "$with_gnu_ld" = yes; then
16739    # If archive_cmds runs LD, not CC, wlarc should be empty
16740    wlarc='${wl}'
16741
16742    # Set some defaults for GNU ld with shared library support. These
16743    # are reset later if shared libraries are not supported. Putting them
16744    # here allows them to be overridden if necessary.
16745    runpath_var=LD_RUN_PATH
16746    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16747    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16748    # ancient GNU ld didn't support --whole-archive et. al.
16749    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16750	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16751      else
16752  	whole_archive_flag_spec_GCJ=
16753    fi
16754    supports_anon_versioning=no
16755    case `$LD -v 2>/dev/null` in
16756      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16757      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16758      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16759      *\ 2.11.*) ;; # other 2.11 versions
16760      *) supports_anon_versioning=yes ;;
16761    esac
16762
16763    # See if GNU ld supports shared libraries.
16764    case $host_os in
16765    aix3* | aix4* | aix5*)
16766      # On AIX/PPC, the GNU linker is very broken
16767      if test "$host_cpu" != ia64; then
16768	ld_shlibs_GCJ=no
16769	cat <<EOF 1>&2
16770
16771*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16772*** to be unable to reliably create shared libraries on AIX.
16773*** Therefore, libtool is disabling shared libraries support.  If you
16774*** really care for shared libraries, you may want to modify your PATH
16775*** so that a non-GNU linker is found, and then restart.
16776
16777EOF
16778      fi
16779      ;;
16780
16781    amigaos*)
16782      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)'
16783      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16784      hardcode_minus_L_GCJ=yes
16785
16786      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16787      # that the semantics of dynamic libraries on AmigaOS, at least up
16788      # to version 4, is to share data among multiple programs linked
16789      # with the same dynamic library.  Since this doesn't match the
16790      # behavior of shared libraries on other platforms, we can't use
16791      # them.
16792      ld_shlibs_GCJ=no
16793      ;;
16794
16795    beos*)
16796      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16797	allow_undefined_flag_GCJ=unsupported
16798	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16799	# support --undefined.  This deserves some investigation.  FIXME
16800	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16801      else
16802	ld_shlibs_GCJ=no
16803      fi
16804      ;;
16805
16806    cygwin* | mingw* | pw32*)
16807      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16808      # as there is no search path for DLLs.
16809      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16810      allow_undefined_flag_GCJ=unsupported
16811      always_export_symbols_GCJ=no
16812      enable_shared_with_static_runtimes_GCJ=yes
16813      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16814
16815      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16816        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16817	# If the export-symbols file already is a .def file (1st line
16818	# is EXPORTS), use it as is; otherwise, prepend...
16819	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16820	  cp $export_symbols $output_objdir/$soname.def;
16821	else
16822	  echo EXPORTS > $output_objdir/$soname.def;
16823	  cat $export_symbols >> $output_objdir/$soname.def;
16824	fi~
16825	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16826      else
16827	ld_shlibs_GCJ=no
16828      fi
16829      ;;
16830
16831    interix3*)
16832      hardcode_direct_GCJ=no
16833      hardcode_shlibpath_var_GCJ=no
16834      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16835      export_dynamic_flag_spec_GCJ='${wl}-E'
16836      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16837      # Instead, shared libraries are loaded at an image base (0x10000000 by
16838      # default) and relocated if they conflict, which is a slow very memory
16839      # consuming and fragmenting process.  To avoid this, we pick a random,
16840      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16841      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16842      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'
16843      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'
16844      ;;
16845
16846    linux*)
16847      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16848	tmp_addflag=
16849	case $cc_basename,$host_cpu in
16850	pgcc*)				# Portland Group C compiler
16851	  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'
16852	  tmp_addflag=' $pic_flag'
16853	  ;;
16854	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16855	  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'
16856	  tmp_addflag=' $pic_flag -Mnomain' ;;
16857	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16858	  tmp_addflag=' -i_dynamic' ;;
16859	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16860	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16861	ifc* | ifort*)			# Intel Fortran compiler
16862	  tmp_addflag=' -nofor_main' ;;
16863	esac
16864	case `$CC -V 2>&1 | sed 5q` in
16865	*Sun\ C*)			# Sun C 5.9
16866	  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 /dev/null'
16867	  tmp_sharedflag='-G' ;;
16868	*Sun\ F*)			# Sun Fortran 8.3
16869	  tmp_sharedflag='-G' ;;
16870	*)
16871	  tmp_sharedflag='-shared' ;;
16872	esac
16873	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16874
16875	if test $supports_anon_versioning = yes; then
16876	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16877  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16878  $echo "local: *; };" >> $output_objdir/$libname.ver~
16879	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16880	fi
16881      else
16882	ld_shlibs_GCJ=no
16883      fi
16884      ;;
16885
16886    netbsd*)
16887      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16888	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16889	wlarc=
16890      else
16891	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16892	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16893      fi
16894      ;;
16895
16896    solaris*)
16897      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16898	ld_shlibs_GCJ=no
16899	cat <<EOF 1>&2
16900
16901*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16902*** create shared libraries on Solaris systems.  Therefore, libtool
16903*** is disabling shared libraries support.  We urge you to upgrade GNU
16904*** binutils to release 2.9.1 or newer.  Another option is to modify
16905*** your PATH or compiler configuration so that the native linker is
16906*** used, and then restart.
16907
16908EOF
16909      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16910	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16911	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16912      else
16913	ld_shlibs_GCJ=no
16914      fi
16915      ;;
16916
16917    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16918      case `$LD -v 2>&1` in
16919        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16920	ld_shlibs_GCJ=no
16921	cat <<_LT_EOF 1>&2
16922
16923*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16924*** reliably create shared libraries on SCO systems.  Therefore, libtool
16925*** is disabling shared libraries support.  We urge you to upgrade GNU
16926*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16927*** your PATH or compiler configuration so that the native linker is
16928*** used, and then restart.
16929
16930_LT_EOF
16931	;;
16932	*)
16933	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16934	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16935	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16936	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16937	  else
16938	    ld_shlibs_GCJ=no
16939	  fi
16940	;;
16941      esac
16942      ;;
16943
16944    sunos4*)
16945      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16946      wlarc=
16947      hardcode_direct_GCJ=yes
16948      hardcode_shlibpath_var_GCJ=no
16949      ;;
16950
16951    *)
16952      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16953	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16954	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16955      else
16956	ld_shlibs_GCJ=no
16957      fi
16958      ;;
16959    esac
16960
16961    if test "$ld_shlibs_GCJ" = no; then
16962      runpath_var=
16963      hardcode_libdir_flag_spec_GCJ=
16964      export_dynamic_flag_spec_GCJ=
16965      whole_archive_flag_spec_GCJ=
16966    fi
16967  else
16968    # PORTME fill in a description of your system's linker (not GNU ld)
16969    case $host_os in
16970    aix3*)
16971      allow_undefined_flag_GCJ=unsupported
16972      always_export_symbols_GCJ=yes
16973      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'
16974      # Note: this linker hardcodes the directories in LIBPATH if there
16975      # are no directories specified by -L.
16976      hardcode_minus_L_GCJ=yes
16977      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16978	# Neither direct hardcoding nor static linking is supported with a
16979	# broken collect2.
16980	hardcode_direct_GCJ=unsupported
16981      fi
16982      ;;
16983
16984    aix4* | aix5*)
16985      if test "$host_cpu" = ia64; then
16986	# On IA64, the linker does run time linking by default, so we don't
16987	# have to do anything special.
16988	aix_use_runtimelinking=no
16989	exp_sym_flag='-Bexport'
16990	no_entry_flag=""
16991      else
16992	# If we're using GNU nm, then we don't want the "-C" option.
16993	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16994	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16995	  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'
16996	else
16997	  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'
16998	fi
16999	aix_use_runtimelinking=no
17000
17001	# Test if we are trying to use run time linking or normal
17002	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17003	# need to do runtime linking.
17004	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17005	  for ld_flag in $LDFLAGS; do
17006  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17007  	    aix_use_runtimelinking=yes
17008  	    break
17009  	  fi
17010	  done
17011	  ;;
17012	esac
17013
17014	exp_sym_flag='-bexport'
17015	no_entry_flag='-bnoentry'
17016      fi
17017
17018      # When large executables or shared objects are built, AIX ld can
17019      # have problems creating the table of contents.  If linking a library
17020      # or program results in "error TOC overflow" add -mminimal-toc to
17021      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17022      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17023
17024      archive_cmds_GCJ=''
17025      hardcode_direct_GCJ=yes
17026      hardcode_libdir_separator_GCJ=':'
17027      link_all_deplibs_GCJ=yes
17028
17029      if test "$GCC" = yes; then
17030	case $host_os in aix4.[012]|aix4.[012].*)
17031	# We only want to do this on AIX 4.2 and lower, the check
17032	# below for broken collect2 doesn't work under 4.3+
17033	  collect2name=`${CC} -print-prog-name=collect2`
17034	  if test -f "$collect2name" && \
17035  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17036	  then
17037  	  # We have reworked collect2
17038  	  hardcode_direct_GCJ=yes
17039	  else
17040  	  # We have old collect2
17041  	  hardcode_direct_GCJ=unsupported
17042  	  # It fails to find uninstalled libraries when the uninstalled
17043  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17044  	  # to unsupported forces relinking
17045  	  hardcode_minus_L_GCJ=yes
17046  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17047  	  hardcode_libdir_separator_GCJ=
17048	  fi
17049	  ;;
17050	esac
17051	shared_flag='-shared'
17052	if test "$aix_use_runtimelinking" = yes; then
17053	  shared_flag="$shared_flag "'${wl}-G'
17054	fi
17055      else
17056	# not using gcc
17057	if test "$host_cpu" = ia64; then
17058  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17059  	# chokes on -Wl,-G. The following line is correct:
17060	  shared_flag='-G'
17061	else
17062	  if test "$aix_use_runtimelinking" = yes; then
17063	    shared_flag='${wl}-G'
17064	  else
17065	    shared_flag='${wl}-bM:SRE'
17066	  fi
17067	fi
17068      fi
17069
17070      # It seems that -bexpall does not export symbols beginning with
17071      # underscore (_), so it is better to generate a list of symbols to export.
17072      always_export_symbols_GCJ=yes
17073      if test "$aix_use_runtimelinking" = yes; then
17074	# Warning - without using the other runtime loading flags (-brtl),
17075	# -berok will link without error, but may produce a broken library.
17076	allow_undefined_flag_GCJ='-berok'
17077       # Determine the default libpath from the value encoded in an empty executable.
17078       cat >conftest.$ac_ext <<_ACEOF
17079/* confdefs.h.  */
17080_ACEOF
17081cat confdefs.h >>conftest.$ac_ext
17082cat >>conftest.$ac_ext <<_ACEOF
17083/* end confdefs.h.  */
17084
17085int
17086main ()
17087{
17088
17089  ;
17090  return 0;
17091}
17092_ACEOF
17093rm -f conftest.$ac_objext conftest$ac_exeext
17094if { (ac_try="$ac_link"
17095case "(($ac_try" in
17096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097  *) ac_try_echo=$ac_try;;
17098esac
17099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100  (eval "$ac_link") 2>conftest.er1
17101  ac_status=$?
17102  grep -v '^ *+' conftest.er1 >conftest.err
17103  rm -f conftest.er1
17104  cat conftest.err >&5
17105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106  (exit $ac_status); } && {
17107	 test -z "$ac_c_werror_flag" ||
17108	 test ! -s conftest.err
17109       } && test -s conftest$ac_exeext &&
17110       $as_test_x conftest$ac_exeext; then
17111
17112aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17113}'`
17114# Check for a 64-bit object if we didn't find anything.
17115if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17116}'`; fi
17117else
17118  echo "$as_me: failed program was:" >&5
17119sed 's/^/| /' conftest.$ac_ext >&5
17120
17121
17122fi
17123
17124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17125      conftest$ac_exeext conftest.$ac_ext
17126if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17127
17128       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17129	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"
17130       else
17131	if test "$host_cpu" = ia64; then
17132	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17133	  allow_undefined_flag_GCJ="-z nodefs"
17134	  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"
17135	else
17136	 # Determine the default libpath from the value encoded in an empty executable.
17137	 cat >conftest.$ac_ext <<_ACEOF
17138/* confdefs.h.  */
17139_ACEOF
17140cat confdefs.h >>conftest.$ac_ext
17141cat >>conftest.$ac_ext <<_ACEOF
17142/* end confdefs.h.  */
17143
17144int
17145main ()
17146{
17147
17148  ;
17149  return 0;
17150}
17151_ACEOF
17152rm -f conftest.$ac_objext conftest$ac_exeext
17153if { (ac_try="$ac_link"
17154case "(($ac_try" in
17155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156  *) ac_try_echo=$ac_try;;
17157esac
17158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159  (eval "$ac_link") 2>conftest.er1
17160  ac_status=$?
17161  grep -v '^ *+' conftest.er1 >conftest.err
17162  rm -f conftest.er1
17163  cat conftest.err >&5
17164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165  (exit $ac_status); } && {
17166	 test -z "$ac_c_werror_flag" ||
17167	 test ! -s conftest.err
17168       } && test -s conftest$ac_exeext &&
17169       $as_test_x conftest$ac_exeext; then
17170
17171aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17172}'`
17173# Check for a 64-bit object if we didn't find anything.
17174if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17175}'`; fi
17176else
17177  echo "$as_me: failed program was:" >&5
17178sed 's/^/| /' conftest.$ac_ext >&5
17179
17180
17181fi
17182
17183rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17184      conftest$ac_exeext conftest.$ac_ext
17185if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17186
17187	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17188	  # Warning - without using the other run time loading flags,
17189	  # -berok will link without error, but may produce a broken library.
17190	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17191	  allow_undefined_flag_GCJ=' ${wl}-berok'
17192	  # Exported symbols can be pulled into shared objects from archives
17193	  whole_archive_flag_spec_GCJ='$convenience'
17194	  archive_cmds_need_lc_GCJ=yes
17195	  # This is similar to how AIX traditionally builds its shared libraries.
17196	  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'
17197	fi
17198      fi
17199      ;;
17200
17201    amigaos*)
17202      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)'
17203      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17204      hardcode_minus_L_GCJ=yes
17205      # see comment about different semantics on the GNU ld section
17206      ld_shlibs_GCJ=no
17207      ;;
17208
17209    bsdi[45]*)
17210      export_dynamic_flag_spec_GCJ=-rdynamic
17211      ;;
17212
17213    cygwin* | mingw* | pw32*)
17214      # When not using gcc, we currently assume that we are using
17215      # Microsoft Visual C++.
17216      # hardcode_libdir_flag_spec is actually meaningless, as there is
17217      # no search path for DLLs.
17218      hardcode_libdir_flag_spec_GCJ=' '
17219      allow_undefined_flag_GCJ=unsupported
17220      # Tell ltmain to make .lib files, not .a files.
17221      libext=lib
17222      # Tell ltmain to make .dll files, not .so files.
17223      shrext_cmds=".dll"
17224      # FIXME: Setting linknames here is a bad hack.
17225      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17226      # The linker will automatically build a .lib file if we build a DLL.
17227      old_archive_From_new_cmds_GCJ='true'
17228      # FIXME: Should let the user specify the lib program.
17229      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17230      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17231      enable_shared_with_static_runtimes_GCJ=yes
17232      ;;
17233
17234    darwin* | rhapsody*)
17235      case $host_os in
17236        rhapsody* | darwin1.[012])
17237         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17238         ;;
17239       *) # Darwin 1.3 on
17240         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17241           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17242         else
17243           case ${MACOSX_DEPLOYMENT_TARGET} in
17244             10.[012])
17245               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17246               ;;
17247             10.*)
17248               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17249               ;;
17250           esac
17251         fi
17252         ;;
17253      esac
17254      archive_cmds_need_lc_GCJ=no
17255      hardcode_direct_GCJ=no
17256      hardcode_automatic_GCJ=yes
17257      hardcode_shlibpath_var_GCJ=unsupported
17258      whole_archive_flag_spec_GCJ=''
17259      link_all_deplibs_GCJ=yes
17260    if test "$GCC" = yes ; then
17261    	output_verbose_link_cmd='echo'
17262        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17263      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17264      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17265      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}'
17266      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}'
17267    else
17268      case $cc_basename in
17269        xlc*)
17270         output_verbose_link_cmd='echo'
17271         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17272         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17273          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17274         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17275          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}'
17276          ;;
17277       *)
17278         ld_shlibs_GCJ=no
17279          ;;
17280      esac
17281    fi
17282      ;;
17283
17284    dgux*)
17285      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17286      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17287      hardcode_shlibpath_var_GCJ=no
17288      ;;
17289
17290    freebsd1*)
17291      ld_shlibs_GCJ=no
17292      ;;
17293
17294    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17295    # support.  Future versions do this automatically, but an explicit c++rt0.o
17296    # does not break anything, and helps significantly (at the cost of a little
17297    # extra space).
17298    freebsd2.2*)
17299      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17300      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17301      hardcode_direct_GCJ=yes
17302      hardcode_shlibpath_var_GCJ=no
17303      ;;
17304
17305    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17306    freebsd2*)
17307      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17308      hardcode_direct_GCJ=yes
17309      hardcode_minus_L_GCJ=yes
17310      hardcode_shlibpath_var_GCJ=no
17311      ;;
17312
17313    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17314    freebsd* | kfreebsd*-gnu | dragonfly*)
17315      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17316      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17317      hardcode_direct_GCJ=yes
17318      hardcode_shlibpath_var_GCJ=no
17319      ;;
17320
17321    hpux9*)
17322      if test "$GCC" = yes; then
17323	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'
17324      else
17325	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'
17326      fi
17327      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17328      hardcode_libdir_separator_GCJ=:
17329      hardcode_direct_GCJ=yes
17330
17331      # hardcode_minus_L: Not really in the search PATH,
17332      # but as the default location of the library.
17333      hardcode_minus_L_GCJ=yes
17334      export_dynamic_flag_spec_GCJ='${wl}-E'
17335      ;;
17336
17337    hpux10*)
17338      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17339	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17340      else
17341	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17342      fi
17343      if test "$with_gnu_ld" = no; then
17344	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17345	hardcode_libdir_separator_GCJ=:
17346
17347	hardcode_direct_GCJ=yes
17348	export_dynamic_flag_spec_GCJ='${wl}-E'
17349
17350	# hardcode_minus_L: Not really in the search PATH,
17351	# but as the default location of the library.
17352	hardcode_minus_L_GCJ=yes
17353      fi
17354      ;;
17355
17356    hpux11*)
17357      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17358	case $host_cpu in
17359	hppa*64*)
17360	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17361	  ;;
17362	ia64*)
17363	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17364	  ;;
17365	*)
17366	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17367	  ;;
17368	esac
17369      else
17370	case $host_cpu in
17371	hppa*64*)
17372	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17373	  ;;
17374	ia64*)
17375	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17376	  ;;
17377	*)
17378	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17379	  ;;
17380	esac
17381      fi
17382      if test "$with_gnu_ld" = no; then
17383	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17384	hardcode_libdir_separator_GCJ=:
17385
17386	case $host_cpu in
17387	hppa*64*|ia64*)
17388	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17389	  hardcode_direct_GCJ=no
17390	  hardcode_shlibpath_var_GCJ=no
17391	  ;;
17392	*)
17393	  hardcode_direct_GCJ=yes
17394	  export_dynamic_flag_spec_GCJ='${wl}-E'
17395
17396	  # hardcode_minus_L: Not really in the search PATH,
17397	  # but as the default location of the library.
17398	  hardcode_minus_L_GCJ=yes
17399	  ;;
17400	esac
17401      fi
17402      ;;
17403
17404    irix5* | irix6* | nonstopux*)
17405      if test "$GCC" = yes; then
17406	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'
17407      else
17408	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'
17409	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17410      fi
17411      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17412      hardcode_libdir_separator_GCJ=:
17413      link_all_deplibs_GCJ=yes
17414      ;;
17415
17416    netbsd*)
17417      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17418	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17419      else
17420	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17421      fi
17422      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17423      hardcode_direct_GCJ=yes
17424      hardcode_shlibpath_var_GCJ=no
17425      ;;
17426
17427    newsos6)
17428      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17429      hardcode_direct_GCJ=yes
17430      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17431      hardcode_libdir_separator_GCJ=:
17432      hardcode_shlibpath_var_GCJ=no
17433      ;;
17434
17435    openbsd*)
17436      hardcode_direct_GCJ=yes
17437      hardcode_shlibpath_var_GCJ=no
17438      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17439	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17440	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17441	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17442	export_dynamic_flag_spec_GCJ='${wl}-E'
17443      else
17444       case $host_os in
17445	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17446	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17447	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17448	   ;;
17449	 *)
17450	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17451	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17452	   ;;
17453       esac
17454      fi
17455      ;;
17456
17457    os2*)
17458      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17459      hardcode_minus_L_GCJ=yes
17460      allow_undefined_flag_GCJ=unsupported
17461      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'
17462      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17463      ;;
17464
17465    osf3*)
17466      if test "$GCC" = yes; then
17467	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17468	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'
17469      else
17470	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17471	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'
17472      fi
17473      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17474      hardcode_libdir_separator_GCJ=:
17475      ;;
17476
17477    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17478      if test "$GCC" = yes; then
17479	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17480	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'
17481	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17482      else
17483	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17484	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'
17485	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~
17486	$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'
17487
17488	# Both c and cxx compiler support -rpath directly
17489	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17490      fi
17491      hardcode_libdir_separator_GCJ=:
17492      ;;
17493
17494    solaris*)
17495      no_undefined_flag_GCJ=' -z text'
17496      if test "$GCC" = yes; then
17497	wlarc='${wl}'
17498	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17499	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17500	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17501      else
17502	wlarc=''
17503	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17504	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17505  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17506      fi
17507      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17508      hardcode_shlibpath_var_GCJ=no
17509      case $host_os in
17510      solaris2.[0-5] | solaris2.[0-5].*) ;;
17511      *)
17512 	# The compiler driver will combine linker options so we
17513 	# cannot just pass the convience library names through
17514 	# without $wl, iff we do not link with $LD.
17515 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17516 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17517 	case $wlarc in
17518 	'')
17519 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17520 	*)
17521 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17522 	esac ;;
17523      esac
17524      link_all_deplibs_GCJ=yes
17525      ;;
17526
17527    sunos4*)
17528      if test "x$host_vendor" = xsequent; then
17529	# Use $CC to link under sequent, because it throws in some extra .o
17530	# files that make .init and .fini sections work.
17531	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17532      else
17533	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17534      fi
17535      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17536      hardcode_direct_GCJ=yes
17537      hardcode_minus_L_GCJ=yes
17538      hardcode_shlibpath_var_GCJ=no
17539      ;;
17540
17541    sysv4)
17542      case $host_vendor in
17543	sni)
17544	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17545	  hardcode_direct_GCJ=yes # is this really true???
17546	;;
17547	siemens)
17548	  ## LD is ld it makes a PLAMLIB
17549	  ## CC just makes a GrossModule.
17550	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17551	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17552	  hardcode_direct_GCJ=no
17553        ;;
17554	motorola)
17555	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17556	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17557	;;
17558      esac
17559      runpath_var='LD_RUN_PATH'
17560      hardcode_shlibpath_var_GCJ=no
17561      ;;
17562
17563    sysv4.3*)
17564      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17565      hardcode_shlibpath_var_GCJ=no
17566      export_dynamic_flag_spec_GCJ='-Bexport'
17567      ;;
17568
17569    sysv4*MP*)
17570      if test -d /usr/nec; then
17571	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17572	hardcode_shlibpath_var_GCJ=no
17573	runpath_var=LD_RUN_PATH
17574	hardcode_runpath_var=yes
17575	ld_shlibs_GCJ=yes
17576      fi
17577      ;;
17578
17579    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17580      no_undefined_flag_GCJ='${wl}-z,text'
17581      archive_cmds_need_lc_GCJ=no
17582      hardcode_shlibpath_var_GCJ=no
17583      runpath_var='LD_RUN_PATH'
17584
17585      if test "$GCC" = yes; then
17586	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17587	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17588      else
17589	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17590	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17591      fi
17592      ;;
17593
17594    sysv5* | sco3.2v5* | sco5v6*)
17595      # Note: We can NOT use -z defs as we might desire, because we do not
17596      # link with -lc, and that would cause any symbols used from libc to
17597      # always be unresolved, which means just about no library would
17598      # ever link correctly.  If we're not using GNU ld we use -z text
17599      # though, which does catch some bad symbols but isn't as heavy-handed
17600      # as -z defs.
17601      no_undefined_flag_GCJ='${wl}-z,text'
17602      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17603      archive_cmds_need_lc_GCJ=no
17604      hardcode_shlibpath_var_GCJ=no
17605      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17606      hardcode_libdir_separator_GCJ=':'
17607      link_all_deplibs_GCJ=yes
17608      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17609      runpath_var='LD_RUN_PATH'
17610
17611      if test "$GCC" = yes; then
17612	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17613	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17614      else
17615	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17616	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17617      fi
17618      ;;
17619
17620    uts4*)
17621      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17622      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17623      hardcode_shlibpath_var_GCJ=no
17624      ;;
17625
17626    *)
17627      ld_shlibs_GCJ=no
17628      ;;
17629    esac
17630  fi
17631
17632{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17633echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17634test "$ld_shlibs_GCJ" = no && can_build_shared=no
17635
17636#
17637# Do we need to explicitly link libc?
17638#
17639case "x$archive_cmds_need_lc_GCJ" in
17640x|xyes)
17641  # Assume -lc should be added
17642  archive_cmds_need_lc_GCJ=yes
17643
17644  if test "$enable_shared" = yes && test "$GCC" = yes; then
17645    case $archive_cmds_GCJ in
17646    *'~'*)
17647      # FIXME: we may have to deal with multi-command sequences.
17648      ;;
17649    '$CC '*)
17650      # Test whether the compiler implicitly links with -lc since on some
17651      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17652      # to ld, don't add -lc before -lgcc.
17653      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17654echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17655      $rm conftest*
17656      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17657
17658      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17659  (eval $ac_compile) 2>&5
17660  ac_status=$?
17661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662  (exit $ac_status); } 2>conftest.err; then
17663        soname=conftest
17664        lib=conftest
17665        libobjs=conftest.$ac_objext
17666        deplibs=
17667        wl=$lt_prog_compiler_wl_GCJ
17668	pic_flag=$lt_prog_compiler_pic_GCJ
17669        compiler_flags=-v
17670        linker_flags=-v
17671        verstring=
17672        output_objdir=.
17673        libname=conftest
17674        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17675        allow_undefined_flag_GCJ=
17676        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17677  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17678  ac_status=$?
17679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680  (exit $ac_status); }
17681        then
17682	  archive_cmds_need_lc_GCJ=no
17683        else
17684	  archive_cmds_need_lc_GCJ=yes
17685        fi
17686        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17687      else
17688        cat conftest.err 1>&5
17689      fi
17690      $rm conftest*
17691      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17692echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17693      ;;
17694    esac
17695  fi
17696  ;;
17697esac
17698
17699{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17700echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17701library_names_spec=
17702libname_spec='lib$name'
17703soname_spec=
17704shrext_cmds=".so"
17705postinstall_cmds=
17706postuninstall_cmds=
17707finish_cmds=
17708finish_eval=
17709shlibpath_var=
17710shlibpath_overrides_runpath=unknown
17711version_type=none
17712dynamic_linker="$host_os ld.so"
17713sys_lib_dlsearch_path_spec="/lib /usr/lib"
17714if test "$GCC" = yes; then
17715  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17716  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17717    # if the path contains ";" then we assume it to be the separator
17718    # otherwise default to the standard path separator (i.e. ":") - it is
17719    # assumed that no part of a normal pathname contains ";" but that should
17720    # okay in the real world where ";" in dirpaths is itself problematic.
17721    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17722  else
17723    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17724  fi
17725else
17726  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17727fi
17728need_lib_prefix=unknown
17729hardcode_into_libs=no
17730
17731# when you set need_version to no, make sure it does not cause -set_version
17732# flags to be left without arguments
17733need_version=unknown
17734
17735case $host_os in
17736aix3*)
17737  version_type=linux
17738  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17739  shlibpath_var=LIBPATH
17740
17741  # AIX 3 has no versioning support, so we append a major version to the name.
17742  soname_spec='${libname}${release}${shared_ext}$major'
17743  ;;
17744
17745aix4* | aix5*)
17746  version_type=linux
17747  need_lib_prefix=no
17748  need_version=no
17749  hardcode_into_libs=yes
17750  if test "$host_cpu" = ia64; then
17751    # AIX 5 supports IA64
17752    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17753    shlibpath_var=LD_LIBRARY_PATH
17754  else
17755    # With GCC up to 2.95.x, collect2 would create an import file
17756    # for dependence libraries.  The import file would start with
17757    # the line `#! .'.  This would cause the generated library to
17758    # depend on `.', always an invalid library.  This was fixed in
17759    # development snapshots of GCC prior to 3.0.
17760    case $host_os in
17761      aix4 | aix4.[01] | aix4.[01].*)
17762      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17763	   echo ' yes '
17764	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17765	:
17766      else
17767	can_build_shared=no
17768      fi
17769      ;;
17770    esac
17771    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17772    # soname into executable. Probably we can add versioning support to
17773    # collect2, so additional links can be useful in future.
17774    if test "$aix_use_runtimelinking" = yes; then
17775      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17776      # instead of lib<name>.a to let people know that these are not
17777      # typical AIX shared libraries.
17778      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17779    else
17780      # We preserve .a as extension for shared libraries through AIX4.2
17781      # and later when we are not doing run time linking.
17782      library_names_spec='${libname}${release}.a $libname.a'
17783      soname_spec='${libname}${release}${shared_ext}$major'
17784    fi
17785    shlibpath_var=LIBPATH
17786  fi
17787  ;;
17788
17789amigaos*)
17790  library_names_spec='$libname.ixlibrary $libname.a'
17791  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17792  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'
17793  ;;
17794
17795beos*)
17796  library_names_spec='${libname}${shared_ext}'
17797  dynamic_linker="$host_os ld.so"
17798  shlibpath_var=LIBRARY_PATH
17799  ;;
17800
17801bsdi[45]*)
17802  version_type=linux
17803  need_version=no
17804  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17805  soname_spec='${libname}${release}${shared_ext}$major'
17806  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17807  shlibpath_var=LD_LIBRARY_PATH
17808  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17809  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17810  # the default ld.so.conf also contains /usr/contrib/lib and
17811  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17812  # libtool to hard-code these into programs
17813  ;;
17814
17815cygwin* | mingw* | pw32*)
17816  version_type=windows
17817  shrext_cmds=".dll"
17818  need_version=no
17819  need_lib_prefix=no
17820
17821  case $GCC,$host_os in
17822  yes,cygwin* | yes,mingw* | yes,pw32*)
17823    library_names_spec='$libname.dll.a'
17824    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17825    postinstall_cmds='base_file=`basename \${file}`~
17826      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17827      dldir=$destdir/`dirname \$dlpath`~
17828      test -d \$dldir || mkdir -p \$dldir~
17829      $install_prog $dir/$dlname \$dldir/$dlname~
17830      chmod a+x \$dldir/$dlname'
17831    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17832      dlpath=$dir/\$dldll~
17833       $rm \$dlpath'
17834    shlibpath_overrides_runpath=yes
17835
17836    case $host_os in
17837    cygwin*)
17838      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17839      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17840      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17841      ;;
17842    mingw*)
17843      # MinGW DLLs use traditional 'lib' prefix
17844      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17845      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17846      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17847        # It is most probably a Windows format PATH printed by
17848        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17849        # path with ; separators, and with drive letters. We can handle the
17850        # drive letters (cygwin fileutils understands them), so leave them,
17851        # especially as we might pass files found there to a mingw objdump,
17852        # which wouldn't understand a cygwinified path. Ahh.
17853        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17854      else
17855        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17856      fi
17857      ;;
17858    pw32*)
17859      # pw32 DLLs use 'pw' prefix rather than 'lib'
17860      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17861      ;;
17862    esac
17863    ;;
17864
17865  *)
17866    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17867    ;;
17868  esac
17869  dynamic_linker='Win32 ld.exe'
17870  # FIXME: first we should search . and the directory the executable is in
17871  shlibpath_var=PATH
17872  ;;
17873
17874darwin* | rhapsody*)
17875  dynamic_linker="$host_os dyld"
17876  version_type=darwin
17877  need_lib_prefix=no
17878  need_version=no
17879  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17880  soname_spec='${libname}${release}${major}$shared_ext'
17881  shlibpath_overrides_runpath=yes
17882  shlibpath_var=DYLD_LIBRARY_PATH
17883  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17884  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17885  if test "$GCC" = yes; then
17886    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17887  else
17888    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17889  fi
17890  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17891  ;;
17892
17893dgux*)
17894  version_type=linux
17895  need_lib_prefix=no
17896  need_version=no
17897  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17898  soname_spec='${libname}${release}${shared_ext}$major'
17899  shlibpath_var=LD_LIBRARY_PATH
17900  ;;
17901
17902freebsd1*)
17903  dynamic_linker=no
17904  ;;
17905
17906kfreebsd*-gnu)
17907  version_type=linux
17908  need_lib_prefix=no
17909  need_version=no
17910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17911  soname_spec='${libname}${release}${shared_ext}$major'
17912  shlibpath_var=LD_LIBRARY_PATH
17913  shlibpath_overrides_runpath=no
17914  hardcode_into_libs=yes
17915  dynamic_linker='GNU ld.so'
17916  ;;
17917
17918freebsd* | dragonfly*)
17919  # DragonFly does not have aout.  When/if they implement a new
17920  # versioning mechanism, adjust this.
17921  if test -x /usr/bin/objformat; then
17922    objformat=`/usr/bin/objformat`
17923  else
17924    case $host_os in
17925    freebsd[123]*) objformat=aout ;;
17926    *) objformat=elf ;;
17927    esac
17928  fi
17929  version_type=freebsd-$objformat
17930  case $version_type in
17931    freebsd-elf*)
17932      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17933      need_version=no
17934      need_lib_prefix=no
17935      ;;
17936    freebsd-*)
17937      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17938      need_version=yes
17939      ;;
17940  esac
17941  shlibpath_var=LD_LIBRARY_PATH
17942  case $host_os in
17943  freebsd2*)
17944    shlibpath_overrides_runpath=yes
17945    ;;
17946  freebsd3.[01]* | freebsdelf3.[01]*)
17947    shlibpath_overrides_runpath=yes
17948    hardcode_into_libs=yes
17949    ;;
17950  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17951  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17952    shlibpath_overrides_runpath=no
17953    hardcode_into_libs=yes
17954    ;;
17955  freebsd*) # from 4.6 on
17956    shlibpath_overrides_runpath=yes
17957    hardcode_into_libs=yes
17958    ;;
17959  esac
17960  ;;
17961
17962gnu*)
17963  version_type=linux
17964  need_lib_prefix=no
17965  need_version=no
17966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17967  soname_spec='${libname}${release}${shared_ext}$major'
17968  shlibpath_var=LD_LIBRARY_PATH
17969  hardcode_into_libs=yes
17970  ;;
17971
17972hpux9* | hpux10* | hpux11*)
17973  # Give a soname corresponding to the major version so that dld.sl refuses to
17974  # link against other versions.
17975  version_type=sunos
17976  need_lib_prefix=no
17977  need_version=no
17978  case $host_cpu in
17979  ia64*)
17980    shrext_cmds='.so'
17981    hardcode_into_libs=yes
17982    dynamic_linker="$host_os dld.so"
17983    shlibpath_var=LD_LIBRARY_PATH
17984    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17985    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17986    soname_spec='${libname}${release}${shared_ext}$major'
17987    if test "X$HPUX_IA64_MODE" = X32; then
17988      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17989    else
17990      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17991    fi
17992    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17993    ;;
17994   hppa*64*)
17995     shrext_cmds='.sl'
17996     hardcode_into_libs=yes
17997     dynamic_linker="$host_os dld.sl"
17998     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17999     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18000     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18001     soname_spec='${libname}${release}${shared_ext}$major'
18002     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18003     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18004     ;;
18005   *)
18006    shrext_cmds='.sl'
18007    dynamic_linker="$host_os dld.sl"
18008    shlibpath_var=SHLIB_PATH
18009    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18010    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18011    soname_spec='${libname}${release}${shared_ext}$major'
18012    ;;
18013  esac
18014  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18015  postinstall_cmds='chmod 555 $lib'
18016  ;;
18017
18018interix3*)
18019  version_type=linux
18020  need_lib_prefix=no
18021  need_version=no
18022  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18023  soname_spec='${libname}${release}${shared_ext}$major'
18024  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18025  shlibpath_var=LD_LIBRARY_PATH
18026  shlibpath_overrides_runpath=no
18027  hardcode_into_libs=yes
18028  ;;
18029
18030irix5* | irix6* | nonstopux*)
18031  case $host_os in
18032    nonstopux*) version_type=nonstopux ;;
18033    *)
18034	if test "$lt_cv_prog_gnu_ld" = yes; then
18035		version_type=linux
18036	else
18037		version_type=irix
18038	fi ;;
18039  esac
18040  need_lib_prefix=no
18041  need_version=no
18042  soname_spec='${libname}${release}${shared_ext}$major'
18043  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18044  case $host_os in
18045  irix5* | nonstopux*)
18046    libsuff= shlibsuff=
18047    ;;
18048  *)
18049    case $LD in # libtool.m4 will add one of these switches to LD
18050    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18051      libsuff= shlibsuff= libmagic=32-bit;;
18052    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18053      libsuff=32 shlibsuff=N32 libmagic=N32;;
18054    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18055      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18056    *) libsuff= shlibsuff= libmagic=never-match;;
18057    esac
18058    ;;
18059  esac
18060  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18061  shlibpath_overrides_runpath=no
18062  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18063  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18064  hardcode_into_libs=yes
18065  ;;
18066
18067# No shared lib support for Linux oldld, aout, or coff.
18068linux*oldld* | linux*aout* | linux*coff*)
18069  dynamic_linker=no
18070  ;;
18071
18072# This must be Linux ELF.
18073linux*)
18074  version_type=linux
18075  need_lib_prefix=no
18076  need_version=no
18077  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18078  soname_spec='${libname}${release}${shared_ext}$major'
18079  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18080  shlibpath_var=LD_LIBRARY_PATH
18081  shlibpath_overrides_runpath=no
18082  # This implies no fast_install, which is unacceptable.
18083  # Some rework will be needed to allow for fast_install
18084  # before this can be enabled.
18085  hardcode_into_libs=yes
18086
18087  # Append ld.so.conf contents to the search path
18088  if test -f /etc/ld.so.conf; then
18089    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/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18090    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18091  fi
18092
18093  # We used to test for /lib/ld.so.1 and disable shared libraries on
18094  # powerpc, because MkLinux only supported shared libraries with the
18095  # GNU dynamic linker.  Since this was broken with cross compilers,
18096  # most powerpc-linux boxes support dynamic linking these days and
18097  # people can always --disable-shared, the test was removed, and we
18098  # assume the GNU/Linux dynamic linker is in use.
18099  dynamic_linker='GNU/Linux ld.so'
18100  ;;
18101
18102knetbsd*-gnu)
18103  version_type=linux
18104  need_lib_prefix=no
18105  need_version=no
18106  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18107  soname_spec='${libname}${release}${shared_ext}$major'
18108  shlibpath_var=LD_LIBRARY_PATH
18109  shlibpath_overrides_runpath=no
18110  hardcode_into_libs=yes
18111  dynamic_linker='GNU ld.so'
18112  ;;
18113
18114netbsd*)
18115  version_type=sunos
18116  need_lib_prefix=no
18117  need_version=no
18118  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18119    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18120    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18121    dynamic_linker='NetBSD (a.out) ld.so'
18122  else
18123    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18124    soname_spec='${libname}${release}${shared_ext}$major'
18125    dynamic_linker='NetBSD ld.elf_so'
18126  fi
18127  shlibpath_var=LD_LIBRARY_PATH
18128  shlibpath_overrides_runpath=yes
18129  hardcode_into_libs=yes
18130  ;;
18131
18132newsos6)
18133  version_type=linux
18134  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18135  shlibpath_var=LD_LIBRARY_PATH
18136  shlibpath_overrides_runpath=yes
18137  ;;
18138
18139nto-qnx*)
18140  version_type=linux
18141  need_lib_prefix=no
18142  need_version=no
18143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18144  soname_spec='${libname}${release}${shared_ext}$major'
18145  shlibpath_var=LD_LIBRARY_PATH
18146  shlibpath_overrides_runpath=yes
18147  ;;
18148
18149openbsd*)
18150  version_type=sunos
18151  sys_lib_dlsearch_path_spec="/usr/lib"
18152  need_lib_prefix=no
18153  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18154  case $host_os in
18155    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18156    *)                         need_version=no  ;;
18157  esac
18158  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18159  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18160  shlibpath_var=LD_LIBRARY_PATH
18161  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18162    case $host_os in
18163      openbsd2.[89] | openbsd2.[89].*)
18164	shlibpath_overrides_runpath=no
18165	;;
18166      *)
18167	shlibpath_overrides_runpath=yes
18168	;;
18169      esac
18170  else
18171    shlibpath_overrides_runpath=yes
18172  fi
18173  ;;
18174
18175os2*)
18176  libname_spec='$name'
18177  shrext_cmds=".dll"
18178  need_lib_prefix=no
18179  library_names_spec='$libname${shared_ext} $libname.a'
18180  dynamic_linker='OS/2 ld.exe'
18181  shlibpath_var=LIBPATH
18182  ;;
18183
18184osf3* | osf4* | osf5*)
18185  version_type=osf
18186  need_lib_prefix=no
18187  need_version=no
18188  soname_spec='${libname}${release}${shared_ext}$major'
18189  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18190  shlibpath_var=LD_LIBRARY_PATH
18191  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18192  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18193  ;;
18194
18195solaris*)
18196  version_type=linux
18197  need_lib_prefix=no
18198  need_version=no
18199  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18200  soname_spec='${libname}${release}${shared_ext}$major'
18201  shlibpath_var=LD_LIBRARY_PATH
18202  shlibpath_overrides_runpath=yes
18203  hardcode_into_libs=yes
18204  # ldd complains unless libraries are executable
18205  postinstall_cmds='chmod +x $lib'
18206  ;;
18207
18208sunos4*)
18209  version_type=sunos
18210  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18211  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18212  shlibpath_var=LD_LIBRARY_PATH
18213  shlibpath_overrides_runpath=yes
18214  if test "$with_gnu_ld" = yes; then
18215    need_lib_prefix=no
18216  fi
18217  need_version=yes
18218  ;;
18219
18220sysv4 | sysv4.3*)
18221  version_type=linux
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  case $host_vendor in
18226    sni)
18227      shlibpath_overrides_runpath=no
18228      need_lib_prefix=no
18229      export_dynamic_flag_spec='${wl}-Blargedynsym'
18230      runpath_var=LD_RUN_PATH
18231      ;;
18232    siemens)
18233      need_lib_prefix=no
18234      ;;
18235    motorola)
18236      need_lib_prefix=no
18237      need_version=no
18238      shlibpath_overrides_runpath=no
18239      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18240      ;;
18241  esac
18242  ;;
18243
18244sysv4*MP*)
18245  if test -d /usr/nec ;then
18246    version_type=linux
18247    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18248    soname_spec='$libname${shared_ext}.$major'
18249    shlibpath_var=LD_LIBRARY_PATH
18250  fi
18251  ;;
18252
18253sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18254  version_type=freebsd-elf
18255  need_lib_prefix=no
18256  need_version=no
18257  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18258  soname_spec='${libname}${release}${shared_ext}$major'
18259  shlibpath_var=LD_LIBRARY_PATH
18260  hardcode_into_libs=yes
18261  if test "$with_gnu_ld" = yes; then
18262    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18263    shlibpath_overrides_runpath=no
18264  else
18265    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18266    shlibpath_overrides_runpath=yes
18267    case $host_os in
18268      sco3.2v5*)
18269        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18270	;;
18271    esac
18272  fi
18273  sys_lib_dlsearch_path_spec='/usr/lib'
18274  ;;
18275
18276uts4*)
18277  version_type=linux
18278  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18279  soname_spec='${libname}${release}${shared_ext}$major'
18280  shlibpath_var=LD_LIBRARY_PATH
18281  ;;
18282
18283*)
18284  dynamic_linker=no
18285  ;;
18286esac
18287{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18288echo "${ECHO_T}$dynamic_linker" >&6; }
18289test "$dynamic_linker" = no && can_build_shared=no
18290
18291variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18292if test "$GCC" = yes; then
18293  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18294fi
18295
18296{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18297echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18298hardcode_action_GCJ=
18299if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18300   test -n "$runpath_var_GCJ" || \
18301   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18302
18303  # We can hardcode non-existant directories.
18304  if test "$hardcode_direct_GCJ" != no &&
18305     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18306     # have to relink, otherwise we might link with an installed library
18307     # when we should be linking with a yet-to-be-installed one
18308     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18309     test "$hardcode_minus_L_GCJ" != no; then
18310    # Linking always hardcodes the temporary library directory.
18311    hardcode_action_GCJ=relink
18312  else
18313    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18314    hardcode_action_GCJ=immediate
18315  fi
18316else
18317  # We cannot hardcode anything, or else we can only hardcode existing
18318  # directories.
18319  hardcode_action_GCJ=unsupported
18320fi
18321{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18322echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18323
18324if test "$hardcode_action_GCJ" = relink; then
18325  # Fast installation is not supported
18326  enable_fast_install=no
18327elif test "$shlibpath_overrides_runpath" = yes ||
18328     test "$enable_shared" = no; then
18329  # Fast installation is not necessary
18330  enable_fast_install=needless
18331fi
18332
18333
18334# The else clause should only fire when bootstrapping the
18335# libtool distribution, otherwise you forgot to ship ltmain.sh
18336# with your package, and you will get complaints that there are
18337# no rules to generate ltmain.sh.
18338if test -f "$ltmain"; then
18339  # See if we are running on zsh, and set the options which allow our commands through
18340  # without removal of \ escapes.
18341  if test -n "${ZSH_VERSION+set}" ; then
18342    setopt NO_GLOB_SUBST
18343  fi
18344  # Now quote all the things that may contain metacharacters while being
18345  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18346  # variables and quote the copies for generation of the libtool script.
18347  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18348    SED SHELL STRIP \
18349    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18350    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18351    deplibs_check_method reload_flag reload_cmds need_locks \
18352    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18353    lt_cv_sys_global_symbol_to_c_name_address \
18354    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18355    old_postinstall_cmds old_postuninstall_cmds \
18356    compiler_GCJ \
18357    CC_GCJ \
18358    LD_GCJ \
18359    lt_prog_compiler_wl_GCJ \
18360    lt_prog_compiler_pic_GCJ \
18361    lt_prog_compiler_static_GCJ \
18362    lt_prog_compiler_no_builtin_flag_GCJ \
18363    export_dynamic_flag_spec_GCJ \
18364    thread_safe_flag_spec_GCJ \
18365    whole_archive_flag_spec_GCJ \
18366    enable_shared_with_static_runtimes_GCJ \
18367    old_archive_cmds_GCJ \
18368    old_archive_from_new_cmds_GCJ \
18369    predep_objects_GCJ \
18370    postdep_objects_GCJ \
18371    predeps_GCJ \
18372    postdeps_GCJ \
18373    compiler_lib_search_path_GCJ \
18374    archive_cmds_GCJ \
18375    archive_expsym_cmds_GCJ \
18376    postinstall_cmds_GCJ \
18377    postuninstall_cmds_GCJ \
18378    old_archive_from_expsyms_cmds_GCJ \
18379    allow_undefined_flag_GCJ \
18380    no_undefined_flag_GCJ \
18381    export_symbols_cmds_GCJ \
18382    hardcode_libdir_flag_spec_GCJ \
18383    hardcode_libdir_flag_spec_ld_GCJ \
18384    hardcode_libdir_separator_GCJ \
18385    hardcode_automatic_GCJ \
18386    module_cmds_GCJ \
18387    module_expsym_cmds_GCJ \
18388    lt_cv_prog_compiler_c_o_GCJ \
18389    exclude_expsyms_GCJ \
18390    include_expsyms_GCJ; do
18391
18392    case $var in
18393    old_archive_cmds_GCJ | \
18394    old_archive_from_new_cmds_GCJ | \
18395    archive_cmds_GCJ | \
18396    archive_expsym_cmds_GCJ | \
18397    module_cmds_GCJ | \
18398    module_expsym_cmds_GCJ | \
18399    old_archive_from_expsyms_cmds_GCJ | \
18400    export_symbols_cmds_GCJ | \
18401    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18402    postinstall_cmds | postuninstall_cmds | \
18403    old_postinstall_cmds | old_postuninstall_cmds | \
18404    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18405      # Double-quote double-evaled strings.
18406      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18407      ;;
18408    *)
18409      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18410      ;;
18411    esac
18412  done
18413
18414  case $lt_echo in
18415  *'\$0 --fallback-echo"')
18416    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18417    ;;
18418  esac
18419
18420cfgfile="$ofile"
18421
18422  cat <<__EOF__ >> "$cfgfile"
18423# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18424
18425# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18426
18427# Shell to use when invoking shell scripts.
18428SHELL=$lt_SHELL
18429
18430# Whether or not to build shared libraries.
18431build_libtool_libs=$enable_shared
18432
18433# Whether or not to build static libraries.
18434build_old_libs=$enable_static
18435
18436# Whether or not to add -lc for building shared libraries.
18437build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18438
18439# Whether or not to disallow shared libs when runtime libs are static
18440allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18441
18442# Whether or not to optimize for fast installation.
18443fast_install=$enable_fast_install
18444
18445# The host system.
18446host_alias=$host_alias
18447host=$host
18448host_os=$host_os
18449
18450# The build system.
18451build_alias=$build_alias
18452build=$build
18453build_os=$build_os
18454
18455# An echo program that does not interpret backslashes.
18456echo=$lt_echo
18457
18458# The archiver.
18459AR=$lt_AR
18460AR_FLAGS=$lt_AR_FLAGS
18461
18462# A C compiler.
18463LTCC=$lt_LTCC
18464
18465# LTCC compiler flags.
18466LTCFLAGS=$lt_LTCFLAGS
18467
18468# A language-specific compiler.
18469CC=$lt_compiler_GCJ
18470
18471# Is the compiler the GNU C compiler?
18472with_gcc=$GCC_GCJ
18473
18474# An ERE matcher.
18475EGREP=$lt_EGREP
18476
18477# The linker used to build libraries.
18478LD=$lt_LD_GCJ
18479
18480# Whether we need hard or soft links.
18481LN_S=$lt_LN_S
18482
18483# A BSD-compatible nm program.
18484NM=$lt_NM
18485
18486# A symbol stripping program
18487STRIP=$lt_STRIP
18488
18489# Used to examine libraries when file_magic_cmd begins "file"
18490MAGIC_CMD=$MAGIC_CMD
18491
18492# Used on cygwin: DLL creation program.
18493DLLTOOL="$DLLTOOL"
18494
18495# Used on cygwin: object dumper.
18496OBJDUMP="$OBJDUMP"
18497
18498# Used on cygwin: assembler.
18499AS="$AS"
18500
18501# The name of the directory that contains temporary libtool files.
18502objdir=$objdir
18503
18504# How to create reloadable object files.
18505reload_flag=$lt_reload_flag
18506reload_cmds=$lt_reload_cmds
18507
18508# How to pass a linker flag through the compiler.
18509wl=$lt_lt_prog_compiler_wl_GCJ
18510
18511# Object file suffix (normally "o").
18512objext="$ac_objext"
18513
18514# Old archive suffix (normally "a").
18515libext="$libext"
18516
18517# Shared library suffix (normally ".so").
18518shrext_cmds='$shrext_cmds'
18519
18520# Executable file suffix (normally "").
18521exeext="$exeext"
18522
18523# Additional compiler flags for building library objects.
18524pic_flag=$lt_lt_prog_compiler_pic_GCJ
18525pic_mode=$pic_mode
18526
18527# What is the maximum length of a command?
18528max_cmd_len=$lt_cv_sys_max_cmd_len
18529
18530# Does compiler simultaneously support -c and -o options?
18531compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18532
18533# Must we lock files when doing compilation?
18534need_locks=$lt_need_locks
18535
18536# Do we need the lib prefix for modules?
18537need_lib_prefix=$need_lib_prefix
18538
18539# Do we need a version for libraries?
18540need_version=$need_version
18541
18542# Whether dlopen is supported.
18543dlopen_support=$enable_dlopen
18544
18545# Whether dlopen of programs is supported.
18546dlopen_self=$enable_dlopen_self
18547
18548# Whether dlopen of statically linked programs is supported.
18549dlopen_self_static=$enable_dlopen_self_static
18550
18551# Compiler flag to prevent dynamic linking.
18552link_static_flag=$lt_lt_prog_compiler_static_GCJ
18553
18554# Compiler flag to turn off builtin functions.
18555no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18556
18557# Compiler flag to allow reflexive dlopens.
18558export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18559
18560# Compiler flag to generate shared objects directly from archives.
18561whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18562
18563# Compiler flag to generate thread-safe objects.
18564thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18565
18566# Library versioning type.
18567version_type=$version_type
18568
18569# Format of library name prefix.
18570libname_spec=$lt_libname_spec
18571
18572# List of archive names.  First name is the real one, the rest are links.
18573# The last name is the one that the linker finds with -lNAME.
18574library_names_spec=$lt_library_names_spec
18575
18576# The coded name of the library, if different from the real name.
18577soname_spec=$lt_soname_spec
18578
18579# Commands used to build and install an old-style archive.
18580RANLIB=$lt_RANLIB
18581old_archive_cmds=$lt_old_archive_cmds_GCJ
18582old_postinstall_cmds=$lt_old_postinstall_cmds
18583old_postuninstall_cmds=$lt_old_postuninstall_cmds
18584
18585# Create an old-style archive from a shared archive.
18586old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18587
18588# Create a temporary old-style archive to link instead of a shared archive.
18589old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18590
18591# Commands used to build and install a shared archive.
18592archive_cmds=$lt_archive_cmds_GCJ
18593archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18594postinstall_cmds=$lt_postinstall_cmds
18595postuninstall_cmds=$lt_postuninstall_cmds
18596
18597# Commands used to build a loadable module (assumed same as above if empty)
18598module_cmds=$lt_module_cmds_GCJ
18599module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18600
18601# Commands to strip libraries.
18602old_striplib=$lt_old_striplib
18603striplib=$lt_striplib
18604
18605# Dependencies to place before the objects being linked to create a
18606# shared library.
18607predep_objects=$lt_predep_objects_GCJ
18608
18609# Dependencies to place after the objects being linked to create a
18610# shared library.
18611postdep_objects=$lt_postdep_objects_GCJ
18612
18613# Dependencies to place before the objects being linked to create a
18614# shared library.
18615predeps=$lt_predeps_GCJ
18616
18617# Dependencies to place after the objects being linked to create a
18618# shared library.
18619postdeps=$lt_postdeps_GCJ
18620
18621# The library search path used internally by the compiler when linking
18622# a shared library.
18623compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18624
18625# Method to check whether dependent libraries are shared objects.
18626deplibs_check_method=$lt_deplibs_check_method
18627
18628# Command to use when deplibs_check_method == file_magic.
18629file_magic_cmd=$lt_file_magic_cmd
18630
18631# Flag that allows shared libraries with undefined symbols to be built.
18632allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18633
18634# Flag that forces no undefined symbols.
18635no_undefined_flag=$lt_no_undefined_flag_GCJ
18636
18637# Commands used to finish a libtool library installation in a directory.
18638finish_cmds=$lt_finish_cmds
18639
18640# Same as above, but a single script fragment to be evaled but not shown.
18641finish_eval=$lt_finish_eval
18642
18643# Take the output of nm and produce a listing of raw symbols and C names.
18644global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18645
18646# Transform the output of nm in a proper C declaration
18647global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18648
18649# Transform the output of nm in a C name address pair
18650global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18651
18652# This is the shared library runtime path variable.
18653runpath_var=$runpath_var
18654
18655# This is the shared library path variable.
18656shlibpath_var=$shlibpath_var
18657
18658# Is shlibpath searched before the hard-coded library search path?
18659shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18660
18661# How to hardcode a shared library path into an executable.
18662hardcode_action=$hardcode_action_GCJ
18663
18664# Whether we should hardcode library paths into libraries.
18665hardcode_into_libs=$hardcode_into_libs
18666
18667# Flag to hardcode \$libdir into a binary during linking.
18668# This must work even if \$libdir does not exist.
18669hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18670
18671# If ld is used when linking, flag to hardcode \$libdir into
18672# a binary during linking. This must work even if \$libdir does
18673# not exist.
18674hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18675
18676# Whether we need a single -rpath flag with a separated argument.
18677hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18678
18679# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18680# resulting binary.
18681hardcode_direct=$hardcode_direct_GCJ
18682
18683# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18684# resulting binary.
18685hardcode_minus_L=$hardcode_minus_L_GCJ
18686
18687# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18688# the resulting binary.
18689hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18690
18691# Set to yes if building a shared library automatically hardcodes DIR into the library
18692# and all subsequent libraries and executables linked against it.
18693hardcode_automatic=$hardcode_automatic_GCJ
18694
18695# Variables whose values should be saved in libtool wrapper scripts and
18696# restored at relink time.
18697variables_saved_for_relink="$variables_saved_for_relink"
18698
18699# Whether libtool must link a program against all its dependency libraries.
18700link_all_deplibs=$link_all_deplibs_GCJ
18701
18702# Compile-time system search path for libraries
18703sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18704
18705# Run-time system search path for libraries
18706sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18707
18708# Fix the shell variable \$srcfile for the compiler.
18709fix_srcfile_path="$fix_srcfile_path_GCJ"
18710
18711# Set to yes if exported symbols are required.
18712always_export_symbols=$always_export_symbols_GCJ
18713
18714# The commands to list exported symbols.
18715export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18716
18717# The commands to extract the exported symbol list from a shared archive.
18718extract_expsyms_cmds=$lt_extract_expsyms_cmds
18719
18720# Symbols that should not be listed in the preloaded symbols.
18721exclude_expsyms=$lt_exclude_expsyms_GCJ
18722
18723# Symbols that must always be exported.
18724include_expsyms=$lt_include_expsyms_GCJ
18725
18726# ### END LIBTOOL TAG CONFIG: $tagname
18727
18728__EOF__
18729
18730
18731else
18732  # If there is no Makefile yet, we rely on a make rule to execute
18733  # `config.status --recheck' to rerun these tests and create the
18734  # libtool script then.
18735  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18736  if test -f "$ltmain_in"; then
18737    test -f Makefile && make "$ltmain"
18738  fi
18739fi
18740
18741
18742ac_ext=c
18743ac_cpp='$CPP $CPPFLAGS'
18744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18746ac_compiler_gnu=$ac_cv_c_compiler_gnu
18747
18748CC="$lt_save_CC"
18749
18750	else
18751	  tagname=""
18752	fi
18753	;;
18754
18755      RC)
18756
18757
18758# Source file extension for RC test sources.
18759ac_ext=rc
18760
18761# Object file extension for compiled RC test sources.
18762objext=o
18763objext_RC=$objext
18764
18765# Code to be used in simple compile tests
18766lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18767
18768# Code to be used in simple link tests
18769lt_simple_link_test_code="$lt_simple_compile_test_code"
18770
18771# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18772
18773# If no C compiler was specified, use CC.
18774LTCC=${LTCC-"$CC"}
18775
18776# If no C compiler flags were specified, use CFLAGS.
18777LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18778
18779# Allow CC to be a program name with arguments.
18780compiler=$CC
18781
18782
18783# save warnings/boilerplate of simple test code
18784ac_outfile=conftest.$ac_objext
18785printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18786eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18787_lt_compiler_boilerplate=`cat conftest.err`
18788$rm conftest*
18789
18790ac_outfile=conftest.$ac_objext
18791printf "$lt_simple_link_test_code" >conftest.$ac_ext
18792eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18793_lt_linker_boilerplate=`cat conftest.err`
18794$rm conftest*
18795
18796
18797# Allow CC to be a program name with arguments.
18798lt_save_CC="$CC"
18799CC=${RC-"windres"}
18800compiler=$CC
18801compiler_RC=$CC
18802for cc_temp in $compiler""; do
18803  case $cc_temp in
18804    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18805    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18806    \-*) ;;
18807    *) break;;
18808  esac
18809done
18810cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18811
18812lt_cv_prog_compiler_c_o_RC=yes
18813
18814# The else clause should only fire when bootstrapping the
18815# libtool distribution, otherwise you forgot to ship ltmain.sh
18816# with your package, and you will get complaints that there are
18817# no rules to generate ltmain.sh.
18818if test -f "$ltmain"; then
18819  # See if we are running on zsh, and set the options which allow our commands through
18820  # without removal of \ escapes.
18821  if test -n "${ZSH_VERSION+set}" ; then
18822    setopt NO_GLOB_SUBST
18823  fi
18824  # Now quote all the things that may contain metacharacters while being
18825  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18826  # variables and quote the copies for generation of the libtool script.
18827  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18828    SED SHELL STRIP \
18829    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18830    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18831    deplibs_check_method reload_flag reload_cmds need_locks \
18832    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18833    lt_cv_sys_global_symbol_to_c_name_address \
18834    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18835    old_postinstall_cmds old_postuninstall_cmds \
18836    compiler_RC \
18837    CC_RC \
18838    LD_RC \
18839    lt_prog_compiler_wl_RC \
18840    lt_prog_compiler_pic_RC \
18841    lt_prog_compiler_static_RC \
18842    lt_prog_compiler_no_builtin_flag_RC \
18843    export_dynamic_flag_spec_RC \
18844    thread_safe_flag_spec_RC \
18845    whole_archive_flag_spec_RC \
18846    enable_shared_with_static_runtimes_RC \
18847    old_archive_cmds_RC \
18848    old_archive_from_new_cmds_RC \
18849    predep_objects_RC \
18850    postdep_objects_RC \
18851    predeps_RC \
18852    postdeps_RC \
18853    compiler_lib_search_path_RC \
18854    archive_cmds_RC \
18855    archive_expsym_cmds_RC \
18856    postinstall_cmds_RC \
18857    postuninstall_cmds_RC \
18858    old_archive_from_expsyms_cmds_RC \
18859    allow_undefined_flag_RC \
18860    no_undefined_flag_RC \
18861    export_symbols_cmds_RC \
18862    hardcode_libdir_flag_spec_RC \
18863    hardcode_libdir_flag_spec_ld_RC \
18864    hardcode_libdir_separator_RC \
18865    hardcode_automatic_RC \
18866    module_cmds_RC \
18867    module_expsym_cmds_RC \
18868    lt_cv_prog_compiler_c_o_RC \
18869    exclude_expsyms_RC \
18870    include_expsyms_RC; do
18871
18872    case $var in
18873    old_archive_cmds_RC | \
18874    old_archive_from_new_cmds_RC | \
18875    archive_cmds_RC | \
18876    archive_expsym_cmds_RC | \
18877    module_cmds_RC | \
18878    module_expsym_cmds_RC | \
18879    old_archive_from_expsyms_cmds_RC | \
18880    export_symbols_cmds_RC | \
18881    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18882    postinstall_cmds | postuninstall_cmds | \
18883    old_postinstall_cmds | old_postuninstall_cmds | \
18884    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18885      # Double-quote double-evaled strings.
18886      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18887      ;;
18888    *)
18889      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18890      ;;
18891    esac
18892  done
18893
18894  case $lt_echo in
18895  *'\$0 --fallback-echo"')
18896    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18897    ;;
18898  esac
18899
18900cfgfile="$ofile"
18901
18902  cat <<__EOF__ >> "$cfgfile"
18903# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18904
18905# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18906
18907# Shell to use when invoking shell scripts.
18908SHELL=$lt_SHELL
18909
18910# Whether or not to build shared libraries.
18911build_libtool_libs=$enable_shared
18912
18913# Whether or not to build static libraries.
18914build_old_libs=$enable_static
18915
18916# Whether or not to add -lc for building shared libraries.
18917build_libtool_need_lc=$archive_cmds_need_lc_RC
18918
18919# Whether or not to disallow shared libs when runtime libs are static
18920allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18921
18922# Whether or not to optimize for fast installation.
18923fast_install=$enable_fast_install
18924
18925# The host system.
18926host_alias=$host_alias
18927host=$host
18928host_os=$host_os
18929
18930# The build system.
18931build_alias=$build_alias
18932build=$build
18933build_os=$build_os
18934
18935# An echo program that does not interpret backslashes.
18936echo=$lt_echo
18937
18938# The archiver.
18939AR=$lt_AR
18940AR_FLAGS=$lt_AR_FLAGS
18941
18942# A C compiler.
18943LTCC=$lt_LTCC
18944
18945# LTCC compiler flags.
18946LTCFLAGS=$lt_LTCFLAGS
18947
18948# A language-specific compiler.
18949CC=$lt_compiler_RC
18950
18951# Is the compiler the GNU C compiler?
18952with_gcc=$GCC_RC
18953
18954# An ERE matcher.
18955EGREP=$lt_EGREP
18956
18957# The linker used to build libraries.
18958LD=$lt_LD_RC
18959
18960# Whether we need hard or soft links.
18961LN_S=$lt_LN_S
18962
18963# A BSD-compatible nm program.
18964NM=$lt_NM
18965
18966# A symbol stripping program
18967STRIP=$lt_STRIP
18968
18969# Used to examine libraries when file_magic_cmd begins "file"
18970MAGIC_CMD=$MAGIC_CMD
18971
18972# Used on cygwin: DLL creation program.
18973DLLTOOL="$DLLTOOL"
18974
18975# Used on cygwin: object dumper.
18976OBJDUMP="$OBJDUMP"
18977
18978# Used on cygwin: assembler.
18979AS="$AS"
18980
18981# The name of the directory that contains temporary libtool files.
18982objdir=$objdir
18983
18984# How to create reloadable object files.
18985reload_flag=$lt_reload_flag
18986reload_cmds=$lt_reload_cmds
18987
18988# How to pass a linker flag through the compiler.
18989wl=$lt_lt_prog_compiler_wl_RC
18990
18991# Object file suffix (normally "o").
18992objext="$ac_objext"
18993
18994# Old archive suffix (normally "a").
18995libext="$libext"
18996
18997# Shared library suffix (normally ".so").
18998shrext_cmds='$shrext_cmds'
18999
19000# Executable file suffix (normally "").
19001exeext="$exeext"
19002
19003# Additional compiler flags for building library objects.
19004pic_flag=$lt_lt_prog_compiler_pic_RC
19005pic_mode=$pic_mode
19006
19007# What is the maximum length of a command?
19008max_cmd_len=$lt_cv_sys_max_cmd_len
19009
19010# Does compiler simultaneously support -c and -o options?
19011compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19012
19013# Must we lock files when doing compilation?
19014need_locks=$lt_need_locks
19015
19016# Do we need the lib prefix for modules?
19017need_lib_prefix=$need_lib_prefix
19018
19019# Do we need a version for libraries?
19020need_version=$need_version
19021
19022# Whether dlopen is supported.
19023dlopen_support=$enable_dlopen
19024
19025# Whether dlopen of programs is supported.
19026dlopen_self=$enable_dlopen_self
19027
19028# Whether dlopen of statically linked programs is supported.
19029dlopen_self_static=$enable_dlopen_self_static
19030
19031# Compiler flag to prevent dynamic linking.
19032link_static_flag=$lt_lt_prog_compiler_static_RC
19033
19034# Compiler flag to turn off builtin functions.
19035no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19036
19037# Compiler flag to allow reflexive dlopens.
19038export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19039
19040# Compiler flag to generate shared objects directly from archives.
19041whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19042
19043# Compiler flag to generate thread-safe objects.
19044thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19045
19046# Library versioning type.
19047version_type=$version_type
19048
19049# Format of library name prefix.
19050libname_spec=$lt_libname_spec
19051
19052# List of archive names.  First name is the real one, the rest are links.
19053# The last name is the one that the linker finds with -lNAME.
19054library_names_spec=$lt_library_names_spec
19055
19056# The coded name of the library, if different from the real name.
19057soname_spec=$lt_soname_spec
19058
19059# Commands used to build and install an old-style archive.
19060RANLIB=$lt_RANLIB
19061old_archive_cmds=$lt_old_archive_cmds_RC
19062old_postinstall_cmds=$lt_old_postinstall_cmds
19063old_postuninstall_cmds=$lt_old_postuninstall_cmds
19064
19065# Create an old-style archive from a shared archive.
19066old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19067
19068# Create a temporary old-style archive to link instead of a shared archive.
19069old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19070
19071# Commands used to build and install a shared archive.
19072archive_cmds=$lt_archive_cmds_RC
19073archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19074postinstall_cmds=$lt_postinstall_cmds
19075postuninstall_cmds=$lt_postuninstall_cmds
19076
19077# Commands used to build a loadable module (assumed same as above if empty)
19078module_cmds=$lt_module_cmds_RC
19079module_expsym_cmds=$lt_module_expsym_cmds_RC
19080
19081# Commands to strip libraries.
19082old_striplib=$lt_old_striplib
19083striplib=$lt_striplib
19084
19085# Dependencies to place before the objects being linked to create a
19086# shared library.
19087predep_objects=$lt_predep_objects_RC
19088
19089# Dependencies to place after the objects being linked to create a
19090# shared library.
19091postdep_objects=$lt_postdep_objects_RC
19092
19093# Dependencies to place before the objects being linked to create a
19094# shared library.
19095predeps=$lt_predeps_RC
19096
19097# Dependencies to place after the objects being linked to create a
19098# shared library.
19099postdeps=$lt_postdeps_RC
19100
19101# The library search path used internally by the compiler when linking
19102# a shared library.
19103compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19104
19105# Method to check whether dependent libraries are shared objects.
19106deplibs_check_method=$lt_deplibs_check_method
19107
19108# Command to use when deplibs_check_method == file_magic.
19109file_magic_cmd=$lt_file_magic_cmd
19110
19111# Flag that allows shared libraries with undefined symbols to be built.
19112allow_undefined_flag=$lt_allow_undefined_flag_RC
19113
19114# Flag that forces no undefined symbols.
19115no_undefined_flag=$lt_no_undefined_flag_RC
19116
19117# Commands used to finish a libtool library installation in a directory.
19118finish_cmds=$lt_finish_cmds
19119
19120# Same as above, but a single script fragment to be evaled but not shown.
19121finish_eval=$lt_finish_eval
19122
19123# Take the output of nm and produce a listing of raw symbols and C names.
19124global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19125
19126# Transform the output of nm in a proper C declaration
19127global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19128
19129# Transform the output of nm in a C name address pair
19130global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19131
19132# This is the shared library runtime path variable.
19133runpath_var=$runpath_var
19134
19135# This is the shared library path variable.
19136shlibpath_var=$shlibpath_var
19137
19138# Is shlibpath searched before the hard-coded library search path?
19139shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19140
19141# How to hardcode a shared library path into an executable.
19142hardcode_action=$hardcode_action_RC
19143
19144# Whether we should hardcode library paths into libraries.
19145hardcode_into_libs=$hardcode_into_libs
19146
19147# Flag to hardcode \$libdir into a binary during linking.
19148# This must work even if \$libdir does not exist.
19149hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19150
19151# If ld is used when linking, flag to hardcode \$libdir into
19152# a binary during linking. This must work even if \$libdir does
19153# not exist.
19154hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19155
19156# Whether we need a single -rpath flag with a separated argument.
19157hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19158
19159# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19160# resulting binary.
19161hardcode_direct=$hardcode_direct_RC
19162
19163# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19164# resulting binary.
19165hardcode_minus_L=$hardcode_minus_L_RC
19166
19167# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19168# the resulting binary.
19169hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19170
19171# Set to yes if building a shared library automatically hardcodes DIR into the library
19172# and all subsequent libraries and executables linked against it.
19173hardcode_automatic=$hardcode_automatic_RC
19174
19175# Variables whose values should be saved in libtool wrapper scripts and
19176# restored at relink time.
19177variables_saved_for_relink="$variables_saved_for_relink"
19178
19179# Whether libtool must link a program against all its dependency libraries.
19180link_all_deplibs=$link_all_deplibs_RC
19181
19182# Compile-time system search path for libraries
19183sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19184
19185# Run-time system search path for libraries
19186sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19187
19188# Fix the shell variable \$srcfile for the compiler.
19189fix_srcfile_path="$fix_srcfile_path_RC"
19190
19191# Set to yes if exported symbols are required.
19192always_export_symbols=$always_export_symbols_RC
19193
19194# The commands to list exported symbols.
19195export_symbols_cmds=$lt_export_symbols_cmds_RC
19196
19197# The commands to extract the exported symbol list from a shared archive.
19198extract_expsyms_cmds=$lt_extract_expsyms_cmds
19199
19200# Symbols that should not be listed in the preloaded symbols.
19201exclude_expsyms=$lt_exclude_expsyms_RC
19202
19203# Symbols that must always be exported.
19204include_expsyms=$lt_include_expsyms_RC
19205
19206# ### END LIBTOOL TAG CONFIG: $tagname
19207
19208__EOF__
19209
19210
19211else
19212  # If there is no Makefile yet, we rely on a make rule to execute
19213  # `config.status --recheck' to rerun these tests and create the
19214  # libtool script then.
19215  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19216  if test -f "$ltmain_in"; then
19217    test -f Makefile && make "$ltmain"
19218  fi
19219fi
19220
19221
19222ac_ext=c
19223ac_cpp='$CPP $CPPFLAGS'
19224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19226ac_compiler_gnu=$ac_cv_c_compiler_gnu
19227
19228CC="$lt_save_CC"
19229
19230	;;
19231
19232      *)
19233	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19234echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19235   { (exit 1); exit 1; }; }
19236	;;
19237      esac
19238
19239      # Append the new tag name to the list of available tags.
19240      if test -n "$tagname" ; then
19241      available_tags="$available_tags $tagname"
19242    fi
19243    fi
19244  done
19245  IFS="$lt_save_ifs"
19246
19247  # Now substitute the updated list of available tags.
19248  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19249    mv "${ofile}T" "$ofile"
19250    chmod +x "$ofile"
19251  else
19252    rm -f "${ofile}T"
19253    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19254echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19255   { (exit 1); exit 1; }; }
19256  fi
19257fi
19258
19259
19260
19261# This can be used to rebuild libtool when needed
19262LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19263
19264# Always use our own libtool.
19265LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19266
19267# Prevent multiple expansion
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289      if test "X$prefix" = "XNONE"; then
19290    acl_final_prefix="$ac_default_prefix"
19291  else
19292    acl_final_prefix="$prefix"
19293  fi
19294  if test "X$exec_prefix" = "XNONE"; then
19295    acl_final_exec_prefix='${prefix}'
19296  else
19297    acl_final_exec_prefix="$exec_prefix"
19298  fi
19299  acl_save_prefix="$prefix"
19300  prefix="$acl_final_prefix"
19301  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
19302  prefix="$acl_save_prefix"
19303
19304
19305# Check whether --with-gnu-ld was given.
19306if test "${with_gnu_ld+set}" = set; then
19307  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19308else
19309  with_gnu_ld=no
19310fi
19311
19312# Prepare PATH_SEPARATOR.
19313# The user is always right.
19314if test "${PATH_SEPARATOR+set}" != set; then
19315  echo "#! /bin/sh" >conf$$.sh
19316  echo  "exit 0"   >>conf$$.sh
19317  chmod +x conf$$.sh
19318  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19319    PATH_SEPARATOR=';'
19320  else
19321    PATH_SEPARATOR=:
19322  fi
19323  rm -f conf$$.sh
19324fi
19325ac_prog=ld
19326if test "$GCC" = yes; then
19327  # Check if gcc -print-prog-name=ld gives a path.
19328  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
19329echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
19330  case $host in
19331  *-*-mingw*)
19332    # gcc leaves a trailing carriage return which upsets mingw
19333    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19334  *)
19335    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19336  esac
19337  case $ac_prog in
19338    # Accept absolute paths.
19339    [\\/]* | [A-Za-z]:[\\/]*)
19340      re_direlt='/[^/][^/]*/\.\./'
19341      # Canonicalize the path of ld
19342      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
19343      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
19344	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
19345      done
19346      test -z "$LD" && LD="$ac_prog"
19347      ;;
19348  "")
19349    # If it fails, then pretend we aren't using GCC.
19350    ac_prog=ld
19351    ;;
19352  *)
19353    # If it is relative, then search for the first ld in PATH.
19354    with_gnu_ld=unknown
19355    ;;
19356  esac
19357elif test "$with_gnu_ld" = yes; then
19358  { echo "$as_me:$LINENO: checking for GNU ld" >&5
19359echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
19360else
19361  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
19362echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
19363fi
19364if test "${acl_cv_path_LD+set}" = set; then
19365  echo $ECHO_N "(cached) $ECHO_C" >&6
19366else
19367  if test -z "$LD"; then
19368  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
19369  for ac_dir in $PATH; do
19370    test -z "$ac_dir" && ac_dir=.
19371    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19372      acl_cv_path_LD="$ac_dir/$ac_prog"
19373      # Check to see if the program is GNU ld.  I'd rather use --version,
19374      # but apparently some GNU ld's only accept -v.
19375      # Break only if it was the GNU/non-GNU ld that we prefer.
19376      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
19377      *GNU* | *'with BFD'*)
19378	test "$with_gnu_ld" != no && break ;;
19379      *)
19380	test "$with_gnu_ld" != yes && break ;;
19381      esac
19382    fi
19383  done
19384  IFS="$ac_save_ifs"
19385else
19386  acl_cv_path_LD="$LD" # Let the user override the test with a path.
19387fi
19388fi
19389
19390LD="$acl_cv_path_LD"
19391if test -n "$LD"; then
19392  { echo "$as_me:$LINENO: result: $LD" >&5
19393echo "${ECHO_T}$LD" >&6; }
19394else
19395  { echo "$as_me:$LINENO: result: no" >&5
19396echo "${ECHO_T}no" >&6; }
19397fi
19398test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
19399echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
19400   { (exit 1); exit 1; }; }
19401{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
19402echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
19403if test "${acl_cv_prog_gnu_ld+set}" = set; then
19404  echo $ECHO_N "(cached) $ECHO_C" >&6
19405else
19406  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
19407case `$LD -v 2>&1 </dev/null` in
19408*GNU* | *'with BFD'*)
19409  acl_cv_prog_gnu_ld=yes ;;
19410*)
19411  acl_cv_prog_gnu_ld=no ;;
19412esac
19413fi
19414{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
19415echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
19416with_gnu_ld=$acl_cv_prog_gnu_ld
19417
19418
19419
19420
19421                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
19422echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
19423if test "${acl_cv_rpath+set}" = set; then
19424  echo $ECHO_N "(cached) $ECHO_C" >&6
19425else
19426
19427    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
19428    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19429    . ./conftest.sh
19430    rm -f ./conftest.sh
19431    acl_cv_rpath=done
19432
19433fi
19434{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
19435echo "${ECHO_T}$acl_cv_rpath" >&6; }
19436  wl="$acl_cv_wl"
19437  libext="$acl_cv_libext"
19438  shlibext="$acl_cv_shlibext"
19439  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
19440  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
19441  hardcode_direct="$acl_cv_hardcode_direct"
19442  hardcode_minus_L="$acl_cv_hardcode_minus_L"
19443    # Check whether --enable-rpath was given.
19444if test "${enable_rpath+set}" = set; then
19445  enableval=$enable_rpath; :
19446else
19447  enable_rpath=yes
19448fi
19449
19450
19451
19452                  acl_libdirstem=lib
19453  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
19454  if test -n "$searchpath"; then
19455    acl_save_IFS="${IFS= 	}"; IFS=":"
19456    for searchdir in $searchpath; do
19457      if test -d "$searchdir"; then
19458        case "$searchdir" in
19459          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
19460          *) searchdir=`cd "$searchdir" && pwd`
19461             case "$searchdir" in
19462               */lib64 ) acl_libdirstem=lib64 ;;
19463             esac ;;
19464        esac
19465      fi
19466    done
19467    IFS="$acl_save_IFS"
19468  fi
19469
19470
19471
19472
19473
19474
19475  { echo "$as_me:$LINENO: checking how to link with librpathx" >&5
19476echo $ECHO_N "checking how to link with librpathx... $ECHO_C" >&6; }
19477if test "${ac_cv_librpathx_libs+set}" = set; then
19478  echo $ECHO_N "(cached) $ECHO_C" >&6
19479else
19480
19481
19482
19483
19484    use_additional=yes
19485
19486  acl_save_prefix="$prefix"
19487  prefix="$acl_final_prefix"
19488  acl_save_exec_prefix="$exec_prefix"
19489  exec_prefix="$acl_final_exec_prefix"
19490
19491    eval additional_includedir=\"$includedir\"
19492    eval additional_libdir=\"$libdir\"
19493
19494  exec_prefix="$acl_save_exec_prefix"
19495  prefix="$acl_save_prefix"
19496
19497
19498# Check whether --with-librpathx-prefix was given.
19499if test "${with_librpathx_prefix+set}" = set; then
19500  withval=$with_librpathx_prefix;
19501    if test "X$withval" = "Xno"; then
19502      use_additional=no
19503    else
19504      if test "X$withval" = "X"; then
19505
19506  acl_save_prefix="$prefix"
19507  prefix="$acl_final_prefix"
19508  acl_save_exec_prefix="$exec_prefix"
19509  exec_prefix="$acl_final_exec_prefix"
19510
19511          eval additional_includedir=\"$includedir\"
19512          eval additional_libdir=\"$libdir\"
19513
19514  exec_prefix="$acl_save_exec_prefix"
19515  prefix="$acl_save_prefix"
19516
19517      else
19518        additional_includedir="$withval/include"
19519        additional_libdir="$withval/$acl_libdirstem"
19520      fi
19521    fi
19522
19523fi
19524
19525      LIBRPATHX=
19526  LTLIBRPATHX=
19527  INCRPATHX=
19528  rpathdirs=
19529  ltrpathdirs=
19530  names_already_handled=
19531  names_next_round='rpathx '
19532  while test -n "$names_next_round"; do
19533    names_this_round="$names_next_round"
19534    names_next_round=
19535    for name in $names_this_round; do
19536      already_handled=
19537      for n in $names_already_handled; do
19538        if test "$n" = "$name"; then
19539          already_handled=yes
19540          break
19541        fi
19542      done
19543      if test -z "$already_handled"; then
19544        names_already_handled="$names_already_handled $name"
19545                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19546        eval value=\"\$HAVE_LIB$uppername\"
19547        if test -n "$value"; then
19548          if test "$value" = yes; then
19549            eval value=\"\$LIB$uppername\"
19550            test -z "$value" || LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$value"
19551            eval value=\"\$LTLIB$uppername\"
19552            test -z "$value" || LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$value"
19553          else
19554                                    :
19555          fi
19556        else
19557                              found_dir=
19558          found_la=
19559          found_so=
19560          found_a=
19561          if test $use_additional = yes; then
19562            if test -n "$shlibext" \
19563               && { test -f "$additional_libdir/lib$name.$shlibext" \
19564                    || { test "$shlibext" = dll \
19565                         && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
19566              found_dir="$additional_libdir"
19567              if test -f "$additional_libdir/lib$name.$shlibext"; then
19568                found_so="$additional_libdir/lib$name.$shlibext"
19569              else
19570                found_so="$additional_libdir/lib$name.dll.a"
19571              fi
19572              if test -f "$additional_libdir/lib$name.la"; then
19573                found_la="$additional_libdir/lib$name.la"
19574              fi
19575            else
19576              if test -f "$additional_libdir/lib$name.$libext"; then
19577                found_dir="$additional_libdir"
19578                found_a="$additional_libdir/lib$name.$libext"
19579                if test -f "$additional_libdir/lib$name.la"; then
19580                  found_la="$additional_libdir/lib$name.la"
19581                fi
19582              fi
19583            fi
19584          fi
19585          if test "X$found_dir" = "X"; then
19586            for x in $LDFLAGS $LTLIBRPATHX; do
19587
19588  acl_save_prefix="$prefix"
19589  prefix="$acl_final_prefix"
19590  acl_save_exec_prefix="$exec_prefix"
19591  exec_prefix="$acl_final_exec_prefix"
19592  eval x=\"$x\"
19593  exec_prefix="$acl_save_exec_prefix"
19594  prefix="$acl_save_prefix"
19595
19596              case "$x" in
19597                -L*)
19598                  dir=`echo "X$x" | sed -e 's/^X-L//'`
19599                  if test -n "$shlibext" \
19600                     && { test -f "$dir/lib$name.$shlibext" \
19601                          || { test "$shlibext" = dll \
19602                               && test -f "$dir/lib$name.dll.a"; }; }; then
19603                    found_dir="$dir"
19604                    if test -f "$dir/lib$name.$shlibext"; then
19605                      found_so="$dir/lib$name.$shlibext"
19606                    else
19607                      found_so="$dir/lib$name.dll.a"
19608                    fi
19609                    if test -f "$dir/lib$name.la"; then
19610                      found_la="$dir/lib$name.la"
19611                    fi
19612                  else
19613                    if test -f "$dir/lib$name.$libext"; then
19614                      found_dir="$dir"
19615                      found_a="$dir/lib$name.$libext"
19616                      if test -f "$dir/lib$name.la"; then
19617                        found_la="$dir/lib$name.la"
19618                      fi
19619                    fi
19620                  fi
19621                  ;;
19622              esac
19623              if test "X$found_dir" != "X"; then
19624                break
19625              fi
19626            done
19627          fi
19628          if test "X$found_dir" != "X"; then
19629                        LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$found_dir -l$name"
19630            if test "X$found_so" != "X"; then
19631                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
19632                                LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
19633              else
19634                                                                                haveit=
19635                for x in $ltrpathdirs; do
19636                  if test "X$x" = "X$found_dir"; then
19637                    haveit=yes
19638                    break
19639                  fi
19640                done
19641                if test -z "$haveit"; then
19642                  ltrpathdirs="$ltrpathdirs $found_dir"
19643                fi
19644                                if test "$hardcode_direct" = yes; then
19645                                                      LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
19646                else
19647                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
19648                                                            LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
19649                                                            haveit=
19650                    for x in $rpathdirs; do
19651                      if test "X$x" = "X$found_dir"; then
19652                        haveit=yes
19653                        break
19654                      fi
19655                    done
19656                    if test -z "$haveit"; then
19657                      rpathdirs="$rpathdirs $found_dir"
19658                    fi
19659                  else
19660                                                                                haveit=
19661                    for x in $LDFLAGS $LIBRPATHX; do
19662
19663  acl_save_prefix="$prefix"
19664  prefix="$acl_final_prefix"
19665  acl_save_exec_prefix="$exec_prefix"
19666  exec_prefix="$acl_final_exec_prefix"
19667  eval x=\"$x\"
19668  exec_prefix="$acl_save_exec_prefix"
19669  prefix="$acl_save_prefix"
19670
19671                      if test "X$x" = "X-L$found_dir"; then
19672                        haveit=yes
19673                        break
19674                      fi
19675                    done
19676                    if test -z "$haveit"; then
19677                      LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir"
19678                    fi
19679                    if test "$hardcode_minus_L" != no; then
19680                                                                                        LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
19681                    else
19682                                                                                                                                                                                LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name"
19683                    fi
19684                  fi
19685                fi
19686              fi
19687            else
19688              if test "X$found_a" != "X"; then
19689                                LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_a"
19690              else
19691                                                LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir -l$name"
19692              fi
19693            fi
19694                        additional_includedir=
19695            case "$found_dir" in
19696              */$acl_libdirstem | */$acl_libdirstem/)
19697                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19698                additional_includedir="$basedir/include"
19699                ;;
19700            esac
19701            if test "X$additional_includedir" != "X"; then
19702                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
19703                haveit=
19704                if test "X$additional_includedir" = "X/usr/local/include"; then
19705                  if test -n "$GCC"; then
19706                    case $host_os in
19707                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19708                    esac
19709                  fi
19710                fi
19711                if test -z "$haveit"; then
19712                  for x in $CPPFLAGS $INCRPATHX; do
19713
19714  acl_save_prefix="$prefix"
19715  prefix="$acl_final_prefix"
19716  acl_save_exec_prefix="$exec_prefix"
19717  exec_prefix="$acl_final_exec_prefix"
19718  eval x=\"$x\"
19719  exec_prefix="$acl_save_exec_prefix"
19720  prefix="$acl_save_prefix"
19721
19722                    if test "X$x" = "X-I$additional_includedir"; then
19723                      haveit=yes
19724                      break
19725                    fi
19726                  done
19727                  if test -z "$haveit"; then
19728                    if test -d "$additional_includedir"; then
19729                                            INCRPATHX="${INCRPATHX}${INCRPATHX:+ }-I$additional_includedir"
19730                    fi
19731                  fi
19732                fi
19733              fi
19734            fi
19735                        if test -n "$found_la"; then
19736                                                        save_libdir="$libdir"
19737              case "$found_la" in
19738                */* | *\\*) . "$found_la" ;;
19739                *) . "./$found_la" ;;
19740              esac
19741              libdir="$save_libdir"
19742                            for dep in $dependency_libs; do
19743                case "$dep" in
19744                  -L*)
19745                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19746                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
19747                      haveit=
19748                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
19749                        if test -n "$GCC"; then
19750                          case $host_os in
19751                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19752                          esac
19753                        fi
19754                      fi
19755                      if test -z "$haveit"; then
19756                        haveit=
19757                        for x in $LDFLAGS $LIBRPATHX; do
19758
19759  acl_save_prefix="$prefix"
19760  prefix="$acl_final_prefix"
19761  acl_save_exec_prefix="$exec_prefix"
19762  exec_prefix="$acl_final_exec_prefix"
19763  eval x=\"$x\"
19764  exec_prefix="$acl_save_exec_prefix"
19765  prefix="$acl_save_prefix"
19766
19767                          if test "X$x" = "X-L$additional_libdir"; then
19768                            haveit=yes
19769                            break
19770                          fi
19771                        done
19772                        if test -z "$haveit"; then
19773                          if test -d "$additional_libdir"; then
19774                                                        LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$additional_libdir"
19775                          fi
19776                        fi
19777                        haveit=
19778                        for x in $LDFLAGS $LTLIBRPATHX; do
19779
19780  acl_save_prefix="$prefix"
19781  prefix="$acl_final_prefix"
19782  acl_save_exec_prefix="$exec_prefix"
19783  exec_prefix="$acl_final_exec_prefix"
19784  eval x=\"$x\"
19785  exec_prefix="$acl_save_exec_prefix"
19786  prefix="$acl_save_prefix"
19787
19788                          if test "X$x" = "X-L$additional_libdir"; then
19789                            haveit=yes
19790                            break
19791                          fi
19792                        done
19793                        if test -z "$haveit"; then
19794                          if test -d "$additional_libdir"; then
19795                                                        LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$additional_libdir"
19796                          fi
19797                        fi
19798                      fi
19799                    fi
19800                    ;;
19801                  -R*)
19802                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
19803                    if test "$enable_rpath" != no; then
19804                                                                  haveit=
19805                      for x in $rpathdirs; do
19806                        if test "X$x" = "X$dir"; then
19807                          haveit=yes
19808                          break
19809                        fi
19810                      done
19811                      if test -z "$haveit"; then
19812                        rpathdirs="$rpathdirs $dir"
19813                      fi
19814                                                                  haveit=
19815                      for x in $ltrpathdirs; do
19816                        if test "X$x" = "X$dir"; then
19817                          haveit=yes
19818                          break
19819                        fi
19820                      done
19821                      if test -z "$haveit"; then
19822                        ltrpathdirs="$ltrpathdirs $dir"
19823                      fi
19824                    fi
19825                    ;;
19826                  -l*)
19827                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19828                    ;;
19829                  *.la)
19830                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19831                    ;;
19832                  *)
19833                                        LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$dep"
19834                    LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$dep"
19835                    ;;
19836                esac
19837              done
19838            fi
19839          else
19840                                                            LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name"
19841            LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-l$name"
19842          fi
19843        fi
19844      fi
19845    done
19846  done
19847  if test "X$rpathdirs" != "X"; then
19848    if test -n "$hardcode_libdir_separator"; then
19849                        alldirs=
19850      for found_dir in $rpathdirs; do
19851        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19852      done
19853            acl_save_libdir="$libdir"
19854      libdir="$alldirs"
19855      eval flag=\"$hardcode_libdir_flag_spec\"
19856      libdir="$acl_save_libdir"
19857      LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag"
19858    else
19859            for found_dir in $rpathdirs; do
19860        acl_save_libdir="$libdir"
19861        libdir="$found_dir"
19862        eval flag=\"$hardcode_libdir_flag_spec\"
19863        libdir="$acl_save_libdir"
19864        LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag"
19865      done
19866    fi
19867  fi
19868  if test "X$ltrpathdirs" != "X"; then
19869            for found_dir in $ltrpathdirs; do
19870      LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-R$found_dir"
19871    done
19872  fi
19873
19874    ac_cv_librpathx_libs="$LIBRPATHX"
19875    ac_cv_librpathx_ltlibs="$LTLIBRPATHX"
19876    ac_cv_librpathx_cppflags="$INCRPATHX"
19877
19878fi
19879{ echo "$as_me:$LINENO: result: $ac_cv_librpathx_libs" >&5
19880echo "${ECHO_T}$ac_cv_librpathx_libs" >&6; }
19881  LIBRPATHX="$ac_cv_librpathx_libs"
19882  LTLIBRPATHX="$ac_cv_librpathx_ltlibs"
19883  INCRPATHX="$ac_cv_librpathx_cppflags"
19884
19885  for element in $INCRPATHX; do
19886    haveit=
19887    for x in $CPPFLAGS; do
19888
19889  acl_save_prefix="$prefix"
19890  prefix="$acl_final_prefix"
19891  acl_save_exec_prefix="$exec_prefix"
19892  exec_prefix="$acl_final_exec_prefix"
19893  eval x=\"$x\"
19894  exec_prefix="$acl_save_exec_prefix"
19895  prefix="$acl_save_prefix"
19896
19897      if test "X$x" = "X$element"; then
19898        haveit=yes
19899        break
19900      fi
19901    done
19902    if test -z "$haveit"; then
19903      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19904    fi
19905  done
19906
19907
19908
19909      HAVE_LIBRPATHX=yes
19910
19911
19912
19913
19914
19915
19916
19917
19918  { echo "$as_me:$LINENO: checking how to link with librpathy" >&5
19919echo $ECHO_N "checking how to link with librpathy... $ECHO_C" >&6; }
19920if test "${ac_cv_librpathy_libs+set}" = set; then
19921  echo $ECHO_N "(cached) $ECHO_C" >&6
19922else
19923
19924
19925
19926
19927    use_additional=yes
19928
19929  acl_save_prefix="$prefix"
19930  prefix="$acl_final_prefix"
19931  acl_save_exec_prefix="$exec_prefix"
19932  exec_prefix="$acl_final_exec_prefix"
19933
19934    eval additional_includedir=\"$includedir\"
19935    eval additional_libdir=\"$libdir\"
19936
19937  exec_prefix="$acl_save_exec_prefix"
19938  prefix="$acl_save_prefix"
19939
19940
19941# Check whether --with-librpathy-prefix was given.
19942if test "${with_librpathy_prefix+set}" = set; then
19943  withval=$with_librpathy_prefix;
19944    if test "X$withval" = "Xno"; then
19945      use_additional=no
19946    else
19947      if test "X$withval" = "X"; then
19948
19949  acl_save_prefix="$prefix"
19950  prefix="$acl_final_prefix"
19951  acl_save_exec_prefix="$exec_prefix"
19952  exec_prefix="$acl_final_exec_prefix"
19953
19954          eval additional_includedir=\"$includedir\"
19955          eval additional_libdir=\"$libdir\"
19956
19957  exec_prefix="$acl_save_exec_prefix"
19958  prefix="$acl_save_prefix"
19959
19960      else
19961        additional_includedir="$withval/include"
19962        additional_libdir="$withval/$acl_libdirstem"
19963      fi
19964    fi
19965
19966fi
19967
19968      LIBRPATHY=
19969  LTLIBRPATHY=
19970  INCRPATHY=
19971  rpathdirs=
19972  ltrpathdirs=
19973  names_already_handled=
19974  names_next_round='rpathy rpathx'
19975  while test -n "$names_next_round"; do
19976    names_this_round="$names_next_round"
19977    names_next_round=
19978    for name in $names_this_round; do
19979      already_handled=
19980      for n in $names_already_handled; do
19981        if test "$n" = "$name"; then
19982          already_handled=yes
19983          break
19984        fi
19985      done
19986      if test -z "$already_handled"; then
19987        names_already_handled="$names_already_handled $name"
19988                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19989        eval value=\"\$HAVE_LIB$uppername\"
19990        if test -n "$value"; then
19991          if test "$value" = yes; then
19992            eval value=\"\$LIB$uppername\"
19993            test -z "$value" || LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$value"
19994            eval value=\"\$LTLIB$uppername\"
19995            test -z "$value" || LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }$value"
19996          else
19997                                    :
19998          fi
19999        else
20000                              found_dir=
20001          found_la=
20002          found_so=
20003          found_a=
20004          if test $use_additional = yes; then
20005            if test -n "$shlibext" \
20006               && { test -f "$additional_libdir/lib$name.$shlibext" \
20007                    || { test "$shlibext" = dll \
20008                         && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
20009              found_dir="$additional_libdir"
20010              if test -f "$additional_libdir/lib$name.$shlibext"; then
20011                found_so="$additional_libdir/lib$name.$shlibext"
20012              else
20013                found_so="$additional_libdir/lib$name.dll.a"
20014              fi
20015              if test -f "$additional_libdir/lib$name.la"; then
20016                found_la="$additional_libdir/lib$name.la"
20017              fi
20018            else
20019              if test -f "$additional_libdir/lib$name.$libext"; then
20020                found_dir="$additional_libdir"
20021                found_a="$additional_libdir/lib$name.$libext"
20022                if test -f "$additional_libdir/lib$name.la"; then
20023                  found_la="$additional_libdir/lib$name.la"
20024                fi
20025              fi
20026            fi
20027          fi
20028          if test "X$found_dir" = "X"; then
20029            for x in $LDFLAGS $LTLIBRPATHY; do
20030
20031  acl_save_prefix="$prefix"
20032  prefix="$acl_final_prefix"
20033  acl_save_exec_prefix="$exec_prefix"
20034  exec_prefix="$acl_final_exec_prefix"
20035  eval x=\"$x\"
20036  exec_prefix="$acl_save_exec_prefix"
20037  prefix="$acl_save_prefix"
20038
20039              case "$x" in
20040                -L*)
20041                  dir=`echo "X$x" | sed -e 's/^X-L//'`
20042                  if test -n "$shlibext" \
20043                     && { test -f "$dir/lib$name.$shlibext" \
20044                          || { test "$shlibext" = dll \
20045                               && test -f "$dir/lib$name.dll.a"; }; }; then
20046                    found_dir="$dir"
20047                    if test -f "$dir/lib$name.$shlibext"; then
20048                      found_so="$dir/lib$name.$shlibext"
20049                    else
20050                      found_so="$dir/lib$name.dll.a"
20051                    fi
20052                    if test -f "$dir/lib$name.la"; then
20053                      found_la="$dir/lib$name.la"
20054                    fi
20055                  else
20056                    if test -f "$dir/lib$name.$libext"; then
20057                      found_dir="$dir"
20058                      found_a="$dir/lib$name.$libext"
20059                      if test -f "$dir/lib$name.la"; then
20060                        found_la="$dir/lib$name.la"
20061                      fi
20062                    fi
20063                  fi
20064                  ;;
20065              esac
20066              if test "X$found_dir" != "X"; then
20067                break
20068              fi
20069            done
20070          fi
20071          if test "X$found_dir" != "X"; then
20072                        LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-L$found_dir -l$name"
20073            if test "X$found_so" != "X"; then
20074                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
20075                                LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so"
20076              else
20077                                                                                haveit=
20078                for x in $ltrpathdirs; do
20079                  if test "X$x" = "X$found_dir"; then
20080                    haveit=yes
20081                    break
20082                  fi
20083                done
20084                if test -z "$haveit"; then
20085                  ltrpathdirs="$ltrpathdirs $found_dir"
20086                fi
20087                                if test "$hardcode_direct" = yes; then
20088                                                      LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so"
20089                else
20090                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20091                                                            LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so"
20092                                                            haveit=
20093                    for x in $rpathdirs; do
20094                      if test "X$x" = "X$found_dir"; then
20095                        haveit=yes
20096                        break
20097                      fi
20098                    done
20099                    if test -z "$haveit"; then
20100                      rpathdirs="$rpathdirs $found_dir"
20101                    fi
20102                  else
20103                                                                                haveit=
20104                    for x in $LDFLAGS $LIBRPATHY; do
20105
20106  acl_save_prefix="$prefix"
20107  prefix="$acl_final_prefix"
20108  acl_save_exec_prefix="$exec_prefix"
20109  exec_prefix="$acl_final_exec_prefix"
20110  eval x=\"$x\"
20111  exec_prefix="$acl_save_exec_prefix"
20112  prefix="$acl_save_prefix"
20113
20114                      if test "X$x" = "X-L$found_dir"; then
20115                        haveit=yes
20116                        break
20117                      fi
20118                    done
20119                    if test -z "$haveit"; then
20120                      LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$found_dir"
20121                    fi
20122                    if test "$hardcode_minus_L" != no; then
20123                                                                                        LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so"
20124                    else
20125                                                                                                                                                                                LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-l$name"
20126                    fi
20127                  fi
20128                fi
20129              fi
20130            else
20131              if test "X$found_a" != "X"; then
20132                                LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_a"
20133              else
20134                                                LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$found_dir -l$name"
20135              fi
20136            fi
20137                        additional_includedir=
20138            case "$found_dir" in
20139              */$acl_libdirstem | */$acl_libdirstem/)
20140                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20141                additional_includedir="$basedir/include"
20142                ;;
20143            esac
20144            if test "X$additional_includedir" != "X"; then
20145                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
20146                haveit=
20147                if test "X$additional_includedir" = "X/usr/local/include"; then
20148                  if test -n "$GCC"; then
20149                    case $host_os in
20150                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20151                    esac
20152                  fi
20153                fi
20154                if test -z "$haveit"; then
20155                  for x in $CPPFLAGS $INCRPATHY; do
20156
20157  acl_save_prefix="$prefix"
20158  prefix="$acl_final_prefix"
20159  acl_save_exec_prefix="$exec_prefix"
20160  exec_prefix="$acl_final_exec_prefix"
20161  eval x=\"$x\"
20162  exec_prefix="$acl_save_exec_prefix"
20163  prefix="$acl_save_prefix"
20164
20165                    if test "X$x" = "X-I$additional_includedir"; then
20166                      haveit=yes
20167                      break
20168                    fi
20169                  done
20170                  if test -z "$haveit"; then
20171                    if test -d "$additional_includedir"; then
20172                                            INCRPATHY="${INCRPATHY}${INCRPATHY:+ }-I$additional_includedir"
20173                    fi
20174                  fi
20175                fi
20176              fi
20177            fi
20178                        if test -n "$found_la"; then
20179                                                        save_libdir="$libdir"
20180              case "$found_la" in
20181                */* | *\\*) . "$found_la" ;;
20182                *) . "./$found_la" ;;
20183              esac
20184              libdir="$save_libdir"
20185                            for dep in $dependency_libs; do
20186                case "$dep" in
20187                  -L*)
20188                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20189                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
20190                      haveit=
20191                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
20192                        if test -n "$GCC"; then
20193                          case $host_os in
20194                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20195                          esac
20196                        fi
20197                      fi
20198                      if test -z "$haveit"; then
20199                        haveit=
20200                        for x in $LDFLAGS $LIBRPATHY; do
20201
20202  acl_save_prefix="$prefix"
20203  prefix="$acl_final_prefix"
20204  acl_save_exec_prefix="$exec_prefix"
20205  exec_prefix="$acl_final_exec_prefix"
20206  eval x=\"$x\"
20207  exec_prefix="$acl_save_exec_prefix"
20208  prefix="$acl_save_prefix"
20209
20210                          if test "X$x" = "X-L$additional_libdir"; then
20211                            haveit=yes
20212                            break
20213                          fi
20214                        done
20215                        if test -z "$haveit"; then
20216                          if test -d "$additional_libdir"; then
20217                                                        LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$additional_libdir"
20218                          fi
20219                        fi
20220                        haveit=
20221                        for x in $LDFLAGS $LTLIBRPATHY; do
20222
20223  acl_save_prefix="$prefix"
20224  prefix="$acl_final_prefix"
20225  acl_save_exec_prefix="$exec_prefix"
20226  exec_prefix="$acl_final_exec_prefix"
20227  eval x=\"$x\"
20228  exec_prefix="$acl_save_exec_prefix"
20229  prefix="$acl_save_prefix"
20230
20231                          if test "X$x" = "X-L$additional_libdir"; then
20232                            haveit=yes
20233                            break
20234                          fi
20235                        done
20236                        if test -z "$haveit"; then
20237                          if test -d "$additional_libdir"; then
20238                                                        LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-L$additional_libdir"
20239                          fi
20240                        fi
20241                      fi
20242                    fi
20243                    ;;
20244                  -R*)
20245                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
20246                    if test "$enable_rpath" != no; then
20247                                                                  haveit=
20248                      for x in $rpathdirs; do
20249                        if test "X$x" = "X$dir"; then
20250                          haveit=yes
20251                          break
20252                        fi
20253                      done
20254                      if test -z "$haveit"; then
20255                        rpathdirs="$rpathdirs $dir"
20256                      fi
20257                                                                  haveit=
20258                      for x in $ltrpathdirs; do
20259                        if test "X$x" = "X$dir"; then
20260                          haveit=yes
20261                          break
20262                        fi
20263                      done
20264                      if test -z "$haveit"; then
20265                        ltrpathdirs="$ltrpathdirs $dir"
20266                      fi
20267                    fi
20268                    ;;
20269                  -l*)
20270                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20271                    ;;
20272                  *.la)
20273                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20274                    ;;
20275                  *)
20276                                        LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$dep"
20277                    LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }$dep"
20278                    ;;
20279                esac
20280              done
20281            fi
20282          else
20283                                                            LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-l$name"
20284            LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-l$name"
20285          fi
20286        fi
20287      fi
20288    done
20289  done
20290  if test "X$rpathdirs" != "X"; then
20291    if test -n "$hardcode_libdir_separator"; then
20292                        alldirs=
20293      for found_dir in $rpathdirs; do
20294        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20295      done
20296            acl_save_libdir="$libdir"
20297      libdir="$alldirs"
20298      eval flag=\"$hardcode_libdir_flag_spec\"
20299      libdir="$acl_save_libdir"
20300      LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$flag"
20301    else
20302            for found_dir in $rpathdirs; do
20303        acl_save_libdir="$libdir"
20304        libdir="$found_dir"
20305        eval flag=\"$hardcode_libdir_flag_spec\"
20306        libdir="$acl_save_libdir"
20307        LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$flag"
20308      done
20309    fi
20310  fi
20311  if test "X$ltrpathdirs" != "X"; then
20312            for found_dir in $ltrpathdirs; do
20313      LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-R$found_dir"
20314    done
20315  fi
20316
20317    ac_cv_librpathy_libs="$LIBRPATHY"
20318    ac_cv_librpathy_ltlibs="$LTLIBRPATHY"
20319    ac_cv_librpathy_cppflags="$INCRPATHY"
20320
20321fi
20322{ echo "$as_me:$LINENO: result: $ac_cv_librpathy_libs" >&5
20323echo "${ECHO_T}$ac_cv_librpathy_libs" >&6; }
20324  LIBRPATHY="$ac_cv_librpathy_libs"
20325  LTLIBRPATHY="$ac_cv_librpathy_ltlibs"
20326  INCRPATHY="$ac_cv_librpathy_cppflags"
20327
20328  for element in $INCRPATHY; do
20329    haveit=
20330    for x in $CPPFLAGS; do
20331
20332  acl_save_prefix="$prefix"
20333  prefix="$acl_final_prefix"
20334  acl_save_exec_prefix="$exec_prefix"
20335  exec_prefix="$acl_final_exec_prefix"
20336  eval x=\"$x\"
20337  exec_prefix="$acl_save_exec_prefix"
20338  prefix="$acl_save_prefix"
20339
20340      if test "X$x" = "X$element"; then
20341        haveit=yes
20342        break
20343      fi
20344    done
20345    if test -z "$haveit"; then
20346      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20347    fi
20348  done
20349
20350
20351
20352      HAVE_LIBRPATHY=yes
20353
20354
20355
20356
20357ac_config_files="$ac_config_files Makefile"
20358
20359cat >confcache <<\_ACEOF
20360# This file is a shell script that caches the results of configure
20361# tests run on this system so they can be shared between configure
20362# scripts and configure runs, see configure's option --config-cache.
20363# It is not useful on other systems.  If it contains results you don't
20364# want to keep, you may remove or edit it.
20365#
20366# config.status only pays attention to the cache file if you give it
20367# the --recheck option to rerun configure.
20368#
20369# `ac_cv_env_foo' variables (set or unset) will be overridden when
20370# loading this file, other *unset* `ac_cv_foo' will be assigned the
20371# following values.
20372
20373_ACEOF
20374
20375# The following way of writing the cache mishandles newlines in values,
20376# but we know of no workaround that is simple, portable, and efficient.
20377# So, we kill variables containing newlines.
20378# Ultrix sh set writes to stderr and can't be redirected directly,
20379# and sets the high bit in the cache file unless we assign to the vars.
20380(
20381  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20382    eval ac_val=\$$ac_var
20383    case $ac_val in #(
20384    *${as_nl}*)
20385      case $ac_var in #(
20386      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20387echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20388      esac
20389      case $ac_var in #(
20390      _ | IFS | as_nl) ;; #(
20391      *) $as_unset $ac_var ;;
20392      esac ;;
20393    esac
20394  done
20395
20396  (set) 2>&1 |
20397    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20398    *${as_nl}ac_space=\ *)
20399      # `set' does not quote correctly, so add quotes (double-quote
20400      # substitution turns \\\\ into \\, and sed turns \\ into \).
20401      sed -n \
20402	"s/'/'\\\\''/g;
20403	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20404      ;; #(
20405    *)
20406      # `set' quotes correctly as required by POSIX, so do not add quotes.
20407      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20408      ;;
20409    esac |
20410    sort
20411) |
20412  sed '
20413     /^ac_cv_env_/b end
20414     t clear
20415     :clear
20416     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20417     t end
20418     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20419     :end' >>confcache
20420if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20421  if test -w "$cache_file"; then
20422    test "x$cache_file" != "x/dev/null" &&
20423      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20424echo "$as_me: updating cache $cache_file" >&6;}
20425    cat confcache >$cache_file
20426  else
20427    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20428echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20429  fi
20430fi
20431rm -f confcache
20432
20433test "x$prefix" = xNONE && prefix=$ac_default_prefix
20434# Let make expand exec_prefix.
20435test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20436
20437# Transform confdefs.h into DEFS.
20438# Protect against shell expansion while executing Makefile rules.
20439# Protect against Makefile macro expansion.
20440#
20441# If the first sed substitution is executed (which looks for macros that
20442# take arguments), then branch to the quote section.  Otherwise,
20443# look for a macro that doesn't take arguments.
20444ac_script='
20445t clear
20446:clear
20447s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
20448t quote
20449s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
20450t quote
20451b any
20452:quote
20453s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20454s/\[/\\&/g
20455s/\]/\\&/g
20456s/\$/$$/g
20457H
20458:any
20459${
20460	g
20461	s/^\n//
20462	s/\n/ /g
20463	p
20464}
20465'
20466DEFS=`sed -n "$ac_script" confdefs.h`
20467
20468
20469ac_libobjs=
20470ac_ltlibobjs=
20471for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20472  # 1. Remove the extension, and $U if already installed.
20473  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20474  ac_i=`echo "$ac_i" | sed "$ac_script"`
20475  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20476  #    will be set to the directory where LIBOBJS objects are built.
20477  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20478  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20479done
20480LIBOBJS=$ac_libobjs
20481
20482LTLIBOBJS=$ac_ltlibobjs
20483
20484
20485if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20486  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20487Usually this means the macro was only invoked conditionally." >&5
20488echo "$as_me: error: conditional \"AMDEP\" was never defined.
20489Usually this means the macro was only invoked conditionally." >&2;}
20490   { (exit 1); exit 1; }; }
20491fi
20492if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20493  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20494Usually this means the macro was only invoked conditionally." >&5
20495echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20496Usually this means the macro was only invoked conditionally." >&2;}
20497   { (exit 1); exit 1; }; }
20498fi
20499if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20500  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20501Usually this means the macro was only invoked conditionally." >&5
20502echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20503Usually this means the macro was only invoked conditionally." >&2;}
20504   { (exit 1); exit 1; }; }
20505fi
20506
20507: ${CONFIG_STATUS=./config.status}
20508ac_clean_files_save=$ac_clean_files
20509ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20510{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20511echo "$as_me: creating $CONFIG_STATUS" >&6;}
20512cat >$CONFIG_STATUS <<_ACEOF
20513#! $SHELL
20514# Generated by $as_me.
20515# Run this file to recreate the current configuration.
20516# Compiler output produced by configure, useful for debugging
20517# configure, is in config.log if it exists.
20518
20519debug=false
20520ac_cs_recheck=false
20521ac_cs_silent=false
20522SHELL=\${CONFIG_SHELL-$SHELL}
20523_ACEOF
20524
20525cat >>$CONFIG_STATUS <<\_ACEOF
20526## --------------------- ##
20527## M4sh Initialization.  ##
20528## --------------------- ##
20529
20530# Be more Bourne compatible
20531DUALCASE=1; export DUALCASE # for MKS sh
20532if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20533  emulate sh
20534  NULLCMD=:
20535  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20536  # is contrary to our usage.  Disable this feature.
20537  alias -g '${1+"$@"}'='"$@"'
20538  setopt NO_GLOB_SUBST
20539else
20540  case `(set -o) 2>/dev/null` in
20541  *posix*) set -o posix ;;
20542esac
20543
20544fi
20545
20546
20547
20548
20549# PATH needs CR
20550# Avoid depending upon Character Ranges.
20551as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20552as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20553as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20554as_cr_digits='0123456789'
20555as_cr_alnum=$as_cr_Letters$as_cr_digits
20556
20557# The user is always right.
20558if test "${PATH_SEPARATOR+set}" != set; then
20559  echo "#! /bin/sh" >conf$$.sh
20560  echo  "exit 0"   >>conf$$.sh
20561  chmod +x conf$$.sh
20562  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20563    PATH_SEPARATOR=';'
20564  else
20565    PATH_SEPARATOR=:
20566  fi
20567  rm -f conf$$.sh
20568fi
20569
20570# Support unset when possible.
20571if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20572  as_unset=unset
20573else
20574  as_unset=false
20575fi
20576
20577
20578# IFS
20579# We need space, tab and new line, in precisely that order.  Quoting is
20580# there to prevent editors from complaining about space-tab.
20581# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20582# splitting by setting IFS to empty value.)
20583as_nl='
20584'
20585IFS=" ""	$as_nl"
20586
20587# Find who we are.  Look in the path if we contain no directory separator.
20588case $0 in
20589  *[\\/]* ) as_myself=$0 ;;
20590  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20591for as_dir in $PATH
20592do
20593  IFS=$as_save_IFS
20594  test -z "$as_dir" && as_dir=.
20595  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20596done
20597IFS=$as_save_IFS
20598
20599     ;;
20600esac
20601# We did not find ourselves, most probably we were run as `sh COMMAND'
20602# in which case we are not to be found in the path.
20603if test "x$as_myself" = x; then
20604  as_myself=$0
20605fi
20606if test ! -f "$as_myself"; then
20607  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20608  { (exit 1); exit 1; }
20609fi
20610
20611# Work around bugs in pre-3.0 UWIN ksh.
20612for as_var in ENV MAIL MAILPATH
20613do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20614done
20615PS1='$ '
20616PS2='> '
20617PS4='+ '
20618
20619# NLS nuisances.
20620for as_var in \
20621  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20622  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20623  LC_TELEPHONE LC_TIME
20624do
20625  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20626    eval $as_var=C; export $as_var
20627  else
20628    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20629  fi
20630done
20631
20632# Required to use basename.
20633if expr a : '\(a\)' >/dev/null 2>&1 &&
20634   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20635  as_expr=expr
20636else
20637  as_expr=false
20638fi
20639
20640if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20641  as_basename=basename
20642else
20643  as_basename=false
20644fi
20645
20646
20647# Name of the executable.
20648as_me=`$as_basename -- "$0" ||
20649$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20650	 X"$0" : 'X\(//\)$' \| \
20651	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20652echo X/"$0" |
20653    sed '/^.*\/\([^/][^/]*\)\/*$/{
20654	    s//\1/
20655	    q
20656	  }
20657	  /^X\/\(\/\/\)$/{
20658	    s//\1/
20659	    q
20660	  }
20661	  /^X\/\(\/\).*/{
20662	    s//\1/
20663	    q
20664	  }
20665	  s/.*/./; q'`
20666
20667# CDPATH.
20668$as_unset CDPATH
20669
20670
20671
20672  as_lineno_1=$LINENO
20673  as_lineno_2=$LINENO
20674  test "x$as_lineno_1" != "x$as_lineno_2" &&
20675  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20676
20677  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20678  # uniformly replaced by the line number.  The first 'sed' inserts a
20679  # line-number line after each line using $LINENO; the second 'sed'
20680  # does the real work.  The second script uses 'N' to pair each
20681  # line-number line with the line containing $LINENO, and appends
20682  # trailing '-' during substitution so that $LINENO is not a special
20683  # case at line end.
20684  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20685  # scripts with optimization help from Paolo Bonzini.  Blame Lee
20686  # E. McMahon (1931-1989) for sed's syntax.  :-)
20687  sed -n '
20688    p
20689    /[$]LINENO/=
20690  ' <$as_myself |
20691    sed '
20692      s/[$]LINENO.*/&-/
20693      t lineno
20694      b
20695      :lineno
20696      N
20697      :loop
20698      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20699      t loop
20700      s/-\n.*//
20701    ' >$as_me.lineno &&
20702  chmod +x "$as_me.lineno" ||
20703    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20704   { (exit 1); exit 1; }; }
20705
20706  # Don't try to exec as it changes $[0], causing all sort of problems
20707  # (the dirname of $[0] is not the place where we might find the
20708  # original and so on.  Autoconf is especially sensitive to this).
20709  . "./$as_me.lineno"
20710  # Exit status is that of the last command.
20711  exit
20712}
20713
20714
20715if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20716  as_dirname=dirname
20717else
20718  as_dirname=false
20719fi
20720
20721ECHO_C= ECHO_N= ECHO_T=
20722case `echo -n x` in
20723-n*)
20724  case `echo 'x\c'` in
20725  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20726  *)   ECHO_C='\c';;
20727  esac;;
20728*)
20729  ECHO_N='-n';;
20730esac
20731
20732if expr a : '\(a\)' >/dev/null 2>&1 &&
20733   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20734  as_expr=expr
20735else
20736  as_expr=false
20737fi
20738
20739rm -f conf$$ conf$$.exe conf$$.file
20740if test -d conf$$.dir; then
20741  rm -f conf$$.dir/conf$$.file
20742else
20743  rm -f conf$$.dir
20744  mkdir conf$$.dir
20745fi
20746echo >conf$$.file
20747if ln -s conf$$.file conf$$ 2>/dev/null; then
20748  as_ln_s='ln -s'
20749  # ... but there are two gotchas:
20750  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20751  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20752  # In both cases, we have to default to `cp -p'.
20753  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20754    as_ln_s='cp -p'
20755elif ln conf$$.file conf$$ 2>/dev/null; then
20756  as_ln_s=ln
20757else
20758  as_ln_s='cp -p'
20759fi
20760rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20761rmdir conf$$.dir 2>/dev/null
20762
20763if mkdir -p . 2>/dev/null; then
20764  as_mkdir_p=:
20765else
20766  test -d ./-p && rmdir ./-p
20767  as_mkdir_p=false
20768fi
20769
20770if test -x / >/dev/null 2>&1; then
20771  as_test_x='test -x'
20772else
20773  if ls -dL / >/dev/null 2>&1; then
20774    as_ls_L_option=L
20775  else
20776    as_ls_L_option=
20777  fi
20778  as_test_x='
20779    eval sh -c '\''
20780      if test -d "$1"; then
20781        test -d "$1/.";
20782      else
20783	case $1 in
20784        -*)set "./$1";;
20785	esac;
20786	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20787	???[sx]*):;;*)false;;esac;fi
20788    '\'' sh
20789  '
20790fi
20791as_executable_p=$as_test_x
20792
20793# Sed expression to map a string onto a valid CPP name.
20794as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20795
20796# Sed expression to map a string onto a valid variable name.
20797as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20798
20799
20800exec 6>&1
20801
20802# Save the log message, to keep $[0] and so on meaningful, and to
20803# report actual input values of CONFIG_FILES etc. instead of their
20804# values after options handling.
20805ac_log="
20806This file was extended by $as_me, which was
20807generated by GNU Autoconf 2.61.  Invocation command line was
20808
20809  CONFIG_FILES    = $CONFIG_FILES
20810  CONFIG_HEADERS  = $CONFIG_HEADERS
20811  CONFIG_LINKS    = $CONFIG_LINKS
20812  CONFIG_COMMANDS = $CONFIG_COMMANDS
20813  $ $0 $@
20814
20815on `(hostname || uname -n) 2>/dev/null | sed 1q`
20816"
20817
20818_ACEOF
20819
20820cat >>$CONFIG_STATUS <<_ACEOF
20821# Files that config.status was made for.
20822config_files="$ac_config_files"
20823config_commands="$ac_config_commands"
20824
20825_ACEOF
20826
20827cat >>$CONFIG_STATUS <<\_ACEOF
20828ac_cs_usage="\
20829\`$as_me' instantiates files from templates according to the
20830current configuration.
20831
20832Usage: $0 [OPTIONS] [FILE]...
20833
20834  -h, --help       print this help, then exit
20835  -V, --version    print version number and configuration settings, then exit
20836  -q, --quiet      do not print progress messages
20837  -d, --debug      don't remove temporary files
20838      --recheck    update $as_me by reconfiguring in the same conditions
20839  --file=FILE[:TEMPLATE]
20840		   instantiate the configuration file FILE
20841
20842Configuration files:
20843$config_files
20844
20845Configuration commands:
20846$config_commands
20847
20848Report bugs to <bug-autoconf@gnu.org>."
20849
20850_ACEOF
20851cat >>$CONFIG_STATUS <<_ACEOF
20852ac_cs_version="\\
20853config.status
20854configured by $0, generated by GNU Autoconf 2.61,
20855  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20856
20857Copyright (C) 2006 Free Software Foundation, Inc.
20858This config.status script is free software; the Free Software Foundation
20859gives unlimited permission to copy, distribute and modify it."
20860
20861ac_pwd='$ac_pwd'
20862srcdir='$srcdir'
20863INSTALL='$INSTALL'
20864MKDIR_P='$MKDIR_P'
20865_ACEOF
20866
20867cat >>$CONFIG_STATUS <<\_ACEOF
20868# If no file are specified by the user, then we need to provide default
20869# value.  By we need to know if files were specified by the user.
20870ac_need_defaults=:
20871while test $# != 0
20872do
20873  case $1 in
20874  --*=*)
20875    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20876    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20877    ac_shift=:
20878    ;;
20879  *)
20880    ac_option=$1
20881    ac_optarg=$2
20882    ac_shift=shift
20883    ;;
20884  esac
20885
20886  case $ac_option in
20887  # Handling of the options.
20888  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20889    ac_cs_recheck=: ;;
20890  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20891    echo "$ac_cs_version"; exit ;;
20892  --debug | --debu | --deb | --de | --d | -d )
20893    debug=: ;;
20894  --file | --fil | --fi | --f )
20895    $ac_shift
20896    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20897    ac_need_defaults=false;;
20898  --he | --h |  --help | --hel | -h )
20899    echo "$ac_cs_usage"; exit ;;
20900  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20901  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20902    ac_cs_silent=: ;;
20903
20904  # This is an error.
20905  -*) { echo "$as_me: error: unrecognized option: $1
20906Try \`$0 --help' for more information." >&2
20907   { (exit 1); exit 1; }; } ;;
20908
20909  *) ac_config_targets="$ac_config_targets $1"
20910     ac_need_defaults=false ;;
20911
20912  esac
20913  shift
20914done
20915
20916ac_configure_extra_args=
20917
20918if $ac_cs_silent; then
20919  exec 6>/dev/null
20920  ac_configure_extra_args="$ac_configure_extra_args --silent"
20921fi
20922
20923_ACEOF
20924cat >>$CONFIG_STATUS <<_ACEOF
20925if \$ac_cs_recheck; then
20926  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20927  CONFIG_SHELL=$SHELL
20928  export CONFIG_SHELL
20929  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20930fi
20931
20932_ACEOF
20933cat >>$CONFIG_STATUS <<\_ACEOF
20934exec 5>>config.log
20935{
20936  echo
20937  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20938## Running $as_me. ##
20939_ASBOX
20940  echo "$ac_log"
20941} >&5
20942
20943_ACEOF
20944cat >>$CONFIG_STATUS <<_ACEOF
20945#
20946# INIT-COMMANDS
20947#
20948AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20949
20950_ACEOF
20951
20952cat >>$CONFIG_STATUS <<\_ACEOF
20953
20954# Handling of arguments.
20955for ac_config_target in $ac_config_targets
20956do
20957  case $ac_config_target in
20958    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20959    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20960
20961  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20962echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20963   { (exit 1); exit 1; }; };;
20964  esac
20965done
20966
20967
20968# If the user did not use the arguments to specify the items to instantiate,
20969# then the envvar interface is used.  Set only those that are not.
20970# We use the long form for the default assignment because of an extremely
20971# bizarre bug on SunOS 4.1.3.
20972if $ac_need_defaults; then
20973  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20974  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20975fi
20976
20977# Have a temporary directory for convenience.  Make it in the build tree
20978# simply because there is no reason against having it here, and in addition,
20979# creating and moving files from /tmp can sometimes cause problems.
20980# Hook for its removal unless debugging.
20981# Note that there is a small window in which the directory will not be cleaned:
20982# after its creation but before its name has been assigned to `$tmp'.
20983$debug ||
20984{
20985  tmp=
20986  trap 'exit_status=$?
20987  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20988' 0
20989  trap '{ (exit 1); exit 1; }' 1 2 13 15
20990}
20991# Create a (secure) tmp directory for tmp files.
20992
20993{
20994  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20995  test -n "$tmp" && test -d "$tmp"
20996}  ||
20997{
20998  tmp=./conf$$-$RANDOM
20999  (umask 077 && mkdir "$tmp")
21000} ||
21001{
21002   echo "$me: cannot create a temporary directory in ." >&2
21003   { (exit 1); exit 1; }
21004}
21005
21006#
21007# Set up the sed scripts for CONFIG_FILES section.
21008#
21009
21010# No need to generate the scripts if there are no CONFIG_FILES.
21011# This happens for instance when ./config.status config.h
21012if test -n "$CONFIG_FILES"; then
21013
21014_ACEOF
21015
21016
21017
21018ac_delim='%!_!# '
21019for ac_last_try in false false false false false :; do
21020  cat >conf$$subs.sed <<_ACEOF
21021SHELL!$SHELL$ac_delim
21022PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21023PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21024PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21025PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21026PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21027PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21028exec_prefix!$exec_prefix$ac_delim
21029prefix!$prefix$ac_delim
21030program_transform_name!$program_transform_name$ac_delim
21031bindir!$bindir$ac_delim
21032sbindir!$sbindir$ac_delim
21033libexecdir!$libexecdir$ac_delim
21034datarootdir!$datarootdir$ac_delim
21035datadir!$datadir$ac_delim
21036sysconfdir!$sysconfdir$ac_delim
21037sharedstatedir!$sharedstatedir$ac_delim
21038localstatedir!$localstatedir$ac_delim
21039includedir!$includedir$ac_delim
21040oldincludedir!$oldincludedir$ac_delim
21041docdir!$docdir$ac_delim
21042infodir!$infodir$ac_delim
21043htmldir!$htmldir$ac_delim
21044dvidir!$dvidir$ac_delim
21045pdfdir!$pdfdir$ac_delim
21046psdir!$psdir$ac_delim
21047libdir!$libdir$ac_delim
21048localedir!$localedir$ac_delim
21049mandir!$mandir$ac_delim
21050DEFS!$DEFS$ac_delim
21051ECHO_C!$ECHO_C$ac_delim
21052ECHO_N!$ECHO_N$ac_delim
21053ECHO_T!$ECHO_T$ac_delim
21054LIBS!$LIBS$ac_delim
21055build_alias!$build_alias$ac_delim
21056host_alias!$host_alias$ac_delim
21057target_alias!$target_alias$ac_delim
21058INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21059INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21060INSTALL_DATA!$INSTALL_DATA$ac_delim
21061am__isrc!$am__isrc$ac_delim
21062CYGPATH_W!$CYGPATH_W$ac_delim
21063PACKAGE!$PACKAGE$ac_delim
21064VERSION!$VERSION$ac_delim
21065ACLOCAL!$ACLOCAL$ac_delim
21066AUTOCONF!$AUTOCONF$ac_delim
21067AUTOMAKE!$AUTOMAKE$ac_delim
21068AUTOHEADER!$AUTOHEADER$ac_delim
21069MAKEINFO!$MAKEINFO$ac_delim
21070install_sh!$install_sh$ac_delim
21071STRIP!$STRIP$ac_delim
21072INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21073mkdir_p!$mkdir_p$ac_delim
21074AWK!$AWK$ac_delim
21075SET_MAKE!$SET_MAKE$ac_delim
21076am__leading_dot!$am__leading_dot$ac_delim
21077AMTAR!$AMTAR$ac_delim
21078am__tar!$am__tar$ac_delim
21079am__untar!$am__untar$ac_delim
21080CC!$CC$ac_delim
21081CFLAGS!$CFLAGS$ac_delim
21082LDFLAGS!$LDFLAGS$ac_delim
21083CPPFLAGS!$CPPFLAGS$ac_delim
21084ac_ct_CC!$ac_ct_CC$ac_delim
21085EXEEXT!$EXEEXT$ac_delim
21086OBJEXT!$OBJEXT$ac_delim
21087DEPDIR!$DEPDIR$ac_delim
21088am__include!$am__include$ac_delim
21089am__quote!$am__quote$ac_delim
21090AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21091AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21092AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21093CCDEPMODE!$CCDEPMODE$ac_delim
21094am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21095am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21096build!$build$ac_delim
21097build_cpu!$build_cpu$ac_delim
21098build_vendor!$build_vendor$ac_delim
21099build_os!$build_os$ac_delim
21100host!$host$ac_delim
21101host_cpu!$host_cpu$ac_delim
21102host_vendor!$host_vendor$ac_delim
21103host_os!$host_os$ac_delim
21104GREP!$GREP$ac_delim
21105EGREP!$EGREP$ac_delim
21106LN_S!$LN_S$ac_delim
21107ECHO!$ECHO$ac_delim
21108AR!$AR$ac_delim
21109RANLIB!$RANLIB$ac_delim
21110CPP!$CPP$ac_delim
21111CXX!$CXX$ac_delim
21112CXXFLAGS!$CXXFLAGS$ac_delim
21113ac_ct_CXX!$ac_ct_CXX$ac_delim
21114CXXDEPMODE!$CXXDEPMODE$ac_delim
21115am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21116am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21117CXXCPP!$CXXCPP$ac_delim
21118_ACEOF
21119
21120  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21121    break
21122  elif $ac_last_try; then
21123    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21124echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21125   { (exit 1); exit 1; }; }
21126  else
21127    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21128  fi
21129done
21130
21131ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21132if test -n "$ac_eof"; then
21133  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21134  ac_eof=`expr $ac_eof + 1`
21135fi
21136
21137cat >>$CONFIG_STATUS <<_ACEOF
21138cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21139/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21140_ACEOF
21141sed '
21142s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21143s/^/s,@/; s/!/@,|#_!!_#|/
21144:n
21145t n
21146s/'"$ac_delim"'$/,g/; t
21147s/$/\\/; p
21148N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21149' >>$CONFIG_STATUS <conf$$subs.sed
21150rm -f conf$$subs.sed
21151cat >>$CONFIG_STATUS <<_ACEOF
21152CEOF$ac_eof
21153_ACEOF
21154
21155
21156ac_delim='%!_!# '
21157for ac_last_try in false false false false false :; do
21158  cat >conf$$subs.sed <<_ACEOF
21159F77!$F77$ac_delim
21160FFLAGS!$FFLAGS$ac_delim
21161ac_ct_F77!$ac_ct_F77$ac_delim
21162LIBTOOL!$LIBTOOL$ac_delim
21163LIBRPATHX!$LIBRPATHX$ac_delim
21164LTLIBRPATHX!$LTLIBRPATHX$ac_delim
21165LIBRPATHY!$LIBRPATHY$ac_delim
21166LTLIBRPATHY!$LTLIBRPATHY$ac_delim
21167global_top_auxdir!$global_top_auxdir$ac_delim
21168LIBOBJS!$LIBOBJS$ac_delim
21169LTLIBOBJS!$LTLIBOBJS$ac_delim
21170_ACEOF
21171
21172  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
21173    break
21174  elif $ac_last_try; then
21175    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21176echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21177   { (exit 1); exit 1; }; }
21178  else
21179    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21180  fi
21181done
21182
21183ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21184if test -n "$ac_eof"; then
21185  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21186  ac_eof=`expr $ac_eof + 1`
21187fi
21188
21189cat >>$CONFIG_STATUS <<_ACEOF
21190cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21191/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21192_ACEOF
21193sed '
21194s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21195s/^/s,@/; s/!/@,|#_!!_#|/
21196:n
21197t n
21198s/'"$ac_delim"'$/,g/; t
21199s/$/\\/; p
21200N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21201' >>$CONFIG_STATUS <conf$$subs.sed
21202rm -f conf$$subs.sed
21203cat >>$CONFIG_STATUS <<_ACEOF
21204:end
21205s/|#_!!_#|//g
21206CEOF$ac_eof
21207_ACEOF
21208
21209
21210# VPATH may cause trouble with some makes, so we remove $(srcdir),
21211# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21212# trailing colons and then remove the whole line if VPATH becomes empty
21213# (actually we leave an empty line to preserve line numbers).
21214if test "x$srcdir" = x.; then
21215  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21216s/:*\$(srcdir):*/:/
21217s/:*\${srcdir}:*/:/
21218s/:*@srcdir@:*/:/
21219s/^\([^=]*=[	 ]*\):*/\1/
21220s/:*$//
21221s/^[^=]*=[	 ]*$//
21222}'
21223fi
21224
21225cat >>$CONFIG_STATUS <<\_ACEOF
21226fi # test -n "$CONFIG_FILES"
21227
21228
21229for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
21230do
21231  case $ac_tag in
21232  :[FHLC]) ac_mode=$ac_tag; continue;;
21233  esac
21234  case $ac_mode$ac_tag in
21235  :[FHL]*:*);;
21236  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21237echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21238   { (exit 1); exit 1; }; };;
21239  :[FH]-) ac_tag=-:-;;
21240  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21241  esac
21242  ac_save_IFS=$IFS
21243  IFS=:
21244  set x $ac_tag
21245  IFS=$ac_save_IFS
21246  shift
21247  ac_file=$1
21248  shift
21249
21250  case $ac_mode in
21251  :L) ac_source=$1;;
21252  :[FH])
21253    ac_file_inputs=
21254    for ac_f
21255    do
21256      case $ac_f in
21257      -) ac_f="$tmp/stdin";;
21258      *) # Look for the file first in the build tree, then in the source tree
21259	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21260	 # because $ac_f cannot contain `:'.
21261	 test -f "$ac_f" ||
21262	   case $ac_f in
21263	   [\\/$]*) false;;
21264	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21265	   esac ||
21266	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21267echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21268   { (exit 1); exit 1; }; };;
21269      esac
21270      ac_file_inputs="$ac_file_inputs $ac_f"
21271    done
21272
21273    # Let's still pretend it is `configure' which instantiates (i.e., don't
21274    # use $as_me), people would be surprised to read:
21275    #    /* config.h.  Generated by config.status.  */
21276    configure_input="Generated from "`IFS=:
21277	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21278    if test x"$ac_file" != x-; then
21279      configure_input="$ac_file.  $configure_input"
21280      { echo "$as_me:$LINENO: creating $ac_file" >&5
21281echo "$as_me: creating $ac_file" >&6;}
21282    fi
21283
21284    case $ac_tag in
21285    *:-:* | *:-) cat >"$tmp/stdin";;
21286    esac
21287    ;;
21288  esac
21289
21290  ac_dir=`$as_dirname -- "$ac_file" ||
21291$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21292	 X"$ac_file" : 'X\(//\)[^/]' \| \
21293	 X"$ac_file" : 'X\(//\)$' \| \
21294	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21295echo X"$ac_file" |
21296    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21297	    s//\1/
21298	    q
21299	  }
21300	  /^X\(\/\/\)[^/].*/{
21301	    s//\1/
21302	    q
21303	  }
21304	  /^X\(\/\/\)$/{
21305	    s//\1/
21306	    q
21307	  }
21308	  /^X\(\/\).*/{
21309	    s//\1/
21310	    q
21311	  }
21312	  s/.*/./; q'`
21313  { as_dir="$ac_dir"
21314  case $as_dir in #(
21315  -*) as_dir=./$as_dir;;
21316  esac
21317  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21318    as_dirs=
21319    while :; do
21320      case $as_dir in #(
21321      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21322      *) as_qdir=$as_dir;;
21323      esac
21324      as_dirs="'$as_qdir' $as_dirs"
21325      as_dir=`$as_dirname -- "$as_dir" ||
21326$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21327	 X"$as_dir" : 'X\(//\)[^/]' \| \
21328	 X"$as_dir" : 'X\(//\)$' \| \
21329	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21330echo X"$as_dir" |
21331    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21332	    s//\1/
21333	    q
21334	  }
21335	  /^X\(\/\/\)[^/].*/{
21336	    s//\1/
21337	    q
21338	  }
21339	  /^X\(\/\/\)$/{
21340	    s//\1/
21341	    q
21342	  }
21343	  /^X\(\/\).*/{
21344	    s//\1/
21345	    q
21346	  }
21347	  s/.*/./; q'`
21348      test -d "$as_dir" && break
21349    done
21350    test -z "$as_dirs" || eval "mkdir $as_dirs"
21351  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21352echo "$as_me: error: cannot create directory $as_dir" >&2;}
21353   { (exit 1); exit 1; }; }; }
21354  ac_builddir=.
21355
21356case "$ac_dir" in
21357.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21358*)
21359  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21360  # A ".." for each directory in $ac_dir_suffix.
21361  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21362  case $ac_top_builddir_sub in
21363  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21364  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21365  esac ;;
21366esac
21367ac_abs_top_builddir=$ac_pwd
21368ac_abs_builddir=$ac_pwd$ac_dir_suffix
21369# for backward compatibility:
21370ac_top_builddir=$ac_top_build_prefix
21371
21372case $srcdir in
21373  .)  # We are building in place.
21374    ac_srcdir=.
21375    ac_top_srcdir=$ac_top_builddir_sub
21376    ac_abs_top_srcdir=$ac_pwd ;;
21377  [\\/]* | ?:[\\/]* )  # Absolute name.
21378    ac_srcdir=$srcdir$ac_dir_suffix;
21379    ac_top_srcdir=$srcdir
21380    ac_abs_top_srcdir=$srcdir ;;
21381  *) # Relative name.
21382    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21383    ac_top_srcdir=$ac_top_build_prefix$srcdir
21384    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21385esac
21386ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21387
21388
21389  case $ac_mode in
21390  :F)
21391  #
21392  # CONFIG_FILE
21393  #
21394
21395  case $INSTALL in
21396  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21397  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21398  esac
21399  ac_MKDIR_P=$MKDIR_P
21400  case $MKDIR_P in
21401  [\\/$]* | ?:[\\/]* ) ;;
21402  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21403  esac
21404_ACEOF
21405
21406cat >>$CONFIG_STATUS <<\_ACEOF
21407# If the template does not know about datarootdir, expand it.
21408# FIXME: This hack should be removed a few years after 2.60.
21409ac_datarootdir_hack=; ac_datarootdir_seen=
21410
21411case `sed -n '/datarootdir/ {
21412  p
21413  q
21414}
21415/@datadir@/p
21416/@docdir@/p
21417/@infodir@/p
21418/@localedir@/p
21419/@mandir@/p
21420' $ac_file_inputs` in
21421*datarootdir*) ac_datarootdir_seen=yes;;
21422*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21423  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21424echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21425_ACEOF
21426cat >>$CONFIG_STATUS <<_ACEOF
21427  ac_datarootdir_hack='
21428  s&@datadir@&$datadir&g
21429  s&@docdir@&$docdir&g
21430  s&@infodir@&$infodir&g
21431  s&@localedir@&$localedir&g
21432  s&@mandir@&$mandir&g
21433    s&\\\${datarootdir}&$datarootdir&g' ;;
21434esac
21435_ACEOF
21436
21437# Neutralize VPATH when `$srcdir' = `.'.
21438# Shell code in configure.ac might set extrasub.
21439# FIXME: do we really want to maintain this feature?
21440cat >>$CONFIG_STATUS <<_ACEOF
21441  sed "$ac_vpsub
21442$extrasub
21443_ACEOF
21444cat >>$CONFIG_STATUS <<\_ACEOF
21445:t
21446/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21447s&@configure_input@&$configure_input&;t t
21448s&@top_builddir@&$ac_top_builddir_sub&;t t
21449s&@srcdir@&$ac_srcdir&;t t
21450s&@abs_srcdir@&$ac_abs_srcdir&;t t
21451s&@top_srcdir@&$ac_top_srcdir&;t t
21452s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21453s&@builddir@&$ac_builddir&;t t
21454s&@abs_builddir@&$ac_abs_builddir&;t t
21455s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21456s&@INSTALL@&$ac_INSTALL&;t t
21457s&@MKDIR_P@&$ac_MKDIR_P&;t t
21458$ac_datarootdir_hack
21459" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21460
21461test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21462  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21463  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21464  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21465which seems to be undefined.  Please make sure it is defined." >&5
21466echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21467which seems to be undefined.  Please make sure it is defined." >&2;}
21468
21469  rm -f "$tmp/stdin"
21470  case $ac_file in
21471  -) cat "$tmp/out"; rm -f "$tmp/out";;
21472  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21473  esac
21474 ;;
21475
21476
21477  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21478echo "$as_me: executing $ac_file commands" >&6;}
21479 ;;
21480  esac
21481
21482
21483  case $ac_file$ac_mode in
21484    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21485  # Strip MF so we end up with the name of the file.
21486  mf=`echo "$mf" | sed -e 's/:.*$//'`
21487  # Check whether this is an Automake generated Makefile or not.
21488  # We used to match only the files named `Makefile.in', but
21489  # some people rename them; so instead we look at the file content.
21490  # Grep'ing the first line is not enough: some people post-process
21491  # each Makefile.in and add a new line on top of each file to say so.
21492  # Grep'ing the whole file is not good either: AIX grep has a line
21493  # limit of 2048, but all sed's we know have understand at least 4000.
21494  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21495    dirpart=`$as_dirname -- "$mf" ||
21496$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21497	 X"$mf" : 'X\(//\)[^/]' \| \
21498	 X"$mf" : 'X\(//\)$' \| \
21499	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21500echo X"$mf" |
21501    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21502	    s//\1/
21503	    q
21504	  }
21505	  /^X\(\/\/\)[^/].*/{
21506	    s//\1/
21507	    q
21508	  }
21509	  /^X\(\/\/\)$/{
21510	    s//\1/
21511	    q
21512	  }
21513	  /^X\(\/\).*/{
21514	    s//\1/
21515	    q
21516	  }
21517	  s/.*/./; q'`
21518  else
21519    continue
21520  fi
21521  # Extract the definition of DEPDIR, am__include, and am__quote
21522  # from the Makefile without running `make'.
21523  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21524  test -z "$DEPDIR" && continue
21525  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21526  test -z "am__include" && continue
21527  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21528  # When using ansi2knr, U may be empty or an underscore; expand it
21529  U=`sed -n 's/^U = //p' < "$mf"`
21530  # Find all dependency output files, they are included files with
21531  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21532  # simplest approach to changing $(DEPDIR) to its actual value in the
21533  # expansion.
21534  for file in `sed -n "
21535    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21536       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21537    # Make sure the directory exists.
21538    test -f "$dirpart/$file" && continue
21539    fdir=`$as_dirname -- "$file" ||
21540$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21541	 X"$file" : 'X\(//\)[^/]' \| \
21542	 X"$file" : 'X\(//\)$' \| \
21543	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21544echo X"$file" |
21545    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21546	    s//\1/
21547	    q
21548	  }
21549	  /^X\(\/\/\)[^/].*/{
21550	    s//\1/
21551	    q
21552	  }
21553	  /^X\(\/\/\)$/{
21554	    s//\1/
21555	    q
21556	  }
21557	  /^X\(\/\).*/{
21558	    s//\1/
21559	    q
21560	  }
21561	  s/.*/./; q'`
21562    { as_dir=$dirpart/$fdir
21563  case $as_dir in #(
21564  -*) as_dir=./$as_dir;;
21565  esac
21566  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21567    as_dirs=
21568    while :; do
21569      case $as_dir in #(
21570      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21571      *) as_qdir=$as_dir;;
21572      esac
21573      as_dirs="'$as_qdir' $as_dirs"
21574      as_dir=`$as_dirname -- "$as_dir" ||
21575$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21576	 X"$as_dir" : 'X\(//\)[^/]' \| \
21577	 X"$as_dir" : 'X\(//\)$' \| \
21578	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21579echo X"$as_dir" |
21580    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21581	    s//\1/
21582	    q
21583	  }
21584	  /^X\(\/\/\)[^/].*/{
21585	    s//\1/
21586	    q
21587	  }
21588	  /^X\(\/\/\)$/{
21589	    s//\1/
21590	    q
21591	  }
21592	  /^X\(\/\).*/{
21593	    s//\1/
21594	    q
21595	  }
21596	  s/.*/./; q'`
21597      test -d "$as_dir" && break
21598    done
21599    test -z "$as_dirs" || eval "mkdir $as_dirs"
21600  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21601echo "$as_me: error: cannot create directory $as_dir" >&2;}
21602   { (exit 1); exit 1; }; }; }
21603    # echo "creating $dirpart/$file"
21604    echo '# dummy' > "$dirpart/$file"
21605  done
21606done
21607 ;;
21608
21609  esac
21610done # for ac_tag
21611
21612
21613{ (exit 0); exit 0; }
21614_ACEOF
21615chmod +x $CONFIG_STATUS
21616ac_clean_files=$ac_clean_files_save
21617
21618
21619# configure is writing to config.log, and then calls config.status.
21620# config.status does its own redirection, appending to config.log.
21621# Unfortunately, on DOS this fails, as config.log is still kept open
21622# by configure, so config.status won't be able to write to it; its
21623# output is simply discarded.  So we exec the FD to /dev/null,
21624# effectively closing config.log, so it can be properly (re)opened and
21625# appended to by config.status.  When coming back to configure, we
21626# need to make the FD available again.
21627if test "$no_create" != yes; then
21628  ac_cs_success=:
21629  ac_config_status_args=
21630  test "$silent" = yes &&
21631    ac_config_status_args="$ac_config_status_args --quiet"
21632  exec 5>/dev/null
21633  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21634  exec 5>>config.log
21635  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21636  # would make configure fail if this is the last instruction.
21637  $ac_cs_success || { (exit 1); exit 1; }
21638fi
21639
21640