1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for libvorbis 1.2.3.
4#
5# Report bugs to <vorbis-dev@xiph.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44  echo "#! /bin/sh" >conf$$.sh
45  echo  "exit 0"   >>conf$$.sh
46  chmod +x conf$$.sh
47  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48    PATH_SEPARATOR=';'
49  else
50    PATH_SEPARATOR=:
51  fi
52  rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order.  Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" ""	$as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93  { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108  LC_TELEPHONE LC_TIME
109do
110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111    eval $as_var=C; export $as_var
112  else
113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114  fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135	 X"$0" : 'X\(//\)$' \| \
136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\/\)$/{
143	    s//\1/
144	    q
145	  }
146	  /^X\/\(\/\).*/{
147	    s//\1/
148	    q
149	  }
150	  s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes && 	 (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226  IFS=$as_save_IFS
227  test -z "$as_dir" && as_dir=.
228  case $as_dir in
229	 /*)
230	   for as_base in sh bash ksh sh5; do
231	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232	   done;;
233       esac
234done
235IFS=$as_save_IFS
236
237
238      for as_shell in $as_candidate_shells $SHELL; do
239	 # Try only shells that exist, to save several forks.
240	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243  emulate sh
244  NULLCMD=:
245  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246  # is contrary to our usage.  Disable this feature.
247  alias -g '${1+"$@"}'='"$@"'
248  setopt NO_GLOB_SUBST
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260  CONFIG_SHELL=$as_shell
261	       as_have_required=yes
262	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264  emulate sh
265  NULLCMD=:
266  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267  # is contrary to our usage.  Disable this feature.
268  alias -g '${1+"$@"}'='"$@"'
269  setopt NO_GLOB_SUBST
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330  as_lineno_1=$LINENO
331  as_lineno_2=$LINENO
332  test "x$as_lineno_1" != "x$as_lineno_2" &&
333  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337  break
338fi
339
340fi
341
342      done
343
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353    if test $as_have_required = no; then
354  echo This script requires a shell more modern than all the
355      echo shells that I found on your system.  Please install a
356      echo modern shell, or manually run the script under such a
357      echo shell if you do have one.
358      { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417  echo No shell found that supports shell functions.
418  echo Please tell autoconf@gnu.org about your system,
419  echo including any error possibly output before this
420  echo message
421}
422
423
424
425  as_lineno_1=$LINENO
426  as_lineno_2=$LINENO
427  test "x$as_lineno_1" != "x$as_lineno_2" &&
428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431  # uniformly replaced by the line number.  The first 'sed' inserts a
432  # line-number line after each line using $LINENO; the second 'sed'
433  # does the real work.  The second script uses 'N' to pair each
434  # line-number line with the line containing $LINENO, and appends
435  # trailing '-' during substitution so that $LINENO is not a special
436  # case at line end.
437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439  # E. McMahon (1931-1989) for sed's syntax.  :-)
440  sed -n '
441    p
442    /[$]LINENO/=
443  ' <$as_myself |
444    sed '
445      s/[$]LINENO.*/&-/
446      t lineno
447      b
448      :lineno
449      N
450      :loop
451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452      t loop
453      s/-\n.*//
454    ' >$as_me.lineno &&
455  chmod +x "$as_me.lineno" ||
456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457   { (exit 1); exit 1; }; }
458
459  # Don't try to exec as it changes $[0], causing all sort of problems
460  # (the dirname of $[0] is not the place where we might find the
461  # original and so on.  Autoconf is especially sensitive to this).
462  . "./$as_me.lineno"
463  # Exit status is that of the last command.
464  exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477  case `echo 'x\c'` in
478  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479  *)   ECHO_C='\c';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s='ln -s'
502  # ... but there are two gotchas:
503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505  # In both cases, we have to default to `cp -p'.
506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507    as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
526  if ls -dL / >/dev/null 2>&1; then
527    as_ls_L_option=L
528  else
529    as_ls_L_option=
530  fi
531  as_test_x='
532    eval sh -c '\''
533      if test -d "$1"; then
534        test -d "$1/.";
535      else
536	case $1 in
537        -*)set "./$1";;
538	esac;
539	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540	???[sx]*):;;*)false;;esac;fi
541    '\'' sh
542  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560  # Remove one level of quotation (which was required for Make).
561  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562  ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567  # Discard the --no-reexec flag, and continue.
568  shift
569elif test "X$1" = X--fallback-echo; then
570  # Avoid inline document here, it may be left over
571  :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573  # Yippee, $echo works!
574  :
575else
576  # Restart under the correct shell.
577  exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581  # used as fallback echo
582  shift
583  cat <<EOF
584$*
585EOF
586  exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599       echo_test_string=`eval $cmd` &&
600       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601    then
602      break
603    fi
604  done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609   test "X$echo_testing_string" = "X$echo_test_string"; then
610  :
611else
612  # The Solaris, AIX, and Digital Unix default echo programs unquote
613  # backslashes.  This makes it impossible to quote backslashes using
614  #   echo "$something" | sed 's/\\/\\\\/g'
615  #
616  # So, first we look for a working echo in the user's PATH.
617
618  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619  for dir in $PATH /usr/ucb; do
620    IFS="$lt_save_ifs"
621    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624       test "X$echo_testing_string" = "X$echo_test_string"; then
625      echo="$dir/echo"
626      break
627    fi
628  done
629  IFS="$lt_save_ifs"
630
631  if test "X$echo" = Xecho; then
632    # We didn't find a better echo, so look for alternatives.
633    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635       test "X$echo_testing_string" = "X$echo_test_string"; then
636      # This shell has a builtin print -r that does the trick.
637      echo='print -r'
638    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639	 test "X$CONFIG_SHELL" != X/bin/ksh; then
640      # If we have ksh, try running configure again with it.
641      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642      export ORIGINAL_CONFIG_SHELL
643      CONFIG_SHELL=/bin/ksh
644      export CONFIG_SHELL
645      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646    else
647      # Try using printf.
648      echo='printf %s\n'
649      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651	 test "X$echo_testing_string" = "X$echo_test_string"; then
652	# Cool, printf works
653	:
654      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655	   test "X$echo_testing_string" = 'X\t' &&
656	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657	   test "X$echo_testing_string" = "X$echo_test_string"; then
658	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659	export CONFIG_SHELL
660	SHELL="$CONFIG_SHELL"
661	export SHELL
662	echo="$CONFIG_SHELL $0 --fallback-echo"
663      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664	   test "X$echo_testing_string" = 'X\t' &&
665	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666	   test "X$echo_testing_string" = "X$echo_test_string"; then
667	echo="$CONFIG_SHELL $0 --fallback-echo"
668      else
669	# maybe with a smaller string...
670	prev=:
671
672	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674	  then
675	    break
676	  fi
677	  prev="$cmd"
678	done
679
680	if test "$prev" != 'sed 50q "$0"'; then
681	  echo_test_string=`eval $prev`
682	  export echo_test_string
683	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684	else
685	  # Oops.  We lost completely, so just stick with echo.
686	  echo=echo
687	fi
688      fi
689    fi
690  fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
708exec 7<&0 </dev/null 6>&1
709
710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
719ac_clean_files=
720ac_config_libobj_dir=.
721LIBOBJS=
722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
728# Identity of this package.
729PACKAGE_NAME='libvorbis'
730PACKAGE_TARNAME='libvorbis'
731PACKAGE_VERSION='1.2.3'
732PACKAGE_STRING='libvorbis 1.2.3'
733PACKAGE_BUGREPORT='vorbis-dev@xiph.org'
734
735ac_unique_file="lib/mdct.c"
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
739#ifdef HAVE_SYS_TYPES_H
740# include <sys/types.h>
741#endif
742#ifdef HAVE_SYS_STAT_H
743# include <sys/stat.h>
744#endif
745#ifdef STDC_HEADERS
746# include <stdlib.h>
747# include <stddef.h>
748#else
749# ifdef HAVE_STDLIB_H
750#  include <stdlib.h>
751# endif
752#endif
753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755#  include <memory.h>
756# endif
757# include <string.h>
758#endif
759#ifdef HAVE_STRINGS_H
760# include <strings.h>
761#endif
762#ifdef HAVE_INTTYPES_H
763# include <inttypes.h>
764#endif
765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
769# include <unistd.h>
770#endif"
771
772ac_subst_vars='SHELL
773PATH_SEPARATOR
774PACKAGE_NAME
775PACKAGE_TARNAME
776PACKAGE_VERSION
777PACKAGE_STRING
778PACKAGE_BUGREPORT
779exec_prefix
780prefix
781program_transform_name
782bindir
783sbindir
784libexecdir
785datarootdir
786datadir
787sysconfdir
788sharedstatedir
789localstatedir
790includedir
791oldincludedir
792docdir
793infodir
794htmldir
795dvidir
796pdfdir
797psdir
798libdir
799localedir
800mandir
801DEFS
802ECHO_C
803ECHO_N
804ECHO_T
805LIBS
806build_alias
807host_alias
808target_alias
809build
810build_cpu
811build_vendor
812build_os
813host
814host_cpu
815host_vendor
816host_os
817target
818target_cpu
819target_vendor
820target_os
821INSTALL_PROGRAM
822INSTALL_SCRIPT
823INSTALL_DATA
824am__isrc
825CYGPATH_W
826PACKAGE
827VERSION
828ACLOCAL
829AUTOCONF
830AUTOMAKE
831AUTOHEADER
832MAKEINFO
833install_sh
834STRIP
835INSTALL_STRIP_PROGRAM
836mkdir_p
837AWK
838SET_MAKE
839am__leading_dot
840AMTAR
841am__tar
842am__untar
843ACLOCAL_AMFLAGS
844V_LIB_CURRENT
845V_LIB_REVISION
846V_LIB_AGE
847VF_LIB_CURRENT
848VF_LIB_REVISION
849VF_LIB_AGE
850VE_LIB_CURRENT
851VE_LIB_REVISION
852VE_LIB_AGE
853CC
854CFLAGS
855LDFLAGS
856CPPFLAGS
857ac_ct_CC
858EXEEXT
859OBJEXT
860DEPDIR
861am__include
862am__quote
863AMDEP_TRUE
864AMDEP_FALSE
865AMDEPBACKSLASH
866CCDEPMODE
867am__fastdepCC_TRUE
868am__fastdepCC_FALSE
869CPP
870SED
871GREP
872EGREP
873LN_S
874ECHO
875AR
876RANLIB
877DSYMUTIL
878NMEDIT
879DLLTOOL
880AS
881OBJDUMP
882CXX
883CXXFLAGS
884ac_ct_CXX
885CXXDEPMODE
886am__fastdepCXX_TRUE
887am__fastdepCXX_FALSE
888CXXCPP
889F77
890FFLAGS
891ac_ct_F77
892LIBTOOL
893PDFLATEX
894HTLATEX
895BUILD_DOCS_TRUE
896BUILD_DOCS_FALSE
897PKG_CONFIG
898OGG_CFLAGS
899OGG_LIBS
900ALLOCA
901LIBOBJS
902VORBIS_LIBS
903DEBUG
904PROFILE
905pthread_lib
906LIBTOOL_DEPS
907LTLIBOBJS'
908ac_subst_files=''
909      ac_precious_vars='build_alias
910host_alias
911target_alias
912CC
913CFLAGS
914LDFLAGS
915LIBS
916CPPFLAGS
917CPP
918CXX
919CXXFLAGS
920CCC
921CXXCPP
922F77
923FFLAGS
924PKG_CONFIG
925OGG_CFLAGS
926OGG_LIBS'
927
928
929# Initialize some variables set by options.
930ac_init_help=
931ac_init_version=false
932# The variables have the same names as the options, with
933# dashes changed to underlines.
934cache_file=/dev/null
935exec_prefix=NONE
936no_create=
937no_recursion=
938prefix=NONE
939program_prefix=NONE
940program_suffix=NONE
941program_transform_name=s,x,x,
942silent=
943site=
944srcdir=
945verbose=
946x_includes=NONE
947x_libraries=NONE
948
949# Installation directory options.
950# These are left unexpanded so users can "make install exec_prefix=/foo"
951# and all the variables that are supposed to be based on exec_prefix
952# by default will actually change.
953# Use braces instead of parens because sh, perl, etc. also accept them.
954# (The list follows the same order as the GNU Coding Standards.)
955bindir='${exec_prefix}/bin'
956sbindir='${exec_prefix}/sbin'
957libexecdir='${exec_prefix}/libexec'
958datarootdir='${prefix}/share'
959datadir='${datarootdir}'
960sysconfdir='${prefix}/etc'
961sharedstatedir='${prefix}/com'
962localstatedir='${prefix}/var'
963includedir='${prefix}/include'
964oldincludedir='/usr/include'
965docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
966infodir='${datarootdir}/info'
967htmldir='${docdir}'
968dvidir='${docdir}'
969pdfdir='${docdir}'
970psdir='${docdir}'
971libdir='${exec_prefix}/lib'
972localedir='${datarootdir}/locale'
973mandir='${datarootdir}/man'
974
975ac_prev=
976ac_dashdash=
977for ac_option
978do
979  # If the previous option needs an argument, assign it.
980  if test -n "$ac_prev"; then
981    eval $ac_prev=\$ac_option
982    ac_prev=
983    continue
984  fi
985
986  case $ac_option in
987  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
988  *)	ac_optarg=yes ;;
989  esac
990
991  # Accept the important Cygnus configure options, so we can diagnose typos.
992
993  case $ac_dashdash$ac_option in
994  --)
995    ac_dashdash=yes ;;
996
997  -bindir | --bindir | --bindi | --bind | --bin | --bi)
998    ac_prev=bindir ;;
999  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1000    bindir=$ac_optarg ;;
1001
1002  -build | --build | --buil | --bui | --bu)
1003    ac_prev=build_alias ;;
1004  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1005    build_alias=$ac_optarg ;;
1006
1007  -cache-file | --cache-file | --cache-fil | --cache-fi \
1008  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1009    ac_prev=cache_file ;;
1010  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1011  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1012    cache_file=$ac_optarg ;;
1013
1014  --config-cache | -C)
1015    cache_file=config.cache ;;
1016
1017  -datadir | --datadir | --datadi | --datad)
1018    ac_prev=datadir ;;
1019  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1020    datadir=$ac_optarg ;;
1021
1022  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1023  | --dataroo | --dataro | --datar)
1024    ac_prev=datarootdir ;;
1025  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1026  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1027    datarootdir=$ac_optarg ;;
1028
1029  -disable-* | --disable-*)
1030    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1031    # Reject names that are not valid shell variable names.
1032    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1033      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1034   { (exit 1); exit 1; }; }
1035    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1036    eval enable_$ac_feature=no ;;
1037
1038  -docdir | --docdir | --docdi | --doc | --do)
1039    ac_prev=docdir ;;
1040  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1041    docdir=$ac_optarg ;;
1042
1043  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1044    ac_prev=dvidir ;;
1045  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1046    dvidir=$ac_optarg ;;
1047
1048  -enable-* | --enable-*)
1049    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1050    # Reject names that are not valid shell variable names.
1051    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1052      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1053   { (exit 1); exit 1; }; }
1054    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1055    eval enable_$ac_feature=\$ac_optarg ;;
1056
1057  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059  | --exec | --exe | --ex)
1060    ac_prev=exec_prefix ;;
1061  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063  | --exec=* | --exe=* | --ex=*)
1064    exec_prefix=$ac_optarg ;;
1065
1066  -gas | --gas | --ga | --g)
1067    # Obsolete; use --with-gas.
1068    with_gas=yes ;;
1069
1070  -help | --help | --hel | --he | -h)
1071    ac_init_help=long ;;
1072  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073    ac_init_help=recursive ;;
1074  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075    ac_init_help=short ;;
1076
1077  -host | --host | --hos | --ho)
1078    ac_prev=host_alias ;;
1079  -host=* | --host=* | --hos=* | --ho=*)
1080    host_alias=$ac_optarg ;;
1081
1082  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083    ac_prev=htmldir ;;
1084  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085  | --ht=*)
1086    htmldir=$ac_optarg ;;
1087
1088  -includedir | --includedir | --includedi | --included | --include \
1089  | --includ | --inclu | --incl | --inc)
1090    ac_prev=includedir ;;
1091  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092  | --includ=* | --inclu=* | --incl=* | --inc=*)
1093    includedir=$ac_optarg ;;
1094
1095  -infodir | --infodir | --infodi | --infod | --info | --inf)
1096    ac_prev=infodir ;;
1097  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1098    infodir=$ac_optarg ;;
1099
1100  -libdir | --libdir | --libdi | --libd)
1101    ac_prev=libdir ;;
1102  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1103    libdir=$ac_optarg ;;
1104
1105  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106  | --libexe | --libex | --libe)
1107    ac_prev=libexecdir ;;
1108  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109  | --libexe=* | --libex=* | --libe=*)
1110    libexecdir=$ac_optarg ;;
1111
1112  -localedir | --localedir | --localedi | --localed | --locale)
1113    ac_prev=localedir ;;
1114  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115    localedir=$ac_optarg ;;
1116
1117  -localstatedir | --localstatedir | --localstatedi | --localstated \
1118  | --localstate | --localstat | --localsta | --localst | --locals)
1119    ac_prev=localstatedir ;;
1120  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1121  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1122    localstatedir=$ac_optarg ;;
1123
1124  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125    ac_prev=mandir ;;
1126  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1127    mandir=$ac_optarg ;;
1128
1129  -nfp | --nfp | --nf)
1130    # Obsolete; use --without-fp.
1131    with_fp=no ;;
1132
1133  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1134  | --no-cr | --no-c | -n)
1135    no_create=yes ;;
1136
1137  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139    no_recursion=yes ;;
1140
1141  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143  | --oldin | --oldi | --old | --ol | --o)
1144    ac_prev=oldincludedir ;;
1145  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1148    oldincludedir=$ac_optarg ;;
1149
1150  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151    ac_prev=prefix ;;
1152  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1153    prefix=$ac_optarg ;;
1154
1155  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156  | --program-pre | --program-pr | --program-p)
1157    ac_prev=program_prefix ;;
1158  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1160    program_prefix=$ac_optarg ;;
1161
1162  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163  | --program-suf | --program-su | --program-s)
1164    ac_prev=program_suffix ;;
1165  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1167    program_suffix=$ac_optarg ;;
1168
1169  -program-transform-name | --program-transform-name \
1170  | --program-transform-nam | --program-transform-na \
1171  | --program-transform-n | --program-transform- \
1172  | --program-transform | --program-transfor \
1173  | --program-transfo | --program-transf \
1174  | --program-trans | --program-tran \
1175  | --progr-tra | --program-tr | --program-t)
1176    ac_prev=program_transform_name ;;
1177  -program-transform-name=* | --program-transform-name=* \
1178  | --program-transform-nam=* | --program-transform-na=* \
1179  | --program-transform-n=* | --program-transform-=* \
1180  | --program-transform=* | --program-transfor=* \
1181  | --program-transfo=* | --program-transf=* \
1182  | --program-trans=* | --program-tran=* \
1183  | --progr-tra=* | --program-tr=* | --program-t=*)
1184    program_transform_name=$ac_optarg ;;
1185
1186  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187    ac_prev=pdfdir ;;
1188  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189    pdfdir=$ac_optarg ;;
1190
1191  -psdir | --psdir | --psdi | --psd | --ps)
1192    ac_prev=psdir ;;
1193  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194    psdir=$ac_optarg ;;
1195
1196  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197  | -silent | --silent | --silen | --sile | --sil)
1198    silent=yes ;;
1199
1200  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1201    ac_prev=sbindir ;;
1202  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1203  | --sbi=* | --sb=*)
1204    sbindir=$ac_optarg ;;
1205
1206  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1207  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1208  | --sharedst | --shareds | --shared | --share | --shar \
1209  | --sha | --sh)
1210    ac_prev=sharedstatedir ;;
1211  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1212  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1213  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1214  | --sha=* | --sh=*)
1215    sharedstatedir=$ac_optarg ;;
1216
1217  -site | --site | --sit)
1218    ac_prev=site ;;
1219  -site=* | --site=* | --sit=*)
1220    site=$ac_optarg ;;
1221
1222  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1223    ac_prev=srcdir ;;
1224  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1225    srcdir=$ac_optarg ;;
1226
1227  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1228  | --syscon | --sysco | --sysc | --sys | --sy)
1229    ac_prev=sysconfdir ;;
1230  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1231  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1232    sysconfdir=$ac_optarg ;;
1233
1234  -target | --target | --targe | --targ | --tar | --ta | --t)
1235    ac_prev=target_alias ;;
1236  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1237    target_alias=$ac_optarg ;;
1238
1239  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1240    verbose=yes ;;
1241
1242  -version | --version | --versio | --versi | --vers | -V)
1243    ac_init_version=: ;;
1244
1245  -with-* | --with-*)
1246    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1247    # Reject names that are not valid shell variable names.
1248    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249      { echo "$as_me: error: invalid package name: $ac_package" >&2
1250   { (exit 1); exit 1; }; }
1251    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1252    eval with_$ac_package=\$ac_optarg ;;
1253
1254  -without-* | --without-*)
1255    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256    # Reject names that are not valid shell variable names.
1257    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258      { echo "$as_me: error: invalid package name: $ac_package" >&2
1259   { (exit 1); exit 1; }; }
1260    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1261    eval with_$ac_package=no ;;
1262
1263  --x)
1264    # Obsolete; use --with-x.
1265    with_x=yes ;;
1266
1267  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1268  | --x-incl | --x-inc | --x-in | --x-i)
1269    ac_prev=x_includes ;;
1270  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1271  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1272    x_includes=$ac_optarg ;;
1273
1274  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1275  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1276    ac_prev=x_libraries ;;
1277  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1278  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1279    x_libraries=$ac_optarg ;;
1280
1281  -*) { echo "$as_me: error: unrecognized option: $ac_option
1282Try \`$0 --help' for more information." >&2
1283   { (exit 1); exit 1; }; }
1284    ;;
1285
1286  *=*)
1287    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288    # Reject names that are not valid shell variable names.
1289    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1290      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1291   { (exit 1); exit 1; }; }
1292    eval $ac_envvar=\$ac_optarg
1293    export $ac_envvar ;;
1294
1295  *)
1296    # FIXME: should be removed in autoconf 3.0.
1297    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1298    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1299      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1300    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1301    ;;
1302
1303  esac
1304done
1305
1306if test -n "$ac_prev"; then
1307  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1308  { echo "$as_me: error: missing argument to $ac_option" >&2
1309   { (exit 1); exit 1; }; }
1310fi
1311
1312# Be sure to have absolute directory names.
1313for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314		datadir sysconfdir sharedstatedir localstatedir includedir \
1315		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316		libdir localedir mandir
1317do
1318  eval ac_val=\$$ac_var
1319  case $ac_val in
1320    [\\/$]* | ?:[\\/]* )  continue;;
1321    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322  esac
1323  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1324   { (exit 1); exit 1; }; }
1325done
1326
1327# There might be people who depend on the old broken behavior: `$host'
1328# used to hold the argument of --host etc.
1329# FIXME: To remove some day.
1330build=$build_alias
1331host=$host_alias
1332target=$target_alias
1333
1334# FIXME: To remove some day.
1335if test "x$host_alias" != x; then
1336  if test "x$build_alias" = x; then
1337    cross_compiling=maybe
1338    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1339    If a cross compiler is detected then cross compile mode will be used." >&2
1340  elif test "x$build_alias" != "x$host_alias"; then
1341    cross_compiling=yes
1342  fi
1343fi
1344
1345ac_tool_prefix=
1346test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347
1348test "$silent" = yes && exec 6>/dev/null
1349
1350
1351ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352ac_ls_di=`ls -di .` &&
1353ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354  { echo "$as_me: error: Working directory cannot be determined" >&2
1355   { (exit 1); exit 1; }; }
1356test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357  { echo "$as_me: error: pwd does not report name of working directory" >&2
1358   { (exit 1); exit 1; }; }
1359
1360
1361# Find the source files, if location was not specified.
1362if test -z "$srcdir"; then
1363  ac_srcdir_defaulted=yes
1364  # Try the directory containing this script, then the parent directory.
1365  ac_confdir=`$as_dirname -- "$0" ||
1366$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367	 X"$0" : 'X\(//\)[^/]' \| \
1368	 X"$0" : 'X\(//\)$' \| \
1369	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1370echo X"$0" |
1371    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372	    s//\1/
1373	    q
1374	  }
1375	  /^X\(\/\/\)[^/].*/{
1376	    s//\1/
1377	    q
1378	  }
1379	  /^X\(\/\/\)$/{
1380	    s//\1/
1381	    q
1382	  }
1383	  /^X\(\/\).*/{
1384	    s//\1/
1385	    q
1386	  }
1387	  s/.*/./; q'`
1388  srcdir=$ac_confdir
1389  if test ! -r "$srcdir/$ac_unique_file"; then
1390    srcdir=..
1391  fi
1392else
1393  ac_srcdir_defaulted=no
1394fi
1395if test ! -r "$srcdir/$ac_unique_file"; then
1396  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1398   { (exit 1); exit 1; }; }
1399fi
1400ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401ac_abs_confdir=`(
1402	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1403   { (exit 1); exit 1; }; }
1404	pwd)`
1405# When building in place, set srcdir=.
1406if test "$ac_abs_confdir" = "$ac_pwd"; then
1407  srcdir=.
1408fi
1409# Remove unnecessary trailing slashes from srcdir.
1410# Double slashes in file names in object file debugging info
1411# mess up M-x gdb in Emacs.
1412case $srcdir in
1413*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414esac
1415for ac_var in $ac_precious_vars; do
1416  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1417  eval ac_env_${ac_var}_value=\$${ac_var}
1418  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1419  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1420done
1421
1422#
1423# Report the --help message.
1424#
1425if test "$ac_init_help" = "long"; then
1426  # Omit some internal or obsolete options to make the list less imposing.
1427  # This message is too long to be a string in the A/UX 3.1 sh.
1428  cat <<_ACEOF
1429\`configure' configures libvorbis 1.2.3 to adapt to many kinds of systems.
1430
1431Usage: $0 [OPTION]... [VAR=VALUE]...
1432
1433To assign environment variables (e.g., CC, CFLAGS...), specify them as
1434VAR=VALUE.  See below for descriptions of some of the useful variables.
1435
1436Defaults for the options are specified in brackets.
1437
1438Configuration:
1439  -h, --help              display this help and exit
1440      --help=short        display options specific to this package
1441      --help=recursive    display the short help of all the included packages
1442  -V, --version           display version information and exit
1443  -q, --quiet, --silent   do not print \`checking...' messages
1444      --cache-file=FILE   cache test results in FILE [disabled]
1445  -C, --config-cache      alias for \`--cache-file=config.cache'
1446  -n, --no-create         do not create output files
1447      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1448
1449Installation directories:
1450  --prefix=PREFIX         install architecture-independent files in PREFIX
1451			  [$ac_default_prefix]
1452  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1453			  [PREFIX]
1454
1455By default, \`make install' will install all the files in
1456\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1457an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1458for instance \`--prefix=\$HOME'.
1459
1460For better control, use the options below.
1461
1462Fine tuning of the installation directories:
1463  --bindir=DIR           user executables [EPREFIX/bin]
1464  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1465  --libexecdir=DIR       program executables [EPREFIX/libexec]
1466  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1467  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1468  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1469  --libdir=DIR           object code libraries [EPREFIX/lib]
1470  --includedir=DIR       C header files [PREFIX/include]
1471  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1472  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1473  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1474  --infodir=DIR          info documentation [DATAROOTDIR/info]
1475  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1476  --mandir=DIR           man documentation [DATAROOTDIR/man]
1477  --docdir=DIR           documentation root [DATAROOTDIR/doc/libvorbis]
1478  --htmldir=DIR          html documentation [DOCDIR]
1479  --dvidir=DIR           dvi documentation [DOCDIR]
1480  --pdfdir=DIR           pdf documentation [DOCDIR]
1481  --psdir=DIR            ps documentation [DOCDIR]
1482_ACEOF
1483
1484  cat <<\_ACEOF
1485
1486Program names:
1487  --program-prefix=PREFIX            prepend PREFIX to installed program names
1488  --program-suffix=SUFFIX            append SUFFIX to installed program names
1489  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1490
1491System types:
1492  --build=BUILD     configure for building on BUILD [guessed]
1493  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1494  --target=TARGET   configure for building compilers for TARGET [HOST]
1495_ACEOF
1496fi
1497
1498if test -n "$ac_init_help"; then
1499  case $ac_init_help in
1500     short | recursive ) echo "Configuration of libvorbis 1.2.3:";;
1501   esac
1502  cat <<\_ACEOF
1503
1504Optional Features:
1505  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1506  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1507  --disable-dependency-tracking  speeds up one-time build
1508  --enable-dependency-tracking   do not reject slow dependency extractors
1509  --enable-shared[=PKGS]  build shared libraries [default=yes]
1510  --enable-static[=PKGS]  build static libraries [default=yes]
1511  --enable-fast-install[=PKGS]
1512                          optimize for fast installation [default=yes]
1513  --disable-libtool-lock  avoid locking (might break parallel builds)
1514  --enable-docs           build the documentation
1515  --disable-oggtest       Do not try to compile and run a test Ogg program
1516
1517Optional Packages:
1518  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1519  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1520  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1521  --with-pic              try to use only PIC/non-PIC objects [default=use
1522                          both]
1523  --with-tags[=TAGS]      include additional configurations [automatic]
1524  --with-ogg=PFX          Prefix where libogg is installed (optional)
1525  --with-ogg-libraries=DIR
1526                          Directory where libogg library is installed
1527                          (optional)
1528  --with-ogg-includes=DIR Directory where libogg header files are installed
1529                          (optional)
1530
1531Some influential environment variables:
1532  CC          C compiler command
1533  CFLAGS      C compiler flags
1534  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1535              nonstandard directory <lib dir>
1536  LIBS        libraries to pass to the linker, e.g. -l<library>
1537  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1538              you have headers in a nonstandard directory <include dir>
1539  CPP         C preprocessor
1540  CXX         C++ compiler command
1541  CXXFLAGS    C++ compiler flags
1542  CXXCPP      C++ preprocessor
1543  F77         Fortran 77 compiler command
1544  FFLAGS      Fortran 77 compiler flags
1545  PKG_CONFIG  path to pkg-config utility
1546  OGG_CFLAGS  C compiler flags for OGG, overriding pkg-config
1547  OGG_LIBS    linker flags for OGG, overriding pkg-config
1548
1549Use these variables to override the choices made by `configure' or to help
1550it to find libraries and programs with nonstandard names/locations.
1551
1552Report bugs to <vorbis-dev@xiph.org>.
1553_ACEOF
1554ac_status=$?
1555fi
1556
1557if test "$ac_init_help" = "recursive"; then
1558  # If there are subdirs, report their specific --help.
1559  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560    test -d "$ac_dir" || continue
1561    ac_builddir=.
1562
1563case "$ac_dir" in
1564.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565*)
1566  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1567  # A ".." for each directory in $ac_dir_suffix.
1568  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1569  case $ac_top_builddir_sub in
1570  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1572  esac ;;
1573esac
1574ac_abs_top_builddir=$ac_pwd
1575ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576# for backward compatibility:
1577ac_top_builddir=$ac_top_build_prefix
1578
1579case $srcdir in
1580  .)  # We are building in place.
1581    ac_srcdir=.
1582    ac_top_srcdir=$ac_top_builddir_sub
1583    ac_abs_top_srcdir=$ac_pwd ;;
1584  [\\/]* | ?:[\\/]* )  # Absolute name.
1585    ac_srcdir=$srcdir$ac_dir_suffix;
1586    ac_top_srcdir=$srcdir
1587    ac_abs_top_srcdir=$srcdir ;;
1588  *) # Relative name.
1589    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590    ac_top_srcdir=$ac_top_build_prefix$srcdir
1591    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592esac
1593ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594
1595    cd "$ac_dir" || { ac_status=$?; continue; }
1596    # Check for guested configure.
1597    if test -f "$ac_srcdir/configure.gnu"; then
1598      echo &&
1599      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600    elif test -f "$ac_srcdir/configure"; then
1601      echo &&
1602      $SHELL "$ac_srcdir/configure" --help=recursive
1603    else
1604      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605    fi || ac_status=$?
1606    cd "$ac_pwd" || { ac_status=$?; break; }
1607  done
1608fi
1609
1610test -n "$ac_init_help" && exit $ac_status
1611if $ac_init_version; then
1612  cat <<\_ACEOF
1613libvorbis configure 1.2.3
1614generated by GNU Autoconf 2.61
1615
1616Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16172002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1618This configure script is free software; the Free Software Foundation
1619gives unlimited permission to copy, distribute and modify it.
1620_ACEOF
1621  exit
1622fi
1623cat >config.log <<_ACEOF
1624This file contains any messages produced by compilers while
1625running configure, to aid debugging if configure makes a mistake.
1626
1627It was created by libvorbis $as_me 1.2.3, which was
1628generated by GNU Autoconf 2.61.  Invocation command line was
1629
1630  $ $0 $@
1631
1632_ACEOF
1633exec 5>>config.log
1634{
1635cat <<_ASUNAME
1636## --------- ##
1637## Platform. ##
1638## --------- ##
1639
1640hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1641uname -m = `(uname -m) 2>/dev/null || echo unknown`
1642uname -r = `(uname -r) 2>/dev/null || echo unknown`
1643uname -s = `(uname -s) 2>/dev/null || echo unknown`
1644uname -v = `(uname -v) 2>/dev/null || echo unknown`
1645
1646/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1647/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1648
1649/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1650/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1651/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1652/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1653/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1654/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1655/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1656
1657_ASUNAME
1658
1659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660for as_dir in $PATH
1661do
1662  IFS=$as_save_IFS
1663  test -z "$as_dir" && as_dir=.
1664  echo "PATH: $as_dir"
1665done
1666IFS=$as_save_IFS
1667
1668} >&5
1669
1670cat >&5 <<_ACEOF
1671
1672
1673## ----------- ##
1674## Core tests. ##
1675## ----------- ##
1676
1677_ACEOF
1678
1679
1680# Keep a trace of the command line.
1681# Strip out --no-create and --no-recursion so they do not pile up.
1682# Strip out --silent because we don't want to record it for future runs.
1683# Also quote any args containing shell meta-characters.
1684# Make two passes to allow for proper duplicate-argument suppression.
1685ac_configure_args=
1686ac_configure_args0=
1687ac_configure_args1=
1688ac_must_keep_next=false
1689for ac_pass in 1 2
1690do
1691  for ac_arg
1692  do
1693    case $ac_arg in
1694    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1695    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1696    | -silent | --silent | --silen | --sile | --sil)
1697      continue ;;
1698    *\'*)
1699      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1700    esac
1701    case $ac_pass in
1702    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1703    2)
1704      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1705      if test $ac_must_keep_next = true; then
1706	ac_must_keep_next=false # Got value, back to normal.
1707      else
1708	case $ac_arg in
1709	  *=* | --config-cache | -C | -disable-* | --disable-* \
1710	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1711	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1712	  | -with-* | --with-* | -without-* | --without-* | --x)
1713	    case "$ac_configure_args0 " in
1714	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1715	    esac
1716	    ;;
1717	  -* ) ac_must_keep_next=true ;;
1718	esac
1719      fi
1720      ac_configure_args="$ac_configure_args '$ac_arg'"
1721      ;;
1722    esac
1723  done
1724done
1725$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1726$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1727
1728# When interrupted or exit'd, cleanup temporary files, and complete
1729# config.log.  We remove comments because anyway the quotes in there
1730# would cause problems or look ugly.
1731# WARNING: Use '\'' to represent an apostrophe within the trap.
1732# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1733trap 'exit_status=$?
1734  # Save into config.log some information that might help in debugging.
1735  {
1736    echo
1737
1738    cat <<\_ASBOX
1739## ---------------- ##
1740## Cache variables. ##
1741## ---------------- ##
1742_ASBOX
1743    echo
1744    # The following way of writing the cache mishandles newlines in values,
1745(
1746  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1747    eval ac_val=\$$ac_var
1748    case $ac_val in #(
1749    *${as_nl}*)
1750      case $ac_var in #(
1751      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1752echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1753      esac
1754      case $ac_var in #(
1755      _ | IFS | as_nl) ;; #(
1756      *) $as_unset $ac_var ;;
1757      esac ;;
1758    esac
1759  done
1760  (set) 2>&1 |
1761    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1762    *${as_nl}ac_space=\ *)
1763      sed -n \
1764	"s/'\''/'\''\\\\'\'''\''/g;
1765	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1766      ;; #(
1767    *)
1768      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1769      ;;
1770    esac |
1771    sort
1772)
1773    echo
1774
1775    cat <<\_ASBOX
1776## ----------------- ##
1777## Output variables. ##
1778## ----------------- ##
1779_ASBOX
1780    echo
1781    for ac_var in $ac_subst_vars
1782    do
1783      eval ac_val=\$$ac_var
1784      case $ac_val in
1785      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1786      esac
1787      echo "$ac_var='\''$ac_val'\''"
1788    done | sort
1789    echo
1790
1791    if test -n "$ac_subst_files"; then
1792      cat <<\_ASBOX
1793## ------------------- ##
1794## File substitutions. ##
1795## ------------------- ##
1796_ASBOX
1797      echo
1798      for ac_var in $ac_subst_files
1799      do
1800	eval ac_val=\$$ac_var
1801	case $ac_val in
1802	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1803	esac
1804	echo "$ac_var='\''$ac_val'\''"
1805      done | sort
1806      echo
1807    fi
1808
1809    if test -s confdefs.h; then
1810      cat <<\_ASBOX
1811## ----------- ##
1812## confdefs.h. ##
1813## ----------- ##
1814_ASBOX
1815      echo
1816      cat confdefs.h
1817      echo
1818    fi
1819    test "$ac_signal" != 0 &&
1820      echo "$as_me: caught signal $ac_signal"
1821    echo "$as_me: exit $exit_status"
1822  } >&5
1823  rm -f core *.core core.conftest.* &&
1824    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1825    exit $exit_status
1826' 0
1827for ac_signal in 1 2 13 15; do
1828  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1829done
1830ac_signal=0
1831
1832# confdefs.h avoids OS command line length limits that DEFS can exceed.
1833rm -f -r conftest* confdefs.h
1834
1835# Predefined preprocessor variables.
1836
1837cat >>confdefs.h <<_ACEOF
1838#define PACKAGE_NAME "$PACKAGE_NAME"
1839_ACEOF
1840
1841
1842cat >>confdefs.h <<_ACEOF
1843#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1844_ACEOF
1845
1846
1847cat >>confdefs.h <<_ACEOF
1848#define PACKAGE_VERSION "$PACKAGE_VERSION"
1849_ACEOF
1850
1851
1852cat >>confdefs.h <<_ACEOF
1853#define PACKAGE_STRING "$PACKAGE_STRING"
1854_ACEOF
1855
1856
1857cat >>confdefs.h <<_ACEOF
1858#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1859_ACEOF
1860
1861
1862# Let the site file select an alternate cache file if it wants to.
1863# Prefer explicitly selected file to automatically selected ones.
1864if test -n "$CONFIG_SITE"; then
1865  set x "$CONFIG_SITE"
1866elif test "x$prefix" != xNONE; then
1867  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1868else
1869  set x "$ac_default_prefix/share/config.site" \
1870	"$ac_default_prefix/etc/config.site"
1871fi
1872shift
1873for ac_site_file
1874do
1875  if test -r "$ac_site_file"; then
1876    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1877echo "$as_me: loading site script $ac_site_file" >&6;}
1878    sed 's/^/| /' "$ac_site_file" >&5
1879    . "$ac_site_file"
1880  fi
1881done
1882
1883if test -r "$cache_file"; then
1884  # Some versions of bash will fail to source /dev/null (special
1885  # files actually), so we avoid doing that.
1886  if test -f "$cache_file"; then
1887    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1888echo "$as_me: loading cache $cache_file" >&6;}
1889    case $cache_file in
1890      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1891      *)                      . "./$cache_file";;
1892    esac
1893  fi
1894else
1895  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1896echo "$as_me: creating cache $cache_file" >&6;}
1897  >$cache_file
1898fi
1899
1900# Check that the precious variables saved in the cache have kept the same
1901# value.
1902ac_cache_corrupted=false
1903for ac_var in $ac_precious_vars; do
1904  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1905  eval ac_new_set=\$ac_env_${ac_var}_set
1906  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1907  eval ac_new_val=\$ac_env_${ac_var}_value
1908  case $ac_old_set,$ac_new_set in
1909    set,)
1910      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1911echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1912      ac_cache_corrupted=: ;;
1913    ,set)
1914      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1915echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1916      ac_cache_corrupted=: ;;
1917    ,);;
1918    *)
1919      if test "x$ac_old_val" != "x$ac_new_val"; then
1920	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1921echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1922	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1923echo "$as_me:   former value:  $ac_old_val" >&2;}
1924	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1925echo "$as_me:   current value: $ac_new_val" >&2;}
1926	ac_cache_corrupted=:
1927      fi;;
1928  esac
1929  # Pass precious variables to config.status.
1930  if test "$ac_new_set" = set; then
1931    case $ac_new_val in
1932    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1933    *) ac_arg=$ac_var=$ac_new_val ;;
1934    esac
1935    case " $ac_configure_args " in
1936      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1937      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1938    esac
1939  fi
1940done
1941if $ac_cache_corrupted; then
1942  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1943echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1944  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1945echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1946   { (exit 1); exit 1; }; }
1947fi
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973ac_ext=c
1974ac_cpp='$CPP $CPPFLAGS'
1975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977ac_compiler_gnu=$ac_cv_c_compiler_gnu
1978
1979
1980
1981
1982
1983ac_aux_dir=
1984for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1985  if test -f "$ac_dir/install-sh"; then
1986    ac_aux_dir=$ac_dir
1987    ac_install_sh="$ac_aux_dir/install-sh -c"
1988    break
1989  elif test -f "$ac_dir/install.sh"; then
1990    ac_aux_dir=$ac_dir
1991    ac_install_sh="$ac_aux_dir/install.sh -c"
1992    break
1993  elif test -f "$ac_dir/shtool"; then
1994    ac_aux_dir=$ac_dir
1995    ac_install_sh="$ac_aux_dir/shtool install -c"
1996    break
1997  fi
1998done
1999if test -z "$ac_aux_dir"; then
2000  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2001echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2002   { (exit 1); exit 1; }; }
2003fi
2004
2005# These three variables are undocumented and unsupported,
2006# and are intended to be withdrawn in a future Autoconf release.
2007# They can cause serious problems if a builder's source tree is in a directory
2008# whose full name contains unusual characters.
2009ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2010ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2011ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2012
2013
2014# Make sure we can run config.sub.
2015$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2016  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2017echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2018   { (exit 1); exit 1; }; }
2019
2020{ echo "$as_me:$LINENO: checking build system type" >&5
2021echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2022if test "${ac_cv_build+set}" = set; then
2023  echo $ECHO_N "(cached) $ECHO_C" >&6
2024else
2025  ac_build_alias=$build_alias
2026test "x$ac_build_alias" = x &&
2027  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2028test "x$ac_build_alias" = x &&
2029  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2030echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2031   { (exit 1); exit 1; }; }
2032ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2033  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2034echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2035   { (exit 1); exit 1; }; }
2036
2037fi
2038{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2039echo "${ECHO_T}$ac_cv_build" >&6; }
2040case $ac_cv_build in
2041*-*-*) ;;
2042*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2043echo "$as_me: error: invalid value of canonical build" >&2;}
2044   { (exit 1); exit 1; }; };;
2045esac
2046build=$ac_cv_build
2047ac_save_IFS=$IFS; IFS='-'
2048set x $ac_cv_build
2049shift
2050build_cpu=$1
2051build_vendor=$2
2052shift; shift
2053# Remember, the first character of IFS is used to create $*,
2054# except with old shells:
2055build_os=$*
2056IFS=$ac_save_IFS
2057case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2058
2059
2060{ echo "$as_me:$LINENO: checking host system type" >&5
2061echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2062if test "${ac_cv_host+set}" = set; then
2063  echo $ECHO_N "(cached) $ECHO_C" >&6
2064else
2065  if test "x$host_alias" = x; then
2066  ac_cv_host=$ac_cv_build
2067else
2068  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2069    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2070echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2071   { (exit 1); exit 1; }; }
2072fi
2073
2074fi
2075{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2076echo "${ECHO_T}$ac_cv_host" >&6; }
2077case $ac_cv_host in
2078*-*-*) ;;
2079*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2080echo "$as_me: error: invalid value of canonical host" >&2;}
2081   { (exit 1); exit 1; }; };;
2082esac
2083host=$ac_cv_host
2084ac_save_IFS=$IFS; IFS='-'
2085set x $ac_cv_host
2086shift
2087host_cpu=$1
2088host_vendor=$2
2089shift; shift
2090# Remember, the first character of IFS is used to create $*,
2091# except with old shells:
2092host_os=$*
2093IFS=$ac_save_IFS
2094case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2095
2096
2097{ echo "$as_me:$LINENO: checking target system type" >&5
2098echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2099if test "${ac_cv_target+set}" = set; then
2100  echo $ECHO_N "(cached) $ECHO_C" >&6
2101else
2102  if test "x$target_alias" = x; then
2103  ac_cv_target=$ac_cv_host
2104else
2105  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2106    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2107echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2108   { (exit 1); exit 1; }; }
2109fi
2110
2111fi
2112{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2113echo "${ECHO_T}$ac_cv_target" >&6; }
2114case $ac_cv_target in
2115*-*-*) ;;
2116*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2117echo "$as_me: error: invalid value of canonical target" >&2;}
2118   { (exit 1); exit 1; }; };;
2119esac
2120target=$ac_cv_target
2121ac_save_IFS=$IFS; IFS='-'
2122set x $ac_cv_target
2123shift
2124target_cpu=$1
2125target_vendor=$2
2126shift; shift
2127# Remember, the first character of IFS is used to create $*,
2128# except with old shells:
2129target_os=$*
2130IFS=$ac_save_IFS
2131case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2132
2133
2134# The aliases save the names the user supplied, while $host etc.
2135# will get canonicalized.
2136test -n "$target_alias" &&
2137  test "$program_prefix$program_suffix$program_transform_name" = \
2138    NONENONEs,x,x, &&
2139  program_prefix=${target_alias}-
2140
2141am__api_version='1.10'
2142
2143# Find a good install program.  We prefer a C program (faster),
2144# so one script is as good as another.  But avoid the broken or
2145# incompatible versions:
2146# SysV /etc/install, /usr/sbin/install
2147# SunOS /usr/etc/install
2148# IRIX /sbin/install
2149# AIX /bin/install
2150# AmigaOS /C/install, which installs bootblocks on floppy discs
2151# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2152# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2153# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2154# OS/2's system install, which has a completely different semantic
2155# ./install, which can be erroneously created by make from ./install.sh.
2156{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2157echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2158if test -z "$INSTALL"; then
2159if test "${ac_cv_path_install+set}" = set; then
2160  echo $ECHO_N "(cached) $ECHO_C" >&6
2161else
2162  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163for as_dir in $PATH
2164do
2165  IFS=$as_save_IFS
2166  test -z "$as_dir" && as_dir=.
2167  # Account for people who put trailing slashes in PATH elements.
2168case $as_dir/ in
2169  ./ | .// | /cC/* | \
2170  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2171  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2172  /usr/ucb/* ) ;;
2173  *)
2174    # OSF1 and SCO ODT 3.0 have their own names for install.
2175    # Don't use installbsd from OSF since it installs stuff as root
2176    # by default.
2177    for ac_prog in ginstall scoinst install; do
2178      for ac_exec_ext in '' $ac_executable_extensions; do
2179	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2180	  if test $ac_prog = install &&
2181	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2182	    # AIX install.  It has an incompatible calling convention.
2183	    :
2184	  elif test $ac_prog = install &&
2185	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2186	    # program-specific install script used by HP pwplus--don't use.
2187	    :
2188	  else
2189	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2190	    break 3
2191	  fi
2192	fi
2193      done
2194    done
2195    ;;
2196esac
2197done
2198IFS=$as_save_IFS
2199
2200
2201fi
2202  if test "${ac_cv_path_install+set}" = set; then
2203    INSTALL=$ac_cv_path_install
2204  else
2205    # As a last resort, use the slow shell script.  Don't cache a
2206    # value for INSTALL within a source directory, because that will
2207    # break other packages using the cache if that directory is
2208    # removed, or if the value is a relative name.
2209    INSTALL=$ac_install_sh
2210  fi
2211fi
2212{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2213echo "${ECHO_T}$INSTALL" >&6; }
2214
2215# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2216# It thinks the first close brace ends the variable substitution.
2217test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2218
2219test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2220
2221test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2222
2223{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2224echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2225# Just in case
2226sleep 1
2227echo timestamp > conftest.file
2228# Do `set' in a subshell so we don't clobber the current shell's
2229# arguments.  Must try -L first in case configure is actually a
2230# symlink; some systems play weird games with the mod time of symlinks
2231# (eg FreeBSD returns the mod time of the symlink's containing
2232# directory).
2233if (
2234   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2235   if test "$*" = "X"; then
2236      # -L didn't work.
2237      set X `ls -t $srcdir/configure conftest.file`
2238   fi
2239   rm -f conftest.file
2240   if test "$*" != "X $srcdir/configure conftest.file" \
2241      && test "$*" != "X conftest.file $srcdir/configure"; then
2242
2243      # If neither matched, then we have a broken ls.  This can happen
2244      # if, for instance, CONFIG_SHELL is bash and it inherits a
2245      # broken ls alias from the environment.  This has actually
2246      # happened.  Such a system could not be considered "sane".
2247      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2248alias in your environment" >&5
2249echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2250alias in your environment" >&2;}
2251   { (exit 1); exit 1; }; }
2252   fi
2253
2254   test "$2" = conftest.file
2255   )
2256then
2257   # Ok.
2258   :
2259else
2260   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2261Check your system clock" >&5
2262echo "$as_me: error: newly created file is older than distributed files!
2263Check your system clock" >&2;}
2264   { (exit 1); exit 1; }; }
2265fi
2266{ echo "$as_me:$LINENO: result: yes" >&5
2267echo "${ECHO_T}yes" >&6; }
2268test "$program_prefix" != NONE &&
2269  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2270# Use a double $ so make ignores it.
2271test "$program_suffix" != NONE &&
2272  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2273# Double any \ or $.  echo might interpret backslashes.
2274# By default was `s,x,x', remove it if useless.
2275cat <<\_ACEOF >conftest.sed
2276s/[\\$]/&&/g;s/;s,x,x,$//
2277_ACEOF
2278program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2279rm -f conftest.sed
2280
2281# expand $ac_aux_dir to an absolute path
2282am_aux_dir=`cd $ac_aux_dir && pwd`
2283
2284test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2285# Use eval to expand $SHELL
2286if eval "$MISSING --run true"; then
2287  am_missing_run="$MISSING --run "
2288else
2289  am_missing_run=
2290  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2291echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2292fi
2293
2294{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2295echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2296if test -z "$MKDIR_P"; then
2297  if test "${ac_cv_path_mkdir+set}" = set; then
2298  echo $ECHO_N "(cached) $ECHO_C" >&6
2299else
2300  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2302do
2303  IFS=$as_save_IFS
2304  test -z "$as_dir" && as_dir=.
2305  for ac_prog in mkdir gmkdir; do
2306	 for ac_exec_ext in '' $ac_executable_extensions; do
2307	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2308	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2309	     'mkdir (GNU coreutils) '* | \
2310	     'mkdir (coreutils) '* | \
2311	     'mkdir (fileutils) '4.1*)
2312	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2313	       break 3;;
2314	   esac
2315	 done
2316       done
2317done
2318IFS=$as_save_IFS
2319
2320fi
2321
2322  if test "${ac_cv_path_mkdir+set}" = set; then
2323    MKDIR_P="$ac_cv_path_mkdir -p"
2324  else
2325    # As a last resort, use the slow shell script.  Don't cache a
2326    # value for MKDIR_P within a source directory, because that will
2327    # break other packages using the cache if that directory is
2328    # removed, or if the value is a relative name.
2329    test -d ./--version && rmdir ./--version
2330    MKDIR_P="$ac_install_sh -d"
2331  fi
2332fi
2333{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2334echo "${ECHO_T}$MKDIR_P" >&6; }
2335
2336mkdir_p="$MKDIR_P"
2337case $mkdir_p in
2338  [\\/$]* | ?:[\\/]*) ;;
2339  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2340esac
2341
2342for ac_prog in gawk mawk nawk awk
2343do
2344  # Extract the first word of "$ac_prog", so it can be a program name with args.
2345set dummy $ac_prog; ac_word=$2
2346{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2348if test "${ac_cv_prog_AWK+set}" = set; then
2349  echo $ECHO_N "(cached) $ECHO_C" >&6
2350else
2351  if test -n "$AWK"; then
2352  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2353else
2354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355for as_dir in $PATH
2356do
2357  IFS=$as_save_IFS
2358  test -z "$as_dir" && as_dir=.
2359  for ac_exec_ext in '' $ac_executable_extensions; do
2360  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2361    ac_cv_prog_AWK="$ac_prog"
2362    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363    break 2
2364  fi
2365done
2366done
2367IFS=$as_save_IFS
2368
2369fi
2370fi
2371AWK=$ac_cv_prog_AWK
2372if test -n "$AWK"; then
2373  { echo "$as_me:$LINENO: result: $AWK" >&5
2374echo "${ECHO_T}$AWK" >&6; }
2375else
2376  { echo "$as_me:$LINENO: result: no" >&5
2377echo "${ECHO_T}no" >&6; }
2378fi
2379
2380
2381  test -n "$AWK" && break
2382done
2383
2384{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2385echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2386set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2387if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2388  echo $ECHO_N "(cached) $ECHO_C" >&6
2389else
2390  cat >conftest.make <<\_ACEOF
2391SHELL = /bin/sh
2392all:
2393	@echo '@@@%%%=$(MAKE)=@@@%%%'
2394_ACEOF
2395# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2396case `${MAKE-make} -f conftest.make 2>/dev/null` in
2397  *@@@%%%=?*=@@@%%%*)
2398    eval ac_cv_prog_make_${ac_make}_set=yes;;
2399  *)
2400    eval ac_cv_prog_make_${ac_make}_set=no;;
2401esac
2402rm -f conftest.make
2403fi
2404if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2405  { echo "$as_me:$LINENO: result: yes" >&5
2406echo "${ECHO_T}yes" >&6; }
2407  SET_MAKE=
2408else
2409  { echo "$as_me:$LINENO: result: no" >&5
2410echo "${ECHO_T}no" >&6; }
2411  SET_MAKE="MAKE=${MAKE-make}"
2412fi
2413
2414rm -rf .tst 2>/dev/null
2415mkdir .tst 2>/dev/null
2416if test -d .tst; then
2417  am__leading_dot=.
2418else
2419  am__leading_dot=_
2420fi
2421rmdir .tst 2>/dev/null
2422
2423if test "`cd $srcdir && pwd`" != "`pwd`"; then
2424  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2425  # is not polluted with repeated "-I."
2426  am__isrc=' -I$(srcdir)'
2427  # test to see if srcdir already configured
2428  if test -f $srcdir/config.status; then
2429    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2430echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2431   { (exit 1); exit 1; }; }
2432  fi
2433fi
2434
2435# test whether we have cygpath
2436if test -z "$CYGPATH_W"; then
2437  if (cygpath --version) >/dev/null 2>/dev/null; then
2438    CYGPATH_W='cygpath -w'
2439  else
2440    CYGPATH_W=echo
2441  fi
2442fi
2443
2444
2445# Define the identity of the package.
2446 PACKAGE=$PACKAGE_NAME
2447 VERSION=$PACKAGE_VERSION
2448
2449
2450cat >>confdefs.h <<_ACEOF
2451#define PACKAGE "$PACKAGE"
2452_ACEOF
2453
2454
2455cat >>confdefs.h <<_ACEOF
2456#define VERSION "$VERSION"
2457_ACEOF
2458
2459# Some tools Automake needs.
2460
2461ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2462
2463
2464AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2465
2466
2467AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2468
2469
2470AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2471
2472
2473MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2474
2475install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2476
2477# Installed binaries are usually stripped using `strip' when the user
2478# run `make install-strip'.  However `strip' might not be the right
2479# tool to use in cross-compilation environments, therefore Automake
2480# will honor the `STRIP' environment variable to overrule this program.
2481if test "$cross_compiling" != no; then
2482  if test -n "$ac_tool_prefix"; then
2483  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2484set dummy ${ac_tool_prefix}strip; ac_word=$2
2485{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2487if test "${ac_cv_prog_STRIP+set}" = set; then
2488  echo $ECHO_N "(cached) $ECHO_C" >&6
2489else
2490  if test -n "$STRIP"; then
2491  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2492else
2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494for as_dir in $PATH
2495do
2496  IFS=$as_save_IFS
2497  test -z "$as_dir" && as_dir=.
2498  for ac_exec_ext in '' $ac_executable_extensions; do
2499  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2500    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2501    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502    break 2
2503  fi
2504done
2505done
2506IFS=$as_save_IFS
2507
2508fi
2509fi
2510STRIP=$ac_cv_prog_STRIP
2511if test -n "$STRIP"; then
2512  { echo "$as_me:$LINENO: result: $STRIP" >&5
2513echo "${ECHO_T}$STRIP" >&6; }
2514else
2515  { echo "$as_me:$LINENO: result: no" >&5
2516echo "${ECHO_T}no" >&6; }
2517fi
2518
2519
2520fi
2521if test -z "$ac_cv_prog_STRIP"; then
2522  ac_ct_STRIP=$STRIP
2523  # Extract the first word of "strip", so it can be a program name with args.
2524set dummy strip; ac_word=$2
2525{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2527if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2528  echo $ECHO_N "(cached) $ECHO_C" >&6
2529else
2530  if test -n "$ac_ct_STRIP"; then
2531  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2532else
2533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534for as_dir in $PATH
2535do
2536  IFS=$as_save_IFS
2537  test -z "$as_dir" && as_dir=.
2538  for ac_exec_ext in '' $ac_executable_extensions; do
2539  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2540    ac_cv_prog_ac_ct_STRIP="strip"
2541    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542    break 2
2543  fi
2544done
2545done
2546IFS=$as_save_IFS
2547
2548fi
2549fi
2550ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2551if test -n "$ac_ct_STRIP"; then
2552  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2553echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2554else
2555  { echo "$as_me:$LINENO: result: no" >&5
2556echo "${ECHO_T}no" >&6; }
2557fi
2558
2559  if test "x$ac_ct_STRIP" = x; then
2560    STRIP=":"
2561  else
2562    case $cross_compiling:$ac_tool_warned in
2563yes:)
2564{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2565whose name does not start with the host triplet.  If you think this
2566configuration is useful to you, please write to autoconf@gnu.org." >&5
2567echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2568whose name does not start with the host triplet.  If you think this
2569configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2570ac_tool_warned=yes ;;
2571esac
2572    STRIP=$ac_ct_STRIP
2573  fi
2574else
2575  STRIP="$ac_cv_prog_STRIP"
2576fi
2577
2578fi
2579INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2580
2581# We need awk for the "check" target.  The system "awk" is bad on
2582# some platforms.
2583# Always define AMTAR for backward compatibility.
2584
2585AMTAR=${AMTAR-"${am_missing_run}tar"}
2586
2587am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2588
2589
2590
2591
2592
2593ac_config_headers="$ac_config_headers config.h"
2594
2595
2596ACLOCAL_AMFLAGS="-I m4"
2597
2598
2599
2600V_LIB_CURRENT=4
2601V_LIB_REVISION=3
2602V_LIB_AGE=4
2603
2604VF_LIB_CURRENT=6
2605VF_LIB_REVISION=2
2606VF_LIB_AGE=3
2607
2608VE_LIB_CURRENT=2
2609VE_LIB_REVISION=6
2610VE_LIB_AGE=0
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623cflags_save="$CFLAGS"
2624ac_ext=c
2625ac_cpp='$CPP $CPPFLAGS'
2626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2628ac_compiler_gnu=$ac_cv_c_compiler_gnu
2629if test -n "$ac_tool_prefix"; then
2630  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2631set dummy ${ac_tool_prefix}gcc; ac_word=$2
2632{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2634if test "${ac_cv_prog_CC+set}" = set; then
2635  echo $ECHO_N "(cached) $ECHO_C" >&6
2636else
2637  if test -n "$CC"; then
2638  ac_cv_prog_CC="$CC" # Let the user override the test.
2639else
2640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641for as_dir in $PATH
2642do
2643  IFS=$as_save_IFS
2644  test -z "$as_dir" && as_dir=.
2645  for ac_exec_ext in '' $ac_executable_extensions; do
2646  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2647    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2648    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649    break 2
2650  fi
2651done
2652done
2653IFS=$as_save_IFS
2654
2655fi
2656fi
2657CC=$ac_cv_prog_CC
2658if test -n "$CC"; then
2659  { echo "$as_me:$LINENO: result: $CC" >&5
2660echo "${ECHO_T}$CC" >&6; }
2661else
2662  { echo "$as_me:$LINENO: result: no" >&5
2663echo "${ECHO_T}no" >&6; }
2664fi
2665
2666
2667fi
2668if test -z "$ac_cv_prog_CC"; then
2669  ac_ct_CC=$CC
2670  # Extract the first word of "gcc", so it can be a program name with args.
2671set dummy gcc; ac_word=$2
2672{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2674if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2675  echo $ECHO_N "(cached) $ECHO_C" >&6
2676else
2677  if test -n "$ac_ct_CC"; then
2678  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2679else
2680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681for as_dir in $PATH
2682do
2683  IFS=$as_save_IFS
2684  test -z "$as_dir" && as_dir=.
2685  for ac_exec_ext in '' $ac_executable_extensions; do
2686  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687    ac_cv_prog_ac_ct_CC="gcc"
2688    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689    break 2
2690  fi
2691done
2692done
2693IFS=$as_save_IFS
2694
2695fi
2696fi
2697ac_ct_CC=$ac_cv_prog_ac_ct_CC
2698if test -n "$ac_ct_CC"; then
2699  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2700echo "${ECHO_T}$ac_ct_CC" >&6; }
2701else
2702  { echo "$as_me:$LINENO: result: no" >&5
2703echo "${ECHO_T}no" >&6; }
2704fi
2705
2706  if test "x$ac_ct_CC" = x; then
2707    CC=""
2708  else
2709    case $cross_compiling:$ac_tool_warned in
2710yes:)
2711{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2712whose name does not start with the host triplet.  If you think this
2713configuration is useful to you, please write to autoconf@gnu.org." >&5
2714echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2715whose name does not start with the host triplet.  If you think this
2716configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2717ac_tool_warned=yes ;;
2718esac
2719    CC=$ac_ct_CC
2720  fi
2721else
2722  CC="$ac_cv_prog_CC"
2723fi
2724
2725if test -z "$CC"; then
2726          if test -n "$ac_tool_prefix"; then
2727    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2728set dummy ${ac_tool_prefix}cc; ac_word=$2
2729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2731if test "${ac_cv_prog_CC+set}" = set; then
2732  echo $ECHO_N "(cached) $ECHO_C" >&6
2733else
2734  if test -n "$CC"; then
2735  ac_cv_prog_CC="$CC" # Let the user override the test.
2736else
2737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738for as_dir in $PATH
2739do
2740  IFS=$as_save_IFS
2741  test -z "$as_dir" && as_dir=.
2742  for ac_exec_ext in '' $ac_executable_extensions; do
2743  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2744    ac_cv_prog_CC="${ac_tool_prefix}cc"
2745    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2746    break 2
2747  fi
2748done
2749done
2750IFS=$as_save_IFS
2751
2752fi
2753fi
2754CC=$ac_cv_prog_CC
2755if test -n "$CC"; then
2756  { echo "$as_me:$LINENO: result: $CC" >&5
2757echo "${ECHO_T}$CC" >&6; }
2758else
2759  { echo "$as_me:$LINENO: result: no" >&5
2760echo "${ECHO_T}no" >&6; }
2761fi
2762
2763
2764  fi
2765fi
2766if test -z "$CC"; then
2767  # Extract the first word of "cc", so it can be a program name with args.
2768set dummy cc; ac_word=$2
2769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2771if test "${ac_cv_prog_CC+set}" = set; then
2772  echo $ECHO_N "(cached) $ECHO_C" >&6
2773else
2774  if test -n "$CC"; then
2775  ac_cv_prog_CC="$CC" # Let the user override the test.
2776else
2777  ac_prog_rejected=no
2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779for as_dir in $PATH
2780do
2781  IFS=$as_save_IFS
2782  test -z "$as_dir" && as_dir=.
2783  for ac_exec_ext in '' $ac_executable_extensions; do
2784  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2786       ac_prog_rejected=yes
2787       continue
2788     fi
2789    ac_cv_prog_CC="cc"
2790    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2791    break 2
2792  fi
2793done
2794done
2795IFS=$as_save_IFS
2796
2797if test $ac_prog_rejected = yes; then
2798  # We found a bogon in the path, so make sure we never use it.
2799  set dummy $ac_cv_prog_CC
2800  shift
2801  if test $# != 0; then
2802    # We chose a different compiler from the bogus one.
2803    # However, it has the same basename, so the bogon will be chosen
2804    # first if we set CC to just the basename; use the full file name.
2805    shift
2806    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2807  fi
2808fi
2809fi
2810fi
2811CC=$ac_cv_prog_CC
2812if test -n "$CC"; then
2813  { echo "$as_me:$LINENO: result: $CC" >&5
2814echo "${ECHO_T}$CC" >&6; }
2815else
2816  { echo "$as_me:$LINENO: result: no" >&5
2817echo "${ECHO_T}no" >&6; }
2818fi
2819
2820
2821fi
2822if test -z "$CC"; then
2823  if test -n "$ac_tool_prefix"; then
2824  for ac_prog in cl.exe
2825  do
2826    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2827set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2830if test "${ac_cv_prog_CC+set}" = set; then
2831  echo $ECHO_N "(cached) $ECHO_C" >&6
2832else
2833  if test -n "$CC"; then
2834  ac_cv_prog_CC="$CC" # Let the user override the test.
2835else
2836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837for as_dir in $PATH
2838do
2839  IFS=$as_save_IFS
2840  test -z "$as_dir" && as_dir=.
2841  for ac_exec_ext in '' $ac_executable_extensions; do
2842  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2844    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845    break 2
2846  fi
2847done
2848done
2849IFS=$as_save_IFS
2850
2851fi
2852fi
2853CC=$ac_cv_prog_CC
2854if test -n "$CC"; then
2855  { echo "$as_me:$LINENO: result: $CC" >&5
2856echo "${ECHO_T}$CC" >&6; }
2857else
2858  { echo "$as_me:$LINENO: result: no" >&5
2859echo "${ECHO_T}no" >&6; }
2860fi
2861
2862
2863    test -n "$CC" && break
2864  done
2865fi
2866if test -z "$CC"; then
2867  ac_ct_CC=$CC
2868  for ac_prog in cl.exe
2869do
2870  # Extract the first word of "$ac_prog", so it can be a program name with args.
2871set dummy $ac_prog; ac_word=$2
2872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2874if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2875  echo $ECHO_N "(cached) $ECHO_C" >&6
2876else
2877  if test -n "$ac_ct_CC"; then
2878  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2879else
2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881for as_dir in $PATH
2882do
2883  IFS=$as_save_IFS
2884  test -z "$as_dir" && as_dir=.
2885  for ac_exec_ext in '' $ac_executable_extensions; do
2886  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2887    ac_cv_prog_ac_ct_CC="$ac_prog"
2888    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889    break 2
2890  fi
2891done
2892done
2893IFS=$as_save_IFS
2894
2895fi
2896fi
2897ac_ct_CC=$ac_cv_prog_ac_ct_CC
2898if test -n "$ac_ct_CC"; then
2899  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2900echo "${ECHO_T}$ac_ct_CC" >&6; }
2901else
2902  { echo "$as_me:$LINENO: result: no" >&5
2903echo "${ECHO_T}no" >&6; }
2904fi
2905
2906
2907  test -n "$ac_ct_CC" && break
2908done
2909
2910  if test "x$ac_ct_CC" = x; then
2911    CC=""
2912  else
2913    case $cross_compiling:$ac_tool_warned in
2914yes:)
2915{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2916whose name does not start with the host triplet.  If you think this
2917configuration is useful to you, please write to autoconf@gnu.org." >&5
2918echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2919whose name does not start with the host triplet.  If you think this
2920configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2921ac_tool_warned=yes ;;
2922esac
2923    CC=$ac_ct_CC
2924  fi
2925fi
2926
2927fi
2928
2929
2930test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2931See \`config.log' for more details." >&5
2932echo "$as_me: error: no acceptable C compiler found in \$PATH
2933See \`config.log' for more details." >&2;}
2934   { (exit 1); exit 1; }; }
2935
2936# Provide some information about the compiler.
2937echo "$as_me:$LINENO: checking for C compiler version" >&5
2938ac_compiler=`set X $ac_compile; echo $2`
2939{ (ac_try="$ac_compiler --version >&5"
2940case "(($ac_try" in
2941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942  *) ac_try_echo=$ac_try;;
2943esac
2944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945  (eval "$ac_compiler --version >&5") 2>&5
2946  ac_status=$?
2947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948  (exit $ac_status); }
2949{ (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
2956  ac_status=$?
2957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958  (exit $ac_status); }
2959{ (ac_try="$ac_compiler -V >&5"
2960case "(($ac_try" in
2961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962  *) ac_try_echo=$ac_try;;
2963esac
2964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965  (eval "$ac_compiler -V >&5") 2>&5
2966  ac_status=$?
2967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968  (exit $ac_status); }
2969
2970cat >conftest.$ac_ext <<_ACEOF
2971/* confdefs.h.  */
2972_ACEOF
2973cat confdefs.h >>conftest.$ac_ext
2974cat >>conftest.$ac_ext <<_ACEOF
2975/* end confdefs.h.  */
2976
2977int
2978main ()
2979{
2980
2981  ;
2982  return 0;
2983}
2984_ACEOF
2985ac_clean_files_save=$ac_clean_files
2986ac_clean_files="$ac_clean_files a.out a.exe b.out"
2987# Try to create an executable without -o first, disregard a.out.
2988# It will help us diagnose broken compilers, and finding out an intuition
2989# of exeext.
2990{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2991echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2992ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2993#
2994# List of possible output files, starting from the most likely.
2995# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2996# only as a last resort.  b.out is created by i960 compilers.
2997ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2998#
2999# The IRIX 6 linker writes into existing files which may not be
3000# executable, retaining their permissions.  Remove them first so a
3001# subsequent execution test works.
3002ac_rmfiles=
3003for ac_file in $ac_files
3004do
3005  case $ac_file in
3006    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3007    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3008  esac
3009done
3010rm -f $ac_rmfiles
3011
3012if { (ac_try="$ac_link_default"
3013case "(($ac_try" in
3014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015  *) ac_try_echo=$ac_try;;
3016esac
3017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018  (eval "$ac_link_default") 2>&5
3019  ac_status=$?
3020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021  (exit $ac_status); }; then
3022  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3023# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3024# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3025# so that the user can short-circuit this test for compilers unknown to
3026# Autoconf.
3027for ac_file in $ac_files ''
3028do
3029  test -f "$ac_file" || continue
3030  case $ac_file in
3031    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3032	;;
3033    [ab].out )
3034	# We found the default executable, but exeext='' is most
3035	# certainly right.
3036	break;;
3037    *.* )
3038        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3039	then :; else
3040	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3041	fi
3042	# We set ac_cv_exeext here because the later test for it is not
3043	# safe: cross compilers may not add the suffix if given an `-o'
3044	# argument, so we may need to know it at that point already.
3045	# Even if this section looks crufty: it has the advantage of
3046	# actually working.
3047	break;;
3048    * )
3049	break;;
3050  esac
3051done
3052test "$ac_cv_exeext" = no && ac_cv_exeext=
3053
3054else
3055  ac_file=''
3056fi
3057
3058{ echo "$as_me:$LINENO: result: $ac_file" >&5
3059echo "${ECHO_T}$ac_file" >&6; }
3060if test -z "$ac_file"; then
3061  echo "$as_me: failed program was:" >&5
3062sed 's/^/| /' conftest.$ac_ext >&5
3063
3064{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3065See \`config.log' for more details." >&5
3066echo "$as_me: error: C compiler cannot create executables
3067See \`config.log' for more details." >&2;}
3068   { (exit 77); exit 77; }; }
3069fi
3070
3071ac_exeext=$ac_cv_exeext
3072
3073# Check that the compiler produces executables we can run.  If not, either
3074# the compiler is broken, or we cross compile.
3075{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3076echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3077# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3078# If not cross compiling, check that we can run a simple program.
3079if test "$cross_compiling" != yes; then
3080  if { ac_try='./$ac_file'
3081  { (case "(($ac_try" in
3082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083  *) ac_try_echo=$ac_try;;
3084esac
3085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086  (eval "$ac_try") 2>&5
3087  ac_status=$?
3088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089  (exit $ac_status); }; }; then
3090    cross_compiling=no
3091  else
3092    if test "$cross_compiling" = maybe; then
3093	cross_compiling=yes
3094    else
3095	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3096If you meant to cross compile, use \`--host'.
3097See \`config.log' for more details." >&5
3098echo "$as_me: error: cannot run C compiled programs.
3099If you meant to cross compile, use \`--host'.
3100See \`config.log' for more details." >&2;}
3101   { (exit 1); exit 1; }; }
3102    fi
3103  fi
3104fi
3105{ echo "$as_me:$LINENO: result: yes" >&5
3106echo "${ECHO_T}yes" >&6; }
3107
3108rm -f a.out a.exe conftest$ac_cv_exeext b.out
3109ac_clean_files=$ac_clean_files_save
3110# Check that the compiler produces executables we can run.  If not, either
3111# the compiler is broken, or we cross compile.
3112{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3113echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3114{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3115echo "${ECHO_T}$cross_compiling" >&6; }
3116
3117{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3118echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3119if { (ac_try="$ac_link"
3120case "(($ac_try" in
3121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122  *) ac_try_echo=$ac_try;;
3123esac
3124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125  (eval "$ac_link") 2>&5
3126  ac_status=$?
3127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128  (exit $ac_status); }; then
3129  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3130# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3131# work properly (i.e., refer to `conftest.exe'), while it won't with
3132# `rm'.
3133for ac_file in conftest.exe conftest conftest.*; do
3134  test -f "$ac_file" || continue
3135  case $ac_file in
3136    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3137    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3138	  break;;
3139    * ) break;;
3140  esac
3141done
3142else
3143  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3144See \`config.log' for more details." >&5
3145echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3146See \`config.log' for more details." >&2;}
3147   { (exit 1); exit 1; }; }
3148fi
3149
3150rm -f conftest$ac_cv_exeext
3151{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3152echo "${ECHO_T}$ac_cv_exeext" >&6; }
3153
3154rm -f conftest.$ac_ext
3155EXEEXT=$ac_cv_exeext
3156ac_exeext=$EXEEXT
3157{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3158echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3159if test "${ac_cv_objext+set}" = set; then
3160  echo $ECHO_N "(cached) $ECHO_C" >&6
3161else
3162  cat >conftest.$ac_ext <<_ACEOF
3163/* confdefs.h.  */
3164_ACEOF
3165cat confdefs.h >>conftest.$ac_ext
3166cat >>conftest.$ac_ext <<_ACEOF
3167/* end confdefs.h.  */
3168
3169int
3170main ()
3171{
3172
3173  ;
3174  return 0;
3175}
3176_ACEOF
3177rm -f conftest.o conftest.obj
3178if { (ac_try="$ac_compile"
3179case "(($ac_try" in
3180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181  *) ac_try_echo=$ac_try;;
3182esac
3183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184  (eval "$ac_compile") 2>&5
3185  ac_status=$?
3186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187  (exit $ac_status); }; then
3188  for ac_file in conftest.o conftest.obj conftest.*; do
3189  test -f "$ac_file" || continue;
3190  case $ac_file in
3191    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3192    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3193       break;;
3194  esac
3195done
3196else
3197  echo "$as_me: failed program was:" >&5
3198sed 's/^/| /' conftest.$ac_ext >&5
3199
3200{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3201See \`config.log' for more details." >&5
3202echo "$as_me: error: cannot compute suffix of object files: cannot compile
3203See \`config.log' for more details." >&2;}
3204   { (exit 1); exit 1; }; }
3205fi
3206
3207rm -f conftest.$ac_cv_objext conftest.$ac_ext
3208fi
3209{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3210echo "${ECHO_T}$ac_cv_objext" >&6; }
3211OBJEXT=$ac_cv_objext
3212ac_objext=$OBJEXT
3213{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3214echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3215if test "${ac_cv_c_compiler_gnu+set}" = set; then
3216  echo $ECHO_N "(cached) $ECHO_C" >&6
3217else
3218  cat >conftest.$ac_ext <<_ACEOF
3219/* confdefs.h.  */
3220_ACEOF
3221cat confdefs.h >>conftest.$ac_ext
3222cat >>conftest.$ac_ext <<_ACEOF
3223/* end confdefs.h.  */
3224
3225int
3226main ()
3227{
3228#ifndef __GNUC__
3229       choke me
3230#endif
3231
3232  ;
3233  return 0;
3234}
3235_ACEOF
3236rm -f conftest.$ac_objext
3237if { (ac_try="$ac_compile"
3238case "(($ac_try" in
3239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240  *) ac_try_echo=$ac_try;;
3241esac
3242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243  (eval "$ac_compile") 2>conftest.er1
3244  ac_status=$?
3245  grep -v '^ *+' conftest.er1 >conftest.err
3246  rm -f conftest.er1
3247  cat conftest.err >&5
3248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249  (exit $ac_status); } && {
3250	 test -z "$ac_c_werror_flag" ||
3251	 test ! -s conftest.err
3252       } && test -s conftest.$ac_objext; then
3253  ac_compiler_gnu=yes
3254else
3255  echo "$as_me: failed program was:" >&5
3256sed 's/^/| /' conftest.$ac_ext >&5
3257
3258	ac_compiler_gnu=no
3259fi
3260
3261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262ac_cv_c_compiler_gnu=$ac_compiler_gnu
3263
3264fi
3265{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3266echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3267GCC=`test $ac_compiler_gnu = yes && echo yes`
3268ac_test_CFLAGS=${CFLAGS+set}
3269ac_save_CFLAGS=$CFLAGS
3270{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3271echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3272if test "${ac_cv_prog_cc_g+set}" = set; then
3273  echo $ECHO_N "(cached) $ECHO_C" >&6
3274else
3275  ac_save_c_werror_flag=$ac_c_werror_flag
3276   ac_c_werror_flag=yes
3277   ac_cv_prog_cc_g=no
3278   CFLAGS="-g"
3279   cat >conftest.$ac_ext <<_ACEOF
3280/* confdefs.h.  */
3281_ACEOF
3282cat confdefs.h >>conftest.$ac_ext
3283cat >>conftest.$ac_ext <<_ACEOF
3284/* end confdefs.h.  */
3285
3286int
3287main ()
3288{
3289
3290  ;
3291  return 0;
3292}
3293_ACEOF
3294rm -f conftest.$ac_objext
3295if { (ac_try="$ac_compile"
3296case "(($ac_try" in
3297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298  *) ac_try_echo=$ac_try;;
3299esac
3300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301  (eval "$ac_compile") 2>conftest.er1
3302  ac_status=$?
3303  grep -v '^ *+' conftest.er1 >conftest.err
3304  rm -f conftest.er1
3305  cat conftest.err >&5
3306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307  (exit $ac_status); } && {
3308	 test -z "$ac_c_werror_flag" ||
3309	 test ! -s conftest.err
3310       } && test -s conftest.$ac_objext; then
3311  ac_cv_prog_cc_g=yes
3312else
3313  echo "$as_me: failed program was:" >&5
3314sed 's/^/| /' conftest.$ac_ext >&5
3315
3316	CFLAGS=""
3317      cat >conftest.$ac_ext <<_ACEOF
3318/* confdefs.h.  */
3319_ACEOF
3320cat confdefs.h >>conftest.$ac_ext
3321cat >>conftest.$ac_ext <<_ACEOF
3322/* end confdefs.h.  */
3323
3324int
3325main ()
3326{
3327
3328  ;
3329  return 0;
3330}
3331_ACEOF
3332rm -f conftest.$ac_objext
3333if { (ac_try="$ac_compile"
3334case "(($ac_try" in
3335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336  *) ac_try_echo=$ac_try;;
3337esac
3338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339  (eval "$ac_compile") 2>conftest.er1
3340  ac_status=$?
3341  grep -v '^ *+' conftest.er1 >conftest.err
3342  rm -f conftest.er1
3343  cat conftest.err >&5
3344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345  (exit $ac_status); } && {
3346	 test -z "$ac_c_werror_flag" ||
3347	 test ! -s conftest.err
3348       } && test -s conftest.$ac_objext; then
3349  :
3350else
3351  echo "$as_me: failed program was:" >&5
3352sed 's/^/| /' conftest.$ac_ext >&5
3353
3354	ac_c_werror_flag=$ac_save_c_werror_flag
3355	 CFLAGS="-g"
3356	 cat >conftest.$ac_ext <<_ACEOF
3357/* confdefs.h.  */
3358_ACEOF
3359cat confdefs.h >>conftest.$ac_ext
3360cat >>conftest.$ac_ext <<_ACEOF
3361/* end confdefs.h.  */
3362
3363int
3364main ()
3365{
3366
3367  ;
3368  return 0;
3369}
3370_ACEOF
3371rm -f conftest.$ac_objext
3372if { (ac_try="$ac_compile"
3373case "(($ac_try" in
3374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375  *) ac_try_echo=$ac_try;;
3376esac
3377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3378  (eval "$ac_compile") 2>conftest.er1
3379  ac_status=$?
3380  grep -v '^ *+' conftest.er1 >conftest.err
3381  rm -f conftest.er1
3382  cat conftest.err >&5
3383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384  (exit $ac_status); } && {
3385	 test -z "$ac_c_werror_flag" ||
3386	 test ! -s conftest.err
3387       } && test -s conftest.$ac_objext; then
3388  ac_cv_prog_cc_g=yes
3389else
3390  echo "$as_me: failed program was:" >&5
3391sed 's/^/| /' conftest.$ac_ext >&5
3392
3393
3394fi
3395
3396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397fi
3398
3399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400fi
3401
3402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403   ac_c_werror_flag=$ac_save_c_werror_flag
3404fi
3405{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3406echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3407if test "$ac_test_CFLAGS" = set; then
3408  CFLAGS=$ac_save_CFLAGS
3409elif test $ac_cv_prog_cc_g = yes; then
3410  if test "$GCC" = yes; then
3411    CFLAGS="-g -O2"
3412  else
3413    CFLAGS="-g"
3414  fi
3415else
3416  if test "$GCC" = yes; then
3417    CFLAGS="-O2"
3418  else
3419    CFLAGS=
3420  fi
3421fi
3422{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3423echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3424if test "${ac_cv_prog_cc_c89+set}" = set; then
3425  echo $ECHO_N "(cached) $ECHO_C" >&6
3426else
3427  ac_cv_prog_cc_c89=no
3428ac_save_CC=$CC
3429cat >conftest.$ac_ext <<_ACEOF
3430/* confdefs.h.  */
3431_ACEOF
3432cat confdefs.h >>conftest.$ac_ext
3433cat >>conftest.$ac_ext <<_ACEOF
3434/* end confdefs.h.  */
3435#include <stdarg.h>
3436#include <stdio.h>
3437#include <sys/types.h>
3438#include <sys/stat.h>
3439/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3440struct buf { int x; };
3441FILE * (*rcsopen) (struct buf *, struct stat *, int);
3442static char *e (p, i)
3443     char **p;
3444     int i;
3445{
3446  return p[i];
3447}
3448static char *f (char * (*g) (char **, int), char **p, ...)
3449{
3450  char *s;
3451  va_list v;
3452  va_start (v,p);
3453  s = g (p, va_arg (v,int));
3454  va_end (v);
3455  return s;
3456}
3457
3458/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3459   function prototypes and stuff, but not '\xHH' hex character constants.
3460   These don't provoke an error unfortunately, instead are silently treated
3461   as 'x'.  The following induces an error, until -std is added to get
3462   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3463   array size at least.  It's necessary to write '\x00'==0 to get something
3464   that's true only with -std.  */
3465int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3466
3467/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3468   inside strings and character constants.  */
3469#define FOO(x) 'x'
3470int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3471
3472int test (int i, double x);
3473struct s1 {int (*f) (int a);};
3474struct s2 {int (*f) (double a);};
3475int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3476int argc;
3477char **argv;
3478int
3479main ()
3480{
3481return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3482  ;
3483  return 0;
3484}
3485_ACEOF
3486for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3487	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3488do
3489  CC="$ac_save_CC $ac_arg"
3490  rm -f conftest.$ac_objext
3491if { (ac_try="$ac_compile"
3492case "(($ac_try" in
3493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494  *) ac_try_echo=$ac_try;;
3495esac
3496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497  (eval "$ac_compile") 2>conftest.er1
3498  ac_status=$?
3499  grep -v '^ *+' conftest.er1 >conftest.err
3500  rm -f conftest.er1
3501  cat conftest.err >&5
3502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503  (exit $ac_status); } && {
3504	 test -z "$ac_c_werror_flag" ||
3505	 test ! -s conftest.err
3506       } && test -s conftest.$ac_objext; then
3507  ac_cv_prog_cc_c89=$ac_arg
3508else
3509  echo "$as_me: failed program was:" >&5
3510sed 's/^/| /' conftest.$ac_ext >&5
3511
3512
3513fi
3514
3515rm -f core conftest.err conftest.$ac_objext
3516  test "x$ac_cv_prog_cc_c89" != "xno" && break
3517done
3518rm -f conftest.$ac_ext
3519CC=$ac_save_CC
3520
3521fi
3522# AC_CACHE_VAL
3523case "x$ac_cv_prog_cc_c89" in
3524  x)
3525    { echo "$as_me:$LINENO: result: none needed" >&5
3526echo "${ECHO_T}none needed" >&6; } ;;
3527  xno)
3528    { echo "$as_me:$LINENO: result: unsupported" >&5
3529echo "${ECHO_T}unsupported" >&6; } ;;
3530  *)
3531    CC="$CC $ac_cv_prog_cc_c89"
3532    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3533echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3534esac
3535
3536
3537ac_ext=c
3538ac_cpp='$CPP $CPPFLAGS'
3539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542DEPDIR="${am__leading_dot}deps"
3543
3544ac_config_commands="$ac_config_commands depfiles"
3545
3546
3547am_make=${MAKE-make}
3548cat > confinc << 'END'
3549am__doit:
3550	@echo done
3551.PHONY: am__doit
3552END
3553# If we don't find an include directive, just comment out the code.
3554{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3555echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3556am__include="#"
3557am__quote=
3558_am_result=none
3559# First try GNU make style include.
3560echo "include confinc" > confmf
3561# We grep out `Entering directory' and `Leaving directory'
3562# messages which can occur if `w' ends up in MAKEFLAGS.
3563# In particular we don't look at `^make:' because GNU make might
3564# be invoked under some other name (usually "gmake"), in which
3565# case it prints its new name instead of `make'.
3566if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3567   am__include=include
3568   am__quote=
3569   _am_result=GNU
3570fi
3571# Now try BSD make style include.
3572if test "$am__include" = "#"; then
3573   echo '.include "confinc"' > confmf
3574   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3575      am__include=.include
3576      am__quote="\""
3577      _am_result=BSD
3578   fi
3579fi
3580
3581
3582{ echo "$as_me:$LINENO: result: $_am_result" >&5
3583echo "${ECHO_T}$_am_result" >&6; }
3584rm -f confinc confmf
3585
3586# Check whether --enable-dependency-tracking was given.
3587if test "${enable_dependency_tracking+set}" = set; then
3588  enableval=$enable_dependency_tracking;
3589fi
3590
3591if test "x$enable_dependency_tracking" != xno; then
3592  am_depcomp="$ac_aux_dir/depcomp"
3593  AMDEPBACKSLASH='\'
3594fi
3595 if test "x$enable_dependency_tracking" != xno; then
3596  AMDEP_TRUE=
3597  AMDEP_FALSE='#'
3598else
3599  AMDEP_TRUE='#'
3600  AMDEP_FALSE=
3601fi
3602
3603
3604
3605depcc="$CC"   am_compiler_list=
3606
3607{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3608echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3609if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3610  echo $ECHO_N "(cached) $ECHO_C" >&6
3611else
3612  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3613  # We make a subdir and do the tests there.  Otherwise we can end up
3614  # making bogus files that we don't know about and never remove.  For
3615  # instance it was reported that on HP-UX the gcc test will end up
3616  # making a dummy file named `D' -- because `-MD' means `put the output
3617  # in D'.
3618  mkdir conftest.dir
3619  # Copy depcomp to subdir because otherwise we won't find it if we're
3620  # using a relative directory.
3621  cp "$am_depcomp" conftest.dir
3622  cd conftest.dir
3623  # We will build objects and dependencies in a subdirectory because
3624  # it helps to detect inapplicable dependency modes.  For instance
3625  # both Tru64's cc and ICC support -MD to output dependencies as a
3626  # side effect of compilation, but ICC will put the dependencies in
3627  # the current directory while Tru64 will put them in the object
3628  # directory.
3629  mkdir sub
3630
3631  am_cv_CC_dependencies_compiler_type=none
3632  if test "$am_compiler_list" = ""; then
3633     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3634  fi
3635  for depmode in $am_compiler_list; do
3636    # Setup a source with many dependencies, because some compilers
3637    # like to wrap large dependency lists on column 80 (with \), and
3638    # we should not choose a depcomp mode which is confused by this.
3639    #
3640    # We need to recreate these files for each test, as the compiler may
3641    # overwrite some of them when testing with obscure command lines.
3642    # This happens at least with the AIX C compiler.
3643    : > sub/conftest.c
3644    for i in 1 2 3 4 5 6; do
3645      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3646      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3647      # Solaris 8's {/usr,}/bin/sh.
3648      touch sub/conftst$i.h
3649    done
3650    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3651
3652    case $depmode in
3653    nosideeffect)
3654      # after this tag, mechanisms are not by side-effect, so they'll
3655      # only be used when explicitly requested
3656      if test "x$enable_dependency_tracking" = xyes; then
3657	continue
3658      else
3659	break
3660      fi
3661      ;;
3662    none) break ;;
3663    esac
3664    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3665    # mode.  It turns out that the SunPro C++ compiler does not properly
3666    # handle `-M -o', and we need to detect this.
3667    if depmode=$depmode \
3668       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3669       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3670       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3671         >/dev/null 2>conftest.err &&
3672       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3673       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3674       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3675       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3676      # icc doesn't choke on unknown options, it will just issue warnings
3677      # or remarks (even with -Werror).  So we grep stderr for any message
3678      # that says an option was ignored or not supported.
3679      # When given -MP, icc 7.0 and 7.1 complain thusly:
3680      #   icc: Command line warning: ignoring option '-M'; no argument required
3681      # The diagnosis changed in icc 8.0:
3682      #   icc: Command line remark: option '-MP' not supported
3683      if (grep 'ignoring option' conftest.err ||
3684          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3685        am_cv_CC_dependencies_compiler_type=$depmode
3686        break
3687      fi
3688    fi
3689  done
3690
3691  cd ..
3692  rm -rf conftest.dir
3693else
3694  am_cv_CC_dependencies_compiler_type=none
3695fi
3696
3697fi
3698{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3699echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3700CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3701
3702 if
3703  test "x$enable_dependency_tracking" != xno \
3704  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3705  am__fastdepCC_TRUE=
3706  am__fastdepCC_FALSE='#'
3707else
3708  am__fastdepCC_TRUE='#'
3709  am__fastdepCC_FALSE=
3710fi
3711
3712
3713ac_ext=c
3714ac_cpp='$CPP $CPPFLAGS'
3715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3719echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3720# On Suns, sometimes $CPP names a directory.
3721if test -n "$CPP" && test -d "$CPP"; then
3722  CPP=
3723fi
3724if test -z "$CPP"; then
3725  if test "${ac_cv_prog_CPP+set}" = set; then
3726  echo $ECHO_N "(cached) $ECHO_C" >&6
3727else
3728      # Double quotes because CPP needs to be expanded
3729    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3730    do
3731      ac_preproc_ok=false
3732for ac_c_preproc_warn_flag in '' yes
3733do
3734  # Use a header file that comes with gcc, so configuring glibc
3735  # with a fresh cross-compiler works.
3736  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3737  # <limits.h> exists even on freestanding compilers.
3738  # On the NeXT, cc -E runs the code through the compiler's parser,
3739  # not just through cpp. "Syntax error" is here to catch this case.
3740  cat >conftest.$ac_ext <<_ACEOF
3741/* confdefs.h.  */
3742_ACEOF
3743cat confdefs.h >>conftest.$ac_ext
3744cat >>conftest.$ac_ext <<_ACEOF
3745/* end confdefs.h.  */
3746#ifdef __STDC__
3747# include <limits.h>
3748#else
3749# include <assert.h>
3750#endif
3751		     Syntax error
3752_ACEOF
3753if { (ac_try="$ac_cpp conftest.$ac_ext"
3754case "(($ac_try" in
3755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756  *) ac_try_echo=$ac_try;;
3757esac
3758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3759  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3760  ac_status=$?
3761  grep -v '^ *+' conftest.er1 >conftest.err
3762  rm -f conftest.er1
3763  cat conftest.err >&5
3764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765  (exit $ac_status); } >/dev/null && {
3766	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3767	 test ! -s conftest.err
3768       }; then
3769  :
3770else
3771  echo "$as_me: failed program was:" >&5
3772sed 's/^/| /' conftest.$ac_ext >&5
3773
3774  # Broken: fails on valid input.
3775continue
3776fi
3777
3778rm -f conftest.err conftest.$ac_ext
3779
3780  # OK, works on sane cases.  Now check whether nonexistent headers
3781  # can be detected and how.
3782  cat >conftest.$ac_ext <<_ACEOF
3783/* confdefs.h.  */
3784_ACEOF
3785cat confdefs.h >>conftest.$ac_ext
3786cat >>conftest.$ac_ext <<_ACEOF
3787/* end confdefs.h.  */
3788#include <ac_nonexistent.h>
3789_ACEOF
3790if { (ac_try="$ac_cpp conftest.$ac_ext"
3791case "(($ac_try" in
3792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793  *) ac_try_echo=$ac_try;;
3794esac
3795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3797  ac_status=$?
3798  grep -v '^ *+' conftest.er1 >conftest.err
3799  rm -f conftest.er1
3800  cat conftest.err >&5
3801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802  (exit $ac_status); } >/dev/null && {
3803	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3804	 test ! -s conftest.err
3805       }; then
3806  # Broken: success on invalid input.
3807continue
3808else
3809  echo "$as_me: failed program was:" >&5
3810sed 's/^/| /' conftest.$ac_ext >&5
3811
3812  # Passes both tests.
3813ac_preproc_ok=:
3814break
3815fi
3816
3817rm -f conftest.err conftest.$ac_ext
3818
3819done
3820# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3821rm -f conftest.err conftest.$ac_ext
3822if $ac_preproc_ok; then
3823  break
3824fi
3825
3826    done
3827    ac_cv_prog_CPP=$CPP
3828
3829fi
3830  CPP=$ac_cv_prog_CPP
3831else
3832  ac_cv_prog_CPP=$CPP
3833fi
3834{ echo "$as_me:$LINENO: result: $CPP" >&5
3835echo "${ECHO_T}$CPP" >&6; }
3836ac_preproc_ok=false
3837for ac_c_preproc_warn_flag in '' yes
3838do
3839  # Use a header file that comes with gcc, so configuring glibc
3840  # with a fresh cross-compiler works.
3841  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3842  # <limits.h> exists even on freestanding compilers.
3843  # On the NeXT, cc -E runs the code through the compiler's parser,
3844  # not just through cpp. "Syntax error" is here to catch this case.
3845  cat >conftest.$ac_ext <<_ACEOF
3846/* confdefs.h.  */
3847_ACEOF
3848cat confdefs.h >>conftest.$ac_ext
3849cat >>conftest.$ac_ext <<_ACEOF
3850/* end confdefs.h.  */
3851#ifdef __STDC__
3852# include <limits.h>
3853#else
3854# include <assert.h>
3855#endif
3856		     Syntax error
3857_ACEOF
3858if { (ac_try="$ac_cpp conftest.$ac_ext"
3859case "(($ac_try" in
3860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861  *) ac_try_echo=$ac_try;;
3862esac
3863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3864  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3865  ac_status=$?
3866  grep -v '^ *+' conftest.er1 >conftest.err
3867  rm -f conftest.er1
3868  cat conftest.err >&5
3869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870  (exit $ac_status); } >/dev/null && {
3871	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3872	 test ! -s conftest.err
3873       }; then
3874  :
3875else
3876  echo "$as_me: failed program was:" >&5
3877sed 's/^/| /' conftest.$ac_ext >&5
3878
3879  # Broken: fails on valid input.
3880continue
3881fi
3882
3883rm -f conftest.err conftest.$ac_ext
3884
3885  # OK, works on sane cases.  Now check whether nonexistent headers
3886  # can be detected and how.
3887  cat >conftest.$ac_ext <<_ACEOF
3888/* confdefs.h.  */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h.  */
3893#include <ac_nonexistent.h>
3894_ACEOF
3895if { (ac_try="$ac_cpp conftest.$ac_ext"
3896case "(($ac_try" in
3897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898  *) ac_try_echo=$ac_try;;
3899esac
3900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3902  ac_status=$?
3903  grep -v '^ *+' conftest.er1 >conftest.err
3904  rm -f conftest.er1
3905  cat conftest.err >&5
3906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907  (exit $ac_status); } >/dev/null && {
3908	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3909	 test ! -s conftest.err
3910       }; then
3911  # Broken: success on invalid input.
3912continue
3913else
3914  echo "$as_me: failed program was:" >&5
3915sed 's/^/| /' conftest.$ac_ext >&5
3916
3917  # Passes both tests.
3918ac_preproc_ok=:
3919break
3920fi
3921
3922rm -f conftest.err conftest.$ac_ext
3923
3924done
3925# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3926rm -f conftest.err conftest.$ac_ext
3927if $ac_preproc_ok; then
3928  :
3929else
3930  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3931See \`config.log' for more details." >&5
3932echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3933See \`config.log' for more details." >&2;}
3934   { (exit 1); exit 1; }; }
3935fi
3936
3937ac_ext=c
3938ac_cpp='$CPP $CPPFLAGS'
3939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942
3943CFLAGS="$cflags_save"
3944
3945
3946{ echo "$as_me:$LINENO: checking for inline" >&5
3947echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3948if test "${ac_cv_c_inline+set}" = set; then
3949  echo $ECHO_N "(cached) $ECHO_C" >&6
3950else
3951  ac_cv_c_inline=no
3952for ac_kw in inline __inline__ __inline; do
3953  cat >conftest.$ac_ext <<_ACEOF
3954/* confdefs.h.  */
3955_ACEOF
3956cat confdefs.h >>conftest.$ac_ext
3957cat >>conftest.$ac_ext <<_ACEOF
3958/* end confdefs.h.  */
3959#ifndef __cplusplus
3960typedef int foo_t;
3961static $ac_kw foo_t static_foo () {return 0; }
3962$ac_kw foo_t foo () {return 0; }
3963#endif
3964
3965_ACEOF
3966rm -f conftest.$ac_objext
3967if { (ac_try="$ac_compile"
3968case "(($ac_try" in
3969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970  *) ac_try_echo=$ac_try;;
3971esac
3972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973  (eval "$ac_compile") 2>conftest.er1
3974  ac_status=$?
3975  grep -v '^ *+' conftest.er1 >conftest.err
3976  rm -f conftest.er1
3977  cat conftest.err >&5
3978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979  (exit $ac_status); } && {
3980	 test -z "$ac_c_werror_flag" ||
3981	 test ! -s conftest.err
3982       } && test -s conftest.$ac_objext; then
3983  ac_cv_c_inline=$ac_kw
3984else
3985  echo "$as_me: failed program was:" >&5
3986sed 's/^/| /' conftest.$ac_ext >&5
3987
3988
3989fi
3990
3991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992  test "$ac_cv_c_inline" != no && break
3993done
3994
3995fi
3996{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3997echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3998
3999
4000case $ac_cv_c_inline in
4001  inline | yes) ;;
4002  *)
4003    case $ac_cv_c_inline in
4004      no) ac_val=;;
4005      *) ac_val=$ac_cv_c_inline;;
4006    esac
4007    cat >>confdefs.h <<_ACEOF
4008#ifndef __cplusplus
4009#define inline $ac_val
4010#endif
4011_ACEOF
4012    ;;
4013esac
4014
4015
4016
4017
4018# Check whether --enable-shared was given.
4019if test "${enable_shared+set}" = set; then
4020  enableval=$enable_shared; p=${PACKAGE-default}
4021    case $enableval in
4022    yes) enable_shared=yes ;;
4023    no) enable_shared=no ;;
4024    *)
4025      enable_shared=no
4026      # Look at the argument we got.  We use all the common list separators.
4027      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4028      for pkg in $enableval; do
4029	IFS="$lt_save_ifs"
4030	if test "X$pkg" = "X$p"; then
4031	  enable_shared=yes
4032	fi
4033      done
4034      IFS="$lt_save_ifs"
4035      ;;
4036    esac
4037else
4038  enable_shared=yes
4039fi
4040
4041
4042# Check whether --enable-static was given.
4043if test "${enable_static+set}" = set; then
4044  enableval=$enable_static; p=${PACKAGE-default}
4045    case $enableval in
4046    yes) enable_static=yes ;;
4047    no) enable_static=no ;;
4048    *)
4049     enable_static=no
4050      # Look at the argument we got.  We use all the common list separators.
4051      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4052      for pkg in $enableval; do
4053	IFS="$lt_save_ifs"
4054	if test "X$pkg" = "X$p"; then
4055	  enable_static=yes
4056	fi
4057      done
4058      IFS="$lt_save_ifs"
4059      ;;
4060    esac
4061else
4062  enable_static=yes
4063fi
4064
4065
4066# Check whether --enable-fast-install was given.
4067if test "${enable_fast_install+set}" = set; then
4068  enableval=$enable_fast_install; p=${PACKAGE-default}
4069    case $enableval in
4070    yes) enable_fast_install=yes ;;
4071    no) enable_fast_install=no ;;
4072    *)
4073      enable_fast_install=no
4074      # Look at the argument we got.  We use all the common list separators.
4075      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4076      for pkg in $enableval; do
4077	IFS="$lt_save_ifs"
4078	if test "X$pkg" = "X$p"; then
4079	  enable_fast_install=yes
4080	fi
4081      done
4082      IFS="$lt_save_ifs"
4083      ;;
4084    esac
4085else
4086  enable_fast_install=yes
4087fi
4088
4089
4090{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4091echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4092if test "${lt_cv_path_SED+set}" = set; then
4093  echo $ECHO_N "(cached) $ECHO_C" >&6
4094else
4095  # Loop through the user's path and test for sed and gsed.
4096# Then use that list of sed's as ones to test for truncation.
4097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098for as_dir in $PATH
4099do
4100  IFS=$as_save_IFS
4101  test -z "$as_dir" && as_dir=.
4102  for lt_ac_prog in sed gsed; do
4103    for ac_exec_ext in '' $ac_executable_extensions; do
4104      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4105        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4106      fi
4107    done
4108  done
4109done
4110IFS=$as_save_IFS
4111lt_ac_max=0
4112lt_ac_count=0
4113# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4114# along with /bin/sed that truncates output.
4115for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4116  test ! -f $lt_ac_sed && continue
4117  cat /dev/null > conftest.in
4118  lt_ac_count=0
4119  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4120  # Check for GNU sed and select it if it is found.
4121  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4122    lt_cv_path_SED=$lt_ac_sed
4123    break
4124  fi
4125  while true; do
4126    cat conftest.in conftest.in >conftest.tmp
4127    mv conftest.tmp conftest.in
4128    cp conftest.in conftest.nl
4129    echo >>conftest.nl
4130    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4131    cmp -s conftest.out conftest.nl || break
4132    # 10000 chars as input seems more than enough
4133    test $lt_ac_count -gt 10 && break
4134    lt_ac_count=`expr $lt_ac_count + 1`
4135    if test $lt_ac_count -gt $lt_ac_max; then
4136      lt_ac_max=$lt_ac_count
4137      lt_cv_path_SED=$lt_ac_sed
4138    fi
4139  done
4140done
4141
4142fi
4143
4144SED=$lt_cv_path_SED
4145
4146{ echo "$as_me:$LINENO: result: $SED" >&5
4147echo "${ECHO_T}$SED" >&6; }
4148
4149{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4150echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4151if test "${ac_cv_path_GREP+set}" = set; then
4152  echo $ECHO_N "(cached) $ECHO_C" >&6
4153else
4154  # Extract the first word of "grep ggrep" to use in msg output
4155if test -z "$GREP"; then
4156set dummy grep ggrep; ac_prog_name=$2
4157if test "${ac_cv_path_GREP+set}" = set; then
4158  echo $ECHO_N "(cached) $ECHO_C" >&6
4159else
4160  ac_path_GREP_found=false
4161# Loop through the user's path and test for each of PROGNAME-LIST
4162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4164do
4165  IFS=$as_save_IFS
4166  test -z "$as_dir" && as_dir=.
4167  for ac_prog in grep ggrep; do
4168  for ac_exec_ext in '' $ac_executable_extensions; do
4169    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4170    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4171    # Check for GNU ac_path_GREP and select it if it is found.
4172  # Check for GNU $ac_path_GREP
4173case `"$ac_path_GREP" --version 2>&1` in
4174*GNU*)
4175  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4176*)
4177  ac_count=0
4178  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4179  while :
4180  do
4181    cat "conftest.in" "conftest.in" >"conftest.tmp"
4182    mv "conftest.tmp" "conftest.in"
4183    cp "conftest.in" "conftest.nl"
4184    echo 'GREP' >> "conftest.nl"
4185    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4186    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4187    ac_count=`expr $ac_count + 1`
4188    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4189      # Best one so far, save it but keep looking for a better one
4190      ac_cv_path_GREP="$ac_path_GREP"
4191      ac_path_GREP_max=$ac_count
4192    fi
4193    # 10*(2^10) chars as input seems more than enough
4194    test $ac_count -gt 10 && break
4195  done
4196  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4197esac
4198
4199
4200    $ac_path_GREP_found && break 3
4201  done
4202done
4203
4204done
4205IFS=$as_save_IFS
4206
4207
4208fi
4209
4210GREP="$ac_cv_path_GREP"
4211if test -z "$GREP"; then
4212  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4213echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4214   { (exit 1); exit 1; }; }
4215fi
4216
4217else
4218  ac_cv_path_GREP=$GREP
4219fi
4220
4221
4222fi
4223{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4224echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4225 GREP="$ac_cv_path_GREP"
4226
4227
4228{ echo "$as_me:$LINENO: checking for egrep" >&5
4229echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4230if test "${ac_cv_path_EGREP+set}" = set; then
4231  echo $ECHO_N "(cached) $ECHO_C" >&6
4232else
4233  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4234   then ac_cv_path_EGREP="$GREP -E"
4235   else
4236     # Extract the first word of "egrep" to use in msg output
4237if test -z "$EGREP"; then
4238set dummy egrep; ac_prog_name=$2
4239if test "${ac_cv_path_EGREP+set}" = set; then
4240  echo $ECHO_N "(cached) $ECHO_C" >&6
4241else
4242  ac_path_EGREP_found=false
4243# Loop through the user's path and test for each of PROGNAME-LIST
4244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4246do
4247  IFS=$as_save_IFS
4248  test -z "$as_dir" && as_dir=.
4249  for ac_prog in egrep; do
4250  for ac_exec_ext in '' $ac_executable_extensions; do
4251    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4252    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4253    # Check for GNU ac_path_EGREP and select it if it is found.
4254  # Check for GNU $ac_path_EGREP
4255case `"$ac_path_EGREP" --version 2>&1` in
4256*GNU*)
4257  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4258*)
4259  ac_count=0
4260  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4261  while :
4262  do
4263    cat "conftest.in" "conftest.in" >"conftest.tmp"
4264    mv "conftest.tmp" "conftest.in"
4265    cp "conftest.in" "conftest.nl"
4266    echo 'EGREP' >> "conftest.nl"
4267    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4268    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4269    ac_count=`expr $ac_count + 1`
4270    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4271      # Best one so far, save it but keep looking for a better one
4272      ac_cv_path_EGREP="$ac_path_EGREP"
4273      ac_path_EGREP_max=$ac_count
4274    fi
4275    # 10*(2^10) chars as input seems more than enough
4276    test $ac_count -gt 10 && break
4277  done
4278  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4279esac
4280
4281
4282    $ac_path_EGREP_found && break 3
4283  done
4284done
4285
4286done
4287IFS=$as_save_IFS
4288
4289
4290fi
4291
4292EGREP="$ac_cv_path_EGREP"
4293if test -z "$EGREP"; then
4294  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4295echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4296   { (exit 1); exit 1; }; }
4297fi
4298
4299else
4300  ac_cv_path_EGREP=$EGREP
4301fi
4302
4303
4304   fi
4305fi
4306{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4307echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4308 EGREP="$ac_cv_path_EGREP"
4309
4310
4311
4312# Check whether --with-gnu-ld was given.
4313if test "${with_gnu_ld+set}" = set; then
4314  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4315else
4316  with_gnu_ld=no
4317fi
4318
4319ac_prog=ld
4320if test "$GCC" = yes; then
4321  # Check if gcc -print-prog-name=ld gives a path.
4322  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4323echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4324  case $host in
4325  *-*-mingw*)
4326    # gcc leaves a trailing carriage return which upsets mingw
4327    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4328  *)
4329    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4330  esac
4331  case $ac_prog in
4332    # Accept absolute paths.
4333    [\\/]* | ?:[\\/]*)
4334      re_direlt='/[^/][^/]*/\.\./'
4335      # Canonicalize the pathname of ld
4336      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4337      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4338	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4339      done
4340      test -z "$LD" && LD="$ac_prog"
4341      ;;
4342  "")
4343    # If it fails, then pretend we aren't using GCC.
4344    ac_prog=ld
4345    ;;
4346  *)
4347    # If it is relative, then search for the first ld in PATH.
4348    with_gnu_ld=unknown
4349    ;;
4350  esac
4351elif test "$with_gnu_ld" = yes; then
4352  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4353echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4354else
4355  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4356echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4357fi
4358if test "${lt_cv_path_LD+set}" = set; then
4359  echo $ECHO_N "(cached) $ECHO_C" >&6
4360else
4361  if test -z "$LD"; then
4362  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4363  for ac_dir in $PATH; do
4364    IFS="$lt_save_ifs"
4365    test -z "$ac_dir" && ac_dir=.
4366    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4367      lt_cv_path_LD="$ac_dir/$ac_prog"
4368      # Check to see if the program is GNU ld.  I'd rather use --version,
4369      # but apparently some variants of GNU ld only accept -v.
4370      # Break only if it was the GNU/non-GNU ld that we prefer.
4371      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4372      *GNU* | *'with BFD'*)
4373	test "$with_gnu_ld" != no && break
4374	;;
4375      *)
4376	test "$with_gnu_ld" != yes && break
4377	;;
4378      esac
4379    fi
4380  done
4381  IFS="$lt_save_ifs"
4382else
4383  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4384fi
4385fi
4386
4387LD="$lt_cv_path_LD"
4388if test -n "$LD"; then
4389  { echo "$as_me:$LINENO: result: $LD" >&5
4390echo "${ECHO_T}$LD" >&6; }
4391else
4392  { echo "$as_me:$LINENO: result: no" >&5
4393echo "${ECHO_T}no" >&6; }
4394fi
4395test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4396echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4397   { (exit 1); exit 1; }; }
4398{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4399echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4400if test "${lt_cv_prog_gnu_ld+set}" = set; then
4401  echo $ECHO_N "(cached) $ECHO_C" >&6
4402else
4403  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4404case `$LD -v 2>&1 </dev/null` in
4405*GNU* | *'with BFD'*)
4406  lt_cv_prog_gnu_ld=yes
4407  ;;
4408*)
4409  lt_cv_prog_gnu_ld=no
4410  ;;
4411esac
4412fi
4413{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4414echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4415with_gnu_ld=$lt_cv_prog_gnu_ld
4416
4417
4418{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4419echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4420if test "${lt_cv_ld_reload_flag+set}" = set; then
4421  echo $ECHO_N "(cached) $ECHO_C" >&6
4422else
4423  lt_cv_ld_reload_flag='-r'
4424fi
4425{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4426echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4427reload_flag=$lt_cv_ld_reload_flag
4428case $reload_flag in
4429"" | " "*) ;;
4430*) reload_flag=" $reload_flag" ;;
4431esac
4432reload_cmds='$LD$reload_flag -o $output$reload_objs'
4433case $host_os in
4434  darwin*)
4435    if test "$GCC" = yes; then
4436      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4437    else
4438      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4439    fi
4440    ;;
4441esac
4442
4443{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4444echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4445if test "${lt_cv_path_NM+set}" = set; then
4446  echo $ECHO_N "(cached) $ECHO_C" >&6
4447else
4448  if test -n "$NM"; then
4449  # Let the user override the test.
4450  lt_cv_path_NM="$NM"
4451else
4452  lt_nm_to_check="${ac_tool_prefix}nm"
4453  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4454    lt_nm_to_check="$lt_nm_to_check nm"
4455  fi
4456  for lt_tmp_nm in $lt_nm_to_check; do
4457    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4458    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4459      IFS="$lt_save_ifs"
4460      test -z "$ac_dir" && ac_dir=.
4461      tmp_nm="$ac_dir/$lt_tmp_nm"
4462      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4463	# Check to see if the nm accepts a BSD-compat flag.
4464	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4465	#   nm: unknown option "B" ignored
4466	# Tru64's nm complains that /dev/null is an invalid object file
4467	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4468	*/dev/null* | *'Invalid file or object type'*)
4469	  lt_cv_path_NM="$tmp_nm -B"
4470	  break
4471	  ;;
4472	*)
4473	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4474	  */dev/null*)
4475	    lt_cv_path_NM="$tmp_nm -p"
4476	    break
4477	    ;;
4478	  *)
4479	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4480	    continue # so that we can try to find one that supports BSD flags
4481	    ;;
4482	  esac
4483	  ;;
4484	esac
4485      fi
4486    done
4487    IFS="$lt_save_ifs"
4488  done
4489  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4490fi
4491fi
4492{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4493echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4494NM="$lt_cv_path_NM"
4495
4496{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4497echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4498LN_S=$as_ln_s
4499if test "$LN_S" = "ln -s"; then
4500  { echo "$as_me:$LINENO: result: yes" >&5
4501echo "${ECHO_T}yes" >&6; }
4502else
4503  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4504echo "${ECHO_T}no, using $LN_S" >&6; }
4505fi
4506
4507{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4508echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4509if test "${lt_cv_deplibs_check_method+set}" = set; then
4510  echo $ECHO_N "(cached) $ECHO_C" >&6
4511else
4512  lt_cv_file_magic_cmd='$MAGIC_CMD'
4513lt_cv_file_magic_test_file=
4514lt_cv_deplibs_check_method='unknown'
4515# Need to set the preceding variable on all platforms that support
4516# interlibrary dependencies.
4517# 'none' -- dependencies not supported.
4518# `unknown' -- same as none, but documents that we really don't know.
4519# 'pass_all' -- all dependencies passed with no checks.
4520# 'test_compile' -- check by making test program.
4521# 'file_magic [[regex]]' -- check by looking for files in library path
4522# which responds to the $file_magic_cmd with a given extended regex.
4523# If you have `file' or equivalent on your system and you're not sure
4524# whether `pass_all' will *always* work, you probably want this one.
4525
4526case $host_os in
4527aix[4-9]*)
4528  lt_cv_deplibs_check_method=pass_all
4529  ;;
4530
4531beos*)
4532  lt_cv_deplibs_check_method=pass_all
4533  ;;
4534
4535bsdi[45]*)
4536  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4537  lt_cv_file_magic_cmd='/usr/bin/file -L'
4538  lt_cv_file_magic_test_file=/shlib/libc.so
4539  ;;
4540
4541cygwin*)
4542  # func_win32_libid is a shell function defined in ltmain.sh
4543  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4544  lt_cv_file_magic_cmd='func_win32_libid'
4545  ;;
4546
4547mingw* | pw32*)
4548  # Base MSYS/MinGW do not provide the 'file' command needed by
4549  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4550  # unless we find 'file', for example because we are cross-compiling.
4551  if ( file / ) >/dev/null 2>&1; then
4552    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4553    lt_cv_file_magic_cmd='func_win32_libid'
4554  else
4555    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4556    lt_cv_file_magic_cmd='$OBJDUMP -f'
4557  fi
4558  ;;
4559
4560darwin* | rhapsody*)
4561  lt_cv_deplibs_check_method=pass_all
4562  ;;
4563
4564freebsd* | dragonfly*)
4565  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4566    case $host_cpu in
4567    i*86 )
4568      # Not sure whether the presence of OpenBSD here was a mistake.
4569      # Let's accept both of them until this is cleared up.
4570      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4571      lt_cv_file_magic_cmd=/usr/bin/file
4572      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4573      ;;
4574    esac
4575  else
4576    lt_cv_deplibs_check_method=pass_all
4577  fi
4578  ;;
4579
4580gnu*)
4581  lt_cv_deplibs_check_method=pass_all
4582  ;;
4583
4584hpux10.20* | hpux11*)
4585  lt_cv_file_magic_cmd=/usr/bin/file
4586  case $host_cpu in
4587  ia64*)
4588    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4589    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4590    ;;
4591  hppa*64*)
4592    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]'
4593    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4594    ;;
4595  *)
4596    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4597    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4598    ;;
4599  esac
4600  ;;
4601
4602interix[3-9]*)
4603  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4604  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4605  ;;
4606
4607irix5* | irix6* | nonstopux*)
4608  case $LD in
4609  *-32|*"-32 ") libmagic=32-bit;;
4610  *-n32|*"-n32 ") libmagic=N32;;
4611  *-64|*"-64 ") libmagic=64-bit;;
4612  *) libmagic=never-match;;
4613  esac
4614  lt_cv_deplibs_check_method=pass_all
4615  ;;
4616
4617# This must be Linux ELF.
4618linux* | k*bsd*-gnu)
4619  lt_cv_deplibs_check_method=pass_all
4620  ;;
4621
4622netbsd* | netbsdelf*-gnu)
4623  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4624    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4625  else
4626    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4627  fi
4628  ;;
4629
4630newos6*)
4631  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4632  lt_cv_file_magic_cmd=/usr/bin/file
4633  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4634  ;;
4635
4636nto-qnx*)
4637  lt_cv_deplibs_check_method=unknown
4638  ;;
4639
4640openbsd*)
4641  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4642    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4643  else
4644    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4645  fi
4646  ;;
4647
4648osf3* | osf4* | osf5*)
4649  lt_cv_deplibs_check_method=pass_all
4650  ;;
4651
4652rdos*)
4653  lt_cv_deplibs_check_method=pass_all
4654  ;;
4655
4656solaris*)
4657  lt_cv_deplibs_check_method=pass_all
4658  ;;
4659
4660sysv4 | sysv4.3*)
4661  case $host_vendor in
4662  motorola)
4663    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]'
4664    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4665    ;;
4666  ncr)
4667    lt_cv_deplibs_check_method=pass_all
4668    ;;
4669  sequent)
4670    lt_cv_file_magic_cmd='/bin/file'
4671    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4672    ;;
4673  sni)
4674    lt_cv_file_magic_cmd='/bin/file'
4675    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4676    lt_cv_file_magic_test_file=/lib/libc.so
4677    ;;
4678  siemens)
4679    lt_cv_deplibs_check_method=pass_all
4680    ;;
4681  pc)
4682    lt_cv_deplibs_check_method=pass_all
4683    ;;
4684  esac
4685  ;;
4686
4687sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4688  lt_cv_deplibs_check_method=pass_all
4689  ;;
4690esac
4691
4692fi
4693{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4694echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4695file_magic_cmd=$lt_cv_file_magic_cmd
4696deplibs_check_method=$lt_cv_deplibs_check_method
4697test -z "$deplibs_check_method" && deplibs_check_method=unknown
4698
4699
4700
4701
4702# If no C compiler was specified, use CC.
4703LTCC=${LTCC-"$CC"}
4704
4705# If no C compiler flags were specified, use CFLAGS.
4706LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4707
4708# Allow CC to be a program name with arguments.
4709compiler=$CC
4710
4711# Check whether --enable-libtool-lock was given.
4712if test "${enable_libtool_lock+set}" = set; then
4713  enableval=$enable_libtool_lock;
4714fi
4715
4716test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4717
4718# Some flags need to be propagated to the compiler or linker for good
4719# libtool support.
4720case $host in
4721ia64-*-hpux*)
4722  # Find out which ABI we are using.
4723  echo 'int i;' > conftest.$ac_ext
4724  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4725  (eval $ac_compile) 2>&5
4726  ac_status=$?
4727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728  (exit $ac_status); }; then
4729    case `/usr/bin/file conftest.$ac_objext` in
4730    *ELF-32*)
4731      HPUX_IA64_MODE="32"
4732      ;;
4733    *ELF-64*)
4734      HPUX_IA64_MODE="64"
4735      ;;
4736    esac
4737  fi
4738  rm -rf conftest*
4739  ;;
4740*-*-irix6*)
4741  # Find out which ABI we are using.
4742  echo '#line 4742 "configure"' > conftest.$ac_ext
4743  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4744  (eval $ac_compile) 2>&5
4745  ac_status=$?
4746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747  (exit $ac_status); }; then
4748   if test "$lt_cv_prog_gnu_ld" = yes; then
4749    case `/usr/bin/file conftest.$ac_objext` in
4750    *32-bit*)
4751      LD="${LD-ld} -melf32bsmip"
4752      ;;
4753    *N32*)
4754      LD="${LD-ld} -melf32bmipn32"
4755      ;;
4756    *64-bit*)
4757      LD="${LD-ld} -melf64bmip"
4758      ;;
4759    esac
4760   else
4761    case `/usr/bin/file conftest.$ac_objext` in
4762    *32-bit*)
4763      LD="${LD-ld} -32"
4764      ;;
4765    *N32*)
4766      LD="${LD-ld} -n32"
4767      ;;
4768    *64-bit*)
4769      LD="${LD-ld} -64"
4770      ;;
4771    esac
4772   fi
4773  fi
4774  rm -rf conftest*
4775  ;;
4776
4777x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4778s390*-*linux*|sparc*-*linux*)
4779  # Find out which ABI we are using.
4780  echo 'int i;' > conftest.$ac_ext
4781  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4782  (eval $ac_compile) 2>&5
4783  ac_status=$?
4784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785  (exit $ac_status); }; then
4786    case `/usr/bin/file conftest.o` in
4787    *32-bit*)
4788      case $host in
4789        x86_64-*kfreebsd*-gnu)
4790          LD="${LD-ld} -m elf_i386_fbsd"
4791          ;;
4792        x86_64-*linux*)
4793          LD="${LD-ld} -m elf_i386"
4794          ;;
4795        ppc64-*linux*|powerpc64-*linux*)
4796          LD="${LD-ld} -m elf32ppclinux"
4797          ;;
4798        s390x-*linux*)
4799          LD="${LD-ld} -m elf_s390"
4800          ;;
4801        sparc64-*linux*)
4802          LD="${LD-ld} -m elf32_sparc"
4803          ;;
4804      esac
4805      ;;
4806    *64-bit*)
4807      case $host in
4808        x86_64-*kfreebsd*-gnu)
4809          LD="${LD-ld} -m elf_x86_64_fbsd"
4810          ;;
4811        x86_64-*linux*)
4812          LD="${LD-ld} -m elf_x86_64"
4813          ;;
4814        ppc*-*linux*|powerpc*-*linux*)
4815          LD="${LD-ld} -m elf64ppc"
4816          ;;
4817        s390*-*linux*)
4818          LD="${LD-ld} -m elf64_s390"
4819          ;;
4820        sparc*-*linux*)
4821          LD="${LD-ld} -m elf64_sparc"
4822          ;;
4823      esac
4824      ;;
4825    esac
4826  fi
4827  rm -rf conftest*
4828  ;;
4829
4830*-*-sco3.2v5*)
4831  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4832  SAVE_CFLAGS="$CFLAGS"
4833  CFLAGS="$CFLAGS -belf"
4834  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4835echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4836if test "${lt_cv_cc_needs_belf+set}" = set; then
4837  echo $ECHO_N "(cached) $ECHO_C" >&6
4838else
4839  ac_ext=c
4840ac_cpp='$CPP $CPPFLAGS'
4841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4843ac_compiler_gnu=$ac_cv_c_compiler_gnu
4844
4845     cat >conftest.$ac_ext <<_ACEOF
4846/* confdefs.h.  */
4847_ACEOF
4848cat confdefs.h >>conftest.$ac_ext
4849cat >>conftest.$ac_ext <<_ACEOF
4850/* end confdefs.h.  */
4851
4852int
4853main ()
4854{
4855
4856  ;
4857  return 0;
4858}
4859_ACEOF
4860rm -f conftest.$ac_objext conftest$ac_exeext
4861if { (ac_try="$ac_link"
4862case "(($ac_try" in
4863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864  *) ac_try_echo=$ac_try;;
4865esac
4866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867  (eval "$ac_link") 2>conftest.er1
4868  ac_status=$?
4869  grep -v '^ *+' conftest.er1 >conftest.err
4870  rm -f conftest.er1
4871  cat conftest.err >&5
4872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873  (exit $ac_status); } && {
4874	 test -z "$ac_c_werror_flag" ||
4875	 test ! -s conftest.err
4876       } && test -s conftest$ac_exeext &&
4877       $as_test_x conftest$ac_exeext; then
4878  lt_cv_cc_needs_belf=yes
4879else
4880  echo "$as_me: failed program was:" >&5
4881sed 's/^/| /' conftest.$ac_ext >&5
4882
4883	lt_cv_cc_needs_belf=no
4884fi
4885
4886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4887      conftest$ac_exeext conftest.$ac_ext
4888     ac_ext=c
4889ac_cpp='$CPP $CPPFLAGS'
4890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4892ac_compiler_gnu=$ac_cv_c_compiler_gnu
4893
4894fi
4895{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4896echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4897  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4898    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4899    CFLAGS="$SAVE_CFLAGS"
4900  fi
4901  ;;
4902sparc*-*solaris*)
4903  # Find out which ABI we are using.
4904  echo 'int i;' > conftest.$ac_ext
4905  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4906  (eval $ac_compile) 2>&5
4907  ac_status=$?
4908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909  (exit $ac_status); }; then
4910    case `/usr/bin/file conftest.o` in
4911    *64-bit*)
4912      case $lt_cv_prog_gnu_ld in
4913      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4914      *)
4915        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4916	  LD="${LD-ld} -64"
4917	fi
4918	;;
4919      esac
4920      ;;
4921    esac
4922  fi
4923  rm -rf conftest*
4924  ;;
4925
4926*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4927  if test -n "$ac_tool_prefix"; then
4928  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4929set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4930{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4932if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4933  echo $ECHO_N "(cached) $ECHO_C" >&6
4934else
4935  if test -n "$DLLTOOL"; then
4936  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4937else
4938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939for as_dir in $PATH
4940do
4941  IFS=$as_save_IFS
4942  test -z "$as_dir" && as_dir=.
4943  for ac_exec_ext in '' $ac_executable_extensions; do
4944  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4946    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4947    break 2
4948  fi
4949done
4950done
4951IFS=$as_save_IFS
4952
4953fi
4954fi
4955DLLTOOL=$ac_cv_prog_DLLTOOL
4956if test -n "$DLLTOOL"; then
4957  { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4958echo "${ECHO_T}$DLLTOOL" >&6; }
4959else
4960  { echo "$as_me:$LINENO: result: no" >&5
4961echo "${ECHO_T}no" >&6; }
4962fi
4963
4964
4965fi
4966if test -z "$ac_cv_prog_DLLTOOL"; then
4967  ac_ct_DLLTOOL=$DLLTOOL
4968  # Extract the first word of "dlltool", so it can be a program name with args.
4969set dummy dlltool; ac_word=$2
4970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4972if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4973  echo $ECHO_N "(cached) $ECHO_C" >&6
4974else
4975  if test -n "$ac_ct_DLLTOOL"; then
4976  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4977else
4978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979for as_dir in $PATH
4980do
4981  IFS=$as_save_IFS
4982  test -z "$as_dir" && as_dir=.
4983  for ac_exec_ext in '' $ac_executable_extensions; do
4984  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4985    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4986    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987    break 2
4988  fi
4989done
4990done
4991IFS=$as_save_IFS
4992
4993fi
4994fi
4995ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4996if test -n "$ac_ct_DLLTOOL"; then
4997  { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4998echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4999else
5000  { echo "$as_me:$LINENO: result: no" >&5
5001echo "${ECHO_T}no" >&6; }
5002fi
5003
5004  if test "x$ac_ct_DLLTOOL" = x; then
5005    DLLTOOL="false"
5006  else
5007    case $cross_compiling:$ac_tool_warned in
5008yes:)
5009{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5010whose name does not start with the host triplet.  If you think this
5011configuration is useful to you, please write to autoconf@gnu.org." >&5
5012echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5013whose name does not start with the host triplet.  If you think this
5014configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5015ac_tool_warned=yes ;;
5016esac
5017    DLLTOOL=$ac_ct_DLLTOOL
5018  fi
5019else
5020  DLLTOOL="$ac_cv_prog_DLLTOOL"
5021fi
5022
5023  if test -n "$ac_tool_prefix"; then
5024  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5025set dummy ${ac_tool_prefix}as; ac_word=$2
5026{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5028if test "${ac_cv_prog_AS+set}" = set; then
5029  echo $ECHO_N "(cached) $ECHO_C" >&6
5030else
5031  if test -n "$AS"; then
5032  ac_cv_prog_AS="$AS" # Let the user override the test.
5033else
5034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035for as_dir in $PATH
5036do
5037  IFS=$as_save_IFS
5038  test -z "$as_dir" && as_dir=.
5039  for ac_exec_ext in '' $ac_executable_extensions; do
5040  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5041    ac_cv_prog_AS="${ac_tool_prefix}as"
5042    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5043    break 2
5044  fi
5045done
5046done
5047IFS=$as_save_IFS
5048
5049fi
5050fi
5051AS=$ac_cv_prog_AS
5052if test -n "$AS"; then
5053  { echo "$as_me:$LINENO: result: $AS" >&5
5054echo "${ECHO_T}$AS" >&6; }
5055else
5056  { echo "$as_me:$LINENO: result: no" >&5
5057echo "${ECHO_T}no" >&6; }
5058fi
5059
5060
5061fi
5062if test -z "$ac_cv_prog_AS"; then
5063  ac_ct_AS=$AS
5064  # Extract the first word of "as", so it can be a program name with args.
5065set dummy as; ac_word=$2
5066{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5068if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5069  echo $ECHO_N "(cached) $ECHO_C" >&6
5070else
5071  if test -n "$ac_ct_AS"; then
5072  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5073else
5074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077  IFS=$as_save_IFS
5078  test -z "$as_dir" && as_dir=.
5079  for ac_exec_ext in '' $ac_executable_extensions; do
5080  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081    ac_cv_prog_ac_ct_AS="as"
5082    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083    break 2
5084  fi
5085done
5086done
5087IFS=$as_save_IFS
5088
5089fi
5090fi
5091ac_ct_AS=$ac_cv_prog_ac_ct_AS
5092if test -n "$ac_ct_AS"; then
5093  { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5094echo "${ECHO_T}$ac_ct_AS" >&6; }
5095else
5096  { echo "$as_me:$LINENO: result: no" >&5
5097echo "${ECHO_T}no" >&6; }
5098fi
5099
5100  if test "x$ac_ct_AS" = x; then
5101    AS="false"
5102  else
5103    case $cross_compiling:$ac_tool_warned in
5104yes:)
5105{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5106whose name does not start with the host triplet.  If you think this
5107configuration is useful to you, please write to autoconf@gnu.org." >&5
5108echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5109whose name does not start with the host triplet.  If you think this
5110configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5111ac_tool_warned=yes ;;
5112esac
5113    AS=$ac_ct_AS
5114  fi
5115else
5116  AS="$ac_cv_prog_AS"
5117fi
5118
5119  if test -n "$ac_tool_prefix"; then
5120  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5121set dummy ${ac_tool_prefix}objdump; ac_word=$2
5122{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5124if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5125  echo $ECHO_N "(cached) $ECHO_C" >&6
5126else
5127  if test -n "$OBJDUMP"; then
5128  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5129else
5130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131for as_dir in $PATH
5132do
5133  IFS=$as_save_IFS
5134  test -z "$as_dir" && as_dir=.
5135  for ac_exec_ext in '' $ac_executable_extensions; do
5136  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5137    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5138    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5139    break 2
5140  fi
5141done
5142done
5143IFS=$as_save_IFS
5144
5145fi
5146fi
5147OBJDUMP=$ac_cv_prog_OBJDUMP
5148if test -n "$OBJDUMP"; then
5149  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5150echo "${ECHO_T}$OBJDUMP" >&6; }
5151else
5152  { echo "$as_me:$LINENO: result: no" >&5
5153echo "${ECHO_T}no" >&6; }
5154fi
5155
5156
5157fi
5158if test -z "$ac_cv_prog_OBJDUMP"; then
5159  ac_ct_OBJDUMP=$OBJDUMP
5160  # Extract the first word of "objdump", so it can be a program name with args.
5161set dummy objdump; ac_word=$2
5162{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5164if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5165  echo $ECHO_N "(cached) $ECHO_C" >&6
5166else
5167  if test -n "$ac_ct_OBJDUMP"; then
5168  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5169else
5170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171for as_dir in $PATH
5172do
5173  IFS=$as_save_IFS
5174  test -z "$as_dir" && as_dir=.
5175  for ac_exec_ext in '' $ac_executable_extensions; do
5176  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5178    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5179    break 2
5180  fi
5181done
5182done
5183IFS=$as_save_IFS
5184
5185fi
5186fi
5187ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5188if test -n "$ac_ct_OBJDUMP"; then
5189  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5190echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5191else
5192  { echo "$as_me:$LINENO: result: no" >&5
5193echo "${ECHO_T}no" >&6; }
5194fi
5195
5196  if test "x$ac_ct_OBJDUMP" = x; then
5197    OBJDUMP="false"
5198  else
5199    case $cross_compiling:$ac_tool_warned in
5200yes:)
5201{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5202whose name does not start with the host triplet.  If you think this
5203configuration is useful to you, please write to autoconf@gnu.org." >&5
5204echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5205whose name does not start with the host triplet.  If you think this
5206configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5207ac_tool_warned=yes ;;
5208esac
5209    OBJDUMP=$ac_ct_OBJDUMP
5210  fi
5211else
5212  OBJDUMP="$ac_cv_prog_OBJDUMP"
5213fi
5214
5215  ;;
5216
5217esac
5218
5219need_locks="$enable_libtool_lock"
5220
5221
5222
5223{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5224echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5225if test "${ac_cv_header_stdc+set}" = set; then
5226  echo $ECHO_N "(cached) $ECHO_C" >&6
5227else
5228  cat >conftest.$ac_ext <<_ACEOF
5229/* confdefs.h.  */
5230_ACEOF
5231cat confdefs.h >>conftest.$ac_ext
5232cat >>conftest.$ac_ext <<_ACEOF
5233/* end confdefs.h.  */
5234#include <stdlib.h>
5235#include <stdarg.h>
5236#include <string.h>
5237#include <float.h>
5238
5239int
5240main ()
5241{
5242
5243  ;
5244  return 0;
5245}
5246_ACEOF
5247rm -f conftest.$ac_objext
5248if { (ac_try="$ac_compile"
5249case "(($ac_try" in
5250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251  *) ac_try_echo=$ac_try;;
5252esac
5253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254  (eval "$ac_compile") 2>conftest.er1
5255  ac_status=$?
5256  grep -v '^ *+' conftest.er1 >conftest.err
5257  rm -f conftest.er1
5258  cat conftest.err >&5
5259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260  (exit $ac_status); } && {
5261	 test -z "$ac_c_werror_flag" ||
5262	 test ! -s conftest.err
5263       } && test -s conftest.$ac_objext; then
5264  ac_cv_header_stdc=yes
5265else
5266  echo "$as_me: failed program was:" >&5
5267sed 's/^/| /' conftest.$ac_ext >&5
5268
5269	ac_cv_header_stdc=no
5270fi
5271
5272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273
5274if test $ac_cv_header_stdc = yes; then
5275  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5276  cat >conftest.$ac_ext <<_ACEOF
5277/* confdefs.h.  */
5278_ACEOF
5279cat confdefs.h >>conftest.$ac_ext
5280cat >>conftest.$ac_ext <<_ACEOF
5281/* end confdefs.h.  */
5282#include <string.h>
5283
5284_ACEOF
5285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5286  $EGREP "memchr" >/dev/null 2>&1; then
5287  :
5288else
5289  ac_cv_header_stdc=no
5290fi
5291rm -f conftest*
5292
5293fi
5294
5295if test $ac_cv_header_stdc = yes; then
5296  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5297  cat >conftest.$ac_ext <<_ACEOF
5298/* confdefs.h.  */
5299_ACEOF
5300cat confdefs.h >>conftest.$ac_ext
5301cat >>conftest.$ac_ext <<_ACEOF
5302/* end confdefs.h.  */
5303#include <stdlib.h>
5304
5305_ACEOF
5306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5307  $EGREP "free" >/dev/null 2>&1; then
5308  :
5309else
5310  ac_cv_header_stdc=no
5311fi
5312rm -f conftest*
5313
5314fi
5315
5316if test $ac_cv_header_stdc = yes; then
5317  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5318  if test "$cross_compiling" = yes; then
5319  :
5320else
5321  cat >conftest.$ac_ext <<_ACEOF
5322/* confdefs.h.  */
5323_ACEOF
5324cat confdefs.h >>conftest.$ac_ext
5325cat >>conftest.$ac_ext <<_ACEOF
5326/* end confdefs.h.  */
5327#include <ctype.h>
5328#include <stdlib.h>
5329#if ((' ' & 0x0FF) == 0x020)
5330# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5331# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5332#else
5333# define ISLOWER(c) \
5334		   (('a' <= (c) && (c) <= 'i') \
5335		     || ('j' <= (c) && (c) <= 'r') \
5336		     || ('s' <= (c) && (c) <= 'z'))
5337# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5338#endif
5339
5340#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5341int
5342main ()
5343{
5344  int i;
5345  for (i = 0; i < 256; i++)
5346    if (XOR (islower (i), ISLOWER (i))
5347	|| toupper (i) != TOUPPER (i))
5348      return 2;
5349  return 0;
5350}
5351_ACEOF
5352rm -f conftest$ac_exeext
5353if { (ac_try="$ac_link"
5354case "(($ac_try" in
5355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356  *) ac_try_echo=$ac_try;;
5357esac
5358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359  (eval "$ac_link") 2>&5
5360  ac_status=$?
5361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5363  { (case "(($ac_try" in
5364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365  *) ac_try_echo=$ac_try;;
5366esac
5367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5368  (eval "$ac_try") 2>&5
5369  ac_status=$?
5370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371  (exit $ac_status); }; }; then
5372  :
5373else
5374  echo "$as_me: program exited with status $ac_status" >&5
5375echo "$as_me: failed program was:" >&5
5376sed 's/^/| /' conftest.$ac_ext >&5
5377
5378( exit $ac_status )
5379ac_cv_header_stdc=no
5380fi
5381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5382fi
5383
5384
5385fi
5386fi
5387{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5388echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5389if test $ac_cv_header_stdc = yes; then
5390
5391cat >>confdefs.h <<\_ACEOF
5392#define STDC_HEADERS 1
5393_ACEOF
5394
5395fi
5396
5397# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5408		  inttypes.h stdint.h unistd.h
5409do
5410as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5411{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5413if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5414  echo $ECHO_N "(cached) $ECHO_C" >&6
5415else
5416  cat >conftest.$ac_ext <<_ACEOF
5417/* confdefs.h.  */
5418_ACEOF
5419cat confdefs.h >>conftest.$ac_ext
5420cat >>conftest.$ac_ext <<_ACEOF
5421/* end confdefs.h.  */
5422$ac_includes_default
5423
5424#include <$ac_header>
5425_ACEOF
5426rm -f conftest.$ac_objext
5427if { (ac_try="$ac_compile"
5428case "(($ac_try" in
5429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430  *) ac_try_echo=$ac_try;;
5431esac
5432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433  (eval "$ac_compile") 2>conftest.er1
5434  ac_status=$?
5435  grep -v '^ *+' conftest.er1 >conftest.err
5436  rm -f conftest.er1
5437  cat conftest.err >&5
5438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439  (exit $ac_status); } && {
5440	 test -z "$ac_c_werror_flag" ||
5441	 test ! -s conftest.err
5442       } && test -s conftest.$ac_objext; then
5443  eval "$as_ac_Header=yes"
5444else
5445  echo "$as_me: failed program was:" >&5
5446sed 's/^/| /' conftest.$ac_ext >&5
5447
5448	eval "$as_ac_Header=no"
5449fi
5450
5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452fi
5453ac_res=`eval echo '${'$as_ac_Header'}'`
5454	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5455echo "${ECHO_T}$ac_res" >&6; }
5456if test `eval echo '${'$as_ac_Header'}'` = yes; then
5457  cat >>confdefs.h <<_ACEOF
5458#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5459_ACEOF
5460
5461fi
5462
5463done
5464
5465
5466
5467for ac_header in dlfcn.h
5468do
5469as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5470if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5471  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5474  echo $ECHO_N "(cached) $ECHO_C" >&6
5475fi
5476ac_res=`eval echo '${'$as_ac_Header'}'`
5477	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5478echo "${ECHO_T}$ac_res" >&6; }
5479else
5480  # Is the header compilable?
5481{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5482echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5483cat >conftest.$ac_ext <<_ACEOF
5484/* confdefs.h.  */
5485_ACEOF
5486cat confdefs.h >>conftest.$ac_ext
5487cat >>conftest.$ac_ext <<_ACEOF
5488/* end confdefs.h.  */
5489$ac_includes_default
5490#include <$ac_header>
5491_ACEOF
5492rm -f conftest.$ac_objext
5493if { (ac_try="$ac_compile"
5494case "(($ac_try" in
5495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496  *) ac_try_echo=$ac_try;;
5497esac
5498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499  (eval "$ac_compile") 2>conftest.er1
5500  ac_status=$?
5501  grep -v '^ *+' conftest.er1 >conftest.err
5502  rm -f conftest.er1
5503  cat conftest.err >&5
5504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505  (exit $ac_status); } && {
5506	 test -z "$ac_c_werror_flag" ||
5507	 test ! -s conftest.err
5508       } && test -s conftest.$ac_objext; then
5509  ac_header_compiler=yes
5510else
5511  echo "$as_me: failed program was:" >&5
5512sed 's/^/| /' conftest.$ac_ext >&5
5513
5514	ac_header_compiler=no
5515fi
5516
5517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5519echo "${ECHO_T}$ac_header_compiler" >&6; }
5520
5521# Is the header present?
5522{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5523echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5524cat >conftest.$ac_ext <<_ACEOF
5525/* confdefs.h.  */
5526_ACEOF
5527cat confdefs.h >>conftest.$ac_ext
5528cat >>conftest.$ac_ext <<_ACEOF
5529/* end confdefs.h.  */
5530#include <$ac_header>
5531_ACEOF
5532if { (ac_try="$ac_cpp conftest.$ac_ext"
5533case "(($ac_try" in
5534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535  *) ac_try_echo=$ac_try;;
5536esac
5537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5539  ac_status=$?
5540  grep -v '^ *+' conftest.er1 >conftest.err
5541  rm -f conftest.er1
5542  cat conftest.err >&5
5543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544  (exit $ac_status); } >/dev/null && {
5545	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5546	 test ! -s conftest.err
5547       }; then
5548  ac_header_preproc=yes
5549else
5550  echo "$as_me: failed program was:" >&5
5551sed 's/^/| /' conftest.$ac_ext >&5
5552
5553  ac_header_preproc=no
5554fi
5555
5556rm -f conftest.err conftest.$ac_ext
5557{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5558echo "${ECHO_T}$ac_header_preproc" >&6; }
5559
5560# So?  What about this header?
5561case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5562  yes:no: )
5563    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5564echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5565    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5566echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5567    ac_header_preproc=yes
5568    ;;
5569  no:yes:* )
5570    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5571echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5572    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5573echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5574    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5575echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5576    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5577echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5578    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5579echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5580    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5581echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5582    ( cat <<\_ASBOX
5583## ---------------------------------- ##
5584## Report this to vorbis-dev@xiph.org ##
5585## ---------------------------------- ##
5586_ASBOX
5587     ) | sed "s/^/$as_me: WARNING:     /" >&2
5588    ;;
5589esac
5590{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5591echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5592if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5593  echo $ECHO_N "(cached) $ECHO_C" >&6
5594else
5595  eval "$as_ac_Header=\$ac_header_preproc"
5596fi
5597ac_res=`eval echo '${'$as_ac_Header'}'`
5598	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5599echo "${ECHO_T}$ac_res" >&6; }
5600
5601fi
5602if test `eval echo '${'$as_ac_Header'}'` = yes; then
5603  cat >>confdefs.h <<_ACEOF
5604#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5605_ACEOF
5606
5607fi
5608
5609done
5610
5611ac_ext=cpp
5612ac_cpp='$CXXCPP $CPPFLAGS'
5613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5616if test -z "$CXX"; then
5617  if test -n "$CCC"; then
5618    CXX=$CCC
5619  else
5620    if test -n "$ac_tool_prefix"; then
5621  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5622  do
5623    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5624set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5625{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5627if test "${ac_cv_prog_CXX+set}" = set; then
5628  echo $ECHO_N "(cached) $ECHO_C" >&6
5629else
5630  if test -n "$CXX"; then
5631  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5632else
5633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634for as_dir in $PATH
5635do
5636  IFS=$as_save_IFS
5637  test -z "$as_dir" && as_dir=.
5638  for ac_exec_ext in '' $ac_executable_extensions; do
5639  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5641    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5642    break 2
5643  fi
5644done
5645done
5646IFS=$as_save_IFS
5647
5648fi
5649fi
5650CXX=$ac_cv_prog_CXX
5651if test -n "$CXX"; then
5652  { echo "$as_me:$LINENO: result: $CXX" >&5
5653echo "${ECHO_T}$CXX" >&6; }
5654else
5655  { echo "$as_me:$LINENO: result: no" >&5
5656echo "${ECHO_T}no" >&6; }
5657fi
5658
5659
5660    test -n "$CXX" && break
5661  done
5662fi
5663if test -z "$CXX"; then
5664  ac_ct_CXX=$CXX
5665  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5666do
5667  # Extract the first word of "$ac_prog", so it can be a program name with args.
5668set dummy $ac_prog; ac_word=$2
5669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5671if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5672  echo $ECHO_N "(cached) $ECHO_C" >&6
5673else
5674  if test -n "$ac_ct_CXX"; then
5675  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5676else
5677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678for as_dir in $PATH
5679do
5680  IFS=$as_save_IFS
5681  test -z "$as_dir" && as_dir=.
5682  for ac_exec_ext in '' $ac_executable_extensions; do
5683  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5684    ac_cv_prog_ac_ct_CXX="$ac_prog"
5685    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5686    break 2
5687  fi
5688done
5689done
5690IFS=$as_save_IFS
5691
5692fi
5693fi
5694ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5695if test -n "$ac_ct_CXX"; then
5696  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5697echo "${ECHO_T}$ac_ct_CXX" >&6; }
5698else
5699  { echo "$as_me:$LINENO: result: no" >&5
5700echo "${ECHO_T}no" >&6; }
5701fi
5702
5703
5704  test -n "$ac_ct_CXX" && break
5705done
5706
5707  if test "x$ac_ct_CXX" = x; then
5708    CXX="g++"
5709  else
5710    case $cross_compiling:$ac_tool_warned in
5711yes:)
5712{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5713whose name does not start with the host triplet.  If you think this
5714configuration is useful to you, please write to autoconf@gnu.org." >&5
5715echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5716whose name does not start with the host triplet.  If you think this
5717configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5718ac_tool_warned=yes ;;
5719esac
5720    CXX=$ac_ct_CXX
5721  fi
5722fi
5723
5724  fi
5725fi
5726# Provide some information about the compiler.
5727echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5728ac_compiler=`set X $ac_compile; echo $2`
5729{ (ac_try="$ac_compiler --version >&5"
5730case "(($ac_try" in
5731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732  *) ac_try_echo=$ac_try;;
5733esac
5734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735  (eval "$ac_compiler --version >&5") 2>&5
5736  ac_status=$?
5737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738  (exit $ac_status); }
5739{ (ac_try="$ac_compiler -v >&5"
5740case "(($ac_try" in
5741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742  *) ac_try_echo=$ac_try;;
5743esac
5744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745  (eval "$ac_compiler -v >&5") 2>&5
5746  ac_status=$?
5747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748  (exit $ac_status); }
5749{ (ac_try="$ac_compiler -V >&5"
5750case "(($ac_try" in
5751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752  *) ac_try_echo=$ac_try;;
5753esac
5754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755  (eval "$ac_compiler -V >&5") 2>&5
5756  ac_status=$?
5757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758  (exit $ac_status); }
5759
5760{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5761echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5762if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5763  echo $ECHO_N "(cached) $ECHO_C" >&6
5764else
5765  cat >conftest.$ac_ext <<_ACEOF
5766/* confdefs.h.  */
5767_ACEOF
5768cat confdefs.h >>conftest.$ac_ext
5769cat >>conftest.$ac_ext <<_ACEOF
5770/* end confdefs.h.  */
5771
5772int
5773main ()
5774{
5775#ifndef __GNUC__
5776       choke me
5777#endif
5778
5779  ;
5780  return 0;
5781}
5782_ACEOF
5783rm -f conftest.$ac_objext
5784if { (ac_try="$ac_compile"
5785case "(($ac_try" in
5786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787  *) ac_try_echo=$ac_try;;
5788esac
5789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790  (eval "$ac_compile") 2>conftest.er1
5791  ac_status=$?
5792  grep -v '^ *+' conftest.er1 >conftest.err
5793  rm -f conftest.er1
5794  cat conftest.err >&5
5795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796  (exit $ac_status); } && {
5797	 test -z "$ac_cxx_werror_flag" ||
5798	 test ! -s conftest.err
5799       } && test -s conftest.$ac_objext; then
5800  ac_compiler_gnu=yes
5801else
5802  echo "$as_me: failed program was:" >&5
5803sed 's/^/| /' conftest.$ac_ext >&5
5804
5805	ac_compiler_gnu=no
5806fi
5807
5808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5810
5811fi
5812{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5813echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5814GXX=`test $ac_compiler_gnu = yes && echo yes`
5815ac_test_CXXFLAGS=${CXXFLAGS+set}
5816ac_save_CXXFLAGS=$CXXFLAGS
5817{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5818echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5819if test "${ac_cv_prog_cxx_g+set}" = set; then
5820  echo $ECHO_N "(cached) $ECHO_C" >&6
5821else
5822  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5823   ac_cxx_werror_flag=yes
5824   ac_cv_prog_cxx_g=no
5825   CXXFLAGS="-g"
5826   cat >conftest.$ac_ext <<_ACEOF
5827/* confdefs.h.  */
5828_ACEOF
5829cat confdefs.h >>conftest.$ac_ext
5830cat >>conftest.$ac_ext <<_ACEOF
5831/* end confdefs.h.  */
5832
5833int
5834main ()
5835{
5836
5837  ;
5838  return 0;
5839}
5840_ACEOF
5841rm -f conftest.$ac_objext
5842if { (ac_try="$ac_compile"
5843case "(($ac_try" in
5844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845  *) ac_try_echo=$ac_try;;
5846esac
5847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848  (eval "$ac_compile") 2>conftest.er1
5849  ac_status=$?
5850  grep -v '^ *+' conftest.er1 >conftest.err
5851  rm -f conftest.er1
5852  cat conftest.err >&5
5853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854  (exit $ac_status); } && {
5855	 test -z "$ac_cxx_werror_flag" ||
5856	 test ! -s conftest.err
5857       } && test -s conftest.$ac_objext; then
5858  ac_cv_prog_cxx_g=yes
5859else
5860  echo "$as_me: failed program was:" >&5
5861sed 's/^/| /' conftest.$ac_ext >&5
5862
5863	CXXFLAGS=""
5864      cat >conftest.$ac_ext <<_ACEOF
5865/* confdefs.h.  */
5866_ACEOF
5867cat confdefs.h >>conftest.$ac_ext
5868cat >>conftest.$ac_ext <<_ACEOF
5869/* end confdefs.h.  */
5870
5871int
5872main ()
5873{
5874
5875  ;
5876  return 0;
5877}
5878_ACEOF
5879rm -f conftest.$ac_objext
5880if { (ac_try="$ac_compile"
5881case "(($ac_try" in
5882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883  *) ac_try_echo=$ac_try;;
5884esac
5885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886  (eval "$ac_compile") 2>conftest.er1
5887  ac_status=$?
5888  grep -v '^ *+' conftest.er1 >conftest.err
5889  rm -f conftest.er1
5890  cat conftest.err >&5
5891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892  (exit $ac_status); } && {
5893	 test -z "$ac_cxx_werror_flag" ||
5894	 test ! -s conftest.err
5895       } && test -s conftest.$ac_objext; then
5896  :
5897else
5898  echo "$as_me: failed program was:" >&5
5899sed 's/^/| /' conftest.$ac_ext >&5
5900
5901	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5902	 CXXFLAGS="-g"
5903	 cat >conftest.$ac_ext <<_ACEOF
5904/* confdefs.h.  */
5905_ACEOF
5906cat confdefs.h >>conftest.$ac_ext
5907cat >>conftest.$ac_ext <<_ACEOF
5908/* end confdefs.h.  */
5909
5910int
5911main ()
5912{
5913
5914  ;
5915  return 0;
5916}
5917_ACEOF
5918rm -f conftest.$ac_objext
5919if { (ac_try="$ac_compile"
5920case "(($ac_try" in
5921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922  *) ac_try_echo=$ac_try;;
5923esac
5924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925  (eval "$ac_compile") 2>conftest.er1
5926  ac_status=$?
5927  grep -v '^ *+' conftest.er1 >conftest.err
5928  rm -f conftest.er1
5929  cat conftest.err >&5
5930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931  (exit $ac_status); } && {
5932	 test -z "$ac_cxx_werror_flag" ||
5933	 test ! -s conftest.err
5934       } && test -s conftest.$ac_objext; then
5935  ac_cv_prog_cxx_g=yes
5936else
5937  echo "$as_me: failed program was:" >&5
5938sed 's/^/| /' conftest.$ac_ext >&5
5939
5940
5941fi
5942
5943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5944fi
5945
5946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947fi
5948
5949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5951fi
5952{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5953echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5954if test "$ac_test_CXXFLAGS" = set; then
5955  CXXFLAGS=$ac_save_CXXFLAGS
5956elif test $ac_cv_prog_cxx_g = yes; then
5957  if test "$GXX" = yes; then
5958    CXXFLAGS="-g -O2"
5959  else
5960    CXXFLAGS="-g"
5961  fi
5962else
5963  if test "$GXX" = yes; then
5964    CXXFLAGS="-O2"
5965  else
5966    CXXFLAGS=
5967  fi
5968fi
5969ac_ext=cpp
5970ac_cpp='$CXXCPP $CPPFLAGS'
5971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5974
5975depcc="$CXX"  am_compiler_list=
5976
5977{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5978echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5979if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5980  echo $ECHO_N "(cached) $ECHO_C" >&6
5981else
5982  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5983  # We make a subdir and do the tests there.  Otherwise we can end up
5984  # making bogus files that we don't know about and never remove.  For
5985  # instance it was reported that on HP-UX the gcc test will end up
5986  # making a dummy file named `D' -- because `-MD' means `put the output
5987  # in D'.
5988  mkdir conftest.dir
5989  # Copy depcomp to subdir because otherwise we won't find it if we're
5990  # using a relative directory.
5991  cp "$am_depcomp" conftest.dir
5992  cd conftest.dir
5993  # We will build objects and dependencies in a subdirectory because
5994  # it helps to detect inapplicable dependency modes.  For instance
5995  # both Tru64's cc and ICC support -MD to output dependencies as a
5996  # side effect of compilation, but ICC will put the dependencies in
5997  # the current directory while Tru64 will put them in the object
5998  # directory.
5999  mkdir sub
6000
6001  am_cv_CXX_dependencies_compiler_type=none
6002  if test "$am_compiler_list" = ""; then
6003     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6004  fi
6005  for depmode in $am_compiler_list; do
6006    # Setup a source with many dependencies, because some compilers
6007    # like to wrap large dependency lists on column 80 (with \), and
6008    # we should not choose a depcomp mode which is confused by this.
6009    #
6010    # We need to recreate these files for each test, as the compiler may
6011    # overwrite some of them when testing with obscure command lines.
6012    # This happens at least with the AIX C compiler.
6013    : > sub/conftest.c
6014    for i in 1 2 3 4 5 6; do
6015      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6016      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6017      # Solaris 8's {/usr,}/bin/sh.
6018      touch sub/conftst$i.h
6019    done
6020    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6021
6022    case $depmode in
6023    nosideeffect)
6024      # after this tag, mechanisms are not by side-effect, so they'll
6025      # only be used when explicitly requested
6026      if test "x$enable_dependency_tracking" = xyes; then
6027	continue
6028      else
6029	break
6030      fi
6031      ;;
6032    none) break ;;
6033    esac
6034    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6035    # mode.  It turns out that the SunPro C++ compiler does not properly
6036    # handle `-M -o', and we need to detect this.
6037    if depmode=$depmode \
6038       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6039       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6040       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6041         >/dev/null 2>conftest.err &&
6042       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6043       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6044       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6045       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6046      # icc doesn't choke on unknown options, it will just issue warnings
6047      # or remarks (even with -Werror).  So we grep stderr for any message
6048      # that says an option was ignored or not supported.
6049      # When given -MP, icc 7.0 and 7.1 complain thusly:
6050      #   icc: Command line warning: ignoring option '-M'; no argument required
6051      # The diagnosis changed in icc 8.0:
6052      #   icc: Command line remark: option '-MP' not supported
6053      if (grep 'ignoring option' conftest.err ||
6054          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6055        am_cv_CXX_dependencies_compiler_type=$depmode
6056        break
6057      fi
6058    fi
6059  done
6060
6061  cd ..
6062  rm -rf conftest.dir
6063else
6064  am_cv_CXX_dependencies_compiler_type=none
6065fi
6066
6067fi
6068{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6069echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6070CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6071
6072 if
6073  test "x$enable_dependency_tracking" != xno \
6074  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6075  am__fastdepCXX_TRUE=
6076  am__fastdepCXX_FALSE='#'
6077else
6078  am__fastdepCXX_TRUE='#'
6079  am__fastdepCXX_FALSE=
6080fi
6081
6082
6083
6084
6085if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6086    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6087    (test "X$CXX" != "Xg++"))) ; then
6088  ac_ext=cpp
6089ac_cpp='$CXXCPP $CPPFLAGS'
6090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6093{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6094echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6095if test -z "$CXXCPP"; then
6096  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6097  echo $ECHO_N "(cached) $ECHO_C" >&6
6098else
6099      # Double quotes because CXXCPP needs to be expanded
6100    for CXXCPP in "$CXX -E" "/lib/cpp"
6101    do
6102      ac_preproc_ok=false
6103for ac_cxx_preproc_warn_flag in '' yes
6104do
6105  # Use a header file that comes with gcc, so configuring glibc
6106  # with a fresh cross-compiler works.
6107  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6108  # <limits.h> exists even on freestanding compilers.
6109  # On the NeXT, cc -E runs the code through the compiler's parser,
6110  # not just through cpp. "Syntax error" is here to catch this case.
6111  cat >conftest.$ac_ext <<_ACEOF
6112/* confdefs.h.  */
6113_ACEOF
6114cat confdefs.h >>conftest.$ac_ext
6115cat >>conftest.$ac_ext <<_ACEOF
6116/* end confdefs.h.  */
6117#ifdef __STDC__
6118# include <limits.h>
6119#else
6120# include <assert.h>
6121#endif
6122		     Syntax error
6123_ACEOF
6124if { (ac_try="$ac_cpp conftest.$ac_ext"
6125case "(($ac_try" in
6126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6127  *) ac_try_echo=$ac_try;;
6128esac
6129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6130  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6131  ac_status=$?
6132  grep -v '^ *+' conftest.er1 >conftest.err
6133  rm -f conftest.er1
6134  cat conftest.err >&5
6135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136  (exit $ac_status); } >/dev/null && {
6137	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6138	 test ! -s conftest.err
6139       }; then
6140  :
6141else
6142  echo "$as_me: failed program was:" >&5
6143sed 's/^/| /' conftest.$ac_ext >&5
6144
6145  # Broken: fails on valid input.
6146continue
6147fi
6148
6149rm -f conftest.err conftest.$ac_ext
6150
6151  # OK, works on sane cases.  Now check whether nonexistent headers
6152  # can be detected and how.
6153  cat >conftest.$ac_ext <<_ACEOF
6154/* confdefs.h.  */
6155_ACEOF
6156cat confdefs.h >>conftest.$ac_ext
6157cat >>conftest.$ac_ext <<_ACEOF
6158/* end confdefs.h.  */
6159#include <ac_nonexistent.h>
6160_ACEOF
6161if { (ac_try="$ac_cpp conftest.$ac_ext"
6162case "(($ac_try" in
6163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164  *) ac_try_echo=$ac_try;;
6165esac
6166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6168  ac_status=$?
6169  grep -v '^ *+' conftest.er1 >conftest.err
6170  rm -f conftest.er1
6171  cat conftest.err >&5
6172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173  (exit $ac_status); } >/dev/null && {
6174	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6175	 test ! -s conftest.err
6176       }; then
6177  # Broken: success on invalid input.
6178continue
6179else
6180  echo "$as_me: failed program was:" >&5
6181sed 's/^/| /' conftest.$ac_ext >&5
6182
6183  # Passes both tests.
6184ac_preproc_ok=:
6185break
6186fi
6187
6188rm -f conftest.err conftest.$ac_ext
6189
6190done
6191# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6192rm -f conftest.err conftest.$ac_ext
6193if $ac_preproc_ok; then
6194  break
6195fi
6196
6197    done
6198    ac_cv_prog_CXXCPP=$CXXCPP
6199
6200fi
6201  CXXCPP=$ac_cv_prog_CXXCPP
6202else
6203  ac_cv_prog_CXXCPP=$CXXCPP
6204fi
6205{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6206echo "${ECHO_T}$CXXCPP" >&6; }
6207ac_preproc_ok=false
6208for ac_cxx_preproc_warn_flag in '' yes
6209do
6210  # Use a header file that comes with gcc, so configuring glibc
6211  # with a fresh cross-compiler works.
6212  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6213  # <limits.h> exists even on freestanding compilers.
6214  # On the NeXT, cc -E runs the code through the compiler's parser,
6215  # not just through cpp. "Syntax error" is here to catch this case.
6216  cat >conftest.$ac_ext <<_ACEOF
6217/* confdefs.h.  */
6218_ACEOF
6219cat confdefs.h >>conftest.$ac_ext
6220cat >>conftest.$ac_ext <<_ACEOF
6221/* end confdefs.h.  */
6222#ifdef __STDC__
6223# include <limits.h>
6224#else
6225# include <assert.h>
6226#endif
6227		     Syntax error
6228_ACEOF
6229if { (ac_try="$ac_cpp conftest.$ac_ext"
6230case "(($ac_try" in
6231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232  *) ac_try_echo=$ac_try;;
6233esac
6234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6235  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6236  ac_status=$?
6237  grep -v '^ *+' conftest.er1 >conftest.err
6238  rm -f conftest.er1
6239  cat conftest.err >&5
6240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241  (exit $ac_status); } >/dev/null && {
6242	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6243	 test ! -s conftest.err
6244       }; then
6245  :
6246else
6247  echo "$as_me: failed program was:" >&5
6248sed 's/^/| /' conftest.$ac_ext >&5
6249
6250  # Broken: fails on valid input.
6251continue
6252fi
6253
6254rm -f conftest.err conftest.$ac_ext
6255
6256  # OK, works on sane cases.  Now check whether nonexistent headers
6257  # can be detected and how.
6258  cat >conftest.$ac_ext <<_ACEOF
6259/* confdefs.h.  */
6260_ACEOF
6261cat confdefs.h >>conftest.$ac_ext
6262cat >>conftest.$ac_ext <<_ACEOF
6263/* end confdefs.h.  */
6264#include <ac_nonexistent.h>
6265_ACEOF
6266if { (ac_try="$ac_cpp conftest.$ac_ext"
6267case "(($ac_try" in
6268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269  *) ac_try_echo=$ac_try;;
6270esac
6271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6273  ac_status=$?
6274  grep -v '^ *+' conftest.er1 >conftest.err
6275  rm -f conftest.er1
6276  cat conftest.err >&5
6277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278  (exit $ac_status); } >/dev/null && {
6279	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6280	 test ! -s conftest.err
6281       }; then
6282  # Broken: success on invalid input.
6283continue
6284else
6285  echo "$as_me: failed program was:" >&5
6286sed 's/^/| /' conftest.$ac_ext >&5
6287
6288  # Passes both tests.
6289ac_preproc_ok=:
6290break
6291fi
6292
6293rm -f conftest.err conftest.$ac_ext
6294
6295done
6296# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6297rm -f conftest.err conftest.$ac_ext
6298if $ac_preproc_ok; then
6299  :
6300else
6301  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6302See \`config.log' for more details." >&5
6303echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6304See \`config.log' for more details." >&2;}
6305   { (exit 1); exit 1; }; }
6306fi
6307
6308ac_ext=cpp
6309ac_cpp='$CXXCPP $CPPFLAGS'
6310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6313
6314fi
6315
6316
6317ac_ext=f
6318ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6319ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6320ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6321if test -n "$ac_tool_prefix"; then
6322  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
6323  do
6324    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6325set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6326{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6328if test "${ac_cv_prog_F77+set}" = set; then
6329  echo $ECHO_N "(cached) $ECHO_C" >&6
6330else
6331  if test -n "$F77"; then
6332  ac_cv_prog_F77="$F77" # Let the user override the test.
6333else
6334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335for as_dir in $PATH
6336do
6337  IFS=$as_save_IFS
6338  test -z "$as_dir" && as_dir=.
6339  for ac_exec_ext in '' $ac_executable_extensions; do
6340  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6341    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6342    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6343    break 2
6344  fi
6345done
6346done
6347IFS=$as_save_IFS
6348
6349fi
6350fi
6351F77=$ac_cv_prog_F77
6352if test -n "$F77"; then
6353  { echo "$as_me:$LINENO: result: $F77" >&5
6354echo "${ECHO_T}$F77" >&6; }
6355else
6356  { echo "$as_me:$LINENO: result: no" >&5
6357echo "${ECHO_T}no" >&6; }
6358fi
6359
6360
6361    test -n "$F77" && break
6362  done
6363fi
6364if test -z "$F77"; then
6365  ac_ct_F77=$F77
6366  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
6367do
6368  # Extract the first word of "$ac_prog", so it can be a program name with args.
6369set dummy $ac_prog; ac_word=$2
6370{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6372if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6373  echo $ECHO_N "(cached) $ECHO_C" >&6
6374else
6375  if test -n "$ac_ct_F77"; then
6376  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6377else
6378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379for as_dir in $PATH
6380do
6381  IFS=$as_save_IFS
6382  test -z "$as_dir" && as_dir=.
6383  for ac_exec_ext in '' $ac_executable_extensions; do
6384  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6385    ac_cv_prog_ac_ct_F77="$ac_prog"
6386    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6387    break 2
6388  fi
6389done
6390done
6391IFS=$as_save_IFS
6392
6393fi
6394fi
6395ac_ct_F77=$ac_cv_prog_ac_ct_F77
6396if test -n "$ac_ct_F77"; then
6397  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6398echo "${ECHO_T}$ac_ct_F77" >&6; }
6399else
6400  { echo "$as_me:$LINENO: result: no" >&5
6401echo "${ECHO_T}no" >&6; }
6402fi
6403
6404
6405  test -n "$ac_ct_F77" && break
6406done
6407
6408  if test "x$ac_ct_F77" = x; then
6409    F77=""
6410  else
6411    case $cross_compiling:$ac_tool_warned in
6412yes:)
6413{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6414whose name does not start with the host triplet.  If you think this
6415configuration is useful to you, please write to autoconf@gnu.org." >&5
6416echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6417whose name does not start with the host triplet.  If you think this
6418configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6419ac_tool_warned=yes ;;
6420esac
6421    F77=$ac_ct_F77
6422  fi
6423fi
6424
6425
6426# Provide some information about the compiler.
6427echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6428ac_compiler=`set X $ac_compile; echo $2`
6429{ (ac_try="$ac_compiler --version >&5"
6430case "(($ac_try" in
6431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6432  *) ac_try_echo=$ac_try;;
6433esac
6434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6435  (eval "$ac_compiler --version >&5") 2>&5
6436  ac_status=$?
6437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438  (exit $ac_status); }
6439{ (ac_try="$ac_compiler -v >&5"
6440case "(($ac_try" in
6441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442  *) ac_try_echo=$ac_try;;
6443esac
6444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445  (eval "$ac_compiler -v >&5") 2>&5
6446  ac_status=$?
6447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448  (exit $ac_status); }
6449{ (ac_try="$ac_compiler -V >&5"
6450case "(($ac_try" in
6451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452  *) ac_try_echo=$ac_try;;
6453esac
6454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455  (eval "$ac_compiler -V >&5") 2>&5
6456  ac_status=$?
6457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458  (exit $ac_status); }
6459rm -f a.out
6460
6461# If we don't use `.F' as extension, the preprocessor is not run on the
6462# input file.  (Note that this only needs to work for GNU compilers.)
6463ac_save_ext=$ac_ext
6464ac_ext=F
6465{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6466echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6467if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6468  echo $ECHO_N "(cached) $ECHO_C" >&6
6469else
6470  cat >conftest.$ac_ext <<_ACEOF
6471      program main
6472#ifndef __GNUC__
6473       choke me
6474#endif
6475
6476      end
6477_ACEOF
6478rm -f conftest.$ac_objext
6479if { (ac_try="$ac_compile"
6480case "(($ac_try" in
6481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482  *) ac_try_echo=$ac_try;;
6483esac
6484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485  (eval "$ac_compile") 2>conftest.er1
6486  ac_status=$?
6487  grep -v '^ *+' conftest.er1 >conftest.err
6488  rm -f conftest.er1
6489  cat conftest.err >&5
6490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491  (exit $ac_status); } && {
6492	 test -z "$ac_f77_werror_flag" ||
6493	 test ! -s conftest.err
6494       } && test -s conftest.$ac_objext; then
6495  ac_compiler_gnu=yes
6496else
6497  echo "$as_me: failed program was:" >&5
6498sed 's/^/| /' conftest.$ac_ext >&5
6499
6500	ac_compiler_gnu=no
6501fi
6502
6503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6504ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6505
6506fi
6507{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6508echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6509ac_ext=$ac_save_ext
6510ac_test_FFLAGS=${FFLAGS+set}
6511ac_save_FFLAGS=$FFLAGS
6512FFLAGS=
6513{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6514echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6515if test "${ac_cv_prog_f77_g+set}" = set; then
6516  echo $ECHO_N "(cached) $ECHO_C" >&6
6517else
6518  FFLAGS=-g
6519cat >conftest.$ac_ext <<_ACEOF
6520      program main
6521
6522      end
6523_ACEOF
6524rm -f conftest.$ac_objext
6525if { (ac_try="$ac_compile"
6526case "(($ac_try" in
6527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6528  *) ac_try_echo=$ac_try;;
6529esac
6530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6531  (eval "$ac_compile") 2>conftest.er1
6532  ac_status=$?
6533  grep -v '^ *+' conftest.er1 >conftest.err
6534  rm -f conftest.er1
6535  cat conftest.err >&5
6536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537  (exit $ac_status); } && {
6538	 test -z "$ac_f77_werror_flag" ||
6539	 test ! -s conftest.err
6540       } && test -s conftest.$ac_objext; then
6541  ac_cv_prog_f77_g=yes
6542else
6543  echo "$as_me: failed program was:" >&5
6544sed 's/^/| /' conftest.$ac_ext >&5
6545
6546	ac_cv_prog_f77_g=no
6547fi
6548
6549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6550
6551fi
6552{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6553echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6554if test "$ac_test_FFLAGS" = set; then
6555  FFLAGS=$ac_save_FFLAGS
6556elif test $ac_cv_prog_f77_g = yes; then
6557  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6558    FFLAGS="-g -O2"
6559  else
6560    FFLAGS="-g"
6561  fi
6562else
6563  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6564    FFLAGS="-O2"
6565  else
6566    FFLAGS=
6567  fi
6568fi
6569
6570G77=`test $ac_compiler_gnu = yes && echo yes`
6571ac_ext=c
6572ac_cpp='$CPP $CPPFLAGS'
6573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6575ac_compiler_gnu=$ac_cv_c_compiler_gnu
6576
6577
6578
6579# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6580# find the maximum length of command line arguments
6581{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6582echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6583if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6584  echo $ECHO_N "(cached) $ECHO_C" >&6
6585else
6586    i=0
6587  teststring="ABCD"
6588
6589  case $build_os in
6590  msdosdjgpp*)
6591    # On DJGPP, this test can blow up pretty badly due to problems in libc
6592    # (any single argument exceeding 2000 bytes causes a buffer overrun
6593    # during glob expansion).  Even if it were fixed, the result of this
6594    # check would be larger than it should be.
6595    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6596    ;;
6597
6598  gnu*)
6599    # Under GNU Hurd, this test is not required because there is
6600    # no limit to the length of command line arguments.
6601    # Libtool will interpret -1 as no limit whatsoever
6602    lt_cv_sys_max_cmd_len=-1;
6603    ;;
6604
6605  cygwin* | mingw*)
6606    # On Win9x/ME, this test blows up -- it succeeds, but takes
6607    # about 5 minutes as the teststring grows exponentially.
6608    # Worse, since 9x/ME are not pre-emptively multitasking,
6609    # you end up with a "frozen" computer, even though with patience
6610    # the test eventually succeeds (with a max line length of 256k).
6611    # Instead, let's just punt: use the minimum linelength reported by
6612    # all of the supported platforms: 8192 (on NT/2K/XP).
6613    lt_cv_sys_max_cmd_len=8192;
6614    ;;
6615
6616  amigaos*)
6617    # On AmigaOS with pdksh, this test takes hours, literally.
6618    # So we just punt and use a minimum line length of 8192.
6619    lt_cv_sys_max_cmd_len=8192;
6620    ;;
6621
6622  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6623    # This has been around since 386BSD, at least.  Likely further.
6624    if test -x /sbin/sysctl; then
6625      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6626    elif test -x /usr/sbin/sysctl; then
6627      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6628    else
6629      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6630    fi
6631    # And add a safety zone
6632    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6633    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6634    ;;
6635
6636  interix*)
6637    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6638    lt_cv_sys_max_cmd_len=196608
6639    ;;
6640
6641  osf*)
6642    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6643    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6644    # nice to cause kernel panics so lets avoid the loop below.
6645    # First set a reasonable default.
6646    lt_cv_sys_max_cmd_len=16384
6647    #
6648    if test -x /sbin/sysconfig; then
6649      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6650        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6651      esac
6652    fi
6653    ;;
6654  sco3.2v5*)
6655    lt_cv_sys_max_cmd_len=102400
6656    ;;
6657  sysv5* | sco5v6* | sysv4.2uw2*)
6658    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6659    if test -n "$kargmax"; then
6660      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6661    else
6662      lt_cv_sys_max_cmd_len=32768
6663    fi
6664    ;;
6665  *)
6666    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6667    if test -n "$lt_cv_sys_max_cmd_len"; then
6668      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6669      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6670    else
6671      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6672      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6673	       = "XX$teststring") >/dev/null 2>&1 &&
6674	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6675	      lt_cv_sys_max_cmd_len=$new_result &&
6676	      test $i != 17 # 1/2 MB should be enough
6677      do
6678        i=`expr $i + 1`
6679        teststring=$teststring$teststring
6680      done
6681      teststring=
6682      # Add a significant safety factor because C++ compilers can tack on massive
6683      # amounts of additional arguments before passing them to the linker.
6684      # It appears as though 1/2 is a usable value.
6685      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6686    fi
6687    ;;
6688  esac
6689
6690fi
6691
6692if test -n $lt_cv_sys_max_cmd_len ; then
6693  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6694echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6695else
6696  { echo "$as_me:$LINENO: result: none" >&5
6697echo "${ECHO_T}none" >&6; }
6698fi
6699
6700
6701
6702
6703
6704# Check for command to grab the raw symbol name followed by C symbol from nm.
6705{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6706echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6707if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6708  echo $ECHO_N "(cached) $ECHO_C" >&6
6709else
6710
6711# These are sane defaults that work on at least a few old systems.
6712# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6713
6714# Character class describing NM global symbol codes.
6715symcode='[BCDEGRST]'
6716
6717# Regexp to match symbols that can be accessed directly from C.
6718sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6719
6720# Transform an extracted symbol line into a proper C declaration
6721lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6722
6723# Transform an extracted symbol line into symbol name and symbol address
6724lt_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'"
6725
6726# Define system-specific variables.
6727case $host_os in
6728aix*)
6729  symcode='[BCDT]'
6730  ;;
6731cygwin* | mingw* | pw32*)
6732  symcode='[ABCDGISTW]'
6733  ;;
6734hpux*) # Its linker distinguishes data from code symbols
6735  if test "$host_cpu" = ia64; then
6736    symcode='[ABCDEGRST]'
6737  fi
6738  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6739  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'"
6740  ;;
6741linux* | k*bsd*-gnu)
6742  if test "$host_cpu" = ia64; then
6743    symcode='[ABCDGIRSTW]'
6744    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6745    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'"
6746  fi
6747  ;;
6748irix* | nonstopux*)
6749  symcode='[BCDEGRST]'
6750  ;;
6751osf*)
6752  symcode='[BCDEGQRST]'
6753  ;;
6754solaris*)
6755  symcode='[BDRT]'
6756  ;;
6757sco3.2v5*)
6758  symcode='[DT]'
6759  ;;
6760sysv4.2uw2*)
6761  symcode='[DT]'
6762  ;;
6763sysv5* | sco5v6* | unixware* | OpenUNIX*)
6764  symcode='[ABDT]'
6765  ;;
6766sysv4)
6767  symcode='[DFNSTU]'
6768  ;;
6769esac
6770
6771# Handle CRLF in mingw tool chain
6772opt_cr=
6773case $build_os in
6774mingw*)
6775  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6776  ;;
6777esac
6778
6779# If we're using GNU nm, then use its standard symbol codes.
6780case `$NM -V 2>&1` in
6781*GNU* | *'with BFD'*)
6782  symcode='[ABCDGIRSTW]' ;;
6783esac
6784
6785# Try without a prefix undercore, then with it.
6786for ac_symprfx in "" "_"; do
6787
6788  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6789  symxfrm="\\1 $ac_symprfx\\2 \\2"
6790
6791  # Write the raw and C identifiers.
6792  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6793
6794  # Check to see that the pipe works correctly.
6795  pipe_works=no
6796
6797  rm -f conftest*
6798  cat > conftest.$ac_ext <<EOF
6799#ifdef __cplusplus
6800extern "C" {
6801#endif
6802char nm_test_var;
6803void nm_test_func(){}
6804#ifdef __cplusplus
6805}
6806#endif
6807int main(){nm_test_var='a';nm_test_func();return(0);}
6808EOF
6809
6810  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6811  (eval $ac_compile) 2>&5
6812  ac_status=$?
6813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814  (exit $ac_status); }; then
6815    # Now try to grab the symbols.
6816    nlist=conftest.nm
6817    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6818  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6819  ac_status=$?
6820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821  (exit $ac_status); } && test -s "$nlist"; then
6822      # Try sorting and uniquifying the output.
6823      if sort "$nlist" | uniq > "$nlist"T; then
6824	mv -f "$nlist"T "$nlist"
6825      else
6826	rm -f "$nlist"T
6827      fi
6828
6829      # Make sure that we snagged all the symbols we need.
6830      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6831	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6832	  cat <<EOF > conftest.$ac_ext
6833#ifdef __cplusplus
6834extern "C" {
6835#endif
6836
6837EOF
6838	  # Now generate the symbol file.
6839	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6840
6841	  cat <<EOF >> conftest.$ac_ext
6842#if defined (__STDC__) && __STDC__
6843# define lt_ptr_t void *
6844#else
6845# define lt_ptr_t char *
6846# define const
6847#endif
6848
6849/* The mapping between symbol names and symbols. */
6850const struct {
6851  const char *name;
6852  lt_ptr_t address;
6853}
6854lt_preloaded_symbols[] =
6855{
6856EOF
6857	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6858	  cat <<\EOF >> conftest.$ac_ext
6859  {0, (lt_ptr_t) 0}
6860};
6861
6862#ifdef __cplusplus
6863}
6864#endif
6865EOF
6866	  # Now try linking the two files.
6867	  mv conftest.$ac_objext conftstm.$ac_objext
6868	  lt_save_LIBS="$LIBS"
6869	  lt_save_CFLAGS="$CFLAGS"
6870	  LIBS="conftstm.$ac_objext"
6871	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6872	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6873  (eval $ac_link) 2>&5
6874  ac_status=$?
6875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6877	    pipe_works=yes
6878	  fi
6879	  LIBS="$lt_save_LIBS"
6880	  CFLAGS="$lt_save_CFLAGS"
6881	else
6882	  echo "cannot find nm_test_func in $nlist" >&5
6883	fi
6884      else
6885	echo "cannot find nm_test_var in $nlist" >&5
6886      fi
6887    else
6888      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6889    fi
6890  else
6891    echo "$progname: failed program was:" >&5
6892    cat conftest.$ac_ext >&5
6893  fi
6894  rm -rf conftest* conftst*
6895
6896  # Do not use the global_symbol_pipe unless it works.
6897  if test "$pipe_works" = yes; then
6898    break
6899  else
6900    lt_cv_sys_global_symbol_pipe=
6901  fi
6902done
6903
6904fi
6905
6906if test -z "$lt_cv_sys_global_symbol_pipe"; then
6907  lt_cv_sys_global_symbol_to_cdecl=
6908fi
6909if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6910  { echo "$as_me:$LINENO: result: failed" >&5
6911echo "${ECHO_T}failed" >&6; }
6912else
6913  { echo "$as_me:$LINENO: result: ok" >&5
6914echo "${ECHO_T}ok" >&6; }
6915fi
6916
6917{ echo "$as_me:$LINENO: checking for objdir" >&5
6918echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6919if test "${lt_cv_objdir+set}" = set; then
6920  echo $ECHO_N "(cached) $ECHO_C" >&6
6921else
6922  rm -f .libs 2>/dev/null
6923mkdir .libs 2>/dev/null
6924if test -d .libs; then
6925  lt_cv_objdir=.libs
6926else
6927  # MS-DOS does not allow filenames that begin with a dot.
6928  lt_cv_objdir=_libs
6929fi
6930rmdir .libs 2>/dev/null
6931fi
6932{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6933echo "${ECHO_T}$lt_cv_objdir" >&6; }
6934objdir=$lt_cv_objdir
6935
6936
6937
6938
6939
6940case $host_os in
6941aix3*)
6942  # AIX sometimes has problems with the GCC collect2 program.  For some
6943  # reason, if we set the COLLECT_NAMES environment variable, the problems
6944  # vanish in a puff of smoke.
6945  if test "X${COLLECT_NAMES+set}" != Xset; then
6946    COLLECT_NAMES=
6947    export COLLECT_NAMES
6948  fi
6949  ;;
6950esac
6951
6952# Sed substitution that helps us do robust quoting.  It backslashifies
6953# metacharacters that are still active within double-quoted strings.
6954Xsed='sed -e 1s/^X//'
6955sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6956
6957# Same as above, but do not quote variable references.
6958double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6959
6960# Sed substitution to delay expansion of an escaped shell variable in a
6961# double_quote_subst'ed string.
6962delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6963
6964# Sed substitution to avoid accidental globbing in evaled expressions
6965no_glob_subst='s/\*/\\\*/g'
6966
6967# Constants:
6968rm="rm -f"
6969
6970# Global variables:
6971default_ofile=libtool
6972can_build_shared=yes
6973
6974# All known linkers require a `.a' archive for static linking (except MSVC,
6975# which needs '.lib').
6976libext=a
6977ltmain="$ac_aux_dir/ltmain.sh"
6978ofile="$default_ofile"
6979with_gnu_ld="$lt_cv_prog_gnu_ld"
6980
6981if test -n "$ac_tool_prefix"; then
6982  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6983set dummy ${ac_tool_prefix}ar; ac_word=$2
6984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6986if test "${ac_cv_prog_AR+set}" = set; then
6987  echo $ECHO_N "(cached) $ECHO_C" >&6
6988else
6989  if test -n "$AR"; then
6990  ac_cv_prog_AR="$AR" # Let the user override the test.
6991else
6992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993for as_dir in $PATH
6994do
6995  IFS=$as_save_IFS
6996  test -z "$as_dir" && as_dir=.
6997  for ac_exec_ext in '' $ac_executable_extensions; do
6998  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6999    ac_cv_prog_AR="${ac_tool_prefix}ar"
7000    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001    break 2
7002  fi
7003done
7004done
7005IFS=$as_save_IFS
7006
7007fi
7008fi
7009AR=$ac_cv_prog_AR
7010if test -n "$AR"; then
7011  { echo "$as_me:$LINENO: result: $AR" >&5
7012echo "${ECHO_T}$AR" >&6; }
7013else
7014  { echo "$as_me:$LINENO: result: no" >&5
7015echo "${ECHO_T}no" >&6; }
7016fi
7017
7018
7019fi
7020if test -z "$ac_cv_prog_AR"; then
7021  ac_ct_AR=$AR
7022  # Extract the first word of "ar", so it can be a program name with args.
7023set dummy ar; ac_word=$2
7024{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7026if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7027  echo $ECHO_N "(cached) $ECHO_C" >&6
7028else
7029  if test -n "$ac_ct_AR"; then
7030  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7031else
7032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033for as_dir in $PATH
7034do
7035  IFS=$as_save_IFS
7036  test -z "$as_dir" && as_dir=.
7037  for ac_exec_ext in '' $ac_executable_extensions; do
7038  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7039    ac_cv_prog_ac_ct_AR="ar"
7040    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7041    break 2
7042  fi
7043done
7044done
7045IFS=$as_save_IFS
7046
7047fi
7048fi
7049ac_ct_AR=$ac_cv_prog_ac_ct_AR
7050if test -n "$ac_ct_AR"; then
7051  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7052echo "${ECHO_T}$ac_ct_AR" >&6; }
7053else
7054  { echo "$as_me:$LINENO: result: no" >&5
7055echo "${ECHO_T}no" >&6; }
7056fi
7057
7058  if test "x$ac_ct_AR" = x; then
7059    AR="false"
7060  else
7061    case $cross_compiling:$ac_tool_warned in
7062yes:)
7063{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7064whose name does not start with the host triplet.  If you think this
7065configuration is useful to you, please write to autoconf@gnu.org." >&5
7066echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7067whose name does not start with the host triplet.  If you think this
7068configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7069ac_tool_warned=yes ;;
7070esac
7071    AR=$ac_ct_AR
7072  fi
7073else
7074  AR="$ac_cv_prog_AR"
7075fi
7076
7077if test -n "$ac_tool_prefix"; then
7078  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7079set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7080{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082if test "${ac_cv_prog_RANLIB+set}" = set; then
7083  echo $ECHO_N "(cached) $ECHO_C" >&6
7084else
7085  if test -n "$RANLIB"; then
7086  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7087else
7088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089for as_dir in $PATH
7090do
7091  IFS=$as_save_IFS
7092  test -z "$as_dir" && as_dir=.
7093  for ac_exec_ext in '' $ac_executable_extensions; do
7094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7095    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7096    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7097    break 2
7098  fi
7099done
7100done
7101IFS=$as_save_IFS
7102
7103fi
7104fi
7105RANLIB=$ac_cv_prog_RANLIB
7106if test -n "$RANLIB"; then
7107  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7108echo "${ECHO_T}$RANLIB" >&6; }
7109else
7110  { echo "$as_me:$LINENO: result: no" >&5
7111echo "${ECHO_T}no" >&6; }
7112fi
7113
7114
7115fi
7116if test -z "$ac_cv_prog_RANLIB"; then
7117  ac_ct_RANLIB=$RANLIB
7118  # Extract the first word of "ranlib", so it can be a program name with args.
7119set dummy ranlib; ac_word=$2
7120{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7122if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7123  echo $ECHO_N "(cached) $ECHO_C" >&6
7124else
7125  if test -n "$ac_ct_RANLIB"; then
7126  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7127else
7128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129for as_dir in $PATH
7130do
7131  IFS=$as_save_IFS
7132  test -z "$as_dir" && as_dir=.
7133  for ac_exec_ext in '' $ac_executable_extensions; do
7134  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7135    ac_cv_prog_ac_ct_RANLIB="ranlib"
7136    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7137    break 2
7138  fi
7139done
7140done
7141IFS=$as_save_IFS
7142
7143fi
7144fi
7145ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7146if test -n "$ac_ct_RANLIB"; then
7147  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7148echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7149else
7150  { echo "$as_me:$LINENO: result: no" >&5
7151echo "${ECHO_T}no" >&6; }
7152fi
7153
7154  if test "x$ac_ct_RANLIB" = x; then
7155    RANLIB=":"
7156  else
7157    case $cross_compiling:$ac_tool_warned in
7158yes:)
7159{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7160whose name does not start with the host triplet.  If you think this
7161configuration is useful to you, please write to autoconf@gnu.org." >&5
7162echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7163whose name does not start with the host triplet.  If you think this
7164configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7165ac_tool_warned=yes ;;
7166esac
7167    RANLIB=$ac_ct_RANLIB
7168  fi
7169else
7170  RANLIB="$ac_cv_prog_RANLIB"
7171fi
7172
7173if test -n "$ac_tool_prefix"; then
7174  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7175set dummy ${ac_tool_prefix}strip; ac_word=$2
7176{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7178if test "${ac_cv_prog_STRIP+set}" = set; then
7179  echo $ECHO_N "(cached) $ECHO_C" >&6
7180else
7181  if test -n "$STRIP"; then
7182  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7183else
7184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185for as_dir in $PATH
7186do
7187  IFS=$as_save_IFS
7188  test -z "$as_dir" && as_dir=.
7189  for ac_exec_ext in '' $ac_executable_extensions; do
7190  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7191    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7192    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7193    break 2
7194  fi
7195done
7196done
7197IFS=$as_save_IFS
7198
7199fi
7200fi
7201STRIP=$ac_cv_prog_STRIP
7202if test -n "$STRIP"; then
7203  { echo "$as_me:$LINENO: result: $STRIP" >&5
7204echo "${ECHO_T}$STRIP" >&6; }
7205else
7206  { echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6; }
7208fi
7209
7210
7211fi
7212if test -z "$ac_cv_prog_STRIP"; then
7213  ac_ct_STRIP=$STRIP
7214  # Extract the first word of "strip", so it can be a program name with args.
7215set dummy strip; ac_word=$2
7216{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7218if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7219  echo $ECHO_N "(cached) $ECHO_C" >&6
7220else
7221  if test -n "$ac_ct_STRIP"; then
7222  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7223else
7224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225for as_dir in $PATH
7226do
7227  IFS=$as_save_IFS
7228  test -z "$as_dir" && as_dir=.
7229  for ac_exec_ext in '' $ac_executable_extensions; do
7230  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7231    ac_cv_prog_ac_ct_STRIP="strip"
7232    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233    break 2
7234  fi
7235done
7236done
7237IFS=$as_save_IFS
7238
7239fi
7240fi
7241ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7242if test -n "$ac_ct_STRIP"; then
7243  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7244echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7245else
7246  { echo "$as_me:$LINENO: result: no" >&5
7247echo "${ECHO_T}no" >&6; }
7248fi
7249
7250  if test "x$ac_ct_STRIP" = x; then
7251    STRIP=":"
7252  else
7253    case $cross_compiling:$ac_tool_warned in
7254yes:)
7255{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7256whose name does not start with the host triplet.  If you think this
7257configuration is useful to you, please write to autoconf@gnu.org." >&5
7258echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7259whose name does not start with the host triplet.  If you think this
7260configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7261ac_tool_warned=yes ;;
7262esac
7263    STRIP=$ac_ct_STRIP
7264  fi
7265else
7266  STRIP="$ac_cv_prog_STRIP"
7267fi
7268
7269
7270old_CC="$CC"
7271old_CFLAGS="$CFLAGS"
7272
7273# Set sane defaults for various variables
7274test -z "$AR" && AR=ar
7275test -z "$AR_FLAGS" && AR_FLAGS=cru
7276test -z "$AS" && AS=as
7277test -z "$CC" && CC=cc
7278test -z "$LTCC" && LTCC=$CC
7279test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7280test -z "$DLLTOOL" && DLLTOOL=dlltool
7281test -z "$LD" && LD=ld
7282test -z "$LN_S" && LN_S="ln -s"
7283test -z "$MAGIC_CMD" && MAGIC_CMD=file
7284test -z "$NM" && NM=nm
7285test -z "$SED" && SED=sed
7286test -z "$OBJDUMP" && OBJDUMP=objdump
7287test -z "$RANLIB" && RANLIB=:
7288test -z "$STRIP" && STRIP=:
7289test -z "$ac_objext" && ac_objext=o
7290
7291# Determine commands to create old-style static archives.
7292old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7293old_postinstall_cmds='chmod 644 $oldlib'
7294old_postuninstall_cmds=
7295
7296if test -n "$RANLIB"; then
7297  case $host_os in
7298  openbsd*)
7299    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7300    ;;
7301  *)
7302    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7303    ;;
7304  esac
7305  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7306fi
7307
7308for cc_temp in $compiler""; do
7309  case $cc_temp in
7310    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7311    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7312    \-*) ;;
7313    *) break;;
7314  esac
7315done
7316cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7317
7318
7319# Only perform the check for file, if the check method requires it
7320case $deplibs_check_method in
7321file_magic*)
7322  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7323    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7324echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7325if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7326  echo $ECHO_N "(cached) $ECHO_C" >&6
7327else
7328  case $MAGIC_CMD in
7329[\\/*] |  ?:[\\/]*)
7330  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7331  ;;
7332*)
7333  lt_save_MAGIC_CMD="$MAGIC_CMD"
7334  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7335  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7336  for ac_dir in $ac_dummy; do
7337    IFS="$lt_save_ifs"
7338    test -z "$ac_dir" && ac_dir=.
7339    if test -f $ac_dir/${ac_tool_prefix}file; then
7340      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7341      if test -n "$file_magic_test_file"; then
7342	case $deplibs_check_method in
7343	"file_magic "*)
7344	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7345	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7346	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7347	    $EGREP "$file_magic_regex" > /dev/null; then
7348	    :
7349	  else
7350	    cat <<EOF 1>&2
7351
7352*** Warning: the command libtool uses to detect shared libraries,
7353*** $file_magic_cmd, produces output that libtool cannot recognize.
7354*** The result is that libtool may fail to recognize shared libraries
7355*** as such.  This will affect the creation of libtool libraries that
7356*** depend on shared libraries, but programs linked with such libtool
7357*** libraries will work regardless of this problem.  Nevertheless, you
7358*** may want to report the problem to your system manager and/or to
7359*** bug-libtool@gnu.org
7360
7361EOF
7362	  fi ;;
7363	esac
7364      fi
7365      break
7366    fi
7367  done
7368  IFS="$lt_save_ifs"
7369  MAGIC_CMD="$lt_save_MAGIC_CMD"
7370  ;;
7371esac
7372fi
7373
7374MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7375if test -n "$MAGIC_CMD"; then
7376  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7377echo "${ECHO_T}$MAGIC_CMD" >&6; }
7378else
7379  { echo "$as_me:$LINENO: result: no" >&5
7380echo "${ECHO_T}no" >&6; }
7381fi
7382
7383if test -z "$lt_cv_path_MAGIC_CMD"; then
7384  if test -n "$ac_tool_prefix"; then
7385    { echo "$as_me:$LINENO: checking for file" >&5
7386echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7387if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7388  echo $ECHO_N "(cached) $ECHO_C" >&6
7389else
7390  case $MAGIC_CMD in
7391[\\/*] |  ?:[\\/]*)
7392  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7393  ;;
7394*)
7395  lt_save_MAGIC_CMD="$MAGIC_CMD"
7396  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7397  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7398  for ac_dir in $ac_dummy; do
7399    IFS="$lt_save_ifs"
7400    test -z "$ac_dir" && ac_dir=.
7401    if test -f $ac_dir/file; then
7402      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7403      if test -n "$file_magic_test_file"; then
7404	case $deplibs_check_method in
7405	"file_magic "*)
7406	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7407	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7408	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7409	    $EGREP "$file_magic_regex" > /dev/null; then
7410	    :
7411	  else
7412	    cat <<EOF 1>&2
7413
7414*** Warning: the command libtool uses to detect shared libraries,
7415*** $file_magic_cmd, produces output that libtool cannot recognize.
7416*** The result is that libtool may fail to recognize shared libraries
7417*** as such.  This will affect the creation of libtool libraries that
7418*** depend on shared libraries, but programs linked with such libtool
7419*** libraries will work regardless of this problem.  Nevertheless, you
7420*** may want to report the problem to your system manager and/or to
7421*** bug-libtool@gnu.org
7422
7423EOF
7424	  fi ;;
7425	esac
7426      fi
7427      break
7428    fi
7429  done
7430  IFS="$lt_save_ifs"
7431  MAGIC_CMD="$lt_save_MAGIC_CMD"
7432  ;;
7433esac
7434fi
7435
7436MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7437if test -n "$MAGIC_CMD"; then
7438  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7439echo "${ECHO_T}$MAGIC_CMD" >&6; }
7440else
7441  { echo "$as_me:$LINENO: result: no" >&5
7442echo "${ECHO_T}no" >&6; }
7443fi
7444
7445  else
7446    MAGIC_CMD=:
7447  fi
7448fi
7449
7450  fi
7451  ;;
7452esac
7453
7454
7455  case $host_os in
7456    rhapsody* | darwin*)
7457    if test -n "$ac_tool_prefix"; then
7458  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7459set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7460{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7462if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7463  echo $ECHO_N "(cached) $ECHO_C" >&6
7464else
7465  if test -n "$DSYMUTIL"; then
7466  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7467else
7468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469for as_dir in $PATH
7470do
7471  IFS=$as_save_IFS
7472  test -z "$as_dir" && as_dir=.
7473  for ac_exec_ext in '' $ac_executable_extensions; do
7474  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7475    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7476    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477    break 2
7478  fi
7479done
7480done
7481IFS=$as_save_IFS
7482
7483fi
7484fi
7485DSYMUTIL=$ac_cv_prog_DSYMUTIL
7486if test -n "$DSYMUTIL"; then
7487  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7488echo "${ECHO_T}$DSYMUTIL" >&6; }
7489else
7490  { echo "$as_me:$LINENO: result: no" >&5
7491echo "${ECHO_T}no" >&6; }
7492fi
7493
7494
7495fi
7496if test -z "$ac_cv_prog_DSYMUTIL"; then
7497  ac_ct_DSYMUTIL=$DSYMUTIL
7498  # Extract the first word of "dsymutil", so it can be a program name with args.
7499set dummy dsymutil; ac_word=$2
7500{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7502if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7503  echo $ECHO_N "(cached) $ECHO_C" >&6
7504else
7505  if test -n "$ac_ct_DSYMUTIL"; then
7506  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7507else
7508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509for as_dir in $PATH
7510do
7511  IFS=$as_save_IFS
7512  test -z "$as_dir" && as_dir=.
7513  for ac_exec_ext in '' $ac_executable_extensions; do
7514  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7515    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7516    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7517    break 2
7518  fi
7519done
7520done
7521IFS=$as_save_IFS
7522
7523fi
7524fi
7525ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7526if test -n "$ac_ct_DSYMUTIL"; then
7527  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7528echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7529else
7530  { echo "$as_me:$LINENO: result: no" >&5
7531echo "${ECHO_T}no" >&6; }
7532fi
7533
7534  if test "x$ac_ct_DSYMUTIL" = x; then
7535    DSYMUTIL=":"
7536  else
7537    case $cross_compiling:$ac_tool_warned in
7538yes:)
7539{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7540whose name does not start with the host triplet.  If you think this
7541configuration is useful to you, please write to autoconf@gnu.org." >&5
7542echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7543whose name does not start with the host triplet.  If you think this
7544configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7545ac_tool_warned=yes ;;
7546esac
7547    DSYMUTIL=$ac_ct_DSYMUTIL
7548  fi
7549else
7550  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7551fi
7552
7553    if test -n "$ac_tool_prefix"; then
7554  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7555set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7556{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7558if test "${ac_cv_prog_NMEDIT+set}" = set; then
7559  echo $ECHO_N "(cached) $ECHO_C" >&6
7560else
7561  if test -n "$NMEDIT"; then
7562  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7563else
7564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565for as_dir in $PATH
7566do
7567  IFS=$as_save_IFS
7568  test -z "$as_dir" && as_dir=.
7569  for ac_exec_ext in '' $ac_executable_extensions; do
7570  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7571    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7572    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573    break 2
7574  fi
7575done
7576done
7577IFS=$as_save_IFS
7578
7579fi
7580fi
7581NMEDIT=$ac_cv_prog_NMEDIT
7582if test -n "$NMEDIT"; then
7583  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7584echo "${ECHO_T}$NMEDIT" >&6; }
7585else
7586  { echo "$as_me:$LINENO: result: no" >&5
7587echo "${ECHO_T}no" >&6; }
7588fi
7589
7590
7591fi
7592if test -z "$ac_cv_prog_NMEDIT"; then
7593  ac_ct_NMEDIT=$NMEDIT
7594  # Extract the first word of "nmedit", so it can be a program name with args.
7595set dummy nmedit; ac_word=$2
7596{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7598if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7599  echo $ECHO_N "(cached) $ECHO_C" >&6
7600else
7601  if test -n "$ac_ct_NMEDIT"; then
7602  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7603else
7604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605for as_dir in $PATH
7606do
7607  IFS=$as_save_IFS
7608  test -z "$as_dir" && as_dir=.
7609  for ac_exec_ext in '' $ac_executable_extensions; do
7610  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7611    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7612    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613    break 2
7614  fi
7615done
7616done
7617IFS=$as_save_IFS
7618
7619fi
7620fi
7621ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7622if test -n "$ac_ct_NMEDIT"; then
7623  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7624echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7625else
7626  { echo "$as_me:$LINENO: result: no" >&5
7627echo "${ECHO_T}no" >&6; }
7628fi
7629
7630  if test "x$ac_ct_NMEDIT" = x; then
7631    NMEDIT=":"
7632  else
7633    case $cross_compiling:$ac_tool_warned in
7634yes:)
7635{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7636whose name does not start with the host triplet.  If you think this
7637configuration is useful to you, please write to autoconf@gnu.org." >&5
7638echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7639whose name does not start with the host triplet.  If you think this
7640configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7641ac_tool_warned=yes ;;
7642esac
7643    NMEDIT=$ac_ct_NMEDIT
7644  fi
7645else
7646  NMEDIT="$ac_cv_prog_NMEDIT"
7647fi
7648
7649
7650    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7651echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7652if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7653  echo $ECHO_N "(cached) $ECHO_C" >&6
7654else
7655  lt_cv_apple_cc_single_mod=no
7656      if test -z "${LT_MULTI_MODULE}"; then
7657   # By default we will add the -single_module flag. You can override
7658   # by either setting the environment variable LT_MULTI_MODULE
7659   # non-empty at configure time, or by adding -multi_module to the
7660   # link flags.
7661   echo "int foo(void){return 1;}" > conftest.c
7662   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7663     -dynamiclib ${wl}-single_module conftest.c
7664   if test -f libconftest.dylib; then
7665     lt_cv_apple_cc_single_mod=yes
7666     rm -rf libconftest.dylib*
7667   fi
7668   rm conftest.c
7669      fi
7670fi
7671{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7672echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7673    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7674echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7675if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7676  echo $ECHO_N "(cached) $ECHO_C" >&6
7677else
7678  lt_cv_ld_exported_symbols_list=no
7679      save_LDFLAGS=$LDFLAGS
7680      echo "_main" > conftest.sym
7681      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7682      cat >conftest.$ac_ext <<_ACEOF
7683/* confdefs.h.  */
7684_ACEOF
7685cat confdefs.h >>conftest.$ac_ext
7686cat >>conftest.$ac_ext <<_ACEOF
7687/* end confdefs.h.  */
7688
7689int
7690main ()
7691{
7692
7693  ;
7694  return 0;
7695}
7696_ACEOF
7697rm -f conftest.$ac_objext conftest$ac_exeext
7698if { (ac_try="$ac_link"
7699case "(($ac_try" in
7700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7701  *) ac_try_echo=$ac_try;;
7702esac
7703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7704  (eval "$ac_link") 2>conftest.er1
7705  ac_status=$?
7706  grep -v '^ *+' conftest.er1 >conftest.err
7707  rm -f conftest.er1
7708  cat conftest.err >&5
7709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710  (exit $ac_status); } && {
7711	 test -z "$ac_c_werror_flag" ||
7712	 test ! -s conftest.err
7713       } && test -s conftest$ac_exeext &&
7714       $as_test_x conftest$ac_exeext; then
7715  lt_cv_ld_exported_symbols_list=yes
7716else
7717  echo "$as_me: failed program was:" >&5
7718sed 's/^/| /' conftest.$ac_ext >&5
7719
7720	lt_cv_ld_exported_symbols_list=no
7721fi
7722
7723rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7724      conftest$ac_exeext conftest.$ac_ext
7725   LDFLAGS="$save_LDFLAGS"
7726
7727fi
7728{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7729echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7730    case $host_os in
7731    rhapsody* | darwin1.[0123])
7732      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7733    darwin1.*)
7734     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7735    darwin*)
7736      # if running on 10.5 or later, the deployment target defaults
7737      # to the OS version, if on x86, and 10.4, the deployment
7738      # target defaults to 10.4. Don't you love it?
7739      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7740   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7741     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7742   10.[012]*)
7743     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7744   10.*)
7745     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7746      esac
7747    ;;
7748  esac
7749    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7750      _lt_dar_single_mod='$single_module'
7751    fi
7752    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7753      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7754    else
7755      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7756    fi
7757    if test "$DSYMUTIL" != ":"; then
7758      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7759    else
7760      _lt_dsymutil=
7761    fi
7762    ;;
7763  esac
7764
7765
7766enable_dlopen=no
7767enable_win32_dll=yes
7768
7769# Check whether --enable-libtool-lock was given.
7770if test "${enable_libtool_lock+set}" = set; then
7771  enableval=$enable_libtool_lock;
7772fi
7773
7774test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7775
7776
7777# Check whether --with-pic was given.
7778if test "${with_pic+set}" = set; then
7779  withval=$with_pic; pic_mode="$withval"
7780else
7781  pic_mode=default
7782fi
7783
7784test -z "$pic_mode" && pic_mode=default
7785
7786# Use C for the default configuration in the libtool script
7787tagname=
7788lt_save_CC="$CC"
7789ac_ext=c
7790ac_cpp='$CPP $CPPFLAGS'
7791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7793ac_compiler_gnu=$ac_cv_c_compiler_gnu
7794
7795
7796# Source file extension for C test sources.
7797ac_ext=c
7798
7799# Object file extension for compiled C test sources.
7800objext=o
7801objext=$objext
7802
7803# Code to be used in simple compile tests
7804lt_simple_compile_test_code="int some_variable = 0;"
7805
7806# Code to be used in simple link tests
7807lt_simple_link_test_code='int main(){return(0);}'
7808
7809
7810# If no C compiler was specified, use CC.
7811LTCC=${LTCC-"$CC"}
7812
7813# If no C compiler flags were specified, use CFLAGS.
7814LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7815
7816# Allow CC to be a program name with arguments.
7817compiler=$CC
7818
7819
7820# save warnings/boilerplate of simple test code
7821ac_outfile=conftest.$ac_objext
7822echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7823eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7824_lt_compiler_boilerplate=`cat conftest.err`
7825$rm conftest*
7826
7827ac_outfile=conftest.$ac_objext
7828echo "$lt_simple_link_test_code" >conftest.$ac_ext
7829eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7830_lt_linker_boilerplate=`cat conftest.err`
7831$rm -r conftest*
7832
7833
7834
7835lt_prog_compiler_no_builtin_flag=
7836
7837if test "$GCC" = yes; then
7838  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7839
7840
7841{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7842echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7843if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7844  echo $ECHO_N "(cached) $ECHO_C" >&6
7845else
7846  lt_cv_prog_compiler_rtti_exceptions=no
7847  ac_outfile=conftest.$ac_objext
7848   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7849   lt_compiler_flag="-fno-rtti -fno-exceptions"
7850   # Insert the option either (1) after the last *FLAGS variable, or
7851   # (2) before a word containing "conftest.", or (3) at the end.
7852   # Note that $ac_compile itself does not contain backslashes and begins
7853   # with a dollar sign (not a hyphen), so the echo should work correctly.
7854   # The option is referenced via a variable to avoid confusing sed.
7855   lt_compile=`echo "$ac_compile" | $SED \
7856   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7857   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7858   -e 's:$: $lt_compiler_flag:'`
7859   (eval echo "\"\$as_me:7859: $lt_compile\"" >&5)
7860   (eval "$lt_compile" 2>conftest.err)
7861   ac_status=$?
7862   cat conftest.err >&5
7863   echo "$as_me:7863: \$? = $ac_status" >&5
7864   if (exit $ac_status) && test -s "$ac_outfile"; then
7865     # The compiler can only warn and ignore the option if not recognized
7866     # So say no if there are warnings other than the usual output.
7867     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7868     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7869     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7870       lt_cv_prog_compiler_rtti_exceptions=yes
7871     fi
7872   fi
7873   $rm conftest*
7874
7875fi
7876{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7877echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7878
7879if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7880    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7881else
7882    :
7883fi
7884
7885fi
7886
7887lt_prog_compiler_wl=
7888lt_prog_compiler_pic=
7889lt_prog_compiler_static=
7890
7891{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7892echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7893
7894  if test "$GCC" = yes; then
7895    lt_prog_compiler_wl='-Wl,'
7896    lt_prog_compiler_static='-static'
7897
7898    case $host_os in
7899      aix*)
7900      # All AIX code is PIC.
7901      if test "$host_cpu" = ia64; then
7902	# AIX 5 now supports IA64 processor
7903	lt_prog_compiler_static='-Bstatic'
7904      fi
7905      ;;
7906
7907    amigaos*)
7908      # FIXME: we need at least 68020 code to build shared libraries, but
7909      # adding the `-m68020' flag to GCC prevents building anything better,
7910      # like `-m68040'.
7911      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7912      ;;
7913
7914    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7915      # PIC is the default for these OSes.
7916      ;;
7917
7918    mingw* | cygwin* | pw32* | os2*)
7919      # This hack is so that the source file can tell whether it is being
7920      # built for inclusion in a dll (and should export symbols for example).
7921      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7922      # (--disable-auto-import) libraries
7923      lt_prog_compiler_pic='-DDLL_EXPORT'
7924      ;;
7925
7926    darwin* | rhapsody*)
7927      # PIC is the default on this platform
7928      # Common symbols not allowed in MH_DYLIB files
7929      lt_prog_compiler_pic='-fno-common'
7930      ;;
7931
7932    interix[3-9]*)
7933      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7934      # Instead, we relocate shared libraries at runtime.
7935      ;;
7936
7937    msdosdjgpp*)
7938      # Just because we use GCC doesn't mean we suddenly get shared libraries
7939      # on systems that don't support them.
7940      lt_prog_compiler_can_build_shared=no
7941      enable_shared=no
7942      ;;
7943
7944    sysv4*MP*)
7945      if test -d /usr/nec; then
7946	lt_prog_compiler_pic=-Kconform_pic
7947      fi
7948      ;;
7949
7950    hpux*)
7951      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7952      # not for PA HP-UX.
7953      case $host_cpu in
7954      hppa*64*|ia64*)
7955	# +Z the default
7956	;;
7957      *)
7958	lt_prog_compiler_pic='-fPIC'
7959	;;
7960      esac
7961      ;;
7962
7963    *)
7964      lt_prog_compiler_pic='-fPIC'
7965      ;;
7966    esac
7967  else
7968    # PORTME Check for flag to pass linker flags through the system compiler.
7969    case $host_os in
7970    aix*)
7971      lt_prog_compiler_wl='-Wl,'
7972      if test "$host_cpu" = ia64; then
7973	# AIX 5 now supports IA64 processor
7974	lt_prog_compiler_static='-Bstatic'
7975      else
7976	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7977      fi
7978      ;;
7979      darwin*)
7980        # PIC is the default on this platform
7981        # Common symbols not allowed in MH_DYLIB files
7982       case $cc_basename in
7983         xlc*)
7984         lt_prog_compiler_pic='-qnocommon'
7985         lt_prog_compiler_wl='-Wl,'
7986         ;;
7987       esac
7988       ;;
7989
7990    mingw* | cygwin* | pw32* | os2*)
7991      # This hack is so that the source file can tell whether it is being
7992      # built for inclusion in a dll (and should export symbols for example).
7993      lt_prog_compiler_pic='-DDLL_EXPORT'
7994      ;;
7995
7996    hpux9* | hpux10* | hpux11*)
7997      lt_prog_compiler_wl='-Wl,'
7998      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7999      # not for PA HP-UX.
8000      case $host_cpu in
8001      hppa*64*|ia64*)
8002	# +Z the default
8003	;;
8004      *)
8005	lt_prog_compiler_pic='+Z'
8006	;;
8007      esac
8008      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8009      lt_prog_compiler_static='${wl}-a ${wl}archive'
8010      ;;
8011
8012    irix5* | irix6* | nonstopux*)
8013      lt_prog_compiler_wl='-Wl,'
8014      # PIC (with -KPIC) is the default.
8015      lt_prog_compiler_static='-non_shared'
8016      ;;
8017
8018    newsos6)
8019      lt_prog_compiler_pic='-KPIC'
8020      lt_prog_compiler_static='-Bstatic'
8021      ;;
8022
8023    linux* | k*bsd*-gnu)
8024      case $cc_basename in
8025      icc* | ecc*)
8026	lt_prog_compiler_wl='-Wl,'
8027	lt_prog_compiler_pic='-KPIC'
8028	lt_prog_compiler_static='-static'
8029        ;;
8030      pgcc* | pgf77* | pgf90* | pgf95*)
8031        # Portland Group compilers (*not* the Pentium gcc compiler,
8032	# which looks to be a dead project)
8033	lt_prog_compiler_wl='-Wl,'
8034	lt_prog_compiler_pic='-fpic'
8035	lt_prog_compiler_static='-Bstatic'
8036        ;;
8037      ccc*)
8038        lt_prog_compiler_wl='-Wl,'
8039        # All Alpha code is PIC.
8040        lt_prog_compiler_static='-non_shared'
8041        ;;
8042      *)
8043        case `$CC -V 2>&1 | sed 5q` in
8044	*Sun\ C*)
8045	  # Sun C 5.9
8046	  lt_prog_compiler_pic='-KPIC'
8047	  lt_prog_compiler_static='-Bstatic'
8048	  lt_prog_compiler_wl='-Wl,'
8049	  ;;
8050	*Sun\ F*)
8051	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8052	  lt_prog_compiler_pic='-KPIC'
8053	  lt_prog_compiler_static='-Bstatic'
8054	  lt_prog_compiler_wl=''
8055	  ;;
8056	esac
8057	;;
8058      esac
8059      ;;
8060
8061    osf3* | osf4* | osf5*)
8062      lt_prog_compiler_wl='-Wl,'
8063      # All OSF/1 code is PIC.
8064      lt_prog_compiler_static='-non_shared'
8065      ;;
8066
8067    rdos*)
8068      lt_prog_compiler_static='-non_shared'
8069      ;;
8070
8071    solaris*)
8072      lt_prog_compiler_pic='-KPIC'
8073      lt_prog_compiler_static='-Bstatic'
8074      case $cc_basename in
8075      f77* | f90* | f95*)
8076	lt_prog_compiler_wl='-Qoption ld ';;
8077      *)
8078	lt_prog_compiler_wl='-Wl,';;
8079      esac
8080      ;;
8081
8082    sunos4*)
8083      lt_prog_compiler_wl='-Qoption ld '
8084      lt_prog_compiler_pic='-PIC'
8085      lt_prog_compiler_static='-Bstatic'
8086      ;;
8087
8088    sysv4 | sysv4.2uw2* | sysv4.3*)
8089      lt_prog_compiler_wl='-Wl,'
8090      lt_prog_compiler_pic='-KPIC'
8091      lt_prog_compiler_static='-Bstatic'
8092      ;;
8093
8094    sysv4*MP*)
8095      if test -d /usr/nec ;then
8096	lt_prog_compiler_pic='-Kconform_pic'
8097	lt_prog_compiler_static='-Bstatic'
8098      fi
8099      ;;
8100
8101    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8102      lt_prog_compiler_wl='-Wl,'
8103      lt_prog_compiler_pic='-KPIC'
8104      lt_prog_compiler_static='-Bstatic'
8105      ;;
8106
8107    unicos*)
8108      lt_prog_compiler_wl='-Wl,'
8109      lt_prog_compiler_can_build_shared=no
8110      ;;
8111
8112    uts4*)
8113      lt_prog_compiler_pic='-pic'
8114      lt_prog_compiler_static='-Bstatic'
8115      ;;
8116
8117    *)
8118      lt_prog_compiler_can_build_shared=no
8119      ;;
8120    esac
8121  fi
8122
8123{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8124echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8125
8126#
8127# Check to make sure the PIC flag actually works.
8128#
8129if test -n "$lt_prog_compiler_pic"; then
8130
8131{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8132echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8133if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8134  echo $ECHO_N "(cached) $ECHO_C" >&6
8135else
8136  lt_cv_prog_compiler_pic_works=no
8137  ac_outfile=conftest.$ac_objext
8138   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8139   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8140   # Insert the option either (1) after the last *FLAGS variable, or
8141   # (2) before a word containing "conftest.", or (3) at the end.
8142   # Note that $ac_compile itself does not contain backslashes and begins
8143   # with a dollar sign (not a hyphen), so the echo should work correctly.
8144   # The option is referenced via a variable to avoid confusing sed.
8145   lt_compile=`echo "$ac_compile" | $SED \
8146   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8147   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8148   -e 's:$: $lt_compiler_flag:'`
8149   (eval echo "\"\$as_me:8149: $lt_compile\"" >&5)
8150   (eval "$lt_compile" 2>conftest.err)
8151   ac_status=$?
8152   cat conftest.err >&5
8153   echo "$as_me:8153: \$? = $ac_status" >&5
8154   if (exit $ac_status) && test -s "$ac_outfile"; then
8155     # The compiler can only warn and ignore the option if not recognized
8156     # So say no if there are warnings other than the usual output.
8157     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8158     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8159     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8160       lt_cv_prog_compiler_pic_works=yes
8161     fi
8162   fi
8163   $rm conftest*
8164
8165fi
8166{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8167echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8168
8169if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8170    case $lt_prog_compiler_pic in
8171     "" | " "*) ;;
8172     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8173     esac
8174else
8175    lt_prog_compiler_pic=
8176     lt_prog_compiler_can_build_shared=no
8177fi
8178
8179fi
8180case $host_os in
8181  # For platforms which do not support PIC, -DPIC is meaningless:
8182  *djgpp*)
8183    lt_prog_compiler_pic=
8184    ;;
8185  *)
8186    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8187    ;;
8188esac
8189
8190#
8191# Check to make sure the static flag actually works.
8192#
8193wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8194{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8195echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8196if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8197  echo $ECHO_N "(cached) $ECHO_C" >&6
8198else
8199  lt_cv_prog_compiler_static_works=no
8200   save_LDFLAGS="$LDFLAGS"
8201   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8202   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8203   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8204     # The linker can only warn and ignore the option if not recognized
8205     # So say no if there are warnings
8206     if test -s conftest.err; then
8207       # Append any errors to the config.log.
8208       cat conftest.err 1>&5
8209       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8210       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8211       if diff conftest.exp conftest.er2 >/dev/null; then
8212         lt_cv_prog_compiler_static_works=yes
8213       fi
8214     else
8215       lt_cv_prog_compiler_static_works=yes
8216     fi
8217   fi
8218   $rm -r conftest*
8219   LDFLAGS="$save_LDFLAGS"
8220
8221fi
8222{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8223echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8224
8225if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8226    :
8227else
8228    lt_prog_compiler_static=
8229fi
8230
8231
8232{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8233echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8234if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8235  echo $ECHO_N "(cached) $ECHO_C" >&6
8236else
8237  lt_cv_prog_compiler_c_o=no
8238   $rm -r conftest 2>/dev/null
8239   mkdir conftest
8240   cd conftest
8241   mkdir out
8242   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8243
8244   lt_compiler_flag="-o out/conftest2.$ac_objext"
8245   # Insert the option either (1) after the last *FLAGS variable, or
8246   # (2) before a word containing "conftest.", or (3) at the end.
8247   # Note that $ac_compile itself does not contain backslashes and begins
8248   # with a dollar sign (not a hyphen), so the echo should work correctly.
8249   lt_compile=`echo "$ac_compile" | $SED \
8250   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8251   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8252   -e 's:$: $lt_compiler_flag:'`
8253   (eval echo "\"\$as_me:8253: $lt_compile\"" >&5)
8254   (eval "$lt_compile" 2>out/conftest.err)
8255   ac_status=$?
8256   cat out/conftest.err >&5
8257   echo "$as_me:8257: \$? = $ac_status" >&5
8258   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8259   then
8260     # The compiler can only warn and ignore the option if not recognized
8261     # So say no if there are warnings
8262     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8263     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8264     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8265       lt_cv_prog_compiler_c_o=yes
8266     fi
8267   fi
8268   chmod u+w . 2>&5
8269   $rm conftest*
8270   # SGI C++ compiler will create directory out/ii_files/ for
8271   # template instantiation
8272   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8273   $rm out/* && rmdir out
8274   cd ..
8275   rmdir conftest
8276   $rm conftest*
8277
8278fi
8279{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8280echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8281
8282
8283hard_links="nottested"
8284if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8285  # do not overwrite the value of need_locks provided by the user
8286  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8287echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8288  hard_links=yes
8289  $rm conftest*
8290  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8291  touch conftest.a
8292  ln conftest.a conftest.b 2>&5 || hard_links=no
8293  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8294  { echo "$as_me:$LINENO: result: $hard_links" >&5
8295echo "${ECHO_T}$hard_links" >&6; }
8296  if test "$hard_links" = no; then
8297    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8298echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8299    need_locks=warn
8300  fi
8301else
8302  need_locks=no
8303fi
8304
8305{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8306echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8307
8308  runpath_var=
8309  allow_undefined_flag=
8310  enable_shared_with_static_runtimes=no
8311  archive_cmds=
8312  archive_expsym_cmds=
8313  old_archive_From_new_cmds=
8314  old_archive_from_expsyms_cmds=
8315  export_dynamic_flag_spec=
8316  whole_archive_flag_spec=
8317  thread_safe_flag_spec=
8318  hardcode_libdir_flag_spec=
8319  hardcode_libdir_flag_spec_ld=
8320  hardcode_libdir_separator=
8321  hardcode_direct=no
8322  hardcode_minus_L=no
8323  hardcode_shlibpath_var=unsupported
8324  link_all_deplibs=unknown
8325  hardcode_automatic=no
8326  module_cmds=
8327  module_expsym_cmds=
8328  always_export_symbols=no
8329  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8330  # include_expsyms should be a list of space-separated symbols to be *always*
8331  # included in the symbol list
8332  include_expsyms=
8333  # exclude_expsyms can be an extended regexp of symbols to exclude
8334  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8335  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8336  # as well as any symbol that contains `d'.
8337  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8338  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8339  # platforms (ab)use it in PIC code, but their linkers get confused if
8340  # the symbol is explicitly referenced.  Since portable code cannot
8341  # rely on this symbol name, it's probably fine to never include it in
8342  # preloaded symbol tables.
8343  # Exclude shared library initialization/finalization symbols.
8344  extract_expsyms_cmds=
8345  # Just being paranoid about ensuring that cc_basename is set.
8346  for cc_temp in $compiler""; do
8347  case $cc_temp in
8348    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8349    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8350    \-*) ;;
8351    *) break;;
8352  esac
8353done
8354cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8355
8356  case $host_os in
8357  cygwin* | mingw* | pw32*)
8358    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8359    # When not using gcc, we currently assume that we are using
8360    # Microsoft Visual C++.
8361    if test "$GCC" != yes; then
8362      with_gnu_ld=no
8363    fi
8364    ;;
8365  interix*)
8366    # we just hope/assume this is gcc and not c89 (= MSVC++)
8367    with_gnu_ld=yes
8368    ;;
8369  openbsd*)
8370    with_gnu_ld=no
8371    ;;
8372  esac
8373
8374  ld_shlibs=yes
8375  if test "$with_gnu_ld" = yes; then
8376    # If archive_cmds runs LD, not CC, wlarc should be empty
8377    wlarc='${wl}'
8378
8379    # Set some defaults for GNU ld with shared library support. These
8380    # are reset later if shared libraries are not supported. Putting them
8381    # here allows them to be overridden if necessary.
8382    runpath_var=LD_RUN_PATH
8383    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8384    export_dynamic_flag_spec='${wl}--export-dynamic'
8385    # ancient GNU ld didn't support --whole-archive et. al.
8386    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8387	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8388      else
8389  	whole_archive_flag_spec=
8390    fi
8391    supports_anon_versioning=no
8392    case `$LD -v 2>/dev/null` in
8393      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8394      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8395      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8396      *\ 2.11.*) ;; # other 2.11 versions
8397      *) supports_anon_versioning=yes ;;
8398    esac
8399
8400    # See if GNU ld supports shared libraries.
8401    case $host_os in
8402    aix[3-9]*)
8403      # On AIX/PPC, the GNU linker is very broken
8404      if test "$host_cpu" != ia64; then
8405	ld_shlibs=no
8406	cat <<EOF 1>&2
8407
8408*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8409*** to be unable to reliably create shared libraries on AIX.
8410*** Therefore, libtool is disabling shared libraries support.  If you
8411*** really care for shared libraries, you may want to modify your PATH
8412*** so that a non-GNU linker is found, and then restart.
8413
8414EOF
8415      fi
8416      ;;
8417
8418    amigaos*)
8419      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)'
8420      hardcode_libdir_flag_spec='-L$libdir'
8421      hardcode_minus_L=yes
8422
8423      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8424      # that the semantics of dynamic libraries on AmigaOS, at least up
8425      # to version 4, is to share data among multiple programs linked
8426      # with the same dynamic library.  Since this doesn't match the
8427      # behavior of shared libraries on other platforms, we can't use
8428      # them.
8429      ld_shlibs=no
8430      ;;
8431
8432    beos*)
8433      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8434	allow_undefined_flag=unsupported
8435	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8436	# support --undefined.  This deserves some investigation.  FIXME
8437	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8438      else
8439	ld_shlibs=no
8440      fi
8441      ;;
8442
8443    cygwin* | mingw* | pw32*)
8444      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8445      # as there is no search path for DLLs.
8446      hardcode_libdir_flag_spec='-L$libdir'
8447      allow_undefined_flag=unsupported
8448      always_export_symbols=no
8449      enable_shared_with_static_runtimes=yes
8450      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8451
8452      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8453        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8454	# If the export-symbols file already is a .def file (1st line
8455	# is EXPORTS), use it as is; otherwise, prepend...
8456	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8457	  cp $export_symbols $output_objdir/$soname.def;
8458	else
8459	  echo EXPORTS > $output_objdir/$soname.def;
8460	  cat $export_symbols >> $output_objdir/$soname.def;
8461	fi~
8462	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8463      else
8464	ld_shlibs=no
8465      fi
8466      ;;
8467
8468    interix[3-9]*)
8469      hardcode_direct=no
8470      hardcode_shlibpath_var=no
8471      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8472      export_dynamic_flag_spec='${wl}-E'
8473      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8474      # Instead, shared libraries are loaded at an image base (0x10000000 by
8475      # default) and relocated if they conflict, which is a slow very memory
8476      # consuming and fragmenting process.  To avoid this, we pick a random,
8477      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8478      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8479      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8480      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'
8481      ;;
8482
8483    gnu* | linux* | k*bsd*-gnu)
8484      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8485	tmp_addflag=
8486	case $cc_basename,$host_cpu in
8487	pgcc*)				# Portland Group C compiler
8488	  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'
8489	  tmp_addflag=' $pic_flag'
8490	  ;;
8491	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8492	  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'
8493	  tmp_addflag=' $pic_flag -Mnomain' ;;
8494	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8495	  tmp_addflag=' -i_dynamic' ;;
8496	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8497	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8498	ifc* | ifort*)			# Intel Fortran compiler
8499	  tmp_addflag=' -nofor_main' ;;
8500	esac
8501	case `$CC -V 2>&1 | sed 5q` in
8502	*Sun\ C*)			# Sun C 5.9
8503	  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'
8504	  tmp_sharedflag='-G' ;;
8505	*Sun\ F*)			# Sun Fortran 8.3
8506	  tmp_sharedflag='-G' ;;
8507	*)
8508	  tmp_sharedflag='-shared' ;;
8509	esac
8510	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8511
8512	if test $supports_anon_versioning = yes; then
8513	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8514  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8515  $echo "local: *; };" >> $output_objdir/$libname.ver~
8516	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8517	fi
8518	link_all_deplibs=no
8519      else
8520	ld_shlibs=no
8521      fi
8522      ;;
8523
8524    netbsd* | netbsdelf*-gnu)
8525      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8526	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8527	wlarc=
8528      else
8529	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8530	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8531      fi
8532      ;;
8533
8534    solaris*)
8535      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8536	ld_shlibs=no
8537	cat <<EOF 1>&2
8538
8539*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8540*** create shared libraries on Solaris systems.  Therefore, libtool
8541*** is disabling shared libraries support.  We urge you to upgrade GNU
8542*** binutils to release 2.9.1 or newer.  Another option is to modify
8543*** your PATH or compiler configuration so that the native linker is
8544*** used, and then restart.
8545
8546EOF
8547      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8548	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8549	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8550      else
8551	ld_shlibs=no
8552      fi
8553      ;;
8554
8555    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8556      case `$LD -v 2>&1` in
8557        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8558	ld_shlibs=no
8559	cat <<_LT_EOF 1>&2
8560
8561*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8562*** reliably create shared libraries on SCO systems.  Therefore, libtool
8563*** is disabling shared libraries support.  We urge you to upgrade GNU
8564*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8565*** your PATH or compiler configuration so that the native linker is
8566*** used, and then restart.
8567
8568_LT_EOF
8569	;;
8570	*)
8571	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8572	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8573	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8574	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8575	  else
8576	    ld_shlibs=no
8577	  fi
8578	;;
8579      esac
8580      ;;
8581
8582    sunos4*)
8583      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8584      wlarc=
8585      hardcode_direct=yes
8586      hardcode_shlibpath_var=no
8587      ;;
8588
8589    *)
8590      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8591	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8592	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8593      else
8594	ld_shlibs=no
8595      fi
8596      ;;
8597    esac
8598
8599    if test "$ld_shlibs" = no; then
8600      runpath_var=
8601      hardcode_libdir_flag_spec=
8602      export_dynamic_flag_spec=
8603      whole_archive_flag_spec=
8604    fi
8605  else
8606    # PORTME fill in a description of your system's linker (not GNU ld)
8607    case $host_os in
8608    aix3*)
8609      allow_undefined_flag=unsupported
8610      always_export_symbols=yes
8611      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'
8612      # Note: this linker hardcodes the directories in LIBPATH if there
8613      # are no directories specified by -L.
8614      hardcode_minus_L=yes
8615      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8616	# Neither direct hardcoding nor static linking is supported with a
8617	# broken collect2.
8618	hardcode_direct=unsupported
8619      fi
8620      ;;
8621
8622    aix[4-9]*)
8623      if test "$host_cpu" = ia64; then
8624	# On IA64, the linker does run time linking by default, so we don't
8625	# have to do anything special.
8626	aix_use_runtimelinking=no
8627	exp_sym_flag='-Bexport'
8628	no_entry_flag=""
8629      else
8630	# If we're using GNU nm, then we don't want the "-C" option.
8631	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8632	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8633	  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'
8634	else
8635	  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'
8636	fi
8637	aix_use_runtimelinking=no
8638
8639	# Test if we are trying to use run time linking or normal
8640	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8641	# need to do runtime linking.
8642	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8643	  for ld_flag in $LDFLAGS; do
8644  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8645  	    aix_use_runtimelinking=yes
8646  	    break
8647  	  fi
8648	  done
8649	  ;;
8650	esac
8651
8652	exp_sym_flag='-bexport'
8653	no_entry_flag='-bnoentry'
8654      fi
8655
8656      # When large executables or shared objects are built, AIX ld can
8657      # have problems creating the table of contents.  If linking a library
8658      # or program results in "error TOC overflow" add -mminimal-toc to
8659      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8660      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8661
8662      archive_cmds=''
8663      hardcode_direct=yes
8664      hardcode_libdir_separator=':'
8665      link_all_deplibs=yes
8666
8667      if test "$GCC" = yes; then
8668	case $host_os in aix4.[012]|aix4.[012].*)
8669	# We only want to do this on AIX 4.2 and lower, the check
8670	# below for broken collect2 doesn't work under 4.3+
8671	  collect2name=`${CC} -print-prog-name=collect2`
8672	  if test -f "$collect2name" && \
8673  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8674	  then
8675  	  # We have reworked collect2
8676  	  :
8677	  else
8678  	  # We have old collect2
8679  	  hardcode_direct=unsupported
8680  	  # It fails to find uninstalled libraries when the uninstalled
8681  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8682  	  # to unsupported forces relinking
8683  	  hardcode_minus_L=yes
8684  	  hardcode_libdir_flag_spec='-L$libdir'
8685  	  hardcode_libdir_separator=
8686	  fi
8687	  ;;
8688	esac
8689	shared_flag='-shared'
8690	if test "$aix_use_runtimelinking" = yes; then
8691	  shared_flag="$shared_flag "'${wl}-G'
8692	fi
8693      else
8694	# not using gcc
8695	if test "$host_cpu" = ia64; then
8696  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8697  	# chokes on -Wl,-G. The following line is correct:
8698	  shared_flag='-G'
8699	else
8700	  if test "$aix_use_runtimelinking" = yes; then
8701	    shared_flag='${wl}-G'
8702	  else
8703	    shared_flag='${wl}-bM:SRE'
8704	  fi
8705	fi
8706      fi
8707
8708      # It seems that -bexpall does not export symbols beginning with
8709      # underscore (_), so it is better to generate a list of symbols to export.
8710      always_export_symbols=yes
8711      if test "$aix_use_runtimelinking" = yes; then
8712	# Warning - without using the other runtime loading flags (-brtl),
8713	# -berok will link without error, but may produce a broken library.
8714	allow_undefined_flag='-berok'
8715       # Determine the default libpath from the value encoded in an empty executable.
8716       cat >conftest.$ac_ext <<_ACEOF
8717/* confdefs.h.  */
8718_ACEOF
8719cat confdefs.h >>conftest.$ac_ext
8720cat >>conftest.$ac_ext <<_ACEOF
8721/* end confdefs.h.  */
8722
8723int
8724main ()
8725{
8726
8727  ;
8728  return 0;
8729}
8730_ACEOF
8731rm -f conftest.$ac_objext conftest$ac_exeext
8732if { (ac_try="$ac_link"
8733case "(($ac_try" in
8734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735  *) ac_try_echo=$ac_try;;
8736esac
8737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8738  (eval "$ac_link") 2>conftest.er1
8739  ac_status=$?
8740  grep -v '^ *+' conftest.er1 >conftest.err
8741  rm -f conftest.er1
8742  cat conftest.err >&5
8743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744  (exit $ac_status); } && {
8745	 test -z "$ac_c_werror_flag" ||
8746	 test ! -s conftest.err
8747       } && test -s conftest$ac_exeext &&
8748       $as_test_x conftest$ac_exeext; then
8749
8750lt_aix_libpath_sed='
8751    /Import File Strings/,/^$/ {
8752	/^0/ {
8753	    s/^0  *\(.*\)$/\1/
8754	    p
8755	}
8756    }'
8757aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8758# Check for a 64-bit object if we didn't find anything.
8759if test -z "$aix_libpath"; then
8760  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8761fi
8762else
8763  echo "$as_me: failed program was:" >&5
8764sed 's/^/| /' conftest.$ac_ext >&5
8765
8766
8767fi
8768
8769rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8770      conftest$ac_exeext conftest.$ac_ext
8771if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8772
8773       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8774	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"
8775       else
8776	if test "$host_cpu" = ia64; then
8777	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8778	  allow_undefined_flag="-z nodefs"
8779	  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"
8780	else
8781	 # Determine the default libpath from the value encoded in an empty executable.
8782	 cat >conftest.$ac_ext <<_ACEOF
8783/* confdefs.h.  */
8784_ACEOF
8785cat confdefs.h >>conftest.$ac_ext
8786cat >>conftest.$ac_ext <<_ACEOF
8787/* end confdefs.h.  */
8788
8789int
8790main ()
8791{
8792
8793  ;
8794  return 0;
8795}
8796_ACEOF
8797rm -f conftest.$ac_objext conftest$ac_exeext
8798if { (ac_try="$ac_link"
8799case "(($ac_try" in
8800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8801  *) ac_try_echo=$ac_try;;
8802esac
8803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8804  (eval "$ac_link") 2>conftest.er1
8805  ac_status=$?
8806  grep -v '^ *+' conftest.er1 >conftest.err
8807  rm -f conftest.er1
8808  cat conftest.err >&5
8809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810  (exit $ac_status); } && {
8811	 test -z "$ac_c_werror_flag" ||
8812	 test ! -s conftest.err
8813       } && test -s conftest$ac_exeext &&
8814       $as_test_x conftest$ac_exeext; then
8815
8816lt_aix_libpath_sed='
8817    /Import File Strings/,/^$/ {
8818	/^0/ {
8819	    s/^0  *\(.*\)$/\1/
8820	    p
8821	}
8822    }'
8823aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8824# Check for a 64-bit object if we didn't find anything.
8825if test -z "$aix_libpath"; then
8826  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8827fi
8828else
8829  echo "$as_me: failed program was:" >&5
8830sed 's/^/| /' conftest.$ac_ext >&5
8831
8832
8833fi
8834
8835rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8836      conftest$ac_exeext conftest.$ac_ext
8837if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8838
8839	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8840	  # Warning - without using the other run time loading flags,
8841	  # -berok will link without error, but may produce a broken library.
8842	  no_undefined_flag=' ${wl}-bernotok'
8843	  allow_undefined_flag=' ${wl}-berok'
8844	  # Exported symbols can be pulled into shared objects from archives
8845	  whole_archive_flag_spec='$convenience'
8846	  archive_cmds_need_lc=yes
8847	  # This is similar to how AIX traditionally builds its shared libraries.
8848	  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'
8849	fi
8850      fi
8851      ;;
8852
8853    amigaos*)
8854      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)'
8855      hardcode_libdir_flag_spec='-L$libdir'
8856      hardcode_minus_L=yes
8857      # see comment about different semantics on the GNU ld section
8858      ld_shlibs=no
8859      ;;
8860
8861    bsdi[45]*)
8862      export_dynamic_flag_spec=-rdynamic
8863      ;;
8864
8865    cygwin* | mingw* | pw32*)
8866      # When not using gcc, we currently assume that we are using
8867      # Microsoft Visual C++.
8868      # hardcode_libdir_flag_spec is actually meaningless, as there is
8869      # no search path for DLLs.
8870      hardcode_libdir_flag_spec=' '
8871      allow_undefined_flag=unsupported
8872      # Tell ltmain to make .lib files, not .a files.
8873      libext=lib
8874      # Tell ltmain to make .dll files, not .so files.
8875      shrext_cmds=".dll"
8876      # FIXME: Setting linknames here is a bad hack.
8877      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8878      # The linker will automatically build a .lib file if we build a DLL.
8879      old_archive_From_new_cmds='true'
8880      # FIXME: Should let the user specify the lib program.
8881      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8882      fix_srcfile_path='`cygpath -w "$srcfile"`'
8883      enable_shared_with_static_runtimes=yes
8884      ;;
8885
8886    darwin* | rhapsody*)
8887      case $host_os in
8888        rhapsody* | darwin1.[012])
8889         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8890         ;;
8891       *) # Darwin 1.3 on
8892         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8893           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8894         else
8895           case ${MACOSX_DEPLOYMENT_TARGET} in
8896             10.[012])
8897               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8898               ;;
8899             10.*)
8900               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8901               ;;
8902           esac
8903         fi
8904         ;;
8905      esac
8906      archive_cmds_need_lc=no
8907      hardcode_direct=no
8908      hardcode_automatic=yes
8909      hardcode_shlibpath_var=unsupported
8910      whole_archive_flag_spec=''
8911      link_all_deplibs=yes
8912    if test "$GCC" = yes ; then
8913    	output_verbose_link_cmd='echo'
8914        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8915        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8916        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}"
8917        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}"
8918    else
8919      case $cc_basename in
8920        xlc*)
8921         output_verbose_link_cmd='echo'
8922         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8923         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8924          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8925         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}'
8926          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}'
8927          ;;
8928       *)
8929         ld_shlibs=no
8930          ;;
8931      esac
8932    fi
8933      ;;
8934
8935    dgux*)
8936      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8937      hardcode_libdir_flag_spec='-L$libdir'
8938      hardcode_shlibpath_var=no
8939      ;;
8940
8941    freebsd1*)
8942      ld_shlibs=no
8943      ;;
8944
8945    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8946    # support.  Future versions do this automatically, but an explicit c++rt0.o
8947    # does not break anything, and helps significantly (at the cost of a little
8948    # extra space).
8949    freebsd2.2*)
8950      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8951      hardcode_libdir_flag_spec='-R$libdir'
8952      hardcode_direct=yes
8953      hardcode_shlibpath_var=no
8954      ;;
8955
8956    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8957    freebsd2*)
8958      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8959      hardcode_direct=yes
8960      hardcode_minus_L=yes
8961      hardcode_shlibpath_var=no
8962      ;;
8963
8964    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8965    freebsd* | dragonfly*)
8966      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8967      hardcode_libdir_flag_spec='-R$libdir'
8968      hardcode_direct=yes
8969      hardcode_shlibpath_var=no
8970      ;;
8971
8972    hpux9*)
8973      if test "$GCC" = yes; then
8974	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'
8975      else
8976	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'
8977      fi
8978      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8979      hardcode_libdir_separator=:
8980      hardcode_direct=yes
8981
8982      # hardcode_minus_L: Not really in the search PATH,
8983      # but as the default location of the library.
8984      hardcode_minus_L=yes
8985      export_dynamic_flag_spec='${wl}-E'
8986      ;;
8987
8988    hpux10*)
8989      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8990	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8991      else
8992	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8993      fi
8994      if test "$with_gnu_ld" = no; then
8995	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8996	hardcode_libdir_separator=:
8997
8998	hardcode_direct=yes
8999	export_dynamic_flag_spec='${wl}-E'
9000
9001	# hardcode_minus_L: Not really in the search PATH,
9002	# but as the default location of the library.
9003	hardcode_minus_L=yes
9004      fi
9005      ;;
9006
9007    hpux11*)
9008      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9009	case $host_cpu in
9010	hppa*64*)
9011	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9012	  ;;
9013	ia64*)
9014	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9015	  ;;
9016	*)
9017	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9018	  ;;
9019	esac
9020      else
9021	case $host_cpu in
9022	hppa*64*)
9023	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9024	  ;;
9025	ia64*)
9026	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9027	  ;;
9028	*)
9029	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9030	  ;;
9031	esac
9032      fi
9033      if test "$with_gnu_ld" = no; then
9034	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9035	hardcode_libdir_separator=:
9036
9037	case $host_cpu in
9038	hppa*64*|ia64*)
9039	  hardcode_libdir_flag_spec_ld='+b $libdir'
9040	  hardcode_direct=no
9041	  hardcode_shlibpath_var=no
9042	  ;;
9043	*)
9044	  hardcode_direct=yes
9045	  export_dynamic_flag_spec='${wl}-E'
9046
9047	  # hardcode_minus_L: Not really in the search PATH,
9048	  # but as the default location of the library.
9049	  hardcode_minus_L=yes
9050	  ;;
9051	esac
9052      fi
9053      ;;
9054
9055    irix5* | irix6* | nonstopux*)
9056      if test "$GCC" = yes; then
9057	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'
9058      else
9059	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'
9060	hardcode_libdir_flag_spec_ld='-rpath $libdir'
9061      fi
9062      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9063      hardcode_libdir_separator=:
9064      link_all_deplibs=yes
9065      ;;
9066
9067    netbsd* | netbsdelf*-gnu)
9068      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9069	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9070      else
9071	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9072      fi
9073      hardcode_libdir_flag_spec='-R$libdir'
9074      hardcode_direct=yes
9075      hardcode_shlibpath_var=no
9076      ;;
9077
9078    newsos6)
9079      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9080      hardcode_direct=yes
9081      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9082      hardcode_libdir_separator=:
9083      hardcode_shlibpath_var=no
9084      ;;
9085
9086    openbsd*)
9087      if test -f /usr/libexec/ld.so; then
9088	hardcode_direct=yes
9089	hardcode_shlibpath_var=no
9090	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9091	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9092	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9093	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9094	  export_dynamic_flag_spec='${wl}-E'
9095	else
9096	  case $host_os in
9097	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9098	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9099	     hardcode_libdir_flag_spec='-R$libdir'
9100	     ;;
9101	   *)
9102	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9103	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9104	     ;;
9105	  esac
9106        fi
9107      else
9108	ld_shlibs=no
9109      fi
9110      ;;
9111
9112    os2*)
9113      hardcode_libdir_flag_spec='-L$libdir'
9114      hardcode_minus_L=yes
9115      allow_undefined_flag=unsupported
9116      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'
9117      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9118      ;;
9119
9120    osf3*)
9121      if test "$GCC" = yes; then
9122	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9123	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'
9124      else
9125	allow_undefined_flag=' -expect_unresolved \*'
9126	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'
9127      fi
9128      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9129      hardcode_libdir_separator=:
9130      ;;
9131
9132    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9133      if test "$GCC" = yes; then
9134	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9135	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'
9136	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9137      else
9138	allow_undefined_flag=' -expect_unresolved \*'
9139	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'
9140	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9141	$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'
9142
9143	# Both c and cxx compiler support -rpath directly
9144	hardcode_libdir_flag_spec='-rpath $libdir'
9145      fi
9146      hardcode_libdir_separator=:
9147      ;;
9148
9149    solaris*)
9150      no_undefined_flag=' -z text'
9151      if test "$GCC" = yes; then
9152	wlarc='${wl}'
9153	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9154	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9155	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9156      else
9157	wlarc=''
9158	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9159	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9160  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9161      fi
9162      hardcode_libdir_flag_spec='-R$libdir'
9163      hardcode_shlibpath_var=no
9164      case $host_os in
9165      solaris2.[0-5] | solaris2.[0-5].*) ;;
9166      *)
9167	# The compiler driver will combine and reorder linker options,
9168	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9169	# but is careful enough not to reorder.
9170 	# Supported since Solaris 2.6 (maybe 2.5.1?)
9171	if test "$GCC" = yes; then
9172	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9173	else
9174	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9175	fi
9176	;;
9177      esac
9178      link_all_deplibs=yes
9179      ;;
9180
9181    sunos4*)
9182      if test "x$host_vendor" = xsequent; then
9183	# Use $CC to link under sequent, because it throws in some extra .o
9184	# files that make .init and .fini sections work.
9185	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9186      else
9187	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9188      fi
9189      hardcode_libdir_flag_spec='-L$libdir'
9190      hardcode_direct=yes
9191      hardcode_minus_L=yes
9192      hardcode_shlibpath_var=no
9193      ;;
9194
9195    sysv4)
9196      case $host_vendor in
9197	sni)
9198	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9199	  hardcode_direct=yes # is this really true???
9200	;;
9201	siemens)
9202	  ## LD is ld it makes a PLAMLIB
9203	  ## CC just makes a GrossModule.
9204	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9205	  reload_cmds='$CC -r -o $output$reload_objs'
9206	  hardcode_direct=no
9207        ;;
9208	motorola)
9209	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9210	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9211	;;
9212      esac
9213      runpath_var='LD_RUN_PATH'
9214      hardcode_shlibpath_var=no
9215      ;;
9216
9217    sysv4.3*)
9218      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9219      hardcode_shlibpath_var=no
9220      export_dynamic_flag_spec='-Bexport'
9221      ;;
9222
9223    sysv4*MP*)
9224      if test -d /usr/nec; then
9225	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9226	hardcode_shlibpath_var=no
9227	runpath_var=LD_RUN_PATH
9228	hardcode_runpath_var=yes
9229	ld_shlibs=yes
9230      fi
9231      ;;
9232
9233    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9234      no_undefined_flag='${wl}-z,text'
9235      archive_cmds_need_lc=no
9236      hardcode_shlibpath_var=no
9237      runpath_var='LD_RUN_PATH'
9238
9239      if test "$GCC" = yes; then
9240	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9241	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9242      else
9243	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9244	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9245      fi
9246      ;;
9247
9248    sysv5* | sco3.2v5* | sco5v6*)
9249      # Note: We can NOT use -z defs as we might desire, because we do not
9250      # link with -lc, and that would cause any symbols used from libc to
9251      # always be unresolved, which means just about no library would
9252      # ever link correctly.  If we're not using GNU ld we use -z text
9253      # though, which does catch some bad symbols but isn't as heavy-handed
9254      # as -z defs.
9255      no_undefined_flag='${wl}-z,text'
9256      allow_undefined_flag='${wl}-z,nodefs'
9257      archive_cmds_need_lc=no
9258      hardcode_shlibpath_var=no
9259      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9260      hardcode_libdir_separator=':'
9261      link_all_deplibs=yes
9262      export_dynamic_flag_spec='${wl}-Bexport'
9263      runpath_var='LD_RUN_PATH'
9264
9265      if test "$GCC" = yes; then
9266	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9267	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9268      else
9269	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9270	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9271      fi
9272      ;;
9273
9274    uts4*)
9275      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9276      hardcode_libdir_flag_spec='-L$libdir'
9277      hardcode_shlibpath_var=no
9278      ;;
9279
9280    *)
9281      ld_shlibs=no
9282      ;;
9283    esac
9284  fi
9285
9286{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9287echo "${ECHO_T}$ld_shlibs" >&6; }
9288test "$ld_shlibs" = no && can_build_shared=no
9289
9290#
9291# Do we need to explicitly link libc?
9292#
9293case "x$archive_cmds_need_lc" in
9294x|xyes)
9295  # Assume -lc should be added
9296  archive_cmds_need_lc=yes
9297
9298  if test "$enable_shared" = yes && test "$GCC" = yes; then
9299    case $archive_cmds in
9300    *'~'*)
9301      # FIXME: we may have to deal with multi-command sequences.
9302      ;;
9303    '$CC '*)
9304      # Test whether the compiler implicitly links with -lc since on some
9305      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9306      # to ld, don't add -lc before -lgcc.
9307      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9308echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9309      $rm conftest*
9310      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9311
9312      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9313  (eval $ac_compile) 2>&5
9314  ac_status=$?
9315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316  (exit $ac_status); } 2>conftest.err; then
9317        soname=conftest
9318        lib=conftest
9319        libobjs=conftest.$ac_objext
9320        deplibs=
9321        wl=$lt_prog_compiler_wl
9322	pic_flag=$lt_prog_compiler_pic
9323        compiler_flags=-v
9324        linker_flags=-v
9325        verstring=
9326        output_objdir=.
9327        libname=conftest
9328        lt_save_allow_undefined_flag=$allow_undefined_flag
9329        allow_undefined_flag=
9330        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9331  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9332  ac_status=$?
9333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334  (exit $ac_status); }
9335        then
9336	  archive_cmds_need_lc=no
9337        else
9338	  archive_cmds_need_lc=yes
9339        fi
9340        allow_undefined_flag=$lt_save_allow_undefined_flag
9341      else
9342        cat conftest.err 1>&5
9343      fi
9344      $rm conftest*
9345      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9346echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9347      ;;
9348    esac
9349  fi
9350  ;;
9351esac
9352
9353{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9354echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9355library_names_spec=
9356libname_spec='lib$name'
9357soname_spec=
9358shrext_cmds=".so"
9359postinstall_cmds=
9360postuninstall_cmds=
9361finish_cmds=
9362finish_eval=
9363shlibpath_var=
9364shlibpath_overrides_runpath=unknown
9365version_type=none
9366dynamic_linker="$host_os ld.so"
9367sys_lib_dlsearch_path_spec="/lib /usr/lib"
9368
9369if test "$GCC" = yes; then
9370  case $host_os in
9371    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9372    *) lt_awk_arg="/^libraries:/" ;;
9373  esac
9374  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9375  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9376    # if the path contains ";" then we assume it to be the separator
9377    # otherwise default to the standard path separator (i.e. ":") - it is
9378    # assumed that no part of a normal pathname contains ";" but that should
9379    # okay in the real world where ";" in dirpaths is itself problematic.
9380    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9381  else
9382    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9383  fi
9384  # Ok, now we have the path, separated by spaces, we can step through it
9385  # and add multilib dir if necessary.
9386  lt_tmp_lt_search_path_spec=
9387  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9388  for lt_sys_path in $lt_search_path_spec; do
9389    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9390      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9391    else
9392      test -d "$lt_sys_path" && \
9393	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9394    fi
9395  done
9396  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9397BEGIN {RS=" "; FS="/|\n";} {
9398  lt_foo="";
9399  lt_count=0;
9400  for (lt_i = NF; lt_i > 0; lt_i--) {
9401    if ($lt_i != "" && $lt_i != ".") {
9402      if ($lt_i == "..") {
9403        lt_count++;
9404      } else {
9405        if (lt_count == 0) {
9406          lt_foo="/" $lt_i lt_foo;
9407        } else {
9408          lt_count--;
9409        }
9410      }
9411    }
9412  }
9413  if (lt_foo != "") { lt_freq[lt_foo]++; }
9414  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9415}'`
9416  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9417else
9418  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9419fi
9420need_lib_prefix=unknown
9421hardcode_into_libs=no
9422
9423# when you set need_version to no, make sure it does not cause -set_version
9424# flags to be left without arguments
9425need_version=unknown
9426
9427case $host_os in
9428aix3*)
9429  version_type=linux
9430  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9431  shlibpath_var=LIBPATH
9432
9433  # AIX 3 has no versioning support, so we append a major version to the name.
9434  soname_spec='${libname}${release}${shared_ext}$major'
9435  ;;
9436
9437aix[4-9]*)
9438  version_type=linux
9439  need_lib_prefix=no
9440  need_version=no
9441  hardcode_into_libs=yes
9442  if test "$host_cpu" = ia64; then
9443    # AIX 5 supports IA64
9444    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9445    shlibpath_var=LD_LIBRARY_PATH
9446  else
9447    # With GCC up to 2.95.x, collect2 would create an import file
9448    # for dependence libraries.  The import file would start with
9449    # the line `#! .'.  This would cause the generated library to
9450    # depend on `.', always an invalid library.  This was fixed in
9451    # development snapshots of GCC prior to 3.0.
9452    case $host_os in
9453      aix4 | aix4.[01] | aix4.[01].*)
9454      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9455	   echo ' yes '
9456	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9457	:
9458      else
9459	can_build_shared=no
9460      fi
9461      ;;
9462    esac
9463    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9464    # soname into executable. Probably we can add versioning support to
9465    # collect2, so additional links can be useful in future.
9466    if test "$aix_use_runtimelinking" = yes; then
9467      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9468      # instead of lib<name>.a to let people know that these are not
9469      # typical AIX shared libraries.
9470      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9471    else
9472      # We preserve .a as extension for shared libraries through AIX4.2
9473      # and later when we are not doing run time linking.
9474      library_names_spec='${libname}${release}.a $libname.a'
9475      soname_spec='${libname}${release}${shared_ext}$major'
9476    fi
9477    shlibpath_var=LIBPATH
9478  fi
9479  ;;
9480
9481amigaos*)
9482  library_names_spec='$libname.ixlibrary $libname.a'
9483  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9484  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'
9485  ;;
9486
9487beos*)
9488  library_names_spec='${libname}${shared_ext}'
9489  dynamic_linker="$host_os ld.so"
9490  shlibpath_var=LIBRARY_PATH
9491  ;;
9492
9493bsdi[45]*)
9494  version_type=linux
9495  need_version=no
9496  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9497  soname_spec='${libname}${release}${shared_ext}$major'
9498  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9499  shlibpath_var=LD_LIBRARY_PATH
9500  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9501  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9502  # the default ld.so.conf also contains /usr/contrib/lib and
9503  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9504  # libtool to hard-code these into programs
9505  ;;
9506
9507cygwin* | mingw* | pw32*)
9508  version_type=windows
9509  shrext_cmds=".dll"
9510  need_version=no
9511  need_lib_prefix=no
9512
9513  case $GCC,$host_os in
9514  yes,cygwin* | yes,mingw* | yes,pw32*)
9515    library_names_spec='$libname.dll.a'
9516    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9517    postinstall_cmds='base_file=`basename \${file}`~
9518      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9519      dldir=$destdir/`dirname \$dlpath`~
9520      test -d \$dldir || mkdir -p \$dldir~
9521      $install_prog $dir/$dlname \$dldir/$dlname~
9522      chmod a+x \$dldir/$dlname'
9523    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9524      dlpath=$dir/\$dldll~
9525       $rm \$dlpath'
9526    shlibpath_overrides_runpath=yes
9527
9528    case $host_os in
9529    cygwin*)
9530      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9531      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9532      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9533      ;;
9534    mingw*)
9535      # MinGW DLLs use traditional 'lib' prefix
9536      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9537      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9538      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9539        # It is most probably a Windows format PATH printed by
9540        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9541        # path with ; separators, and with drive letters. We can handle the
9542        # drive letters (cygwin fileutils understands them), so leave them,
9543        # especially as we might pass files found there to a mingw objdump,
9544        # which wouldn't understand a cygwinified path. Ahh.
9545        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9546      else
9547        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9548      fi
9549      ;;
9550    pw32*)
9551      # pw32 DLLs use 'pw' prefix rather than 'lib'
9552      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9553      ;;
9554    esac
9555    ;;
9556
9557  *)
9558    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9559    ;;
9560  esac
9561  dynamic_linker='Win32 ld.exe'
9562  # FIXME: first we should search . and the directory the executable is in
9563  shlibpath_var=PATH
9564  ;;
9565
9566darwin* | rhapsody*)
9567  dynamic_linker="$host_os dyld"
9568  version_type=darwin
9569  need_lib_prefix=no
9570  need_version=no
9571  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9572  soname_spec='${libname}${release}${major}$shared_ext'
9573  shlibpath_overrides_runpath=yes
9574  shlibpath_var=DYLD_LIBRARY_PATH
9575  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9576
9577  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9578  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9579  ;;
9580
9581dgux*)
9582  version_type=linux
9583  need_lib_prefix=no
9584  need_version=no
9585  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9586  soname_spec='${libname}${release}${shared_ext}$major'
9587  shlibpath_var=LD_LIBRARY_PATH
9588  ;;
9589
9590freebsd1*)
9591  dynamic_linker=no
9592  ;;
9593
9594freebsd* | dragonfly*)
9595  # DragonFly does not have aout.  When/if they implement a new
9596  # versioning mechanism, adjust this.
9597  if test -x /usr/bin/objformat; then
9598    objformat=`/usr/bin/objformat`
9599  else
9600    case $host_os in
9601    freebsd[123]*) objformat=aout ;;
9602    *) objformat=elf ;;
9603    esac
9604  fi
9605  version_type=freebsd-$objformat
9606  case $version_type in
9607    freebsd-elf*)
9608      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9609      need_version=no
9610      need_lib_prefix=no
9611      ;;
9612    freebsd-*)
9613      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9614      need_version=yes
9615      ;;
9616  esac
9617  shlibpath_var=LD_LIBRARY_PATH
9618  case $host_os in
9619  freebsd2*)
9620    shlibpath_overrides_runpath=yes
9621    ;;
9622  freebsd3.[01]* | freebsdelf3.[01]*)
9623    shlibpath_overrides_runpath=yes
9624    hardcode_into_libs=yes
9625    ;;
9626  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9627  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9628    shlibpath_overrides_runpath=no
9629    hardcode_into_libs=yes
9630    ;;
9631  *) # from 4.6 on, and DragonFly
9632    shlibpath_overrides_runpath=yes
9633    hardcode_into_libs=yes
9634    ;;
9635  esac
9636  ;;
9637
9638gnu*)
9639  version_type=linux
9640  need_lib_prefix=no
9641  need_version=no
9642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9643  soname_spec='${libname}${release}${shared_ext}$major'
9644  shlibpath_var=LD_LIBRARY_PATH
9645  hardcode_into_libs=yes
9646  ;;
9647
9648hpux9* | hpux10* | hpux11*)
9649  # Give a soname corresponding to the major version so that dld.sl refuses to
9650  # link against other versions.
9651  version_type=sunos
9652  need_lib_prefix=no
9653  need_version=no
9654  case $host_cpu in
9655  ia64*)
9656    shrext_cmds='.so'
9657    hardcode_into_libs=yes
9658    dynamic_linker="$host_os dld.so"
9659    shlibpath_var=LD_LIBRARY_PATH
9660    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9661    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662    soname_spec='${libname}${release}${shared_ext}$major'
9663    if test "X$HPUX_IA64_MODE" = X32; then
9664      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9665    else
9666      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9667    fi
9668    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9669    ;;
9670   hppa*64*)
9671     shrext_cmds='.sl'
9672     hardcode_into_libs=yes
9673     dynamic_linker="$host_os dld.sl"
9674     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9675     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9676     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9677     soname_spec='${libname}${release}${shared_ext}$major'
9678     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9679     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9680     ;;
9681   *)
9682    shrext_cmds='.sl'
9683    dynamic_linker="$host_os dld.sl"
9684    shlibpath_var=SHLIB_PATH
9685    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9686    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687    soname_spec='${libname}${release}${shared_ext}$major'
9688    ;;
9689  esac
9690  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9691  postinstall_cmds='chmod 555 $lib'
9692  ;;
9693
9694interix[3-9]*)
9695  version_type=linux
9696  need_lib_prefix=no
9697  need_version=no
9698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9699  soname_spec='${libname}${release}${shared_ext}$major'
9700  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9701  shlibpath_var=LD_LIBRARY_PATH
9702  shlibpath_overrides_runpath=no
9703  hardcode_into_libs=yes
9704  ;;
9705
9706irix5* | irix6* | nonstopux*)
9707  case $host_os in
9708    nonstopux*) version_type=nonstopux ;;
9709    *)
9710	if test "$lt_cv_prog_gnu_ld" = yes; then
9711		version_type=linux
9712	else
9713		version_type=irix
9714	fi ;;
9715  esac
9716  need_lib_prefix=no
9717  need_version=no
9718  soname_spec='${libname}${release}${shared_ext}$major'
9719  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9720  case $host_os in
9721  irix5* | nonstopux*)
9722    libsuff= shlibsuff=
9723    ;;
9724  *)
9725    case $LD in # libtool.m4 will add one of these switches to LD
9726    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9727      libsuff= shlibsuff= libmagic=32-bit;;
9728    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9729      libsuff=32 shlibsuff=N32 libmagic=N32;;
9730    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9731      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9732    *) libsuff= shlibsuff= libmagic=never-match;;
9733    esac
9734    ;;
9735  esac
9736  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9737  shlibpath_overrides_runpath=no
9738  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9739  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9740  hardcode_into_libs=yes
9741  ;;
9742
9743# No shared lib support for Linux oldld, aout, or coff.
9744linux*oldld* | linux*aout* | linux*coff*)
9745  dynamic_linker=no
9746  ;;
9747
9748# This must be Linux ELF.
9749linux* | k*bsd*-gnu)
9750  version_type=linux
9751  need_lib_prefix=no
9752  need_version=no
9753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9754  soname_spec='${libname}${release}${shared_ext}$major'
9755  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9756  shlibpath_var=LD_LIBRARY_PATH
9757  shlibpath_overrides_runpath=no
9758  # This implies no fast_install, which is unacceptable.
9759  # Some rework will be needed to allow for fast_install
9760  # before this can be enabled.
9761  hardcode_into_libs=yes
9762
9763  # Append ld.so.conf contents to the search path
9764  if test -f /etc/ld.so.conf; then
9765    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' ' '`
9766    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9767  fi
9768
9769  # We used to test for /lib/ld.so.1 and disable shared libraries on
9770  # powerpc, because MkLinux only supported shared libraries with the
9771  # GNU dynamic linker.  Since this was broken with cross compilers,
9772  # most powerpc-linux boxes support dynamic linking these days and
9773  # people can always --disable-shared, the test was removed, and we
9774  # assume the GNU/Linux dynamic linker is in use.
9775  dynamic_linker='GNU/Linux ld.so'
9776  ;;
9777
9778netbsdelf*-gnu)
9779  version_type=linux
9780  need_lib_prefix=no
9781  need_version=no
9782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9783  soname_spec='${libname}${release}${shared_ext}$major'
9784  shlibpath_var=LD_LIBRARY_PATH
9785  shlibpath_overrides_runpath=no
9786  hardcode_into_libs=yes
9787  dynamic_linker='NetBSD ld.elf_so'
9788  ;;
9789
9790netbsd*)
9791  version_type=sunos
9792  need_lib_prefix=no
9793  need_version=no
9794  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9795    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9796    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9797    dynamic_linker='NetBSD (a.out) ld.so'
9798  else
9799    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9800    soname_spec='${libname}${release}${shared_ext}$major'
9801    dynamic_linker='NetBSD ld.elf_so'
9802  fi
9803  shlibpath_var=LD_LIBRARY_PATH
9804  shlibpath_overrides_runpath=yes
9805  hardcode_into_libs=yes
9806  ;;
9807
9808newsos6)
9809  version_type=linux
9810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9811  shlibpath_var=LD_LIBRARY_PATH
9812  shlibpath_overrides_runpath=yes
9813  ;;
9814
9815nto-qnx*)
9816  version_type=linux
9817  need_lib_prefix=no
9818  need_version=no
9819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9820  soname_spec='${libname}${release}${shared_ext}$major'
9821  shlibpath_var=LD_LIBRARY_PATH
9822  shlibpath_overrides_runpath=yes
9823  ;;
9824
9825openbsd*)
9826  version_type=sunos
9827  sys_lib_dlsearch_path_spec="/usr/lib"
9828  need_lib_prefix=no
9829  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9830  case $host_os in
9831    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9832    *)                         need_version=no  ;;
9833  esac
9834  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9835  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9836  shlibpath_var=LD_LIBRARY_PATH
9837  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9838    case $host_os in
9839      openbsd2.[89] | openbsd2.[89].*)
9840	shlibpath_overrides_runpath=no
9841	;;
9842      *)
9843	shlibpath_overrides_runpath=yes
9844	;;
9845      esac
9846  else
9847    shlibpath_overrides_runpath=yes
9848  fi
9849  ;;
9850
9851os2*)
9852  libname_spec='$name'
9853  shrext_cmds=".dll"
9854  need_lib_prefix=no
9855  library_names_spec='$libname${shared_ext} $libname.a'
9856  dynamic_linker='OS/2 ld.exe'
9857  shlibpath_var=LIBPATH
9858  ;;
9859
9860osf3* | osf4* | osf5*)
9861  version_type=osf
9862  need_lib_prefix=no
9863  need_version=no
9864  soname_spec='${libname}${release}${shared_ext}$major'
9865  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866  shlibpath_var=LD_LIBRARY_PATH
9867  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9868  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9869  ;;
9870
9871rdos*)
9872  dynamic_linker=no
9873  ;;
9874
9875solaris*)
9876  version_type=linux
9877  need_lib_prefix=no
9878  need_version=no
9879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9880  soname_spec='${libname}${release}${shared_ext}$major'
9881  shlibpath_var=LD_LIBRARY_PATH
9882  shlibpath_overrides_runpath=yes
9883  hardcode_into_libs=yes
9884  # ldd complains unless libraries are executable
9885  postinstall_cmds='chmod +x $lib'
9886  ;;
9887
9888sunos4*)
9889  version_type=sunos
9890  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9891  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9892  shlibpath_var=LD_LIBRARY_PATH
9893  shlibpath_overrides_runpath=yes
9894  if test "$with_gnu_ld" = yes; then
9895    need_lib_prefix=no
9896  fi
9897  need_version=yes
9898  ;;
9899
9900sysv4 | sysv4.3*)
9901  version_type=linux
9902  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9903  soname_spec='${libname}${release}${shared_ext}$major'
9904  shlibpath_var=LD_LIBRARY_PATH
9905  case $host_vendor in
9906    sni)
9907      shlibpath_overrides_runpath=no
9908      need_lib_prefix=no
9909      export_dynamic_flag_spec='${wl}-Blargedynsym'
9910      runpath_var=LD_RUN_PATH
9911      ;;
9912    siemens)
9913      need_lib_prefix=no
9914      ;;
9915    motorola)
9916      need_lib_prefix=no
9917      need_version=no
9918      shlibpath_overrides_runpath=no
9919      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9920      ;;
9921  esac
9922  ;;
9923
9924sysv4*MP*)
9925  if test -d /usr/nec ;then
9926    version_type=linux
9927    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9928    soname_spec='$libname${shared_ext}.$major'
9929    shlibpath_var=LD_LIBRARY_PATH
9930  fi
9931  ;;
9932
9933sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9934  version_type=freebsd-elf
9935  need_lib_prefix=no
9936  need_version=no
9937  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9938  soname_spec='${libname}${release}${shared_ext}$major'
9939  shlibpath_var=LD_LIBRARY_PATH
9940  hardcode_into_libs=yes
9941  if test "$with_gnu_ld" = yes; then
9942    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9943    shlibpath_overrides_runpath=no
9944  else
9945    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9946    shlibpath_overrides_runpath=yes
9947    case $host_os in
9948      sco3.2v5*)
9949        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9950	;;
9951    esac
9952  fi
9953  sys_lib_dlsearch_path_spec='/usr/lib'
9954  ;;
9955
9956uts4*)
9957  version_type=linux
9958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9959  soname_spec='${libname}${release}${shared_ext}$major'
9960  shlibpath_var=LD_LIBRARY_PATH
9961  ;;
9962
9963*)
9964  dynamic_linker=no
9965  ;;
9966esac
9967{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9968echo "${ECHO_T}$dynamic_linker" >&6; }
9969test "$dynamic_linker" = no && can_build_shared=no
9970
9971if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9972  echo $ECHO_N "(cached) $ECHO_C" >&6
9973else
9974  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9975fi
9976
9977sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9978if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9979  echo $ECHO_N "(cached) $ECHO_C" >&6
9980else
9981  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9982fi
9983
9984sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9985
9986variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9987if test "$GCC" = yes; then
9988  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9989fi
9990
9991{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9992echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9993hardcode_action=
9994if test -n "$hardcode_libdir_flag_spec" || \
9995   test -n "$runpath_var" || \
9996   test "X$hardcode_automatic" = "Xyes" ; then
9997
9998  # We can hardcode non-existant directories.
9999  if test "$hardcode_direct" != no &&
10000     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10001     # have to relink, otherwise we might link with an installed library
10002     # when we should be linking with a yet-to-be-installed one
10003     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10004     test "$hardcode_minus_L" != no; then
10005    # Linking always hardcodes the temporary library directory.
10006    hardcode_action=relink
10007  else
10008    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10009    hardcode_action=immediate
10010  fi
10011else
10012  # We cannot hardcode anything, or else we can only hardcode existing
10013  # directories.
10014  hardcode_action=unsupported
10015fi
10016{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10017echo "${ECHO_T}$hardcode_action" >&6; }
10018
10019if test "$hardcode_action" = relink; then
10020  # Fast installation is not supported
10021  enable_fast_install=no
10022elif test "$shlibpath_overrides_runpath" = yes ||
10023     test "$enable_shared" = no; then
10024  # Fast installation is not necessary
10025  enable_fast_install=needless
10026fi
10027
10028striplib=
10029old_striplib=
10030{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10031echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10032if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10033  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10034  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10035  { echo "$as_me:$LINENO: result: yes" >&5
10036echo "${ECHO_T}yes" >&6; }
10037else
10038# FIXME - insert some real tests, host_os isn't really good enough
10039  case $host_os in
10040   darwin*)
10041       if test -n "$STRIP" ; then
10042         striplib="$STRIP -x"
10043         old_striplib="$STRIP -S"
10044         { echo "$as_me:$LINENO: result: yes" >&5
10045echo "${ECHO_T}yes" >&6; }
10046       else
10047  { echo "$as_me:$LINENO: result: no" >&5
10048echo "${ECHO_T}no" >&6; }
10049fi
10050       ;;
10051   *)
10052  { echo "$as_me:$LINENO: result: no" >&5
10053echo "${ECHO_T}no" >&6; }
10054    ;;
10055  esac
10056fi
10057
10058if test "x$enable_dlopen" != xyes; then
10059  enable_dlopen=unknown
10060  enable_dlopen_self=unknown
10061  enable_dlopen_self_static=unknown
10062else
10063  lt_cv_dlopen=no
10064  lt_cv_dlopen_libs=
10065
10066  case $host_os in
10067  beos*)
10068    lt_cv_dlopen="load_add_on"
10069    lt_cv_dlopen_libs=
10070    lt_cv_dlopen_self=yes
10071    ;;
10072
10073  mingw* | pw32*)
10074    lt_cv_dlopen="LoadLibrary"
10075    lt_cv_dlopen_libs=
10076   ;;
10077
10078  cygwin*)
10079    lt_cv_dlopen="dlopen"
10080    lt_cv_dlopen_libs=
10081   ;;
10082
10083  darwin*)
10084  # if libdl is installed we need to link against it
10085    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10086echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10087if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10088  echo $ECHO_N "(cached) $ECHO_C" >&6
10089else
10090  ac_check_lib_save_LIBS=$LIBS
10091LIBS="-ldl  $LIBS"
10092cat >conftest.$ac_ext <<_ACEOF
10093/* confdefs.h.  */
10094_ACEOF
10095cat confdefs.h >>conftest.$ac_ext
10096cat >>conftest.$ac_ext <<_ACEOF
10097/* end confdefs.h.  */
10098
10099/* Override any GCC internal prototype to avoid an error.
10100   Use char because int might match the return type of a GCC
10101   builtin and then its argument prototype would still apply.  */
10102#ifdef __cplusplus
10103extern "C"
10104#endif
10105char dlopen ();
10106int
10107main ()
10108{
10109return dlopen ();
10110  ;
10111  return 0;
10112}
10113_ACEOF
10114rm -f conftest.$ac_objext conftest$ac_exeext
10115if { (ac_try="$ac_link"
10116case "(($ac_try" in
10117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118  *) ac_try_echo=$ac_try;;
10119esac
10120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121  (eval "$ac_link") 2>conftest.er1
10122  ac_status=$?
10123  grep -v '^ *+' conftest.er1 >conftest.err
10124  rm -f conftest.er1
10125  cat conftest.err >&5
10126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127  (exit $ac_status); } && {
10128	 test -z "$ac_c_werror_flag" ||
10129	 test ! -s conftest.err
10130       } && test -s conftest$ac_exeext &&
10131       $as_test_x conftest$ac_exeext; then
10132  ac_cv_lib_dl_dlopen=yes
10133else
10134  echo "$as_me: failed program was:" >&5
10135sed 's/^/| /' conftest.$ac_ext >&5
10136
10137	ac_cv_lib_dl_dlopen=no
10138fi
10139
10140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10141      conftest$ac_exeext conftest.$ac_ext
10142LIBS=$ac_check_lib_save_LIBS
10143fi
10144{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10145echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10146if test $ac_cv_lib_dl_dlopen = yes; then
10147  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10148else
10149
10150    lt_cv_dlopen="dyld"
10151    lt_cv_dlopen_libs=
10152    lt_cv_dlopen_self=yes
10153
10154fi
10155
10156   ;;
10157
10158  *)
10159    { echo "$as_me:$LINENO: checking for shl_load" >&5
10160echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10161if test "${ac_cv_func_shl_load+set}" = set; then
10162  echo $ECHO_N "(cached) $ECHO_C" >&6
10163else
10164  cat >conftest.$ac_ext <<_ACEOF
10165/* confdefs.h.  */
10166_ACEOF
10167cat confdefs.h >>conftest.$ac_ext
10168cat >>conftest.$ac_ext <<_ACEOF
10169/* end confdefs.h.  */
10170/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10171   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10172#define shl_load innocuous_shl_load
10173
10174/* System header to define __stub macros and hopefully few prototypes,
10175    which can conflict with char shl_load (); below.
10176    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10177    <limits.h> exists even on freestanding compilers.  */
10178
10179#ifdef __STDC__
10180# include <limits.h>
10181#else
10182# include <assert.h>
10183#endif
10184
10185#undef shl_load
10186
10187/* Override any GCC internal prototype to avoid an error.
10188   Use char because int might match the return type of a GCC
10189   builtin and then its argument prototype would still apply.  */
10190#ifdef __cplusplus
10191extern "C"
10192#endif
10193char shl_load ();
10194/* The GNU C library defines this for functions which it implements
10195    to always fail with ENOSYS.  Some functions are actually named
10196    something starting with __ and the normal name is an alias.  */
10197#if defined __stub_shl_load || defined __stub___shl_load
10198choke me
10199#endif
10200
10201int
10202main ()
10203{
10204return shl_load ();
10205  ;
10206  return 0;
10207}
10208_ACEOF
10209rm -f conftest.$ac_objext conftest$ac_exeext
10210if { (ac_try="$ac_link"
10211case "(($ac_try" in
10212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213  *) ac_try_echo=$ac_try;;
10214esac
10215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10216  (eval "$ac_link") 2>conftest.er1
10217  ac_status=$?
10218  grep -v '^ *+' conftest.er1 >conftest.err
10219  rm -f conftest.er1
10220  cat conftest.err >&5
10221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222  (exit $ac_status); } && {
10223	 test -z "$ac_c_werror_flag" ||
10224	 test ! -s conftest.err
10225       } && test -s conftest$ac_exeext &&
10226       $as_test_x conftest$ac_exeext; then
10227  ac_cv_func_shl_load=yes
10228else
10229  echo "$as_me: failed program was:" >&5
10230sed 's/^/| /' conftest.$ac_ext >&5
10231
10232	ac_cv_func_shl_load=no
10233fi
10234
10235rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10236      conftest$ac_exeext conftest.$ac_ext
10237fi
10238{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10239echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10240if test $ac_cv_func_shl_load = yes; then
10241  lt_cv_dlopen="shl_load"
10242else
10243  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10244echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10245if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10246  echo $ECHO_N "(cached) $ECHO_C" >&6
10247else
10248  ac_check_lib_save_LIBS=$LIBS
10249LIBS="-ldld  $LIBS"
10250cat >conftest.$ac_ext <<_ACEOF
10251/* confdefs.h.  */
10252_ACEOF
10253cat confdefs.h >>conftest.$ac_ext
10254cat >>conftest.$ac_ext <<_ACEOF
10255/* end confdefs.h.  */
10256
10257/* Override any GCC internal prototype to avoid an error.
10258   Use char because int might match the return type of a GCC
10259   builtin and then its argument prototype would still apply.  */
10260#ifdef __cplusplus
10261extern "C"
10262#endif
10263char shl_load ();
10264int
10265main ()
10266{
10267return shl_load ();
10268  ;
10269  return 0;
10270}
10271_ACEOF
10272rm -f conftest.$ac_objext conftest$ac_exeext
10273if { (ac_try="$ac_link"
10274case "(($ac_try" in
10275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10276  *) ac_try_echo=$ac_try;;
10277esac
10278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10279  (eval "$ac_link") 2>conftest.er1
10280  ac_status=$?
10281  grep -v '^ *+' conftest.er1 >conftest.err
10282  rm -f conftest.er1
10283  cat conftest.err >&5
10284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285  (exit $ac_status); } && {
10286	 test -z "$ac_c_werror_flag" ||
10287	 test ! -s conftest.err
10288       } && test -s conftest$ac_exeext &&
10289       $as_test_x conftest$ac_exeext; then
10290  ac_cv_lib_dld_shl_load=yes
10291else
10292  echo "$as_me: failed program was:" >&5
10293sed 's/^/| /' conftest.$ac_ext >&5
10294
10295	ac_cv_lib_dld_shl_load=no
10296fi
10297
10298rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10299      conftest$ac_exeext conftest.$ac_ext
10300LIBS=$ac_check_lib_save_LIBS
10301fi
10302{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10303echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10304if test $ac_cv_lib_dld_shl_load = yes; then
10305  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10306else
10307  { echo "$as_me:$LINENO: checking for dlopen" >&5
10308echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10309if test "${ac_cv_func_dlopen+set}" = set; then
10310  echo $ECHO_N "(cached) $ECHO_C" >&6
10311else
10312  cat >conftest.$ac_ext <<_ACEOF
10313/* confdefs.h.  */
10314_ACEOF
10315cat confdefs.h >>conftest.$ac_ext
10316cat >>conftest.$ac_ext <<_ACEOF
10317/* end confdefs.h.  */
10318/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10319   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10320#define dlopen innocuous_dlopen
10321
10322/* System header to define __stub macros and hopefully few prototypes,
10323    which can conflict with char dlopen (); below.
10324    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10325    <limits.h> exists even on freestanding compilers.  */
10326
10327#ifdef __STDC__
10328# include <limits.h>
10329#else
10330# include <assert.h>
10331#endif
10332
10333#undef dlopen
10334
10335/* Override any GCC internal prototype to avoid an error.
10336   Use char because int might match the return type of a GCC
10337   builtin and then its argument prototype would still apply.  */
10338#ifdef __cplusplus
10339extern "C"
10340#endif
10341char dlopen ();
10342/* The GNU C library defines this for functions which it implements
10343    to always fail with ENOSYS.  Some functions are actually named
10344    something starting with __ and the normal name is an alias.  */
10345#if defined __stub_dlopen || defined __stub___dlopen
10346choke me
10347#endif
10348
10349int
10350main ()
10351{
10352return dlopen ();
10353  ;
10354  return 0;
10355}
10356_ACEOF
10357rm -f conftest.$ac_objext conftest$ac_exeext
10358if { (ac_try="$ac_link"
10359case "(($ac_try" in
10360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361  *) ac_try_echo=$ac_try;;
10362esac
10363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364  (eval "$ac_link") 2>conftest.er1
10365  ac_status=$?
10366  grep -v '^ *+' conftest.er1 >conftest.err
10367  rm -f conftest.er1
10368  cat conftest.err >&5
10369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370  (exit $ac_status); } && {
10371	 test -z "$ac_c_werror_flag" ||
10372	 test ! -s conftest.err
10373       } && test -s conftest$ac_exeext &&
10374       $as_test_x conftest$ac_exeext; then
10375  ac_cv_func_dlopen=yes
10376else
10377  echo "$as_me: failed program was:" >&5
10378sed 's/^/| /' conftest.$ac_ext >&5
10379
10380	ac_cv_func_dlopen=no
10381fi
10382
10383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10384      conftest$ac_exeext conftest.$ac_ext
10385fi
10386{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10387echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10388if test $ac_cv_func_dlopen = yes; then
10389  lt_cv_dlopen="dlopen"
10390else
10391  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10392echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10393if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10394  echo $ECHO_N "(cached) $ECHO_C" >&6
10395else
10396  ac_check_lib_save_LIBS=$LIBS
10397LIBS="-ldl  $LIBS"
10398cat >conftest.$ac_ext <<_ACEOF
10399/* confdefs.h.  */
10400_ACEOF
10401cat confdefs.h >>conftest.$ac_ext
10402cat >>conftest.$ac_ext <<_ACEOF
10403/* end confdefs.h.  */
10404
10405/* Override any GCC internal prototype to avoid an error.
10406   Use char because int might match the return type of a GCC
10407   builtin and then its argument prototype would still apply.  */
10408#ifdef __cplusplus
10409extern "C"
10410#endif
10411char dlopen ();
10412int
10413main ()
10414{
10415return dlopen ();
10416  ;
10417  return 0;
10418}
10419_ACEOF
10420rm -f conftest.$ac_objext conftest$ac_exeext
10421if { (ac_try="$ac_link"
10422case "(($ac_try" in
10423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424  *) ac_try_echo=$ac_try;;
10425esac
10426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427  (eval "$ac_link") 2>conftest.er1
10428  ac_status=$?
10429  grep -v '^ *+' conftest.er1 >conftest.err
10430  rm -f conftest.er1
10431  cat conftest.err >&5
10432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433  (exit $ac_status); } && {
10434	 test -z "$ac_c_werror_flag" ||
10435	 test ! -s conftest.err
10436       } && test -s conftest$ac_exeext &&
10437       $as_test_x conftest$ac_exeext; then
10438  ac_cv_lib_dl_dlopen=yes
10439else
10440  echo "$as_me: failed program was:" >&5
10441sed 's/^/| /' conftest.$ac_ext >&5
10442
10443	ac_cv_lib_dl_dlopen=no
10444fi
10445
10446rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10447      conftest$ac_exeext conftest.$ac_ext
10448LIBS=$ac_check_lib_save_LIBS
10449fi
10450{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10451echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10452if test $ac_cv_lib_dl_dlopen = yes; then
10453  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10454else
10455  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10456echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10457if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10458  echo $ECHO_N "(cached) $ECHO_C" >&6
10459else
10460  ac_check_lib_save_LIBS=$LIBS
10461LIBS="-lsvld  $LIBS"
10462cat >conftest.$ac_ext <<_ACEOF
10463/* confdefs.h.  */
10464_ACEOF
10465cat confdefs.h >>conftest.$ac_ext
10466cat >>conftest.$ac_ext <<_ACEOF
10467/* end confdefs.h.  */
10468
10469/* Override any GCC internal prototype to avoid an error.
10470   Use char because int might match the return type of a GCC
10471   builtin and then its argument prototype would still apply.  */
10472#ifdef __cplusplus
10473extern "C"
10474#endif
10475char dlopen ();
10476int
10477main ()
10478{
10479return dlopen ();
10480  ;
10481  return 0;
10482}
10483_ACEOF
10484rm -f conftest.$ac_objext conftest$ac_exeext
10485if { (ac_try="$ac_link"
10486case "(($ac_try" in
10487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488  *) ac_try_echo=$ac_try;;
10489esac
10490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491  (eval "$ac_link") 2>conftest.er1
10492  ac_status=$?
10493  grep -v '^ *+' conftest.er1 >conftest.err
10494  rm -f conftest.er1
10495  cat conftest.err >&5
10496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497  (exit $ac_status); } && {
10498	 test -z "$ac_c_werror_flag" ||
10499	 test ! -s conftest.err
10500       } && test -s conftest$ac_exeext &&
10501       $as_test_x conftest$ac_exeext; then
10502  ac_cv_lib_svld_dlopen=yes
10503else
10504  echo "$as_me: failed program was:" >&5
10505sed 's/^/| /' conftest.$ac_ext >&5
10506
10507	ac_cv_lib_svld_dlopen=no
10508fi
10509
10510rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10511      conftest$ac_exeext conftest.$ac_ext
10512LIBS=$ac_check_lib_save_LIBS
10513fi
10514{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10515echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10516if test $ac_cv_lib_svld_dlopen = yes; then
10517  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10518else
10519  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10520echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10521if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10522  echo $ECHO_N "(cached) $ECHO_C" >&6
10523else
10524  ac_check_lib_save_LIBS=$LIBS
10525LIBS="-ldld  $LIBS"
10526cat >conftest.$ac_ext <<_ACEOF
10527/* confdefs.h.  */
10528_ACEOF
10529cat confdefs.h >>conftest.$ac_ext
10530cat >>conftest.$ac_ext <<_ACEOF
10531/* end confdefs.h.  */
10532
10533/* Override any GCC internal prototype to avoid an error.
10534   Use char because int might match the return type of a GCC
10535   builtin and then its argument prototype would still apply.  */
10536#ifdef __cplusplus
10537extern "C"
10538#endif
10539char dld_link ();
10540int
10541main ()
10542{
10543return dld_link ();
10544  ;
10545  return 0;
10546}
10547_ACEOF
10548rm -f conftest.$ac_objext conftest$ac_exeext
10549if { (ac_try="$ac_link"
10550case "(($ac_try" in
10551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552  *) ac_try_echo=$ac_try;;
10553esac
10554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555  (eval "$ac_link") 2>conftest.er1
10556  ac_status=$?
10557  grep -v '^ *+' conftest.er1 >conftest.err
10558  rm -f conftest.er1
10559  cat conftest.err >&5
10560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561  (exit $ac_status); } && {
10562	 test -z "$ac_c_werror_flag" ||
10563	 test ! -s conftest.err
10564       } && test -s conftest$ac_exeext &&
10565       $as_test_x conftest$ac_exeext; then
10566  ac_cv_lib_dld_dld_link=yes
10567else
10568  echo "$as_me: failed program was:" >&5
10569sed 's/^/| /' conftest.$ac_ext >&5
10570
10571	ac_cv_lib_dld_dld_link=no
10572fi
10573
10574rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10575      conftest$ac_exeext conftest.$ac_ext
10576LIBS=$ac_check_lib_save_LIBS
10577fi
10578{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10579echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10580if test $ac_cv_lib_dld_dld_link = yes; then
10581  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10582fi
10583
10584
10585fi
10586
10587
10588fi
10589
10590
10591fi
10592
10593
10594fi
10595
10596
10597fi
10598
10599    ;;
10600  esac
10601
10602  if test "x$lt_cv_dlopen" != xno; then
10603    enable_dlopen=yes
10604  else
10605    enable_dlopen=no
10606  fi
10607
10608  case $lt_cv_dlopen in
10609  dlopen)
10610    save_CPPFLAGS="$CPPFLAGS"
10611    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10612
10613    save_LDFLAGS="$LDFLAGS"
10614    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10615
10616    save_LIBS="$LIBS"
10617    LIBS="$lt_cv_dlopen_libs $LIBS"
10618
10619    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10620echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10621if test "${lt_cv_dlopen_self+set}" = set; then
10622  echo $ECHO_N "(cached) $ECHO_C" >&6
10623else
10624  	  if test "$cross_compiling" = yes; then :
10625  lt_cv_dlopen_self=cross
10626else
10627  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10628  lt_status=$lt_dlunknown
10629  cat > conftest.$ac_ext <<EOF
10630#line 10630 "configure"
10631#include "confdefs.h"
10632
10633#if HAVE_DLFCN_H
10634#include <dlfcn.h>
10635#endif
10636
10637#include <stdio.h>
10638
10639#ifdef RTLD_GLOBAL
10640#  define LT_DLGLOBAL		RTLD_GLOBAL
10641#else
10642#  ifdef DL_GLOBAL
10643#    define LT_DLGLOBAL		DL_GLOBAL
10644#  else
10645#    define LT_DLGLOBAL		0
10646#  endif
10647#endif
10648
10649/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10650   find out it does not work in some platform. */
10651#ifndef LT_DLLAZY_OR_NOW
10652#  ifdef RTLD_LAZY
10653#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10654#  else
10655#    ifdef DL_LAZY
10656#      define LT_DLLAZY_OR_NOW		DL_LAZY
10657#    else
10658#      ifdef RTLD_NOW
10659#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10660#      else
10661#        ifdef DL_NOW
10662#          define LT_DLLAZY_OR_NOW	DL_NOW
10663#        else
10664#          define LT_DLLAZY_OR_NOW	0
10665#        endif
10666#      endif
10667#    endif
10668#  endif
10669#endif
10670
10671#ifdef __cplusplus
10672extern "C" void exit (int);
10673#endif
10674
10675void fnord() { int i=42;}
10676int main ()
10677{
10678  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10679  int status = $lt_dlunknown;
10680
10681  if (self)
10682    {
10683      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10684      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10685      /* dlclose (self); */
10686    }
10687  else
10688    puts (dlerror ());
10689
10690    exit (status);
10691}
10692EOF
10693  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10694  (eval $ac_link) 2>&5
10695  ac_status=$?
10696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10698    (./conftest; exit; ) >&5 2>/dev/null
10699    lt_status=$?
10700    case x$lt_status in
10701      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10702      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10703      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10704    esac
10705  else :
10706    # compilation failed
10707    lt_cv_dlopen_self=no
10708  fi
10709fi
10710rm -fr conftest*
10711
10712
10713fi
10714{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10715echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10716
10717    if test "x$lt_cv_dlopen_self" = xyes; then
10718      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10719      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10720echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10721if test "${lt_cv_dlopen_self_static+set}" = set; then
10722  echo $ECHO_N "(cached) $ECHO_C" >&6
10723else
10724  	  if test "$cross_compiling" = yes; then :
10725  lt_cv_dlopen_self_static=cross
10726else
10727  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10728  lt_status=$lt_dlunknown
10729  cat > conftest.$ac_ext <<EOF
10730#line 10730 "configure"
10731#include "confdefs.h"
10732
10733#if HAVE_DLFCN_H
10734#include <dlfcn.h>
10735#endif
10736
10737#include <stdio.h>
10738
10739#ifdef RTLD_GLOBAL
10740#  define LT_DLGLOBAL		RTLD_GLOBAL
10741#else
10742#  ifdef DL_GLOBAL
10743#    define LT_DLGLOBAL		DL_GLOBAL
10744#  else
10745#    define LT_DLGLOBAL		0
10746#  endif
10747#endif
10748
10749/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10750   find out it does not work in some platform. */
10751#ifndef LT_DLLAZY_OR_NOW
10752#  ifdef RTLD_LAZY
10753#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10754#  else
10755#    ifdef DL_LAZY
10756#      define LT_DLLAZY_OR_NOW		DL_LAZY
10757#    else
10758#      ifdef RTLD_NOW
10759#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10760#      else
10761#        ifdef DL_NOW
10762#          define LT_DLLAZY_OR_NOW	DL_NOW
10763#        else
10764#          define LT_DLLAZY_OR_NOW	0
10765#        endif
10766#      endif
10767#    endif
10768#  endif
10769#endif
10770
10771#ifdef __cplusplus
10772extern "C" void exit (int);
10773#endif
10774
10775void fnord() { int i=42;}
10776int main ()
10777{
10778  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10779  int status = $lt_dlunknown;
10780
10781  if (self)
10782    {
10783      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10784      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10785      /* dlclose (self); */
10786    }
10787  else
10788    puts (dlerror ());
10789
10790    exit (status);
10791}
10792EOF
10793  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10794  (eval $ac_link) 2>&5
10795  ac_status=$?
10796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10798    (./conftest; exit; ) >&5 2>/dev/null
10799    lt_status=$?
10800    case x$lt_status in
10801      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10802      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10803      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10804    esac
10805  else :
10806    # compilation failed
10807    lt_cv_dlopen_self_static=no
10808  fi
10809fi
10810rm -fr conftest*
10811
10812
10813fi
10814{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10815echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10816    fi
10817
10818    CPPFLAGS="$save_CPPFLAGS"
10819    LDFLAGS="$save_LDFLAGS"
10820    LIBS="$save_LIBS"
10821    ;;
10822  esac
10823
10824  case $lt_cv_dlopen_self in
10825  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10826  *) enable_dlopen_self=unknown ;;
10827  esac
10828
10829  case $lt_cv_dlopen_self_static in
10830  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10831  *) enable_dlopen_self_static=unknown ;;
10832  esac
10833fi
10834
10835
10836# Report which library types will actually be built
10837{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10838echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10839{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10840echo "${ECHO_T}$can_build_shared" >&6; }
10841
10842{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10843echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10844test "$can_build_shared" = "no" && enable_shared=no
10845
10846# On AIX, shared libraries and static libraries use the same namespace, and
10847# are all built from PIC.
10848case $host_os in
10849aix3*)
10850  test "$enable_shared" = yes && enable_static=no
10851  if test -n "$RANLIB"; then
10852    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10853    postinstall_cmds='$RANLIB $lib'
10854  fi
10855  ;;
10856
10857aix[4-9]*)
10858  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10859    test "$enable_shared" = yes && enable_static=no
10860  fi
10861    ;;
10862esac
10863{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10864echo "${ECHO_T}$enable_shared" >&6; }
10865
10866{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10867echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10868# Make sure either enable_shared or enable_static is yes.
10869test "$enable_shared" = yes || enable_static=yes
10870{ echo "$as_me:$LINENO: result: $enable_static" >&5
10871echo "${ECHO_T}$enable_static" >&6; }
10872
10873# The else clause should only fire when bootstrapping the
10874# libtool distribution, otherwise you forgot to ship ltmain.sh
10875# with your package, and you will get complaints that there are
10876# no rules to generate ltmain.sh.
10877if test -f "$ltmain"; then
10878  # See if we are running on zsh, and set the options which allow our commands through
10879  # without removal of \ escapes.
10880  if test -n "${ZSH_VERSION+set}" ; then
10881    setopt NO_GLOB_SUBST
10882  fi
10883  # Now quote all the things that may contain metacharacters while being
10884  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10885  # variables and quote the copies for generation of the libtool script.
10886  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10887    SED SHELL STRIP \
10888    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10889    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10890    deplibs_check_method reload_flag reload_cmds need_locks \
10891    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10892    lt_cv_sys_global_symbol_to_c_name_address \
10893    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10894    old_postinstall_cmds old_postuninstall_cmds \
10895    compiler \
10896    CC \
10897    LD \
10898    lt_prog_compiler_wl \
10899    lt_prog_compiler_pic \
10900    lt_prog_compiler_static \
10901    lt_prog_compiler_no_builtin_flag \
10902    export_dynamic_flag_spec \
10903    thread_safe_flag_spec \
10904    whole_archive_flag_spec \
10905    enable_shared_with_static_runtimes \
10906    old_archive_cmds \
10907    old_archive_from_new_cmds \
10908    predep_objects \
10909    postdep_objects \
10910    predeps \
10911    postdeps \
10912    compiler_lib_search_path \
10913    compiler_lib_search_dirs \
10914    archive_cmds \
10915    archive_expsym_cmds \
10916    postinstall_cmds \
10917    postuninstall_cmds \
10918    old_archive_from_expsyms_cmds \
10919    allow_undefined_flag \
10920    no_undefined_flag \
10921    export_symbols_cmds \
10922    hardcode_libdir_flag_spec \
10923    hardcode_libdir_flag_spec_ld \
10924    hardcode_libdir_separator \
10925    hardcode_automatic \
10926    module_cmds \
10927    module_expsym_cmds \
10928    lt_cv_prog_compiler_c_o \
10929    fix_srcfile_path \
10930    exclude_expsyms \
10931    include_expsyms; do
10932
10933    case $var in
10934    old_archive_cmds | \
10935    old_archive_from_new_cmds | \
10936    archive_cmds | \
10937    archive_expsym_cmds | \
10938    module_cmds | \
10939    module_expsym_cmds | \
10940    old_archive_from_expsyms_cmds | \
10941    export_symbols_cmds | \
10942    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10943    postinstall_cmds | postuninstall_cmds | \
10944    old_postinstall_cmds | old_postuninstall_cmds | \
10945    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10946      # Double-quote double-evaled strings.
10947      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10948      ;;
10949    *)
10950      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10951      ;;
10952    esac
10953  done
10954
10955  case $lt_echo in
10956  *'\$0 --fallback-echo"')
10957    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10958    ;;
10959  esac
10960
10961cfgfile="${ofile}T"
10962  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10963  $rm -f "$cfgfile"
10964  { echo "$as_me:$LINENO: creating $ofile" >&5
10965echo "$as_me: creating $ofile" >&6;}
10966
10967  cat <<__EOF__ >> "$cfgfile"
10968#! $SHELL
10969
10970# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10971# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10972# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10973#
10974# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10975# Free Software Foundation, Inc.
10976#
10977# This file is part of GNU Libtool:
10978# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10979#
10980# This program is free software; you can redistribute it and/or modify
10981# it under the terms of the GNU General Public License as published by
10982# the Free Software Foundation; either version 2 of the License, or
10983# (at your option) any later version.
10984#
10985# This program is distributed in the hope that it will be useful, but
10986# WITHOUT ANY WARRANTY; without even the implied warranty of
10987# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10988# General Public License for more details.
10989#
10990# You should have received a copy of the GNU General Public License
10991# along with this program; if not, write to the Free Software
10992# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10993#
10994# As a special exception to the GNU General Public License, if you
10995# distribute this file as part of a program that contains a
10996# configuration script generated by Autoconf, you may include it under
10997# the same distribution terms that you use for the rest of that program.
10998
10999# A sed program that does not truncate output.
11000SED=$lt_SED
11001
11002# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11003Xsed="$SED -e 1s/^X//"
11004
11005# The HP-UX ksh and POSIX shell print the target directory to stdout
11006# if CDPATH is set.
11007(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11008
11009# The names of the tagged configurations supported by this script.
11010available_tags=
11011
11012# ### BEGIN LIBTOOL CONFIG
11013
11014# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11015
11016# Shell to use when invoking shell scripts.
11017SHELL=$lt_SHELL
11018
11019# Whether or not to build shared libraries.
11020build_libtool_libs=$enable_shared
11021
11022# Whether or not to build static libraries.
11023build_old_libs=$enable_static
11024
11025# Whether or not to add -lc for building shared libraries.
11026build_libtool_need_lc=$archive_cmds_need_lc
11027
11028# Whether or not to disallow shared libs when runtime libs are static
11029allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11030
11031# Whether or not to optimize for fast installation.
11032fast_install=$enable_fast_install
11033
11034# The host system.
11035host_alias=$host_alias
11036host=$host
11037host_os=$host_os
11038
11039# The build system.
11040build_alias=$build_alias
11041build=$build
11042build_os=$build_os
11043
11044# An echo program that does not interpret backslashes.
11045echo=$lt_echo
11046
11047# The archiver.
11048AR=$lt_AR
11049AR_FLAGS=$lt_AR_FLAGS
11050
11051# A C compiler.
11052LTCC=$lt_LTCC
11053
11054# LTCC compiler flags.
11055LTCFLAGS=$lt_LTCFLAGS
11056
11057# A language-specific compiler.
11058CC=$lt_compiler
11059
11060# Is the compiler the GNU C compiler?
11061with_gcc=$GCC
11062
11063# An ERE matcher.
11064EGREP=$lt_EGREP
11065
11066# The linker used to build libraries.
11067LD=$lt_LD
11068
11069# Whether we need hard or soft links.
11070LN_S=$lt_LN_S
11071
11072# A BSD-compatible nm program.
11073NM=$lt_NM
11074
11075# A symbol stripping program
11076STRIP=$lt_STRIP
11077
11078# Used to examine libraries when file_magic_cmd begins "file"
11079MAGIC_CMD=$MAGIC_CMD
11080
11081# Used on cygwin: DLL creation program.
11082DLLTOOL="$DLLTOOL"
11083
11084# Used on cygwin: object dumper.
11085OBJDUMP="$OBJDUMP"
11086
11087# Used on cygwin: assembler.
11088AS="$AS"
11089
11090# The name of the directory that contains temporary libtool files.
11091objdir=$objdir
11092
11093# How to create reloadable object files.
11094reload_flag=$lt_reload_flag
11095reload_cmds=$lt_reload_cmds
11096
11097# How to pass a linker flag through the compiler.
11098wl=$lt_lt_prog_compiler_wl
11099
11100# Object file suffix (normally "o").
11101objext="$ac_objext"
11102
11103# Old archive suffix (normally "a").
11104libext="$libext"
11105
11106# Shared library suffix (normally ".so").
11107shrext_cmds='$shrext_cmds'
11108
11109# Executable file suffix (normally "").
11110exeext="$exeext"
11111
11112# Additional compiler flags for building library objects.
11113pic_flag=$lt_lt_prog_compiler_pic
11114pic_mode=$pic_mode
11115
11116# What is the maximum length of a command?
11117max_cmd_len=$lt_cv_sys_max_cmd_len
11118
11119# Does compiler simultaneously support -c and -o options?
11120compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11121
11122# Must we lock files when doing compilation?
11123need_locks=$lt_need_locks
11124
11125# Do we need the lib prefix for modules?
11126need_lib_prefix=$need_lib_prefix
11127
11128# Do we need a version for libraries?
11129need_version=$need_version
11130
11131# Whether dlopen is supported.
11132dlopen_support=$enable_dlopen
11133
11134# Whether dlopen of programs is supported.
11135dlopen_self=$enable_dlopen_self
11136
11137# Whether dlopen of statically linked programs is supported.
11138dlopen_self_static=$enable_dlopen_self_static
11139
11140# Compiler flag to prevent dynamic linking.
11141link_static_flag=$lt_lt_prog_compiler_static
11142
11143# Compiler flag to turn off builtin functions.
11144no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11145
11146# Compiler flag to allow reflexive dlopens.
11147export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11148
11149# Compiler flag to generate shared objects directly from archives.
11150whole_archive_flag_spec=$lt_whole_archive_flag_spec
11151
11152# Compiler flag to generate thread-safe objects.
11153thread_safe_flag_spec=$lt_thread_safe_flag_spec
11154
11155# Library versioning type.
11156version_type=$version_type
11157
11158# Format of library name prefix.
11159libname_spec=$lt_libname_spec
11160
11161# List of archive names.  First name is the real one, the rest are links.
11162# The last name is the one that the linker finds with -lNAME.
11163library_names_spec=$lt_library_names_spec
11164
11165# The coded name of the library, if different from the real name.
11166soname_spec=$lt_soname_spec
11167
11168# Commands used to build and install an old-style archive.
11169RANLIB=$lt_RANLIB
11170old_archive_cmds=$lt_old_archive_cmds
11171old_postinstall_cmds=$lt_old_postinstall_cmds
11172old_postuninstall_cmds=$lt_old_postuninstall_cmds
11173
11174# Create an old-style archive from a shared archive.
11175old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11176
11177# Create a temporary old-style archive to link instead of a shared archive.
11178old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11179
11180# Commands used to build and install a shared archive.
11181archive_cmds=$lt_archive_cmds
11182archive_expsym_cmds=$lt_archive_expsym_cmds
11183postinstall_cmds=$lt_postinstall_cmds
11184postuninstall_cmds=$lt_postuninstall_cmds
11185
11186# Commands used to build a loadable module (assumed same as above if empty)
11187module_cmds=$lt_module_cmds
11188module_expsym_cmds=$lt_module_expsym_cmds
11189
11190# Commands to strip libraries.
11191old_striplib=$lt_old_striplib
11192striplib=$lt_striplib
11193
11194# Dependencies to place before the objects being linked to create a
11195# shared library.
11196predep_objects=$lt_predep_objects
11197
11198# Dependencies to place after the objects being linked to create a
11199# shared library.
11200postdep_objects=$lt_postdep_objects
11201
11202# Dependencies to place before the objects being linked to create a
11203# shared library.
11204predeps=$lt_predeps
11205
11206# Dependencies to place after the objects being linked to create a
11207# shared library.
11208postdeps=$lt_postdeps
11209
11210# The directories searched by this compiler when creating a shared
11211# library
11212compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11213
11214# The library search path used internally by the compiler when linking
11215# a shared library.
11216compiler_lib_search_path=$lt_compiler_lib_search_path
11217
11218# Method to check whether dependent libraries are shared objects.
11219deplibs_check_method=$lt_deplibs_check_method
11220
11221# Command to use when deplibs_check_method == file_magic.
11222file_magic_cmd=$lt_file_magic_cmd
11223
11224# Flag that allows shared libraries with undefined symbols to be built.
11225allow_undefined_flag=$lt_allow_undefined_flag
11226
11227# Flag that forces no undefined symbols.
11228no_undefined_flag=$lt_no_undefined_flag
11229
11230# Commands used to finish a libtool library installation in a directory.
11231finish_cmds=$lt_finish_cmds
11232
11233# Same as above, but a single script fragment to be evaled but not shown.
11234finish_eval=$lt_finish_eval
11235
11236# Take the output of nm and produce a listing of raw symbols and C names.
11237global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11238
11239# Transform the output of nm in a proper C declaration
11240global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11241
11242# Transform the output of nm in a C name address pair
11243global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11244
11245# This is the shared library runtime path variable.
11246runpath_var=$runpath_var
11247
11248# This is the shared library path variable.
11249shlibpath_var=$shlibpath_var
11250
11251# Is shlibpath searched before the hard-coded library search path?
11252shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11253
11254# How to hardcode a shared library path into an executable.
11255hardcode_action=$hardcode_action
11256
11257# Whether we should hardcode library paths into libraries.
11258hardcode_into_libs=$hardcode_into_libs
11259
11260# Flag to hardcode \$libdir into a binary during linking.
11261# This must work even if \$libdir does not exist.
11262hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11263
11264# If ld is used when linking, flag to hardcode \$libdir into
11265# a binary during linking. This must work even if \$libdir does
11266# not exist.
11267hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11268
11269# Whether we need a single -rpath flag with a separated argument.
11270hardcode_libdir_separator=$lt_hardcode_libdir_separator
11271
11272# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11273# resulting binary.
11274hardcode_direct=$hardcode_direct
11275
11276# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11277# resulting binary.
11278hardcode_minus_L=$hardcode_minus_L
11279
11280# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11281# the resulting binary.
11282hardcode_shlibpath_var=$hardcode_shlibpath_var
11283
11284# Set to yes if building a shared library automatically hardcodes DIR into the library
11285# and all subsequent libraries and executables linked against it.
11286hardcode_automatic=$hardcode_automatic
11287
11288# Variables whose values should be saved in libtool wrapper scripts and
11289# restored at relink time.
11290variables_saved_for_relink="$variables_saved_for_relink"
11291
11292# Whether libtool must link a program against all its dependency libraries.
11293link_all_deplibs=$link_all_deplibs
11294
11295# Compile-time system search path for libraries
11296sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11297
11298# Run-time system search path for libraries
11299sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11300
11301# Fix the shell variable \$srcfile for the compiler.
11302fix_srcfile_path=$lt_fix_srcfile_path
11303
11304# Set to yes if exported symbols are required.
11305always_export_symbols=$always_export_symbols
11306
11307# The commands to list exported symbols.
11308export_symbols_cmds=$lt_export_symbols_cmds
11309
11310# The commands to extract the exported symbol list from a shared archive.
11311extract_expsyms_cmds=$lt_extract_expsyms_cmds
11312
11313# Symbols that should not be listed in the preloaded symbols.
11314exclude_expsyms=$lt_exclude_expsyms
11315
11316# Symbols that must always be exported.
11317include_expsyms=$lt_include_expsyms
11318
11319# ### END LIBTOOL CONFIG
11320
11321__EOF__
11322
11323
11324  case $host_os in
11325  aix3*)
11326    cat <<\EOF >> "$cfgfile"
11327
11328# AIX sometimes has problems with the GCC collect2 program.  For some
11329# reason, if we set the COLLECT_NAMES environment variable, the problems
11330# vanish in a puff of smoke.
11331if test "X${COLLECT_NAMES+set}" != Xset; then
11332  COLLECT_NAMES=
11333  export COLLECT_NAMES
11334fi
11335EOF
11336    ;;
11337  esac
11338
11339  # We use sed instead of cat because bash on DJGPP gets confused if
11340  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11341  # text mode, it properly converts lines to CR/LF.  This bash problem
11342  # is reportedly fixed, but why not run on old versions too?
11343  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11344
11345  mv -f "$cfgfile" "$ofile" || \
11346    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11347  chmod +x "$ofile"
11348
11349else
11350  # If there is no Makefile yet, we rely on a make rule to execute
11351  # `config.status --recheck' to rerun these tests and create the
11352  # libtool script then.
11353  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11354  if test -f "$ltmain_in"; then
11355    test -f Makefile && make "$ltmain"
11356  fi
11357fi
11358
11359
11360ac_ext=c
11361ac_cpp='$CPP $CPPFLAGS'
11362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11364ac_compiler_gnu=$ac_cv_c_compiler_gnu
11365
11366CC="$lt_save_CC"
11367
11368
11369# Check whether --with-tags was given.
11370if test "${with_tags+set}" = set; then
11371  withval=$with_tags; tagnames="$withval"
11372fi
11373
11374
11375if test -f "$ltmain" && test -n "$tagnames"; then
11376  if test ! -f "${ofile}"; then
11377    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11378echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11379  fi
11380
11381  if test -z "$LTCC"; then
11382    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11383    if test -z "$LTCC"; then
11384      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11385echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11386    else
11387      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11388echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11389    fi
11390  fi
11391  if test -z "$LTCFLAGS"; then
11392    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11393  fi
11394
11395  # Extract list of available tagged configurations in $ofile.
11396  # Note that this assumes the entire list is on one line.
11397  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11398
11399  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11400  for tagname in $tagnames; do
11401    IFS="$lt_save_ifs"
11402    # Check whether tagname contains only valid characters
11403    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11404    "") ;;
11405    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11406echo "$as_me: error: invalid tag name: $tagname" >&2;}
11407   { (exit 1); exit 1; }; }
11408	;;
11409    esac
11410
11411    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11412    then
11413      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11414echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11415   { (exit 1); exit 1; }; }
11416    fi
11417
11418    # Update the list of available tags.
11419    if test -n "$tagname"; then
11420      echo appending configuration tag \"$tagname\" to $ofile
11421
11422      case $tagname in
11423      CXX)
11424	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11425	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11426	    (test "X$CXX" != "Xg++"))) ; then
11427	  ac_ext=cpp
11428ac_cpp='$CXXCPP $CPPFLAGS'
11429ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11430ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11431ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11432
11433
11434
11435
11436archive_cmds_need_lc_CXX=no
11437allow_undefined_flag_CXX=
11438always_export_symbols_CXX=no
11439archive_expsym_cmds_CXX=
11440export_dynamic_flag_spec_CXX=
11441hardcode_direct_CXX=no
11442hardcode_libdir_flag_spec_CXX=
11443hardcode_libdir_flag_spec_ld_CXX=
11444hardcode_libdir_separator_CXX=
11445hardcode_minus_L_CXX=no
11446hardcode_shlibpath_var_CXX=unsupported
11447hardcode_automatic_CXX=no
11448module_cmds_CXX=
11449module_expsym_cmds_CXX=
11450link_all_deplibs_CXX=unknown
11451old_archive_cmds_CXX=$old_archive_cmds
11452no_undefined_flag_CXX=
11453whole_archive_flag_spec_CXX=
11454enable_shared_with_static_runtimes_CXX=no
11455
11456# Dependencies to place before and after the object being linked:
11457predep_objects_CXX=
11458postdep_objects_CXX=
11459predeps_CXX=
11460postdeps_CXX=
11461compiler_lib_search_path_CXX=
11462compiler_lib_search_dirs_CXX=
11463
11464# Source file extension for C++ test sources.
11465ac_ext=cpp
11466
11467# Object file extension for compiled C++ test sources.
11468objext=o
11469objext_CXX=$objext
11470
11471# Code to be used in simple compile tests
11472lt_simple_compile_test_code="int some_variable = 0;"
11473
11474# Code to be used in simple link tests
11475lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11476
11477# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11478
11479# If no C compiler was specified, use CC.
11480LTCC=${LTCC-"$CC"}
11481
11482# If no C compiler flags were specified, use CFLAGS.
11483LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11484
11485# Allow CC to be a program name with arguments.
11486compiler=$CC
11487
11488
11489# save warnings/boilerplate of simple test code
11490ac_outfile=conftest.$ac_objext
11491echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11492eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11493_lt_compiler_boilerplate=`cat conftest.err`
11494$rm conftest*
11495
11496ac_outfile=conftest.$ac_objext
11497echo "$lt_simple_link_test_code" >conftest.$ac_ext
11498eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11499_lt_linker_boilerplate=`cat conftest.err`
11500$rm -r conftest*
11501
11502
11503# Allow CC to be a program name with arguments.
11504lt_save_CC=$CC
11505lt_save_LD=$LD
11506lt_save_GCC=$GCC
11507GCC=$GXX
11508lt_save_with_gnu_ld=$with_gnu_ld
11509lt_save_path_LD=$lt_cv_path_LD
11510if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11511  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11512else
11513  $as_unset lt_cv_prog_gnu_ld
11514fi
11515if test -n "${lt_cv_path_LDCXX+set}"; then
11516  lt_cv_path_LD=$lt_cv_path_LDCXX
11517else
11518  $as_unset lt_cv_path_LD
11519fi
11520test -z "${LDCXX+set}" || LD=$LDCXX
11521CC=${CXX-"c++"}
11522compiler=$CC
11523compiler_CXX=$CC
11524for cc_temp in $compiler""; do
11525  case $cc_temp in
11526    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11527    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11528    \-*) ;;
11529    *) break;;
11530  esac
11531done
11532cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11533
11534
11535# We don't want -fno-exception wen compiling C++ code, so set the
11536# no_builtin_flag separately
11537if test "$GXX" = yes; then
11538  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11539else
11540  lt_prog_compiler_no_builtin_flag_CXX=
11541fi
11542
11543if test "$GXX" = yes; then
11544  # Set up default GNU C++ configuration
11545
11546
11547# Check whether --with-gnu-ld was given.
11548if test "${with_gnu_ld+set}" = set; then
11549  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11550else
11551  with_gnu_ld=no
11552fi
11553
11554ac_prog=ld
11555if test "$GCC" = yes; then
11556  # Check if gcc -print-prog-name=ld gives a path.
11557  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11558echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11559  case $host in
11560  *-*-mingw*)
11561    # gcc leaves a trailing carriage return which upsets mingw
11562    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11563  *)
11564    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11565  esac
11566  case $ac_prog in
11567    # Accept absolute paths.
11568    [\\/]* | ?:[\\/]*)
11569      re_direlt='/[^/][^/]*/\.\./'
11570      # Canonicalize the pathname of ld
11571      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11572      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11573	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11574      done
11575      test -z "$LD" && LD="$ac_prog"
11576      ;;
11577  "")
11578    # If it fails, then pretend we aren't using GCC.
11579    ac_prog=ld
11580    ;;
11581  *)
11582    # If it is relative, then search for the first ld in PATH.
11583    with_gnu_ld=unknown
11584    ;;
11585  esac
11586elif test "$with_gnu_ld" = yes; then
11587  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11588echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11589else
11590  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11591echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11592fi
11593if test "${lt_cv_path_LD+set}" = set; then
11594  echo $ECHO_N "(cached) $ECHO_C" >&6
11595else
11596  if test -z "$LD"; then
11597  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11598  for ac_dir in $PATH; do
11599    IFS="$lt_save_ifs"
11600    test -z "$ac_dir" && ac_dir=.
11601    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11602      lt_cv_path_LD="$ac_dir/$ac_prog"
11603      # Check to see if the program is GNU ld.  I'd rather use --version,
11604      # but apparently some variants of GNU ld only accept -v.
11605      # Break only if it was the GNU/non-GNU ld that we prefer.
11606      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11607      *GNU* | *'with BFD'*)
11608	test "$with_gnu_ld" != no && break
11609	;;
11610      *)
11611	test "$with_gnu_ld" != yes && break
11612	;;
11613      esac
11614    fi
11615  done
11616  IFS="$lt_save_ifs"
11617else
11618  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11619fi
11620fi
11621
11622LD="$lt_cv_path_LD"
11623if test -n "$LD"; then
11624  { echo "$as_me:$LINENO: result: $LD" >&5
11625echo "${ECHO_T}$LD" >&6; }
11626else
11627  { echo "$as_me:$LINENO: result: no" >&5
11628echo "${ECHO_T}no" >&6; }
11629fi
11630test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11631echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11632   { (exit 1); exit 1; }; }
11633{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11634echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11635if test "${lt_cv_prog_gnu_ld+set}" = set; then
11636  echo $ECHO_N "(cached) $ECHO_C" >&6
11637else
11638  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11639case `$LD -v 2>&1 </dev/null` in
11640*GNU* | *'with BFD'*)
11641  lt_cv_prog_gnu_ld=yes
11642  ;;
11643*)
11644  lt_cv_prog_gnu_ld=no
11645  ;;
11646esac
11647fi
11648{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11649echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11650with_gnu_ld=$lt_cv_prog_gnu_ld
11651
11652
11653
11654  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11655  # archiving commands below assume that GNU ld is being used.
11656  if test "$with_gnu_ld" = yes; then
11657    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11658    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'
11659
11660    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11661    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11662
11663    # If archive_cmds runs LD, not CC, wlarc should be empty
11664    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11665    #     investigate it a little bit more. (MM)
11666    wlarc='${wl}'
11667
11668    # ancient GNU ld didn't support --whole-archive et. al.
11669    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11670	grep 'no-whole-archive' > /dev/null; then
11671      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11672    else
11673      whole_archive_flag_spec_CXX=
11674    fi
11675  else
11676    with_gnu_ld=no
11677    wlarc=
11678
11679    # A generic and very simple default shared library creation
11680    # command for GNU C++ for the case where it uses the native
11681    # linker, instead of GNU ld.  If possible, this setting should
11682    # overridden to take advantage of the native linker features on
11683    # the platform it is being used on.
11684    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11685  fi
11686
11687  # Commands to make compiler produce verbose output that lists
11688  # what "hidden" libraries, object files and flags are used when
11689  # linking a shared library.
11690  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11691
11692else
11693  GXX=no
11694  with_gnu_ld=no
11695  wlarc=
11696fi
11697
11698# PORTME: fill in a description of your system's C++ link characteristics
11699{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11700echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11701ld_shlibs_CXX=yes
11702case $host_os in
11703  aix3*)
11704    # FIXME: insert proper C++ library support
11705    ld_shlibs_CXX=no
11706    ;;
11707  aix[4-9]*)
11708    if test "$host_cpu" = ia64; then
11709      # On IA64, the linker does run time linking by default, so we don't
11710      # have to do anything special.
11711      aix_use_runtimelinking=no
11712      exp_sym_flag='-Bexport'
11713      no_entry_flag=""
11714    else
11715      aix_use_runtimelinking=no
11716
11717      # Test if we are trying to use run time linking or normal
11718      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11719      # need to do runtime linking.
11720      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11721	for ld_flag in $LDFLAGS; do
11722	  case $ld_flag in
11723	  *-brtl*)
11724	    aix_use_runtimelinking=yes
11725	    break
11726	    ;;
11727	  esac
11728	done
11729	;;
11730      esac
11731
11732      exp_sym_flag='-bexport'
11733      no_entry_flag='-bnoentry'
11734    fi
11735
11736    # When large executables or shared objects are built, AIX ld can
11737    # have problems creating the table of contents.  If linking a library
11738    # or program results in "error TOC overflow" add -mminimal-toc to
11739    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11740    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11741
11742    archive_cmds_CXX=''
11743    hardcode_direct_CXX=yes
11744    hardcode_libdir_separator_CXX=':'
11745    link_all_deplibs_CXX=yes
11746
11747    if test "$GXX" = yes; then
11748      case $host_os in aix4.[012]|aix4.[012].*)
11749      # We only want to do this on AIX 4.2 and lower, the check
11750      # below for broken collect2 doesn't work under 4.3+
11751	collect2name=`${CC} -print-prog-name=collect2`
11752	if test -f "$collect2name" && \
11753	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11754	then
11755	  # We have reworked collect2
11756	  :
11757	else
11758	  # We have old collect2
11759	  hardcode_direct_CXX=unsupported
11760	  # It fails to find uninstalled libraries when the uninstalled
11761	  # path is not listed in the libpath.  Setting hardcode_minus_L
11762	  # to unsupported forces relinking
11763	  hardcode_minus_L_CXX=yes
11764	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11765	  hardcode_libdir_separator_CXX=
11766	fi
11767	;;
11768      esac
11769      shared_flag='-shared'
11770      if test "$aix_use_runtimelinking" = yes; then
11771	shared_flag="$shared_flag "'${wl}-G'
11772      fi
11773    else
11774      # not using gcc
11775      if test "$host_cpu" = ia64; then
11776	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11777	# chokes on -Wl,-G. The following line is correct:
11778	shared_flag='-G'
11779      else
11780	if test "$aix_use_runtimelinking" = yes; then
11781	  shared_flag='${wl}-G'
11782	else
11783	  shared_flag='${wl}-bM:SRE'
11784	fi
11785      fi
11786    fi
11787
11788    # It seems that -bexpall does not export symbols beginning with
11789    # underscore (_), so it is better to generate a list of symbols to export.
11790    always_export_symbols_CXX=yes
11791    if test "$aix_use_runtimelinking" = yes; then
11792      # Warning - without using the other runtime loading flags (-brtl),
11793      # -berok will link without error, but may produce a broken library.
11794      allow_undefined_flag_CXX='-berok'
11795      # Determine the default libpath from the value encoded in an empty executable.
11796      cat >conftest.$ac_ext <<_ACEOF
11797/* confdefs.h.  */
11798_ACEOF
11799cat confdefs.h >>conftest.$ac_ext
11800cat >>conftest.$ac_ext <<_ACEOF
11801/* end confdefs.h.  */
11802
11803int
11804main ()
11805{
11806
11807  ;
11808  return 0;
11809}
11810_ACEOF
11811rm -f conftest.$ac_objext conftest$ac_exeext
11812if { (ac_try="$ac_link"
11813case "(($ac_try" in
11814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815  *) ac_try_echo=$ac_try;;
11816esac
11817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818  (eval "$ac_link") 2>conftest.er1
11819  ac_status=$?
11820  grep -v '^ *+' conftest.er1 >conftest.err
11821  rm -f conftest.er1
11822  cat conftest.err >&5
11823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824  (exit $ac_status); } && {
11825	 test -z "$ac_cxx_werror_flag" ||
11826	 test ! -s conftest.err
11827       } && test -s conftest$ac_exeext &&
11828       $as_test_x conftest$ac_exeext; then
11829
11830lt_aix_libpath_sed='
11831    /Import File Strings/,/^$/ {
11832	/^0/ {
11833	    s/^0  *\(.*\)$/\1/
11834	    p
11835	}
11836    }'
11837aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11838# Check for a 64-bit object if we didn't find anything.
11839if test -z "$aix_libpath"; then
11840  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11841fi
11842else
11843  echo "$as_me: failed program was:" >&5
11844sed 's/^/| /' conftest.$ac_ext >&5
11845
11846
11847fi
11848
11849rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11850      conftest$ac_exeext conftest.$ac_ext
11851if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11852
11853      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11854
11855      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"
11856     else
11857      if test "$host_cpu" = ia64; then
11858	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11859	allow_undefined_flag_CXX="-z nodefs"
11860	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"
11861      else
11862	# Determine the default libpath from the value encoded in an empty executable.
11863	cat >conftest.$ac_ext <<_ACEOF
11864/* confdefs.h.  */
11865_ACEOF
11866cat confdefs.h >>conftest.$ac_ext
11867cat >>conftest.$ac_ext <<_ACEOF
11868/* end confdefs.h.  */
11869
11870int
11871main ()
11872{
11873
11874  ;
11875  return 0;
11876}
11877_ACEOF
11878rm -f conftest.$ac_objext conftest$ac_exeext
11879if { (ac_try="$ac_link"
11880case "(($ac_try" in
11881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11882  *) ac_try_echo=$ac_try;;
11883esac
11884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11885  (eval "$ac_link") 2>conftest.er1
11886  ac_status=$?
11887  grep -v '^ *+' conftest.er1 >conftest.err
11888  rm -f conftest.er1
11889  cat conftest.err >&5
11890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891  (exit $ac_status); } && {
11892	 test -z "$ac_cxx_werror_flag" ||
11893	 test ! -s conftest.err
11894       } && test -s conftest$ac_exeext &&
11895       $as_test_x conftest$ac_exeext; then
11896
11897lt_aix_libpath_sed='
11898    /Import File Strings/,/^$/ {
11899	/^0/ {
11900	    s/^0  *\(.*\)$/\1/
11901	    p
11902	}
11903    }'
11904aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11905# Check for a 64-bit object if we didn't find anything.
11906if test -z "$aix_libpath"; then
11907  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11908fi
11909else
11910  echo "$as_me: failed program was:" >&5
11911sed 's/^/| /' conftest.$ac_ext >&5
11912
11913
11914fi
11915
11916rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11917      conftest$ac_exeext conftest.$ac_ext
11918if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11919
11920	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11921	# Warning - without using the other run time loading flags,
11922	# -berok will link without error, but may produce a broken library.
11923	no_undefined_flag_CXX=' ${wl}-bernotok'
11924	allow_undefined_flag_CXX=' ${wl}-berok'
11925	# Exported symbols can be pulled into shared objects from archives
11926	whole_archive_flag_spec_CXX='$convenience'
11927	archive_cmds_need_lc_CXX=yes
11928	# This is similar to how AIX traditionally builds its shared libraries.
11929	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'
11930      fi
11931    fi
11932    ;;
11933
11934  beos*)
11935    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11936      allow_undefined_flag_CXX=unsupported
11937      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11938      # support --undefined.  This deserves some investigation.  FIXME
11939      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11940    else
11941      ld_shlibs_CXX=no
11942    fi
11943    ;;
11944
11945  chorus*)
11946    case $cc_basename in
11947      *)
11948	# FIXME: insert proper C++ library support
11949	ld_shlibs_CXX=no
11950	;;
11951    esac
11952    ;;
11953
11954  cygwin* | mingw* | pw32*)
11955    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11956    # as there is no search path for DLLs.
11957    hardcode_libdir_flag_spec_CXX='-L$libdir'
11958    allow_undefined_flag_CXX=unsupported
11959    always_export_symbols_CXX=no
11960    enable_shared_with_static_runtimes_CXX=yes
11961
11962    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11963      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'
11964      # If the export-symbols file already is a .def file (1st line
11965      # is EXPORTS), use it as is; otherwise, prepend...
11966      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11967	cp $export_symbols $output_objdir/$soname.def;
11968      else
11969	echo EXPORTS > $output_objdir/$soname.def;
11970	cat $export_symbols >> $output_objdir/$soname.def;
11971      fi~
11972      $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'
11973    else
11974      ld_shlibs_CXX=no
11975    fi
11976  ;;
11977      darwin* | rhapsody*)
11978      archive_cmds_need_lc_CXX=no
11979      hardcode_direct_CXX=no
11980      hardcode_automatic_CXX=yes
11981      hardcode_shlibpath_var_CXX=unsupported
11982      whole_archive_flag_spec_CXX=''
11983      link_all_deplibs_CXX=yes
11984      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11985      if test "$GXX" = yes ; then
11986      output_verbose_link_cmd='echo'
11987      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}"
11988      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11989      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}"
11990      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}"
11991      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11992        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}"
11993        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}"
11994      fi
11995      else
11996      case $cc_basename in
11997        xlc*)
11998         output_verbose_link_cmd='echo'
11999          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'
12000          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12001          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12002          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}'
12003          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}'
12004          ;;
12005       *)
12006         ld_shlibs_CXX=no
12007          ;;
12008      esac
12009      fi
12010        ;;
12011
12012  dgux*)
12013    case $cc_basename in
12014      ec++*)
12015	# FIXME: insert proper C++ library support
12016	ld_shlibs_CXX=no
12017	;;
12018      ghcx*)
12019	# Green Hills C++ Compiler
12020	# FIXME: insert proper C++ library support
12021	ld_shlibs_CXX=no
12022	;;
12023      *)
12024	# FIXME: insert proper C++ library support
12025	ld_shlibs_CXX=no
12026	;;
12027    esac
12028    ;;
12029  freebsd[12]*)
12030    # C++ shared libraries reported to be fairly broken before switch to ELF
12031    ld_shlibs_CXX=no
12032    ;;
12033  freebsd-elf*)
12034    archive_cmds_need_lc_CXX=no
12035    ;;
12036  freebsd* | dragonfly*)
12037    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12038    # conventions
12039    ld_shlibs_CXX=yes
12040    ;;
12041  gnu*)
12042    ;;
12043  hpux9*)
12044    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12045    hardcode_libdir_separator_CXX=:
12046    export_dynamic_flag_spec_CXX='${wl}-E'
12047    hardcode_direct_CXX=yes
12048    hardcode_minus_L_CXX=yes # Not in the search PATH,
12049				# but as the default
12050				# location of the library.
12051
12052    case $cc_basename in
12053    CC*)
12054      # FIXME: insert proper C++ library support
12055      ld_shlibs_CXX=no
12056      ;;
12057    aCC*)
12058      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'
12059      # Commands to make compiler produce verbose output that lists
12060      # what "hidden" libraries, object files and flags are used when
12061      # linking a shared library.
12062      #
12063      # There doesn't appear to be a way to prevent this compiler from
12064      # explicitly linking system object files so we need to strip them
12065      # from the output so that they don't get included in the library
12066      # dependencies.
12067      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'
12068      ;;
12069    *)
12070      if test "$GXX" = yes; then
12071        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'
12072      else
12073        # FIXME: insert proper C++ library support
12074        ld_shlibs_CXX=no
12075      fi
12076      ;;
12077    esac
12078    ;;
12079  hpux10*|hpux11*)
12080    if test $with_gnu_ld = no; then
12081      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12082      hardcode_libdir_separator_CXX=:
12083
12084      case $host_cpu in
12085      hppa*64*|ia64*) ;;
12086      *)
12087	export_dynamic_flag_spec_CXX='${wl}-E'
12088        ;;
12089      esac
12090    fi
12091    case $host_cpu in
12092    hppa*64*|ia64*)
12093      hardcode_direct_CXX=no
12094      hardcode_shlibpath_var_CXX=no
12095      ;;
12096    *)
12097      hardcode_direct_CXX=yes
12098      hardcode_minus_L_CXX=yes # Not in the search PATH,
12099					      # but as the default
12100					      # location of the library.
12101      ;;
12102    esac
12103
12104    case $cc_basename in
12105      CC*)
12106	# FIXME: insert proper C++ library support
12107	ld_shlibs_CXX=no
12108	;;
12109      aCC*)
12110	case $host_cpu in
12111	hppa*64*)
12112	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12113	  ;;
12114	ia64*)
12115	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12116	  ;;
12117	*)
12118	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12119	  ;;
12120	esac
12121	# Commands to make compiler produce verbose output that lists
12122	# what "hidden" libraries, object files and flags are used when
12123	# linking a shared library.
12124	#
12125	# There doesn't appear to be a way to prevent this compiler from
12126	# explicitly linking system object files so we need to strip them
12127	# from the output so that they don't get included in the library
12128	# dependencies.
12129	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'
12130	;;
12131      *)
12132	if test "$GXX" = yes; then
12133	  if test $with_gnu_ld = no; then
12134	    case $host_cpu in
12135	    hppa*64*)
12136	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12137	      ;;
12138	    ia64*)
12139	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12140	      ;;
12141	    *)
12142	      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'
12143	      ;;
12144	    esac
12145	  fi
12146	else
12147	  # FIXME: insert proper C++ library support
12148	  ld_shlibs_CXX=no
12149	fi
12150	;;
12151    esac
12152    ;;
12153  interix[3-9]*)
12154    hardcode_direct_CXX=no
12155    hardcode_shlibpath_var_CXX=no
12156    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12157    export_dynamic_flag_spec_CXX='${wl}-E'
12158    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12159    # Instead, shared libraries are loaded at an image base (0x10000000 by
12160    # default) and relocated if they conflict, which is a slow very memory
12161    # consuming and fragmenting process.  To avoid this, we pick a random,
12162    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12163    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12164    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'
12165    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'
12166    ;;
12167  irix5* | irix6*)
12168    case $cc_basename in
12169      CC*)
12170	# SGI C++
12171	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'
12172
12173	# Archives containing C++ object files must be created using
12174	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12175	# necessary to make sure instantiated templates are included
12176	# in the archive.
12177	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12178	;;
12179      *)
12180	if test "$GXX" = yes; then
12181	  if test "$with_gnu_ld" = no; then
12182	    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'
12183	  else
12184	    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'
12185	  fi
12186	fi
12187	link_all_deplibs_CXX=yes
12188	;;
12189    esac
12190    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12191    hardcode_libdir_separator_CXX=:
12192    ;;
12193  linux* | k*bsd*-gnu)
12194    case $cc_basename in
12195      KCC*)
12196	# Kuck and Associates, Inc. (KAI) C++ Compiler
12197
12198	# KCC will only create a shared library if the output file
12199	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12200	# to its proper name (with version) after linking.
12201	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'
12202	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'
12203	# Commands to make compiler produce verbose output that lists
12204	# what "hidden" libraries, object files and flags are used when
12205	# linking a shared library.
12206	#
12207	# There doesn't appear to be a way to prevent this compiler from
12208	# explicitly linking system object files so we need to strip them
12209	# from the output so that they don't get included in the library
12210	# dependencies.
12211	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'
12212
12213	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12214	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12215
12216	# Archives containing C++ object files must be created using
12217	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12218	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12219	;;
12220      icpc*)
12221	# Intel C++
12222	with_gnu_ld=yes
12223	# version 8.0 and above of icpc choke on multiply defined symbols
12224	# if we add $predep_objects and $postdep_objects, however 7.1 and
12225	# earlier do not add the objects themselves.
12226	case `$CC -V 2>&1` in
12227	*"Version 7."*)
12228  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12229  	  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'
12230	  ;;
12231	*)  # Version 8.0 or newer
12232	  tmp_idyn=
12233	  case $host_cpu in
12234	    ia64*) tmp_idyn=' -i_dynamic';;
12235	  esac
12236  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12237	  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'
12238	  ;;
12239	esac
12240	archive_cmds_need_lc_CXX=no
12241	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12242	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12243	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12244	;;
12245      pgCC* | pgcpp*)
12246        # Portland Group C++ compiler
12247	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12248  	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'
12249
12250	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12251	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12252	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'
12253        ;;
12254      cxx*)
12255	# Compaq C++
12256	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12257	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'
12258
12259	runpath_var=LD_RUN_PATH
12260	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12261	hardcode_libdir_separator_CXX=:
12262
12263	# Commands to make compiler produce verbose output that lists
12264	# what "hidden" libraries, object files and flags are used when
12265	# linking a shared library.
12266	#
12267	# There doesn't appear to be a way to prevent this compiler from
12268	# explicitly linking system object files so we need to strip them
12269	# from the output so that they don't get included in the library
12270	# dependencies.
12271	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'
12272	;;
12273      *)
12274	case `$CC -V 2>&1 | sed 5q` in
12275	*Sun\ C*)
12276	  # Sun C++ 5.9
12277	  no_undefined_flag_CXX=' -zdefs'
12278	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12279	  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'
12280	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12281	  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'
12282
12283	  # Not sure whether something based on
12284	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12285	  # would be better.
12286	  output_verbose_link_cmd='echo'
12287
12288	  # Archives containing C++ object files must be created using
12289	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12290	  # necessary to make sure instantiated templates are included
12291	  # in the archive.
12292	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12293	  ;;
12294	esac
12295	;;
12296    esac
12297    ;;
12298  lynxos*)
12299    # FIXME: insert proper C++ library support
12300    ld_shlibs_CXX=no
12301    ;;
12302  m88k*)
12303    # FIXME: insert proper C++ library support
12304    ld_shlibs_CXX=no
12305    ;;
12306  mvs*)
12307    case $cc_basename in
12308      cxx*)
12309	# FIXME: insert proper C++ library support
12310	ld_shlibs_CXX=no
12311	;;
12312      *)
12313	# FIXME: insert proper C++ library support
12314	ld_shlibs_CXX=no
12315	;;
12316    esac
12317    ;;
12318  netbsd* | netbsdelf*-gnu)
12319    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12320      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12321      wlarc=
12322      hardcode_libdir_flag_spec_CXX='-R$libdir'
12323      hardcode_direct_CXX=yes
12324      hardcode_shlibpath_var_CXX=no
12325    fi
12326    # Workaround some broken pre-1.5 toolchains
12327    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12328    ;;
12329  openbsd2*)
12330    # C++ shared libraries are fairly broken
12331    ld_shlibs_CXX=no
12332    ;;
12333  openbsd*)
12334    if test -f /usr/libexec/ld.so; then
12335      hardcode_direct_CXX=yes
12336      hardcode_shlibpath_var_CXX=no
12337      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12338      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12339      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12340	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12341	export_dynamic_flag_spec_CXX='${wl}-E'
12342	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12343      fi
12344      output_verbose_link_cmd='echo'
12345    else
12346      ld_shlibs_CXX=no
12347    fi
12348    ;;
12349  osf3*)
12350    case $cc_basename in
12351      KCC*)
12352	# Kuck and Associates, Inc. (KAI) C++ Compiler
12353
12354	# KCC will only create a shared library if the output file
12355	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12356	# to its proper name (with version) after linking.
12357	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'
12358
12359	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12360	hardcode_libdir_separator_CXX=:
12361
12362	# Archives containing C++ object files must be created using
12363	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12364	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12365
12366	;;
12367      RCC*)
12368	# Rational C++ 2.4.1
12369	# FIXME: insert proper C++ library support
12370	ld_shlibs_CXX=no
12371	;;
12372      cxx*)
12373	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12374	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'
12375
12376	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12377	hardcode_libdir_separator_CXX=:
12378
12379	# Commands to make compiler produce verbose output that lists
12380	# what "hidden" libraries, object files and flags are used when
12381	# linking a shared library.
12382	#
12383	# There doesn't appear to be a way to prevent this compiler from
12384	# explicitly linking system object files so we need to strip them
12385	# from the output so that they don't get included in the library
12386	# dependencies.
12387	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'
12388	;;
12389      *)
12390	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12391	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12392	  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'
12393
12394	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12395	  hardcode_libdir_separator_CXX=:
12396
12397	  # Commands to make compiler produce verbose output that lists
12398	  # what "hidden" libraries, object files and flags are used when
12399	  # linking a shared library.
12400	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12401
12402	else
12403	  # FIXME: insert proper C++ library support
12404	  ld_shlibs_CXX=no
12405	fi
12406	;;
12407    esac
12408    ;;
12409  osf4* | osf5*)
12410    case $cc_basename in
12411      KCC*)
12412	# Kuck and Associates, Inc. (KAI) C++ Compiler
12413
12414	# KCC will only create a shared library if the output file
12415	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12416	# to its proper name (with version) after linking.
12417	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'
12418
12419	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12420	hardcode_libdir_separator_CXX=:
12421
12422	# Archives containing C++ object files must be created using
12423	# the KAI C++ compiler.
12424	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12425	;;
12426      RCC*)
12427	# Rational C++ 2.4.1
12428	# FIXME: insert proper C++ library support
12429	ld_shlibs_CXX=no
12430	;;
12431      cxx*)
12432	allow_undefined_flag_CXX=' -expect_unresolved \*'
12433	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'
12434	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12435	  echo "-hidden">> $lib.exp~
12436	  $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~
12437	  $rm $lib.exp'
12438
12439	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12440	hardcode_libdir_separator_CXX=:
12441
12442	# Commands to make compiler produce verbose output that lists
12443	# what "hidden" libraries, object files and flags are used when
12444	# linking a shared library.
12445	#
12446	# There doesn't appear to be a way to prevent this compiler from
12447	# explicitly linking system object files so we need to strip them
12448	# from the output so that they don't get included in the library
12449	# dependencies.
12450	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'
12451	;;
12452      *)
12453	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12454	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12455	 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'
12456
12457	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12458	  hardcode_libdir_separator_CXX=:
12459
12460	  # Commands to make compiler produce verbose output that lists
12461	  # what "hidden" libraries, object files and flags are used when
12462	  # linking a shared library.
12463	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12464
12465	else
12466	  # FIXME: insert proper C++ library support
12467	  ld_shlibs_CXX=no
12468	fi
12469	;;
12470    esac
12471    ;;
12472  psos*)
12473    # FIXME: insert proper C++ library support
12474    ld_shlibs_CXX=no
12475    ;;
12476  sunos4*)
12477    case $cc_basename in
12478      CC*)
12479	# Sun C++ 4.x
12480	# FIXME: insert proper C++ library support
12481	ld_shlibs_CXX=no
12482	;;
12483      lcc*)
12484	# Lucid
12485	# FIXME: insert proper C++ library support
12486	ld_shlibs_CXX=no
12487	;;
12488      *)
12489	# FIXME: insert proper C++ library support
12490	ld_shlibs_CXX=no
12491	;;
12492    esac
12493    ;;
12494  solaris*)
12495    case $cc_basename in
12496      CC*)
12497	# Sun C++ 4.2, 5.x and Centerline C++
12498        archive_cmds_need_lc_CXX=yes
12499	no_undefined_flag_CXX=' -zdefs'
12500	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12501	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12502	$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'
12503
12504	hardcode_libdir_flag_spec_CXX='-R$libdir'
12505	hardcode_shlibpath_var_CXX=no
12506	case $host_os in
12507	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12508	  *)
12509	    # The compiler driver will combine and reorder linker options,
12510	    # but understands `-z linker_flag'.
12511	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12512	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12513	    ;;
12514	esac
12515	link_all_deplibs_CXX=yes
12516
12517	output_verbose_link_cmd='echo'
12518
12519	# Archives containing C++ object files must be created using
12520	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12521	# necessary to make sure instantiated templates are included
12522	# in the archive.
12523	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12524	;;
12525      gcx*)
12526	# Green Hills C++ Compiler
12527	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12528
12529	# The C++ compiler must be used to create the archive.
12530	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12531	;;
12532      *)
12533	# GNU C++ compiler with Solaris linker
12534	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12535	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12536	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12537	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12538	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12539		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12540
12541	    # Commands to make compiler produce verbose output that lists
12542	    # what "hidden" libraries, object files and flags are used when
12543	    # linking a shared library.
12544	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12545	  else
12546	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12547	    # platform.
12548	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12549	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12550		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12551
12552	    # Commands to make compiler produce verbose output that lists
12553	    # what "hidden" libraries, object files and flags are used when
12554	    # linking a shared library.
12555	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12556	  fi
12557
12558	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12559	  case $host_os in
12560	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12561	  *)
12562	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12563	    ;;
12564	  esac
12565	fi
12566	;;
12567    esac
12568    ;;
12569  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12570    no_undefined_flag_CXX='${wl}-z,text'
12571    archive_cmds_need_lc_CXX=no
12572    hardcode_shlibpath_var_CXX=no
12573    runpath_var='LD_RUN_PATH'
12574
12575    case $cc_basename in
12576      CC*)
12577	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12578	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12579	;;
12580      *)
12581	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12582	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12583	;;
12584    esac
12585    ;;
12586  sysv5* | sco3.2v5* | sco5v6*)
12587    # Note: We can NOT use -z defs as we might desire, because we do not
12588    # link with -lc, and that would cause any symbols used from libc to
12589    # always be unresolved, which means just about no library would
12590    # ever link correctly.  If we're not using GNU ld we use -z text
12591    # though, which does catch some bad symbols but isn't as heavy-handed
12592    # as -z defs.
12593    # For security reasons, it is highly recommended that you always
12594    # use absolute paths for naming shared libraries, and exclude the
12595    # DT_RUNPATH tag from executables and libraries.  But doing so
12596    # requires that you compile everything twice, which is a pain.
12597    # So that behaviour is only enabled if SCOABSPATH is set to a
12598    # non-empty value in the environment.  Most likely only useful for
12599    # creating official distributions of packages.
12600    # This is a hack until libtool officially supports absolute path
12601    # names for shared libraries.
12602    no_undefined_flag_CXX='${wl}-z,text'
12603    allow_undefined_flag_CXX='${wl}-z,nodefs'
12604    archive_cmds_need_lc_CXX=no
12605    hardcode_shlibpath_var_CXX=no
12606    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12607    hardcode_libdir_separator_CXX=':'
12608    link_all_deplibs_CXX=yes
12609    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12610    runpath_var='LD_RUN_PATH'
12611
12612    case $cc_basename in
12613      CC*)
12614	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12615	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12616	;;
12617      *)
12618	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12619	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12620	;;
12621    esac
12622    ;;
12623  tandem*)
12624    case $cc_basename in
12625      NCC*)
12626	# NonStop-UX NCC 3.20
12627	# FIXME: insert proper C++ library support
12628	ld_shlibs_CXX=no
12629	;;
12630      *)
12631	# FIXME: insert proper C++ library support
12632	ld_shlibs_CXX=no
12633	;;
12634    esac
12635    ;;
12636  vxworks*)
12637    # FIXME: insert proper C++ library support
12638    ld_shlibs_CXX=no
12639    ;;
12640  *)
12641    # FIXME: insert proper C++ library support
12642    ld_shlibs_CXX=no
12643    ;;
12644esac
12645{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12646echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12647test "$ld_shlibs_CXX" = no && can_build_shared=no
12648
12649GCC_CXX="$GXX"
12650LD_CXX="$LD"
12651
12652cat > conftest.$ac_ext <<EOF
12653class Foo
12654{
12655public:
12656  Foo (void) { a = 0; }
12657private:
12658  int a;
12659};
12660EOF
12661
12662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12663  (eval $ac_compile) 2>&5
12664  ac_status=$?
12665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666  (exit $ac_status); }; then
12667  # Parse the compiler output and extract the necessary
12668  # objects, libraries and library flags.
12669
12670  # Sentinel used to keep track of whether or not we are before
12671  # the conftest object file.
12672  pre_test_object_deps_done=no
12673
12674  # The `*' in the case matches for architectures that use `case' in
12675  # $output_verbose_cmd can trigger glob expansion during the loop
12676  # eval without this substitution.
12677  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12678
12679  for p in `eval $output_verbose_link_cmd`; do
12680    case $p in
12681
12682    -L* | -R* | -l*)
12683       # Some compilers place space between "-{L,R}" and the path.
12684       # Remove the space.
12685       if test $p = "-L" \
12686	  || test $p = "-R"; then
12687	 prev=$p
12688	 continue
12689       else
12690	 prev=
12691       fi
12692
12693       if test "$pre_test_object_deps_done" = no; then
12694	 case $p in
12695	 -L* | -R*)
12696	   # Internal compiler library paths should come after those
12697	   # provided the user.  The postdeps already come after the
12698	   # user supplied libs so there is no need to process them.
12699	   if test -z "$compiler_lib_search_path_CXX"; then
12700	     compiler_lib_search_path_CXX="${prev}${p}"
12701	   else
12702	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12703	   fi
12704	   ;;
12705	 # The "-l" case would never come before the object being
12706	 # linked, so don't bother handling this case.
12707	 esac
12708       else
12709	 if test -z "$postdeps_CXX"; then
12710	   postdeps_CXX="${prev}${p}"
12711	 else
12712	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12713	 fi
12714       fi
12715       ;;
12716
12717    *.$objext)
12718       # This assumes that the test object file only shows up
12719       # once in the compiler output.
12720       if test "$p" = "conftest.$objext"; then
12721	 pre_test_object_deps_done=yes
12722	 continue
12723       fi
12724
12725       if test "$pre_test_object_deps_done" = no; then
12726	 if test -z "$predep_objects_CXX"; then
12727	   predep_objects_CXX="$p"
12728	 else
12729	   predep_objects_CXX="$predep_objects_CXX $p"
12730	 fi
12731       else
12732	 if test -z "$postdep_objects_CXX"; then
12733	   postdep_objects_CXX="$p"
12734	 else
12735	   postdep_objects_CXX="$postdep_objects_CXX $p"
12736	 fi
12737       fi
12738       ;;
12739
12740    *) ;; # Ignore the rest.
12741
12742    esac
12743  done
12744
12745  # Clean up.
12746  rm -f a.out a.exe
12747else
12748  echo "libtool.m4: error: problem compiling CXX test program"
12749fi
12750
12751$rm -f confest.$objext
12752
12753compiler_lib_search_dirs_CXX=
12754if test -n "$compiler_lib_search_path_CXX"; then
12755  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12756fi
12757
12758# PORTME: override above test on systems where it is broken
12759case $host_os in
12760interix[3-9]*)
12761  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12762  # hack all around it, let's just trust "g++" to DTRT.
12763  predep_objects_CXX=
12764  postdep_objects_CXX=
12765  postdeps_CXX=
12766  ;;
12767
12768linux*)
12769  case `$CC -V 2>&1 | sed 5q` in
12770  *Sun\ C*)
12771    # Sun C++ 5.9
12772    #
12773    # The more standards-conforming stlport4 library is
12774    # incompatible with the Cstd library. Avoid specifying
12775    # it if it's in CXXFLAGS. Ignore libCrun as
12776    # -library=stlport4 depends on it.
12777    case " $CXX $CXXFLAGS " in
12778    *" -library=stlport4 "*)
12779      solaris_use_stlport4=yes
12780      ;;
12781    esac
12782    if test "$solaris_use_stlport4" != yes; then
12783      postdeps_CXX='-library=Cstd -library=Crun'
12784    fi
12785    ;;
12786  esac
12787  ;;
12788
12789solaris*)
12790  case $cc_basename in
12791  CC*)
12792    # The more standards-conforming stlport4 library is
12793    # incompatible with the Cstd library. Avoid specifying
12794    # it if it's in CXXFLAGS. Ignore libCrun as
12795    # -library=stlport4 depends on it.
12796    case " $CXX $CXXFLAGS " in
12797    *" -library=stlport4 "*)
12798      solaris_use_stlport4=yes
12799      ;;
12800    esac
12801
12802    # Adding this requires a known-good setup of shared libraries for
12803    # Sun compiler versions before 5.6, else PIC objects from an old
12804    # archive will be linked into the output, leading to subtle bugs.
12805    if test "$solaris_use_stlport4" != yes; then
12806      postdeps_CXX='-library=Cstd -library=Crun'
12807    fi
12808    ;;
12809  esac
12810  ;;
12811esac
12812
12813case " $postdeps_CXX " in
12814*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12815esac
12816
12817lt_prog_compiler_wl_CXX=
12818lt_prog_compiler_pic_CXX=
12819lt_prog_compiler_static_CXX=
12820
12821{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12822echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12823
12824  # C++ specific cases for pic, static, wl, etc.
12825  if test "$GXX" = yes; then
12826    lt_prog_compiler_wl_CXX='-Wl,'
12827    lt_prog_compiler_static_CXX='-static'
12828
12829    case $host_os in
12830    aix*)
12831      # All AIX code is PIC.
12832      if test "$host_cpu" = ia64; then
12833	# AIX 5 now supports IA64 processor
12834	lt_prog_compiler_static_CXX='-Bstatic'
12835      fi
12836      ;;
12837    amigaos*)
12838      # FIXME: we need at least 68020 code to build shared libraries, but
12839      # adding the `-m68020' flag to GCC prevents building anything better,
12840      # like `-m68040'.
12841      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12842      ;;
12843    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12844      # PIC is the default for these OSes.
12845      ;;
12846    mingw* | cygwin* | os2* | pw32*)
12847      # This hack is so that the source file can tell whether it is being
12848      # built for inclusion in a dll (and should export symbols for example).
12849      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12850      # (--disable-auto-import) libraries
12851      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12852      ;;
12853    darwin* | rhapsody*)
12854      # PIC is the default on this platform
12855      # Common symbols not allowed in MH_DYLIB files
12856      lt_prog_compiler_pic_CXX='-fno-common'
12857      ;;
12858    *djgpp*)
12859      # DJGPP does not support shared libraries at all
12860      lt_prog_compiler_pic_CXX=
12861      ;;
12862    interix[3-9]*)
12863      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12864      # Instead, we relocate shared libraries at runtime.
12865      ;;
12866    sysv4*MP*)
12867      if test -d /usr/nec; then
12868	lt_prog_compiler_pic_CXX=-Kconform_pic
12869      fi
12870      ;;
12871    hpux*)
12872      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12873      # not for PA HP-UX.
12874      case $host_cpu in
12875      hppa*64*|ia64*)
12876	;;
12877      *)
12878	lt_prog_compiler_pic_CXX='-fPIC'
12879	;;
12880      esac
12881      ;;
12882    *)
12883      lt_prog_compiler_pic_CXX='-fPIC'
12884      ;;
12885    esac
12886  else
12887    case $host_os in
12888      aix[4-9]*)
12889	# All AIX code is PIC.
12890	if test "$host_cpu" = ia64; then
12891	  # AIX 5 now supports IA64 processor
12892	  lt_prog_compiler_static_CXX='-Bstatic'
12893	else
12894	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12895	fi
12896	;;
12897      chorus*)
12898	case $cc_basename in
12899	cxch68*)
12900	  # Green Hills C++ Compiler
12901	  # _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"
12902	  ;;
12903	esac
12904	;;
12905       darwin*)
12906         # PIC is the default on this platform
12907         # Common symbols not allowed in MH_DYLIB files
12908         case $cc_basename in
12909           xlc*)
12910           lt_prog_compiler_pic_CXX='-qnocommon'
12911           lt_prog_compiler_wl_CXX='-Wl,'
12912           ;;
12913         esac
12914       ;;
12915      dgux*)
12916	case $cc_basename in
12917	  ec++*)
12918	    lt_prog_compiler_pic_CXX='-KPIC'
12919	    ;;
12920	  ghcx*)
12921	    # Green Hills C++ Compiler
12922	    lt_prog_compiler_pic_CXX='-pic'
12923	    ;;
12924	  *)
12925	    ;;
12926	esac
12927	;;
12928      freebsd* | dragonfly*)
12929	# FreeBSD uses GNU C++
12930	;;
12931      hpux9* | hpux10* | hpux11*)
12932	case $cc_basename in
12933	  CC*)
12934	    lt_prog_compiler_wl_CXX='-Wl,'
12935	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12936	    if test "$host_cpu" != ia64; then
12937	      lt_prog_compiler_pic_CXX='+Z'
12938	    fi
12939	    ;;
12940	  aCC*)
12941	    lt_prog_compiler_wl_CXX='-Wl,'
12942	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12943	    case $host_cpu in
12944	    hppa*64*|ia64*)
12945	      # +Z the default
12946	      ;;
12947	    *)
12948	      lt_prog_compiler_pic_CXX='+Z'
12949	      ;;
12950	    esac
12951	    ;;
12952	  *)
12953	    ;;
12954	esac
12955	;;
12956      interix*)
12957	# This is c89, which is MS Visual C++ (no shared libs)
12958	# Anyone wants to do a port?
12959	;;
12960      irix5* | irix6* | nonstopux*)
12961	case $cc_basename in
12962	  CC*)
12963	    lt_prog_compiler_wl_CXX='-Wl,'
12964	    lt_prog_compiler_static_CXX='-non_shared'
12965	    # CC pic flag -KPIC is the default.
12966	    ;;
12967	  *)
12968	    ;;
12969	esac
12970	;;
12971      linux* | k*bsd*-gnu)
12972	case $cc_basename in
12973	  KCC*)
12974	    # KAI C++ Compiler
12975	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12976	    lt_prog_compiler_pic_CXX='-fPIC'
12977	    ;;
12978	  icpc* | ecpc*)
12979	    # Intel C++
12980	    lt_prog_compiler_wl_CXX='-Wl,'
12981	    lt_prog_compiler_pic_CXX='-KPIC'
12982	    lt_prog_compiler_static_CXX='-static'
12983	    ;;
12984	  pgCC* | pgcpp*)
12985	    # Portland Group C++ compiler.
12986	    lt_prog_compiler_wl_CXX='-Wl,'
12987	    lt_prog_compiler_pic_CXX='-fpic'
12988	    lt_prog_compiler_static_CXX='-Bstatic'
12989	    ;;
12990	  cxx*)
12991	    # Compaq C++
12992	    # Make sure the PIC flag is empty.  It appears that all Alpha
12993	    # Linux and Compaq Tru64 Unix objects are PIC.
12994	    lt_prog_compiler_pic_CXX=
12995	    lt_prog_compiler_static_CXX='-non_shared'
12996	    ;;
12997	  *)
12998	    case `$CC -V 2>&1 | sed 5q` in
12999	    *Sun\ C*)
13000	      # Sun C++ 5.9
13001	      lt_prog_compiler_pic_CXX='-KPIC'
13002	      lt_prog_compiler_static_CXX='-Bstatic'
13003	      lt_prog_compiler_wl_CXX='-Qoption ld '
13004	      ;;
13005	    esac
13006	    ;;
13007	esac
13008	;;
13009      lynxos*)
13010	;;
13011      m88k*)
13012	;;
13013      mvs*)
13014	case $cc_basename in
13015	  cxx*)
13016	    lt_prog_compiler_pic_CXX='-W c,exportall'
13017	    ;;
13018	  *)
13019	    ;;
13020	esac
13021	;;
13022      netbsd* | netbsdelf*-gnu)
13023	;;
13024      osf3* | osf4* | osf5*)
13025	case $cc_basename in
13026	  KCC*)
13027	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13028	    ;;
13029	  RCC*)
13030	    # Rational C++ 2.4.1
13031	    lt_prog_compiler_pic_CXX='-pic'
13032	    ;;
13033	  cxx*)
13034	    # Digital/Compaq C++
13035	    lt_prog_compiler_wl_CXX='-Wl,'
13036	    # Make sure the PIC flag is empty.  It appears that all Alpha
13037	    # Linux and Compaq Tru64 Unix objects are PIC.
13038	    lt_prog_compiler_pic_CXX=
13039	    lt_prog_compiler_static_CXX='-non_shared'
13040	    ;;
13041	  *)
13042	    ;;
13043	esac
13044	;;
13045      psos*)
13046	;;
13047      solaris*)
13048	case $cc_basename in
13049	  CC*)
13050	    # Sun C++ 4.2, 5.x and Centerline C++
13051	    lt_prog_compiler_pic_CXX='-KPIC'
13052	    lt_prog_compiler_static_CXX='-Bstatic'
13053	    lt_prog_compiler_wl_CXX='-Qoption ld '
13054	    ;;
13055	  gcx*)
13056	    # Green Hills C++ Compiler
13057	    lt_prog_compiler_pic_CXX='-PIC'
13058	    ;;
13059	  *)
13060	    ;;
13061	esac
13062	;;
13063      sunos4*)
13064	case $cc_basename in
13065	  CC*)
13066	    # Sun C++ 4.x
13067	    lt_prog_compiler_pic_CXX='-pic'
13068	    lt_prog_compiler_static_CXX='-Bstatic'
13069	    ;;
13070	  lcc*)
13071	    # Lucid
13072	    lt_prog_compiler_pic_CXX='-pic'
13073	    ;;
13074	  *)
13075	    ;;
13076	esac
13077	;;
13078      tandem*)
13079	case $cc_basename in
13080	  NCC*)
13081	    # NonStop-UX NCC 3.20
13082	    lt_prog_compiler_pic_CXX='-KPIC'
13083	    ;;
13084	  *)
13085	    ;;
13086	esac
13087	;;
13088      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13089	case $cc_basename in
13090	  CC*)
13091	    lt_prog_compiler_wl_CXX='-Wl,'
13092	    lt_prog_compiler_pic_CXX='-KPIC'
13093	    lt_prog_compiler_static_CXX='-Bstatic'
13094	    ;;
13095	esac
13096	;;
13097      vxworks*)
13098	;;
13099      *)
13100	lt_prog_compiler_can_build_shared_CXX=no
13101	;;
13102    esac
13103  fi
13104
13105{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13106echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13107
13108#
13109# Check to make sure the PIC flag actually works.
13110#
13111if test -n "$lt_prog_compiler_pic_CXX"; then
13112
13113{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13114echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13115if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13116  echo $ECHO_N "(cached) $ECHO_C" >&6
13117else
13118  lt_cv_prog_compiler_pic_works_CXX=no
13119  ac_outfile=conftest.$ac_objext
13120   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13121   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13122   # Insert the option either (1) after the last *FLAGS variable, or
13123   # (2) before a word containing "conftest.", or (3) at the end.
13124   # Note that $ac_compile itself does not contain backslashes and begins
13125   # with a dollar sign (not a hyphen), so the echo should work correctly.
13126   # The option is referenced via a variable to avoid confusing sed.
13127   lt_compile=`echo "$ac_compile" | $SED \
13128   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13129   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13130   -e 's:$: $lt_compiler_flag:'`
13131   (eval echo "\"\$as_me:13131: $lt_compile\"" >&5)
13132   (eval "$lt_compile" 2>conftest.err)
13133   ac_status=$?
13134   cat conftest.err >&5
13135   echo "$as_me:13135: \$? = $ac_status" >&5
13136   if (exit $ac_status) && test -s "$ac_outfile"; then
13137     # The compiler can only warn and ignore the option if not recognized
13138     # So say no if there are warnings other than the usual output.
13139     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13140     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13141     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13142       lt_cv_prog_compiler_pic_works_CXX=yes
13143     fi
13144   fi
13145   $rm conftest*
13146
13147fi
13148{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13149echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13150
13151if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13152    case $lt_prog_compiler_pic_CXX in
13153     "" | " "*) ;;
13154     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13155     esac
13156else
13157    lt_prog_compiler_pic_CXX=
13158     lt_prog_compiler_can_build_shared_CXX=no
13159fi
13160
13161fi
13162case $host_os in
13163  # For platforms which do not support PIC, -DPIC is meaningless:
13164  *djgpp*)
13165    lt_prog_compiler_pic_CXX=
13166    ;;
13167  *)
13168    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13169    ;;
13170esac
13171
13172#
13173# Check to make sure the static flag actually works.
13174#
13175wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13176{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13177echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13178if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13179  echo $ECHO_N "(cached) $ECHO_C" >&6
13180else
13181  lt_cv_prog_compiler_static_works_CXX=no
13182   save_LDFLAGS="$LDFLAGS"
13183   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13184   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13185   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13186     # The linker can only warn and ignore the option if not recognized
13187     # So say no if there are warnings
13188     if test -s conftest.err; then
13189       # Append any errors to the config.log.
13190       cat conftest.err 1>&5
13191       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13192       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13193       if diff conftest.exp conftest.er2 >/dev/null; then
13194         lt_cv_prog_compiler_static_works_CXX=yes
13195       fi
13196     else
13197       lt_cv_prog_compiler_static_works_CXX=yes
13198     fi
13199   fi
13200   $rm -r conftest*
13201   LDFLAGS="$save_LDFLAGS"
13202
13203fi
13204{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13205echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13206
13207if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13208    :
13209else
13210    lt_prog_compiler_static_CXX=
13211fi
13212
13213
13214{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13215echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13216if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13217  echo $ECHO_N "(cached) $ECHO_C" >&6
13218else
13219  lt_cv_prog_compiler_c_o_CXX=no
13220   $rm -r conftest 2>/dev/null
13221   mkdir conftest
13222   cd conftest
13223   mkdir out
13224   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13225
13226   lt_compiler_flag="-o out/conftest2.$ac_objext"
13227   # Insert the option either (1) after the last *FLAGS variable, or
13228   # (2) before a word containing "conftest.", or (3) at the end.
13229   # Note that $ac_compile itself does not contain backslashes and begins
13230   # with a dollar sign (not a hyphen), so the echo should work correctly.
13231   lt_compile=`echo "$ac_compile" | $SED \
13232   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13233   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13234   -e 's:$: $lt_compiler_flag:'`
13235   (eval echo "\"\$as_me:13235: $lt_compile\"" >&5)
13236   (eval "$lt_compile" 2>out/conftest.err)
13237   ac_status=$?
13238   cat out/conftest.err >&5
13239   echo "$as_me:13239: \$? = $ac_status" >&5
13240   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13241   then
13242     # The compiler can only warn and ignore the option if not recognized
13243     # So say no if there are warnings
13244     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13245     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13246     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13247       lt_cv_prog_compiler_c_o_CXX=yes
13248     fi
13249   fi
13250   chmod u+w . 2>&5
13251   $rm conftest*
13252   # SGI C++ compiler will create directory out/ii_files/ for
13253   # template instantiation
13254   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13255   $rm out/* && rmdir out
13256   cd ..
13257   rmdir conftest
13258   $rm conftest*
13259
13260fi
13261{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13262echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13263
13264
13265hard_links="nottested"
13266if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13267  # do not overwrite the value of need_locks provided by the user
13268  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13269echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13270  hard_links=yes
13271  $rm conftest*
13272  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13273  touch conftest.a
13274  ln conftest.a conftest.b 2>&5 || hard_links=no
13275  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13276  { echo "$as_me:$LINENO: result: $hard_links" >&5
13277echo "${ECHO_T}$hard_links" >&6; }
13278  if test "$hard_links" = no; then
13279    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13280echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13281    need_locks=warn
13282  fi
13283else
13284  need_locks=no
13285fi
13286
13287{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13288echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13289
13290  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13291  case $host_os in
13292  aix[4-9]*)
13293    # If we're using GNU nm, then we don't want the "-C" option.
13294    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13295    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13296      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'
13297    else
13298      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'
13299    fi
13300    ;;
13301  pw32*)
13302    export_symbols_cmds_CXX="$ltdll_cmds"
13303  ;;
13304  cygwin* | mingw*)
13305    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'
13306  ;;
13307  linux* | k*bsd*-gnu)
13308    link_all_deplibs_CXX=no
13309  ;;
13310  *)
13311    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13312  ;;
13313  esac
13314  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13315
13316{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13317echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13318test "$ld_shlibs_CXX" = no && can_build_shared=no
13319
13320#
13321# Do we need to explicitly link libc?
13322#
13323case "x$archive_cmds_need_lc_CXX" in
13324x|xyes)
13325  # Assume -lc should be added
13326  archive_cmds_need_lc_CXX=yes
13327
13328  if test "$enable_shared" = yes && test "$GCC" = yes; then
13329    case $archive_cmds_CXX in
13330    *'~'*)
13331      # FIXME: we may have to deal with multi-command sequences.
13332      ;;
13333    '$CC '*)
13334      # Test whether the compiler implicitly links with -lc since on some
13335      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13336      # to ld, don't add -lc before -lgcc.
13337      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13338echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13339      $rm conftest*
13340      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13341
13342      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13343  (eval $ac_compile) 2>&5
13344  ac_status=$?
13345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346  (exit $ac_status); } 2>conftest.err; then
13347        soname=conftest
13348        lib=conftest
13349        libobjs=conftest.$ac_objext
13350        deplibs=
13351        wl=$lt_prog_compiler_wl_CXX
13352	pic_flag=$lt_prog_compiler_pic_CXX
13353        compiler_flags=-v
13354        linker_flags=-v
13355        verstring=
13356        output_objdir=.
13357        libname=conftest
13358        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13359        allow_undefined_flag_CXX=
13360        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13361  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13362  ac_status=$?
13363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364  (exit $ac_status); }
13365        then
13366	  archive_cmds_need_lc_CXX=no
13367        else
13368	  archive_cmds_need_lc_CXX=yes
13369        fi
13370        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13371      else
13372        cat conftest.err 1>&5
13373      fi
13374      $rm conftest*
13375      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13376echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13377      ;;
13378    esac
13379  fi
13380  ;;
13381esac
13382
13383{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13384echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13385library_names_spec=
13386libname_spec='lib$name'
13387soname_spec=
13388shrext_cmds=".so"
13389postinstall_cmds=
13390postuninstall_cmds=
13391finish_cmds=
13392finish_eval=
13393shlibpath_var=
13394shlibpath_overrides_runpath=unknown
13395version_type=none
13396dynamic_linker="$host_os ld.so"
13397sys_lib_dlsearch_path_spec="/lib /usr/lib"
13398
13399need_lib_prefix=unknown
13400hardcode_into_libs=no
13401
13402# when you set need_version to no, make sure it does not cause -set_version
13403# flags to be left without arguments
13404need_version=unknown
13405
13406case $host_os in
13407aix3*)
13408  version_type=linux
13409  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13410  shlibpath_var=LIBPATH
13411
13412  # AIX 3 has no versioning support, so we append a major version to the name.
13413  soname_spec='${libname}${release}${shared_ext}$major'
13414  ;;
13415
13416aix[4-9]*)
13417  version_type=linux
13418  need_lib_prefix=no
13419  need_version=no
13420  hardcode_into_libs=yes
13421  if test "$host_cpu" = ia64; then
13422    # AIX 5 supports IA64
13423    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13424    shlibpath_var=LD_LIBRARY_PATH
13425  else
13426    # With GCC up to 2.95.x, collect2 would create an import file
13427    # for dependence libraries.  The import file would start with
13428    # the line `#! .'.  This would cause the generated library to
13429    # depend on `.', always an invalid library.  This was fixed in
13430    # development snapshots of GCC prior to 3.0.
13431    case $host_os in
13432      aix4 | aix4.[01] | aix4.[01].*)
13433      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13434	   echo ' yes '
13435	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13436	:
13437      else
13438	can_build_shared=no
13439      fi
13440      ;;
13441    esac
13442    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13443    # soname into executable. Probably we can add versioning support to
13444    # collect2, so additional links can be useful in future.
13445    if test "$aix_use_runtimelinking" = yes; then
13446      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13447      # instead of lib<name>.a to let people know that these are not
13448      # typical AIX shared libraries.
13449      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13450    else
13451      # We preserve .a as extension for shared libraries through AIX4.2
13452      # and later when we are not doing run time linking.
13453      library_names_spec='${libname}${release}.a $libname.a'
13454      soname_spec='${libname}${release}${shared_ext}$major'
13455    fi
13456    shlibpath_var=LIBPATH
13457  fi
13458  ;;
13459
13460amigaos*)
13461  library_names_spec='$libname.ixlibrary $libname.a'
13462  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13463  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'
13464  ;;
13465
13466beos*)
13467  library_names_spec='${libname}${shared_ext}'
13468  dynamic_linker="$host_os ld.so"
13469  shlibpath_var=LIBRARY_PATH
13470  ;;
13471
13472bsdi[45]*)
13473  version_type=linux
13474  need_version=no
13475  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13476  soname_spec='${libname}${release}${shared_ext}$major'
13477  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13478  shlibpath_var=LD_LIBRARY_PATH
13479  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13480  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13481  # the default ld.so.conf also contains /usr/contrib/lib and
13482  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13483  # libtool to hard-code these into programs
13484  ;;
13485
13486cygwin* | mingw* | pw32*)
13487  version_type=windows
13488  shrext_cmds=".dll"
13489  need_version=no
13490  need_lib_prefix=no
13491
13492  case $GCC,$host_os in
13493  yes,cygwin* | yes,mingw* | yes,pw32*)
13494    library_names_spec='$libname.dll.a'
13495    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13496    postinstall_cmds='base_file=`basename \${file}`~
13497      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13498      dldir=$destdir/`dirname \$dlpath`~
13499      test -d \$dldir || mkdir -p \$dldir~
13500      $install_prog $dir/$dlname \$dldir/$dlname~
13501      chmod a+x \$dldir/$dlname'
13502    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13503      dlpath=$dir/\$dldll~
13504       $rm \$dlpath'
13505    shlibpath_overrides_runpath=yes
13506
13507    case $host_os in
13508    cygwin*)
13509      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13510      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13511      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13512      ;;
13513    mingw*)
13514      # MinGW DLLs use traditional 'lib' prefix
13515      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13516      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13517      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13518        # It is most probably a Windows format PATH printed by
13519        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13520        # path with ; separators, and with drive letters. We can handle the
13521        # drive letters (cygwin fileutils understands them), so leave them,
13522        # especially as we might pass files found there to a mingw objdump,
13523        # which wouldn't understand a cygwinified path. Ahh.
13524        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13525      else
13526        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13527      fi
13528      ;;
13529    pw32*)
13530      # pw32 DLLs use 'pw' prefix rather than 'lib'
13531      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13532      ;;
13533    esac
13534    ;;
13535
13536  *)
13537    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13538    ;;
13539  esac
13540  dynamic_linker='Win32 ld.exe'
13541  # FIXME: first we should search . and the directory the executable is in
13542  shlibpath_var=PATH
13543  ;;
13544
13545darwin* | rhapsody*)
13546  dynamic_linker="$host_os dyld"
13547  version_type=darwin
13548  need_lib_prefix=no
13549  need_version=no
13550  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13551  soname_spec='${libname}${release}${major}$shared_ext'
13552  shlibpath_overrides_runpath=yes
13553  shlibpath_var=DYLD_LIBRARY_PATH
13554  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13555
13556  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13557  ;;
13558
13559dgux*)
13560  version_type=linux
13561  need_lib_prefix=no
13562  need_version=no
13563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13564  soname_spec='${libname}${release}${shared_ext}$major'
13565  shlibpath_var=LD_LIBRARY_PATH
13566  ;;
13567
13568freebsd1*)
13569  dynamic_linker=no
13570  ;;
13571
13572freebsd* | dragonfly*)
13573  # DragonFly does not have aout.  When/if they implement a new
13574  # versioning mechanism, adjust this.
13575  if test -x /usr/bin/objformat; then
13576    objformat=`/usr/bin/objformat`
13577  else
13578    case $host_os in
13579    freebsd[123]*) objformat=aout ;;
13580    *) objformat=elf ;;
13581    esac
13582  fi
13583  version_type=freebsd-$objformat
13584  case $version_type in
13585    freebsd-elf*)
13586      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13587      need_version=no
13588      need_lib_prefix=no
13589      ;;
13590    freebsd-*)
13591      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13592      need_version=yes
13593      ;;
13594  esac
13595  shlibpath_var=LD_LIBRARY_PATH
13596  case $host_os in
13597  freebsd2*)
13598    shlibpath_overrides_runpath=yes
13599    ;;
13600  freebsd3.[01]* | freebsdelf3.[01]*)
13601    shlibpath_overrides_runpath=yes
13602    hardcode_into_libs=yes
13603    ;;
13604  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13605  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13606    shlibpath_overrides_runpath=no
13607    hardcode_into_libs=yes
13608    ;;
13609  *) # from 4.6 on, and DragonFly
13610    shlibpath_overrides_runpath=yes
13611    hardcode_into_libs=yes
13612    ;;
13613  esac
13614  ;;
13615
13616gnu*)
13617  version_type=linux
13618  need_lib_prefix=no
13619  need_version=no
13620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13621  soname_spec='${libname}${release}${shared_ext}$major'
13622  shlibpath_var=LD_LIBRARY_PATH
13623  hardcode_into_libs=yes
13624  ;;
13625
13626hpux9* | hpux10* | hpux11*)
13627  # Give a soname corresponding to the major version so that dld.sl refuses to
13628  # link against other versions.
13629  version_type=sunos
13630  need_lib_prefix=no
13631  need_version=no
13632  case $host_cpu in
13633  ia64*)
13634    shrext_cmds='.so'
13635    hardcode_into_libs=yes
13636    dynamic_linker="$host_os dld.so"
13637    shlibpath_var=LD_LIBRARY_PATH
13638    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13639    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13640    soname_spec='${libname}${release}${shared_ext}$major'
13641    if test "X$HPUX_IA64_MODE" = X32; then
13642      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13643    else
13644      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13645    fi
13646    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13647    ;;
13648   hppa*64*)
13649     shrext_cmds='.sl'
13650     hardcode_into_libs=yes
13651     dynamic_linker="$host_os dld.sl"
13652     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13653     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13654     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13655     soname_spec='${libname}${release}${shared_ext}$major'
13656     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13657     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13658     ;;
13659   *)
13660    shrext_cmds='.sl'
13661    dynamic_linker="$host_os dld.sl"
13662    shlibpath_var=SHLIB_PATH
13663    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13664    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13665    soname_spec='${libname}${release}${shared_ext}$major'
13666    ;;
13667  esac
13668  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13669  postinstall_cmds='chmod 555 $lib'
13670  ;;
13671
13672interix[3-9]*)
13673  version_type=linux
13674  need_lib_prefix=no
13675  need_version=no
13676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13677  soname_spec='${libname}${release}${shared_ext}$major'
13678  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13679  shlibpath_var=LD_LIBRARY_PATH
13680  shlibpath_overrides_runpath=no
13681  hardcode_into_libs=yes
13682  ;;
13683
13684irix5* | irix6* | nonstopux*)
13685  case $host_os in
13686    nonstopux*) version_type=nonstopux ;;
13687    *)
13688	if test "$lt_cv_prog_gnu_ld" = yes; then
13689		version_type=linux
13690	else
13691		version_type=irix
13692	fi ;;
13693  esac
13694  need_lib_prefix=no
13695  need_version=no
13696  soname_spec='${libname}${release}${shared_ext}$major'
13697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13698  case $host_os in
13699  irix5* | nonstopux*)
13700    libsuff= shlibsuff=
13701    ;;
13702  *)
13703    case $LD in # libtool.m4 will add one of these switches to LD
13704    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13705      libsuff= shlibsuff= libmagic=32-bit;;
13706    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13707      libsuff=32 shlibsuff=N32 libmagic=N32;;
13708    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13709      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13710    *) libsuff= shlibsuff= libmagic=never-match;;
13711    esac
13712    ;;
13713  esac
13714  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13715  shlibpath_overrides_runpath=no
13716  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13717  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13718  hardcode_into_libs=yes
13719  ;;
13720
13721# No shared lib support for Linux oldld, aout, or coff.
13722linux*oldld* | linux*aout* | linux*coff*)
13723  dynamic_linker=no
13724  ;;
13725
13726# This must be Linux ELF.
13727linux* | k*bsd*-gnu)
13728  version_type=linux
13729  need_lib_prefix=no
13730  need_version=no
13731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13732  soname_spec='${libname}${release}${shared_ext}$major'
13733  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13734  shlibpath_var=LD_LIBRARY_PATH
13735  shlibpath_overrides_runpath=no
13736  # This implies no fast_install, which is unacceptable.
13737  # Some rework will be needed to allow for fast_install
13738  # before this can be enabled.
13739  hardcode_into_libs=yes
13740
13741  # Append ld.so.conf contents to the search path
13742  if test -f /etc/ld.so.conf; then
13743    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' ' '`
13744    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13745  fi
13746
13747  # We used to test for /lib/ld.so.1 and disable shared libraries on
13748  # powerpc, because MkLinux only supported shared libraries with the
13749  # GNU dynamic linker.  Since this was broken with cross compilers,
13750  # most powerpc-linux boxes support dynamic linking these days and
13751  # people can always --disable-shared, the test was removed, and we
13752  # assume the GNU/Linux dynamic linker is in use.
13753  dynamic_linker='GNU/Linux ld.so'
13754  ;;
13755
13756netbsdelf*-gnu)
13757  version_type=linux
13758  need_lib_prefix=no
13759  need_version=no
13760  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13761  soname_spec='${libname}${release}${shared_ext}$major'
13762  shlibpath_var=LD_LIBRARY_PATH
13763  shlibpath_overrides_runpath=no
13764  hardcode_into_libs=yes
13765  dynamic_linker='NetBSD ld.elf_so'
13766  ;;
13767
13768netbsd*)
13769  version_type=sunos
13770  need_lib_prefix=no
13771  need_version=no
13772  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13773    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13774    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13775    dynamic_linker='NetBSD (a.out) ld.so'
13776  else
13777    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13778    soname_spec='${libname}${release}${shared_ext}$major'
13779    dynamic_linker='NetBSD ld.elf_so'
13780  fi
13781  shlibpath_var=LD_LIBRARY_PATH
13782  shlibpath_overrides_runpath=yes
13783  hardcode_into_libs=yes
13784  ;;
13785
13786newsos6)
13787  version_type=linux
13788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13789  shlibpath_var=LD_LIBRARY_PATH
13790  shlibpath_overrides_runpath=yes
13791  ;;
13792
13793nto-qnx*)
13794  version_type=linux
13795  need_lib_prefix=no
13796  need_version=no
13797  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13798  soname_spec='${libname}${release}${shared_ext}$major'
13799  shlibpath_var=LD_LIBRARY_PATH
13800  shlibpath_overrides_runpath=yes
13801  ;;
13802
13803openbsd*)
13804  version_type=sunos
13805  sys_lib_dlsearch_path_spec="/usr/lib"
13806  need_lib_prefix=no
13807  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13808  case $host_os in
13809    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13810    *)                         need_version=no  ;;
13811  esac
13812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13813  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13814  shlibpath_var=LD_LIBRARY_PATH
13815  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13816    case $host_os in
13817      openbsd2.[89] | openbsd2.[89].*)
13818	shlibpath_overrides_runpath=no
13819	;;
13820      *)
13821	shlibpath_overrides_runpath=yes
13822	;;
13823      esac
13824  else
13825    shlibpath_overrides_runpath=yes
13826  fi
13827  ;;
13828
13829os2*)
13830  libname_spec='$name'
13831  shrext_cmds=".dll"
13832  need_lib_prefix=no
13833  library_names_spec='$libname${shared_ext} $libname.a'
13834  dynamic_linker='OS/2 ld.exe'
13835  shlibpath_var=LIBPATH
13836  ;;
13837
13838osf3* | osf4* | osf5*)
13839  version_type=osf
13840  need_lib_prefix=no
13841  need_version=no
13842  soname_spec='${libname}${release}${shared_ext}$major'
13843  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13844  shlibpath_var=LD_LIBRARY_PATH
13845  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13846  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13847  ;;
13848
13849rdos*)
13850  dynamic_linker=no
13851  ;;
13852
13853solaris*)
13854  version_type=linux
13855  need_lib_prefix=no
13856  need_version=no
13857  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13858  soname_spec='${libname}${release}${shared_ext}$major'
13859  shlibpath_var=LD_LIBRARY_PATH
13860  shlibpath_overrides_runpath=yes
13861  hardcode_into_libs=yes
13862  # ldd complains unless libraries are executable
13863  postinstall_cmds='chmod +x $lib'
13864  ;;
13865
13866sunos4*)
13867  version_type=sunos
13868  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13869  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13870  shlibpath_var=LD_LIBRARY_PATH
13871  shlibpath_overrides_runpath=yes
13872  if test "$with_gnu_ld" = yes; then
13873    need_lib_prefix=no
13874  fi
13875  need_version=yes
13876  ;;
13877
13878sysv4 | sysv4.3*)
13879  version_type=linux
13880  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13881  soname_spec='${libname}${release}${shared_ext}$major'
13882  shlibpath_var=LD_LIBRARY_PATH
13883  case $host_vendor in
13884    sni)
13885      shlibpath_overrides_runpath=no
13886      need_lib_prefix=no
13887      export_dynamic_flag_spec='${wl}-Blargedynsym'
13888      runpath_var=LD_RUN_PATH
13889      ;;
13890    siemens)
13891      need_lib_prefix=no
13892      ;;
13893    motorola)
13894      need_lib_prefix=no
13895      need_version=no
13896      shlibpath_overrides_runpath=no
13897      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13898      ;;
13899  esac
13900  ;;
13901
13902sysv4*MP*)
13903  if test -d /usr/nec ;then
13904    version_type=linux
13905    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13906    soname_spec='$libname${shared_ext}.$major'
13907    shlibpath_var=LD_LIBRARY_PATH
13908  fi
13909  ;;
13910
13911sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13912  version_type=freebsd-elf
13913  need_lib_prefix=no
13914  need_version=no
13915  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13916  soname_spec='${libname}${release}${shared_ext}$major'
13917  shlibpath_var=LD_LIBRARY_PATH
13918  hardcode_into_libs=yes
13919  if test "$with_gnu_ld" = yes; then
13920    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13921    shlibpath_overrides_runpath=no
13922  else
13923    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13924    shlibpath_overrides_runpath=yes
13925    case $host_os in
13926      sco3.2v5*)
13927        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13928	;;
13929    esac
13930  fi
13931  sys_lib_dlsearch_path_spec='/usr/lib'
13932  ;;
13933
13934uts4*)
13935  version_type=linux
13936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13937  soname_spec='${libname}${release}${shared_ext}$major'
13938  shlibpath_var=LD_LIBRARY_PATH
13939  ;;
13940
13941*)
13942  dynamic_linker=no
13943  ;;
13944esac
13945{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13946echo "${ECHO_T}$dynamic_linker" >&6; }
13947test "$dynamic_linker" = no && can_build_shared=no
13948
13949if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13950  echo $ECHO_N "(cached) $ECHO_C" >&6
13951else
13952  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13953fi
13954
13955sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13956if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13957  echo $ECHO_N "(cached) $ECHO_C" >&6
13958else
13959  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13960fi
13961
13962sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13963
13964variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13965if test "$GCC" = yes; then
13966  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13967fi
13968
13969{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13970echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13971hardcode_action_CXX=
13972if test -n "$hardcode_libdir_flag_spec_CXX" || \
13973   test -n "$runpath_var_CXX" || \
13974   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13975
13976  # We can hardcode non-existant directories.
13977  if test "$hardcode_direct_CXX" != no &&
13978     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13979     # have to relink, otherwise we might link with an installed library
13980     # when we should be linking with a yet-to-be-installed one
13981     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13982     test "$hardcode_minus_L_CXX" != no; then
13983    # Linking always hardcodes the temporary library directory.
13984    hardcode_action_CXX=relink
13985  else
13986    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13987    hardcode_action_CXX=immediate
13988  fi
13989else
13990  # We cannot hardcode anything, or else we can only hardcode existing
13991  # directories.
13992  hardcode_action_CXX=unsupported
13993fi
13994{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13995echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13996
13997if test "$hardcode_action_CXX" = relink; then
13998  # Fast installation is not supported
13999  enable_fast_install=no
14000elif test "$shlibpath_overrides_runpath" = yes ||
14001     test "$enable_shared" = no; then
14002  # Fast installation is not necessary
14003  enable_fast_install=needless
14004fi
14005
14006
14007# The else clause should only fire when bootstrapping the
14008# libtool distribution, otherwise you forgot to ship ltmain.sh
14009# with your package, and you will get complaints that there are
14010# no rules to generate ltmain.sh.
14011if test -f "$ltmain"; then
14012  # See if we are running on zsh, and set the options which allow our commands through
14013  # without removal of \ escapes.
14014  if test -n "${ZSH_VERSION+set}" ; then
14015    setopt NO_GLOB_SUBST
14016  fi
14017  # Now quote all the things that may contain metacharacters while being
14018  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14019  # variables and quote the copies for generation of the libtool script.
14020  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14021    SED SHELL STRIP \
14022    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14023    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14024    deplibs_check_method reload_flag reload_cmds need_locks \
14025    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14026    lt_cv_sys_global_symbol_to_c_name_address \
14027    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14028    old_postinstall_cmds old_postuninstall_cmds \
14029    compiler_CXX \
14030    CC_CXX \
14031    LD_CXX \
14032    lt_prog_compiler_wl_CXX \
14033    lt_prog_compiler_pic_CXX \
14034    lt_prog_compiler_static_CXX \
14035    lt_prog_compiler_no_builtin_flag_CXX \
14036    export_dynamic_flag_spec_CXX \
14037    thread_safe_flag_spec_CXX \
14038    whole_archive_flag_spec_CXX \
14039    enable_shared_with_static_runtimes_CXX \
14040    old_archive_cmds_CXX \
14041    old_archive_from_new_cmds_CXX \
14042    predep_objects_CXX \
14043    postdep_objects_CXX \
14044    predeps_CXX \
14045    postdeps_CXX \
14046    compiler_lib_search_path_CXX \
14047    compiler_lib_search_dirs_CXX \
14048    archive_cmds_CXX \
14049    archive_expsym_cmds_CXX \
14050    postinstall_cmds_CXX \
14051    postuninstall_cmds_CXX \
14052    old_archive_from_expsyms_cmds_CXX \
14053    allow_undefined_flag_CXX \
14054    no_undefined_flag_CXX \
14055    export_symbols_cmds_CXX \
14056    hardcode_libdir_flag_spec_CXX \
14057    hardcode_libdir_flag_spec_ld_CXX \
14058    hardcode_libdir_separator_CXX \
14059    hardcode_automatic_CXX \
14060    module_cmds_CXX \
14061    module_expsym_cmds_CXX \
14062    lt_cv_prog_compiler_c_o_CXX \
14063    fix_srcfile_path_CXX \
14064    exclude_expsyms_CXX \
14065    include_expsyms_CXX; do
14066
14067    case $var in
14068    old_archive_cmds_CXX | \
14069    old_archive_from_new_cmds_CXX | \
14070    archive_cmds_CXX | \
14071    archive_expsym_cmds_CXX | \
14072    module_cmds_CXX | \
14073    module_expsym_cmds_CXX | \
14074    old_archive_from_expsyms_cmds_CXX | \
14075    export_symbols_cmds_CXX | \
14076    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14077    postinstall_cmds | postuninstall_cmds | \
14078    old_postinstall_cmds | old_postuninstall_cmds | \
14079    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14080      # Double-quote double-evaled strings.
14081      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14082      ;;
14083    *)
14084      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14085      ;;
14086    esac
14087  done
14088
14089  case $lt_echo in
14090  *'\$0 --fallback-echo"')
14091    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14092    ;;
14093  esac
14094
14095cfgfile="$ofile"
14096
14097  cat <<__EOF__ >> "$cfgfile"
14098# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14099
14100# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14101
14102# Shell to use when invoking shell scripts.
14103SHELL=$lt_SHELL
14104
14105# Whether or not to build shared libraries.
14106build_libtool_libs=$enable_shared
14107
14108# Whether or not to build static libraries.
14109build_old_libs=$enable_static
14110
14111# Whether or not to add -lc for building shared libraries.
14112build_libtool_need_lc=$archive_cmds_need_lc_CXX
14113
14114# Whether or not to disallow shared libs when runtime libs are static
14115allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14116
14117# Whether or not to optimize for fast installation.
14118fast_install=$enable_fast_install
14119
14120# The host system.
14121host_alias=$host_alias
14122host=$host
14123host_os=$host_os
14124
14125# The build system.
14126build_alias=$build_alias
14127build=$build
14128build_os=$build_os
14129
14130# An echo program that does not interpret backslashes.
14131echo=$lt_echo
14132
14133# The archiver.
14134AR=$lt_AR
14135AR_FLAGS=$lt_AR_FLAGS
14136
14137# A C compiler.
14138LTCC=$lt_LTCC
14139
14140# LTCC compiler flags.
14141LTCFLAGS=$lt_LTCFLAGS
14142
14143# A language-specific compiler.
14144CC=$lt_compiler_CXX
14145
14146# Is the compiler the GNU C compiler?
14147with_gcc=$GCC_CXX
14148
14149# An ERE matcher.
14150EGREP=$lt_EGREP
14151
14152# The linker used to build libraries.
14153LD=$lt_LD_CXX
14154
14155# Whether we need hard or soft links.
14156LN_S=$lt_LN_S
14157
14158# A BSD-compatible nm program.
14159NM=$lt_NM
14160
14161# A symbol stripping program
14162STRIP=$lt_STRIP
14163
14164# Used to examine libraries when file_magic_cmd begins "file"
14165MAGIC_CMD=$MAGIC_CMD
14166
14167# Used on cygwin: DLL creation program.
14168DLLTOOL="$DLLTOOL"
14169
14170# Used on cygwin: object dumper.
14171OBJDUMP="$OBJDUMP"
14172
14173# Used on cygwin: assembler.
14174AS="$AS"
14175
14176# The name of the directory that contains temporary libtool files.
14177objdir=$objdir
14178
14179# How to create reloadable object files.
14180reload_flag=$lt_reload_flag
14181reload_cmds=$lt_reload_cmds
14182
14183# How to pass a linker flag through the compiler.
14184wl=$lt_lt_prog_compiler_wl_CXX
14185
14186# Object file suffix (normally "o").
14187objext="$ac_objext"
14188
14189# Old archive suffix (normally "a").
14190libext="$libext"
14191
14192# Shared library suffix (normally ".so").
14193shrext_cmds='$shrext_cmds'
14194
14195# Executable file suffix (normally "").
14196exeext="$exeext"
14197
14198# Additional compiler flags for building library objects.
14199pic_flag=$lt_lt_prog_compiler_pic_CXX
14200pic_mode=$pic_mode
14201
14202# What is the maximum length of a command?
14203max_cmd_len=$lt_cv_sys_max_cmd_len
14204
14205# Does compiler simultaneously support -c and -o options?
14206compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14207
14208# Must we lock files when doing compilation?
14209need_locks=$lt_need_locks
14210
14211# Do we need the lib prefix for modules?
14212need_lib_prefix=$need_lib_prefix
14213
14214# Do we need a version for libraries?
14215need_version=$need_version
14216
14217# Whether dlopen is supported.
14218dlopen_support=$enable_dlopen
14219
14220# Whether dlopen of programs is supported.
14221dlopen_self=$enable_dlopen_self
14222
14223# Whether dlopen of statically linked programs is supported.
14224dlopen_self_static=$enable_dlopen_self_static
14225
14226# Compiler flag to prevent dynamic linking.
14227link_static_flag=$lt_lt_prog_compiler_static_CXX
14228
14229# Compiler flag to turn off builtin functions.
14230no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14231
14232# Compiler flag to allow reflexive dlopens.
14233export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14234
14235# Compiler flag to generate shared objects directly from archives.
14236whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14237
14238# Compiler flag to generate thread-safe objects.
14239thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14240
14241# Library versioning type.
14242version_type=$version_type
14243
14244# Format of library name prefix.
14245libname_spec=$lt_libname_spec
14246
14247# List of archive names.  First name is the real one, the rest are links.
14248# The last name is the one that the linker finds with -lNAME.
14249library_names_spec=$lt_library_names_spec
14250
14251# The coded name of the library, if different from the real name.
14252soname_spec=$lt_soname_spec
14253
14254# Commands used to build and install an old-style archive.
14255RANLIB=$lt_RANLIB
14256old_archive_cmds=$lt_old_archive_cmds_CXX
14257old_postinstall_cmds=$lt_old_postinstall_cmds
14258old_postuninstall_cmds=$lt_old_postuninstall_cmds
14259
14260# Create an old-style archive from a shared archive.
14261old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14262
14263# Create a temporary old-style archive to link instead of a shared archive.
14264old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14265
14266# Commands used to build and install a shared archive.
14267archive_cmds=$lt_archive_cmds_CXX
14268archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14269postinstall_cmds=$lt_postinstall_cmds
14270postuninstall_cmds=$lt_postuninstall_cmds
14271
14272# Commands used to build a loadable module (assumed same as above if empty)
14273module_cmds=$lt_module_cmds_CXX
14274module_expsym_cmds=$lt_module_expsym_cmds_CXX
14275
14276# Commands to strip libraries.
14277old_striplib=$lt_old_striplib
14278striplib=$lt_striplib
14279
14280# Dependencies to place before the objects being linked to create a
14281# shared library.
14282predep_objects=$lt_predep_objects_CXX
14283
14284# Dependencies to place after the objects being linked to create a
14285# shared library.
14286postdep_objects=$lt_postdep_objects_CXX
14287
14288# Dependencies to place before the objects being linked to create a
14289# shared library.
14290predeps=$lt_predeps_CXX
14291
14292# Dependencies to place after the objects being linked to create a
14293# shared library.
14294postdeps=$lt_postdeps_CXX
14295
14296# The directories searched by this compiler when creating a shared
14297# library
14298compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14299
14300# The library search path used internally by the compiler when linking
14301# a shared library.
14302compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14303
14304# Method to check whether dependent libraries are shared objects.
14305deplibs_check_method=$lt_deplibs_check_method
14306
14307# Command to use when deplibs_check_method == file_magic.
14308file_magic_cmd=$lt_file_magic_cmd
14309
14310# Flag that allows shared libraries with undefined symbols to be built.
14311allow_undefined_flag=$lt_allow_undefined_flag_CXX
14312
14313# Flag that forces no undefined symbols.
14314no_undefined_flag=$lt_no_undefined_flag_CXX
14315
14316# Commands used to finish a libtool library installation in a directory.
14317finish_cmds=$lt_finish_cmds
14318
14319# Same as above, but a single script fragment to be evaled but not shown.
14320finish_eval=$lt_finish_eval
14321
14322# Take the output of nm and produce a listing of raw symbols and C names.
14323global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14324
14325# Transform the output of nm in a proper C declaration
14326global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14327
14328# Transform the output of nm in a C name address pair
14329global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14330
14331# This is the shared library runtime path variable.
14332runpath_var=$runpath_var
14333
14334# This is the shared library path variable.
14335shlibpath_var=$shlibpath_var
14336
14337# Is shlibpath searched before the hard-coded library search path?
14338shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14339
14340# How to hardcode a shared library path into an executable.
14341hardcode_action=$hardcode_action_CXX
14342
14343# Whether we should hardcode library paths into libraries.
14344hardcode_into_libs=$hardcode_into_libs
14345
14346# Flag to hardcode \$libdir into a binary during linking.
14347# This must work even if \$libdir does not exist.
14348hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14349
14350# If ld is used when linking, flag to hardcode \$libdir into
14351# a binary during linking. This must work even if \$libdir does
14352# not exist.
14353hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14354
14355# Whether we need a single -rpath flag with a separated argument.
14356hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14357
14358# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14359# resulting binary.
14360hardcode_direct=$hardcode_direct_CXX
14361
14362# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14363# resulting binary.
14364hardcode_minus_L=$hardcode_minus_L_CXX
14365
14366# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14367# the resulting binary.
14368hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14369
14370# Set to yes if building a shared library automatically hardcodes DIR into the library
14371# and all subsequent libraries and executables linked against it.
14372hardcode_automatic=$hardcode_automatic_CXX
14373
14374# Variables whose values should be saved in libtool wrapper scripts and
14375# restored at relink time.
14376variables_saved_for_relink="$variables_saved_for_relink"
14377
14378# Whether libtool must link a program against all its dependency libraries.
14379link_all_deplibs=$link_all_deplibs_CXX
14380
14381# Compile-time system search path for libraries
14382sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14383
14384# Run-time system search path for libraries
14385sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14386
14387# Fix the shell variable \$srcfile for the compiler.
14388fix_srcfile_path=$lt_fix_srcfile_path
14389
14390# Set to yes if exported symbols are required.
14391always_export_symbols=$always_export_symbols_CXX
14392
14393# The commands to list exported symbols.
14394export_symbols_cmds=$lt_export_symbols_cmds_CXX
14395
14396# The commands to extract the exported symbol list from a shared archive.
14397extract_expsyms_cmds=$lt_extract_expsyms_cmds
14398
14399# Symbols that should not be listed in the preloaded symbols.
14400exclude_expsyms=$lt_exclude_expsyms_CXX
14401
14402# Symbols that must always be exported.
14403include_expsyms=$lt_include_expsyms_CXX
14404
14405# ### END LIBTOOL TAG CONFIG: $tagname
14406
14407__EOF__
14408
14409
14410else
14411  # If there is no Makefile yet, we rely on a make rule to execute
14412  # `config.status --recheck' to rerun these tests and create the
14413  # libtool script then.
14414  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14415  if test -f "$ltmain_in"; then
14416    test -f Makefile && make "$ltmain"
14417  fi
14418fi
14419
14420
14421ac_ext=c
14422ac_cpp='$CPP $CPPFLAGS'
14423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14425ac_compiler_gnu=$ac_cv_c_compiler_gnu
14426
14427CC=$lt_save_CC
14428LDCXX=$LD
14429LD=$lt_save_LD
14430GCC=$lt_save_GCC
14431with_gnu_ldcxx=$with_gnu_ld
14432with_gnu_ld=$lt_save_with_gnu_ld
14433lt_cv_path_LDCXX=$lt_cv_path_LD
14434lt_cv_path_LD=$lt_save_path_LD
14435lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14436lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14437
14438	else
14439	  tagname=""
14440	fi
14441	;;
14442
14443      F77)
14444	if test -n "$F77" && test "X$F77" != "Xno"; then
14445
14446ac_ext=f
14447ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14448ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14449ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14450
14451
14452archive_cmds_need_lc_F77=no
14453allow_undefined_flag_F77=
14454always_export_symbols_F77=no
14455archive_expsym_cmds_F77=
14456export_dynamic_flag_spec_F77=
14457hardcode_direct_F77=no
14458hardcode_libdir_flag_spec_F77=
14459hardcode_libdir_flag_spec_ld_F77=
14460hardcode_libdir_separator_F77=
14461hardcode_minus_L_F77=no
14462hardcode_automatic_F77=no
14463module_cmds_F77=
14464module_expsym_cmds_F77=
14465link_all_deplibs_F77=unknown
14466old_archive_cmds_F77=$old_archive_cmds
14467no_undefined_flag_F77=
14468whole_archive_flag_spec_F77=
14469enable_shared_with_static_runtimes_F77=no
14470
14471# Source file extension for f77 test sources.
14472ac_ext=f
14473
14474# Object file extension for compiled f77 test sources.
14475objext=o
14476objext_F77=$objext
14477
14478# Code to be used in simple compile tests
14479lt_simple_compile_test_code="\
14480      subroutine t
14481      return
14482      end
14483"
14484
14485# Code to be used in simple link tests
14486lt_simple_link_test_code="\
14487      program t
14488      end
14489"
14490
14491# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14492
14493# If no C compiler was specified, use CC.
14494LTCC=${LTCC-"$CC"}
14495
14496# If no C compiler flags were specified, use CFLAGS.
14497LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14498
14499# Allow CC to be a program name with arguments.
14500compiler=$CC
14501
14502
14503# save warnings/boilerplate of simple test code
14504ac_outfile=conftest.$ac_objext
14505echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14506eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14507_lt_compiler_boilerplate=`cat conftest.err`
14508$rm conftest*
14509
14510ac_outfile=conftest.$ac_objext
14511echo "$lt_simple_link_test_code" >conftest.$ac_ext
14512eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14513_lt_linker_boilerplate=`cat conftest.err`
14514$rm -r conftest*
14515
14516
14517# Allow CC to be a program name with arguments.
14518lt_save_CC="$CC"
14519CC=${F77-"f77"}
14520compiler=$CC
14521compiler_F77=$CC
14522for cc_temp in $compiler""; do
14523  case $cc_temp in
14524    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14525    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14526    \-*) ;;
14527    *) break;;
14528  esac
14529done
14530cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14531
14532
14533{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14534echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14535{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14536echo "${ECHO_T}$can_build_shared" >&6; }
14537
14538{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14539echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14540test "$can_build_shared" = "no" && enable_shared=no
14541
14542# On AIX, shared libraries and static libraries use the same namespace, and
14543# are all built from PIC.
14544case $host_os in
14545aix3*)
14546  test "$enable_shared" = yes && enable_static=no
14547  if test -n "$RANLIB"; then
14548    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14549    postinstall_cmds='$RANLIB $lib'
14550  fi
14551  ;;
14552aix[4-9]*)
14553  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14554    test "$enable_shared" = yes && enable_static=no
14555  fi
14556  ;;
14557esac
14558{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14559echo "${ECHO_T}$enable_shared" >&6; }
14560
14561{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14562echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14563# Make sure either enable_shared or enable_static is yes.
14564test "$enable_shared" = yes || enable_static=yes
14565{ echo "$as_me:$LINENO: result: $enable_static" >&5
14566echo "${ECHO_T}$enable_static" >&6; }
14567
14568GCC_F77="$G77"
14569LD_F77="$LD"
14570
14571lt_prog_compiler_wl_F77=
14572lt_prog_compiler_pic_F77=
14573lt_prog_compiler_static_F77=
14574
14575{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14576echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14577
14578  if test "$GCC" = yes; then
14579    lt_prog_compiler_wl_F77='-Wl,'
14580    lt_prog_compiler_static_F77='-static'
14581
14582    case $host_os in
14583      aix*)
14584      # All AIX code is PIC.
14585      if test "$host_cpu" = ia64; then
14586	# AIX 5 now supports IA64 processor
14587	lt_prog_compiler_static_F77='-Bstatic'
14588      fi
14589      ;;
14590
14591    amigaos*)
14592      # FIXME: we need at least 68020 code to build shared libraries, but
14593      # adding the `-m68020' flag to GCC prevents building anything better,
14594      # like `-m68040'.
14595      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14596      ;;
14597
14598    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14599      # PIC is the default for these OSes.
14600      ;;
14601
14602    mingw* | cygwin* | pw32* | os2*)
14603      # This hack is so that the source file can tell whether it is being
14604      # built for inclusion in a dll (and should export symbols for example).
14605      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14606      # (--disable-auto-import) libraries
14607      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14608      ;;
14609
14610    darwin* | rhapsody*)
14611      # PIC is the default on this platform
14612      # Common symbols not allowed in MH_DYLIB files
14613      lt_prog_compiler_pic_F77='-fno-common'
14614      ;;
14615
14616    interix[3-9]*)
14617      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14618      # Instead, we relocate shared libraries at runtime.
14619      ;;
14620
14621    msdosdjgpp*)
14622      # Just because we use GCC doesn't mean we suddenly get shared libraries
14623      # on systems that don't support them.
14624      lt_prog_compiler_can_build_shared_F77=no
14625      enable_shared=no
14626      ;;
14627
14628    sysv4*MP*)
14629      if test -d /usr/nec; then
14630	lt_prog_compiler_pic_F77=-Kconform_pic
14631      fi
14632      ;;
14633
14634    hpux*)
14635      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14636      # not for PA HP-UX.
14637      case $host_cpu in
14638      hppa*64*|ia64*)
14639	# +Z the default
14640	;;
14641      *)
14642	lt_prog_compiler_pic_F77='-fPIC'
14643	;;
14644      esac
14645      ;;
14646
14647    *)
14648      lt_prog_compiler_pic_F77='-fPIC'
14649      ;;
14650    esac
14651  else
14652    # PORTME Check for flag to pass linker flags through the system compiler.
14653    case $host_os in
14654    aix*)
14655      lt_prog_compiler_wl_F77='-Wl,'
14656      if test "$host_cpu" = ia64; then
14657	# AIX 5 now supports IA64 processor
14658	lt_prog_compiler_static_F77='-Bstatic'
14659      else
14660	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14661      fi
14662      ;;
14663      darwin*)
14664        # PIC is the default on this platform
14665        # Common symbols not allowed in MH_DYLIB files
14666       case $cc_basename in
14667         xlc*)
14668         lt_prog_compiler_pic_F77='-qnocommon'
14669         lt_prog_compiler_wl_F77='-Wl,'
14670         ;;
14671       esac
14672       ;;
14673
14674    mingw* | cygwin* | pw32* | os2*)
14675      # This hack is so that the source file can tell whether it is being
14676      # built for inclusion in a dll (and should export symbols for example).
14677      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14678      ;;
14679
14680    hpux9* | hpux10* | hpux11*)
14681      lt_prog_compiler_wl_F77='-Wl,'
14682      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14683      # not for PA HP-UX.
14684      case $host_cpu in
14685      hppa*64*|ia64*)
14686	# +Z the default
14687	;;
14688      *)
14689	lt_prog_compiler_pic_F77='+Z'
14690	;;
14691      esac
14692      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14693      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14694      ;;
14695
14696    irix5* | irix6* | nonstopux*)
14697      lt_prog_compiler_wl_F77='-Wl,'
14698      # PIC (with -KPIC) is the default.
14699      lt_prog_compiler_static_F77='-non_shared'
14700      ;;
14701
14702    newsos6)
14703      lt_prog_compiler_pic_F77='-KPIC'
14704      lt_prog_compiler_static_F77='-Bstatic'
14705      ;;
14706
14707    linux* | k*bsd*-gnu)
14708      case $cc_basename in
14709      icc* | ecc*)
14710	lt_prog_compiler_wl_F77='-Wl,'
14711	lt_prog_compiler_pic_F77='-KPIC'
14712	lt_prog_compiler_static_F77='-static'
14713        ;;
14714      pgcc* | pgf77* | pgf90* | pgf95*)
14715        # Portland Group compilers (*not* the Pentium gcc compiler,
14716	# which looks to be a dead project)
14717	lt_prog_compiler_wl_F77='-Wl,'
14718	lt_prog_compiler_pic_F77='-fpic'
14719	lt_prog_compiler_static_F77='-Bstatic'
14720        ;;
14721      ccc*)
14722        lt_prog_compiler_wl_F77='-Wl,'
14723        # All Alpha code is PIC.
14724        lt_prog_compiler_static_F77='-non_shared'
14725        ;;
14726      *)
14727        case `$CC -V 2>&1 | sed 5q` in
14728	*Sun\ C*)
14729	  # Sun C 5.9
14730	  lt_prog_compiler_pic_F77='-KPIC'
14731	  lt_prog_compiler_static_F77='-Bstatic'
14732	  lt_prog_compiler_wl_F77='-Wl,'
14733	  ;;
14734	*Sun\ F*)
14735	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14736	  lt_prog_compiler_pic_F77='-KPIC'
14737	  lt_prog_compiler_static_F77='-Bstatic'
14738	  lt_prog_compiler_wl_F77=''
14739	  ;;
14740	esac
14741	;;
14742      esac
14743      ;;
14744
14745    osf3* | osf4* | osf5*)
14746      lt_prog_compiler_wl_F77='-Wl,'
14747      # All OSF/1 code is PIC.
14748      lt_prog_compiler_static_F77='-non_shared'
14749      ;;
14750
14751    rdos*)
14752      lt_prog_compiler_static_F77='-non_shared'
14753      ;;
14754
14755    solaris*)
14756      lt_prog_compiler_pic_F77='-KPIC'
14757      lt_prog_compiler_static_F77='-Bstatic'
14758      case $cc_basename in
14759      f77* | f90* | f95*)
14760	lt_prog_compiler_wl_F77='-Qoption ld ';;
14761      *)
14762	lt_prog_compiler_wl_F77='-Wl,';;
14763      esac
14764      ;;
14765
14766    sunos4*)
14767      lt_prog_compiler_wl_F77='-Qoption ld '
14768      lt_prog_compiler_pic_F77='-PIC'
14769      lt_prog_compiler_static_F77='-Bstatic'
14770      ;;
14771
14772    sysv4 | sysv4.2uw2* | sysv4.3*)
14773      lt_prog_compiler_wl_F77='-Wl,'
14774      lt_prog_compiler_pic_F77='-KPIC'
14775      lt_prog_compiler_static_F77='-Bstatic'
14776      ;;
14777
14778    sysv4*MP*)
14779      if test -d /usr/nec ;then
14780	lt_prog_compiler_pic_F77='-Kconform_pic'
14781	lt_prog_compiler_static_F77='-Bstatic'
14782      fi
14783      ;;
14784
14785    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14786      lt_prog_compiler_wl_F77='-Wl,'
14787      lt_prog_compiler_pic_F77='-KPIC'
14788      lt_prog_compiler_static_F77='-Bstatic'
14789      ;;
14790
14791    unicos*)
14792      lt_prog_compiler_wl_F77='-Wl,'
14793      lt_prog_compiler_can_build_shared_F77=no
14794      ;;
14795
14796    uts4*)
14797      lt_prog_compiler_pic_F77='-pic'
14798      lt_prog_compiler_static_F77='-Bstatic'
14799      ;;
14800
14801    *)
14802      lt_prog_compiler_can_build_shared_F77=no
14803      ;;
14804    esac
14805  fi
14806
14807{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14808echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14809
14810#
14811# Check to make sure the PIC flag actually works.
14812#
14813if test -n "$lt_prog_compiler_pic_F77"; then
14814
14815{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14816echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14817if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14818  echo $ECHO_N "(cached) $ECHO_C" >&6
14819else
14820  lt_cv_prog_compiler_pic_works_F77=no
14821  ac_outfile=conftest.$ac_objext
14822   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14823   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14824   # Insert the option either (1) after the last *FLAGS variable, or
14825   # (2) before a word containing "conftest.", or (3) at the end.
14826   # Note that $ac_compile itself does not contain backslashes and begins
14827   # with a dollar sign (not a hyphen), so the echo should work correctly.
14828   # The option is referenced via a variable to avoid confusing sed.
14829   lt_compile=`echo "$ac_compile" | $SED \
14830   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14831   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14832   -e 's:$: $lt_compiler_flag:'`
14833   (eval echo "\"\$as_me:14833: $lt_compile\"" >&5)
14834   (eval "$lt_compile" 2>conftest.err)
14835   ac_status=$?
14836   cat conftest.err >&5
14837   echo "$as_me:14837: \$? = $ac_status" >&5
14838   if (exit $ac_status) && test -s "$ac_outfile"; then
14839     # The compiler can only warn and ignore the option if not recognized
14840     # So say no if there are warnings other than the usual output.
14841     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14842     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14843     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14844       lt_cv_prog_compiler_pic_works_F77=yes
14845     fi
14846   fi
14847   $rm conftest*
14848
14849fi
14850{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14851echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14852
14853if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14854    case $lt_prog_compiler_pic_F77 in
14855     "" | " "*) ;;
14856     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14857     esac
14858else
14859    lt_prog_compiler_pic_F77=
14860     lt_prog_compiler_can_build_shared_F77=no
14861fi
14862
14863fi
14864case $host_os in
14865  # For platforms which do not support PIC, -DPIC is meaningless:
14866  *djgpp*)
14867    lt_prog_compiler_pic_F77=
14868    ;;
14869  *)
14870    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14871    ;;
14872esac
14873
14874#
14875# Check to make sure the static flag actually works.
14876#
14877wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14878{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14879echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14880if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14881  echo $ECHO_N "(cached) $ECHO_C" >&6
14882else
14883  lt_cv_prog_compiler_static_works_F77=no
14884   save_LDFLAGS="$LDFLAGS"
14885   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14886   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14887   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14888     # The linker can only warn and ignore the option if not recognized
14889     # So say no if there are warnings
14890     if test -s conftest.err; then
14891       # Append any errors to the config.log.
14892       cat conftest.err 1>&5
14893       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14894       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14895       if diff conftest.exp conftest.er2 >/dev/null; then
14896         lt_cv_prog_compiler_static_works_F77=yes
14897       fi
14898     else
14899       lt_cv_prog_compiler_static_works_F77=yes
14900     fi
14901   fi
14902   $rm -r conftest*
14903   LDFLAGS="$save_LDFLAGS"
14904
14905fi
14906{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14907echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14908
14909if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14910    :
14911else
14912    lt_prog_compiler_static_F77=
14913fi
14914
14915
14916{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14917echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14918if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14919  echo $ECHO_N "(cached) $ECHO_C" >&6
14920else
14921  lt_cv_prog_compiler_c_o_F77=no
14922   $rm -r conftest 2>/dev/null
14923   mkdir conftest
14924   cd conftest
14925   mkdir out
14926   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14927
14928   lt_compiler_flag="-o out/conftest2.$ac_objext"
14929   # Insert the option either (1) after the last *FLAGS variable, or
14930   # (2) before a word containing "conftest.", or (3) at the end.
14931   # Note that $ac_compile itself does not contain backslashes and begins
14932   # with a dollar sign (not a hyphen), so the echo should work correctly.
14933   lt_compile=`echo "$ac_compile" | $SED \
14934   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14935   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14936   -e 's:$: $lt_compiler_flag:'`
14937   (eval echo "\"\$as_me:14937: $lt_compile\"" >&5)
14938   (eval "$lt_compile" 2>out/conftest.err)
14939   ac_status=$?
14940   cat out/conftest.err >&5
14941   echo "$as_me:14941: \$? = $ac_status" >&5
14942   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14943   then
14944     # The compiler can only warn and ignore the option if not recognized
14945     # So say no if there are warnings
14946     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14947     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14948     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14949       lt_cv_prog_compiler_c_o_F77=yes
14950     fi
14951   fi
14952   chmod u+w . 2>&5
14953   $rm conftest*
14954   # SGI C++ compiler will create directory out/ii_files/ for
14955   # template instantiation
14956   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14957   $rm out/* && rmdir out
14958   cd ..
14959   rmdir conftest
14960   $rm conftest*
14961
14962fi
14963{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14964echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14965
14966
14967hard_links="nottested"
14968if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14969  # do not overwrite the value of need_locks provided by the user
14970  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14971echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14972  hard_links=yes
14973  $rm conftest*
14974  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14975  touch conftest.a
14976  ln conftest.a conftest.b 2>&5 || hard_links=no
14977  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14978  { echo "$as_me:$LINENO: result: $hard_links" >&5
14979echo "${ECHO_T}$hard_links" >&6; }
14980  if test "$hard_links" = no; then
14981    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14982echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14983    need_locks=warn
14984  fi
14985else
14986  need_locks=no
14987fi
14988
14989{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14990echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14991
14992  runpath_var=
14993  allow_undefined_flag_F77=
14994  enable_shared_with_static_runtimes_F77=no
14995  archive_cmds_F77=
14996  archive_expsym_cmds_F77=
14997  old_archive_From_new_cmds_F77=
14998  old_archive_from_expsyms_cmds_F77=
14999  export_dynamic_flag_spec_F77=
15000  whole_archive_flag_spec_F77=
15001  thread_safe_flag_spec_F77=
15002  hardcode_libdir_flag_spec_F77=
15003  hardcode_libdir_flag_spec_ld_F77=
15004  hardcode_libdir_separator_F77=
15005  hardcode_direct_F77=no
15006  hardcode_minus_L_F77=no
15007  hardcode_shlibpath_var_F77=unsupported
15008  link_all_deplibs_F77=unknown
15009  hardcode_automatic_F77=no
15010  module_cmds_F77=
15011  module_expsym_cmds_F77=
15012  always_export_symbols_F77=no
15013  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15014  # include_expsyms should be a list of space-separated symbols to be *always*
15015  # included in the symbol list
15016  include_expsyms_F77=
15017  # exclude_expsyms can be an extended regexp of symbols to exclude
15018  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15019  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15020  # as well as any symbol that contains `d'.
15021  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15022  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15023  # platforms (ab)use it in PIC code, but their linkers get confused if
15024  # the symbol is explicitly referenced.  Since portable code cannot
15025  # rely on this symbol name, it's probably fine to never include it in
15026  # preloaded symbol tables.
15027  # Exclude shared library initialization/finalization symbols.
15028  extract_expsyms_cmds=
15029  # Just being paranoid about ensuring that cc_basename is set.
15030  for cc_temp in $compiler""; do
15031  case $cc_temp in
15032    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15033    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15034    \-*) ;;
15035    *) break;;
15036  esac
15037done
15038cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15039
15040  case $host_os in
15041  cygwin* | mingw* | pw32*)
15042    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15043    # When not using gcc, we currently assume that we are using
15044    # Microsoft Visual C++.
15045    if test "$GCC" != yes; then
15046      with_gnu_ld=no
15047    fi
15048    ;;
15049  interix*)
15050    # we just hope/assume this is gcc and not c89 (= MSVC++)
15051    with_gnu_ld=yes
15052    ;;
15053  openbsd*)
15054    with_gnu_ld=no
15055    ;;
15056  esac
15057
15058  ld_shlibs_F77=yes
15059  if test "$with_gnu_ld" = yes; then
15060    # If archive_cmds runs LD, not CC, wlarc should be empty
15061    wlarc='${wl}'
15062
15063    # Set some defaults for GNU ld with shared library support. These
15064    # are reset later if shared libraries are not supported. Putting them
15065    # here allows them to be overridden if necessary.
15066    runpath_var=LD_RUN_PATH
15067    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15068    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15069    # ancient GNU ld didn't support --whole-archive et. al.
15070    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15071	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15072      else
15073  	whole_archive_flag_spec_F77=
15074    fi
15075    supports_anon_versioning=no
15076    case `$LD -v 2>/dev/null` in
15077      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15078      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15079      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15080      *\ 2.11.*) ;; # other 2.11 versions
15081      *) supports_anon_versioning=yes ;;
15082    esac
15083
15084    # See if GNU ld supports shared libraries.
15085    case $host_os in
15086    aix[3-9]*)
15087      # On AIX/PPC, the GNU linker is very broken
15088      if test "$host_cpu" != ia64; then
15089	ld_shlibs_F77=no
15090	cat <<EOF 1>&2
15091
15092*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15093*** to be unable to reliably create shared libraries on AIX.
15094*** Therefore, libtool is disabling shared libraries support.  If you
15095*** really care for shared libraries, you may want to modify your PATH
15096*** so that a non-GNU linker is found, and then restart.
15097
15098EOF
15099      fi
15100      ;;
15101
15102    amigaos*)
15103      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)'
15104      hardcode_libdir_flag_spec_F77='-L$libdir'
15105      hardcode_minus_L_F77=yes
15106
15107      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15108      # that the semantics of dynamic libraries on AmigaOS, at least up
15109      # to version 4, is to share data among multiple programs linked
15110      # with the same dynamic library.  Since this doesn't match the
15111      # behavior of shared libraries on other platforms, we can't use
15112      # them.
15113      ld_shlibs_F77=no
15114      ;;
15115
15116    beos*)
15117      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15118	allow_undefined_flag_F77=unsupported
15119	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15120	# support --undefined.  This deserves some investigation.  FIXME
15121	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15122      else
15123	ld_shlibs_F77=no
15124      fi
15125      ;;
15126
15127    cygwin* | mingw* | pw32*)
15128      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15129      # as there is no search path for DLLs.
15130      hardcode_libdir_flag_spec_F77='-L$libdir'
15131      allow_undefined_flag_F77=unsupported
15132      always_export_symbols_F77=no
15133      enable_shared_with_static_runtimes_F77=yes
15134      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15135
15136      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15137        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15138	# If the export-symbols file already is a .def file (1st line
15139	# is EXPORTS), use it as is; otherwise, prepend...
15140	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15141	  cp $export_symbols $output_objdir/$soname.def;
15142	else
15143	  echo EXPORTS > $output_objdir/$soname.def;
15144	  cat $export_symbols >> $output_objdir/$soname.def;
15145	fi~
15146	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15147      else
15148	ld_shlibs_F77=no
15149      fi
15150      ;;
15151
15152    interix[3-9]*)
15153      hardcode_direct_F77=no
15154      hardcode_shlibpath_var_F77=no
15155      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15156      export_dynamic_flag_spec_F77='${wl}-E'
15157      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15158      # Instead, shared libraries are loaded at an image base (0x10000000 by
15159      # default) and relocated if they conflict, which is a slow very memory
15160      # consuming and fragmenting process.  To avoid this, we pick a random,
15161      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15162      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15163      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'
15164      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'
15165      ;;
15166
15167    gnu* | linux* | k*bsd*-gnu)
15168      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15169	tmp_addflag=
15170	case $cc_basename,$host_cpu in
15171	pgcc*)				# Portland Group C compiler
15172	  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'
15173	  tmp_addflag=' $pic_flag'
15174	  ;;
15175	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15176	  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'
15177	  tmp_addflag=' $pic_flag -Mnomain' ;;
15178	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15179	  tmp_addflag=' -i_dynamic' ;;
15180	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15181	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15182	ifc* | ifort*)			# Intel Fortran compiler
15183	  tmp_addflag=' -nofor_main' ;;
15184	esac
15185	case `$CC -V 2>&1 | sed 5q` in
15186	*Sun\ C*)			# Sun C 5.9
15187	  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'
15188	  tmp_sharedflag='-G' ;;
15189	*Sun\ F*)			# Sun Fortran 8.3
15190	  tmp_sharedflag='-G' ;;
15191	*)
15192	  tmp_sharedflag='-shared' ;;
15193	esac
15194	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15195
15196	if test $supports_anon_versioning = yes; then
15197	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15198  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15199  $echo "local: *; };" >> $output_objdir/$libname.ver~
15200	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15201	fi
15202	link_all_deplibs_F77=no
15203      else
15204	ld_shlibs_F77=no
15205      fi
15206      ;;
15207
15208    netbsd* | netbsdelf*-gnu)
15209      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15210	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15211	wlarc=
15212      else
15213	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15214	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15215      fi
15216      ;;
15217
15218    solaris*)
15219      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15220	ld_shlibs_F77=no
15221	cat <<EOF 1>&2
15222
15223*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15224*** create shared libraries on Solaris systems.  Therefore, libtool
15225*** is disabling shared libraries support.  We urge you to upgrade GNU
15226*** binutils to release 2.9.1 or newer.  Another option is to modify
15227*** your PATH or compiler configuration so that the native linker is
15228*** used, and then restart.
15229
15230EOF
15231      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15232	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15233	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15234      else
15235	ld_shlibs_F77=no
15236      fi
15237      ;;
15238
15239    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15240      case `$LD -v 2>&1` in
15241        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15242	ld_shlibs_F77=no
15243	cat <<_LT_EOF 1>&2
15244
15245*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15246*** reliably create shared libraries on SCO systems.  Therefore, libtool
15247*** is disabling shared libraries support.  We urge you to upgrade GNU
15248*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15249*** your PATH or compiler configuration so that the native linker is
15250*** used, and then restart.
15251
15252_LT_EOF
15253	;;
15254	*)
15255	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15256	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15257	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15258	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15259	  else
15260	    ld_shlibs_F77=no
15261	  fi
15262	;;
15263      esac
15264      ;;
15265
15266    sunos4*)
15267      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15268      wlarc=
15269      hardcode_direct_F77=yes
15270      hardcode_shlibpath_var_F77=no
15271      ;;
15272
15273    *)
15274      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15275	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15276	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15277      else
15278	ld_shlibs_F77=no
15279      fi
15280      ;;
15281    esac
15282
15283    if test "$ld_shlibs_F77" = no; then
15284      runpath_var=
15285      hardcode_libdir_flag_spec_F77=
15286      export_dynamic_flag_spec_F77=
15287      whole_archive_flag_spec_F77=
15288    fi
15289  else
15290    # PORTME fill in a description of your system's linker (not GNU ld)
15291    case $host_os in
15292    aix3*)
15293      allow_undefined_flag_F77=unsupported
15294      always_export_symbols_F77=yes
15295      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'
15296      # Note: this linker hardcodes the directories in LIBPATH if there
15297      # are no directories specified by -L.
15298      hardcode_minus_L_F77=yes
15299      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15300	# Neither direct hardcoding nor static linking is supported with a
15301	# broken collect2.
15302	hardcode_direct_F77=unsupported
15303      fi
15304      ;;
15305
15306    aix[4-9]*)
15307      if test "$host_cpu" = ia64; then
15308	# On IA64, the linker does run time linking by default, so we don't
15309	# have to do anything special.
15310	aix_use_runtimelinking=no
15311	exp_sym_flag='-Bexport'
15312	no_entry_flag=""
15313      else
15314	# If we're using GNU nm, then we don't want the "-C" option.
15315	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15316	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15317	  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'
15318	else
15319	  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'
15320	fi
15321	aix_use_runtimelinking=no
15322
15323	# Test if we are trying to use run time linking or normal
15324	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15325	# need to do runtime linking.
15326	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15327	  for ld_flag in $LDFLAGS; do
15328  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15329  	    aix_use_runtimelinking=yes
15330  	    break
15331  	  fi
15332	  done
15333	  ;;
15334	esac
15335
15336	exp_sym_flag='-bexport'
15337	no_entry_flag='-bnoentry'
15338      fi
15339
15340      # When large executables or shared objects are built, AIX ld can
15341      # have problems creating the table of contents.  If linking a library
15342      # or program results in "error TOC overflow" add -mminimal-toc to
15343      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15344      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15345
15346      archive_cmds_F77=''
15347      hardcode_direct_F77=yes
15348      hardcode_libdir_separator_F77=':'
15349      link_all_deplibs_F77=yes
15350
15351      if test "$GCC" = yes; then
15352	case $host_os in aix4.[012]|aix4.[012].*)
15353	# We only want to do this on AIX 4.2 and lower, the check
15354	# below for broken collect2 doesn't work under 4.3+
15355	  collect2name=`${CC} -print-prog-name=collect2`
15356	  if test -f "$collect2name" && \
15357  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15358	  then
15359  	  # We have reworked collect2
15360  	  :
15361	  else
15362  	  # We have old collect2
15363  	  hardcode_direct_F77=unsupported
15364  	  # It fails to find uninstalled libraries when the uninstalled
15365  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15366  	  # to unsupported forces relinking
15367  	  hardcode_minus_L_F77=yes
15368  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15369  	  hardcode_libdir_separator_F77=
15370	  fi
15371	  ;;
15372	esac
15373	shared_flag='-shared'
15374	if test "$aix_use_runtimelinking" = yes; then
15375	  shared_flag="$shared_flag "'${wl}-G'
15376	fi
15377      else
15378	# not using gcc
15379	if test "$host_cpu" = ia64; then
15380  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15381  	# chokes on -Wl,-G. The following line is correct:
15382	  shared_flag='-G'
15383	else
15384	  if test "$aix_use_runtimelinking" = yes; then
15385	    shared_flag='${wl}-G'
15386	  else
15387	    shared_flag='${wl}-bM:SRE'
15388	  fi
15389	fi
15390      fi
15391
15392      # It seems that -bexpall does not export symbols beginning with
15393      # underscore (_), so it is better to generate a list of symbols to export.
15394      always_export_symbols_F77=yes
15395      if test "$aix_use_runtimelinking" = yes; then
15396	# Warning - without using the other runtime loading flags (-brtl),
15397	# -berok will link without error, but may produce a broken library.
15398	allow_undefined_flag_F77='-berok'
15399       # Determine the default libpath from the value encoded in an empty executable.
15400       cat >conftest.$ac_ext <<_ACEOF
15401      program main
15402
15403      end
15404_ACEOF
15405rm -f conftest.$ac_objext conftest$ac_exeext
15406if { (ac_try="$ac_link"
15407case "(($ac_try" in
15408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409  *) ac_try_echo=$ac_try;;
15410esac
15411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412  (eval "$ac_link") 2>conftest.er1
15413  ac_status=$?
15414  grep -v '^ *+' conftest.er1 >conftest.err
15415  rm -f conftest.er1
15416  cat conftest.err >&5
15417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418  (exit $ac_status); } && {
15419	 test -z "$ac_f77_werror_flag" ||
15420	 test ! -s conftest.err
15421       } && test -s conftest$ac_exeext &&
15422       $as_test_x conftest$ac_exeext; then
15423
15424lt_aix_libpath_sed='
15425    /Import File Strings/,/^$/ {
15426	/^0/ {
15427	    s/^0  *\(.*\)$/\1/
15428	    p
15429	}
15430    }'
15431aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15432# Check for a 64-bit object if we didn't find anything.
15433if test -z "$aix_libpath"; then
15434  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15435fi
15436else
15437  echo "$as_me: failed program was:" >&5
15438sed 's/^/| /' conftest.$ac_ext >&5
15439
15440
15441fi
15442
15443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15444      conftest$ac_exeext conftest.$ac_ext
15445if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15446
15447       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15448	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"
15449       else
15450	if test "$host_cpu" = ia64; then
15451	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15452	  allow_undefined_flag_F77="-z nodefs"
15453	  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"
15454	else
15455	 # Determine the default libpath from the value encoded in an empty executable.
15456	 cat >conftest.$ac_ext <<_ACEOF
15457      program main
15458
15459      end
15460_ACEOF
15461rm -f conftest.$ac_objext conftest$ac_exeext
15462if { (ac_try="$ac_link"
15463case "(($ac_try" in
15464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15465  *) ac_try_echo=$ac_try;;
15466esac
15467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15468  (eval "$ac_link") 2>conftest.er1
15469  ac_status=$?
15470  grep -v '^ *+' conftest.er1 >conftest.err
15471  rm -f conftest.er1
15472  cat conftest.err >&5
15473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474  (exit $ac_status); } && {
15475	 test -z "$ac_f77_werror_flag" ||
15476	 test ! -s conftest.err
15477       } && test -s conftest$ac_exeext &&
15478       $as_test_x conftest$ac_exeext; then
15479
15480lt_aix_libpath_sed='
15481    /Import File Strings/,/^$/ {
15482	/^0/ {
15483	    s/^0  *\(.*\)$/\1/
15484	    p
15485	}
15486    }'
15487aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15488# Check for a 64-bit object if we didn't find anything.
15489if test -z "$aix_libpath"; then
15490  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15491fi
15492else
15493  echo "$as_me: failed program was:" >&5
15494sed 's/^/| /' conftest.$ac_ext >&5
15495
15496
15497fi
15498
15499rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15500      conftest$ac_exeext conftest.$ac_ext
15501if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15502
15503	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15504	  # Warning - without using the other run time loading flags,
15505	  # -berok will link without error, but may produce a broken library.
15506	  no_undefined_flag_F77=' ${wl}-bernotok'
15507	  allow_undefined_flag_F77=' ${wl}-berok'
15508	  # Exported symbols can be pulled into shared objects from archives
15509	  whole_archive_flag_spec_F77='$convenience'
15510	  archive_cmds_need_lc_F77=yes
15511	  # This is similar to how AIX traditionally builds its shared libraries.
15512	  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'
15513	fi
15514      fi
15515      ;;
15516
15517    amigaos*)
15518      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)'
15519      hardcode_libdir_flag_spec_F77='-L$libdir'
15520      hardcode_minus_L_F77=yes
15521      # see comment about different semantics on the GNU ld section
15522      ld_shlibs_F77=no
15523      ;;
15524
15525    bsdi[45]*)
15526      export_dynamic_flag_spec_F77=-rdynamic
15527      ;;
15528
15529    cygwin* | mingw* | pw32*)
15530      # When not using gcc, we currently assume that we are using
15531      # Microsoft Visual C++.
15532      # hardcode_libdir_flag_spec is actually meaningless, as there is
15533      # no search path for DLLs.
15534      hardcode_libdir_flag_spec_F77=' '
15535      allow_undefined_flag_F77=unsupported
15536      # Tell ltmain to make .lib files, not .a files.
15537      libext=lib
15538      # Tell ltmain to make .dll files, not .so files.
15539      shrext_cmds=".dll"
15540      # FIXME: Setting linknames here is a bad hack.
15541      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15542      # The linker will automatically build a .lib file if we build a DLL.
15543      old_archive_From_new_cmds_F77='true'
15544      # FIXME: Should let the user specify the lib program.
15545      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15546      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15547      enable_shared_with_static_runtimes_F77=yes
15548      ;;
15549
15550    darwin* | rhapsody*)
15551      case $host_os in
15552        rhapsody* | darwin1.[012])
15553         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15554         ;;
15555       *) # Darwin 1.3 on
15556         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15557           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15558         else
15559           case ${MACOSX_DEPLOYMENT_TARGET} in
15560             10.[012])
15561               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15562               ;;
15563             10.*)
15564               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15565               ;;
15566           esac
15567         fi
15568         ;;
15569      esac
15570      archive_cmds_need_lc_F77=no
15571      hardcode_direct_F77=no
15572      hardcode_automatic_F77=yes
15573      hardcode_shlibpath_var_F77=unsupported
15574      whole_archive_flag_spec_F77=''
15575      link_all_deplibs_F77=yes
15576    if test "$GCC" = yes ; then
15577    	output_verbose_link_cmd='echo'
15578        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}"
15579        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15580        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}"
15581        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}"
15582    else
15583      case $cc_basename in
15584        xlc*)
15585         output_verbose_link_cmd='echo'
15586         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15587         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15588          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15589         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}'
15590          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}'
15591          ;;
15592       *)
15593         ld_shlibs_F77=no
15594          ;;
15595      esac
15596    fi
15597      ;;
15598
15599    dgux*)
15600      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15601      hardcode_libdir_flag_spec_F77='-L$libdir'
15602      hardcode_shlibpath_var_F77=no
15603      ;;
15604
15605    freebsd1*)
15606      ld_shlibs_F77=no
15607      ;;
15608
15609    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15610    # support.  Future versions do this automatically, but an explicit c++rt0.o
15611    # does not break anything, and helps significantly (at the cost of a little
15612    # extra space).
15613    freebsd2.2*)
15614      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15615      hardcode_libdir_flag_spec_F77='-R$libdir'
15616      hardcode_direct_F77=yes
15617      hardcode_shlibpath_var_F77=no
15618      ;;
15619
15620    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15621    freebsd2*)
15622      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15623      hardcode_direct_F77=yes
15624      hardcode_minus_L_F77=yes
15625      hardcode_shlibpath_var_F77=no
15626      ;;
15627
15628    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15629    freebsd* | dragonfly*)
15630      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15631      hardcode_libdir_flag_spec_F77='-R$libdir'
15632      hardcode_direct_F77=yes
15633      hardcode_shlibpath_var_F77=no
15634      ;;
15635
15636    hpux9*)
15637      if test "$GCC" = yes; then
15638	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'
15639      else
15640	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'
15641      fi
15642      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15643      hardcode_libdir_separator_F77=:
15644      hardcode_direct_F77=yes
15645
15646      # hardcode_minus_L: Not really in the search PATH,
15647      # but as the default location of the library.
15648      hardcode_minus_L_F77=yes
15649      export_dynamic_flag_spec_F77='${wl}-E'
15650      ;;
15651
15652    hpux10*)
15653      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15654	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15655      else
15656	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15657      fi
15658      if test "$with_gnu_ld" = no; then
15659	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15660	hardcode_libdir_separator_F77=:
15661
15662	hardcode_direct_F77=yes
15663	export_dynamic_flag_spec_F77='${wl}-E'
15664
15665	# hardcode_minus_L: Not really in the search PATH,
15666	# but as the default location of the library.
15667	hardcode_minus_L_F77=yes
15668      fi
15669      ;;
15670
15671    hpux11*)
15672      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15673	case $host_cpu in
15674	hppa*64*)
15675	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15676	  ;;
15677	ia64*)
15678	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15679	  ;;
15680	*)
15681	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15682	  ;;
15683	esac
15684      else
15685	case $host_cpu in
15686	hppa*64*)
15687	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15688	  ;;
15689	ia64*)
15690	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15691	  ;;
15692	*)
15693	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15694	  ;;
15695	esac
15696      fi
15697      if test "$with_gnu_ld" = no; then
15698	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15699	hardcode_libdir_separator_F77=:
15700
15701	case $host_cpu in
15702	hppa*64*|ia64*)
15703	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15704	  hardcode_direct_F77=no
15705	  hardcode_shlibpath_var_F77=no
15706	  ;;
15707	*)
15708	  hardcode_direct_F77=yes
15709	  export_dynamic_flag_spec_F77='${wl}-E'
15710
15711	  # hardcode_minus_L: Not really in the search PATH,
15712	  # but as the default location of the library.
15713	  hardcode_minus_L_F77=yes
15714	  ;;
15715	esac
15716      fi
15717      ;;
15718
15719    irix5* | irix6* | nonstopux*)
15720      if test "$GCC" = yes; then
15721	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'
15722      else
15723	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'
15724	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15725      fi
15726      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15727      hardcode_libdir_separator_F77=:
15728      link_all_deplibs_F77=yes
15729      ;;
15730
15731    netbsd* | netbsdelf*-gnu)
15732      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15733	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15734      else
15735	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15736      fi
15737      hardcode_libdir_flag_spec_F77='-R$libdir'
15738      hardcode_direct_F77=yes
15739      hardcode_shlibpath_var_F77=no
15740      ;;
15741
15742    newsos6)
15743      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15744      hardcode_direct_F77=yes
15745      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15746      hardcode_libdir_separator_F77=:
15747      hardcode_shlibpath_var_F77=no
15748      ;;
15749
15750    openbsd*)
15751      if test -f /usr/libexec/ld.so; then
15752	hardcode_direct_F77=yes
15753	hardcode_shlibpath_var_F77=no
15754	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15755	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15756	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15757	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15758	  export_dynamic_flag_spec_F77='${wl}-E'
15759	else
15760	  case $host_os in
15761	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15762	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15763	     hardcode_libdir_flag_spec_F77='-R$libdir'
15764	     ;;
15765	   *)
15766	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15767	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15768	     ;;
15769	  esac
15770        fi
15771      else
15772	ld_shlibs_F77=no
15773      fi
15774      ;;
15775
15776    os2*)
15777      hardcode_libdir_flag_spec_F77='-L$libdir'
15778      hardcode_minus_L_F77=yes
15779      allow_undefined_flag_F77=unsupported
15780      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'
15781      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15782      ;;
15783
15784    osf3*)
15785      if test "$GCC" = yes; then
15786	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15787	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'
15788      else
15789	allow_undefined_flag_F77=' -expect_unresolved \*'
15790	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'
15791      fi
15792      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15793      hardcode_libdir_separator_F77=:
15794      ;;
15795
15796    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15797      if test "$GCC" = yes; then
15798	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15799	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'
15800	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15801      else
15802	allow_undefined_flag_F77=' -expect_unresolved \*'
15803	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'
15804	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~
15805	$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'
15806
15807	# Both c and cxx compiler support -rpath directly
15808	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15809      fi
15810      hardcode_libdir_separator_F77=:
15811      ;;
15812
15813    solaris*)
15814      no_undefined_flag_F77=' -z text'
15815      if test "$GCC" = yes; then
15816	wlarc='${wl}'
15817	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15818	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15819	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15820      else
15821	wlarc=''
15822	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15823	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15824  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15825      fi
15826      hardcode_libdir_flag_spec_F77='-R$libdir'
15827      hardcode_shlibpath_var_F77=no
15828      case $host_os in
15829      solaris2.[0-5] | solaris2.[0-5].*) ;;
15830      *)
15831	# The compiler driver will combine and reorder linker options,
15832	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15833	# but is careful enough not to reorder.
15834 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15835	if test "$GCC" = yes; then
15836	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15837	else
15838	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15839	fi
15840	;;
15841      esac
15842      link_all_deplibs_F77=yes
15843      ;;
15844
15845    sunos4*)
15846      if test "x$host_vendor" = xsequent; then
15847	# Use $CC to link under sequent, because it throws in some extra .o
15848	# files that make .init and .fini sections work.
15849	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15850      else
15851	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15852      fi
15853      hardcode_libdir_flag_spec_F77='-L$libdir'
15854      hardcode_direct_F77=yes
15855      hardcode_minus_L_F77=yes
15856      hardcode_shlibpath_var_F77=no
15857      ;;
15858
15859    sysv4)
15860      case $host_vendor in
15861	sni)
15862	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15863	  hardcode_direct_F77=yes # is this really true???
15864	;;
15865	siemens)
15866	  ## LD is ld it makes a PLAMLIB
15867	  ## CC just makes a GrossModule.
15868	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15869	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15870	  hardcode_direct_F77=no
15871        ;;
15872	motorola)
15873	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15874	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15875	;;
15876      esac
15877      runpath_var='LD_RUN_PATH'
15878      hardcode_shlibpath_var_F77=no
15879      ;;
15880
15881    sysv4.3*)
15882      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15883      hardcode_shlibpath_var_F77=no
15884      export_dynamic_flag_spec_F77='-Bexport'
15885      ;;
15886
15887    sysv4*MP*)
15888      if test -d /usr/nec; then
15889	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15890	hardcode_shlibpath_var_F77=no
15891	runpath_var=LD_RUN_PATH
15892	hardcode_runpath_var=yes
15893	ld_shlibs_F77=yes
15894      fi
15895      ;;
15896
15897    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15898      no_undefined_flag_F77='${wl}-z,text'
15899      archive_cmds_need_lc_F77=no
15900      hardcode_shlibpath_var_F77=no
15901      runpath_var='LD_RUN_PATH'
15902
15903      if test "$GCC" = yes; then
15904	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15905	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15906      else
15907	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15908	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15909      fi
15910      ;;
15911
15912    sysv5* | sco3.2v5* | sco5v6*)
15913      # Note: We can NOT use -z defs as we might desire, because we do not
15914      # link with -lc, and that would cause any symbols used from libc to
15915      # always be unresolved, which means just about no library would
15916      # ever link correctly.  If we're not using GNU ld we use -z text
15917      # though, which does catch some bad symbols but isn't as heavy-handed
15918      # as -z defs.
15919      no_undefined_flag_F77='${wl}-z,text'
15920      allow_undefined_flag_F77='${wl}-z,nodefs'
15921      archive_cmds_need_lc_F77=no
15922      hardcode_shlibpath_var_F77=no
15923      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15924      hardcode_libdir_separator_F77=':'
15925      link_all_deplibs_F77=yes
15926      export_dynamic_flag_spec_F77='${wl}-Bexport'
15927      runpath_var='LD_RUN_PATH'
15928
15929      if test "$GCC" = yes; then
15930	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15931	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15932      else
15933	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15934	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15935      fi
15936      ;;
15937
15938    uts4*)
15939      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15940      hardcode_libdir_flag_spec_F77='-L$libdir'
15941      hardcode_shlibpath_var_F77=no
15942      ;;
15943
15944    *)
15945      ld_shlibs_F77=no
15946      ;;
15947    esac
15948  fi
15949
15950{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15951echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15952test "$ld_shlibs_F77" = no && can_build_shared=no
15953
15954#
15955# Do we need to explicitly link libc?
15956#
15957case "x$archive_cmds_need_lc_F77" in
15958x|xyes)
15959  # Assume -lc should be added
15960  archive_cmds_need_lc_F77=yes
15961
15962  if test "$enable_shared" = yes && test "$GCC" = yes; then
15963    case $archive_cmds_F77 in
15964    *'~'*)
15965      # FIXME: we may have to deal with multi-command sequences.
15966      ;;
15967    '$CC '*)
15968      # Test whether the compiler implicitly links with -lc since on some
15969      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15970      # to ld, don't add -lc before -lgcc.
15971      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15972echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15973      $rm conftest*
15974      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15975
15976      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15977  (eval $ac_compile) 2>&5
15978  ac_status=$?
15979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980  (exit $ac_status); } 2>conftest.err; then
15981        soname=conftest
15982        lib=conftest
15983        libobjs=conftest.$ac_objext
15984        deplibs=
15985        wl=$lt_prog_compiler_wl_F77
15986	pic_flag=$lt_prog_compiler_pic_F77
15987        compiler_flags=-v
15988        linker_flags=-v
15989        verstring=
15990        output_objdir=.
15991        libname=conftest
15992        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15993        allow_undefined_flag_F77=
15994        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15995  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15996  ac_status=$?
15997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998  (exit $ac_status); }
15999        then
16000	  archive_cmds_need_lc_F77=no
16001        else
16002	  archive_cmds_need_lc_F77=yes
16003        fi
16004        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16005      else
16006        cat conftest.err 1>&5
16007      fi
16008      $rm conftest*
16009      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16010echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16011      ;;
16012    esac
16013  fi
16014  ;;
16015esac
16016
16017{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16018echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16019library_names_spec=
16020libname_spec='lib$name'
16021soname_spec=
16022shrext_cmds=".so"
16023postinstall_cmds=
16024postuninstall_cmds=
16025finish_cmds=
16026finish_eval=
16027shlibpath_var=
16028shlibpath_overrides_runpath=unknown
16029version_type=none
16030dynamic_linker="$host_os ld.so"
16031sys_lib_dlsearch_path_spec="/lib /usr/lib"
16032
16033need_lib_prefix=unknown
16034hardcode_into_libs=no
16035
16036# when you set need_version to no, make sure it does not cause -set_version
16037# flags to be left without arguments
16038need_version=unknown
16039
16040case $host_os in
16041aix3*)
16042  version_type=linux
16043  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16044  shlibpath_var=LIBPATH
16045
16046  # AIX 3 has no versioning support, so we append a major version to the name.
16047  soname_spec='${libname}${release}${shared_ext}$major'
16048  ;;
16049
16050aix[4-9]*)
16051  version_type=linux
16052  need_lib_prefix=no
16053  need_version=no
16054  hardcode_into_libs=yes
16055  if test "$host_cpu" = ia64; then
16056    # AIX 5 supports IA64
16057    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16058    shlibpath_var=LD_LIBRARY_PATH
16059  else
16060    # With GCC up to 2.95.x, collect2 would create an import file
16061    # for dependence libraries.  The import file would start with
16062    # the line `#! .'.  This would cause the generated library to
16063    # depend on `.', always an invalid library.  This was fixed in
16064    # development snapshots of GCC prior to 3.0.
16065    case $host_os in
16066      aix4 | aix4.[01] | aix4.[01].*)
16067      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16068	   echo ' yes '
16069	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16070	:
16071      else
16072	can_build_shared=no
16073      fi
16074      ;;
16075    esac
16076    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16077    # soname into executable. Probably we can add versioning support to
16078    # collect2, so additional links can be useful in future.
16079    if test "$aix_use_runtimelinking" = yes; then
16080      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16081      # instead of lib<name>.a to let people know that these are not
16082      # typical AIX shared libraries.
16083      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16084    else
16085      # We preserve .a as extension for shared libraries through AIX4.2
16086      # and later when we are not doing run time linking.
16087      library_names_spec='${libname}${release}.a $libname.a'
16088      soname_spec='${libname}${release}${shared_ext}$major'
16089    fi
16090    shlibpath_var=LIBPATH
16091  fi
16092  ;;
16093
16094amigaos*)
16095  library_names_spec='$libname.ixlibrary $libname.a'
16096  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16097  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'
16098  ;;
16099
16100beos*)
16101  library_names_spec='${libname}${shared_ext}'
16102  dynamic_linker="$host_os ld.so"
16103  shlibpath_var=LIBRARY_PATH
16104  ;;
16105
16106bsdi[45]*)
16107  version_type=linux
16108  need_version=no
16109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16110  soname_spec='${libname}${release}${shared_ext}$major'
16111  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16112  shlibpath_var=LD_LIBRARY_PATH
16113  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16114  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16115  # the default ld.so.conf also contains /usr/contrib/lib and
16116  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16117  # libtool to hard-code these into programs
16118  ;;
16119
16120cygwin* | mingw* | pw32*)
16121  version_type=windows
16122  shrext_cmds=".dll"
16123  need_version=no
16124  need_lib_prefix=no
16125
16126  case $GCC,$host_os in
16127  yes,cygwin* | yes,mingw* | yes,pw32*)
16128    library_names_spec='$libname.dll.a'
16129    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16130    postinstall_cmds='base_file=`basename \${file}`~
16131      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16132      dldir=$destdir/`dirname \$dlpath`~
16133      test -d \$dldir || mkdir -p \$dldir~
16134      $install_prog $dir/$dlname \$dldir/$dlname~
16135      chmod a+x \$dldir/$dlname'
16136    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16137      dlpath=$dir/\$dldll~
16138       $rm \$dlpath'
16139    shlibpath_overrides_runpath=yes
16140
16141    case $host_os in
16142    cygwin*)
16143      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16144      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16145      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16146      ;;
16147    mingw*)
16148      # MinGW DLLs use traditional 'lib' prefix
16149      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16150      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16151      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16152        # It is most probably a Windows format PATH printed by
16153        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16154        # path with ; separators, and with drive letters. We can handle the
16155        # drive letters (cygwin fileutils understands them), so leave them,
16156        # especially as we might pass files found there to a mingw objdump,
16157        # which wouldn't understand a cygwinified path. Ahh.
16158        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16159      else
16160        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16161      fi
16162      ;;
16163    pw32*)
16164      # pw32 DLLs use 'pw' prefix rather than 'lib'
16165      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16166      ;;
16167    esac
16168    ;;
16169
16170  *)
16171    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16172    ;;
16173  esac
16174  dynamic_linker='Win32 ld.exe'
16175  # FIXME: first we should search . and the directory the executable is in
16176  shlibpath_var=PATH
16177  ;;
16178
16179darwin* | rhapsody*)
16180  dynamic_linker="$host_os dyld"
16181  version_type=darwin
16182  need_lib_prefix=no
16183  need_version=no
16184  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16185  soname_spec='${libname}${release}${major}$shared_ext'
16186  shlibpath_overrides_runpath=yes
16187  shlibpath_var=DYLD_LIBRARY_PATH
16188  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16189
16190  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16191  ;;
16192
16193dgux*)
16194  version_type=linux
16195  need_lib_prefix=no
16196  need_version=no
16197  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16198  soname_spec='${libname}${release}${shared_ext}$major'
16199  shlibpath_var=LD_LIBRARY_PATH
16200  ;;
16201
16202freebsd1*)
16203  dynamic_linker=no
16204  ;;
16205
16206freebsd* | dragonfly*)
16207  # DragonFly does not have aout.  When/if they implement a new
16208  # versioning mechanism, adjust this.
16209  if test -x /usr/bin/objformat; then
16210    objformat=`/usr/bin/objformat`
16211  else
16212    case $host_os in
16213    freebsd[123]*) objformat=aout ;;
16214    *) objformat=elf ;;
16215    esac
16216  fi
16217  version_type=freebsd-$objformat
16218  case $version_type in
16219    freebsd-elf*)
16220      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16221      need_version=no
16222      need_lib_prefix=no
16223      ;;
16224    freebsd-*)
16225      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16226      need_version=yes
16227      ;;
16228  esac
16229  shlibpath_var=LD_LIBRARY_PATH
16230  case $host_os in
16231  freebsd2*)
16232    shlibpath_overrides_runpath=yes
16233    ;;
16234  freebsd3.[01]* | freebsdelf3.[01]*)
16235    shlibpath_overrides_runpath=yes
16236    hardcode_into_libs=yes
16237    ;;
16238  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16239  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16240    shlibpath_overrides_runpath=no
16241    hardcode_into_libs=yes
16242    ;;
16243  *) # from 4.6 on, and DragonFly
16244    shlibpath_overrides_runpath=yes
16245    hardcode_into_libs=yes
16246    ;;
16247  esac
16248  ;;
16249
16250gnu*)
16251  version_type=linux
16252  need_lib_prefix=no
16253  need_version=no
16254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16255  soname_spec='${libname}${release}${shared_ext}$major'
16256  shlibpath_var=LD_LIBRARY_PATH
16257  hardcode_into_libs=yes
16258  ;;
16259
16260hpux9* | hpux10* | hpux11*)
16261  # Give a soname corresponding to the major version so that dld.sl refuses to
16262  # link against other versions.
16263  version_type=sunos
16264  need_lib_prefix=no
16265  need_version=no
16266  case $host_cpu in
16267  ia64*)
16268    shrext_cmds='.so'
16269    hardcode_into_libs=yes
16270    dynamic_linker="$host_os dld.so"
16271    shlibpath_var=LD_LIBRARY_PATH
16272    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16273    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16274    soname_spec='${libname}${release}${shared_ext}$major'
16275    if test "X$HPUX_IA64_MODE" = X32; then
16276      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16277    else
16278      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16279    fi
16280    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16281    ;;
16282   hppa*64*)
16283     shrext_cmds='.sl'
16284     hardcode_into_libs=yes
16285     dynamic_linker="$host_os dld.sl"
16286     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16287     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16288     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289     soname_spec='${libname}${release}${shared_ext}$major'
16290     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16291     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16292     ;;
16293   *)
16294    shrext_cmds='.sl'
16295    dynamic_linker="$host_os dld.sl"
16296    shlibpath_var=SHLIB_PATH
16297    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16298    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16299    soname_spec='${libname}${release}${shared_ext}$major'
16300    ;;
16301  esac
16302  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16303  postinstall_cmds='chmod 555 $lib'
16304  ;;
16305
16306interix[3-9]*)
16307  version_type=linux
16308  need_lib_prefix=no
16309  need_version=no
16310  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16311  soname_spec='${libname}${release}${shared_ext}$major'
16312  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16313  shlibpath_var=LD_LIBRARY_PATH
16314  shlibpath_overrides_runpath=no
16315  hardcode_into_libs=yes
16316  ;;
16317
16318irix5* | irix6* | nonstopux*)
16319  case $host_os in
16320    nonstopux*) version_type=nonstopux ;;
16321    *)
16322	if test "$lt_cv_prog_gnu_ld" = yes; then
16323		version_type=linux
16324	else
16325		version_type=irix
16326	fi ;;
16327  esac
16328  need_lib_prefix=no
16329  need_version=no
16330  soname_spec='${libname}${release}${shared_ext}$major'
16331  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16332  case $host_os in
16333  irix5* | nonstopux*)
16334    libsuff= shlibsuff=
16335    ;;
16336  *)
16337    case $LD in # libtool.m4 will add one of these switches to LD
16338    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16339      libsuff= shlibsuff= libmagic=32-bit;;
16340    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16341      libsuff=32 shlibsuff=N32 libmagic=N32;;
16342    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16343      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16344    *) libsuff= shlibsuff= libmagic=never-match;;
16345    esac
16346    ;;
16347  esac
16348  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16349  shlibpath_overrides_runpath=no
16350  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16351  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16352  hardcode_into_libs=yes
16353  ;;
16354
16355# No shared lib support for Linux oldld, aout, or coff.
16356linux*oldld* | linux*aout* | linux*coff*)
16357  dynamic_linker=no
16358  ;;
16359
16360# This must be Linux ELF.
16361linux* | k*bsd*-gnu)
16362  version_type=linux
16363  need_lib_prefix=no
16364  need_version=no
16365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16366  soname_spec='${libname}${release}${shared_ext}$major'
16367  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16368  shlibpath_var=LD_LIBRARY_PATH
16369  shlibpath_overrides_runpath=no
16370  # This implies no fast_install, which is unacceptable.
16371  # Some rework will be needed to allow for fast_install
16372  # before this can be enabled.
16373  hardcode_into_libs=yes
16374
16375  # Append ld.so.conf contents to the search path
16376  if test -f /etc/ld.so.conf; then
16377    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' ' '`
16378    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16379  fi
16380
16381  # We used to test for /lib/ld.so.1 and disable shared libraries on
16382  # powerpc, because MkLinux only supported shared libraries with the
16383  # GNU dynamic linker.  Since this was broken with cross compilers,
16384  # most powerpc-linux boxes support dynamic linking these days and
16385  # people can always --disable-shared, the test was removed, and we
16386  # assume the GNU/Linux dynamic linker is in use.
16387  dynamic_linker='GNU/Linux ld.so'
16388  ;;
16389
16390netbsdelf*-gnu)
16391  version_type=linux
16392  need_lib_prefix=no
16393  need_version=no
16394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16395  soname_spec='${libname}${release}${shared_ext}$major'
16396  shlibpath_var=LD_LIBRARY_PATH
16397  shlibpath_overrides_runpath=no
16398  hardcode_into_libs=yes
16399  dynamic_linker='NetBSD ld.elf_so'
16400  ;;
16401
16402netbsd*)
16403  version_type=sunos
16404  need_lib_prefix=no
16405  need_version=no
16406  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16407    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16408    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16409    dynamic_linker='NetBSD (a.out) ld.so'
16410  else
16411    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16412    soname_spec='${libname}${release}${shared_ext}$major'
16413    dynamic_linker='NetBSD ld.elf_so'
16414  fi
16415  shlibpath_var=LD_LIBRARY_PATH
16416  shlibpath_overrides_runpath=yes
16417  hardcode_into_libs=yes
16418  ;;
16419
16420newsos6)
16421  version_type=linux
16422  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16423  shlibpath_var=LD_LIBRARY_PATH
16424  shlibpath_overrides_runpath=yes
16425  ;;
16426
16427nto-qnx*)
16428  version_type=linux
16429  need_lib_prefix=no
16430  need_version=no
16431  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16432  soname_spec='${libname}${release}${shared_ext}$major'
16433  shlibpath_var=LD_LIBRARY_PATH
16434  shlibpath_overrides_runpath=yes
16435  ;;
16436
16437openbsd*)
16438  version_type=sunos
16439  sys_lib_dlsearch_path_spec="/usr/lib"
16440  need_lib_prefix=no
16441  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16442  case $host_os in
16443    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16444    *)                         need_version=no  ;;
16445  esac
16446  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16447  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16448  shlibpath_var=LD_LIBRARY_PATH
16449  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16450    case $host_os in
16451      openbsd2.[89] | openbsd2.[89].*)
16452	shlibpath_overrides_runpath=no
16453	;;
16454      *)
16455	shlibpath_overrides_runpath=yes
16456	;;
16457      esac
16458  else
16459    shlibpath_overrides_runpath=yes
16460  fi
16461  ;;
16462
16463os2*)
16464  libname_spec='$name'
16465  shrext_cmds=".dll"
16466  need_lib_prefix=no
16467  library_names_spec='$libname${shared_ext} $libname.a'
16468  dynamic_linker='OS/2 ld.exe'
16469  shlibpath_var=LIBPATH
16470  ;;
16471
16472osf3* | osf4* | osf5*)
16473  version_type=osf
16474  need_lib_prefix=no
16475  need_version=no
16476  soname_spec='${libname}${release}${shared_ext}$major'
16477  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16478  shlibpath_var=LD_LIBRARY_PATH
16479  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16480  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16481  ;;
16482
16483rdos*)
16484  dynamic_linker=no
16485  ;;
16486
16487solaris*)
16488  version_type=linux
16489  need_lib_prefix=no
16490  need_version=no
16491  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16492  soname_spec='${libname}${release}${shared_ext}$major'
16493  shlibpath_var=LD_LIBRARY_PATH
16494  shlibpath_overrides_runpath=yes
16495  hardcode_into_libs=yes
16496  # ldd complains unless libraries are executable
16497  postinstall_cmds='chmod +x $lib'
16498  ;;
16499
16500sunos4*)
16501  version_type=sunos
16502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16503  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16504  shlibpath_var=LD_LIBRARY_PATH
16505  shlibpath_overrides_runpath=yes
16506  if test "$with_gnu_ld" = yes; then
16507    need_lib_prefix=no
16508  fi
16509  need_version=yes
16510  ;;
16511
16512sysv4 | sysv4.3*)
16513  version_type=linux
16514  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16515  soname_spec='${libname}${release}${shared_ext}$major'
16516  shlibpath_var=LD_LIBRARY_PATH
16517  case $host_vendor in
16518    sni)
16519      shlibpath_overrides_runpath=no
16520      need_lib_prefix=no
16521      export_dynamic_flag_spec='${wl}-Blargedynsym'
16522      runpath_var=LD_RUN_PATH
16523      ;;
16524    siemens)
16525      need_lib_prefix=no
16526      ;;
16527    motorola)
16528      need_lib_prefix=no
16529      need_version=no
16530      shlibpath_overrides_runpath=no
16531      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16532      ;;
16533  esac
16534  ;;
16535
16536sysv4*MP*)
16537  if test -d /usr/nec ;then
16538    version_type=linux
16539    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16540    soname_spec='$libname${shared_ext}.$major'
16541    shlibpath_var=LD_LIBRARY_PATH
16542  fi
16543  ;;
16544
16545sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16546  version_type=freebsd-elf
16547  need_lib_prefix=no
16548  need_version=no
16549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16550  soname_spec='${libname}${release}${shared_ext}$major'
16551  shlibpath_var=LD_LIBRARY_PATH
16552  hardcode_into_libs=yes
16553  if test "$with_gnu_ld" = yes; then
16554    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16555    shlibpath_overrides_runpath=no
16556  else
16557    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16558    shlibpath_overrides_runpath=yes
16559    case $host_os in
16560      sco3.2v5*)
16561        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16562	;;
16563    esac
16564  fi
16565  sys_lib_dlsearch_path_spec='/usr/lib'
16566  ;;
16567
16568uts4*)
16569  version_type=linux
16570  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16571  soname_spec='${libname}${release}${shared_ext}$major'
16572  shlibpath_var=LD_LIBRARY_PATH
16573  ;;
16574
16575*)
16576  dynamic_linker=no
16577  ;;
16578esac
16579{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16580echo "${ECHO_T}$dynamic_linker" >&6; }
16581test "$dynamic_linker" = no && can_build_shared=no
16582
16583if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16584  echo $ECHO_N "(cached) $ECHO_C" >&6
16585else
16586  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16587fi
16588
16589sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16590if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16591  echo $ECHO_N "(cached) $ECHO_C" >&6
16592else
16593  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16594fi
16595
16596sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16597
16598variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16599if test "$GCC" = yes; then
16600  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16601fi
16602
16603{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16604echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16605hardcode_action_F77=
16606if test -n "$hardcode_libdir_flag_spec_F77" || \
16607   test -n "$runpath_var_F77" || \
16608   test "X$hardcode_automatic_F77" = "Xyes" ; then
16609
16610  # We can hardcode non-existant directories.
16611  if test "$hardcode_direct_F77" != no &&
16612     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16613     # have to relink, otherwise we might link with an installed library
16614     # when we should be linking with a yet-to-be-installed one
16615     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16616     test "$hardcode_minus_L_F77" != no; then
16617    # Linking always hardcodes the temporary library directory.
16618    hardcode_action_F77=relink
16619  else
16620    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16621    hardcode_action_F77=immediate
16622  fi
16623else
16624  # We cannot hardcode anything, or else we can only hardcode existing
16625  # directories.
16626  hardcode_action_F77=unsupported
16627fi
16628{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16629echo "${ECHO_T}$hardcode_action_F77" >&6; }
16630
16631if test "$hardcode_action_F77" = relink; then
16632  # Fast installation is not supported
16633  enable_fast_install=no
16634elif test "$shlibpath_overrides_runpath" = yes ||
16635     test "$enable_shared" = no; then
16636  # Fast installation is not necessary
16637  enable_fast_install=needless
16638fi
16639
16640
16641# The else clause should only fire when bootstrapping the
16642# libtool distribution, otherwise you forgot to ship ltmain.sh
16643# with your package, and you will get complaints that there are
16644# no rules to generate ltmain.sh.
16645if test -f "$ltmain"; then
16646  # See if we are running on zsh, and set the options which allow our commands through
16647  # without removal of \ escapes.
16648  if test -n "${ZSH_VERSION+set}" ; then
16649    setopt NO_GLOB_SUBST
16650  fi
16651  # Now quote all the things that may contain metacharacters while being
16652  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16653  # variables and quote the copies for generation of the libtool script.
16654  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16655    SED SHELL STRIP \
16656    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16657    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16658    deplibs_check_method reload_flag reload_cmds need_locks \
16659    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16660    lt_cv_sys_global_symbol_to_c_name_address \
16661    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16662    old_postinstall_cmds old_postuninstall_cmds \
16663    compiler_F77 \
16664    CC_F77 \
16665    LD_F77 \
16666    lt_prog_compiler_wl_F77 \
16667    lt_prog_compiler_pic_F77 \
16668    lt_prog_compiler_static_F77 \
16669    lt_prog_compiler_no_builtin_flag_F77 \
16670    export_dynamic_flag_spec_F77 \
16671    thread_safe_flag_spec_F77 \
16672    whole_archive_flag_spec_F77 \
16673    enable_shared_with_static_runtimes_F77 \
16674    old_archive_cmds_F77 \
16675    old_archive_from_new_cmds_F77 \
16676    predep_objects_F77 \
16677    postdep_objects_F77 \
16678    predeps_F77 \
16679    postdeps_F77 \
16680    compiler_lib_search_path_F77 \
16681    compiler_lib_search_dirs_F77 \
16682    archive_cmds_F77 \
16683    archive_expsym_cmds_F77 \
16684    postinstall_cmds_F77 \
16685    postuninstall_cmds_F77 \
16686    old_archive_from_expsyms_cmds_F77 \
16687    allow_undefined_flag_F77 \
16688    no_undefined_flag_F77 \
16689    export_symbols_cmds_F77 \
16690    hardcode_libdir_flag_spec_F77 \
16691    hardcode_libdir_flag_spec_ld_F77 \
16692    hardcode_libdir_separator_F77 \
16693    hardcode_automatic_F77 \
16694    module_cmds_F77 \
16695    module_expsym_cmds_F77 \
16696    lt_cv_prog_compiler_c_o_F77 \
16697    fix_srcfile_path_F77 \
16698    exclude_expsyms_F77 \
16699    include_expsyms_F77; do
16700
16701    case $var in
16702    old_archive_cmds_F77 | \
16703    old_archive_from_new_cmds_F77 | \
16704    archive_cmds_F77 | \
16705    archive_expsym_cmds_F77 | \
16706    module_cmds_F77 | \
16707    module_expsym_cmds_F77 | \
16708    old_archive_from_expsyms_cmds_F77 | \
16709    export_symbols_cmds_F77 | \
16710    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16711    postinstall_cmds | postuninstall_cmds | \
16712    old_postinstall_cmds | old_postuninstall_cmds | \
16713    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16714      # Double-quote double-evaled strings.
16715      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16716      ;;
16717    *)
16718      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16719      ;;
16720    esac
16721  done
16722
16723  case $lt_echo in
16724  *'\$0 --fallback-echo"')
16725    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16726    ;;
16727  esac
16728
16729cfgfile="$ofile"
16730
16731  cat <<__EOF__ >> "$cfgfile"
16732# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16733
16734# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16735
16736# Shell to use when invoking shell scripts.
16737SHELL=$lt_SHELL
16738
16739# Whether or not to build shared libraries.
16740build_libtool_libs=$enable_shared
16741
16742# Whether or not to build static libraries.
16743build_old_libs=$enable_static
16744
16745# Whether or not to add -lc for building shared libraries.
16746build_libtool_need_lc=$archive_cmds_need_lc_F77
16747
16748# Whether or not to disallow shared libs when runtime libs are static
16749allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16750
16751# Whether or not to optimize for fast installation.
16752fast_install=$enable_fast_install
16753
16754# The host system.
16755host_alias=$host_alias
16756host=$host
16757host_os=$host_os
16758
16759# The build system.
16760build_alias=$build_alias
16761build=$build
16762build_os=$build_os
16763
16764# An echo program that does not interpret backslashes.
16765echo=$lt_echo
16766
16767# The archiver.
16768AR=$lt_AR
16769AR_FLAGS=$lt_AR_FLAGS
16770
16771# A C compiler.
16772LTCC=$lt_LTCC
16773
16774# LTCC compiler flags.
16775LTCFLAGS=$lt_LTCFLAGS
16776
16777# A language-specific compiler.
16778CC=$lt_compiler_F77
16779
16780# Is the compiler the GNU C compiler?
16781with_gcc=$GCC_F77
16782
16783# An ERE matcher.
16784EGREP=$lt_EGREP
16785
16786# The linker used to build libraries.
16787LD=$lt_LD_F77
16788
16789# Whether we need hard or soft links.
16790LN_S=$lt_LN_S
16791
16792# A BSD-compatible nm program.
16793NM=$lt_NM
16794
16795# A symbol stripping program
16796STRIP=$lt_STRIP
16797
16798# Used to examine libraries when file_magic_cmd begins "file"
16799MAGIC_CMD=$MAGIC_CMD
16800
16801# Used on cygwin: DLL creation program.
16802DLLTOOL="$DLLTOOL"
16803
16804# Used on cygwin: object dumper.
16805OBJDUMP="$OBJDUMP"
16806
16807# Used on cygwin: assembler.
16808AS="$AS"
16809
16810# The name of the directory that contains temporary libtool files.
16811objdir=$objdir
16812
16813# How to create reloadable object files.
16814reload_flag=$lt_reload_flag
16815reload_cmds=$lt_reload_cmds
16816
16817# How to pass a linker flag through the compiler.
16818wl=$lt_lt_prog_compiler_wl_F77
16819
16820# Object file suffix (normally "o").
16821objext="$ac_objext"
16822
16823# Old archive suffix (normally "a").
16824libext="$libext"
16825
16826# Shared library suffix (normally ".so").
16827shrext_cmds='$shrext_cmds'
16828
16829# Executable file suffix (normally "").
16830exeext="$exeext"
16831
16832# Additional compiler flags for building library objects.
16833pic_flag=$lt_lt_prog_compiler_pic_F77
16834pic_mode=$pic_mode
16835
16836# What is the maximum length of a command?
16837max_cmd_len=$lt_cv_sys_max_cmd_len
16838
16839# Does compiler simultaneously support -c and -o options?
16840compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16841
16842# Must we lock files when doing compilation?
16843need_locks=$lt_need_locks
16844
16845# Do we need the lib prefix for modules?
16846need_lib_prefix=$need_lib_prefix
16847
16848# Do we need a version for libraries?
16849need_version=$need_version
16850
16851# Whether dlopen is supported.
16852dlopen_support=$enable_dlopen
16853
16854# Whether dlopen of programs is supported.
16855dlopen_self=$enable_dlopen_self
16856
16857# Whether dlopen of statically linked programs is supported.
16858dlopen_self_static=$enable_dlopen_self_static
16859
16860# Compiler flag to prevent dynamic linking.
16861link_static_flag=$lt_lt_prog_compiler_static_F77
16862
16863# Compiler flag to turn off builtin functions.
16864no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16865
16866# Compiler flag to allow reflexive dlopens.
16867export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16868
16869# Compiler flag to generate shared objects directly from archives.
16870whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16871
16872# Compiler flag to generate thread-safe objects.
16873thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16874
16875# Library versioning type.
16876version_type=$version_type
16877
16878# Format of library name prefix.
16879libname_spec=$lt_libname_spec
16880
16881# List of archive names.  First name is the real one, the rest are links.
16882# The last name is the one that the linker finds with -lNAME.
16883library_names_spec=$lt_library_names_spec
16884
16885# The coded name of the library, if different from the real name.
16886soname_spec=$lt_soname_spec
16887
16888# Commands used to build and install an old-style archive.
16889RANLIB=$lt_RANLIB
16890old_archive_cmds=$lt_old_archive_cmds_F77
16891old_postinstall_cmds=$lt_old_postinstall_cmds
16892old_postuninstall_cmds=$lt_old_postuninstall_cmds
16893
16894# Create an old-style archive from a shared archive.
16895old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16896
16897# Create a temporary old-style archive to link instead of a shared archive.
16898old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16899
16900# Commands used to build and install a shared archive.
16901archive_cmds=$lt_archive_cmds_F77
16902archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16903postinstall_cmds=$lt_postinstall_cmds
16904postuninstall_cmds=$lt_postuninstall_cmds
16905
16906# Commands used to build a loadable module (assumed same as above if empty)
16907module_cmds=$lt_module_cmds_F77
16908module_expsym_cmds=$lt_module_expsym_cmds_F77
16909
16910# Commands to strip libraries.
16911old_striplib=$lt_old_striplib
16912striplib=$lt_striplib
16913
16914# Dependencies to place before the objects being linked to create a
16915# shared library.
16916predep_objects=$lt_predep_objects_F77
16917
16918# Dependencies to place after the objects being linked to create a
16919# shared library.
16920postdep_objects=$lt_postdep_objects_F77
16921
16922# Dependencies to place before the objects being linked to create a
16923# shared library.
16924predeps=$lt_predeps_F77
16925
16926# Dependencies to place after the objects being linked to create a
16927# shared library.
16928postdeps=$lt_postdeps_F77
16929
16930# The directories searched by this compiler when creating a shared
16931# library
16932compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16933
16934# The library search path used internally by the compiler when linking
16935# a shared library.
16936compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16937
16938# Method to check whether dependent libraries are shared objects.
16939deplibs_check_method=$lt_deplibs_check_method
16940
16941# Command to use when deplibs_check_method == file_magic.
16942file_magic_cmd=$lt_file_magic_cmd
16943
16944# Flag that allows shared libraries with undefined symbols to be built.
16945allow_undefined_flag=$lt_allow_undefined_flag_F77
16946
16947# Flag that forces no undefined symbols.
16948no_undefined_flag=$lt_no_undefined_flag_F77
16949
16950# Commands used to finish a libtool library installation in a directory.
16951finish_cmds=$lt_finish_cmds
16952
16953# Same as above, but a single script fragment to be evaled but not shown.
16954finish_eval=$lt_finish_eval
16955
16956# Take the output of nm and produce a listing of raw symbols and C names.
16957global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16958
16959# Transform the output of nm in a proper C declaration
16960global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16961
16962# Transform the output of nm in a C name address pair
16963global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16964
16965# This is the shared library runtime path variable.
16966runpath_var=$runpath_var
16967
16968# This is the shared library path variable.
16969shlibpath_var=$shlibpath_var
16970
16971# Is shlibpath searched before the hard-coded library search path?
16972shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16973
16974# How to hardcode a shared library path into an executable.
16975hardcode_action=$hardcode_action_F77
16976
16977# Whether we should hardcode library paths into libraries.
16978hardcode_into_libs=$hardcode_into_libs
16979
16980# Flag to hardcode \$libdir into a binary during linking.
16981# This must work even if \$libdir does not exist.
16982hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16983
16984# If ld is used when linking, flag to hardcode \$libdir into
16985# a binary during linking. This must work even if \$libdir does
16986# not exist.
16987hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16988
16989# Whether we need a single -rpath flag with a separated argument.
16990hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16991
16992# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16993# resulting binary.
16994hardcode_direct=$hardcode_direct_F77
16995
16996# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16997# resulting binary.
16998hardcode_minus_L=$hardcode_minus_L_F77
16999
17000# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17001# the resulting binary.
17002hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17003
17004# Set to yes if building a shared library automatically hardcodes DIR into the library
17005# and all subsequent libraries and executables linked against it.
17006hardcode_automatic=$hardcode_automatic_F77
17007
17008# Variables whose values should be saved in libtool wrapper scripts and
17009# restored at relink time.
17010variables_saved_for_relink="$variables_saved_for_relink"
17011
17012# Whether libtool must link a program against all its dependency libraries.
17013link_all_deplibs=$link_all_deplibs_F77
17014
17015# Compile-time system search path for libraries
17016sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17017
17018# Run-time system search path for libraries
17019sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17020
17021# Fix the shell variable \$srcfile for the compiler.
17022fix_srcfile_path=$lt_fix_srcfile_path
17023
17024# Set to yes if exported symbols are required.
17025always_export_symbols=$always_export_symbols_F77
17026
17027# The commands to list exported symbols.
17028export_symbols_cmds=$lt_export_symbols_cmds_F77
17029
17030# The commands to extract the exported symbol list from a shared archive.
17031extract_expsyms_cmds=$lt_extract_expsyms_cmds
17032
17033# Symbols that should not be listed in the preloaded symbols.
17034exclude_expsyms=$lt_exclude_expsyms_F77
17035
17036# Symbols that must always be exported.
17037include_expsyms=$lt_include_expsyms_F77
17038
17039# ### END LIBTOOL TAG CONFIG: $tagname
17040
17041__EOF__
17042
17043
17044else
17045  # If there is no Makefile yet, we rely on a make rule to execute
17046  # `config.status --recheck' to rerun these tests and create the
17047  # libtool script then.
17048  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17049  if test -f "$ltmain_in"; then
17050    test -f Makefile && make "$ltmain"
17051  fi
17052fi
17053
17054
17055ac_ext=c
17056ac_cpp='$CPP $CPPFLAGS'
17057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17059ac_compiler_gnu=$ac_cv_c_compiler_gnu
17060
17061CC="$lt_save_CC"
17062
17063	else
17064	  tagname=""
17065	fi
17066	;;
17067
17068      GCJ)
17069	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17070
17071
17072# Source file extension for Java test sources.
17073ac_ext=java
17074
17075# Object file extension for compiled Java test sources.
17076objext=o
17077objext_GCJ=$objext
17078
17079# Code to be used in simple compile tests
17080lt_simple_compile_test_code="class foo {}"
17081
17082# Code to be used in simple link tests
17083lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17084
17085# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17086
17087# If no C compiler was specified, use CC.
17088LTCC=${LTCC-"$CC"}
17089
17090# If no C compiler flags were specified, use CFLAGS.
17091LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17092
17093# Allow CC to be a program name with arguments.
17094compiler=$CC
17095
17096
17097# save warnings/boilerplate of simple test code
17098ac_outfile=conftest.$ac_objext
17099echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17100eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17101_lt_compiler_boilerplate=`cat conftest.err`
17102$rm conftest*
17103
17104ac_outfile=conftest.$ac_objext
17105echo "$lt_simple_link_test_code" >conftest.$ac_ext
17106eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17107_lt_linker_boilerplate=`cat conftest.err`
17108$rm -r conftest*
17109
17110
17111# Allow CC to be a program name with arguments.
17112lt_save_CC="$CC"
17113CC=${GCJ-"gcj"}
17114compiler=$CC
17115compiler_GCJ=$CC
17116for cc_temp in $compiler""; do
17117  case $cc_temp in
17118    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17119    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17120    \-*) ;;
17121    *) break;;
17122  esac
17123done
17124cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17125
17126
17127# GCJ did not exist at the time GCC didn't implicitly link libc in.
17128archive_cmds_need_lc_GCJ=no
17129
17130old_archive_cmds_GCJ=$old_archive_cmds
17131
17132
17133lt_prog_compiler_no_builtin_flag_GCJ=
17134
17135if test "$GCC" = yes; then
17136  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17137
17138
17139{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17140echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17141if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17142  echo $ECHO_N "(cached) $ECHO_C" >&6
17143else
17144  lt_cv_prog_compiler_rtti_exceptions=no
17145  ac_outfile=conftest.$ac_objext
17146   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17147   lt_compiler_flag="-fno-rtti -fno-exceptions"
17148   # Insert the option either (1) after the last *FLAGS variable, or
17149   # (2) before a word containing "conftest.", or (3) at the end.
17150   # Note that $ac_compile itself does not contain backslashes and begins
17151   # with a dollar sign (not a hyphen), so the echo should work correctly.
17152   # The option is referenced via a variable to avoid confusing sed.
17153   lt_compile=`echo "$ac_compile" | $SED \
17154   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17155   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17156   -e 's:$: $lt_compiler_flag:'`
17157   (eval echo "\"\$as_me:17157: $lt_compile\"" >&5)
17158   (eval "$lt_compile" 2>conftest.err)
17159   ac_status=$?
17160   cat conftest.err >&5
17161   echo "$as_me:17161: \$? = $ac_status" >&5
17162   if (exit $ac_status) && test -s "$ac_outfile"; then
17163     # The compiler can only warn and ignore the option if not recognized
17164     # So say no if there are warnings other than the usual output.
17165     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17166     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17167     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17168       lt_cv_prog_compiler_rtti_exceptions=yes
17169     fi
17170   fi
17171   $rm conftest*
17172
17173fi
17174{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17175echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17176
17177if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17178    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17179else
17180    :
17181fi
17182
17183fi
17184
17185lt_prog_compiler_wl_GCJ=
17186lt_prog_compiler_pic_GCJ=
17187lt_prog_compiler_static_GCJ=
17188
17189{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17190echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17191
17192  if test "$GCC" = yes; then
17193    lt_prog_compiler_wl_GCJ='-Wl,'
17194    lt_prog_compiler_static_GCJ='-static'
17195
17196    case $host_os in
17197      aix*)
17198      # All AIX code is PIC.
17199      if test "$host_cpu" = ia64; then
17200	# AIX 5 now supports IA64 processor
17201	lt_prog_compiler_static_GCJ='-Bstatic'
17202      fi
17203      ;;
17204
17205    amigaos*)
17206      # FIXME: we need at least 68020 code to build shared libraries, but
17207      # adding the `-m68020' flag to GCC prevents building anything better,
17208      # like `-m68040'.
17209      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17210      ;;
17211
17212    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17213      # PIC is the default for these OSes.
17214      ;;
17215
17216    mingw* | cygwin* | pw32* | os2*)
17217      # This hack is so that the source file can tell whether it is being
17218      # built for inclusion in a dll (and should export symbols for example).
17219      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17220      # (--disable-auto-import) libraries
17221
17222      ;;
17223
17224    darwin* | rhapsody*)
17225      # PIC is the default on this platform
17226      # Common symbols not allowed in MH_DYLIB files
17227      lt_prog_compiler_pic_GCJ='-fno-common'
17228      ;;
17229
17230    interix[3-9]*)
17231      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17232      # Instead, we relocate shared libraries at runtime.
17233      ;;
17234
17235    msdosdjgpp*)
17236      # Just because we use GCC doesn't mean we suddenly get shared libraries
17237      # on systems that don't support them.
17238      lt_prog_compiler_can_build_shared_GCJ=no
17239      enable_shared=no
17240      ;;
17241
17242    sysv4*MP*)
17243      if test -d /usr/nec; then
17244	lt_prog_compiler_pic_GCJ=-Kconform_pic
17245      fi
17246      ;;
17247
17248    hpux*)
17249      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17250      # not for PA HP-UX.
17251      case $host_cpu in
17252      hppa*64*|ia64*)
17253	# +Z the default
17254	;;
17255      *)
17256	lt_prog_compiler_pic_GCJ='-fPIC'
17257	;;
17258      esac
17259      ;;
17260
17261    *)
17262      lt_prog_compiler_pic_GCJ='-fPIC'
17263      ;;
17264    esac
17265  else
17266    # PORTME Check for flag to pass linker flags through the system compiler.
17267    case $host_os in
17268    aix*)
17269      lt_prog_compiler_wl_GCJ='-Wl,'
17270      if test "$host_cpu" = ia64; then
17271	# AIX 5 now supports IA64 processor
17272	lt_prog_compiler_static_GCJ='-Bstatic'
17273      else
17274	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17275      fi
17276      ;;
17277      darwin*)
17278        # PIC is the default on this platform
17279        # Common symbols not allowed in MH_DYLIB files
17280       case $cc_basename in
17281         xlc*)
17282         lt_prog_compiler_pic_GCJ='-qnocommon'
17283         lt_prog_compiler_wl_GCJ='-Wl,'
17284         ;;
17285       esac
17286       ;;
17287
17288    mingw* | cygwin* | pw32* | os2*)
17289      # This hack is so that the source file can tell whether it is being
17290      # built for inclusion in a dll (and should export symbols for example).
17291
17292      ;;
17293
17294    hpux9* | hpux10* | hpux11*)
17295      lt_prog_compiler_wl_GCJ='-Wl,'
17296      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17297      # not for PA HP-UX.
17298      case $host_cpu in
17299      hppa*64*|ia64*)
17300	# +Z the default
17301	;;
17302      *)
17303	lt_prog_compiler_pic_GCJ='+Z'
17304	;;
17305      esac
17306      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17307      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17308      ;;
17309
17310    irix5* | irix6* | nonstopux*)
17311      lt_prog_compiler_wl_GCJ='-Wl,'
17312      # PIC (with -KPIC) is the default.
17313      lt_prog_compiler_static_GCJ='-non_shared'
17314      ;;
17315
17316    newsos6)
17317      lt_prog_compiler_pic_GCJ='-KPIC'
17318      lt_prog_compiler_static_GCJ='-Bstatic'
17319      ;;
17320
17321    linux* | k*bsd*-gnu)
17322      case $cc_basename in
17323      icc* | ecc*)
17324	lt_prog_compiler_wl_GCJ='-Wl,'
17325	lt_prog_compiler_pic_GCJ='-KPIC'
17326	lt_prog_compiler_static_GCJ='-static'
17327        ;;
17328      pgcc* | pgf77* | pgf90* | pgf95*)
17329        # Portland Group compilers (*not* the Pentium gcc compiler,
17330	# which looks to be a dead project)
17331	lt_prog_compiler_wl_GCJ='-Wl,'
17332	lt_prog_compiler_pic_GCJ='-fpic'
17333	lt_prog_compiler_static_GCJ='-Bstatic'
17334        ;;
17335      ccc*)
17336        lt_prog_compiler_wl_GCJ='-Wl,'
17337        # All Alpha code is PIC.
17338        lt_prog_compiler_static_GCJ='-non_shared'
17339        ;;
17340      *)
17341        case `$CC -V 2>&1 | sed 5q` in
17342	*Sun\ C*)
17343	  # Sun C 5.9
17344	  lt_prog_compiler_pic_GCJ='-KPIC'
17345	  lt_prog_compiler_static_GCJ='-Bstatic'
17346	  lt_prog_compiler_wl_GCJ='-Wl,'
17347	  ;;
17348	*Sun\ F*)
17349	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17350	  lt_prog_compiler_pic_GCJ='-KPIC'
17351	  lt_prog_compiler_static_GCJ='-Bstatic'
17352	  lt_prog_compiler_wl_GCJ=''
17353	  ;;
17354	esac
17355	;;
17356      esac
17357      ;;
17358
17359    osf3* | osf4* | osf5*)
17360      lt_prog_compiler_wl_GCJ='-Wl,'
17361      # All OSF/1 code is PIC.
17362      lt_prog_compiler_static_GCJ='-non_shared'
17363      ;;
17364
17365    rdos*)
17366      lt_prog_compiler_static_GCJ='-non_shared'
17367      ;;
17368
17369    solaris*)
17370      lt_prog_compiler_pic_GCJ='-KPIC'
17371      lt_prog_compiler_static_GCJ='-Bstatic'
17372      case $cc_basename in
17373      f77* | f90* | f95*)
17374	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17375      *)
17376	lt_prog_compiler_wl_GCJ='-Wl,';;
17377      esac
17378      ;;
17379
17380    sunos4*)
17381      lt_prog_compiler_wl_GCJ='-Qoption ld '
17382      lt_prog_compiler_pic_GCJ='-PIC'
17383      lt_prog_compiler_static_GCJ='-Bstatic'
17384      ;;
17385
17386    sysv4 | sysv4.2uw2* | sysv4.3*)
17387      lt_prog_compiler_wl_GCJ='-Wl,'
17388      lt_prog_compiler_pic_GCJ='-KPIC'
17389      lt_prog_compiler_static_GCJ='-Bstatic'
17390      ;;
17391
17392    sysv4*MP*)
17393      if test -d /usr/nec ;then
17394	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17395	lt_prog_compiler_static_GCJ='-Bstatic'
17396      fi
17397      ;;
17398
17399    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17400      lt_prog_compiler_wl_GCJ='-Wl,'
17401      lt_prog_compiler_pic_GCJ='-KPIC'
17402      lt_prog_compiler_static_GCJ='-Bstatic'
17403      ;;
17404
17405    unicos*)
17406      lt_prog_compiler_wl_GCJ='-Wl,'
17407      lt_prog_compiler_can_build_shared_GCJ=no
17408      ;;
17409
17410    uts4*)
17411      lt_prog_compiler_pic_GCJ='-pic'
17412      lt_prog_compiler_static_GCJ='-Bstatic'
17413      ;;
17414
17415    *)
17416      lt_prog_compiler_can_build_shared_GCJ=no
17417      ;;
17418    esac
17419  fi
17420
17421{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17422echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17423
17424#
17425# Check to make sure the PIC flag actually works.
17426#
17427if test -n "$lt_prog_compiler_pic_GCJ"; then
17428
17429{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17430echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17431if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17432  echo $ECHO_N "(cached) $ECHO_C" >&6
17433else
17434  lt_cv_prog_compiler_pic_works_GCJ=no
17435  ac_outfile=conftest.$ac_objext
17436   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17437   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17438   # Insert the option either (1) after the last *FLAGS variable, or
17439   # (2) before a word containing "conftest.", or (3) at the end.
17440   # Note that $ac_compile itself does not contain backslashes and begins
17441   # with a dollar sign (not a hyphen), so the echo should work correctly.
17442   # The option is referenced via a variable to avoid confusing sed.
17443   lt_compile=`echo "$ac_compile" | $SED \
17444   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17445   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17446   -e 's:$: $lt_compiler_flag:'`
17447   (eval echo "\"\$as_me:17447: $lt_compile\"" >&5)
17448   (eval "$lt_compile" 2>conftest.err)
17449   ac_status=$?
17450   cat conftest.err >&5
17451   echo "$as_me:17451: \$? = $ac_status" >&5
17452   if (exit $ac_status) && test -s "$ac_outfile"; then
17453     # The compiler can only warn and ignore the option if not recognized
17454     # So say no if there are warnings other than the usual output.
17455     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17456     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17457     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17458       lt_cv_prog_compiler_pic_works_GCJ=yes
17459     fi
17460   fi
17461   $rm conftest*
17462
17463fi
17464{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17465echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17466
17467if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17468    case $lt_prog_compiler_pic_GCJ in
17469     "" | " "*) ;;
17470     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17471     esac
17472else
17473    lt_prog_compiler_pic_GCJ=
17474     lt_prog_compiler_can_build_shared_GCJ=no
17475fi
17476
17477fi
17478case $host_os in
17479  # For platforms which do not support PIC, -DPIC is meaningless:
17480  *djgpp*)
17481    lt_prog_compiler_pic_GCJ=
17482    ;;
17483  *)
17484    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17485    ;;
17486esac
17487
17488#
17489# Check to make sure the static flag actually works.
17490#
17491wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17492{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17493echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17494if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17495  echo $ECHO_N "(cached) $ECHO_C" >&6
17496else
17497  lt_cv_prog_compiler_static_works_GCJ=no
17498   save_LDFLAGS="$LDFLAGS"
17499   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17500   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17501   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17502     # The linker can only warn and ignore the option if not recognized
17503     # So say no if there are warnings
17504     if test -s conftest.err; then
17505       # Append any errors to the config.log.
17506       cat conftest.err 1>&5
17507       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17508       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17509       if diff conftest.exp conftest.er2 >/dev/null; then
17510         lt_cv_prog_compiler_static_works_GCJ=yes
17511       fi
17512     else
17513       lt_cv_prog_compiler_static_works_GCJ=yes
17514     fi
17515   fi
17516   $rm -r conftest*
17517   LDFLAGS="$save_LDFLAGS"
17518
17519fi
17520{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17521echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17522
17523if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17524    :
17525else
17526    lt_prog_compiler_static_GCJ=
17527fi
17528
17529
17530{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17531echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17532if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17533  echo $ECHO_N "(cached) $ECHO_C" >&6
17534else
17535  lt_cv_prog_compiler_c_o_GCJ=no
17536   $rm -r conftest 2>/dev/null
17537   mkdir conftest
17538   cd conftest
17539   mkdir out
17540   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17541
17542   lt_compiler_flag="-o out/conftest2.$ac_objext"
17543   # Insert the option either (1) after the last *FLAGS variable, or
17544   # (2) before a word containing "conftest.", or (3) at the end.
17545   # Note that $ac_compile itself does not contain backslashes and begins
17546   # with a dollar sign (not a hyphen), so the echo should work correctly.
17547   lt_compile=`echo "$ac_compile" | $SED \
17548   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17549   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17550   -e 's:$: $lt_compiler_flag:'`
17551   (eval echo "\"\$as_me:17551: $lt_compile\"" >&5)
17552   (eval "$lt_compile" 2>out/conftest.err)
17553   ac_status=$?
17554   cat out/conftest.err >&5
17555   echo "$as_me:17555: \$? = $ac_status" >&5
17556   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17557   then
17558     # The compiler can only warn and ignore the option if not recognized
17559     # So say no if there are warnings
17560     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17561     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17562     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17563       lt_cv_prog_compiler_c_o_GCJ=yes
17564     fi
17565   fi
17566   chmod u+w . 2>&5
17567   $rm conftest*
17568   # SGI C++ compiler will create directory out/ii_files/ for
17569   # template instantiation
17570   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17571   $rm out/* && rmdir out
17572   cd ..
17573   rmdir conftest
17574   $rm conftest*
17575
17576fi
17577{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17578echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17579
17580
17581hard_links="nottested"
17582if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17583  # do not overwrite the value of need_locks provided by the user
17584  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17585echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17586  hard_links=yes
17587  $rm conftest*
17588  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17589  touch conftest.a
17590  ln conftest.a conftest.b 2>&5 || hard_links=no
17591  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17592  { echo "$as_me:$LINENO: result: $hard_links" >&5
17593echo "${ECHO_T}$hard_links" >&6; }
17594  if test "$hard_links" = no; then
17595    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17596echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17597    need_locks=warn
17598  fi
17599else
17600  need_locks=no
17601fi
17602
17603{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17604echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17605
17606  runpath_var=
17607  allow_undefined_flag_GCJ=
17608  enable_shared_with_static_runtimes_GCJ=no
17609  archive_cmds_GCJ=
17610  archive_expsym_cmds_GCJ=
17611  old_archive_From_new_cmds_GCJ=
17612  old_archive_from_expsyms_cmds_GCJ=
17613  export_dynamic_flag_spec_GCJ=
17614  whole_archive_flag_spec_GCJ=
17615  thread_safe_flag_spec_GCJ=
17616  hardcode_libdir_flag_spec_GCJ=
17617  hardcode_libdir_flag_spec_ld_GCJ=
17618  hardcode_libdir_separator_GCJ=
17619  hardcode_direct_GCJ=no
17620  hardcode_minus_L_GCJ=no
17621  hardcode_shlibpath_var_GCJ=unsupported
17622  link_all_deplibs_GCJ=unknown
17623  hardcode_automatic_GCJ=no
17624  module_cmds_GCJ=
17625  module_expsym_cmds_GCJ=
17626  always_export_symbols_GCJ=no
17627  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17628  # include_expsyms should be a list of space-separated symbols to be *always*
17629  # included in the symbol list
17630  include_expsyms_GCJ=
17631  # exclude_expsyms can be an extended regexp of symbols to exclude
17632  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17633  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17634  # as well as any symbol that contains `d'.
17635  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17636  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17637  # platforms (ab)use it in PIC code, but their linkers get confused if
17638  # the symbol is explicitly referenced.  Since portable code cannot
17639  # rely on this symbol name, it's probably fine to never include it in
17640  # preloaded symbol tables.
17641  # Exclude shared library initialization/finalization symbols.
17642  extract_expsyms_cmds=
17643  # Just being paranoid about ensuring that cc_basename is set.
17644  for cc_temp in $compiler""; do
17645  case $cc_temp in
17646    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17647    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17648    \-*) ;;
17649    *) break;;
17650  esac
17651done
17652cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17653
17654  case $host_os in
17655  cygwin* | mingw* | pw32*)
17656    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17657    # When not using gcc, we currently assume that we are using
17658    # Microsoft Visual C++.
17659    if test "$GCC" != yes; then
17660      with_gnu_ld=no
17661    fi
17662    ;;
17663  interix*)
17664    # we just hope/assume this is gcc and not c89 (= MSVC++)
17665    with_gnu_ld=yes
17666    ;;
17667  openbsd*)
17668    with_gnu_ld=no
17669    ;;
17670  esac
17671
17672  ld_shlibs_GCJ=yes
17673  if test "$with_gnu_ld" = yes; then
17674    # If archive_cmds runs LD, not CC, wlarc should be empty
17675    wlarc='${wl}'
17676
17677    # Set some defaults for GNU ld with shared library support. These
17678    # are reset later if shared libraries are not supported. Putting them
17679    # here allows them to be overridden if necessary.
17680    runpath_var=LD_RUN_PATH
17681    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17682    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17683    # ancient GNU ld didn't support --whole-archive et. al.
17684    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17685	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17686      else
17687  	whole_archive_flag_spec_GCJ=
17688    fi
17689    supports_anon_versioning=no
17690    case `$LD -v 2>/dev/null` in
17691      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17692      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17693      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17694      *\ 2.11.*) ;; # other 2.11 versions
17695      *) supports_anon_versioning=yes ;;
17696    esac
17697
17698    # See if GNU ld supports shared libraries.
17699    case $host_os in
17700    aix[3-9]*)
17701      # On AIX/PPC, the GNU linker is very broken
17702      if test "$host_cpu" != ia64; then
17703	ld_shlibs_GCJ=no
17704	cat <<EOF 1>&2
17705
17706*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17707*** to be unable to reliably create shared libraries on AIX.
17708*** Therefore, libtool is disabling shared libraries support.  If you
17709*** really care for shared libraries, you may want to modify your PATH
17710*** so that a non-GNU linker is found, and then restart.
17711
17712EOF
17713      fi
17714      ;;
17715
17716    amigaos*)
17717      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)'
17718      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17719      hardcode_minus_L_GCJ=yes
17720
17721      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17722      # that the semantics of dynamic libraries on AmigaOS, at least up
17723      # to version 4, is to share data among multiple programs linked
17724      # with the same dynamic library.  Since this doesn't match the
17725      # behavior of shared libraries on other platforms, we can't use
17726      # them.
17727      ld_shlibs_GCJ=no
17728      ;;
17729
17730    beos*)
17731      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17732	allow_undefined_flag_GCJ=unsupported
17733	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17734	# support --undefined.  This deserves some investigation.  FIXME
17735	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17736      else
17737	ld_shlibs_GCJ=no
17738      fi
17739      ;;
17740
17741    cygwin* | mingw* | pw32*)
17742      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17743      # as there is no search path for DLLs.
17744      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17745      allow_undefined_flag_GCJ=unsupported
17746      always_export_symbols_GCJ=no
17747      enable_shared_with_static_runtimes_GCJ=yes
17748      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17749
17750      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17751        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17752	# If the export-symbols file already is a .def file (1st line
17753	# is EXPORTS), use it as is; otherwise, prepend...
17754	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17755	  cp $export_symbols $output_objdir/$soname.def;
17756	else
17757	  echo EXPORTS > $output_objdir/$soname.def;
17758	  cat $export_symbols >> $output_objdir/$soname.def;
17759	fi~
17760	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17761      else
17762	ld_shlibs_GCJ=no
17763      fi
17764      ;;
17765
17766    interix[3-9]*)
17767      hardcode_direct_GCJ=no
17768      hardcode_shlibpath_var_GCJ=no
17769      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17770      export_dynamic_flag_spec_GCJ='${wl}-E'
17771      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17772      # Instead, shared libraries are loaded at an image base (0x10000000 by
17773      # default) and relocated if they conflict, which is a slow very memory
17774      # consuming and fragmenting process.  To avoid this, we pick a random,
17775      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17776      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17777      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'
17778      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'
17779      ;;
17780
17781    gnu* | linux* | k*bsd*-gnu)
17782      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17783	tmp_addflag=
17784	case $cc_basename,$host_cpu in
17785	pgcc*)				# Portland Group C compiler
17786	  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'
17787	  tmp_addflag=' $pic_flag'
17788	  ;;
17789	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17790	  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'
17791	  tmp_addflag=' $pic_flag -Mnomain' ;;
17792	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17793	  tmp_addflag=' -i_dynamic' ;;
17794	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17795	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17796	ifc* | ifort*)			# Intel Fortran compiler
17797	  tmp_addflag=' -nofor_main' ;;
17798	esac
17799	case `$CC -V 2>&1 | sed 5q` in
17800	*Sun\ C*)			# Sun C 5.9
17801	  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'
17802	  tmp_sharedflag='-G' ;;
17803	*Sun\ F*)			# Sun Fortran 8.3
17804	  tmp_sharedflag='-G' ;;
17805	*)
17806	  tmp_sharedflag='-shared' ;;
17807	esac
17808	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17809
17810	if test $supports_anon_versioning = yes; then
17811	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17812  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17813  $echo "local: *; };" >> $output_objdir/$libname.ver~
17814	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17815	fi
17816	link_all_deplibs_GCJ=no
17817      else
17818	ld_shlibs_GCJ=no
17819      fi
17820      ;;
17821
17822    netbsd* | netbsdelf*-gnu)
17823      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17824	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17825	wlarc=
17826      else
17827	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17828	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17829      fi
17830      ;;
17831
17832    solaris*)
17833      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17834	ld_shlibs_GCJ=no
17835	cat <<EOF 1>&2
17836
17837*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17838*** create shared libraries on Solaris systems.  Therefore, libtool
17839*** is disabling shared libraries support.  We urge you to upgrade GNU
17840*** binutils to release 2.9.1 or newer.  Another option is to modify
17841*** your PATH or compiler configuration so that the native linker is
17842*** used, and then restart.
17843
17844EOF
17845      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17846	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17847	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17848      else
17849	ld_shlibs_GCJ=no
17850      fi
17851      ;;
17852
17853    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17854      case `$LD -v 2>&1` in
17855        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17856	ld_shlibs_GCJ=no
17857	cat <<_LT_EOF 1>&2
17858
17859*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17860*** reliably create shared libraries on SCO systems.  Therefore, libtool
17861*** is disabling shared libraries support.  We urge you to upgrade GNU
17862*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17863*** your PATH or compiler configuration so that the native linker is
17864*** used, and then restart.
17865
17866_LT_EOF
17867	;;
17868	*)
17869	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17870	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17871	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17872	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17873	  else
17874	    ld_shlibs_GCJ=no
17875	  fi
17876	;;
17877      esac
17878      ;;
17879
17880    sunos4*)
17881      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17882      wlarc=
17883      hardcode_direct_GCJ=yes
17884      hardcode_shlibpath_var_GCJ=no
17885      ;;
17886
17887    *)
17888      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17889	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17890	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17891      else
17892	ld_shlibs_GCJ=no
17893      fi
17894      ;;
17895    esac
17896
17897    if test "$ld_shlibs_GCJ" = no; then
17898      runpath_var=
17899      hardcode_libdir_flag_spec_GCJ=
17900      export_dynamic_flag_spec_GCJ=
17901      whole_archive_flag_spec_GCJ=
17902    fi
17903  else
17904    # PORTME fill in a description of your system's linker (not GNU ld)
17905    case $host_os in
17906    aix3*)
17907      allow_undefined_flag_GCJ=unsupported
17908      always_export_symbols_GCJ=yes
17909      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'
17910      # Note: this linker hardcodes the directories in LIBPATH if there
17911      # are no directories specified by -L.
17912      hardcode_minus_L_GCJ=yes
17913      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17914	# Neither direct hardcoding nor static linking is supported with a
17915	# broken collect2.
17916	hardcode_direct_GCJ=unsupported
17917      fi
17918      ;;
17919
17920    aix[4-9]*)
17921      if test "$host_cpu" = ia64; then
17922	# On IA64, the linker does run time linking by default, so we don't
17923	# have to do anything special.
17924	aix_use_runtimelinking=no
17925	exp_sym_flag='-Bexport'
17926	no_entry_flag=""
17927      else
17928	# If we're using GNU nm, then we don't want the "-C" option.
17929	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17930	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17931	  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'
17932	else
17933	  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'
17934	fi
17935	aix_use_runtimelinking=no
17936
17937	# Test if we are trying to use run time linking or normal
17938	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17939	# need to do runtime linking.
17940	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17941	  for ld_flag in $LDFLAGS; do
17942  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17943  	    aix_use_runtimelinking=yes
17944  	    break
17945  	  fi
17946	  done
17947	  ;;
17948	esac
17949
17950	exp_sym_flag='-bexport'
17951	no_entry_flag='-bnoentry'
17952      fi
17953
17954      # When large executables or shared objects are built, AIX ld can
17955      # have problems creating the table of contents.  If linking a library
17956      # or program results in "error TOC overflow" add -mminimal-toc to
17957      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17958      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17959
17960      archive_cmds_GCJ=''
17961      hardcode_direct_GCJ=yes
17962      hardcode_libdir_separator_GCJ=':'
17963      link_all_deplibs_GCJ=yes
17964
17965      if test "$GCC" = yes; then
17966	case $host_os in aix4.[012]|aix4.[012].*)
17967	# We only want to do this on AIX 4.2 and lower, the check
17968	# below for broken collect2 doesn't work under 4.3+
17969	  collect2name=`${CC} -print-prog-name=collect2`
17970	  if test -f "$collect2name" && \
17971  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17972	  then
17973  	  # We have reworked collect2
17974  	  :
17975	  else
17976  	  # We have old collect2
17977  	  hardcode_direct_GCJ=unsupported
17978  	  # It fails to find uninstalled libraries when the uninstalled
17979  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17980  	  # to unsupported forces relinking
17981  	  hardcode_minus_L_GCJ=yes
17982  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17983  	  hardcode_libdir_separator_GCJ=
17984	  fi
17985	  ;;
17986	esac
17987	shared_flag='-shared'
17988	if test "$aix_use_runtimelinking" = yes; then
17989	  shared_flag="$shared_flag "'${wl}-G'
17990	fi
17991      else
17992	# not using gcc
17993	if test "$host_cpu" = ia64; then
17994  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17995  	# chokes on -Wl,-G. The following line is correct:
17996	  shared_flag='-G'
17997	else
17998	  if test "$aix_use_runtimelinking" = yes; then
17999	    shared_flag='${wl}-G'
18000	  else
18001	    shared_flag='${wl}-bM:SRE'
18002	  fi
18003	fi
18004      fi
18005
18006      # It seems that -bexpall does not export symbols beginning with
18007      # underscore (_), so it is better to generate a list of symbols to export.
18008      always_export_symbols_GCJ=yes
18009      if test "$aix_use_runtimelinking" = yes; then
18010	# Warning - without using the other runtime loading flags (-brtl),
18011	# -berok will link without error, but may produce a broken library.
18012	allow_undefined_flag_GCJ='-berok'
18013       # Determine the default libpath from the value encoded in an empty executable.
18014       cat >conftest.$ac_ext <<_ACEOF
18015/* confdefs.h.  */
18016_ACEOF
18017cat confdefs.h >>conftest.$ac_ext
18018cat >>conftest.$ac_ext <<_ACEOF
18019/* end confdefs.h.  */
18020
18021int
18022main ()
18023{
18024
18025  ;
18026  return 0;
18027}
18028_ACEOF
18029rm -f conftest.$ac_objext conftest$ac_exeext
18030if { (ac_try="$ac_link"
18031case "(($ac_try" in
18032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033  *) ac_try_echo=$ac_try;;
18034esac
18035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036  (eval "$ac_link") 2>conftest.er1
18037  ac_status=$?
18038  grep -v '^ *+' conftest.er1 >conftest.err
18039  rm -f conftest.er1
18040  cat conftest.err >&5
18041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042  (exit $ac_status); } && {
18043	 test -z "$ac_c_werror_flag" ||
18044	 test ! -s conftest.err
18045       } && test -s conftest$ac_exeext &&
18046       $as_test_x conftest$ac_exeext; then
18047
18048lt_aix_libpath_sed='
18049    /Import File Strings/,/^$/ {
18050	/^0/ {
18051	    s/^0  *\(.*\)$/\1/
18052	    p
18053	}
18054    }'
18055aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18056# Check for a 64-bit object if we didn't find anything.
18057if test -z "$aix_libpath"; then
18058  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18059fi
18060else
18061  echo "$as_me: failed program was:" >&5
18062sed 's/^/| /' conftest.$ac_ext >&5
18063
18064
18065fi
18066
18067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18068      conftest$ac_exeext conftest.$ac_ext
18069if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18070
18071       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18072	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"
18073       else
18074	if test "$host_cpu" = ia64; then
18075	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18076	  allow_undefined_flag_GCJ="-z nodefs"
18077	  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"
18078	else
18079	 # Determine the default libpath from the value encoded in an empty executable.
18080	 cat >conftest.$ac_ext <<_ACEOF
18081/* confdefs.h.  */
18082_ACEOF
18083cat confdefs.h >>conftest.$ac_ext
18084cat >>conftest.$ac_ext <<_ACEOF
18085/* end confdefs.h.  */
18086
18087int
18088main ()
18089{
18090
18091  ;
18092  return 0;
18093}
18094_ACEOF
18095rm -f conftest.$ac_objext conftest$ac_exeext
18096if { (ac_try="$ac_link"
18097case "(($ac_try" in
18098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099  *) ac_try_echo=$ac_try;;
18100esac
18101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18102  (eval "$ac_link") 2>conftest.er1
18103  ac_status=$?
18104  grep -v '^ *+' conftest.er1 >conftest.err
18105  rm -f conftest.er1
18106  cat conftest.err >&5
18107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108  (exit $ac_status); } && {
18109	 test -z "$ac_c_werror_flag" ||
18110	 test ! -s conftest.err
18111       } && test -s conftest$ac_exeext &&
18112       $as_test_x conftest$ac_exeext; then
18113
18114lt_aix_libpath_sed='
18115    /Import File Strings/,/^$/ {
18116	/^0/ {
18117	    s/^0  *\(.*\)$/\1/
18118	    p
18119	}
18120    }'
18121aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18122# Check for a 64-bit object if we didn't find anything.
18123if test -z "$aix_libpath"; then
18124  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18125fi
18126else
18127  echo "$as_me: failed program was:" >&5
18128sed 's/^/| /' conftest.$ac_ext >&5
18129
18130
18131fi
18132
18133rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18134      conftest$ac_exeext conftest.$ac_ext
18135if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18136
18137	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18138	  # Warning - without using the other run time loading flags,
18139	  # -berok will link without error, but may produce a broken library.
18140	  no_undefined_flag_GCJ=' ${wl}-bernotok'
18141	  allow_undefined_flag_GCJ=' ${wl}-berok'
18142	  # Exported symbols can be pulled into shared objects from archives
18143	  whole_archive_flag_spec_GCJ='$convenience'
18144	  archive_cmds_need_lc_GCJ=yes
18145	  # This is similar to how AIX traditionally builds its shared libraries.
18146	  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'
18147	fi
18148      fi
18149      ;;
18150
18151    amigaos*)
18152      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)'
18153      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18154      hardcode_minus_L_GCJ=yes
18155      # see comment about different semantics on the GNU ld section
18156      ld_shlibs_GCJ=no
18157      ;;
18158
18159    bsdi[45]*)
18160      export_dynamic_flag_spec_GCJ=-rdynamic
18161      ;;
18162
18163    cygwin* | mingw* | pw32*)
18164      # When not using gcc, we currently assume that we are using
18165      # Microsoft Visual C++.
18166      # hardcode_libdir_flag_spec is actually meaningless, as there is
18167      # no search path for DLLs.
18168      hardcode_libdir_flag_spec_GCJ=' '
18169      allow_undefined_flag_GCJ=unsupported
18170      # Tell ltmain to make .lib files, not .a files.
18171      libext=lib
18172      # Tell ltmain to make .dll files, not .so files.
18173      shrext_cmds=".dll"
18174      # FIXME: Setting linknames here is a bad hack.
18175      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18176      # The linker will automatically build a .lib file if we build a DLL.
18177      old_archive_From_new_cmds_GCJ='true'
18178      # FIXME: Should let the user specify the lib program.
18179      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18180      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18181      enable_shared_with_static_runtimes_GCJ=yes
18182      ;;
18183
18184    darwin* | rhapsody*)
18185      case $host_os in
18186        rhapsody* | darwin1.[012])
18187         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18188         ;;
18189       *) # Darwin 1.3 on
18190         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18191           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18192         else
18193           case ${MACOSX_DEPLOYMENT_TARGET} in
18194             10.[012])
18195               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18196               ;;
18197             10.*)
18198               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18199               ;;
18200           esac
18201         fi
18202         ;;
18203      esac
18204      archive_cmds_need_lc_GCJ=no
18205      hardcode_direct_GCJ=no
18206      hardcode_automatic_GCJ=yes
18207      hardcode_shlibpath_var_GCJ=unsupported
18208      whole_archive_flag_spec_GCJ=''
18209      link_all_deplibs_GCJ=yes
18210    if test "$GCC" = yes ; then
18211    	output_verbose_link_cmd='echo'
18212        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}"
18213        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18214        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}"
18215        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}"
18216    else
18217      case $cc_basename in
18218        xlc*)
18219         output_verbose_link_cmd='echo'
18220         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18221         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18222          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18223         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}'
18224          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}'
18225          ;;
18226       *)
18227         ld_shlibs_GCJ=no
18228          ;;
18229      esac
18230    fi
18231      ;;
18232
18233    dgux*)
18234      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18235      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18236      hardcode_shlibpath_var_GCJ=no
18237      ;;
18238
18239    freebsd1*)
18240      ld_shlibs_GCJ=no
18241      ;;
18242
18243    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18244    # support.  Future versions do this automatically, but an explicit c++rt0.o
18245    # does not break anything, and helps significantly (at the cost of a little
18246    # extra space).
18247    freebsd2.2*)
18248      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18249      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18250      hardcode_direct_GCJ=yes
18251      hardcode_shlibpath_var_GCJ=no
18252      ;;
18253
18254    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18255    freebsd2*)
18256      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18257      hardcode_direct_GCJ=yes
18258      hardcode_minus_L_GCJ=yes
18259      hardcode_shlibpath_var_GCJ=no
18260      ;;
18261
18262    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18263    freebsd* | dragonfly*)
18264      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18265      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18266      hardcode_direct_GCJ=yes
18267      hardcode_shlibpath_var_GCJ=no
18268      ;;
18269
18270    hpux9*)
18271      if test "$GCC" = yes; then
18272	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'
18273      else
18274	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'
18275      fi
18276      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18277      hardcode_libdir_separator_GCJ=:
18278      hardcode_direct_GCJ=yes
18279
18280      # hardcode_minus_L: Not really in the search PATH,
18281      # but as the default location of the library.
18282      hardcode_minus_L_GCJ=yes
18283      export_dynamic_flag_spec_GCJ='${wl}-E'
18284      ;;
18285
18286    hpux10*)
18287      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18288	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18289      else
18290	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18291      fi
18292      if test "$with_gnu_ld" = no; then
18293	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18294	hardcode_libdir_separator_GCJ=:
18295
18296	hardcode_direct_GCJ=yes
18297	export_dynamic_flag_spec_GCJ='${wl}-E'
18298
18299	# hardcode_minus_L: Not really in the search PATH,
18300	# but as the default location of the library.
18301	hardcode_minus_L_GCJ=yes
18302      fi
18303      ;;
18304
18305    hpux11*)
18306      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18307	case $host_cpu in
18308	hppa*64*)
18309	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18310	  ;;
18311	ia64*)
18312	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18313	  ;;
18314	*)
18315	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18316	  ;;
18317	esac
18318      else
18319	case $host_cpu in
18320	hppa*64*)
18321	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18322	  ;;
18323	ia64*)
18324	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18325	  ;;
18326	*)
18327	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18328	  ;;
18329	esac
18330      fi
18331      if test "$with_gnu_ld" = no; then
18332	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18333	hardcode_libdir_separator_GCJ=:
18334
18335	case $host_cpu in
18336	hppa*64*|ia64*)
18337	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18338	  hardcode_direct_GCJ=no
18339	  hardcode_shlibpath_var_GCJ=no
18340	  ;;
18341	*)
18342	  hardcode_direct_GCJ=yes
18343	  export_dynamic_flag_spec_GCJ='${wl}-E'
18344
18345	  # hardcode_minus_L: Not really in the search PATH,
18346	  # but as the default location of the library.
18347	  hardcode_minus_L_GCJ=yes
18348	  ;;
18349	esac
18350      fi
18351      ;;
18352
18353    irix5* | irix6* | nonstopux*)
18354      if test "$GCC" = yes; then
18355	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'
18356      else
18357	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'
18358	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18359      fi
18360      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18361      hardcode_libdir_separator_GCJ=:
18362      link_all_deplibs_GCJ=yes
18363      ;;
18364
18365    netbsd* | netbsdelf*-gnu)
18366      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18367	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18368      else
18369	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18370      fi
18371      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18372      hardcode_direct_GCJ=yes
18373      hardcode_shlibpath_var_GCJ=no
18374      ;;
18375
18376    newsos6)
18377      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18378      hardcode_direct_GCJ=yes
18379      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18380      hardcode_libdir_separator_GCJ=:
18381      hardcode_shlibpath_var_GCJ=no
18382      ;;
18383
18384    openbsd*)
18385      if test -f /usr/libexec/ld.so; then
18386	hardcode_direct_GCJ=yes
18387	hardcode_shlibpath_var_GCJ=no
18388	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18389	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18390	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18391	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18392	  export_dynamic_flag_spec_GCJ='${wl}-E'
18393	else
18394	  case $host_os in
18395	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18396	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18397	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18398	     ;;
18399	   *)
18400	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18401	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18402	     ;;
18403	  esac
18404        fi
18405      else
18406	ld_shlibs_GCJ=no
18407      fi
18408      ;;
18409
18410    os2*)
18411      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18412      hardcode_minus_L_GCJ=yes
18413      allow_undefined_flag_GCJ=unsupported
18414      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'
18415      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18416      ;;
18417
18418    osf3*)
18419      if test "$GCC" = yes; then
18420	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18421	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'
18422      else
18423	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18424	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'
18425      fi
18426      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18427      hardcode_libdir_separator_GCJ=:
18428      ;;
18429
18430    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18431      if test "$GCC" = yes; then
18432	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18433	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'
18434	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18435      else
18436	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18437	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'
18438	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~
18439	$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'
18440
18441	# Both c and cxx compiler support -rpath directly
18442	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18443      fi
18444      hardcode_libdir_separator_GCJ=:
18445      ;;
18446
18447    solaris*)
18448      no_undefined_flag_GCJ=' -z text'
18449      if test "$GCC" = yes; then
18450	wlarc='${wl}'
18451	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18452	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18453	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18454      else
18455	wlarc=''
18456	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18457	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18458  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18459      fi
18460      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18461      hardcode_shlibpath_var_GCJ=no
18462      case $host_os in
18463      solaris2.[0-5] | solaris2.[0-5].*) ;;
18464      *)
18465	# The compiler driver will combine and reorder linker options,
18466	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18467	# but is careful enough not to reorder.
18468 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18469	if test "$GCC" = yes; then
18470	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18471	else
18472	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18473	fi
18474	;;
18475      esac
18476      link_all_deplibs_GCJ=yes
18477      ;;
18478
18479    sunos4*)
18480      if test "x$host_vendor" = xsequent; then
18481	# Use $CC to link under sequent, because it throws in some extra .o
18482	# files that make .init and .fini sections work.
18483	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18484      else
18485	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18486      fi
18487      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18488      hardcode_direct_GCJ=yes
18489      hardcode_minus_L_GCJ=yes
18490      hardcode_shlibpath_var_GCJ=no
18491      ;;
18492
18493    sysv4)
18494      case $host_vendor in
18495	sni)
18496	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18497	  hardcode_direct_GCJ=yes # is this really true???
18498	;;
18499	siemens)
18500	  ## LD is ld it makes a PLAMLIB
18501	  ## CC just makes a GrossModule.
18502	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18503	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18504	  hardcode_direct_GCJ=no
18505        ;;
18506	motorola)
18507	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18508	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18509	;;
18510      esac
18511      runpath_var='LD_RUN_PATH'
18512      hardcode_shlibpath_var_GCJ=no
18513      ;;
18514
18515    sysv4.3*)
18516      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18517      hardcode_shlibpath_var_GCJ=no
18518      export_dynamic_flag_spec_GCJ='-Bexport'
18519      ;;
18520
18521    sysv4*MP*)
18522      if test -d /usr/nec; then
18523	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18524	hardcode_shlibpath_var_GCJ=no
18525	runpath_var=LD_RUN_PATH
18526	hardcode_runpath_var=yes
18527	ld_shlibs_GCJ=yes
18528      fi
18529      ;;
18530
18531    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18532      no_undefined_flag_GCJ='${wl}-z,text'
18533      archive_cmds_need_lc_GCJ=no
18534      hardcode_shlibpath_var_GCJ=no
18535      runpath_var='LD_RUN_PATH'
18536
18537      if test "$GCC" = yes; then
18538	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18539	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18540      else
18541	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18542	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18543      fi
18544      ;;
18545
18546    sysv5* | sco3.2v5* | sco5v6*)
18547      # Note: We can NOT use -z defs as we might desire, because we do not
18548      # link with -lc, and that would cause any symbols used from libc to
18549      # always be unresolved, which means just about no library would
18550      # ever link correctly.  If we're not using GNU ld we use -z text
18551      # though, which does catch some bad symbols but isn't as heavy-handed
18552      # as -z defs.
18553      no_undefined_flag_GCJ='${wl}-z,text'
18554      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18555      archive_cmds_need_lc_GCJ=no
18556      hardcode_shlibpath_var_GCJ=no
18557      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18558      hardcode_libdir_separator_GCJ=':'
18559      link_all_deplibs_GCJ=yes
18560      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18561      runpath_var='LD_RUN_PATH'
18562
18563      if test "$GCC" = yes; then
18564	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18565	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18566      else
18567	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18568	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18569      fi
18570      ;;
18571
18572    uts4*)
18573      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18574      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18575      hardcode_shlibpath_var_GCJ=no
18576      ;;
18577
18578    *)
18579      ld_shlibs_GCJ=no
18580      ;;
18581    esac
18582  fi
18583
18584{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18585echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18586test "$ld_shlibs_GCJ" = no && can_build_shared=no
18587
18588#
18589# Do we need to explicitly link libc?
18590#
18591case "x$archive_cmds_need_lc_GCJ" in
18592x|xyes)
18593  # Assume -lc should be added
18594  archive_cmds_need_lc_GCJ=yes
18595
18596  if test "$enable_shared" = yes && test "$GCC" = yes; then
18597    case $archive_cmds_GCJ in
18598    *'~'*)
18599      # FIXME: we may have to deal with multi-command sequences.
18600      ;;
18601    '$CC '*)
18602      # Test whether the compiler implicitly links with -lc since on some
18603      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18604      # to ld, don't add -lc before -lgcc.
18605      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18606echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18607      $rm conftest*
18608      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18609
18610      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18611  (eval $ac_compile) 2>&5
18612  ac_status=$?
18613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614  (exit $ac_status); } 2>conftest.err; then
18615        soname=conftest
18616        lib=conftest
18617        libobjs=conftest.$ac_objext
18618        deplibs=
18619        wl=$lt_prog_compiler_wl_GCJ
18620	pic_flag=$lt_prog_compiler_pic_GCJ
18621        compiler_flags=-v
18622        linker_flags=-v
18623        verstring=
18624        output_objdir=.
18625        libname=conftest
18626        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18627        allow_undefined_flag_GCJ=
18628        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18629  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18630  ac_status=$?
18631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632  (exit $ac_status); }
18633        then
18634	  archive_cmds_need_lc_GCJ=no
18635        else
18636	  archive_cmds_need_lc_GCJ=yes
18637        fi
18638        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18639      else
18640        cat conftest.err 1>&5
18641      fi
18642      $rm conftest*
18643      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18644echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18645      ;;
18646    esac
18647  fi
18648  ;;
18649esac
18650
18651{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18652echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18653library_names_spec=
18654libname_spec='lib$name'
18655soname_spec=
18656shrext_cmds=".so"
18657postinstall_cmds=
18658postuninstall_cmds=
18659finish_cmds=
18660finish_eval=
18661shlibpath_var=
18662shlibpath_overrides_runpath=unknown
18663version_type=none
18664dynamic_linker="$host_os ld.so"
18665sys_lib_dlsearch_path_spec="/lib /usr/lib"
18666
18667need_lib_prefix=unknown
18668hardcode_into_libs=no
18669
18670# when you set need_version to no, make sure it does not cause -set_version
18671# flags to be left without arguments
18672need_version=unknown
18673
18674case $host_os in
18675aix3*)
18676  version_type=linux
18677  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18678  shlibpath_var=LIBPATH
18679
18680  # AIX 3 has no versioning support, so we append a major version to the name.
18681  soname_spec='${libname}${release}${shared_ext}$major'
18682  ;;
18683
18684aix[4-9]*)
18685  version_type=linux
18686  need_lib_prefix=no
18687  need_version=no
18688  hardcode_into_libs=yes
18689  if test "$host_cpu" = ia64; then
18690    # AIX 5 supports IA64
18691    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18692    shlibpath_var=LD_LIBRARY_PATH
18693  else
18694    # With GCC up to 2.95.x, collect2 would create an import file
18695    # for dependence libraries.  The import file would start with
18696    # the line `#! .'.  This would cause the generated library to
18697    # depend on `.', always an invalid library.  This was fixed in
18698    # development snapshots of GCC prior to 3.0.
18699    case $host_os in
18700      aix4 | aix4.[01] | aix4.[01].*)
18701      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18702	   echo ' yes '
18703	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18704	:
18705      else
18706	can_build_shared=no
18707      fi
18708      ;;
18709    esac
18710    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18711    # soname into executable. Probably we can add versioning support to
18712    # collect2, so additional links can be useful in future.
18713    if test "$aix_use_runtimelinking" = yes; then
18714      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18715      # instead of lib<name>.a to let people know that these are not
18716      # typical AIX shared libraries.
18717      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18718    else
18719      # We preserve .a as extension for shared libraries through AIX4.2
18720      # and later when we are not doing run time linking.
18721      library_names_spec='${libname}${release}.a $libname.a'
18722      soname_spec='${libname}${release}${shared_ext}$major'
18723    fi
18724    shlibpath_var=LIBPATH
18725  fi
18726  ;;
18727
18728amigaos*)
18729  library_names_spec='$libname.ixlibrary $libname.a'
18730  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18731  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'
18732  ;;
18733
18734beos*)
18735  library_names_spec='${libname}${shared_ext}'
18736  dynamic_linker="$host_os ld.so"
18737  shlibpath_var=LIBRARY_PATH
18738  ;;
18739
18740bsdi[45]*)
18741  version_type=linux
18742  need_version=no
18743  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18744  soname_spec='${libname}${release}${shared_ext}$major'
18745  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18746  shlibpath_var=LD_LIBRARY_PATH
18747  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18748  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18749  # the default ld.so.conf also contains /usr/contrib/lib and
18750  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18751  # libtool to hard-code these into programs
18752  ;;
18753
18754cygwin* | mingw* | pw32*)
18755  version_type=windows
18756  shrext_cmds=".dll"
18757  need_version=no
18758  need_lib_prefix=no
18759
18760  case $GCC,$host_os in
18761  yes,cygwin* | yes,mingw* | yes,pw32*)
18762    library_names_spec='$libname.dll.a'
18763    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18764    postinstall_cmds='base_file=`basename \${file}`~
18765      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18766      dldir=$destdir/`dirname \$dlpath`~
18767      test -d \$dldir || mkdir -p \$dldir~
18768      $install_prog $dir/$dlname \$dldir/$dlname~
18769      chmod a+x \$dldir/$dlname'
18770    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18771      dlpath=$dir/\$dldll~
18772       $rm \$dlpath'
18773    shlibpath_overrides_runpath=yes
18774
18775    case $host_os in
18776    cygwin*)
18777      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18778      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18779      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18780      ;;
18781    mingw*)
18782      # MinGW DLLs use traditional 'lib' prefix
18783      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18784      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18785      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18786        # It is most probably a Windows format PATH printed by
18787        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18788        # path with ; separators, and with drive letters. We can handle the
18789        # drive letters (cygwin fileutils understands them), so leave them,
18790        # especially as we might pass files found there to a mingw objdump,
18791        # which wouldn't understand a cygwinified path. Ahh.
18792        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18793      else
18794        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18795      fi
18796      ;;
18797    pw32*)
18798      # pw32 DLLs use 'pw' prefix rather than 'lib'
18799      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18800      ;;
18801    esac
18802    ;;
18803
18804  *)
18805    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18806    ;;
18807  esac
18808  dynamic_linker='Win32 ld.exe'
18809  # FIXME: first we should search . and the directory the executable is in
18810  shlibpath_var=PATH
18811  ;;
18812
18813darwin* | rhapsody*)
18814  dynamic_linker="$host_os dyld"
18815  version_type=darwin
18816  need_lib_prefix=no
18817  need_version=no
18818  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18819  soname_spec='${libname}${release}${major}$shared_ext'
18820  shlibpath_overrides_runpath=yes
18821  shlibpath_var=DYLD_LIBRARY_PATH
18822  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18823
18824  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18825  ;;
18826
18827dgux*)
18828  version_type=linux
18829  need_lib_prefix=no
18830  need_version=no
18831  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18832  soname_spec='${libname}${release}${shared_ext}$major'
18833  shlibpath_var=LD_LIBRARY_PATH
18834  ;;
18835
18836freebsd1*)
18837  dynamic_linker=no
18838  ;;
18839
18840freebsd* | dragonfly*)
18841  # DragonFly does not have aout.  When/if they implement a new
18842  # versioning mechanism, adjust this.
18843  if test -x /usr/bin/objformat; then
18844    objformat=`/usr/bin/objformat`
18845  else
18846    case $host_os in
18847    freebsd[123]*) objformat=aout ;;
18848    *) objformat=elf ;;
18849    esac
18850  fi
18851  version_type=freebsd-$objformat
18852  case $version_type in
18853    freebsd-elf*)
18854      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18855      need_version=no
18856      need_lib_prefix=no
18857      ;;
18858    freebsd-*)
18859      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18860      need_version=yes
18861      ;;
18862  esac
18863  shlibpath_var=LD_LIBRARY_PATH
18864  case $host_os in
18865  freebsd2*)
18866    shlibpath_overrides_runpath=yes
18867    ;;
18868  freebsd3.[01]* | freebsdelf3.[01]*)
18869    shlibpath_overrides_runpath=yes
18870    hardcode_into_libs=yes
18871    ;;
18872  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18873  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18874    shlibpath_overrides_runpath=no
18875    hardcode_into_libs=yes
18876    ;;
18877  *) # from 4.6 on, and DragonFly
18878    shlibpath_overrides_runpath=yes
18879    hardcode_into_libs=yes
18880    ;;
18881  esac
18882  ;;
18883
18884gnu*)
18885  version_type=linux
18886  need_lib_prefix=no
18887  need_version=no
18888  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18889  soname_spec='${libname}${release}${shared_ext}$major'
18890  shlibpath_var=LD_LIBRARY_PATH
18891  hardcode_into_libs=yes
18892  ;;
18893
18894hpux9* | hpux10* | hpux11*)
18895  # Give a soname corresponding to the major version so that dld.sl refuses to
18896  # link against other versions.
18897  version_type=sunos
18898  need_lib_prefix=no
18899  need_version=no
18900  case $host_cpu in
18901  ia64*)
18902    shrext_cmds='.so'
18903    hardcode_into_libs=yes
18904    dynamic_linker="$host_os dld.so"
18905    shlibpath_var=LD_LIBRARY_PATH
18906    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18907    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18908    soname_spec='${libname}${release}${shared_ext}$major'
18909    if test "X$HPUX_IA64_MODE" = X32; then
18910      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18911    else
18912      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18913    fi
18914    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18915    ;;
18916   hppa*64*)
18917     shrext_cmds='.sl'
18918     hardcode_into_libs=yes
18919     dynamic_linker="$host_os dld.sl"
18920     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18921     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18922     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18923     soname_spec='${libname}${release}${shared_ext}$major'
18924     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18925     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18926     ;;
18927   *)
18928    shrext_cmds='.sl'
18929    dynamic_linker="$host_os dld.sl"
18930    shlibpath_var=SHLIB_PATH
18931    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18932    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18933    soname_spec='${libname}${release}${shared_ext}$major'
18934    ;;
18935  esac
18936  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18937  postinstall_cmds='chmod 555 $lib'
18938  ;;
18939
18940interix[3-9]*)
18941  version_type=linux
18942  need_lib_prefix=no
18943  need_version=no
18944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18945  soname_spec='${libname}${release}${shared_ext}$major'
18946  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18947  shlibpath_var=LD_LIBRARY_PATH
18948  shlibpath_overrides_runpath=no
18949  hardcode_into_libs=yes
18950  ;;
18951
18952irix5* | irix6* | nonstopux*)
18953  case $host_os in
18954    nonstopux*) version_type=nonstopux ;;
18955    *)
18956	if test "$lt_cv_prog_gnu_ld" = yes; then
18957		version_type=linux
18958	else
18959		version_type=irix
18960	fi ;;
18961  esac
18962  need_lib_prefix=no
18963  need_version=no
18964  soname_spec='${libname}${release}${shared_ext}$major'
18965  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18966  case $host_os in
18967  irix5* | nonstopux*)
18968    libsuff= shlibsuff=
18969    ;;
18970  *)
18971    case $LD in # libtool.m4 will add one of these switches to LD
18972    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18973      libsuff= shlibsuff= libmagic=32-bit;;
18974    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18975      libsuff=32 shlibsuff=N32 libmagic=N32;;
18976    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18977      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18978    *) libsuff= shlibsuff= libmagic=never-match;;
18979    esac
18980    ;;
18981  esac
18982  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18983  shlibpath_overrides_runpath=no
18984  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18985  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18986  hardcode_into_libs=yes
18987  ;;
18988
18989# No shared lib support for Linux oldld, aout, or coff.
18990linux*oldld* | linux*aout* | linux*coff*)
18991  dynamic_linker=no
18992  ;;
18993
18994# This must be Linux ELF.
18995linux* | k*bsd*-gnu)
18996  version_type=linux
18997  need_lib_prefix=no
18998  need_version=no
18999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19000  soname_spec='${libname}${release}${shared_ext}$major'
19001  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19002  shlibpath_var=LD_LIBRARY_PATH
19003  shlibpath_overrides_runpath=no
19004  # This implies no fast_install, which is unacceptable.
19005  # Some rework will be needed to allow for fast_install
19006  # before this can be enabled.
19007  hardcode_into_libs=yes
19008
19009  # Append ld.so.conf contents to the search path
19010  if test -f /etc/ld.so.conf; then
19011    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' ' '`
19012    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19013  fi
19014
19015  # We used to test for /lib/ld.so.1 and disable shared libraries on
19016  # powerpc, because MkLinux only supported shared libraries with the
19017  # GNU dynamic linker.  Since this was broken with cross compilers,
19018  # most powerpc-linux boxes support dynamic linking these days and
19019  # people can always --disable-shared, the test was removed, and we
19020  # assume the GNU/Linux dynamic linker is in use.
19021  dynamic_linker='GNU/Linux ld.so'
19022  ;;
19023
19024netbsdelf*-gnu)
19025  version_type=linux
19026  need_lib_prefix=no
19027  need_version=no
19028  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19029  soname_spec='${libname}${release}${shared_ext}$major'
19030  shlibpath_var=LD_LIBRARY_PATH
19031  shlibpath_overrides_runpath=no
19032  hardcode_into_libs=yes
19033  dynamic_linker='NetBSD ld.elf_so'
19034  ;;
19035
19036netbsd*)
19037  version_type=sunos
19038  need_lib_prefix=no
19039  need_version=no
19040  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19041    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19042    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19043    dynamic_linker='NetBSD (a.out) ld.so'
19044  else
19045    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19046    soname_spec='${libname}${release}${shared_ext}$major'
19047    dynamic_linker='NetBSD ld.elf_so'
19048  fi
19049  shlibpath_var=LD_LIBRARY_PATH
19050  shlibpath_overrides_runpath=yes
19051  hardcode_into_libs=yes
19052  ;;
19053
19054newsos6)
19055  version_type=linux
19056  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19057  shlibpath_var=LD_LIBRARY_PATH
19058  shlibpath_overrides_runpath=yes
19059  ;;
19060
19061nto-qnx*)
19062  version_type=linux
19063  need_lib_prefix=no
19064  need_version=no
19065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19066  soname_spec='${libname}${release}${shared_ext}$major'
19067  shlibpath_var=LD_LIBRARY_PATH
19068  shlibpath_overrides_runpath=yes
19069  ;;
19070
19071openbsd*)
19072  version_type=sunos
19073  sys_lib_dlsearch_path_spec="/usr/lib"
19074  need_lib_prefix=no
19075  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19076  case $host_os in
19077    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19078    *)                         need_version=no  ;;
19079  esac
19080  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19081  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19082  shlibpath_var=LD_LIBRARY_PATH
19083  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19084    case $host_os in
19085      openbsd2.[89] | openbsd2.[89].*)
19086	shlibpath_overrides_runpath=no
19087	;;
19088      *)
19089	shlibpath_overrides_runpath=yes
19090	;;
19091      esac
19092  else
19093    shlibpath_overrides_runpath=yes
19094  fi
19095  ;;
19096
19097os2*)
19098  libname_spec='$name'
19099  shrext_cmds=".dll"
19100  need_lib_prefix=no
19101  library_names_spec='$libname${shared_ext} $libname.a'
19102  dynamic_linker='OS/2 ld.exe'
19103  shlibpath_var=LIBPATH
19104  ;;
19105
19106osf3* | osf4* | osf5*)
19107  version_type=osf
19108  need_lib_prefix=no
19109  need_version=no
19110  soname_spec='${libname}${release}${shared_ext}$major'
19111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19112  shlibpath_var=LD_LIBRARY_PATH
19113  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19114  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19115  ;;
19116
19117rdos*)
19118  dynamic_linker=no
19119  ;;
19120
19121solaris*)
19122  version_type=linux
19123  need_lib_prefix=no
19124  need_version=no
19125  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19126  soname_spec='${libname}${release}${shared_ext}$major'
19127  shlibpath_var=LD_LIBRARY_PATH
19128  shlibpath_overrides_runpath=yes
19129  hardcode_into_libs=yes
19130  # ldd complains unless libraries are executable
19131  postinstall_cmds='chmod +x $lib'
19132  ;;
19133
19134sunos4*)
19135  version_type=sunos
19136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19137  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19138  shlibpath_var=LD_LIBRARY_PATH
19139  shlibpath_overrides_runpath=yes
19140  if test "$with_gnu_ld" = yes; then
19141    need_lib_prefix=no
19142  fi
19143  need_version=yes
19144  ;;
19145
19146sysv4 | sysv4.3*)
19147  version_type=linux
19148  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19149  soname_spec='${libname}${release}${shared_ext}$major'
19150  shlibpath_var=LD_LIBRARY_PATH
19151  case $host_vendor in
19152    sni)
19153      shlibpath_overrides_runpath=no
19154      need_lib_prefix=no
19155      export_dynamic_flag_spec='${wl}-Blargedynsym'
19156      runpath_var=LD_RUN_PATH
19157      ;;
19158    siemens)
19159      need_lib_prefix=no
19160      ;;
19161    motorola)
19162      need_lib_prefix=no
19163      need_version=no
19164      shlibpath_overrides_runpath=no
19165      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19166      ;;
19167  esac
19168  ;;
19169
19170sysv4*MP*)
19171  if test -d /usr/nec ;then
19172    version_type=linux
19173    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19174    soname_spec='$libname${shared_ext}.$major'
19175    shlibpath_var=LD_LIBRARY_PATH
19176  fi
19177  ;;
19178
19179sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19180  version_type=freebsd-elf
19181  need_lib_prefix=no
19182  need_version=no
19183  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19184  soname_spec='${libname}${release}${shared_ext}$major'
19185  shlibpath_var=LD_LIBRARY_PATH
19186  hardcode_into_libs=yes
19187  if test "$with_gnu_ld" = yes; then
19188    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19189    shlibpath_overrides_runpath=no
19190  else
19191    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19192    shlibpath_overrides_runpath=yes
19193    case $host_os in
19194      sco3.2v5*)
19195        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19196	;;
19197    esac
19198  fi
19199  sys_lib_dlsearch_path_spec='/usr/lib'
19200  ;;
19201
19202uts4*)
19203  version_type=linux
19204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19205  soname_spec='${libname}${release}${shared_ext}$major'
19206  shlibpath_var=LD_LIBRARY_PATH
19207  ;;
19208
19209*)
19210  dynamic_linker=no
19211  ;;
19212esac
19213{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19214echo "${ECHO_T}$dynamic_linker" >&6; }
19215test "$dynamic_linker" = no && can_build_shared=no
19216
19217if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19218  echo $ECHO_N "(cached) $ECHO_C" >&6
19219else
19220  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19221fi
19222
19223sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19224if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19225  echo $ECHO_N "(cached) $ECHO_C" >&6
19226else
19227  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19228fi
19229
19230sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19231
19232variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19233if test "$GCC" = yes; then
19234  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19235fi
19236
19237{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19238echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19239hardcode_action_GCJ=
19240if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19241   test -n "$runpath_var_GCJ" || \
19242   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19243
19244  # We can hardcode non-existant directories.
19245  if test "$hardcode_direct_GCJ" != no &&
19246     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19247     # have to relink, otherwise we might link with an installed library
19248     # when we should be linking with a yet-to-be-installed one
19249     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19250     test "$hardcode_minus_L_GCJ" != no; then
19251    # Linking always hardcodes the temporary library directory.
19252    hardcode_action_GCJ=relink
19253  else
19254    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19255    hardcode_action_GCJ=immediate
19256  fi
19257else
19258  # We cannot hardcode anything, or else we can only hardcode existing
19259  # directories.
19260  hardcode_action_GCJ=unsupported
19261fi
19262{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19263echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19264
19265if test "$hardcode_action_GCJ" = relink; then
19266  # Fast installation is not supported
19267  enable_fast_install=no
19268elif test "$shlibpath_overrides_runpath" = yes ||
19269     test "$enable_shared" = no; then
19270  # Fast installation is not necessary
19271  enable_fast_install=needless
19272fi
19273
19274
19275# The else clause should only fire when bootstrapping the
19276# libtool distribution, otherwise you forgot to ship ltmain.sh
19277# with your package, and you will get complaints that there are
19278# no rules to generate ltmain.sh.
19279if test -f "$ltmain"; then
19280  # See if we are running on zsh, and set the options which allow our commands through
19281  # without removal of \ escapes.
19282  if test -n "${ZSH_VERSION+set}" ; then
19283    setopt NO_GLOB_SUBST
19284  fi
19285  # Now quote all the things that may contain metacharacters while being
19286  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19287  # variables and quote the copies for generation of the libtool script.
19288  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19289    SED SHELL STRIP \
19290    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19291    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19292    deplibs_check_method reload_flag reload_cmds need_locks \
19293    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19294    lt_cv_sys_global_symbol_to_c_name_address \
19295    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19296    old_postinstall_cmds old_postuninstall_cmds \
19297    compiler_GCJ \
19298    CC_GCJ \
19299    LD_GCJ \
19300    lt_prog_compiler_wl_GCJ \
19301    lt_prog_compiler_pic_GCJ \
19302    lt_prog_compiler_static_GCJ \
19303    lt_prog_compiler_no_builtin_flag_GCJ \
19304    export_dynamic_flag_spec_GCJ \
19305    thread_safe_flag_spec_GCJ \
19306    whole_archive_flag_spec_GCJ \
19307    enable_shared_with_static_runtimes_GCJ \
19308    old_archive_cmds_GCJ \
19309    old_archive_from_new_cmds_GCJ \
19310    predep_objects_GCJ \
19311    postdep_objects_GCJ \
19312    predeps_GCJ \
19313    postdeps_GCJ \
19314    compiler_lib_search_path_GCJ \
19315    compiler_lib_search_dirs_GCJ \
19316    archive_cmds_GCJ \
19317    archive_expsym_cmds_GCJ \
19318    postinstall_cmds_GCJ \
19319    postuninstall_cmds_GCJ \
19320    old_archive_from_expsyms_cmds_GCJ \
19321    allow_undefined_flag_GCJ \
19322    no_undefined_flag_GCJ \
19323    export_symbols_cmds_GCJ \
19324    hardcode_libdir_flag_spec_GCJ \
19325    hardcode_libdir_flag_spec_ld_GCJ \
19326    hardcode_libdir_separator_GCJ \
19327    hardcode_automatic_GCJ \
19328    module_cmds_GCJ \
19329    module_expsym_cmds_GCJ \
19330    lt_cv_prog_compiler_c_o_GCJ \
19331    fix_srcfile_path_GCJ \
19332    exclude_expsyms_GCJ \
19333    include_expsyms_GCJ; do
19334
19335    case $var in
19336    old_archive_cmds_GCJ | \
19337    old_archive_from_new_cmds_GCJ | \
19338    archive_cmds_GCJ | \
19339    archive_expsym_cmds_GCJ | \
19340    module_cmds_GCJ | \
19341    module_expsym_cmds_GCJ | \
19342    old_archive_from_expsyms_cmds_GCJ | \
19343    export_symbols_cmds_GCJ | \
19344    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19345    postinstall_cmds | postuninstall_cmds | \
19346    old_postinstall_cmds | old_postuninstall_cmds | \
19347    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19348      # Double-quote double-evaled strings.
19349      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19350      ;;
19351    *)
19352      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19353      ;;
19354    esac
19355  done
19356
19357  case $lt_echo in
19358  *'\$0 --fallback-echo"')
19359    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19360    ;;
19361  esac
19362
19363cfgfile="$ofile"
19364
19365  cat <<__EOF__ >> "$cfgfile"
19366# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19367
19368# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19369
19370# Shell to use when invoking shell scripts.
19371SHELL=$lt_SHELL
19372
19373# Whether or not to build shared libraries.
19374build_libtool_libs=$enable_shared
19375
19376# Whether or not to build static libraries.
19377build_old_libs=$enable_static
19378
19379# Whether or not to add -lc for building shared libraries.
19380build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19381
19382# Whether or not to disallow shared libs when runtime libs are static
19383allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19384
19385# Whether or not to optimize for fast installation.
19386fast_install=$enable_fast_install
19387
19388# The host system.
19389host_alias=$host_alias
19390host=$host
19391host_os=$host_os
19392
19393# The build system.
19394build_alias=$build_alias
19395build=$build
19396build_os=$build_os
19397
19398# An echo program that does not interpret backslashes.
19399echo=$lt_echo
19400
19401# The archiver.
19402AR=$lt_AR
19403AR_FLAGS=$lt_AR_FLAGS
19404
19405# A C compiler.
19406LTCC=$lt_LTCC
19407
19408# LTCC compiler flags.
19409LTCFLAGS=$lt_LTCFLAGS
19410
19411# A language-specific compiler.
19412CC=$lt_compiler_GCJ
19413
19414# Is the compiler the GNU C compiler?
19415with_gcc=$GCC_GCJ
19416
19417# An ERE matcher.
19418EGREP=$lt_EGREP
19419
19420# The linker used to build libraries.
19421LD=$lt_LD_GCJ
19422
19423# Whether we need hard or soft links.
19424LN_S=$lt_LN_S
19425
19426# A BSD-compatible nm program.
19427NM=$lt_NM
19428
19429# A symbol stripping program
19430STRIP=$lt_STRIP
19431
19432# Used to examine libraries when file_magic_cmd begins "file"
19433MAGIC_CMD=$MAGIC_CMD
19434
19435# Used on cygwin: DLL creation program.
19436DLLTOOL="$DLLTOOL"
19437
19438# Used on cygwin: object dumper.
19439OBJDUMP="$OBJDUMP"
19440
19441# Used on cygwin: assembler.
19442AS="$AS"
19443
19444# The name of the directory that contains temporary libtool files.
19445objdir=$objdir
19446
19447# How to create reloadable object files.
19448reload_flag=$lt_reload_flag
19449reload_cmds=$lt_reload_cmds
19450
19451# How to pass a linker flag through the compiler.
19452wl=$lt_lt_prog_compiler_wl_GCJ
19453
19454# Object file suffix (normally "o").
19455objext="$ac_objext"
19456
19457# Old archive suffix (normally "a").
19458libext="$libext"
19459
19460# Shared library suffix (normally ".so").
19461shrext_cmds='$shrext_cmds'
19462
19463# Executable file suffix (normally "").
19464exeext="$exeext"
19465
19466# Additional compiler flags for building library objects.
19467pic_flag=$lt_lt_prog_compiler_pic_GCJ
19468pic_mode=$pic_mode
19469
19470# What is the maximum length of a command?
19471max_cmd_len=$lt_cv_sys_max_cmd_len
19472
19473# Does compiler simultaneously support -c and -o options?
19474compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19475
19476# Must we lock files when doing compilation?
19477need_locks=$lt_need_locks
19478
19479# Do we need the lib prefix for modules?
19480need_lib_prefix=$need_lib_prefix
19481
19482# Do we need a version for libraries?
19483need_version=$need_version
19484
19485# Whether dlopen is supported.
19486dlopen_support=$enable_dlopen
19487
19488# Whether dlopen of programs is supported.
19489dlopen_self=$enable_dlopen_self
19490
19491# Whether dlopen of statically linked programs is supported.
19492dlopen_self_static=$enable_dlopen_self_static
19493
19494# Compiler flag to prevent dynamic linking.
19495link_static_flag=$lt_lt_prog_compiler_static_GCJ
19496
19497# Compiler flag to turn off builtin functions.
19498no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19499
19500# Compiler flag to allow reflexive dlopens.
19501export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19502
19503# Compiler flag to generate shared objects directly from archives.
19504whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19505
19506# Compiler flag to generate thread-safe objects.
19507thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19508
19509# Library versioning type.
19510version_type=$version_type
19511
19512# Format of library name prefix.
19513libname_spec=$lt_libname_spec
19514
19515# List of archive names.  First name is the real one, the rest are links.
19516# The last name is the one that the linker finds with -lNAME.
19517library_names_spec=$lt_library_names_spec
19518
19519# The coded name of the library, if different from the real name.
19520soname_spec=$lt_soname_spec
19521
19522# Commands used to build and install an old-style archive.
19523RANLIB=$lt_RANLIB
19524old_archive_cmds=$lt_old_archive_cmds_GCJ
19525old_postinstall_cmds=$lt_old_postinstall_cmds
19526old_postuninstall_cmds=$lt_old_postuninstall_cmds
19527
19528# Create an old-style archive from a shared archive.
19529old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19530
19531# Create a temporary old-style archive to link instead of a shared archive.
19532old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19533
19534# Commands used to build and install a shared archive.
19535archive_cmds=$lt_archive_cmds_GCJ
19536archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19537postinstall_cmds=$lt_postinstall_cmds
19538postuninstall_cmds=$lt_postuninstall_cmds
19539
19540# Commands used to build a loadable module (assumed same as above if empty)
19541module_cmds=$lt_module_cmds_GCJ
19542module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19543
19544# Commands to strip libraries.
19545old_striplib=$lt_old_striplib
19546striplib=$lt_striplib
19547
19548# Dependencies to place before the objects being linked to create a
19549# shared library.
19550predep_objects=$lt_predep_objects_GCJ
19551
19552# Dependencies to place after the objects being linked to create a
19553# shared library.
19554postdep_objects=$lt_postdep_objects_GCJ
19555
19556# Dependencies to place before the objects being linked to create a
19557# shared library.
19558predeps=$lt_predeps_GCJ
19559
19560# Dependencies to place after the objects being linked to create a
19561# shared library.
19562postdeps=$lt_postdeps_GCJ
19563
19564# The directories searched by this compiler when creating a shared
19565# library
19566compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19567
19568# The library search path used internally by the compiler when linking
19569# a shared library.
19570compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19571
19572# Method to check whether dependent libraries are shared objects.
19573deplibs_check_method=$lt_deplibs_check_method
19574
19575# Command to use when deplibs_check_method == file_magic.
19576file_magic_cmd=$lt_file_magic_cmd
19577
19578# Flag that allows shared libraries with undefined symbols to be built.
19579allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19580
19581# Flag that forces no undefined symbols.
19582no_undefined_flag=$lt_no_undefined_flag_GCJ
19583
19584# Commands used to finish a libtool library installation in a directory.
19585finish_cmds=$lt_finish_cmds
19586
19587# Same as above, but a single script fragment to be evaled but not shown.
19588finish_eval=$lt_finish_eval
19589
19590# Take the output of nm and produce a listing of raw symbols and C names.
19591global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19592
19593# Transform the output of nm in a proper C declaration
19594global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19595
19596# Transform the output of nm in a C name address pair
19597global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19598
19599# This is the shared library runtime path variable.
19600runpath_var=$runpath_var
19601
19602# This is the shared library path variable.
19603shlibpath_var=$shlibpath_var
19604
19605# Is shlibpath searched before the hard-coded library search path?
19606shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19607
19608# How to hardcode a shared library path into an executable.
19609hardcode_action=$hardcode_action_GCJ
19610
19611# Whether we should hardcode library paths into libraries.
19612hardcode_into_libs=$hardcode_into_libs
19613
19614# Flag to hardcode \$libdir into a binary during linking.
19615# This must work even if \$libdir does not exist.
19616hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19617
19618# If ld is used when linking, flag to hardcode \$libdir into
19619# a binary during linking. This must work even if \$libdir does
19620# not exist.
19621hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19622
19623# Whether we need a single -rpath flag with a separated argument.
19624hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19625
19626# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19627# resulting binary.
19628hardcode_direct=$hardcode_direct_GCJ
19629
19630# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19631# resulting binary.
19632hardcode_minus_L=$hardcode_minus_L_GCJ
19633
19634# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19635# the resulting binary.
19636hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19637
19638# Set to yes if building a shared library automatically hardcodes DIR into the library
19639# and all subsequent libraries and executables linked against it.
19640hardcode_automatic=$hardcode_automatic_GCJ
19641
19642# Variables whose values should be saved in libtool wrapper scripts and
19643# restored at relink time.
19644variables_saved_for_relink="$variables_saved_for_relink"
19645
19646# Whether libtool must link a program against all its dependency libraries.
19647link_all_deplibs=$link_all_deplibs_GCJ
19648
19649# Compile-time system search path for libraries
19650sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19651
19652# Run-time system search path for libraries
19653sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19654
19655# Fix the shell variable \$srcfile for the compiler.
19656fix_srcfile_path=$lt_fix_srcfile_path
19657
19658# Set to yes if exported symbols are required.
19659always_export_symbols=$always_export_symbols_GCJ
19660
19661# The commands to list exported symbols.
19662export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19663
19664# The commands to extract the exported symbol list from a shared archive.
19665extract_expsyms_cmds=$lt_extract_expsyms_cmds
19666
19667# Symbols that should not be listed in the preloaded symbols.
19668exclude_expsyms=$lt_exclude_expsyms_GCJ
19669
19670# Symbols that must always be exported.
19671include_expsyms=$lt_include_expsyms_GCJ
19672
19673# ### END LIBTOOL TAG CONFIG: $tagname
19674
19675__EOF__
19676
19677
19678else
19679  # If there is no Makefile yet, we rely on a make rule to execute
19680  # `config.status --recheck' to rerun these tests and create the
19681  # libtool script then.
19682  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19683  if test -f "$ltmain_in"; then
19684    test -f Makefile && make "$ltmain"
19685  fi
19686fi
19687
19688
19689ac_ext=c
19690ac_cpp='$CPP $CPPFLAGS'
19691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19693ac_compiler_gnu=$ac_cv_c_compiler_gnu
19694
19695CC="$lt_save_CC"
19696
19697	else
19698	  tagname=""
19699	fi
19700	;;
19701
19702      RC)
19703
19704
19705# Source file extension for RC test sources.
19706ac_ext=rc
19707
19708# Object file extension for compiled RC test sources.
19709objext=o
19710objext_RC=$objext
19711
19712# Code to be used in simple compile tests
19713lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19714
19715# Code to be used in simple link tests
19716lt_simple_link_test_code="$lt_simple_compile_test_code"
19717
19718# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19719
19720# If no C compiler was specified, use CC.
19721LTCC=${LTCC-"$CC"}
19722
19723# If no C compiler flags were specified, use CFLAGS.
19724LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19725
19726# Allow CC to be a program name with arguments.
19727compiler=$CC
19728
19729
19730# save warnings/boilerplate of simple test code
19731ac_outfile=conftest.$ac_objext
19732echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19733eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19734_lt_compiler_boilerplate=`cat conftest.err`
19735$rm conftest*
19736
19737ac_outfile=conftest.$ac_objext
19738echo "$lt_simple_link_test_code" >conftest.$ac_ext
19739eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19740_lt_linker_boilerplate=`cat conftest.err`
19741$rm -r conftest*
19742
19743
19744# Allow CC to be a program name with arguments.
19745lt_save_CC="$CC"
19746CC=${RC-"windres"}
19747compiler=$CC
19748compiler_RC=$CC
19749for cc_temp in $compiler""; do
19750  case $cc_temp in
19751    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19752    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19753    \-*) ;;
19754    *) break;;
19755  esac
19756done
19757cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19758
19759lt_cv_prog_compiler_c_o_RC=yes
19760
19761# The else clause should only fire when bootstrapping the
19762# libtool distribution, otherwise you forgot to ship ltmain.sh
19763# with your package, and you will get complaints that there are
19764# no rules to generate ltmain.sh.
19765if test -f "$ltmain"; then
19766  # See if we are running on zsh, and set the options which allow our commands through
19767  # without removal of \ escapes.
19768  if test -n "${ZSH_VERSION+set}" ; then
19769    setopt NO_GLOB_SUBST
19770  fi
19771  # Now quote all the things that may contain metacharacters while being
19772  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19773  # variables and quote the copies for generation of the libtool script.
19774  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19775    SED SHELL STRIP \
19776    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19777    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19778    deplibs_check_method reload_flag reload_cmds need_locks \
19779    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19780    lt_cv_sys_global_symbol_to_c_name_address \
19781    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19782    old_postinstall_cmds old_postuninstall_cmds \
19783    compiler_RC \
19784    CC_RC \
19785    LD_RC \
19786    lt_prog_compiler_wl_RC \
19787    lt_prog_compiler_pic_RC \
19788    lt_prog_compiler_static_RC \
19789    lt_prog_compiler_no_builtin_flag_RC \
19790    export_dynamic_flag_spec_RC \
19791    thread_safe_flag_spec_RC \
19792    whole_archive_flag_spec_RC \
19793    enable_shared_with_static_runtimes_RC \
19794    old_archive_cmds_RC \
19795    old_archive_from_new_cmds_RC \
19796    predep_objects_RC \
19797    postdep_objects_RC \
19798    predeps_RC \
19799    postdeps_RC \
19800    compiler_lib_search_path_RC \
19801    compiler_lib_search_dirs_RC \
19802    archive_cmds_RC \
19803    archive_expsym_cmds_RC \
19804    postinstall_cmds_RC \
19805    postuninstall_cmds_RC \
19806    old_archive_from_expsyms_cmds_RC \
19807    allow_undefined_flag_RC \
19808    no_undefined_flag_RC \
19809    export_symbols_cmds_RC \
19810    hardcode_libdir_flag_spec_RC \
19811    hardcode_libdir_flag_spec_ld_RC \
19812    hardcode_libdir_separator_RC \
19813    hardcode_automatic_RC \
19814    module_cmds_RC \
19815    module_expsym_cmds_RC \
19816    lt_cv_prog_compiler_c_o_RC \
19817    fix_srcfile_path_RC \
19818    exclude_expsyms_RC \
19819    include_expsyms_RC; do
19820
19821    case $var in
19822    old_archive_cmds_RC | \
19823    old_archive_from_new_cmds_RC | \
19824    archive_cmds_RC | \
19825    archive_expsym_cmds_RC | \
19826    module_cmds_RC | \
19827    module_expsym_cmds_RC | \
19828    old_archive_from_expsyms_cmds_RC | \
19829    export_symbols_cmds_RC | \
19830    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19831    postinstall_cmds | postuninstall_cmds | \
19832    old_postinstall_cmds | old_postuninstall_cmds | \
19833    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19834      # Double-quote double-evaled strings.
19835      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19836      ;;
19837    *)
19838      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19839      ;;
19840    esac
19841  done
19842
19843  case $lt_echo in
19844  *'\$0 --fallback-echo"')
19845    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19846    ;;
19847  esac
19848
19849cfgfile="$ofile"
19850
19851  cat <<__EOF__ >> "$cfgfile"
19852# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19853
19854# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19855
19856# Shell to use when invoking shell scripts.
19857SHELL=$lt_SHELL
19858
19859# Whether or not to build shared libraries.
19860build_libtool_libs=$enable_shared
19861
19862# Whether or not to build static libraries.
19863build_old_libs=$enable_static
19864
19865# Whether or not to add -lc for building shared libraries.
19866build_libtool_need_lc=$archive_cmds_need_lc_RC
19867
19868# Whether or not to disallow shared libs when runtime libs are static
19869allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19870
19871# Whether or not to optimize for fast installation.
19872fast_install=$enable_fast_install
19873
19874# The host system.
19875host_alias=$host_alias
19876host=$host
19877host_os=$host_os
19878
19879# The build system.
19880build_alias=$build_alias
19881build=$build
19882build_os=$build_os
19883
19884# An echo program that does not interpret backslashes.
19885echo=$lt_echo
19886
19887# The archiver.
19888AR=$lt_AR
19889AR_FLAGS=$lt_AR_FLAGS
19890
19891# A C compiler.
19892LTCC=$lt_LTCC
19893
19894# LTCC compiler flags.
19895LTCFLAGS=$lt_LTCFLAGS
19896
19897# A language-specific compiler.
19898CC=$lt_compiler_RC
19899
19900# Is the compiler the GNU C compiler?
19901with_gcc=$GCC_RC
19902
19903# An ERE matcher.
19904EGREP=$lt_EGREP
19905
19906# The linker used to build libraries.
19907LD=$lt_LD_RC
19908
19909# Whether we need hard or soft links.
19910LN_S=$lt_LN_S
19911
19912# A BSD-compatible nm program.
19913NM=$lt_NM
19914
19915# A symbol stripping program
19916STRIP=$lt_STRIP
19917
19918# Used to examine libraries when file_magic_cmd begins "file"
19919MAGIC_CMD=$MAGIC_CMD
19920
19921# Used on cygwin: DLL creation program.
19922DLLTOOL="$DLLTOOL"
19923
19924# Used on cygwin: object dumper.
19925OBJDUMP="$OBJDUMP"
19926
19927# Used on cygwin: assembler.
19928AS="$AS"
19929
19930# The name of the directory that contains temporary libtool files.
19931objdir=$objdir
19932
19933# How to create reloadable object files.
19934reload_flag=$lt_reload_flag
19935reload_cmds=$lt_reload_cmds
19936
19937# How to pass a linker flag through the compiler.
19938wl=$lt_lt_prog_compiler_wl_RC
19939
19940# Object file suffix (normally "o").
19941objext="$ac_objext"
19942
19943# Old archive suffix (normally "a").
19944libext="$libext"
19945
19946# Shared library suffix (normally ".so").
19947shrext_cmds='$shrext_cmds'
19948
19949# Executable file suffix (normally "").
19950exeext="$exeext"
19951
19952# Additional compiler flags for building library objects.
19953pic_flag=$lt_lt_prog_compiler_pic_RC
19954pic_mode=$pic_mode
19955
19956# What is the maximum length of a command?
19957max_cmd_len=$lt_cv_sys_max_cmd_len
19958
19959# Does compiler simultaneously support -c and -o options?
19960compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19961
19962# Must we lock files when doing compilation?
19963need_locks=$lt_need_locks
19964
19965# Do we need the lib prefix for modules?
19966need_lib_prefix=$need_lib_prefix
19967
19968# Do we need a version for libraries?
19969need_version=$need_version
19970
19971# Whether dlopen is supported.
19972dlopen_support=$enable_dlopen
19973
19974# Whether dlopen of programs is supported.
19975dlopen_self=$enable_dlopen_self
19976
19977# Whether dlopen of statically linked programs is supported.
19978dlopen_self_static=$enable_dlopen_self_static
19979
19980# Compiler flag to prevent dynamic linking.
19981link_static_flag=$lt_lt_prog_compiler_static_RC
19982
19983# Compiler flag to turn off builtin functions.
19984no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19985
19986# Compiler flag to allow reflexive dlopens.
19987export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19988
19989# Compiler flag to generate shared objects directly from archives.
19990whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19991
19992# Compiler flag to generate thread-safe objects.
19993thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19994
19995# Library versioning type.
19996version_type=$version_type
19997
19998# Format of library name prefix.
19999libname_spec=$lt_libname_spec
20000
20001# List of archive names.  First name is the real one, the rest are links.
20002# The last name is the one that the linker finds with -lNAME.
20003library_names_spec=$lt_library_names_spec
20004
20005# The coded name of the library, if different from the real name.
20006soname_spec=$lt_soname_spec
20007
20008# Commands used to build and install an old-style archive.
20009RANLIB=$lt_RANLIB
20010old_archive_cmds=$lt_old_archive_cmds_RC
20011old_postinstall_cmds=$lt_old_postinstall_cmds
20012old_postuninstall_cmds=$lt_old_postuninstall_cmds
20013
20014# Create an old-style archive from a shared archive.
20015old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20016
20017# Create a temporary old-style archive to link instead of a shared archive.
20018old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20019
20020# Commands used to build and install a shared archive.
20021archive_cmds=$lt_archive_cmds_RC
20022archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20023postinstall_cmds=$lt_postinstall_cmds
20024postuninstall_cmds=$lt_postuninstall_cmds
20025
20026# Commands used to build a loadable module (assumed same as above if empty)
20027module_cmds=$lt_module_cmds_RC
20028module_expsym_cmds=$lt_module_expsym_cmds_RC
20029
20030# Commands to strip libraries.
20031old_striplib=$lt_old_striplib
20032striplib=$lt_striplib
20033
20034# Dependencies to place before the objects being linked to create a
20035# shared library.
20036predep_objects=$lt_predep_objects_RC
20037
20038# Dependencies to place after the objects being linked to create a
20039# shared library.
20040postdep_objects=$lt_postdep_objects_RC
20041
20042# Dependencies to place before the objects being linked to create a
20043# shared library.
20044predeps=$lt_predeps_RC
20045
20046# Dependencies to place after the objects being linked to create a
20047# shared library.
20048postdeps=$lt_postdeps_RC
20049
20050# The directories searched by this compiler when creating a shared
20051# library
20052compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20053
20054# The library search path used internally by the compiler when linking
20055# a shared library.
20056compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20057
20058# Method to check whether dependent libraries are shared objects.
20059deplibs_check_method=$lt_deplibs_check_method
20060
20061# Command to use when deplibs_check_method == file_magic.
20062file_magic_cmd=$lt_file_magic_cmd
20063
20064# Flag that allows shared libraries with undefined symbols to be built.
20065allow_undefined_flag=$lt_allow_undefined_flag_RC
20066
20067# Flag that forces no undefined symbols.
20068no_undefined_flag=$lt_no_undefined_flag_RC
20069
20070# Commands used to finish a libtool library installation in a directory.
20071finish_cmds=$lt_finish_cmds
20072
20073# Same as above, but a single script fragment to be evaled but not shown.
20074finish_eval=$lt_finish_eval
20075
20076# Take the output of nm and produce a listing of raw symbols and C names.
20077global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20078
20079# Transform the output of nm in a proper C declaration
20080global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20081
20082# Transform the output of nm in a C name address pair
20083global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20084
20085# This is the shared library runtime path variable.
20086runpath_var=$runpath_var
20087
20088# This is the shared library path variable.
20089shlibpath_var=$shlibpath_var
20090
20091# Is shlibpath searched before the hard-coded library search path?
20092shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20093
20094# How to hardcode a shared library path into an executable.
20095hardcode_action=$hardcode_action_RC
20096
20097# Whether we should hardcode library paths into libraries.
20098hardcode_into_libs=$hardcode_into_libs
20099
20100# Flag to hardcode \$libdir into a binary during linking.
20101# This must work even if \$libdir does not exist.
20102hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20103
20104# If ld is used when linking, flag to hardcode \$libdir into
20105# a binary during linking. This must work even if \$libdir does
20106# not exist.
20107hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20108
20109# Whether we need a single -rpath flag with a separated argument.
20110hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20111
20112# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20113# resulting binary.
20114hardcode_direct=$hardcode_direct_RC
20115
20116# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20117# resulting binary.
20118hardcode_minus_L=$hardcode_minus_L_RC
20119
20120# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20121# the resulting binary.
20122hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20123
20124# Set to yes if building a shared library automatically hardcodes DIR into the library
20125# and all subsequent libraries and executables linked against it.
20126hardcode_automatic=$hardcode_automatic_RC
20127
20128# Variables whose values should be saved in libtool wrapper scripts and
20129# restored at relink time.
20130variables_saved_for_relink="$variables_saved_for_relink"
20131
20132# Whether libtool must link a program against all its dependency libraries.
20133link_all_deplibs=$link_all_deplibs_RC
20134
20135# Compile-time system search path for libraries
20136sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20137
20138# Run-time system search path for libraries
20139sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20140
20141# Fix the shell variable \$srcfile for the compiler.
20142fix_srcfile_path=$lt_fix_srcfile_path
20143
20144# Set to yes if exported symbols are required.
20145always_export_symbols=$always_export_symbols_RC
20146
20147# The commands to list exported symbols.
20148export_symbols_cmds=$lt_export_symbols_cmds_RC
20149
20150# The commands to extract the exported symbol list from a shared archive.
20151extract_expsyms_cmds=$lt_extract_expsyms_cmds
20152
20153# Symbols that should not be listed in the preloaded symbols.
20154exclude_expsyms=$lt_exclude_expsyms_RC
20155
20156# Symbols that must always be exported.
20157include_expsyms=$lt_include_expsyms_RC
20158
20159# ### END LIBTOOL TAG CONFIG: $tagname
20160
20161__EOF__
20162
20163
20164else
20165  # If there is no Makefile yet, we rely on a make rule to execute
20166  # `config.status --recheck' to rerun these tests and create the
20167  # libtool script then.
20168  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20169  if test -f "$ltmain_in"; then
20170    test -f Makefile && make "$ltmain"
20171  fi
20172fi
20173
20174
20175ac_ext=c
20176ac_cpp='$CPP $CPPFLAGS'
20177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20179ac_compiler_gnu=$ac_cv_c_compiler_gnu
20180
20181CC="$lt_save_CC"
20182
20183	;;
20184
20185      *)
20186	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20187echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20188   { (exit 1); exit 1; }; }
20189	;;
20190      esac
20191
20192      # Append the new tag name to the list of available tags.
20193      if test -n "$tagname" ; then
20194      available_tags="$available_tags $tagname"
20195    fi
20196    fi
20197  done
20198  IFS="$lt_save_ifs"
20199
20200  # Now substitute the updated list of available tags.
20201  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20202    mv "${ofile}T" "$ofile"
20203    chmod +x "$ofile"
20204  else
20205    rm -f "${ofile}T"
20206    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20207echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20208   { (exit 1); exit 1; }; }
20209  fi
20210fi
20211
20212
20213
20214# This can be used to rebuild libtool when needed
20215LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20216
20217# Always use our own libtool.
20218LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20219
20220# Prevent multiple expansion
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241if test "x$CC" != xcc; then
20242  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
20243echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
20244else
20245  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
20246echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
20247fi
20248set dummy $CC; ac_cc=`echo $2 |
20249		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20250if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
20251  echo $ECHO_N "(cached) $ECHO_C" >&6
20252else
20253  cat >conftest.$ac_ext <<_ACEOF
20254/* confdefs.h.  */
20255_ACEOF
20256cat confdefs.h >>conftest.$ac_ext
20257cat >>conftest.$ac_ext <<_ACEOF
20258/* end confdefs.h.  */
20259
20260int
20261main ()
20262{
20263
20264  ;
20265  return 0;
20266}
20267_ACEOF
20268# Make sure it works both with $CC and with simple cc.
20269# We do the test twice because some compilers refuse to overwrite an
20270# existing .o file with -o, though they will create one.
20271ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20272rm -f conftest2.*
20273if { (case "(($ac_try" in
20274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275  *) ac_try_echo=$ac_try;;
20276esac
20277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278  (eval "$ac_try") 2>&5
20279  ac_status=$?
20280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281  (exit $ac_status); } &&
20282   test -f conftest2.$ac_objext && { (case "(($ac_try" in
20283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284  *) ac_try_echo=$ac_try;;
20285esac
20286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20287  (eval "$ac_try") 2>&5
20288  ac_status=$?
20289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290  (exit $ac_status); };
20291then
20292  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
20293  if test "x$CC" != xcc; then
20294    # Test first that cc exists at all.
20295    if { ac_try='cc -c conftest.$ac_ext >&5'
20296  { (case "(($ac_try" in
20297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298  *) ac_try_echo=$ac_try;;
20299esac
20300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301  (eval "$ac_try") 2>&5
20302  ac_status=$?
20303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304  (exit $ac_status); }; }; then
20305      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20306      rm -f conftest2.*
20307      if { (case "(($ac_try" in
20308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309  *) ac_try_echo=$ac_try;;
20310esac
20311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312  (eval "$ac_try") 2>&5
20313  ac_status=$?
20314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315  (exit $ac_status); } &&
20316	 test -f conftest2.$ac_objext && { (case "(($ac_try" in
20317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20318  *) ac_try_echo=$ac_try;;
20319esac
20320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20321  (eval "$ac_try") 2>&5
20322  ac_status=$?
20323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324  (exit $ac_status); };
20325      then
20326	# cc works too.
20327	:
20328      else
20329	# cc exists but doesn't like -o.
20330	eval ac_cv_prog_cc_${ac_cc}_c_o=no
20331      fi
20332    fi
20333  fi
20334else
20335  eval ac_cv_prog_cc_${ac_cc}_c_o=no
20336fi
20337rm -f core conftest*
20338
20339fi
20340if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
20341  { echo "$as_me:$LINENO: result: yes" >&5
20342echo "${ECHO_T}yes" >&6; }
20343else
20344  { echo "$as_me:$LINENO: result: no" >&5
20345echo "${ECHO_T}no" >&6; }
20346
20347cat >>confdefs.h <<\_ACEOF
20348#define NO_MINUS_C_MINUS_O 1
20349_ACEOF
20350
20351fi
20352
20353# FIXME: we rely on the cache variable name because
20354# there is no other way.
20355set dummy $CC
20356ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20357if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
20358   # Losing compiler, so override with the script.
20359   # FIXME: It is wrong to rewrite CC.
20360   # But if we don't then we get into trouble of one sort or another.
20361   # A longer-term fix would be to have automake use am__CC in this case,
20362   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
20363   CC="$am_aux_dir/compile $CC"
20364fi
20365
20366
20367
20368# Check whether --enable-docs was given.
20369if test "${enable_docs+set}" = set; then
20370  enableval=$enable_docs;
20371fi
20372
20373
20374if test "x$enable_docs" = xyes; then
20375  for ac_prog in pdflatex
20376do
20377  # Extract the first word of "$ac_prog", so it can be a program name with args.
20378set dummy $ac_prog; ac_word=$2
20379{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20381if test "${ac_cv_prog_PDFLATEX+set}" = set; then
20382  echo $ECHO_N "(cached) $ECHO_C" >&6
20383else
20384  if test -n "$PDFLATEX"; then
20385  ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
20386else
20387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20388for as_dir in $PATH
20389do
20390  IFS=$as_save_IFS
20391  test -z "$as_dir" && as_dir=.
20392  for ac_exec_ext in '' $ac_executable_extensions; do
20393  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20394    ac_cv_prog_PDFLATEX="$ac_prog"
20395    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20396    break 2
20397  fi
20398done
20399done
20400IFS=$as_save_IFS
20401
20402fi
20403fi
20404PDFLATEX=$ac_cv_prog_PDFLATEX
20405if test -n "$PDFLATEX"; then
20406  { echo "$as_me:$LINENO: result: $PDFLATEX" >&5
20407echo "${ECHO_T}$PDFLATEX" >&6; }
20408else
20409  { echo "$as_me:$LINENO: result: no" >&5
20410echo "${ECHO_T}no" >&6; }
20411fi
20412
20413
20414  test -n "$PDFLATEX" && break
20415done
20416test -n "$PDFLATEX" || PDFLATEX="/bin/false"
20417
20418  for ac_prog in htlatex
20419do
20420  # Extract the first word of "$ac_prog", so it can be a program name with args.
20421set dummy $ac_prog; ac_word=$2
20422{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20424if test "${ac_cv_prog_HTLATEX+set}" = set; then
20425  echo $ECHO_N "(cached) $ECHO_C" >&6
20426else
20427  if test -n "$HTLATEX"; then
20428  ac_cv_prog_HTLATEX="$HTLATEX" # Let the user override the test.
20429else
20430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20431for as_dir in $PATH
20432do
20433  IFS=$as_save_IFS
20434  test -z "$as_dir" && as_dir=.
20435  for ac_exec_ext in '' $ac_executable_extensions; do
20436  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20437    ac_cv_prog_HTLATEX="$ac_prog"
20438    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20439    break 2
20440  fi
20441done
20442done
20443IFS=$as_save_IFS
20444
20445fi
20446fi
20447HTLATEX=$ac_cv_prog_HTLATEX
20448if test -n "$HTLATEX"; then
20449  { echo "$as_me:$LINENO: result: $HTLATEX" >&5
20450echo "${ECHO_T}$HTLATEX" >&6; }
20451else
20452  { echo "$as_me:$LINENO: result: no" >&5
20453echo "${ECHO_T}no" >&6; }
20454fi
20455
20456
20457  test -n "$HTLATEX" && break
20458done
20459test -n "$HTLATEX" || HTLATEX="/bin/false"
20460
20461  if test "x$PDFLATEX" = x/bin/false || test "x$HTLATEX" = x/bin/false; then
20462    enable_docs=no
20463    { echo "$as_me:$LINENO: WARNING: Documentation will not be built!" >&5
20464echo "$as_me: WARNING: Documentation will not be built!" >&2;}
20465  fi
20466fi
20467
20468 if test "x$enable_docs" = xyes; then
20469  BUILD_DOCS_TRUE=
20470  BUILD_DOCS_FALSE='#'
20471else
20472  BUILD_DOCS_TRUE='#'
20473  BUILD_DOCS_FALSE=
20474fi
20475
20476
20477
20478
20479cflags_save="$CFLAGS"
20480if test -z "$GCC"; then
20481	case $host in
20482	*-*-irix*)
20483						if test -z "$CC"; then
20484			CC=cc
20485		fi
20486		DEBUG="-g -signed"
20487		CFLAGS="-O2 -w -signed"
20488		PROFILE="-p -g3 -O2 -signed" ;;
20489	sparc-sun-solaris*)
20490		DEBUG="-v -g"
20491		CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
20492		PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;;
20493	*)
20494		DEBUG="-g"
20495		CFLAGS="-O"
20496		PROFILE="-g -p" ;;
20497        esac
20498else
20499
20500	{ echo "$as_me:$LINENO: checking GCC version" >&5
20501echo $ECHO_N "checking GCC version... $ECHO_C" >&6; }
20502	GCC_VERSION=`$CC -dumpversion`
20503	{ echo "$as_me:$LINENO: result: $GCC_VERSION" >&5
20504echo "${ECHO_T}$GCC_VERSION" >&6; }
20505	case $host in
20506	*86-*-linux*)
20507		DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
20508		CFLAGS="-O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char"
20509#              	PROFILE="-Wall -Wextra -pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static"
20510		PROFILE="-Wall -Wextra -pg -g -O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline"
20511
20512		# glibc < 2.1.3 has a serious FP bug in the math inline header
20513		# that will cripple Vorbis.  Look to see if the magic FP stack
20514		# clobber is missing in the mathinline header, thus indicating
20515		# the buggy version
20516
20517		cat >conftest.$ac_ext <<_ACEOF
20518/* confdefs.h.  */
20519_ACEOF
20520cat confdefs.h >>conftest.$ac_ext
20521cat >>conftest.$ac_ext <<_ACEOF
20522/* end confdefs.h.  */
20523
20524				#define __LIBC_INTERNAL_MATH_INLINES 1
20525			     	#define __OPTIMIZE__
20526				#include <math.h>
20527
20528_ACEOF
20529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20530  $EGREP "log10.*fldlg2.*fxch" >/dev/null 2>&1; then
20531  bad=maybe
20532else
20533  bad=no
20534fi
20535rm -f conftest*
20536
20537		if test ${bad} = "maybe" ;then
20538		      cat >conftest.$ac_ext <<_ACEOF
20539/* confdefs.h.  */
20540_ACEOF
20541cat confdefs.h >>conftest.$ac_ext
20542cat >>conftest.$ac_ext <<_ACEOF
20543/* end confdefs.h.  */
20544
20545					#define __LIBC_INTERNAL_MATH_INLINES 1
20546				     	#define __OPTIMIZE__
20547					#include <math.h>
20548
20549_ACEOF
20550if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20551  $EGREP "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1; then
20552  bad=no
20553else
20554  bad=yes
20555fi
20556rm -f conftest*
20557
20558		fi
20559 		if test ${bad} = "yes" ;then
20560 { echo "$as_me:$LINENO: WARNING:                                                         " >&5
20561echo "$as_me: WARNING:                                                         " >&2;}
20562 { echo "$as_me:$LINENO: WARNING: ********************************************************" >&5
20563echo "$as_me: WARNING: ********************************************************" >&2;}
20564 { echo "$as_me:$LINENO: WARNING: * The glibc headers on this machine have a serious bug *" >&5
20565echo "$as_me: WARNING: * The glibc headers on this machine have a serious bug *" >&2;}
20566 { echo "$as_me:$LINENO: WARNING: * in /usr/include/bits/mathinline.h  This bug affects  *" >&5
20567echo "$as_me: WARNING: * in /usr/include/bits/mathinline.h  This bug affects  *" >&2;}
20568 { echo "$as_me:$LINENO: WARNING: * all floating point code, not just Ogg, built on this *" >&5
20569echo "$as_me: WARNING: * all floating point code, not just Ogg, built on this *" >&2;}
20570 { echo "$as_me:$LINENO: WARNING: * machine.  Upgrading to glibc 2.1.3 is strongly urged *" >&5
20571echo "$as_me: WARNING: * machine.  Upgrading to glibc 2.1.3 is strongly urged *" >&2;}
20572 { echo "$as_me:$LINENO: WARNING: * to correct the problem.  Note that upgrading glibc   *" >&5
20573echo "$as_me: WARNING: * to correct the problem.  Note that upgrading glibc   *" >&2;}
20574 { echo "$as_me:$LINENO: WARNING: * will not fix any previously built programs; this is  *" >&5
20575echo "$as_me: WARNING: * will not fix any previously built programs; this is  *" >&2;}
20576 { echo "$as_me:$LINENO: WARNING: * a compile-time time bug.                             *" >&5
20577echo "$as_me: WARNING: * a compile-time time bug.                             *" >&2;}
20578 { echo "$as_me:$LINENO: WARNING: * To work around the problem for this build of Ogg,    *" >&5
20579echo "$as_me: WARNING: * To work around the problem for this build of Ogg,    *" >&2;}
20580 { echo "$as_me:$LINENO: WARNING: * autoconf is disabling all math inlining.  This will  *" >&5
20581echo "$as_me: WARNING: * autoconf is disabling all math inlining.  This will  *" >&2;}
20582 { echo "$as_me:$LINENO: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&5
20583echo "$as_me: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&2;}
20584 { echo "$as_me:$LINENO: WARNING: * will actually work.  Once glibc is upgraded, rerun   *" >&5
20585echo "$as_me: WARNING: * will actually work.  Once glibc is upgraded, rerun   *" >&2;}
20586 { echo "$as_me:$LINENO: WARNING: * configure and make to build with inlining.           *" >&5
20587echo "$as_me: WARNING: * configure and make to build with inlining.           *" >&2;}
20588 { echo "$as_me:$LINENO: WARNING: ********************************************************" >&5
20589echo "$as_me: WARNING: ********************************************************" >&2;}
20590 { echo "$as_me:$LINENO: WARNING:                                                         " >&5
20591echo "$as_me: WARNING:                                                         " >&2;}
20592
20593  		CFLAGS=${OPT}" -D__NO_MATH_INLINES"
20594  		PROFILE=${PROFILE}" -D__NO_MATH_INLINES"
20595  		fi;;
20596	powerpc-*-linux*)
20597		DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES"
20598		CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT"
20599		PROFILE="-pg -g -O3 -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT";;
20600	*-*-linux*)
20601		DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
20602		CFLAGS="-O20 -Wall -Wextra -ffast-math -D_REENTRANT -fsigned-char"
20603		PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
20604	sparc-sun-*)
20605		sparc_cpu=""
20606		{ echo "$as_me:$LINENO: checking if gcc supports -mv8" >&5
20607echo $ECHO_N "checking if gcc supports -mv8... $ECHO_C" >&6; }
20608		old_cflags="$CFLAGS"
20609		CFLAGS="$CFLAGS -mv8"
20610		cat >conftest.$ac_ext <<_ACEOF
20611/* confdefs.h.  */
20612_ACEOF
20613cat confdefs.h >>conftest.$ac_ext
20614cat >>conftest.$ac_ext <<_ACEOF
20615/* end confdefs.h.  */
20616
20617int
20618main ()
20619{
20620return 0;
20621  ;
20622  return 0;
20623}
20624_ACEOF
20625rm -f conftest.$ac_objext
20626if { (ac_try="$ac_compile"
20627case "(($ac_try" in
20628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629  *) ac_try_echo=$ac_try;;
20630esac
20631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632  (eval "$ac_compile") 2>conftest.er1
20633  ac_status=$?
20634  grep -v '^ *+' conftest.er1 >conftest.err
20635  rm -f conftest.er1
20636  cat conftest.err >&5
20637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638  (exit $ac_status); } && {
20639	 test -z "$ac_c_werror_flag" ||
20640	 test ! -s conftest.err
20641       } && test -s conftest.$ac_objext; then
20642
20643			{ echo "$as_me:$LINENO: result: yes" >&5
20644echo "${ECHO_T}yes" >&6; }
20645			sparc_cpu="-mv8"
20646
20647else
20648  echo "$as_me: failed program was:" >&5
20649sed 's/^/| /' conftest.$ac_ext >&5
20650
20651
20652fi
20653
20654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20655		CFLAGS="$old_cflags"
20656		DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char $sparc_cpu"
20657		CFLAGS="-O20 -Wall -Wextra -ffast-math -D__NO_MATH_INLINES -fsigned-char $sparc_cpu"
20658		PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char $sparc_cpu" ;;
20659	*-*-darwin*)
20660		DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char"
20661		CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O4 -ffast-math -fsigned-char"
20662		PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O4 -ffast-math -fsigned-char";;
20663	*-*-os2*)
20664		# Use -W instead of -Wextra because gcc on OS/2 is an old version.
20665		DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
20666		CFLAGS="-O20 -Wall -W -ffast-math -D_REENTRANT -fsigned-char"
20667		PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
20668 	*)
20669		DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char"
20670		CFLAGS="-O20 -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char"
20671		PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
20672        esac
20673
20674        { echo "$as_me:$LINENO: checking if $CC accepts -Wdeclaration-after-statement" >&5
20675echo $ECHO_N "checking if $CC accepts -Wdeclaration-after-statement... $ECHO_C" >&6; }
20676	ac_add_cflags__old_cflags="$CFLAGS"
20677	CFLAGS="$CFLAGS -Wdeclaration-after-statement"
20678	cat >conftest.$ac_ext <<_ACEOF
20679/* confdefs.h.  */
20680_ACEOF
20681cat confdefs.h >>conftest.$ac_ext
20682cat >>conftest.$ac_ext <<_ACEOF
20683/* end confdefs.h.  */
20684#include <stdio.h>
20685int
20686main ()
20687{
20688puts("Hello, World!"); return 0;
20689  ;
20690  return 0;
20691}
20692_ACEOF
20693rm -f conftest.$ac_objext conftest$ac_exeext
20694if { (ac_try="$ac_link"
20695case "(($ac_try" in
20696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20697  *) ac_try_echo=$ac_try;;
20698esac
20699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20700  (eval "$ac_link") 2>conftest.er1
20701  ac_status=$?
20702  grep -v '^ *+' conftest.er1 >conftest.err
20703  rm -f conftest.er1
20704  cat conftest.err >&5
20705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706  (exit $ac_status); } && {
20707	 test -z "$ac_c_werror_flag" ||
20708	 test ! -s conftest.err
20709       } && test -s conftest$ac_exeext &&
20710       $as_test_x conftest$ac_exeext; then
20711  { echo "$as_me:$LINENO: result: yes" >&5
20712echo "${ECHO_T}yes" >&6; }
20713else
20714  echo "$as_me: failed program was:" >&5
20715sed 's/^/| /' conftest.$ac_ext >&5
20716
20717	{ echo "$as_me:$LINENO: result: no" >&5
20718echo "${ECHO_T}no" >&6; }
20719		CFLAGS="$ac_add_cflags__old_cflags"
20720fi
20721
20722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20723      conftest$ac_exeext conftest.$ac_ext
20724
20725fi
20726CFLAGS="$CFLAGS $cflags_save"
20727
20728
20729if test "${ac_cv_header_memory_h+set}" = set; then
20730  { echo "$as_me:$LINENO: checking for memory.h" >&5
20731echo $ECHO_N "checking for memory.h... $ECHO_C" >&6; }
20732if test "${ac_cv_header_memory_h+set}" = set; then
20733  echo $ECHO_N "(cached) $ECHO_C" >&6
20734fi
20735{ echo "$as_me:$LINENO: result: $ac_cv_header_memory_h" >&5
20736echo "${ECHO_T}$ac_cv_header_memory_h" >&6; }
20737else
20738  # Is the header compilable?
20739{ echo "$as_me:$LINENO: checking memory.h usability" >&5
20740echo $ECHO_N "checking memory.h usability... $ECHO_C" >&6; }
20741cat >conftest.$ac_ext <<_ACEOF
20742/* confdefs.h.  */
20743_ACEOF
20744cat confdefs.h >>conftest.$ac_ext
20745cat >>conftest.$ac_ext <<_ACEOF
20746/* end confdefs.h.  */
20747$ac_includes_default
20748#include <memory.h>
20749_ACEOF
20750rm -f conftest.$ac_objext
20751if { (ac_try="$ac_compile"
20752case "(($ac_try" in
20753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754  *) ac_try_echo=$ac_try;;
20755esac
20756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757  (eval "$ac_compile") 2>conftest.er1
20758  ac_status=$?
20759  grep -v '^ *+' conftest.er1 >conftest.err
20760  rm -f conftest.er1
20761  cat conftest.err >&5
20762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763  (exit $ac_status); } && {
20764	 test -z "$ac_c_werror_flag" ||
20765	 test ! -s conftest.err
20766       } && test -s conftest.$ac_objext; then
20767  ac_header_compiler=yes
20768else
20769  echo "$as_me: failed program was:" >&5
20770sed 's/^/| /' conftest.$ac_ext >&5
20771
20772	ac_header_compiler=no
20773fi
20774
20775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20776{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20777echo "${ECHO_T}$ac_header_compiler" >&6; }
20778
20779# Is the header present?
20780{ echo "$as_me:$LINENO: checking memory.h presence" >&5
20781echo $ECHO_N "checking memory.h presence... $ECHO_C" >&6; }
20782cat >conftest.$ac_ext <<_ACEOF
20783/* confdefs.h.  */
20784_ACEOF
20785cat confdefs.h >>conftest.$ac_ext
20786cat >>conftest.$ac_ext <<_ACEOF
20787/* end confdefs.h.  */
20788#include <memory.h>
20789_ACEOF
20790if { (ac_try="$ac_cpp conftest.$ac_ext"
20791case "(($ac_try" in
20792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793  *) ac_try_echo=$ac_try;;
20794esac
20795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20796  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20797  ac_status=$?
20798  grep -v '^ *+' conftest.er1 >conftest.err
20799  rm -f conftest.er1
20800  cat conftest.err >&5
20801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802  (exit $ac_status); } >/dev/null && {
20803	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20804	 test ! -s conftest.err
20805       }; then
20806  ac_header_preproc=yes
20807else
20808  echo "$as_me: failed program was:" >&5
20809sed 's/^/| /' conftest.$ac_ext >&5
20810
20811  ac_header_preproc=no
20812fi
20813
20814rm -f conftest.err conftest.$ac_ext
20815{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20816echo "${ECHO_T}$ac_header_preproc" >&6; }
20817
20818# So?  What about this header?
20819case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20820  yes:no: )
20821    { echo "$as_me:$LINENO: WARNING: memory.h: accepted by the compiler, rejected by the preprocessor!" >&5
20822echo "$as_me: WARNING: memory.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20823    { echo "$as_me:$LINENO: WARNING: memory.h: proceeding with the compiler's result" >&5
20824echo "$as_me: WARNING: memory.h: proceeding with the compiler's result" >&2;}
20825    ac_header_preproc=yes
20826    ;;
20827  no:yes:* )
20828    { echo "$as_me:$LINENO: WARNING: memory.h: present but cannot be compiled" >&5
20829echo "$as_me: WARNING: memory.h: present but cannot be compiled" >&2;}
20830    { echo "$as_me:$LINENO: WARNING: memory.h:     check for missing prerequisite headers?" >&5
20831echo "$as_me: WARNING: memory.h:     check for missing prerequisite headers?" >&2;}
20832    { echo "$as_me:$LINENO: WARNING: memory.h: see the Autoconf documentation" >&5
20833echo "$as_me: WARNING: memory.h: see the Autoconf documentation" >&2;}
20834    { echo "$as_me:$LINENO: WARNING: memory.h:     section \"Present But Cannot Be Compiled\"" >&5
20835echo "$as_me: WARNING: memory.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20836    { echo "$as_me:$LINENO: WARNING: memory.h: proceeding with the preprocessor's result" >&5
20837echo "$as_me: WARNING: memory.h: proceeding with the preprocessor's result" >&2;}
20838    { echo "$as_me:$LINENO: WARNING: memory.h: in the future, the compiler will take precedence" >&5
20839echo "$as_me: WARNING: memory.h: in the future, the compiler will take precedence" >&2;}
20840    ( cat <<\_ASBOX
20841## ---------------------------------- ##
20842## Report this to vorbis-dev@xiph.org ##
20843## ---------------------------------- ##
20844_ASBOX
20845     ) | sed "s/^/$as_me: WARNING:     /" >&2
20846    ;;
20847esac
20848{ echo "$as_me:$LINENO: checking for memory.h" >&5
20849echo $ECHO_N "checking for memory.h... $ECHO_C" >&6; }
20850if test "${ac_cv_header_memory_h+set}" = set; then
20851  echo $ECHO_N "(cached) $ECHO_C" >&6
20852else
20853  ac_cv_header_memory_h=$ac_header_preproc
20854fi
20855{ echo "$as_me:$LINENO: result: $ac_cv_header_memory_h" >&5
20856echo "${ECHO_T}$ac_cv_header_memory_h" >&6; }
20857
20858fi
20859if test $ac_cv_header_memory_h = yes; then
20860  CFLAGS="$CFLAGS -DUSE_MEMORY_H"
20861else
20862  :
20863fi
20864
20865
20866
20867
20868
20869
20870{ echo "$as_me:$LINENO: checking for cos in -lm" >&5
20871echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6; }
20872if test "${ac_cv_lib_m_cos+set}" = set; then
20873  echo $ECHO_N "(cached) $ECHO_C" >&6
20874else
20875  ac_check_lib_save_LIBS=$LIBS
20876LIBS="-lm  $LIBS"
20877cat >conftest.$ac_ext <<_ACEOF
20878/* confdefs.h.  */
20879_ACEOF
20880cat confdefs.h >>conftest.$ac_ext
20881cat >>conftest.$ac_ext <<_ACEOF
20882/* end confdefs.h.  */
20883
20884/* Override any GCC internal prototype to avoid an error.
20885   Use char because int might match the return type of a GCC
20886   builtin and then its argument prototype would still apply.  */
20887#ifdef __cplusplus
20888extern "C"
20889#endif
20890char cos ();
20891int
20892main ()
20893{
20894return cos ();
20895  ;
20896  return 0;
20897}
20898_ACEOF
20899rm -f conftest.$ac_objext conftest$ac_exeext
20900if { (ac_try="$ac_link"
20901case "(($ac_try" in
20902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903  *) ac_try_echo=$ac_try;;
20904esac
20905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906  (eval "$ac_link") 2>conftest.er1
20907  ac_status=$?
20908  grep -v '^ *+' conftest.er1 >conftest.err
20909  rm -f conftest.er1
20910  cat conftest.err >&5
20911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912  (exit $ac_status); } && {
20913	 test -z "$ac_c_werror_flag" ||
20914	 test ! -s conftest.err
20915       } && test -s conftest$ac_exeext &&
20916       $as_test_x conftest$ac_exeext; then
20917  ac_cv_lib_m_cos=yes
20918else
20919  echo "$as_me: failed program was:" >&5
20920sed 's/^/| /' conftest.$ac_ext >&5
20921
20922	ac_cv_lib_m_cos=no
20923fi
20924
20925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20926      conftest$ac_exeext conftest.$ac_ext
20927LIBS=$ac_check_lib_save_LIBS
20928fi
20929{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
20930echo "${ECHO_T}$ac_cv_lib_m_cos" >&6; }
20931if test $ac_cv_lib_m_cos = yes; then
20932  VORBIS_LIBS="-lm"
20933else
20934  VORBIS_LIBS=""
20935fi
20936
20937{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20938echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20939if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20940  echo $ECHO_N "(cached) $ECHO_C" >&6
20941else
20942  ac_check_lib_save_LIBS=$LIBS
20943LIBS="-lpthread  $LIBS"
20944cat >conftest.$ac_ext <<_ACEOF
20945/* confdefs.h.  */
20946_ACEOF
20947cat confdefs.h >>conftest.$ac_ext
20948cat >>conftest.$ac_ext <<_ACEOF
20949/* end confdefs.h.  */
20950
20951/* Override any GCC internal prototype to avoid an error.
20952   Use char because int might match the return type of a GCC
20953   builtin and then its argument prototype would still apply.  */
20954#ifdef __cplusplus
20955extern "C"
20956#endif
20957char pthread_create ();
20958int
20959main ()
20960{
20961return pthread_create ();
20962  ;
20963  return 0;
20964}
20965_ACEOF
20966rm -f conftest.$ac_objext conftest$ac_exeext
20967if { (ac_try="$ac_link"
20968case "(($ac_try" in
20969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970  *) ac_try_echo=$ac_try;;
20971esac
20972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20973  (eval "$ac_link") 2>conftest.er1
20974  ac_status=$?
20975  grep -v '^ *+' conftest.er1 >conftest.err
20976  rm -f conftest.er1
20977  cat conftest.err >&5
20978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979  (exit $ac_status); } && {
20980	 test -z "$ac_c_werror_flag" ||
20981	 test ! -s conftest.err
20982       } && test -s conftest$ac_exeext &&
20983       $as_test_x conftest$ac_exeext; then
20984  ac_cv_lib_pthread_pthread_create=yes
20985else
20986  echo "$as_me: failed program was:" >&5
20987sed 's/^/| /' conftest.$ac_ext >&5
20988
20989	ac_cv_lib_pthread_pthread_create=no
20990fi
20991
20992rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20993      conftest$ac_exeext conftest.$ac_ext
20994LIBS=$ac_check_lib_save_LIBS
20995fi
20996{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20997echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20998if test $ac_cv_lib_pthread_pthread_create = yes; then
20999  pthread_lib="-lpthread"
21000else
21001  :
21002fi
21003
21004
21005
21006
21007if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21008	if test -n "$ac_tool_prefix"; then
21009  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21010set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21011{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21013if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21014  echo $ECHO_N "(cached) $ECHO_C" >&6
21015else
21016  case $PKG_CONFIG in
21017  [\\/]* | ?:[\\/]*)
21018  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21019  ;;
21020  *)
21021  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21022for as_dir in $PATH
21023do
21024  IFS=$as_save_IFS
21025  test -z "$as_dir" && as_dir=.
21026  for ac_exec_ext in '' $ac_executable_extensions; do
21027  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21028    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21029    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21030    break 2
21031  fi
21032done
21033done
21034IFS=$as_save_IFS
21035
21036  ;;
21037esac
21038fi
21039PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21040if test -n "$PKG_CONFIG"; then
21041  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21042echo "${ECHO_T}$PKG_CONFIG" >&6; }
21043else
21044  { echo "$as_me:$LINENO: result: no" >&5
21045echo "${ECHO_T}no" >&6; }
21046fi
21047
21048
21049fi
21050if test -z "$ac_cv_path_PKG_CONFIG"; then
21051  ac_pt_PKG_CONFIG=$PKG_CONFIG
21052  # Extract the first word of "pkg-config", so it can be a program name with args.
21053set dummy pkg-config; ac_word=$2
21054{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21056if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21057  echo $ECHO_N "(cached) $ECHO_C" >&6
21058else
21059  case $ac_pt_PKG_CONFIG in
21060  [\\/]* | ?:[\\/]*)
21061  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21062  ;;
21063  *)
21064  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21065for as_dir in $PATH
21066do
21067  IFS=$as_save_IFS
21068  test -z "$as_dir" && as_dir=.
21069  for ac_exec_ext in '' $ac_executable_extensions; do
21070  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21071    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21072    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21073    break 2
21074  fi
21075done
21076done
21077IFS=$as_save_IFS
21078
21079  ;;
21080esac
21081fi
21082ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21083if test -n "$ac_pt_PKG_CONFIG"; then
21084  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21085echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21086else
21087  { echo "$as_me:$LINENO: result: no" >&5
21088echo "${ECHO_T}no" >&6; }
21089fi
21090
21091  if test "x$ac_pt_PKG_CONFIG" = x; then
21092    PKG_CONFIG=""
21093  else
21094    case $cross_compiling:$ac_tool_warned in
21095yes:)
21096{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21097whose name does not start with the host triplet.  If you think this
21098configuration is useful to you, please write to autoconf@gnu.org." >&5
21099echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21100whose name does not start with the host triplet.  If you think this
21101configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21102ac_tool_warned=yes ;;
21103esac
21104    PKG_CONFIG=$ac_pt_PKG_CONFIG
21105  fi
21106else
21107  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21108fi
21109
21110fi
21111if test -n "$PKG_CONFIG"; then
21112	_pkg_min_version=0.9.0
21113	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21114echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21115	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21116		{ echo "$as_me:$LINENO: result: yes" >&5
21117echo "${ECHO_T}yes" >&6; }
21118	else
21119		{ echo "$as_me:$LINENO: result: no" >&5
21120echo "${ECHO_T}no" >&6; }
21121		PKG_CONFIG=""
21122	fi
21123
21124fi
21125
21126HAVE_OGG=no
21127if test "x$PKG_CONFIG" != "x"
21128then
21129
21130pkg_failed=no
21131{ echo "$as_me:$LINENO: checking for OGG" >&5
21132echo $ECHO_N "checking for OGG... $ECHO_C" >&6; }
21133
21134if test -n "$PKG_CONFIG"; then
21135    if test -n "$OGG_CFLAGS"; then
21136        pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
21137    else
21138        if test -n "$PKG_CONFIG" && \
21139    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\"") >&5
21140  ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
21141  ac_status=$?
21142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143  (exit $ac_status); }; then
21144  pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.0" 2>/dev/null`
21145else
21146  pkg_failed=yes
21147fi
21148    fi
21149else
21150	pkg_failed=untried
21151fi
21152if test -n "$PKG_CONFIG"; then
21153    if test -n "$OGG_LIBS"; then
21154        pkg_cv_OGG_LIBS="$OGG_LIBS"
21155    else
21156        if test -n "$PKG_CONFIG" && \
21157    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\"") >&5
21158  ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
21159  ac_status=$?
21160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161  (exit $ac_status); }; then
21162  pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.0" 2>/dev/null`
21163else
21164  pkg_failed=yes
21165fi
21166    fi
21167else
21168	pkg_failed=untried
21169fi
21170
21171
21172
21173if test $pkg_failed = yes; then
21174
21175if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21176        _pkg_short_errors_supported=yes
21177else
21178        _pkg_short_errors_supported=no
21179fi
21180        if test $_pkg_short_errors_supported = yes; then
21181	        OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ogg >= 1.0"`
21182        else
21183	        OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.0"`
21184        fi
21185	# Put the nasty error message in config.log where it belongs
21186	echo "$OGG_PKG_ERRORS" >&5
21187
21188	{ echo "$as_me:$LINENO: result: no" >&5
21189echo "${ECHO_T}no" >&6; }
21190                HAVE_OGG=no
21191elif test $pkg_failed = untried; then
21192	HAVE_OGG=no
21193else
21194	OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
21195	OGG_LIBS=$pkg_cv_OGG_LIBS
21196        { echo "$as_me:$LINENO: result: yes" >&5
21197echo "${ECHO_T}yes" >&6; }
21198	HAVE_OGG=yes
21199fi
21200fi
21201if test "x$HAVE_OGG" = "xno"
21202then
21203
21204# Check whether --with-ogg was given.
21205if test "${with_ogg+set}" = set; then
21206  withval=$with_ogg; ogg_prefix="$withval"
21207else
21208  ogg_prefix=""
21209fi
21210
21211
21212# Check whether --with-ogg-libraries was given.
21213if test "${with_ogg_libraries+set}" = set; then
21214  withval=$with_ogg_libraries; ogg_libraries="$withval"
21215else
21216  ogg_libraries=""
21217fi
21218
21219
21220# Check whether --with-ogg-includes was given.
21221if test "${with_ogg_includes+set}" = set; then
21222  withval=$with_ogg_includes; ogg_includes="$withval"
21223else
21224  ogg_includes=""
21225fi
21226
21227# Check whether --enable-oggtest was given.
21228if test "${enable_oggtest+set}" = set; then
21229  enableval=$enable_oggtest;
21230else
21231  enable_oggtest=yes
21232fi
21233
21234
21235  if test "x$ogg_libraries" != "x" ; then
21236    OGG_LIBS="-L$ogg_libraries"
21237  elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
21238    OGG_LIBS=""
21239  elif test "x$ogg_prefix" != "x" ; then
21240    OGG_LIBS="-L$ogg_prefix/lib"
21241  elif test "x$prefix" != "xNONE" ; then
21242    OGG_LIBS="-L$prefix/lib"
21243  fi
21244
21245  if test "x$ogg_prefix" != "xno" ; then
21246    OGG_LIBS="$OGG_LIBS -logg"
21247  fi
21248
21249  if test "x$ogg_includes" != "x" ; then
21250    OGG_CFLAGS="-I$ogg_includes"
21251  elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
21252    OGG_CFLAGS=""
21253  elif test "x$ogg_prefix" != "x" ; then
21254    OGG_CFLAGS="-I$ogg_prefix/include"
21255  elif test "x$prefix" != "xNONE"; then
21256    OGG_CFLAGS="-I$prefix/include"
21257  fi
21258
21259  { echo "$as_me:$LINENO: checking for Ogg" >&5
21260echo $ECHO_N "checking for Ogg... $ECHO_C" >&6; }
21261  if test "x$ogg_prefix" = "xno" ; then
21262    no_ogg="disabled"
21263    enable_oggtest="no"
21264  else
21265    no_ogg=""
21266  fi
21267
21268
21269  if test "x$enable_oggtest" = "xyes" ; then
21270    ac_save_CFLAGS="$CFLAGS"
21271    ac_save_LIBS="$LIBS"
21272    CFLAGS="$CFLAGS $OGG_CFLAGS"
21273    LIBS="$LIBS $OGG_LIBS"
21274      rm -f conf.oggtest
21275      if test "$cross_compiling" = yes; then
21276  echo $ac_n "cross compiling; assumed OK... $ac_c"
21277else
21278  cat >conftest.$ac_ext <<_ACEOF
21279/* confdefs.h.  */
21280_ACEOF
21281cat confdefs.h >>conftest.$ac_ext
21282cat >>conftest.$ac_ext <<_ACEOF
21283/* end confdefs.h.  */
21284
21285#include <stdio.h>
21286#include <stdlib.h>
21287#include <string.h>
21288#include <ogg/ogg.h>
21289
21290int main ()
21291{
21292  system("touch conf.oggtest");
21293  return 0;
21294}
21295
21296
21297_ACEOF
21298rm -f conftest$ac_exeext
21299if { (ac_try="$ac_link"
21300case "(($ac_try" in
21301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302  *) ac_try_echo=$ac_try;;
21303esac
21304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21305  (eval "$ac_link") 2>&5
21306  ac_status=$?
21307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21309  { (case "(($ac_try" in
21310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21311  *) ac_try_echo=$ac_try;;
21312esac
21313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21314  (eval "$ac_try") 2>&5
21315  ac_status=$?
21316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317  (exit $ac_status); }; }; then
21318  :
21319else
21320  echo "$as_me: program exited with status $ac_status" >&5
21321echo "$as_me: failed program was:" >&5
21322sed 's/^/| /' conftest.$ac_ext >&5
21323
21324( exit $ac_status )
21325no_ogg=yes
21326fi
21327rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21328fi
21329
21330
21331       CFLAGS="$ac_save_CFLAGS"
21332       LIBS="$ac_save_LIBS"
21333  fi
21334
21335  if test "x$no_ogg" = "xdisabled" ; then
21336     { echo "$as_me:$LINENO: result: no" >&5
21337echo "${ECHO_T}no" >&6; }
21338     { { echo "$as_me:$LINENO: error: must have Ogg installed!" >&5
21339echo "$as_me: error: must have Ogg installed!" >&2;}
21340   { (exit 1); exit 1; }; }
21341  elif test "x$no_ogg" = "x" ; then
21342     { echo "$as_me:$LINENO: result: yes" >&5
21343echo "${ECHO_T}yes" >&6; }
21344     :
21345  else
21346     { echo "$as_me:$LINENO: result: no" >&5
21347echo "${ECHO_T}no" >&6; }
21348     if test -f conf.oggtest ; then
21349       :
21350     else
21351       echo "*** Could not run Ogg test program, checking why..."
21352       CFLAGS="$CFLAGS $OGG_CFLAGS"
21353       LIBS="$LIBS $OGG_LIBS"
21354       cat >conftest.$ac_ext <<_ACEOF
21355/* confdefs.h.  */
21356_ACEOF
21357cat confdefs.h >>conftest.$ac_ext
21358cat >>conftest.$ac_ext <<_ACEOF
21359/* end confdefs.h.  */
21360
21361#include <stdio.h>
21362#include <ogg/ogg.h>
21363
21364int
21365main ()
21366{
21367 return 0;
21368  ;
21369  return 0;
21370}
21371_ACEOF
21372rm -f conftest.$ac_objext conftest$ac_exeext
21373if { (ac_try="$ac_link"
21374case "(($ac_try" in
21375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21376  *) ac_try_echo=$ac_try;;
21377esac
21378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21379  (eval "$ac_link") 2>conftest.er1
21380  ac_status=$?
21381  grep -v '^ *+' conftest.er1 >conftest.err
21382  rm -f conftest.er1
21383  cat conftest.err >&5
21384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385  (exit $ac_status); } && {
21386	 test -z "$ac_c_werror_flag" ||
21387	 test ! -s conftest.err
21388       } && test -s conftest$ac_exeext &&
21389       $as_test_x conftest$ac_exeext; then
21390   echo "*** The test program compiled, but did not run. This usually means"
21391       echo "*** that the run-time linker is not finding Ogg or finding the wrong"
21392       echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
21393       echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21394       echo "*** to the installed location  Also, make sure you have run ldconfig if that"
21395       echo "*** is required on your system"
21396       echo "***"
21397       echo "*** If you have an old version installed, it is best to remove it, although"
21398       echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21399else
21400  echo "$as_me: failed program was:" >&5
21401sed 's/^/| /' conftest.$ac_ext >&5
21402
21403	 echo "*** The test program failed to compile or link. See the file config.log for the"
21404       echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
21405       echo "*** or that you have moved Ogg since it was installed."
21406fi
21407
21408rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21409      conftest$ac_exeext conftest.$ac_ext
21410       CFLAGS="$ac_save_CFLAGS"
21411       LIBS="$ac_save_LIBS"
21412     fi
21413     OGG_CFLAGS=""
21414     OGG_LIBS=""
21415     { { echo "$as_me:$LINENO: error: must have Ogg installed!" >&5
21416echo "$as_me: error: must have Ogg installed!" >&2;}
21417   { (exit 1); exit 1; }; }
21418  fi
21419
21420
21421  rm -f conf.oggtest
21422
21423  libs_save=$LIBS
21424  LIBS="$OGG_LIBS $VORBIS_LIBS"
21425  { echo "$as_me:$LINENO: checking for oggpack_writealign" >&5
21426echo $ECHO_N "checking for oggpack_writealign... $ECHO_C" >&6; }
21427if test "${ac_cv_func_oggpack_writealign+set}" = set; then
21428  echo $ECHO_N "(cached) $ECHO_C" >&6
21429else
21430  cat >conftest.$ac_ext <<_ACEOF
21431/* confdefs.h.  */
21432_ACEOF
21433cat confdefs.h >>conftest.$ac_ext
21434cat >>conftest.$ac_ext <<_ACEOF
21435/* end confdefs.h.  */
21436/* Define oggpack_writealign to an innocuous variant, in case <limits.h> declares oggpack_writealign.
21437   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21438#define oggpack_writealign innocuous_oggpack_writealign
21439
21440/* System header to define __stub macros and hopefully few prototypes,
21441    which can conflict with char oggpack_writealign (); below.
21442    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21443    <limits.h> exists even on freestanding compilers.  */
21444
21445#ifdef __STDC__
21446# include <limits.h>
21447#else
21448# include <assert.h>
21449#endif
21450
21451#undef oggpack_writealign
21452
21453/* Override any GCC internal prototype to avoid an error.
21454   Use char because int might match the return type of a GCC
21455   builtin and then its argument prototype would still apply.  */
21456#ifdef __cplusplus
21457extern "C"
21458#endif
21459char oggpack_writealign ();
21460/* The GNU C library defines this for functions which it implements
21461    to always fail with ENOSYS.  Some functions are actually named
21462    something starting with __ and the normal name is an alias.  */
21463#if defined __stub_oggpack_writealign || defined __stub___oggpack_writealign
21464choke me
21465#endif
21466
21467int
21468main ()
21469{
21470return oggpack_writealign ();
21471  ;
21472  return 0;
21473}
21474_ACEOF
21475rm -f conftest.$ac_objext conftest$ac_exeext
21476if { (ac_try="$ac_link"
21477case "(($ac_try" in
21478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21479  *) ac_try_echo=$ac_try;;
21480esac
21481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21482  (eval "$ac_link") 2>conftest.er1
21483  ac_status=$?
21484  grep -v '^ *+' conftest.er1 >conftest.err
21485  rm -f conftest.er1
21486  cat conftest.err >&5
21487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488  (exit $ac_status); } && {
21489	 test -z "$ac_c_werror_flag" ||
21490	 test ! -s conftest.err
21491       } && test -s conftest$ac_exeext &&
21492       $as_test_x conftest$ac_exeext; then
21493  ac_cv_func_oggpack_writealign=yes
21494else
21495  echo "$as_me: failed program was:" >&5
21496sed 's/^/| /' conftest.$ac_ext >&5
21497
21498	ac_cv_func_oggpack_writealign=no
21499fi
21500
21501rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21502      conftest$ac_exeext conftest.$ac_ext
21503fi
21504{ echo "$as_me:$LINENO: result: $ac_cv_func_oggpack_writealign" >&5
21505echo "${ECHO_T}$ac_cv_func_oggpack_writealign" >&6; }
21506if test $ac_cv_func_oggpack_writealign = yes; then
21507  :
21508else
21509  { { echo "$as_me:$LINENO: error: Ogg >= 1.0 required !" >&5
21510echo "$as_me: error: Ogg >= 1.0 required !" >&2;}
21511   { (exit 1); exit 1; }; }
21512fi
21513
21514  LIBS=$libs_save
21515fi
21516
21517
21518# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21519# for constant arguments.  Useless!
21520{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
21521echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
21522if test "${ac_cv_working_alloca_h+set}" = set; then
21523  echo $ECHO_N "(cached) $ECHO_C" >&6
21524else
21525  cat >conftest.$ac_ext <<_ACEOF
21526/* confdefs.h.  */
21527_ACEOF
21528cat confdefs.h >>conftest.$ac_ext
21529cat >>conftest.$ac_ext <<_ACEOF
21530/* end confdefs.h.  */
21531#include <alloca.h>
21532int
21533main ()
21534{
21535char *p = (char *) alloca (2 * sizeof (int));
21536			  if (p) return 0;
21537  ;
21538  return 0;
21539}
21540_ACEOF
21541rm -f conftest.$ac_objext conftest$ac_exeext
21542if { (ac_try="$ac_link"
21543case "(($ac_try" in
21544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21545  *) ac_try_echo=$ac_try;;
21546esac
21547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21548  (eval "$ac_link") 2>conftest.er1
21549  ac_status=$?
21550  grep -v '^ *+' conftest.er1 >conftest.err
21551  rm -f conftest.er1
21552  cat conftest.err >&5
21553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554  (exit $ac_status); } && {
21555	 test -z "$ac_c_werror_flag" ||
21556	 test ! -s conftest.err
21557       } && test -s conftest$ac_exeext &&
21558       $as_test_x conftest$ac_exeext; then
21559  ac_cv_working_alloca_h=yes
21560else
21561  echo "$as_me: failed program was:" >&5
21562sed 's/^/| /' conftest.$ac_ext >&5
21563
21564	ac_cv_working_alloca_h=no
21565fi
21566
21567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21568      conftest$ac_exeext conftest.$ac_ext
21569fi
21570{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21571echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
21572if test $ac_cv_working_alloca_h = yes; then
21573
21574cat >>confdefs.h <<\_ACEOF
21575#define HAVE_ALLOCA_H 1
21576_ACEOF
21577
21578fi
21579
21580{ echo "$as_me:$LINENO: checking for alloca" >&5
21581echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
21582if test "${ac_cv_func_alloca_works+set}" = set; then
21583  echo $ECHO_N "(cached) $ECHO_C" >&6
21584else
21585  cat >conftest.$ac_ext <<_ACEOF
21586/* confdefs.h.  */
21587_ACEOF
21588cat confdefs.h >>conftest.$ac_ext
21589cat >>conftest.$ac_ext <<_ACEOF
21590/* end confdefs.h.  */
21591#ifdef __GNUC__
21592# define alloca __builtin_alloca
21593#else
21594# ifdef _MSC_VER
21595#  include <malloc.h>
21596#  define alloca _alloca
21597# else
21598#  ifdef HAVE_ALLOCA_H
21599#   include <alloca.h>
21600#  else
21601#   ifdef _AIX
21602 #pragma alloca
21603#   else
21604#    ifndef alloca /* predefined by HP cc +Olibcalls */
21605char *alloca ();
21606#    endif
21607#   endif
21608#  endif
21609# endif
21610#endif
21611
21612int
21613main ()
21614{
21615char *p = (char *) alloca (1);
21616				    if (p) return 0;
21617  ;
21618  return 0;
21619}
21620_ACEOF
21621rm -f conftest.$ac_objext conftest$ac_exeext
21622if { (ac_try="$ac_link"
21623case "(($ac_try" in
21624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21625  *) ac_try_echo=$ac_try;;
21626esac
21627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21628  (eval "$ac_link") 2>conftest.er1
21629  ac_status=$?
21630  grep -v '^ *+' conftest.er1 >conftest.err
21631  rm -f conftest.er1
21632  cat conftest.err >&5
21633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634  (exit $ac_status); } && {
21635	 test -z "$ac_c_werror_flag" ||
21636	 test ! -s conftest.err
21637       } && test -s conftest$ac_exeext &&
21638       $as_test_x conftest$ac_exeext; then
21639  ac_cv_func_alloca_works=yes
21640else
21641  echo "$as_me: failed program was:" >&5
21642sed 's/^/| /' conftest.$ac_ext >&5
21643
21644	ac_cv_func_alloca_works=no
21645fi
21646
21647rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21648      conftest$ac_exeext conftest.$ac_ext
21649fi
21650{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21651echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
21652
21653if test $ac_cv_func_alloca_works = yes; then
21654
21655cat >>confdefs.h <<\_ACEOF
21656#define HAVE_ALLOCA 1
21657_ACEOF
21658
21659else
21660  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21661# that cause trouble.  Some versions do not even contain alloca or
21662# contain a buggy version.  If you still want to use their alloca,
21663# use ar to extract alloca.o from them instead of compiling alloca.c.
21664
21665ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21666
21667cat >>confdefs.h <<\_ACEOF
21668#define C_ALLOCA 1
21669_ACEOF
21670
21671
21672{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21673echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
21674if test "${ac_cv_os_cray+set}" = set; then
21675  echo $ECHO_N "(cached) $ECHO_C" >&6
21676else
21677  cat >conftest.$ac_ext <<_ACEOF
21678/* confdefs.h.  */
21679_ACEOF
21680cat confdefs.h >>conftest.$ac_ext
21681cat >>conftest.$ac_ext <<_ACEOF
21682/* end confdefs.h.  */
21683#if defined CRAY && ! defined CRAY2
21684webecray
21685#else
21686wenotbecray
21687#endif
21688
21689_ACEOF
21690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21691  $EGREP "webecray" >/dev/null 2>&1; then
21692  ac_cv_os_cray=yes
21693else
21694  ac_cv_os_cray=no
21695fi
21696rm -f conftest*
21697
21698fi
21699{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21700echo "${ECHO_T}$ac_cv_os_cray" >&6; }
21701if test $ac_cv_os_cray = yes; then
21702  for ac_func in _getb67 GETB67 getb67; do
21703    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21704{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21705echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21706if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21707  echo $ECHO_N "(cached) $ECHO_C" >&6
21708else
21709  cat >conftest.$ac_ext <<_ACEOF
21710/* confdefs.h.  */
21711_ACEOF
21712cat confdefs.h >>conftest.$ac_ext
21713cat >>conftest.$ac_ext <<_ACEOF
21714/* end confdefs.h.  */
21715/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21716   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21717#define $ac_func innocuous_$ac_func
21718
21719/* System header to define __stub macros and hopefully few prototypes,
21720    which can conflict with char $ac_func (); below.
21721    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21722    <limits.h> exists even on freestanding compilers.  */
21723
21724#ifdef __STDC__
21725# include <limits.h>
21726#else
21727# include <assert.h>
21728#endif
21729
21730#undef $ac_func
21731
21732/* Override any GCC internal prototype to avoid an error.
21733   Use char because int might match the return type of a GCC
21734   builtin and then its argument prototype would still apply.  */
21735#ifdef __cplusplus
21736extern "C"
21737#endif
21738char $ac_func ();
21739/* The GNU C library defines this for functions which it implements
21740    to always fail with ENOSYS.  Some functions are actually named
21741    something starting with __ and the normal name is an alias.  */
21742#if defined __stub_$ac_func || defined __stub___$ac_func
21743choke me
21744#endif
21745
21746int
21747main ()
21748{
21749return $ac_func ();
21750  ;
21751  return 0;
21752}
21753_ACEOF
21754rm -f conftest.$ac_objext conftest$ac_exeext
21755if { (ac_try="$ac_link"
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_link") 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_exeext &&
21771       $as_test_x conftest$ac_exeext; then
21772  eval "$as_ac_var=yes"
21773else
21774  echo "$as_me: failed program was:" >&5
21775sed 's/^/| /' conftest.$ac_ext >&5
21776
21777	eval "$as_ac_var=no"
21778fi
21779
21780rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21781      conftest$ac_exeext conftest.$ac_ext
21782fi
21783ac_res=`eval echo '${'$as_ac_var'}'`
21784	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21785echo "${ECHO_T}$ac_res" >&6; }
21786if test `eval echo '${'$as_ac_var'}'` = yes; then
21787
21788cat >>confdefs.h <<_ACEOF
21789#define CRAY_STACKSEG_END $ac_func
21790_ACEOF
21791
21792    break
21793fi
21794
21795  done
21796fi
21797
21798{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21799echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
21800if test "${ac_cv_c_stack_direction+set}" = set; then
21801  echo $ECHO_N "(cached) $ECHO_C" >&6
21802else
21803  if test "$cross_compiling" = yes; then
21804  ac_cv_c_stack_direction=0
21805else
21806  cat >conftest.$ac_ext <<_ACEOF
21807/* confdefs.h.  */
21808_ACEOF
21809cat confdefs.h >>conftest.$ac_ext
21810cat >>conftest.$ac_ext <<_ACEOF
21811/* end confdefs.h.  */
21812$ac_includes_default
21813int
21814find_stack_direction ()
21815{
21816  static char *addr = 0;
21817  auto char dummy;
21818  if (addr == 0)
21819    {
21820      addr = &dummy;
21821      return find_stack_direction ();
21822    }
21823  else
21824    return (&dummy > addr) ? 1 : -1;
21825}
21826
21827int
21828main ()
21829{
21830  return find_stack_direction () < 0;
21831}
21832_ACEOF
21833rm -f conftest$ac_exeext
21834if { (ac_try="$ac_link"
21835case "(($ac_try" in
21836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837  *) ac_try_echo=$ac_try;;
21838esac
21839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840  (eval "$ac_link") 2>&5
21841  ac_status=$?
21842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21844  { (case "(($ac_try" in
21845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846  *) ac_try_echo=$ac_try;;
21847esac
21848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849  (eval "$ac_try") 2>&5
21850  ac_status=$?
21851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852  (exit $ac_status); }; }; then
21853  ac_cv_c_stack_direction=1
21854else
21855  echo "$as_me: program exited with status $ac_status" >&5
21856echo "$as_me: failed program was:" >&5
21857sed 's/^/| /' conftest.$ac_ext >&5
21858
21859( exit $ac_status )
21860ac_cv_c_stack_direction=-1
21861fi
21862rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21863fi
21864
21865
21866fi
21867{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21868echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
21869
21870cat >>confdefs.h <<_ACEOF
21871#define STACK_DIRECTION $ac_cv_c_stack_direction
21872_ACEOF
21873
21874
21875fi
21876
21877{ echo "$as_me:$LINENO: checking for working memcmp" >&5
21878echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
21879if test "${ac_cv_func_memcmp_working+set}" = set; then
21880  echo $ECHO_N "(cached) $ECHO_C" >&6
21881else
21882  if test "$cross_compiling" = yes; then
21883  ac_cv_func_memcmp_working=no
21884else
21885  cat >conftest.$ac_ext <<_ACEOF
21886/* confdefs.h.  */
21887_ACEOF
21888cat confdefs.h >>conftest.$ac_ext
21889cat >>conftest.$ac_ext <<_ACEOF
21890/* end confdefs.h.  */
21891$ac_includes_default
21892int
21893main ()
21894{
21895
21896  /* Some versions of memcmp are not 8-bit clean.  */
21897  char c0 = '\100', c1 = '\200', c2 = '\201';
21898  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21899    return 1;
21900
21901  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21902     or more and with at least one buffer not starting on a 4-byte boundary.
21903     William Lewis provided this test program.   */
21904  {
21905    char foo[21];
21906    char bar[21];
21907    int i;
21908    for (i = 0; i < 4; i++)
21909      {
21910	char *a = foo + i;
21911	char *b = bar + i;
21912	strcpy (a, "--------01111111");
21913	strcpy (b, "--------10000000");
21914	if (memcmp (a, b, 16) >= 0)
21915	  return 1;
21916      }
21917    return 0;
21918  }
21919
21920  ;
21921  return 0;
21922}
21923_ACEOF
21924rm -f conftest$ac_exeext
21925if { (ac_try="$ac_link"
21926case "(($ac_try" in
21927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21928  *) ac_try_echo=$ac_try;;
21929esac
21930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21931  (eval "$ac_link") 2>&5
21932  ac_status=$?
21933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21935  { (case "(($ac_try" in
21936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21937  *) ac_try_echo=$ac_try;;
21938esac
21939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21940  (eval "$ac_try") 2>&5
21941  ac_status=$?
21942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943  (exit $ac_status); }; }; then
21944  ac_cv_func_memcmp_working=yes
21945else
21946  echo "$as_me: program exited with status $ac_status" >&5
21947echo "$as_me: failed program was:" >&5
21948sed 's/^/| /' conftest.$ac_ext >&5
21949
21950( exit $ac_status )
21951ac_cv_func_memcmp_working=no
21952fi
21953rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21954fi
21955
21956
21957fi
21958{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21959echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
21960test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21961  *" memcmp.$ac_objext "* ) ;;
21962  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21963 ;;
21964esac
21965
21966
21967
21968
21969
21970
21971
21972
21973
21974
21975
21976ac_config_files="$ac_config_files Makefile m4/Makefile lib/Makefile lib/modes/Makefile lib/books/Makefile lib/books/coupled/Makefile lib/books/uncoupled/Makefile lib/books/floor/Makefile doc/Makefile doc/vorbisfile/Makefile doc/vorbisenc/Makefile include/Makefile include/vorbis/Makefile examples/Makefile test/Makefile vq/Makefile libvorbis.spec vorbis.pc vorbisenc.pc vorbisfile.pc vorbis-uninstalled.pc vorbisenc-uninstalled.pc vorbisfile-uninstalled.pc"
21977
21978cat >confcache <<\_ACEOF
21979# This file is a shell script that caches the results of configure
21980# tests run on this system so they can be shared between configure
21981# scripts and configure runs, see configure's option --config-cache.
21982# It is not useful on other systems.  If it contains results you don't
21983# want to keep, you may remove or edit it.
21984#
21985# config.status only pays attention to the cache file if you give it
21986# the --recheck option to rerun configure.
21987#
21988# `ac_cv_env_foo' variables (set or unset) will be overridden when
21989# loading this file, other *unset* `ac_cv_foo' will be assigned the
21990# following values.
21991
21992_ACEOF
21993
21994# The following way of writing the cache mishandles newlines in values,
21995# but we know of no workaround that is simple, portable, and efficient.
21996# So, we kill variables containing newlines.
21997# Ultrix sh set writes to stderr and can't be redirected directly,
21998# and sets the high bit in the cache file unless we assign to the vars.
21999(
22000  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22001    eval ac_val=\$$ac_var
22002    case $ac_val in #(
22003    *${as_nl}*)
22004      case $ac_var in #(
22005      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22006echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22007      esac
22008      case $ac_var in #(
22009      _ | IFS | as_nl) ;; #(
22010      *) $as_unset $ac_var ;;
22011      esac ;;
22012    esac
22013  done
22014
22015  (set) 2>&1 |
22016    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22017    *${as_nl}ac_space=\ *)
22018      # `set' does not quote correctly, so add quotes (double-quote
22019      # substitution turns \\\\ into \\, and sed turns \\ into \).
22020      sed -n \
22021	"s/'/'\\\\''/g;
22022	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22023      ;; #(
22024    *)
22025      # `set' quotes correctly as required by POSIX, so do not add quotes.
22026      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22027      ;;
22028    esac |
22029    sort
22030) |
22031  sed '
22032     /^ac_cv_env_/b end
22033     t clear
22034     :clear
22035     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22036     t end
22037     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22038     :end' >>confcache
22039if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22040  if test -w "$cache_file"; then
22041    test "x$cache_file" != "x/dev/null" &&
22042      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22043echo "$as_me: updating cache $cache_file" >&6;}
22044    cat confcache >$cache_file
22045  else
22046    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22047echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22048  fi
22049fi
22050rm -f confcache
22051
22052test "x$prefix" = xNONE && prefix=$ac_default_prefix
22053# Let make expand exec_prefix.
22054test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22055
22056DEFS=-DHAVE_CONFIG_H
22057
22058ac_libobjs=
22059ac_ltlibobjs=
22060for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22061  # 1. Remove the extension, and $U if already installed.
22062  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22063  ac_i=`echo "$ac_i" | sed "$ac_script"`
22064  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22065  #    will be set to the directory where LIBOBJS objects are built.
22066  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22067  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22068done
22069LIBOBJS=$ac_libobjs
22070
22071LTLIBOBJS=$ac_ltlibobjs
22072
22073
22074if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22075  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22076Usually this means the macro was only invoked conditionally." >&5
22077echo "$as_me: error: conditional \"AMDEP\" was never defined.
22078Usually this means the macro was only invoked conditionally." >&2;}
22079   { (exit 1); exit 1; }; }
22080fi
22081if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22082  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22083Usually this means the macro was only invoked conditionally." >&5
22084echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22085Usually this means the macro was only invoked conditionally." >&2;}
22086   { (exit 1); exit 1; }; }
22087fi
22088if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22089  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22090Usually this means the macro was only invoked conditionally." >&5
22091echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22092Usually this means the macro was only invoked conditionally." >&2;}
22093   { (exit 1); exit 1; }; }
22094fi
22095if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
22096  { { echo "$as_me:$LINENO: error: conditional \"BUILD_DOCS\" was never defined.
22097Usually this means the macro was only invoked conditionally." >&5
22098echo "$as_me: error: conditional \"BUILD_DOCS\" was never defined.
22099Usually this means the macro was only invoked conditionally." >&2;}
22100   { (exit 1); exit 1; }; }
22101fi
22102
22103: ${CONFIG_STATUS=./config.status}
22104ac_clean_files_save=$ac_clean_files
22105ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22106{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22107echo "$as_me: creating $CONFIG_STATUS" >&6;}
22108cat >$CONFIG_STATUS <<_ACEOF
22109#! $SHELL
22110# Generated by $as_me.
22111# Run this file to recreate the current configuration.
22112# Compiler output produced by configure, useful for debugging
22113# configure, is in config.log if it exists.
22114
22115debug=false
22116ac_cs_recheck=false
22117ac_cs_silent=false
22118SHELL=\${CONFIG_SHELL-$SHELL}
22119_ACEOF
22120
22121cat >>$CONFIG_STATUS <<\_ACEOF
22122## --------------------- ##
22123## M4sh Initialization.  ##
22124## --------------------- ##
22125
22126# Be more Bourne compatible
22127DUALCASE=1; export DUALCASE # for MKS sh
22128if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22129  emulate sh
22130  NULLCMD=:
22131  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22132  # is contrary to our usage.  Disable this feature.
22133  alias -g '${1+"$@"}'='"$@"'
22134  setopt NO_GLOB_SUBST
22135else
22136  case `(set -o) 2>/dev/null` in
22137  *posix*) set -o posix ;;
22138esac
22139
22140fi
22141
22142
22143
22144
22145# PATH needs CR
22146# Avoid depending upon Character Ranges.
22147as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22148as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22149as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22150as_cr_digits='0123456789'
22151as_cr_alnum=$as_cr_Letters$as_cr_digits
22152
22153# The user is always right.
22154if test "${PATH_SEPARATOR+set}" != set; then
22155  echo "#! /bin/sh" >conf$$.sh
22156  echo  "exit 0"   >>conf$$.sh
22157  chmod +x conf$$.sh
22158  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22159    PATH_SEPARATOR=';'
22160  else
22161    PATH_SEPARATOR=:
22162  fi
22163  rm -f conf$$.sh
22164fi
22165
22166# Support unset when possible.
22167if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22168  as_unset=unset
22169else
22170  as_unset=false
22171fi
22172
22173
22174# IFS
22175# We need space, tab and new line, in precisely that order.  Quoting is
22176# there to prevent editors from complaining about space-tab.
22177# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22178# splitting by setting IFS to empty value.)
22179as_nl='
22180'
22181IFS=" ""	$as_nl"
22182
22183# Find who we are.  Look in the path if we contain no directory separator.
22184case $0 in
22185  *[\\/]* ) as_myself=$0 ;;
22186  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22187for as_dir in $PATH
22188do
22189  IFS=$as_save_IFS
22190  test -z "$as_dir" && as_dir=.
22191  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22192done
22193IFS=$as_save_IFS
22194
22195     ;;
22196esac
22197# We did not find ourselves, most probably we were run as `sh COMMAND'
22198# in which case we are not to be found in the path.
22199if test "x$as_myself" = x; then
22200  as_myself=$0
22201fi
22202if test ! -f "$as_myself"; then
22203  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22204  { (exit 1); exit 1; }
22205fi
22206
22207# Work around bugs in pre-3.0 UWIN ksh.
22208for as_var in ENV MAIL MAILPATH
22209do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22210done
22211PS1='$ '
22212PS2='> '
22213PS4='+ '
22214
22215# NLS nuisances.
22216for as_var in \
22217  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22218  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22219  LC_TELEPHONE LC_TIME
22220do
22221  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22222    eval $as_var=C; export $as_var
22223  else
22224    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22225  fi
22226done
22227
22228# Required to use basename.
22229if expr a : '\(a\)' >/dev/null 2>&1 &&
22230   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22231  as_expr=expr
22232else
22233  as_expr=false
22234fi
22235
22236if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22237  as_basename=basename
22238else
22239  as_basename=false
22240fi
22241
22242
22243# Name of the executable.
22244as_me=`$as_basename -- "$0" ||
22245$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22246	 X"$0" : 'X\(//\)$' \| \
22247	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22248echo X/"$0" |
22249    sed '/^.*\/\([^/][^/]*\)\/*$/{
22250	    s//\1/
22251	    q
22252	  }
22253	  /^X\/\(\/\/\)$/{
22254	    s//\1/
22255	    q
22256	  }
22257	  /^X\/\(\/\).*/{
22258	    s//\1/
22259	    q
22260	  }
22261	  s/.*/./; q'`
22262
22263# CDPATH.
22264$as_unset CDPATH
22265
22266
22267
22268  as_lineno_1=$LINENO
22269  as_lineno_2=$LINENO
22270  test "x$as_lineno_1" != "x$as_lineno_2" &&
22271  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22272
22273  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22274  # uniformly replaced by the line number.  The first 'sed' inserts a
22275  # line-number line after each line using $LINENO; the second 'sed'
22276  # does the real work.  The second script uses 'N' to pair each
22277  # line-number line with the line containing $LINENO, and appends
22278  # trailing '-' during substitution so that $LINENO is not a special
22279  # case at line end.
22280  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22281  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22282  # E. McMahon (1931-1989) for sed's syntax.  :-)
22283  sed -n '
22284    p
22285    /[$]LINENO/=
22286  ' <$as_myself |
22287    sed '
22288      s/[$]LINENO.*/&-/
22289      t lineno
22290      b
22291      :lineno
22292      N
22293      :loop
22294      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22295      t loop
22296      s/-\n.*//
22297    ' >$as_me.lineno &&
22298  chmod +x "$as_me.lineno" ||
22299    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22300   { (exit 1); exit 1; }; }
22301
22302  # Don't try to exec as it changes $[0], causing all sort of problems
22303  # (the dirname of $[0] is not the place where we might find the
22304  # original and so on.  Autoconf is especially sensitive to this).
22305  . "./$as_me.lineno"
22306  # Exit status is that of the last command.
22307  exit
22308}
22309
22310
22311if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22312  as_dirname=dirname
22313else
22314  as_dirname=false
22315fi
22316
22317ECHO_C= ECHO_N= ECHO_T=
22318case `echo -n x` in
22319-n*)
22320  case `echo 'x\c'` in
22321  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22322  *)   ECHO_C='\c';;
22323  esac;;
22324*)
22325  ECHO_N='-n';;
22326esac
22327
22328if expr a : '\(a\)' >/dev/null 2>&1 &&
22329   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22330  as_expr=expr
22331else
22332  as_expr=false
22333fi
22334
22335rm -f conf$$ conf$$.exe conf$$.file
22336if test -d conf$$.dir; then
22337  rm -f conf$$.dir/conf$$.file
22338else
22339  rm -f conf$$.dir
22340  mkdir conf$$.dir
22341fi
22342echo >conf$$.file
22343if ln -s conf$$.file conf$$ 2>/dev/null; then
22344  as_ln_s='ln -s'
22345  # ... but there are two gotchas:
22346  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22347  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22348  # In both cases, we have to default to `cp -p'.
22349  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22350    as_ln_s='cp -p'
22351elif ln conf$$.file conf$$ 2>/dev/null; then
22352  as_ln_s=ln
22353else
22354  as_ln_s='cp -p'
22355fi
22356rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22357rmdir conf$$.dir 2>/dev/null
22358
22359if mkdir -p . 2>/dev/null; then
22360  as_mkdir_p=:
22361else
22362  test -d ./-p && rmdir ./-p
22363  as_mkdir_p=false
22364fi
22365
22366if test -x / >/dev/null 2>&1; then
22367  as_test_x='test -x'
22368else
22369  if ls -dL / >/dev/null 2>&1; then
22370    as_ls_L_option=L
22371  else
22372    as_ls_L_option=
22373  fi
22374  as_test_x='
22375    eval sh -c '\''
22376      if test -d "$1"; then
22377        test -d "$1/.";
22378      else
22379	case $1 in
22380        -*)set "./$1";;
22381	esac;
22382	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22383	???[sx]*):;;*)false;;esac;fi
22384    '\'' sh
22385  '
22386fi
22387as_executable_p=$as_test_x
22388
22389# Sed expression to map a string onto a valid CPP name.
22390as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22391
22392# Sed expression to map a string onto a valid variable name.
22393as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22394
22395
22396exec 6>&1
22397
22398# Save the log message, to keep $[0] and so on meaningful, and to
22399# report actual input values of CONFIG_FILES etc. instead of their
22400# values after options handling.
22401ac_log="
22402This file was extended by libvorbis $as_me 1.2.3, which was
22403generated by GNU Autoconf 2.61.  Invocation command line was
22404
22405  CONFIG_FILES    = $CONFIG_FILES
22406  CONFIG_HEADERS  = $CONFIG_HEADERS
22407  CONFIG_LINKS    = $CONFIG_LINKS
22408  CONFIG_COMMANDS = $CONFIG_COMMANDS
22409  $ $0 $@
22410
22411on `(hostname || uname -n) 2>/dev/null | sed 1q`
22412"
22413
22414_ACEOF
22415
22416cat >>$CONFIG_STATUS <<_ACEOF
22417# Files that config.status was made for.
22418config_files="$ac_config_files"
22419config_headers="$ac_config_headers"
22420config_commands="$ac_config_commands"
22421
22422_ACEOF
22423
22424cat >>$CONFIG_STATUS <<\_ACEOF
22425ac_cs_usage="\
22426\`$as_me' instantiates files from templates according to the
22427current configuration.
22428
22429Usage: $0 [OPTIONS] [FILE]...
22430
22431  -h, --help       print this help, then exit
22432  -V, --version    print version number and configuration settings, then exit
22433  -q, --quiet      do not print progress messages
22434  -d, --debug      don't remove temporary files
22435      --recheck    update $as_me by reconfiguring in the same conditions
22436  --file=FILE[:TEMPLATE]
22437		   instantiate the configuration file FILE
22438  --header=FILE[:TEMPLATE]
22439		   instantiate the configuration header FILE
22440
22441Configuration files:
22442$config_files
22443
22444Configuration headers:
22445$config_headers
22446
22447Configuration commands:
22448$config_commands
22449
22450Report bugs to <bug-autoconf@gnu.org>."
22451
22452_ACEOF
22453cat >>$CONFIG_STATUS <<_ACEOF
22454ac_cs_version="\\
22455libvorbis config.status 1.2.3
22456configured by $0, generated by GNU Autoconf 2.61,
22457  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22458
22459Copyright (C) 2006 Free Software Foundation, Inc.
22460This config.status script is free software; the Free Software Foundation
22461gives unlimited permission to copy, distribute and modify it."
22462
22463ac_pwd='$ac_pwd'
22464srcdir='$srcdir'
22465INSTALL='$INSTALL'
22466MKDIR_P='$MKDIR_P'
22467_ACEOF
22468
22469cat >>$CONFIG_STATUS <<\_ACEOF
22470# If no file are specified by the user, then we need to provide default
22471# value.  By we need to know if files were specified by the user.
22472ac_need_defaults=:
22473while test $# != 0
22474do
22475  case $1 in
22476  --*=*)
22477    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22478    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22479    ac_shift=:
22480    ;;
22481  *)
22482    ac_option=$1
22483    ac_optarg=$2
22484    ac_shift=shift
22485    ;;
22486  esac
22487
22488  case $ac_option in
22489  # Handling of the options.
22490  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22491    ac_cs_recheck=: ;;
22492  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22493    echo "$ac_cs_version"; exit ;;
22494  --debug | --debu | --deb | --de | --d | -d )
22495    debug=: ;;
22496  --file | --fil | --fi | --f )
22497    $ac_shift
22498    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22499    ac_need_defaults=false;;
22500  --header | --heade | --head | --hea )
22501    $ac_shift
22502    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22503    ac_need_defaults=false;;
22504  --he | --h)
22505    # Conflict between --help and --header
22506    { echo "$as_me: error: ambiguous option: $1
22507Try \`$0 --help' for more information." >&2
22508   { (exit 1); exit 1; }; };;
22509  --help | --hel | -h )
22510    echo "$ac_cs_usage"; exit ;;
22511  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22512  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22513    ac_cs_silent=: ;;
22514
22515  # This is an error.
22516  -*) { echo "$as_me: error: unrecognized option: $1
22517Try \`$0 --help' for more information." >&2
22518   { (exit 1); exit 1; }; } ;;
22519
22520  *) ac_config_targets="$ac_config_targets $1"
22521     ac_need_defaults=false ;;
22522
22523  esac
22524  shift
22525done
22526
22527ac_configure_extra_args=
22528
22529if $ac_cs_silent; then
22530  exec 6>/dev/null
22531  ac_configure_extra_args="$ac_configure_extra_args --silent"
22532fi
22533
22534_ACEOF
22535cat >>$CONFIG_STATUS <<_ACEOF
22536if \$ac_cs_recheck; then
22537  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22538  CONFIG_SHELL=$SHELL
22539  export CONFIG_SHELL
22540  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22541fi
22542
22543_ACEOF
22544cat >>$CONFIG_STATUS <<\_ACEOF
22545exec 5>>config.log
22546{
22547  echo
22548  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22549## Running $as_me. ##
22550_ASBOX
22551  echo "$ac_log"
22552} >&5
22553
22554_ACEOF
22555cat >>$CONFIG_STATUS <<_ACEOF
22556#
22557# INIT-COMMANDS
22558#
22559AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22560
22561_ACEOF
22562
22563cat >>$CONFIG_STATUS <<\_ACEOF
22564
22565# Handling of arguments.
22566for ac_config_target in $ac_config_targets
22567do
22568  case $ac_config_target in
22569    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22570    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22571    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22572    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
22573    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
22574    "lib/modes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/modes/Makefile" ;;
22575    "lib/books/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/Makefile" ;;
22576    "lib/books/coupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/coupled/Makefile" ;;
22577    "lib/books/uncoupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/uncoupled/Makefile" ;;
22578    "lib/books/floor/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/floor/Makefile" ;;
22579    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22580    "doc/vorbisfile/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisfile/Makefile" ;;
22581    "doc/vorbisenc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisenc/Makefile" ;;
22582    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22583    "include/vorbis/Makefile") CONFIG_FILES="$CONFIG_FILES include/vorbis/Makefile" ;;
22584    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
22585    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
22586    "vq/Makefile") CONFIG_FILES="$CONFIG_FILES vq/Makefile" ;;
22587    "libvorbis.spec") CONFIG_FILES="$CONFIG_FILES libvorbis.spec" ;;
22588    "vorbis.pc") CONFIG_FILES="$CONFIG_FILES vorbis.pc" ;;
22589    "vorbisenc.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc.pc" ;;
22590    "vorbisfile.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile.pc" ;;
22591    "vorbis-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbis-uninstalled.pc" ;;
22592    "vorbisenc-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc-uninstalled.pc" ;;
22593    "vorbisfile-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile-uninstalled.pc" ;;
22594
22595  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22596echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22597   { (exit 1); exit 1; }; };;
22598  esac
22599done
22600
22601
22602# If the user did not use the arguments to specify the items to instantiate,
22603# then the envvar interface is used.  Set only those that are not.
22604# We use the long form for the default assignment because of an extremely
22605# bizarre bug on SunOS 4.1.3.
22606if $ac_need_defaults; then
22607  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22608  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22609  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22610fi
22611
22612# Have a temporary directory for convenience.  Make it in the build tree
22613# simply because there is no reason against having it here, and in addition,
22614# creating and moving files from /tmp can sometimes cause problems.
22615# Hook for its removal unless debugging.
22616# Note that there is a small window in which the directory will not be cleaned:
22617# after its creation but before its name has been assigned to `$tmp'.
22618$debug ||
22619{
22620  tmp=
22621  trap 'exit_status=$?
22622  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22623' 0
22624  trap '{ (exit 1); exit 1; }' 1 2 13 15
22625}
22626# Create a (secure) tmp directory for tmp files.
22627
22628{
22629  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22630  test -n "$tmp" && test -d "$tmp"
22631}  ||
22632{
22633  tmp=./conf$$-$RANDOM
22634  (umask 077 && mkdir "$tmp")
22635} ||
22636{
22637   echo "$me: cannot create a temporary directory in ." >&2
22638   { (exit 1); exit 1; }
22639}
22640
22641#
22642# Set up the sed scripts for CONFIG_FILES section.
22643#
22644
22645# No need to generate the scripts if there are no CONFIG_FILES.
22646# This happens for instance when ./config.status config.h
22647if test -n "$CONFIG_FILES"; then
22648
22649_ACEOF
22650
22651
22652
22653ac_delim='%!_!# '
22654for ac_last_try in false false false false false :; do
22655  cat >conf$$subs.sed <<_ACEOF
22656SHELL!$SHELL$ac_delim
22657PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22658PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22659PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22660PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22661PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22662PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22663exec_prefix!$exec_prefix$ac_delim
22664prefix!$prefix$ac_delim
22665program_transform_name!$program_transform_name$ac_delim
22666bindir!$bindir$ac_delim
22667sbindir!$sbindir$ac_delim
22668libexecdir!$libexecdir$ac_delim
22669datarootdir!$datarootdir$ac_delim
22670datadir!$datadir$ac_delim
22671sysconfdir!$sysconfdir$ac_delim
22672sharedstatedir!$sharedstatedir$ac_delim
22673localstatedir!$localstatedir$ac_delim
22674includedir!$includedir$ac_delim
22675oldincludedir!$oldincludedir$ac_delim
22676docdir!$docdir$ac_delim
22677infodir!$infodir$ac_delim
22678htmldir!$htmldir$ac_delim
22679dvidir!$dvidir$ac_delim
22680pdfdir!$pdfdir$ac_delim
22681psdir!$psdir$ac_delim
22682libdir!$libdir$ac_delim
22683localedir!$localedir$ac_delim
22684mandir!$mandir$ac_delim
22685DEFS!$DEFS$ac_delim
22686ECHO_C!$ECHO_C$ac_delim
22687ECHO_N!$ECHO_N$ac_delim
22688ECHO_T!$ECHO_T$ac_delim
22689LIBS!$LIBS$ac_delim
22690build_alias!$build_alias$ac_delim
22691host_alias!$host_alias$ac_delim
22692target_alias!$target_alias$ac_delim
22693build!$build$ac_delim
22694build_cpu!$build_cpu$ac_delim
22695build_vendor!$build_vendor$ac_delim
22696build_os!$build_os$ac_delim
22697host!$host$ac_delim
22698host_cpu!$host_cpu$ac_delim
22699host_vendor!$host_vendor$ac_delim
22700host_os!$host_os$ac_delim
22701target!$target$ac_delim
22702target_cpu!$target_cpu$ac_delim
22703target_vendor!$target_vendor$ac_delim
22704target_os!$target_os$ac_delim
22705INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22706INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22707INSTALL_DATA!$INSTALL_DATA$ac_delim
22708am__isrc!$am__isrc$ac_delim
22709CYGPATH_W!$CYGPATH_W$ac_delim
22710PACKAGE!$PACKAGE$ac_delim
22711VERSION!$VERSION$ac_delim
22712ACLOCAL!$ACLOCAL$ac_delim
22713AUTOCONF!$AUTOCONF$ac_delim
22714AUTOMAKE!$AUTOMAKE$ac_delim
22715AUTOHEADER!$AUTOHEADER$ac_delim
22716MAKEINFO!$MAKEINFO$ac_delim
22717install_sh!$install_sh$ac_delim
22718STRIP!$STRIP$ac_delim
22719INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22720mkdir_p!$mkdir_p$ac_delim
22721AWK!$AWK$ac_delim
22722SET_MAKE!$SET_MAKE$ac_delim
22723am__leading_dot!$am__leading_dot$ac_delim
22724AMTAR!$AMTAR$ac_delim
22725am__tar!$am__tar$ac_delim
22726am__untar!$am__untar$ac_delim
22727ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
22728V_LIB_CURRENT!$V_LIB_CURRENT$ac_delim
22729V_LIB_REVISION!$V_LIB_REVISION$ac_delim
22730V_LIB_AGE!$V_LIB_AGE$ac_delim
22731VF_LIB_CURRENT!$VF_LIB_CURRENT$ac_delim
22732VF_LIB_REVISION!$VF_LIB_REVISION$ac_delim
22733VF_LIB_AGE!$VF_LIB_AGE$ac_delim
22734VE_LIB_CURRENT!$VE_LIB_CURRENT$ac_delim
22735VE_LIB_REVISION!$VE_LIB_REVISION$ac_delim
22736VE_LIB_AGE!$VE_LIB_AGE$ac_delim
22737CC!$CC$ac_delim
22738CFLAGS!$CFLAGS$ac_delim
22739LDFLAGS!$LDFLAGS$ac_delim
22740CPPFLAGS!$CPPFLAGS$ac_delim
22741ac_ct_CC!$ac_ct_CC$ac_delim
22742EXEEXT!$EXEEXT$ac_delim
22743OBJEXT!$OBJEXT$ac_delim
22744DEPDIR!$DEPDIR$ac_delim
22745am__include!$am__include$ac_delim
22746am__quote!$am__quote$ac_delim
22747AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22748AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22749AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22750CCDEPMODE!$CCDEPMODE$ac_delim
22751am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22752am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22753_ACEOF
22754
22755  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22756    break
22757  elif $ac_last_try; then
22758    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22759echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22760   { (exit 1); exit 1; }; }
22761  else
22762    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22763  fi
22764done
22765
22766ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22767if test -n "$ac_eof"; then
22768  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22769  ac_eof=`expr $ac_eof + 1`
22770fi
22771
22772cat >>$CONFIG_STATUS <<_ACEOF
22773cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22774/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22775_ACEOF
22776sed '
22777s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22778s/^/s,@/; s/!/@,|#_!!_#|/
22779:n
22780t n
22781s/'"$ac_delim"'$/,g/; t
22782s/$/\\/; p
22783N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22784' >>$CONFIG_STATUS <conf$$subs.sed
22785rm -f conf$$subs.sed
22786cat >>$CONFIG_STATUS <<_ACEOF
22787CEOF$ac_eof
22788_ACEOF
22789
22790
22791ac_delim='%!_!# '
22792for ac_last_try in false false false false false :; do
22793  cat >conf$$subs.sed <<_ACEOF
22794CPP!$CPP$ac_delim
22795SED!$SED$ac_delim
22796GREP!$GREP$ac_delim
22797EGREP!$EGREP$ac_delim
22798LN_S!$LN_S$ac_delim
22799ECHO!$ECHO$ac_delim
22800AR!$AR$ac_delim
22801RANLIB!$RANLIB$ac_delim
22802DSYMUTIL!$DSYMUTIL$ac_delim
22803NMEDIT!$NMEDIT$ac_delim
22804DLLTOOL!$DLLTOOL$ac_delim
22805AS!$AS$ac_delim
22806OBJDUMP!$OBJDUMP$ac_delim
22807CXX!$CXX$ac_delim
22808CXXFLAGS!$CXXFLAGS$ac_delim
22809ac_ct_CXX!$ac_ct_CXX$ac_delim
22810CXXDEPMODE!$CXXDEPMODE$ac_delim
22811am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22812am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22813CXXCPP!$CXXCPP$ac_delim
22814F77!$F77$ac_delim
22815FFLAGS!$FFLAGS$ac_delim
22816ac_ct_F77!$ac_ct_F77$ac_delim
22817LIBTOOL!$LIBTOOL$ac_delim
22818PDFLATEX!$PDFLATEX$ac_delim
22819HTLATEX!$HTLATEX$ac_delim
22820BUILD_DOCS_TRUE!$BUILD_DOCS_TRUE$ac_delim
22821BUILD_DOCS_FALSE!$BUILD_DOCS_FALSE$ac_delim
22822PKG_CONFIG!$PKG_CONFIG$ac_delim
22823OGG_CFLAGS!$OGG_CFLAGS$ac_delim
22824OGG_LIBS!$OGG_LIBS$ac_delim
22825ALLOCA!$ALLOCA$ac_delim
22826LIBOBJS!$LIBOBJS$ac_delim
22827VORBIS_LIBS!$VORBIS_LIBS$ac_delim
22828DEBUG!$DEBUG$ac_delim
22829PROFILE!$PROFILE$ac_delim
22830pthread_lib!$pthread_lib$ac_delim
22831LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
22832LTLIBOBJS!$LTLIBOBJS$ac_delim
22833_ACEOF
22834
22835  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 39; then
22836    break
22837  elif $ac_last_try; then
22838    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22839echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22840   { (exit 1); exit 1; }; }
22841  else
22842    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22843  fi
22844done
22845
22846ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22847if test -n "$ac_eof"; then
22848  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22849  ac_eof=`expr $ac_eof + 1`
22850fi
22851
22852cat >>$CONFIG_STATUS <<_ACEOF
22853cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22854/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22855_ACEOF
22856sed '
22857s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22858s/^/s,@/; s/!/@,|#_!!_#|/
22859:n
22860t n
22861s/'"$ac_delim"'$/,g/; t
22862s/$/\\/; p
22863N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22864' >>$CONFIG_STATUS <conf$$subs.sed
22865rm -f conf$$subs.sed
22866cat >>$CONFIG_STATUS <<_ACEOF
22867:end
22868s/|#_!!_#|//g
22869CEOF$ac_eof
22870_ACEOF
22871
22872
22873# VPATH may cause trouble with some makes, so we remove $(srcdir),
22874# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22875# trailing colons and then remove the whole line if VPATH becomes empty
22876# (actually we leave an empty line to preserve line numbers).
22877if test "x$srcdir" = x.; then
22878  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22879s/:*\$(srcdir):*/:/
22880s/:*\${srcdir}:*/:/
22881s/:*@srcdir@:*/:/
22882s/^\([^=]*=[	 ]*\):*/\1/
22883s/:*$//
22884s/^[^=]*=[	 ]*$//
22885}'
22886fi
22887
22888cat >>$CONFIG_STATUS <<\_ACEOF
22889fi # test -n "$CONFIG_FILES"
22890
22891
22892for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22893do
22894  case $ac_tag in
22895  :[FHLC]) ac_mode=$ac_tag; continue;;
22896  esac
22897  case $ac_mode$ac_tag in
22898  :[FHL]*:*);;
22899  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22900echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22901   { (exit 1); exit 1; }; };;
22902  :[FH]-) ac_tag=-:-;;
22903  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22904  esac
22905  ac_save_IFS=$IFS
22906  IFS=:
22907  set x $ac_tag
22908  IFS=$ac_save_IFS
22909  shift
22910  ac_file=$1
22911  shift
22912
22913  case $ac_mode in
22914  :L) ac_source=$1;;
22915  :[FH])
22916    ac_file_inputs=
22917    for ac_f
22918    do
22919      case $ac_f in
22920      -) ac_f="$tmp/stdin";;
22921      *) # Look for the file first in the build tree, then in the source tree
22922	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22923	 # because $ac_f cannot contain `:'.
22924	 test -f "$ac_f" ||
22925	   case $ac_f in
22926	   [\\/$]*) false;;
22927	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22928	   esac ||
22929	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22930echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22931   { (exit 1); exit 1; }; };;
22932      esac
22933      ac_file_inputs="$ac_file_inputs $ac_f"
22934    done
22935
22936    # Let's still pretend it is `configure' which instantiates (i.e., don't
22937    # use $as_me), people would be surprised to read:
22938    #    /* config.h.  Generated by config.status.  */
22939    configure_input="Generated from "`IFS=:
22940	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22941    if test x"$ac_file" != x-; then
22942      configure_input="$ac_file.  $configure_input"
22943      { echo "$as_me:$LINENO: creating $ac_file" >&5
22944echo "$as_me: creating $ac_file" >&6;}
22945    fi
22946
22947    case $ac_tag in
22948    *:-:* | *:-) cat >"$tmp/stdin";;
22949    esac
22950    ;;
22951  esac
22952
22953  ac_dir=`$as_dirname -- "$ac_file" ||
22954$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22955	 X"$ac_file" : 'X\(//\)[^/]' \| \
22956	 X"$ac_file" : 'X\(//\)$' \| \
22957	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22958echo X"$ac_file" |
22959    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22960	    s//\1/
22961	    q
22962	  }
22963	  /^X\(\/\/\)[^/].*/{
22964	    s//\1/
22965	    q
22966	  }
22967	  /^X\(\/\/\)$/{
22968	    s//\1/
22969	    q
22970	  }
22971	  /^X\(\/\).*/{
22972	    s//\1/
22973	    q
22974	  }
22975	  s/.*/./; q'`
22976  { as_dir="$ac_dir"
22977  case $as_dir in #(
22978  -*) as_dir=./$as_dir;;
22979  esac
22980  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22981    as_dirs=
22982    while :; do
22983      case $as_dir in #(
22984      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22985      *) as_qdir=$as_dir;;
22986      esac
22987      as_dirs="'$as_qdir' $as_dirs"
22988      as_dir=`$as_dirname -- "$as_dir" ||
22989$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22990	 X"$as_dir" : 'X\(//\)[^/]' \| \
22991	 X"$as_dir" : 'X\(//\)$' \| \
22992	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22993echo X"$as_dir" |
22994    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22995	    s//\1/
22996	    q
22997	  }
22998	  /^X\(\/\/\)[^/].*/{
22999	    s//\1/
23000	    q
23001	  }
23002	  /^X\(\/\/\)$/{
23003	    s//\1/
23004	    q
23005	  }
23006	  /^X\(\/\).*/{
23007	    s//\1/
23008	    q
23009	  }
23010	  s/.*/./; q'`
23011      test -d "$as_dir" && break
23012    done
23013    test -z "$as_dirs" || eval "mkdir $as_dirs"
23014  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23015echo "$as_me: error: cannot create directory $as_dir" >&2;}
23016   { (exit 1); exit 1; }; }; }
23017  ac_builddir=.
23018
23019case "$ac_dir" in
23020.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23021*)
23022  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23023  # A ".." for each directory in $ac_dir_suffix.
23024  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23025  case $ac_top_builddir_sub in
23026  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23027  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23028  esac ;;
23029esac
23030ac_abs_top_builddir=$ac_pwd
23031ac_abs_builddir=$ac_pwd$ac_dir_suffix
23032# for backward compatibility:
23033ac_top_builddir=$ac_top_build_prefix
23034
23035case $srcdir in
23036  .)  # We are building in place.
23037    ac_srcdir=.
23038    ac_top_srcdir=$ac_top_builddir_sub
23039    ac_abs_top_srcdir=$ac_pwd ;;
23040  [\\/]* | ?:[\\/]* )  # Absolute name.
23041    ac_srcdir=$srcdir$ac_dir_suffix;
23042    ac_top_srcdir=$srcdir
23043    ac_abs_top_srcdir=$srcdir ;;
23044  *) # Relative name.
23045    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23046    ac_top_srcdir=$ac_top_build_prefix$srcdir
23047    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23048esac
23049ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23050
23051
23052  case $ac_mode in
23053  :F)
23054  #
23055  # CONFIG_FILE
23056  #
23057
23058  case $INSTALL in
23059  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23060  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23061  esac
23062  ac_MKDIR_P=$MKDIR_P
23063  case $MKDIR_P in
23064  [\\/$]* | ?:[\\/]* ) ;;
23065  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23066  esac
23067_ACEOF
23068
23069cat >>$CONFIG_STATUS <<\_ACEOF
23070# If the template does not know about datarootdir, expand it.
23071# FIXME: This hack should be removed a few years after 2.60.
23072ac_datarootdir_hack=; ac_datarootdir_seen=
23073
23074case `sed -n '/datarootdir/ {
23075  p
23076  q
23077}
23078/@datadir@/p
23079/@docdir@/p
23080/@infodir@/p
23081/@localedir@/p
23082/@mandir@/p
23083' $ac_file_inputs` in
23084*datarootdir*) ac_datarootdir_seen=yes;;
23085*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23086  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23087echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23088_ACEOF
23089cat >>$CONFIG_STATUS <<_ACEOF
23090  ac_datarootdir_hack='
23091  s&@datadir@&$datadir&g
23092  s&@docdir@&$docdir&g
23093  s&@infodir@&$infodir&g
23094  s&@localedir@&$localedir&g
23095  s&@mandir@&$mandir&g
23096    s&\\\${datarootdir}&$datarootdir&g' ;;
23097esac
23098_ACEOF
23099
23100# Neutralize VPATH when `$srcdir' = `.'.
23101# Shell code in configure.ac might set extrasub.
23102# FIXME: do we really want to maintain this feature?
23103cat >>$CONFIG_STATUS <<_ACEOF
23104  sed "$ac_vpsub
23105$extrasub
23106_ACEOF
23107cat >>$CONFIG_STATUS <<\_ACEOF
23108:t
23109/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23110s&@configure_input@&$configure_input&;t t
23111s&@top_builddir@&$ac_top_builddir_sub&;t t
23112s&@srcdir@&$ac_srcdir&;t t
23113s&@abs_srcdir@&$ac_abs_srcdir&;t t
23114s&@top_srcdir@&$ac_top_srcdir&;t t
23115s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23116s&@builddir@&$ac_builddir&;t t
23117s&@abs_builddir@&$ac_abs_builddir&;t t
23118s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23119s&@INSTALL@&$ac_INSTALL&;t t
23120s&@MKDIR_P@&$ac_MKDIR_P&;t t
23121$ac_datarootdir_hack
23122" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23123
23124test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23125  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23126  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23127  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23128which seems to be undefined.  Please make sure it is defined." >&5
23129echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23130which seems to be undefined.  Please make sure it is defined." >&2;}
23131
23132  rm -f "$tmp/stdin"
23133  case $ac_file in
23134  -) cat "$tmp/out"; rm -f "$tmp/out";;
23135  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23136  esac
23137 ;;
23138  :H)
23139  #
23140  # CONFIG_HEADER
23141  #
23142_ACEOF
23143
23144# Transform confdefs.h into a sed script `conftest.defines', that
23145# substitutes the proper values into config.h.in to produce config.h.
23146rm -f conftest.defines conftest.tail
23147# First, append a space to every undef/define line, to ease matching.
23148echo 's/$/ /' >conftest.defines
23149# Then, protect against being on the right side of a sed subst, or in
23150# an unquoted here document, in config.status.  If some macros were
23151# called several times there might be several #defines for the same
23152# symbol, which is useless.  But do not sort them, since the last
23153# AC_DEFINE must be honored.
23154ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23155# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23156# NAME is the cpp macro being defined, VALUE is the value it is being given.
23157# PARAMS is the parameter list in the macro definition--in most cases, it's
23158# just an empty string.
23159ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
23160ac_dB='\\)[	 (].*,\\1define\\2'
23161ac_dC=' '
23162ac_dD=' ,'
23163
23164uniq confdefs.h |
23165  sed -n '
23166	t rset
23167	:rset
23168	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
23169	t ok
23170	d
23171	:ok
23172	s/[\\&,]/\\&/g
23173	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23174	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23175  ' >>conftest.defines
23176
23177# Remove the space that was appended to ease matching.
23178# Then replace #undef with comments.  This is necessary, for
23179# example, in the case of _POSIX_SOURCE, which is predefined and required
23180# on some systems where configure will not decide to define it.
23181# (The regexp can be short, since the line contains either #define or #undef.)
23182echo 's/ $//
23183s,^[	 #]*u.*,/* & */,' >>conftest.defines
23184
23185# Break up conftest.defines:
23186ac_max_sed_lines=50
23187
23188# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23189# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23190# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23191# et cetera.
23192ac_in='$ac_file_inputs'
23193ac_out='"$tmp/out1"'
23194ac_nxt='"$tmp/out2"'
23195
23196while :
23197do
23198  # Write a here document:
23199    cat >>$CONFIG_STATUS <<_ACEOF
23200    # First, check the format of the line:
23201    cat >"\$tmp/defines.sed" <<\\CEOF
23202/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
23203/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
23204b
23205:def
23206_ACEOF
23207  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23208  echo 'CEOF
23209    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23210  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23211  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23212  grep . conftest.tail >/dev/null || break
23213  rm -f conftest.defines
23214  mv conftest.tail conftest.defines
23215done
23216rm -f conftest.defines conftest.tail
23217
23218echo "ac_result=$ac_in" >>$CONFIG_STATUS
23219cat >>$CONFIG_STATUS <<\_ACEOF
23220  if test x"$ac_file" != x-; then
23221    echo "/* $configure_input  */" >"$tmp/config.h"
23222    cat "$ac_result" >>"$tmp/config.h"
23223    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23224      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23225echo "$as_me: $ac_file is unchanged" >&6;}
23226    else
23227      rm -f $ac_file
23228      mv "$tmp/config.h" $ac_file
23229    fi
23230  else
23231    echo "/* $configure_input  */"
23232    cat "$ac_result"
23233  fi
23234  rm -f "$tmp/out12"
23235# Compute $ac_file's index in $config_headers.
23236_am_arg=$ac_file
23237_am_stamp_count=1
23238for _am_header in $config_headers :; do
23239  case $_am_header in
23240    $_am_arg | $_am_arg:* )
23241      break ;;
23242    * )
23243      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23244  esac
23245done
23246echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23247$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23248	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23249	 X"$_am_arg" : 'X\(//\)$' \| \
23250	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23251echo X"$_am_arg" |
23252    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23253	    s//\1/
23254	    q
23255	  }
23256	  /^X\(\/\/\)[^/].*/{
23257	    s//\1/
23258	    q
23259	  }
23260	  /^X\(\/\/\)$/{
23261	    s//\1/
23262	    q
23263	  }
23264	  /^X\(\/\).*/{
23265	    s//\1/
23266	    q
23267	  }
23268	  s/.*/./; q'`/stamp-h$_am_stamp_count
23269 ;;
23270
23271  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23272echo "$as_me: executing $ac_file commands" >&6;}
23273 ;;
23274  esac
23275
23276
23277  case $ac_file$ac_mode in
23278    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23279  # Strip MF so we end up with the name of the file.
23280  mf=`echo "$mf" | sed -e 's/:.*$//'`
23281  # Check whether this is an Automake generated Makefile or not.
23282  # We used to match only the files named `Makefile.in', but
23283  # some people rename them; so instead we look at the file content.
23284  # Grep'ing the first line is not enough: some people post-process
23285  # each Makefile.in and add a new line on top of each file to say so.
23286  # Grep'ing the whole file is not good either: AIX grep has a line
23287  # limit of 2048, but all sed's we know have understand at least 4000.
23288  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23289    dirpart=`$as_dirname -- "$mf" ||
23290$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23291	 X"$mf" : 'X\(//\)[^/]' \| \
23292	 X"$mf" : 'X\(//\)$' \| \
23293	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23294echo X"$mf" |
23295    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23296	    s//\1/
23297	    q
23298	  }
23299	  /^X\(\/\/\)[^/].*/{
23300	    s//\1/
23301	    q
23302	  }
23303	  /^X\(\/\/\)$/{
23304	    s//\1/
23305	    q
23306	  }
23307	  /^X\(\/\).*/{
23308	    s//\1/
23309	    q
23310	  }
23311	  s/.*/./; q'`
23312  else
23313    continue
23314  fi
23315  # Extract the definition of DEPDIR, am__include, and am__quote
23316  # from the Makefile without running `make'.
23317  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23318  test -z "$DEPDIR" && continue
23319  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23320  test -z "am__include" && continue
23321  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23322  # When using ansi2knr, U may be empty or an underscore; expand it
23323  U=`sed -n 's/^U = //p' < "$mf"`
23324  # Find all dependency output files, they are included files with
23325  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23326  # simplest approach to changing $(DEPDIR) to its actual value in the
23327  # expansion.
23328  for file in `sed -n "
23329    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23330       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23331    # Make sure the directory exists.
23332    test -f "$dirpart/$file" && continue
23333    fdir=`$as_dirname -- "$file" ||
23334$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23335	 X"$file" : 'X\(//\)[^/]' \| \
23336	 X"$file" : 'X\(//\)$' \| \
23337	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23338echo X"$file" |
23339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23340	    s//\1/
23341	    q
23342	  }
23343	  /^X\(\/\/\)[^/].*/{
23344	    s//\1/
23345	    q
23346	  }
23347	  /^X\(\/\/\)$/{
23348	    s//\1/
23349	    q
23350	  }
23351	  /^X\(\/\).*/{
23352	    s//\1/
23353	    q
23354	  }
23355	  s/.*/./; q'`
23356    { as_dir=$dirpart/$fdir
23357  case $as_dir in #(
23358  -*) as_dir=./$as_dir;;
23359  esac
23360  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23361    as_dirs=
23362    while :; do
23363      case $as_dir in #(
23364      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23365      *) as_qdir=$as_dir;;
23366      esac
23367      as_dirs="'$as_qdir' $as_dirs"
23368      as_dir=`$as_dirname -- "$as_dir" ||
23369$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23370	 X"$as_dir" : 'X\(//\)[^/]' \| \
23371	 X"$as_dir" : 'X\(//\)$' \| \
23372	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23373echo X"$as_dir" |
23374    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23375	    s//\1/
23376	    q
23377	  }
23378	  /^X\(\/\/\)[^/].*/{
23379	    s//\1/
23380	    q
23381	  }
23382	  /^X\(\/\/\)$/{
23383	    s//\1/
23384	    q
23385	  }
23386	  /^X\(\/\).*/{
23387	    s//\1/
23388	    q
23389	  }
23390	  s/.*/./; q'`
23391      test -d "$as_dir" && break
23392    done
23393    test -z "$as_dirs" || eval "mkdir $as_dirs"
23394  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23395echo "$as_me: error: cannot create directory $as_dir" >&2;}
23396   { (exit 1); exit 1; }; }; }
23397    # echo "creating $dirpart/$file"
23398    echo '# dummy' > "$dirpart/$file"
23399  done
23400done
23401 ;;
23402
23403  esac
23404done # for ac_tag
23405
23406
23407{ (exit 0); exit 0; }
23408_ACEOF
23409chmod +x $CONFIG_STATUS
23410ac_clean_files=$ac_clean_files_save
23411
23412
23413# configure is writing to config.log, and then calls config.status.
23414# config.status does its own redirection, appending to config.log.
23415# Unfortunately, on DOS this fails, as config.log is still kept open
23416# by configure, so config.status won't be able to write to it; its
23417# output is simply discarded.  So we exec the FD to /dev/null,
23418# effectively closing config.log, so it can be properly (re)opened and
23419# appended to by config.status.  When coming back to configure, we
23420# need to make the FD available again.
23421if test "$no_create" != yes; then
23422  ac_cs_success=:
23423  ac_config_status_args=
23424  test "$silent" = yes &&
23425    ac_config_status_args="$ac_config_status_args --quiet"
23426  exec 5>/dev/null
23427  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23428  exec 5>>config.log
23429  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23430  # would make configure fail if this is the last instruction.
23431  $ac_cs_success || { (exit 1); exit 1; }
23432fi
23433
23434