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="src/framing.c"
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
829MAINTAINER_MODE_TRUE
830MAINTAINER_MODE_FALSE
831MAINT
832LIB_CURRENT
833LIB_REVISION
834LIB_AGE
835CC
836CFLAGS
837LDFLAGS
838CPPFLAGS
839ac_ct_CC
840EXEEXT
841OBJEXT
842DEPDIR
843am__include
844am__quote
845AMDEP_TRUE
846AMDEP_FALSE
847AMDEPBACKSLASH
848CCDEPMODE
849am__fastdepCC_TRUE
850am__fastdepCC_FALSE
851build
852build_cpu
853build_vendor
854build_os
855host
856host_cpu
857host_vendor
858host_os
859SED
860GREP
861EGREP
862LN_S
863ECHO
864AR
865RANLIB
866DSYMUTIL
867NMEDIT
868CPP
869CXX
870CXXFLAGS
871ac_ct_CXX
872CXXDEPMODE
873am__fastdepCXX_TRUE
874am__fastdepCXX_FALSE
875CXXCPP
876F77
877FFLAGS
878ac_ct_F77
879LIBTOOL
880LIBOBJS
881LIBTOOL_DEPS
882SIZE16
883USIZE16
884SIZE32
885USIZE32
886SIZE64
887OPT
888DEBUG
889PROFILE
890LTLIBOBJS'
891ac_subst_files=''
892      ac_precious_vars='build_alias
893host_alias
894target_alias
895CC
896CFLAGS
897LDFLAGS
898LIBS
899CPPFLAGS
900CPP
901CXX
902CXXFLAGS
903CCC
904CXXCPP
905F77
906FFLAGS'
907
908
909# Initialize some variables set by options.
910ac_init_help=
911ac_init_version=false
912# The variables have the same names as the options, with
913# dashes changed to underlines.
914cache_file=/dev/null
915exec_prefix=NONE
916no_create=
917no_recursion=
918prefix=NONE
919program_prefix=NONE
920program_suffix=NONE
921program_transform_name=s,x,x,
922silent=
923site=
924srcdir=
925verbose=
926x_includes=NONE
927x_libraries=NONE
928
929# Installation directory options.
930# These are left unexpanded so users can "make install exec_prefix=/foo"
931# and all the variables that are supposed to be based on exec_prefix
932# by default will actually change.
933# Use braces instead of parens because sh, perl, etc. also accept them.
934# (The list follows the same order as the GNU Coding Standards.)
935bindir='${exec_prefix}/bin'
936sbindir='${exec_prefix}/sbin'
937libexecdir='${exec_prefix}/libexec'
938datarootdir='${prefix}/share'
939datadir='${datarootdir}'
940sysconfdir='${prefix}/etc'
941sharedstatedir='${prefix}/com'
942localstatedir='${prefix}/var'
943includedir='${prefix}/include'
944oldincludedir='/usr/include'
945docdir='${datarootdir}/doc/${PACKAGE}'
946infodir='${datarootdir}/info'
947htmldir='${docdir}'
948dvidir='${docdir}'
949pdfdir='${docdir}'
950psdir='${docdir}'
951libdir='${exec_prefix}/lib'
952localedir='${datarootdir}/locale'
953mandir='${datarootdir}/man'
954
955ac_prev=
956ac_dashdash=
957for ac_option
958do
959  # If the previous option needs an argument, assign it.
960  if test -n "$ac_prev"; then
961    eval $ac_prev=\$ac_option
962    ac_prev=
963    continue
964  fi
965
966  case $ac_option in
967  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968  *)	ac_optarg=yes ;;
969  esac
970
971  # Accept the important Cygnus configure options, so we can diagnose typos.
972
973  case $ac_dashdash$ac_option in
974  --)
975    ac_dashdash=yes ;;
976
977  -bindir | --bindir | --bindi | --bind | --bin | --bi)
978    ac_prev=bindir ;;
979  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
980    bindir=$ac_optarg ;;
981
982  -build | --build | --buil | --bui | --bu)
983    ac_prev=build_alias ;;
984  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
985    build_alias=$ac_optarg ;;
986
987  -cache-file | --cache-file | --cache-fil | --cache-fi \
988  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
989    ac_prev=cache_file ;;
990  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
991  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
992    cache_file=$ac_optarg ;;
993
994  --config-cache | -C)
995    cache_file=config.cache ;;
996
997  -datadir | --datadir | --datadi | --datad)
998    ac_prev=datadir ;;
999  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1000    datadir=$ac_optarg ;;
1001
1002  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1003  | --dataroo | --dataro | --datar)
1004    ac_prev=datarootdir ;;
1005  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1006  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1007    datarootdir=$ac_optarg ;;
1008
1009  -disable-* | --disable-*)
1010    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1011    # Reject names that are not valid shell variable names.
1012    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1013      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1014   { (exit 1); exit 1; }; }
1015    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1016    eval enable_$ac_feature=no ;;
1017
1018  -docdir | --docdir | --docdi | --doc | --do)
1019    ac_prev=docdir ;;
1020  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021    docdir=$ac_optarg ;;
1022
1023  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024    ac_prev=dvidir ;;
1025  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026    dvidir=$ac_optarg ;;
1027
1028  -enable-* | --enable-*)
1029    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030    # Reject names that are not valid shell variable names.
1031    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1032      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1033   { (exit 1); exit 1; }; }
1034    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1035    eval enable_$ac_feature=\$ac_optarg ;;
1036
1037  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039  | --exec | --exe | --ex)
1040    ac_prev=exec_prefix ;;
1041  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043  | --exec=* | --exe=* | --ex=*)
1044    exec_prefix=$ac_optarg ;;
1045
1046  -gas | --gas | --ga | --g)
1047    # Obsolete; use --with-gas.
1048    with_gas=yes ;;
1049
1050  -help | --help | --hel | --he | -h)
1051    ac_init_help=long ;;
1052  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053    ac_init_help=recursive ;;
1054  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055    ac_init_help=short ;;
1056
1057  -host | --host | --hos | --ho)
1058    ac_prev=host_alias ;;
1059  -host=* | --host=* | --hos=* | --ho=*)
1060    host_alias=$ac_optarg ;;
1061
1062  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063    ac_prev=htmldir ;;
1064  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065  | --ht=*)
1066    htmldir=$ac_optarg ;;
1067
1068  -includedir | --includedir | --includedi | --included | --include \
1069  | --includ | --inclu | --incl | --inc)
1070    ac_prev=includedir ;;
1071  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072  | --includ=* | --inclu=* | --incl=* | --inc=*)
1073    includedir=$ac_optarg ;;
1074
1075  -infodir | --infodir | --infodi | --infod | --info | --inf)
1076    ac_prev=infodir ;;
1077  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078    infodir=$ac_optarg ;;
1079
1080  -libdir | --libdir | --libdi | --libd)
1081    ac_prev=libdir ;;
1082  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083    libdir=$ac_optarg ;;
1084
1085  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086  | --libexe | --libex | --libe)
1087    ac_prev=libexecdir ;;
1088  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089  | --libexe=* | --libex=* | --libe=*)
1090    libexecdir=$ac_optarg ;;
1091
1092  -localedir | --localedir | --localedi | --localed | --locale)
1093    ac_prev=localedir ;;
1094  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095    localedir=$ac_optarg ;;
1096
1097  -localstatedir | --localstatedir | --localstatedi | --localstated \
1098  | --localstate | --localstat | --localsta | --localst | --locals)
1099    ac_prev=localstatedir ;;
1100  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102    localstatedir=$ac_optarg ;;
1103
1104  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105    ac_prev=mandir ;;
1106  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107    mandir=$ac_optarg ;;
1108
1109  -nfp | --nfp | --nf)
1110    # Obsolete; use --without-fp.
1111    with_fp=no ;;
1112
1113  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114  | --no-cr | --no-c | -n)
1115    no_create=yes ;;
1116
1117  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119    no_recursion=yes ;;
1120
1121  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123  | --oldin | --oldi | --old | --ol | --o)
1124    ac_prev=oldincludedir ;;
1125  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128    oldincludedir=$ac_optarg ;;
1129
1130  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131    ac_prev=prefix ;;
1132  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133    prefix=$ac_optarg ;;
1134
1135  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136  | --program-pre | --program-pr | --program-p)
1137    ac_prev=program_prefix ;;
1138  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140    program_prefix=$ac_optarg ;;
1141
1142  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143  | --program-suf | --program-su | --program-s)
1144    ac_prev=program_suffix ;;
1145  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147    program_suffix=$ac_optarg ;;
1148
1149  -program-transform-name | --program-transform-name \
1150  | --program-transform-nam | --program-transform-na \
1151  | --program-transform-n | --program-transform- \
1152  | --program-transform | --program-transfor \
1153  | --program-transfo | --program-transf \
1154  | --program-trans | --program-tran \
1155  | --progr-tra | --program-tr | --program-t)
1156    ac_prev=program_transform_name ;;
1157  -program-transform-name=* | --program-transform-name=* \
1158  | --program-transform-nam=* | --program-transform-na=* \
1159  | --program-transform-n=* | --program-transform-=* \
1160  | --program-transform=* | --program-transfor=* \
1161  | --program-transfo=* | --program-transf=* \
1162  | --program-trans=* | --program-tran=* \
1163  | --progr-tra=* | --program-tr=* | --program-t=*)
1164    program_transform_name=$ac_optarg ;;
1165
1166  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167    ac_prev=pdfdir ;;
1168  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169    pdfdir=$ac_optarg ;;
1170
1171  -psdir | --psdir | --psdi | --psd | --ps)
1172    ac_prev=psdir ;;
1173  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174    psdir=$ac_optarg ;;
1175
1176  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177  | -silent | --silent | --silen | --sile | --sil)
1178    silent=yes ;;
1179
1180  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181    ac_prev=sbindir ;;
1182  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183  | --sbi=* | --sb=*)
1184    sbindir=$ac_optarg ;;
1185
1186  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188  | --sharedst | --shareds | --shared | --share | --shar \
1189  | --sha | --sh)
1190    ac_prev=sharedstatedir ;;
1191  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194  | --sha=* | --sh=*)
1195    sharedstatedir=$ac_optarg ;;
1196
1197  -site | --site | --sit)
1198    ac_prev=site ;;
1199  -site=* | --site=* | --sit=*)
1200    site=$ac_optarg ;;
1201
1202  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203    ac_prev=srcdir ;;
1204  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205    srcdir=$ac_optarg ;;
1206
1207  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208  | --syscon | --sysco | --sysc | --sys | --sy)
1209    ac_prev=sysconfdir ;;
1210  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212    sysconfdir=$ac_optarg ;;
1213
1214  -target | --target | --targe | --targ | --tar | --ta | --t)
1215    ac_prev=target_alias ;;
1216  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217    target_alias=$ac_optarg ;;
1218
1219  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220    verbose=yes ;;
1221
1222  -version | --version | --versio | --versi | --vers | -V)
1223    ac_init_version=: ;;
1224
1225  -with-* | --with-*)
1226    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227    # Reject names that are not valid shell variable names.
1228    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229      { echo "$as_me: error: invalid package name: $ac_package" >&2
1230   { (exit 1); exit 1; }; }
1231    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1232    eval with_$ac_package=\$ac_optarg ;;
1233
1234  -without-* | --without-*)
1235    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1236    # Reject names that are not valid shell variable names.
1237    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238      { echo "$as_me: error: invalid package name: $ac_package" >&2
1239   { (exit 1); exit 1; }; }
1240    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1241    eval with_$ac_package=no ;;
1242
1243  --x)
1244    # Obsolete; use --with-x.
1245    with_x=yes ;;
1246
1247  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248  | --x-incl | --x-inc | --x-in | --x-i)
1249    ac_prev=x_includes ;;
1250  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252    x_includes=$ac_optarg ;;
1253
1254  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256    ac_prev=x_libraries ;;
1257  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259    x_libraries=$ac_optarg ;;
1260
1261  -*) { echo "$as_me: error: unrecognized option: $ac_option
1262Try \`$0 --help' for more information." >&2
1263   { (exit 1); exit 1; }; }
1264    ;;
1265
1266  *=*)
1267    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268    # Reject names that are not valid shell variable names.
1269    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1270      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1271   { (exit 1); exit 1; }; }
1272    eval $ac_envvar=\$ac_optarg
1273    export $ac_envvar ;;
1274
1275  *)
1276    # FIXME: should be removed in autoconf 3.0.
1277    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1278    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1280    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1281    ;;
1282
1283  esac
1284done
1285
1286if test -n "$ac_prev"; then
1287  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288  { echo "$as_me: error: missing argument to $ac_option" >&2
1289   { (exit 1); exit 1; }; }
1290fi
1291
1292# Be sure to have absolute directory names.
1293for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294		datadir sysconfdir sharedstatedir localstatedir includedir \
1295		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296		libdir localedir mandir
1297do
1298  eval ac_val=\$$ac_var
1299  case $ac_val in
1300    [\\/$]* | ?:[\\/]* )  continue;;
1301    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302  esac
1303  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1304   { (exit 1); exit 1; }; }
1305done
1306
1307# There might be people who depend on the old broken behavior: `$host'
1308# used to hold the argument of --host etc.
1309# FIXME: To remove some day.
1310build=$build_alias
1311host=$host_alias
1312target=$target_alias
1313
1314# FIXME: To remove some day.
1315if test "x$host_alias" != x; then
1316  if test "x$build_alias" = x; then
1317    cross_compiling=maybe
1318    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1319    If a cross compiler is detected then cross compile mode will be used." >&2
1320  elif test "x$build_alias" != "x$host_alias"; then
1321    cross_compiling=yes
1322  fi
1323fi
1324
1325ac_tool_prefix=
1326test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327
1328test "$silent" = yes && exec 6>/dev/null
1329
1330
1331ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332ac_ls_di=`ls -di .` &&
1333ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334  { echo "$as_me: error: Working directory cannot be determined" >&2
1335   { (exit 1); exit 1; }; }
1336test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1337  { echo "$as_me: error: pwd does not report name of working directory" >&2
1338   { (exit 1); exit 1; }; }
1339
1340
1341# Find the source files, if location was not specified.
1342if test -z "$srcdir"; then
1343  ac_srcdir_defaulted=yes
1344  # Try the directory containing this script, then the parent directory.
1345  ac_confdir=`$as_dirname -- "$0" ||
1346$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347	 X"$0" : 'X\(//\)[^/]' \| \
1348	 X"$0" : 'X\(//\)$' \| \
1349	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1350echo X"$0" |
1351    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352	    s//\1/
1353	    q
1354	  }
1355	  /^X\(\/\/\)[^/].*/{
1356	    s//\1/
1357	    q
1358	  }
1359	  /^X\(\/\/\)$/{
1360	    s//\1/
1361	    q
1362	  }
1363	  /^X\(\/\).*/{
1364	    s//\1/
1365	    q
1366	  }
1367	  s/.*/./; q'`
1368  srcdir=$ac_confdir
1369  if test ! -r "$srcdir/$ac_unique_file"; then
1370    srcdir=..
1371  fi
1372else
1373  ac_srcdir_defaulted=no
1374fi
1375if test ! -r "$srcdir/$ac_unique_file"; then
1376  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1378   { (exit 1); exit 1; }; }
1379fi
1380ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1381ac_abs_confdir=`(
1382	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1383   { (exit 1); exit 1; }; }
1384	pwd)`
1385# When building in place, set srcdir=.
1386if test "$ac_abs_confdir" = "$ac_pwd"; then
1387  srcdir=.
1388fi
1389# Remove unnecessary trailing slashes from srcdir.
1390# Double slashes in file names in object file debugging info
1391# mess up M-x gdb in Emacs.
1392case $srcdir in
1393*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1394esac
1395for ac_var in $ac_precious_vars; do
1396  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397  eval ac_env_${ac_var}_value=\$${ac_var}
1398  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1400done
1401
1402#
1403# Report the --help message.
1404#
1405if test "$ac_init_help" = "long"; then
1406  # Omit some internal or obsolete options to make the list less imposing.
1407  # This message is too long to be a string in the A/UX 3.1 sh.
1408  cat <<_ACEOF
1409\`configure' configures this package to adapt to many kinds of systems.
1410
1411Usage: $0 [OPTION]... [VAR=VALUE]...
1412
1413To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414VAR=VALUE.  See below for descriptions of some of the useful variables.
1415
1416Defaults for the options are specified in brackets.
1417
1418Configuration:
1419  -h, --help              display this help and exit
1420      --help=short        display options specific to this package
1421      --help=recursive    display the short help of all the included packages
1422  -V, --version           display version information and exit
1423  -q, --quiet, --silent   do not print \`checking...' messages
1424      --cache-file=FILE   cache test results in FILE [disabled]
1425  -C, --config-cache      alias for \`--cache-file=config.cache'
1426  -n, --no-create         do not create output files
1427      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1428
1429Installation directories:
1430  --prefix=PREFIX         install architecture-independent files in PREFIX
1431			  [$ac_default_prefix]
1432  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1433			  [PREFIX]
1434
1435By default, \`make install' will install all the files in
1436\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1437an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438for instance \`--prefix=\$HOME'.
1439
1440For better control, use the options below.
1441
1442Fine tuning of the installation directories:
1443  --bindir=DIR           user executables [EPREFIX/bin]
1444  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1445  --libexecdir=DIR       program executables [EPREFIX/libexec]
1446  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1447  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1448  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1449  --libdir=DIR           object code libraries [EPREFIX/lib]
1450  --includedir=DIR       C header files [PREFIX/include]
1451  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1452  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1453  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1454  --infodir=DIR          info documentation [DATAROOTDIR/info]
1455  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1456  --mandir=DIR           man documentation [DATAROOTDIR/man]
1457  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1458  --htmldir=DIR          html documentation [DOCDIR]
1459  --dvidir=DIR           dvi documentation [DOCDIR]
1460  --pdfdir=DIR           pdf documentation [DOCDIR]
1461  --psdir=DIR            ps documentation [DOCDIR]
1462_ACEOF
1463
1464  cat <<\_ACEOF
1465
1466Program names:
1467  --program-prefix=PREFIX            prepend PREFIX to installed program names
1468  --program-suffix=SUFFIX            append SUFFIX to installed program names
1469  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1470
1471System types:
1472  --build=BUILD     configure for building on BUILD [guessed]
1473  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1474_ACEOF
1475fi
1476
1477if test -n "$ac_init_help"; then
1478
1479  cat <<\_ACEOF
1480
1481Optional Features:
1482  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1483  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1484  --enable-maintainer-mode  enable make rules and dependencies not useful
1485			  (and sometimes confusing) to the casual installer
1486  --disable-dependency-tracking  speeds up one-time build
1487  --enable-dependency-tracking   do not reject slow dependency extractors
1488  --enable-shared[=PKGS]  build shared libraries [default=yes]
1489  --enable-static[=PKGS]  build static libraries [default=yes]
1490  --enable-fast-install[=PKGS]
1491                          optimize for fast installation [default=yes]
1492  --disable-libtool-lock  avoid locking (might break parallel builds)
1493
1494Optional Packages:
1495  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1496  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1497  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1498  --with-pic              try to use only PIC/non-PIC objects [default=use
1499                          both]
1500  --with-tags[=TAGS]      include additional configurations [automatic]
1501
1502Some influential environment variables:
1503  CC          C compiler command
1504  CFLAGS      C compiler flags
1505  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1506              nonstandard directory <lib dir>
1507  LIBS        libraries to pass to the linker, e.g. -l<library>
1508  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1509              you have headers in a nonstandard directory <include dir>
1510  CPP         C preprocessor
1511  CXX         C++ compiler command
1512  CXXFLAGS    C++ compiler flags
1513  CXXCPP      C++ preprocessor
1514  F77         Fortran 77 compiler command
1515  FFLAGS      Fortran 77 compiler flags
1516
1517Use these variables to override the choices made by `configure' or to help
1518it to find libraries and programs with nonstandard names/locations.
1519
1520_ACEOF
1521ac_status=$?
1522fi
1523
1524if test "$ac_init_help" = "recursive"; then
1525  # If there are subdirs, report their specific --help.
1526  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527    test -d "$ac_dir" || continue
1528    ac_builddir=.
1529
1530case "$ac_dir" in
1531.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532*)
1533  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1534  # A ".." for each directory in $ac_dir_suffix.
1535  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1536  case $ac_top_builddir_sub in
1537  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539  esac ;;
1540esac
1541ac_abs_top_builddir=$ac_pwd
1542ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543# for backward compatibility:
1544ac_top_builddir=$ac_top_build_prefix
1545
1546case $srcdir in
1547  .)  # We are building in place.
1548    ac_srcdir=.
1549    ac_top_srcdir=$ac_top_builddir_sub
1550    ac_abs_top_srcdir=$ac_pwd ;;
1551  [\\/]* | ?:[\\/]* )  # Absolute name.
1552    ac_srcdir=$srcdir$ac_dir_suffix;
1553    ac_top_srcdir=$srcdir
1554    ac_abs_top_srcdir=$srcdir ;;
1555  *) # Relative name.
1556    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557    ac_top_srcdir=$ac_top_build_prefix$srcdir
1558    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559esac
1560ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561
1562    cd "$ac_dir" || { ac_status=$?; continue; }
1563    # Check for guested configure.
1564    if test -f "$ac_srcdir/configure.gnu"; then
1565      echo &&
1566      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567    elif test -f "$ac_srcdir/configure"; then
1568      echo &&
1569      $SHELL "$ac_srcdir/configure" --help=recursive
1570    else
1571      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572    fi || ac_status=$?
1573    cd "$ac_pwd" || { ac_status=$?; break; }
1574  done
1575fi
1576
1577test -n "$ac_init_help" && exit $ac_status
1578if $ac_init_version; then
1579  cat <<\_ACEOF
1580configure
1581generated by GNU Autoconf 2.61
1582
1583Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15842002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1585This configure script is free software; the Free Software Foundation
1586gives unlimited permission to copy, distribute and modify it.
1587_ACEOF
1588  exit
1589fi
1590cat >config.log <<_ACEOF
1591This file contains any messages produced by compilers while
1592running configure, to aid debugging if configure makes a mistake.
1593
1594It was created by $as_me, which was
1595generated by GNU Autoconf 2.61.  Invocation command line was
1596
1597  $ $0 $@
1598
1599_ACEOF
1600exec 5>>config.log
1601{
1602cat <<_ASUNAME
1603## --------- ##
1604## Platform. ##
1605## --------- ##
1606
1607hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1608uname -m = `(uname -m) 2>/dev/null || echo unknown`
1609uname -r = `(uname -r) 2>/dev/null || echo unknown`
1610uname -s = `(uname -s) 2>/dev/null || echo unknown`
1611uname -v = `(uname -v) 2>/dev/null || echo unknown`
1612
1613/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1614/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1615
1616/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1617/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1618/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1619/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1620/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1621/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1622/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1623
1624_ASUNAME
1625
1626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627for as_dir in $PATH
1628do
1629  IFS=$as_save_IFS
1630  test -z "$as_dir" && as_dir=.
1631  echo "PATH: $as_dir"
1632done
1633IFS=$as_save_IFS
1634
1635} >&5
1636
1637cat >&5 <<_ACEOF
1638
1639
1640## ----------- ##
1641## Core tests. ##
1642## ----------- ##
1643
1644_ACEOF
1645
1646
1647# Keep a trace of the command line.
1648# Strip out --no-create and --no-recursion so they do not pile up.
1649# Strip out --silent because we don't want to record it for future runs.
1650# Also quote any args containing shell meta-characters.
1651# Make two passes to allow for proper duplicate-argument suppression.
1652ac_configure_args=
1653ac_configure_args0=
1654ac_configure_args1=
1655ac_must_keep_next=false
1656for ac_pass in 1 2
1657do
1658  for ac_arg
1659  do
1660    case $ac_arg in
1661    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1662    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1663    | -silent | --silent | --silen | --sile | --sil)
1664      continue ;;
1665    *\'*)
1666      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1667    esac
1668    case $ac_pass in
1669    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1670    2)
1671      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1672      if test $ac_must_keep_next = true; then
1673	ac_must_keep_next=false # Got value, back to normal.
1674      else
1675	case $ac_arg in
1676	  *=* | --config-cache | -C | -disable-* | --disable-* \
1677	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1678	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1679	  | -with-* | --with-* | -without-* | --without-* | --x)
1680	    case "$ac_configure_args0 " in
1681	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1682	    esac
1683	    ;;
1684	  -* ) ac_must_keep_next=true ;;
1685	esac
1686      fi
1687      ac_configure_args="$ac_configure_args '$ac_arg'"
1688      ;;
1689    esac
1690  done
1691done
1692$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1693$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1694
1695# When interrupted or exit'd, cleanup temporary files, and complete
1696# config.log.  We remove comments because anyway the quotes in there
1697# would cause problems or look ugly.
1698# WARNING: Use '\'' to represent an apostrophe within the trap.
1699# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1700trap 'exit_status=$?
1701  # Save into config.log some information that might help in debugging.
1702  {
1703    echo
1704
1705    cat <<\_ASBOX
1706## ---------------- ##
1707## Cache variables. ##
1708## ---------------- ##
1709_ASBOX
1710    echo
1711    # The following way of writing the cache mishandles newlines in values,
1712(
1713  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1714    eval ac_val=\$$ac_var
1715    case $ac_val in #(
1716    *${as_nl}*)
1717      case $ac_var in #(
1718      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1719echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1720      esac
1721      case $ac_var in #(
1722      _ | IFS | as_nl) ;; #(
1723      *) $as_unset $ac_var ;;
1724      esac ;;
1725    esac
1726  done
1727  (set) 2>&1 |
1728    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1729    *${as_nl}ac_space=\ *)
1730      sed -n \
1731	"s/'\''/'\''\\\\'\'''\''/g;
1732	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1733      ;; #(
1734    *)
1735      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1736      ;;
1737    esac |
1738    sort
1739)
1740    echo
1741
1742    cat <<\_ASBOX
1743## ----------------- ##
1744## Output variables. ##
1745## ----------------- ##
1746_ASBOX
1747    echo
1748    for ac_var in $ac_subst_vars
1749    do
1750      eval ac_val=\$$ac_var
1751      case $ac_val in
1752      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1753      esac
1754      echo "$ac_var='\''$ac_val'\''"
1755    done | sort
1756    echo
1757
1758    if test -n "$ac_subst_files"; then
1759      cat <<\_ASBOX
1760## ------------------- ##
1761## File substitutions. ##
1762## ------------------- ##
1763_ASBOX
1764      echo
1765      for ac_var in $ac_subst_files
1766      do
1767	eval ac_val=\$$ac_var
1768	case $ac_val in
1769	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1770	esac
1771	echo "$ac_var='\''$ac_val'\''"
1772      done | sort
1773      echo
1774    fi
1775
1776    if test -s confdefs.h; then
1777      cat <<\_ASBOX
1778## ----------- ##
1779## confdefs.h. ##
1780## ----------- ##
1781_ASBOX
1782      echo
1783      cat confdefs.h
1784      echo
1785    fi
1786    test "$ac_signal" != 0 &&
1787      echo "$as_me: caught signal $ac_signal"
1788    echo "$as_me: exit $exit_status"
1789  } >&5
1790  rm -f core *.core core.conftest.* &&
1791    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1792    exit $exit_status
1793' 0
1794for ac_signal in 1 2 13 15; do
1795  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1796done
1797ac_signal=0
1798
1799# confdefs.h avoids OS command line length limits that DEFS can exceed.
1800rm -f -r conftest* confdefs.h
1801
1802# Predefined preprocessor variables.
1803
1804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_NAME "$PACKAGE_NAME"
1806_ACEOF
1807
1808
1809cat >>confdefs.h <<_ACEOF
1810#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1811_ACEOF
1812
1813
1814cat >>confdefs.h <<_ACEOF
1815#define PACKAGE_VERSION "$PACKAGE_VERSION"
1816_ACEOF
1817
1818
1819cat >>confdefs.h <<_ACEOF
1820#define PACKAGE_STRING "$PACKAGE_STRING"
1821_ACEOF
1822
1823
1824cat >>confdefs.h <<_ACEOF
1825#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1826_ACEOF
1827
1828
1829# Let the site file select an alternate cache file if it wants to.
1830# Prefer explicitly selected file to automatically selected ones.
1831if test -n "$CONFIG_SITE"; then
1832  set x "$CONFIG_SITE"
1833elif test "x$prefix" != xNONE; then
1834  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1835else
1836  set x "$ac_default_prefix/share/config.site" \
1837	"$ac_default_prefix/etc/config.site"
1838fi
1839shift
1840for ac_site_file
1841do
1842  if test -r "$ac_site_file"; then
1843    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1844echo "$as_me: loading site script $ac_site_file" >&6;}
1845    sed 's/^/| /' "$ac_site_file" >&5
1846    . "$ac_site_file"
1847  fi
1848done
1849
1850if test -r "$cache_file"; then
1851  # Some versions of bash will fail to source /dev/null (special
1852  # files actually), so we avoid doing that.
1853  if test -f "$cache_file"; then
1854    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1855echo "$as_me: loading cache $cache_file" >&6;}
1856    case $cache_file in
1857      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1858      *)                      . "./$cache_file";;
1859    esac
1860  fi
1861else
1862  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1863echo "$as_me: creating cache $cache_file" >&6;}
1864  >$cache_file
1865fi
1866
1867# Check that the precious variables saved in the cache have kept the same
1868# value.
1869ac_cache_corrupted=false
1870for ac_var in $ac_precious_vars; do
1871  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1872  eval ac_new_set=\$ac_env_${ac_var}_set
1873  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1874  eval ac_new_val=\$ac_env_${ac_var}_value
1875  case $ac_old_set,$ac_new_set in
1876    set,)
1877      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1878echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1879      ac_cache_corrupted=: ;;
1880    ,set)
1881      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1882echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1883      ac_cache_corrupted=: ;;
1884    ,);;
1885    *)
1886      if test "x$ac_old_val" != "x$ac_new_val"; then
1887	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1888echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1889	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1890echo "$as_me:   former value:  $ac_old_val" >&2;}
1891	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1892echo "$as_me:   current value: $ac_new_val" >&2;}
1893	ac_cache_corrupted=:
1894      fi;;
1895  esac
1896  # Pass precious variables to config.status.
1897  if test "$ac_new_set" = set; then
1898    case $ac_new_val in
1899    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1900    *) ac_arg=$ac_var=$ac_new_val ;;
1901    esac
1902    case " $ac_configure_args " in
1903      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1904      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1905    esac
1906  fi
1907done
1908if $ac_cache_corrupted; then
1909  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1910echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1911  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1912echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1913   { (exit 1); exit 1; }; }
1914fi
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932ac_ext=c
1933ac_cpp='$CPP $CPPFLAGS'
1934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936ac_compiler_gnu=$ac_cv_c_compiler_gnu
1937
1938
1939
1940am__api_version='1.10'
1941
1942ac_aux_dir=
1943for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1944  if test -f "$ac_dir/install-sh"; then
1945    ac_aux_dir=$ac_dir
1946    ac_install_sh="$ac_aux_dir/install-sh -c"
1947    break
1948  elif test -f "$ac_dir/install.sh"; then
1949    ac_aux_dir=$ac_dir
1950    ac_install_sh="$ac_aux_dir/install.sh -c"
1951    break
1952  elif test -f "$ac_dir/shtool"; then
1953    ac_aux_dir=$ac_dir
1954    ac_install_sh="$ac_aux_dir/shtool install -c"
1955    break
1956  fi
1957done
1958if test -z "$ac_aux_dir"; then
1959  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1960echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1961   { (exit 1); exit 1; }; }
1962fi
1963
1964# These three variables are undocumented and unsupported,
1965# and are intended to be withdrawn in a future Autoconf release.
1966# They can cause serious problems if a builder's source tree is in a directory
1967# whose full name contains unusual characters.
1968ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1969ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1970ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1971
1972
1973# Find a good install program.  We prefer a C program (faster),
1974# so one script is as good as another.  But avoid the broken or
1975# incompatible versions:
1976# SysV /etc/install, /usr/sbin/install
1977# SunOS /usr/etc/install
1978# IRIX /sbin/install
1979# AIX /bin/install
1980# AmigaOS /C/install, which installs bootblocks on floppy discs
1981# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1982# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1983# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1984# OS/2's system install, which has a completely different semantic
1985# ./install, which can be erroneously created by make from ./install.sh.
1986{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1987echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1988if test -z "$INSTALL"; then
1989if test "${ac_cv_path_install+set}" = set; then
1990  echo $ECHO_N "(cached) $ECHO_C" >&6
1991else
1992  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993for as_dir in $PATH
1994do
1995  IFS=$as_save_IFS
1996  test -z "$as_dir" && as_dir=.
1997  # Account for people who put trailing slashes in PATH elements.
1998case $as_dir/ in
1999  ./ | .// | /cC/* | \
2000  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2001  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2002  /usr/ucb/* ) ;;
2003  *)
2004    # OSF1 and SCO ODT 3.0 have their own names for install.
2005    # Don't use installbsd from OSF since it installs stuff as root
2006    # by default.
2007    for ac_prog in ginstall scoinst install; do
2008      for ac_exec_ext in '' $ac_executable_extensions; do
2009	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2010	  if test $ac_prog = install &&
2011	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2012	    # AIX install.  It has an incompatible calling convention.
2013	    :
2014	  elif test $ac_prog = install &&
2015	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2016	    # program-specific install script used by HP pwplus--don't use.
2017	    :
2018	  else
2019	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2020	    break 3
2021	  fi
2022	fi
2023      done
2024    done
2025    ;;
2026esac
2027done
2028IFS=$as_save_IFS
2029
2030
2031fi
2032  if test "${ac_cv_path_install+set}" = set; then
2033    INSTALL=$ac_cv_path_install
2034  else
2035    # As a last resort, use the slow shell script.  Don't cache a
2036    # value for INSTALL within a source directory, because that will
2037    # break other packages using the cache if that directory is
2038    # removed, or if the value is a relative name.
2039    INSTALL=$ac_install_sh
2040  fi
2041fi
2042{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2043echo "${ECHO_T}$INSTALL" >&6; }
2044
2045# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2046# It thinks the first close brace ends the variable substitution.
2047test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2048
2049test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2050
2051test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2052
2053{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2054echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2055# Just in case
2056sleep 1
2057echo timestamp > conftest.file
2058# Do `set' in a subshell so we don't clobber the current shell's
2059# arguments.  Must try -L first in case configure is actually a
2060# symlink; some systems play weird games with the mod time of symlinks
2061# (eg FreeBSD returns the mod time of the symlink's containing
2062# directory).
2063if (
2064   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2065   if test "$*" = "X"; then
2066      # -L didn't work.
2067      set X `ls -t $srcdir/configure conftest.file`
2068   fi
2069   rm -f conftest.file
2070   if test "$*" != "X $srcdir/configure conftest.file" \
2071      && test "$*" != "X conftest.file $srcdir/configure"; then
2072
2073      # If neither matched, then we have a broken ls.  This can happen
2074      # if, for instance, CONFIG_SHELL is bash and it inherits a
2075      # broken ls alias from the environment.  This has actually
2076      # happened.  Such a system could not be considered "sane".
2077      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2078alias in your environment" >&5
2079echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2080alias in your environment" >&2;}
2081   { (exit 1); exit 1; }; }
2082   fi
2083
2084   test "$2" = conftest.file
2085   )
2086then
2087   # Ok.
2088   :
2089else
2090   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2091Check your system clock" >&5
2092echo "$as_me: error: newly created file is older than distributed files!
2093Check your system clock" >&2;}
2094   { (exit 1); exit 1; }; }
2095fi
2096{ echo "$as_me:$LINENO: result: yes" >&5
2097echo "${ECHO_T}yes" >&6; }
2098test "$program_prefix" != NONE &&
2099  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2100# Use a double $ so make ignores it.
2101test "$program_suffix" != NONE &&
2102  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2103# Double any \ or $.  echo might interpret backslashes.
2104# By default was `s,x,x', remove it if useless.
2105cat <<\_ACEOF >conftest.sed
2106s/[\\$]/&&/g;s/;s,x,x,$//
2107_ACEOF
2108program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2109rm -f conftest.sed
2110
2111# expand $ac_aux_dir to an absolute path
2112am_aux_dir=`cd $ac_aux_dir && pwd`
2113
2114test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2115# Use eval to expand $SHELL
2116if eval "$MISSING --run true"; then
2117  am_missing_run="$MISSING --run "
2118else
2119  am_missing_run=
2120  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2121echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2122fi
2123
2124{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2125echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2126if test -z "$MKDIR_P"; then
2127  if test "${ac_cv_path_mkdir+set}" = set; then
2128  echo $ECHO_N "(cached) $ECHO_C" >&6
2129else
2130  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2132do
2133  IFS=$as_save_IFS
2134  test -z "$as_dir" && as_dir=.
2135  for ac_prog in mkdir gmkdir; do
2136	 for ac_exec_ext in '' $ac_executable_extensions; do
2137	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2138	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2139	     'mkdir (GNU coreutils) '* | \
2140	     'mkdir (coreutils) '* | \
2141	     'mkdir (fileutils) '4.1*)
2142	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2143	       break 3;;
2144	   esac
2145	 done
2146       done
2147done
2148IFS=$as_save_IFS
2149
2150fi
2151
2152  if test "${ac_cv_path_mkdir+set}" = set; then
2153    MKDIR_P="$ac_cv_path_mkdir -p"
2154  else
2155    # As a last resort, use the slow shell script.  Don't cache a
2156    # value for MKDIR_P within a source directory, because that will
2157    # break other packages using the cache if that directory is
2158    # removed, or if the value is a relative name.
2159    test -d ./--version && rmdir ./--version
2160    MKDIR_P="$ac_install_sh -d"
2161  fi
2162fi
2163{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2164echo "${ECHO_T}$MKDIR_P" >&6; }
2165
2166mkdir_p="$MKDIR_P"
2167case $mkdir_p in
2168  [\\/$]* | ?:[\\/]*) ;;
2169  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2170esac
2171
2172for ac_prog in gawk mawk nawk awk
2173do
2174  # Extract the first word of "$ac_prog", so it can be a program name with args.
2175set dummy $ac_prog; ac_word=$2
2176{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2178if test "${ac_cv_prog_AWK+set}" = set; then
2179  echo $ECHO_N "(cached) $ECHO_C" >&6
2180else
2181  if test -n "$AWK"; then
2182  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2183else
2184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185for as_dir in $PATH
2186do
2187  IFS=$as_save_IFS
2188  test -z "$as_dir" && as_dir=.
2189  for ac_exec_ext in '' $ac_executable_extensions; do
2190  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2191    ac_cv_prog_AWK="$ac_prog"
2192    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193    break 2
2194  fi
2195done
2196done
2197IFS=$as_save_IFS
2198
2199fi
2200fi
2201AWK=$ac_cv_prog_AWK
2202if test -n "$AWK"; then
2203  { echo "$as_me:$LINENO: result: $AWK" >&5
2204echo "${ECHO_T}$AWK" >&6; }
2205else
2206  { echo "$as_me:$LINENO: result: no" >&5
2207echo "${ECHO_T}no" >&6; }
2208fi
2209
2210
2211  test -n "$AWK" && break
2212done
2213
2214{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2215echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2216set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2217if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2218  echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220  cat >conftest.make <<\_ACEOF
2221SHELL = /bin/sh
2222all:
2223	@echo '@@@%%%=$(MAKE)=@@@%%%'
2224_ACEOF
2225# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2226case `${MAKE-make} -f conftest.make 2>/dev/null` in
2227  *@@@%%%=?*=@@@%%%*)
2228    eval ac_cv_prog_make_${ac_make}_set=yes;;
2229  *)
2230    eval ac_cv_prog_make_${ac_make}_set=no;;
2231esac
2232rm -f conftest.make
2233fi
2234if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2235  { echo "$as_me:$LINENO: result: yes" >&5
2236echo "${ECHO_T}yes" >&6; }
2237  SET_MAKE=
2238else
2239  { echo "$as_me:$LINENO: result: no" >&5
2240echo "${ECHO_T}no" >&6; }
2241  SET_MAKE="MAKE=${MAKE-make}"
2242fi
2243
2244rm -rf .tst 2>/dev/null
2245mkdir .tst 2>/dev/null
2246if test -d .tst; then
2247  am__leading_dot=.
2248else
2249  am__leading_dot=_
2250fi
2251rmdir .tst 2>/dev/null
2252
2253if test "`cd $srcdir && pwd`" != "`pwd`"; then
2254  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2255  # is not polluted with repeated "-I."
2256  am__isrc=' -I$(srcdir)'
2257  # test to see if srcdir already configured
2258  if test -f $srcdir/config.status; then
2259    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2260echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2261   { (exit 1); exit 1; }; }
2262  fi
2263fi
2264
2265# test whether we have cygpath
2266if test -z "$CYGPATH_W"; then
2267  if (cygpath --version) >/dev/null 2>/dev/null; then
2268    CYGPATH_W='cygpath -w'
2269  else
2270    CYGPATH_W=echo
2271  fi
2272fi
2273
2274
2275# Define the identity of the package.
2276 PACKAGE=libogg
2277 VERSION=1.1.4
2278
2279
2280cat >>confdefs.h <<_ACEOF
2281#define PACKAGE "$PACKAGE"
2282_ACEOF
2283
2284
2285cat >>confdefs.h <<_ACEOF
2286#define VERSION "$VERSION"
2287_ACEOF
2288
2289# Some tools Automake needs.
2290
2291ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2292
2293
2294AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2295
2296
2297AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2298
2299
2300AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2301
2302
2303MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2304
2305install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2306
2307# Installed binaries are usually stripped using `strip' when the user
2308# run `make install-strip'.  However `strip' might not be the right
2309# tool to use in cross-compilation environments, therefore Automake
2310# will honor the `STRIP' environment variable to overrule this program.
2311if test "$cross_compiling" != no; then
2312  if test -n "$ac_tool_prefix"; then
2313  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2314set dummy ${ac_tool_prefix}strip; ac_word=$2
2315{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2317if test "${ac_cv_prog_STRIP+set}" = set; then
2318  echo $ECHO_N "(cached) $ECHO_C" >&6
2319else
2320  if test -n "$STRIP"; then
2321  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2322else
2323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324for as_dir in $PATH
2325do
2326  IFS=$as_save_IFS
2327  test -z "$as_dir" && as_dir=.
2328  for ac_exec_ext in '' $ac_executable_extensions; do
2329  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2330    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2331    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332    break 2
2333  fi
2334done
2335done
2336IFS=$as_save_IFS
2337
2338fi
2339fi
2340STRIP=$ac_cv_prog_STRIP
2341if test -n "$STRIP"; then
2342  { echo "$as_me:$LINENO: result: $STRIP" >&5
2343echo "${ECHO_T}$STRIP" >&6; }
2344else
2345  { echo "$as_me:$LINENO: result: no" >&5
2346echo "${ECHO_T}no" >&6; }
2347fi
2348
2349
2350fi
2351if test -z "$ac_cv_prog_STRIP"; then
2352  ac_ct_STRIP=$STRIP
2353  # Extract the first word of "strip", so it can be a program name with args.
2354set dummy strip; ac_word=$2
2355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2357if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2358  echo $ECHO_N "(cached) $ECHO_C" >&6
2359else
2360  if test -n "$ac_ct_STRIP"; then
2361  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2362else
2363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364for as_dir in $PATH
2365do
2366  IFS=$as_save_IFS
2367  test -z "$as_dir" && as_dir=.
2368  for ac_exec_ext in '' $ac_executable_extensions; do
2369  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370    ac_cv_prog_ac_ct_STRIP="strip"
2371    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372    break 2
2373  fi
2374done
2375done
2376IFS=$as_save_IFS
2377
2378fi
2379fi
2380ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2381if test -n "$ac_ct_STRIP"; then
2382  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2383echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2384else
2385  { echo "$as_me:$LINENO: result: no" >&5
2386echo "${ECHO_T}no" >&6; }
2387fi
2388
2389  if test "x$ac_ct_STRIP" = x; then
2390    STRIP=":"
2391  else
2392    case $cross_compiling:$ac_tool_warned in
2393yes:)
2394{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2395whose name does not start with the host triplet.  If you think this
2396configuration is useful to you, please write to autoconf@gnu.org." >&5
2397echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2398whose name does not start with the host triplet.  If you think this
2399configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2400ac_tool_warned=yes ;;
2401esac
2402    STRIP=$ac_ct_STRIP
2403  fi
2404else
2405  STRIP="$ac_cv_prog_STRIP"
2406fi
2407
2408fi
2409INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2410
2411# We need awk for the "check" target.  The system "awk" is bad on
2412# some platforms.
2413# Always define AMTAR for backward compatibility.
2414
2415AMTAR=${AMTAR-"${am_missing_run}tar"}
2416
2417am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2418
2419
2420
2421
2422
2423{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2424echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2425    # Check whether --enable-maintainer-mode was given.
2426if test "${enable_maintainer_mode+set}" = set; then
2427  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2428else
2429  USE_MAINTAINER_MODE=no
2430fi
2431
2432  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2433echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2434   if test $USE_MAINTAINER_MODE = yes; then
2435  MAINTAINER_MODE_TRUE=
2436  MAINTAINER_MODE_FALSE='#'
2437else
2438  MAINTAINER_MODE_TRUE='#'
2439  MAINTAINER_MODE_FALSE=
2440fi
2441
2442  MAINT=$MAINTAINER_MODE_TRUE
2443
2444
2445
2446
2447LIB_CURRENT=6
2448LIB_REVISION=0
2449LIB_AGE=6
2450
2451
2452
2453
2454ac_ext=c
2455ac_cpp='$CPP $CPPFLAGS'
2456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2458ac_compiler_gnu=$ac_cv_c_compiler_gnu
2459if test -n "$ac_tool_prefix"; then
2460  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2461set dummy ${ac_tool_prefix}gcc; ac_word=$2
2462{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464if test "${ac_cv_prog_CC+set}" = set; then
2465  echo $ECHO_N "(cached) $ECHO_C" >&6
2466else
2467  if test -n "$CC"; then
2468  ac_cv_prog_CC="$CC" # Let the user override the test.
2469else
2470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471for as_dir in $PATH
2472do
2473  IFS=$as_save_IFS
2474  test -z "$as_dir" && as_dir=.
2475  for ac_exec_ext in '' $ac_executable_extensions; do
2476  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2478    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479    break 2
2480  fi
2481done
2482done
2483IFS=$as_save_IFS
2484
2485fi
2486fi
2487CC=$ac_cv_prog_CC
2488if test -n "$CC"; then
2489  { echo "$as_me:$LINENO: result: $CC" >&5
2490echo "${ECHO_T}$CC" >&6; }
2491else
2492  { echo "$as_me:$LINENO: result: no" >&5
2493echo "${ECHO_T}no" >&6; }
2494fi
2495
2496
2497fi
2498if test -z "$ac_cv_prog_CC"; then
2499  ac_ct_CC=$CC
2500  # Extract the first word of "gcc", so it can be a program name with args.
2501set dummy gcc; ac_word=$2
2502{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2505  echo $ECHO_N "(cached) $ECHO_C" >&6
2506else
2507  if test -n "$ac_ct_CC"; then
2508  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2509else
2510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511for as_dir in $PATH
2512do
2513  IFS=$as_save_IFS
2514  test -z "$as_dir" && as_dir=.
2515  for ac_exec_ext in '' $ac_executable_extensions; do
2516  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2517    ac_cv_prog_ac_ct_CC="gcc"
2518    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519    break 2
2520  fi
2521done
2522done
2523IFS=$as_save_IFS
2524
2525fi
2526fi
2527ac_ct_CC=$ac_cv_prog_ac_ct_CC
2528if test -n "$ac_ct_CC"; then
2529  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2530echo "${ECHO_T}$ac_ct_CC" >&6; }
2531else
2532  { echo "$as_me:$LINENO: result: no" >&5
2533echo "${ECHO_T}no" >&6; }
2534fi
2535
2536  if test "x$ac_ct_CC" = x; then
2537    CC=""
2538  else
2539    case $cross_compiling:$ac_tool_warned in
2540yes:)
2541{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2542whose name does not start with the host triplet.  If you think this
2543configuration is useful to you, please write to autoconf@gnu.org." >&5
2544echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2545whose name does not start with the host triplet.  If you think this
2546configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2547ac_tool_warned=yes ;;
2548esac
2549    CC=$ac_ct_CC
2550  fi
2551else
2552  CC="$ac_cv_prog_CC"
2553fi
2554
2555if test -z "$CC"; then
2556          if test -n "$ac_tool_prefix"; then
2557    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2558set dummy ${ac_tool_prefix}cc; ac_word=$2
2559{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2561if test "${ac_cv_prog_CC+set}" = set; then
2562  echo $ECHO_N "(cached) $ECHO_C" >&6
2563else
2564  if test -n "$CC"; then
2565  ac_cv_prog_CC="$CC" # Let the user override the test.
2566else
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    ac_cv_prog_CC="${ac_tool_prefix}cc"
2575    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576    break 2
2577  fi
2578done
2579done
2580IFS=$as_save_IFS
2581
2582fi
2583fi
2584CC=$ac_cv_prog_CC
2585if test -n "$CC"; then
2586  { echo "$as_me:$LINENO: result: $CC" >&5
2587echo "${ECHO_T}$CC" >&6; }
2588else
2589  { echo "$as_me:$LINENO: result: no" >&5
2590echo "${ECHO_T}no" >&6; }
2591fi
2592
2593
2594  fi
2595fi
2596if test -z "$CC"; then
2597  # Extract the first word of "cc", so it can be a program name with args.
2598set dummy cc; ac_word=$2
2599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2601if test "${ac_cv_prog_CC+set}" = set; then
2602  echo $ECHO_N "(cached) $ECHO_C" >&6
2603else
2604  if test -n "$CC"; then
2605  ac_cv_prog_CC="$CC" # Let the user override the test.
2606else
2607  ac_prog_rejected=no
2608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609for as_dir in $PATH
2610do
2611  IFS=$as_save_IFS
2612  test -z "$as_dir" && as_dir=.
2613  for ac_exec_ext in '' $ac_executable_extensions; do
2614  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2616       ac_prog_rejected=yes
2617       continue
2618     fi
2619    ac_cv_prog_CC="cc"
2620    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621    break 2
2622  fi
2623done
2624done
2625IFS=$as_save_IFS
2626
2627if test $ac_prog_rejected = yes; then
2628  # We found a bogon in the path, so make sure we never use it.
2629  set dummy $ac_cv_prog_CC
2630  shift
2631  if test $# != 0; then
2632    # We chose a different compiler from the bogus one.
2633    # However, it has the same basename, so the bogon will be chosen
2634    # first if we set CC to just the basename; use the full file name.
2635    shift
2636    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2637  fi
2638fi
2639fi
2640fi
2641CC=$ac_cv_prog_CC
2642if test -n "$CC"; then
2643  { echo "$as_me:$LINENO: result: $CC" >&5
2644echo "${ECHO_T}$CC" >&6; }
2645else
2646  { echo "$as_me:$LINENO: result: no" >&5
2647echo "${ECHO_T}no" >&6; }
2648fi
2649
2650
2651fi
2652if test -z "$CC"; then
2653  if test -n "$ac_tool_prefix"; then
2654  for ac_prog in cl.exe
2655  do
2656    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2657set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2660if test "${ac_cv_prog_CC+set}" = set; then
2661  echo $ECHO_N "(cached) $ECHO_C" >&6
2662else
2663  if test -n "$CC"; then
2664  ac_cv_prog_CC="$CC" # Let the user override the test.
2665else
2666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667for as_dir in $PATH
2668do
2669  IFS=$as_save_IFS
2670  test -z "$as_dir" && as_dir=.
2671  for ac_exec_ext in '' $ac_executable_extensions; do
2672  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2674    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675    break 2
2676  fi
2677done
2678done
2679IFS=$as_save_IFS
2680
2681fi
2682fi
2683CC=$ac_cv_prog_CC
2684if test -n "$CC"; then
2685  { echo "$as_me:$LINENO: result: $CC" >&5
2686echo "${ECHO_T}$CC" >&6; }
2687else
2688  { echo "$as_me:$LINENO: result: no" >&5
2689echo "${ECHO_T}no" >&6; }
2690fi
2691
2692
2693    test -n "$CC" && break
2694  done
2695fi
2696if test -z "$CC"; then
2697  ac_ct_CC=$CC
2698  for ac_prog in cl.exe
2699do
2700  # Extract the first word of "$ac_prog", so it can be a program name with args.
2701set dummy $ac_prog; ac_word=$2
2702{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2704if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2705  echo $ECHO_N "(cached) $ECHO_C" >&6
2706else
2707  if test -n "$ac_ct_CC"; then
2708  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2709else
2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711for as_dir in $PATH
2712do
2713  IFS=$as_save_IFS
2714  test -z "$as_dir" && as_dir=.
2715  for ac_exec_ext in '' $ac_executable_extensions; do
2716  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717    ac_cv_prog_ac_ct_CC="$ac_prog"
2718    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719    break 2
2720  fi
2721done
2722done
2723IFS=$as_save_IFS
2724
2725fi
2726fi
2727ac_ct_CC=$ac_cv_prog_ac_ct_CC
2728if test -n "$ac_ct_CC"; then
2729  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2730echo "${ECHO_T}$ac_ct_CC" >&6; }
2731else
2732  { echo "$as_me:$LINENO: result: no" >&5
2733echo "${ECHO_T}no" >&6; }
2734fi
2735
2736
2737  test -n "$ac_ct_CC" && break
2738done
2739
2740  if test "x$ac_ct_CC" = x; then
2741    CC=""
2742  else
2743    case $cross_compiling:$ac_tool_warned in
2744yes:)
2745{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2746whose name does not start with the host triplet.  If you think this
2747configuration is useful to you, please write to autoconf@gnu.org." >&5
2748echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2749whose name does not start with the host triplet.  If you think this
2750configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2751ac_tool_warned=yes ;;
2752esac
2753    CC=$ac_ct_CC
2754  fi
2755fi
2756
2757fi
2758
2759
2760test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2761See \`config.log' for more details." >&5
2762echo "$as_me: error: no acceptable C compiler found in \$PATH
2763See \`config.log' for more details." >&2;}
2764   { (exit 1); exit 1; }; }
2765
2766# Provide some information about the compiler.
2767echo "$as_me:$LINENO: checking for C compiler version" >&5
2768ac_compiler=`set X $ac_compile; echo $2`
2769{ (ac_try="$ac_compiler --version >&5"
2770case "(($ac_try" in
2771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772  *) ac_try_echo=$ac_try;;
2773esac
2774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775  (eval "$ac_compiler --version >&5") 2>&5
2776  ac_status=$?
2777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778  (exit $ac_status); }
2779{ (ac_try="$ac_compiler -v >&5"
2780case "(($ac_try" in
2781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782  *) ac_try_echo=$ac_try;;
2783esac
2784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785  (eval "$ac_compiler -v >&5") 2>&5
2786  ac_status=$?
2787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788  (exit $ac_status); }
2789{ (ac_try="$ac_compiler -V >&5"
2790case "(($ac_try" in
2791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792  *) ac_try_echo=$ac_try;;
2793esac
2794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795  (eval "$ac_compiler -V >&5") 2>&5
2796  ac_status=$?
2797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798  (exit $ac_status); }
2799
2800cat >conftest.$ac_ext <<_ACEOF
2801/* confdefs.h.  */
2802_ACEOF
2803cat confdefs.h >>conftest.$ac_ext
2804cat >>conftest.$ac_ext <<_ACEOF
2805/* end confdefs.h.  */
2806
2807int
2808main ()
2809{
2810
2811  ;
2812  return 0;
2813}
2814_ACEOF
2815ac_clean_files_save=$ac_clean_files
2816ac_clean_files="$ac_clean_files a.out a.exe b.out"
2817# Try to create an executable without -o first, disregard a.out.
2818# It will help us diagnose broken compilers, and finding out an intuition
2819# of exeext.
2820{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2821echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2822ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2823#
2824# List of possible output files, starting from the most likely.
2825# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2826# only as a last resort.  b.out is created by i960 compilers.
2827ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2828#
2829# The IRIX 6 linker writes into existing files which may not be
2830# executable, retaining their permissions.  Remove them first so a
2831# subsequent execution test works.
2832ac_rmfiles=
2833for ac_file in $ac_files
2834do
2835  case $ac_file in
2836    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2837    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2838  esac
2839done
2840rm -f $ac_rmfiles
2841
2842if { (ac_try="$ac_link_default"
2843case "(($ac_try" in
2844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845  *) ac_try_echo=$ac_try;;
2846esac
2847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848  (eval "$ac_link_default") 2>&5
2849  ac_status=$?
2850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851  (exit $ac_status); }; then
2852  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2853# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2854# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2855# so that the user can short-circuit this test for compilers unknown to
2856# Autoconf.
2857for ac_file in $ac_files ''
2858do
2859  test -f "$ac_file" || continue
2860  case $ac_file in
2861    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2862	;;
2863    [ab].out )
2864	# We found the default executable, but exeext='' is most
2865	# certainly right.
2866	break;;
2867    *.* )
2868        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2869	then :; else
2870	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2871	fi
2872	# We set ac_cv_exeext here because the later test for it is not
2873	# safe: cross compilers may not add the suffix if given an `-o'
2874	# argument, so we may need to know it at that point already.
2875	# Even if this section looks crufty: it has the advantage of
2876	# actually working.
2877	break;;
2878    * )
2879	break;;
2880  esac
2881done
2882test "$ac_cv_exeext" = no && ac_cv_exeext=
2883
2884else
2885  ac_file=''
2886fi
2887
2888{ echo "$as_me:$LINENO: result: $ac_file" >&5
2889echo "${ECHO_T}$ac_file" >&6; }
2890if test -z "$ac_file"; then
2891  echo "$as_me: failed program was:" >&5
2892sed 's/^/| /' conftest.$ac_ext >&5
2893
2894{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2895See \`config.log' for more details." >&5
2896echo "$as_me: error: C compiler cannot create executables
2897See \`config.log' for more details." >&2;}
2898   { (exit 77); exit 77; }; }
2899fi
2900
2901ac_exeext=$ac_cv_exeext
2902
2903# Check that the compiler produces executables we can run.  If not, either
2904# the compiler is broken, or we cross compile.
2905{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2906echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2907# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2908# If not cross compiling, check that we can run a simple program.
2909if test "$cross_compiling" != yes; then
2910  if { ac_try='./$ac_file'
2911  { (case "(($ac_try" in
2912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913  *) ac_try_echo=$ac_try;;
2914esac
2915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916  (eval "$ac_try") 2>&5
2917  ac_status=$?
2918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919  (exit $ac_status); }; }; then
2920    cross_compiling=no
2921  else
2922    if test "$cross_compiling" = maybe; then
2923	cross_compiling=yes
2924    else
2925	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2926If you meant to cross compile, use \`--host'.
2927See \`config.log' for more details." >&5
2928echo "$as_me: error: cannot run C compiled programs.
2929If you meant to cross compile, use \`--host'.
2930See \`config.log' for more details." >&2;}
2931   { (exit 1); exit 1; }; }
2932    fi
2933  fi
2934fi
2935{ echo "$as_me:$LINENO: result: yes" >&5
2936echo "${ECHO_T}yes" >&6; }
2937
2938rm -f a.out a.exe conftest$ac_cv_exeext b.out
2939ac_clean_files=$ac_clean_files_save
2940# Check that the compiler produces executables we can run.  If not, either
2941# the compiler is broken, or we cross compile.
2942{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2943echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2944{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2945echo "${ECHO_T}$cross_compiling" >&6; }
2946
2947{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2948echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2949if { (ac_try="$ac_link"
2950case "(($ac_try" in
2951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952  *) ac_try_echo=$ac_try;;
2953esac
2954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955  (eval "$ac_link") 2>&5
2956  ac_status=$?
2957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958  (exit $ac_status); }; then
2959  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2960# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2961# work properly (i.e., refer to `conftest.exe'), while it won't with
2962# `rm'.
2963for ac_file in conftest.exe conftest conftest.*; do
2964  test -f "$ac_file" || continue
2965  case $ac_file in
2966    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2967    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2968	  break;;
2969    * ) break;;
2970  esac
2971done
2972else
2973  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2974See \`config.log' for more details." >&5
2975echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2976See \`config.log' for more details." >&2;}
2977   { (exit 1); exit 1; }; }
2978fi
2979
2980rm -f conftest$ac_cv_exeext
2981{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2982echo "${ECHO_T}$ac_cv_exeext" >&6; }
2983
2984rm -f conftest.$ac_ext
2985EXEEXT=$ac_cv_exeext
2986ac_exeext=$EXEEXT
2987{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2988echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2989if test "${ac_cv_objext+set}" = set; then
2990  echo $ECHO_N "(cached) $ECHO_C" >&6
2991else
2992  cat >conftest.$ac_ext <<_ACEOF
2993/* confdefs.h.  */
2994_ACEOF
2995cat confdefs.h >>conftest.$ac_ext
2996cat >>conftest.$ac_ext <<_ACEOF
2997/* end confdefs.h.  */
2998
2999int
3000main ()
3001{
3002
3003  ;
3004  return 0;
3005}
3006_ACEOF
3007rm -f conftest.o conftest.obj
3008if { (ac_try="$ac_compile"
3009case "(($ac_try" in
3010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011  *) ac_try_echo=$ac_try;;
3012esac
3013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014  (eval "$ac_compile") 2>&5
3015  ac_status=$?
3016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017  (exit $ac_status); }; then
3018  for ac_file in conftest.o conftest.obj conftest.*; do
3019  test -f "$ac_file" || continue;
3020  case $ac_file in
3021    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3022    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3023       break;;
3024  esac
3025done
3026else
3027  echo "$as_me: failed program was:" >&5
3028sed 's/^/| /' conftest.$ac_ext >&5
3029
3030{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3031See \`config.log' for more details." >&5
3032echo "$as_me: error: cannot compute suffix of object files: cannot compile
3033See \`config.log' for more details." >&2;}
3034   { (exit 1); exit 1; }; }
3035fi
3036
3037rm -f conftest.$ac_cv_objext conftest.$ac_ext
3038fi
3039{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3040echo "${ECHO_T}$ac_cv_objext" >&6; }
3041OBJEXT=$ac_cv_objext
3042ac_objext=$OBJEXT
3043{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3044echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3045if test "${ac_cv_c_compiler_gnu+set}" = set; then
3046  echo $ECHO_N "(cached) $ECHO_C" >&6
3047else
3048  cat >conftest.$ac_ext <<_ACEOF
3049/* confdefs.h.  */
3050_ACEOF
3051cat confdefs.h >>conftest.$ac_ext
3052cat >>conftest.$ac_ext <<_ACEOF
3053/* end confdefs.h.  */
3054
3055int
3056main ()
3057{
3058#ifndef __GNUC__
3059       choke me
3060#endif
3061
3062  ;
3063  return 0;
3064}
3065_ACEOF
3066rm -f conftest.$ac_objext
3067if { (ac_try="$ac_compile"
3068case "(($ac_try" in
3069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070  *) ac_try_echo=$ac_try;;
3071esac
3072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073  (eval "$ac_compile") 2>conftest.er1
3074  ac_status=$?
3075  grep -v '^ *+' conftest.er1 >conftest.err
3076  rm -f conftest.er1
3077  cat conftest.err >&5
3078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079  (exit $ac_status); } && {
3080	 test -z "$ac_c_werror_flag" ||
3081	 test ! -s conftest.err
3082       } && test -s conftest.$ac_objext; then
3083  ac_compiler_gnu=yes
3084else
3085  echo "$as_me: failed program was:" >&5
3086sed 's/^/| /' conftest.$ac_ext >&5
3087
3088	ac_compiler_gnu=no
3089fi
3090
3091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092ac_cv_c_compiler_gnu=$ac_compiler_gnu
3093
3094fi
3095{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3096echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3097GCC=`test $ac_compiler_gnu = yes && echo yes`
3098ac_test_CFLAGS=${CFLAGS+set}
3099ac_save_CFLAGS=$CFLAGS
3100{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3101echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3102if test "${ac_cv_prog_cc_g+set}" = set; then
3103  echo $ECHO_N "(cached) $ECHO_C" >&6
3104else
3105  ac_save_c_werror_flag=$ac_c_werror_flag
3106   ac_c_werror_flag=yes
3107   ac_cv_prog_cc_g=no
3108   CFLAGS="-g"
3109   cat >conftest.$ac_ext <<_ACEOF
3110/* confdefs.h.  */
3111_ACEOF
3112cat confdefs.h >>conftest.$ac_ext
3113cat >>conftest.$ac_ext <<_ACEOF
3114/* end confdefs.h.  */
3115
3116int
3117main ()
3118{
3119
3120  ;
3121  return 0;
3122}
3123_ACEOF
3124rm -f conftest.$ac_objext
3125if { (ac_try="$ac_compile"
3126case "(($ac_try" in
3127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128  *) ac_try_echo=$ac_try;;
3129esac
3130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131  (eval "$ac_compile") 2>conftest.er1
3132  ac_status=$?
3133  grep -v '^ *+' conftest.er1 >conftest.err
3134  rm -f conftest.er1
3135  cat conftest.err >&5
3136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137  (exit $ac_status); } && {
3138	 test -z "$ac_c_werror_flag" ||
3139	 test ! -s conftest.err
3140       } && test -s conftest.$ac_objext; then
3141  ac_cv_prog_cc_g=yes
3142else
3143  echo "$as_me: failed program was:" >&5
3144sed 's/^/| /' conftest.$ac_ext >&5
3145
3146	CFLAGS=""
3147      cat >conftest.$ac_ext <<_ACEOF
3148/* confdefs.h.  */
3149_ACEOF
3150cat confdefs.h >>conftest.$ac_ext
3151cat >>conftest.$ac_ext <<_ACEOF
3152/* end confdefs.h.  */
3153
3154int
3155main ()
3156{
3157
3158  ;
3159  return 0;
3160}
3161_ACEOF
3162rm -f conftest.$ac_objext
3163if { (ac_try="$ac_compile"
3164case "(($ac_try" in
3165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166  *) ac_try_echo=$ac_try;;
3167esac
3168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169  (eval "$ac_compile") 2>conftest.er1
3170  ac_status=$?
3171  grep -v '^ *+' conftest.er1 >conftest.err
3172  rm -f conftest.er1
3173  cat conftest.err >&5
3174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175  (exit $ac_status); } && {
3176	 test -z "$ac_c_werror_flag" ||
3177	 test ! -s conftest.err
3178       } && test -s conftest.$ac_objext; then
3179  :
3180else
3181  echo "$as_me: failed program was:" >&5
3182sed 's/^/| /' conftest.$ac_ext >&5
3183
3184	ac_c_werror_flag=$ac_save_c_werror_flag
3185	 CFLAGS="-g"
3186	 cat >conftest.$ac_ext <<_ACEOF
3187/* confdefs.h.  */
3188_ACEOF
3189cat confdefs.h >>conftest.$ac_ext
3190cat >>conftest.$ac_ext <<_ACEOF
3191/* end confdefs.h.  */
3192
3193int
3194main ()
3195{
3196
3197  ;
3198  return 0;
3199}
3200_ACEOF
3201rm -f conftest.$ac_objext
3202if { (ac_try="$ac_compile"
3203case "(($ac_try" in
3204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205  *) ac_try_echo=$ac_try;;
3206esac
3207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208  (eval "$ac_compile") 2>conftest.er1
3209  ac_status=$?
3210  grep -v '^ *+' conftest.er1 >conftest.err
3211  rm -f conftest.er1
3212  cat conftest.err >&5
3213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214  (exit $ac_status); } && {
3215	 test -z "$ac_c_werror_flag" ||
3216	 test ! -s conftest.err
3217       } && test -s conftest.$ac_objext; then
3218  ac_cv_prog_cc_g=yes
3219else
3220  echo "$as_me: failed program was:" >&5
3221sed 's/^/| /' conftest.$ac_ext >&5
3222
3223
3224fi
3225
3226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227fi
3228
3229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230fi
3231
3232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233   ac_c_werror_flag=$ac_save_c_werror_flag
3234fi
3235{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3236echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3237if test "$ac_test_CFLAGS" = set; then
3238  CFLAGS=$ac_save_CFLAGS
3239elif test $ac_cv_prog_cc_g = yes; then
3240  if test "$GCC" = yes; then
3241    CFLAGS="-g -O2"
3242  else
3243    CFLAGS="-g"
3244  fi
3245else
3246  if test "$GCC" = yes; then
3247    CFLAGS="-O2"
3248  else
3249    CFLAGS=
3250  fi
3251fi
3252{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3253echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3254if test "${ac_cv_prog_cc_c89+set}" = set; then
3255  echo $ECHO_N "(cached) $ECHO_C" >&6
3256else
3257  ac_cv_prog_cc_c89=no
3258ac_save_CC=$CC
3259cat >conftest.$ac_ext <<_ACEOF
3260/* confdefs.h.  */
3261_ACEOF
3262cat confdefs.h >>conftest.$ac_ext
3263cat >>conftest.$ac_ext <<_ACEOF
3264/* end confdefs.h.  */
3265#include <stdarg.h>
3266#include <stdio.h>
3267#include <sys/types.h>
3268#include <sys/stat.h>
3269/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3270struct buf { int x; };
3271FILE * (*rcsopen) (struct buf *, struct stat *, int);
3272static char *e (p, i)
3273     char **p;
3274     int i;
3275{
3276  return p[i];
3277}
3278static char *f (char * (*g) (char **, int), char **p, ...)
3279{
3280  char *s;
3281  va_list v;
3282  va_start (v,p);
3283  s = g (p, va_arg (v,int));
3284  va_end (v);
3285  return s;
3286}
3287
3288/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3289   function prototypes and stuff, but not '\xHH' hex character constants.
3290   These don't provoke an error unfortunately, instead are silently treated
3291   as 'x'.  The following induces an error, until -std is added to get
3292   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3293   array size at least.  It's necessary to write '\x00'==0 to get something
3294   that's true only with -std.  */
3295int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3296
3297/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3298   inside strings and character constants.  */
3299#define FOO(x) 'x'
3300int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3301
3302int test (int i, double x);
3303struct s1 {int (*f) (int a);};
3304struct s2 {int (*f) (double a);};
3305int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3306int argc;
3307char **argv;
3308int
3309main ()
3310{
3311return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3312  ;
3313  return 0;
3314}
3315_ACEOF
3316for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3317	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3318do
3319  CC="$ac_save_CC $ac_arg"
3320  rm -f conftest.$ac_objext
3321if { (ac_try="$ac_compile"
3322case "(($ac_try" in
3323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324  *) ac_try_echo=$ac_try;;
3325esac
3326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327  (eval "$ac_compile") 2>conftest.er1
3328  ac_status=$?
3329  grep -v '^ *+' conftest.er1 >conftest.err
3330  rm -f conftest.er1
3331  cat conftest.err >&5
3332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333  (exit $ac_status); } && {
3334	 test -z "$ac_c_werror_flag" ||
3335	 test ! -s conftest.err
3336       } && test -s conftest.$ac_objext; then
3337  ac_cv_prog_cc_c89=$ac_arg
3338else
3339  echo "$as_me: failed program was:" >&5
3340sed 's/^/| /' conftest.$ac_ext >&5
3341
3342
3343fi
3344
3345rm -f core conftest.err conftest.$ac_objext
3346  test "x$ac_cv_prog_cc_c89" != "xno" && break
3347done
3348rm -f conftest.$ac_ext
3349CC=$ac_save_CC
3350
3351fi
3352# AC_CACHE_VAL
3353case "x$ac_cv_prog_cc_c89" in
3354  x)
3355    { echo "$as_me:$LINENO: result: none needed" >&5
3356echo "${ECHO_T}none needed" >&6; } ;;
3357  xno)
3358    { echo "$as_me:$LINENO: result: unsupported" >&5
3359echo "${ECHO_T}unsupported" >&6; } ;;
3360  *)
3361    CC="$CC $ac_cv_prog_cc_c89"
3362    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3363echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3364esac
3365
3366
3367ac_ext=c
3368ac_cpp='$CPP $CPPFLAGS'
3369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371ac_compiler_gnu=$ac_cv_c_compiler_gnu
3372DEPDIR="${am__leading_dot}deps"
3373
3374ac_config_commands="$ac_config_commands depfiles"
3375
3376
3377am_make=${MAKE-make}
3378cat > confinc << 'END'
3379am__doit:
3380	@echo done
3381.PHONY: am__doit
3382END
3383# If we don't find an include directive, just comment out the code.
3384{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3385echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3386am__include="#"
3387am__quote=
3388_am_result=none
3389# First try GNU make style include.
3390echo "include confinc" > confmf
3391# We grep out `Entering directory' and `Leaving directory'
3392# messages which can occur if `w' ends up in MAKEFLAGS.
3393# In particular we don't look at `^make:' because GNU make might
3394# be invoked under some other name (usually "gmake"), in which
3395# case it prints its new name instead of `make'.
3396if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3397   am__include=include
3398   am__quote=
3399   _am_result=GNU
3400fi
3401# Now try BSD make style include.
3402if test "$am__include" = "#"; then
3403   echo '.include "confinc"' > confmf
3404   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3405      am__include=.include
3406      am__quote="\""
3407      _am_result=BSD
3408   fi
3409fi
3410
3411
3412{ echo "$as_me:$LINENO: result: $_am_result" >&5
3413echo "${ECHO_T}$_am_result" >&6; }
3414rm -f confinc confmf
3415
3416# Check whether --enable-dependency-tracking was given.
3417if test "${enable_dependency_tracking+set}" = set; then
3418  enableval=$enable_dependency_tracking;
3419fi
3420
3421if test "x$enable_dependency_tracking" != xno; then
3422  am_depcomp="$ac_aux_dir/depcomp"
3423  AMDEPBACKSLASH='\'
3424fi
3425 if test "x$enable_dependency_tracking" != xno; then
3426  AMDEP_TRUE=
3427  AMDEP_FALSE='#'
3428else
3429  AMDEP_TRUE='#'
3430  AMDEP_FALSE=
3431fi
3432
3433
3434
3435depcc="$CC"   am_compiler_list=
3436
3437{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3438echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3439if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3440  echo $ECHO_N "(cached) $ECHO_C" >&6
3441else
3442  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3443  # We make a subdir and do the tests there.  Otherwise we can end up
3444  # making bogus files that we don't know about and never remove.  For
3445  # instance it was reported that on HP-UX the gcc test will end up
3446  # making a dummy file named `D' -- because `-MD' means `put the output
3447  # in D'.
3448  mkdir conftest.dir
3449  # Copy depcomp to subdir because otherwise we won't find it if we're
3450  # using a relative directory.
3451  cp "$am_depcomp" conftest.dir
3452  cd conftest.dir
3453  # We will build objects and dependencies in a subdirectory because
3454  # it helps to detect inapplicable dependency modes.  For instance
3455  # both Tru64's cc and ICC support -MD to output dependencies as a
3456  # side effect of compilation, but ICC will put the dependencies in
3457  # the current directory while Tru64 will put them in the object
3458  # directory.
3459  mkdir sub
3460
3461  am_cv_CC_dependencies_compiler_type=none
3462  if test "$am_compiler_list" = ""; then
3463     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3464  fi
3465  for depmode in $am_compiler_list; do
3466    # Setup a source with many dependencies, because some compilers
3467    # like to wrap large dependency lists on column 80 (with \), and
3468    # we should not choose a depcomp mode which is confused by this.
3469    #
3470    # We need to recreate these files for each test, as the compiler may
3471    # overwrite some of them when testing with obscure command lines.
3472    # This happens at least with the AIX C compiler.
3473    : > sub/conftest.c
3474    for i in 1 2 3 4 5 6; do
3475      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3476      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3477      # Solaris 8's {/usr,}/bin/sh.
3478      touch sub/conftst$i.h
3479    done
3480    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3481
3482    case $depmode in
3483    nosideeffect)
3484      # after this tag, mechanisms are not by side-effect, so they'll
3485      # only be used when explicitly requested
3486      if test "x$enable_dependency_tracking" = xyes; then
3487	continue
3488      else
3489	break
3490      fi
3491      ;;
3492    none) break ;;
3493    esac
3494    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3495    # mode.  It turns out that the SunPro C++ compiler does not properly
3496    # handle `-M -o', and we need to detect this.
3497    if depmode=$depmode \
3498       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3499       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3500       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3501         >/dev/null 2>conftest.err &&
3502       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3503       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3504       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3505       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3506      # icc doesn't choke on unknown options, it will just issue warnings
3507      # or remarks (even with -Werror).  So we grep stderr for any message
3508      # that says an option was ignored or not supported.
3509      # When given -MP, icc 7.0 and 7.1 complain thusly:
3510      #   icc: Command line warning: ignoring option '-M'; no argument required
3511      # The diagnosis changed in icc 8.0:
3512      #   icc: Command line remark: option '-MP' not supported
3513      if (grep 'ignoring option' conftest.err ||
3514          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3515        am_cv_CC_dependencies_compiler_type=$depmode
3516        break
3517      fi
3518    fi
3519  done
3520
3521  cd ..
3522  rm -rf conftest.dir
3523else
3524  am_cv_CC_dependencies_compiler_type=none
3525fi
3526
3527fi
3528{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3529echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3530CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3531
3532 if
3533  test "x$enable_dependency_tracking" != xno \
3534  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3535  am__fastdepCC_TRUE=
3536  am__fastdepCC_FALSE='#'
3537else
3538  am__fastdepCC_TRUE='#'
3539  am__fastdepCC_FALSE=
3540fi
3541
3542
3543# Check whether --enable-shared was given.
3544if test "${enable_shared+set}" = set; then
3545  enableval=$enable_shared; p=${PACKAGE-default}
3546    case $enableval in
3547    yes) enable_shared=yes ;;
3548    no) enable_shared=no ;;
3549    *)
3550      enable_shared=no
3551      # Look at the argument we got.  We use all the common list separators.
3552      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3553      for pkg in $enableval; do
3554	IFS="$lt_save_ifs"
3555	if test "X$pkg" = "X$p"; then
3556	  enable_shared=yes
3557	fi
3558      done
3559      IFS="$lt_save_ifs"
3560      ;;
3561    esac
3562else
3563  enable_shared=yes
3564fi
3565
3566
3567# Check whether --enable-static was given.
3568if test "${enable_static+set}" = set; then
3569  enableval=$enable_static; p=${PACKAGE-default}
3570    case $enableval in
3571    yes) enable_static=yes ;;
3572    no) enable_static=no ;;
3573    *)
3574     enable_static=no
3575      # Look at the argument we got.  We use all the common list separators.
3576      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3577      for pkg in $enableval; do
3578	IFS="$lt_save_ifs"
3579	if test "X$pkg" = "X$p"; then
3580	  enable_static=yes
3581	fi
3582      done
3583      IFS="$lt_save_ifs"
3584      ;;
3585    esac
3586else
3587  enable_static=yes
3588fi
3589
3590
3591# Check whether --enable-fast-install was given.
3592if test "${enable_fast_install+set}" = set; then
3593  enableval=$enable_fast_install; p=${PACKAGE-default}
3594    case $enableval in
3595    yes) enable_fast_install=yes ;;
3596    no) enable_fast_install=no ;;
3597    *)
3598      enable_fast_install=no
3599      # Look at the argument we got.  We use all the common list separators.
3600      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3601      for pkg in $enableval; do
3602	IFS="$lt_save_ifs"
3603	if test "X$pkg" = "X$p"; then
3604	  enable_fast_install=yes
3605	fi
3606      done
3607      IFS="$lt_save_ifs"
3608      ;;
3609    esac
3610else
3611  enable_fast_install=yes
3612fi
3613
3614
3615# Make sure we can run config.sub.
3616$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3617  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3618echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3619   { (exit 1); exit 1; }; }
3620
3621{ echo "$as_me:$LINENO: checking build system type" >&5
3622echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3623if test "${ac_cv_build+set}" = set; then
3624  echo $ECHO_N "(cached) $ECHO_C" >&6
3625else
3626  ac_build_alias=$build_alias
3627test "x$ac_build_alias" = x &&
3628  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3629test "x$ac_build_alias" = x &&
3630  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3631echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3632   { (exit 1); exit 1; }; }
3633ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3634  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3635echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3636   { (exit 1); exit 1; }; }
3637
3638fi
3639{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3640echo "${ECHO_T}$ac_cv_build" >&6; }
3641case $ac_cv_build in
3642*-*-*) ;;
3643*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3644echo "$as_me: error: invalid value of canonical build" >&2;}
3645   { (exit 1); exit 1; }; };;
3646esac
3647build=$ac_cv_build
3648ac_save_IFS=$IFS; IFS='-'
3649set x $ac_cv_build
3650shift
3651build_cpu=$1
3652build_vendor=$2
3653shift; shift
3654# Remember, the first character of IFS is used to create $*,
3655# except with old shells:
3656build_os=$*
3657IFS=$ac_save_IFS
3658case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3659
3660
3661{ echo "$as_me:$LINENO: checking host system type" >&5
3662echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3663if test "${ac_cv_host+set}" = set; then
3664  echo $ECHO_N "(cached) $ECHO_C" >&6
3665else
3666  if test "x$host_alias" = x; then
3667  ac_cv_host=$ac_cv_build
3668else
3669  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3670    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3671echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3672   { (exit 1); exit 1; }; }
3673fi
3674
3675fi
3676{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3677echo "${ECHO_T}$ac_cv_host" >&6; }
3678case $ac_cv_host in
3679*-*-*) ;;
3680*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3681echo "$as_me: error: invalid value of canonical host" >&2;}
3682   { (exit 1); exit 1; }; };;
3683esac
3684host=$ac_cv_host
3685ac_save_IFS=$IFS; IFS='-'
3686set x $ac_cv_host
3687shift
3688host_cpu=$1
3689host_vendor=$2
3690shift; shift
3691# Remember, the first character of IFS is used to create $*,
3692# except with old shells:
3693host_os=$*
3694IFS=$ac_save_IFS
3695case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3696
3697
3698{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3699echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3700if test "${lt_cv_path_SED+set}" = set; then
3701  echo $ECHO_N "(cached) $ECHO_C" >&6
3702else
3703  # Loop through the user's path and test for sed and gsed.
3704# Then use that list of sed's as ones to test for truncation.
3705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706for as_dir in $PATH
3707do
3708  IFS=$as_save_IFS
3709  test -z "$as_dir" && as_dir=.
3710  for lt_ac_prog in sed gsed; do
3711    for ac_exec_ext in '' $ac_executable_extensions; do
3712      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3713        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3714      fi
3715    done
3716  done
3717done
3718IFS=$as_save_IFS
3719lt_ac_max=0
3720lt_ac_count=0
3721# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3722# along with /bin/sed that truncates output.
3723for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3724  test ! -f $lt_ac_sed && continue
3725  cat /dev/null > conftest.in
3726  lt_ac_count=0
3727  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3728  # Check for GNU sed and select it if it is found.
3729  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3730    lt_cv_path_SED=$lt_ac_sed
3731    break
3732  fi
3733  while true; do
3734    cat conftest.in conftest.in >conftest.tmp
3735    mv conftest.tmp conftest.in
3736    cp conftest.in conftest.nl
3737    echo >>conftest.nl
3738    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3739    cmp -s conftest.out conftest.nl || break
3740    # 10000 chars as input seems more than enough
3741    test $lt_ac_count -gt 10 && break
3742    lt_ac_count=`expr $lt_ac_count + 1`
3743    if test $lt_ac_count -gt $lt_ac_max; then
3744      lt_ac_max=$lt_ac_count
3745      lt_cv_path_SED=$lt_ac_sed
3746    fi
3747  done
3748done
3749
3750fi
3751
3752SED=$lt_cv_path_SED
3753
3754{ echo "$as_me:$LINENO: result: $SED" >&5
3755echo "${ECHO_T}$SED" >&6; }
3756
3757{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3758echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3759if test "${ac_cv_path_GREP+set}" = set; then
3760  echo $ECHO_N "(cached) $ECHO_C" >&6
3761else
3762  # Extract the first word of "grep ggrep" to use in msg output
3763if test -z "$GREP"; then
3764set dummy grep ggrep; ac_prog_name=$2
3765if test "${ac_cv_path_GREP+set}" = set; then
3766  echo $ECHO_N "(cached) $ECHO_C" >&6
3767else
3768  ac_path_GREP_found=false
3769# Loop through the user's path and test for each of PROGNAME-LIST
3770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3772do
3773  IFS=$as_save_IFS
3774  test -z "$as_dir" && as_dir=.
3775  for ac_prog in grep ggrep; do
3776  for ac_exec_ext in '' $ac_executable_extensions; do
3777    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3778    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3779    # Check for GNU ac_path_GREP and select it if it is found.
3780  # Check for GNU $ac_path_GREP
3781case `"$ac_path_GREP" --version 2>&1` in
3782*GNU*)
3783  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3784*)
3785  ac_count=0
3786  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3787  while :
3788  do
3789    cat "conftest.in" "conftest.in" >"conftest.tmp"
3790    mv "conftest.tmp" "conftest.in"
3791    cp "conftest.in" "conftest.nl"
3792    echo 'GREP' >> "conftest.nl"
3793    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3794    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3795    ac_count=`expr $ac_count + 1`
3796    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3797      # Best one so far, save it but keep looking for a better one
3798      ac_cv_path_GREP="$ac_path_GREP"
3799      ac_path_GREP_max=$ac_count
3800    fi
3801    # 10*(2^10) chars as input seems more than enough
3802    test $ac_count -gt 10 && break
3803  done
3804  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3805esac
3806
3807
3808    $ac_path_GREP_found && break 3
3809  done
3810done
3811
3812done
3813IFS=$as_save_IFS
3814
3815
3816fi
3817
3818GREP="$ac_cv_path_GREP"
3819if test -z "$GREP"; then
3820  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3821echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3822   { (exit 1); exit 1; }; }
3823fi
3824
3825else
3826  ac_cv_path_GREP=$GREP
3827fi
3828
3829
3830fi
3831{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3832echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3833 GREP="$ac_cv_path_GREP"
3834
3835
3836{ echo "$as_me:$LINENO: checking for egrep" >&5
3837echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3838if test "${ac_cv_path_EGREP+set}" = set; then
3839  echo $ECHO_N "(cached) $ECHO_C" >&6
3840else
3841  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3842   then ac_cv_path_EGREP="$GREP -E"
3843   else
3844     # Extract the first word of "egrep" to use in msg output
3845if test -z "$EGREP"; then
3846set dummy egrep; ac_prog_name=$2
3847if test "${ac_cv_path_EGREP+set}" = set; then
3848  echo $ECHO_N "(cached) $ECHO_C" >&6
3849else
3850  ac_path_EGREP_found=false
3851# Loop through the user's path and test for each of PROGNAME-LIST
3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3854do
3855  IFS=$as_save_IFS
3856  test -z "$as_dir" && as_dir=.
3857  for ac_prog in egrep; do
3858  for ac_exec_ext in '' $ac_executable_extensions; do
3859    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3860    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3861    # Check for GNU ac_path_EGREP and select it if it is found.
3862  # Check for GNU $ac_path_EGREP
3863case `"$ac_path_EGREP" --version 2>&1` in
3864*GNU*)
3865  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3866*)
3867  ac_count=0
3868  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3869  while :
3870  do
3871    cat "conftest.in" "conftest.in" >"conftest.tmp"
3872    mv "conftest.tmp" "conftest.in"
3873    cp "conftest.in" "conftest.nl"
3874    echo 'EGREP' >> "conftest.nl"
3875    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3876    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3877    ac_count=`expr $ac_count + 1`
3878    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3879      # Best one so far, save it but keep looking for a better one
3880      ac_cv_path_EGREP="$ac_path_EGREP"
3881      ac_path_EGREP_max=$ac_count
3882    fi
3883    # 10*(2^10) chars as input seems more than enough
3884    test $ac_count -gt 10 && break
3885  done
3886  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3887esac
3888
3889
3890    $ac_path_EGREP_found && break 3
3891  done
3892done
3893
3894done
3895IFS=$as_save_IFS
3896
3897
3898fi
3899
3900EGREP="$ac_cv_path_EGREP"
3901if test -z "$EGREP"; then
3902  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3903echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3904   { (exit 1); exit 1; }; }
3905fi
3906
3907else
3908  ac_cv_path_EGREP=$EGREP
3909fi
3910
3911
3912   fi
3913fi
3914{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3915echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3916 EGREP="$ac_cv_path_EGREP"
3917
3918
3919
3920# Check whether --with-gnu-ld was given.
3921if test "${with_gnu_ld+set}" = set; then
3922  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3923else
3924  with_gnu_ld=no
3925fi
3926
3927ac_prog=ld
3928if test "$GCC" = yes; then
3929  # Check if gcc -print-prog-name=ld gives a path.
3930  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3931echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3932  case $host in
3933  *-*-mingw*)
3934    # gcc leaves a trailing carriage return which upsets mingw
3935    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3936  *)
3937    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3938  esac
3939  case $ac_prog in
3940    # Accept absolute paths.
3941    [\\/]* | ?:[\\/]*)
3942      re_direlt='/[^/][^/]*/\.\./'
3943      # Canonicalize the pathname of ld
3944      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3945      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3946	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3947      done
3948      test -z "$LD" && LD="$ac_prog"
3949      ;;
3950  "")
3951    # If it fails, then pretend we aren't using GCC.
3952    ac_prog=ld
3953    ;;
3954  *)
3955    # If it is relative, then search for the first ld in PATH.
3956    with_gnu_ld=unknown
3957    ;;
3958  esac
3959elif test "$with_gnu_ld" = yes; then
3960  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3961echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3962else
3963  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3964echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3965fi
3966if test "${lt_cv_path_LD+set}" = set; then
3967  echo $ECHO_N "(cached) $ECHO_C" >&6
3968else
3969  if test -z "$LD"; then
3970  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3971  for ac_dir in $PATH; do
3972    IFS="$lt_save_ifs"
3973    test -z "$ac_dir" && ac_dir=.
3974    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3975      lt_cv_path_LD="$ac_dir/$ac_prog"
3976      # Check to see if the program is GNU ld.  I'd rather use --version,
3977      # but apparently some variants of GNU ld only accept -v.
3978      # Break only if it was the GNU/non-GNU ld that we prefer.
3979      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3980      *GNU* | *'with BFD'*)
3981	test "$with_gnu_ld" != no && break
3982	;;
3983      *)
3984	test "$with_gnu_ld" != yes && break
3985	;;
3986      esac
3987    fi
3988  done
3989  IFS="$lt_save_ifs"
3990else
3991  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3992fi
3993fi
3994
3995LD="$lt_cv_path_LD"
3996if test -n "$LD"; then
3997  { echo "$as_me:$LINENO: result: $LD" >&5
3998echo "${ECHO_T}$LD" >&6; }
3999else
4000  { echo "$as_me:$LINENO: result: no" >&5
4001echo "${ECHO_T}no" >&6; }
4002fi
4003test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4004echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4005   { (exit 1); exit 1; }; }
4006{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4007echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4008if test "${lt_cv_prog_gnu_ld+set}" = set; then
4009  echo $ECHO_N "(cached) $ECHO_C" >&6
4010else
4011  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4012case `$LD -v 2>&1 </dev/null` in
4013*GNU* | *'with BFD'*)
4014  lt_cv_prog_gnu_ld=yes
4015  ;;
4016*)
4017  lt_cv_prog_gnu_ld=no
4018  ;;
4019esac
4020fi
4021{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4022echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4023with_gnu_ld=$lt_cv_prog_gnu_ld
4024
4025
4026{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4027echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4028if test "${lt_cv_ld_reload_flag+set}" = set; then
4029  echo $ECHO_N "(cached) $ECHO_C" >&6
4030else
4031  lt_cv_ld_reload_flag='-r'
4032fi
4033{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4034echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4035reload_flag=$lt_cv_ld_reload_flag
4036case $reload_flag in
4037"" | " "*) ;;
4038*) reload_flag=" $reload_flag" ;;
4039esac
4040reload_cmds='$LD$reload_flag -o $output$reload_objs'
4041case $host_os in
4042  darwin*)
4043    if test "$GCC" = yes; then
4044      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4045    else
4046      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4047    fi
4048    ;;
4049esac
4050
4051{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4052echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4053if test "${lt_cv_path_NM+set}" = set; then
4054  echo $ECHO_N "(cached) $ECHO_C" >&6
4055else
4056  if test -n "$NM"; then
4057  # Let the user override the test.
4058  lt_cv_path_NM="$NM"
4059else
4060  lt_nm_to_check="${ac_tool_prefix}nm"
4061  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4062    lt_nm_to_check="$lt_nm_to_check nm"
4063  fi
4064  for lt_tmp_nm in $lt_nm_to_check; do
4065    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4066    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4067      IFS="$lt_save_ifs"
4068      test -z "$ac_dir" && ac_dir=.
4069      tmp_nm="$ac_dir/$lt_tmp_nm"
4070      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4071	# Check to see if the nm accepts a BSD-compat flag.
4072	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4073	#   nm: unknown option "B" ignored
4074	# Tru64's nm complains that /dev/null is an invalid object file
4075	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4076	*/dev/null* | *'Invalid file or object type'*)
4077	  lt_cv_path_NM="$tmp_nm -B"
4078	  break
4079	  ;;
4080	*)
4081	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4082	  */dev/null*)
4083	    lt_cv_path_NM="$tmp_nm -p"
4084	    break
4085	    ;;
4086	  *)
4087	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4088	    continue # so that we can try to find one that supports BSD flags
4089	    ;;
4090	  esac
4091	  ;;
4092	esac
4093      fi
4094    done
4095    IFS="$lt_save_ifs"
4096  done
4097  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4098fi
4099fi
4100{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4101echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4102NM="$lt_cv_path_NM"
4103
4104{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4105echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4106LN_S=$as_ln_s
4107if test "$LN_S" = "ln -s"; then
4108  { echo "$as_me:$LINENO: result: yes" >&5
4109echo "${ECHO_T}yes" >&6; }
4110else
4111  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4112echo "${ECHO_T}no, using $LN_S" >&6; }
4113fi
4114
4115{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4116echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4117if test "${lt_cv_deplibs_check_method+set}" = set; then
4118  echo $ECHO_N "(cached) $ECHO_C" >&6
4119else
4120  lt_cv_file_magic_cmd='$MAGIC_CMD'
4121lt_cv_file_magic_test_file=
4122lt_cv_deplibs_check_method='unknown'
4123# Need to set the preceding variable on all platforms that support
4124# interlibrary dependencies.
4125# 'none' -- dependencies not supported.
4126# `unknown' -- same as none, but documents that we really don't know.
4127# 'pass_all' -- all dependencies passed with no checks.
4128# 'test_compile' -- check by making test program.
4129# 'file_magic [[regex]]' -- check by looking for files in library path
4130# which responds to the $file_magic_cmd with a given extended regex.
4131# If you have `file' or equivalent on your system and you're not sure
4132# whether `pass_all' will *always* work, you probably want this one.
4133
4134case $host_os in
4135aix[4-9]*)
4136  lt_cv_deplibs_check_method=pass_all
4137  ;;
4138
4139beos*)
4140  lt_cv_deplibs_check_method=pass_all
4141  ;;
4142
4143bsdi[45]*)
4144  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4145  lt_cv_file_magic_cmd='/usr/bin/file -L'
4146  lt_cv_file_magic_test_file=/shlib/libc.so
4147  ;;
4148
4149cygwin*)
4150  # func_win32_libid is a shell function defined in ltmain.sh
4151  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4152  lt_cv_file_magic_cmd='func_win32_libid'
4153  ;;
4154
4155mingw* | pw32*)
4156  # Base MSYS/MinGW do not provide the 'file' command needed by
4157  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4158  # unless we find 'file', for example because we are cross-compiling.
4159  if ( file / ) >/dev/null 2>&1; then
4160    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4161    lt_cv_file_magic_cmd='func_win32_libid'
4162  else
4163    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4164    lt_cv_file_magic_cmd='$OBJDUMP -f'
4165  fi
4166  ;;
4167
4168darwin* | rhapsody*)
4169  lt_cv_deplibs_check_method=pass_all
4170  ;;
4171
4172freebsd* | dragonfly*)
4173  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4174    case $host_cpu in
4175    i*86 )
4176      # Not sure whether the presence of OpenBSD here was a mistake.
4177      # Let's accept both of them until this is cleared up.
4178      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4179      lt_cv_file_magic_cmd=/usr/bin/file
4180      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4181      ;;
4182    esac
4183  else
4184    lt_cv_deplibs_check_method=pass_all
4185  fi
4186  ;;
4187
4188gnu*)
4189  lt_cv_deplibs_check_method=pass_all
4190  ;;
4191
4192hpux10.20* | hpux11*)
4193  lt_cv_file_magic_cmd=/usr/bin/file
4194  case $host_cpu in
4195  ia64*)
4196    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4197    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4198    ;;
4199  hppa*64*)
4200    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]'
4201    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4202    ;;
4203  *)
4204    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4205    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4206    ;;
4207  esac
4208  ;;
4209
4210interix[3-9]*)
4211  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4212  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4213  ;;
4214
4215irix5* | irix6* | nonstopux*)
4216  case $LD in
4217  *-32|*"-32 ") libmagic=32-bit;;
4218  *-n32|*"-n32 ") libmagic=N32;;
4219  *-64|*"-64 ") libmagic=64-bit;;
4220  *) libmagic=never-match;;
4221  esac
4222  lt_cv_deplibs_check_method=pass_all
4223  ;;
4224
4225# This must be Linux ELF.
4226linux* | k*bsd*-gnu)
4227  lt_cv_deplibs_check_method=pass_all
4228  ;;
4229
4230netbsd* | netbsdelf*-gnu)
4231  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4232    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4233  else
4234    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4235  fi
4236  ;;
4237
4238newos6*)
4239  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4240  lt_cv_file_magic_cmd=/usr/bin/file
4241  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4242  ;;
4243
4244nto-qnx*)
4245  lt_cv_deplibs_check_method=unknown
4246  ;;
4247
4248openbsd*)
4249  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4250    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4251  else
4252    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4253  fi
4254  ;;
4255
4256osf3* | osf4* | osf5*)
4257  lt_cv_deplibs_check_method=pass_all
4258  ;;
4259
4260rdos*)
4261  lt_cv_deplibs_check_method=pass_all
4262  ;;
4263
4264solaris*)
4265  lt_cv_deplibs_check_method=pass_all
4266  ;;
4267
4268sysv4 | sysv4.3*)
4269  case $host_vendor in
4270  motorola)
4271    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]'
4272    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4273    ;;
4274  ncr)
4275    lt_cv_deplibs_check_method=pass_all
4276    ;;
4277  sequent)
4278    lt_cv_file_magic_cmd='/bin/file'
4279    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4280    ;;
4281  sni)
4282    lt_cv_file_magic_cmd='/bin/file'
4283    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4284    lt_cv_file_magic_test_file=/lib/libc.so
4285    ;;
4286  siemens)
4287    lt_cv_deplibs_check_method=pass_all
4288    ;;
4289  pc)
4290    lt_cv_deplibs_check_method=pass_all
4291    ;;
4292  esac
4293  ;;
4294
4295sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4296  lt_cv_deplibs_check_method=pass_all
4297  ;;
4298esac
4299
4300fi
4301{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4302echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4303file_magic_cmd=$lt_cv_file_magic_cmd
4304deplibs_check_method=$lt_cv_deplibs_check_method
4305test -z "$deplibs_check_method" && deplibs_check_method=unknown
4306
4307
4308
4309
4310# If no C compiler was specified, use CC.
4311LTCC=${LTCC-"$CC"}
4312
4313# If no C compiler flags were specified, use CFLAGS.
4314LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4315
4316# Allow CC to be a program name with arguments.
4317compiler=$CC
4318
4319
4320# Check whether --enable-libtool-lock was given.
4321if test "${enable_libtool_lock+set}" = set; then
4322  enableval=$enable_libtool_lock;
4323fi
4324
4325test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4326
4327# Some flags need to be propagated to the compiler or linker for good
4328# libtool support.
4329case $host in
4330ia64-*-hpux*)
4331  # Find out which ABI we are using.
4332  echo 'int i;' > conftest.$ac_ext
4333  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4334  (eval $ac_compile) 2>&5
4335  ac_status=$?
4336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337  (exit $ac_status); }; then
4338    case `/usr/bin/file conftest.$ac_objext` in
4339    *ELF-32*)
4340      HPUX_IA64_MODE="32"
4341      ;;
4342    *ELF-64*)
4343      HPUX_IA64_MODE="64"
4344      ;;
4345    esac
4346  fi
4347  rm -rf conftest*
4348  ;;
4349*-*-irix6*)
4350  # Find out which ABI we are using.
4351  echo '#line 4351 "configure"' > conftest.$ac_ext
4352  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4353  (eval $ac_compile) 2>&5
4354  ac_status=$?
4355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356  (exit $ac_status); }; then
4357   if test "$lt_cv_prog_gnu_ld" = yes; then
4358    case `/usr/bin/file conftest.$ac_objext` in
4359    *32-bit*)
4360      LD="${LD-ld} -melf32bsmip"
4361      ;;
4362    *N32*)
4363      LD="${LD-ld} -melf32bmipn32"
4364      ;;
4365    *64-bit*)
4366      LD="${LD-ld} -melf64bmip"
4367      ;;
4368    esac
4369   else
4370    case `/usr/bin/file conftest.$ac_objext` in
4371    *32-bit*)
4372      LD="${LD-ld} -32"
4373      ;;
4374    *N32*)
4375      LD="${LD-ld} -n32"
4376      ;;
4377    *64-bit*)
4378      LD="${LD-ld} -64"
4379      ;;
4380    esac
4381   fi
4382  fi
4383  rm -rf conftest*
4384  ;;
4385
4386x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4387s390*-*linux*|sparc*-*linux*)
4388  # Find out which ABI we are using.
4389  echo 'int i;' > conftest.$ac_ext
4390  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4391  (eval $ac_compile) 2>&5
4392  ac_status=$?
4393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394  (exit $ac_status); }; then
4395    case `/usr/bin/file conftest.o` in
4396    *32-bit*)
4397      case $host in
4398        x86_64-*kfreebsd*-gnu)
4399          LD="${LD-ld} -m elf_i386_fbsd"
4400          ;;
4401        x86_64-*linux*)
4402          LD="${LD-ld} -m elf_i386"
4403          ;;
4404        ppc64-*linux*|powerpc64-*linux*)
4405          LD="${LD-ld} -m elf32ppclinux"
4406          ;;
4407        s390x-*linux*)
4408          LD="${LD-ld} -m elf_s390"
4409          ;;
4410        sparc64-*linux*)
4411          LD="${LD-ld} -m elf32_sparc"
4412          ;;
4413      esac
4414      ;;
4415    *64-bit*)
4416      case $host in
4417        x86_64-*kfreebsd*-gnu)
4418          LD="${LD-ld} -m elf_x86_64_fbsd"
4419          ;;
4420        x86_64-*linux*)
4421          LD="${LD-ld} -m elf_x86_64"
4422          ;;
4423        ppc*-*linux*|powerpc*-*linux*)
4424          LD="${LD-ld} -m elf64ppc"
4425          ;;
4426        s390*-*linux*)
4427          LD="${LD-ld} -m elf64_s390"
4428          ;;
4429        sparc*-*linux*)
4430          LD="${LD-ld} -m elf64_sparc"
4431          ;;
4432      esac
4433      ;;
4434    esac
4435  fi
4436  rm -rf conftest*
4437  ;;
4438
4439*-*-sco3.2v5*)
4440  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4441  SAVE_CFLAGS="$CFLAGS"
4442  CFLAGS="$CFLAGS -belf"
4443  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4444echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4445if test "${lt_cv_cc_needs_belf+set}" = set; then
4446  echo $ECHO_N "(cached) $ECHO_C" >&6
4447else
4448  ac_ext=c
4449ac_cpp='$CPP $CPPFLAGS'
4450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453
4454     cat >conftest.$ac_ext <<_ACEOF
4455/* confdefs.h.  */
4456_ACEOF
4457cat confdefs.h >>conftest.$ac_ext
4458cat >>conftest.$ac_ext <<_ACEOF
4459/* end confdefs.h.  */
4460
4461int
4462main ()
4463{
4464
4465  ;
4466  return 0;
4467}
4468_ACEOF
4469rm -f conftest.$ac_objext conftest$ac_exeext
4470if { (ac_try="$ac_link"
4471case "(($ac_try" in
4472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473  *) ac_try_echo=$ac_try;;
4474esac
4475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476  (eval "$ac_link") 2>conftest.er1
4477  ac_status=$?
4478  grep -v '^ *+' conftest.er1 >conftest.err
4479  rm -f conftest.er1
4480  cat conftest.err >&5
4481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482  (exit $ac_status); } && {
4483	 test -z "$ac_c_werror_flag" ||
4484	 test ! -s conftest.err
4485       } && test -s conftest$ac_exeext &&
4486       $as_test_x conftest$ac_exeext; then
4487  lt_cv_cc_needs_belf=yes
4488else
4489  echo "$as_me: failed program was:" >&5
4490sed 's/^/| /' conftest.$ac_ext >&5
4491
4492	lt_cv_cc_needs_belf=no
4493fi
4494
4495rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4496      conftest$ac_exeext conftest.$ac_ext
4497     ac_ext=c
4498ac_cpp='$CPP $CPPFLAGS'
4499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501ac_compiler_gnu=$ac_cv_c_compiler_gnu
4502
4503fi
4504{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4505echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4506  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4507    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4508    CFLAGS="$SAVE_CFLAGS"
4509  fi
4510  ;;
4511sparc*-*solaris*)
4512  # Find out which ABI we are using.
4513  echo 'int i;' > conftest.$ac_ext
4514  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4515  (eval $ac_compile) 2>&5
4516  ac_status=$?
4517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518  (exit $ac_status); }; then
4519    case `/usr/bin/file conftest.o` in
4520    *64-bit*)
4521      case $lt_cv_prog_gnu_ld in
4522      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4523      *)
4524        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4525	  LD="${LD-ld} -64"
4526	fi
4527	;;
4528      esac
4529      ;;
4530    esac
4531  fi
4532  rm -rf conftest*
4533  ;;
4534
4535
4536esac
4537
4538need_locks="$enable_libtool_lock"
4539
4540
4541ac_ext=c
4542ac_cpp='$CPP $CPPFLAGS'
4543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4545ac_compiler_gnu=$ac_cv_c_compiler_gnu
4546{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4547echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4548# On Suns, sometimes $CPP names a directory.
4549if test -n "$CPP" && test -d "$CPP"; then
4550  CPP=
4551fi
4552if test -z "$CPP"; then
4553  if test "${ac_cv_prog_CPP+set}" = set; then
4554  echo $ECHO_N "(cached) $ECHO_C" >&6
4555else
4556      # Double quotes because CPP needs to be expanded
4557    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4558    do
4559      ac_preproc_ok=false
4560for ac_c_preproc_warn_flag in '' yes
4561do
4562  # Use a header file that comes with gcc, so configuring glibc
4563  # with a fresh cross-compiler works.
4564  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4565  # <limits.h> exists even on freestanding compilers.
4566  # On the NeXT, cc -E runs the code through the compiler's parser,
4567  # not just through cpp. "Syntax error" is here to catch this case.
4568  cat >conftest.$ac_ext <<_ACEOF
4569/* confdefs.h.  */
4570_ACEOF
4571cat confdefs.h >>conftest.$ac_ext
4572cat >>conftest.$ac_ext <<_ACEOF
4573/* end confdefs.h.  */
4574#ifdef __STDC__
4575# include <limits.h>
4576#else
4577# include <assert.h>
4578#endif
4579		     Syntax error
4580_ACEOF
4581if { (ac_try="$ac_cpp conftest.$ac_ext"
4582case "(($ac_try" in
4583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584  *) ac_try_echo=$ac_try;;
4585esac
4586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4587  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4588  ac_status=$?
4589  grep -v '^ *+' conftest.er1 >conftest.err
4590  rm -f conftest.er1
4591  cat conftest.err >&5
4592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593  (exit $ac_status); } >/dev/null && {
4594	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4595	 test ! -s conftest.err
4596       }; then
4597  :
4598else
4599  echo "$as_me: failed program was:" >&5
4600sed 's/^/| /' conftest.$ac_ext >&5
4601
4602  # Broken: fails on valid input.
4603continue
4604fi
4605
4606rm -f conftest.err conftest.$ac_ext
4607
4608  # OK, works on sane cases.  Now check whether nonexistent headers
4609  # can be detected and how.
4610  cat >conftest.$ac_ext <<_ACEOF
4611/* confdefs.h.  */
4612_ACEOF
4613cat confdefs.h >>conftest.$ac_ext
4614cat >>conftest.$ac_ext <<_ACEOF
4615/* end confdefs.h.  */
4616#include <ac_nonexistent.h>
4617_ACEOF
4618if { (ac_try="$ac_cpp conftest.$ac_ext"
4619case "(($ac_try" in
4620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621  *) ac_try_echo=$ac_try;;
4622esac
4623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4624  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4625  ac_status=$?
4626  grep -v '^ *+' conftest.er1 >conftest.err
4627  rm -f conftest.er1
4628  cat conftest.err >&5
4629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630  (exit $ac_status); } >/dev/null && {
4631	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4632	 test ! -s conftest.err
4633       }; then
4634  # Broken: success on invalid input.
4635continue
4636else
4637  echo "$as_me: failed program was:" >&5
4638sed 's/^/| /' conftest.$ac_ext >&5
4639
4640  # Passes both tests.
4641ac_preproc_ok=:
4642break
4643fi
4644
4645rm -f conftest.err conftest.$ac_ext
4646
4647done
4648# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4649rm -f conftest.err conftest.$ac_ext
4650if $ac_preproc_ok; then
4651  break
4652fi
4653
4654    done
4655    ac_cv_prog_CPP=$CPP
4656
4657fi
4658  CPP=$ac_cv_prog_CPP
4659else
4660  ac_cv_prog_CPP=$CPP
4661fi
4662{ echo "$as_me:$LINENO: result: $CPP" >&5
4663echo "${ECHO_T}$CPP" >&6; }
4664ac_preproc_ok=false
4665for ac_c_preproc_warn_flag in '' yes
4666do
4667  # Use a header file that comes with gcc, so configuring glibc
4668  # with a fresh cross-compiler works.
4669  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4670  # <limits.h> exists even on freestanding compilers.
4671  # On the NeXT, cc -E runs the code through the compiler's parser,
4672  # not just through cpp. "Syntax error" is here to catch this case.
4673  cat >conftest.$ac_ext <<_ACEOF
4674/* confdefs.h.  */
4675_ACEOF
4676cat confdefs.h >>conftest.$ac_ext
4677cat >>conftest.$ac_ext <<_ACEOF
4678/* end confdefs.h.  */
4679#ifdef __STDC__
4680# include <limits.h>
4681#else
4682# include <assert.h>
4683#endif
4684		     Syntax error
4685_ACEOF
4686if { (ac_try="$ac_cpp conftest.$ac_ext"
4687case "(($ac_try" in
4688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689  *) ac_try_echo=$ac_try;;
4690esac
4691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4693  ac_status=$?
4694  grep -v '^ *+' conftest.er1 >conftest.err
4695  rm -f conftest.er1
4696  cat conftest.err >&5
4697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698  (exit $ac_status); } >/dev/null && {
4699	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4700	 test ! -s conftest.err
4701       }; then
4702  :
4703else
4704  echo "$as_me: failed program was:" >&5
4705sed 's/^/| /' conftest.$ac_ext >&5
4706
4707  # Broken: fails on valid input.
4708continue
4709fi
4710
4711rm -f conftest.err conftest.$ac_ext
4712
4713  # OK, works on sane cases.  Now check whether nonexistent headers
4714  # can be detected and how.
4715  cat >conftest.$ac_ext <<_ACEOF
4716/* confdefs.h.  */
4717_ACEOF
4718cat confdefs.h >>conftest.$ac_ext
4719cat >>conftest.$ac_ext <<_ACEOF
4720/* end confdefs.h.  */
4721#include <ac_nonexistent.h>
4722_ACEOF
4723if { (ac_try="$ac_cpp conftest.$ac_ext"
4724case "(($ac_try" in
4725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726  *) ac_try_echo=$ac_try;;
4727esac
4728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4729  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4730  ac_status=$?
4731  grep -v '^ *+' conftest.er1 >conftest.err
4732  rm -f conftest.er1
4733  cat conftest.err >&5
4734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735  (exit $ac_status); } >/dev/null && {
4736	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4737	 test ! -s conftest.err
4738       }; then
4739  # Broken: success on invalid input.
4740continue
4741else
4742  echo "$as_me: failed program was:" >&5
4743sed 's/^/| /' conftest.$ac_ext >&5
4744
4745  # Passes both tests.
4746ac_preproc_ok=:
4747break
4748fi
4749
4750rm -f conftest.err conftest.$ac_ext
4751
4752done
4753# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4754rm -f conftest.err conftest.$ac_ext
4755if $ac_preproc_ok; then
4756  :
4757else
4758  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4759See \`config.log' for more details." >&5
4760echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4761See \`config.log' for more details." >&2;}
4762   { (exit 1); exit 1; }; }
4763fi
4764
4765ac_ext=c
4766ac_cpp='$CPP $CPPFLAGS'
4767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4769ac_compiler_gnu=$ac_cv_c_compiler_gnu
4770
4771
4772{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4773echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4774if test "${ac_cv_header_stdc+set}" = set; then
4775  echo $ECHO_N "(cached) $ECHO_C" >&6
4776else
4777  cat >conftest.$ac_ext <<_ACEOF
4778/* confdefs.h.  */
4779_ACEOF
4780cat confdefs.h >>conftest.$ac_ext
4781cat >>conftest.$ac_ext <<_ACEOF
4782/* end confdefs.h.  */
4783#include <stdlib.h>
4784#include <stdarg.h>
4785#include <string.h>
4786#include <float.h>
4787
4788int
4789main ()
4790{
4791
4792  ;
4793  return 0;
4794}
4795_ACEOF
4796rm -f conftest.$ac_objext
4797if { (ac_try="$ac_compile"
4798case "(($ac_try" in
4799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800  *) ac_try_echo=$ac_try;;
4801esac
4802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4803  (eval "$ac_compile") 2>conftest.er1
4804  ac_status=$?
4805  grep -v '^ *+' conftest.er1 >conftest.err
4806  rm -f conftest.er1
4807  cat conftest.err >&5
4808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809  (exit $ac_status); } && {
4810	 test -z "$ac_c_werror_flag" ||
4811	 test ! -s conftest.err
4812       } && test -s conftest.$ac_objext; then
4813  ac_cv_header_stdc=yes
4814else
4815  echo "$as_me: failed program was:" >&5
4816sed 's/^/| /' conftest.$ac_ext >&5
4817
4818	ac_cv_header_stdc=no
4819fi
4820
4821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822
4823if test $ac_cv_header_stdc = yes; then
4824  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4825  cat >conftest.$ac_ext <<_ACEOF
4826/* confdefs.h.  */
4827_ACEOF
4828cat confdefs.h >>conftest.$ac_ext
4829cat >>conftest.$ac_ext <<_ACEOF
4830/* end confdefs.h.  */
4831#include <string.h>
4832
4833_ACEOF
4834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4835  $EGREP "memchr" >/dev/null 2>&1; then
4836  :
4837else
4838  ac_cv_header_stdc=no
4839fi
4840rm -f conftest*
4841
4842fi
4843
4844if test $ac_cv_header_stdc = yes; then
4845  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4846  cat >conftest.$ac_ext <<_ACEOF
4847/* confdefs.h.  */
4848_ACEOF
4849cat confdefs.h >>conftest.$ac_ext
4850cat >>conftest.$ac_ext <<_ACEOF
4851/* end confdefs.h.  */
4852#include <stdlib.h>
4853
4854_ACEOF
4855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4856  $EGREP "free" >/dev/null 2>&1; then
4857  :
4858else
4859  ac_cv_header_stdc=no
4860fi
4861rm -f conftest*
4862
4863fi
4864
4865if test $ac_cv_header_stdc = yes; then
4866  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4867  if test "$cross_compiling" = yes; then
4868  :
4869else
4870  cat >conftest.$ac_ext <<_ACEOF
4871/* confdefs.h.  */
4872_ACEOF
4873cat confdefs.h >>conftest.$ac_ext
4874cat >>conftest.$ac_ext <<_ACEOF
4875/* end confdefs.h.  */
4876#include <ctype.h>
4877#include <stdlib.h>
4878#if ((' ' & 0x0FF) == 0x020)
4879# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4880# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4881#else
4882# define ISLOWER(c) \
4883		   (('a' <= (c) && (c) <= 'i') \
4884		     || ('j' <= (c) && (c) <= 'r') \
4885		     || ('s' <= (c) && (c) <= 'z'))
4886# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4887#endif
4888
4889#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4890int
4891main ()
4892{
4893  int i;
4894  for (i = 0; i < 256; i++)
4895    if (XOR (islower (i), ISLOWER (i))
4896	|| toupper (i) != TOUPPER (i))
4897      return 2;
4898  return 0;
4899}
4900_ACEOF
4901rm -f conftest$ac_exeext
4902if { (ac_try="$ac_link"
4903case "(($ac_try" in
4904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905  *) ac_try_echo=$ac_try;;
4906esac
4907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4908  (eval "$ac_link") 2>&5
4909  ac_status=$?
4910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4912  { (case "(($ac_try" in
4913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914  *) ac_try_echo=$ac_try;;
4915esac
4916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917  (eval "$ac_try") 2>&5
4918  ac_status=$?
4919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920  (exit $ac_status); }; }; then
4921  :
4922else
4923  echo "$as_me: program exited with status $ac_status" >&5
4924echo "$as_me: failed program was:" >&5
4925sed 's/^/| /' conftest.$ac_ext >&5
4926
4927( exit $ac_status )
4928ac_cv_header_stdc=no
4929fi
4930rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4931fi
4932
4933
4934fi
4935fi
4936{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4937echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4938if test $ac_cv_header_stdc = yes; then
4939
4940cat >>confdefs.h <<\_ACEOF
4941#define STDC_HEADERS 1
4942_ACEOF
4943
4944fi
4945
4946# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4957		  inttypes.h stdint.h unistd.h
4958do
4959as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4960{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4963  echo $ECHO_N "(cached) $ECHO_C" >&6
4964else
4965  cat >conftest.$ac_ext <<_ACEOF
4966/* confdefs.h.  */
4967_ACEOF
4968cat confdefs.h >>conftest.$ac_ext
4969cat >>conftest.$ac_ext <<_ACEOF
4970/* end confdefs.h.  */
4971$ac_includes_default
4972
4973#include <$ac_header>
4974_ACEOF
4975rm -f conftest.$ac_objext
4976if { (ac_try="$ac_compile"
4977case "(($ac_try" in
4978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979  *) ac_try_echo=$ac_try;;
4980esac
4981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982  (eval "$ac_compile") 2>conftest.er1
4983  ac_status=$?
4984  grep -v '^ *+' conftest.er1 >conftest.err
4985  rm -f conftest.er1
4986  cat conftest.err >&5
4987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988  (exit $ac_status); } && {
4989	 test -z "$ac_c_werror_flag" ||
4990	 test ! -s conftest.err
4991       } && test -s conftest.$ac_objext; then
4992  eval "$as_ac_Header=yes"
4993else
4994  echo "$as_me: failed program was:" >&5
4995sed 's/^/| /' conftest.$ac_ext >&5
4996
4997	eval "$as_ac_Header=no"
4998fi
4999
5000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001fi
5002ac_res=`eval echo '${'$as_ac_Header'}'`
5003	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5004echo "${ECHO_T}$ac_res" >&6; }
5005if test `eval echo '${'$as_ac_Header'}'` = yes; then
5006  cat >>confdefs.h <<_ACEOF
5007#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5008_ACEOF
5009
5010fi
5011
5012done
5013
5014
5015
5016for ac_header in dlfcn.h
5017do
5018as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5019if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5020  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5021echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5022if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5023  echo $ECHO_N "(cached) $ECHO_C" >&6
5024fi
5025ac_res=`eval echo '${'$as_ac_Header'}'`
5026	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5027echo "${ECHO_T}$ac_res" >&6; }
5028else
5029  # Is the header compilable?
5030{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5031echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5032cat >conftest.$ac_ext <<_ACEOF
5033/* confdefs.h.  */
5034_ACEOF
5035cat confdefs.h >>conftest.$ac_ext
5036cat >>conftest.$ac_ext <<_ACEOF
5037/* end confdefs.h.  */
5038$ac_includes_default
5039#include <$ac_header>
5040_ACEOF
5041rm -f conftest.$ac_objext
5042if { (ac_try="$ac_compile"
5043case "(($ac_try" in
5044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045  *) ac_try_echo=$ac_try;;
5046esac
5047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048  (eval "$ac_compile") 2>conftest.er1
5049  ac_status=$?
5050  grep -v '^ *+' conftest.er1 >conftest.err
5051  rm -f conftest.er1
5052  cat conftest.err >&5
5053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054  (exit $ac_status); } && {
5055	 test -z "$ac_c_werror_flag" ||
5056	 test ! -s conftest.err
5057       } && test -s conftest.$ac_objext; then
5058  ac_header_compiler=yes
5059else
5060  echo "$as_me: failed program was:" >&5
5061sed 's/^/| /' conftest.$ac_ext >&5
5062
5063	ac_header_compiler=no
5064fi
5065
5066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5068echo "${ECHO_T}$ac_header_compiler" >&6; }
5069
5070# Is the header present?
5071{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5072echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5073cat >conftest.$ac_ext <<_ACEOF
5074/* confdefs.h.  */
5075_ACEOF
5076cat confdefs.h >>conftest.$ac_ext
5077cat >>conftest.$ac_ext <<_ACEOF
5078/* end confdefs.h.  */
5079#include <$ac_header>
5080_ACEOF
5081if { (ac_try="$ac_cpp conftest.$ac_ext"
5082case "(($ac_try" in
5083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084  *) ac_try_echo=$ac_try;;
5085esac
5086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5087  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5088  ac_status=$?
5089  grep -v '^ *+' conftest.er1 >conftest.err
5090  rm -f conftest.er1
5091  cat conftest.err >&5
5092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093  (exit $ac_status); } >/dev/null && {
5094	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5095	 test ! -s conftest.err
5096       }; then
5097  ac_header_preproc=yes
5098else
5099  echo "$as_me: failed program was:" >&5
5100sed 's/^/| /' conftest.$ac_ext >&5
5101
5102  ac_header_preproc=no
5103fi
5104
5105rm -f conftest.err conftest.$ac_ext
5106{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5107echo "${ECHO_T}$ac_header_preproc" >&6; }
5108
5109# So?  What about this header?
5110case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5111  yes:no: )
5112    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5113echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5114    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5115echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5116    ac_header_preproc=yes
5117    ;;
5118  no:yes:* )
5119    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5120echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5121    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5122echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5123    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5124echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5125    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5126echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5127    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5128echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5129    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5130echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5131
5132    ;;
5133esac
5134{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5137  echo $ECHO_N "(cached) $ECHO_C" >&6
5138else
5139  eval "$as_ac_Header=\$ac_header_preproc"
5140fi
5141ac_res=`eval echo '${'$as_ac_Header'}'`
5142	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5143echo "${ECHO_T}$ac_res" >&6; }
5144
5145fi
5146if test `eval echo '${'$as_ac_Header'}'` = yes; then
5147  cat >>confdefs.h <<_ACEOF
5148#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5149_ACEOF
5150
5151fi
5152
5153done
5154
5155ac_ext=cpp
5156ac_cpp='$CXXCPP $CPPFLAGS'
5157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5160if test -z "$CXX"; then
5161  if test -n "$CCC"; then
5162    CXX=$CCC
5163  else
5164    if test -n "$ac_tool_prefix"; then
5165  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5166  do
5167    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5168set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5171if test "${ac_cv_prog_CXX+set}" = set; then
5172  echo $ECHO_N "(cached) $ECHO_C" >&6
5173else
5174  if test -n "$CXX"; then
5175  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5176else
5177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178for as_dir in $PATH
5179do
5180  IFS=$as_save_IFS
5181  test -z "$as_dir" && as_dir=.
5182  for ac_exec_ext in '' $ac_executable_extensions; do
5183  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5185    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186    break 2
5187  fi
5188done
5189done
5190IFS=$as_save_IFS
5191
5192fi
5193fi
5194CXX=$ac_cv_prog_CXX
5195if test -n "$CXX"; then
5196  { echo "$as_me:$LINENO: result: $CXX" >&5
5197echo "${ECHO_T}$CXX" >&6; }
5198else
5199  { echo "$as_me:$LINENO: result: no" >&5
5200echo "${ECHO_T}no" >&6; }
5201fi
5202
5203
5204    test -n "$CXX" && break
5205  done
5206fi
5207if test -z "$CXX"; then
5208  ac_ct_CXX=$CXX
5209  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5210do
5211  # Extract the first word of "$ac_prog", so it can be a program name with args.
5212set dummy $ac_prog; ac_word=$2
5213{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5215if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5216  echo $ECHO_N "(cached) $ECHO_C" >&6
5217else
5218  if test -n "$ac_ct_CXX"; then
5219  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5220else
5221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222for as_dir in $PATH
5223do
5224  IFS=$as_save_IFS
5225  test -z "$as_dir" && as_dir=.
5226  for ac_exec_ext in '' $ac_executable_extensions; do
5227  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228    ac_cv_prog_ac_ct_CXX="$ac_prog"
5229    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230    break 2
5231  fi
5232done
5233done
5234IFS=$as_save_IFS
5235
5236fi
5237fi
5238ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5239if test -n "$ac_ct_CXX"; then
5240  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5241echo "${ECHO_T}$ac_ct_CXX" >&6; }
5242else
5243  { echo "$as_me:$LINENO: result: no" >&5
5244echo "${ECHO_T}no" >&6; }
5245fi
5246
5247
5248  test -n "$ac_ct_CXX" && break
5249done
5250
5251  if test "x$ac_ct_CXX" = x; then
5252    CXX="g++"
5253  else
5254    case $cross_compiling:$ac_tool_warned in
5255yes:)
5256{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5257whose name does not start with the host triplet.  If you think this
5258configuration is useful to you, please write to autoconf@gnu.org." >&5
5259echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5260whose name does not start with the host triplet.  If you think this
5261configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5262ac_tool_warned=yes ;;
5263esac
5264    CXX=$ac_ct_CXX
5265  fi
5266fi
5267
5268  fi
5269fi
5270# Provide some information about the compiler.
5271echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5272ac_compiler=`set X $ac_compile; echo $2`
5273{ (ac_try="$ac_compiler --version >&5"
5274case "(($ac_try" in
5275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276  *) ac_try_echo=$ac_try;;
5277esac
5278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279  (eval "$ac_compiler --version >&5") 2>&5
5280  ac_status=$?
5281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282  (exit $ac_status); }
5283{ (ac_try="$ac_compiler -v >&5"
5284case "(($ac_try" in
5285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286  *) ac_try_echo=$ac_try;;
5287esac
5288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289  (eval "$ac_compiler -v >&5") 2>&5
5290  ac_status=$?
5291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292  (exit $ac_status); }
5293{ (ac_try="$ac_compiler -V >&5"
5294case "(($ac_try" in
5295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296  *) ac_try_echo=$ac_try;;
5297esac
5298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299  (eval "$ac_compiler -V >&5") 2>&5
5300  ac_status=$?
5301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302  (exit $ac_status); }
5303
5304{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5305echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5306if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5307  echo $ECHO_N "(cached) $ECHO_C" >&6
5308else
5309  cat >conftest.$ac_ext <<_ACEOF
5310/* confdefs.h.  */
5311_ACEOF
5312cat confdefs.h >>conftest.$ac_ext
5313cat >>conftest.$ac_ext <<_ACEOF
5314/* end confdefs.h.  */
5315
5316int
5317main ()
5318{
5319#ifndef __GNUC__
5320       choke me
5321#endif
5322
5323  ;
5324  return 0;
5325}
5326_ACEOF
5327rm -f conftest.$ac_objext
5328if { (ac_try="$ac_compile"
5329case "(($ac_try" in
5330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331  *) ac_try_echo=$ac_try;;
5332esac
5333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334  (eval "$ac_compile") 2>conftest.er1
5335  ac_status=$?
5336  grep -v '^ *+' conftest.er1 >conftest.err
5337  rm -f conftest.er1
5338  cat conftest.err >&5
5339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340  (exit $ac_status); } && {
5341	 test -z "$ac_cxx_werror_flag" ||
5342	 test ! -s conftest.err
5343       } && test -s conftest.$ac_objext; then
5344  ac_compiler_gnu=yes
5345else
5346  echo "$as_me: failed program was:" >&5
5347sed 's/^/| /' conftest.$ac_ext >&5
5348
5349	ac_compiler_gnu=no
5350fi
5351
5352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5354
5355fi
5356{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5357echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5358GXX=`test $ac_compiler_gnu = yes && echo yes`
5359ac_test_CXXFLAGS=${CXXFLAGS+set}
5360ac_save_CXXFLAGS=$CXXFLAGS
5361{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5362echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5363if test "${ac_cv_prog_cxx_g+set}" = set; then
5364  echo $ECHO_N "(cached) $ECHO_C" >&6
5365else
5366  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5367   ac_cxx_werror_flag=yes
5368   ac_cv_prog_cxx_g=no
5369   CXXFLAGS="-g"
5370   cat >conftest.$ac_ext <<_ACEOF
5371/* confdefs.h.  */
5372_ACEOF
5373cat confdefs.h >>conftest.$ac_ext
5374cat >>conftest.$ac_ext <<_ACEOF
5375/* end confdefs.h.  */
5376
5377int
5378main ()
5379{
5380
5381  ;
5382  return 0;
5383}
5384_ACEOF
5385rm -f conftest.$ac_objext
5386if { (ac_try="$ac_compile"
5387case "(($ac_try" in
5388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389  *) ac_try_echo=$ac_try;;
5390esac
5391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392  (eval "$ac_compile") 2>conftest.er1
5393  ac_status=$?
5394  grep -v '^ *+' conftest.er1 >conftest.err
5395  rm -f conftest.er1
5396  cat conftest.err >&5
5397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398  (exit $ac_status); } && {
5399	 test -z "$ac_cxx_werror_flag" ||
5400	 test ! -s conftest.err
5401       } && test -s conftest.$ac_objext; then
5402  ac_cv_prog_cxx_g=yes
5403else
5404  echo "$as_me: failed program was:" >&5
5405sed 's/^/| /' conftest.$ac_ext >&5
5406
5407	CXXFLAGS=""
5408      cat >conftest.$ac_ext <<_ACEOF
5409/* confdefs.h.  */
5410_ACEOF
5411cat confdefs.h >>conftest.$ac_ext
5412cat >>conftest.$ac_ext <<_ACEOF
5413/* end confdefs.h.  */
5414
5415int
5416main ()
5417{
5418
5419  ;
5420  return 0;
5421}
5422_ACEOF
5423rm -f conftest.$ac_objext
5424if { (ac_try="$ac_compile"
5425case "(($ac_try" in
5426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427  *) ac_try_echo=$ac_try;;
5428esac
5429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430  (eval "$ac_compile") 2>conftest.er1
5431  ac_status=$?
5432  grep -v '^ *+' conftest.er1 >conftest.err
5433  rm -f conftest.er1
5434  cat conftest.err >&5
5435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436  (exit $ac_status); } && {
5437	 test -z "$ac_cxx_werror_flag" ||
5438	 test ! -s conftest.err
5439       } && test -s conftest.$ac_objext; then
5440  :
5441else
5442  echo "$as_me: failed program was:" >&5
5443sed 's/^/| /' conftest.$ac_ext >&5
5444
5445	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5446	 CXXFLAGS="-g"
5447	 cat >conftest.$ac_ext <<_ACEOF
5448/* confdefs.h.  */
5449_ACEOF
5450cat confdefs.h >>conftest.$ac_ext
5451cat >>conftest.$ac_ext <<_ACEOF
5452/* end confdefs.h.  */
5453
5454int
5455main ()
5456{
5457
5458  ;
5459  return 0;
5460}
5461_ACEOF
5462rm -f conftest.$ac_objext
5463if { (ac_try="$ac_compile"
5464case "(($ac_try" in
5465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466  *) ac_try_echo=$ac_try;;
5467esac
5468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469  (eval "$ac_compile") 2>conftest.er1
5470  ac_status=$?
5471  grep -v '^ *+' conftest.er1 >conftest.err
5472  rm -f conftest.er1
5473  cat conftest.err >&5
5474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475  (exit $ac_status); } && {
5476	 test -z "$ac_cxx_werror_flag" ||
5477	 test ! -s conftest.err
5478       } && test -s conftest.$ac_objext; then
5479  ac_cv_prog_cxx_g=yes
5480else
5481  echo "$as_me: failed program was:" >&5
5482sed 's/^/| /' conftest.$ac_ext >&5
5483
5484
5485fi
5486
5487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488fi
5489
5490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491fi
5492
5493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5495fi
5496{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5497echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5498if test "$ac_test_CXXFLAGS" = set; then
5499  CXXFLAGS=$ac_save_CXXFLAGS
5500elif test $ac_cv_prog_cxx_g = yes; then
5501  if test "$GXX" = yes; then
5502    CXXFLAGS="-g -O2"
5503  else
5504    CXXFLAGS="-g"
5505  fi
5506else
5507  if test "$GXX" = yes; then
5508    CXXFLAGS="-O2"
5509  else
5510    CXXFLAGS=
5511  fi
5512fi
5513ac_ext=cpp
5514ac_cpp='$CXXCPP $CPPFLAGS'
5515ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5516ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5517ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5518
5519depcc="$CXX"  am_compiler_list=
5520
5521{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5522echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5523if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5524  echo $ECHO_N "(cached) $ECHO_C" >&6
5525else
5526  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5527  # We make a subdir and do the tests there.  Otherwise we can end up
5528  # making bogus files that we don't know about and never remove.  For
5529  # instance it was reported that on HP-UX the gcc test will end up
5530  # making a dummy file named `D' -- because `-MD' means `put the output
5531  # in D'.
5532  mkdir conftest.dir
5533  # Copy depcomp to subdir because otherwise we won't find it if we're
5534  # using a relative directory.
5535  cp "$am_depcomp" conftest.dir
5536  cd conftest.dir
5537  # We will build objects and dependencies in a subdirectory because
5538  # it helps to detect inapplicable dependency modes.  For instance
5539  # both Tru64's cc and ICC support -MD to output dependencies as a
5540  # side effect of compilation, but ICC will put the dependencies in
5541  # the current directory while Tru64 will put them in the object
5542  # directory.
5543  mkdir sub
5544
5545  am_cv_CXX_dependencies_compiler_type=none
5546  if test "$am_compiler_list" = ""; then
5547     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5548  fi
5549  for depmode in $am_compiler_list; do
5550    # Setup a source with many dependencies, because some compilers
5551    # like to wrap large dependency lists on column 80 (with \), and
5552    # we should not choose a depcomp mode which is confused by this.
5553    #
5554    # We need to recreate these files for each test, as the compiler may
5555    # overwrite some of them when testing with obscure command lines.
5556    # This happens at least with the AIX C compiler.
5557    : > sub/conftest.c
5558    for i in 1 2 3 4 5 6; do
5559      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5560      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5561      # Solaris 8's {/usr,}/bin/sh.
5562      touch sub/conftst$i.h
5563    done
5564    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5565
5566    case $depmode in
5567    nosideeffect)
5568      # after this tag, mechanisms are not by side-effect, so they'll
5569      # only be used when explicitly requested
5570      if test "x$enable_dependency_tracking" = xyes; then
5571	continue
5572      else
5573	break
5574      fi
5575      ;;
5576    none) break ;;
5577    esac
5578    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5579    # mode.  It turns out that the SunPro C++ compiler does not properly
5580    # handle `-M -o', and we need to detect this.
5581    if depmode=$depmode \
5582       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5583       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5584       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5585         >/dev/null 2>conftest.err &&
5586       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5587       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5588       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5589       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5590      # icc doesn't choke on unknown options, it will just issue warnings
5591      # or remarks (even with -Werror).  So we grep stderr for any message
5592      # that says an option was ignored or not supported.
5593      # When given -MP, icc 7.0 and 7.1 complain thusly:
5594      #   icc: Command line warning: ignoring option '-M'; no argument required
5595      # The diagnosis changed in icc 8.0:
5596      #   icc: Command line remark: option '-MP' not supported
5597      if (grep 'ignoring option' conftest.err ||
5598          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5599        am_cv_CXX_dependencies_compiler_type=$depmode
5600        break
5601      fi
5602    fi
5603  done
5604
5605  cd ..
5606  rm -rf conftest.dir
5607else
5608  am_cv_CXX_dependencies_compiler_type=none
5609fi
5610
5611fi
5612{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5613echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5614CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5615
5616 if
5617  test "x$enable_dependency_tracking" != xno \
5618  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5619  am__fastdepCXX_TRUE=
5620  am__fastdepCXX_FALSE='#'
5621else
5622  am__fastdepCXX_TRUE='#'
5623  am__fastdepCXX_FALSE=
5624fi
5625
5626
5627
5628
5629if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5630    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5631    (test "X$CXX" != "Xg++"))) ; then
5632  ac_ext=cpp
5633ac_cpp='$CXXCPP $CPPFLAGS'
5634ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5635ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5636ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5637{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5638echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5639if test -z "$CXXCPP"; then
5640  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5641  echo $ECHO_N "(cached) $ECHO_C" >&6
5642else
5643      # Double quotes because CXXCPP needs to be expanded
5644    for CXXCPP in "$CXX -E" "/lib/cpp"
5645    do
5646      ac_preproc_ok=false
5647for ac_cxx_preproc_warn_flag in '' yes
5648do
5649  # Use a header file that comes with gcc, so configuring glibc
5650  # with a fresh cross-compiler works.
5651  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5652  # <limits.h> exists even on freestanding compilers.
5653  # On the NeXT, cc -E runs the code through the compiler's parser,
5654  # not just through cpp. "Syntax error" is here to catch this case.
5655  cat >conftest.$ac_ext <<_ACEOF
5656/* confdefs.h.  */
5657_ACEOF
5658cat confdefs.h >>conftest.$ac_ext
5659cat >>conftest.$ac_ext <<_ACEOF
5660/* end confdefs.h.  */
5661#ifdef __STDC__
5662# include <limits.h>
5663#else
5664# include <assert.h>
5665#endif
5666		     Syntax error
5667_ACEOF
5668if { (ac_try="$ac_cpp conftest.$ac_ext"
5669case "(($ac_try" in
5670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671  *) ac_try_echo=$ac_try;;
5672esac
5673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5675  ac_status=$?
5676  grep -v '^ *+' conftest.er1 >conftest.err
5677  rm -f conftest.er1
5678  cat conftest.err >&5
5679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680  (exit $ac_status); } >/dev/null && {
5681	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5682	 test ! -s conftest.err
5683       }; then
5684  :
5685else
5686  echo "$as_me: failed program was:" >&5
5687sed 's/^/| /' conftest.$ac_ext >&5
5688
5689  # Broken: fails on valid input.
5690continue
5691fi
5692
5693rm -f conftest.err conftest.$ac_ext
5694
5695  # OK, works on sane cases.  Now check whether nonexistent headers
5696  # can be detected and how.
5697  cat >conftest.$ac_ext <<_ACEOF
5698/* confdefs.h.  */
5699_ACEOF
5700cat confdefs.h >>conftest.$ac_ext
5701cat >>conftest.$ac_ext <<_ACEOF
5702/* end confdefs.h.  */
5703#include <ac_nonexistent.h>
5704_ACEOF
5705if { (ac_try="$ac_cpp conftest.$ac_ext"
5706case "(($ac_try" in
5707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708  *) ac_try_echo=$ac_try;;
5709esac
5710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5712  ac_status=$?
5713  grep -v '^ *+' conftest.er1 >conftest.err
5714  rm -f conftest.er1
5715  cat conftest.err >&5
5716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717  (exit $ac_status); } >/dev/null && {
5718	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5719	 test ! -s conftest.err
5720       }; then
5721  # Broken: success on invalid input.
5722continue
5723else
5724  echo "$as_me: failed program was:" >&5
5725sed 's/^/| /' conftest.$ac_ext >&5
5726
5727  # Passes both tests.
5728ac_preproc_ok=:
5729break
5730fi
5731
5732rm -f conftest.err conftest.$ac_ext
5733
5734done
5735# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5736rm -f conftest.err conftest.$ac_ext
5737if $ac_preproc_ok; then
5738  break
5739fi
5740
5741    done
5742    ac_cv_prog_CXXCPP=$CXXCPP
5743
5744fi
5745  CXXCPP=$ac_cv_prog_CXXCPP
5746else
5747  ac_cv_prog_CXXCPP=$CXXCPP
5748fi
5749{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5750echo "${ECHO_T}$CXXCPP" >&6; }
5751ac_preproc_ok=false
5752for ac_cxx_preproc_warn_flag in '' yes
5753do
5754  # Use a header file that comes with gcc, so configuring glibc
5755  # with a fresh cross-compiler works.
5756  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5757  # <limits.h> exists even on freestanding compilers.
5758  # On the NeXT, cc -E runs the code through the compiler's parser,
5759  # not just through cpp. "Syntax error" is here to catch this case.
5760  cat >conftest.$ac_ext <<_ACEOF
5761/* confdefs.h.  */
5762_ACEOF
5763cat confdefs.h >>conftest.$ac_ext
5764cat >>conftest.$ac_ext <<_ACEOF
5765/* end confdefs.h.  */
5766#ifdef __STDC__
5767# include <limits.h>
5768#else
5769# include <assert.h>
5770#endif
5771		     Syntax error
5772_ACEOF
5773if { (ac_try="$ac_cpp conftest.$ac_ext"
5774case "(($ac_try" in
5775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776  *) ac_try_echo=$ac_try;;
5777esac
5778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5780  ac_status=$?
5781  grep -v '^ *+' conftest.er1 >conftest.err
5782  rm -f conftest.er1
5783  cat conftest.err >&5
5784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785  (exit $ac_status); } >/dev/null && {
5786	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5787	 test ! -s conftest.err
5788       }; then
5789  :
5790else
5791  echo "$as_me: failed program was:" >&5
5792sed 's/^/| /' conftest.$ac_ext >&5
5793
5794  # Broken: fails on valid input.
5795continue
5796fi
5797
5798rm -f conftest.err conftest.$ac_ext
5799
5800  # OK, works on sane cases.  Now check whether nonexistent headers
5801  # can be detected and how.
5802  cat >conftest.$ac_ext <<_ACEOF
5803/* confdefs.h.  */
5804_ACEOF
5805cat confdefs.h >>conftest.$ac_ext
5806cat >>conftest.$ac_ext <<_ACEOF
5807/* end confdefs.h.  */
5808#include <ac_nonexistent.h>
5809_ACEOF
5810if { (ac_try="$ac_cpp conftest.$ac_ext"
5811case "(($ac_try" in
5812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813  *) ac_try_echo=$ac_try;;
5814esac
5815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5817  ac_status=$?
5818  grep -v '^ *+' conftest.er1 >conftest.err
5819  rm -f conftest.er1
5820  cat conftest.err >&5
5821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822  (exit $ac_status); } >/dev/null && {
5823	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5824	 test ! -s conftest.err
5825       }; then
5826  # Broken: success on invalid input.
5827continue
5828else
5829  echo "$as_me: failed program was:" >&5
5830sed 's/^/| /' conftest.$ac_ext >&5
5831
5832  # Passes both tests.
5833ac_preproc_ok=:
5834break
5835fi
5836
5837rm -f conftest.err conftest.$ac_ext
5838
5839done
5840# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5841rm -f conftest.err conftest.$ac_ext
5842if $ac_preproc_ok; then
5843  :
5844else
5845  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5846See \`config.log' for more details." >&5
5847echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5848See \`config.log' for more details." >&2;}
5849   { (exit 1); exit 1; }; }
5850fi
5851
5852ac_ext=cpp
5853ac_cpp='$CXXCPP $CPPFLAGS'
5854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5857
5858fi
5859
5860
5861ac_ext=f
5862ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5863ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5864ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5865if test -n "$ac_tool_prefix"; then
5866  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
5867  do
5868    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5869set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5870{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5872if test "${ac_cv_prog_F77+set}" = set; then
5873  echo $ECHO_N "(cached) $ECHO_C" >&6
5874else
5875  if test -n "$F77"; then
5876  ac_cv_prog_F77="$F77" # Let the user override the test.
5877else
5878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879for as_dir in $PATH
5880do
5881  IFS=$as_save_IFS
5882  test -z "$as_dir" && as_dir=.
5883  for ac_exec_ext in '' $ac_executable_extensions; do
5884  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5886    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5887    break 2
5888  fi
5889done
5890done
5891IFS=$as_save_IFS
5892
5893fi
5894fi
5895F77=$ac_cv_prog_F77
5896if test -n "$F77"; then
5897  { echo "$as_me:$LINENO: result: $F77" >&5
5898echo "${ECHO_T}$F77" >&6; }
5899else
5900  { echo "$as_me:$LINENO: result: no" >&5
5901echo "${ECHO_T}no" >&6; }
5902fi
5903
5904
5905    test -n "$F77" && break
5906  done
5907fi
5908if test -z "$F77"; then
5909  ac_ct_F77=$F77
5910  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
5911do
5912  # Extract the first word of "$ac_prog", so it can be a program name with args.
5913set dummy $ac_prog; ac_word=$2
5914{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5916if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5917  echo $ECHO_N "(cached) $ECHO_C" >&6
5918else
5919  if test -n "$ac_ct_F77"; then
5920  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5921else
5922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923for as_dir in $PATH
5924do
5925  IFS=$as_save_IFS
5926  test -z "$as_dir" && as_dir=.
5927  for ac_exec_ext in '' $ac_executable_extensions; do
5928  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5929    ac_cv_prog_ac_ct_F77="$ac_prog"
5930    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931    break 2
5932  fi
5933done
5934done
5935IFS=$as_save_IFS
5936
5937fi
5938fi
5939ac_ct_F77=$ac_cv_prog_ac_ct_F77
5940if test -n "$ac_ct_F77"; then
5941  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5942echo "${ECHO_T}$ac_ct_F77" >&6; }
5943else
5944  { echo "$as_me:$LINENO: result: no" >&5
5945echo "${ECHO_T}no" >&6; }
5946fi
5947
5948
5949  test -n "$ac_ct_F77" && break
5950done
5951
5952  if test "x$ac_ct_F77" = x; then
5953    F77=""
5954  else
5955    case $cross_compiling:$ac_tool_warned in
5956yes:)
5957{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5958whose name does not start with the host triplet.  If you think this
5959configuration is useful to you, please write to autoconf@gnu.org." >&5
5960echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5961whose name does not start with the host triplet.  If you think this
5962configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5963ac_tool_warned=yes ;;
5964esac
5965    F77=$ac_ct_F77
5966  fi
5967fi
5968
5969
5970# Provide some information about the compiler.
5971echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5972ac_compiler=`set X $ac_compile; echo $2`
5973{ (ac_try="$ac_compiler --version >&5"
5974case "(($ac_try" in
5975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976  *) ac_try_echo=$ac_try;;
5977esac
5978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979  (eval "$ac_compiler --version >&5") 2>&5
5980  ac_status=$?
5981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982  (exit $ac_status); }
5983{ (ac_try="$ac_compiler -v >&5"
5984case "(($ac_try" in
5985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986  *) ac_try_echo=$ac_try;;
5987esac
5988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989  (eval "$ac_compiler -v >&5") 2>&5
5990  ac_status=$?
5991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992  (exit $ac_status); }
5993{ (ac_try="$ac_compiler -V >&5"
5994case "(($ac_try" in
5995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996  *) ac_try_echo=$ac_try;;
5997esac
5998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999  (eval "$ac_compiler -V >&5") 2>&5
6000  ac_status=$?
6001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002  (exit $ac_status); }
6003rm -f a.out
6004
6005# If we don't use `.F' as extension, the preprocessor is not run on the
6006# input file.  (Note that this only needs to work for GNU compilers.)
6007ac_save_ext=$ac_ext
6008ac_ext=F
6009{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6010echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6011if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6012  echo $ECHO_N "(cached) $ECHO_C" >&6
6013else
6014  cat >conftest.$ac_ext <<_ACEOF
6015      program main
6016#ifndef __GNUC__
6017       choke me
6018#endif
6019
6020      end
6021_ACEOF
6022rm -f conftest.$ac_objext
6023if { (ac_try="$ac_compile"
6024case "(($ac_try" in
6025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026  *) ac_try_echo=$ac_try;;
6027esac
6028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029  (eval "$ac_compile") 2>conftest.er1
6030  ac_status=$?
6031  grep -v '^ *+' conftest.er1 >conftest.err
6032  rm -f conftest.er1
6033  cat conftest.err >&5
6034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035  (exit $ac_status); } && {
6036	 test -z "$ac_f77_werror_flag" ||
6037	 test ! -s conftest.err
6038       } && test -s conftest.$ac_objext; then
6039  ac_compiler_gnu=yes
6040else
6041  echo "$as_me: failed program was:" >&5
6042sed 's/^/| /' conftest.$ac_ext >&5
6043
6044	ac_compiler_gnu=no
6045fi
6046
6047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6049
6050fi
6051{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6052echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6053ac_ext=$ac_save_ext
6054ac_test_FFLAGS=${FFLAGS+set}
6055ac_save_FFLAGS=$FFLAGS
6056FFLAGS=
6057{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6058echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6059if test "${ac_cv_prog_f77_g+set}" = set; then
6060  echo $ECHO_N "(cached) $ECHO_C" >&6
6061else
6062  FFLAGS=-g
6063cat >conftest.$ac_ext <<_ACEOF
6064      program main
6065
6066      end
6067_ACEOF
6068rm -f conftest.$ac_objext
6069if { (ac_try="$ac_compile"
6070case "(($ac_try" in
6071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072  *) ac_try_echo=$ac_try;;
6073esac
6074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075  (eval "$ac_compile") 2>conftest.er1
6076  ac_status=$?
6077  grep -v '^ *+' conftest.er1 >conftest.err
6078  rm -f conftest.er1
6079  cat conftest.err >&5
6080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081  (exit $ac_status); } && {
6082	 test -z "$ac_f77_werror_flag" ||
6083	 test ! -s conftest.err
6084       } && test -s conftest.$ac_objext; then
6085  ac_cv_prog_f77_g=yes
6086else
6087  echo "$as_me: failed program was:" >&5
6088sed 's/^/| /' conftest.$ac_ext >&5
6089
6090	ac_cv_prog_f77_g=no
6091fi
6092
6093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094
6095fi
6096{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6097echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6098if test "$ac_test_FFLAGS" = set; then
6099  FFLAGS=$ac_save_FFLAGS
6100elif test $ac_cv_prog_f77_g = yes; then
6101  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6102    FFLAGS="-g -O2"
6103  else
6104    FFLAGS="-g"
6105  fi
6106else
6107  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6108    FFLAGS="-O2"
6109  else
6110    FFLAGS=
6111  fi
6112fi
6113
6114G77=`test $ac_compiler_gnu = yes && echo yes`
6115ac_ext=c
6116ac_cpp='$CPP $CPPFLAGS'
6117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6119ac_compiler_gnu=$ac_cv_c_compiler_gnu
6120
6121
6122
6123# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6124# find the maximum length of command line arguments
6125{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6126echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6127if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6128  echo $ECHO_N "(cached) $ECHO_C" >&6
6129else
6130    i=0
6131  teststring="ABCD"
6132
6133  case $build_os in
6134  msdosdjgpp*)
6135    # On DJGPP, this test can blow up pretty badly due to problems in libc
6136    # (any single argument exceeding 2000 bytes causes a buffer overrun
6137    # during glob expansion).  Even if it were fixed, the result of this
6138    # check would be larger than it should be.
6139    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6140    ;;
6141
6142  gnu*)
6143    # Under GNU Hurd, this test is not required because there is
6144    # no limit to the length of command line arguments.
6145    # Libtool will interpret -1 as no limit whatsoever
6146    lt_cv_sys_max_cmd_len=-1;
6147    ;;
6148
6149  cygwin* | mingw*)
6150    # On Win9x/ME, this test blows up -- it succeeds, but takes
6151    # about 5 minutes as the teststring grows exponentially.
6152    # Worse, since 9x/ME are not pre-emptively multitasking,
6153    # you end up with a "frozen" computer, even though with patience
6154    # the test eventually succeeds (with a max line length of 256k).
6155    # Instead, let's just punt: use the minimum linelength reported by
6156    # all of the supported platforms: 8192 (on NT/2K/XP).
6157    lt_cv_sys_max_cmd_len=8192;
6158    ;;
6159
6160  amigaos*)
6161    # On AmigaOS with pdksh, this test takes hours, literally.
6162    # So we just punt and use a minimum line length of 8192.
6163    lt_cv_sys_max_cmd_len=8192;
6164    ;;
6165
6166  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6167    # This has been around since 386BSD, at least.  Likely further.
6168    if test -x /sbin/sysctl; then
6169      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6170    elif test -x /usr/sbin/sysctl; then
6171      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6172    else
6173      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6174    fi
6175    # And add a safety zone
6176    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6177    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6178    ;;
6179
6180  interix*)
6181    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6182    lt_cv_sys_max_cmd_len=196608
6183    ;;
6184
6185  osf*)
6186    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6187    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6188    # nice to cause kernel panics so lets avoid the loop below.
6189    # First set a reasonable default.
6190    lt_cv_sys_max_cmd_len=16384
6191    #
6192    if test -x /sbin/sysconfig; then
6193      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6194        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6195      esac
6196    fi
6197    ;;
6198  sco3.2v5*)
6199    lt_cv_sys_max_cmd_len=102400
6200    ;;
6201  sysv5* | sco5v6* | sysv4.2uw2*)
6202    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6203    if test -n "$kargmax"; then
6204      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6205    else
6206      lt_cv_sys_max_cmd_len=32768
6207    fi
6208    ;;
6209  *)
6210    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6211    if test -n "$lt_cv_sys_max_cmd_len"; then
6212      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6213      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6214    else
6215      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6216      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6217	       = "XX$teststring") >/dev/null 2>&1 &&
6218	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6219	      lt_cv_sys_max_cmd_len=$new_result &&
6220	      test $i != 17 # 1/2 MB should be enough
6221      do
6222        i=`expr $i + 1`
6223        teststring=$teststring$teststring
6224      done
6225      teststring=
6226      # Add a significant safety factor because C++ compilers can tack on massive
6227      # amounts of additional arguments before passing them to the linker.
6228      # It appears as though 1/2 is a usable value.
6229      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6230    fi
6231    ;;
6232  esac
6233
6234fi
6235
6236if test -n $lt_cv_sys_max_cmd_len ; then
6237  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6238echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6239else
6240  { echo "$as_me:$LINENO: result: none" >&5
6241echo "${ECHO_T}none" >&6; }
6242fi
6243
6244
6245
6246
6247
6248# Check for command to grab the raw symbol name followed by C symbol from nm.
6249{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6250echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6251if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6252  echo $ECHO_N "(cached) $ECHO_C" >&6
6253else
6254
6255# These are sane defaults that work on at least a few old systems.
6256# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6257
6258# Character class describing NM global symbol codes.
6259symcode='[BCDEGRST]'
6260
6261# Regexp to match symbols that can be accessed directly from C.
6262sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6263
6264# Transform an extracted symbol line into a proper C declaration
6265lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6266
6267# Transform an extracted symbol line into symbol name and symbol address
6268lt_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'"
6269
6270# Define system-specific variables.
6271case $host_os in
6272aix*)
6273  symcode='[BCDT]'
6274  ;;
6275cygwin* | mingw* | pw32*)
6276  symcode='[ABCDGISTW]'
6277  ;;
6278hpux*) # Its linker distinguishes data from code symbols
6279  if test "$host_cpu" = ia64; then
6280    symcode='[ABCDEGRST]'
6281  fi
6282  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6283  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'"
6284  ;;
6285linux* | k*bsd*-gnu)
6286  if test "$host_cpu" = ia64; then
6287    symcode='[ABCDGIRSTW]'
6288    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6289    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'"
6290  fi
6291  ;;
6292irix* | nonstopux*)
6293  symcode='[BCDEGRST]'
6294  ;;
6295osf*)
6296  symcode='[BCDEGQRST]'
6297  ;;
6298solaris*)
6299  symcode='[BDRT]'
6300  ;;
6301sco3.2v5*)
6302  symcode='[DT]'
6303  ;;
6304sysv4.2uw2*)
6305  symcode='[DT]'
6306  ;;
6307sysv5* | sco5v6* | unixware* | OpenUNIX*)
6308  symcode='[ABDT]'
6309  ;;
6310sysv4)
6311  symcode='[DFNSTU]'
6312  ;;
6313esac
6314
6315# Handle CRLF in mingw tool chain
6316opt_cr=
6317case $build_os in
6318mingw*)
6319  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6320  ;;
6321esac
6322
6323# If we're using GNU nm, then use its standard symbol codes.
6324case `$NM -V 2>&1` in
6325*GNU* | *'with BFD'*)
6326  symcode='[ABCDGIRSTW]' ;;
6327esac
6328
6329# Try without a prefix undercore, then with it.
6330for ac_symprfx in "" "_"; do
6331
6332  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6333  symxfrm="\\1 $ac_symprfx\\2 \\2"
6334
6335  # Write the raw and C identifiers.
6336  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6337
6338  # Check to see that the pipe works correctly.
6339  pipe_works=no
6340
6341  rm -f conftest*
6342  cat > conftest.$ac_ext <<EOF
6343#ifdef __cplusplus
6344extern "C" {
6345#endif
6346char nm_test_var;
6347void nm_test_func(){}
6348#ifdef __cplusplus
6349}
6350#endif
6351int main(){nm_test_var='a';nm_test_func();return(0);}
6352EOF
6353
6354  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6355  (eval $ac_compile) 2>&5
6356  ac_status=$?
6357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358  (exit $ac_status); }; then
6359    # Now try to grab the symbols.
6360    nlist=conftest.nm
6361    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6362  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6363  ac_status=$?
6364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365  (exit $ac_status); } && test -s "$nlist"; then
6366      # Try sorting and uniquifying the output.
6367      if sort "$nlist" | uniq > "$nlist"T; then
6368	mv -f "$nlist"T "$nlist"
6369      else
6370	rm -f "$nlist"T
6371      fi
6372
6373      # Make sure that we snagged all the symbols we need.
6374      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6375	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6376	  cat <<EOF > conftest.$ac_ext
6377#ifdef __cplusplus
6378extern "C" {
6379#endif
6380
6381EOF
6382	  # Now generate the symbol file.
6383	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6384
6385	  cat <<EOF >> conftest.$ac_ext
6386#if defined (__STDC__) && __STDC__
6387# define lt_ptr_t void *
6388#else
6389# define lt_ptr_t char *
6390# define const
6391#endif
6392
6393/* The mapping between symbol names and symbols. */
6394const struct {
6395  const char *name;
6396  lt_ptr_t address;
6397}
6398lt_preloaded_symbols[] =
6399{
6400EOF
6401	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6402	  cat <<\EOF >> conftest.$ac_ext
6403  {0, (lt_ptr_t) 0}
6404};
6405
6406#ifdef __cplusplus
6407}
6408#endif
6409EOF
6410	  # Now try linking the two files.
6411	  mv conftest.$ac_objext conftstm.$ac_objext
6412	  lt_save_LIBS="$LIBS"
6413	  lt_save_CFLAGS="$CFLAGS"
6414	  LIBS="conftstm.$ac_objext"
6415	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6416	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6417  (eval $ac_link) 2>&5
6418  ac_status=$?
6419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6421	    pipe_works=yes
6422	  fi
6423	  LIBS="$lt_save_LIBS"
6424	  CFLAGS="$lt_save_CFLAGS"
6425	else
6426	  echo "cannot find nm_test_func in $nlist" >&5
6427	fi
6428      else
6429	echo "cannot find nm_test_var in $nlist" >&5
6430      fi
6431    else
6432      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6433    fi
6434  else
6435    echo "$progname: failed program was:" >&5
6436    cat conftest.$ac_ext >&5
6437  fi
6438  rm -rf conftest* conftst*
6439
6440  # Do not use the global_symbol_pipe unless it works.
6441  if test "$pipe_works" = yes; then
6442    break
6443  else
6444    lt_cv_sys_global_symbol_pipe=
6445  fi
6446done
6447
6448fi
6449
6450if test -z "$lt_cv_sys_global_symbol_pipe"; then
6451  lt_cv_sys_global_symbol_to_cdecl=
6452fi
6453if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6454  { echo "$as_me:$LINENO: result: failed" >&5
6455echo "${ECHO_T}failed" >&6; }
6456else
6457  { echo "$as_me:$LINENO: result: ok" >&5
6458echo "${ECHO_T}ok" >&6; }
6459fi
6460
6461{ echo "$as_me:$LINENO: checking for objdir" >&5
6462echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6463if test "${lt_cv_objdir+set}" = set; then
6464  echo $ECHO_N "(cached) $ECHO_C" >&6
6465else
6466  rm -f .libs 2>/dev/null
6467mkdir .libs 2>/dev/null
6468if test -d .libs; then
6469  lt_cv_objdir=.libs
6470else
6471  # MS-DOS does not allow filenames that begin with a dot.
6472  lt_cv_objdir=_libs
6473fi
6474rmdir .libs 2>/dev/null
6475fi
6476{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6477echo "${ECHO_T}$lt_cv_objdir" >&6; }
6478objdir=$lt_cv_objdir
6479
6480
6481
6482
6483
6484case $host_os in
6485aix3*)
6486  # AIX sometimes has problems with the GCC collect2 program.  For some
6487  # reason, if we set the COLLECT_NAMES environment variable, the problems
6488  # vanish in a puff of smoke.
6489  if test "X${COLLECT_NAMES+set}" != Xset; then
6490    COLLECT_NAMES=
6491    export COLLECT_NAMES
6492  fi
6493  ;;
6494esac
6495
6496# Sed substitution that helps us do robust quoting.  It backslashifies
6497# metacharacters that are still active within double-quoted strings.
6498Xsed='sed -e 1s/^X//'
6499sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6500
6501# Same as above, but do not quote variable references.
6502double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6503
6504# Sed substitution to delay expansion of an escaped shell variable in a
6505# double_quote_subst'ed string.
6506delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6507
6508# Sed substitution to avoid accidental globbing in evaled expressions
6509no_glob_subst='s/\*/\\\*/g'
6510
6511# Constants:
6512rm="rm -f"
6513
6514# Global variables:
6515default_ofile=libtool
6516can_build_shared=yes
6517
6518# All known linkers require a `.a' archive for static linking (except MSVC,
6519# which needs '.lib').
6520libext=a
6521ltmain="$ac_aux_dir/ltmain.sh"
6522ofile="$default_ofile"
6523with_gnu_ld="$lt_cv_prog_gnu_ld"
6524
6525if test -n "$ac_tool_prefix"; then
6526  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6527set dummy ${ac_tool_prefix}ar; ac_word=$2
6528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6530if test "${ac_cv_prog_AR+set}" = set; then
6531  echo $ECHO_N "(cached) $ECHO_C" >&6
6532else
6533  if test -n "$AR"; then
6534  ac_cv_prog_AR="$AR" # Let the user override the test.
6535else
6536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537for as_dir in $PATH
6538do
6539  IFS=$as_save_IFS
6540  test -z "$as_dir" && as_dir=.
6541  for ac_exec_ext in '' $ac_executable_extensions; do
6542  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6543    ac_cv_prog_AR="${ac_tool_prefix}ar"
6544    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6545    break 2
6546  fi
6547done
6548done
6549IFS=$as_save_IFS
6550
6551fi
6552fi
6553AR=$ac_cv_prog_AR
6554if test -n "$AR"; then
6555  { echo "$as_me:$LINENO: result: $AR" >&5
6556echo "${ECHO_T}$AR" >&6; }
6557else
6558  { echo "$as_me:$LINENO: result: no" >&5
6559echo "${ECHO_T}no" >&6; }
6560fi
6561
6562
6563fi
6564if test -z "$ac_cv_prog_AR"; then
6565  ac_ct_AR=$AR
6566  # Extract the first word of "ar", so it can be a program name with args.
6567set dummy ar; ac_word=$2
6568{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6570if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6571  echo $ECHO_N "(cached) $ECHO_C" >&6
6572else
6573  if test -n "$ac_ct_AR"; then
6574  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6575else
6576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577for as_dir in $PATH
6578do
6579  IFS=$as_save_IFS
6580  test -z "$as_dir" && as_dir=.
6581  for ac_exec_ext in '' $ac_executable_extensions; do
6582  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6583    ac_cv_prog_ac_ct_AR="ar"
6584    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6585    break 2
6586  fi
6587done
6588done
6589IFS=$as_save_IFS
6590
6591fi
6592fi
6593ac_ct_AR=$ac_cv_prog_ac_ct_AR
6594if test -n "$ac_ct_AR"; then
6595  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6596echo "${ECHO_T}$ac_ct_AR" >&6; }
6597else
6598  { echo "$as_me:$LINENO: result: no" >&5
6599echo "${ECHO_T}no" >&6; }
6600fi
6601
6602  if test "x$ac_ct_AR" = x; then
6603    AR="false"
6604  else
6605    case $cross_compiling:$ac_tool_warned in
6606yes:)
6607{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6608whose name does not start with the host triplet.  If you think this
6609configuration is useful to you, please write to autoconf@gnu.org." >&5
6610echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6611whose name does not start with the host triplet.  If you think this
6612configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6613ac_tool_warned=yes ;;
6614esac
6615    AR=$ac_ct_AR
6616  fi
6617else
6618  AR="$ac_cv_prog_AR"
6619fi
6620
6621if test -n "$ac_tool_prefix"; then
6622  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6623set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6624{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626if test "${ac_cv_prog_RANLIB+set}" = set; then
6627  echo $ECHO_N "(cached) $ECHO_C" >&6
6628else
6629  if test -n "$RANLIB"; then
6630  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6631else
6632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633for as_dir in $PATH
6634do
6635  IFS=$as_save_IFS
6636  test -z "$as_dir" && as_dir=.
6637  for ac_exec_ext in '' $ac_executable_extensions; do
6638  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6640    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641    break 2
6642  fi
6643done
6644done
6645IFS=$as_save_IFS
6646
6647fi
6648fi
6649RANLIB=$ac_cv_prog_RANLIB
6650if test -n "$RANLIB"; then
6651  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6652echo "${ECHO_T}$RANLIB" >&6; }
6653else
6654  { echo "$as_me:$LINENO: result: no" >&5
6655echo "${ECHO_T}no" >&6; }
6656fi
6657
6658
6659fi
6660if test -z "$ac_cv_prog_RANLIB"; then
6661  ac_ct_RANLIB=$RANLIB
6662  # Extract the first word of "ranlib", so it can be a program name with args.
6663set dummy ranlib; ac_word=$2
6664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6667  echo $ECHO_N "(cached) $ECHO_C" >&6
6668else
6669  if test -n "$ac_ct_RANLIB"; then
6670  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6671else
6672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673for as_dir in $PATH
6674do
6675  IFS=$as_save_IFS
6676  test -z "$as_dir" && as_dir=.
6677  for ac_exec_ext in '' $ac_executable_extensions; do
6678  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679    ac_cv_prog_ac_ct_RANLIB="ranlib"
6680    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681    break 2
6682  fi
6683done
6684done
6685IFS=$as_save_IFS
6686
6687fi
6688fi
6689ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6690if test -n "$ac_ct_RANLIB"; then
6691  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6692echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6693else
6694  { echo "$as_me:$LINENO: result: no" >&5
6695echo "${ECHO_T}no" >&6; }
6696fi
6697
6698  if test "x$ac_ct_RANLIB" = x; then
6699    RANLIB=":"
6700  else
6701    case $cross_compiling:$ac_tool_warned in
6702yes:)
6703{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6704whose name does not start with the host triplet.  If you think this
6705configuration is useful to you, please write to autoconf@gnu.org." >&5
6706echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6707whose name does not start with the host triplet.  If you think this
6708configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6709ac_tool_warned=yes ;;
6710esac
6711    RANLIB=$ac_ct_RANLIB
6712  fi
6713else
6714  RANLIB="$ac_cv_prog_RANLIB"
6715fi
6716
6717if test -n "$ac_tool_prefix"; then
6718  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6719set dummy ${ac_tool_prefix}strip; ac_word=$2
6720{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722if test "${ac_cv_prog_STRIP+set}" = set; then
6723  echo $ECHO_N "(cached) $ECHO_C" >&6
6724else
6725  if test -n "$STRIP"; then
6726  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6727else
6728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729for as_dir in $PATH
6730do
6731  IFS=$as_save_IFS
6732  test -z "$as_dir" && as_dir=.
6733  for ac_exec_ext in '' $ac_executable_extensions; do
6734  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6736    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737    break 2
6738  fi
6739done
6740done
6741IFS=$as_save_IFS
6742
6743fi
6744fi
6745STRIP=$ac_cv_prog_STRIP
6746if test -n "$STRIP"; then
6747  { echo "$as_me:$LINENO: result: $STRIP" >&5
6748echo "${ECHO_T}$STRIP" >&6; }
6749else
6750  { echo "$as_me:$LINENO: result: no" >&5
6751echo "${ECHO_T}no" >&6; }
6752fi
6753
6754
6755fi
6756if test -z "$ac_cv_prog_STRIP"; then
6757  ac_ct_STRIP=$STRIP
6758  # Extract the first word of "strip", so it can be a program name with args.
6759set dummy strip; ac_word=$2
6760{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6762if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6763  echo $ECHO_N "(cached) $ECHO_C" >&6
6764else
6765  if test -n "$ac_ct_STRIP"; then
6766  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6767else
6768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769for as_dir in $PATH
6770do
6771  IFS=$as_save_IFS
6772  test -z "$as_dir" && as_dir=.
6773  for ac_exec_ext in '' $ac_executable_extensions; do
6774  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775    ac_cv_prog_ac_ct_STRIP="strip"
6776    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777    break 2
6778  fi
6779done
6780done
6781IFS=$as_save_IFS
6782
6783fi
6784fi
6785ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6786if test -n "$ac_ct_STRIP"; then
6787  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6788echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6789else
6790  { echo "$as_me:$LINENO: result: no" >&5
6791echo "${ECHO_T}no" >&6; }
6792fi
6793
6794  if test "x$ac_ct_STRIP" = x; then
6795    STRIP=":"
6796  else
6797    case $cross_compiling:$ac_tool_warned in
6798yes:)
6799{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6800whose name does not start with the host triplet.  If you think this
6801configuration is useful to you, please write to autoconf@gnu.org." >&5
6802echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6803whose name does not start with the host triplet.  If you think this
6804configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6805ac_tool_warned=yes ;;
6806esac
6807    STRIP=$ac_ct_STRIP
6808  fi
6809else
6810  STRIP="$ac_cv_prog_STRIP"
6811fi
6812
6813
6814old_CC="$CC"
6815old_CFLAGS="$CFLAGS"
6816
6817# Set sane defaults for various variables
6818test -z "$AR" && AR=ar
6819test -z "$AR_FLAGS" && AR_FLAGS=cru
6820test -z "$AS" && AS=as
6821test -z "$CC" && CC=cc
6822test -z "$LTCC" && LTCC=$CC
6823test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6824test -z "$DLLTOOL" && DLLTOOL=dlltool
6825test -z "$LD" && LD=ld
6826test -z "$LN_S" && LN_S="ln -s"
6827test -z "$MAGIC_CMD" && MAGIC_CMD=file
6828test -z "$NM" && NM=nm
6829test -z "$SED" && SED=sed
6830test -z "$OBJDUMP" && OBJDUMP=objdump
6831test -z "$RANLIB" && RANLIB=:
6832test -z "$STRIP" && STRIP=:
6833test -z "$ac_objext" && ac_objext=o
6834
6835# Determine commands to create old-style static archives.
6836old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6837old_postinstall_cmds='chmod 644 $oldlib'
6838old_postuninstall_cmds=
6839
6840if test -n "$RANLIB"; then
6841  case $host_os in
6842  openbsd*)
6843    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6844    ;;
6845  *)
6846    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6847    ;;
6848  esac
6849  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6850fi
6851
6852for cc_temp in $compiler""; do
6853  case $cc_temp in
6854    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6855    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6856    \-*) ;;
6857    *) break;;
6858  esac
6859done
6860cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6861
6862
6863# Only perform the check for file, if the check method requires it
6864case $deplibs_check_method in
6865file_magic*)
6866  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6867    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6868echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6869if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6870  echo $ECHO_N "(cached) $ECHO_C" >&6
6871else
6872  case $MAGIC_CMD in
6873[\\/*] |  ?:[\\/]*)
6874  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6875  ;;
6876*)
6877  lt_save_MAGIC_CMD="$MAGIC_CMD"
6878  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6879  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6880  for ac_dir in $ac_dummy; do
6881    IFS="$lt_save_ifs"
6882    test -z "$ac_dir" && ac_dir=.
6883    if test -f $ac_dir/${ac_tool_prefix}file; then
6884      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6885      if test -n "$file_magic_test_file"; then
6886	case $deplibs_check_method in
6887	"file_magic "*)
6888	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6889	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6890	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6891	    $EGREP "$file_magic_regex" > /dev/null; then
6892	    :
6893	  else
6894	    cat <<EOF 1>&2
6895
6896*** Warning: the command libtool uses to detect shared libraries,
6897*** $file_magic_cmd, produces output that libtool cannot recognize.
6898*** The result is that libtool may fail to recognize shared libraries
6899*** as such.  This will affect the creation of libtool libraries that
6900*** depend on shared libraries, but programs linked with such libtool
6901*** libraries will work regardless of this problem.  Nevertheless, you
6902*** may want to report the problem to your system manager and/or to
6903*** bug-libtool@gnu.org
6904
6905EOF
6906	  fi ;;
6907	esac
6908      fi
6909      break
6910    fi
6911  done
6912  IFS="$lt_save_ifs"
6913  MAGIC_CMD="$lt_save_MAGIC_CMD"
6914  ;;
6915esac
6916fi
6917
6918MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6919if test -n "$MAGIC_CMD"; then
6920  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6921echo "${ECHO_T}$MAGIC_CMD" >&6; }
6922else
6923  { echo "$as_me:$LINENO: result: no" >&5
6924echo "${ECHO_T}no" >&6; }
6925fi
6926
6927if test -z "$lt_cv_path_MAGIC_CMD"; then
6928  if test -n "$ac_tool_prefix"; then
6929    { echo "$as_me:$LINENO: checking for file" >&5
6930echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6931if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6932  echo $ECHO_N "(cached) $ECHO_C" >&6
6933else
6934  case $MAGIC_CMD in
6935[\\/*] |  ?:[\\/]*)
6936  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6937  ;;
6938*)
6939  lt_save_MAGIC_CMD="$MAGIC_CMD"
6940  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6941  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6942  for ac_dir in $ac_dummy; do
6943    IFS="$lt_save_ifs"
6944    test -z "$ac_dir" && ac_dir=.
6945    if test -f $ac_dir/file; then
6946      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6947      if test -n "$file_magic_test_file"; then
6948	case $deplibs_check_method in
6949	"file_magic "*)
6950	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6951	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6952	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6953	    $EGREP "$file_magic_regex" > /dev/null; then
6954	    :
6955	  else
6956	    cat <<EOF 1>&2
6957
6958*** Warning: the command libtool uses to detect shared libraries,
6959*** $file_magic_cmd, produces output that libtool cannot recognize.
6960*** The result is that libtool may fail to recognize shared libraries
6961*** as such.  This will affect the creation of libtool libraries that
6962*** depend on shared libraries, but programs linked with such libtool
6963*** libraries will work regardless of this problem.  Nevertheless, you
6964*** may want to report the problem to your system manager and/or to
6965*** bug-libtool@gnu.org
6966
6967EOF
6968	  fi ;;
6969	esac
6970      fi
6971      break
6972    fi
6973  done
6974  IFS="$lt_save_ifs"
6975  MAGIC_CMD="$lt_save_MAGIC_CMD"
6976  ;;
6977esac
6978fi
6979
6980MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6981if test -n "$MAGIC_CMD"; then
6982  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6983echo "${ECHO_T}$MAGIC_CMD" >&6; }
6984else
6985  { echo "$as_me:$LINENO: result: no" >&5
6986echo "${ECHO_T}no" >&6; }
6987fi
6988
6989  else
6990    MAGIC_CMD=:
6991  fi
6992fi
6993
6994  fi
6995  ;;
6996esac
6997
6998
6999  case $host_os in
7000    rhapsody* | darwin*)
7001    if test -n "$ac_tool_prefix"; then
7002  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7003set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7004{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7006if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7007  echo $ECHO_N "(cached) $ECHO_C" >&6
7008else
7009  if test -n "$DSYMUTIL"; then
7010  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7011else
7012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013for as_dir in $PATH
7014do
7015  IFS=$as_save_IFS
7016  test -z "$as_dir" && as_dir=.
7017  for ac_exec_ext in '' $ac_executable_extensions; do
7018  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7020    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7021    break 2
7022  fi
7023done
7024done
7025IFS=$as_save_IFS
7026
7027fi
7028fi
7029DSYMUTIL=$ac_cv_prog_DSYMUTIL
7030if test -n "$DSYMUTIL"; then
7031  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7032echo "${ECHO_T}$DSYMUTIL" >&6; }
7033else
7034  { echo "$as_me:$LINENO: result: no" >&5
7035echo "${ECHO_T}no" >&6; }
7036fi
7037
7038
7039fi
7040if test -z "$ac_cv_prog_DSYMUTIL"; then
7041  ac_ct_DSYMUTIL=$DSYMUTIL
7042  # Extract the first word of "dsymutil", so it can be a program name with args.
7043set dummy dsymutil; ac_word=$2
7044{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7046if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7047  echo $ECHO_N "(cached) $ECHO_C" >&6
7048else
7049  if test -n "$ac_ct_DSYMUTIL"; then
7050  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7051else
7052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053for as_dir in $PATH
7054do
7055  IFS=$as_save_IFS
7056  test -z "$as_dir" && as_dir=.
7057  for ac_exec_ext in '' $ac_executable_extensions; do
7058  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7059    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7060    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7061    break 2
7062  fi
7063done
7064done
7065IFS=$as_save_IFS
7066
7067fi
7068fi
7069ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7070if test -n "$ac_ct_DSYMUTIL"; then
7071  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7072echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7073else
7074  { echo "$as_me:$LINENO: result: no" >&5
7075echo "${ECHO_T}no" >&6; }
7076fi
7077
7078  if test "x$ac_ct_DSYMUTIL" = x; then
7079    DSYMUTIL=":"
7080  else
7081    case $cross_compiling:$ac_tool_warned in
7082yes:)
7083{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7084whose name does not start with the host triplet.  If you think this
7085configuration is useful to you, please write to autoconf@gnu.org." >&5
7086echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7087whose name does not start with the host triplet.  If you think this
7088configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7089ac_tool_warned=yes ;;
7090esac
7091    DSYMUTIL=$ac_ct_DSYMUTIL
7092  fi
7093else
7094  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7095fi
7096
7097    if test -n "$ac_tool_prefix"; then
7098  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7099set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7100{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7102if test "${ac_cv_prog_NMEDIT+set}" = set; then
7103  echo $ECHO_N "(cached) $ECHO_C" >&6
7104else
7105  if test -n "$NMEDIT"; then
7106  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7107else
7108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109for as_dir in $PATH
7110do
7111  IFS=$as_save_IFS
7112  test -z "$as_dir" && as_dir=.
7113  for ac_exec_ext in '' $ac_executable_extensions; do
7114  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7115    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7116    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117    break 2
7118  fi
7119done
7120done
7121IFS=$as_save_IFS
7122
7123fi
7124fi
7125NMEDIT=$ac_cv_prog_NMEDIT
7126if test -n "$NMEDIT"; then
7127  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7128echo "${ECHO_T}$NMEDIT" >&6; }
7129else
7130  { echo "$as_me:$LINENO: result: no" >&5
7131echo "${ECHO_T}no" >&6; }
7132fi
7133
7134
7135fi
7136if test -z "$ac_cv_prog_NMEDIT"; then
7137  ac_ct_NMEDIT=$NMEDIT
7138  # Extract the first word of "nmedit", so it can be a program name with args.
7139set dummy nmedit; ac_word=$2
7140{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7142if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7143  echo $ECHO_N "(cached) $ECHO_C" >&6
7144else
7145  if test -n "$ac_ct_NMEDIT"; then
7146  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7147else
7148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149for as_dir in $PATH
7150do
7151  IFS=$as_save_IFS
7152  test -z "$as_dir" && as_dir=.
7153  for ac_exec_ext in '' $ac_executable_extensions; do
7154  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7156    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7157    break 2
7158  fi
7159done
7160done
7161IFS=$as_save_IFS
7162
7163fi
7164fi
7165ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7166if test -n "$ac_ct_NMEDIT"; then
7167  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7168echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7169else
7170  { echo "$as_me:$LINENO: result: no" >&5
7171echo "${ECHO_T}no" >&6; }
7172fi
7173
7174  if test "x$ac_ct_NMEDIT" = x; then
7175    NMEDIT=":"
7176  else
7177    case $cross_compiling:$ac_tool_warned in
7178yes:)
7179{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7180whose name does not start with the host triplet.  If you think this
7181configuration is useful to you, please write to autoconf@gnu.org." >&5
7182echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7183whose name does not start with the host triplet.  If you think this
7184configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7185ac_tool_warned=yes ;;
7186esac
7187    NMEDIT=$ac_ct_NMEDIT
7188  fi
7189else
7190  NMEDIT="$ac_cv_prog_NMEDIT"
7191fi
7192
7193
7194    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7195echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7196if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7197  echo $ECHO_N "(cached) $ECHO_C" >&6
7198else
7199  lt_cv_apple_cc_single_mod=no
7200      if test -z "${LT_MULTI_MODULE}"; then
7201   # By default we will add the -single_module flag. You can override
7202   # by either setting the environment variable LT_MULTI_MODULE
7203   # non-empty at configure time, or by adding -multi_module to the
7204   # link flags.
7205   echo "int foo(void){return 1;}" > conftest.c
7206   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7207     -dynamiclib ${wl}-single_module conftest.c
7208   if test -f libconftest.dylib; then
7209     lt_cv_apple_cc_single_mod=yes
7210     rm -rf libconftest.dylib*
7211   fi
7212   rm conftest.c
7213      fi
7214fi
7215{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7216echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7217    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7218echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7219if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7220  echo $ECHO_N "(cached) $ECHO_C" >&6
7221else
7222  lt_cv_ld_exported_symbols_list=no
7223      save_LDFLAGS=$LDFLAGS
7224      echo "_main" > conftest.sym
7225      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7226      cat >conftest.$ac_ext <<_ACEOF
7227/* confdefs.h.  */
7228_ACEOF
7229cat confdefs.h >>conftest.$ac_ext
7230cat >>conftest.$ac_ext <<_ACEOF
7231/* end confdefs.h.  */
7232
7233int
7234main ()
7235{
7236
7237  ;
7238  return 0;
7239}
7240_ACEOF
7241rm -f conftest.$ac_objext conftest$ac_exeext
7242if { (ac_try="$ac_link"
7243case "(($ac_try" in
7244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245  *) ac_try_echo=$ac_try;;
7246esac
7247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7248  (eval "$ac_link") 2>conftest.er1
7249  ac_status=$?
7250  grep -v '^ *+' conftest.er1 >conftest.err
7251  rm -f conftest.er1
7252  cat conftest.err >&5
7253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254  (exit $ac_status); } && {
7255	 test -z "$ac_c_werror_flag" ||
7256	 test ! -s conftest.err
7257       } && test -s conftest$ac_exeext &&
7258       $as_test_x conftest$ac_exeext; then
7259  lt_cv_ld_exported_symbols_list=yes
7260else
7261  echo "$as_me: failed program was:" >&5
7262sed 's/^/| /' conftest.$ac_ext >&5
7263
7264	lt_cv_ld_exported_symbols_list=no
7265fi
7266
7267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7268      conftest$ac_exeext conftest.$ac_ext
7269   LDFLAGS="$save_LDFLAGS"
7270
7271fi
7272{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7273echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7274    case $host_os in
7275    rhapsody* | darwin1.[0123])
7276      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7277    darwin1.*)
7278     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7279    darwin*)
7280      # if running on 10.5 or later, the deployment target defaults
7281      # to the OS version, if on x86, and 10.4, the deployment
7282      # target defaults to 10.4. Don't you love it?
7283      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7284   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7285     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7286   10.[012]*)
7287     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7288   10.*)
7289     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7290      esac
7291    ;;
7292  esac
7293    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7294      _lt_dar_single_mod='$single_module'
7295    fi
7296    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7297      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7298    else
7299      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7300    fi
7301    if test "$DSYMUTIL" != ":"; then
7302      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7303    else
7304      _lt_dsymutil=
7305    fi
7306    ;;
7307  esac
7308
7309
7310enable_dlopen=no
7311enable_win32_dll=no
7312
7313# Check whether --enable-libtool-lock was given.
7314if test "${enable_libtool_lock+set}" = set; then
7315  enableval=$enable_libtool_lock;
7316fi
7317
7318test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7319
7320
7321# Check whether --with-pic was given.
7322if test "${with_pic+set}" = set; then
7323  withval=$with_pic; pic_mode="$withval"
7324else
7325  pic_mode=default
7326fi
7327
7328test -z "$pic_mode" && pic_mode=default
7329
7330# Use C for the default configuration in the libtool script
7331tagname=
7332lt_save_CC="$CC"
7333ac_ext=c
7334ac_cpp='$CPP $CPPFLAGS'
7335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7337ac_compiler_gnu=$ac_cv_c_compiler_gnu
7338
7339
7340# Source file extension for C test sources.
7341ac_ext=c
7342
7343# Object file extension for compiled C test sources.
7344objext=o
7345objext=$objext
7346
7347# Code to be used in simple compile tests
7348lt_simple_compile_test_code="int some_variable = 0;"
7349
7350# Code to be used in simple link tests
7351lt_simple_link_test_code='int main(){return(0);}'
7352
7353
7354# If no C compiler was specified, use CC.
7355LTCC=${LTCC-"$CC"}
7356
7357# If no C compiler flags were specified, use CFLAGS.
7358LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7359
7360# Allow CC to be a program name with arguments.
7361compiler=$CC
7362
7363
7364# save warnings/boilerplate of simple test code
7365ac_outfile=conftest.$ac_objext
7366echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7367eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7368_lt_compiler_boilerplate=`cat conftest.err`
7369$rm conftest*
7370
7371ac_outfile=conftest.$ac_objext
7372echo "$lt_simple_link_test_code" >conftest.$ac_ext
7373eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7374_lt_linker_boilerplate=`cat conftest.err`
7375$rm -r conftest*
7376
7377
7378
7379lt_prog_compiler_no_builtin_flag=
7380
7381if test "$GCC" = yes; then
7382  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7383
7384
7385{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7386echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7387if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7388  echo $ECHO_N "(cached) $ECHO_C" >&6
7389else
7390  lt_cv_prog_compiler_rtti_exceptions=no
7391  ac_outfile=conftest.$ac_objext
7392   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7393   lt_compiler_flag="-fno-rtti -fno-exceptions"
7394   # Insert the option either (1) after the last *FLAGS variable, or
7395   # (2) before a word containing "conftest.", or (3) at the end.
7396   # Note that $ac_compile itself does not contain backslashes and begins
7397   # with a dollar sign (not a hyphen), so the echo should work correctly.
7398   # The option is referenced via a variable to avoid confusing sed.
7399   lt_compile=`echo "$ac_compile" | $SED \
7400   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7401   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7402   -e 's:$: $lt_compiler_flag:'`
7403   (eval echo "\"\$as_me:7403: $lt_compile\"" >&5)
7404   (eval "$lt_compile" 2>conftest.err)
7405   ac_status=$?
7406   cat conftest.err >&5
7407   echo "$as_me:7407: \$? = $ac_status" >&5
7408   if (exit $ac_status) && test -s "$ac_outfile"; then
7409     # The compiler can only warn and ignore the option if not recognized
7410     # So say no if there are warnings other than the usual output.
7411     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7412     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7413     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7414       lt_cv_prog_compiler_rtti_exceptions=yes
7415     fi
7416   fi
7417   $rm conftest*
7418
7419fi
7420{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7421echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7422
7423if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7424    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7425else
7426    :
7427fi
7428
7429fi
7430
7431lt_prog_compiler_wl=
7432lt_prog_compiler_pic=
7433lt_prog_compiler_static=
7434
7435{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7436echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7437
7438  if test "$GCC" = yes; then
7439    lt_prog_compiler_wl='-Wl,'
7440    lt_prog_compiler_static='-static'
7441
7442    case $host_os in
7443      aix*)
7444      # All AIX code is PIC.
7445      if test "$host_cpu" = ia64; then
7446	# AIX 5 now supports IA64 processor
7447	lt_prog_compiler_static='-Bstatic'
7448      fi
7449      ;;
7450
7451    amigaos*)
7452      # FIXME: we need at least 68020 code to build shared libraries, but
7453      # adding the `-m68020' flag to GCC prevents building anything better,
7454      # like `-m68040'.
7455      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7456      ;;
7457
7458    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7459      # PIC is the default for these OSes.
7460      ;;
7461
7462    mingw* | cygwin* | pw32* | os2*)
7463      # This hack is so that the source file can tell whether it is being
7464      # built for inclusion in a dll (and should export symbols for example).
7465      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7466      # (--disable-auto-import) libraries
7467      lt_prog_compiler_pic='-DDLL_EXPORT'
7468      ;;
7469
7470    darwin* | rhapsody*)
7471      # PIC is the default on this platform
7472      # Common symbols not allowed in MH_DYLIB files
7473      lt_prog_compiler_pic='-fno-common'
7474      ;;
7475
7476    interix[3-9]*)
7477      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7478      # Instead, we relocate shared libraries at runtime.
7479      ;;
7480
7481    msdosdjgpp*)
7482      # Just because we use GCC doesn't mean we suddenly get shared libraries
7483      # on systems that don't support them.
7484      lt_prog_compiler_can_build_shared=no
7485      enable_shared=no
7486      ;;
7487
7488    sysv4*MP*)
7489      if test -d /usr/nec; then
7490	lt_prog_compiler_pic=-Kconform_pic
7491      fi
7492      ;;
7493
7494    hpux*)
7495      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7496      # not for PA HP-UX.
7497      case $host_cpu in
7498      hppa*64*|ia64*)
7499	# +Z the default
7500	;;
7501      *)
7502	lt_prog_compiler_pic='-fPIC'
7503	;;
7504      esac
7505      ;;
7506
7507    *)
7508      lt_prog_compiler_pic='-fPIC'
7509      ;;
7510    esac
7511  else
7512    # PORTME Check for flag to pass linker flags through the system compiler.
7513    case $host_os in
7514    aix*)
7515      lt_prog_compiler_wl='-Wl,'
7516      if test "$host_cpu" = ia64; then
7517	# AIX 5 now supports IA64 processor
7518	lt_prog_compiler_static='-Bstatic'
7519      else
7520	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7521      fi
7522      ;;
7523      darwin*)
7524        # PIC is the default on this platform
7525        # Common symbols not allowed in MH_DYLIB files
7526       case $cc_basename in
7527         xlc*)
7528         lt_prog_compiler_pic='-qnocommon'
7529         lt_prog_compiler_wl='-Wl,'
7530         ;;
7531       esac
7532       ;;
7533
7534    mingw* | cygwin* | pw32* | os2*)
7535      # This hack is so that the source file can tell whether it is being
7536      # built for inclusion in a dll (and should export symbols for example).
7537      lt_prog_compiler_pic='-DDLL_EXPORT'
7538      ;;
7539
7540    hpux9* | hpux10* | hpux11*)
7541      lt_prog_compiler_wl='-Wl,'
7542      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7543      # not for PA HP-UX.
7544      case $host_cpu in
7545      hppa*64*|ia64*)
7546	# +Z the default
7547	;;
7548      *)
7549	lt_prog_compiler_pic='+Z'
7550	;;
7551      esac
7552      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7553      lt_prog_compiler_static='${wl}-a ${wl}archive'
7554      ;;
7555
7556    irix5* | irix6* | nonstopux*)
7557      lt_prog_compiler_wl='-Wl,'
7558      # PIC (with -KPIC) is the default.
7559      lt_prog_compiler_static='-non_shared'
7560      ;;
7561
7562    newsos6)
7563      lt_prog_compiler_pic='-KPIC'
7564      lt_prog_compiler_static='-Bstatic'
7565      ;;
7566
7567    linux* | k*bsd*-gnu)
7568      case $cc_basename in
7569      icc* | ecc*)
7570	lt_prog_compiler_wl='-Wl,'
7571	lt_prog_compiler_pic='-KPIC'
7572	lt_prog_compiler_static='-static'
7573        ;;
7574      pgcc* | pgf77* | pgf90* | pgf95*)
7575        # Portland Group compilers (*not* the Pentium gcc compiler,
7576	# which looks to be a dead project)
7577	lt_prog_compiler_wl='-Wl,'
7578	lt_prog_compiler_pic='-fpic'
7579	lt_prog_compiler_static='-Bstatic'
7580        ;;
7581      ccc*)
7582        lt_prog_compiler_wl='-Wl,'
7583        # All Alpha code is PIC.
7584        lt_prog_compiler_static='-non_shared'
7585        ;;
7586      *)
7587        case `$CC -V 2>&1 | sed 5q` in
7588	*Sun\ C*)
7589	  # Sun C 5.9
7590	  lt_prog_compiler_pic='-KPIC'
7591	  lt_prog_compiler_static='-Bstatic'
7592	  lt_prog_compiler_wl='-Wl,'
7593	  ;;
7594	*Sun\ F*)
7595	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7596	  lt_prog_compiler_pic='-KPIC'
7597	  lt_prog_compiler_static='-Bstatic'
7598	  lt_prog_compiler_wl=''
7599	  ;;
7600	esac
7601	;;
7602      esac
7603      ;;
7604
7605    osf3* | osf4* | osf5*)
7606      lt_prog_compiler_wl='-Wl,'
7607      # All OSF/1 code is PIC.
7608      lt_prog_compiler_static='-non_shared'
7609      ;;
7610
7611    rdos*)
7612      lt_prog_compiler_static='-non_shared'
7613      ;;
7614
7615    solaris*)
7616      lt_prog_compiler_pic='-KPIC'
7617      lt_prog_compiler_static='-Bstatic'
7618      case $cc_basename in
7619      f77* | f90* | f95*)
7620	lt_prog_compiler_wl='-Qoption ld ';;
7621      *)
7622	lt_prog_compiler_wl='-Wl,';;
7623      esac
7624      ;;
7625
7626    sunos4*)
7627      lt_prog_compiler_wl='-Qoption ld '
7628      lt_prog_compiler_pic='-PIC'
7629      lt_prog_compiler_static='-Bstatic'
7630      ;;
7631
7632    sysv4 | sysv4.2uw2* | sysv4.3*)
7633      lt_prog_compiler_wl='-Wl,'
7634      lt_prog_compiler_pic='-KPIC'
7635      lt_prog_compiler_static='-Bstatic'
7636      ;;
7637
7638    sysv4*MP*)
7639      if test -d /usr/nec ;then
7640	lt_prog_compiler_pic='-Kconform_pic'
7641	lt_prog_compiler_static='-Bstatic'
7642      fi
7643      ;;
7644
7645    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7646      lt_prog_compiler_wl='-Wl,'
7647      lt_prog_compiler_pic='-KPIC'
7648      lt_prog_compiler_static='-Bstatic'
7649      ;;
7650
7651    unicos*)
7652      lt_prog_compiler_wl='-Wl,'
7653      lt_prog_compiler_can_build_shared=no
7654      ;;
7655
7656    uts4*)
7657      lt_prog_compiler_pic='-pic'
7658      lt_prog_compiler_static='-Bstatic'
7659      ;;
7660
7661    *)
7662      lt_prog_compiler_can_build_shared=no
7663      ;;
7664    esac
7665  fi
7666
7667{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7668echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7669
7670#
7671# Check to make sure the PIC flag actually works.
7672#
7673if test -n "$lt_prog_compiler_pic"; then
7674
7675{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7676echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7677if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7678  echo $ECHO_N "(cached) $ECHO_C" >&6
7679else
7680  lt_cv_prog_compiler_pic_works=no
7681  ac_outfile=conftest.$ac_objext
7682   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7683   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7684   # Insert the option either (1) after the last *FLAGS variable, or
7685   # (2) before a word containing "conftest.", or (3) at the end.
7686   # Note that $ac_compile itself does not contain backslashes and begins
7687   # with a dollar sign (not a hyphen), so the echo should work correctly.
7688   # The option is referenced via a variable to avoid confusing sed.
7689   lt_compile=`echo "$ac_compile" | $SED \
7690   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7691   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7692   -e 's:$: $lt_compiler_flag:'`
7693   (eval echo "\"\$as_me:7693: $lt_compile\"" >&5)
7694   (eval "$lt_compile" 2>conftest.err)
7695   ac_status=$?
7696   cat conftest.err >&5
7697   echo "$as_me:7697: \$? = $ac_status" >&5
7698   if (exit $ac_status) && test -s "$ac_outfile"; then
7699     # The compiler can only warn and ignore the option if not recognized
7700     # So say no if there are warnings other than the usual output.
7701     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7702     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7703     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7704       lt_cv_prog_compiler_pic_works=yes
7705     fi
7706   fi
7707   $rm conftest*
7708
7709fi
7710{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7711echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7712
7713if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7714    case $lt_prog_compiler_pic in
7715     "" | " "*) ;;
7716     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7717     esac
7718else
7719    lt_prog_compiler_pic=
7720     lt_prog_compiler_can_build_shared=no
7721fi
7722
7723fi
7724case $host_os in
7725  # For platforms which do not support PIC, -DPIC is meaningless:
7726  *djgpp*)
7727    lt_prog_compiler_pic=
7728    ;;
7729  *)
7730    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7731    ;;
7732esac
7733
7734#
7735# Check to make sure the static flag actually works.
7736#
7737wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7738{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7739echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7740if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7741  echo $ECHO_N "(cached) $ECHO_C" >&6
7742else
7743  lt_cv_prog_compiler_static_works=no
7744   save_LDFLAGS="$LDFLAGS"
7745   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7746   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7747   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7748     # The linker can only warn and ignore the option if not recognized
7749     # So say no if there are warnings
7750     if test -s conftest.err; then
7751       # Append any errors to the config.log.
7752       cat conftest.err 1>&5
7753       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7754       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7755       if diff conftest.exp conftest.er2 >/dev/null; then
7756         lt_cv_prog_compiler_static_works=yes
7757       fi
7758     else
7759       lt_cv_prog_compiler_static_works=yes
7760     fi
7761   fi
7762   $rm -r conftest*
7763   LDFLAGS="$save_LDFLAGS"
7764
7765fi
7766{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7767echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7768
7769if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7770    :
7771else
7772    lt_prog_compiler_static=
7773fi
7774
7775
7776{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7777echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7778if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7779  echo $ECHO_N "(cached) $ECHO_C" >&6
7780else
7781  lt_cv_prog_compiler_c_o=no
7782   $rm -r conftest 2>/dev/null
7783   mkdir conftest
7784   cd conftest
7785   mkdir out
7786   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7787
7788   lt_compiler_flag="-o out/conftest2.$ac_objext"
7789   # Insert the option either (1) after the last *FLAGS variable, or
7790   # (2) before a word containing "conftest.", or (3) at the end.
7791   # Note that $ac_compile itself does not contain backslashes and begins
7792   # with a dollar sign (not a hyphen), so the echo should work correctly.
7793   lt_compile=`echo "$ac_compile" | $SED \
7794   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7795   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7796   -e 's:$: $lt_compiler_flag:'`
7797   (eval echo "\"\$as_me:7797: $lt_compile\"" >&5)
7798   (eval "$lt_compile" 2>out/conftest.err)
7799   ac_status=$?
7800   cat out/conftest.err >&5
7801   echo "$as_me:7801: \$? = $ac_status" >&5
7802   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7803   then
7804     # The compiler can only warn and ignore the option if not recognized
7805     # So say no if there are warnings
7806     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7807     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7808     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7809       lt_cv_prog_compiler_c_o=yes
7810     fi
7811   fi
7812   chmod u+w . 2>&5
7813   $rm conftest*
7814   # SGI C++ compiler will create directory out/ii_files/ for
7815   # template instantiation
7816   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7817   $rm out/* && rmdir out
7818   cd ..
7819   rmdir conftest
7820   $rm conftest*
7821
7822fi
7823{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7824echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7825
7826
7827hard_links="nottested"
7828if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7829  # do not overwrite the value of need_locks provided by the user
7830  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7831echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7832  hard_links=yes
7833  $rm conftest*
7834  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7835  touch conftest.a
7836  ln conftest.a conftest.b 2>&5 || hard_links=no
7837  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7838  { echo "$as_me:$LINENO: result: $hard_links" >&5
7839echo "${ECHO_T}$hard_links" >&6; }
7840  if test "$hard_links" = no; then
7841    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7842echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7843    need_locks=warn
7844  fi
7845else
7846  need_locks=no
7847fi
7848
7849{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7850echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7851
7852  runpath_var=
7853  allow_undefined_flag=
7854  enable_shared_with_static_runtimes=no
7855  archive_cmds=
7856  archive_expsym_cmds=
7857  old_archive_From_new_cmds=
7858  old_archive_from_expsyms_cmds=
7859  export_dynamic_flag_spec=
7860  whole_archive_flag_spec=
7861  thread_safe_flag_spec=
7862  hardcode_libdir_flag_spec=
7863  hardcode_libdir_flag_spec_ld=
7864  hardcode_libdir_separator=
7865  hardcode_direct=no
7866  hardcode_minus_L=no
7867  hardcode_shlibpath_var=unsupported
7868  link_all_deplibs=unknown
7869  hardcode_automatic=no
7870  module_cmds=
7871  module_expsym_cmds=
7872  always_export_symbols=no
7873  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7874  # include_expsyms should be a list of space-separated symbols to be *always*
7875  # included in the symbol list
7876  include_expsyms=
7877  # exclude_expsyms can be an extended regexp of symbols to exclude
7878  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7879  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7880  # as well as any symbol that contains `d'.
7881  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7882  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7883  # platforms (ab)use it in PIC code, but their linkers get confused if
7884  # the symbol is explicitly referenced.  Since portable code cannot
7885  # rely on this symbol name, it's probably fine to never include it in
7886  # preloaded symbol tables.
7887  # Exclude shared library initialization/finalization symbols.
7888  extract_expsyms_cmds=
7889  # Just being paranoid about ensuring that cc_basename is set.
7890  for cc_temp in $compiler""; do
7891  case $cc_temp in
7892    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7893    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7894    \-*) ;;
7895    *) break;;
7896  esac
7897done
7898cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7899
7900  case $host_os in
7901  cygwin* | mingw* | pw32*)
7902    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7903    # When not using gcc, we currently assume that we are using
7904    # Microsoft Visual C++.
7905    if test "$GCC" != yes; then
7906      with_gnu_ld=no
7907    fi
7908    ;;
7909  interix*)
7910    # we just hope/assume this is gcc and not c89 (= MSVC++)
7911    with_gnu_ld=yes
7912    ;;
7913  openbsd*)
7914    with_gnu_ld=no
7915    ;;
7916  esac
7917
7918  ld_shlibs=yes
7919  if test "$with_gnu_ld" = yes; then
7920    # If archive_cmds runs LD, not CC, wlarc should be empty
7921    wlarc='${wl}'
7922
7923    # Set some defaults for GNU ld with shared library support. These
7924    # are reset later if shared libraries are not supported. Putting them
7925    # here allows them to be overridden if necessary.
7926    runpath_var=LD_RUN_PATH
7927    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7928    export_dynamic_flag_spec='${wl}--export-dynamic'
7929    # ancient GNU ld didn't support --whole-archive et. al.
7930    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7931	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7932      else
7933  	whole_archive_flag_spec=
7934    fi
7935    supports_anon_versioning=no
7936    case `$LD -v 2>/dev/null` in
7937      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7938      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7939      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7940      *\ 2.11.*) ;; # other 2.11 versions
7941      *) supports_anon_versioning=yes ;;
7942    esac
7943
7944    # See if GNU ld supports shared libraries.
7945    case $host_os in
7946    aix[3-9]*)
7947      # On AIX/PPC, the GNU linker is very broken
7948      if test "$host_cpu" != ia64; then
7949	ld_shlibs=no
7950	cat <<EOF 1>&2
7951
7952*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7953*** to be unable to reliably create shared libraries on AIX.
7954*** Therefore, libtool is disabling shared libraries support.  If you
7955*** really care for shared libraries, you may want to modify your PATH
7956*** so that a non-GNU linker is found, and then restart.
7957
7958EOF
7959      fi
7960      ;;
7961
7962    amigaos*)
7963      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)'
7964      hardcode_libdir_flag_spec='-L$libdir'
7965      hardcode_minus_L=yes
7966
7967      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7968      # that the semantics of dynamic libraries on AmigaOS, at least up
7969      # to version 4, is to share data among multiple programs linked
7970      # with the same dynamic library.  Since this doesn't match the
7971      # behavior of shared libraries on other platforms, we can't use
7972      # them.
7973      ld_shlibs=no
7974      ;;
7975
7976    beos*)
7977      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7978	allow_undefined_flag=unsupported
7979	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7980	# support --undefined.  This deserves some investigation.  FIXME
7981	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7982      else
7983	ld_shlibs=no
7984      fi
7985      ;;
7986
7987    cygwin* | mingw* | pw32*)
7988      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7989      # as there is no search path for DLLs.
7990      hardcode_libdir_flag_spec='-L$libdir'
7991      allow_undefined_flag=unsupported
7992      always_export_symbols=no
7993      enable_shared_with_static_runtimes=yes
7994      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7995
7996      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7997        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7998	# If the export-symbols file already is a .def file (1st line
7999	# is EXPORTS), use it as is; otherwise, prepend...
8000	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8001	  cp $export_symbols $output_objdir/$soname.def;
8002	else
8003	  echo EXPORTS > $output_objdir/$soname.def;
8004	  cat $export_symbols >> $output_objdir/$soname.def;
8005	fi~
8006	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8007      else
8008	ld_shlibs=no
8009      fi
8010      ;;
8011
8012    interix[3-9]*)
8013      hardcode_direct=no
8014      hardcode_shlibpath_var=no
8015      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8016      export_dynamic_flag_spec='${wl}-E'
8017      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8018      # Instead, shared libraries are loaded at an image base (0x10000000 by
8019      # default) and relocated if they conflict, which is a slow very memory
8020      # consuming and fragmenting process.  To avoid this, we pick a random,
8021      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8022      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8023      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8024      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'
8025      ;;
8026
8027    gnu* | linux* | k*bsd*-gnu)
8028      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8029	tmp_addflag=
8030	case $cc_basename,$host_cpu in
8031	pgcc*)				# Portland Group C compiler
8032	  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'
8033	  tmp_addflag=' $pic_flag'
8034	  ;;
8035	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8036	  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'
8037	  tmp_addflag=' $pic_flag -Mnomain' ;;
8038	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8039	  tmp_addflag=' -i_dynamic' ;;
8040	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8041	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8042	ifc* | ifort*)			# Intel Fortran compiler
8043	  tmp_addflag=' -nofor_main' ;;
8044	esac
8045	case `$CC -V 2>&1 | sed 5q` in
8046	*Sun\ C*)			# Sun C 5.9
8047	  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'
8048	  tmp_sharedflag='-G' ;;
8049	*Sun\ F*)			# Sun Fortran 8.3
8050	  tmp_sharedflag='-G' ;;
8051	*)
8052	  tmp_sharedflag='-shared' ;;
8053	esac
8054	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8055
8056	if test $supports_anon_versioning = yes; then
8057	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8058  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8059  $echo "local: *; };" >> $output_objdir/$libname.ver~
8060	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8061	fi
8062	link_all_deplibs=no
8063      else
8064	ld_shlibs=no
8065      fi
8066      ;;
8067
8068    netbsd* | netbsdelf*-gnu)
8069      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8070	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8071	wlarc=
8072      else
8073	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8074	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8075      fi
8076      ;;
8077
8078    solaris*)
8079      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8080	ld_shlibs=no
8081	cat <<EOF 1>&2
8082
8083*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8084*** create shared libraries on Solaris systems.  Therefore, libtool
8085*** is disabling shared libraries support.  We urge you to upgrade GNU
8086*** binutils to release 2.9.1 or newer.  Another option is to modify
8087*** your PATH or compiler configuration so that the native linker is
8088*** used, and then restart.
8089
8090EOF
8091      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8092	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8093	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8094      else
8095	ld_shlibs=no
8096      fi
8097      ;;
8098
8099    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8100      case `$LD -v 2>&1` in
8101        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8102	ld_shlibs=no
8103	cat <<_LT_EOF 1>&2
8104
8105*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8106*** reliably create shared libraries on SCO systems.  Therefore, libtool
8107*** is disabling shared libraries support.  We urge you to upgrade GNU
8108*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8109*** your PATH or compiler configuration so that the native linker is
8110*** used, and then restart.
8111
8112_LT_EOF
8113	;;
8114	*)
8115	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8116	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8117	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8118	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8119	  else
8120	    ld_shlibs=no
8121	  fi
8122	;;
8123      esac
8124      ;;
8125
8126    sunos4*)
8127      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8128      wlarc=
8129      hardcode_direct=yes
8130      hardcode_shlibpath_var=no
8131      ;;
8132
8133    *)
8134      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8135	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8136	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8137      else
8138	ld_shlibs=no
8139      fi
8140      ;;
8141    esac
8142
8143    if test "$ld_shlibs" = no; then
8144      runpath_var=
8145      hardcode_libdir_flag_spec=
8146      export_dynamic_flag_spec=
8147      whole_archive_flag_spec=
8148    fi
8149  else
8150    # PORTME fill in a description of your system's linker (not GNU ld)
8151    case $host_os in
8152    aix3*)
8153      allow_undefined_flag=unsupported
8154      always_export_symbols=yes
8155      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'
8156      # Note: this linker hardcodes the directories in LIBPATH if there
8157      # are no directories specified by -L.
8158      hardcode_minus_L=yes
8159      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8160	# Neither direct hardcoding nor static linking is supported with a
8161	# broken collect2.
8162	hardcode_direct=unsupported
8163      fi
8164      ;;
8165
8166    aix[4-9]*)
8167      if test "$host_cpu" = ia64; then
8168	# On IA64, the linker does run time linking by default, so we don't
8169	# have to do anything special.
8170	aix_use_runtimelinking=no
8171	exp_sym_flag='-Bexport'
8172	no_entry_flag=""
8173      else
8174	# If we're using GNU nm, then we don't want the "-C" option.
8175	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8176	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8177	  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'
8178	else
8179	  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'
8180	fi
8181	aix_use_runtimelinking=no
8182
8183	# Test if we are trying to use run time linking or normal
8184	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8185	# need to do runtime linking.
8186	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8187	  for ld_flag in $LDFLAGS; do
8188  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8189  	    aix_use_runtimelinking=yes
8190  	    break
8191  	  fi
8192	  done
8193	  ;;
8194	esac
8195
8196	exp_sym_flag='-bexport'
8197	no_entry_flag='-bnoentry'
8198      fi
8199
8200      # When large executables or shared objects are built, AIX ld can
8201      # have problems creating the table of contents.  If linking a library
8202      # or program results in "error TOC overflow" add -mminimal-toc to
8203      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8204      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8205
8206      archive_cmds=''
8207      hardcode_direct=yes
8208      hardcode_libdir_separator=':'
8209      link_all_deplibs=yes
8210
8211      if test "$GCC" = yes; then
8212	case $host_os in aix4.[012]|aix4.[012].*)
8213	# We only want to do this on AIX 4.2 and lower, the check
8214	# below for broken collect2 doesn't work under 4.3+
8215	  collect2name=`${CC} -print-prog-name=collect2`
8216	  if test -f "$collect2name" && \
8217  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8218	  then
8219  	  # We have reworked collect2
8220  	  :
8221	  else
8222  	  # We have old collect2
8223  	  hardcode_direct=unsupported
8224  	  # It fails to find uninstalled libraries when the uninstalled
8225  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8226  	  # to unsupported forces relinking
8227  	  hardcode_minus_L=yes
8228  	  hardcode_libdir_flag_spec='-L$libdir'
8229  	  hardcode_libdir_separator=
8230	  fi
8231	  ;;
8232	esac
8233	shared_flag='-shared'
8234	if test "$aix_use_runtimelinking" = yes; then
8235	  shared_flag="$shared_flag "'${wl}-G'
8236	fi
8237      else
8238	# not using gcc
8239	if test "$host_cpu" = ia64; then
8240  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8241  	# chokes on -Wl,-G. The following line is correct:
8242	  shared_flag='-G'
8243	else
8244	  if test "$aix_use_runtimelinking" = yes; then
8245	    shared_flag='${wl}-G'
8246	  else
8247	    shared_flag='${wl}-bM:SRE'
8248	  fi
8249	fi
8250      fi
8251
8252      # It seems that -bexpall does not export symbols beginning with
8253      # underscore (_), so it is better to generate a list of symbols to export.
8254      always_export_symbols=yes
8255      if test "$aix_use_runtimelinking" = yes; then
8256	# Warning - without using the other runtime loading flags (-brtl),
8257	# -berok will link without error, but may produce a broken library.
8258	allow_undefined_flag='-berok'
8259       # Determine the default libpath from the value encoded in an empty executable.
8260       cat >conftest.$ac_ext <<_ACEOF
8261/* confdefs.h.  */
8262_ACEOF
8263cat confdefs.h >>conftest.$ac_ext
8264cat >>conftest.$ac_ext <<_ACEOF
8265/* end confdefs.h.  */
8266
8267int
8268main ()
8269{
8270
8271  ;
8272  return 0;
8273}
8274_ACEOF
8275rm -f conftest.$ac_objext conftest$ac_exeext
8276if { (ac_try="$ac_link"
8277case "(($ac_try" in
8278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279  *) ac_try_echo=$ac_try;;
8280esac
8281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282  (eval "$ac_link") 2>conftest.er1
8283  ac_status=$?
8284  grep -v '^ *+' conftest.er1 >conftest.err
8285  rm -f conftest.er1
8286  cat conftest.err >&5
8287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288  (exit $ac_status); } && {
8289	 test -z "$ac_c_werror_flag" ||
8290	 test ! -s conftest.err
8291       } && test -s conftest$ac_exeext &&
8292       $as_test_x conftest$ac_exeext; then
8293
8294lt_aix_libpath_sed='
8295    /Import File Strings/,/^$/ {
8296	/^0/ {
8297	    s/^0  *\(.*\)$/\1/
8298	    p
8299	}
8300    }'
8301aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8302# Check for a 64-bit object if we didn't find anything.
8303if test -z "$aix_libpath"; then
8304  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8305fi
8306else
8307  echo "$as_me: failed program was:" >&5
8308sed 's/^/| /' conftest.$ac_ext >&5
8309
8310
8311fi
8312
8313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8314      conftest$ac_exeext conftest.$ac_ext
8315if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8316
8317       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8318	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"
8319       else
8320	if test "$host_cpu" = ia64; then
8321	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8322	  allow_undefined_flag="-z nodefs"
8323	  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"
8324	else
8325	 # Determine the default libpath from the value encoded in an empty executable.
8326	 cat >conftest.$ac_ext <<_ACEOF
8327/* confdefs.h.  */
8328_ACEOF
8329cat confdefs.h >>conftest.$ac_ext
8330cat >>conftest.$ac_ext <<_ACEOF
8331/* end confdefs.h.  */
8332
8333int
8334main ()
8335{
8336
8337  ;
8338  return 0;
8339}
8340_ACEOF
8341rm -f conftest.$ac_objext conftest$ac_exeext
8342if { (ac_try="$ac_link"
8343case "(($ac_try" in
8344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345  *) ac_try_echo=$ac_try;;
8346esac
8347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8348  (eval "$ac_link") 2>conftest.er1
8349  ac_status=$?
8350  grep -v '^ *+' conftest.er1 >conftest.err
8351  rm -f conftest.er1
8352  cat conftest.err >&5
8353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354  (exit $ac_status); } && {
8355	 test -z "$ac_c_werror_flag" ||
8356	 test ! -s conftest.err
8357       } && test -s conftest$ac_exeext &&
8358       $as_test_x conftest$ac_exeext; then
8359
8360lt_aix_libpath_sed='
8361    /Import File Strings/,/^$/ {
8362	/^0/ {
8363	    s/^0  *\(.*\)$/\1/
8364	    p
8365	}
8366    }'
8367aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8368# Check for a 64-bit object if we didn't find anything.
8369if test -z "$aix_libpath"; then
8370  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8371fi
8372else
8373  echo "$as_me: failed program was:" >&5
8374sed 's/^/| /' conftest.$ac_ext >&5
8375
8376
8377fi
8378
8379rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8380      conftest$ac_exeext conftest.$ac_ext
8381if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8382
8383	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8384	  # Warning - without using the other run time loading flags,
8385	  # -berok will link without error, but may produce a broken library.
8386	  no_undefined_flag=' ${wl}-bernotok'
8387	  allow_undefined_flag=' ${wl}-berok'
8388	  # Exported symbols can be pulled into shared objects from archives
8389	  whole_archive_flag_spec='$convenience'
8390	  archive_cmds_need_lc=yes
8391	  # This is similar to how AIX traditionally builds its shared libraries.
8392	  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'
8393	fi
8394      fi
8395      ;;
8396
8397    amigaos*)
8398      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)'
8399      hardcode_libdir_flag_spec='-L$libdir'
8400      hardcode_minus_L=yes
8401      # see comment about different semantics on the GNU ld section
8402      ld_shlibs=no
8403      ;;
8404
8405    bsdi[45]*)
8406      export_dynamic_flag_spec=-rdynamic
8407      ;;
8408
8409    cygwin* | mingw* | pw32*)
8410      # When not using gcc, we currently assume that we are using
8411      # Microsoft Visual C++.
8412      # hardcode_libdir_flag_spec is actually meaningless, as there is
8413      # no search path for DLLs.
8414      hardcode_libdir_flag_spec=' '
8415      allow_undefined_flag=unsupported
8416      # Tell ltmain to make .lib files, not .a files.
8417      libext=lib
8418      # Tell ltmain to make .dll files, not .so files.
8419      shrext_cmds=".dll"
8420      # FIXME: Setting linknames here is a bad hack.
8421      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8422      # The linker will automatically build a .lib file if we build a DLL.
8423      old_archive_From_new_cmds='true'
8424      # FIXME: Should let the user specify the lib program.
8425      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8426      fix_srcfile_path='`cygpath -w "$srcfile"`'
8427      enable_shared_with_static_runtimes=yes
8428      ;;
8429
8430    darwin* | rhapsody*)
8431      case $host_os in
8432        rhapsody* | darwin1.[012])
8433         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8434         ;;
8435       *) # Darwin 1.3 on
8436         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8437           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8438         else
8439           case ${MACOSX_DEPLOYMENT_TARGET} in
8440             10.[012])
8441               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8442               ;;
8443             10.*)
8444               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8445               ;;
8446           esac
8447         fi
8448         ;;
8449      esac
8450      archive_cmds_need_lc=no
8451      hardcode_direct=no
8452      hardcode_automatic=yes
8453      hardcode_shlibpath_var=unsupported
8454      whole_archive_flag_spec=''
8455      link_all_deplibs=yes
8456    if test "$GCC" = yes ; then
8457    	output_verbose_link_cmd='echo'
8458        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8459        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8460        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8461        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8462    else
8463      case $cc_basename in
8464        xlc*)
8465         output_verbose_link_cmd='echo'
8466         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8467         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8468          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8469         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8470          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}'
8471          ;;
8472       *)
8473         ld_shlibs=no
8474          ;;
8475      esac
8476    fi
8477      ;;
8478
8479    dgux*)
8480      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8481      hardcode_libdir_flag_spec='-L$libdir'
8482      hardcode_shlibpath_var=no
8483      ;;
8484
8485    freebsd1*)
8486      ld_shlibs=no
8487      ;;
8488
8489    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8490    # support.  Future versions do this automatically, but an explicit c++rt0.o
8491    # does not break anything, and helps significantly (at the cost of a little
8492    # extra space).
8493    freebsd2.2*)
8494      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8495      hardcode_libdir_flag_spec='-R$libdir'
8496      hardcode_direct=yes
8497      hardcode_shlibpath_var=no
8498      ;;
8499
8500    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8501    freebsd2*)
8502      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8503      hardcode_direct=yes
8504      hardcode_minus_L=yes
8505      hardcode_shlibpath_var=no
8506      ;;
8507
8508    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8509    freebsd* | dragonfly*)
8510      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8511      hardcode_libdir_flag_spec='-R$libdir'
8512      hardcode_direct=yes
8513      hardcode_shlibpath_var=no
8514      ;;
8515
8516    hpux9*)
8517      if test "$GCC" = yes; then
8518	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'
8519      else
8520	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'
8521      fi
8522      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8523      hardcode_libdir_separator=:
8524      hardcode_direct=yes
8525
8526      # hardcode_minus_L: Not really in the search PATH,
8527      # but as the default location of the library.
8528      hardcode_minus_L=yes
8529      export_dynamic_flag_spec='${wl}-E'
8530      ;;
8531
8532    hpux10*)
8533      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8534	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8535      else
8536	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8537      fi
8538      if test "$with_gnu_ld" = no; then
8539	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8540	hardcode_libdir_separator=:
8541
8542	hardcode_direct=yes
8543	export_dynamic_flag_spec='${wl}-E'
8544
8545	# hardcode_minus_L: Not really in the search PATH,
8546	# but as the default location of the library.
8547	hardcode_minus_L=yes
8548      fi
8549      ;;
8550
8551    hpux11*)
8552      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8553	case $host_cpu in
8554	hppa*64*)
8555	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8556	  ;;
8557	ia64*)
8558	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8559	  ;;
8560	*)
8561	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8562	  ;;
8563	esac
8564      else
8565	case $host_cpu in
8566	hppa*64*)
8567	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8568	  ;;
8569	ia64*)
8570	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8571	  ;;
8572	*)
8573	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8574	  ;;
8575	esac
8576      fi
8577      if test "$with_gnu_ld" = no; then
8578	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8579	hardcode_libdir_separator=:
8580
8581	case $host_cpu in
8582	hppa*64*|ia64*)
8583	  hardcode_libdir_flag_spec_ld='+b $libdir'
8584	  hardcode_direct=no
8585	  hardcode_shlibpath_var=no
8586	  ;;
8587	*)
8588	  hardcode_direct=yes
8589	  export_dynamic_flag_spec='${wl}-E'
8590
8591	  # hardcode_minus_L: Not really in the search PATH,
8592	  # but as the default location of the library.
8593	  hardcode_minus_L=yes
8594	  ;;
8595	esac
8596      fi
8597      ;;
8598
8599    irix5* | irix6* | nonstopux*)
8600      if test "$GCC" = yes; then
8601	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'
8602      else
8603	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'
8604	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8605      fi
8606      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8607      hardcode_libdir_separator=:
8608      link_all_deplibs=yes
8609      ;;
8610
8611    netbsd* | netbsdelf*-gnu)
8612      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8613	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8614      else
8615	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8616      fi
8617      hardcode_libdir_flag_spec='-R$libdir'
8618      hardcode_direct=yes
8619      hardcode_shlibpath_var=no
8620      ;;
8621
8622    newsos6)
8623      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8624      hardcode_direct=yes
8625      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8626      hardcode_libdir_separator=:
8627      hardcode_shlibpath_var=no
8628      ;;
8629
8630    openbsd*)
8631      if test -f /usr/libexec/ld.so; then
8632	hardcode_direct=yes
8633	hardcode_shlibpath_var=no
8634	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8635	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8636	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8637	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8638	  export_dynamic_flag_spec='${wl}-E'
8639	else
8640	  case $host_os in
8641	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8642	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8643	     hardcode_libdir_flag_spec='-R$libdir'
8644	     ;;
8645	   *)
8646	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8647	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8648	     ;;
8649	  esac
8650        fi
8651      else
8652	ld_shlibs=no
8653      fi
8654      ;;
8655
8656    os2*)
8657      hardcode_libdir_flag_spec='-L$libdir'
8658      hardcode_minus_L=yes
8659      allow_undefined_flag=unsupported
8660      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'
8661      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8662      ;;
8663
8664    osf3*)
8665      if test "$GCC" = yes; then
8666	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8667	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'
8668      else
8669	allow_undefined_flag=' -expect_unresolved \*'
8670	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'
8671      fi
8672      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8673      hardcode_libdir_separator=:
8674      ;;
8675
8676    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8677      if test "$GCC" = yes; then
8678	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8679	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'
8680	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8681      else
8682	allow_undefined_flag=' -expect_unresolved \*'
8683	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'
8684	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8685	$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'
8686
8687	# Both c and cxx compiler support -rpath directly
8688	hardcode_libdir_flag_spec='-rpath $libdir'
8689      fi
8690      hardcode_libdir_separator=:
8691      ;;
8692
8693    solaris*)
8694      no_undefined_flag=' -z text'
8695      if test "$GCC" = yes; then
8696	wlarc='${wl}'
8697	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8698	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8699	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8700      else
8701	wlarc=''
8702	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8703	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8704  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8705      fi
8706      hardcode_libdir_flag_spec='-R$libdir'
8707      hardcode_shlibpath_var=no
8708      case $host_os in
8709      solaris2.[0-5] | solaris2.[0-5].*) ;;
8710      *)
8711	# The compiler driver will combine and reorder linker options,
8712	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8713	# but is careful enough not to reorder.
8714 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8715	if test "$GCC" = yes; then
8716	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8717	else
8718	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8719	fi
8720	;;
8721      esac
8722      link_all_deplibs=yes
8723      ;;
8724
8725    sunos4*)
8726      if test "x$host_vendor" = xsequent; then
8727	# Use $CC to link under sequent, because it throws in some extra .o
8728	# files that make .init and .fini sections work.
8729	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8730      else
8731	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8732      fi
8733      hardcode_libdir_flag_spec='-L$libdir'
8734      hardcode_direct=yes
8735      hardcode_minus_L=yes
8736      hardcode_shlibpath_var=no
8737      ;;
8738
8739    sysv4)
8740      case $host_vendor in
8741	sni)
8742	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8743	  hardcode_direct=yes # is this really true???
8744	;;
8745	siemens)
8746	  ## LD is ld it makes a PLAMLIB
8747	  ## CC just makes a GrossModule.
8748	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8749	  reload_cmds='$CC -r -o $output$reload_objs'
8750	  hardcode_direct=no
8751        ;;
8752	motorola)
8753	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8754	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8755	;;
8756      esac
8757      runpath_var='LD_RUN_PATH'
8758      hardcode_shlibpath_var=no
8759      ;;
8760
8761    sysv4.3*)
8762      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8763      hardcode_shlibpath_var=no
8764      export_dynamic_flag_spec='-Bexport'
8765      ;;
8766
8767    sysv4*MP*)
8768      if test -d /usr/nec; then
8769	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8770	hardcode_shlibpath_var=no
8771	runpath_var=LD_RUN_PATH
8772	hardcode_runpath_var=yes
8773	ld_shlibs=yes
8774      fi
8775      ;;
8776
8777    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8778      no_undefined_flag='${wl}-z,text'
8779      archive_cmds_need_lc=no
8780      hardcode_shlibpath_var=no
8781      runpath_var='LD_RUN_PATH'
8782
8783      if test "$GCC" = yes; then
8784	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8785	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8786      else
8787	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8788	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8789      fi
8790      ;;
8791
8792    sysv5* | sco3.2v5* | sco5v6*)
8793      # Note: We can NOT use -z defs as we might desire, because we do not
8794      # link with -lc, and that would cause any symbols used from libc to
8795      # always be unresolved, which means just about no library would
8796      # ever link correctly.  If we're not using GNU ld we use -z text
8797      # though, which does catch some bad symbols but isn't as heavy-handed
8798      # as -z defs.
8799      no_undefined_flag='${wl}-z,text'
8800      allow_undefined_flag='${wl}-z,nodefs'
8801      archive_cmds_need_lc=no
8802      hardcode_shlibpath_var=no
8803      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8804      hardcode_libdir_separator=':'
8805      link_all_deplibs=yes
8806      export_dynamic_flag_spec='${wl}-Bexport'
8807      runpath_var='LD_RUN_PATH'
8808
8809      if test "$GCC" = yes; then
8810	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8811	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8812      else
8813	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8814	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8815      fi
8816      ;;
8817
8818    uts4*)
8819      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8820      hardcode_libdir_flag_spec='-L$libdir'
8821      hardcode_shlibpath_var=no
8822      ;;
8823
8824    *)
8825      ld_shlibs=no
8826      ;;
8827    esac
8828  fi
8829
8830{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8831echo "${ECHO_T}$ld_shlibs" >&6; }
8832test "$ld_shlibs" = no && can_build_shared=no
8833
8834#
8835# Do we need to explicitly link libc?
8836#
8837case "x$archive_cmds_need_lc" in
8838x|xyes)
8839  # Assume -lc should be added
8840  archive_cmds_need_lc=yes
8841
8842  if test "$enable_shared" = yes && test "$GCC" = yes; then
8843    case $archive_cmds in
8844    *'~'*)
8845      # FIXME: we may have to deal with multi-command sequences.
8846      ;;
8847    '$CC '*)
8848      # Test whether the compiler implicitly links with -lc since on some
8849      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8850      # to ld, don't add -lc before -lgcc.
8851      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8852echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8853      $rm conftest*
8854      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8855
8856      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8857  (eval $ac_compile) 2>&5
8858  ac_status=$?
8859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860  (exit $ac_status); } 2>conftest.err; then
8861        soname=conftest
8862        lib=conftest
8863        libobjs=conftest.$ac_objext
8864        deplibs=
8865        wl=$lt_prog_compiler_wl
8866	pic_flag=$lt_prog_compiler_pic
8867        compiler_flags=-v
8868        linker_flags=-v
8869        verstring=
8870        output_objdir=.
8871        libname=conftest
8872        lt_save_allow_undefined_flag=$allow_undefined_flag
8873        allow_undefined_flag=
8874        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8875  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8876  ac_status=$?
8877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878  (exit $ac_status); }
8879        then
8880	  archive_cmds_need_lc=no
8881        else
8882	  archive_cmds_need_lc=yes
8883        fi
8884        allow_undefined_flag=$lt_save_allow_undefined_flag
8885      else
8886        cat conftest.err 1>&5
8887      fi
8888      $rm conftest*
8889      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8890echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8891      ;;
8892    esac
8893  fi
8894  ;;
8895esac
8896
8897{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8898echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8899library_names_spec=
8900libname_spec='lib$name'
8901soname_spec=
8902shrext_cmds=".so"
8903postinstall_cmds=
8904postuninstall_cmds=
8905finish_cmds=
8906finish_eval=
8907shlibpath_var=
8908shlibpath_overrides_runpath=unknown
8909version_type=none
8910dynamic_linker="$host_os ld.so"
8911sys_lib_dlsearch_path_spec="/lib /usr/lib"
8912
8913if test "$GCC" = yes; then
8914  case $host_os in
8915    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8916    *) lt_awk_arg="/^libraries:/" ;;
8917  esac
8918  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8919  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8920    # if the path contains ";" then we assume it to be the separator
8921    # otherwise default to the standard path separator (i.e. ":") - it is
8922    # assumed that no part of a normal pathname contains ";" but that should
8923    # okay in the real world where ";" in dirpaths is itself problematic.
8924    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8925  else
8926    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8927  fi
8928  # Ok, now we have the path, separated by spaces, we can step through it
8929  # and add multilib dir if necessary.
8930  lt_tmp_lt_search_path_spec=
8931  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8932  for lt_sys_path in $lt_search_path_spec; do
8933    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8934      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8935    else
8936      test -d "$lt_sys_path" && \
8937	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8938    fi
8939  done
8940  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8941BEGIN {RS=" "; FS="/|\n";} {
8942  lt_foo="";
8943  lt_count=0;
8944  for (lt_i = NF; lt_i > 0; lt_i--) {
8945    if ($lt_i != "" && $lt_i != ".") {
8946      if ($lt_i == "..") {
8947        lt_count++;
8948      } else {
8949        if (lt_count == 0) {
8950          lt_foo="/" $lt_i lt_foo;
8951        } else {
8952          lt_count--;
8953        }
8954      }
8955    }
8956  }
8957  if (lt_foo != "") { lt_freq[lt_foo]++; }
8958  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8959}'`
8960  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8961else
8962  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8963fi
8964need_lib_prefix=unknown
8965hardcode_into_libs=no
8966
8967# when you set need_version to no, make sure it does not cause -set_version
8968# flags to be left without arguments
8969need_version=unknown
8970
8971case $host_os in
8972aix3*)
8973  version_type=linux
8974  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8975  shlibpath_var=LIBPATH
8976
8977  # AIX 3 has no versioning support, so we append a major version to the name.
8978  soname_spec='${libname}${release}${shared_ext}$major'
8979  ;;
8980
8981aix[4-9]*)
8982  version_type=linux
8983  need_lib_prefix=no
8984  need_version=no
8985  hardcode_into_libs=yes
8986  if test "$host_cpu" = ia64; then
8987    # AIX 5 supports IA64
8988    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8989    shlibpath_var=LD_LIBRARY_PATH
8990  else
8991    # With GCC up to 2.95.x, collect2 would create an import file
8992    # for dependence libraries.  The import file would start with
8993    # the line `#! .'.  This would cause the generated library to
8994    # depend on `.', always an invalid library.  This was fixed in
8995    # development snapshots of GCC prior to 3.0.
8996    case $host_os in
8997      aix4 | aix4.[01] | aix4.[01].*)
8998      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8999	   echo ' yes '
9000	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9001	:
9002      else
9003	can_build_shared=no
9004      fi
9005      ;;
9006    esac
9007    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9008    # soname into executable. Probably we can add versioning support to
9009    # collect2, so additional links can be useful in future.
9010    if test "$aix_use_runtimelinking" = yes; then
9011      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9012      # instead of lib<name>.a to let people know that these are not
9013      # typical AIX shared libraries.
9014      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9015    else
9016      # We preserve .a as extension for shared libraries through AIX4.2
9017      # and later when we are not doing run time linking.
9018      library_names_spec='${libname}${release}.a $libname.a'
9019      soname_spec='${libname}${release}${shared_ext}$major'
9020    fi
9021    shlibpath_var=LIBPATH
9022  fi
9023  ;;
9024
9025amigaos*)
9026  library_names_spec='$libname.ixlibrary $libname.a'
9027  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9028  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'
9029  ;;
9030
9031beos*)
9032  library_names_spec='${libname}${shared_ext}'
9033  dynamic_linker="$host_os ld.so"
9034  shlibpath_var=LIBRARY_PATH
9035  ;;
9036
9037bsdi[45]*)
9038  version_type=linux
9039  need_version=no
9040  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9041  soname_spec='${libname}${release}${shared_ext}$major'
9042  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9043  shlibpath_var=LD_LIBRARY_PATH
9044  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9045  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9046  # the default ld.so.conf also contains /usr/contrib/lib and
9047  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9048  # libtool to hard-code these into programs
9049  ;;
9050
9051cygwin* | mingw* | pw32*)
9052  version_type=windows
9053  shrext_cmds=".dll"
9054  need_version=no
9055  need_lib_prefix=no
9056
9057  case $GCC,$host_os in
9058  yes,cygwin* | yes,mingw* | yes,pw32*)
9059    library_names_spec='$libname.dll.a'
9060    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9061    postinstall_cmds='base_file=`basename \${file}`~
9062      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9063      dldir=$destdir/`dirname \$dlpath`~
9064      test -d \$dldir || mkdir -p \$dldir~
9065      $install_prog $dir/$dlname \$dldir/$dlname~
9066      chmod a+x \$dldir/$dlname'
9067    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9068      dlpath=$dir/\$dldll~
9069       $rm \$dlpath'
9070    shlibpath_overrides_runpath=yes
9071
9072    case $host_os in
9073    cygwin*)
9074      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9075      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9076      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9077      ;;
9078    mingw*)
9079      # MinGW DLLs use traditional 'lib' prefix
9080      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9081      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9082      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9083        # It is most probably a Windows format PATH printed by
9084        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9085        # path with ; separators, and with drive letters. We can handle the
9086        # drive letters (cygwin fileutils understands them), so leave them,
9087        # especially as we might pass files found there to a mingw objdump,
9088        # which wouldn't understand a cygwinified path. Ahh.
9089        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9090      else
9091        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9092      fi
9093      ;;
9094    pw32*)
9095      # pw32 DLLs use 'pw' prefix rather than 'lib'
9096      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9097      ;;
9098    esac
9099    ;;
9100
9101  *)
9102    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9103    ;;
9104  esac
9105  dynamic_linker='Win32 ld.exe'
9106  # FIXME: first we should search . and the directory the executable is in
9107  shlibpath_var=PATH
9108  ;;
9109
9110darwin* | rhapsody*)
9111  dynamic_linker="$host_os dyld"
9112  version_type=darwin
9113  need_lib_prefix=no
9114  need_version=no
9115  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9116  soname_spec='${libname}${release}${major}$shared_ext'
9117  shlibpath_overrides_runpath=yes
9118  shlibpath_var=DYLD_LIBRARY_PATH
9119  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9120
9121  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9122  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9123  ;;
9124
9125dgux*)
9126  version_type=linux
9127  need_lib_prefix=no
9128  need_version=no
9129  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9130  soname_spec='${libname}${release}${shared_ext}$major'
9131  shlibpath_var=LD_LIBRARY_PATH
9132  ;;
9133
9134freebsd1*)
9135  dynamic_linker=no
9136  ;;
9137
9138freebsd* | dragonfly*)
9139  # DragonFly does not have aout.  When/if they implement a new
9140  # versioning mechanism, adjust this.
9141  if test -x /usr/bin/objformat; then
9142    objformat=`/usr/bin/objformat`
9143  else
9144    case $host_os in
9145    freebsd[123]*) objformat=aout ;;
9146    *) objformat=elf ;;
9147    esac
9148  fi
9149  version_type=freebsd-$objformat
9150  case $version_type in
9151    freebsd-elf*)
9152      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9153      need_version=no
9154      need_lib_prefix=no
9155      ;;
9156    freebsd-*)
9157      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9158      need_version=yes
9159      ;;
9160  esac
9161  shlibpath_var=LD_LIBRARY_PATH
9162  case $host_os in
9163  freebsd2*)
9164    shlibpath_overrides_runpath=yes
9165    ;;
9166  freebsd3.[01]* | freebsdelf3.[01]*)
9167    shlibpath_overrides_runpath=yes
9168    hardcode_into_libs=yes
9169    ;;
9170  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9171  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9172    shlibpath_overrides_runpath=no
9173    hardcode_into_libs=yes
9174    ;;
9175  *) # from 4.6 on, and DragonFly
9176    shlibpath_overrides_runpath=yes
9177    hardcode_into_libs=yes
9178    ;;
9179  esac
9180  ;;
9181
9182gnu*)
9183  version_type=linux
9184  need_lib_prefix=no
9185  need_version=no
9186  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9187  soname_spec='${libname}${release}${shared_ext}$major'
9188  shlibpath_var=LD_LIBRARY_PATH
9189  hardcode_into_libs=yes
9190  ;;
9191
9192hpux9* | hpux10* | hpux11*)
9193  # Give a soname corresponding to the major version so that dld.sl refuses to
9194  # link against other versions.
9195  version_type=sunos
9196  need_lib_prefix=no
9197  need_version=no
9198  case $host_cpu in
9199  ia64*)
9200    shrext_cmds='.so'
9201    hardcode_into_libs=yes
9202    dynamic_linker="$host_os dld.so"
9203    shlibpath_var=LD_LIBRARY_PATH
9204    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9205    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9206    soname_spec='${libname}${release}${shared_ext}$major'
9207    if test "X$HPUX_IA64_MODE" = X32; then
9208      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9209    else
9210      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9211    fi
9212    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9213    ;;
9214   hppa*64*)
9215     shrext_cmds='.sl'
9216     hardcode_into_libs=yes
9217     dynamic_linker="$host_os dld.sl"
9218     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9219     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9220     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9221     soname_spec='${libname}${release}${shared_ext}$major'
9222     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9223     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9224     ;;
9225   *)
9226    shrext_cmds='.sl'
9227    dynamic_linker="$host_os dld.sl"
9228    shlibpath_var=SHLIB_PATH
9229    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9230    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231    soname_spec='${libname}${release}${shared_ext}$major'
9232    ;;
9233  esac
9234  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9235  postinstall_cmds='chmod 555 $lib'
9236  ;;
9237
9238interix[3-9]*)
9239  version_type=linux
9240  need_lib_prefix=no
9241  need_version=no
9242  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9243  soname_spec='${libname}${release}${shared_ext}$major'
9244  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9245  shlibpath_var=LD_LIBRARY_PATH
9246  shlibpath_overrides_runpath=no
9247  hardcode_into_libs=yes
9248  ;;
9249
9250irix5* | irix6* | nonstopux*)
9251  case $host_os in
9252    nonstopux*) version_type=nonstopux ;;
9253    *)
9254	if test "$lt_cv_prog_gnu_ld" = yes; then
9255		version_type=linux
9256	else
9257		version_type=irix
9258	fi ;;
9259  esac
9260  need_lib_prefix=no
9261  need_version=no
9262  soname_spec='${libname}${release}${shared_ext}$major'
9263  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9264  case $host_os in
9265  irix5* | nonstopux*)
9266    libsuff= shlibsuff=
9267    ;;
9268  *)
9269    case $LD in # libtool.m4 will add one of these switches to LD
9270    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9271      libsuff= shlibsuff= libmagic=32-bit;;
9272    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9273      libsuff=32 shlibsuff=N32 libmagic=N32;;
9274    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9275      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9276    *) libsuff= shlibsuff= libmagic=never-match;;
9277    esac
9278    ;;
9279  esac
9280  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9281  shlibpath_overrides_runpath=no
9282  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9283  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9284  hardcode_into_libs=yes
9285  ;;
9286
9287# No shared lib support for Linux oldld, aout, or coff.
9288linux*oldld* | linux*aout* | linux*coff*)
9289  dynamic_linker=no
9290  ;;
9291
9292# This must be Linux ELF.
9293linux* | k*bsd*-gnu)
9294  version_type=linux
9295  need_lib_prefix=no
9296  need_version=no
9297  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9298  soname_spec='${libname}${release}${shared_ext}$major'
9299  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9300  shlibpath_var=LD_LIBRARY_PATH
9301  shlibpath_overrides_runpath=no
9302  # This implies no fast_install, which is unacceptable.
9303  # Some rework will be needed to allow for fast_install
9304  # before this can be enabled.
9305  hardcode_into_libs=yes
9306
9307  # Append ld.so.conf contents to the search path
9308  if test -f /etc/ld.so.conf; then
9309    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9310    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9311  fi
9312
9313  # We used to test for /lib/ld.so.1 and disable shared libraries on
9314  # powerpc, because MkLinux only supported shared libraries with the
9315  # GNU dynamic linker.  Since this was broken with cross compilers,
9316  # most powerpc-linux boxes support dynamic linking these days and
9317  # people can always --disable-shared, the test was removed, and we
9318  # assume the GNU/Linux dynamic linker is in use.
9319  dynamic_linker='GNU/Linux ld.so'
9320  ;;
9321
9322netbsdelf*-gnu)
9323  version_type=linux
9324  need_lib_prefix=no
9325  need_version=no
9326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9327  soname_spec='${libname}${release}${shared_ext}$major'
9328  shlibpath_var=LD_LIBRARY_PATH
9329  shlibpath_overrides_runpath=no
9330  hardcode_into_libs=yes
9331  dynamic_linker='NetBSD ld.elf_so'
9332  ;;
9333
9334netbsd*)
9335  version_type=sunos
9336  need_lib_prefix=no
9337  need_version=no
9338  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9339    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9340    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9341    dynamic_linker='NetBSD (a.out) ld.so'
9342  else
9343    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9344    soname_spec='${libname}${release}${shared_ext}$major'
9345    dynamic_linker='NetBSD ld.elf_so'
9346  fi
9347  shlibpath_var=LD_LIBRARY_PATH
9348  shlibpath_overrides_runpath=yes
9349  hardcode_into_libs=yes
9350  ;;
9351
9352newsos6)
9353  version_type=linux
9354  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9355  shlibpath_var=LD_LIBRARY_PATH
9356  shlibpath_overrides_runpath=yes
9357  ;;
9358
9359nto-qnx*)
9360  version_type=linux
9361  need_lib_prefix=no
9362  need_version=no
9363  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9364  soname_spec='${libname}${release}${shared_ext}$major'
9365  shlibpath_var=LD_LIBRARY_PATH
9366  shlibpath_overrides_runpath=yes
9367  ;;
9368
9369openbsd*)
9370  version_type=sunos
9371  sys_lib_dlsearch_path_spec="/usr/lib"
9372  need_lib_prefix=no
9373  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9374  case $host_os in
9375    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9376    *)                         need_version=no  ;;
9377  esac
9378  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9379  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9380  shlibpath_var=LD_LIBRARY_PATH
9381  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9382    case $host_os in
9383      openbsd2.[89] | openbsd2.[89].*)
9384	shlibpath_overrides_runpath=no
9385	;;
9386      *)
9387	shlibpath_overrides_runpath=yes
9388	;;
9389      esac
9390  else
9391    shlibpath_overrides_runpath=yes
9392  fi
9393  ;;
9394
9395os2*)
9396  libname_spec='$name'
9397  shrext_cmds=".dll"
9398  need_lib_prefix=no
9399  library_names_spec='$libname${shared_ext} $libname.a'
9400  dynamic_linker='OS/2 ld.exe'
9401  shlibpath_var=LIBPATH
9402  ;;
9403
9404osf3* | osf4* | osf5*)
9405  version_type=osf
9406  need_lib_prefix=no
9407  need_version=no
9408  soname_spec='${libname}${release}${shared_ext}$major'
9409  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9410  shlibpath_var=LD_LIBRARY_PATH
9411  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9412  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9413  ;;
9414
9415rdos*)
9416  dynamic_linker=no
9417  ;;
9418
9419solaris*)
9420  version_type=linux
9421  need_lib_prefix=no
9422  need_version=no
9423  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9424  soname_spec='${libname}${release}${shared_ext}$major'
9425  shlibpath_var=LD_LIBRARY_PATH
9426  shlibpath_overrides_runpath=yes
9427  hardcode_into_libs=yes
9428  # ldd complains unless libraries are executable
9429  postinstall_cmds='chmod +x $lib'
9430  ;;
9431
9432sunos4*)
9433  version_type=sunos
9434  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9435  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9436  shlibpath_var=LD_LIBRARY_PATH
9437  shlibpath_overrides_runpath=yes
9438  if test "$with_gnu_ld" = yes; then
9439    need_lib_prefix=no
9440  fi
9441  need_version=yes
9442  ;;
9443
9444sysv4 | sysv4.3*)
9445  version_type=linux
9446  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9447  soname_spec='${libname}${release}${shared_ext}$major'
9448  shlibpath_var=LD_LIBRARY_PATH
9449  case $host_vendor in
9450    sni)
9451      shlibpath_overrides_runpath=no
9452      need_lib_prefix=no
9453      export_dynamic_flag_spec='${wl}-Blargedynsym'
9454      runpath_var=LD_RUN_PATH
9455      ;;
9456    siemens)
9457      need_lib_prefix=no
9458      ;;
9459    motorola)
9460      need_lib_prefix=no
9461      need_version=no
9462      shlibpath_overrides_runpath=no
9463      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9464      ;;
9465  esac
9466  ;;
9467
9468sysv4*MP*)
9469  if test -d /usr/nec ;then
9470    version_type=linux
9471    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9472    soname_spec='$libname${shared_ext}.$major'
9473    shlibpath_var=LD_LIBRARY_PATH
9474  fi
9475  ;;
9476
9477sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9478  version_type=freebsd-elf
9479  need_lib_prefix=no
9480  need_version=no
9481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9482  soname_spec='${libname}${release}${shared_ext}$major'
9483  shlibpath_var=LD_LIBRARY_PATH
9484  hardcode_into_libs=yes
9485  if test "$with_gnu_ld" = yes; then
9486    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9487    shlibpath_overrides_runpath=no
9488  else
9489    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9490    shlibpath_overrides_runpath=yes
9491    case $host_os in
9492      sco3.2v5*)
9493        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9494	;;
9495    esac
9496  fi
9497  sys_lib_dlsearch_path_spec='/usr/lib'
9498  ;;
9499
9500uts4*)
9501  version_type=linux
9502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9503  soname_spec='${libname}${release}${shared_ext}$major'
9504  shlibpath_var=LD_LIBRARY_PATH
9505  ;;
9506
9507*)
9508  dynamic_linker=no
9509  ;;
9510esac
9511{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9512echo "${ECHO_T}$dynamic_linker" >&6; }
9513test "$dynamic_linker" = no && can_build_shared=no
9514
9515if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9516  echo $ECHO_N "(cached) $ECHO_C" >&6
9517else
9518  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9519fi
9520
9521sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9522if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9523  echo $ECHO_N "(cached) $ECHO_C" >&6
9524else
9525  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9526fi
9527
9528sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9529
9530variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9531if test "$GCC" = yes; then
9532  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9533fi
9534
9535{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9536echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9537hardcode_action=
9538if test -n "$hardcode_libdir_flag_spec" || \
9539   test -n "$runpath_var" || \
9540   test "X$hardcode_automatic" = "Xyes" ; then
9541
9542  # We can hardcode non-existant directories.
9543  if test "$hardcode_direct" != no &&
9544     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9545     # have to relink, otherwise we might link with an installed library
9546     # when we should be linking with a yet-to-be-installed one
9547     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9548     test "$hardcode_minus_L" != no; then
9549    # Linking always hardcodes the temporary library directory.
9550    hardcode_action=relink
9551  else
9552    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9553    hardcode_action=immediate
9554  fi
9555else
9556  # We cannot hardcode anything, or else we can only hardcode existing
9557  # directories.
9558  hardcode_action=unsupported
9559fi
9560{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9561echo "${ECHO_T}$hardcode_action" >&6; }
9562
9563if test "$hardcode_action" = relink; then
9564  # Fast installation is not supported
9565  enable_fast_install=no
9566elif test "$shlibpath_overrides_runpath" = yes ||
9567     test "$enable_shared" = no; then
9568  # Fast installation is not necessary
9569  enable_fast_install=needless
9570fi
9571
9572striplib=
9573old_striplib=
9574{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9575echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9576if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9577  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9578  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9579  { echo "$as_me:$LINENO: result: yes" >&5
9580echo "${ECHO_T}yes" >&6; }
9581else
9582# FIXME - insert some real tests, host_os isn't really good enough
9583  case $host_os in
9584   darwin*)
9585       if test -n "$STRIP" ; then
9586         striplib="$STRIP -x"
9587         old_striplib="$STRIP -S"
9588         { echo "$as_me:$LINENO: result: yes" >&5
9589echo "${ECHO_T}yes" >&6; }
9590       else
9591  { echo "$as_me:$LINENO: result: no" >&5
9592echo "${ECHO_T}no" >&6; }
9593fi
9594       ;;
9595   *)
9596  { echo "$as_me:$LINENO: result: no" >&5
9597echo "${ECHO_T}no" >&6; }
9598    ;;
9599  esac
9600fi
9601
9602if test "x$enable_dlopen" != xyes; then
9603  enable_dlopen=unknown
9604  enable_dlopen_self=unknown
9605  enable_dlopen_self_static=unknown
9606else
9607  lt_cv_dlopen=no
9608  lt_cv_dlopen_libs=
9609
9610  case $host_os in
9611  beos*)
9612    lt_cv_dlopen="load_add_on"
9613    lt_cv_dlopen_libs=
9614    lt_cv_dlopen_self=yes
9615    ;;
9616
9617  mingw* | pw32*)
9618    lt_cv_dlopen="LoadLibrary"
9619    lt_cv_dlopen_libs=
9620   ;;
9621
9622  cygwin*)
9623    lt_cv_dlopen="dlopen"
9624    lt_cv_dlopen_libs=
9625   ;;
9626
9627  darwin*)
9628  # if libdl is installed we need to link against it
9629    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9630echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9631if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9632  echo $ECHO_N "(cached) $ECHO_C" >&6
9633else
9634  ac_check_lib_save_LIBS=$LIBS
9635LIBS="-ldl  $LIBS"
9636cat >conftest.$ac_ext <<_ACEOF
9637/* confdefs.h.  */
9638_ACEOF
9639cat confdefs.h >>conftest.$ac_ext
9640cat >>conftest.$ac_ext <<_ACEOF
9641/* end confdefs.h.  */
9642
9643/* Override any GCC internal prototype to avoid an error.
9644   Use char because int might match the return type of a GCC
9645   builtin and then its argument prototype would still apply.  */
9646#ifdef __cplusplus
9647extern "C"
9648#endif
9649char dlopen ();
9650int
9651main ()
9652{
9653return dlopen ();
9654  ;
9655  return 0;
9656}
9657_ACEOF
9658rm -f conftest.$ac_objext conftest$ac_exeext
9659if { (ac_try="$ac_link"
9660case "(($ac_try" in
9661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662  *) ac_try_echo=$ac_try;;
9663esac
9664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665  (eval "$ac_link") 2>conftest.er1
9666  ac_status=$?
9667  grep -v '^ *+' conftest.er1 >conftest.err
9668  rm -f conftest.er1
9669  cat conftest.err >&5
9670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671  (exit $ac_status); } && {
9672	 test -z "$ac_c_werror_flag" ||
9673	 test ! -s conftest.err
9674       } && test -s conftest$ac_exeext &&
9675       $as_test_x conftest$ac_exeext; then
9676  ac_cv_lib_dl_dlopen=yes
9677else
9678  echo "$as_me: failed program was:" >&5
9679sed 's/^/| /' conftest.$ac_ext >&5
9680
9681	ac_cv_lib_dl_dlopen=no
9682fi
9683
9684rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9685      conftest$ac_exeext conftest.$ac_ext
9686LIBS=$ac_check_lib_save_LIBS
9687fi
9688{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9689echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9690if test $ac_cv_lib_dl_dlopen = yes; then
9691  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9692else
9693
9694    lt_cv_dlopen="dyld"
9695    lt_cv_dlopen_libs=
9696    lt_cv_dlopen_self=yes
9697
9698fi
9699
9700   ;;
9701
9702  *)
9703    { echo "$as_me:$LINENO: checking for shl_load" >&5
9704echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9705if test "${ac_cv_func_shl_load+set}" = set; then
9706  echo $ECHO_N "(cached) $ECHO_C" >&6
9707else
9708  cat >conftest.$ac_ext <<_ACEOF
9709/* confdefs.h.  */
9710_ACEOF
9711cat confdefs.h >>conftest.$ac_ext
9712cat >>conftest.$ac_ext <<_ACEOF
9713/* end confdefs.h.  */
9714/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9715   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9716#define shl_load innocuous_shl_load
9717
9718/* System header to define __stub macros and hopefully few prototypes,
9719    which can conflict with char shl_load (); below.
9720    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9721    <limits.h> exists even on freestanding compilers.  */
9722
9723#ifdef __STDC__
9724# include <limits.h>
9725#else
9726# include <assert.h>
9727#endif
9728
9729#undef shl_load
9730
9731/* Override any GCC internal prototype to avoid an error.
9732   Use char because int might match the return type of a GCC
9733   builtin and then its argument prototype would still apply.  */
9734#ifdef __cplusplus
9735extern "C"
9736#endif
9737char shl_load ();
9738/* The GNU C library defines this for functions which it implements
9739    to always fail with ENOSYS.  Some functions are actually named
9740    something starting with __ and the normal name is an alias.  */
9741#if defined __stub_shl_load || defined __stub___shl_load
9742choke me
9743#endif
9744
9745int
9746main ()
9747{
9748return shl_load ();
9749  ;
9750  return 0;
9751}
9752_ACEOF
9753rm -f conftest.$ac_objext conftest$ac_exeext
9754if { (ac_try="$ac_link"
9755case "(($ac_try" in
9756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757  *) ac_try_echo=$ac_try;;
9758esac
9759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760  (eval "$ac_link") 2>conftest.er1
9761  ac_status=$?
9762  grep -v '^ *+' conftest.er1 >conftest.err
9763  rm -f conftest.er1
9764  cat conftest.err >&5
9765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766  (exit $ac_status); } && {
9767	 test -z "$ac_c_werror_flag" ||
9768	 test ! -s conftest.err
9769       } && test -s conftest$ac_exeext &&
9770       $as_test_x conftest$ac_exeext; then
9771  ac_cv_func_shl_load=yes
9772else
9773  echo "$as_me: failed program was:" >&5
9774sed 's/^/| /' conftest.$ac_ext >&5
9775
9776	ac_cv_func_shl_load=no
9777fi
9778
9779rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9780      conftest$ac_exeext conftest.$ac_ext
9781fi
9782{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9783echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9784if test $ac_cv_func_shl_load = yes; then
9785  lt_cv_dlopen="shl_load"
9786else
9787  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9788echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9789if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9790  echo $ECHO_N "(cached) $ECHO_C" >&6
9791else
9792  ac_check_lib_save_LIBS=$LIBS
9793LIBS="-ldld  $LIBS"
9794cat >conftest.$ac_ext <<_ACEOF
9795/* confdefs.h.  */
9796_ACEOF
9797cat confdefs.h >>conftest.$ac_ext
9798cat >>conftest.$ac_ext <<_ACEOF
9799/* end confdefs.h.  */
9800
9801/* Override any GCC internal prototype to avoid an error.
9802   Use char because int might match the return type of a GCC
9803   builtin and then its argument prototype would still apply.  */
9804#ifdef __cplusplus
9805extern "C"
9806#endif
9807char shl_load ();
9808int
9809main ()
9810{
9811return shl_load ();
9812  ;
9813  return 0;
9814}
9815_ACEOF
9816rm -f conftest.$ac_objext conftest$ac_exeext
9817if { (ac_try="$ac_link"
9818case "(($ac_try" in
9819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820  *) ac_try_echo=$ac_try;;
9821esac
9822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823  (eval "$ac_link") 2>conftest.er1
9824  ac_status=$?
9825  grep -v '^ *+' conftest.er1 >conftest.err
9826  rm -f conftest.er1
9827  cat conftest.err >&5
9828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829  (exit $ac_status); } && {
9830	 test -z "$ac_c_werror_flag" ||
9831	 test ! -s conftest.err
9832       } && test -s conftest$ac_exeext &&
9833       $as_test_x conftest$ac_exeext; then
9834  ac_cv_lib_dld_shl_load=yes
9835else
9836  echo "$as_me: failed program was:" >&5
9837sed 's/^/| /' conftest.$ac_ext >&5
9838
9839	ac_cv_lib_dld_shl_load=no
9840fi
9841
9842rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9843      conftest$ac_exeext conftest.$ac_ext
9844LIBS=$ac_check_lib_save_LIBS
9845fi
9846{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9847echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9848if test $ac_cv_lib_dld_shl_load = yes; then
9849  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9850else
9851  { echo "$as_me:$LINENO: checking for dlopen" >&5
9852echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9853if test "${ac_cv_func_dlopen+set}" = set; then
9854  echo $ECHO_N "(cached) $ECHO_C" >&6
9855else
9856  cat >conftest.$ac_ext <<_ACEOF
9857/* confdefs.h.  */
9858_ACEOF
9859cat confdefs.h >>conftest.$ac_ext
9860cat >>conftest.$ac_ext <<_ACEOF
9861/* end confdefs.h.  */
9862/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9863   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9864#define dlopen innocuous_dlopen
9865
9866/* System header to define __stub macros and hopefully few prototypes,
9867    which can conflict with char dlopen (); below.
9868    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9869    <limits.h> exists even on freestanding compilers.  */
9870
9871#ifdef __STDC__
9872# include <limits.h>
9873#else
9874# include <assert.h>
9875#endif
9876
9877#undef dlopen
9878
9879/* Override any GCC internal prototype to avoid an error.
9880   Use char because int might match the return type of a GCC
9881   builtin and then its argument prototype would still apply.  */
9882#ifdef __cplusplus
9883extern "C"
9884#endif
9885char dlopen ();
9886/* The GNU C library defines this for functions which it implements
9887    to always fail with ENOSYS.  Some functions are actually named
9888    something starting with __ and the normal name is an alias.  */
9889#if defined __stub_dlopen || defined __stub___dlopen
9890choke me
9891#endif
9892
9893int
9894main ()
9895{
9896return dlopen ();
9897  ;
9898  return 0;
9899}
9900_ACEOF
9901rm -f conftest.$ac_objext conftest$ac_exeext
9902if { (ac_try="$ac_link"
9903case "(($ac_try" in
9904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905  *) ac_try_echo=$ac_try;;
9906esac
9907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908  (eval "$ac_link") 2>conftest.er1
9909  ac_status=$?
9910  grep -v '^ *+' conftest.er1 >conftest.err
9911  rm -f conftest.er1
9912  cat conftest.err >&5
9913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914  (exit $ac_status); } && {
9915	 test -z "$ac_c_werror_flag" ||
9916	 test ! -s conftest.err
9917       } && test -s conftest$ac_exeext &&
9918       $as_test_x conftest$ac_exeext; then
9919  ac_cv_func_dlopen=yes
9920else
9921  echo "$as_me: failed program was:" >&5
9922sed 's/^/| /' conftest.$ac_ext >&5
9923
9924	ac_cv_func_dlopen=no
9925fi
9926
9927rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9928      conftest$ac_exeext conftest.$ac_ext
9929fi
9930{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9931echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9932if test $ac_cv_func_dlopen = yes; then
9933  lt_cv_dlopen="dlopen"
9934else
9935  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9936echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9937if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9938  echo $ECHO_N "(cached) $ECHO_C" >&6
9939else
9940  ac_check_lib_save_LIBS=$LIBS
9941LIBS="-ldl  $LIBS"
9942cat >conftest.$ac_ext <<_ACEOF
9943/* confdefs.h.  */
9944_ACEOF
9945cat confdefs.h >>conftest.$ac_ext
9946cat >>conftest.$ac_ext <<_ACEOF
9947/* end confdefs.h.  */
9948
9949/* Override any GCC internal prototype to avoid an error.
9950   Use char because int might match the return type of a GCC
9951   builtin and then its argument prototype would still apply.  */
9952#ifdef __cplusplus
9953extern "C"
9954#endif
9955char dlopen ();
9956int
9957main ()
9958{
9959return dlopen ();
9960  ;
9961  return 0;
9962}
9963_ACEOF
9964rm -f conftest.$ac_objext conftest$ac_exeext
9965if { (ac_try="$ac_link"
9966case "(($ac_try" in
9967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968  *) ac_try_echo=$ac_try;;
9969esac
9970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971  (eval "$ac_link") 2>conftest.er1
9972  ac_status=$?
9973  grep -v '^ *+' conftest.er1 >conftest.err
9974  rm -f conftest.er1
9975  cat conftest.err >&5
9976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977  (exit $ac_status); } && {
9978	 test -z "$ac_c_werror_flag" ||
9979	 test ! -s conftest.err
9980       } && test -s conftest$ac_exeext &&
9981       $as_test_x conftest$ac_exeext; then
9982  ac_cv_lib_dl_dlopen=yes
9983else
9984  echo "$as_me: failed program was:" >&5
9985sed 's/^/| /' conftest.$ac_ext >&5
9986
9987	ac_cv_lib_dl_dlopen=no
9988fi
9989
9990rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9991      conftest$ac_exeext conftest.$ac_ext
9992LIBS=$ac_check_lib_save_LIBS
9993fi
9994{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9995echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9996if test $ac_cv_lib_dl_dlopen = yes; then
9997  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9998else
9999  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10000echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10001if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10002  echo $ECHO_N "(cached) $ECHO_C" >&6
10003else
10004  ac_check_lib_save_LIBS=$LIBS
10005LIBS="-lsvld  $LIBS"
10006cat >conftest.$ac_ext <<_ACEOF
10007/* confdefs.h.  */
10008_ACEOF
10009cat confdefs.h >>conftest.$ac_ext
10010cat >>conftest.$ac_ext <<_ACEOF
10011/* end confdefs.h.  */
10012
10013/* Override any GCC internal prototype to avoid an error.
10014   Use char because int might match the return type of a GCC
10015   builtin and then its argument prototype would still apply.  */
10016#ifdef __cplusplus
10017extern "C"
10018#endif
10019char dlopen ();
10020int
10021main ()
10022{
10023return dlopen ();
10024  ;
10025  return 0;
10026}
10027_ACEOF
10028rm -f conftest.$ac_objext conftest$ac_exeext
10029if { (ac_try="$ac_link"
10030case "(($ac_try" in
10031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10032  *) ac_try_echo=$ac_try;;
10033esac
10034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10035  (eval "$ac_link") 2>conftest.er1
10036  ac_status=$?
10037  grep -v '^ *+' conftest.er1 >conftest.err
10038  rm -f conftest.er1
10039  cat conftest.err >&5
10040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041  (exit $ac_status); } && {
10042	 test -z "$ac_c_werror_flag" ||
10043	 test ! -s conftest.err
10044       } && test -s conftest$ac_exeext &&
10045       $as_test_x conftest$ac_exeext; then
10046  ac_cv_lib_svld_dlopen=yes
10047else
10048  echo "$as_me: failed program was:" >&5
10049sed 's/^/| /' conftest.$ac_ext >&5
10050
10051	ac_cv_lib_svld_dlopen=no
10052fi
10053
10054rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10055      conftest$ac_exeext conftest.$ac_ext
10056LIBS=$ac_check_lib_save_LIBS
10057fi
10058{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10059echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10060if test $ac_cv_lib_svld_dlopen = yes; then
10061  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10062else
10063  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10064echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10065if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10066  echo $ECHO_N "(cached) $ECHO_C" >&6
10067else
10068  ac_check_lib_save_LIBS=$LIBS
10069LIBS="-ldld  $LIBS"
10070cat >conftest.$ac_ext <<_ACEOF
10071/* confdefs.h.  */
10072_ACEOF
10073cat confdefs.h >>conftest.$ac_ext
10074cat >>conftest.$ac_ext <<_ACEOF
10075/* end confdefs.h.  */
10076
10077/* Override any GCC internal prototype to avoid an error.
10078   Use char because int might match the return type of a GCC
10079   builtin and then its argument prototype would still apply.  */
10080#ifdef __cplusplus
10081extern "C"
10082#endif
10083char dld_link ();
10084int
10085main ()
10086{
10087return dld_link ();
10088  ;
10089  return 0;
10090}
10091_ACEOF
10092rm -f conftest.$ac_objext conftest$ac_exeext
10093if { (ac_try="$ac_link"
10094case "(($ac_try" in
10095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096  *) ac_try_echo=$ac_try;;
10097esac
10098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099  (eval "$ac_link") 2>conftest.er1
10100  ac_status=$?
10101  grep -v '^ *+' conftest.er1 >conftest.err
10102  rm -f conftest.er1
10103  cat conftest.err >&5
10104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105  (exit $ac_status); } && {
10106	 test -z "$ac_c_werror_flag" ||
10107	 test ! -s conftest.err
10108       } && test -s conftest$ac_exeext &&
10109       $as_test_x conftest$ac_exeext; then
10110  ac_cv_lib_dld_dld_link=yes
10111else
10112  echo "$as_me: failed program was:" >&5
10113sed 's/^/| /' conftest.$ac_ext >&5
10114
10115	ac_cv_lib_dld_dld_link=no
10116fi
10117
10118rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10119      conftest$ac_exeext conftest.$ac_ext
10120LIBS=$ac_check_lib_save_LIBS
10121fi
10122{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10123echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10124if test $ac_cv_lib_dld_dld_link = yes; then
10125  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10126fi
10127
10128
10129fi
10130
10131
10132fi
10133
10134
10135fi
10136
10137
10138fi
10139
10140
10141fi
10142
10143    ;;
10144  esac
10145
10146  if test "x$lt_cv_dlopen" != xno; then
10147    enable_dlopen=yes
10148  else
10149    enable_dlopen=no
10150  fi
10151
10152  case $lt_cv_dlopen in
10153  dlopen)
10154    save_CPPFLAGS="$CPPFLAGS"
10155    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10156
10157    save_LDFLAGS="$LDFLAGS"
10158    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10159
10160    save_LIBS="$LIBS"
10161    LIBS="$lt_cv_dlopen_libs $LIBS"
10162
10163    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10164echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10165if test "${lt_cv_dlopen_self+set}" = set; then
10166  echo $ECHO_N "(cached) $ECHO_C" >&6
10167else
10168  	  if test "$cross_compiling" = yes; then :
10169  lt_cv_dlopen_self=cross
10170else
10171  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10172  lt_status=$lt_dlunknown
10173  cat > conftest.$ac_ext <<EOF
10174#line 10174 "configure"
10175#include "confdefs.h"
10176
10177#if HAVE_DLFCN_H
10178#include <dlfcn.h>
10179#endif
10180
10181#include <stdio.h>
10182
10183#ifdef RTLD_GLOBAL
10184#  define LT_DLGLOBAL		RTLD_GLOBAL
10185#else
10186#  ifdef DL_GLOBAL
10187#    define LT_DLGLOBAL		DL_GLOBAL
10188#  else
10189#    define LT_DLGLOBAL		0
10190#  endif
10191#endif
10192
10193/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10194   find out it does not work in some platform. */
10195#ifndef LT_DLLAZY_OR_NOW
10196#  ifdef RTLD_LAZY
10197#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10198#  else
10199#    ifdef DL_LAZY
10200#      define LT_DLLAZY_OR_NOW		DL_LAZY
10201#    else
10202#      ifdef RTLD_NOW
10203#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10204#      else
10205#        ifdef DL_NOW
10206#          define LT_DLLAZY_OR_NOW	DL_NOW
10207#        else
10208#          define LT_DLLAZY_OR_NOW	0
10209#        endif
10210#      endif
10211#    endif
10212#  endif
10213#endif
10214
10215#ifdef __cplusplus
10216extern "C" void exit (int);
10217#endif
10218
10219void fnord() { int i=42;}
10220int main ()
10221{
10222  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10223  int status = $lt_dlunknown;
10224
10225  if (self)
10226    {
10227      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10228      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10229      /* dlclose (self); */
10230    }
10231  else
10232    puts (dlerror ());
10233
10234    exit (status);
10235}
10236EOF
10237  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10238  (eval $ac_link) 2>&5
10239  ac_status=$?
10240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10242    (./conftest; exit; ) >&5 2>/dev/null
10243    lt_status=$?
10244    case x$lt_status in
10245      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10246      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10247      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10248    esac
10249  else :
10250    # compilation failed
10251    lt_cv_dlopen_self=no
10252  fi
10253fi
10254rm -fr conftest*
10255
10256
10257fi
10258{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10259echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10260
10261    if test "x$lt_cv_dlopen_self" = xyes; then
10262      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10263      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10264echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10265if test "${lt_cv_dlopen_self_static+set}" = set; then
10266  echo $ECHO_N "(cached) $ECHO_C" >&6
10267else
10268  	  if test "$cross_compiling" = yes; then :
10269  lt_cv_dlopen_self_static=cross
10270else
10271  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10272  lt_status=$lt_dlunknown
10273  cat > conftest.$ac_ext <<EOF
10274#line 10274 "configure"
10275#include "confdefs.h"
10276
10277#if HAVE_DLFCN_H
10278#include <dlfcn.h>
10279#endif
10280
10281#include <stdio.h>
10282
10283#ifdef RTLD_GLOBAL
10284#  define LT_DLGLOBAL		RTLD_GLOBAL
10285#else
10286#  ifdef DL_GLOBAL
10287#    define LT_DLGLOBAL		DL_GLOBAL
10288#  else
10289#    define LT_DLGLOBAL		0
10290#  endif
10291#endif
10292
10293/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10294   find out it does not work in some platform. */
10295#ifndef LT_DLLAZY_OR_NOW
10296#  ifdef RTLD_LAZY
10297#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10298#  else
10299#    ifdef DL_LAZY
10300#      define LT_DLLAZY_OR_NOW		DL_LAZY
10301#    else
10302#      ifdef RTLD_NOW
10303#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10304#      else
10305#        ifdef DL_NOW
10306#          define LT_DLLAZY_OR_NOW	DL_NOW
10307#        else
10308#          define LT_DLLAZY_OR_NOW	0
10309#        endif
10310#      endif
10311#    endif
10312#  endif
10313#endif
10314
10315#ifdef __cplusplus
10316extern "C" void exit (int);
10317#endif
10318
10319void fnord() { int i=42;}
10320int main ()
10321{
10322  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10323  int status = $lt_dlunknown;
10324
10325  if (self)
10326    {
10327      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10328      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10329      /* dlclose (self); */
10330    }
10331  else
10332    puts (dlerror ());
10333
10334    exit (status);
10335}
10336EOF
10337  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10338  (eval $ac_link) 2>&5
10339  ac_status=$?
10340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10342    (./conftest; exit; ) >&5 2>/dev/null
10343    lt_status=$?
10344    case x$lt_status in
10345      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10346      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10347      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10348    esac
10349  else :
10350    # compilation failed
10351    lt_cv_dlopen_self_static=no
10352  fi
10353fi
10354rm -fr conftest*
10355
10356
10357fi
10358{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10359echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10360    fi
10361
10362    CPPFLAGS="$save_CPPFLAGS"
10363    LDFLAGS="$save_LDFLAGS"
10364    LIBS="$save_LIBS"
10365    ;;
10366  esac
10367
10368  case $lt_cv_dlopen_self in
10369  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10370  *) enable_dlopen_self=unknown ;;
10371  esac
10372
10373  case $lt_cv_dlopen_self_static in
10374  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10375  *) enable_dlopen_self_static=unknown ;;
10376  esac
10377fi
10378
10379
10380# Report which library types will actually be built
10381{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10382echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10383{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10384echo "${ECHO_T}$can_build_shared" >&6; }
10385
10386{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10387echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10388test "$can_build_shared" = "no" && enable_shared=no
10389
10390# On AIX, shared libraries and static libraries use the same namespace, and
10391# are all built from PIC.
10392case $host_os in
10393aix3*)
10394  test "$enable_shared" = yes && enable_static=no
10395  if test -n "$RANLIB"; then
10396    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10397    postinstall_cmds='$RANLIB $lib'
10398  fi
10399  ;;
10400
10401aix[4-9]*)
10402  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10403    test "$enable_shared" = yes && enable_static=no
10404  fi
10405    ;;
10406esac
10407{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10408echo "${ECHO_T}$enable_shared" >&6; }
10409
10410{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10411echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10412# Make sure either enable_shared or enable_static is yes.
10413test "$enable_shared" = yes || enable_static=yes
10414{ echo "$as_me:$LINENO: result: $enable_static" >&5
10415echo "${ECHO_T}$enable_static" >&6; }
10416
10417# The else clause should only fire when bootstrapping the
10418# libtool distribution, otherwise you forgot to ship ltmain.sh
10419# with your package, and you will get complaints that there are
10420# no rules to generate ltmain.sh.
10421if test -f "$ltmain"; then
10422  # See if we are running on zsh, and set the options which allow our commands through
10423  # without removal of \ escapes.
10424  if test -n "${ZSH_VERSION+set}" ; then
10425    setopt NO_GLOB_SUBST
10426  fi
10427  # Now quote all the things that may contain metacharacters while being
10428  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10429  # variables and quote the copies for generation of the libtool script.
10430  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10431    SED SHELL STRIP \
10432    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10433    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10434    deplibs_check_method reload_flag reload_cmds need_locks \
10435    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10436    lt_cv_sys_global_symbol_to_c_name_address \
10437    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10438    old_postinstall_cmds old_postuninstall_cmds \
10439    compiler \
10440    CC \
10441    LD \
10442    lt_prog_compiler_wl \
10443    lt_prog_compiler_pic \
10444    lt_prog_compiler_static \
10445    lt_prog_compiler_no_builtin_flag \
10446    export_dynamic_flag_spec \
10447    thread_safe_flag_spec \
10448    whole_archive_flag_spec \
10449    enable_shared_with_static_runtimes \
10450    old_archive_cmds \
10451    old_archive_from_new_cmds \
10452    predep_objects \
10453    postdep_objects \
10454    predeps \
10455    postdeps \
10456    compiler_lib_search_path \
10457    compiler_lib_search_dirs \
10458    archive_cmds \
10459    archive_expsym_cmds \
10460    postinstall_cmds \
10461    postuninstall_cmds \
10462    old_archive_from_expsyms_cmds \
10463    allow_undefined_flag \
10464    no_undefined_flag \
10465    export_symbols_cmds \
10466    hardcode_libdir_flag_spec \
10467    hardcode_libdir_flag_spec_ld \
10468    hardcode_libdir_separator \
10469    hardcode_automatic \
10470    module_cmds \
10471    module_expsym_cmds \
10472    lt_cv_prog_compiler_c_o \
10473    fix_srcfile_path \
10474    exclude_expsyms \
10475    include_expsyms; do
10476
10477    case $var in
10478    old_archive_cmds | \
10479    old_archive_from_new_cmds | \
10480    archive_cmds | \
10481    archive_expsym_cmds | \
10482    module_cmds | \
10483    module_expsym_cmds | \
10484    old_archive_from_expsyms_cmds | \
10485    export_symbols_cmds | \
10486    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10487    postinstall_cmds | postuninstall_cmds | \
10488    old_postinstall_cmds | old_postuninstall_cmds | \
10489    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10490      # Double-quote double-evaled strings.
10491      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10492      ;;
10493    *)
10494      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10495      ;;
10496    esac
10497  done
10498
10499  case $lt_echo in
10500  *'\$0 --fallback-echo"')
10501    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10502    ;;
10503  esac
10504
10505cfgfile="${ofile}T"
10506  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10507  $rm -f "$cfgfile"
10508  { echo "$as_me:$LINENO: creating $ofile" >&5
10509echo "$as_me: creating $ofile" >&6;}
10510
10511  cat <<__EOF__ >> "$cfgfile"
10512#! $SHELL
10513
10514# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10515# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10516# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10517#
10518# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10519# Free Software Foundation, Inc.
10520#
10521# This file is part of GNU Libtool:
10522# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10523#
10524# This program is free software; you can redistribute it and/or modify
10525# it under the terms of the GNU General Public License as published by
10526# the Free Software Foundation; either version 2 of the License, or
10527# (at your option) any later version.
10528#
10529# This program is distributed in the hope that it will be useful, but
10530# WITHOUT ANY WARRANTY; without even the implied warranty of
10531# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10532# General Public License for more details.
10533#
10534# You should have received a copy of the GNU General Public License
10535# along with this program; if not, write to the Free Software
10536# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10537#
10538# As a special exception to the GNU General Public License, if you
10539# distribute this file as part of a program that contains a
10540# configuration script generated by Autoconf, you may include it under
10541# the same distribution terms that you use for the rest of that program.
10542
10543# A sed program that does not truncate output.
10544SED=$lt_SED
10545
10546# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10547Xsed="$SED -e 1s/^X//"
10548
10549# The HP-UX ksh and POSIX shell print the target directory to stdout
10550# if CDPATH is set.
10551(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10552
10553# The names of the tagged configurations supported by this script.
10554available_tags=
10555
10556# ### BEGIN LIBTOOL CONFIG
10557
10558# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10559
10560# Shell to use when invoking shell scripts.
10561SHELL=$lt_SHELL
10562
10563# Whether or not to build shared libraries.
10564build_libtool_libs=$enable_shared
10565
10566# Whether or not to build static libraries.
10567build_old_libs=$enable_static
10568
10569# Whether or not to add -lc for building shared libraries.
10570build_libtool_need_lc=$archive_cmds_need_lc
10571
10572# Whether or not to disallow shared libs when runtime libs are static
10573allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10574
10575# Whether or not to optimize for fast installation.
10576fast_install=$enable_fast_install
10577
10578# The host system.
10579host_alias=$host_alias
10580host=$host
10581host_os=$host_os
10582
10583# The build system.
10584build_alias=$build_alias
10585build=$build
10586build_os=$build_os
10587
10588# An echo program that does not interpret backslashes.
10589echo=$lt_echo
10590
10591# The archiver.
10592AR=$lt_AR
10593AR_FLAGS=$lt_AR_FLAGS
10594
10595# A C compiler.
10596LTCC=$lt_LTCC
10597
10598# LTCC compiler flags.
10599LTCFLAGS=$lt_LTCFLAGS
10600
10601# A language-specific compiler.
10602CC=$lt_compiler
10603
10604# Is the compiler the GNU C compiler?
10605with_gcc=$GCC
10606
10607# An ERE matcher.
10608EGREP=$lt_EGREP
10609
10610# The linker used to build libraries.
10611LD=$lt_LD
10612
10613# Whether we need hard or soft links.
10614LN_S=$lt_LN_S
10615
10616# A BSD-compatible nm program.
10617NM=$lt_NM
10618
10619# A symbol stripping program
10620STRIP=$lt_STRIP
10621
10622# Used to examine libraries when file_magic_cmd begins "file"
10623MAGIC_CMD=$MAGIC_CMD
10624
10625# Used on cygwin: DLL creation program.
10626DLLTOOL="$DLLTOOL"
10627
10628# Used on cygwin: object dumper.
10629OBJDUMP="$OBJDUMP"
10630
10631# Used on cygwin: assembler.
10632AS="$AS"
10633
10634# The name of the directory that contains temporary libtool files.
10635objdir=$objdir
10636
10637# How to create reloadable object files.
10638reload_flag=$lt_reload_flag
10639reload_cmds=$lt_reload_cmds
10640
10641# How to pass a linker flag through the compiler.
10642wl=$lt_lt_prog_compiler_wl
10643
10644# Object file suffix (normally "o").
10645objext="$ac_objext"
10646
10647# Old archive suffix (normally "a").
10648libext="$libext"
10649
10650# Shared library suffix (normally ".so").
10651shrext_cmds='$shrext_cmds'
10652
10653# Executable file suffix (normally "").
10654exeext="$exeext"
10655
10656# Additional compiler flags for building library objects.
10657pic_flag=$lt_lt_prog_compiler_pic
10658pic_mode=$pic_mode
10659
10660# What is the maximum length of a command?
10661max_cmd_len=$lt_cv_sys_max_cmd_len
10662
10663# Does compiler simultaneously support -c and -o options?
10664compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10665
10666# Must we lock files when doing compilation?
10667need_locks=$lt_need_locks
10668
10669# Do we need the lib prefix for modules?
10670need_lib_prefix=$need_lib_prefix
10671
10672# Do we need a version for libraries?
10673need_version=$need_version
10674
10675# Whether dlopen is supported.
10676dlopen_support=$enable_dlopen
10677
10678# Whether dlopen of programs is supported.
10679dlopen_self=$enable_dlopen_self
10680
10681# Whether dlopen of statically linked programs is supported.
10682dlopen_self_static=$enable_dlopen_self_static
10683
10684# Compiler flag to prevent dynamic linking.
10685link_static_flag=$lt_lt_prog_compiler_static
10686
10687# Compiler flag to turn off builtin functions.
10688no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10689
10690# Compiler flag to allow reflexive dlopens.
10691export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10692
10693# Compiler flag to generate shared objects directly from archives.
10694whole_archive_flag_spec=$lt_whole_archive_flag_spec
10695
10696# Compiler flag to generate thread-safe objects.
10697thread_safe_flag_spec=$lt_thread_safe_flag_spec
10698
10699# Library versioning type.
10700version_type=$version_type
10701
10702# Format of library name prefix.
10703libname_spec=$lt_libname_spec
10704
10705# List of archive names.  First name is the real one, the rest are links.
10706# The last name is the one that the linker finds with -lNAME.
10707library_names_spec=$lt_library_names_spec
10708
10709# The coded name of the library, if different from the real name.
10710soname_spec=$lt_soname_spec
10711
10712# Commands used to build and install an old-style archive.
10713RANLIB=$lt_RANLIB
10714old_archive_cmds=$lt_old_archive_cmds
10715old_postinstall_cmds=$lt_old_postinstall_cmds
10716old_postuninstall_cmds=$lt_old_postuninstall_cmds
10717
10718# Create an old-style archive from a shared archive.
10719old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10720
10721# Create a temporary old-style archive to link instead of a shared archive.
10722old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10723
10724# Commands used to build and install a shared archive.
10725archive_cmds=$lt_archive_cmds
10726archive_expsym_cmds=$lt_archive_expsym_cmds
10727postinstall_cmds=$lt_postinstall_cmds
10728postuninstall_cmds=$lt_postuninstall_cmds
10729
10730# Commands used to build a loadable module (assumed same as above if empty)
10731module_cmds=$lt_module_cmds
10732module_expsym_cmds=$lt_module_expsym_cmds
10733
10734# Commands to strip libraries.
10735old_striplib=$lt_old_striplib
10736striplib=$lt_striplib
10737
10738# Dependencies to place before the objects being linked to create a
10739# shared library.
10740predep_objects=$lt_predep_objects
10741
10742# Dependencies to place after the objects being linked to create a
10743# shared library.
10744postdep_objects=$lt_postdep_objects
10745
10746# Dependencies to place before the objects being linked to create a
10747# shared library.
10748predeps=$lt_predeps
10749
10750# Dependencies to place after the objects being linked to create a
10751# shared library.
10752postdeps=$lt_postdeps
10753
10754# The directories searched by this compiler when creating a shared
10755# library
10756compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10757
10758# The library search path used internally by the compiler when linking
10759# a shared library.
10760compiler_lib_search_path=$lt_compiler_lib_search_path
10761
10762# Method to check whether dependent libraries are shared objects.
10763deplibs_check_method=$lt_deplibs_check_method
10764
10765# Command to use when deplibs_check_method == file_magic.
10766file_magic_cmd=$lt_file_magic_cmd
10767
10768# Flag that allows shared libraries with undefined symbols to be built.
10769allow_undefined_flag=$lt_allow_undefined_flag
10770
10771# Flag that forces no undefined symbols.
10772no_undefined_flag=$lt_no_undefined_flag
10773
10774# Commands used to finish a libtool library installation in a directory.
10775finish_cmds=$lt_finish_cmds
10776
10777# Same as above, but a single script fragment to be evaled but not shown.
10778finish_eval=$lt_finish_eval
10779
10780# Take the output of nm and produce a listing of raw symbols and C names.
10781global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10782
10783# Transform the output of nm in a proper C declaration
10784global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10785
10786# Transform the output of nm in a C name address pair
10787global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10788
10789# This is the shared library runtime path variable.
10790runpath_var=$runpath_var
10791
10792# This is the shared library path variable.
10793shlibpath_var=$shlibpath_var
10794
10795# Is shlibpath searched before the hard-coded library search path?
10796shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10797
10798# How to hardcode a shared library path into an executable.
10799hardcode_action=$hardcode_action
10800
10801# Whether we should hardcode library paths into libraries.
10802hardcode_into_libs=$hardcode_into_libs
10803
10804# Flag to hardcode \$libdir into a binary during linking.
10805# This must work even if \$libdir does not exist.
10806hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10807
10808# If ld is used when linking, flag to hardcode \$libdir into
10809# a binary during linking. This must work even if \$libdir does
10810# not exist.
10811hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10812
10813# Whether we need a single -rpath flag with a separated argument.
10814hardcode_libdir_separator=$lt_hardcode_libdir_separator
10815
10816# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10817# resulting binary.
10818hardcode_direct=$hardcode_direct
10819
10820# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10821# resulting binary.
10822hardcode_minus_L=$hardcode_minus_L
10823
10824# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10825# the resulting binary.
10826hardcode_shlibpath_var=$hardcode_shlibpath_var
10827
10828# Set to yes if building a shared library automatically hardcodes DIR into the library
10829# and all subsequent libraries and executables linked against it.
10830hardcode_automatic=$hardcode_automatic
10831
10832# Variables whose values should be saved in libtool wrapper scripts and
10833# restored at relink time.
10834variables_saved_for_relink="$variables_saved_for_relink"
10835
10836# Whether libtool must link a program against all its dependency libraries.
10837link_all_deplibs=$link_all_deplibs
10838
10839# Compile-time system search path for libraries
10840sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10841
10842# Run-time system search path for libraries
10843sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10844
10845# Fix the shell variable \$srcfile for the compiler.
10846fix_srcfile_path=$lt_fix_srcfile_path
10847
10848# Set to yes if exported symbols are required.
10849always_export_symbols=$always_export_symbols
10850
10851# The commands to list exported symbols.
10852export_symbols_cmds=$lt_export_symbols_cmds
10853
10854# The commands to extract the exported symbol list from a shared archive.
10855extract_expsyms_cmds=$lt_extract_expsyms_cmds
10856
10857# Symbols that should not be listed in the preloaded symbols.
10858exclude_expsyms=$lt_exclude_expsyms
10859
10860# Symbols that must always be exported.
10861include_expsyms=$lt_include_expsyms
10862
10863# ### END LIBTOOL CONFIG
10864
10865__EOF__
10866
10867
10868  case $host_os in
10869  aix3*)
10870    cat <<\EOF >> "$cfgfile"
10871
10872# AIX sometimes has problems with the GCC collect2 program.  For some
10873# reason, if we set the COLLECT_NAMES environment variable, the problems
10874# vanish in a puff of smoke.
10875if test "X${COLLECT_NAMES+set}" != Xset; then
10876  COLLECT_NAMES=
10877  export COLLECT_NAMES
10878fi
10879EOF
10880    ;;
10881  esac
10882
10883  # We use sed instead of cat because bash on DJGPP gets confused if
10884  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10885  # text mode, it properly converts lines to CR/LF.  This bash problem
10886  # is reportedly fixed, but why not run on old versions too?
10887  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10888
10889  mv -f "$cfgfile" "$ofile" || \
10890    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10891  chmod +x "$ofile"
10892
10893else
10894  # If there is no Makefile yet, we rely on a make rule to execute
10895  # `config.status --recheck' to rerun these tests and create the
10896  # libtool script then.
10897  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10898  if test -f "$ltmain_in"; then
10899    test -f Makefile && make "$ltmain"
10900  fi
10901fi
10902
10903
10904ac_ext=c
10905ac_cpp='$CPP $CPPFLAGS'
10906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10908ac_compiler_gnu=$ac_cv_c_compiler_gnu
10909
10910CC="$lt_save_CC"
10911
10912
10913# Check whether --with-tags was given.
10914if test "${with_tags+set}" = set; then
10915  withval=$with_tags; tagnames="$withval"
10916fi
10917
10918
10919if test -f "$ltmain" && test -n "$tagnames"; then
10920  if test ! -f "${ofile}"; then
10921    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10922echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10923  fi
10924
10925  if test -z "$LTCC"; then
10926    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10927    if test -z "$LTCC"; then
10928      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10929echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10930    else
10931      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10932echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10933    fi
10934  fi
10935  if test -z "$LTCFLAGS"; then
10936    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10937  fi
10938
10939  # Extract list of available tagged configurations in $ofile.
10940  # Note that this assumes the entire list is on one line.
10941  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10942
10943  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10944  for tagname in $tagnames; do
10945    IFS="$lt_save_ifs"
10946    # Check whether tagname contains only valid characters
10947    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10948    "") ;;
10949    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10950echo "$as_me: error: invalid tag name: $tagname" >&2;}
10951   { (exit 1); exit 1; }; }
10952	;;
10953    esac
10954
10955    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10956    then
10957      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10958echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10959   { (exit 1); exit 1; }; }
10960    fi
10961
10962    # Update the list of available tags.
10963    if test -n "$tagname"; then
10964      echo appending configuration tag \"$tagname\" to $ofile
10965
10966      case $tagname in
10967      CXX)
10968	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10969	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10970	    (test "X$CXX" != "Xg++"))) ; then
10971	  ac_ext=cpp
10972ac_cpp='$CXXCPP $CPPFLAGS'
10973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10976
10977
10978
10979
10980archive_cmds_need_lc_CXX=no
10981allow_undefined_flag_CXX=
10982always_export_symbols_CXX=no
10983archive_expsym_cmds_CXX=
10984export_dynamic_flag_spec_CXX=
10985hardcode_direct_CXX=no
10986hardcode_libdir_flag_spec_CXX=
10987hardcode_libdir_flag_spec_ld_CXX=
10988hardcode_libdir_separator_CXX=
10989hardcode_minus_L_CXX=no
10990hardcode_shlibpath_var_CXX=unsupported
10991hardcode_automatic_CXX=no
10992module_cmds_CXX=
10993module_expsym_cmds_CXX=
10994link_all_deplibs_CXX=unknown
10995old_archive_cmds_CXX=$old_archive_cmds
10996no_undefined_flag_CXX=
10997whole_archive_flag_spec_CXX=
10998enable_shared_with_static_runtimes_CXX=no
10999
11000# Dependencies to place before and after the object being linked:
11001predep_objects_CXX=
11002postdep_objects_CXX=
11003predeps_CXX=
11004postdeps_CXX=
11005compiler_lib_search_path_CXX=
11006compiler_lib_search_dirs_CXX=
11007
11008# Source file extension for C++ test sources.
11009ac_ext=cpp
11010
11011# Object file extension for compiled C++ test sources.
11012objext=o
11013objext_CXX=$objext
11014
11015# Code to be used in simple compile tests
11016lt_simple_compile_test_code="int some_variable = 0;"
11017
11018# Code to be used in simple link tests
11019lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11020
11021# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11022
11023# If no C compiler was specified, use CC.
11024LTCC=${LTCC-"$CC"}
11025
11026# If no C compiler flags were specified, use CFLAGS.
11027LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11028
11029# Allow CC to be a program name with arguments.
11030compiler=$CC
11031
11032
11033# save warnings/boilerplate of simple test code
11034ac_outfile=conftest.$ac_objext
11035echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11036eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11037_lt_compiler_boilerplate=`cat conftest.err`
11038$rm conftest*
11039
11040ac_outfile=conftest.$ac_objext
11041echo "$lt_simple_link_test_code" >conftest.$ac_ext
11042eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11043_lt_linker_boilerplate=`cat conftest.err`
11044$rm -r conftest*
11045
11046
11047# Allow CC to be a program name with arguments.
11048lt_save_CC=$CC
11049lt_save_LD=$LD
11050lt_save_GCC=$GCC
11051GCC=$GXX
11052lt_save_with_gnu_ld=$with_gnu_ld
11053lt_save_path_LD=$lt_cv_path_LD
11054if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11055  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11056else
11057  $as_unset lt_cv_prog_gnu_ld
11058fi
11059if test -n "${lt_cv_path_LDCXX+set}"; then
11060  lt_cv_path_LD=$lt_cv_path_LDCXX
11061else
11062  $as_unset lt_cv_path_LD
11063fi
11064test -z "${LDCXX+set}" || LD=$LDCXX
11065CC=${CXX-"c++"}
11066compiler=$CC
11067compiler_CXX=$CC
11068for cc_temp in $compiler""; do
11069  case $cc_temp in
11070    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11071    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11072    \-*) ;;
11073    *) break;;
11074  esac
11075done
11076cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11077
11078
11079# We don't want -fno-exception wen compiling C++ code, so set the
11080# no_builtin_flag separately
11081if test "$GXX" = yes; then
11082  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11083else
11084  lt_prog_compiler_no_builtin_flag_CXX=
11085fi
11086
11087if test "$GXX" = yes; then
11088  # Set up default GNU C++ configuration
11089
11090
11091# Check whether --with-gnu-ld was given.
11092if test "${with_gnu_ld+set}" = set; then
11093  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11094else
11095  with_gnu_ld=no
11096fi
11097
11098ac_prog=ld
11099if test "$GCC" = yes; then
11100  # Check if gcc -print-prog-name=ld gives a path.
11101  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11102echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11103  case $host in
11104  *-*-mingw*)
11105    # gcc leaves a trailing carriage return which upsets mingw
11106    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11107  *)
11108    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11109  esac
11110  case $ac_prog in
11111    # Accept absolute paths.
11112    [\\/]* | ?:[\\/]*)
11113      re_direlt='/[^/][^/]*/\.\./'
11114      # Canonicalize the pathname of ld
11115      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11116      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11117	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11118      done
11119      test -z "$LD" && LD="$ac_prog"
11120      ;;
11121  "")
11122    # If it fails, then pretend we aren't using GCC.
11123    ac_prog=ld
11124    ;;
11125  *)
11126    # If it is relative, then search for the first ld in PATH.
11127    with_gnu_ld=unknown
11128    ;;
11129  esac
11130elif test "$with_gnu_ld" = yes; then
11131  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11132echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11133else
11134  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11135echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11136fi
11137if test "${lt_cv_path_LD+set}" = set; then
11138  echo $ECHO_N "(cached) $ECHO_C" >&6
11139else
11140  if test -z "$LD"; then
11141  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11142  for ac_dir in $PATH; do
11143    IFS="$lt_save_ifs"
11144    test -z "$ac_dir" && ac_dir=.
11145    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11146      lt_cv_path_LD="$ac_dir/$ac_prog"
11147      # Check to see if the program is GNU ld.  I'd rather use --version,
11148      # but apparently some variants of GNU ld only accept -v.
11149      # Break only if it was the GNU/non-GNU ld that we prefer.
11150      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11151      *GNU* | *'with BFD'*)
11152	test "$with_gnu_ld" != no && break
11153	;;
11154      *)
11155	test "$with_gnu_ld" != yes && break
11156	;;
11157      esac
11158    fi
11159  done
11160  IFS="$lt_save_ifs"
11161else
11162  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11163fi
11164fi
11165
11166LD="$lt_cv_path_LD"
11167if test -n "$LD"; then
11168  { echo "$as_me:$LINENO: result: $LD" >&5
11169echo "${ECHO_T}$LD" >&6; }
11170else
11171  { echo "$as_me:$LINENO: result: no" >&5
11172echo "${ECHO_T}no" >&6; }
11173fi
11174test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11175echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11176   { (exit 1); exit 1; }; }
11177{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11178echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11179if test "${lt_cv_prog_gnu_ld+set}" = set; then
11180  echo $ECHO_N "(cached) $ECHO_C" >&6
11181else
11182  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11183case `$LD -v 2>&1 </dev/null` in
11184*GNU* | *'with BFD'*)
11185  lt_cv_prog_gnu_ld=yes
11186  ;;
11187*)
11188  lt_cv_prog_gnu_ld=no
11189  ;;
11190esac
11191fi
11192{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11193echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11194with_gnu_ld=$lt_cv_prog_gnu_ld
11195
11196
11197
11198  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11199  # archiving commands below assume that GNU ld is being used.
11200  if test "$with_gnu_ld" = yes; then
11201    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11202    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'
11203
11204    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11205    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11206
11207    # If archive_cmds runs LD, not CC, wlarc should be empty
11208    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11209    #     investigate it a little bit more. (MM)
11210    wlarc='${wl}'
11211
11212    # ancient GNU ld didn't support --whole-archive et. al.
11213    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11214	grep 'no-whole-archive' > /dev/null; then
11215      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11216    else
11217      whole_archive_flag_spec_CXX=
11218    fi
11219  else
11220    with_gnu_ld=no
11221    wlarc=
11222
11223    # A generic and very simple default shared library creation
11224    # command for GNU C++ for the case where it uses the native
11225    # linker, instead of GNU ld.  If possible, this setting should
11226    # overridden to take advantage of the native linker features on
11227    # the platform it is being used on.
11228    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11229  fi
11230
11231  # Commands to make compiler produce verbose output that lists
11232  # what "hidden" libraries, object files and flags are used when
11233  # linking a shared library.
11234  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11235
11236else
11237  GXX=no
11238  with_gnu_ld=no
11239  wlarc=
11240fi
11241
11242# PORTME: fill in a description of your system's C++ link characteristics
11243{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11244echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11245ld_shlibs_CXX=yes
11246case $host_os in
11247  aix3*)
11248    # FIXME: insert proper C++ library support
11249    ld_shlibs_CXX=no
11250    ;;
11251  aix[4-9]*)
11252    if test "$host_cpu" = ia64; then
11253      # On IA64, the linker does run time linking by default, so we don't
11254      # have to do anything special.
11255      aix_use_runtimelinking=no
11256      exp_sym_flag='-Bexport'
11257      no_entry_flag=""
11258    else
11259      aix_use_runtimelinking=no
11260
11261      # Test if we are trying to use run time linking or normal
11262      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11263      # need to do runtime linking.
11264      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11265	for ld_flag in $LDFLAGS; do
11266	  case $ld_flag in
11267	  *-brtl*)
11268	    aix_use_runtimelinking=yes
11269	    break
11270	    ;;
11271	  esac
11272	done
11273	;;
11274      esac
11275
11276      exp_sym_flag='-bexport'
11277      no_entry_flag='-bnoentry'
11278    fi
11279
11280    # When large executables or shared objects are built, AIX ld can
11281    # have problems creating the table of contents.  If linking a library
11282    # or program results in "error TOC overflow" add -mminimal-toc to
11283    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11284    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11285
11286    archive_cmds_CXX=''
11287    hardcode_direct_CXX=yes
11288    hardcode_libdir_separator_CXX=':'
11289    link_all_deplibs_CXX=yes
11290
11291    if test "$GXX" = yes; then
11292      case $host_os in aix4.[012]|aix4.[012].*)
11293      # We only want to do this on AIX 4.2 and lower, the check
11294      # below for broken collect2 doesn't work under 4.3+
11295	collect2name=`${CC} -print-prog-name=collect2`
11296	if test -f "$collect2name" && \
11297	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11298	then
11299	  # We have reworked collect2
11300	  :
11301	else
11302	  # We have old collect2
11303	  hardcode_direct_CXX=unsupported
11304	  # It fails to find uninstalled libraries when the uninstalled
11305	  # path is not listed in the libpath.  Setting hardcode_minus_L
11306	  # to unsupported forces relinking
11307	  hardcode_minus_L_CXX=yes
11308	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11309	  hardcode_libdir_separator_CXX=
11310	fi
11311	;;
11312      esac
11313      shared_flag='-shared'
11314      if test "$aix_use_runtimelinking" = yes; then
11315	shared_flag="$shared_flag "'${wl}-G'
11316      fi
11317    else
11318      # not using gcc
11319      if test "$host_cpu" = ia64; then
11320	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11321	# chokes on -Wl,-G. The following line is correct:
11322	shared_flag='-G'
11323      else
11324	if test "$aix_use_runtimelinking" = yes; then
11325	  shared_flag='${wl}-G'
11326	else
11327	  shared_flag='${wl}-bM:SRE'
11328	fi
11329      fi
11330    fi
11331
11332    # It seems that -bexpall does not export symbols beginning with
11333    # underscore (_), so it is better to generate a list of symbols to export.
11334    always_export_symbols_CXX=yes
11335    if test "$aix_use_runtimelinking" = yes; then
11336      # Warning - without using the other runtime loading flags (-brtl),
11337      # -berok will link without error, but may produce a broken library.
11338      allow_undefined_flag_CXX='-berok'
11339      # Determine the default libpath from the value encoded in an empty executable.
11340      cat >conftest.$ac_ext <<_ACEOF
11341/* confdefs.h.  */
11342_ACEOF
11343cat confdefs.h >>conftest.$ac_ext
11344cat >>conftest.$ac_ext <<_ACEOF
11345/* end confdefs.h.  */
11346
11347int
11348main ()
11349{
11350
11351  ;
11352  return 0;
11353}
11354_ACEOF
11355rm -f conftest.$ac_objext conftest$ac_exeext
11356if { (ac_try="$ac_link"
11357case "(($ac_try" in
11358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359  *) ac_try_echo=$ac_try;;
11360esac
11361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362  (eval "$ac_link") 2>conftest.er1
11363  ac_status=$?
11364  grep -v '^ *+' conftest.er1 >conftest.err
11365  rm -f conftest.er1
11366  cat conftest.err >&5
11367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368  (exit $ac_status); } && {
11369	 test -z "$ac_cxx_werror_flag" ||
11370	 test ! -s conftest.err
11371       } && test -s conftest$ac_exeext &&
11372       $as_test_x conftest$ac_exeext; then
11373
11374lt_aix_libpath_sed='
11375    /Import File Strings/,/^$/ {
11376	/^0/ {
11377	    s/^0  *\(.*\)$/\1/
11378	    p
11379	}
11380    }'
11381aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11382# Check for a 64-bit object if we didn't find anything.
11383if test -z "$aix_libpath"; then
11384  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11385fi
11386else
11387  echo "$as_me: failed program was:" >&5
11388sed 's/^/| /' conftest.$ac_ext >&5
11389
11390
11391fi
11392
11393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11394      conftest$ac_exeext conftest.$ac_ext
11395if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11396
11397      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11398
11399      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"
11400     else
11401      if test "$host_cpu" = ia64; then
11402	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11403	allow_undefined_flag_CXX="-z nodefs"
11404	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"
11405      else
11406	# Determine the default libpath from the value encoded in an empty executable.
11407	cat >conftest.$ac_ext <<_ACEOF
11408/* confdefs.h.  */
11409_ACEOF
11410cat confdefs.h >>conftest.$ac_ext
11411cat >>conftest.$ac_ext <<_ACEOF
11412/* end confdefs.h.  */
11413
11414int
11415main ()
11416{
11417
11418  ;
11419  return 0;
11420}
11421_ACEOF
11422rm -f conftest.$ac_objext conftest$ac_exeext
11423if { (ac_try="$ac_link"
11424case "(($ac_try" in
11425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426  *) ac_try_echo=$ac_try;;
11427esac
11428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429  (eval "$ac_link") 2>conftest.er1
11430  ac_status=$?
11431  grep -v '^ *+' conftest.er1 >conftest.err
11432  rm -f conftest.er1
11433  cat conftest.err >&5
11434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435  (exit $ac_status); } && {
11436	 test -z "$ac_cxx_werror_flag" ||
11437	 test ! -s conftest.err
11438       } && test -s conftest$ac_exeext &&
11439       $as_test_x conftest$ac_exeext; then
11440
11441lt_aix_libpath_sed='
11442    /Import File Strings/,/^$/ {
11443	/^0/ {
11444	    s/^0  *\(.*\)$/\1/
11445	    p
11446	}
11447    }'
11448aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11449# Check for a 64-bit object if we didn't find anything.
11450if test -z "$aix_libpath"; then
11451  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11452fi
11453else
11454  echo "$as_me: failed program was:" >&5
11455sed 's/^/| /' conftest.$ac_ext >&5
11456
11457
11458fi
11459
11460rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11461      conftest$ac_exeext conftest.$ac_ext
11462if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11463
11464	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11465	# Warning - without using the other run time loading flags,
11466	# -berok will link without error, but may produce a broken library.
11467	no_undefined_flag_CXX=' ${wl}-bernotok'
11468	allow_undefined_flag_CXX=' ${wl}-berok'
11469	# Exported symbols can be pulled into shared objects from archives
11470	whole_archive_flag_spec_CXX='$convenience'
11471	archive_cmds_need_lc_CXX=yes
11472	# This is similar to how AIX traditionally builds its shared libraries.
11473	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'
11474      fi
11475    fi
11476    ;;
11477
11478  beos*)
11479    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11480      allow_undefined_flag_CXX=unsupported
11481      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11482      # support --undefined.  This deserves some investigation.  FIXME
11483      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11484    else
11485      ld_shlibs_CXX=no
11486    fi
11487    ;;
11488
11489  chorus*)
11490    case $cc_basename in
11491      *)
11492	# FIXME: insert proper C++ library support
11493	ld_shlibs_CXX=no
11494	;;
11495    esac
11496    ;;
11497
11498  cygwin* | mingw* | pw32*)
11499    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11500    # as there is no search path for DLLs.
11501    hardcode_libdir_flag_spec_CXX='-L$libdir'
11502    allow_undefined_flag_CXX=unsupported
11503    always_export_symbols_CXX=no
11504    enable_shared_with_static_runtimes_CXX=yes
11505
11506    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11507      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'
11508      # If the export-symbols file already is a .def file (1st line
11509      # is EXPORTS), use it as is; otherwise, prepend...
11510      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11511	cp $export_symbols $output_objdir/$soname.def;
11512      else
11513	echo EXPORTS > $output_objdir/$soname.def;
11514	cat $export_symbols >> $output_objdir/$soname.def;
11515      fi~
11516      $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'
11517    else
11518      ld_shlibs_CXX=no
11519    fi
11520  ;;
11521      darwin* | rhapsody*)
11522      archive_cmds_need_lc_CXX=no
11523      hardcode_direct_CXX=no
11524      hardcode_automatic_CXX=yes
11525      hardcode_shlibpath_var_CXX=unsupported
11526      whole_archive_flag_spec_CXX=''
11527      link_all_deplibs_CXX=yes
11528      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11529      if test "$GXX" = yes ; then
11530      output_verbose_link_cmd='echo'
11531      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11532      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11533      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11534      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11535      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11536        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11537        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11538      fi
11539      else
11540      case $cc_basename in
11541        xlc*)
11542         output_verbose_link_cmd='echo'
11543          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11544          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11545          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11546          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11547          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}'
11548          ;;
11549       *)
11550         ld_shlibs_CXX=no
11551          ;;
11552      esac
11553      fi
11554        ;;
11555
11556  dgux*)
11557    case $cc_basename in
11558      ec++*)
11559	# FIXME: insert proper C++ library support
11560	ld_shlibs_CXX=no
11561	;;
11562      ghcx*)
11563	# Green Hills C++ Compiler
11564	# FIXME: insert proper C++ library support
11565	ld_shlibs_CXX=no
11566	;;
11567      *)
11568	# FIXME: insert proper C++ library support
11569	ld_shlibs_CXX=no
11570	;;
11571    esac
11572    ;;
11573  freebsd[12]*)
11574    # C++ shared libraries reported to be fairly broken before switch to ELF
11575    ld_shlibs_CXX=no
11576    ;;
11577  freebsd-elf*)
11578    archive_cmds_need_lc_CXX=no
11579    ;;
11580  freebsd* | dragonfly*)
11581    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11582    # conventions
11583    ld_shlibs_CXX=yes
11584    ;;
11585  gnu*)
11586    ;;
11587  hpux9*)
11588    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11589    hardcode_libdir_separator_CXX=:
11590    export_dynamic_flag_spec_CXX='${wl}-E'
11591    hardcode_direct_CXX=yes
11592    hardcode_minus_L_CXX=yes # Not in the search PATH,
11593				# but as the default
11594				# location of the library.
11595
11596    case $cc_basename in
11597    CC*)
11598      # FIXME: insert proper C++ library support
11599      ld_shlibs_CXX=no
11600      ;;
11601    aCC*)
11602      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'
11603      # Commands to make compiler produce verbose output that lists
11604      # what "hidden" libraries, object files and flags are used when
11605      # linking a shared library.
11606      #
11607      # There doesn't appear to be a way to prevent this compiler from
11608      # explicitly linking system object files so we need to strip them
11609      # from the output so that they don't get included in the library
11610      # dependencies.
11611      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'
11612      ;;
11613    *)
11614      if test "$GXX" = yes; then
11615        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'
11616      else
11617        # FIXME: insert proper C++ library support
11618        ld_shlibs_CXX=no
11619      fi
11620      ;;
11621    esac
11622    ;;
11623  hpux10*|hpux11*)
11624    if test $with_gnu_ld = no; then
11625      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11626      hardcode_libdir_separator_CXX=:
11627
11628      case $host_cpu in
11629      hppa*64*|ia64*) ;;
11630      *)
11631	export_dynamic_flag_spec_CXX='${wl}-E'
11632        ;;
11633      esac
11634    fi
11635    case $host_cpu in
11636    hppa*64*|ia64*)
11637      hardcode_direct_CXX=no
11638      hardcode_shlibpath_var_CXX=no
11639      ;;
11640    *)
11641      hardcode_direct_CXX=yes
11642      hardcode_minus_L_CXX=yes # Not in the search PATH,
11643					      # but as the default
11644					      # location of the library.
11645      ;;
11646    esac
11647
11648    case $cc_basename in
11649      CC*)
11650	# FIXME: insert proper C++ library support
11651	ld_shlibs_CXX=no
11652	;;
11653      aCC*)
11654	case $host_cpu in
11655	hppa*64*)
11656	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11657	  ;;
11658	ia64*)
11659	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11660	  ;;
11661	*)
11662	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11663	  ;;
11664	esac
11665	# Commands to make compiler produce verbose output that lists
11666	# what "hidden" libraries, object files and flags are used when
11667	# linking a shared library.
11668	#
11669	# There doesn't appear to be a way to prevent this compiler from
11670	# explicitly linking system object files so we need to strip them
11671	# from the output so that they don't get included in the library
11672	# dependencies.
11673	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'
11674	;;
11675      *)
11676	if test "$GXX" = yes; then
11677	  if test $with_gnu_ld = no; then
11678	    case $host_cpu in
11679	    hppa*64*)
11680	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11681	      ;;
11682	    ia64*)
11683	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11684	      ;;
11685	    *)
11686	      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'
11687	      ;;
11688	    esac
11689	  fi
11690	else
11691	  # FIXME: insert proper C++ library support
11692	  ld_shlibs_CXX=no
11693	fi
11694	;;
11695    esac
11696    ;;
11697  interix[3-9]*)
11698    hardcode_direct_CXX=no
11699    hardcode_shlibpath_var_CXX=no
11700    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11701    export_dynamic_flag_spec_CXX='${wl}-E'
11702    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11703    # Instead, shared libraries are loaded at an image base (0x10000000 by
11704    # default) and relocated if they conflict, which is a slow very memory
11705    # consuming and fragmenting process.  To avoid this, we pick a random,
11706    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11707    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11708    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'
11709    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'
11710    ;;
11711  irix5* | irix6*)
11712    case $cc_basename in
11713      CC*)
11714	# SGI C++
11715	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'
11716
11717	# Archives containing C++ object files must be created using
11718	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11719	# necessary to make sure instantiated templates are included
11720	# in the archive.
11721	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11722	;;
11723      *)
11724	if test "$GXX" = yes; then
11725	  if test "$with_gnu_ld" = no; then
11726	    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'
11727	  else
11728	    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'
11729	  fi
11730	fi
11731	link_all_deplibs_CXX=yes
11732	;;
11733    esac
11734    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11735    hardcode_libdir_separator_CXX=:
11736    ;;
11737  linux* | k*bsd*-gnu)
11738    case $cc_basename in
11739      KCC*)
11740	# Kuck and Associates, Inc. (KAI) C++ Compiler
11741
11742	# KCC will only create a shared library if the output file
11743	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11744	# to its proper name (with version) after linking.
11745	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'
11746	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'
11747	# Commands to make compiler produce verbose output that lists
11748	# what "hidden" libraries, object files and flags are used when
11749	# linking a shared library.
11750	#
11751	# There doesn't appear to be a way to prevent this compiler from
11752	# explicitly linking system object files so we need to strip them
11753	# from the output so that they don't get included in the library
11754	# dependencies.
11755	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'
11756
11757	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11758	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11759
11760	# Archives containing C++ object files must be created using
11761	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11762	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11763	;;
11764      icpc*)
11765	# Intel C++
11766	with_gnu_ld=yes
11767	# version 8.0 and above of icpc choke on multiply defined symbols
11768	# if we add $predep_objects and $postdep_objects, however 7.1 and
11769	# earlier do not add the objects themselves.
11770	case `$CC -V 2>&1` in
11771	*"Version 7."*)
11772  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11773  	  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'
11774	  ;;
11775	*)  # Version 8.0 or newer
11776	  tmp_idyn=
11777	  case $host_cpu in
11778	    ia64*) tmp_idyn=' -i_dynamic';;
11779	  esac
11780  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11781	  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'
11782	  ;;
11783	esac
11784	archive_cmds_need_lc_CXX=no
11785	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11786	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11787	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11788	;;
11789      pgCC* | pgcpp*)
11790        # Portland Group C++ compiler
11791	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11792  	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'
11793
11794	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11795	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11796	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'
11797        ;;
11798      cxx*)
11799	# Compaq C++
11800	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11801	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'
11802
11803	runpath_var=LD_RUN_PATH
11804	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11805	hardcode_libdir_separator_CXX=:
11806
11807	# Commands to make compiler produce verbose output that lists
11808	# what "hidden" libraries, object files and flags are used when
11809	# linking a shared library.
11810	#
11811	# There doesn't appear to be a way to prevent this compiler from
11812	# explicitly linking system object files so we need to strip them
11813	# from the output so that they don't get included in the library
11814	# dependencies.
11815	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'
11816	;;
11817      *)
11818	case `$CC -V 2>&1 | sed 5q` in
11819	*Sun\ C*)
11820	  # Sun C++ 5.9
11821	  no_undefined_flag_CXX=' -zdefs'
11822	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11823	  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'
11824	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11825	  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'
11826
11827	  # Not sure whether something based on
11828	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11829	  # would be better.
11830	  output_verbose_link_cmd='echo'
11831
11832	  # Archives containing C++ object files must be created using
11833	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11834	  # necessary to make sure instantiated templates are included
11835	  # in the archive.
11836	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11837	  ;;
11838	esac
11839	;;
11840    esac
11841    ;;
11842  lynxos*)
11843    # FIXME: insert proper C++ library support
11844    ld_shlibs_CXX=no
11845    ;;
11846  m88k*)
11847    # FIXME: insert proper C++ library support
11848    ld_shlibs_CXX=no
11849    ;;
11850  mvs*)
11851    case $cc_basename in
11852      cxx*)
11853	# FIXME: insert proper C++ library support
11854	ld_shlibs_CXX=no
11855	;;
11856      *)
11857	# FIXME: insert proper C++ library support
11858	ld_shlibs_CXX=no
11859	;;
11860    esac
11861    ;;
11862  netbsd* | netbsdelf*-gnu)
11863    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11864      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11865      wlarc=
11866      hardcode_libdir_flag_spec_CXX='-R$libdir'
11867      hardcode_direct_CXX=yes
11868      hardcode_shlibpath_var_CXX=no
11869    fi
11870    # Workaround some broken pre-1.5 toolchains
11871    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11872    ;;
11873  openbsd2*)
11874    # C++ shared libraries are fairly broken
11875    ld_shlibs_CXX=no
11876    ;;
11877  openbsd*)
11878    if test -f /usr/libexec/ld.so; then
11879      hardcode_direct_CXX=yes
11880      hardcode_shlibpath_var_CXX=no
11881      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11882      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11883      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11884	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11885	export_dynamic_flag_spec_CXX='${wl}-E'
11886	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11887      fi
11888      output_verbose_link_cmd='echo'
11889    else
11890      ld_shlibs_CXX=no
11891    fi
11892    ;;
11893  osf3*)
11894    case $cc_basename in
11895      KCC*)
11896	# Kuck and Associates, Inc. (KAI) C++ Compiler
11897
11898	# KCC will only create a shared library if the output file
11899	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11900	# to its proper name (with version) after linking.
11901	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'
11902
11903	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11904	hardcode_libdir_separator_CXX=:
11905
11906	# Archives containing C++ object files must be created using
11907	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11908	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11909
11910	;;
11911      RCC*)
11912	# Rational C++ 2.4.1
11913	# FIXME: insert proper C++ library support
11914	ld_shlibs_CXX=no
11915	;;
11916      cxx*)
11917	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11918	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'
11919
11920	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11921	hardcode_libdir_separator_CXX=:
11922
11923	# Commands to make compiler produce verbose output that lists
11924	# what "hidden" libraries, object files and flags are used when
11925	# linking a shared library.
11926	#
11927	# There doesn't appear to be a way to prevent this compiler from
11928	# explicitly linking system object files so we need to strip them
11929	# from the output so that they don't get included in the library
11930	# dependencies.
11931	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'
11932	;;
11933      *)
11934	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11935	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11936	  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'
11937
11938	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11939	  hardcode_libdir_separator_CXX=:
11940
11941	  # Commands to make compiler produce verbose output that lists
11942	  # what "hidden" libraries, object files and flags are used when
11943	  # linking a shared library.
11944	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11945
11946	else
11947	  # FIXME: insert proper C++ library support
11948	  ld_shlibs_CXX=no
11949	fi
11950	;;
11951    esac
11952    ;;
11953  osf4* | osf5*)
11954    case $cc_basename in
11955      KCC*)
11956	# Kuck and Associates, Inc. (KAI) C++ Compiler
11957
11958	# KCC will only create a shared library if the output file
11959	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11960	# to its proper name (with version) after linking.
11961	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'
11962
11963	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11964	hardcode_libdir_separator_CXX=:
11965
11966	# Archives containing C++ object files must be created using
11967	# the KAI C++ compiler.
11968	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11969	;;
11970      RCC*)
11971	# Rational C++ 2.4.1
11972	# FIXME: insert proper C++ library support
11973	ld_shlibs_CXX=no
11974	;;
11975      cxx*)
11976	allow_undefined_flag_CXX=' -expect_unresolved \*'
11977	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'
11978	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11979	  echo "-hidden">> $lib.exp~
11980	  $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~
11981	  $rm $lib.exp'
11982
11983	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11984	hardcode_libdir_separator_CXX=:
11985
11986	# Commands to make compiler produce verbose output that lists
11987	# what "hidden" libraries, object files and flags are used when
11988	# linking a shared library.
11989	#
11990	# There doesn't appear to be a way to prevent this compiler from
11991	# explicitly linking system object files so we need to strip them
11992	# from the output so that they don't get included in the library
11993	# dependencies.
11994	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'
11995	;;
11996      *)
11997	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11998	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11999	 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'
12000
12001	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12002	  hardcode_libdir_separator_CXX=:
12003
12004	  # Commands to make compiler produce verbose output that lists
12005	  # what "hidden" libraries, object files and flags are used when
12006	  # linking a shared library.
12007	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12008
12009	else
12010	  # FIXME: insert proper C++ library support
12011	  ld_shlibs_CXX=no
12012	fi
12013	;;
12014    esac
12015    ;;
12016  psos*)
12017    # FIXME: insert proper C++ library support
12018    ld_shlibs_CXX=no
12019    ;;
12020  sunos4*)
12021    case $cc_basename in
12022      CC*)
12023	# Sun C++ 4.x
12024	# FIXME: insert proper C++ library support
12025	ld_shlibs_CXX=no
12026	;;
12027      lcc*)
12028	# Lucid
12029	# FIXME: insert proper C++ library support
12030	ld_shlibs_CXX=no
12031	;;
12032      *)
12033	# FIXME: insert proper C++ library support
12034	ld_shlibs_CXX=no
12035	;;
12036    esac
12037    ;;
12038  solaris*)
12039    case $cc_basename in
12040      CC*)
12041	# Sun C++ 4.2, 5.x and Centerline C++
12042        archive_cmds_need_lc_CXX=yes
12043	no_undefined_flag_CXX=' -zdefs'
12044	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12045	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12046	$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'
12047
12048	hardcode_libdir_flag_spec_CXX='-R$libdir'
12049	hardcode_shlibpath_var_CXX=no
12050	case $host_os in
12051	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12052	  *)
12053	    # The compiler driver will combine and reorder linker options,
12054	    # but understands `-z linker_flag'.
12055	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12056	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12057	    ;;
12058	esac
12059	link_all_deplibs_CXX=yes
12060
12061	output_verbose_link_cmd='echo'
12062
12063	# Archives containing C++ object files must be created using
12064	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12065	# necessary to make sure instantiated templates are included
12066	# in the archive.
12067	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12068	;;
12069      gcx*)
12070	# Green Hills C++ Compiler
12071	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12072
12073	# The C++ compiler must be used to create the archive.
12074	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12075	;;
12076      *)
12077	# GNU C++ compiler with Solaris linker
12078	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12079	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12080	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12081	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12082	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12083		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12084
12085	    # Commands to make compiler produce verbose output that lists
12086	    # what "hidden" libraries, object files and flags are used when
12087	    # linking a shared library.
12088	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12089	  else
12090	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12091	    # platform.
12092	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12093	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12094		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12095
12096	    # Commands to make compiler produce verbose output that lists
12097	    # what "hidden" libraries, object files and flags are used when
12098	    # linking a shared library.
12099	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12100	  fi
12101
12102	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12103	  case $host_os in
12104	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12105	  *)
12106	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12107	    ;;
12108	  esac
12109	fi
12110	;;
12111    esac
12112    ;;
12113  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12114    no_undefined_flag_CXX='${wl}-z,text'
12115    archive_cmds_need_lc_CXX=no
12116    hardcode_shlibpath_var_CXX=no
12117    runpath_var='LD_RUN_PATH'
12118
12119    case $cc_basename in
12120      CC*)
12121	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12122	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12123	;;
12124      *)
12125	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12126	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12127	;;
12128    esac
12129    ;;
12130  sysv5* | sco3.2v5* | sco5v6*)
12131    # Note: We can NOT use -z defs as we might desire, because we do not
12132    # link with -lc, and that would cause any symbols used from libc to
12133    # always be unresolved, which means just about no library would
12134    # ever link correctly.  If we're not using GNU ld we use -z text
12135    # though, which does catch some bad symbols but isn't as heavy-handed
12136    # as -z defs.
12137    # For security reasons, it is highly recommended that you always
12138    # use absolute paths for naming shared libraries, and exclude the
12139    # DT_RUNPATH tag from executables and libraries.  But doing so
12140    # requires that you compile everything twice, which is a pain.
12141    # So that behaviour is only enabled if SCOABSPATH is set to a
12142    # non-empty value in the environment.  Most likely only useful for
12143    # creating official distributions of packages.
12144    # This is a hack until libtool officially supports absolute path
12145    # names for shared libraries.
12146    no_undefined_flag_CXX='${wl}-z,text'
12147    allow_undefined_flag_CXX='${wl}-z,nodefs'
12148    archive_cmds_need_lc_CXX=no
12149    hardcode_shlibpath_var_CXX=no
12150    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12151    hardcode_libdir_separator_CXX=':'
12152    link_all_deplibs_CXX=yes
12153    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12154    runpath_var='LD_RUN_PATH'
12155
12156    case $cc_basename in
12157      CC*)
12158	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12159	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12160	;;
12161      *)
12162	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12163	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12164	;;
12165    esac
12166    ;;
12167  tandem*)
12168    case $cc_basename in
12169      NCC*)
12170	# NonStop-UX NCC 3.20
12171	# FIXME: insert proper C++ library support
12172	ld_shlibs_CXX=no
12173	;;
12174      *)
12175	# FIXME: insert proper C++ library support
12176	ld_shlibs_CXX=no
12177	;;
12178    esac
12179    ;;
12180  vxworks*)
12181    # FIXME: insert proper C++ library support
12182    ld_shlibs_CXX=no
12183    ;;
12184  *)
12185    # FIXME: insert proper C++ library support
12186    ld_shlibs_CXX=no
12187    ;;
12188esac
12189{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12190echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12191test "$ld_shlibs_CXX" = no && can_build_shared=no
12192
12193GCC_CXX="$GXX"
12194LD_CXX="$LD"
12195
12196cat > conftest.$ac_ext <<EOF
12197class Foo
12198{
12199public:
12200  Foo (void) { a = 0; }
12201private:
12202  int a;
12203};
12204EOF
12205
12206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12207  (eval $ac_compile) 2>&5
12208  ac_status=$?
12209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210  (exit $ac_status); }; then
12211  # Parse the compiler output and extract the necessary
12212  # objects, libraries and library flags.
12213
12214  # Sentinel used to keep track of whether or not we are before
12215  # the conftest object file.
12216  pre_test_object_deps_done=no
12217
12218  # The `*' in the case matches for architectures that use `case' in
12219  # $output_verbose_cmd can trigger glob expansion during the loop
12220  # eval without this substitution.
12221  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12222
12223  for p in `eval $output_verbose_link_cmd`; do
12224    case $p in
12225
12226    -L* | -R* | -l*)
12227       # Some compilers place space between "-{L,R}" and the path.
12228       # Remove the space.
12229       if test $p = "-L" \
12230	  || test $p = "-R"; then
12231	 prev=$p
12232	 continue
12233       else
12234	 prev=
12235       fi
12236
12237       if test "$pre_test_object_deps_done" = no; then
12238	 case $p in
12239	 -L* | -R*)
12240	   # Internal compiler library paths should come after those
12241	   # provided the user.  The postdeps already come after the
12242	   # user supplied libs so there is no need to process them.
12243	   if test -z "$compiler_lib_search_path_CXX"; then
12244	     compiler_lib_search_path_CXX="${prev}${p}"
12245	   else
12246	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12247	   fi
12248	   ;;
12249	 # The "-l" case would never come before the object being
12250	 # linked, so don't bother handling this case.
12251	 esac
12252       else
12253	 if test -z "$postdeps_CXX"; then
12254	   postdeps_CXX="${prev}${p}"
12255	 else
12256	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12257	 fi
12258       fi
12259       ;;
12260
12261    *.$objext)
12262       # This assumes that the test object file only shows up
12263       # once in the compiler output.
12264       if test "$p" = "conftest.$objext"; then
12265	 pre_test_object_deps_done=yes
12266	 continue
12267       fi
12268
12269       if test "$pre_test_object_deps_done" = no; then
12270	 if test -z "$predep_objects_CXX"; then
12271	   predep_objects_CXX="$p"
12272	 else
12273	   predep_objects_CXX="$predep_objects_CXX $p"
12274	 fi
12275       else
12276	 if test -z "$postdep_objects_CXX"; then
12277	   postdep_objects_CXX="$p"
12278	 else
12279	   postdep_objects_CXX="$postdep_objects_CXX $p"
12280	 fi
12281       fi
12282       ;;
12283
12284    *) ;; # Ignore the rest.
12285
12286    esac
12287  done
12288
12289  # Clean up.
12290  rm -f a.out a.exe
12291else
12292  echo "libtool.m4: error: problem compiling CXX test program"
12293fi
12294
12295$rm -f confest.$objext
12296
12297compiler_lib_search_dirs_CXX=
12298if test -n "$compiler_lib_search_path_CXX"; then
12299  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12300fi
12301
12302# PORTME: override above test on systems where it is broken
12303case $host_os in
12304interix[3-9]*)
12305  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12306  # hack all around it, let's just trust "g++" to DTRT.
12307  predep_objects_CXX=
12308  postdep_objects_CXX=
12309  postdeps_CXX=
12310  ;;
12311
12312linux*)
12313  case `$CC -V 2>&1 | sed 5q` in
12314  *Sun\ C*)
12315    # Sun C++ 5.9
12316    #
12317    # The more standards-conforming stlport4 library is
12318    # incompatible with the Cstd library. Avoid specifying
12319    # it if it's in CXXFLAGS. Ignore libCrun as
12320    # -library=stlport4 depends on it.
12321    case " $CXX $CXXFLAGS " in
12322    *" -library=stlport4 "*)
12323      solaris_use_stlport4=yes
12324      ;;
12325    esac
12326    if test "$solaris_use_stlport4" != yes; then
12327      postdeps_CXX='-library=Cstd -library=Crun'
12328    fi
12329    ;;
12330  esac
12331  ;;
12332
12333solaris*)
12334  case $cc_basename in
12335  CC*)
12336    # The more standards-conforming stlport4 library is
12337    # incompatible with the Cstd library. Avoid specifying
12338    # it if it's in CXXFLAGS. Ignore libCrun as
12339    # -library=stlport4 depends on it.
12340    case " $CXX $CXXFLAGS " in
12341    *" -library=stlport4 "*)
12342      solaris_use_stlport4=yes
12343      ;;
12344    esac
12345
12346    # Adding this requires a known-good setup of shared libraries for
12347    # Sun compiler versions before 5.6, else PIC objects from an old
12348    # archive will be linked into the output, leading to subtle bugs.
12349    if test "$solaris_use_stlport4" != yes; then
12350      postdeps_CXX='-library=Cstd -library=Crun'
12351    fi
12352    ;;
12353  esac
12354  ;;
12355esac
12356
12357case " $postdeps_CXX " in
12358*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12359esac
12360
12361lt_prog_compiler_wl_CXX=
12362lt_prog_compiler_pic_CXX=
12363lt_prog_compiler_static_CXX=
12364
12365{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12366echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12367
12368  # C++ specific cases for pic, static, wl, etc.
12369  if test "$GXX" = yes; then
12370    lt_prog_compiler_wl_CXX='-Wl,'
12371    lt_prog_compiler_static_CXX='-static'
12372
12373    case $host_os in
12374    aix*)
12375      # All AIX code is PIC.
12376      if test "$host_cpu" = ia64; then
12377	# AIX 5 now supports IA64 processor
12378	lt_prog_compiler_static_CXX='-Bstatic'
12379      fi
12380      ;;
12381    amigaos*)
12382      # FIXME: we need at least 68020 code to build shared libraries, but
12383      # adding the `-m68020' flag to GCC prevents building anything better,
12384      # like `-m68040'.
12385      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12386      ;;
12387    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12388      # PIC is the default for these OSes.
12389      ;;
12390    mingw* | cygwin* | os2* | pw32*)
12391      # This hack is so that the source file can tell whether it is being
12392      # built for inclusion in a dll (and should export symbols for example).
12393      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12394      # (--disable-auto-import) libraries
12395      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12396      ;;
12397    darwin* | rhapsody*)
12398      # PIC is the default on this platform
12399      # Common symbols not allowed in MH_DYLIB files
12400      lt_prog_compiler_pic_CXX='-fno-common'
12401      ;;
12402    *djgpp*)
12403      # DJGPP does not support shared libraries at all
12404      lt_prog_compiler_pic_CXX=
12405      ;;
12406    interix[3-9]*)
12407      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12408      # Instead, we relocate shared libraries at runtime.
12409      ;;
12410    sysv4*MP*)
12411      if test -d /usr/nec; then
12412	lt_prog_compiler_pic_CXX=-Kconform_pic
12413      fi
12414      ;;
12415    hpux*)
12416      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12417      # not for PA HP-UX.
12418      case $host_cpu in
12419      hppa*64*|ia64*)
12420	;;
12421      *)
12422	lt_prog_compiler_pic_CXX='-fPIC'
12423	;;
12424      esac
12425      ;;
12426    *)
12427      lt_prog_compiler_pic_CXX='-fPIC'
12428      ;;
12429    esac
12430  else
12431    case $host_os in
12432      aix[4-9]*)
12433	# All AIX code is PIC.
12434	if test "$host_cpu" = ia64; then
12435	  # AIX 5 now supports IA64 processor
12436	  lt_prog_compiler_static_CXX='-Bstatic'
12437	else
12438	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12439	fi
12440	;;
12441      chorus*)
12442	case $cc_basename in
12443	cxch68*)
12444	  # Green Hills C++ Compiler
12445	  # _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"
12446	  ;;
12447	esac
12448	;;
12449       darwin*)
12450         # PIC is the default on this platform
12451         # Common symbols not allowed in MH_DYLIB files
12452         case $cc_basename in
12453           xlc*)
12454           lt_prog_compiler_pic_CXX='-qnocommon'
12455           lt_prog_compiler_wl_CXX='-Wl,'
12456           ;;
12457         esac
12458       ;;
12459      dgux*)
12460	case $cc_basename in
12461	  ec++*)
12462	    lt_prog_compiler_pic_CXX='-KPIC'
12463	    ;;
12464	  ghcx*)
12465	    # Green Hills C++ Compiler
12466	    lt_prog_compiler_pic_CXX='-pic'
12467	    ;;
12468	  *)
12469	    ;;
12470	esac
12471	;;
12472      freebsd* | dragonfly*)
12473	# FreeBSD uses GNU C++
12474	;;
12475      hpux9* | hpux10* | hpux11*)
12476	case $cc_basename in
12477	  CC*)
12478	    lt_prog_compiler_wl_CXX='-Wl,'
12479	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12480	    if test "$host_cpu" != ia64; then
12481	      lt_prog_compiler_pic_CXX='+Z'
12482	    fi
12483	    ;;
12484	  aCC*)
12485	    lt_prog_compiler_wl_CXX='-Wl,'
12486	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12487	    case $host_cpu in
12488	    hppa*64*|ia64*)
12489	      # +Z the default
12490	      ;;
12491	    *)
12492	      lt_prog_compiler_pic_CXX='+Z'
12493	      ;;
12494	    esac
12495	    ;;
12496	  *)
12497	    ;;
12498	esac
12499	;;
12500      interix*)
12501	# This is c89, which is MS Visual C++ (no shared libs)
12502	# Anyone wants to do a port?
12503	;;
12504      irix5* | irix6* | nonstopux*)
12505	case $cc_basename in
12506	  CC*)
12507	    lt_prog_compiler_wl_CXX='-Wl,'
12508	    lt_prog_compiler_static_CXX='-non_shared'
12509	    # CC pic flag -KPIC is the default.
12510	    ;;
12511	  *)
12512	    ;;
12513	esac
12514	;;
12515      linux* | k*bsd*-gnu)
12516	case $cc_basename in
12517	  KCC*)
12518	    # KAI C++ Compiler
12519	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12520	    lt_prog_compiler_pic_CXX='-fPIC'
12521	    ;;
12522	  icpc* | ecpc*)
12523	    # Intel C++
12524	    lt_prog_compiler_wl_CXX='-Wl,'
12525	    lt_prog_compiler_pic_CXX='-KPIC'
12526	    lt_prog_compiler_static_CXX='-static'
12527	    ;;
12528	  pgCC* | pgcpp*)
12529	    # Portland Group C++ compiler.
12530	    lt_prog_compiler_wl_CXX='-Wl,'
12531	    lt_prog_compiler_pic_CXX='-fpic'
12532	    lt_prog_compiler_static_CXX='-Bstatic'
12533	    ;;
12534	  cxx*)
12535	    # Compaq C++
12536	    # Make sure the PIC flag is empty.  It appears that all Alpha
12537	    # Linux and Compaq Tru64 Unix objects are PIC.
12538	    lt_prog_compiler_pic_CXX=
12539	    lt_prog_compiler_static_CXX='-non_shared'
12540	    ;;
12541	  *)
12542	    case `$CC -V 2>&1 | sed 5q` in
12543	    *Sun\ C*)
12544	      # Sun C++ 5.9
12545	      lt_prog_compiler_pic_CXX='-KPIC'
12546	      lt_prog_compiler_static_CXX='-Bstatic'
12547	      lt_prog_compiler_wl_CXX='-Qoption ld '
12548	      ;;
12549	    esac
12550	    ;;
12551	esac
12552	;;
12553      lynxos*)
12554	;;
12555      m88k*)
12556	;;
12557      mvs*)
12558	case $cc_basename in
12559	  cxx*)
12560	    lt_prog_compiler_pic_CXX='-W c,exportall'
12561	    ;;
12562	  *)
12563	    ;;
12564	esac
12565	;;
12566      netbsd* | netbsdelf*-gnu)
12567	;;
12568      osf3* | osf4* | osf5*)
12569	case $cc_basename in
12570	  KCC*)
12571	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12572	    ;;
12573	  RCC*)
12574	    # Rational C++ 2.4.1
12575	    lt_prog_compiler_pic_CXX='-pic'
12576	    ;;
12577	  cxx*)
12578	    # Digital/Compaq C++
12579	    lt_prog_compiler_wl_CXX='-Wl,'
12580	    # Make sure the PIC flag is empty.  It appears that all Alpha
12581	    # Linux and Compaq Tru64 Unix objects are PIC.
12582	    lt_prog_compiler_pic_CXX=
12583	    lt_prog_compiler_static_CXX='-non_shared'
12584	    ;;
12585	  *)
12586	    ;;
12587	esac
12588	;;
12589      psos*)
12590	;;
12591      solaris*)
12592	case $cc_basename in
12593	  CC*)
12594	    # Sun C++ 4.2, 5.x and Centerline C++
12595	    lt_prog_compiler_pic_CXX='-KPIC'
12596	    lt_prog_compiler_static_CXX='-Bstatic'
12597	    lt_prog_compiler_wl_CXX='-Qoption ld '
12598	    ;;
12599	  gcx*)
12600	    # Green Hills C++ Compiler
12601	    lt_prog_compiler_pic_CXX='-PIC'
12602	    ;;
12603	  *)
12604	    ;;
12605	esac
12606	;;
12607      sunos4*)
12608	case $cc_basename in
12609	  CC*)
12610	    # Sun C++ 4.x
12611	    lt_prog_compiler_pic_CXX='-pic'
12612	    lt_prog_compiler_static_CXX='-Bstatic'
12613	    ;;
12614	  lcc*)
12615	    # Lucid
12616	    lt_prog_compiler_pic_CXX='-pic'
12617	    ;;
12618	  *)
12619	    ;;
12620	esac
12621	;;
12622      tandem*)
12623	case $cc_basename in
12624	  NCC*)
12625	    # NonStop-UX NCC 3.20
12626	    lt_prog_compiler_pic_CXX='-KPIC'
12627	    ;;
12628	  *)
12629	    ;;
12630	esac
12631	;;
12632      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12633	case $cc_basename in
12634	  CC*)
12635	    lt_prog_compiler_wl_CXX='-Wl,'
12636	    lt_prog_compiler_pic_CXX='-KPIC'
12637	    lt_prog_compiler_static_CXX='-Bstatic'
12638	    ;;
12639	esac
12640	;;
12641      vxworks*)
12642	;;
12643      *)
12644	lt_prog_compiler_can_build_shared_CXX=no
12645	;;
12646    esac
12647  fi
12648
12649{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12650echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12651
12652#
12653# Check to make sure the PIC flag actually works.
12654#
12655if test -n "$lt_prog_compiler_pic_CXX"; then
12656
12657{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12658echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12659if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12660  echo $ECHO_N "(cached) $ECHO_C" >&6
12661else
12662  lt_cv_prog_compiler_pic_works_CXX=no
12663  ac_outfile=conftest.$ac_objext
12664   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12665   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12666   # Insert the option either (1) after the last *FLAGS variable, or
12667   # (2) before a word containing "conftest.", or (3) at the end.
12668   # Note that $ac_compile itself does not contain backslashes and begins
12669   # with a dollar sign (not a hyphen), so the echo should work correctly.
12670   # The option is referenced via a variable to avoid confusing sed.
12671   lt_compile=`echo "$ac_compile" | $SED \
12672   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12673   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12674   -e 's:$: $lt_compiler_flag:'`
12675   (eval echo "\"\$as_me:12675: $lt_compile\"" >&5)
12676   (eval "$lt_compile" 2>conftest.err)
12677   ac_status=$?
12678   cat conftest.err >&5
12679   echo "$as_me:12679: \$? = $ac_status" >&5
12680   if (exit $ac_status) && test -s "$ac_outfile"; then
12681     # The compiler can only warn and ignore the option if not recognized
12682     # So say no if there are warnings other than the usual output.
12683     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12684     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12685     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12686       lt_cv_prog_compiler_pic_works_CXX=yes
12687     fi
12688   fi
12689   $rm conftest*
12690
12691fi
12692{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12693echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12694
12695if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12696    case $lt_prog_compiler_pic_CXX in
12697     "" | " "*) ;;
12698     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12699     esac
12700else
12701    lt_prog_compiler_pic_CXX=
12702     lt_prog_compiler_can_build_shared_CXX=no
12703fi
12704
12705fi
12706case $host_os in
12707  # For platforms which do not support PIC, -DPIC is meaningless:
12708  *djgpp*)
12709    lt_prog_compiler_pic_CXX=
12710    ;;
12711  *)
12712    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12713    ;;
12714esac
12715
12716#
12717# Check to make sure the static flag actually works.
12718#
12719wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12720{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12721echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12722if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12723  echo $ECHO_N "(cached) $ECHO_C" >&6
12724else
12725  lt_cv_prog_compiler_static_works_CXX=no
12726   save_LDFLAGS="$LDFLAGS"
12727   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12728   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12729   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12730     # The linker can only warn and ignore the option if not recognized
12731     # So say no if there are warnings
12732     if test -s conftest.err; then
12733       # Append any errors to the config.log.
12734       cat conftest.err 1>&5
12735       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12736       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12737       if diff conftest.exp conftest.er2 >/dev/null; then
12738         lt_cv_prog_compiler_static_works_CXX=yes
12739       fi
12740     else
12741       lt_cv_prog_compiler_static_works_CXX=yes
12742     fi
12743   fi
12744   $rm -r conftest*
12745   LDFLAGS="$save_LDFLAGS"
12746
12747fi
12748{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12749echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12750
12751if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12752    :
12753else
12754    lt_prog_compiler_static_CXX=
12755fi
12756
12757
12758{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12759echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12760if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12761  echo $ECHO_N "(cached) $ECHO_C" >&6
12762else
12763  lt_cv_prog_compiler_c_o_CXX=no
12764   $rm -r conftest 2>/dev/null
12765   mkdir conftest
12766   cd conftest
12767   mkdir out
12768   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12769
12770   lt_compiler_flag="-o out/conftest2.$ac_objext"
12771   # Insert the option either (1) after the last *FLAGS variable, or
12772   # (2) before a word containing "conftest.", or (3) at the end.
12773   # Note that $ac_compile itself does not contain backslashes and begins
12774   # with a dollar sign (not a hyphen), so the echo should work correctly.
12775   lt_compile=`echo "$ac_compile" | $SED \
12776   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12777   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12778   -e 's:$: $lt_compiler_flag:'`
12779   (eval echo "\"\$as_me:12779: $lt_compile\"" >&5)
12780   (eval "$lt_compile" 2>out/conftest.err)
12781   ac_status=$?
12782   cat out/conftest.err >&5
12783   echo "$as_me:12783: \$? = $ac_status" >&5
12784   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12785   then
12786     # The compiler can only warn and ignore the option if not recognized
12787     # So say no if there are warnings
12788     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12789     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12790     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12791       lt_cv_prog_compiler_c_o_CXX=yes
12792     fi
12793   fi
12794   chmod u+w . 2>&5
12795   $rm conftest*
12796   # SGI C++ compiler will create directory out/ii_files/ for
12797   # template instantiation
12798   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12799   $rm out/* && rmdir out
12800   cd ..
12801   rmdir conftest
12802   $rm conftest*
12803
12804fi
12805{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12806echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12807
12808
12809hard_links="nottested"
12810if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12811  # do not overwrite the value of need_locks provided by the user
12812  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12813echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12814  hard_links=yes
12815  $rm conftest*
12816  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12817  touch conftest.a
12818  ln conftest.a conftest.b 2>&5 || hard_links=no
12819  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12820  { echo "$as_me:$LINENO: result: $hard_links" >&5
12821echo "${ECHO_T}$hard_links" >&6; }
12822  if test "$hard_links" = no; then
12823    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12824echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12825    need_locks=warn
12826  fi
12827else
12828  need_locks=no
12829fi
12830
12831{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12832echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12833
12834  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12835  case $host_os in
12836  aix[4-9]*)
12837    # If we're using GNU nm, then we don't want the "-C" option.
12838    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12839    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12840      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'
12841    else
12842      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'
12843    fi
12844    ;;
12845  pw32*)
12846    export_symbols_cmds_CXX="$ltdll_cmds"
12847  ;;
12848  cygwin* | mingw*)
12849    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'
12850  ;;
12851  linux* | k*bsd*-gnu)
12852    link_all_deplibs_CXX=no
12853  ;;
12854  *)
12855    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12856  ;;
12857  esac
12858  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12859
12860{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12861echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12862test "$ld_shlibs_CXX" = no && can_build_shared=no
12863
12864#
12865# Do we need to explicitly link libc?
12866#
12867case "x$archive_cmds_need_lc_CXX" in
12868x|xyes)
12869  # Assume -lc should be added
12870  archive_cmds_need_lc_CXX=yes
12871
12872  if test "$enable_shared" = yes && test "$GCC" = yes; then
12873    case $archive_cmds_CXX in
12874    *'~'*)
12875      # FIXME: we may have to deal with multi-command sequences.
12876      ;;
12877    '$CC '*)
12878      # Test whether the compiler implicitly links with -lc since on some
12879      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12880      # to ld, don't add -lc before -lgcc.
12881      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12882echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12883      $rm conftest*
12884      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12885
12886      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12887  (eval $ac_compile) 2>&5
12888  ac_status=$?
12889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890  (exit $ac_status); } 2>conftest.err; then
12891        soname=conftest
12892        lib=conftest
12893        libobjs=conftest.$ac_objext
12894        deplibs=
12895        wl=$lt_prog_compiler_wl_CXX
12896	pic_flag=$lt_prog_compiler_pic_CXX
12897        compiler_flags=-v
12898        linker_flags=-v
12899        verstring=
12900        output_objdir=.
12901        libname=conftest
12902        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12903        allow_undefined_flag_CXX=
12904        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12905  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12906  ac_status=$?
12907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908  (exit $ac_status); }
12909        then
12910	  archive_cmds_need_lc_CXX=no
12911        else
12912	  archive_cmds_need_lc_CXX=yes
12913        fi
12914        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12915      else
12916        cat conftest.err 1>&5
12917      fi
12918      $rm conftest*
12919      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12920echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12921      ;;
12922    esac
12923  fi
12924  ;;
12925esac
12926
12927{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12928echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12929library_names_spec=
12930libname_spec='lib$name'
12931soname_spec=
12932shrext_cmds=".so"
12933postinstall_cmds=
12934postuninstall_cmds=
12935finish_cmds=
12936finish_eval=
12937shlibpath_var=
12938shlibpath_overrides_runpath=unknown
12939version_type=none
12940dynamic_linker="$host_os ld.so"
12941sys_lib_dlsearch_path_spec="/lib /usr/lib"
12942
12943need_lib_prefix=unknown
12944hardcode_into_libs=no
12945
12946# when you set need_version to no, make sure it does not cause -set_version
12947# flags to be left without arguments
12948need_version=unknown
12949
12950case $host_os in
12951aix3*)
12952  version_type=linux
12953  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12954  shlibpath_var=LIBPATH
12955
12956  # AIX 3 has no versioning support, so we append a major version to the name.
12957  soname_spec='${libname}${release}${shared_ext}$major'
12958  ;;
12959
12960aix[4-9]*)
12961  version_type=linux
12962  need_lib_prefix=no
12963  need_version=no
12964  hardcode_into_libs=yes
12965  if test "$host_cpu" = ia64; then
12966    # AIX 5 supports IA64
12967    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12968    shlibpath_var=LD_LIBRARY_PATH
12969  else
12970    # With GCC up to 2.95.x, collect2 would create an import file
12971    # for dependence libraries.  The import file would start with
12972    # the line `#! .'.  This would cause the generated library to
12973    # depend on `.', always an invalid library.  This was fixed in
12974    # development snapshots of GCC prior to 3.0.
12975    case $host_os in
12976      aix4 | aix4.[01] | aix4.[01].*)
12977      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12978	   echo ' yes '
12979	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12980	:
12981      else
12982	can_build_shared=no
12983      fi
12984      ;;
12985    esac
12986    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12987    # soname into executable. Probably we can add versioning support to
12988    # collect2, so additional links can be useful in future.
12989    if test "$aix_use_runtimelinking" = yes; then
12990      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12991      # instead of lib<name>.a to let people know that these are not
12992      # typical AIX shared libraries.
12993      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12994    else
12995      # We preserve .a as extension for shared libraries through AIX4.2
12996      # and later when we are not doing run time linking.
12997      library_names_spec='${libname}${release}.a $libname.a'
12998      soname_spec='${libname}${release}${shared_ext}$major'
12999    fi
13000    shlibpath_var=LIBPATH
13001  fi
13002  ;;
13003
13004amigaos*)
13005  library_names_spec='$libname.ixlibrary $libname.a'
13006  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13007  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'
13008  ;;
13009
13010beos*)
13011  library_names_spec='${libname}${shared_ext}'
13012  dynamic_linker="$host_os ld.so"
13013  shlibpath_var=LIBRARY_PATH
13014  ;;
13015
13016bsdi[45]*)
13017  version_type=linux
13018  need_version=no
13019  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13020  soname_spec='${libname}${release}${shared_ext}$major'
13021  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13022  shlibpath_var=LD_LIBRARY_PATH
13023  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13024  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13025  # the default ld.so.conf also contains /usr/contrib/lib and
13026  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13027  # libtool to hard-code these into programs
13028  ;;
13029
13030cygwin* | mingw* | pw32*)
13031  version_type=windows
13032  shrext_cmds=".dll"
13033  need_version=no
13034  need_lib_prefix=no
13035
13036  case $GCC,$host_os in
13037  yes,cygwin* | yes,mingw* | yes,pw32*)
13038    library_names_spec='$libname.dll.a'
13039    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13040    postinstall_cmds='base_file=`basename \${file}`~
13041      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13042      dldir=$destdir/`dirname \$dlpath`~
13043      test -d \$dldir || mkdir -p \$dldir~
13044      $install_prog $dir/$dlname \$dldir/$dlname~
13045      chmod a+x \$dldir/$dlname'
13046    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13047      dlpath=$dir/\$dldll~
13048       $rm \$dlpath'
13049    shlibpath_overrides_runpath=yes
13050
13051    case $host_os in
13052    cygwin*)
13053      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13054      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13055      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13056      ;;
13057    mingw*)
13058      # MinGW DLLs use traditional 'lib' prefix
13059      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13060      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13061      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13062        # It is most probably a Windows format PATH printed by
13063        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13064        # path with ; separators, and with drive letters. We can handle the
13065        # drive letters (cygwin fileutils understands them), so leave them,
13066        # especially as we might pass files found there to a mingw objdump,
13067        # which wouldn't understand a cygwinified path. Ahh.
13068        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13069      else
13070        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13071      fi
13072      ;;
13073    pw32*)
13074      # pw32 DLLs use 'pw' prefix rather than 'lib'
13075      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13076      ;;
13077    esac
13078    ;;
13079
13080  *)
13081    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13082    ;;
13083  esac
13084  dynamic_linker='Win32 ld.exe'
13085  # FIXME: first we should search . and the directory the executable is in
13086  shlibpath_var=PATH
13087  ;;
13088
13089darwin* | rhapsody*)
13090  dynamic_linker="$host_os dyld"
13091  version_type=darwin
13092  need_lib_prefix=no
13093  need_version=no
13094  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13095  soname_spec='${libname}${release}${major}$shared_ext'
13096  shlibpath_overrides_runpath=yes
13097  shlibpath_var=DYLD_LIBRARY_PATH
13098  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13099
13100  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13101  ;;
13102
13103dgux*)
13104  version_type=linux
13105  need_lib_prefix=no
13106  need_version=no
13107  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13108  soname_spec='${libname}${release}${shared_ext}$major'
13109  shlibpath_var=LD_LIBRARY_PATH
13110  ;;
13111
13112freebsd1*)
13113  dynamic_linker=no
13114  ;;
13115
13116freebsd* | dragonfly*)
13117  # DragonFly does not have aout.  When/if they implement a new
13118  # versioning mechanism, adjust this.
13119  if test -x /usr/bin/objformat; then
13120    objformat=`/usr/bin/objformat`
13121  else
13122    case $host_os in
13123    freebsd[123]*) objformat=aout ;;
13124    *) objformat=elf ;;
13125    esac
13126  fi
13127  version_type=freebsd-$objformat
13128  case $version_type in
13129    freebsd-elf*)
13130      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13131      need_version=no
13132      need_lib_prefix=no
13133      ;;
13134    freebsd-*)
13135      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13136      need_version=yes
13137      ;;
13138  esac
13139  shlibpath_var=LD_LIBRARY_PATH
13140  case $host_os in
13141  freebsd2*)
13142    shlibpath_overrides_runpath=yes
13143    ;;
13144  freebsd3.[01]* | freebsdelf3.[01]*)
13145    shlibpath_overrides_runpath=yes
13146    hardcode_into_libs=yes
13147    ;;
13148  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13149  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13150    shlibpath_overrides_runpath=no
13151    hardcode_into_libs=yes
13152    ;;
13153  *) # from 4.6 on, and DragonFly
13154    shlibpath_overrides_runpath=yes
13155    hardcode_into_libs=yes
13156    ;;
13157  esac
13158  ;;
13159
13160gnu*)
13161  version_type=linux
13162  need_lib_prefix=no
13163  need_version=no
13164  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13165  soname_spec='${libname}${release}${shared_ext}$major'
13166  shlibpath_var=LD_LIBRARY_PATH
13167  hardcode_into_libs=yes
13168  ;;
13169
13170hpux9* | hpux10* | hpux11*)
13171  # Give a soname corresponding to the major version so that dld.sl refuses to
13172  # link against other versions.
13173  version_type=sunos
13174  need_lib_prefix=no
13175  need_version=no
13176  case $host_cpu in
13177  ia64*)
13178    shrext_cmds='.so'
13179    hardcode_into_libs=yes
13180    dynamic_linker="$host_os dld.so"
13181    shlibpath_var=LD_LIBRARY_PATH
13182    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13183    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13184    soname_spec='${libname}${release}${shared_ext}$major'
13185    if test "X$HPUX_IA64_MODE" = X32; then
13186      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13187    else
13188      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13189    fi
13190    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13191    ;;
13192   hppa*64*)
13193     shrext_cmds='.sl'
13194     hardcode_into_libs=yes
13195     dynamic_linker="$host_os dld.sl"
13196     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13197     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13198     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13199     soname_spec='${libname}${release}${shared_ext}$major'
13200     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13201     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13202     ;;
13203   *)
13204    shrext_cmds='.sl'
13205    dynamic_linker="$host_os dld.sl"
13206    shlibpath_var=SHLIB_PATH
13207    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13208    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13209    soname_spec='${libname}${release}${shared_ext}$major'
13210    ;;
13211  esac
13212  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13213  postinstall_cmds='chmod 555 $lib'
13214  ;;
13215
13216interix[3-9]*)
13217  version_type=linux
13218  need_lib_prefix=no
13219  need_version=no
13220  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13221  soname_spec='${libname}${release}${shared_ext}$major'
13222  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13223  shlibpath_var=LD_LIBRARY_PATH
13224  shlibpath_overrides_runpath=no
13225  hardcode_into_libs=yes
13226  ;;
13227
13228irix5* | irix6* | nonstopux*)
13229  case $host_os in
13230    nonstopux*) version_type=nonstopux ;;
13231    *)
13232	if test "$lt_cv_prog_gnu_ld" = yes; then
13233		version_type=linux
13234	else
13235		version_type=irix
13236	fi ;;
13237  esac
13238  need_lib_prefix=no
13239  need_version=no
13240  soname_spec='${libname}${release}${shared_ext}$major'
13241  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13242  case $host_os in
13243  irix5* | nonstopux*)
13244    libsuff= shlibsuff=
13245    ;;
13246  *)
13247    case $LD in # libtool.m4 will add one of these switches to LD
13248    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13249      libsuff= shlibsuff= libmagic=32-bit;;
13250    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13251      libsuff=32 shlibsuff=N32 libmagic=N32;;
13252    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13253      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13254    *) libsuff= shlibsuff= libmagic=never-match;;
13255    esac
13256    ;;
13257  esac
13258  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13259  shlibpath_overrides_runpath=no
13260  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13261  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13262  hardcode_into_libs=yes
13263  ;;
13264
13265# No shared lib support for Linux oldld, aout, or coff.
13266linux*oldld* | linux*aout* | linux*coff*)
13267  dynamic_linker=no
13268  ;;
13269
13270# This must be Linux ELF.
13271linux* | k*bsd*-gnu)
13272  version_type=linux
13273  need_lib_prefix=no
13274  need_version=no
13275  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13276  soname_spec='${libname}${release}${shared_ext}$major'
13277  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13278  shlibpath_var=LD_LIBRARY_PATH
13279  shlibpath_overrides_runpath=no
13280  # This implies no fast_install, which is unacceptable.
13281  # Some rework will be needed to allow for fast_install
13282  # before this can be enabled.
13283  hardcode_into_libs=yes
13284
13285  # Append ld.so.conf contents to the search path
13286  if test -f /etc/ld.so.conf; then
13287    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13288    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13289  fi
13290
13291  # We used to test for /lib/ld.so.1 and disable shared libraries on
13292  # powerpc, because MkLinux only supported shared libraries with the
13293  # GNU dynamic linker.  Since this was broken with cross compilers,
13294  # most powerpc-linux boxes support dynamic linking these days and
13295  # people can always --disable-shared, the test was removed, and we
13296  # assume the GNU/Linux dynamic linker is in use.
13297  dynamic_linker='GNU/Linux ld.so'
13298  ;;
13299
13300netbsdelf*-gnu)
13301  version_type=linux
13302  need_lib_prefix=no
13303  need_version=no
13304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13305  soname_spec='${libname}${release}${shared_ext}$major'
13306  shlibpath_var=LD_LIBRARY_PATH
13307  shlibpath_overrides_runpath=no
13308  hardcode_into_libs=yes
13309  dynamic_linker='NetBSD ld.elf_so'
13310  ;;
13311
13312netbsd*)
13313  version_type=sunos
13314  need_lib_prefix=no
13315  need_version=no
13316  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13317    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13318    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13319    dynamic_linker='NetBSD (a.out) ld.so'
13320  else
13321    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13322    soname_spec='${libname}${release}${shared_ext}$major'
13323    dynamic_linker='NetBSD ld.elf_so'
13324  fi
13325  shlibpath_var=LD_LIBRARY_PATH
13326  shlibpath_overrides_runpath=yes
13327  hardcode_into_libs=yes
13328  ;;
13329
13330newsos6)
13331  version_type=linux
13332  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13333  shlibpath_var=LD_LIBRARY_PATH
13334  shlibpath_overrides_runpath=yes
13335  ;;
13336
13337nto-qnx*)
13338  version_type=linux
13339  need_lib_prefix=no
13340  need_version=no
13341  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13342  soname_spec='${libname}${release}${shared_ext}$major'
13343  shlibpath_var=LD_LIBRARY_PATH
13344  shlibpath_overrides_runpath=yes
13345  ;;
13346
13347openbsd*)
13348  version_type=sunos
13349  sys_lib_dlsearch_path_spec="/usr/lib"
13350  need_lib_prefix=no
13351  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13352  case $host_os in
13353    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13354    *)                         need_version=no  ;;
13355  esac
13356  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13357  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13358  shlibpath_var=LD_LIBRARY_PATH
13359  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13360    case $host_os in
13361      openbsd2.[89] | openbsd2.[89].*)
13362	shlibpath_overrides_runpath=no
13363	;;
13364      *)
13365	shlibpath_overrides_runpath=yes
13366	;;
13367      esac
13368  else
13369    shlibpath_overrides_runpath=yes
13370  fi
13371  ;;
13372
13373os2*)
13374  libname_spec='$name'
13375  shrext_cmds=".dll"
13376  need_lib_prefix=no
13377  library_names_spec='$libname${shared_ext} $libname.a'
13378  dynamic_linker='OS/2 ld.exe'
13379  shlibpath_var=LIBPATH
13380  ;;
13381
13382osf3* | osf4* | osf5*)
13383  version_type=osf
13384  need_lib_prefix=no
13385  need_version=no
13386  soname_spec='${libname}${release}${shared_ext}$major'
13387  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13388  shlibpath_var=LD_LIBRARY_PATH
13389  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13390  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13391  ;;
13392
13393rdos*)
13394  dynamic_linker=no
13395  ;;
13396
13397solaris*)
13398  version_type=linux
13399  need_lib_prefix=no
13400  need_version=no
13401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13402  soname_spec='${libname}${release}${shared_ext}$major'
13403  shlibpath_var=LD_LIBRARY_PATH
13404  shlibpath_overrides_runpath=yes
13405  hardcode_into_libs=yes
13406  # ldd complains unless libraries are executable
13407  postinstall_cmds='chmod +x $lib'
13408  ;;
13409
13410sunos4*)
13411  version_type=sunos
13412  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13413  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13414  shlibpath_var=LD_LIBRARY_PATH
13415  shlibpath_overrides_runpath=yes
13416  if test "$with_gnu_ld" = yes; then
13417    need_lib_prefix=no
13418  fi
13419  need_version=yes
13420  ;;
13421
13422sysv4 | sysv4.3*)
13423  version_type=linux
13424  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13425  soname_spec='${libname}${release}${shared_ext}$major'
13426  shlibpath_var=LD_LIBRARY_PATH
13427  case $host_vendor in
13428    sni)
13429      shlibpath_overrides_runpath=no
13430      need_lib_prefix=no
13431      export_dynamic_flag_spec='${wl}-Blargedynsym'
13432      runpath_var=LD_RUN_PATH
13433      ;;
13434    siemens)
13435      need_lib_prefix=no
13436      ;;
13437    motorola)
13438      need_lib_prefix=no
13439      need_version=no
13440      shlibpath_overrides_runpath=no
13441      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13442      ;;
13443  esac
13444  ;;
13445
13446sysv4*MP*)
13447  if test -d /usr/nec ;then
13448    version_type=linux
13449    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13450    soname_spec='$libname${shared_ext}.$major'
13451    shlibpath_var=LD_LIBRARY_PATH
13452  fi
13453  ;;
13454
13455sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13456  version_type=freebsd-elf
13457  need_lib_prefix=no
13458  need_version=no
13459  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13460  soname_spec='${libname}${release}${shared_ext}$major'
13461  shlibpath_var=LD_LIBRARY_PATH
13462  hardcode_into_libs=yes
13463  if test "$with_gnu_ld" = yes; then
13464    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13465    shlibpath_overrides_runpath=no
13466  else
13467    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13468    shlibpath_overrides_runpath=yes
13469    case $host_os in
13470      sco3.2v5*)
13471        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13472	;;
13473    esac
13474  fi
13475  sys_lib_dlsearch_path_spec='/usr/lib'
13476  ;;
13477
13478uts4*)
13479  version_type=linux
13480  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13481  soname_spec='${libname}${release}${shared_ext}$major'
13482  shlibpath_var=LD_LIBRARY_PATH
13483  ;;
13484
13485*)
13486  dynamic_linker=no
13487  ;;
13488esac
13489{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13490echo "${ECHO_T}$dynamic_linker" >&6; }
13491test "$dynamic_linker" = no && can_build_shared=no
13492
13493if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13494  echo $ECHO_N "(cached) $ECHO_C" >&6
13495else
13496  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13497fi
13498
13499sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13500if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13501  echo $ECHO_N "(cached) $ECHO_C" >&6
13502else
13503  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13504fi
13505
13506sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13507
13508variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13509if test "$GCC" = yes; then
13510  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13511fi
13512
13513{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13514echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13515hardcode_action_CXX=
13516if test -n "$hardcode_libdir_flag_spec_CXX" || \
13517   test -n "$runpath_var_CXX" || \
13518   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13519
13520  # We can hardcode non-existant directories.
13521  if test "$hardcode_direct_CXX" != no &&
13522     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13523     # have to relink, otherwise we might link with an installed library
13524     # when we should be linking with a yet-to-be-installed one
13525     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13526     test "$hardcode_minus_L_CXX" != no; then
13527    # Linking always hardcodes the temporary library directory.
13528    hardcode_action_CXX=relink
13529  else
13530    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13531    hardcode_action_CXX=immediate
13532  fi
13533else
13534  # We cannot hardcode anything, or else we can only hardcode existing
13535  # directories.
13536  hardcode_action_CXX=unsupported
13537fi
13538{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13539echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13540
13541if test "$hardcode_action_CXX" = relink; then
13542  # Fast installation is not supported
13543  enable_fast_install=no
13544elif test "$shlibpath_overrides_runpath" = yes ||
13545     test "$enable_shared" = no; then
13546  # Fast installation is not necessary
13547  enable_fast_install=needless
13548fi
13549
13550
13551# The else clause should only fire when bootstrapping the
13552# libtool distribution, otherwise you forgot to ship ltmain.sh
13553# with your package, and you will get complaints that there are
13554# no rules to generate ltmain.sh.
13555if test -f "$ltmain"; then
13556  # See if we are running on zsh, and set the options which allow our commands through
13557  # without removal of \ escapes.
13558  if test -n "${ZSH_VERSION+set}" ; then
13559    setopt NO_GLOB_SUBST
13560  fi
13561  # Now quote all the things that may contain metacharacters while being
13562  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13563  # variables and quote the copies for generation of the libtool script.
13564  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13565    SED SHELL STRIP \
13566    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13567    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13568    deplibs_check_method reload_flag reload_cmds need_locks \
13569    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13570    lt_cv_sys_global_symbol_to_c_name_address \
13571    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13572    old_postinstall_cmds old_postuninstall_cmds \
13573    compiler_CXX \
13574    CC_CXX \
13575    LD_CXX \
13576    lt_prog_compiler_wl_CXX \
13577    lt_prog_compiler_pic_CXX \
13578    lt_prog_compiler_static_CXX \
13579    lt_prog_compiler_no_builtin_flag_CXX \
13580    export_dynamic_flag_spec_CXX \
13581    thread_safe_flag_spec_CXX \
13582    whole_archive_flag_spec_CXX \
13583    enable_shared_with_static_runtimes_CXX \
13584    old_archive_cmds_CXX \
13585    old_archive_from_new_cmds_CXX \
13586    predep_objects_CXX \
13587    postdep_objects_CXX \
13588    predeps_CXX \
13589    postdeps_CXX \
13590    compiler_lib_search_path_CXX \
13591    compiler_lib_search_dirs_CXX \
13592    archive_cmds_CXX \
13593    archive_expsym_cmds_CXX \
13594    postinstall_cmds_CXX \
13595    postuninstall_cmds_CXX \
13596    old_archive_from_expsyms_cmds_CXX \
13597    allow_undefined_flag_CXX \
13598    no_undefined_flag_CXX \
13599    export_symbols_cmds_CXX \
13600    hardcode_libdir_flag_spec_CXX \
13601    hardcode_libdir_flag_spec_ld_CXX \
13602    hardcode_libdir_separator_CXX \
13603    hardcode_automatic_CXX \
13604    module_cmds_CXX \
13605    module_expsym_cmds_CXX \
13606    lt_cv_prog_compiler_c_o_CXX \
13607    fix_srcfile_path_CXX \
13608    exclude_expsyms_CXX \
13609    include_expsyms_CXX; do
13610
13611    case $var in
13612    old_archive_cmds_CXX | \
13613    old_archive_from_new_cmds_CXX | \
13614    archive_cmds_CXX | \
13615    archive_expsym_cmds_CXX | \
13616    module_cmds_CXX | \
13617    module_expsym_cmds_CXX | \
13618    old_archive_from_expsyms_cmds_CXX | \
13619    export_symbols_cmds_CXX | \
13620    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13621    postinstall_cmds | postuninstall_cmds | \
13622    old_postinstall_cmds | old_postuninstall_cmds | \
13623    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13624      # Double-quote double-evaled strings.
13625      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13626      ;;
13627    *)
13628      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13629      ;;
13630    esac
13631  done
13632
13633  case $lt_echo in
13634  *'\$0 --fallback-echo"')
13635    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13636    ;;
13637  esac
13638
13639cfgfile="$ofile"
13640
13641  cat <<__EOF__ >> "$cfgfile"
13642# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13643
13644# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13645
13646# Shell to use when invoking shell scripts.
13647SHELL=$lt_SHELL
13648
13649# Whether or not to build shared libraries.
13650build_libtool_libs=$enable_shared
13651
13652# Whether or not to build static libraries.
13653build_old_libs=$enable_static
13654
13655# Whether or not to add -lc for building shared libraries.
13656build_libtool_need_lc=$archive_cmds_need_lc_CXX
13657
13658# Whether or not to disallow shared libs when runtime libs are static
13659allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13660
13661# Whether or not to optimize for fast installation.
13662fast_install=$enable_fast_install
13663
13664# The host system.
13665host_alias=$host_alias
13666host=$host
13667host_os=$host_os
13668
13669# The build system.
13670build_alias=$build_alias
13671build=$build
13672build_os=$build_os
13673
13674# An echo program that does not interpret backslashes.
13675echo=$lt_echo
13676
13677# The archiver.
13678AR=$lt_AR
13679AR_FLAGS=$lt_AR_FLAGS
13680
13681# A C compiler.
13682LTCC=$lt_LTCC
13683
13684# LTCC compiler flags.
13685LTCFLAGS=$lt_LTCFLAGS
13686
13687# A language-specific compiler.
13688CC=$lt_compiler_CXX
13689
13690# Is the compiler the GNU C compiler?
13691with_gcc=$GCC_CXX
13692
13693# An ERE matcher.
13694EGREP=$lt_EGREP
13695
13696# The linker used to build libraries.
13697LD=$lt_LD_CXX
13698
13699# Whether we need hard or soft links.
13700LN_S=$lt_LN_S
13701
13702# A BSD-compatible nm program.
13703NM=$lt_NM
13704
13705# A symbol stripping program
13706STRIP=$lt_STRIP
13707
13708# Used to examine libraries when file_magic_cmd begins "file"
13709MAGIC_CMD=$MAGIC_CMD
13710
13711# Used on cygwin: DLL creation program.
13712DLLTOOL="$DLLTOOL"
13713
13714# Used on cygwin: object dumper.
13715OBJDUMP="$OBJDUMP"
13716
13717# Used on cygwin: assembler.
13718AS="$AS"
13719
13720# The name of the directory that contains temporary libtool files.
13721objdir=$objdir
13722
13723# How to create reloadable object files.
13724reload_flag=$lt_reload_flag
13725reload_cmds=$lt_reload_cmds
13726
13727# How to pass a linker flag through the compiler.
13728wl=$lt_lt_prog_compiler_wl_CXX
13729
13730# Object file suffix (normally "o").
13731objext="$ac_objext"
13732
13733# Old archive suffix (normally "a").
13734libext="$libext"
13735
13736# Shared library suffix (normally ".so").
13737shrext_cmds='$shrext_cmds'
13738
13739# Executable file suffix (normally "").
13740exeext="$exeext"
13741
13742# Additional compiler flags for building library objects.
13743pic_flag=$lt_lt_prog_compiler_pic_CXX
13744pic_mode=$pic_mode
13745
13746# What is the maximum length of a command?
13747max_cmd_len=$lt_cv_sys_max_cmd_len
13748
13749# Does compiler simultaneously support -c and -o options?
13750compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13751
13752# Must we lock files when doing compilation?
13753need_locks=$lt_need_locks
13754
13755# Do we need the lib prefix for modules?
13756need_lib_prefix=$need_lib_prefix
13757
13758# Do we need a version for libraries?
13759need_version=$need_version
13760
13761# Whether dlopen is supported.
13762dlopen_support=$enable_dlopen
13763
13764# Whether dlopen of programs is supported.
13765dlopen_self=$enable_dlopen_self
13766
13767# Whether dlopen of statically linked programs is supported.
13768dlopen_self_static=$enable_dlopen_self_static
13769
13770# Compiler flag to prevent dynamic linking.
13771link_static_flag=$lt_lt_prog_compiler_static_CXX
13772
13773# Compiler flag to turn off builtin functions.
13774no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13775
13776# Compiler flag to allow reflexive dlopens.
13777export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13778
13779# Compiler flag to generate shared objects directly from archives.
13780whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13781
13782# Compiler flag to generate thread-safe objects.
13783thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13784
13785# Library versioning type.
13786version_type=$version_type
13787
13788# Format of library name prefix.
13789libname_spec=$lt_libname_spec
13790
13791# List of archive names.  First name is the real one, the rest are links.
13792# The last name is the one that the linker finds with -lNAME.
13793library_names_spec=$lt_library_names_spec
13794
13795# The coded name of the library, if different from the real name.
13796soname_spec=$lt_soname_spec
13797
13798# Commands used to build and install an old-style archive.
13799RANLIB=$lt_RANLIB
13800old_archive_cmds=$lt_old_archive_cmds_CXX
13801old_postinstall_cmds=$lt_old_postinstall_cmds
13802old_postuninstall_cmds=$lt_old_postuninstall_cmds
13803
13804# Create an old-style archive from a shared archive.
13805old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13806
13807# Create a temporary old-style archive to link instead of a shared archive.
13808old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13809
13810# Commands used to build and install a shared archive.
13811archive_cmds=$lt_archive_cmds_CXX
13812archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13813postinstall_cmds=$lt_postinstall_cmds
13814postuninstall_cmds=$lt_postuninstall_cmds
13815
13816# Commands used to build a loadable module (assumed same as above if empty)
13817module_cmds=$lt_module_cmds_CXX
13818module_expsym_cmds=$lt_module_expsym_cmds_CXX
13819
13820# Commands to strip libraries.
13821old_striplib=$lt_old_striplib
13822striplib=$lt_striplib
13823
13824# Dependencies to place before the objects being linked to create a
13825# shared library.
13826predep_objects=$lt_predep_objects_CXX
13827
13828# Dependencies to place after the objects being linked to create a
13829# shared library.
13830postdep_objects=$lt_postdep_objects_CXX
13831
13832# Dependencies to place before the objects being linked to create a
13833# shared library.
13834predeps=$lt_predeps_CXX
13835
13836# Dependencies to place after the objects being linked to create a
13837# shared library.
13838postdeps=$lt_postdeps_CXX
13839
13840# The directories searched by this compiler when creating a shared
13841# library
13842compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13843
13844# The library search path used internally by the compiler when linking
13845# a shared library.
13846compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13847
13848# Method to check whether dependent libraries are shared objects.
13849deplibs_check_method=$lt_deplibs_check_method
13850
13851# Command to use when deplibs_check_method == file_magic.
13852file_magic_cmd=$lt_file_magic_cmd
13853
13854# Flag that allows shared libraries with undefined symbols to be built.
13855allow_undefined_flag=$lt_allow_undefined_flag_CXX
13856
13857# Flag that forces no undefined symbols.
13858no_undefined_flag=$lt_no_undefined_flag_CXX
13859
13860# Commands used to finish a libtool library installation in a directory.
13861finish_cmds=$lt_finish_cmds
13862
13863# Same as above, but a single script fragment to be evaled but not shown.
13864finish_eval=$lt_finish_eval
13865
13866# Take the output of nm and produce a listing of raw symbols and C names.
13867global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13868
13869# Transform the output of nm in a proper C declaration
13870global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13871
13872# Transform the output of nm in a C name address pair
13873global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13874
13875# This is the shared library runtime path variable.
13876runpath_var=$runpath_var
13877
13878# This is the shared library path variable.
13879shlibpath_var=$shlibpath_var
13880
13881# Is shlibpath searched before the hard-coded library search path?
13882shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13883
13884# How to hardcode a shared library path into an executable.
13885hardcode_action=$hardcode_action_CXX
13886
13887# Whether we should hardcode library paths into libraries.
13888hardcode_into_libs=$hardcode_into_libs
13889
13890# Flag to hardcode \$libdir into a binary during linking.
13891# This must work even if \$libdir does not exist.
13892hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13893
13894# If ld is used when linking, flag to hardcode \$libdir into
13895# a binary during linking. This must work even if \$libdir does
13896# not exist.
13897hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13898
13899# Whether we need a single -rpath flag with a separated argument.
13900hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13901
13902# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13903# resulting binary.
13904hardcode_direct=$hardcode_direct_CXX
13905
13906# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13907# resulting binary.
13908hardcode_minus_L=$hardcode_minus_L_CXX
13909
13910# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13911# the resulting binary.
13912hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13913
13914# Set to yes if building a shared library automatically hardcodes DIR into the library
13915# and all subsequent libraries and executables linked against it.
13916hardcode_automatic=$hardcode_automatic_CXX
13917
13918# Variables whose values should be saved in libtool wrapper scripts and
13919# restored at relink time.
13920variables_saved_for_relink="$variables_saved_for_relink"
13921
13922# Whether libtool must link a program against all its dependency libraries.
13923link_all_deplibs=$link_all_deplibs_CXX
13924
13925# Compile-time system search path for libraries
13926sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13927
13928# Run-time system search path for libraries
13929sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13930
13931# Fix the shell variable \$srcfile for the compiler.
13932fix_srcfile_path=$lt_fix_srcfile_path
13933
13934# Set to yes if exported symbols are required.
13935always_export_symbols=$always_export_symbols_CXX
13936
13937# The commands to list exported symbols.
13938export_symbols_cmds=$lt_export_symbols_cmds_CXX
13939
13940# The commands to extract the exported symbol list from a shared archive.
13941extract_expsyms_cmds=$lt_extract_expsyms_cmds
13942
13943# Symbols that should not be listed in the preloaded symbols.
13944exclude_expsyms=$lt_exclude_expsyms_CXX
13945
13946# Symbols that must always be exported.
13947include_expsyms=$lt_include_expsyms_CXX
13948
13949# ### END LIBTOOL TAG CONFIG: $tagname
13950
13951__EOF__
13952
13953
13954else
13955  # If there is no Makefile yet, we rely on a make rule to execute
13956  # `config.status --recheck' to rerun these tests and create the
13957  # libtool script then.
13958  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13959  if test -f "$ltmain_in"; then
13960    test -f Makefile && make "$ltmain"
13961  fi
13962fi
13963
13964
13965ac_ext=c
13966ac_cpp='$CPP $CPPFLAGS'
13967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13969ac_compiler_gnu=$ac_cv_c_compiler_gnu
13970
13971CC=$lt_save_CC
13972LDCXX=$LD
13973LD=$lt_save_LD
13974GCC=$lt_save_GCC
13975with_gnu_ldcxx=$with_gnu_ld
13976with_gnu_ld=$lt_save_with_gnu_ld
13977lt_cv_path_LDCXX=$lt_cv_path_LD
13978lt_cv_path_LD=$lt_save_path_LD
13979lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13980lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13981
13982	else
13983	  tagname=""
13984	fi
13985	;;
13986
13987      F77)
13988	if test -n "$F77" && test "X$F77" != "Xno"; then
13989
13990ac_ext=f
13991ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13992ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13993ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13994
13995
13996archive_cmds_need_lc_F77=no
13997allow_undefined_flag_F77=
13998always_export_symbols_F77=no
13999archive_expsym_cmds_F77=
14000export_dynamic_flag_spec_F77=
14001hardcode_direct_F77=no
14002hardcode_libdir_flag_spec_F77=
14003hardcode_libdir_flag_spec_ld_F77=
14004hardcode_libdir_separator_F77=
14005hardcode_minus_L_F77=no
14006hardcode_automatic_F77=no
14007module_cmds_F77=
14008module_expsym_cmds_F77=
14009link_all_deplibs_F77=unknown
14010old_archive_cmds_F77=$old_archive_cmds
14011no_undefined_flag_F77=
14012whole_archive_flag_spec_F77=
14013enable_shared_with_static_runtimes_F77=no
14014
14015# Source file extension for f77 test sources.
14016ac_ext=f
14017
14018# Object file extension for compiled f77 test sources.
14019objext=o
14020objext_F77=$objext
14021
14022# Code to be used in simple compile tests
14023lt_simple_compile_test_code="\
14024      subroutine t
14025      return
14026      end
14027"
14028
14029# Code to be used in simple link tests
14030lt_simple_link_test_code="\
14031      program t
14032      end
14033"
14034
14035# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14036
14037# If no C compiler was specified, use CC.
14038LTCC=${LTCC-"$CC"}
14039
14040# If no C compiler flags were specified, use CFLAGS.
14041LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14042
14043# Allow CC to be a program name with arguments.
14044compiler=$CC
14045
14046
14047# save warnings/boilerplate of simple test code
14048ac_outfile=conftest.$ac_objext
14049echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14050eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14051_lt_compiler_boilerplate=`cat conftest.err`
14052$rm conftest*
14053
14054ac_outfile=conftest.$ac_objext
14055echo "$lt_simple_link_test_code" >conftest.$ac_ext
14056eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14057_lt_linker_boilerplate=`cat conftest.err`
14058$rm -r conftest*
14059
14060
14061# Allow CC to be a program name with arguments.
14062lt_save_CC="$CC"
14063CC=${F77-"f77"}
14064compiler=$CC
14065compiler_F77=$CC
14066for cc_temp in $compiler""; do
14067  case $cc_temp in
14068    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14069    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14070    \-*) ;;
14071    *) break;;
14072  esac
14073done
14074cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14075
14076
14077{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14078echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14079{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14080echo "${ECHO_T}$can_build_shared" >&6; }
14081
14082{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14083echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14084test "$can_build_shared" = "no" && enable_shared=no
14085
14086# On AIX, shared libraries and static libraries use the same namespace, and
14087# are all built from PIC.
14088case $host_os in
14089aix3*)
14090  test "$enable_shared" = yes && enable_static=no
14091  if test -n "$RANLIB"; then
14092    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14093    postinstall_cmds='$RANLIB $lib'
14094  fi
14095  ;;
14096aix[4-9]*)
14097  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14098    test "$enable_shared" = yes && enable_static=no
14099  fi
14100  ;;
14101esac
14102{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14103echo "${ECHO_T}$enable_shared" >&6; }
14104
14105{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14106echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14107# Make sure either enable_shared or enable_static is yes.
14108test "$enable_shared" = yes || enable_static=yes
14109{ echo "$as_me:$LINENO: result: $enable_static" >&5
14110echo "${ECHO_T}$enable_static" >&6; }
14111
14112GCC_F77="$G77"
14113LD_F77="$LD"
14114
14115lt_prog_compiler_wl_F77=
14116lt_prog_compiler_pic_F77=
14117lt_prog_compiler_static_F77=
14118
14119{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14120echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14121
14122  if test "$GCC" = yes; then
14123    lt_prog_compiler_wl_F77='-Wl,'
14124    lt_prog_compiler_static_F77='-static'
14125
14126    case $host_os in
14127      aix*)
14128      # All AIX code is PIC.
14129      if test "$host_cpu" = ia64; then
14130	# AIX 5 now supports IA64 processor
14131	lt_prog_compiler_static_F77='-Bstatic'
14132      fi
14133      ;;
14134
14135    amigaos*)
14136      # FIXME: we need at least 68020 code to build shared libraries, but
14137      # adding the `-m68020' flag to GCC prevents building anything better,
14138      # like `-m68040'.
14139      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14140      ;;
14141
14142    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14143      # PIC is the default for these OSes.
14144      ;;
14145
14146    mingw* | cygwin* | pw32* | os2*)
14147      # This hack is so that the source file can tell whether it is being
14148      # built for inclusion in a dll (and should export symbols for example).
14149      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14150      # (--disable-auto-import) libraries
14151      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14152      ;;
14153
14154    darwin* | rhapsody*)
14155      # PIC is the default on this platform
14156      # Common symbols not allowed in MH_DYLIB files
14157      lt_prog_compiler_pic_F77='-fno-common'
14158      ;;
14159
14160    interix[3-9]*)
14161      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14162      # Instead, we relocate shared libraries at runtime.
14163      ;;
14164
14165    msdosdjgpp*)
14166      # Just because we use GCC doesn't mean we suddenly get shared libraries
14167      # on systems that don't support them.
14168      lt_prog_compiler_can_build_shared_F77=no
14169      enable_shared=no
14170      ;;
14171
14172    sysv4*MP*)
14173      if test -d /usr/nec; then
14174	lt_prog_compiler_pic_F77=-Kconform_pic
14175      fi
14176      ;;
14177
14178    hpux*)
14179      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14180      # not for PA HP-UX.
14181      case $host_cpu in
14182      hppa*64*|ia64*)
14183	# +Z the default
14184	;;
14185      *)
14186	lt_prog_compiler_pic_F77='-fPIC'
14187	;;
14188      esac
14189      ;;
14190
14191    *)
14192      lt_prog_compiler_pic_F77='-fPIC'
14193      ;;
14194    esac
14195  else
14196    # PORTME Check for flag to pass linker flags through the system compiler.
14197    case $host_os in
14198    aix*)
14199      lt_prog_compiler_wl_F77='-Wl,'
14200      if test "$host_cpu" = ia64; then
14201	# AIX 5 now supports IA64 processor
14202	lt_prog_compiler_static_F77='-Bstatic'
14203      else
14204	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14205      fi
14206      ;;
14207      darwin*)
14208        # PIC is the default on this platform
14209        # Common symbols not allowed in MH_DYLIB files
14210       case $cc_basename in
14211         xlc*)
14212         lt_prog_compiler_pic_F77='-qnocommon'
14213         lt_prog_compiler_wl_F77='-Wl,'
14214         ;;
14215       esac
14216       ;;
14217
14218    mingw* | cygwin* | pw32* | os2*)
14219      # This hack is so that the source file can tell whether it is being
14220      # built for inclusion in a dll (and should export symbols for example).
14221      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14222      ;;
14223
14224    hpux9* | hpux10* | hpux11*)
14225      lt_prog_compiler_wl_F77='-Wl,'
14226      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14227      # not for PA HP-UX.
14228      case $host_cpu in
14229      hppa*64*|ia64*)
14230	# +Z the default
14231	;;
14232      *)
14233	lt_prog_compiler_pic_F77='+Z'
14234	;;
14235      esac
14236      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14237      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14238      ;;
14239
14240    irix5* | irix6* | nonstopux*)
14241      lt_prog_compiler_wl_F77='-Wl,'
14242      # PIC (with -KPIC) is the default.
14243      lt_prog_compiler_static_F77='-non_shared'
14244      ;;
14245
14246    newsos6)
14247      lt_prog_compiler_pic_F77='-KPIC'
14248      lt_prog_compiler_static_F77='-Bstatic'
14249      ;;
14250
14251    linux* | k*bsd*-gnu)
14252      case $cc_basename in
14253      icc* | ecc*)
14254	lt_prog_compiler_wl_F77='-Wl,'
14255	lt_prog_compiler_pic_F77='-KPIC'
14256	lt_prog_compiler_static_F77='-static'
14257        ;;
14258      pgcc* | pgf77* | pgf90* | pgf95*)
14259        # Portland Group compilers (*not* the Pentium gcc compiler,
14260	# which looks to be a dead project)
14261	lt_prog_compiler_wl_F77='-Wl,'
14262	lt_prog_compiler_pic_F77='-fpic'
14263	lt_prog_compiler_static_F77='-Bstatic'
14264        ;;
14265      ccc*)
14266        lt_prog_compiler_wl_F77='-Wl,'
14267        # All Alpha code is PIC.
14268        lt_prog_compiler_static_F77='-non_shared'
14269        ;;
14270      *)
14271        case `$CC -V 2>&1 | sed 5q` in
14272	*Sun\ C*)
14273	  # Sun C 5.9
14274	  lt_prog_compiler_pic_F77='-KPIC'
14275	  lt_prog_compiler_static_F77='-Bstatic'
14276	  lt_prog_compiler_wl_F77='-Wl,'
14277	  ;;
14278	*Sun\ F*)
14279	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14280	  lt_prog_compiler_pic_F77='-KPIC'
14281	  lt_prog_compiler_static_F77='-Bstatic'
14282	  lt_prog_compiler_wl_F77=''
14283	  ;;
14284	esac
14285	;;
14286      esac
14287      ;;
14288
14289    osf3* | osf4* | osf5*)
14290      lt_prog_compiler_wl_F77='-Wl,'
14291      # All OSF/1 code is PIC.
14292      lt_prog_compiler_static_F77='-non_shared'
14293      ;;
14294
14295    rdos*)
14296      lt_prog_compiler_static_F77='-non_shared'
14297      ;;
14298
14299    solaris*)
14300      lt_prog_compiler_pic_F77='-KPIC'
14301      lt_prog_compiler_static_F77='-Bstatic'
14302      case $cc_basename in
14303      f77* | f90* | f95*)
14304	lt_prog_compiler_wl_F77='-Qoption ld ';;
14305      *)
14306	lt_prog_compiler_wl_F77='-Wl,';;
14307      esac
14308      ;;
14309
14310    sunos4*)
14311      lt_prog_compiler_wl_F77='-Qoption ld '
14312      lt_prog_compiler_pic_F77='-PIC'
14313      lt_prog_compiler_static_F77='-Bstatic'
14314      ;;
14315
14316    sysv4 | sysv4.2uw2* | sysv4.3*)
14317      lt_prog_compiler_wl_F77='-Wl,'
14318      lt_prog_compiler_pic_F77='-KPIC'
14319      lt_prog_compiler_static_F77='-Bstatic'
14320      ;;
14321
14322    sysv4*MP*)
14323      if test -d /usr/nec ;then
14324	lt_prog_compiler_pic_F77='-Kconform_pic'
14325	lt_prog_compiler_static_F77='-Bstatic'
14326      fi
14327      ;;
14328
14329    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14330      lt_prog_compiler_wl_F77='-Wl,'
14331      lt_prog_compiler_pic_F77='-KPIC'
14332      lt_prog_compiler_static_F77='-Bstatic'
14333      ;;
14334
14335    unicos*)
14336      lt_prog_compiler_wl_F77='-Wl,'
14337      lt_prog_compiler_can_build_shared_F77=no
14338      ;;
14339
14340    uts4*)
14341      lt_prog_compiler_pic_F77='-pic'
14342      lt_prog_compiler_static_F77='-Bstatic'
14343      ;;
14344
14345    *)
14346      lt_prog_compiler_can_build_shared_F77=no
14347      ;;
14348    esac
14349  fi
14350
14351{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14352echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14353
14354#
14355# Check to make sure the PIC flag actually works.
14356#
14357if test -n "$lt_prog_compiler_pic_F77"; then
14358
14359{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14360echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14361if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14362  echo $ECHO_N "(cached) $ECHO_C" >&6
14363else
14364  lt_cv_prog_compiler_pic_works_F77=no
14365  ac_outfile=conftest.$ac_objext
14366   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14367   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14368   # Insert the option either (1) after the last *FLAGS variable, or
14369   # (2) before a word containing "conftest.", or (3) at the end.
14370   # Note that $ac_compile itself does not contain backslashes and begins
14371   # with a dollar sign (not a hyphen), so the echo should work correctly.
14372   # The option is referenced via a variable to avoid confusing sed.
14373   lt_compile=`echo "$ac_compile" | $SED \
14374   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14375   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14376   -e 's:$: $lt_compiler_flag:'`
14377   (eval echo "\"\$as_me:14377: $lt_compile\"" >&5)
14378   (eval "$lt_compile" 2>conftest.err)
14379   ac_status=$?
14380   cat conftest.err >&5
14381   echo "$as_me:14381: \$? = $ac_status" >&5
14382   if (exit $ac_status) && test -s "$ac_outfile"; then
14383     # The compiler can only warn and ignore the option if not recognized
14384     # So say no if there are warnings other than the usual output.
14385     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14386     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14387     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14388       lt_cv_prog_compiler_pic_works_F77=yes
14389     fi
14390   fi
14391   $rm conftest*
14392
14393fi
14394{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14395echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14396
14397if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14398    case $lt_prog_compiler_pic_F77 in
14399     "" | " "*) ;;
14400     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14401     esac
14402else
14403    lt_prog_compiler_pic_F77=
14404     lt_prog_compiler_can_build_shared_F77=no
14405fi
14406
14407fi
14408case $host_os in
14409  # For platforms which do not support PIC, -DPIC is meaningless:
14410  *djgpp*)
14411    lt_prog_compiler_pic_F77=
14412    ;;
14413  *)
14414    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14415    ;;
14416esac
14417
14418#
14419# Check to make sure the static flag actually works.
14420#
14421wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14422{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14423echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14424if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14425  echo $ECHO_N "(cached) $ECHO_C" >&6
14426else
14427  lt_cv_prog_compiler_static_works_F77=no
14428   save_LDFLAGS="$LDFLAGS"
14429   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14430   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14431   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14432     # The linker can only warn and ignore the option if not recognized
14433     # So say no if there are warnings
14434     if test -s conftest.err; then
14435       # Append any errors to the config.log.
14436       cat conftest.err 1>&5
14437       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14438       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14439       if diff conftest.exp conftest.er2 >/dev/null; then
14440         lt_cv_prog_compiler_static_works_F77=yes
14441       fi
14442     else
14443       lt_cv_prog_compiler_static_works_F77=yes
14444     fi
14445   fi
14446   $rm -r conftest*
14447   LDFLAGS="$save_LDFLAGS"
14448
14449fi
14450{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14451echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14452
14453if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14454    :
14455else
14456    lt_prog_compiler_static_F77=
14457fi
14458
14459
14460{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14461echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14462if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14463  echo $ECHO_N "(cached) $ECHO_C" >&6
14464else
14465  lt_cv_prog_compiler_c_o_F77=no
14466   $rm -r conftest 2>/dev/null
14467   mkdir conftest
14468   cd conftest
14469   mkdir out
14470   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14471
14472   lt_compiler_flag="-o out/conftest2.$ac_objext"
14473   # Insert the option either (1) after the last *FLAGS variable, or
14474   # (2) before a word containing "conftest.", or (3) at the end.
14475   # Note that $ac_compile itself does not contain backslashes and begins
14476   # with a dollar sign (not a hyphen), so the echo should work correctly.
14477   lt_compile=`echo "$ac_compile" | $SED \
14478   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14479   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14480   -e 's:$: $lt_compiler_flag:'`
14481   (eval echo "\"\$as_me:14481: $lt_compile\"" >&5)
14482   (eval "$lt_compile" 2>out/conftest.err)
14483   ac_status=$?
14484   cat out/conftest.err >&5
14485   echo "$as_me:14485: \$? = $ac_status" >&5
14486   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14487   then
14488     # The compiler can only warn and ignore the option if not recognized
14489     # So say no if there are warnings
14490     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14491     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14492     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14493       lt_cv_prog_compiler_c_o_F77=yes
14494     fi
14495   fi
14496   chmod u+w . 2>&5
14497   $rm conftest*
14498   # SGI C++ compiler will create directory out/ii_files/ for
14499   # template instantiation
14500   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14501   $rm out/* && rmdir out
14502   cd ..
14503   rmdir conftest
14504   $rm conftest*
14505
14506fi
14507{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14508echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14509
14510
14511hard_links="nottested"
14512if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14513  # do not overwrite the value of need_locks provided by the user
14514  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14515echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14516  hard_links=yes
14517  $rm conftest*
14518  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14519  touch conftest.a
14520  ln conftest.a conftest.b 2>&5 || hard_links=no
14521  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14522  { echo "$as_me:$LINENO: result: $hard_links" >&5
14523echo "${ECHO_T}$hard_links" >&6; }
14524  if test "$hard_links" = no; then
14525    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14526echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14527    need_locks=warn
14528  fi
14529else
14530  need_locks=no
14531fi
14532
14533{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14534echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14535
14536  runpath_var=
14537  allow_undefined_flag_F77=
14538  enable_shared_with_static_runtimes_F77=no
14539  archive_cmds_F77=
14540  archive_expsym_cmds_F77=
14541  old_archive_From_new_cmds_F77=
14542  old_archive_from_expsyms_cmds_F77=
14543  export_dynamic_flag_spec_F77=
14544  whole_archive_flag_spec_F77=
14545  thread_safe_flag_spec_F77=
14546  hardcode_libdir_flag_spec_F77=
14547  hardcode_libdir_flag_spec_ld_F77=
14548  hardcode_libdir_separator_F77=
14549  hardcode_direct_F77=no
14550  hardcode_minus_L_F77=no
14551  hardcode_shlibpath_var_F77=unsupported
14552  link_all_deplibs_F77=unknown
14553  hardcode_automatic_F77=no
14554  module_cmds_F77=
14555  module_expsym_cmds_F77=
14556  always_export_symbols_F77=no
14557  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14558  # include_expsyms should be a list of space-separated symbols to be *always*
14559  # included in the symbol list
14560  include_expsyms_F77=
14561  # exclude_expsyms can be an extended regexp of symbols to exclude
14562  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14563  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14564  # as well as any symbol that contains `d'.
14565  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14566  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14567  # platforms (ab)use it in PIC code, but their linkers get confused if
14568  # the symbol is explicitly referenced.  Since portable code cannot
14569  # rely on this symbol name, it's probably fine to never include it in
14570  # preloaded symbol tables.
14571  # Exclude shared library initialization/finalization symbols.
14572  extract_expsyms_cmds=
14573  # Just being paranoid about ensuring that cc_basename is set.
14574  for cc_temp in $compiler""; do
14575  case $cc_temp in
14576    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14577    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14578    \-*) ;;
14579    *) break;;
14580  esac
14581done
14582cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14583
14584  case $host_os in
14585  cygwin* | mingw* | pw32*)
14586    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14587    # When not using gcc, we currently assume that we are using
14588    # Microsoft Visual C++.
14589    if test "$GCC" != yes; then
14590      with_gnu_ld=no
14591    fi
14592    ;;
14593  interix*)
14594    # we just hope/assume this is gcc and not c89 (= MSVC++)
14595    with_gnu_ld=yes
14596    ;;
14597  openbsd*)
14598    with_gnu_ld=no
14599    ;;
14600  esac
14601
14602  ld_shlibs_F77=yes
14603  if test "$with_gnu_ld" = yes; then
14604    # If archive_cmds runs LD, not CC, wlarc should be empty
14605    wlarc='${wl}'
14606
14607    # Set some defaults for GNU ld with shared library support. These
14608    # are reset later if shared libraries are not supported. Putting them
14609    # here allows them to be overridden if necessary.
14610    runpath_var=LD_RUN_PATH
14611    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14612    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14613    # ancient GNU ld didn't support --whole-archive et. al.
14614    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14615	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14616      else
14617  	whole_archive_flag_spec_F77=
14618    fi
14619    supports_anon_versioning=no
14620    case `$LD -v 2>/dev/null` in
14621      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14622      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14623      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14624      *\ 2.11.*) ;; # other 2.11 versions
14625      *) supports_anon_versioning=yes ;;
14626    esac
14627
14628    # See if GNU ld supports shared libraries.
14629    case $host_os in
14630    aix[3-9]*)
14631      # On AIX/PPC, the GNU linker is very broken
14632      if test "$host_cpu" != ia64; then
14633	ld_shlibs_F77=no
14634	cat <<EOF 1>&2
14635
14636*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14637*** to be unable to reliably create shared libraries on AIX.
14638*** Therefore, libtool is disabling shared libraries support.  If you
14639*** really care for shared libraries, you may want to modify your PATH
14640*** so that a non-GNU linker is found, and then restart.
14641
14642EOF
14643      fi
14644      ;;
14645
14646    amigaos*)
14647      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)'
14648      hardcode_libdir_flag_spec_F77='-L$libdir'
14649      hardcode_minus_L_F77=yes
14650
14651      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14652      # that the semantics of dynamic libraries on AmigaOS, at least up
14653      # to version 4, is to share data among multiple programs linked
14654      # with the same dynamic library.  Since this doesn't match the
14655      # behavior of shared libraries on other platforms, we can't use
14656      # them.
14657      ld_shlibs_F77=no
14658      ;;
14659
14660    beos*)
14661      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14662	allow_undefined_flag_F77=unsupported
14663	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14664	# support --undefined.  This deserves some investigation.  FIXME
14665	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14666      else
14667	ld_shlibs_F77=no
14668      fi
14669      ;;
14670
14671    cygwin* | mingw* | pw32*)
14672      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14673      # as there is no search path for DLLs.
14674      hardcode_libdir_flag_spec_F77='-L$libdir'
14675      allow_undefined_flag_F77=unsupported
14676      always_export_symbols_F77=no
14677      enable_shared_with_static_runtimes_F77=yes
14678      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14679
14680      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14681        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14682	# If the export-symbols file already is a .def file (1st line
14683	# is EXPORTS), use it as is; otherwise, prepend...
14684	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14685	  cp $export_symbols $output_objdir/$soname.def;
14686	else
14687	  echo EXPORTS > $output_objdir/$soname.def;
14688	  cat $export_symbols >> $output_objdir/$soname.def;
14689	fi~
14690	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14691      else
14692	ld_shlibs_F77=no
14693      fi
14694      ;;
14695
14696    interix[3-9]*)
14697      hardcode_direct_F77=no
14698      hardcode_shlibpath_var_F77=no
14699      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14700      export_dynamic_flag_spec_F77='${wl}-E'
14701      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14702      # Instead, shared libraries are loaded at an image base (0x10000000 by
14703      # default) and relocated if they conflict, which is a slow very memory
14704      # consuming and fragmenting process.  To avoid this, we pick a random,
14705      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14706      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14707      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'
14708      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'
14709      ;;
14710
14711    gnu* | linux* | k*bsd*-gnu)
14712      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14713	tmp_addflag=
14714	case $cc_basename,$host_cpu in
14715	pgcc*)				# Portland Group C compiler
14716	  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'
14717	  tmp_addflag=' $pic_flag'
14718	  ;;
14719	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14720	  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'
14721	  tmp_addflag=' $pic_flag -Mnomain' ;;
14722	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14723	  tmp_addflag=' -i_dynamic' ;;
14724	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14725	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14726	ifc* | ifort*)			# Intel Fortran compiler
14727	  tmp_addflag=' -nofor_main' ;;
14728	esac
14729	case `$CC -V 2>&1 | sed 5q` in
14730	*Sun\ C*)			# Sun C 5.9
14731	  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'
14732	  tmp_sharedflag='-G' ;;
14733	*Sun\ F*)			# Sun Fortran 8.3
14734	  tmp_sharedflag='-G' ;;
14735	*)
14736	  tmp_sharedflag='-shared' ;;
14737	esac
14738	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14739
14740	if test $supports_anon_versioning = yes; then
14741	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14742  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14743  $echo "local: *; };" >> $output_objdir/$libname.ver~
14744	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14745	fi
14746	link_all_deplibs_F77=no
14747      else
14748	ld_shlibs_F77=no
14749      fi
14750      ;;
14751
14752    netbsd* | netbsdelf*-gnu)
14753      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14754	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14755	wlarc=
14756      else
14757	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14758	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14759      fi
14760      ;;
14761
14762    solaris*)
14763      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14764	ld_shlibs_F77=no
14765	cat <<EOF 1>&2
14766
14767*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14768*** create shared libraries on Solaris systems.  Therefore, libtool
14769*** is disabling shared libraries support.  We urge you to upgrade GNU
14770*** binutils to release 2.9.1 or newer.  Another option is to modify
14771*** your PATH or compiler configuration so that the native linker is
14772*** used, and then restart.
14773
14774EOF
14775      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14776	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14777	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14778      else
14779	ld_shlibs_F77=no
14780      fi
14781      ;;
14782
14783    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14784      case `$LD -v 2>&1` in
14785        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14786	ld_shlibs_F77=no
14787	cat <<_LT_EOF 1>&2
14788
14789*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14790*** reliably create shared libraries on SCO systems.  Therefore, libtool
14791*** is disabling shared libraries support.  We urge you to upgrade GNU
14792*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14793*** your PATH or compiler configuration so that the native linker is
14794*** used, and then restart.
14795
14796_LT_EOF
14797	;;
14798	*)
14799	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14800	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14801	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14802	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14803	  else
14804	    ld_shlibs_F77=no
14805	  fi
14806	;;
14807      esac
14808      ;;
14809
14810    sunos4*)
14811      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14812      wlarc=
14813      hardcode_direct_F77=yes
14814      hardcode_shlibpath_var_F77=no
14815      ;;
14816
14817    *)
14818      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14819	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14820	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14821      else
14822	ld_shlibs_F77=no
14823      fi
14824      ;;
14825    esac
14826
14827    if test "$ld_shlibs_F77" = no; then
14828      runpath_var=
14829      hardcode_libdir_flag_spec_F77=
14830      export_dynamic_flag_spec_F77=
14831      whole_archive_flag_spec_F77=
14832    fi
14833  else
14834    # PORTME fill in a description of your system's linker (not GNU ld)
14835    case $host_os in
14836    aix3*)
14837      allow_undefined_flag_F77=unsupported
14838      always_export_symbols_F77=yes
14839      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'
14840      # Note: this linker hardcodes the directories in LIBPATH if there
14841      # are no directories specified by -L.
14842      hardcode_minus_L_F77=yes
14843      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14844	# Neither direct hardcoding nor static linking is supported with a
14845	# broken collect2.
14846	hardcode_direct_F77=unsupported
14847      fi
14848      ;;
14849
14850    aix[4-9]*)
14851      if test "$host_cpu" = ia64; then
14852	# On IA64, the linker does run time linking by default, so we don't
14853	# have to do anything special.
14854	aix_use_runtimelinking=no
14855	exp_sym_flag='-Bexport'
14856	no_entry_flag=""
14857      else
14858	# If we're using GNU nm, then we don't want the "-C" option.
14859	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14860	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14861	  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'
14862	else
14863	  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'
14864	fi
14865	aix_use_runtimelinking=no
14866
14867	# Test if we are trying to use run time linking or normal
14868	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14869	# need to do runtime linking.
14870	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14871	  for ld_flag in $LDFLAGS; do
14872  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14873  	    aix_use_runtimelinking=yes
14874  	    break
14875  	  fi
14876	  done
14877	  ;;
14878	esac
14879
14880	exp_sym_flag='-bexport'
14881	no_entry_flag='-bnoentry'
14882      fi
14883
14884      # When large executables or shared objects are built, AIX ld can
14885      # have problems creating the table of contents.  If linking a library
14886      # or program results in "error TOC overflow" add -mminimal-toc to
14887      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14888      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14889
14890      archive_cmds_F77=''
14891      hardcode_direct_F77=yes
14892      hardcode_libdir_separator_F77=':'
14893      link_all_deplibs_F77=yes
14894
14895      if test "$GCC" = yes; then
14896	case $host_os in aix4.[012]|aix4.[012].*)
14897	# We only want to do this on AIX 4.2 and lower, the check
14898	# below for broken collect2 doesn't work under 4.3+
14899	  collect2name=`${CC} -print-prog-name=collect2`
14900	  if test -f "$collect2name" && \
14901  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14902	  then
14903  	  # We have reworked collect2
14904  	  :
14905	  else
14906  	  # We have old collect2
14907  	  hardcode_direct_F77=unsupported
14908  	  # It fails to find uninstalled libraries when the uninstalled
14909  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14910  	  # to unsupported forces relinking
14911  	  hardcode_minus_L_F77=yes
14912  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14913  	  hardcode_libdir_separator_F77=
14914	  fi
14915	  ;;
14916	esac
14917	shared_flag='-shared'
14918	if test "$aix_use_runtimelinking" = yes; then
14919	  shared_flag="$shared_flag "'${wl}-G'
14920	fi
14921      else
14922	# not using gcc
14923	if test "$host_cpu" = ia64; then
14924  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14925  	# chokes on -Wl,-G. The following line is correct:
14926	  shared_flag='-G'
14927	else
14928	  if test "$aix_use_runtimelinking" = yes; then
14929	    shared_flag='${wl}-G'
14930	  else
14931	    shared_flag='${wl}-bM:SRE'
14932	  fi
14933	fi
14934      fi
14935
14936      # It seems that -bexpall does not export symbols beginning with
14937      # underscore (_), so it is better to generate a list of symbols to export.
14938      always_export_symbols_F77=yes
14939      if test "$aix_use_runtimelinking" = yes; then
14940	# Warning - without using the other runtime loading flags (-brtl),
14941	# -berok will link without error, but may produce a broken library.
14942	allow_undefined_flag_F77='-berok'
14943       # Determine the default libpath from the value encoded in an empty executable.
14944       cat >conftest.$ac_ext <<_ACEOF
14945      program main
14946
14947      end
14948_ACEOF
14949rm -f conftest.$ac_objext conftest$ac_exeext
14950if { (ac_try="$ac_link"
14951case "(($ac_try" in
14952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14953  *) ac_try_echo=$ac_try;;
14954esac
14955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14956  (eval "$ac_link") 2>conftest.er1
14957  ac_status=$?
14958  grep -v '^ *+' conftest.er1 >conftest.err
14959  rm -f conftest.er1
14960  cat conftest.err >&5
14961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962  (exit $ac_status); } && {
14963	 test -z "$ac_f77_werror_flag" ||
14964	 test ! -s conftest.err
14965       } && test -s conftest$ac_exeext &&
14966       $as_test_x conftest$ac_exeext; then
14967
14968lt_aix_libpath_sed='
14969    /Import File Strings/,/^$/ {
14970	/^0/ {
14971	    s/^0  *\(.*\)$/\1/
14972	    p
14973	}
14974    }'
14975aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14976# Check for a 64-bit object if we didn't find anything.
14977if test -z "$aix_libpath"; then
14978  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14979fi
14980else
14981  echo "$as_me: failed program was:" >&5
14982sed 's/^/| /' conftest.$ac_ext >&5
14983
14984
14985fi
14986
14987rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14988      conftest$ac_exeext conftest.$ac_ext
14989if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14990
14991       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14992	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"
14993       else
14994	if test "$host_cpu" = ia64; then
14995	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14996	  allow_undefined_flag_F77="-z nodefs"
14997	  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"
14998	else
14999	 # Determine the default libpath from the value encoded in an empty executable.
15000	 cat >conftest.$ac_ext <<_ACEOF
15001      program main
15002
15003      end
15004_ACEOF
15005rm -f conftest.$ac_objext conftest$ac_exeext
15006if { (ac_try="$ac_link"
15007case "(($ac_try" in
15008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15009  *) ac_try_echo=$ac_try;;
15010esac
15011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15012  (eval "$ac_link") 2>conftest.er1
15013  ac_status=$?
15014  grep -v '^ *+' conftest.er1 >conftest.err
15015  rm -f conftest.er1
15016  cat conftest.err >&5
15017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018  (exit $ac_status); } && {
15019	 test -z "$ac_f77_werror_flag" ||
15020	 test ! -s conftest.err
15021       } && test -s conftest$ac_exeext &&
15022       $as_test_x conftest$ac_exeext; then
15023
15024lt_aix_libpath_sed='
15025    /Import File Strings/,/^$/ {
15026	/^0/ {
15027	    s/^0  *\(.*\)$/\1/
15028	    p
15029	}
15030    }'
15031aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15032# Check for a 64-bit object if we didn't find anything.
15033if test -z "$aix_libpath"; then
15034  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15035fi
15036else
15037  echo "$as_me: failed program was:" >&5
15038sed 's/^/| /' conftest.$ac_ext >&5
15039
15040
15041fi
15042
15043rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15044      conftest$ac_exeext conftest.$ac_ext
15045if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15046
15047	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15048	  # Warning - without using the other run time loading flags,
15049	  # -berok will link without error, but may produce a broken library.
15050	  no_undefined_flag_F77=' ${wl}-bernotok'
15051	  allow_undefined_flag_F77=' ${wl}-berok'
15052	  # Exported symbols can be pulled into shared objects from archives
15053	  whole_archive_flag_spec_F77='$convenience'
15054	  archive_cmds_need_lc_F77=yes
15055	  # This is similar to how AIX traditionally builds its shared libraries.
15056	  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'
15057	fi
15058      fi
15059      ;;
15060
15061    amigaos*)
15062      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)'
15063      hardcode_libdir_flag_spec_F77='-L$libdir'
15064      hardcode_minus_L_F77=yes
15065      # see comment about different semantics on the GNU ld section
15066      ld_shlibs_F77=no
15067      ;;
15068
15069    bsdi[45]*)
15070      export_dynamic_flag_spec_F77=-rdynamic
15071      ;;
15072
15073    cygwin* | mingw* | pw32*)
15074      # When not using gcc, we currently assume that we are using
15075      # Microsoft Visual C++.
15076      # hardcode_libdir_flag_spec is actually meaningless, as there is
15077      # no search path for DLLs.
15078      hardcode_libdir_flag_spec_F77=' '
15079      allow_undefined_flag_F77=unsupported
15080      # Tell ltmain to make .lib files, not .a files.
15081      libext=lib
15082      # Tell ltmain to make .dll files, not .so files.
15083      shrext_cmds=".dll"
15084      # FIXME: Setting linknames here is a bad hack.
15085      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15086      # The linker will automatically build a .lib file if we build a DLL.
15087      old_archive_From_new_cmds_F77='true'
15088      # FIXME: Should let the user specify the lib program.
15089      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15090      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15091      enable_shared_with_static_runtimes_F77=yes
15092      ;;
15093
15094    darwin* | rhapsody*)
15095      case $host_os in
15096        rhapsody* | darwin1.[012])
15097         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15098         ;;
15099       *) # Darwin 1.3 on
15100         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15101           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15102         else
15103           case ${MACOSX_DEPLOYMENT_TARGET} in
15104             10.[012])
15105               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15106               ;;
15107             10.*)
15108               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15109               ;;
15110           esac
15111         fi
15112         ;;
15113      esac
15114      archive_cmds_need_lc_F77=no
15115      hardcode_direct_F77=no
15116      hardcode_automatic_F77=yes
15117      hardcode_shlibpath_var_F77=unsupported
15118      whole_archive_flag_spec_F77=''
15119      link_all_deplibs_F77=yes
15120    if test "$GCC" = yes ; then
15121    	output_verbose_link_cmd='echo'
15122        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15123        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15124        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15125        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15126    else
15127      case $cc_basename in
15128        xlc*)
15129         output_verbose_link_cmd='echo'
15130         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15131         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15132          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15133         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15134          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}'
15135          ;;
15136       *)
15137         ld_shlibs_F77=no
15138          ;;
15139      esac
15140    fi
15141      ;;
15142
15143    dgux*)
15144      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15145      hardcode_libdir_flag_spec_F77='-L$libdir'
15146      hardcode_shlibpath_var_F77=no
15147      ;;
15148
15149    freebsd1*)
15150      ld_shlibs_F77=no
15151      ;;
15152
15153    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15154    # support.  Future versions do this automatically, but an explicit c++rt0.o
15155    # does not break anything, and helps significantly (at the cost of a little
15156    # extra space).
15157    freebsd2.2*)
15158      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15159      hardcode_libdir_flag_spec_F77='-R$libdir'
15160      hardcode_direct_F77=yes
15161      hardcode_shlibpath_var_F77=no
15162      ;;
15163
15164    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15165    freebsd2*)
15166      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15167      hardcode_direct_F77=yes
15168      hardcode_minus_L_F77=yes
15169      hardcode_shlibpath_var_F77=no
15170      ;;
15171
15172    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15173    freebsd* | dragonfly*)
15174      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15175      hardcode_libdir_flag_spec_F77='-R$libdir'
15176      hardcode_direct_F77=yes
15177      hardcode_shlibpath_var_F77=no
15178      ;;
15179
15180    hpux9*)
15181      if test "$GCC" = yes; then
15182	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'
15183      else
15184	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'
15185      fi
15186      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15187      hardcode_libdir_separator_F77=:
15188      hardcode_direct_F77=yes
15189
15190      # hardcode_minus_L: Not really in the search PATH,
15191      # but as the default location of the library.
15192      hardcode_minus_L_F77=yes
15193      export_dynamic_flag_spec_F77='${wl}-E'
15194      ;;
15195
15196    hpux10*)
15197      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15198	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15199      else
15200	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15201      fi
15202      if test "$with_gnu_ld" = no; then
15203	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15204	hardcode_libdir_separator_F77=:
15205
15206	hardcode_direct_F77=yes
15207	export_dynamic_flag_spec_F77='${wl}-E'
15208
15209	# hardcode_minus_L: Not really in the search PATH,
15210	# but as the default location of the library.
15211	hardcode_minus_L_F77=yes
15212      fi
15213      ;;
15214
15215    hpux11*)
15216      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15217	case $host_cpu in
15218	hppa*64*)
15219	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15220	  ;;
15221	ia64*)
15222	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15223	  ;;
15224	*)
15225	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15226	  ;;
15227	esac
15228      else
15229	case $host_cpu in
15230	hppa*64*)
15231	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15232	  ;;
15233	ia64*)
15234	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15235	  ;;
15236	*)
15237	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15238	  ;;
15239	esac
15240      fi
15241      if test "$with_gnu_ld" = no; then
15242	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15243	hardcode_libdir_separator_F77=:
15244
15245	case $host_cpu in
15246	hppa*64*|ia64*)
15247	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15248	  hardcode_direct_F77=no
15249	  hardcode_shlibpath_var_F77=no
15250	  ;;
15251	*)
15252	  hardcode_direct_F77=yes
15253	  export_dynamic_flag_spec_F77='${wl}-E'
15254
15255	  # hardcode_minus_L: Not really in the search PATH,
15256	  # but as the default location of the library.
15257	  hardcode_minus_L_F77=yes
15258	  ;;
15259	esac
15260      fi
15261      ;;
15262
15263    irix5* | irix6* | nonstopux*)
15264      if test "$GCC" = yes; then
15265	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'
15266      else
15267	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'
15268	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15269      fi
15270      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15271      hardcode_libdir_separator_F77=:
15272      link_all_deplibs_F77=yes
15273      ;;
15274
15275    netbsd* | netbsdelf*-gnu)
15276      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15277	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15278      else
15279	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15280      fi
15281      hardcode_libdir_flag_spec_F77='-R$libdir'
15282      hardcode_direct_F77=yes
15283      hardcode_shlibpath_var_F77=no
15284      ;;
15285
15286    newsos6)
15287      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15288      hardcode_direct_F77=yes
15289      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15290      hardcode_libdir_separator_F77=:
15291      hardcode_shlibpath_var_F77=no
15292      ;;
15293
15294    openbsd*)
15295      if test -f /usr/libexec/ld.so; then
15296	hardcode_direct_F77=yes
15297	hardcode_shlibpath_var_F77=no
15298	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15299	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15300	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15301	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15302	  export_dynamic_flag_spec_F77='${wl}-E'
15303	else
15304	  case $host_os in
15305	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15306	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15307	     hardcode_libdir_flag_spec_F77='-R$libdir'
15308	     ;;
15309	   *)
15310	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15311	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15312	     ;;
15313	  esac
15314        fi
15315      else
15316	ld_shlibs_F77=no
15317      fi
15318      ;;
15319
15320    os2*)
15321      hardcode_libdir_flag_spec_F77='-L$libdir'
15322      hardcode_minus_L_F77=yes
15323      allow_undefined_flag_F77=unsupported
15324      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'
15325      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15326      ;;
15327
15328    osf3*)
15329      if test "$GCC" = yes; then
15330	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15331	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'
15332      else
15333	allow_undefined_flag_F77=' -expect_unresolved \*'
15334	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'
15335      fi
15336      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15337      hardcode_libdir_separator_F77=:
15338      ;;
15339
15340    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15341      if test "$GCC" = yes; then
15342	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15343	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'
15344	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15345      else
15346	allow_undefined_flag_F77=' -expect_unresolved \*'
15347	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'
15348	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~
15349	$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'
15350
15351	# Both c and cxx compiler support -rpath directly
15352	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15353      fi
15354      hardcode_libdir_separator_F77=:
15355      ;;
15356
15357    solaris*)
15358      no_undefined_flag_F77=' -z text'
15359      if test "$GCC" = yes; then
15360	wlarc='${wl}'
15361	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15362	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15363	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15364      else
15365	wlarc=''
15366	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15367	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15368  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15369      fi
15370      hardcode_libdir_flag_spec_F77='-R$libdir'
15371      hardcode_shlibpath_var_F77=no
15372      case $host_os in
15373      solaris2.[0-5] | solaris2.[0-5].*) ;;
15374      *)
15375	# The compiler driver will combine and reorder linker options,
15376	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15377	# but is careful enough not to reorder.
15378 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15379	if test "$GCC" = yes; then
15380	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15381	else
15382	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15383	fi
15384	;;
15385      esac
15386      link_all_deplibs_F77=yes
15387      ;;
15388
15389    sunos4*)
15390      if test "x$host_vendor" = xsequent; then
15391	# Use $CC to link under sequent, because it throws in some extra .o
15392	# files that make .init and .fini sections work.
15393	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15394      else
15395	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15396      fi
15397      hardcode_libdir_flag_spec_F77='-L$libdir'
15398      hardcode_direct_F77=yes
15399      hardcode_minus_L_F77=yes
15400      hardcode_shlibpath_var_F77=no
15401      ;;
15402
15403    sysv4)
15404      case $host_vendor in
15405	sni)
15406	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15407	  hardcode_direct_F77=yes # is this really true???
15408	;;
15409	siemens)
15410	  ## LD is ld it makes a PLAMLIB
15411	  ## CC just makes a GrossModule.
15412	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15413	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15414	  hardcode_direct_F77=no
15415        ;;
15416	motorola)
15417	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15418	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15419	;;
15420      esac
15421      runpath_var='LD_RUN_PATH'
15422      hardcode_shlibpath_var_F77=no
15423      ;;
15424
15425    sysv4.3*)
15426      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15427      hardcode_shlibpath_var_F77=no
15428      export_dynamic_flag_spec_F77='-Bexport'
15429      ;;
15430
15431    sysv4*MP*)
15432      if test -d /usr/nec; then
15433	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15434	hardcode_shlibpath_var_F77=no
15435	runpath_var=LD_RUN_PATH
15436	hardcode_runpath_var=yes
15437	ld_shlibs_F77=yes
15438      fi
15439      ;;
15440
15441    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15442      no_undefined_flag_F77='${wl}-z,text'
15443      archive_cmds_need_lc_F77=no
15444      hardcode_shlibpath_var_F77=no
15445      runpath_var='LD_RUN_PATH'
15446
15447      if test "$GCC" = yes; then
15448	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15449	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15450      else
15451	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15452	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15453      fi
15454      ;;
15455
15456    sysv5* | sco3.2v5* | sco5v6*)
15457      # Note: We can NOT use -z defs as we might desire, because we do not
15458      # link with -lc, and that would cause any symbols used from libc to
15459      # always be unresolved, which means just about no library would
15460      # ever link correctly.  If we're not using GNU ld we use -z text
15461      # though, which does catch some bad symbols but isn't as heavy-handed
15462      # as -z defs.
15463      no_undefined_flag_F77='${wl}-z,text'
15464      allow_undefined_flag_F77='${wl}-z,nodefs'
15465      archive_cmds_need_lc_F77=no
15466      hardcode_shlibpath_var_F77=no
15467      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15468      hardcode_libdir_separator_F77=':'
15469      link_all_deplibs_F77=yes
15470      export_dynamic_flag_spec_F77='${wl}-Bexport'
15471      runpath_var='LD_RUN_PATH'
15472
15473      if test "$GCC" = yes; then
15474	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15475	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15476      else
15477	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15478	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15479      fi
15480      ;;
15481
15482    uts4*)
15483      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15484      hardcode_libdir_flag_spec_F77='-L$libdir'
15485      hardcode_shlibpath_var_F77=no
15486      ;;
15487
15488    *)
15489      ld_shlibs_F77=no
15490      ;;
15491    esac
15492  fi
15493
15494{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15495echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15496test "$ld_shlibs_F77" = no && can_build_shared=no
15497
15498#
15499# Do we need to explicitly link libc?
15500#
15501case "x$archive_cmds_need_lc_F77" in
15502x|xyes)
15503  # Assume -lc should be added
15504  archive_cmds_need_lc_F77=yes
15505
15506  if test "$enable_shared" = yes && test "$GCC" = yes; then
15507    case $archive_cmds_F77 in
15508    *'~'*)
15509      # FIXME: we may have to deal with multi-command sequences.
15510      ;;
15511    '$CC '*)
15512      # Test whether the compiler implicitly links with -lc since on some
15513      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15514      # to ld, don't add -lc before -lgcc.
15515      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15516echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15517      $rm conftest*
15518      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15519
15520      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15521  (eval $ac_compile) 2>&5
15522  ac_status=$?
15523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524  (exit $ac_status); } 2>conftest.err; then
15525        soname=conftest
15526        lib=conftest
15527        libobjs=conftest.$ac_objext
15528        deplibs=
15529        wl=$lt_prog_compiler_wl_F77
15530	pic_flag=$lt_prog_compiler_pic_F77
15531        compiler_flags=-v
15532        linker_flags=-v
15533        verstring=
15534        output_objdir=.
15535        libname=conftest
15536        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15537        allow_undefined_flag_F77=
15538        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15539  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15540  ac_status=$?
15541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542  (exit $ac_status); }
15543        then
15544	  archive_cmds_need_lc_F77=no
15545        else
15546	  archive_cmds_need_lc_F77=yes
15547        fi
15548        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15549      else
15550        cat conftest.err 1>&5
15551      fi
15552      $rm conftest*
15553      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15554echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15555      ;;
15556    esac
15557  fi
15558  ;;
15559esac
15560
15561{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15562echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15563library_names_spec=
15564libname_spec='lib$name'
15565soname_spec=
15566shrext_cmds=".so"
15567postinstall_cmds=
15568postuninstall_cmds=
15569finish_cmds=
15570finish_eval=
15571shlibpath_var=
15572shlibpath_overrides_runpath=unknown
15573version_type=none
15574dynamic_linker="$host_os ld.so"
15575sys_lib_dlsearch_path_spec="/lib /usr/lib"
15576
15577need_lib_prefix=unknown
15578hardcode_into_libs=no
15579
15580# when you set need_version to no, make sure it does not cause -set_version
15581# flags to be left without arguments
15582need_version=unknown
15583
15584case $host_os in
15585aix3*)
15586  version_type=linux
15587  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15588  shlibpath_var=LIBPATH
15589
15590  # AIX 3 has no versioning support, so we append a major version to the name.
15591  soname_spec='${libname}${release}${shared_ext}$major'
15592  ;;
15593
15594aix[4-9]*)
15595  version_type=linux
15596  need_lib_prefix=no
15597  need_version=no
15598  hardcode_into_libs=yes
15599  if test "$host_cpu" = ia64; then
15600    # AIX 5 supports IA64
15601    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15602    shlibpath_var=LD_LIBRARY_PATH
15603  else
15604    # With GCC up to 2.95.x, collect2 would create an import file
15605    # for dependence libraries.  The import file would start with
15606    # the line `#! .'.  This would cause the generated library to
15607    # depend on `.', always an invalid library.  This was fixed in
15608    # development snapshots of GCC prior to 3.0.
15609    case $host_os in
15610      aix4 | aix4.[01] | aix4.[01].*)
15611      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15612	   echo ' yes '
15613	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15614	:
15615      else
15616	can_build_shared=no
15617      fi
15618      ;;
15619    esac
15620    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15621    # soname into executable. Probably we can add versioning support to
15622    # collect2, so additional links can be useful in future.
15623    if test "$aix_use_runtimelinking" = yes; then
15624      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15625      # instead of lib<name>.a to let people know that these are not
15626      # typical AIX shared libraries.
15627      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628    else
15629      # We preserve .a as extension for shared libraries through AIX4.2
15630      # and later when we are not doing run time linking.
15631      library_names_spec='${libname}${release}.a $libname.a'
15632      soname_spec='${libname}${release}${shared_ext}$major'
15633    fi
15634    shlibpath_var=LIBPATH
15635  fi
15636  ;;
15637
15638amigaos*)
15639  library_names_spec='$libname.ixlibrary $libname.a'
15640  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15641  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'
15642  ;;
15643
15644beos*)
15645  library_names_spec='${libname}${shared_ext}'
15646  dynamic_linker="$host_os ld.so"
15647  shlibpath_var=LIBRARY_PATH
15648  ;;
15649
15650bsdi[45]*)
15651  version_type=linux
15652  need_version=no
15653  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15654  soname_spec='${libname}${release}${shared_ext}$major'
15655  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15656  shlibpath_var=LD_LIBRARY_PATH
15657  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15658  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15659  # the default ld.so.conf also contains /usr/contrib/lib and
15660  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15661  # libtool to hard-code these into programs
15662  ;;
15663
15664cygwin* | mingw* | pw32*)
15665  version_type=windows
15666  shrext_cmds=".dll"
15667  need_version=no
15668  need_lib_prefix=no
15669
15670  case $GCC,$host_os in
15671  yes,cygwin* | yes,mingw* | yes,pw32*)
15672    library_names_spec='$libname.dll.a'
15673    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15674    postinstall_cmds='base_file=`basename \${file}`~
15675      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15676      dldir=$destdir/`dirname \$dlpath`~
15677      test -d \$dldir || mkdir -p \$dldir~
15678      $install_prog $dir/$dlname \$dldir/$dlname~
15679      chmod a+x \$dldir/$dlname'
15680    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15681      dlpath=$dir/\$dldll~
15682       $rm \$dlpath'
15683    shlibpath_overrides_runpath=yes
15684
15685    case $host_os in
15686    cygwin*)
15687      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15688      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15689      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15690      ;;
15691    mingw*)
15692      # MinGW DLLs use traditional 'lib' prefix
15693      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15694      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15695      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15696        # It is most probably a Windows format PATH printed by
15697        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15698        # path with ; separators, and with drive letters. We can handle the
15699        # drive letters (cygwin fileutils understands them), so leave them,
15700        # especially as we might pass files found there to a mingw objdump,
15701        # which wouldn't understand a cygwinified path. Ahh.
15702        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15703      else
15704        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15705      fi
15706      ;;
15707    pw32*)
15708      # pw32 DLLs use 'pw' prefix rather than 'lib'
15709      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15710      ;;
15711    esac
15712    ;;
15713
15714  *)
15715    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15716    ;;
15717  esac
15718  dynamic_linker='Win32 ld.exe'
15719  # FIXME: first we should search . and the directory the executable is in
15720  shlibpath_var=PATH
15721  ;;
15722
15723darwin* | rhapsody*)
15724  dynamic_linker="$host_os dyld"
15725  version_type=darwin
15726  need_lib_prefix=no
15727  need_version=no
15728  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15729  soname_spec='${libname}${release}${major}$shared_ext'
15730  shlibpath_overrides_runpath=yes
15731  shlibpath_var=DYLD_LIBRARY_PATH
15732  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15733
15734  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15735  ;;
15736
15737dgux*)
15738  version_type=linux
15739  need_lib_prefix=no
15740  need_version=no
15741  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15742  soname_spec='${libname}${release}${shared_ext}$major'
15743  shlibpath_var=LD_LIBRARY_PATH
15744  ;;
15745
15746freebsd1*)
15747  dynamic_linker=no
15748  ;;
15749
15750freebsd* | dragonfly*)
15751  # DragonFly does not have aout.  When/if they implement a new
15752  # versioning mechanism, adjust this.
15753  if test -x /usr/bin/objformat; then
15754    objformat=`/usr/bin/objformat`
15755  else
15756    case $host_os in
15757    freebsd[123]*) objformat=aout ;;
15758    *) objformat=elf ;;
15759    esac
15760  fi
15761  version_type=freebsd-$objformat
15762  case $version_type in
15763    freebsd-elf*)
15764      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15765      need_version=no
15766      need_lib_prefix=no
15767      ;;
15768    freebsd-*)
15769      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15770      need_version=yes
15771      ;;
15772  esac
15773  shlibpath_var=LD_LIBRARY_PATH
15774  case $host_os in
15775  freebsd2*)
15776    shlibpath_overrides_runpath=yes
15777    ;;
15778  freebsd3.[01]* | freebsdelf3.[01]*)
15779    shlibpath_overrides_runpath=yes
15780    hardcode_into_libs=yes
15781    ;;
15782  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15783  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15784    shlibpath_overrides_runpath=no
15785    hardcode_into_libs=yes
15786    ;;
15787  *) # from 4.6 on, and DragonFly
15788    shlibpath_overrides_runpath=yes
15789    hardcode_into_libs=yes
15790    ;;
15791  esac
15792  ;;
15793
15794gnu*)
15795  version_type=linux
15796  need_lib_prefix=no
15797  need_version=no
15798  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15799  soname_spec='${libname}${release}${shared_ext}$major'
15800  shlibpath_var=LD_LIBRARY_PATH
15801  hardcode_into_libs=yes
15802  ;;
15803
15804hpux9* | hpux10* | hpux11*)
15805  # Give a soname corresponding to the major version so that dld.sl refuses to
15806  # link against other versions.
15807  version_type=sunos
15808  need_lib_prefix=no
15809  need_version=no
15810  case $host_cpu in
15811  ia64*)
15812    shrext_cmds='.so'
15813    hardcode_into_libs=yes
15814    dynamic_linker="$host_os dld.so"
15815    shlibpath_var=LD_LIBRARY_PATH
15816    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15817    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15818    soname_spec='${libname}${release}${shared_ext}$major'
15819    if test "X$HPUX_IA64_MODE" = X32; then
15820      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15821    else
15822      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15823    fi
15824    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15825    ;;
15826   hppa*64*)
15827     shrext_cmds='.sl'
15828     hardcode_into_libs=yes
15829     dynamic_linker="$host_os dld.sl"
15830     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15831     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15832     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15833     soname_spec='${libname}${release}${shared_ext}$major'
15834     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15835     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15836     ;;
15837   *)
15838    shrext_cmds='.sl'
15839    dynamic_linker="$host_os dld.sl"
15840    shlibpath_var=SHLIB_PATH
15841    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15842    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15843    soname_spec='${libname}${release}${shared_ext}$major'
15844    ;;
15845  esac
15846  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15847  postinstall_cmds='chmod 555 $lib'
15848  ;;
15849
15850interix[3-9]*)
15851  version_type=linux
15852  need_lib_prefix=no
15853  need_version=no
15854  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15855  soname_spec='${libname}${release}${shared_ext}$major'
15856  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15857  shlibpath_var=LD_LIBRARY_PATH
15858  shlibpath_overrides_runpath=no
15859  hardcode_into_libs=yes
15860  ;;
15861
15862irix5* | irix6* | nonstopux*)
15863  case $host_os in
15864    nonstopux*) version_type=nonstopux ;;
15865    *)
15866	if test "$lt_cv_prog_gnu_ld" = yes; then
15867		version_type=linux
15868	else
15869		version_type=irix
15870	fi ;;
15871  esac
15872  need_lib_prefix=no
15873  need_version=no
15874  soname_spec='${libname}${release}${shared_ext}$major'
15875  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15876  case $host_os in
15877  irix5* | nonstopux*)
15878    libsuff= shlibsuff=
15879    ;;
15880  *)
15881    case $LD in # libtool.m4 will add one of these switches to LD
15882    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15883      libsuff= shlibsuff= libmagic=32-bit;;
15884    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15885      libsuff=32 shlibsuff=N32 libmagic=N32;;
15886    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15887      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15888    *) libsuff= shlibsuff= libmagic=never-match;;
15889    esac
15890    ;;
15891  esac
15892  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15893  shlibpath_overrides_runpath=no
15894  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15895  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15896  hardcode_into_libs=yes
15897  ;;
15898
15899# No shared lib support for Linux oldld, aout, or coff.
15900linux*oldld* | linux*aout* | linux*coff*)
15901  dynamic_linker=no
15902  ;;
15903
15904# This must be Linux ELF.
15905linux* | k*bsd*-gnu)
15906  version_type=linux
15907  need_lib_prefix=no
15908  need_version=no
15909  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15910  soname_spec='${libname}${release}${shared_ext}$major'
15911  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15912  shlibpath_var=LD_LIBRARY_PATH
15913  shlibpath_overrides_runpath=no
15914  # This implies no fast_install, which is unacceptable.
15915  # Some rework will be needed to allow for fast_install
15916  # before this can be enabled.
15917  hardcode_into_libs=yes
15918
15919  # Append ld.so.conf contents to the search path
15920  if test -f /etc/ld.so.conf; then
15921    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15922    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15923  fi
15924
15925  # We used to test for /lib/ld.so.1 and disable shared libraries on
15926  # powerpc, because MkLinux only supported shared libraries with the
15927  # GNU dynamic linker.  Since this was broken with cross compilers,
15928  # most powerpc-linux boxes support dynamic linking these days and
15929  # people can always --disable-shared, the test was removed, and we
15930  # assume the GNU/Linux dynamic linker is in use.
15931  dynamic_linker='GNU/Linux ld.so'
15932  ;;
15933
15934netbsdelf*-gnu)
15935  version_type=linux
15936  need_lib_prefix=no
15937  need_version=no
15938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15939  soname_spec='${libname}${release}${shared_ext}$major'
15940  shlibpath_var=LD_LIBRARY_PATH
15941  shlibpath_overrides_runpath=no
15942  hardcode_into_libs=yes
15943  dynamic_linker='NetBSD ld.elf_so'
15944  ;;
15945
15946netbsd*)
15947  version_type=sunos
15948  need_lib_prefix=no
15949  need_version=no
15950  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15951    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15952    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15953    dynamic_linker='NetBSD (a.out) ld.so'
15954  else
15955    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15956    soname_spec='${libname}${release}${shared_ext}$major'
15957    dynamic_linker='NetBSD ld.elf_so'
15958  fi
15959  shlibpath_var=LD_LIBRARY_PATH
15960  shlibpath_overrides_runpath=yes
15961  hardcode_into_libs=yes
15962  ;;
15963
15964newsos6)
15965  version_type=linux
15966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15967  shlibpath_var=LD_LIBRARY_PATH
15968  shlibpath_overrides_runpath=yes
15969  ;;
15970
15971nto-qnx*)
15972  version_type=linux
15973  need_lib_prefix=no
15974  need_version=no
15975  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15976  soname_spec='${libname}${release}${shared_ext}$major'
15977  shlibpath_var=LD_LIBRARY_PATH
15978  shlibpath_overrides_runpath=yes
15979  ;;
15980
15981openbsd*)
15982  version_type=sunos
15983  sys_lib_dlsearch_path_spec="/usr/lib"
15984  need_lib_prefix=no
15985  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15986  case $host_os in
15987    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15988    *)                         need_version=no  ;;
15989  esac
15990  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15991  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15992  shlibpath_var=LD_LIBRARY_PATH
15993  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15994    case $host_os in
15995      openbsd2.[89] | openbsd2.[89].*)
15996	shlibpath_overrides_runpath=no
15997	;;
15998      *)
15999	shlibpath_overrides_runpath=yes
16000	;;
16001      esac
16002  else
16003    shlibpath_overrides_runpath=yes
16004  fi
16005  ;;
16006
16007os2*)
16008  libname_spec='$name'
16009  shrext_cmds=".dll"
16010  need_lib_prefix=no
16011  library_names_spec='$libname${shared_ext} $libname.a'
16012  dynamic_linker='OS/2 ld.exe'
16013  shlibpath_var=LIBPATH
16014  ;;
16015
16016osf3* | osf4* | osf5*)
16017  version_type=osf
16018  need_lib_prefix=no
16019  need_version=no
16020  soname_spec='${libname}${release}${shared_ext}$major'
16021  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16022  shlibpath_var=LD_LIBRARY_PATH
16023  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16024  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16025  ;;
16026
16027rdos*)
16028  dynamic_linker=no
16029  ;;
16030
16031solaris*)
16032  version_type=linux
16033  need_lib_prefix=no
16034  need_version=no
16035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16036  soname_spec='${libname}${release}${shared_ext}$major'
16037  shlibpath_var=LD_LIBRARY_PATH
16038  shlibpath_overrides_runpath=yes
16039  hardcode_into_libs=yes
16040  # ldd complains unless libraries are executable
16041  postinstall_cmds='chmod +x $lib'
16042  ;;
16043
16044sunos4*)
16045  version_type=sunos
16046  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16047  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16048  shlibpath_var=LD_LIBRARY_PATH
16049  shlibpath_overrides_runpath=yes
16050  if test "$with_gnu_ld" = yes; then
16051    need_lib_prefix=no
16052  fi
16053  need_version=yes
16054  ;;
16055
16056sysv4 | sysv4.3*)
16057  version_type=linux
16058  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16059  soname_spec='${libname}${release}${shared_ext}$major'
16060  shlibpath_var=LD_LIBRARY_PATH
16061  case $host_vendor in
16062    sni)
16063      shlibpath_overrides_runpath=no
16064      need_lib_prefix=no
16065      export_dynamic_flag_spec='${wl}-Blargedynsym'
16066      runpath_var=LD_RUN_PATH
16067      ;;
16068    siemens)
16069      need_lib_prefix=no
16070      ;;
16071    motorola)
16072      need_lib_prefix=no
16073      need_version=no
16074      shlibpath_overrides_runpath=no
16075      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16076      ;;
16077  esac
16078  ;;
16079
16080sysv4*MP*)
16081  if test -d /usr/nec ;then
16082    version_type=linux
16083    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16084    soname_spec='$libname${shared_ext}.$major'
16085    shlibpath_var=LD_LIBRARY_PATH
16086  fi
16087  ;;
16088
16089sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16090  version_type=freebsd-elf
16091  need_lib_prefix=no
16092  need_version=no
16093  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16094  soname_spec='${libname}${release}${shared_ext}$major'
16095  shlibpath_var=LD_LIBRARY_PATH
16096  hardcode_into_libs=yes
16097  if test "$with_gnu_ld" = yes; then
16098    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16099    shlibpath_overrides_runpath=no
16100  else
16101    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16102    shlibpath_overrides_runpath=yes
16103    case $host_os in
16104      sco3.2v5*)
16105        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16106	;;
16107    esac
16108  fi
16109  sys_lib_dlsearch_path_spec='/usr/lib'
16110  ;;
16111
16112uts4*)
16113  version_type=linux
16114  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16115  soname_spec='${libname}${release}${shared_ext}$major'
16116  shlibpath_var=LD_LIBRARY_PATH
16117  ;;
16118
16119*)
16120  dynamic_linker=no
16121  ;;
16122esac
16123{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16124echo "${ECHO_T}$dynamic_linker" >&6; }
16125test "$dynamic_linker" = no && can_build_shared=no
16126
16127if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16128  echo $ECHO_N "(cached) $ECHO_C" >&6
16129else
16130  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16131fi
16132
16133sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16134if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16135  echo $ECHO_N "(cached) $ECHO_C" >&6
16136else
16137  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16138fi
16139
16140sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16141
16142variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16143if test "$GCC" = yes; then
16144  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16145fi
16146
16147{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16148echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16149hardcode_action_F77=
16150if test -n "$hardcode_libdir_flag_spec_F77" || \
16151   test -n "$runpath_var_F77" || \
16152   test "X$hardcode_automatic_F77" = "Xyes" ; then
16153
16154  # We can hardcode non-existant directories.
16155  if test "$hardcode_direct_F77" != no &&
16156     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16157     # have to relink, otherwise we might link with an installed library
16158     # when we should be linking with a yet-to-be-installed one
16159     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16160     test "$hardcode_minus_L_F77" != no; then
16161    # Linking always hardcodes the temporary library directory.
16162    hardcode_action_F77=relink
16163  else
16164    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16165    hardcode_action_F77=immediate
16166  fi
16167else
16168  # We cannot hardcode anything, or else we can only hardcode existing
16169  # directories.
16170  hardcode_action_F77=unsupported
16171fi
16172{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16173echo "${ECHO_T}$hardcode_action_F77" >&6; }
16174
16175if test "$hardcode_action_F77" = relink; then
16176  # Fast installation is not supported
16177  enable_fast_install=no
16178elif test "$shlibpath_overrides_runpath" = yes ||
16179     test "$enable_shared" = no; then
16180  # Fast installation is not necessary
16181  enable_fast_install=needless
16182fi
16183
16184
16185# The else clause should only fire when bootstrapping the
16186# libtool distribution, otherwise you forgot to ship ltmain.sh
16187# with your package, and you will get complaints that there are
16188# no rules to generate ltmain.sh.
16189if test -f "$ltmain"; then
16190  # See if we are running on zsh, and set the options which allow our commands through
16191  # without removal of \ escapes.
16192  if test -n "${ZSH_VERSION+set}" ; then
16193    setopt NO_GLOB_SUBST
16194  fi
16195  # Now quote all the things that may contain metacharacters while being
16196  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16197  # variables and quote the copies for generation of the libtool script.
16198  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16199    SED SHELL STRIP \
16200    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16201    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16202    deplibs_check_method reload_flag reload_cmds need_locks \
16203    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16204    lt_cv_sys_global_symbol_to_c_name_address \
16205    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16206    old_postinstall_cmds old_postuninstall_cmds \
16207    compiler_F77 \
16208    CC_F77 \
16209    LD_F77 \
16210    lt_prog_compiler_wl_F77 \
16211    lt_prog_compiler_pic_F77 \
16212    lt_prog_compiler_static_F77 \
16213    lt_prog_compiler_no_builtin_flag_F77 \
16214    export_dynamic_flag_spec_F77 \
16215    thread_safe_flag_spec_F77 \
16216    whole_archive_flag_spec_F77 \
16217    enable_shared_with_static_runtimes_F77 \
16218    old_archive_cmds_F77 \
16219    old_archive_from_new_cmds_F77 \
16220    predep_objects_F77 \
16221    postdep_objects_F77 \
16222    predeps_F77 \
16223    postdeps_F77 \
16224    compiler_lib_search_path_F77 \
16225    compiler_lib_search_dirs_F77 \
16226    archive_cmds_F77 \
16227    archive_expsym_cmds_F77 \
16228    postinstall_cmds_F77 \
16229    postuninstall_cmds_F77 \
16230    old_archive_from_expsyms_cmds_F77 \
16231    allow_undefined_flag_F77 \
16232    no_undefined_flag_F77 \
16233    export_symbols_cmds_F77 \
16234    hardcode_libdir_flag_spec_F77 \
16235    hardcode_libdir_flag_spec_ld_F77 \
16236    hardcode_libdir_separator_F77 \
16237    hardcode_automatic_F77 \
16238    module_cmds_F77 \
16239    module_expsym_cmds_F77 \
16240    lt_cv_prog_compiler_c_o_F77 \
16241    fix_srcfile_path_F77 \
16242    exclude_expsyms_F77 \
16243    include_expsyms_F77; do
16244
16245    case $var in
16246    old_archive_cmds_F77 | \
16247    old_archive_from_new_cmds_F77 | \
16248    archive_cmds_F77 | \
16249    archive_expsym_cmds_F77 | \
16250    module_cmds_F77 | \
16251    module_expsym_cmds_F77 | \
16252    old_archive_from_expsyms_cmds_F77 | \
16253    export_symbols_cmds_F77 | \
16254    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16255    postinstall_cmds | postuninstall_cmds | \
16256    old_postinstall_cmds | old_postuninstall_cmds | \
16257    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16258      # Double-quote double-evaled strings.
16259      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16260      ;;
16261    *)
16262      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16263      ;;
16264    esac
16265  done
16266
16267  case $lt_echo in
16268  *'\$0 --fallback-echo"')
16269    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16270    ;;
16271  esac
16272
16273cfgfile="$ofile"
16274
16275  cat <<__EOF__ >> "$cfgfile"
16276# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16277
16278# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16279
16280# Shell to use when invoking shell scripts.
16281SHELL=$lt_SHELL
16282
16283# Whether or not to build shared libraries.
16284build_libtool_libs=$enable_shared
16285
16286# Whether or not to build static libraries.
16287build_old_libs=$enable_static
16288
16289# Whether or not to add -lc for building shared libraries.
16290build_libtool_need_lc=$archive_cmds_need_lc_F77
16291
16292# Whether or not to disallow shared libs when runtime libs are static
16293allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16294
16295# Whether or not to optimize for fast installation.
16296fast_install=$enable_fast_install
16297
16298# The host system.
16299host_alias=$host_alias
16300host=$host
16301host_os=$host_os
16302
16303# The build system.
16304build_alias=$build_alias
16305build=$build
16306build_os=$build_os
16307
16308# An echo program that does not interpret backslashes.
16309echo=$lt_echo
16310
16311# The archiver.
16312AR=$lt_AR
16313AR_FLAGS=$lt_AR_FLAGS
16314
16315# A C compiler.
16316LTCC=$lt_LTCC
16317
16318# LTCC compiler flags.
16319LTCFLAGS=$lt_LTCFLAGS
16320
16321# A language-specific compiler.
16322CC=$lt_compiler_F77
16323
16324# Is the compiler the GNU C compiler?
16325with_gcc=$GCC_F77
16326
16327# An ERE matcher.
16328EGREP=$lt_EGREP
16329
16330# The linker used to build libraries.
16331LD=$lt_LD_F77
16332
16333# Whether we need hard or soft links.
16334LN_S=$lt_LN_S
16335
16336# A BSD-compatible nm program.
16337NM=$lt_NM
16338
16339# A symbol stripping program
16340STRIP=$lt_STRIP
16341
16342# Used to examine libraries when file_magic_cmd begins "file"
16343MAGIC_CMD=$MAGIC_CMD
16344
16345# Used on cygwin: DLL creation program.
16346DLLTOOL="$DLLTOOL"
16347
16348# Used on cygwin: object dumper.
16349OBJDUMP="$OBJDUMP"
16350
16351# Used on cygwin: assembler.
16352AS="$AS"
16353
16354# The name of the directory that contains temporary libtool files.
16355objdir=$objdir
16356
16357# How to create reloadable object files.
16358reload_flag=$lt_reload_flag
16359reload_cmds=$lt_reload_cmds
16360
16361# How to pass a linker flag through the compiler.
16362wl=$lt_lt_prog_compiler_wl_F77
16363
16364# Object file suffix (normally "o").
16365objext="$ac_objext"
16366
16367# Old archive suffix (normally "a").
16368libext="$libext"
16369
16370# Shared library suffix (normally ".so").
16371shrext_cmds='$shrext_cmds'
16372
16373# Executable file suffix (normally "").
16374exeext="$exeext"
16375
16376# Additional compiler flags for building library objects.
16377pic_flag=$lt_lt_prog_compiler_pic_F77
16378pic_mode=$pic_mode
16379
16380# What is the maximum length of a command?
16381max_cmd_len=$lt_cv_sys_max_cmd_len
16382
16383# Does compiler simultaneously support -c and -o options?
16384compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16385
16386# Must we lock files when doing compilation?
16387need_locks=$lt_need_locks
16388
16389# Do we need the lib prefix for modules?
16390need_lib_prefix=$need_lib_prefix
16391
16392# Do we need a version for libraries?
16393need_version=$need_version
16394
16395# Whether dlopen is supported.
16396dlopen_support=$enable_dlopen
16397
16398# Whether dlopen of programs is supported.
16399dlopen_self=$enable_dlopen_self
16400
16401# Whether dlopen of statically linked programs is supported.
16402dlopen_self_static=$enable_dlopen_self_static
16403
16404# Compiler flag to prevent dynamic linking.
16405link_static_flag=$lt_lt_prog_compiler_static_F77
16406
16407# Compiler flag to turn off builtin functions.
16408no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16409
16410# Compiler flag to allow reflexive dlopens.
16411export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16412
16413# Compiler flag to generate shared objects directly from archives.
16414whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16415
16416# Compiler flag to generate thread-safe objects.
16417thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16418
16419# Library versioning type.
16420version_type=$version_type
16421
16422# Format of library name prefix.
16423libname_spec=$lt_libname_spec
16424
16425# List of archive names.  First name is the real one, the rest are links.
16426# The last name is the one that the linker finds with -lNAME.
16427library_names_spec=$lt_library_names_spec
16428
16429# The coded name of the library, if different from the real name.
16430soname_spec=$lt_soname_spec
16431
16432# Commands used to build and install an old-style archive.
16433RANLIB=$lt_RANLIB
16434old_archive_cmds=$lt_old_archive_cmds_F77
16435old_postinstall_cmds=$lt_old_postinstall_cmds
16436old_postuninstall_cmds=$lt_old_postuninstall_cmds
16437
16438# Create an old-style archive from a shared archive.
16439old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16440
16441# Create a temporary old-style archive to link instead of a shared archive.
16442old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16443
16444# Commands used to build and install a shared archive.
16445archive_cmds=$lt_archive_cmds_F77
16446archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16447postinstall_cmds=$lt_postinstall_cmds
16448postuninstall_cmds=$lt_postuninstall_cmds
16449
16450# Commands used to build a loadable module (assumed same as above if empty)
16451module_cmds=$lt_module_cmds_F77
16452module_expsym_cmds=$lt_module_expsym_cmds_F77
16453
16454# Commands to strip libraries.
16455old_striplib=$lt_old_striplib
16456striplib=$lt_striplib
16457
16458# Dependencies to place before the objects being linked to create a
16459# shared library.
16460predep_objects=$lt_predep_objects_F77
16461
16462# Dependencies to place after the objects being linked to create a
16463# shared library.
16464postdep_objects=$lt_postdep_objects_F77
16465
16466# Dependencies to place before the objects being linked to create a
16467# shared library.
16468predeps=$lt_predeps_F77
16469
16470# Dependencies to place after the objects being linked to create a
16471# shared library.
16472postdeps=$lt_postdeps_F77
16473
16474# The directories searched by this compiler when creating a shared
16475# library
16476compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16477
16478# The library search path used internally by the compiler when linking
16479# a shared library.
16480compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16481
16482# Method to check whether dependent libraries are shared objects.
16483deplibs_check_method=$lt_deplibs_check_method
16484
16485# Command to use when deplibs_check_method == file_magic.
16486file_magic_cmd=$lt_file_magic_cmd
16487
16488# Flag that allows shared libraries with undefined symbols to be built.
16489allow_undefined_flag=$lt_allow_undefined_flag_F77
16490
16491# Flag that forces no undefined symbols.
16492no_undefined_flag=$lt_no_undefined_flag_F77
16493
16494# Commands used to finish a libtool library installation in a directory.
16495finish_cmds=$lt_finish_cmds
16496
16497# Same as above, but a single script fragment to be evaled but not shown.
16498finish_eval=$lt_finish_eval
16499
16500# Take the output of nm and produce a listing of raw symbols and C names.
16501global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16502
16503# Transform the output of nm in a proper C declaration
16504global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16505
16506# Transform the output of nm in a C name address pair
16507global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16508
16509# This is the shared library runtime path variable.
16510runpath_var=$runpath_var
16511
16512# This is the shared library path variable.
16513shlibpath_var=$shlibpath_var
16514
16515# Is shlibpath searched before the hard-coded library search path?
16516shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16517
16518# How to hardcode a shared library path into an executable.
16519hardcode_action=$hardcode_action_F77
16520
16521# Whether we should hardcode library paths into libraries.
16522hardcode_into_libs=$hardcode_into_libs
16523
16524# Flag to hardcode \$libdir into a binary during linking.
16525# This must work even if \$libdir does not exist.
16526hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16527
16528# If ld is used when linking, flag to hardcode \$libdir into
16529# a binary during linking. This must work even if \$libdir does
16530# not exist.
16531hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16532
16533# Whether we need a single -rpath flag with a separated argument.
16534hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16535
16536# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16537# resulting binary.
16538hardcode_direct=$hardcode_direct_F77
16539
16540# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16541# resulting binary.
16542hardcode_minus_L=$hardcode_minus_L_F77
16543
16544# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16545# the resulting binary.
16546hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16547
16548# Set to yes if building a shared library automatically hardcodes DIR into the library
16549# and all subsequent libraries and executables linked against it.
16550hardcode_automatic=$hardcode_automatic_F77
16551
16552# Variables whose values should be saved in libtool wrapper scripts and
16553# restored at relink time.
16554variables_saved_for_relink="$variables_saved_for_relink"
16555
16556# Whether libtool must link a program against all its dependency libraries.
16557link_all_deplibs=$link_all_deplibs_F77
16558
16559# Compile-time system search path for libraries
16560sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16561
16562# Run-time system search path for libraries
16563sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16564
16565# Fix the shell variable \$srcfile for the compiler.
16566fix_srcfile_path=$lt_fix_srcfile_path
16567
16568# Set to yes if exported symbols are required.
16569always_export_symbols=$always_export_symbols_F77
16570
16571# The commands to list exported symbols.
16572export_symbols_cmds=$lt_export_symbols_cmds_F77
16573
16574# The commands to extract the exported symbol list from a shared archive.
16575extract_expsyms_cmds=$lt_extract_expsyms_cmds
16576
16577# Symbols that should not be listed in the preloaded symbols.
16578exclude_expsyms=$lt_exclude_expsyms_F77
16579
16580# Symbols that must always be exported.
16581include_expsyms=$lt_include_expsyms_F77
16582
16583# ### END LIBTOOL TAG CONFIG: $tagname
16584
16585__EOF__
16586
16587
16588else
16589  # If there is no Makefile yet, we rely on a make rule to execute
16590  # `config.status --recheck' to rerun these tests and create the
16591  # libtool script then.
16592  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16593  if test -f "$ltmain_in"; then
16594    test -f Makefile && make "$ltmain"
16595  fi
16596fi
16597
16598
16599ac_ext=c
16600ac_cpp='$CPP $CPPFLAGS'
16601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16603ac_compiler_gnu=$ac_cv_c_compiler_gnu
16604
16605CC="$lt_save_CC"
16606
16607	else
16608	  tagname=""
16609	fi
16610	;;
16611
16612      GCJ)
16613	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16614
16615
16616# Source file extension for Java test sources.
16617ac_ext=java
16618
16619# Object file extension for compiled Java test sources.
16620objext=o
16621objext_GCJ=$objext
16622
16623# Code to be used in simple compile tests
16624lt_simple_compile_test_code="class foo {}"
16625
16626# Code to be used in simple link tests
16627lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16628
16629# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16630
16631# If no C compiler was specified, use CC.
16632LTCC=${LTCC-"$CC"}
16633
16634# If no C compiler flags were specified, use CFLAGS.
16635LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16636
16637# Allow CC to be a program name with arguments.
16638compiler=$CC
16639
16640
16641# save warnings/boilerplate of simple test code
16642ac_outfile=conftest.$ac_objext
16643echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16644eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16645_lt_compiler_boilerplate=`cat conftest.err`
16646$rm conftest*
16647
16648ac_outfile=conftest.$ac_objext
16649echo "$lt_simple_link_test_code" >conftest.$ac_ext
16650eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16651_lt_linker_boilerplate=`cat conftest.err`
16652$rm -r conftest*
16653
16654
16655# Allow CC to be a program name with arguments.
16656lt_save_CC="$CC"
16657CC=${GCJ-"gcj"}
16658compiler=$CC
16659compiler_GCJ=$CC
16660for cc_temp in $compiler""; do
16661  case $cc_temp in
16662    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16663    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16664    \-*) ;;
16665    *) break;;
16666  esac
16667done
16668cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16669
16670
16671# GCJ did not exist at the time GCC didn't implicitly link libc in.
16672archive_cmds_need_lc_GCJ=no
16673
16674old_archive_cmds_GCJ=$old_archive_cmds
16675
16676
16677lt_prog_compiler_no_builtin_flag_GCJ=
16678
16679if test "$GCC" = yes; then
16680  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16681
16682
16683{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16684echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16685if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16686  echo $ECHO_N "(cached) $ECHO_C" >&6
16687else
16688  lt_cv_prog_compiler_rtti_exceptions=no
16689  ac_outfile=conftest.$ac_objext
16690   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16691   lt_compiler_flag="-fno-rtti -fno-exceptions"
16692   # Insert the option either (1) after the last *FLAGS variable, or
16693   # (2) before a word containing "conftest.", or (3) at the end.
16694   # Note that $ac_compile itself does not contain backslashes and begins
16695   # with a dollar sign (not a hyphen), so the echo should work correctly.
16696   # The option is referenced via a variable to avoid confusing sed.
16697   lt_compile=`echo "$ac_compile" | $SED \
16698   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16699   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16700   -e 's:$: $lt_compiler_flag:'`
16701   (eval echo "\"\$as_me:16701: $lt_compile\"" >&5)
16702   (eval "$lt_compile" 2>conftest.err)
16703   ac_status=$?
16704   cat conftest.err >&5
16705   echo "$as_me:16705: \$? = $ac_status" >&5
16706   if (exit $ac_status) && test -s "$ac_outfile"; then
16707     # The compiler can only warn and ignore the option if not recognized
16708     # So say no if there are warnings other than the usual output.
16709     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16710     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16711     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16712       lt_cv_prog_compiler_rtti_exceptions=yes
16713     fi
16714   fi
16715   $rm conftest*
16716
16717fi
16718{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16719echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16720
16721if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16722    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16723else
16724    :
16725fi
16726
16727fi
16728
16729lt_prog_compiler_wl_GCJ=
16730lt_prog_compiler_pic_GCJ=
16731lt_prog_compiler_static_GCJ=
16732
16733{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16734echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16735
16736  if test "$GCC" = yes; then
16737    lt_prog_compiler_wl_GCJ='-Wl,'
16738    lt_prog_compiler_static_GCJ='-static'
16739
16740    case $host_os in
16741      aix*)
16742      # All AIX code is PIC.
16743      if test "$host_cpu" = ia64; then
16744	# AIX 5 now supports IA64 processor
16745	lt_prog_compiler_static_GCJ='-Bstatic'
16746      fi
16747      ;;
16748
16749    amigaos*)
16750      # FIXME: we need at least 68020 code to build shared libraries, but
16751      # adding the `-m68020' flag to GCC prevents building anything better,
16752      # like `-m68040'.
16753      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16754      ;;
16755
16756    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16757      # PIC is the default for these OSes.
16758      ;;
16759
16760    mingw* | cygwin* | pw32* | os2*)
16761      # This hack is so that the source file can tell whether it is being
16762      # built for inclusion in a dll (and should export symbols for example).
16763      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16764      # (--disable-auto-import) libraries
16765
16766      ;;
16767
16768    darwin* | rhapsody*)
16769      # PIC is the default on this platform
16770      # Common symbols not allowed in MH_DYLIB files
16771      lt_prog_compiler_pic_GCJ='-fno-common'
16772      ;;
16773
16774    interix[3-9]*)
16775      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16776      # Instead, we relocate shared libraries at runtime.
16777      ;;
16778
16779    msdosdjgpp*)
16780      # Just because we use GCC doesn't mean we suddenly get shared libraries
16781      # on systems that don't support them.
16782      lt_prog_compiler_can_build_shared_GCJ=no
16783      enable_shared=no
16784      ;;
16785
16786    sysv4*MP*)
16787      if test -d /usr/nec; then
16788	lt_prog_compiler_pic_GCJ=-Kconform_pic
16789      fi
16790      ;;
16791
16792    hpux*)
16793      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16794      # not for PA HP-UX.
16795      case $host_cpu in
16796      hppa*64*|ia64*)
16797	# +Z the default
16798	;;
16799      *)
16800	lt_prog_compiler_pic_GCJ='-fPIC'
16801	;;
16802      esac
16803      ;;
16804
16805    *)
16806      lt_prog_compiler_pic_GCJ='-fPIC'
16807      ;;
16808    esac
16809  else
16810    # PORTME Check for flag to pass linker flags through the system compiler.
16811    case $host_os in
16812    aix*)
16813      lt_prog_compiler_wl_GCJ='-Wl,'
16814      if test "$host_cpu" = ia64; then
16815	# AIX 5 now supports IA64 processor
16816	lt_prog_compiler_static_GCJ='-Bstatic'
16817      else
16818	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16819      fi
16820      ;;
16821      darwin*)
16822        # PIC is the default on this platform
16823        # Common symbols not allowed in MH_DYLIB files
16824       case $cc_basename in
16825         xlc*)
16826         lt_prog_compiler_pic_GCJ='-qnocommon'
16827         lt_prog_compiler_wl_GCJ='-Wl,'
16828         ;;
16829       esac
16830       ;;
16831
16832    mingw* | cygwin* | pw32* | os2*)
16833      # This hack is so that the source file can tell whether it is being
16834      # built for inclusion in a dll (and should export symbols for example).
16835
16836      ;;
16837
16838    hpux9* | hpux10* | hpux11*)
16839      lt_prog_compiler_wl_GCJ='-Wl,'
16840      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16841      # not for PA HP-UX.
16842      case $host_cpu in
16843      hppa*64*|ia64*)
16844	# +Z the default
16845	;;
16846      *)
16847	lt_prog_compiler_pic_GCJ='+Z'
16848	;;
16849      esac
16850      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16851      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16852      ;;
16853
16854    irix5* | irix6* | nonstopux*)
16855      lt_prog_compiler_wl_GCJ='-Wl,'
16856      # PIC (with -KPIC) is the default.
16857      lt_prog_compiler_static_GCJ='-non_shared'
16858      ;;
16859
16860    newsos6)
16861      lt_prog_compiler_pic_GCJ='-KPIC'
16862      lt_prog_compiler_static_GCJ='-Bstatic'
16863      ;;
16864
16865    linux* | k*bsd*-gnu)
16866      case $cc_basename in
16867      icc* | ecc*)
16868	lt_prog_compiler_wl_GCJ='-Wl,'
16869	lt_prog_compiler_pic_GCJ='-KPIC'
16870	lt_prog_compiler_static_GCJ='-static'
16871        ;;
16872      pgcc* | pgf77* | pgf90* | pgf95*)
16873        # Portland Group compilers (*not* the Pentium gcc compiler,
16874	# which looks to be a dead project)
16875	lt_prog_compiler_wl_GCJ='-Wl,'
16876	lt_prog_compiler_pic_GCJ='-fpic'
16877	lt_prog_compiler_static_GCJ='-Bstatic'
16878        ;;
16879      ccc*)
16880        lt_prog_compiler_wl_GCJ='-Wl,'
16881        # All Alpha code is PIC.
16882        lt_prog_compiler_static_GCJ='-non_shared'
16883        ;;
16884      *)
16885        case `$CC -V 2>&1 | sed 5q` in
16886	*Sun\ C*)
16887	  # Sun C 5.9
16888	  lt_prog_compiler_pic_GCJ='-KPIC'
16889	  lt_prog_compiler_static_GCJ='-Bstatic'
16890	  lt_prog_compiler_wl_GCJ='-Wl,'
16891	  ;;
16892	*Sun\ F*)
16893	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16894	  lt_prog_compiler_pic_GCJ='-KPIC'
16895	  lt_prog_compiler_static_GCJ='-Bstatic'
16896	  lt_prog_compiler_wl_GCJ=''
16897	  ;;
16898	esac
16899	;;
16900      esac
16901      ;;
16902
16903    osf3* | osf4* | osf5*)
16904      lt_prog_compiler_wl_GCJ='-Wl,'
16905      # All OSF/1 code is PIC.
16906      lt_prog_compiler_static_GCJ='-non_shared'
16907      ;;
16908
16909    rdos*)
16910      lt_prog_compiler_static_GCJ='-non_shared'
16911      ;;
16912
16913    solaris*)
16914      lt_prog_compiler_pic_GCJ='-KPIC'
16915      lt_prog_compiler_static_GCJ='-Bstatic'
16916      case $cc_basename in
16917      f77* | f90* | f95*)
16918	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16919      *)
16920	lt_prog_compiler_wl_GCJ='-Wl,';;
16921      esac
16922      ;;
16923
16924    sunos4*)
16925      lt_prog_compiler_wl_GCJ='-Qoption ld '
16926      lt_prog_compiler_pic_GCJ='-PIC'
16927      lt_prog_compiler_static_GCJ='-Bstatic'
16928      ;;
16929
16930    sysv4 | sysv4.2uw2* | sysv4.3*)
16931      lt_prog_compiler_wl_GCJ='-Wl,'
16932      lt_prog_compiler_pic_GCJ='-KPIC'
16933      lt_prog_compiler_static_GCJ='-Bstatic'
16934      ;;
16935
16936    sysv4*MP*)
16937      if test -d /usr/nec ;then
16938	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16939	lt_prog_compiler_static_GCJ='-Bstatic'
16940      fi
16941      ;;
16942
16943    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16944      lt_prog_compiler_wl_GCJ='-Wl,'
16945      lt_prog_compiler_pic_GCJ='-KPIC'
16946      lt_prog_compiler_static_GCJ='-Bstatic'
16947      ;;
16948
16949    unicos*)
16950      lt_prog_compiler_wl_GCJ='-Wl,'
16951      lt_prog_compiler_can_build_shared_GCJ=no
16952      ;;
16953
16954    uts4*)
16955      lt_prog_compiler_pic_GCJ='-pic'
16956      lt_prog_compiler_static_GCJ='-Bstatic'
16957      ;;
16958
16959    *)
16960      lt_prog_compiler_can_build_shared_GCJ=no
16961      ;;
16962    esac
16963  fi
16964
16965{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16966echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16967
16968#
16969# Check to make sure the PIC flag actually works.
16970#
16971if test -n "$lt_prog_compiler_pic_GCJ"; then
16972
16973{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16974echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16975if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16976  echo $ECHO_N "(cached) $ECHO_C" >&6
16977else
16978  lt_cv_prog_compiler_pic_works_GCJ=no
16979  ac_outfile=conftest.$ac_objext
16980   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16981   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16982   # Insert the option either (1) after the last *FLAGS variable, or
16983   # (2) before a word containing "conftest.", or (3) at the end.
16984   # Note that $ac_compile itself does not contain backslashes and begins
16985   # with a dollar sign (not a hyphen), so the echo should work correctly.
16986   # The option is referenced via a variable to avoid confusing sed.
16987   lt_compile=`echo "$ac_compile" | $SED \
16988   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16989   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16990   -e 's:$: $lt_compiler_flag:'`
16991   (eval echo "\"\$as_me:16991: $lt_compile\"" >&5)
16992   (eval "$lt_compile" 2>conftest.err)
16993   ac_status=$?
16994   cat conftest.err >&5
16995   echo "$as_me:16995: \$? = $ac_status" >&5
16996   if (exit $ac_status) && test -s "$ac_outfile"; then
16997     # The compiler can only warn and ignore the option if not recognized
16998     # So say no if there are warnings other than the usual output.
16999     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17000     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17001     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17002       lt_cv_prog_compiler_pic_works_GCJ=yes
17003     fi
17004   fi
17005   $rm conftest*
17006
17007fi
17008{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17009echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17010
17011if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17012    case $lt_prog_compiler_pic_GCJ in
17013     "" | " "*) ;;
17014     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17015     esac
17016else
17017    lt_prog_compiler_pic_GCJ=
17018     lt_prog_compiler_can_build_shared_GCJ=no
17019fi
17020
17021fi
17022case $host_os in
17023  # For platforms which do not support PIC, -DPIC is meaningless:
17024  *djgpp*)
17025    lt_prog_compiler_pic_GCJ=
17026    ;;
17027  *)
17028    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17029    ;;
17030esac
17031
17032#
17033# Check to make sure the static flag actually works.
17034#
17035wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17036{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17037echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17038if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17039  echo $ECHO_N "(cached) $ECHO_C" >&6
17040else
17041  lt_cv_prog_compiler_static_works_GCJ=no
17042   save_LDFLAGS="$LDFLAGS"
17043   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17044   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17045   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17046     # The linker can only warn and ignore the option if not recognized
17047     # So say no if there are warnings
17048     if test -s conftest.err; then
17049       # Append any errors to the config.log.
17050       cat conftest.err 1>&5
17051       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17052       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17053       if diff conftest.exp conftest.er2 >/dev/null; then
17054         lt_cv_prog_compiler_static_works_GCJ=yes
17055       fi
17056     else
17057       lt_cv_prog_compiler_static_works_GCJ=yes
17058     fi
17059   fi
17060   $rm -r conftest*
17061   LDFLAGS="$save_LDFLAGS"
17062
17063fi
17064{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17065echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17066
17067if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17068    :
17069else
17070    lt_prog_compiler_static_GCJ=
17071fi
17072
17073
17074{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17075echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17076if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17077  echo $ECHO_N "(cached) $ECHO_C" >&6
17078else
17079  lt_cv_prog_compiler_c_o_GCJ=no
17080   $rm -r conftest 2>/dev/null
17081   mkdir conftest
17082   cd conftest
17083   mkdir out
17084   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17085
17086   lt_compiler_flag="-o out/conftest2.$ac_objext"
17087   # Insert the option either (1) after the last *FLAGS variable, or
17088   # (2) before a word containing "conftest.", or (3) at the end.
17089   # Note that $ac_compile itself does not contain backslashes and begins
17090   # with a dollar sign (not a hyphen), so the echo should work correctly.
17091   lt_compile=`echo "$ac_compile" | $SED \
17092   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17093   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17094   -e 's:$: $lt_compiler_flag:'`
17095   (eval echo "\"\$as_me:17095: $lt_compile\"" >&5)
17096   (eval "$lt_compile" 2>out/conftest.err)
17097   ac_status=$?
17098   cat out/conftest.err >&5
17099   echo "$as_me:17099: \$? = $ac_status" >&5
17100   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17101   then
17102     # The compiler can only warn and ignore the option if not recognized
17103     # So say no if there are warnings
17104     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17105     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17106     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17107       lt_cv_prog_compiler_c_o_GCJ=yes
17108     fi
17109   fi
17110   chmod u+w . 2>&5
17111   $rm conftest*
17112   # SGI C++ compiler will create directory out/ii_files/ for
17113   # template instantiation
17114   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17115   $rm out/* && rmdir out
17116   cd ..
17117   rmdir conftest
17118   $rm conftest*
17119
17120fi
17121{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17122echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17123
17124
17125hard_links="nottested"
17126if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17127  # do not overwrite the value of need_locks provided by the user
17128  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17129echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17130  hard_links=yes
17131  $rm conftest*
17132  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17133  touch conftest.a
17134  ln conftest.a conftest.b 2>&5 || hard_links=no
17135  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17136  { echo "$as_me:$LINENO: result: $hard_links" >&5
17137echo "${ECHO_T}$hard_links" >&6; }
17138  if test "$hard_links" = no; then
17139    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17140echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17141    need_locks=warn
17142  fi
17143else
17144  need_locks=no
17145fi
17146
17147{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17148echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17149
17150  runpath_var=
17151  allow_undefined_flag_GCJ=
17152  enable_shared_with_static_runtimes_GCJ=no
17153  archive_cmds_GCJ=
17154  archive_expsym_cmds_GCJ=
17155  old_archive_From_new_cmds_GCJ=
17156  old_archive_from_expsyms_cmds_GCJ=
17157  export_dynamic_flag_spec_GCJ=
17158  whole_archive_flag_spec_GCJ=
17159  thread_safe_flag_spec_GCJ=
17160  hardcode_libdir_flag_spec_GCJ=
17161  hardcode_libdir_flag_spec_ld_GCJ=
17162  hardcode_libdir_separator_GCJ=
17163  hardcode_direct_GCJ=no
17164  hardcode_minus_L_GCJ=no
17165  hardcode_shlibpath_var_GCJ=unsupported
17166  link_all_deplibs_GCJ=unknown
17167  hardcode_automatic_GCJ=no
17168  module_cmds_GCJ=
17169  module_expsym_cmds_GCJ=
17170  always_export_symbols_GCJ=no
17171  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17172  # include_expsyms should be a list of space-separated symbols to be *always*
17173  # included in the symbol list
17174  include_expsyms_GCJ=
17175  # exclude_expsyms can be an extended regexp of symbols to exclude
17176  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17177  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17178  # as well as any symbol that contains `d'.
17179  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17180  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17181  # platforms (ab)use it in PIC code, but their linkers get confused if
17182  # the symbol is explicitly referenced.  Since portable code cannot
17183  # rely on this symbol name, it's probably fine to never include it in
17184  # preloaded symbol tables.
17185  # Exclude shared library initialization/finalization symbols.
17186  extract_expsyms_cmds=
17187  # Just being paranoid about ensuring that cc_basename is set.
17188  for cc_temp in $compiler""; do
17189  case $cc_temp in
17190    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17191    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17192    \-*) ;;
17193    *) break;;
17194  esac
17195done
17196cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17197
17198  case $host_os in
17199  cygwin* | mingw* | pw32*)
17200    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17201    # When not using gcc, we currently assume that we are using
17202    # Microsoft Visual C++.
17203    if test "$GCC" != yes; then
17204      with_gnu_ld=no
17205    fi
17206    ;;
17207  interix*)
17208    # we just hope/assume this is gcc and not c89 (= MSVC++)
17209    with_gnu_ld=yes
17210    ;;
17211  openbsd*)
17212    with_gnu_ld=no
17213    ;;
17214  esac
17215
17216  ld_shlibs_GCJ=yes
17217  if test "$with_gnu_ld" = yes; then
17218    # If archive_cmds runs LD, not CC, wlarc should be empty
17219    wlarc='${wl}'
17220
17221    # Set some defaults for GNU ld with shared library support. These
17222    # are reset later if shared libraries are not supported. Putting them
17223    # here allows them to be overridden if necessary.
17224    runpath_var=LD_RUN_PATH
17225    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17226    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17227    # ancient GNU ld didn't support --whole-archive et. al.
17228    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17229	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17230      else
17231  	whole_archive_flag_spec_GCJ=
17232    fi
17233    supports_anon_versioning=no
17234    case `$LD -v 2>/dev/null` in
17235      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17236      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17237      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17238      *\ 2.11.*) ;; # other 2.11 versions
17239      *) supports_anon_versioning=yes ;;
17240    esac
17241
17242    # See if GNU ld supports shared libraries.
17243    case $host_os in
17244    aix[3-9]*)
17245      # On AIX/PPC, the GNU linker is very broken
17246      if test "$host_cpu" != ia64; then
17247	ld_shlibs_GCJ=no
17248	cat <<EOF 1>&2
17249
17250*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17251*** to be unable to reliably create shared libraries on AIX.
17252*** Therefore, libtool is disabling shared libraries support.  If you
17253*** really care for shared libraries, you may want to modify your PATH
17254*** so that a non-GNU linker is found, and then restart.
17255
17256EOF
17257      fi
17258      ;;
17259
17260    amigaos*)
17261      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)'
17262      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17263      hardcode_minus_L_GCJ=yes
17264
17265      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17266      # that the semantics of dynamic libraries on AmigaOS, at least up
17267      # to version 4, is to share data among multiple programs linked
17268      # with the same dynamic library.  Since this doesn't match the
17269      # behavior of shared libraries on other platforms, we can't use
17270      # them.
17271      ld_shlibs_GCJ=no
17272      ;;
17273
17274    beos*)
17275      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17276	allow_undefined_flag_GCJ=unsupported
17277	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17278	# support --undefined.  This deserves some investigation.  FIXME
17279	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17280      else
17281	ld_shlibs_GCJ=no
17282      fi
17283      ;;
17284
17285    cygwin* | mingw* | pw32*)
17286      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17287      # as there is no search path for DLLs.
17288      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17289      allow_undefined_flag_GCJ=unsupported
17290      always_export_symbols_GCJ=no
17291      enable_shared_with_static_runtimes_GCJ=yes
17292      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17293
17294      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17295        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17296	# If the export-symbols file already is a .def file (1st line
17297	# is EXPORTS), use it as is; otherwise, prepend...
17298	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17299	  cp $export_symbols $output_objdir/$soname.def;
17300	else
17301	  echo EXPORTS > $output_objdir/$soname.def;
17302	  cat $export_symbols >> $output_objdir/$soname.def;
17303	fi~
17304	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17305      else
17306	ld_shlibs_GCJ=no
17307      fi
17308      ;;
17309
17310    interix[3-9]*)
17311      hardcode_direct_GCJ=no
17312      hardcode_shlibpath_var_GCJ=no
17313      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17314      export_dynamic_flag_spec_GCJ='${wl}-E'
17315      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17316      # Instead, shared libraries are loaded at an image base (0x10000000 by
17317      # default) and relocated if they conflict, which is a slow very memory
17318      # consuming and fragmenting process.  To avoid this, we pick a random,
17319      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17320      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17321      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'
17322      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'
17323      ;;
17324
17325    gnu* | linux* | k*bsd*-gnu)
17326      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17327	tmp_addflag=
17328	case $cc_basename,$host_cpu in
17329	pgcc*)				# Portland Group C compiler
17330	  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'
17331	  tmp_addflag=' $pic_flag'
17332	  ;;
17333	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17334	  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'
17335	  tmp_addflag=' $pic_flag -Mnomain' ;;
17336	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17337	  tmp_addflag=' -i_dynamic' ;;
17338	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17339	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17340	ifc* | ifort*)			# Intel Fortran compiler
17341	  tmp_addflag=' -nofor_main' ;;
17342	esac
17343	case `$CC -V 2>&1 | sed 5q` in
17344	*Sun\ C*)			# Sun C 5.9
17345	  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'
17346	  tmp_sharedflag='-G' ;;
17347	*Sun\ F*)			# Sun Fortran 8.3
17348	  tmp_sharedflag='-G' ;;
17349	*)
17350	  tmp_sharedflag='-shared' ;;
17351	esac
17352	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17353
17354	if test $supports_anon_versioning = yes; then
17355	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17356  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17357  $echo "local: *; };" >> $output_objdir/$libname.ver~
17358	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17359	fi
17360	link_all_deplibs_GCJ=no
17361      else
17362	ld_shlibs_GCJ=no
17363      fi
17364      ;;
17365
17366    netbsd* | netbsdelf*-gnu)
17367      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17368	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17369	wlarc=
17370      else
17371	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17372	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17373      fi
17374      ;;
17375
17376    solaris*)
17377      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17378	ld_shlibs_GCJ=no
17379	cat <<EOF 1>&2
17380
17381*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17382*** create shared libraries on Solaris systems.  Therefore, libtool
17383*** is disabling shared libraries support.  We urge you to upgrade GNU
17384*** binutils to release 2.9.1 or newer.  Another option is to modify
17385*** your PATH or compiler configuration so that the native linker is
17386*** used, and then restart.
17387
17388EOF
17389      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17390	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17391	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17392      else
17393	ld_shlibs_GCJ=no
17394      fi
17395      ;;
17396
17397    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17398      case `$LD -v 2>&1` in
17399        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17400	ld_shlibs_GCJ=no
17401	cat <<_LT_EOF 1>&2
17402
17403*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17404*** reliably create shared libraries on SCO systems.  Therefore, libtool
17405*** is disabling shared libraries support.  We urge you to upgrade GNU
17406*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17407*** your PATH or compiler configuration so that the native linker is
17408*** used, and then restart.
17409
17410_LT_EOF
17411	;;
17412	*)
17413	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17414	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17415	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17416	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17417	  else
17418	    ld_shlibs_GCJ=no
17419	  fi
17420	;;
17421      esac
17422      ;;
17423
17424    sunos4*)
17425      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17426      wlarc=
17427      hardcode_direct_GCJ=yes
17428      hardcode_shlibpath_var_GCJ=no
17429      ;;
17430
17431    *)
17432      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17433	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17434	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17435      else
17436	ld_shlibs_GCJ=no
17437      fi
17438      ;;
17439    esac
17440
17441    if test "$ld_shlibs_GCJ" = no; then
17442      runpath_var=
17443      hardcode_libdir_flag_spec_GCJ=
17444      export_dynamic_flag_spec_GCJ=
17445      whole_archive_flag_spec_GCJ=
17446    fi
17447  else
17448    # PORTME fill in a description of your system's linker (not GNU ld)
17449    case $host_os in
17450    aix3*)
17451      allow_undefined_flag_GCJ=unsupported
17452      always_export_symbols_GCJ=yes
17453      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'
17454      # Note: this linker hardcodes the directories in LIBPATH if there
17455      # are no directories specified by -L.
17456      hardcode_minus_L_GCJ=yes
17457      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17458	# Neither direct hardcoding nor static linking is supported with a
17459	# broken collect2.
17460	hardcode_direct_GCJ=unsupported
17461      fi
17462      ;;
17463
17464    aix[4-9]*)
17465      if test "$host_cpu" = ia64; then
17466	# On IA64, the linker does run time linking by default, so we don't
17467	# have to do anything special.
17468	aix_use_runtimelinking=no
17469	exp_sym_flag='-Bexport'
17470	no_entry_flag=""
17471      else
17472	# If we're using GNU nm, then we don't want the "-C" option.
17473	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17474	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17475	  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'
17476	else
17477	  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'
17478	fi
17479	aix_use_runtimelinking=no
17480
17481	# Test if we are trying to use run time linking or normal
17482	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17483	# need to do runtime linking.
17484	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17485	  for ld_flag in $LDFLAGS; do
17486  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17487  	    aix_use_runtimelinking=yes
17488  	    break
17489  	  fi
17490	  done
17491	  ;;
17492	esac
17493
17494	exp_sym_flag='-bexport'
17495	no_entry_flag='-bnoentry'
17496      fi
17497
17498      # When large executables or shared objects are built, AIX ld can
17499      # have problems creating the table of contents.  If linking a library
17500      # or program results in "error TOC overflow" add -mminimal-toc to
17501      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17502      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17503
17504      archive_cmds_GCJ=''
17505      hardcode_direct_GCJ=yes
17506      hardcode_libdir_separator_GCJ=':'
17507      link_all_deplibs_GCJ=yes
17508
17509      if test "$GCC" = yes; then
17510	case $host_os in aix4.[012]|aix4.[012].*)
17511	# We only want to do this on AIX 4.2 and lower, the check
17512	# below for broken collect2 doesn't work under 4.3+
17513	  collect2name=`${CC} -print-prog-name=collect2`
17514	  if test -f "$collect2name" && \
17515  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17516	  then
17517  	  # We have reworked collect2
17518  	  :
17519	  else
17520  	  # We have old collect2
17521  	  hardcode_direct_GCJ=unsupported
17522  	  # It fails to find uninstalled libraries when the uninstalled
17523  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17524  	  # to unsupported forces relinking
17525  	  hardcode_minus_L_GCJ=yes
17526  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17527  	  hardcode_libdir_separator_GCJ=
17528	  fi
17529	  ;;
17530	esac
17531	shared_flag='-shared'
17532	if test "$aix_use_runtimelinking" = yes; then
17533	  shared_flag="$shared_flag "'${wl}-G'
17534	fi
17535      else
17536	# not using gcc
17537	if test "$host_cpu" = ia64; then
17538  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17539  	# chokes on -Wl,-G. The following line is correct:
17540	  shared_flag='-G'
17541	else
17542	  if test "$aix_use_runtimelinking" = yes; then
17543	    shared_flag='${wl}-G'
17544	  else
17545	    shared_flag='${wl}-bM:SRE'
17546	  fi
17547	fi
17548      fi
17549
17550      # It seems that -bexpall does not export symbols beginning with
17551      # underscore (_), so it is better to generate a list of symbols to export.
17552      always_export_symbols_GCJ=yes
17553      if test "$aix_use_runtimelinking" = yes; then
17554	# Warning - without using the other runtime loading flags (-brtl),
17555	# -berok will link without error, but may produce a broken library.
17556	allow_undefined_flag_GCJ='-berok'
17557       # Determine the default libpath from the value encoded in an empty executable.
17558       cat >conftest.$ac_ext <<_ACEOF
17559/* confdefs.h.  */
17560_ACEOF
17561cat confdefs.h >>conftest.$ac_ext
17562cat >>conftest.$ac_ext <<_ACEOF
17563/* end confdefs.h.  */
17564
17565int
17566main ()
17567{
17568
17569  ;
17570  return 0;
17571}
17572_ACEOF
17573rm -f conftest.$ac_objext conftest$ac_exeext
17574if { (ac_try="$ac_link"
17575case "(($ac_try" in
17576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17577  *) ac_try_echo=$ac_try;;
17578esac
17579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17580  (eval "$ac_link") 2>conftest.er1
17581  ac_status=$?
17582  grep -v '^ *+' conftest.er1 >conftest.err
17583  rm -f conftest.er1
17584  cat conftest.err >&5
17585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586  (exit $ac_status); } && {
17587	 test -z "$ac_c_werror_flag" ||
17588	 test ! -s conftest.err
17589       } && test -s conftest$ac_exeext &&
17590       $as_test_x conftest$ac_exeext; then
17591
17592lt_aix_libpath_sed='
17593    /Import File Strings/,/^$/ {
17594	/^0/ {
17595	    s/^0  *\(.*\)$/\1/
17596	    p
17597	}
17598    }'
17599aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17600# Check for a 64-bit object if we didn't find anything.
17601if test -z "$aix_libpath"; then
17602  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17603fi
17604else
17605  echo "$as_me: failed program was:" >&5
17606sed 's/^/| /' conftest.$ac_ext >&5
17607
17608
17609fi
17610
17611rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17612      conftest$ac_exeext conftest.$ac_ext
17613if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17614
17615       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17616	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"
17617       else
17618	if test "$host_cpu" = ia64; then
17619	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17620	  allow_undefined_flag_GCJ="-z nodefs"
17621	  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"
17622	else
17623	 # Determine the default libpath from the value encoded in an empty executable.
17624	 cat >conftest.$ac_ext <<_ACEOF
17625/* confdefs.h.  */
17626_ACEOF
17627cat confdefs.h >>conftest.$ac_ext
17628cat >>conftest.$ac_ext <<_ACEOF
17629/* end confdefs.h.  */
17630
17631int
17632main ()
17633{
17634
17635  ;
17636  return 0;
17637}
17638_ACEOF
17639rm -f conftest.$ac_objext conftest$ac_exeext
17640if { (ac_try="$ac_link"
17641case "(($ac_try" in
17642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643  *) ac_try_echo=$ac_try;;
17644esac
17645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17646  (eval "$ac_link") 2>conftest.er1
17647  ac_status=$?
17648  grep -v '^ *+' conftest.er1 >conftest.err
17649  rm -f conftest.er1
17650  cat conftest.err >&5
17651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652  (exit $ac_status); } && {
17653	 test -z "$ac_c_werror_flag" ||
17654	 test ! -s conftest.err
17655       } && test -s conftest$ac_exeext &&
17656       $as_test_x conftest$ac_exeext; then
17657
17658lt_aix_libpath_sed='
17659    /Import File Strings/,/^$/ {
17660	/^0/ {
17661	    s/^0  *\(.*\)$/\1/
17662	    p
17663	}
17664    }'
17665aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17666# Check for a 64-bit object if we didn't find anything.
17667if test -z "$aix_libpath"; then
17668  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17669fi
17670else
17671  echo "$as_me: failed program was:" >&5
17672sed 's/^/| /' conftest.$ac_ext >&5
17673
17674
17675fi
17676
17677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17678      conftest$ac_exeext conftest.$ac_ext
17679if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17680
17681	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17682	  # Warning - without using the other run time loading flags,
17683	  # -berok will link without error, but may produce a broken library.
17684	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17685	  allow_undefined_flag_GCJ=' ${wl}-berok'
17686	  # Exported symbols can be pulled into shared objects from archives
17687	  whole_archive_flag_spec_GCJ='$convenience'
17688	  archive_cmds_need_lc_GCJ=yes
17689	  # This is similar to how AIX traditionally builds its shared libraries.
17690	  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'
17691	fi
17692      fi
17693      ;;
17694
17695    amigaos*)
17696      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)'
17697      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17698      hardcode_minus_L_GCJ=yes
17699      # see comment about different semantics on the GNU ld section
17700      ld_shlibs_GCJ=no
17701      ;;
17702
17703    bsdi[45]*)
17704      export_dynamic_flag_spec_GCJ=-rdynamic
17705      ;;
17706
17707    cygwin* | mingw* | pw32*)
17708      # When not using gcc, we currently assume that we are using
17709      # Microsoft Visual C++.
17710      # hardcode_libdir_flag_spec is actually meaningless, as there is
17711      # no search path for DLLs.
17712      hardcode_libdir_flag_spec_GCJ=' '
17713      allow_undefined_flag_GCJ=unsupported
17714      # Tell ltmain to make .lib files, not .a files.
17715      libext=lib
17716      # Tell ltmain to make .dll files, not .so files.
17717      shrext_cmds=".dll"
17718      # FIXME: Setting linknames here is a bad hack.
17719      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17720      # The linker will automatically build a .lib file if we build a DLL.
17721      old_archive_From_new_cmds_GCJ='true'
17722      # FIXME: Should let the user specify the lib program.
17723      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17724      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17725      enable_shared_with_static_runtimes_GCJ=yes
17726      ;;
17727
17728    darwin* | rhapsody*)
17729      case $host_os in
17730        rhapsody* | darwin1.[012])
17731         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17732         ;;
17733       *) # Darwin 1.3 on
17734         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17735           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17736         else
17737           case ${MACOSX_DEPLOYMENT_TARGET} in
17738             10.[012])
17739               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17740               ;;
17741             10.*)
17742               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17743               ;;
17744           esac
17745         fi
17746         ;;
17747      esac
17748      archive_cmds_need_lc_GCJ=no
17749      hardcode_direct_GCJ=no
17750      hardcode_automatic_GCJ=yes
17751      hardcode_shlibpath_var_GCJ=unsupported
17752      whole_archive_flag_spec_GCJ=''
17753      link_all_deplibs_GCJ=yes
17754    if test "$GCC" = yes ; then
17755    	output_verbose_link_cmd='echo'
17756        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17757        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17758        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17759        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17760    else
17761      case $cc_basename in
17762        xlc*)
17763         output_verbose_link_cmd='echo'
17764         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17765         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17766          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17767         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17768          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}'
17769          ;;
17770       *)
17771         ld_shlibs_GCJ=no
17772          ;;
17773      esac
17774    fi
17775      ;;
17776
17777    dgux*)
17778      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17779      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17780      hardcode_shlibpath_var_GCJ=no
17781      ;;
17782
17783    freebsd1*)
17784      ld_shlibs_GCJ=no
17785      ;;
17786
17787    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17788    # support.  Future versions do this automatically, but an explicit c++rt0.o
17789    # does not break anything, and helps significantly (at the cost of a little
17790    # extra space).
17791    freebsd2.2*)
17792      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17793      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17794      hardcode_direct_GCJ=yes
17795      hardcode_shlibpath_var_GCJ=no
17796      ;;
17797
17798    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17799    freebsd2*)
17800      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17801      hardcode_direct_GCJ=yes
17802      hardcode_minus_L_GCJ=yes
17803      hardcode_shlibpath_var_GCJ=no
17804      ;;
17805
17806    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17807    freebsd* | dragonfly*)
17808      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17809      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17810      hardcode_direct_GCJ=yes
17811      hardcode_shlibpath_var_GCJ=no
17812      ;;
17813
17814    hpux9*)
17815      if test "$GCC" = yes; then
17816	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'
17817      else
17818	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'
17819      fi
17820      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17821      hardcode_libdir_separator_GCJ=:
17822      hardcode_direct_GCJ=yes
17823
17824      # hardcode_minus_L: Not really in the search PATH,
17825      # but as the default location of the library.
17826      hardcode_minus_L_GCJ=yes
17827      export_dynamic_flag_spec_GCJ='${wl}-E'
17828      ;;
17829
17830    hpux10*)
17831      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17832	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17833      else
17834	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17835      fi
17836      if test "$with_gnu_ld" = no; then
17837	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17838	hardcode_libdir_separator_GCJ=:
17839
17840	hardcode_direct_GCJ=yes
17841	export_dynamic_flag_spec_GCJ='${wl}-E'
17842
17843	# hardcode_minus_L: Not really in the search PATH,
17844	# but as the default location of the library.
17845	hardcode_minus_L_GCJ=yes
17846      fi
17847      ;;
17848
17849    hpux11*)
17850      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17851	case $host_cpu in
17852	hppa*64*)
17853	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17854	  ;;
17855	ia64*)
17856	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17857	  ;;
17858	*)
17859	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17860	  ;;
17861	esac
17862      else
17863	case $host_cpu in
17864	hppa*64*)
17865	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17866	  ;;
17867	ia64*)
17868	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17869	  ;;
17870	*)
17871	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17872	  ;;
17873	esac
17874      fi
17875      if test "$with_gnu_ld" = no; then
17876	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17877	hardcode_libdir_separator_GCJ=:
17878
17879	case $host_cpu in
17880	hppa*64*|ia64*)
17881	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17882	  hardcode_direct_GCJ=no
17883	  hardcode_shlibpath_var_GCJ=no
17884	  ;;
17885	*)
17886	  hardcode_direct_GCJ=yes
17887	  export_dynamic_flag_spec_GCJ='${wl}-E'
17888
17889	  # hardcode_minus_L: Not really in the search PATH,
17890	  # but as the default location of the library.
17891	  hardcode_minus_L_GCJ=yes
17892	  ;;
17893	esac
17894      fi
17895      ;;
17896
17897    irix5* | irix6* | nonstopux*)
17898      if test "$GCC" = yes; then
17899	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'
17900      else
17901	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'
17902	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17903      fi
17904      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17905      hardcode_libdir_separator_GCJ=:
17906      link_all_deplibs_GCJ=yes
17907      ;;
17908
17909    netbsd* | netbsdelf*-gnu)
17910      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17911	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17912      else
17913	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17914      fi
17915      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17916      hardcode_direct_GCJ=yes
17917      hardcode_shlibpath_var_GCJ=no
17918      ;;
17919
17920    newsos6)
17921      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17922      hardcode_direct_GCJ=yes
17923      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17924      hardcode_libdir_separator_GCJ=:
17925      hardcode_shlibpath_var_GCJ=no
17926      ;;
17927
17928    openbsd*)
17929      if test -f /usr/libexec/ld.so; then
17930	hardcode_direct_GCJ=yes
17931	hardcode_shlibpath_var_GCJ=no
17932	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17933	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17934	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17935	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17936	  export_dynamic_flag_spec_GCJ='${wl}-E'
17937	else
17938	  case $host_os in
17939	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17940	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17941	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
17942	     ;;
17943	   *)
17944	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17945	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17946	     ;;
17947	  esac
17948        fi
17949      else
17950	ld_shlibs_GCJ=no
17951      fi
17952      ;;
17953
17954    os2*)
17955      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17956      hardcode_minus_L_GCJ=yes
17957      allow_undefined_flag_GCJ=unsupported
17958      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'
17959      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17960      ;;
17961
17962    osf3*)
17963      if test "$GCC" = yes; then
17964	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17965	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'
17966      else
17967	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17968	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'
17969      fi
17970      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17971      hardcode_libdir_separator_GCJ=:
17972      ;;
17973
17974    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17975      if test "$GCC" = yes; then
17976	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17977	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'
17978	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17979      else
17980	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17981	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'
17982	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~
17983	$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'
17984
17985	# Both c and cxx compiler support -rpath directly
17986	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17987      fi
17988      hardcode_libdir_separator_GCJ=:
17989      ;;
17990
17991    solaris*)
17992      no_undefined_flag_GCJ=' -z text'
17993      if test "$GCC" = yes; then
17994	wlarc='${wl}'
17995	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17996	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17997	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17998      else
17999	wlarc=''
18000	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18001	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18002  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18003      fi
18004      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18005      hardcode_shlibpath_var_GCJ=no
18006      case $host_os in
18007      solaris2.[0-5] | solaris2.[0-5].*) ;;
18008      *)
18009	# The compiler driver will combine and reorder linker options,
18010	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18011	# but is careful enough not to reorder.
18012 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18013	if test "$GCC" = yes; then
18014	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18015	else
18016	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18017	fi
18018	;;
18019      esac
18020      link_all_deplibs_GCJ=yes
18021      ;;
18022
18023    sunos4*)
18024      if test "x$host_vendor" = xsequent; then
18025	# Use $CC to link under sequent, because it throws in some extra .o
18026	# files that make .init and .fini sections work.
18027	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18028      else
18029	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18030      fi
18031      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18032      hardcode_direct_GCJ=yes
18033      hardcode_minus_L_GCJ=yes
18034      hardcode_shlibpath_var_GCJ=no
18035      ;;
18036
18037    sysv4)
18038      case $host_vendor in
18039	sni)
18040	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18041	  hardcode_direct_GCJ=yes # is this really true???
18042	;;
18043	siemens)
18044	  ## LD is ld it makes a PLAMLIB
18045	  ## CC just makes a GrossModule.
18046	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18047	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18048	  hardcode_direct_GCJ=no
18049        ;;
18050	motorola)
18051	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18052	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18053	;;
18054      esac
18055      runpath_var='LD_RUN_PATH'
18056      hardcode_shlibpath_var_GCJ=no
18057      ;;
18058
18059    sysv4.3*)
18060      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18061      hardcode_shlibpath_var_GCJ=no
18062      export_dynamic_flag_spec_GCJ='-Bexport'
18063      ;;
18064
18065    sysv4*MP*)
18066      if test -d /usr/nec; then
18067	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18068	hardcode_shlibpath_var_GCJ=no
18069	runpath_var=LD_RUN_PATH
18070	hardcode_runpath_var=yes
18071	ld_shlibs_GCJ=yes
18072      fi
18073      ;;
18074
18075    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18076      no_undefined_flag_GCJ='${wl}-z,text'
18077      archive_cmds_need_lc_GCJ=no
18078      hardcode_shlibpath_var_GCJ=no
18079      runpath_var='LD_RUN_PATH'
18080
18081      if test "$GCC" = yes; then
18082	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18083	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18084      else
18085	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18086	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18087      fi
18088      ;;
18089
18090    sysv5* | sco3.2v5* | sco5v6*)
18091      # Note: We can NOT use -z defs as we might desire, because we do not
18092      # link with -lc, and that would cause any symbols used from libc to
18093      # always be unresolved, which means just about no library would
18094      # ever link correctly.  If we're not using GNU ld we use -z text
18095      # though, which does catch some bad symbols but isn't as heavy-handed
18096      # as -z defs.
18097      no_undefined_flag_GCJ='${wl}-z,text'
18098      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18099      archive_cmds_need_lc_GCJ=no
18100      hardcode_shlibpath_var_GCJ=no
18101      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18102      hardcode_libdir_separator_GCJ=':'
18103      link_all_deplibs_GCJ=yes
18104      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18105      runpath_var='LD_RUN_PATH'
18106
18107      if test "$GCC" = yes; then
18108	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18109	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18110      else
18111	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18112	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18113      fi
18114      ;;
18115
18116    uts4*)
18117      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18118      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18119      hardcode_shlibpath_var_GCJ=no
18120      ;;
18121
18122    *)
18123      ld_shlibs_GCJ=no
18124      ;;
18125    esac
18126  fi
18127
18128{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18129echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18130test "$ld_shlibs_GCJ" = no && can_build_shared=no
18131
18132#
18133# Do we need to explicitly link libc?
18134#
18135case "x$archive_cmds_need_lc_GCJ" in
18136x|xyes)
18137  # Assume -lc should be added
18138  archive_cmds_need_lc_GCJ=yes
18139
18140  if test "$enable_shared" = yes && test "$GCC" = yes; then
18141    case $archive_cmds_GCJ in
18142    *'~'*)
18143      # FIXME: we may have to deal with multi-command sequences.
18144      ;;
18145    '$CC '*)
18146      # Test whether the compiler implicitly links with -lc since on some
18147      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18148      # to ld, don't add -lc before -lgcc.
18149      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18150echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18151      $rm conftest*
18152      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18153
18154      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18155  (eval $ac_compile) 2>&5
18156  ac_status=$?
18157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158  (exit $ac_status); } 2>conftest.err; then
18159        soname=conftest
18160        lib=conftest
18161        libobjs=conftest.$ac_objext
18162        deplibs=
18163        wl=$lt_prog_compiler_wl_GCJ
18164	pic_flag=$lt_prog_compiler_pic_GCJ
18165        compiler_flags=-v
18166        linker_flags=-v
18167        verstring=
18168        output_objdir=.
18169        libname=conftest
18170        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18171        allow_undefined_flag_GCJ=
18172        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18173  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18174  ac_status=$?
18175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176  (exit $ac_status); }
18177        then
18178	  archive_cmds_need_lc_GCJ=no
18179        else
18180	  archive_cmds_need_lc_GCJ=yes
18181        fi
18182        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18183      else
18184        cat conftest.err 1>&5
18185      fi
18186      $rm conftest*
18187      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18188echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18189      ;;
18190    esac
18191  fi
18192  ;;
18193esac
18194
18195{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18196echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18197library_names_spec=
18198libname_spec='lib$name'
18199soname_spec=
18200shrext_cmds=".so"
18201postinstall_cmds=
18202postuninstall_cmds=
18203finish_cmds=
18204finish_eval=
18205shlibpath_var=
18206shlibpath_overrides_runpath=unknown
18207version_type=none
18208dynamic_linker="$host_os ld.so"
18209sys_lib_dlsearch_path_spec="/lib /usr/lib"
18210
18211need_lib_prefix=unknown
18212hardcode_into_libs=no
18213
18214# when you set need_version to no, make sure it does not cause -set_version
18215# flags to be left without arguments
18216need_version=unknown
18217
18218case $host_os in
18219aix3*)
18220  version_type=linux
18221  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18222  shlibpath_var=LIBPATH
18223
18224  # AIX 3 has no versioning support, so we append a major version to the name.
18225  soname_spec='${libname}${release}${shared_ext}$major'
18226  ;;
18227
18228aix[4-9]*)
18229  version_type=linux
18230  need_lib_prefix=no
18231  need_version=no
18232  hardcode_into_libs=yes
18233  if test "$host_cpu" = ia64; then
18234    # AIX 5 supports IA64
18235    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18236    shlibpath_var=LD_LIBRARY_PATH
18237  else
18238    # With GCC up to 2.95.x, collect2 would create an import file
18239    # for dependence libraries.  The import file would start with
18240    # the line `#! .'.  This would cause the generated library to
18241    # depend on `.', always an invalid library.  This was fixed in
18242    # development snapshots of GCC prior to 3.0.
18243    case $host_os in
18244      aix4 | aix4.[01] | aix4.[01].*)
18245      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18246	   echo ' yes '
18247	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18248	:
18249      else
18250	can_build_shared=no
18251      fi
18252      ;;
18253    esac
18254    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18255    # soname into executable. Probably we can add versioning support to
18256    # collect2, so additional links can be useful in future.
18257    if test "$aix_use_runtimelinking" = yes; then
18258      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18259      # instead of lib<name>.a to let people know that these are not
18260      # typical AIX shared libraries.
18261      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18262    else
18263      # We preserve .a as extension for shared libraries through AIX4.2
18264      # and later when we are not doing run time linking.
18265      library_names_spec='${libname}${release}.a $libname.a'
18266      soname_spec='${libname}${release}${shared_ext}$major'
18267    fi
18268    shlibpath_var=LIBPATH
18269  fi
18270  ;;
18271
18272amigaos*)
18273  library_names_spec='$libname.ixlibrary $libname.a'
18274  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18275  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'
18276  ;;
18277
18278beos*)
18279  library_names_spec='${libname}${shared_ext}'
18280  dynamic_linker="$host_os ld.so"
18281  shlibpath_var=LIBRARY_PATH
18282  ;;
18283
18284bsdi[45]*)
18285  version_type=linux
18286  need_version=no
18287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18288  soname_spec='${libname}${release}${shared_ext}$major'
18289  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18290  shlibpath_var=LD_LIBRARY_PATH
18291  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18292  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18293  # the default ld.so.conf also contains /usr/contrib/lib and
18294  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18295  # libtool to hard-code these into programs
18296  ;;
18297
18298cygwin* | mingw* | pw32*)
18299  version_type=windows
18300  shrext_cmds=".dll"
18301  need_version=no
18302  need_lib_prefix=no
18303
18304  case $GCC,$host_os in
18305  yes,cygwin* | yes,mingw* | yes,pw32*)
18306    library_names_spec='$libname.dll.a'
18307    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18308    postinstall_cmds='base_file=`basename \${file}`~
18309      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18310      dldir=$destdir/`dirname \$dlpath`~
18311      test -d \$dldir || mkdir -p \$dldir~
18312      $install_prog $dir/$dlname \$dldir/$dlname~
18313      chmod a+x \$dldir/$dlname'
18314    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18315      dlpath=$dir/\$dldll~
18316       $rm \$dlpath'
18317    shlibpath_overrides_runpath=yes
18318
18319    case $host_os in
18320    cygwin*)
18321      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18322      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18323      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18324      ;;
18325    mingw*)
18326      # MinGW DLLs use traditional 'lib' prefix
18327      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18328      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18329      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18330        # It is most probably a Windows format PATH printed by
18331        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18332        # path with ; separators, and with drive letters. We can handle the
18333        # drive letters (cygwin fileutils understands them), so leave them,
18334        # especially as we might pass files found there to a mingw objdump,
18335        # which wouldn't understand a cygwinified path. Ahh.
18336        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18337      else
18338        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18339      fi
18340      ;;
18341    pw32*)
18342      # pw32 DLLs use 'pw' prefix rather than 'lib'
18343      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18344      ;;
18345    esac
18346    ;;
18347
18348  *)
18349    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18350    ;;
18351  esac
18352  dynamic_linker='Win32 ld.exe'
18353  # FIXME: first we should search . and the directory the executable is in
18354  shlibpath_var=PATH
18355  ;;
18356
18357darwin* | rhapsody*)
18358  dynamic_linker="$host_os dyld"
18359  version_type=darwin
18360  need_lib_prefix=no
18361  need_version=no
18362  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18363  soname_spec='${libname}${release}${major}$shared_ext'
18364  shlibpath_overrides_runpath=yes
18365  shlibpath_var=DYLD_LIBRARY_PATH
18366  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18367
18368  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18369  ;;
18370
18371dgux*)
18372  version_type=linux
18373  need_lib_prefix=no
18374  need_version=no
18375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18376  soname_spec='${libname}${release}${shared_ext}$major'
18377  shlibpath_var=LD_LIBRARY_PATH
18378  ;;
18379
18380freebsd1*)
18381  dynamic_linker=no
18382  ;;
18383
18384freebsd* | dragonfly*)
18385  # DragonFly does not have aout.  When/if they implement a new
18386  # versioning mechanism, adjust this.
18387  if test -x /usr/bin/objformat; then
18388    objformat=`/usr/bin/objformat`
18389  else
18390    case $host_os in
18391    freebsd[123]*) objformat=aout ;;
18392    *) objformat=elf ;;
18393    esac
18394  fi
18395  version_type=freebsd-$objformat
18396  case $version_type in
18397    freebsd-elf*)
18398      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18399      need_version=no
18400      need_lib_prefix=no
18401      ;;
18402    freebsd-*)
18403      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18404      need_version=yes
18405      ;;
18406  esac
18407  shlibpath_var=LD_LIBRARY_PATH
18408  case $host_os in
18409  freebsd2*)
18410    shlibpath_overrides_runpath=yes
18411    ;;
18412  freebsd3.[01]* | freebsdelf3.[01]*)
18413    shlibpath_overrides_runpath=yes
18414    hardcode_into_libs=yes
18415    ;;
18416  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18417  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18418    shlibpath_overrides_runpath=no
18419    hardcode_into_libs=yes
18420    ;;
18421  *) # from 4.6 on, and DragonFly
18422    shlibpath_overrides_runpath=yes
18423    hardcode_into_libs=yes
18424    ;;
18425  esac
18426  ;;
18427
18428gnu*)
18429  version_type=linux
18430  need_lib_prefix=no
18431  need_version=no
18432  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18433  soname_spec='${libname}${release}${shared_ext}$major'
18434  shlibpath_var=LD_LIBRARY_PATH
18435  hardcode_into_libs=yes
18436  ;;
18437
18438hpux9* | hpux10* | hpux11*)
18439  # Give a soname corresponding to the major version so that dld.sl refuses to
18440  # link against other versions.
18441  version_type=sunos
18442  need_lib_prefix=no
18443  need_version=no
18444  case $host_cpu in
18445  ia64*)
18446    shrext_cmds='.so'
18447    hardcode_into_libs=yes
18448    dynamic_linker="$host_os dld.so"
18449    shlibpath_var=LD_LIBRARY_PATH
18450    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18451    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18452    soname_spec='${libname}${release}${shared_ext}$major'
18453    if test "X$HPUX_IA64_MODE" = X32; then
18454      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18455    else
18456      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18457    fi
18458    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18459    ;;
18460   hppa*64*)
18461     shrext_cmds='.sl'
18462     hardcode_into_libs=yes
18463     dynamic_linker="$host_os dld.sl"
18464     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18465     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18466     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18467     soname_spec='${libname}${release}${shared_ext}$major'
18468     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18469     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18470     ;;
18471   *)
18472    shrext_cmds='.sl'
18473    dynamic_linker="$host_os dld.sl"
18474    shlibpath_var=SHLIB_PATH
18475    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18476    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18477    soname_spec='${libname}${release}${shared_ext}$major'
18478    ;;
18479  esac
18480  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18481  postinstall_cmds='chmod 555 $lib'
18482  ;;
18483
18484interix[3-9]*)
18485  version_type=linux
18486  need_lib_prefix=no
18487  need_version=no
18488  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18489  soname_spec='${libname}${release}${shared_ext}$major'
18490  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18491  shlibpath_var=LD_LIBRARY_PATH
18492  shlibpath_overrides_runpath=no
18493  hardcode_into_libs=yes
18494  ;;
18495
18496irix5* | irix6* | nonstopux*)
18497  case $host_os in
18498    nonstopux*) version_type=nonstopux ;;
18499    *)
18500	if test "$lt_cv_prog_gnu_ld" = yes; then
18501		version_type=linux
18502	else
18503		version_type=irix
18504	fi ;;
18505  esac
18506  need_lib_prefix=no
18507  need_version=no
18508  soname_spec='${libname}${release}${shared_ext}$major'
18509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18510  case $host_os in
18511  irix5* | nonstopux*)
18512    libsuff= shlibsuff=
18513    ;;
18514  *)
18515    case $LD in # libtool.m4 will add one of these switches to LD
18516    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18517      libsuff= shlibsuff= libmagic=32-bit;;
18518    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18519      libsuff=32 shlibsuff=N32 libmagic=N32;;
18520    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18521      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18522    *) libsuff= shlibsuff= libmagic=never-match;;
18523    esac
18524    ;;
18525  esac
18526  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18527  shlibpath_overrides_runpath=no
18528  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18529  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18530  hardcode_into_libs=yes
18531  ;;
18532
18533# No shared lib support for Linux oldld, aout, or coff.
18534linux*oldld* | linux*aout* | linux*coff*)
18535  dynamic_linker=no
18536  ;;
18537
18538# This must be Linux ELF.
18539linux* | k*bsd*-gnu)
18540  version_type=linux
18541  need_lib_prefix=no
18542  need_version=no
18543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18544  soname_spec='${libname}${release}${shared_ext}$major'
18545  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18546  shlibpath_var=LD_LIBRARY_PATH
18547  shlibpath_overrides_runpath=no
18548  # This implies no fast_install, which is unacceptable.
18549  # Some rework will be needed to allow for fast_install
18550  # before this can be enabled.
18551  hardcode_into_libs=yes
18552
18553  # Append ld.so.conf contents to the search path
18554  if test -f /etc/ld.so.conf; then
18555    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18556    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18557  fi
18558
18559  # We used to test for /lib/ld.so.1 and disable shared libraries on
18560  # powerpc, because MkLinux only supported shared libraries with the
18561  # GNU dynamic linker.  Since this was broken with cross compilers,
18562  # most powerpc-linux boxes support dynamic linking these days and
18563  # people can always --disable-shared, the test was removed, and we
18564  # assume the GNU/Linux dynamic linker is in use.
18565  dynamic_linker='GNU/Linux ld.so'
18566  ;;
18567
18568netbsdelf*-gnu)
18569  version_type=linux
18570  need_lib_prefix=no
18571  need_version=no
18572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18573  soname_spec='${libname}${release}${shared_ext}$major'
18574  shlibpath_var=LD_LIBRARY_PATH
18575  shlibpath_overrides_runpath=no
18576  hardcode_into_libs=yes
18577  dynamic_linker='NetBSD ld.elf_so'
18578  ;;
18579
18580netbsd*)
18581  version_type=sunos
18582  need_lib_prefix=no
18583  need_version=no
18584  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18585    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18586    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18587    dynamic_linker='NetBSD (a.out) ld.so'
18588  else
18589    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18590    soname_spec='${libname}${release}${shared_ext}$major'
18591    dynamic_linker='NetBSD ld.elf_so'
18592  fi
18593  shlibpath_var=LD_LIBRARY_PATH
18594  shlibpath_overrides_runpath=yes
18595  hardcode_into_libs=yes
18596  ;;
18597
18598newsos6)
18599  version_type=linux
18600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18601  shlibpath_var=LD_LIBRARY_PATH
18602  shlibpath_overrides_runpath=yes
18603  ;;
18604
18605nto-qnx*)
18606  version_type=linux
18607  need_lib_prefix=no
18608  need_version=no
18609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18610  soname_spec='${libname}${release}${shared_ext}$major'
18611  shlibpath_var=LD_LIBRARY_PATH
18612  shlibpath_overrides_runpath=yes
18613  ;;
18614
18615openbsd*)
18616  version_type=sunos
18617  sys_lib_dlsearch_path_spec="/usr/lib"
18618  need_lib_prefix=no
18619  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18620  case $host_os in
18621    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18622    *)                         need_version=no  ;;
18623  esac
18624  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18625  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18626  shlibpath_var=LD_LIBRARY_PATH
18627  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18628    case $host_os in
18629      openbsd2.[89] | openbsd2.[89].*)
18630	shlibpath_overrides_runpath=no
18631	;;
18632      *)
18633	shlibpath_overrides_runpath=yes
18634	;;
18635      esac
18636  else
18637    shlibpath_overrides_runpath=yes
18638  fi
18639  ;;
18640
18641os2*)
18642  libname_spec='$name'
18643  shrext_cmds=".dll"
18644  need_lib_prefix=no
18645  library_names_spec='$libname${shared_ext} $libname.a'
18646  dynamic_linker='OS/2 ld.exe'
18647  shlibpath_var=LIBPATH
18648  ;;
18649
18650osf3* | osf4* | osf5*)
18651  version_type=osf
18652  need_lib_prefix=no
18653  need_version=no
18654  soname_spec='${libname}${release}${shared_ext}$major'
18655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18656  shlibpath_var=LD_LIBRARY_PATH
18657  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18658  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18659  ;;
18660
18661rdos*)
18662  dynamic_linker=no
18663  ;;
18664
18665solaris*)
18666  version_type=linux
18667  need_lib_prefix=no
18668  need_version=no
18669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18670  soname_spec='${libname}${release}${shared_ext}$major'
18671  shlibpath_var=LD_LIBRARY_PATH
18672  shlibpath_overrides_runpath=yes
18673  hardcode_into_libs=yes
18674  # ldd complains unless libraries are executable
18675  postinstall_cmds='chmod +x $lib'
18676  ;;
18677
18678sunos4*)
18679  version_type=sunos
18680  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18681  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18682  shlibpath_var=LD_LIBRARY_PATH
18683  shlibpath_overrides_runpath=yes
18684  if test "$with_gnu_ld" = yes; then
18685    need_lib_prefix=no
18686  fi
18687  need_version=yes
18688  ;;
18689
18690sysv4 | sysv4.3*)
18691  version_type=linux
18692  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18693  soname_spec='${libname}${release}${shared_ext}$major'
18694  shlibpath_var=LD_LIBRARY_PATH
18695  case $host_vendor in
18696    sni)
18697      shlibpath_overrides_runpath=no
18698      need_lib_prefix=no
18699      export_dynamic_flag_spec='${wl}-Blargedynsym'
18700      runpath_var=LD_RUN_PATH
18701      ;;
18702    siemens)
18703      need_lib_prefix=no
18704      ;;
18705    motorola)
18706      need_lib_prefix=no
18707      need_version=no
18708      shlibpath_overrides_runpath=no
18709      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18710      ;;
18711  esac
18712  ;;
18713
18714sysv4*MP*)
18715  if test -d /usr/nec ;then
18716    version_type=linux
18717    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18718    soname_spec='$libname${shared_ext}.$major'
18719    shlibpath_var=LD_LIBRARY_PATH
18720  fi
18721  ;;
18722
18723sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18724  version_type=freebsd-elf
18725  need_lib_prefix=no
18726  need_version=no
18727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18728  soname_spec='${libname}${release}${shared_ext}$major'
18729  shlibpath_var=LD_LIBRARY_PATH
18730  hardcode_into_libs=yes
18731  if test "$with_gnu_ld" = yes; then
18732    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18733    shlibpath_overrides_runpath=no
18734  else
18735    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18736    shlibpath_overrides_runpath=yes
18737    case $host_os in
18738      sco3.2v5*)
18739        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18740	;;
18741    esac
18742  fi
18743  sys_lib_dlsearch_path_spec='/usr/lib'
18744  ;;
18745
18746uts4*)
18747  version_type=linux
18748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18749  soname_spec='${libname}${release}${shared_ext}$major'
18750  shlibpath_var=LD_LIBRARY_PATH
18751  ;;
18752
18753*)
18754  dynamic_linker=no
18755  ;;
18756esac
18757{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18758echo "${ECHO_T}$dynamic_linker" >&6; }
18759test "$dynamic_linker" = no && can_build_shared=no
18760
18761if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18762  echo $ECHO_N "(cached) $ECHO_C" >&6
18763else
18764  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18765fi
18766
18767sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18768if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18769  echo $ECHO_N "(cached) $ECHO_C" >&6
18770else
18771  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18772fi
18773
18774sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18775
18776variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18777if test "$GCC" = yes; then
18778  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18779fi
18780
18781{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18782echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18783hardcode_action_GCJ=
18784if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18785   test -n "$runpath_var_GCJ" || \
18786   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18787
18788  # We can hardcode non-existant directories.
18789  if test "$hardcode_direct_GCJ" != no &&
18790     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18791     # have to relink, otherwise we might link with an installed library
18792     # when we should be linking with a yet-to-be-installed one
18793     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18794     test "$hardcode_minus_L_GCJ" != no; then
18795    # Linking always hardcodes the temporary library directory.
18796    hardcode_action_GCJ=relink
18797  else
18798    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18799    hardcode_action_GCJ=immediate
18800  fi
18801else
18802  # We cannot hardcode anything, or else we can only hardcode existing
18803  # directories.
18804  hardcode_action_GCJ=unsupported
18805fi
18806{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18807echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18808
18809if test "$hardcode_action_GCJ" = relink; then
18810  # Fast installation is not supported
18811  enable_fast_install=no
18812elif test "$shlibpath_overrides_runpath" = yes ||
18813     test "$enable_shared" = no; then
18814  # Fast installation is not necessary
18815  enable_fast_install=needless
18816fi
18817
18818
18819# The else clause should only fire when bootstrapping the
18820# libtool distribution, otherwise you forgot to ship ltmain.sh
18821# with your package, and you will get complaints that there are
18822# no rules to generate ltmain.sh.
18823if test -f "$ltmain"; then
18824  # See if we are running on zsh, and set the options which allow our commands through
18825  # without removal of \ escapes.
18826  if test -n "${ZSH_VERSION+set}" ; then
18827    setopt NO_GLOB_SUBST
18828  fi
18829  # Now quote all the things that may contain metacharacters while being
18830  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18831  # variables and quote the copies for generation of the libtool script.
18832  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18833    SED SHELL STRIP \
18834    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18835    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18836    deplibs_check_method reload_flag reload_cmds need_locks \
18837    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18838    lt_cv_sys_global_symbol_to_c_name_address \
18839    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18840    old_postinstall_cmds old_postuninstall_cmds \
18841    compiler_GCJ \
18842    CC_GCJ \
18843    LD_GCJ \
18844    lt_prog_compiler_wl_GCJ \
18845    lt_prog_compiler_pic_GCJ \
18846    lt_prog_compiler_static_GCJ \
18847    lt_prog_compiler_no_builtin_flag_GCJ \
18848    export_dynamic_flag_spec_GCJ \
18849    thread_safe_flag_spec_GCJ \
18850    whole_archive_flag_spec_GCJ \
18851    enable_shared_with_static_runtimes_GCJ \
18852    old_archive_cmds_GCJ \
18853    old_archive_from_new_cmds_GCJ \
18854    predep_objects_GCJ \
18855    postdep_objects_GCJ \
18856    predeps_GCJ \
18857    postdeps_GCJ \
18858    compiler_lib_search_path_GCJ \
18859    compiler_lib_search_dirs_GCJ \
18860    archive_cmds_GCJ \
18861    archive_expsym_cmds_GCJ \
18862    postinstall_cmds_GCJ \
18863    postuninstall_cmds_GCJ \
18864    old_archive_from_expsyms_cmds_GCJ \
18865    allow_undefined_flag_GCJ \
18866    no_undefined_flag_GCJ \
18867    export_symbols_cmds_GCJ \
18868    hardcode_libdir_flag_spec_GCJ \
18869    hardcode_libdir_flag_spec_ld_GCJ \
18870    hardcode_libdir_separator_GCJ \
18871    hardcode_automatic_GCJ \
18872    module_cmds_GCJ \
18873    module_expsym_cmds_GCJ \
18874    lt_cv_prog_compiler_c_o_GCJ \
18875    fix_srcfile_path_GCJ \
18876    exclude_expsyms_GCJ \
18877    include_expsyms_GCJ; do
18878
18879    case $var in
18880    old_archive_cmds_GCJ | \
18881    old_archive_from_new_cmds_GCJ | \
18882    archive_cmds_GCJ | \
18883    archive_expsym_cmds_GCJ | \
18884    module_cmds_GCJ | \
18885    module_expsym_cmds_GCJ | \
18886    old_archive_from_expsyms_cmds_GCJ | \
18887    export_symbols_cmds_GCJ | \
18888    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18889    postinstall_cmds | postuninstall_cmds | \
18890    old_postinstall_cmds | old_postuninstall_cmds | \
18891    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18892      # Double-quote double-evaled strings.
18893      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18894      ;;
18895    *)
18896      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18897      ;;
18898    esac
18899  done
18900
18901  case $lt_echo in
18902  *'\$0 --fallback-echo"')
18903    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18904    ;;
18905  esac
18906
18907cfgfile="$ofile"
18908
18909  cat <<__EOF__ >> "$cfgfile"
18910# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18911
18912# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18913
18914# Shell to use when invoking shell scripts.
18915SHELL=$lt_SHELL
18916
18917# Whether or not to build shared libraries.
18918build_libtool_libs=$enable_shared
18919
18920# Whether or not to build static libraries.
18921build_old_libs=$enable_static
18922
18923# Whether or not to add -lc for building shared libraries.
18924build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18925
18926# Whether or not to disallow shared libs when runtime libs are static
18927allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18928
18929# Whether or not to optimize for fast installation.
18930fast_install=$enable_fast_install
18931
18932# The host system.
18933host_alias=$host_alias
18934host=$host
18935host_os=$host_os
18936
18937# The build system.
18938build_alias=$build_alias
18939build=$build
18940build_os=$build_os
18941
18942# An echo program that does not interpret backslashes.
18943echo=$lt_echo
18944
18945# The archiver.
18946AR=$lt_AR
18947AR_FLAGS=$lt_AR_FLAGS
18948
18949# A C compiler.
18950LTCC=$lt_LTCC
18951
18952# LTCC compiler flags.
18953LTCFLAGS=$lt_LTCFLAGS
18954
18955# A language-specific compiler.
18956CC=$lt_compiler_GCJ
18957
18958# Is the compiler the GNU C compiler?
18959with_gcc=$GCC_GCJ
18960
18961# An ERE matcher.
18962EGREP=$lt_EGREP
18963
18964# The linker used to build libraries.
18965LD=$lt_LD_GCJ
18966
18967# Whether we need hard or soft links.
18968LN_S=$lt_LN_S
18969
18970# A BSD-compatible nm program.
18971NM=$lt_NM
18972
18973# A symbol stripping program
18974STRIP=$lt_STRIP
18975
18976# Used to examine libraries when file_magic_cmd begins "file"
18977MAGIC_CMD=$MAGIC_CMD
18978
18979# Used on cygwin: DLL creation program.
18980DLLTOOL="$DLLTOOL"
18981
18982# Used on cygwin: object dumper.
18983OBJDUMP="$OBJDUMP"
18984
18985# Used on cygwin: assembler.
18986AS="$AS"
18987
18988# The name of the directory that contains temporary libtool files.
18989objdir=$objdir
18990
18991# How to create reloadable object files.
18992reload_flag=$lt_reload_flag
18993reload_cmds=$lt_reload_cmds
18994
18995# How to pass a linker flag through the compiler.
18996wl=$lt_lt_prog_compiler_wl_GCJ
18997
18998# Object file suffix (normally "o").
18999objext="$ac_objext"
19000
19001# Old archive suffix (normally "a").
19002libext="$libext"
19003
19004# Shared library suffix (normally ".so").
19005shrext_cmds='$shrext_cmds'
19006
19007# Executable file suffix (normally "").
19008exeext="$exeext"
19009
19010# Additional compiler flags for building library objects.
19011pic_flag=$lt_lt_prog_compiler_pic_GCJ
19012pic_mode=$pic_mode
19013
19014# What is the maximum length of a command?
19015max_cmd_len=$lt_cv_sys_max_cmd_len
19016
19017# Does compiler simultaneously support -c and -o options?
19018compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19019
19020# Must we lock files when doing compilation?
19021need_locks=$lt_need_locks
19022
19023# Do we need the lib prefix for modules?
19024need_lib_prefix=$need_lib_prefix
19025
19026# Do we need a version for libraries?
19027need_version=$need_version
19028
19029# Whether dlopen is supported.
19030dlopen_support=$enable_dlopen
19031
19032# Whether dlopen of programs is supported.
19033dlopen_self=$enable_dlopen_self
19034
19035# Whether dlopen of statically linked programs is supported.
19036dlopen_self_static=$enable_dlopen_self_static
19037
19038# Compiler flag to prevent dynamic linking.
19039link_static_flag=$lt_lt_prog_compiler_static_GCJ
19040
19041# Compiler flag to turn off builtin functions.
19042no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19043
19044# Compiler flag to allow reflexive dlopens.
19045export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19046
19047# Compiler flag to generate shared objects directly from archives.
19048whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19049
19050# Compiler flag to generate thread-safe objects.
19051thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19052
19053# Library versioning type.
19054version_type=$version_type
19055
19056# Format of library name prefix.
19057libname_spec=$lt_libname_spec
19058
19059# List of archive names.  First name is the real one, the rest are links.
19060# The last name is the one that the linker finds with -lNAME.
19061library_names_spec=$lt_library_names_spec
19062
19063# The coded name of the library, if different from the real name.
19064soname_spec=$lt_soname_spec
19065
19066# Commands used to build and install an old-style archive.
19067RANLIB=$lt_RANLIB
19068old_archive_cmds=$lt_old_archive_cmds_GCJ
19069old_postinstall_cmds=$lt_old_postinstall_cmds
19070old_postuninstall_cmds=$lt_old_postuninstall_cmds
19071
19072# Create an old-style archive from a shared archive.
19073old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19074
19075# Create a temporary old-style archive to link instead of a shared archive.
19076old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19077
19078# Commands used to build and install a shared archive.
19079archive_cmds=$lt_archive_cmds_GCJ
19080archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19081postinstall_cmds=$lt_postinstall_cmds
19082postuninstall_cmds=$lt_postuninstall_cmds
19083
19084# Commands used to build a loadable module (assumed same as above if empty)
19085module_cmds=$lt_module_cmds_GCJ
19086module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19087
19088# Commands to strip libraries.
19089old_striplib=$lt_old_striplib
19090striplib=$lt_striplib
19091
19092# Dependencies to place before the objects being linked to create a
19093# shared library.
19094predep_objects=$lt_predep_objects_GCJ
19095
19096# Dependencies to place after the objects being linked to create a
19097# shared library.
19098postdep_objects=$lt_postdep_objects_GCJ
19099
19100# Dependencies to place before the objects being linked to create a
19101# shared library.
19102predeps=$lt_predeps_GCJ
19103
19104# Dependencies to place after the objects being linked to create a
19105# shared library.
19106postdeps=$lt_postdeps_GCJ
19107
19108# The directories searched by this compiler when creating a shared
19109# library
19110compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19111
19112# The library search path used internally by the compiler when linking
19113# a shared library.
19114compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19115
19116# Method to check whether dependent libraries are shared objects.
19117deplibs_check_method=$lt_deplibs_check_method
19118
19119# Command to use when deplibs_check_method == file_magic.
19120file_magic_cmd=$lt_file_magic_cmd
19121
19122# Flag that allows shared libraries with undefined symbols to be built.
19123allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19124
19125# Flag that forces no undefined symbols.
19126no_undefined_flag=$lt_no_undefined_flag_GCJ
19127
19128# Commands used to finish a libtool library installation in a directory.
19129finish_cmds=$lt_finish_cmds
19130
19131# Same as above, but a single script fragment to be evaled but not shown.
19132finish_eval=$lt_finish_eval
19133
19134# Take the output of nm and produce a listing of raw symbols and C names.
19135global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19136
19137# Transform the output of nm in a proper C declaration
19138global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19139
19140# Transform the output of nm in a C name address pair
19141global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19142
19143# This is the shared library runtime path variable.
19144runpath_var=$runpath_var
19145
19146# This is the shared library path variable.
19147shlibpath_var=$shlibpath_var
19148
19149# Is shlibpath searched before the hard-coded library search path?
19150shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19151
19152# How to hardcode a shared library path into an executable.
19153hardcode_action=$hardcode_action_GCJ
19154
19155# Whether we should hardcode library paths into libraries.
19156hardcode_into_libs=$hardcode_into_libs
19157
19158# Flag to hardcode \$libdir into a binary during linking.
19159# This must work even if \$libdir does not exist.
19160hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19161
19162# If ld is used when linking, flag to hardcode \$libdir into
19163# a binary during linking. This must work even if \$libdir does
19164# not exist.
19165hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19166
19167# Whether we need a single -rpath flag with a separated argument.
19168hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19169
19170# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19171# resulting binary.
19172hardcode_direct=$hardcode_direct_GCJ
19173
19174# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19175# resulting binary.
19176hardcode_minus_L=$hardcode_minus_L_GCJ
19177
19178# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19179# the resulting binary.
19180hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19181
19182# Set to yes if building a shared library automatically hardcodes DIR into the library
19183# and all subsequent libraries and executables linked against it.
19184hardcode_automatic=$hardcode_automatic_GCJ
19185
19186# Variables whose values should be saved in libtool wrapper scripts and
19187# restored at relink time.
19188variables_saved_for_relink="$variables_saved_for_relink"
19189
19190# Whether libtool must link a program against all its dependency libraries.
19191link_all_deplibs=$link_all_deplibs_GCJ
19192
19193# Compile-time system search path for libraries
19194sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19195
19196# Run-time system search path for libraries
19197sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19198
19199# Fix the shell variable \$srcfile for the compiler.
19200fix_srcfile_path=$lt_fix_srcfile_path
19201
19202# Set to yes if exported symbols are required.
19203always_export_symbols=$always_export_symbols_GCJ
19204
19205# The commands to list exported symbols.
19206export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19207
19208# The commands to extract the exported symbol list from a shared archive.
19209extract_expsyms_cmds=$lt_extract_expsyms_cmds
19210
19211# Symbols that should not be listed in the preloaded symbols.
19212exclude_expsyms=$lt_exclude_expsyms_GCJ
19213
19214# Symbols that must always be exported.
19215include_expsyms=$lt_include_expsyms_GCJ
19216
19217# ### END LIBTOOL TAG CONFIG: $tagname
19218
19219__EOF__
19220
19221
19222else
19223  # If there is no Makefile yet, we rely on a make rule to execute
19224  # `config.status --recheck' to rerun these tests and create the
19225  # libtool script then.
19226  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19227  if test -f "$ltmain_in"; then
19228    test -f Makefile && make "$ltmain"
19229  fi
19230fi
19231
19232
19233ac_ext=c
19234ac_cpp='$CPP $CPPFLAGS'
19235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19237ac_compiler_gnu=$ac_cv_c_compiler_gnu
19238
19239CC="$lt_save_CC"
19240
19241	else
19242	  tagname=""
19243	fi
19244	;;
19245
19246      RC)
19247
19248
19249# Source file extension for RC test sources.
19250ac_ext=rc
19251
19252# Object file extension for compiled RC test sources.
19253objext=o
19254objext_RC=$objext
19255
19256# Code to be used in simple compile tests
19257lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19258
19259# Code to be used in simple link tests
19260lt_simple_link_test_code="$lt_simple_compile_test_code"
19261
19262# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19263
19264# If no C compiler was specified, use CC.
19265LTCC=${LTCC-"$CC"}
19266
19267# If no C compiler flags were specified, use CFLAGS.
19268LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19269
19270# Allow CC to be a program name with arguments.
19271compiler=$CC
19272
19273
19274# save warnings/boilerplate of simple test code
19275ac_outfile=conftest.$ac_objext
19276echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19277eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19278_lt_compiler_boilerplate=`cat conftest.err`
19279$rm conftest*
19280
19281ac_outfile=conftest.$ac_objext
19282echo "$lt_simple_link_test_code" >conftest.$ac_ext
19283eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19284_lt_linker_boilerplate=`cat conftest.err`
19285$rm -r conftest*
19286
19287
19288# Allow CC to be a program name with arguments.
19289lt_save_CC="$CC"
19290CC=${RC-"windres"}
19291compiler=$CC
19292compiler_RC=$CC
19293for cc_temp in $compiler""; do
19294  case $cc_temp in
19295    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19296    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19297    \-*) ;;
19298    *) break;;
19299  esac
19300done
19301cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19302
19303lt_cv_prog_compiler_c_o_RC=yes
19304
19305# The else clause should only fire when bootstrapping the
19306# libtool distribution, otherwise you forgot to ship ltmain.sh
19307# with your package, and you will get complaints that there are
19308# no rules to generate ltmain.sh.
19309if test -f "$ltmain"; then
19310  # See if we are running on zsh, and set the options which allow our commands through
19311  # without removal of \ escapes.
19312  if test -n "${ZSH_VERSION+set}" ; then
19313    setopt NO_GLOB_SUBST
19314  fi
19315  # Now quote all the things that may contain metacharacters while being
19316  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19317  # variables and quote the copies for generation of the libtool script.
19318  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19319    SED SHELL STRIP \
19320    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19321    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19322    deplibs_check_method reload_flag reload_cmds need_locks \
19323    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19324    lt_cv_sys_global_symbol_to_c_name_address \
19325    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19326    old_postinstall_cmds old_postuninstall_cmds \
19327    compiler_RC \
19328    CC_RC \
19329    LD_RC \
19330    lt_prog_compiler_wl_RC \
19331    lt_prog_compiler_pic_RC \
19332    lt_prog_compiler_static_RC \
19333    lt_prog_compiler_no_builtin_flag_RC \
19334    export_dynamic_flag_spec_RC \
19335    thread_safe_flag_spec_RC \
19336    whole_archive_flag_spec_RC \
19337    enable_shared_with_static_runtimes_RC \
19338    old_archive_cmds_RC \
19339    old_archive_from_new_cmds_RC \
19340    predep_objects_RC \
19341    postdep_objects_RC \
19342    predeps_RC \
19343    postdeps_RC \
19344    compiler_lib_search_path_RC \
19345    compiler_lib_search_dirs_RC \
19346    archive_cmds_RC \
19347    archive_expsym_cmds_RC \
19348    postinstall_cmds_RC \
19349    postuninstall_cmds_RC \
19350    old_archive_from_expsyms_cmds_RC \
19351    allow_undefined_flag_RC \
19352    no_undefined_flag_RC \
19353    export_symbols_cmds_RC \
19354    hardcode_libdir_flag_spec_RC \
19355    hardcode_libdir_flag_spec_ld_RC \
19356    hardcode_libdir_separator_RC \
19357    hardcode_automatic_RC \
19358    module_cmds_RC \
19359    module_expsym_cmds_RC \
19360    lt_cv_prog_compiler_c_o_RC \
19361    fix_srcfile_path_RC \
19362    exclude_expsyms_RC \
19363    include_expsyms_RC; do
19364
19365    case $var in
19366    old_archive_cmds_RC | \
19367    old_archive_from_new_cmds_RC | \
19368    archive_cmds_RC | \
19369    archive_expsym_cmds_RC | \
19370    module_cmds_RC | \
19371    module_expsym_cmds_RC | \
19372    old_archive_from_expsyms_cmds_RC | \
19373    export_symbols_cmds_RC | \
19374    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19375    postinstall_cmds | postuninstall_cmds | \
19376    old_postinstall_cmds | old_postuninstall_cmds | \
19377    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19378      # Double-quote double-evaled strings.
19379      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19380      ;;
19381    *)
19382      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19383      ;;
19384    esac
19385  done
19386
19387  case $lt_echo in
19388  *'\$0 --fallback-echo"')
19389    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19390    ;;
19391  esac
19392
19393cfgfile="$ofile"
19394
19395  cat <<__EOF__ >> "$cfgfile"
19396# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19397
19398# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19399
19400# Shell to use when invoking shell scripts.
19401SHELL=$lt_SHELL
19402
19403# Whether or not to build shared libraries.
19404build_libtool_libs=$enable_shared
19405
19406# Whether or not to build static libraries.
19407build_old_libs=$enable_static
19408
19409# Whether or not to add -lc for building shared libraries.
19410build_libtool_need_lc=$archive_cmds_need_lc_RC
19411
19412# Whether or not to disallow shared libs when runtime libs are static
19413allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19414
19415# Whether or not to optimize for fast installation.
19416fast_install=$enable_fast_install
19417
19418# The host system.
19419host_alias=$host_alias
19420host=$host
19421host_os=$host_os
19422
19423# The build system.
19424build_alias=$build_alias
19425build=$build
19426build_os=$build_os
19427
19428# An echo program that does not interpret backslashes.
19429echo=$lt_echo
19430
19431# The archiver.
19432AR=$lt_AR
19433AR_FLAGS=$lt_AR_FLAGS
19434
19435# A C compiler.
19436LTCC=$lt_LTCC
19437
19438# LTCC compiler flags.
19439LTCFLAGS=$lt_LTCFLAGS
19440
19441# A language-specific compiler.
19442CC=$lt_compiler_RC
19443
19444# Is the compiler the GNU C compiler?
19445with_gcc=$GCC_RC
19446
19447# An ERE matcher.
19448EGREP=$lt_EGREP
19449
19450# The linker used to build libraries.
19451LD=$lt_LD_RC
19452
19453# Whether we need hard or soft links.
19454LN_S=$lt_LN_S
19455
19456# A BSD-compatible nm program.
19457NM=$lt_NM
19458
19459# A symbol stripping program
19460STRIP=$lt_STRIP
19461
19462# Used to examine libraries when file_magic_cmd begins "file"
19463MAGIC_CMD=$MAGIC_CMD
19464
19465# Used on cygwin: DLL creation program.
19466DLLTOOL="$DLLTOOL"
19467
19468# Used on cygwin: object dumper.
19469OBJDUMP="$OBJDUMP"
19470
19471# Used on cygwin: assembler.
19472AS="$AS"
19473
19474# The name of the directory that contains temporary libtool files.
19475objdir=$objdir
19476
19477# How to create reloadable object files.
19478reload_flag=$lt_reload_flag
19479reload_cmds=$lt_reload_cmds
19480
19481# How to pass a linker flag through the compiler.
19482wl=$lt_lt_prog_compiler_wl_RC
19483
19484# Object file suffix (normally "o").
19485objext="$ac_objext"
19486
19487# Old archive suffix (normally "a").
19488libext="$libext"
19489
19490# Shared library suffix (normally ".so").
19491shrext_cmds='$shrext_cmds'
19492
19493# Executable file suffix (normally "").
19494exeext="$exeext"
19495
19496# Additional compiler flags for building library objects.
19497pic_flag=$lt_lt_prog_compiler_pic_RC
19498pic_mode=$pic_mode
19499
19500# What is the maximum length of a command?
19501max_cmd_len=$lt_cv_sys_max_cmd_len
19502
19503# Does compiler simultaneously support -c and -o options?
19504compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19505
19506# Must we lock files when doing compilation?
19507need_locks=$lt_need_locks
19508
19509# Do we need the lib prefix for modules?
19510need_lib_prefix=$need_lib_prefix
19511
19512# Do we need a version for libraries?
19513need_version=$need_version
19514
19515# Whether dlopen is supported.
19516dlopen_support=$enable_dlopen
19517
19518# Whether dlopen of programs is supported.
19519dlopen_self=$enable_dlopen_self
19520
19521# Whether dlopen of statically linked programs is supported.
19522dlopen_self_static=$enable_dlopen_self_static
19523
19524# Compiler flag to prevent dynamic linking.
19525link_static_flag=$lt_lt_prog_compiler_static_RC
19526
19527# Compiler flag to turn off builtin functions.
19528no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19529
19530# Compiler flag to allow reflexive dlopens.
19531export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19532
19533# Compiler flag to generate shared objects directly from archives.
19534whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19535
19536# Compiler flag to generate thread-safe objects.
19537thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19538
19539# Library versioning type.
19540version_type=$version_type
19541
19542# Format of library name prefix.
19543libname_spec=$lt_libname_spec
19544
19545# List of archive names.  First name is the real one, the rest are links.
19546# The last name is the one that the linker finds with -lNAME.
19547library_names_spec=$lt_library_names_spec
19548
19549# The coded name of the library, if different from the real name.
19550soname_spec=$lt_soname_spec
19551
19552# Commands used to build and install an old-style archive.
19553RANLIB=$lt_RANLIB
19554old_archive_cmds=$lt_old_archive_cmds_RC
19555old_postinstall_cmds=$lt_old_postinstall_cmds
19556old_postuninstall_cmds=$lt_old_postuninstall_cmds
19557
19558# Create an old-style archive from a shared archive.
19559old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19560
19561# Create a temporary old-style archive to link instead of a shared archive.
19562old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19563
19564# Commands used to build and install a shared archive.
19565archive_cmds=$lt_archive_cmds_RC
19566archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19567postinstall_cmds=$lt_postinstall_cmds
19568postuninstall_cmds=$lt_postuninstall_cmds
19569
19570# Commands used to build a loadable module (assumed same as above if empty)
19571module_cmds=$lt_module_cmds_RC
19572module_expsym_cmds=$lt_module_expsym_cmds_RC
19573
19574# Commands to strip libraries.
19575old_striplib=$lt_old_striplib
19576striplib=$lt_striplib
19577
19578# Dependencies to place before the objects being linked to create a
19579# shared library.
19580predep_objects=$lt_predep_objects_RC
19581
19582# Dependencies to place after the objects being linked to create a
19583# shared library.
19584postdep_objects=$lt_postdep_objects_RC
19585
19586# Dependencies to place before the objects being linked to create a
19587# shared library.
19588predeps=$lt_predeps_RC
19589
19590# Dependencies to place after the objects being linked to create a
19591# shared library.
19592postdeps=$lt_postdeps_RC
19593
19594# The directories searched by this compiler when creating a shared
19595# library
19596compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19597
19598# The library search path used internally by the compiler when linking
19599# a shared library.
19600compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19601
19602# Method to check whether dependent libraries are shared objects.
19603deplibs_check_method=$lt_deplibs_check_method
19604
19605# Command to use when deplibs_check_method == file_magic.
19606file_magic_cmd=$lt_file_magic_cmd
19607
19608# Flag that allows shared libraries with undefined symbols to be built.
19609allow_undefined_flag=$lt_allow_undefined_flag_RC
19610
19611# Flag that forces no undefined symbols.
19612no_undefined_flag=$lt_no_undefined_flag_RC
19613
19614# Commands used to finish a libtool library installation in a directory.
19615finish_cmds=$lt_finish_cmds
19616
19617# Same as above, but a single script fragment to be evaled but not shown.
19618finish_eval=$lt_finish_eval
19619
19620# Take the output of nm and produce a listing of raw symbols and C names.
19621global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19622
19623# Transform the output of nm in a proper C declaration
19624global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19625
19626# Transform the output of nm in a C name address pair
19627global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19628
19629# This is the shared library runtime path variable.
19630runpath_var=$runpath_var
19631
19632# This is the shared library path variable.
19633shlibpath_var=$shlibpath_var
19634
19635# Is shlibpath searched before the hard-coded library search path?
19636shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19637
19638# How to hardcode a shared library path into an executable.
19639hardcode_action=$hardcode_action_RC
19640
19641# Whether we should hardcode library paths into libraries.
19642hardcode_into_libs=$hardcode_into_libs
19643
19644# Flag to hardcode \$libdir into a binary during linking.
19645# This must work even if \$libdir does not exist.
19646hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19647
19648# If ld is used when linking, flag to hardcode \$libdir into
19649# a binary during linking. This must work even if \$libdir does
19650# not exist.
19651hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19652
19653# Whether we need a single -rpath flag with a separated argument.
19654hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19655
19656# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19657# resulting binary.
19658hardcode_direct=$hardcode_direct_RC
19659
19660# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19661# resulting binary.
19662hardcode_minus_L=$hardcode_minus_L_RC
19663
19664# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19665# the resulting binary.
19666hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19667
19668# Set to yes if building a shared library automatically hardcodes DIR into the library
19669# and all subsequent libraries and executables linked against it.
19670hardcode_automatic=$hardcode_automatic_RC
19671
19672# Variables whose values should be saved in libtool wrapper scripts and
19673# restored at relink time.
19674variables_saved_for_relink="$variables_saved_for_relink"
19675
19676# Whether libtool must link a program against all its dependency libraries.
19677link_all_deplibs=$link_all_deplibs_RC
19678
19679# Compile-time system search path for libraries
19680sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19681
19682# Run-time system search path for libraries
19683sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19684
19685# Fix the shell variable \$srcfile for the compiler.
19686fix_srcfile_path=$lt_fix_srcfile_path
19687
19688# Set to yes if exported symbols are required.
19689always_export_symbols=$always_export_symbols_RC
19690
19691# The commands to list exported symbols.
19692export_symbols_cmds=$lt_export_symbols_cmds_RC
19693
19694# The commands to extract the exported symbol list from a shared archive.
19695extract_expsyms_cmds=$lt_extract_expsyms_cmds
19696
19697# Symbols that should not be listed in the preloaded symbols.
19698exclude_expsyms=$lt_exclude_expsyms_RC
19699
19700# Symbols that must always be exported.
19701include_expsyms=$lt_include_expsyms_RC
19702
19703# ### END LIBTOOL TAG CONFIG: $tagname
19704
19705__EOF__
19706
19707
19708else
19709  # If there is no Makefile yet, we rely on a make rule to execute
19710  # `config.status --recheck' to rerun these tests and create the
19711  # libtool script then.
19712  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19713  if test -f "$ltmain_in"; then
19714    test -f Makefile && make "$ltmain"
19715  fi
19716fi
19717
19718
19719ac_ext=c
19720ac_cpp='$CPP $CPPFLAGS'
19721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19723ac_compiler_gnu=$ac_cv_c_compiler_gnu
19724
19725CC="$lt_save_CC"
19726
19727	;;
19728
19729      *)
19730	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19731echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19732   { (exit 1); exit 1; }; }
19733	;;
19734      esac
19735
19736      # Append the new tag name to the list of available tags.
19737      if test -n "$tagname" ; then
19738      available_tags="$available_tags $tagname"
19739    fi
19740    fi
19741  done
19742  IFS="$lt_save_ifs"
19743
19744  # Now substitute the updated list of available tags.
19745  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19746    mv "${ofile}T" "$ofile"
19747    chmod +x "$ofile"
19748  else
19749    rm -f "${ofile}T"
19750    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19751echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19752   { (exit 1); exit 1; }; }
19753  fi
19754fi
19755
19756
19757
19758# This can be used to rebuild libtool when needed
19759LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19760
19761# Always use our own libtool.
19762LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19763
19764# Prevent multiple expansion
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785if test "x$CC" != xcc; then
19786  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
19787echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
19788else
19789  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
19790echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
19791fi
19792set dummy $CC; ac_cc=`echo $2 |
19793		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19794if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
19795  echo $ECHO_N "(cached) $ECHO_C" >&6
19796else
19797  cat >conftest.$ac_ext <<_ACEOF
19798/* confdefs.h.  */
19799_ACEOF
19800cat confdefs.h >>conftest.$ac_ext
19801cat >>conftest.$ac_ext <<_ACEOF
19802/* end confdefs.h.  */
19803
19804int
19805main ()
19806{
19807
19808  ;
19809  return 0;
19810}
19811_ACEOF
19812# Make sure it works both with $CC and with simple cc.
19813# We do the test twice because some compilers refuse to overwrite an
19814# existing .o file with -o, though they will create one.
19815ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19816rm -f conftest2.*
19817if { (case "(($ac_try" in
19818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19819  *) ac_try_echo=$ac_try;;
19820esac
19821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19822  (eval "$ac_try") 2>&5
19823  ac_status=$?
19824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825  (exit $ac_status); } &&
19826   test -f conftest2.$ac_objext && { (case "(($ac_try" in
19827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19828  *) ac_try_echo=$ac_try;;
19829esac
19830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19831  (eval "$ac_try") 2>&5
19832  ac_status=$?
19833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834  (exit $ac_status); };
19835then
19836  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19837  if test "x$CC" != xcc; then
19838    # Test first that cc exists at all.
19839    if { ac_try='cc -c conftest.$ac_ext >&5'
19840  { (case "(($ac_try" in
19841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842  *) ac_try_echo=$ac_try;;
19843esac
19844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845  (eval "$ac_try") 2>&5
19846  ac_status=$?
19847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848  (exit $ac_status); }; }; then
19849      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19850      rm -f conftest2.*
19851      if { (case "(($ac_try" in
19852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19853  *) ac_try_echo=$ac_try;;
19854esac
19855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19856  (eval "$ac_try") 2>&5
19857  ac_status=$?
19858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859  (exit $ac_status); } &&
19860	 test -f conftest2.$ac_objext && { (case "(($ac_try" in
19861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862  *) ac_try_echo=$ac_try;;
19863esac
19864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865  (eval "$ac_try") 2>&5
19866  ac_status=$?
19867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868  (exit $ac_status); };
19869      then
19870	# cc works too.
19871	:
19872      else
19873	# cc exists but doesn't like -o.
19874	eval ac_cv_prog_cc_${ac_cc}_c_o=no
19875      fi
19876    fi
19877  fi
19878else
19879  eval ac_cv_prog_cc_${ac_cc}_c_o=no
19880fi
19881rm -f core conftest*
19882
19883fi
19884if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19885  { echo "$as_me:$LINENO: result: yes" >&5
19886echo "${ECHO_T}yes" >&6; }
19887else
19888  { echo "$as_me:$LINENO: result: no" >&5
19889echo "${ECHO_T}no" >&6; }
19890
19891cat >>confdefs.h <<\_ACEOF
19892#define NO_MINUS_C_MINUS_O 1
19893_ACEOF
19894
19895fi
19896
19897# FIXME: we rely on the cache variable name because
19898# there is no other way.
19899set dummy $CC
19900ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19901if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
19902   # Losing compiler, so override with the script.
19903   # FIXME: It is wrong to rewrite CC.
19904   # But if we don't then we get into trouble of one sort or another.
19905   # A longer-term fix would be to have automake use am__CC in this case,
19906   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19907   CC="$am_aux_dir/compile $CC"
19908fi
19909
19910
19911
19912ac_config_headers="$ac_config_headers config.h"
19913
19914
19915
19916cflags_save="$CFLAGS"
19917if test -z "$GCC"; then
19918        case $host in
19919        *-*-irix*)
19920                DEBUG="-g -signed"
19921                CFLAGS="-O2 -w -signed"
19922                PROFILE="-p -g3 -O2 -signed"
19923		;;
19924        sparc-sun-solaris*)
19925                DEBUG="-v -g"
19926                CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
19927                PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc"
19928		;;
19929        *)
19930                DEBUG="-g"
19931                CFLAGS="-O"
19932                PROFILE="-g -p"
19933		;;
19934        esac
19935else
19936        case $host in
19937        *-*-linux*)
19938                DEBUG="-g -Wall -fsigned-char"
19939                CFLAGS="-O20 -ffast-math -fsigned-char"
19940                PROFILE="-Wall -W -pg -g -O20 -ffast-math -fsigned-char"
19941		;;
19942        sparc-sun-*)
19943                sparc_cpu=""
19944                { echo "$as_me:$LINENO: checking if gcc supports -mv8" >&5
19945echo $ECHO_N "checking if gcc supports -mv8... $ECHO_C" >&6; }
19946                old_cflags="$CFLAGS"
19947                CFLAGS="$CFLAGS -mv8"
19948                cat >conftest.$ac_ext <<_ACEOF
19949/* confdefs.h.  */
19950_ACEOF
19951cat confdefs.h >>conftest.$ac_ext
19952cat >>conftest.$ac_ext <<_ACEOF
19953/* end confdefs.h.  */
19954
19955int
19956main ()
19957{
19958return 0;
19959  ;
19960  return 0;
19961}
19962_ACEOF
19963rm -f conftest.$ac_objext
19964if { (ac_try="$ac_compile"
19965case "(($ac_try" in
19966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967  *) ac_try_echo=$ac_try;;
19968esac
19969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970  (eval "$ac_compile") 2>conftest.er1
19971  ac_status=$?
19972  grep -v '^ *+' conftest.er1 >conftest.err
19973  rm -f conftest.er1
19974  cat conftest.err >&5
19975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976  (exit $ac_status); } && {
19977	 test -z "$ac_c_werror_flag" ||
19978	 test ! -s conftest.err
19979       } && test -s conftest.$ac_objext; then
19980
19981                        { echo "$as_me:$LINENO: result: yes" >&5
19982echo "${ECHO_T}yes" >&6; }
19983                        sparc_cpu="-mv8"
19984
19985else
19986  echo "$as_me: failed program was:" >&5
19987sed 's/^/| /' conftest.$ac_ext >&5
19988
19989
19990fi
19991
19992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19993                CFLAGS="$old_cflags"
19994                DEBUG="-g -Wall -fsigned-char $sparc_cpu"
19995                CFLAGS="-O20 -ffast-math -fsigned-char $sparc_cpu"
19996                PROFILE="-pg -g -O20 -fsigned-char $sparc_cpu"
19997		;;
19998	*-*-darwin*)
19999		DEBUG="-fno-common -g -Wall -fsigned-char"
20000		CFLAGS="-fno-common -O4 -Wall -fsigned-char -ffast-math"
20001		PROFILE="-fno-common -O4 -Wall -pg -g -fsigned-char -ffast-math"
20002		;;
20003        *)
20004                DEBUG="-g -Wall -fsigned-char"
20005                CFLAGS="-O20 -fsigned-char"
20006                PROFILE="-O20 -g -pg -fsigned-char"
20007		;;
20008        esac
20009fi
20010CFLAGS="$CFLAGS $cflags_save"
20011DEBUG="$DEBUG $cflags_save"
20012PROFILE="$PROFILE $cflags_save"
20013
20014
20015
20016{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20017echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20018if test "${ac_cv_header_stdc+set}" = set; then
20019  echo $ECHO_N "(cached) $ECHO_C" >&6
20020else
20021  cat >conftest.$ac_ext <<_ACEOF
20022/* confdefs.h.  */
20023_ACEOF
20024cat confdefs.h >>conftest.$ac_ext
20025cat >>conftest.$ac_ext <<_ACEOF
20026/* end confdefs.h.  */
20027#include <stdlib.h>
20028#include <stdarg.h>
20029#include <string.h>
20030#include <float.h>
20031
20032int
20033main ()
20034{
20035
20036  ;
20037  return 0;
20038}
20039_ACEOF
20040rm -f conftest.$ac_objext
20041if { (ac_try="$ac_compile"
20042case "(($ac_try" in
20043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044  *) ac_try_echo=$ac_try;;
20045esac
20046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047  (eval "$ac_compile") 2>conftest.er1
20048  ac_status=$?
20049  grep -v '^ *+' conftest.er1 >conftest.err
20050  rm -f conftest.er1
20051  cat conftest.err >&5
20052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053  (exit $ac_status); } && {
20054	 test -z "$ac_c_werror_flag" ||
20055	 test ! -s conftest.err
20056       } && test -s conftest.$ac_objext; then
20057  ac_cv_header_stdc=yes
20058else
20059  echo "$as_me: failed program was:" >&5
20060sed 's/^/| /' conftest.$ac_ext >&5
20061
20062	ac_cv_header_stdc=no
20063fi
20064
20065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20066
20067if test $ac_cv_header_stdc = yes; then
20068  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20069  cat >conftest.$ac_ext <<_ACEOF
20070/* confdefs.h.  */
20071_ACEOF
20072cat confdefs.h >>conftest.$ac_ext
20073cat >>conftest.$ac_ext <<_ACEOF
20074/* end confdefs.h.  */
20075#include <string.h>
20076
20077_ACEOF
20078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20079  $EGREP "memchr" >/dev/null 2>&1; then
20080  :
20081else
20082  ac_cv_header_stdc=no
20083fi
20084rm -f conftest*
20085
20086fi
20087
20088if test $ac_cv_header_stdc = yes; then
20089  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20090  cat >conftest.$ac_ext <<_ACEOF
20091/* confdefs.h.  */
20092_ACEOF
20093cat confdefs.h >>conftest.$ac_ext
20094cat >>conftest.$ac_ext <<_ACEOF
20095/* end confdefs.h.  */
20096#include <stdlib.h>
20097
20098_ACEOF
20099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20100  $EGREP "free" >/dev/null 2>&1; then
20101  :
20102else
20103  ac_cv_header_stdc=no
20104fi
20105rm -f conftest*
20106
20107fi
20108
20109if test $ac_cv_header_stdc = yes; then
20110  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20111  if test "$cross_compiling" = yes; then
20112  :
20113else
20114  cat >conftest.$ac_ext <<_ACEOF
20115/* confdefs.h.  */
20116_ACEOF
20117cat confdefs.h >>conftest.$ac_ext
20118cat >>conftest.$ac_ext <<_ACEOF
20119/* end confdefs.h.  */
20120#include <ctype.h>
20121#include <stdlib.h>
20122#if ((' ' & 0x0FF) == 0x020)
20123# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20124# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20125#else
20126# define ISLOWER(c) \
20127		   (('a' <= (c) && (c) <= 'i') \
20128		     || ('j' <= (c) && (c) <= 'r') \
20129		     || ('s' <= (c) && (c) <= 'z'))
20130# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20131#endif
20132
20133#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20134int
20135main ()
20136{
20137  int i;
20138  for (i = 0; i < 256; i++)
20139    if (XOR (islower (i), ISLOWER (i))
20140	|| toupper (i) != TOUPPER (i))
20141      return 2;
20142  return 0;
20143}
20144_ACEOF
20145rm -f conftest$ac_exeext
20146if { (ac_try="$ac_link"
20147case "(($ac_try" in
20148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149  *) ac_try_echo=$ac_try;;
20150esac
20151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20152  (eval "$ac_link") 2>&5
20153  ac_status=$?
20154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20156  { (case "(($ac_try" in
20157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158  *) ac_try_echo=$ac_try;;
20159esac
20160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161  (eval "$ac_try") 2>&5
20162  ac_status=$?
20163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164  (exit $ac_status); }; }; then
20165  :
20166else
20167  echo "$as_me: program exited with status $ac_status" >&5
20168echo "$as_me: failed program was:" >&5
20169sed 's/^/| /' conftest.$ac_ext >&5
20170
20171( exit $ac_status )
20172ac_cv_header_stdc=no
20173fi
20174rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20175fi
20176
20177
20178fi
20179fi
20180{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20181echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20182if test $ac_cv_header_stdc = yes; then
20183
20184cat >>confdefs.h <<\_ACEOF
20185#define STDC_HEADERS 1
20186_ACEOF
20187
20188fi
20189
20190
20191{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20192echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20193if test "${ac_cv_c_const+set}" = set; then
20194  echo $ECHO_N "(cached) $ECHO_C" >&6
20195else
20196  cat >conftest.$ac_ext <<_ACEOF
20197/* confdefs.h.  */
20198_ACEOF
20199cat confdefs.h >>conftest.$ac_ext
20200cat >>conftest.$ac_ext <<_ACEOF
20201/* end confdefs.h.  */
20202
20203int
20204main ()
20205{
20206/* FIXME: Include the comments suggested by Paul. */
20207#ifndef __cplusplus
20208  /* Ultrix mips cc rejects this.  */
20209  typedef int charset[2];
20210  const charset cs;
20211  /* SunOS 4.1.1 cc rejects this.  */
20212  char const *const *pcpcc;
20213  char **ppc;
20214  /* NEC SVR4.0.2 mips cc rejects this.  */
20215  struct point {int x, y;};
20216  static struct point const zero = {0,0};
20217  /* AIX XL C 1.02.0.0 rejects this.
20218     It does not let you subtract one const X* pointer from another in
20219     an arm of an if-expression whose if-part is not a constant
20220     expression */
20221  const char *g = "string";
20222  pcpcc = &g + (g ? g-g : 0);
20223  /* HPUX 7.0 cc rejects these. */
20224  ++pcpcc;
20225  ppc = (char**) pcpcc;
20226  pcpcc = (char const *const *) ppc;
20227  { /* SCO 3.2v4 cc rejects this.  */
20228    char *t;
20229    char const *s = 0 ? (char *) 0 : (char const *) 0;
20230
20231    *t++ = 0;
20232    if (s) return 0;
20233  }
20234  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20235    int x[] = {25, 17};
20236    const int *foo = &x[0];
20237    ++foo;
20238  }
20239  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20240    typedef const int *iptr;
20241    iptr p = 0;
20242    ++p;
20243  }
20244  { /* AIX XL C 1.02.0.0 rejects this saying
20245       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20246    struct s { int j; const int *ap[3]; };
20247    struct s *b; b->j = 5;
20248  }
20249  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20250    const int foo = 10;
20251    if (!foo) return 0;
20252  }
20253  return !cs[0] && !zero.x;
20254#endif
20255
20256  ;
20257  return 0;
20258}
20259_ACEOF
20260rm -f conftest.$ac_objext
20261if { (ac_try="$ac_compile"
20262case "(($ac_try" in
20263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264  *) ac_try_echo=$ac_try;;
20265esac
20266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267  (eval "$ac_compile") 2>conftest.er1
20268  ac_status=$?
20269  grep -v '^ *+' conftest.er1 >conftest.err
20270  rm -f conftest.er1
20271  cat conftest.err >&5
20272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273  (exit $ac_status); } && {
20274	 test -z "$ac_c_werror_flag" ||
20275	 test ! -s conftest.err
20276       } && test -s conftest.$ac_objext; then
20277  ac_cv_c_const=yes
20278else
20279  echo "$as_me: failed program was:" >&5
20280sed 's/^/| /' conftest.$ac_ext >&5
20281
20282	ac_cv_c_const=no
20283fi
20284
20285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20286fi
20287{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20288echo "${ECHO_T}$ac_cv_c_const" >&6; }
20289if test $ac_cv_c_const = no; then
20290
20291cat >>confdefs.h <<\_ACEOF
20292#define const
20293_ACEOF
20294
20295fi
20296
20297
20298
20299{ echo "$as_me:$LINENO: checking for int16_t" >&5
20300echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
20301if test "${has_cv_int16_t+set}" = set; then
20302  echo $ECHO_N "(cached) $ECHO_C" >&6
20303else
20304  if test "$cross_compiling" = yes; then
20305  has_cv_int16_t=no
20306
20307else
20308  cat >conftest.$ac_ext <<_ACEOF
20309/* confdefs.h.  */
20310_ACEOF
20311cat confdefs.h >>conftest.$ac_ext
20312cat >>conftest.$ac_ext <<_ACEOF
20313/* end confdefs.h.  */
20314
20315#if defined __BEOS__ && !defined __HAIKU__
20316#include <inttypes.h>
20317#endif
20318#include <sys/types.h>
20319int16_t foo;
20320int main() {return 0;}
20321
20322_ACEOF
20323rm -f conftest$ac_exeext
20324if { (ac_try="$ac_link"
20325case "(($ac_try" in
20326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20327  *) ac_try_echo=$ac_try;;
20328esac
20329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20330  (eval "$ac_link") 2>&5
20331  ac_status=$?
20332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20334  { (case "(($ac_try" in
20335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20336  *) ac_try_echo=$ac_try;;
20337esac
20338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20339  (eval "$ac_try") 2>&5
20340  ac_status=$?
20341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342  (exit $ac_status); }; }; then
20343  has_cv_int16_t=yes
20344else
20345  echo "$as_me: program exited with status $ac_status" >&5
20346echo "$as_me: failed program was:" >&5
20347sed 's/^/| /' conftest.$ac_ext >&5
20348
20349( exit $ac_status )
20350has_cv_int16_t=no
20351fi
20352rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20353fi
20354
20355
20356fi
20357
20358{ echo "$as_me:$LINENO: result: $has_cv_int16_t" >&5
20359echo "${ECHO_T}$has_cv_int16_t" >&6; }
20360
20361{ echo "$as_me:$LINENO: checking for int32_t" >&5
20362echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
20363if test "${has_cv_int32_t+set}" = set; then
20364  echo $ECHO_N "(cached) $ECHO_C" >&6
20365else
20366  if test "$cross_compiling" = yes; then
20367  has_cv_int32_t=no
20368
20369else
20370  cat >conftest.$ac_ext <<_ACEOF
20371/* confdefs.h.  */
20372_ACEOF
20373cat confdefs.h >>conftest.$ac_ext
20374cat >>conftest.$ac_ext <<_ACEOF
20375/* end confdefs.h.  */
20376
20377#if defined __BEOS__ && !defined __HAIKU__
20378#include <inttypes.h>
20379#endif
20380#include <sys/types.h>
20381int32_t foo;
20382int main() {return 0;}
20383
20384_ACEOF
20385rm -f conftest$ac_exeext
20386if { (ac_try="$ac_link"
20387case "(($ac_try" in
20388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20389  *) ac_try_echo=$ac_try;;
20390esac
20391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20392  (eval "$ac_link") 2>&5
20393  ac_status=$?
20394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20396  { (case "(($ac_try" in
20397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20398  *) ac_try_echo=$ac_try;;
20399esac
20400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20401  (eval "$ac_try") 2>&5
20402  ac_status=$?
20403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404  (exit $ac_status); }; }; then
20405  has_cv_int32_t=yes
20406else
20407  echo "$as_me: program exited with status $ac_status" >&5
20408echo "$as_me: failed program was:" >&5
20409sed 's/^/| /' conftest.$ac_ext >&5
20410
20411( exit $ac_status )
20412has_cv_int32_t=no
20413fi
20414rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20415fi
20416
20417
20418fi
20419
20420{ echo "$as_me:$LINENO: result: $has_cv_int32_t" >&5
20421echo "${ECHO_T}$has_cv_int32_t" >&6; }
20422
20423{ echo "$as_me:$LINENO: checking for uint32_t" >&5
20424echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
20425if test "${has_cv_uint32_t+set}" = set; then
20426  echo $ECHO_N "(cached) $ECHO_C" >&6
20427else
20428  if test "$cross_compiling" = yes; then
20429  has_cv_uint32_t=no
20430
20431else
20432  cat >conftest.$ac_ext <<_ACEOF
20433/* confdefs.h.  */
20434_ACEOF
20435cat confdefs.h >>conftest.$ac_ext
20436cat >>conftest.$ac_ext <<_ACEOF
20437/* end confdefs.h.  */
20438
20439#if defined __BEOS__ && !defined __HAIKU__
20440#include <inttypes.h>
20441#endif
20442#include <sys/types.h>
20443uint32_t foo;
20444int main() {return 0;}
20445
20446_ACEOF
20447rm -f conftest$ac_exeext
20448if { (ac_try="$ac_link"
20449case "(($ac_try" in
20450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451  *) ac_try_echo=$ac_try;;
20452esac
20453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454  (eval "$ac_link") 2>&5
20455  ac_status=$?
20456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20458  { (case "(($ac_try" in
20459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460  *) ac_try_echo=$ac_try;;
20461esac
20462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463  (eval "$ac_try") 2>&5
20464  ac_status=$?
20465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466  (exit $ac_status); }; }; then
20467  has_cv_uint32_t=yes
20468else
20469  echo "$as_me: program exited with status $ac_status" >&5
20470echo "$as_me: failed program was:" >&5
20471sed 's/^/| /' conftest.$ac_ext >&5
20472
20473( exit $ac_status )
20474has_cv_uint32_t=no
20475fi
20476rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20477fi
20478
20479
20480fi
20481
20482{ echo "$as_me:$LINENO: result: $has_cv_uint32_t" >&5
20483echo "${ECHO_T}$has_cv_uint32_t" >&6; }
20484
20485{ echo "$as_me:$LINENO: checking for uint16_t" >&5
20486echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
20487if test "${has_cv_uint16_t+set}" = set; then
20488  echo $ECHO_N "(cached) $ECHO_C" >&6
20489else
20490  if test "$cross_compiling" = yes; then
20491  has_cv_uint16_t=no
20492
20493else
20494  cat >conftest.$ac_ext <<_ACEOF
20495/* confdefs.h.  */
20496_ACEOF
20497cat confdefs.h >>conftest.$ac_ext
20498cat >>conftest.$ac_ext <<_ACEOF
20499/* end confdefs.h.  */
20500
20501#if defined __BEOS__ && !defined __HAIKU__
20502#include <inttypes.h>
20503#endif
20504#include <sys/types.h>
20505uint16_t foo;
20506int main() {return 0;}
20507
20508_ACEOF
20509rm -f conftest$ac_exeext
20510if { (ac_try="$ac_link"
20511case "(($ac_try" in
20512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513  *) ac_try_echo=$ac_try;;
20514esac
20515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20516  (eval "$ac_link") 2>&5
20517  ac_status=$?
20518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20520  { (case "(($ac_try" in
20521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522  *) ac_try_echo=$ac_try;;
20523esac
20524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525  (eval "$ac_try") 2>&5
20526  ac_status=$?
20527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528  (exit $ac_status); }; }; then
20529  has_cv_uint16_t=yes
20530else
20531  echo "$as_me: program exited with status $ac_status" >&5
20532echo "$as_me: failed program was:" >&5
20533sed 's/^/| /' conftest.$ac_ext >&5
20534
20535( exit $ac_status )
20536has_cv_uint16_t=no
20537fi
20538rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20539fi
20540
20541
20542fi
20543
20544{ echo "$as_me:$LINENO: result: $has_cv_uint16_t" >&5
20545echo "${ECHO_T}$has_cv_uint16_t" >&6; }
20546
20547{ echo "$as_me:$LINENO: checking for u_int32_t" >&5
20548echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
20549if test "${has_cv_u_int32_t+set}" = set; then
20550  echo $ECHO_N "(cached) $ECHO_C" >&6
20551else
20552  if test "$cross_compiling" = yes; then
20553  has_cv_u_int32_t=no
20554
20555else
20556  cat >conftest.$ac_ext <<_ACEOF
20557/* confdefs.h.  */
20558_ACEOF
20559cat confdefs.h >>conftest.$ac_ext
20560cat >>conftest.$ac_ext <<_ACEOF
20561/* end confdefs.h.  */
20562
20563#if defined __BEOS__ && !defined __HAIKU__
20564#include <inttypes.h>
20565#endif
20566#include <sys/types.h>
20567u_int32_t foo;
20568int main() {return 0;}
20569
20570_ACEOF
20571rm -f conftest$ac_exeext
20572if { (ac_try="$ac_link"
20573case "(($ac_try" in
20574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20575  *) ac_try_echo=$ac_try;;
20576esac
20577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20578  (eval "$ac_link") 2>&5
20579  ac_status=$?
20580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20582  { (case "(($ac_try" in
20583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584  *) ac_try_echo=$ac_try;;
20585esac
20586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587  (eval "$ac_try") 2>&5
20588  ac_status=$?
20589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590  (exit $ac_status); }; }; then
20591  has_cv_u_int32_t=yes
20592else
20593  echo "$as_me: program exited with status $ac_status" >&5
20594echo "$as_me: failed program was:" >&5
20595sed 's/^/| /' conftest.$ac_ext >&5
20596
20597( exit $ac_status )
20598has_cv_u_int32_t=no
20599fi
20600rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20601fi
20602
20603
20604fi
20605
20606{ echo "$as_me:$LINENO: result: $has_cv_u_int32_t" >&5
20607echo "${ECHO_T}$has_cv_u_int32_t" >&6; }
20608
20609{ echo "$as_me:$LINENO: checking for u_int16_t" >&5
20610echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
20611if test "${has_cv_u_int16_t+set}" = set; then
20612  echo $ECHO_N "(cached) $ECHO_C" >&6
20613else
20614  if test "$cross_compiling" = yes; then
20615  has_cv_u_int16_t=no
20616
20617else
20618  cat >conftest.$ac_ext <<_ACEOF
20619/* confdefs.h.  */
20620_ACEOF
20621cat confdefs.h >>conftest.$ac_ext
20622cat >>conftest.$ac_ext <<_ACEOF
20623/* end confdefs.h.  */
20624
20625#if defined __BEOS__ && !defined __HAIKU__
20626#include <inttypes.h>
20627#endif
20628#include <sys/types.h>
20629u_int16_t foo;
20630int main() {return 0;}
20631
20632_ACEOF
20633rm -f conftest$ac_exeext
20634if { (ac_try="$ac_link"
20635case "(($ac_try" in
20636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637  *) ac_try_echo=$ac_try;;
20638esac
20639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640  (eval "$ac_link") 2>&5
20641  ac_status=$?
20642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20644  { (case "(($ac_try" in
20645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646  *) ac_try_echo=$ac_try;;
20647esac
20648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649  (eval "$ac_try") 2>&5
20650  ac_status=$?
20651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652  (exit $ac_status); }; }; then
20653  has_cv_u_int16_t=yes
20654else
20655  echo "$as_me: program exited with status $ac_status" >&5
20656echo "$as_me: failed program was:" >&5
20657sed 's/^/| /' conftest.$ac_ext >&5
20658
20659( exit $ac_status )
20660has_cv_u_int16_t=no
20661fi
20662rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20663fi
20664
20665
20666fi
20667
20668{ echo "$as_me:$LINENO: result: $has_cv_u_int16_t" >&5
20669echo "${ECHO_T}$has_cv_u_int16_t" >&6; }
20670
20671{ echo "$as_me:$LINENO: checking for int64_t" >&5
20672echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
20673if test "${has_cv_int64_t+set}" = set; then
20674  echo $ECHO_N "(cached) $ECHO_C" >&6
20675else
20676  if test "$cross_compiling" = yes; then
20677  has_cv_int64_t=no
20678
20679else
20680  cat >conftest.$ac_ext <<_ACEOF
20681/* confdefs.h.  */
20682_ACEOF
20683cat confdefs.h >>conftest.$ac_ext
20684cat >>conftest.$ac_ext <<_ACEOF
20685/* end confdefs.h.  */
20686
20687#if defined __BEOS__ && !defined __HAIKU__
20688#include <inttypes.h>
20689#endif
20690#include <sys/types.h>
20691int64_t foo;
20692int main() {return 0;}
20693
20694_ACEOF
20695rm -f conftest$ac_exeext
20696if { (ac_try="$ac_link"
20697case "(($ac_try" in
20698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699  *) ac_try_echo=$ac_try;;
20700esac
20701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702  (eval "$ac_link") 2>&5
20703  ac_status=$?
20704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20706  { (case "(($ac_try" in
20707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708  *) ac_try_echo=$ac_try;;
20709esac
20710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711  (eval "$ac_try") 2>&5
20712  ac_status=$?
20713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714  (exit $ac_status); }; }; then
20715  has_cv_int64_t=yes
20716else
20717  echo "$as_me: program exited with status $ac_status" >&5
20718echo "$as_me: failed program was:" >&5
20719sed 's/^/| /' conftest.$ac_ext >&5
20720
20721( exit $ac_status )
20722has_cv_int64_t=no
20723fi
20724rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20725fi
20726
20727
20728fi
20729
20730{ echo "$as_me:$LINENO: result: $has_cv_int64_t" >&5
20731echo "${ECHO_T}$has_cv_int64_t" >&6; }
20732
20733{ echo "$as_me:$LINENO: checking for short" >&5
20734echo $ECHO_N "checking for short... $ECHO_C" >&6; }
20735if test "${ac_cv_type_short+set}" = set; then
20736  echo $ECHO_N "(cached) $ECHO_C" >&6
20737else
20738  cat >conftest.$ac_ext <<_ACEOF
20739/* confdefs.h.  */
20740_ACEOF
20741cat confdefs.h >>conftest.$ac_ext
20742cat >>conftest.$ac_ext <<_ACEOF
20743/* end confdefs.h.  */
20744$ac_includes_default
20745typedef short ac__type_new_;
20746int
20747main ()
20748{
20749if ((ac__type_new_ *) 0)
20750  return 0;
20751if (sizeof (ac__type_new_))
20752  return 0;
20753  ;
20754  return 0;
20755}
20756_ACEOF
20757rm -f conftest.$ac_objext
20758if { (ac_try="$ac_compile"
20759case "(($ac_try" in
20760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20761  *) ac_try_echo=$ac_try;;
20762esac
20763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764  (eval "$ac_compile") 2>conftest.er1
20765  ac_status=$?
20766  grep -v '^ *+' conftest.er1 >conftest.err
20767  rm -f conftest.er1
20768  cat conftest.err >&5
20769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770  (exit $ac_status); } && {
20771	 test -z "$ac_c_werror_flag" ||
20772	 test ! -s conftest.err
20773       } && test -s conftest.$ac_objext; then
20774  ac_cv_type_short=yes
20775else
20776  echo "$as_me: failed program was:" >&5
20777sed 's/^/| /' conftest.$ac_ext >&5
20778
20779	ac_cv_type_short=no
20780fi
20781
20782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20783fi
20784{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20785echo "${ECHO_T}$ac_cv_type_short" >&6; }
20786
20787# The cast to long int works around a bug in the HP C Compiler
20788# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20789# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20790# This bug is HP SR number 8606223364.
20791{ echo "$as_me:$LINENO: checking size of short" >&5
20792echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
20793if test "${ac_cv_sizeof_short+set}" = set; then
20794  echo $ECHO_N "(cached) $ECHO_C" >&6
20795else
20796  if test "$cross_compiling" = yes; then
20797  # Depending upon the size, compute the lo and hi bounds.
20798cat >conftest.$ac_ext <<_ACEOF
20799/* confdefs.h.  */
20800_ACEOF
20801cat confdefs.h >>conftest.$ac_ext
20802cat >>conftest.$ac_ext <<_ACEOF
20803/* end confdefs.h.  */
20804$ac_includes_default
20805   typedef short ac__type_sizeof_;
20806int
20807main ()
20808{
20809static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20810test_array [0] = 0
20811
20812  ;
20813  return 0;
20814}
20815_ACEOF
20816rm -f conftest.$ac_objext
20817if { (ac_try="$ac_compile"
20818case "(($ac_try" in
20819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820  *) ac_try_echo=$ac_try;;
20821esac
20822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823  (eval "$ac_compile") 2>conftest.er1
20824  ac_status=$?
20825  grep -v '^ *+' conftest.er1 >conftest.err
20826  rm -f conftest.er1
20827  cat conftest.err >&5
20828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829  (exit $ac_status); } && {
20830	 test -z "$ac_c_werror_flag" ||
20831	 test ! -s conftest.err
20832       } && test -s conftest.$ac_objext; then
20833  ac_lo=0 ac_mid=0
20834  while :; do
20835    cat >conftest.$ac_ext <<_ACEOF
20836/* confdefs.h.  */
20837_ACEOF
20838cat confdefs.h >>conftest.$ac_ext
20839cat >>conftest.$ac_ext <<_ACEOF
20840/* end confdefs.h.  */
20841$ac_includes_default
20842   typedef short ac__type_sizeof_;
20843int
20844main ()
20845{
20846static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20847test_array [0] = 0
20848
20849  ;
20850  return 0;
20851}
20852_ACEOF
20853rm -f conftest.$ac_objext
20854if { (ac_try="$ac_compile"
20855case "(($ac_try" in
20856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20857  *) ac_try_echo=$ac_try;;
20858esac
20859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20860  (eval "$ac_compile") 2>conftest.er1
20861  ac_status=$?
20862  grep -v '^ *+' conftest.er1 >conftest.err
20863  rm -f conftest.er1
20864  cat conftest.err >&5
20865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866  (exit $ac_status); } && {
20867	 test -z "$ac_c_werror_flag" ||
20868	 test ! -s conftest.err
20869       } && test -s conftest.$ac_objext; then
20870  ac_hi=$ac_mid; break
20871else
20872  echo "$as_me: failed program was:" >&5
20873sed 's/^/| /' conftest.$ac_ext >&5
20874
20875	ac_lo=`expr $ac_mid + 1`
20876			if test $ac_lo -le $ac_mid; then
20877			  ac_lo= ac_hi=
20878			  break
20879			fi
20880			ac_mid=`expr 2 '*' $ac_mid + 1`
20881fi
20882
20883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20884  done
20885else
20886  echo "$as_me: failed program was:" >&5
20887sed 's/^/| /' conftest.$ac_ext >&5
20888
20889	cat >conftest.$ac_ext <<_ACEOF
20890/* confdefs.h.  */
20891_ACEOF
20892cat confdefs.h >>conftest.$ac_ext
20893cat >>conftest.$ac_ext <<_ACEOF
20894/* end confdefs.h.  */
20895$ac_includes_default
20896   typedef short ac__type_sizeof_;
20897int
20898main ()
20899{
20900static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20901test_array [0] = 0
20902
20903  ;
20904  return 0;
20905}
20906_ACEOF
20907rm -f conftest.$ac_objext
20908if { (ac_try="$ac_compile"
20909case "(($ac_try" in
20910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20911  *) ac_try_echo=$ac_try;;
20912esac
20913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20914  (eval "$ac_compile") 2>conftest.er1
20915  ac_status=$?
20916  grep -v '^ *+' conftest.er1 >conftest.err
20917  rm -f conftest.er1
20918  cat conftest.err >&5
20919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920  (exit $ac_status); } && {
20921	 test -z "$ac_c_werror_flag" ||
20922	 test ! -s conftest.err
20923       } && test -s conftest.$ac_objext; then
20924  ac_hi=-1 ac_mid=-1
20925  while :; do
20926    cat >conftest.$ac_ext <<_ACEOF
20927/* confdefs.h.  */
20928_ACEOF
20929cat confdefs.h >>conftest.$ac_ext
20930cat >>conftest.$ac_ext <<_ACEOF
20931/* end confdefs.h.  */
20932$ac_includes_default
20933   typedef short ac__type_sizeof_;
20934int
20935main ()
20936{
20937static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20938test_array [0] = 0
20939
20940  ;
20941  return 0;
20942}
20943_ACEOF
20944rm -f conftest.$ac_objext
20945if { (ac_try="$ac_compile"
20946case "(($ac_try" in
20947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20948  *) ac_try_echo=$ac_try;;
20949esac
20950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20951  (eval "$ac_compile") 2>conftest.er1
20952  ac_status=$?
20953  grep -v '^ *+' conftest.er1 >conftest.err
20954  rm -f conftest.er1
20955  cat conftest.err >&5
20956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957  (exit $ac_status); } && {
20958	 test -z "$ac_c_werror_flag" ||
20959	 test ! -s conftest.err
20960       } && test -s conftest.$ac_objext; then
20961  ac_lo=$ac_mid; break
20962else
20963  echo "$as_me: failed program was:" >&5
20964sed 's/^/| /' conftest.$ac_ext >&5
20965
20966	ac_hi=`expr '(' $ac_mid ')' - 1`
20967			if test $ac_mid -le $ac_hi; then
20968			  ac_lo= ac_hi=
20969			  break
20970			fi
20971			ac_mid=`expr 2 '*' $ac_mid`
20972fi
20973
20974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20975  done
20976else
20977  echo "$as_me: failed program was:" >&5
20978sed 's/^/| /' conftest.$ac_ext >&5
20979
20980	ac_lo= ac_hi=
20981fi
20982
20983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20984fi
20985
20986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20987# Binary search between lo and hi bounds.
20988while test "x$ac_lo" != "x$ac_hi"; do
20989  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20990  cat >conftest.$ac_ext <<_ACEOF
20991/* confdefs.h.  */
20992_ACEOF
20993cat confdefs.h >>conftest.$ac_ext
20994cat >>conftest.$ac_ext <<_ACEOF
20995/* end confdefs.h.  */
20996$ac_includes_default
20997   typedef short ac__type_sizeof_;
20998int
20999main ()
21000{
21001static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21002test_array [0] = 0
21003
21004  ;
21005  return 0;
21006}
21007_ACEOF
21008rm -f conftest.$ac_objext
21009if { (ac_try="$ac_compile"
21010case "(($ac_try" in
21011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012  *) ac_try_echo=$ac_try;;
21013esac
21014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015  (eval "$ac_compile") 2>conftest.er1
21016  ac_status=$?
21017  grep -v '^ *+' conftest.er1 >conftest.err
21018  rm -f conftest.er1
21019  cat conftest.err >&5
21020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021  (exit $ac_status); } && {
21022	 test -z "$ac_c_werror_flag" ||
21023	 test ! -s conftest.err
21024       } && test -s conftest.$ac_objext; then
21025  ac_hi=$ac_mid
21026else
21027  echo "$as_me: failed program was:" >&5
21028sed 's/^/| /' conftest.$ac_ext >&5
21029
21030	ac_lo=`expr '(' $ac_mid ')' + 1`
21031fi
21032
21033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21034done
21035case $ac_lo in
21036?*) ac_cv_sizeof_short=$ac_lo;;
21037'') if test "$ac_cv_type_short" = yes; then
21038     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21039See \`config.log' for more details." >&5
21040echo "$as_me: error: cannot compute sizeof (short)
21041See \`config.log' for more details." >&2;}
21042   { (exit 77); exit 77; }; }
21043   else
21044     ac_cv_sizeof_short=0
21045   fi ;;
21046esac
21047else
21048  cat >conftest.$ac_ext <<_ACEOF
21049/* confdefs.h.  */
21050_ACEOF
21051cat confdefs.h >>conftest.$ac_ext
21052cat >>conftest.$ac_ext <<_ACEOF
21053/* end confdefs.h.  */
21054$ac_includes_default
21055   typedef short ac__type_sizeof_;
21056static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21057static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21058#include <stdio.h>
21059#include <stdlib.h>
21060int
21061main ()
21062{
21063
21064  FILE *f = fopen ("conftest.val", "w");
21065  if (! f)
21066    return 1;
21067  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21068    {
21069      long int i = longval ();
21070      if (i != ((long int) (sizeof (ac__type_sizeof_))))
21071	return 1;
21072      fprintf (f, "%ld\n", i);
21073    }
21074  else
21075    {
21076      unsigned long int i = ulongval ();
21077      if (i != ((long int) (sizeof (ac__type_sizeof_))))
21078	return 1;
21079      fprintf (f, "%lu\n", i);
21080    }
21081  return ferror (f) || fclose (f) != 0;
21082
21083  ;
21084  return 0;
21085}
21086_ACEOF
21087rm -f conftest$ac_exeext
21088if { (ac_try="$ac_link"
21089case "(($ac_try" in
21090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21091  *) ac_try_echo=$ac_try;;
21092esac
21093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21094  (eval "$ac_link") 2>&5
21095  ac_status=$?
21096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21098  { (case "(($ac_try" in
21099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100  *) ac_try_echo=$ac_try;;
21101esac
21102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21103  (eval "$ac_try") 2>&5
21104  ac_status=$?
21105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106  (exit $ac_status); }; }; then
21107  ac_cv_sizeof_short=`cat conftest.val`
21108else
21109  echo "$as_me: program exited with status $ac_status" >&5
21110echo "$as_me: failed program was:" >&5
21111sed 's/^/| /' conftest.$ac_ext >&5
21112
21113( exit $ac_status )
21114if test "$ac_cv_type_short" = yes; then
21115     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21116See \`config.log' for more details." >&5
21117echo "$as_me: error: cannot compute sizeof (short)
21118See \`config.log' for more details." >&2;}
21119   { (exit 77); exit 77; }; }
21120   else
21121     ac_cv_sizeof_short=0
21122   fi
21123fi
21124rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21125fi
21126rm -f conftest.val
21127fi
21128{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21129echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
21130
21131
21132
21133cat >>confdefs.h <<_ACEOF
21134#define SIZEOF_SHORT $ac_cv_sizeof_short
21135_ACEOF
21136
21137
21138{ echo "$as_me:$LINENO: checking for int" >&5
21139echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21140if test "${ac_cv_type_int+set}" = set; then
21141  echo $ECHO_N "(cached) $ECHO_C" >&6
21142else
21143  cat >conftest.$ac_ext <<_ACEOF
21144/* confdefs.h.  */
21145_ACEOF
21146cat confdefs.h >>conftest.$ac_ext
21147cat >>conftest.$ac_ext <<_ACEOF
21148/* end confdefs.h.  */
21149$ac_includes_default
21150typedef int ac__type_new_;
21151int
21152main ()
21153{
21154if ((ac__type_new_ *) 0)
21155  return 0;
21156if (sizeof (ac__type_new_))
21157  return 0;
21158  ;
21159  return 0;
21160}
21161_ACEOF
21162rm -f conftest.$ac_objext
21163if { (ac_try="$ac_compile"
21164case "(($ac_try" in
21165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21166  *) ac_try_echo=$ac_try;;
21167esac
21168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21169  (eval "$ac_compile") 2>conftest.er1
21170  ac_status=$?
21171  grep -v '^ *+' conftest.er1 >conftest.err
21172  rm -f conftest.er1
21173  cat conftest.err >&5
21174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175  (exit $ac_status); } && {
21176	 test -z "$ac_c_werror_flag" ||
21177	 test ! -s conftest.err
21178       } && test -s conftest.$ac_objext; then
21179  ac_cv_type_int=yes
21180else
21181  echo "$as_me: failed program was:" >&5
21182sed 's/^/| /' conftest.$ac_ext >&5
21183
21184	ac_cv_type_int=no
21185fi
21186
21187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21188fi
21189{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21190echo "${ECHO_T}$ac_cv_type_int" >&6; }
21191
21192# The cast to long int works around a bug in the HP C Compiler
21193# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21194# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21195# This bug is HP SR number 8606223364.
21196{ echo "$as_me:$LINENO: checking size of int" >&5
21197echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
21198if test "${ac_cv_sizeof_int+set}" = set; then
21199  echo $ECHO_N "(cached) $ECHO_C" >&6
21200else
21201  if test "$cross_compiling" = yes; then
21202  # Depending upon the size, compute the lo and hi bounds.
21203cat >conftest.$ac_ext <<_ACEOF
21204/* confdefs.h.  */
21205_ACEOF
21206cat confdefs.h >>conftest.$ac_ext
21207cat >>conftest.$ac_ext <<_ACEOF
21208/* end confdefs.h.  */
21209$ac_includes_default
21210   typedef int ac__type_sizeof_;
21211int
21212main ()
21213{
21214static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21215test_array [0] = 0
21216
21217  ;
21218  return 0;
21219}
21220_ACEOF
21221rm -f conftest.$ac_objext
21222if { (ac_try="$ac_compile"
21223case "(($ac_try" in
21224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21225  *) ac_try_echo=$ac_try;;
21226esac
21227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21228  (eval "$ac_compile") 2>conftest.er1
21229  ac_status=$?
21230  grep -v '^ *+' conftest.er1 >conftest.err
21231  rm -f conftest.er1
21232  cat conftest.err >&5
21233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234  (exit $ac_status); } && {
21235	 test -z "$ac_c_werror_flag" ||
21236	 test ! -s conftest.err
21237       } && test -s conftest.$ac_objext; then
21238  ac_lo=0 ac_mid=0
21239  while :; do
21240    cat >conftest.$ac_ext <<_ACEOF
21241/* confdefs.h.  */
21242_ACEOF
21243cat confdefs.h >>conftest.$ac_ext
21244cat >>conftest.$ac_ext <<_ACEOF
21245/* end confdefs.h.  */
21246$ac_includes_default
21247   typedef int ac__type_sizeof_;
21248int
21249main ()
21250{
21251static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21252test_array [0] = 0
21253
21254  ;
21255  return 0;
21256}
21257_ACEOF
21258rm -f conftest.$ac_objext
21259if { (ac_try="$ac_compile"
21260case "(($ac_try" in
21261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21262  *) ac_try_echo=$ac_try;;
21263esac
21264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21265  (eval "$ac_compile") 2>conftest.er1
21266  ac_status=$?
21267  grep -v '^ *+' conftest.er1 >conftest.err
21268  rm -f conftest.er1
21269  cat conftest.err >&5
21270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271  (exit $ac_status); } && {
21272	 test -z "$ac_c_werror_flag" ||
21273	 test ! -s conftest.err
21274       } && test -s conftest.$ac_objext; then
21275  ac_hi=$ac_mid; break
21276else
21277  echo "$as_me: failed program was:" >&5
21278sed 's/^/| /' conftest.$ac_ext >&5
21279
21280	ac_lo=`expr $ac_mid + 1`
21281			if test $ac_lo -le $ac_mid; then
21282			  ac_lo= ac_hi=
21283			  break
21284			fi
21285			ac_mid=`expr 2 '*' $ac_mid + 1`
21286fi
21287
21288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21289  done
21290else
21291  echo "$as_me: failed program was:" >&5
21292sed 's/^/| /' conftest.$ac_ext >&5
21293
21294	cat >conftest.$ac_ext <<_ACEOF
21295/* confdefs.h.  */
21296_ACEOF
21297cat confdefs.h >>conftest.$ac_ext
21298cat >>conftest.$ac_ext <<_ACEOF
21299/* end confdefs.h.  */
21300$ac_includes_default
21301   typedef int ac__type_sizeof_;
21302int
21303main ()
21304{
21305static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21306test_array [0] = 0
21307
21308  ;
21309  return 0;
21310}
21311_ACEOF
21312rm -f conftest.$ac_objext
21313if { (ac_try="$ac_compile"
21314case "(($ac_try" in
21315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316  *) ac_try_echo=$ac_try;;
21317esac
21318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21319  (eval "$ac_compile") 2>conftest.er1
21320  ac_status=$?
21321  grep -v '^ *+' conftest.er1 >conftest.err
21322  rm -f conftest.er1
21323  cat conftest.err >&5
21324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325  (exit $ac_status); } && {
21326	 test -z "$ac_c_werror_flag" ||
21327	 test ! -s conftest.err
21328       } && test -s conftest.$ac_objext; then
21329  ac_hi=-1 ac_mid=-1
21330  while :; do
21331    cat >conftest.$ac_ext <<_ACEOF
21332/* confdefs.h.  */
21333_ACEOF
21334cat confdefs.h >>conftest.$ac_ext
21335cat >>conftest.$ac_ext <<_ACEOF
21336/* end confdefs.h.  */
21337$ac_includes_default
21338   typedef int ac__type_sizeof_;
21339int
21340main ()
21341{
21342static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21343test_array [0] = 0
21344
21345  ;
21346  return 0;
21347}
21348_ACEOF
21349rm -f conftest.$ac_objext
21350if { (ac_try="$ac_compile"
21351case "(($ac_try" in
21352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21353  *) ac_try_echo=$ac_try;;
21354esac
21355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21356  (eval "$ac_compile") 2>conftest.er1
21357  ac_status=$?
21358  grep -v '^ *+' conftest.er1 >conftest.err
21359  rm -f conftest.er1
21360  cat conftest.err >&5
21361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362  (exit $ac_status); } && {
21363	 test -z "$ac_c_werror_flag" ||
21364	 test ! -s conftest.err
21365       } && test -s conftest.$ac_objext; then
21366  ac_lo=$ac_mid; break
21367else
21368  echo "$as_me: failed program was:" >&5
21369sed 's/^/| /' conftest.$ac_ext >&5
21370
21371	ac_hi=`expr '(' $ac_mid ')' - 1`
21372			if test $ac_mid -le $ac_hi; then
21373			  ac_lo= ac_hi=
21374			  break
21375			fi
21376			ac_mid=`expr 2 '*' $ac_mid`
21377fi
21378
21379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21380  done
21381else
21382  echo "$as_me: failed program was:" >&5
21383sed 's/^/| /' conftest.$ac_ext >&5
21384
21385	ac_lo= ac_hi=
21386fi
21387
21388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21389fi
21390
21391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21392# Binary search between lo and hi bounds.
21393while test "x$ac_lo" != "x$ac_hi"; do
21394  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21395  cat >conftest.$ac_ext <<_ACEOF
21396/* confdefs.h.  */
21397_ACEOF
21398cat confdefs.h >>conftest.$ac_ext
21399cat >>conftest.$ac_ext <<_ACEOF
21400/* end confdefs.h.  */
21401$ac_includes_default
21402   typedef int ac__type_sizeof_;
21403int
21404main ()
21405{
21406static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21407test_array [0] = 0
21408
21409  ;
21410  return 0;
21411}
21412_ACEOF
21413rm -f conftest.$ac_objext
21414if { (ac_try="$ac_compile"
21415case "(($ac_try" in
21416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417  *) ac_try_echo=$ac_try;;
21418esac
21419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21420  (eval "$ac_compile") 2>conftest.er1
21421  ac_status=$?
21422  grep -v '^ *+' conftest.er1 >conftest.err
21423  rm -f conftest.er1
21424  cat conftest.err >&5
21425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426  (exit $ac_status); } && {
21427	 test -z "$ac_c_werror_flag" ||
21428	 test ! -s conftest.err
21429       } && test -s conftest.$ac_objext; then
21430  ac_hi=$ac_mid
21431else
21432  echo "$as_me: failed program was:" >&5
21433sed 's/^/| /' conftest.$ac_ext >&5
21434
21435	ac_lo=`expr '(' $ac_mid ')' + 1`
21436fi
21437
21438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21439done
21440case $ac_lo in
21441?*) ac_cv_sizeof_int=$ac_lo;;
21442'') if test "$ac_cv_type_int" = yes; then
21443     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21444See \`config.log' for more details." >&5
21445echo "$as_me: error: cannot compute sizeof (int)
21446See \`config.log' for more details." >&2;}
21447   { (exit 77); exit 77; }; }
21448   else
21449     ac_cv_sizeof_int=0
21450   fi ;;
21451esac
21452else
21453  cat >conftest.$ac_ext <<_ACEOF
21454/* confdefs.h.  */
21455_ACEOF
21456cat confdefs.h >>conftest.$ac_ext
21457cat >>conftest.$ac_ext <<_ACEOF
21458/* end confdefs.h.  */
21459$ac_includes_default
21460   typedef int ac__type_sizeof_;
21461static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21462static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21463#include <stdio.h>
21464#include <stdlib.h>
21465int
21466main ()
21467{
21468
21469  FILE *f = fopen ("conftest.val", "w");
21470  if (! f)
21471    return 1;
21472  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21473    {
21474      long int i = longval ();
21475      if (i != ((long int) (sizeof (ac__type_sizeof_))))
21476	return 1;
21477      fprintf (f, "%ld\n", i);
21478    }
21479  else
21480    {
21481      unsigned long int i = ulongval ();
21482      if (i != ((long int) (sizeof (ac__type_sizeof_))))
21483	return 1;
21484      fprintf (f, "%lu\n", i);
21485    }
21486  return ferror (f) || fclose (f) != 0;
21487
21488  ;
21489  return 0;
21490}
21491_ACEOF
21492rm -f conftest$ac_exeext
21493if { (ac_try="$ac_link"
21494case "(($ac_try" in
21495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21496  *) ac_try_echo=$ac_try;;
21497esac
21498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21499  (eval "$ac_link") 2>&5
21500  ac_status=$?
21501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21503  { (case "(($ac_try" in
21504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21505  *) ac_try_echo=$ac_try;;
21506esac
21507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21508  (eval "$ac_try") 2>&5
21509  ac_status=$?
21510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511  (exit $ac_status); }; }; then
21512  ac_cv_sizeof_int=`cat conftest.val`
21513else
21514  echo "$as_me: program exited with status $ac_status" >&5
21515echo "$as_me: failed program was:" >&5
21516sed 's/^/| /' conftest.$ac_ext >&5
21517
21518( exit $ac_status )
21519if test "$ac_cv_type_int" = yes; then
21520     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21521See \`config.log' for more details." >&5
21522echo "$as_me: error: cannot compute sizeof (int)
21523See \`config.log' for more details." >&2;}
21524   { (exit 77); exit 77; }; }
21525   else
21526     ac_cv_sizeof_int=0
21527   fi
21528fi
21529rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21530fi
21531rm -f conftest.val
21532fi
21533{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21534echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21535
21536
21537
21538cat >>confdefs.h <<_ACEOF
21539#define SIZEOF_INT $ac_cv_sizeof_int
21540_ACEOF
21541
21542
21543{ echo "$as_me:$LINENO: checking for long" >&5
21544echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21545if test "${ac_cv_type_long+set}" = set; then
21546  echo $ECHO_N "(cached) $ECHO_C" >&6
21547else
21548  cat >conftest.$ac_ext <<_ACEOF
21549/* confdefs.h.  */
21550_ACEOF
21551cat confdefs.h >>conftest.$ac_ext
21552cat >>conftest.$ac_ext <<_ACEOF
21553/* end confdefs.h.  */
21554$ac_includes_default
21555typedef long ac__type_new_;
21556int
21557main ()
21558{
21559if ((ac__type_new_ *) 0)
21560  return 0;
21561if (sizeof (ac__type_new_))
21562  return 0;
21563  ;
21564  return 0;
21565}
21566_ACEOF
21567rm -f conftest.$ac_objext
21568if { (ac_try="$ac_compile"
21569case "(($ac_try" in
21570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571  *) ac_try_echo=$ac_try;;
21572esac
21573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21574  (eval "$ac_compile") 2>conftest.er1
21575  ac_status=$?
21576  grep -v '^ *+' conftest.er1 >conftest.err
21577  rm -f conftest.er1
21578  cat conftest.err >&5
21579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580  (exit $ac_status); } && {
21581	 test -z "$ac_c_werror_flag" ||
21582	 test ! -s conftest.err
21583       } && test -s conftest.$ac_objext; then
21584  ac_cv_type_long=yes
21585else
21586  echo "$as_me: failed program was:" >&5
21587sed 's/^/| /' conftest.$ac_ext >&5
21588
21589	ac_cv_type_long=no
21590fi
21591
21592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21593fi
21594{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21595echo "${ECHO_T}$ac_cv_type_long" >&6; }
21596
21597# The cast to long int works around a bug in the HP C Compiler
21598# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21599# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21600# This bug is HP SR number 8606223364.
21601{ echo "$as_me:$LINENO: checking size of long" >&5
21602echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
21603if test "${ac_cv_sizeof_long+set}" = set; then
21604  echo $ECHO_N "(cached) $ECHO_C" >&6
21605else
21606  if test "$cross_compiling" = yes; then
21607  # Depending upon the size, compute the lo and hi bounds.
21608cat >conftest.$ac_ext <<_ACEOF
21609/* confdefs.h.  */
21610_ACEOF
21611cat confdefs.h >>conftest.$ac_ext
21612cat >>conftest.$ac_ext <<_ACEOF
21613/* end confdefs.h.  */
21614$ac_includes_default
21615   typedef long ac__type_sizeof_;
21616int
21617main ()
21618{
21619static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21620test_array [0] = 0
21621
21622  ;
21623  return 0;
21624}
21625_ACEOF
21626rm -f conftest.$ac_objext
21627if { (ac_try="$ac_compile"
21628case "(($ac_try" in
21629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21630  *) ac_try_echo=$ac_try;;
21631esac
21632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21633  (eval "$ac_compile") 2>conftest.er1
21634  ac_status=$?
21635  grep -v '^ *+' conftest.er1 >conftest.err
21636  rm -f conftest.er1
21637  cat conftest.err >&5
21638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639  (exit $ac_status); } && {
21640	 test -z "$ac_c_werror_flag" ||
21641	 test ! -s conftest.err
21642       } && test -s conftest.$ac_objext; then
21643  ac_lo=0 ac_mid=0
21644  while :; do
21645    cat >conftest.$ac_ext <<_ACEOF
21646/* confdefs.h.  */
21647_ACEOF
21648cat confdefs.h >>conftest.$ac_ext
21649cat >>conftest.$ac_ext <<_ACEOF
21650/* end confdefs.h.  */
21651$ac_includes_default
21652   typedef long ac__type_sizeof_;
21653int
21654main ()
21655{
21656static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21657test_array [0] = 0
21658
21659  ;
21660  return 0;
21661}
21662_ACEOF
21663rm -f conftest.$ac_objext
21664if { (ac_try="$ac_compile"
21665case "(($ac_try" in
21666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21667  *) ac_try_echo=$ac_try;;
21668esac
21669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21670  (eval "$ac_compile") 2>conftest.er1
21671  ac_status=$?
21672  grep -v '^ *+' conftest.er1 >conftest.err
21673  rm -f conftest.er1
21674  cat conftest.err >&5
21675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676  (exit $ac_status); } && {
21677	 test -z "$ac_c_werror_flag" ||
21678	 test ! -s conftest.err
21679       } && test -s conftest.$ac_objext; then
21680  ac_hi=$ac_mid; break
21681else
21682  echo "$as_me: failed program was:" >&5
21683sed 's/^/| /' conftest.$ac_ext >&5
21684
21685	ac_lo=`expr $ac_mid + 1`
21686			if test $ac_lo -le $ac_mid; then
21687			  ac_lo= ac_hi=
21688			  break
21689			fi
21690			ac_mid=`expr 2 '*' $ac_mid + 1`
21691fi
21692
21693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21694  done
21695else
21696  echo "$as_me: failed program was:" >&5
21697sed 's/^/| /' conftest.$ac_ext >&5
21698
21699	cat >conftest.$ac_ext <<_ACEOF
21700/* confdefs.h.  */
21701_ACEOF
21702cat confdefs.h >>conftest.$ac_ext
21703cat >>conftest.$ac_ext <<_ACEOF
21704/* end confdefs.h.  */
21705$ac_includes_default
21706   typedef long ac__type_sizeof_;
21707int
21708main ()
21709{
21710static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21711test_array [0] = 0
21712
21713  ;
21714  return 0;
21715}
21716_ACEOF
21717rm -f conftest.$ac_objext
21718if { (ac_try="$ac_compile"
21719case "(($ac_try" in
21720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21721  *) ac_try_echo=$ac_try;;
21722esac
21723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21724  (eval "$ac_compile") 2>conftest.er1
21725  ac_status=$?
21726  grep -v '^ *+' conftest.er1 >conftest.err
21727  rm -f conftest.er1
21728  cat conftest.err >&5
21729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730  (exit $ac_status); } && {
21731	 test -z "$ac_c_werror_flag" ||
21732	 test ! -s conftest.err
21733       } && test -s conftest.$ac_objext; then
21734  ac_hi=-1 ac_mid=-1
21735  while :; do
21736    cat >conftest.$ac_ext <<_ACEOF
21737/* confdefs.h.  */
21738_ACEOF
21739cat confdefs.h >>conftest.$ac_ext
21740cat >>conftest.$ac_ext <<_ACEOF
21741/* end confdefs.h.  */
21742$ac_includes_default
21743   typedef long ac__type_sizeof_;
21744int
21745main ()
21746{
21747static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21748test_array [0] = 0
21749
21750  ;
21751  return 0;
21752}
21753_ACEOF
21754rm -f conftest.$ac_objext
21755if { (ac_try="$ac_compile"
21756case "(($ac_try" in
21757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21758  *) ac_try_echo=$ac_try;;
21759esac
21760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21761  (eval "$ac_compile") 2>conftest.er1
21762  ac_status=$?
21763  grep -v '^ *+' conftest.er1 >conftest.err
21764  rm -f conftest.er1
21765  cat conftest.err >&5
21766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767  (exit $ac_status); } && {
21768	 test -z "$ac_c_werror_flag" ||
21769	 test ! -s conftest.err
21770       } && test -s conftest.$ac_objext; then
21771  ac_lo=$ac_mid; break
21772else
21773  echo "$as_me: failed program was:" >&5
21774sed 's/^/| /' conftest.$ac_ext >&5
21775
21776	ac_hi=`expr '(' $ac_mid ')' - 1`
21777			if test $ac_mid -le $ac_hi; then
21778			  ac_lo= ac_hi=
21779			  break
21780			fi
21781			ac_mid=`expr 2 '*' $ac_mid`
21782fi
21783
21784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21785  done
21786else
21787  echo "$as_me: failed program was:" >&5
21788sed 's/^/| /' conftest.$ac_ext >&5
21789
21790	ac_lo= ac_hi=
21791fi
21792
21793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21794fi
21795
21796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21797# Binary search between lo and hi bounds.
21798while test "x$ac_lo" != "x$ac_hi"; do
21799  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21800  cat >conftest.$ac_ext <<_ACEOF
21801/* confdefs.h.  */
21802_ACEOF
21803cat confdefs.h >>conftest.$ac_ext
21804cat >>conftest.$ac_ext <<_ACEOF
21805/* end confdefs.h.  */
21806$ac_includes_default
21807   typedef long ac__type_sizeof_;
21808int
21809main ()
21810{
21811static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21812test_array [0] = 0
21813
21814  ;
21815  return 0;
21816}
21817_ACEOF
21818rm -f conftest.$ac_objext
21819if { (ac_try="$ac_compile"
21820case "(($ac_try" in
21821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21822  *) ac_try_echo=$ac_try;;
21823esac
21824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21825  (eval "$ac_compile") 2>conftest.er1
21826  ac_status=$?
21827  grep -v '^ *+' conftest.er1 >conftest.err
21828  rm -f conftest.er1
21829  cat conftest.err >&5
21830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831  (exit $ac_status); } && {
21832	 test -z "$ac_c_werror_flag" ||
21833	 test ! -s conftest.err
21834       } && test -s conftest.$ac_objext; then
21835  ac_hi=$ac_mid
21836else
21837  echo "$as_me: failed program was:" >&5
21838sed 's/^/| /' conftest.$ac_ext >&5
21839
21840	ac_lo=`expr '(' $ac_mid ')' + 1`
21841fi
21842
21843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21844done
21845case $ac_lo in
21846?*) ac_cv_sizeof_long=$ac_lo;;
21847'') if test "$ac_cv_type_long" = yes; then
21848     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21849See \`config.log' for more details." >&5
21850echo "$as_me: error: cannot compute sizeof (long)
21851See \`config.log' for more details." >&2;}
21852   { (exit 77); exit 77; }; }
21853   else
21854     ac_cv_sizeof_long=0
21855   fi ;;
21856esac
21857else
21858  cat >conftest.$ac_ext <<_ACEOF
21859/* confdefs.h.  */
21860_ACEOF
21861cat confdefs.h >>conftest.$ac_ext
21862cat >>conftest.$ac_ext <<_ACEOF
21863/* end confdefs.h.  */
21864$ac_includes_default
21865   typedef long ac__type_sizeof_;
21866static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21867static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21868#include <stdio.h>
21869#include <stdlib.h>
21870int
21871main ()
21872{
21873
21874  FILE *f = fopen ("conftest.val", "w");
21875  if (! f)
21876    return 1;
21877  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21878    {
21879      long int i = longval ();
21880      if (i != ((long int) (sizeof (ac__type_sizeof_))))
21881	return 1;
21882      fprintf (f, "%ld\n", i);
21883    }
21884  else
21885    {
21886      unsigned long int i = ulongval ();
21887      if (i != ((long int) (sizeof (ac__type_sizeof_))))
21888	return 1;
21889      fprintf (f, "%lu\n", i);
21890    }
21891  return ferror (f) || fclose (f) != 0;
21892
21893  ;
21894  return 0;
21895}
21896_ACEOF
21897rm -f conftest$ac_exeext
21898if { (ac_try="$ac_link"
21899case "(($ac_try" in
21900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21901  *) ac_try_echo=$ac_try;;
21902esac
21903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21904  (eval "$ac_link") 2>&5
21905  ac_status=$?
21906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21908  { (case "(($ac_try" in
21909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910  *) ac_try_echo=$ac_try;;
21911esac
21912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21913  (eval "$ac_try") 2>&5
21914  ac_status=$?
21915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916  (exit $ac_status); }; }; then
21917  ac_cv_sizeof_long=`cat conftest.val`
21918else
21919  echo "$as_me: program exited with status $ac_status" >&5
21920echo "$as_me: failed program was:" >&5
21921sed 's/^/| /' conftest.$ac_ext >&5
21922
21923( exit $ac_status )
21924if test "$ac_cv_type_long" = yes; then
21925     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21926See \`config.log' for more details." >&5
21927echo "$as_me: error: cannot compute sizeof (long)
21928See \`config.log' for more details." >&2;}
21929   { (exit 77); exit 77; }; }
21930   else
21931     ac_cv_sizeof_long=0
21932   fi
21933fi
21934rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21935fi
21936rm -f conftest.val
21937fi
21938{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21939echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
21940
21941
21942
21943cat >>confdefs.h <<_ACEOF
21944#define SIZEOF_LONG $ac_cv_sizeof_long
21945_ACEOF
21946
21947
21948{ echo "$as_me:$LINENO: checking for long long" >&5
21949echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21950if test "${ac_cv_type_long_long+set}" = set; then
21951  echo $ECHO_N "(cached) $ECHO_C" >&6
21952else
21953  cat >conftest.$ac_ext <<_ACEOF
21954/* confdefs.h.  */
21955_ACEOF
21956cat confdefs.h >>conftest.$ac_ext
21957cat >>conftest.$ac_ext <<_ACEOF
21958/* end confdefs.h.  */
21959$ac_includes_default
21960typedef long long ac__type_new_;
21961int
21962main ()
21963{
21964if ((ac__type_new_ *) 0)
21965  return 0;
21966if (sizeof (ac__type_new_))
21967  return 0;
21968  ;
21969  return 0;
21970}
21971_ACEOF
21972rm -f conftest.$ac_objext
21973if { (ac_try="$ac_compile"
21974case "(($ac_try" in
21975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21976  *) ac_try_echo=$ac_try;;
21977esac
21978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21979  (eval "$ac_compile") 2>conftest.er1
21980  ac_status=$?
21981  grep -v '^ *+' conftest.er1 >conftest.err
21982  rm -f conftest.er1
21983  cat conftest.err >&5
21984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985  (exit $ac_status); } && {
21986	 test -z "$ac_c_werror_flag" ||
21987	 test ! -s conftest.err
21988       } && test -s conftest.$ac_objext; then
21989  ac_cv_type_long_long=yes
21990else
21991  echo "$as_me: failed program was:" >&5
21992sed 's/^/| /' conftest.$ac_ext >&5
21993
21994	ac_cv_type_long_long=no
21995fi
21996
21997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21998fi
21999{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22000echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22001
22002# The cast to long int works around a bug in the HP C Compiler
22003# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22004# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22005# This bug is HP SR number 8606223364.
22006{ echo "$as_me:$LINENO: checking size of long long" >&5
22007echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22008if test "${ac_cv_sizeof_long_long+set}" = set; then
22009  echo $ECHO_N "(cached) $ECHO_C" >&6
22010else
22011  if test "$cross_compiling" = yes; then
22012  # Depending upon the size, compute the lo and hi bounds.
22013cat >conftest.$ac_ext <<_ACEOF
22014/* confdefs.h.  */
22015_ACEOF
22016cat confdefs.h >>conftest.$ac_ext
22017cat >>conftest.$ac_ext <<_ACEOF
22018/* end confdefs.h.  */
22019$ac_includes_default
22020   typedef long long ac__type_sizeof_;
22021int
22022main ()
22023{
22024static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22025test_array [0] = 0
22026
22027  ;
22028  return 0;
22029}
22030_ACEOF
22031rm -f conftest.$ac_objext
22032if { (ac_try="$ac_compile"
22033case "(($ac_try" in
22034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035  *) ac_try_echo=$ac_try;;
22036esac
22037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038  (eval "$ac_compile") 2>conftest.er1
22039  ac_status=$?
22040  grep -v '^ *+' conftest.er1 >conftest.err
22041  rm -f conftest.er1
22042  cat conftest.err >&5
22043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044  (exit $ac_status); } && {
22045	 test -z "$ac_c_werror_flag" ||
22046	 test ! -s conftest.err
22047       } && test -s conftest.$ac_objext; then
22048  ac_lo=0 ac_mid=0
22049  while :; do
22050    cat >conftest.$ac_ext <<_ACEOF
22051/* confdefs.h.  */
22052_ACEOF
22053cat confdefs.h >>conftest.$ac_ext
22054cat >>conftest.$ac_ext <<_ACEOF
22055/* end confdefs.h.  */
22056$ac_includes_default
22057   typedef long long ac__type_sizeof_;
22058int
22059main ()
22060{
22061static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22062test_array [0] = 0
22063
22064  ;
22065  return 0;
22066}
22067_ACEOF
22068rm -f conftest.$ac_objext
22069if { (ac_try="$ac_compile"
22070case "(($ac_try" in
22071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22072  *) ac_try_echo=$ac_try;;
22073esac
22074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22075  (eval "$ac_compile") 2>conftest.er1
22076  ac_status=$?
22077  grep -v '^ *+' conftest.er1 >conftest.err
22078  rm -f conftest.er1
22079  cat conftest.err >&5
22080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081  (exit $ac_status); } && {
22082	 test -z "$ac_c_werror_flag" ||
22083	 test ! -s conftest.err
22084       } && test -s conftest.$ac_objext; then
22085  ac_hi=$ac_mid; break
22086else
22087  echo "$as_me: failed program was:" >&5
22088sed 's/^/| /' conftest.$ac_ext >&5
22089
22090	ac_lo=`expr $ac_mid + 1`
22091			if test $ac_lo -le $ac_mid; then
22092			  ac_lo= ac_hi=
22093			  break
22094			fi
22095			ac_mid=`expr 2 '*' $ac_mid + 1`
22096fi
22097
22098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22099  done
22100else
22101  echo "$as_me: failed program was:" >&5
22102sed 's/^/| /' conftest.$ac_ext >&5
22103
22104	cat >conftest.$ac_ext <<_ACEOF
22105/* confdefs.h.  */
22106_ACEOF
22107cat confdefs.h >>conftest.$ac_ext
22108cat >>conftest.$ac_ext <<_ACEOF
22109/* end confdefs.h.  */
22110$ac_includes_default
22111   typedef long long ac__type_sizeof_;
22112int
22113main ()
22114{
22115static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22116test_array [0] = 0
22117
22118  ;
22119  return 0;
22120}
22121_ACEOF
22122rm -f conftest.$ac_objext
22123if { (ac_try="$ac_compile"
22124case "(($ac_try" in
22125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22126  *) ac_try_echo=$ac_try;;
22127esac
22128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22129  (eval "$ac_compile") 2>conftest.er1
22130  ac_status=$?
22131  grep -v '^ *+' conftest.er1 >conftest.err
22132  rm -f conftest.er1
22133  cat conftest.err >&5
22134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135  (exit $ac_status); } && {
22136	 test -z "$ac_c_werror_flag" ||
22137	 test ! -s conftest.err
22138       } && test -s conftest.$ac_objext; then
22139  ac_hi=-1 ac_mid=-1
22140  while :; do
22141    cat >conftest.$ac_ext <<_ACEOF
22142/* confdefs.h.  */
22143_ACEOF
22144cat confdefs.h >>conftest.$ac_ext
22145cat >>conftest.$ac_ext <<_ACEOF
22146/* end confdefs.h.  */
22147$ac_includes_default
22148   typedef long long ac__type_sizeof_;
22149int
22150main ()
22151{
22152static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22153test_array [0] = 0
22154
22155  ;
22156  return 0;
22157}
22158_ACEOF
22159rm -f conftest.$ac_objext
22160if { (ac_try="$ac_compile"
22161case "(($ac_try" in
22162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163  *) ac_try_echo=$ac_try;;
22164esac
22165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22166  (eval "$ac_compile") 2>conftest.er1
22167  ac_status=$?
22168  grep -v '^ *+' conftest.er1 >conftest.err
22169  rm -f conftest.er1
22170  cat conftest.err >&5
22171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172  (exit $ac_status); } && {
22173	 test -z "$ac_c_werror_flag" ||
22174	 test ! -s conftest.err
22175       } && test -s conftest.$ac_objext; then
22176  ac_lo=$ac_mid; break
22177else
22178  echo "$as_me: failed program was:" >&5
22179sed 's/^/| /' conftest.$ac_ext >&5
22180
22181	ac_hi=`expr '(' $ac_mid ')' - 1`
22182			if test $ac_mid -le $ac_hi; then
22183			  ac_lo= ac_hi=
22184			  break
22185			fi
22186			ac_mid=`expr 2 '*' $ac_mid`
22187fi
22188
22189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22190  done
22191else
22192  echo "$as_me: failed program was:" >&5
22193sed 's/^/| /' conftest.$ac_ext >&5
22194
22195	ac_lo= ac_hi=
22196fi
22197
22198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22199fi
22200
22201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22202# Binary search between lo and hi bounds.
22203while test "x$ac_lo" != "x$ac_hi"; do
22204  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22205  cat >conftest.$ac_ext <<_ACEOF
22206/* confdefs.h.  */
22207_ACEOF
22208cat confdefs.h >>conftest.$ac_ext
22209cat >>conftest.$ac_ext <<_ACEOF
22210/* end confdefs.h.  */
22211$ac_includes_default
22212   typedef long long ac__type_sizeof_;
22213int
22214main ()
22215{
22216static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22217test_array [0] = 0
22218
22219  ;
22220  return 0;
22221}
22222_ACEOF
22223rm -f conftest.$ac_objext
22224if { (ac_try="$ac_compile"
22225case "(($ac_try" in
22226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22227  *) ac_try_echo=$ac_try;;
22228esac
22229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22230  (eval "$ac_compile") 2>conftest.er1
22231  ac_status=$?
22232  grep -v '^ *+' conftest.er1 >conftest.err
22233  rm -f conftest.er1
22234  cat conftest.err >&5
22235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236  (exit $ac_status); } && {
22237	 test -z "$ac_c_werror_flag" ||
22238	 test ! -s conftest.err
22239       } && test -s conftest.$ac_objext; then
22240  ac_hi=$ac_mid
22241else
22242  echo "$as_me: failed program was:" >&5
22243sed 's/^/| /' conftest.$ac_ext >&5
22244
22245	ac_lo=`expr '(' $ac_mid ')' + 1`
22246fi
22247
22248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22249done
22250case $ac_lo in
22251?*) ac_cv_sizeof_long_long=$ac_lo;;
22252'') if test "$ac_cv_type_long_long" = yes; then
22253     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22254See \`config.log' for more details." >&5
22255echo "$as_me: error: cannot compute sizeof (long long)
22256See \`config.log' for more details." >&2;}
22257   { (exit 77); exit 77; }; }
22258   else
22259     ac_cv_sizeof_long_long=0
22260   fi ;;
22261esac
22262else
22263  cat >conftest.$ac_ext <<_ACEOF
22264/* confdefs.h.  */
22265_ACEOF
22266cat confdefs.h >>conftest.$ac_ext
22267cat >>conftest.$ac_ext <<_ACEOF
22268/* end confdefs.h.  */
22269$ac_includes_default
22270   typedef long long ac__type_sizeof_;
22271static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22272static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22273#include <stdio.h>
22274#include <stdlib.h>
22275int
22276main ()
22277{
22278
22279  FILE *f = fopen ("conftest.val", "w");
22280  if (! f)
22281    return 1;
22282  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22283    {
22284      long int i = longval ();
22285      if (i != ((long int) (sizeof (ac__type_sizeof_))))
22286	return 1;
22287      fprintf (f, "%ld\n", i);
22288    }
22289  else
22290    {
22291      unsigned long int i = ulongval ();
22292      if (i != ((long int) (sizeof (ac__type_sizeof_))))
22293	return 1;
22294      fprintf (f, "%lu\n", i);
22295    }
22296  return ferror (f) || fclose (f) != 0;
22297
22298  ;
22299  return 0;
22300}
22301_ACEOF
22302rm -f conftest$ac_exeext
22303if { (ac_try="$ac_link"
22304case "(($ac_try" in
22305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22306  *) ac_try_echo=$ac_try;;
22307esac
22308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22309  (eval "$ac_link") 2>&5
22310  ac_status=$?
22311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22313  { (case "(($ac_try" in
22314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315  *) ac_try_echo=$ac_try;;
22316esac
22317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22318  (eval "$ac_try") 2>&5
22319  ac_status=$?
22320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321  (exit $ac_status); }; }; then
22322  ac_cv_sizeof_long_long=`cat conftest.val`
22323else
22324  echo "$as_me: program exited with status $ac_status" >&5
22325echo "$as_me: failed program was:" >&5
22326sed 's/^/| /' conftest.$ac_ext >&5
22327
22328( exit $ac_status )
22329if test "$ac_cv_type_long_long" = yes; then
22330     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22331See \`config.log' for more details." >&5
22332echo "$as_me: error: cannot compute sizeof (long long)
22333See \`config.log' for more details." >&2;}
22334   { (exit 77); exit 77; }; }
22335   else
22336     ac_cv_sizeof_long_long=0
22337   fi
22338fi
22339rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22340fi
22341rm -f conftest.val
22342fi
22343{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22344echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22345
22346
22347
22348cat >>confdefs.h <<_ACEOF
22349#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22350_ACEOF
22351
22352
22353
22354
22355if test x$has_cv_int16_t = "xyes" ; then
22356        SIZE16="int16_t"
22357else
22358        case 2 in
22359                $ac_cv_sizeof_short) SIZE16="short";;
22360                $ac_cv_sizeof_int) SIZE16="int";;
22361        esac
22362fi
22363
22364if test x$has_cv_int32_t = "xyes" ; then
22365        SIZE32="int32_t"
22366else
22367        case 4 in
22368                $ac_cv_sizeof_short) SIZE32="short";;
22369                $ac_cv_sizeof_int) SIZE32="int";;
22370                $ac_cv_sizeof_long) SIZE32="long";;
22371        esac
22372fi
22373
22374if test x$has_cv_uint32_t = "xyes" ; then
22375        USIZE32="uint32_t"
22376else
22377        if test x$has_cv_u_int32_t = "xyes" ; then
22378                USIZE32="u_int32_t"
22379        else
22380                case 4 in
22381                        $ac_cv_sizeof_short) USIZE32="unsigned short";;
22382                        $ac_cv_sizeof_int) USIZE32="unsigned int";;
22383                        $ac_cv_sizeof_long) USIZE32="unsigned long";;
22384                esac
22385        fi
22386fi
22387
22388if test x$has_cv_uint16_t = "xyes" ; then
22389        USIZE16="uint16_t"
22390else
22391        if test x$has_cv_u_int16_t = "xyes" ; then
22392                USIZE16="u_int16_t"
22393        else
22394                case 2 in
22395                        $ac_cv_sizeof_short) USIZE16="unsigned short";;
22396                        $ac_cv_sizeof_int) USIZE16="unsigned int";;
22397                        $ac_cv_sizeof_long) USIZE16="unsigned long";;
22398                esac
22399        fi
22400fi
22401
22402if test x$has_cv_int64_t = "xyes" ; then
22403        SIZE64="int64_t"
22404else
22405case 8 in
22406        $ac_cv_sizeof_int) SIZE64="int";;
22407        $ac_cv_sizeof_long) SIZE64="long";;
22408        $ac_cv_sizeof_long_long) SIZE64="long long";;
22409esac
22410fi
22411
22412if test -z "$SIZE16"; then
22413        { { echo "$as_me:$LINENO: error: No 16 bit type found on this platform!" >&5
22414echo "$as_me: error: No 16 bit type found on this platform!" >&2;}
22415   { (exit 1); exit 1; }; }
22416fi
22417if test -z "$USIZE16"; then
22418        { { echo "$as_me:$LINENO: error: No unsigned 16 bit type found on this platform!" >&5
22419echo "$as_me: error: No unsigned 16 bit type found on this platform!" >&2;}
22420   { (exit 1); exit 1; }; }
22421fi
22422if test -z "$SIZE32"; then
22423        { { echo "$as_me:$LINENO: error: No 32 bit type found on this platform!" >&5
22424echo "$as_me: error: No 32 bit type found on this platform!" >&2;}
22425   { (exit 1); exit 1; }; }
22426fi
22427if test -z "$USIZE32"; then
22428        { { echo "$as_me:$LINENO: error: No unsigned 32 bit type found on this platform!" >&5
22429echo "$as_me: error: No unsigned 32 bit type found on this platform!" >&2;}
22430   { (exit 1); exit 1; }; }
22431fi
22432if test -z "$SIZE64"; then
22433        { echo "$as_me:$LINENO: WARNING: No 64 bit type found on this platform!" >&5
22434echo "$as_me: WARNING: No 64 bit type found on this platform!" >&2;}
22435fi
22436
22437{ echo "$as_me:$LINENO: checking for working memcmp" >&5
22438echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
22439if test "${ac_cv_func_memcmp_working+set}" = set; then
22440  echo $ECHO_N "(cached) $ECHO_C" >&6
22441else
22442  if test "$cross_compiling" = yes; then
22443  ac_cv_func_memcmp_working=no
22444else
22445  cat >conftest.$ac_ext <<_ACEOF
22446/* confdefs.h.  */
22447_ACEOF
22448cat confdefs.h >>conftest.$ac_ext
22449cat >>conftest.$ac_ext <<_ACEOF
22450/* end confdefs.h.  */
22451$ac_includes_default
22452int
22453main ()
22454{
22455
22456  /* Some versions of memcmp are not 8-bit clean.  */
22457  char c0 = '\100', c1 = '\200', c2 = '\201';
22458  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22459    return 1;
22460
22461  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22462     or more and with at least one buffer not starting on a 4-byte boundary.
22463     William Lewis provided this test program.   */
22464  {
22465    char foo[21];
22466    char bar[21];
22467    int i;
22468    for (i = 0; i < 4; i++)
22469      {
22470	char *a = foo + i;
22471	char *b = bar + i;
22472	strcpy (a, "--------01111111");
22473	strcpy (b, "--------10000000");
22474	if (memcmp (a, b, 16) >= 0)
22475	  return 1;
22476      }
22477    return 0;
22478  }
22479
22480  ;
22481  return 0;
22482}
22483_ACEOF
22484rm -f conftest$ac_exeext
22485if { (ac_try="$ac_link"
22486case "(($ac_try" in
22487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22488  *) ac_try_echo=$ac_try;;
22489esac
22490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22491  (eval "$ac_link") 2>&5
22492  ac_status=$?
22493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22495  { (case "(($ac_try" in
22496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497  *) ac_try_echo=$ac_try;;
22498esac
22499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500  (eval "$ac_try") 2>&5
22501  ac_status=$?
22502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503  (exit $ac_status); }; }; then
22504  ac_cv_func_memcmp_working=yes
22505else
22506  echo "$as_me: program exited with status $ac_status" >&5
22507echo "$as_me: failed program was:" >&5
22508sed 's/^/| /' conftest.$ac_ext >&5
22509
22510( exit $ac_status )
22511ac_cv_func_memcmp_working=no
22512fi
22513rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22514fi
22515
22516
22517fi
22518{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22519echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
22520test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22521  *" memcmp.$ac_objext "* ) ;;
22522  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22523 ;;
22524esac
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/libogg/Makefile include/Makefile include/ogg/Makefile include/ogg/config_types.h libogg.spec ogg.pc ogg-uninstalled.pc"
22542
22543cat >confcache <<\_ACEOF
22544# This file is a shell script that caches the results of configure
22545# tests run on this system so they can be shared between configure
22546# scripts and configure runs, see configure's option --config-cache.
22547# It is not useful on other systems.  If it contains results you don't
22548# want to keep, you may remove or edit it.
22549#
22550# config.status only pays attention to the cache file if you give it
22551# the --recheck option to rerun configure.
22552#
22553# `ac_cv_env_foo' variables (set or unset) will be overridden when
22554# loading this file, other *unset* `ac_cv_foo' will be assigned the
22555# following values.
22556
22557_ACEOF
22558
22559# The following way of writing the cache mishandles newlines in values,
22560# but we know of no workaround that is simple, portable, and efficient.
22561# So, we kill variables containing newlines.
22562# Ultrix sh set writes to stderr and can't be redirected directly,
22563# and sets the high bit in the cache file unless we assign to the vars.
22564(
22565  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22566    eval ac_val=\$$ac_var
22567    case $ac_val in #(
22568    *${as_nl}*)
22569      case $ac_var in #(
22570      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22571echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22572      esac
22573      case $ac_var in #(
22574      _ | IFS | as_nl) ;; #(
22575      *) $as_unset $ac_var ;;
22576      esac ;;
22577    esac
22578  done
22579
22580  (set) 2>&1 |
22581    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22582    *${as_nl}ac_space=\ *)
22583      # `set' does not quote correctly, so add quotes (double-quote
22584      # substitution turns \\\\ into \\, and sed turns \\ into \).
22585      sed -n \
22586	"s/'/'\\\\''/g;
22587	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22588      ;; #(
22589    *)
22590      # `set' quotes correctly as required by POSIX, so do not add quotes.
22591      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22592      ;;
22593    esac |
22594    sort
22595) |
22596  sed '
22597     /^ac_cv_env_/b end
22598     t clear
22599     :clear
22600     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22601     t end
22602     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22603     :end' >>confcache
22604if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22605  if test -w "$cache_file"; then
22606    test "x$cache_file" != "x/dev/null" &&
22607      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22608echo "$as_me: updating cache $cache_file" >&6;}
22609    cat confcache >$cache_file
22610  else
22611    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22612echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22613  fi
22614fi
22615rm -f confcache
22616
22617test "x$prefix" = xNONE && prefix=$ac_default_prefix
22618# Let make expand exec_prefix.
22619test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22620
22621DEFS=-DHAVE_CONFIG_H
22622
22623ac_libobjs=
22624ac_ltlibobjs=
22625for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22626  # 1. Remove the extension, and $U if already installed.
22627  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22628  ac_i=`echo "$ac_i" | sed "$ac_script"`
22629  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22630  #    will be set to the directory where LIBOBJS objects are built.
22631  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22632  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22633done
22634LIBOBJS=$ac_libobjs
22635
22636LTLIBOBJS=$ac_ltlibobjs
22637
22638
22639if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22640  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22641Usually this means the macro was only invoked conditionally." >&5
22642echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22643Usually this means the macro was only invoked conditionally." >&2;}
22644   { (exit 1); exit 1; }; }
22645fi
22646if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22647  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22648Usually this means the macro was only invoked conditionally." >&5
22649echo "$as_me: error: conditional \"AMDEP\" was never defined.
22650Usually this means the macro was only invoked conditionally." >&2;}
22651   { (exit 1); exit 1; }; }
22652fi
22653if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22654  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22655Usually this means the macro was only invoked conditionally." >&5
22656echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22657Usually this means the macro was only invoked conditionally." >&2;}
22658   { (exit 1); exit 1; }; }
22659fi
22660if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22661  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22662Usually this means the macro was only invoked conditionally." >&5
22663echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22664Usually this means the macro was only invoked conditionally." >&2;}
22665   { (exit 1); exit 1; }; }
22666fi
22667
22668: ${CONFIG_STATUS=./config.status}
22669ac_clean_files_save=$ac_clean_files
22670ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22671{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22672echo "$as_me: creating $CONFIG_STATUS" >&6;}
22673cat >$CONFIG_STATUS <<_ACEOF
22674#! $SHELL
22675# Generated by $as_me.
22676# Run this file to recreate the current configuration.
22677# Compiler output produced by configure, useful for debugging
22678# configure, is in config.log if it exists.
22679
22680debug=false
22681ac_cs_recheck=false
22682ac_cs_silent=false
22683SHELL=\${CONFIG_SHELL-$SHELL}
22684_ACEOF
22685
22686cat >>$CONFIG_STATUS <<\_ACEOF
22687## --------------------- ##
22688## M4sh Initialization.  ##
22689## --------------------- ##
22690
22691# Be more Bourne compatible
22692DUALCASE=1; export DUALCASE # for MKS sh
22693if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22694  emulate sh
22695  NULLCMD=:
22696  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22697  # is contrary to our usage.  Disable this feature.
22698  alias -g '${1+"$@"}'='"$@"'
22699  setopt NO_GLOB_SUBST
22700else
22701  case `(set -o) 2>/dev/null` in
22702  *posix*) set -o posix ;;
22703esac
22704
22705fi
22706
22707
22708
22709
22710# PATH needs CR
22711# Avoid depending upon Character Ranges.
22712as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22713as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22714as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22715as_cr_digits='0123456789'
22716as_cr_alnum=$as_cr_Letters$as_cr_digits
22717
22718# The user is always right.
22719if test "${PATH_SEPARATOR+set}" != set; then
22720  echo "#! /bin/sh" >conf$$.sh
22721  echo  "exit 0"   >>conf$$.sh
22722  chmod +x conf$$.sh
22723  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22724    PATH_SEPARATOR=';'
22725  else
22726    PATH_SEPARATOR=:
22727  fi
22728  rm -f conf$$.sh
22729fi
22730
22731# Support unset when possible.
22732if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22733  as_unset=unset
22734else
22735  as_unset=false
22736fi
22737
22738
22739# IFS
22740# We need space, tab and new line, in precisely that order.  Quoting is
22741# there to prevent editors from complaining about space-tab.
22742# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22743# splitting by setting IFS to empty value.)
22744as_nl='
22745'
22746IFS=" ""	$as_nl"
22747
22748# Find who we are.  Look in the path if we contain no directory separator.
22749case $0 in
22750  *[\\/]* ) as_myself=$0 ;;
22751  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22752for as_dir in $PATH
22753do
22754  IFS=$as_save_IFS
22755  test -z "$as_dir" && as_dir=.
22756  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22757done
22758IFS=$as_save_IFS
22759
22760     ;;
22761esac
22762# We did not find ourselves, most probably we were run as `sh COMMAND'
22763# in which case we are not to be found in the path.
22764if test "x$as_myself" = x; then
22765  as_myself=$0
22766fi
22767if test ! -f "$as_myself"; then
22768  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22769  { (exit 1); exit 1; }
22770fi
22771
22772# Work around bugs in pre-3.0 UWIN ksh.
22773for as_var in ENV MAIL MAILPATH
22774do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22775done
22776PS1='$ '
22777PS2='> '
22778PS4='+ '
22779
22780# NLS nuisances.
22781for as_var in \
22782  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22783  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22784  LC_TELEPHONE LC_TIME
22785do
22786  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22787    eval $as_var=C; export $as_var
22788  else
22789    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22790  fi
22791done
22792
22793# Required to use basename.
22794if expr a : '\(a\)' >/dev/null 2>&1 &&
22795   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22796  as_expr=expr
22797else
22798  as_expr=false
22799fi
22800
22801if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22802  as_basename=basename
22803else
22804  as_basename=false
22805fi
22806
22807
22808# Name of the executable.
22809as_me=`$as_basename -- "$0" ||
22810$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22811	 X"$0" : 'X\(//\)$' \| \
22812	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22813echo X/"$0" |
22814    sed '/^.*\/\([^/][^/]*\)\/*$/{
22815	    s//\1/
22816	    q
22817	  }
22818	  /^X\/\(\/\/\)$/{
22819	    s//\1/
22820	    q
22821	  }
22822	  /^X\/\(\/\).*/{
22823	    s//\1/
22824	    q
22825	  }
22826	  s/.*/./; q'`
22827
22828# CDPATH.
22829$as_unset CDPATH
22830
22831
22832
22833  as_lineno_1=$LINENO
22834  as_lineno_2=$LINENO
22835  test "x$as_lineno_1" != "x$as_lineno_2" &&
22836  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22837
22838  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22839  # uniformly replaced by the line number.  The first 'sed' inserts a
22840  # line-number line after each line using $LINENO; the second 'sed'
22841  # does the real work.  The second script uses 'N' to pair each
22842  # line-number line with the line containing $LINENO, and appends
22843  # trailing '-' during substitution so that $LINENO is not a special
22844  # case at line end.
22845  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22846  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22847  # E. McMahon (1931-1989) for sed's syntax.  :-)
22848  sed -n '
22849    p
22850    /[$]LINENO/=
22851  ' <$as_myself |
22852    sed '
22853      s/[$]LINENO.*/&-/
22854      t lineno
22855      b
22856      :lineno
22857      N
22858      :loop
22859      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22860      t loop
22861      s/-\n.*//
22862    ' >$as_me.lineno &&
22863  chmod +x "$as_me.lineno" ||
22864    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22865   { (exit 1); exit 1; }; }
22866
22867  # Don't try to exec as it changes $[0], causing all sort of problems
22868  # (the dirname of $[0] is not the place where we might find the
22869  # original and so on.  Autoconf is especially sensitive to this).
22870  . "./$as_me.lineno"
22871  # Exit status is that of the last command.
22872  exit
22873}
22874
22875
22876if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22877  as_dirname=dirname
22878else
22879  as_dirname=false
22880fi
22881
22882ECHO_C= ECHO_N= ECHO_T=
22883case `echo -n x` in
22884-n*)
22885  case `echo 'x\c'` in
22886  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22887  *)   ECHO_C='\c';;
22888  esac;;
22889*)
22890  ECHO_N='-n';;
22891esac
22892
22893if expr a : '\(a\)' >/dev/null 2>&1 &&
22894   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22895  as_expr=expr
22896else
22897  as_expr=false
22898fi
22899
22900rm -f conf$$ conf$$.exe conf$$.file
22901if test -d conf$$.dir; then
22902  rm -f conf$$.dir/conf$$.file
22903else
22904  rm -f conf$$.dir
22905  mkdir conf$$.dir
22906fi
22907echo >conf$$.file
22908if ln -s conf$$.file conf$$ 2>/dev/null; then
22909  as_ln_s='ln -s'
22910  # ... but there are two gotchas:
22911  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22912  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22913  # In both cases, we have to default to `cp -p'.
22914  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22915    as_ln_s='cp -p'
22916elif ln conf$$.file conf$$ 2>/dev/null; then
22917  as_ln_s=ln
22918else
22919  as_ln_s='cp -p'
22920fi
22921rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22922rmdir conf$$.dir 2>/dev/null
22923
22924if mkdir -p . 2>/dev/null; then
22925  as_mkdir_p=:
22926else
22927  test -d ./-p && rmdir ./-p
22928  as_mkdir_p=false
22929fi
22930
22931if test -x / >/dev/null 2>&1; then
22932  as_test_x='test -x'
22933else
22934  if ls -dL / >/dev/null 2>&1; then
22935    as_ls_L_option=L
22936  else
22937    as_ls_L_option=
22938  fi
22939  as_test_x='
22940    eval sh -c '\''
22941      if test -d "$1"; then
22942        test -d "$1/.";
22943      else
22944	case $1 in
22945        -*)set "./$1";;
22946	esac;
22947	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22948	???[sx]*):;;*)false;;esac;fi
22949    '\'' sh
22950  '
22951fi
22952as_executable_p=$as_test_x
22953
22954# Sed expression to map a string onto a valid CPP name.
22955as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22956
22957# Sed expression to map a string onto a valid variable name.
22958as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22959
22960
22961exec 6>&1
22962
22963# Save the log message, to keep $[0] and so on meaningful, and to
22964# report actual input values of CONFIG_FILES etc. instead of their
22965# values after options handling.
22966ac_log="
22967This file was extended by $as_me, which was
22968generated by GNU Autoconf 2.61.  Invocation command line was
22969
22970  CONFIG_FILES    = $CONFIG_FILES
22971  CONFIG_HEADERS  = $CONFIG_HEADERS
22972  CONFIG_LINKS    = $CONFIG_LINKS
22973  CONFIG_COMMANDS = $CONFIG_COMMANDS
22974  $ $0 $@
22975
22976on `(hostname || uname -n) 2>/dev/null | sed 1q`
22977"
22978
22979_ACEOF
22980
22981cat >>$CONFIG_STATUS <<_ACEOF
22982# Files that config.status was made for.
22983config_files="$ac_config_files"
22984config_headers="$ac_config_headers"
22985config_commands="$ac_config_commands"
22986
22987_ACEOF
22988
22989cat >>$CONFIG_STATUS <<\_ACEOF
22990ac_cs_usage="\
22991\`$as_me' instantiates files from templates according to the
22992current configuration.
22993
22994Usage: $0 [OPTIONS] [FILE]...
22995
22996  -h, --help       print this help, then exit
22997  -V, --version    print version number and configuration settings, then exit
22998  -q, --quiet      do not print progress messages
22999  -d, --debug      don't remove temporary files
23000      --recheck    update $as_me by reconfiguring in the same conditions
23001  --file=FILE[:TEMPLATE]
23002		   instantiate the configuration file FILE
23003  --header=FILE[:TEMPLATE]
23004		   instantiate the configuration header FILE
23005
23006Configuration files:
23007$config_files
23008
23009Configuration headers:
23010$config_headers
23011
23012Configuration commands:
23013$config_commands
23014
23015Report bugs to <bug-autoconf@gnu.org>."
23016
23017_ACEOF
23018cat >>$CONFIG_STATUS <<_ACEOF
23019ac_cs_version="\\
23020config.status
23021configured by $0, generated by GNU Autoconf 2.61,
23022  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23023
23024Copyright (C) 2006 Free Software Foundation, Inc.
23025This config.status script is free software; the Free Software Foundation
23026gives unlimited permission to copy, distribute and modify it."
23027
23028ac_pwd='$ac_pwd'
23029srcdir='$srcdir'
23030INSTALL='$INSTALL'
23031MKDIR_P='$MKDIR_P'
23032_ACEOF
23033
23034cat >>$CONFIG_STATUS <<\_ACEOF
23035# If no file are specified by the user, then we need to provide default
23036# value.  By we need to know if files were specified by the user.
23037ac_need_defaults=:
23038while test $# != 0
23039do
23040  case $1 in
23041  --*=*)
23042    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23043    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23044    ac_shift=:
23045    ;;
23046  *)
23047    ac_option=$1
23048    ac_optarg=$2
23049    ac_shift=shift
23050    ;;
23051  esac
23052
23053  case $ac_option in
23054  # Handling of the options.
23055  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23056    ac_cs_recheck=: ;;
23057  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23058    echo "$ac_cs_version"; exit ;;
23059  --debug | --debu | --deb | --de | --d | -d )
23060    debug=: ;;
23061  --file | --fil | --fi | --f )
23062    $ac_shift
23063    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23064    ac_need_defaults=false;;
23065  --header | --heade | --head | --hea )
23066    $ac_shift
23067    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23068    ac_need_defaults=false;;
23069  --he | --h)
23070    # Conflict between --help and --header
23071    { echo "$as_me: error: ambiguous option: $1
23072Try \`$0 --help' for more information." >&2
23073   { (exit 1); exit 1; }; };;
23074  --help | --hel | -h )
23075    echo "$ac_cs_usage"; exit ;;
23076  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23077  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23078    ac_cs_silent=: ;;
23079
23080  # This is an error.
23081  -*) { echo "$as_me: error: unrecognized option: $1
23082Try \`$0 --help' for more information." >&2
23083   { (exit 1); exit 1; }; } ;;
23084
23085  *) ac_config_targets="$ac_config_targets $1"
23086     ac_need_defaults=false ;;
23087
23088  esac
23089  shift
23090done
23091
23092ac_configure_extra_args=
23093
23094if $ac_cs_silent; then
23095  exec 6>/dev/null
23096  ac_configure_extra_args="$ac_configure_extra_args --silent"
23097fi
23098
23099_ACEOF
23100cat >>$CONFIG_STATUS <<_ACEOF
23101if \$ac_cs_recheck; then
23102  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23103  CONFIG_SHELL=$SHELL
23104  export CONFIG_SHELL
23105  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23106fi
23107
23108_ACEOF
23109cat >>$CONFIG_STATUS <<\_ACEOF
23110exec 5>>config.log
23111{
23112  echo
23113  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23114## Running $as_me. ##
23115_ASBOX
23116  echo "$ac_log"
23117} >&5
23118
23119_ACEOF
23120cat >>$CONFIG_STATUS <<_ACEOF
23121#
23122# INIT-COMMANDS
23123#
23124AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23125
23126_ACEOF
23127
23128cat >>$CONFIG_STATUS <<\_ACEOF
23129
23130# Handling of arguments.
23131for ac_config_target in $ac_config_targets
23132do
23133  case $ac_config_target in
23134    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23135    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23136    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23137    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23138    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23139    "doc/libogg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libogg/Makefile" ;;
23140    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
23141    "include/ogg/Makefile") CONFIG_FILES="$CONFIG_FILES include/ogg/Makefile" ;;
23142    "include/ogg/config_types.h") CONFIG_FILES="$CONFIG_FILES include/ogg/config_types.h" ;;
23143    "libogg.spec") CONFIG_FILES="$CONFIG_FILES libogg.spec" ;;
23144    "ogg.pc") CONFIG_FILES="$CONFIG_FILES ogg.pc" ;;
23145    "ogg-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES ogg-uninstalled.pc" ;;
23146
23147  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23148echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23149   { (exit 1); exit 1; }; };;
23150  esac
23151done
23152
23153
23154# If the user did not use the arguments to specify the items to instantiate,
23155# then the envvar interface is used.  Set only those that are not.
23156# We use the long form for the default assignment because of an extremely
23157# bizarre bug on SunOS 4.1.3.
23158if $ac_need_defaults; then
23159  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23160  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23161  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23162fi
23163
23164# Have a temporary directory for convenience.  Make it in the build tree
23165# simply because there is no reason against having it here, and in addition,
23166# creating and moving files from /tmp can sometimes cause problems.
23167# Hook for its removal unless debugging.
23168# Note that there is a small window in which the directory will not be cleaned:
23169# after its creation but before its name has been assigned to `$tmp'.
23170$debug ||
23171{
23172  tmp=
23173  trap 'exit_status=$?
23174  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23175' 0
23176  trap '{ (exit 1); exit 1; }' 1 2 13 15
23177}
23178# Create a (secure) tmp directory for tmp files.
23179
23180{
23181  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23182  test -n "$tmp" && test -d "$tmp"
23183}  ||
23184{
23185  tmp=./conf$$-$RANDOM
23186  (umask 077 && mkdir "$tmp")
23187} ||
23188{
23189   echo "$me: cannot create a temporary directory in ." >&2
23190   { (exit 1); exit 1; }
23191}
23192
23193#
23194# Set up the sed scripts for CONFIG_FILES section.
23195#
23196
23197# No need to generate the scripts if there are no CONFIG_FILES.
23198# This happens for instance when ./config.status config.h
23199if test -n "$CONFIG_FILES"; then
23200
23201_ACEOF
23202
23203
23204
23205ac_delim='%!_!# '
23206for ac_last_try in false false false false false :; do
23207  cat >conf$$subs.sed <<_ACEOF
23208SHELL!$SHELL$ac_delim
23209PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23210PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23211PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23212PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23213PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23214PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23215exec_prefix!$exec_prefix$ac_delim
23216prefix!$prefix$ac_delim
23217program_transform_name!$program_transform_name$ac_delim
23218bindir!$bindir$ac_delim
23219sbindir!$sbindir$ac_delim
23220libexecdir!$libexecdir$ac_delim
23221datarootdir!$datarootdir$ac_delim
23222datadir!$datadir$ac_delim
23223sysconfdir!$sysconfdir$ac_delim
23224sharedstatedir!$sharedstatedir$ac_delim
23225localstatedir!$localstatedir$ac_delim
23226includedir!$includedir$ac_delim
23227oldincludedir!$oldincludedir$ac_delim
23228docdir!$docdir$ac_delim
23229infodir!$infodir$ac_delim
23230htmldir!$htmldir$ac_delim
23231dvidir!$dvidir$ac_delim
23232pdfdir!$pdfdir$ac_delim
23233psdir!$psdir$ac_delim
23234libdir!$libdir$ac_delim
23235localedir!$localedir$ac_delim
23236mandir!$mandir$ac_delim
23237DEFS!$DEFS$ac_delim
23238ECHO_C!$ECHO_C$ac_delim
23239ECHO_N!$ECHO_N$ac_delim
23240ECHO_T!$ECHO_T$ac_delim
23241LIBS!$LIBS$ac_delim
23242build_alias!$build_alias$ac_delim
23243host_alias!$host_alias$ac_delim
23244target_alias!$target_alias$ac_delim
23245INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23246INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23247INSTALL_DATA!$INSTALL_DATA$ac_delim
23248am__isrc!$am__isrc$ac_delim
23249CYGPATH_W!$CYGPATH_W$ac_delim
23250PACKAGE!$PACKAGE$ac_delim
23251VERSION!$VERSION$ac_delim
23252ACLOCAL!$ACLOCAL$ac_delim
23253AUTOCONF!$AUTOCONF$ac_delim
23254AUTOMAKE!$AUTOMAKE$ac_delim
23255AUTOHEADER!$AUTOHEADER$ac_delim
23256MAKEINFO!$MAKEINFO$ac_delim
23257install_sh!$install_sh$ac_delim
23258STRIP!$STRIP$ac_delim
23259INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23260mkdir_p!$mkdir_p$ac_delim
23261AWK!$AWK$ac_delim
23262SET_MAKE!$SET_MAKE$ac_delim
23263am__leading_dot!$am__leading_dot$ac_delim
23264AMTAR!$AMTAR$ac_delim
23265am__tar!$am__tar$ac_delim
23266am__untar!$am__untar$ac_delim
23267MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23268MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23269MAINT!$MAINT$ac_delim
23270LIB_CURRENT!$LIB_CURRENT$ac_delim
23271LIB_REVISION!$LIB_REVISION$ac_delim
23272LIB_AGE!$LIB_AGE$ac_delim
23273CC!$CC$ac_delim
23274CFLAGS!$CFLAGS$ac_delim
23275LDFLAGS!$LDFLAGS$ac_delim
23276CPPFLAGS!$CPPFLAGS$ac_delim
23277ac_ct_CC!$ac_ct_CC$ac_delim
23278EXEEXT!$EXEEXT$ac_delim
23279OBJEXT!$OBJEXT$ac_delim
23280DEPDIR!$DEPDIR$ac_delim
23281am__include!$am__include$ac_delim
23282am__quote!$am__quote$ac_delim
23283AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23284AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23285AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23286CCDEPMODE!$CCDEPMODE$ac_delim
23287am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23288am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23289build!$build$ac_delim
23290build_cpu!$build_cpu$ac_delim
23291build_vendor!$build_vendor$ac_delim
23292build_os!$build_os$ac_delim
23293host!$host$ac_delim
23294host_cpu!$host_cpu$ac_delim
23295host_vendor!$host_vendor$ac_delim
23296host_os!$host_os$ac_delim
23297SED!$SED$ac_delim
23298GREP!$GREP$ac_delim
23299EGREP!$EGREP$ac_delim
23300LN_S!$LN_S$ac_delim
23301ECHO!$ECHO$ac_delim
23302AR!$AR$ac_delim
23303RANLIB!$RANLIB$ac_delim
23304DSYMUTIL!$DSYMUTIL$ac_delim
23305_ACEOF
23306
23307  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23308    break
23309  elif $ac_last_try; then
23310    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23311echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23312   { (exit 1); exit 1; }; }
23313  else
23314    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23315  fi
23316done
23317
23318ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23319if test -n "$ac_eof"; then
23320  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23321  ac_eof=`expr $ac_eof + 1`
23322fi
23323
23324cat >>$CONFIG_STATUS <<_ACEOF
23325cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23326/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23327_ACEOF
23328sed '
23329s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23330s/^/s,@/; s/!/@,|#_!!_#|/
23331:n
23332t n
23333s/'"$ac_delim"'$/,g/; t
23334s/$/\\/; p
23335N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23336' >>$CONFIG_STATUS <conf$$subs.sed
23337rm -f conf$$subs.sed
23338cat >>$CONFIG_STATUS <<_ACEOF
23339CEOF$ac_eof
23340_ACEOF
23341
23342
23343ac_delim='%!_!# '
23344for ac_last_try in false false false false false :; do
23345  cat >conf$$subs.sed <<_ACEOF
23346NMEDIT!$NMEDIT$ac_delim
23347CPP!$CPP$ac_delim
23348CXX!$CXX$ac_delim
23349CXXFLAGS!$CXXFLAGS$ac_delim
23350ac_ct_CXX!$ac_ct_CXX$ac_delim
23351CXXDEPMODE!$CXXDEPMODE$ac_delim
23352am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23353am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23354CXXCPP!$CXXCPP$ac_delim
23355F77!$F77$ac_delim
23356FFLAGS!$FFLAGS$ac_delim
23357ac_ct_F77!$ac_ct_F77$ac_delim
23358LIBTOOL!$LIBTOOL$ac_delim
23359LIBOBJS!$LIBOBJS$ac_delim
23360LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
23361SIZE16!$SIZE16$ac_delim
23362USIZE16!$USIZE16$ac_delim
23363SIZE32!$SIZE32$ac_delim
23364USIZE32!$USIZE32$ac_delim
23365SIZE64!$SIZE64$ac_delim
23366OPT!$OPT$ac_delim
23367DEBUG!$DEBUG$ac_delim
23368PROFILE!$PROFILE$ac_delim
23369LTLIBOBJS!$LTLIBOBJS$ac_delim
23370_ACEOF
23371
23372  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
23373    break
23374  elif $ac_last_try; then
23375    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23376echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23377   { (exit 1); exit 1; }; }
23378  else
23379    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23380  fi
23381done
23382
23383ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23384if test -n "$ac_eof"; then
23385  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23386  ac_eof=`expr $ac_eof + 1`
23387fi
23388
23389cat >>$CONFIG_STATUS <<_ACEOF
23390cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23391/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23392_ACEOF
23393sed '
23394s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23395s/^/s,@/; s/!/@,|#_!!_#|/
23396:n
23397t n
23398s/'"$ac_delim"'$/,g/; t
23399s/$/\\/; p
23400N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23401' >>$CONFIG_STATUS <conf$$subs.sed
23402rm -f conf$$subs.sed
23403cat >>$CONFIG_STATUS <<_ACEOF
23404:end
23405s/|#_!!_#|//g
23406CEOF$ac_eof
23407_ACEOF
23408
23409
23410# VPATH may cause trouble with some makes, so we remove $(srcdir),
23411# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23412# trailing colons and then remove the whole line if VPATH becomes empty
23413# (actually we leave an empty line to preserve line numbers).
23414if test "x$srcdir" = x.; then
23415  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23416s/:*\$(srcdir):*/:/
23417s/:*\${srcdir}:*/:/
23418s/:*@srcdir@:*/:/
23419s/^\([^=]*=[	 ]*\):*/\1/
23420s/:*$//
23421s/^[^=]*=[	 ]*$//
23422}'
23423fi
23424
23425cat >>$CONFIG_STATUS <<\_ACEOF
23426fi # test -n "$CONFIG_FILES"
23427
23428
23429for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23430do
23431  case $ac_tag in
23432  :[FHLC]) ac_mode=$ac_tag; continue;;
23433  esac
23434  case $ac_mode$ac_tag in
23435  :[FHL]*:*);;
23436  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23437echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23438   { (exit 1); exit 1; }; };;
23439  :[FH]-) ac_tag=-:-;;
23440  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23441  esac
23442  ac_save_IFS=$IFS
23443  IFS=:
23444  set x $ac_tag
23445  IFS=$ac_save_IFS
23446  shift
23447  ac_file=$1
23448  shift
23449
23450  case $ac_mode in
23451  :L) ac_source=$1;;
23452  :[FH])
23453    ac_file_inputs=
23454    for ac_f
23455    do
23456      case $ac_f in
23457      -) ac_f="$tmp/stdin";;
23458      *) # Look for the file first in the build tree, then in the source tree
23459	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23460	 # because $ac_f cannot contain `:'.
23461	 test -f "$ac_f" ||
23462	   case $ac_f in
23463	   [\\/$]*) false;;
23464	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23465	   esac ||
23466	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23467echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23468   { (exit 1); exit 1; }; };;
23469      esac
23470      ac_file_inputs="$ac_file_inputs $ac_f"
23471    done
23472
23473    # Let's still pretend it is `configure' which instantiates (i.e., don't
23474    # use $as_me), people would be surprised to read:
23475    #    /* config.h.  Generated by config.status.  */
23476    configure_input="Generated from "`IFS=:
23477	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23478    if test x"$ac_file" != x-; then
23479      configure_input="$ac_file.  $configure_input"
23480      { echo "$as_me:$LINENO: creating $ac_file" >&5
23481echo "$as_me: creating $ac_file" >&6;}
23482    fi
23483
23484    case $ac_tag in
23485    *:-:* | *:-) cat >"$tmp/stdin";;
23486    esac
23487    ;;
23488  esac
23489
23490  ac_dir=`$as_dirname -- "$ac_file" ||
23491$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23492	 X"$ac_file" : 'X\(//\)[^/]' \| \
23493	 X"$ac_file" : 'X\(//\)$' \| \
23494	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23495echo X"$ac_file" |
23496    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23497	    s//\1/
23498	    q
23499	  }
23500	  /^X\(\/\/\)[^/].*/{
23501	    s//\1/
23502	    q
23503	  }
23504	  /^X\(\/\/\)$/{
23505	    s//\1/
23506	    q
23507	  }
23508	  /^X\(\/\).*/{
23509	    s//\1/
23510	    q
23511	  }
23512	  s/.*/./; q'`
23513  { as_dir="$ac_dir"
23514  case $as_dir in #(
23515  -*) as_dir=./$as_dir;;
23516  esac
23517  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23518    as_dirs=
23519    while :; do
23520      case $as_dir in #(
23521      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23522      *) as_qdir=$as_dir;;
23523      esac
23524      as_dirs="'$as_qdir' $as_dirs"
23525      as_dir=`$as_dirname -- "$as_dir" ||
23526$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23527	 X"$as_dir" : 'X\(//\)[^/]' \| \
23528	 X"$as_dir" : 'X\(//\)$' \| \
23529	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23530echo X"$as_dir" |
23531    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23532	    s//\1/
23533	    q
23534	  }
23535	  /^X\(\/\/\)[^/].*/{
23536	    s//\1/
23537	    q
23538	  }
23539	  /^X\(\/\/\)$/{
23540	    s//\1/
23541	    q
23542	  }
23543	  /^X\(\/\).*/{
23544	    s//\1/
23545	    q
23546	  }
23547	  s/.*/./; q'`
23548      test -d "$as_dir" && break
23549    done
23550    test -z "$as_dirs" || eval "mkdir $as_dirs"
23551  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23552echo "$as_me: error: cannot create directory $as_dir" >&2;}
23553   { (exit 1); exit 1; }; }; }
23554  ac_builddir=.
23555
23556case "$ac_dir" in
23557.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23558*)
23559  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23560  # A ".." for each directory in $ac_dir_suffix.
23561  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23562  case $ac_top_builddir_sub in
23563  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23564  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23565  esac ;;
23566esac
23567ac_abs_top_builddir=$ac_pwd
23568ac_abs_builddir=$ac_pwd$ac_dir_suffix
23569# for backward compatibility:
23570ac_top_builddir=$ac_top_build_prefix
23571
23572case $srcdir in
23573  .)  # We are building in place.
23574    ac_srcdir=.
23575    ac_top_srcdir=$ac_top_builddir_sub
23576    ac_abs_top_srcdir=$ac_pwd ;;
23577  [\\/]* | ?:[\\/]* )  # Absolute name.
23578    ac_srcdir=$srcdir$ac_dir_suffix;
23579    ac_top_srcdir=$srcdir
23580    ac_abs_top_srcdir=$srcdir ;;
23581  *) # Relative name.
23582    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23583    ac_top_srcdir=$ac_top_build_prefix$srcdir
23584    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23585esac
23586ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23587
23588
23589  case $ac_mode in
23590  :F)
23591  #
23592  # CONFIG_FILE
23593  #
23594
23595  case $INSTALL in
23596  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23597  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23598  esac
23599  ac_MKDIR_P=$MKDIR_P
23600  case $MKDIR_P in
23601  [\\/$]* | ?:[\\/]* ) ;;
23602  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23603  esac
23604_ACEOF
23605
23606cat >>$CONFIG_STATUS <<\_ACEOF
23607# If the template does not know about datarootdir, expand it.
23608# FIXME: This hack should be removed a few years after 2.60.
23609ac_datarootdir_hack=; ac_datarootdir_seen=
23610
23611case `sed -n '/datarootdir/ {
23612  p
23613  q
23614}
23615/@datadir@/p
23616/@docdir@/p
23617/@infodir@/p
23618/@localedir@/p
23619/@mandir@/p
23620' $ac_file_inputs` in
23621*datarootdir*) ac_datarootdir_seen=yes;;
23622*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23623  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23624echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23625_ACEOF
23626cat >>$CONFIG_STATUS <<_ACEOF
23627  ac_datarootdir_hack='
23628  s&@datadir@&$datadir&g
23629  s&@docdir@&$docdir&g
23630  s&@infodir@&$infodir&g
23631  s&@localedir@&$localedir&g
23632  s&@mandir@&$mandir&g
23633    s&\\\${datarootdir}&$datarootdir&g' ;;
23634esac
23635_ACEOF
23636
23637# Neutralize VPATH when `$srcdir' = `.'.
23638# Shell code in configure.ac might set extrasub.
23639# FIXME: do we really want to maintain this feature?
23640cat >>$CONFIG_STATUS <<_ACEOF
23641  sed "$ac_vpsub
23642$extrasub
23643_ACEOF
23644cat >>$CONFIG_STATUS <<\_ACEOF
23645:t
23646/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23647s&@configure_input@&$configure_input&;t t
23648s&@top_builddir@&$ac_top_builddir_sub&;t t
23649s&@srcdir@&$ac_srcdir&;t t
23650s&@abs_srcdir@&$ac_abs_srcdir&;t t
23651s&@top_srcdir@&$ac_top_srcdir&;t t
23652s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23653s&@builddir@&$ac_builddir&;t t
23654s&@abs_builddir@&$ac_abs_builddir&;t t
23655s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23656s&@INSTALL@&$ac_INSTALL&;t t
23657s&@MKDIR_P@&$ac_MKDIR_P&;t t
23658$ac_datarootdir_hack
23659" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23660
23661test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23662  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23663  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23664  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23665which seems to be undefined.  Please make sure it is defined." >&5
23666echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23667which seems to be undefined.  Please make sure it is defined." >&2;}
23668
23669  rm -f "$tmp/stdin"
23670  case $ac_file in
23671  -) cat "$tmp/out"; rm -f "$tmp/out";;
23672  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23673  esac
23674 ;;
23675  :H)
23676  #
23677  # CONFIG_HEADER
23678  #
23679_ACEOF
23680
23681# Transform confdefs.h into a sed script `conftest.defines', that
23682# substitutes the proper values into config.h.in to produce config.h.
23683rm -f conftest.defines conftest.tail
23684# First, append a space to every undef/define line, to ease matching.
23685echo 's/$/ /' >conftest.defines
23686# Then, protect against being on the right side of a sed subst, or in
23687# an unquoted here document, in config.status.  If some macros were
23688# called several times there might be several #defines for the same
23689# symbol, which is useless.  But do not sort them, since the last
23690# AC_DEFINE must be honored.
23691ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23692# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23693# NAME is the cpp macro being defined, VALUE is the value it is being given.
23694# PARAMS is the parameter list in the macro definition--in most cases, it's
23695# just an empty string.
23696ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
23697ac_dB='\\)[	 (].*,\\1define\\2'
23698ac_dC=' '
23699ac_dD=' ,'
23700
23701uniq confdefs.h |
23702  sed -n '
23703	t rset
23704	:rset
23705	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
23706	t ok
23707	d
23708	:ok
23709	s/[\\&,]/\\&/g
23710	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23711	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23712  ' >>conftest.defines
23713
23714# Remove the space that was appended to ease matching.
23715# Then replace #undef with comments.  This is necessary, for
23716# example, in the case of _POSIX_SOURCE, which is predefined and required
23717# on some systems where configure will not decide to define it.
23718# (The regexp can be short, since the line contains either #define or #undef.)
23719echo 's/ $//
23720s,^[	 #]*u.*,/* & */,' >>conftest.defines
23721
23722# Break up conftest.defines:
23723ac_max_sed_lines=50
23724
23725# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23726# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23727# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23728# et cetera.
23729ac_in='$ac_file_inputs'
23730ac_out='"$tmp/out1"'
23731ac_nxt='"$tmp/out2"'
23732
23733while :
23734do
23735  # Write a here document:
23736    cat >>$CONFIG_STATUS <<_ACEOF
23737    # First, check the format of the line:
23738    cat >"\$tmp/defines.sed" <<\\CEOF
23739/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
23740/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
23741b
23742:def
23743_ACEOF
23744  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23745  echo 'CEOF
23746    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23747  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23748  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23749  grep . conftest.tail >/dev/null || break
23750  rm -f conftest.defines
23751  mv conftest.tail conftest.defines
23752done
23753rm -f conftest.defines conftest.tail
23754
23755echo "ac_result=$ac_in" >>$CONFIG_STATUS
23756cat >>$CONFIG_STATUS <<\_ACEOF
23757  if test x"$ac_file" != x-; then
23758    echo "/* $configure_input  */" >"$tmp/config.h"
23759    cat "$ac_result" >>"$tmp/config.h"
23760    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23761      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23762echo "$as_me: $ac_file is unchanged" >&6;}
23763    else
23764      rm -f $ac_file
23765      mv "$tmp/config.h" $ac_file
23766    fi
23767  else
23768    echo "/* $configure_input  */"
23769    cat "$ac_result"
23770  fi
23771  rm -f "$tmp/out12"
23772# Compute $ac_file's index in $config_headers.
23773_am_arg=$ac_file
23774_am_stamp_count=1
23775for _am_header in $config_headers :; do
23776  case $_am_header in
23777    $_am_arg | $_am_arg:* )
23778      break ;;
23779    * )
23780      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23781  esac
23782done
23783echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23784$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23785	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23786	 X"$_am_arg" : 'X\(//\)$' \| \
23787	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23788echo X"$_am_arg" |
23789    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23790	    s//\1/
23791	    q
23792	  }
23793	  /^X\(\/\/\)[^/].*/{
23794	    s//\1/
23795	    q
23796	  }
23797	  /^X\(\/\/\)$/{
23798	    s//\1/
23799	    q
23800	  }
23801	  /^X\(\/\).*/{
23802	    s//\1/
23803	    q
23804	  }
23805	  s/.*/./; q'`/stamp-h$_am_stamp_count
23806 ;;
23807
23808  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23809echo "$as_me: executing $ac_file commands" >&6;}
23810 ;;
23811  esac
23812
23813
23814  case $ac_file$ac_mode in
23815    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23816  # Strip MF so we end up with the name of the file.
23817  mf=`echo "$mf" | sed -e 's/:.*$//'`
23818  # Check whether this is an Automake generated Makefile or not.
23819  # We used to match only the files named `Makefile.in', but
23820  # some people rename them; so instead we look at the file content.
23821  # Grep'ing the first line is not enough: some people post-process
23822  # each Makefile.in and add a new line on top of each file to say so.
23823  # Grep'ing the whole file is not good either: AIX grep has a line
23824  # limit of 2048, but all sed's we know have understand at least 4000.
23825  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23826    dirpart=`$as_dirname -- "$mf" ||
23827$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23828	 X"$mf" : 'X\(//\)[^/]' \| \
23829	 X"$mf" : 'X\(//\)$' \| \
23830	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23831echo X"$mf" |
23832    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23833	    s//\1/
23834	    q
23835	  }
23836	  /^X\(\/\/\)[^/].*/{
23837	    s//\1/
23838	    q
23839	  }
23840	  /^X\(\/\/\)$/{
23841	    s//\1/
23842	    q
23843	  }
23844	  /^X\(\/\).*/{
23845	    s//\1/
23846	    q
23847	  }
23848	  s/.*/./; q'`
23849  else
23850    continue
23851  fi
23852  # Extract the definition of DEPDIR, am__include, and am__quote
23853  # from the Makefile without running `make'.
23854  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23855  test -z "$DEPDIR" && continue
23856  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23857  test -z "am__include" && continue
23858  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23859  # When using ansi2knr, U may be empty or an underscore; expand it
23860  U=`sed -n 's/^U = //p' < "$mf"`
23861  # Find all dependency output files, they are included files with
23862  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23863  # simplest approach to changing $(DEPDIR) to its actual value in the
23864  # expansion.
23865  for file in `sed -n "
23866    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23867       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23868    # Make sure the directory exists.
23869    test -f "$dirpart/$file" && continue
23870    fdir=`$as_dirname -- "$file" ||
23871$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23872	 X"$file" : 'X\(//\)[^/]' \| \
23873	 X"$file" : 'X\(//\)$' \| \
23874	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23875echo X"$file" |
23876    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23877	    s//\1/
23878	    q
23879	  }
23880	  /^X\(\/\/\)[^/].*/{
23881	    s//\1/
23882	    q
23883	  }
23884	  /^X\(\/\/\)$/{
23885	    s//\1/
23886	    q
23887	  }
23888	  /^X\(\/\).*/{
23889	    s//\1/
23890	    q
23891	  }
23892	  s/.*/./; q'`
23893    { as_dir=$dirpart/$fdir
23894  case $as_dir in #(
23895  -*) as_dir=./$as_dir;;
23896  esac
23897  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23898    as_dirs=
23899    while :; do
23900      case $as_dir in #(
23901      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23902      *) as_qdir=$as_dir;;
23903      esac
23904      as_dirs="'$as_qdir' $as_dirs"
23905      as_dir=`$as_dirname -- "$as_dir" ||
23906$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23907	 X"$as_dir" : 'X\(//\)[^/]' \| \
23908	 X"$as_dir" : 'X\(//\)$' \| \
23909	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23910echo X"$as_dir" |
23911    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23912	    s//\1/
23913	    q
23914	  }
23915	  /^X\(\/\/\)[^/].*/{
23916	    s//\1/
23917	    q
23918	  }
23919	  /^X\(\/\/\)$/{
23920	    s//\1/
23921	    q
23922	  }
23923	  /^X\(\/\).*/{
23924	    s//\1/
23925	    q
23926	  }
23927	  s/.*/./; q'`
23928      test -d "$as_dir" && break
23929    done
23930    test -z "$as_dirs" || eval "mkdir $as_dirs"
23931  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23932echo "$as_me: error: cannot create directory $as_dir" >&2;}
23933   { (exit 1); exit 1; }; }; }
23934    # echo "creating $dirpart/$file"
23935    echo '# dummy' > "$dirpart/$file"
23936  done
23937done
23938 ;;
23939
23940  esac
23941done # for ac_tag
23942
23943
23944{ (exit 0); exit 0; }
23945_ACEOF
23946chmod +x $CONFIG_STATUS
23947ac_clean_files=$ac_clean_files_save
23948
23949
23950# configure is writing to config.log, and then calls config.status.
23951# config.status does its own redirection, appending to config.log.
23952# Unfortunately, on DOS this fails, as config.log is still kept open
23953# by configure, so config.status won't be able to write to it; its
23954# output is simply discarded.  So we exec the FD to /dev/null,
23955# effectively closing config.log, so it can be properly (re)opened and
23956# appended to by config.status.  When coming back to configure, we
23957# need to make the FD available again.
23958if test "$no_create" != yes; then
23959  ac_cs_success=:
23960  ac_config_status_args=
23961  test "$silent" = yes &&
23962    ac_config_status_args="$ac_config_status_args --quiet"
23963  exec 5>/dev/null
23964  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23965  exec 5>>config.log
23966  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23967  # would make configure fail if this is the last instruction.
23968  $ac_cs_success || { (exit 1); exit 1; }
23969fi
23970
23971