1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for rmcast 2.0.0.
4#
5# Report bugs to <support@land.ufrj.br>.
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='rmcast'
730PACKAGE_TARNAME='rmcast'
731PACKAGE_VERSION='2.0.0'
732PACKAGE_STRING='rmcast 2.0.0'
733PACKAGE_BUGREPORT='support@land.ufrj.br'
734
735ac_unique_file="src/rmcache.h"
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
809INSTALL_PROGRAM
810INSTALL_SCRIPT
811INSTALL_DATA
812CYGPATH_W
813PACKAGE
814VERSION
815ACLOCAL
816AUTOCONF
817AUTOMAKE
818AUTOHEADER
819MAKEINFO
820install_sh
821STRIP
822INSTALL_STRIP_PROGRAM
823mkdir_p
824AWK
825SET_MAKE
826am__leading_dot
827AMTAR
828am__tar
829am__untar
830CC
831CFLAGS
832LDFLAGS
833CPPFLAGS
834ac_ct_CC
835EXEEXT
836OBJEXT
837DEPDIR
838am__include
839am__quote
840AMDEP_TRUE
841AMDEP_FALSE
842AMDEPBACKSLASH
843CCDEPMODE
844am__fastdepCC_TRUE
845am__fastdepCC_FALSE
846build
847build_cpu
848build_vendor
849build_os
850host
851host_cpu
852host_vendor
853host_os
854SED
855GREP
856EGREP
857LN_S
858ECHO
859AR
860RANLIB
861DSYMUTIL
862NMEDIT
863CPP
864CXX
865CXXFLAGS
866ac_ct_CXX
867CXXDEPMODE
868am__fastdepCXX_TRUE
869am__fastdepCXX_FALSE
870CXXCPP
871F77
872FFLAGS
873ac_ct_F77
874LIBTOOL
875LIBOBJS
876LTLIBOBJS'
877ac_subst_files=''
878      ac_precious_vars='build_alias
879host_alias
880target_alias
881CC
882CFLAGS
883LDFLAGS
884LIBS
885CPPFLAGS
886CPP
887CXX
888CXXFLAGS
889CCC
890CXXCPP
891F77
892FFLAGS'
893
894
895# Initialize some variables set by options.
896ac_init_help=
897ac_init_version=false
898# The variables have the same names as the options, with
899# dashes changed to underlines.
900cache_file=/dev/null
901exec_prefix=NONE
902no_create=
903no_recursion=
904prefix=NONE
905program_prefix=NONE
906program_suffix=NONE
907program_transform_name=s,x,x,
908silent=
909site=
910srcdir=
911verbose=
912x_includes=NONE
913x_libraries=NONE
914
915# Installation directory options.
916# These are left unexpanded so users can "make install exec_prefix=/foo"
917# and all the variables that are supposed to be based on exec_prefix
918# by default will actually change.
919# Use braces instead of parens because sh, perl, etc. also accept them.
920# (The list follows the same order as the GNU Coding Standards.)
921bindir='${exec_prefix}/bin'
922sbindir='${exec_prefix}/sbin'
923libexecdir='${exec_prefix}/libexec'
924datarootdir='${prefix}/share'
925datadir='${datarootdir}'
926sysconfdir='${prefix}/etc'
927sharedstatedir='${prefix}/com'
928localstatedir='${prefix}/var'
929includedir='${prefix}/include'
930oldincludedir='/usr/include'
931docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
932infodir='${datarootdir}/info'
933htmldir='${docdir}'
934dvidir='${docdir}'
935pdfdir='${docdir}'
936psdir='${docdir}'
937libdir='${exec_prefix}/lib'
938localedir='${datarootdir}/locale'
939mandir='${datarootdir}/man'
940
941ac_prev=
942ac_dashdash=
943for ac_option
944do
945  # If the previous option needs an argument, assign it.
946  if test -n "$ac_prev"; then
947    eval $ac_prev=\$ac_option
948    ac_prev=
949    continue
950  fi
951
952  case $ac_option in
953  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954  *)	ac_optarg=yes ;;
955  esac
956
957  # Accept the important Cygnus configure options, so we can diagnose typos.
958
959  case $ac_dashdash$ac_option in
960  --)
961    ac_dashdash=yes ;;
962
963  -bindir | --bindir | --bindi | --bind | --bin | --bi)
964    ac_prev=bindir ;;
965  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966    bindir=$ac_optarg ;;
967
968  -build | --build | --buil | --bui | --bu)
969    ac_prev=build_alias ;;
970  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971    build_alias=$ac_optarg ;;
972
973  -cache-file | --cache-file | --cache-fil | --cache-fi \
974  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975    ac_prev=cache_file ;;
976  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978    cache_file=$ac_optarg ;;
979
980  --config-cache | -C)
981    cache_file=config.cache ;;
982
983  -datadir | --datadir | --datadi | --datad)
984    ac_prev=datadir ;;
985  -datadir=* | --datadir=* | --datadi=* | --datad=*)
986    datadir=$ac_optarg ;;
987
988  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989  | --dataroo | --dataro | --datar)
990    ac_prev=datarootdir ;;
991  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993    datarootdir=$ac_optarg ;;
994
995  -disable-* | --disable-*)
996    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997    # Reject names that are not valid shell variable names.
998    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
999      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1000   { (exit 1); exit 1; }; }
1001    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1002    eval enable_$ac_feature=no ;;
1003
1004  -docdir | --docdir | --docdi | --doc | --do)
1005    ac_prev=docdir ;;
1006  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007    docdir=$ac_optarg ;;
1008
1009  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010    ac_prev=dvidir ;;
1011  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012    dvidir=$ac_optarg ;;
1013
1014  -enable-* | --enable-*)
1015    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016    # Reject names that are not valid shell variable names.
1017    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019   { (exit 1); exit 1; }; }
1020    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1021    eval enable_$ac_feature=\$ac_optarg ;;
1022
1023  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025  | --exec | --exe | --ex)
1026    ac_prev=exec_prefix ;;
1027  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029  | --exec=* | --exe=* | --ex=*)
1030    exec_prefix=$ac_optarg ;;
1031
1032  -gas | --gas | --ga | --g)
1033    # Obsolete; use --with-gas.
1034    with_gas=yes ;;
1035
1036  -help | --help | --hel | --he | -h)
1037    ac_init_help=long ;;
1038  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039    ac_init_help=recursive ;;
1040  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041    ac_init_help=short ;;
1042
1043  -host | --host | --hos | --ho)
1044    ac_prev=host_alias ;;
1045  -host=* | --host=* | --hos=* | --ho=*)
1046    host_alias=$ac_optarg ;;
1047
1048  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049    ac_prev=htmldir ;;
1050  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051  | --ht=*)
1052    htmldir=$ac_optarg ;;
1053
1054  -includedir | --includedir | --includedi | --included | --include \
1055  | --includ | --inclu | --incl | --inc)
1056    ac_prev=includedir ;;
1057  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058  | --includ=* | --inclu=* | --incl=* | --inc=*)
1059    includedir=$ac_optarg ;;
1060
1061  -infodir | --infodir | --infodi | --infod | --info | --inf)
1062    ac_prev=infodir ;;
1063  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064    infodir=$ac_optarg ;;
1065
1066  -libdir | --libdir | --libdi | --libd)
1067    ac_prev=libdir ;;
1068  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069    libdir=$ac_optarg ;;
1070
1071  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072  | --libexe | --libex | --libe)
1073    ac_prev=libexecdir ;;
1074  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075  | --libexe=* | --libex=* | --libe=*)
1076    libexecdir=$ac_optarg ;;
1077
1078  -localedir | --localedir | --localedi | --localed | --locale)
1079    ac_prev=localedir ;;
1080  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081    localedir=$ac_optarg ;;
1082
1083  -localstatedir | --localstatedir | --localstatedi | --localstated \
1084  | --localstate | --localstat | --localsta | --localst | --locals)
1085    ac_prev=localstatedir ;;
1086  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088    localstatedir=$ac_optarg ;;
1089
1090  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091    ac_prev=mandir ;;
1092  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093    mandir=$ac_optarg ;;
1094
1095  -nfp | --nfp | --nf)
1096    # Obsolete; use --without-fp.
1097    with_fp=no ;;
1098
1099  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100  | --no-cr | --no-c | -n)
1101    no_create=yes ;;
1102
1103  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105    no_recursion=yes ;;
1106
1107  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109  | --oldin | --oldi | --old | --ol | --o)
1110    ac_prev=oldincludedir ;;
1111  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114    oldincludedir=$ac_optarg ;;
1115
1116  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117    ac_prev=prefix ;;
1118  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119    prefix=$ac_optarg ;;
1120
1121  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122  | --program-pre | --program-pr | --program-p)
1123    ac_prev=program_prefix ;;
1124  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126    program_prefix=$ac_optarg ;;
1127
1128  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129  | --program-suf | --program-su | --program-s)
1130    ac_prev=program_suffix ;;
1131  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133    program_suffix=$ac_optarg ;;
1134
1135  -program-transform-name | --program-transform-name \
1136  | --program-transform-nam | --program-transform-na \
1137  | --program-transform-n | --program-transform- \
1138  | --program-transform | --program-transfor \
1139  | --program-transfo | --program-transf \
1140  | --program-trans | --program-tran \
1141  | --progr-tra | --program-tr | --program-t)
1142    ac_prev=program_transform_name ;;
1143  -program-transform-name=* | --program-transform-name=* \
1144  | --program-transform-nam=* | --program-transform-na=* \
1145  | --program-transform-n=* | --program-transform-=* \
1146  | --program-transform=* | --program-transfor=* \
1147  | --program-transfo=* | --program-transf=* \
1148  | --program-trans=* | --program-tran=* \
1149  | --progr-tra=* | --program-tr=* | --program-t=*)
1150    program_transform_name=$ac_optarg ;;
1151
1152  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153    ac_prev=pdfdir ;;
1154  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155    pdfdir=$ac_optarg ;;
1156
1157  -psdir | --psdir | --psdi | --psd | --ps)
1158    ac_prev=psdir ;;
1159  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160    psdir=$ac_optarg ;;
1161
1162  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163  | -silent | --silent | --silen | --sile | --sil)
1164    silent=yes ;;
1165
1166  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167    ac_prev=sbindir ;;
1168  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169  | --sbi=* | --sb=*)
1170    sbindir=$ac_optarg ;;
1171
1172  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174  | --sharedst | --shareds | --shared | --share | --shar \
1175  | --sha | --sh)
1176    ac_prev=sharedstatedir ;;
1177  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180  | --sha=* | --sh=*)
1181    sharedstatedir=$ac_optarg ;;
1182
1183  -site | --site | --sit)
1184    ac_prev=site ;;
1185  -site=* | --site=* | --sit=*)
1186    site=$ac_optarg ;;
1187
1188  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189    ac_prev=srcdir ;;
1190  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191    srcdir=$ac_optarg ;;
1192
1193  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194  | --syscon | --sysco | --sysc | --sys | --sy)
1195    ac_prev=sysconfdir ;;
1196  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198    sysconfdir=$ac_optarg ;;
1199
1200  -target | --target | --targe | --targ | --tar | --ta | --t)
1201    ac_prev=target_alias ;;
1202  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203    target_alias=$ac_optarg ;;
1204
1205  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206    verbose=yes ;;
1207
1208  -version | --version | --versio | --versi | --vers | -V)
1209    ac_init_version=: ;;
1210
1211  -with-* | --with-*)
1212    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213    # Reject names that are not valid shell variable names.
1214    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215      { echo "$as_me: error: invalid package name: $ac_package" >&2
1216   { (exit 1); exit 1; }; }
1217    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1218    eval with_$ac_package=\$ac_optarg ;;
1219
1220  -without-* | --without-*)
1221    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222    # Reject names that are not valid shell variable names.
1223    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224      { echo "$as_me: error: invalid package name: $ac_package" >&2
1225   { (exit 1); exit 1; }; }
1226    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1227    eval with_$ac_package=no ;;
1228
1229  --x)
1230    # Obsolete; use --with-x.
1231    with_x=yes ;;
1232
1233  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234  | --x-incl | --x-inc | --x-in | --x-i)
1235    ac_prev=x_includes ;;
1236  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238    x_includes=$ac_optarg ;;
1239
1240  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242    ac_prev=x_libraries ;;
1243  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245    x_libraries=$ac_optarg ;;
1246
1247  -*) { echo "$as_me: error: unrecognized option: $ac_option
1248Try \`$0 --help' for more information." >&2
1249   { (exit 1); exit 1; }; }
1250    ;;
1251
1252  *=*)
1253    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254    # Reject names that are not valid shell variable names.
1255    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1256      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1257   { (exit 1); exit 1; }; }
1258    eval $ac_envvar=\$ac_optarg
1259    export $ac_envvar ;;
1260
1261  *)
1262    # FIXME: should be removed in autoconf 3.0.
1263    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1267    ;;
1268
1269  esac
1270done
1271
1272if test -n "$ac_prev"; then
1273  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274  { echo "$as_me: error: missing argument to $ac_option" >&2
1275   { (exit 1); exit 1; }; }
1276fi
1277
1278# Be sure to have absolute directory names.
1279for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280		datadir sysconfdir sharedstatedir localstatedir includedir \
1281		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282		libdir localedir mandir
1283do
1284  eval ac_val=\$$ac_var
1285  case $ac_val in
1286    [\\/$]* | ?:[\\/]* )  continue;;
1287    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288  esac
1289  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1290   { (exit 1); exit 1; }; }
1291done
1292
1293# There might be people who depend on the old broken behavior: `$host'
1294# used to hold the argument of --host etc.
1295# FIXME: To remove some day.
1296build=$build_alias
1297host=$host_alias
1298target=$target_alias
1299
1300# FIXME: To remove some day.
1301if test "x$host_alias" != x; then
1302  if test "x$build_alias" = x; then
1303    cross_compiling=maybe
1304    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1305    If a cross compiler is detected then cross compile mode will be used." >&2
1306  elif test "x$build_alias" != "x$host_alias"; then
1307    cross_compiling=yes
1308  fi
1309fi
1310
1311ac_tool_prefix=
1312test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314test "$silent" = yes && exec 6>/dev/null
1315
1316
1317ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318ac_ls_di=`ls -di .` &&
1319ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320  { echo "$as_me: error: Working directory cannot be determined" >&2
1321   { (exit 1); exit 1; }; }
1322test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323  { echo "$as_me: error: pwd does not report name of working directory" >&2
1324   { (exit 1); exit 1; }; }
1325
1326
1327# Find the source files, if location was not specified.
1328if test -z "$srcdir"; then
1329  ac_srcdir_defaulted=yes
1330  # Try the directory containing this script, then the parent directory.
1331  ac_confdir=`$as_dirname -- "$0" ||
1332$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333	 X"$0" : 'X\(//\)[^/]' \| \
1334	 X"$0" : 'X\(//\)$' \| \
1335	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1336echo X"$0" |
1337    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338	    s//\1/
1339	    q
1340	  }
1341	  /^X\(\/\/\)[^/].*/{
1342	    s//\1/
1343	    q
1344	  }
1345	  /^X\(\/\/\)$/{
1346	    s//\1/
1347	    q
1348	  }
1349	  /^X\(\/\).*/{
1350	    s//\1/
1351	    q
1352	  }
1353	  s/.*/./; q'`
1354  srcdir=$ac_confdir
1355  if test ! -r "$srcdir/$ac_unique_file"; then
1356    srcdir=..
1357  fi
1358else
1359  ac_srcdir_defaulted=no
1360fi
1361if test ! -r "$srcdir/$ac_unique_file"; then
1362  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1364   { (exit 1); exit 1; }; }
1365fi
1366ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367ac_abs_confdir=`(
1368	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1369   { (exit 1); exit 1; }; }
1370	pwd)`
1371# When building in place, set srcdir=.
1372if test "$ac_abs_confdir" = "$ac_pwd"; then
1373  srcdir=.
1374fi
1375# Remove unnecessary trailing slashes from srcdir.
1376# Double slashes in file names in object file debugging info
1377# mess up M-x gdb in Emacs.
1378case $srcdir in
1379*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380esac
1381for ac_var in $ac_precious_vars; do
1382  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383  eval ac_env_${ac_var}_value=\$${ac_var}
1384  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386done
1387
1388#
1389# Report the --help message.
1390#
1391if test "$ac_init_help" = "long"; then
1392  # Omit some internal or obsolete options to make the list less imposing.
1393  # This message is too long to be a string in the A/UX 3.1 sh.
1394  cat <<_ACEOF
1395\`configure' configures rmcast 2.0.0 to adapt to many kinds of systems.
1396
1397Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400VAR=VALUE.  See below for descriptions of some of the useful variables.
1401
1402Defaults for the options are specified in brackets.
1403
1404Configuration:
1405  -h, --help              display this help and exit
1406      --help=short        display options specific to this package
1407      --help=recursive    display the short help of all the included packages
1408  -V, --version           display version information and exit
1409  -q, --quiet, --silent   do not print \`checking...' messages
1410      --cache-file=FILE   cache test results in FILE [disabled]
1411  -C, --config-cache      alias for \`--cache-file=config.cache'
1412  -n, --no-create         do not create output files
1413      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1414
1415Installation directories:
1416  --prefix=PREFIX         install architecture-independent files in PREFIX
1417			  [$ac_default_prefix]
1418  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1419			  [PREFIX]
1420
1421By default, \`make install' will install all the files in
1422\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1423an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424for instance \`--prefix=\$HOME'.
1425
1426For better control, use the options below.
1427
1428Fine tuning of the installation directories:
1429  --bindir=DIR           user executables [EPREFIX/bin]
1430  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1431  --libexecdir=DIR       program executables [EPREFIX/libexec]
1432  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1433  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1434  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1435  --libdir=DIR           object code libraries [EPREFIX/lib]
1436  --includedir=DIR       C header files [PREFIX/include]
1437  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1438  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1439  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1440  --infodir=DIR          info documentation [DATAROOTDIR/info]
1441  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1442  --mandir=DIR           man documentation [DATAROOTDIR/man]
1443  --docdir=DIR           documentation root [DATAROOTDIR/doc/rmcast]
1444  --htmldir=DIR          html documentation [DOCDIR]
1445  --dvidir=DIR           dvi documentation [DOCDIR]
1446  --pdfdir=DIR           pdf documentation [DOCDIR]
1447  --psdir=DIR            ps documentation [DOCDIR]
1448_ACEOF
1449
1450  cat <<\_ACEOF
1451
1452Program names:
1453  --program-prefix=PREFIX            prepend PREFIX to installed program names
1454  --program-suffix=SUFFIX            append SUFFIX to installed program names
1455  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1456
1457System types:
1458  --build=BUILD     configure for building on BUILD [guessed]
1459  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1460_ACEOF
1461fi
1462
1463if test -n "$ac_init_help"; then
1464  case $ac_init_help in
1465     short | recursive ) echo "Configuration of rmcast 2.0.0:";;
1466   esac
1467  cat <<\_ACEOF
1468
1469Optional Features:
1470  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1471  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1472  --disable-dependency-tracking  speeds up one-time build
1473  --enable-dependency-tracking   do not reject slow dependency extractors
1474  --enable-shared[=PKGS]  build shared libraries [default=yes]
1475  --enable-static[=PKGS]  build static libraries [default=yes]
1476  --enable-fast-install[=PKGS]
1477                          optimize for fast installation [default=yes]
1478  --disable-libtool-lock  avoid locking (might break parallel builds)
1479
1480Optional Packages:
1481  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1482  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1483  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1484  --with-pic              try to use only PIC/non-PIC objects [default=use
1485                          both]
1486  --with-tags[=TAGS]      include additional configurations [automatic]
1487
1488Some influential environment variables:
1489  CC          C compiler command
1490  CFLAGS      C compiler flags
1491  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1492              nonstandard directory <lib dir>
1493  LIBS        libraries to pass to the linker, e.g. -l<library>
1494  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1495              you have headers in a nonstandard directory <include dir>
1496  CPP         C preprocessor
1497  CXX         C++ compiler command
1498  CXXFLAGS    C++ compiler flags
1499  CXXCPP      C++ preprocessor
1500  F77         Fortran 77 compiler command
1501  FFLAGS      Fortran 77 compiler flags
1502
1503Use these variables to override the choices made by `configure' or to help
1504it to find libraries and programs with nonstandard names/locations.
1505
1506Report bugs to <support@land.ufrj.br>.
1507_ACEOF
1508ac_status=$?
1509fi
1510
1511if test "$ac_init_help" = "recursive"; then
1512  # If there are subdirs, report their specific --help.
1513  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514    test -d "$ac_dir" || continue
1515    ac_builddir=.
1516
1517case "$ac_dir" in
1518.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519*)
1520  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1521  # A ".." for each directory in $ac_dir_suffix.
1522  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1523  case $ac_top_builddir_sub in
1524  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526  esac ;;
1527esac
1528ac_abs_top_builddir=$ac_pwd
1529ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530# for backward compatibility:
1531ac_top_builddir=$ac_top_build_prefix
1532
1533case $srcdir in
1534  .)  # We are building in place.
1535    ac_srcdir=.
1536    ac_top_srcdir=$ac_top_builddir_sub
1537    ac_abs_top_srcdir=$ac_pwd ;;
1538  [\\/]* | ?:[\\/]* )  # Absolute name.
1539    ac_srcdir=$srcdir$ac_dir_suffix;
1540    ac_top_srcdir=$srcdir
1541    ac_abs_top_srcdir=$srcdir ;;
1542  *) # Relative name.
1543    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544    ac_top_srcdir=$ac_top_build_prefix$srcdir
1545    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546esac
1547ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548
1549    cd "$ac_dir" || { ac_status=$?; continue; }
1550    # Check for guested configure.
1551    if test -f "$ac_srcdir/configure.gnu"; then
1552      echo &&
1553      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554    elif test -f "$ac_srcdir/configure"; then
1555      echo &&
1556      $SHELL "$ac_srcdir/configure" --help=recursive
1557    else
1558      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559    fi || ac_status=$?
1560    cd "$ac_pwd" || { ac_status=$?; break; }
1561  done
1562fi
1563
1564test -n "$ac_init_help" && exit $ac_status
1565if $ac_init_version; then
1566  cat <<\_ACEOF
1567rmcast configure 2.0.0
1568generated by GNU Autoconf 2.61
1569
1570Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15712002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1572This configure script is free software; the Free Software Foundation
1573gives unlimited permission to copy, distribute and modify it.
1574_ACEOF
1575  exit
1576fi
1577cat >config.log <<_ACEOF
1578This file contains any messages produced by compilers while
1579running configure, to aid debugging if configure makes a mistake.
1580
1581It was created by rmcast $as_me 2.0.0, which was
1582generated by GNU Autoconf 2.61.  Invocation command line was
1583
1584  $ $0 $@
1585
1586_ACEOF
1587exec 5>>config.log
1588{
1589cat <<_ASUNAME
1590## --------- ##
1591## Platform. ##
1592## --------- ##
1593
1594hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1595uname -m = `(uname -m) 2>/dev/null || echo unknown`
1596uname -r = `(uname -r) 2>/dev/null || echo unknown`
1597uname -s = `(uname -s) 2>/dev/null || echo unknown`
1598uname -v = `(uname -v) 2>/dev/null || echo unknown`
1599
1600/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1601/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1602
1603/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1604/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1605/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1606/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1607/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1608/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1609/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1610
1611_ASUNAME
1612
1613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614for as_dir in $PATH
1615do
1616  IFS=$as_save_IFS
1617  test -z "$as_dir" && as_dir=.
1618  echo "PATH: $as_dir"
1619done
1620IFS=$as_save_IFS
1621
1622} >&5
1623
1624cat >&5 <<_ACEOF
1625
1626
1627## ----------- ##
1628## Core tests. ##
1629## ----------- ##
1630
1631_ACEOF
1632
1633
1634# Keep a trace of the command line.
1635# Strip out --no-create and --no-recursion so they do not pile up.
1636# Strip out --silent because we don't want to record it for future runs.
1637# Also quote any args containing shell meta-characters.
1638# Make two passes to allow for proper duplicate-argument suppression.
1639ac_configure_args=
1640ac_configure_args0=
1641ac_configure_args1=
1642ac_must_keep_next=false
1643for ac_pass in 1 2
1644do
1645  for ac_arg
1646  do
1647    case $ac_arg in
1648    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1649    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1650    | -silent | --silent | --silen | --sile | --sil)
1651      continue ;;
1652    *\'*)
1653      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1654    esac
1655    case $ac_pass in
1656    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1657    2)
1658      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1659      if test $ac_must_keep_next = true; then
1660	ac_must_keep_next=false # Got value, back to normal.
1661      else
1662	case $ac_arg in
1663	  *=* | --config-cache | -C | -disable-* | --disable-* \
1664	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1665	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1666	  | -with-* | --with-* | -without-* | --without-* | --x)
1667	    case "$ac_configure_args0 " in
1668	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1669	    esac
1670	    ;;
1671	  -* ) ac_must_keep_next=true ;;
1672	esac
1673      fi
1674      ac_configure_args="$ac_configure_args '$ac_arg'"
1675      ;;
1676    esac
1677  done
1678done
1679$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1680$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1681
1682# When interrupted or exit'd, cleanup temporary files, and complete
1683# config.log.  We remove comments because anyway the quotes in there
1684# would cause problems or look ugly.
1685# WARNING: Use '\'' to represent an apostrophe within the trap.
1686# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1687trap 'exit_status=$?
1688  # Save into config.log some information that might help in debugging.
1689  {
1690    echo
1691
1692    cat <<\_ASBOX
1693## ---------------- ##
1694## Cache variables. ##
1695## ---------------- ##
1696_ASBOX
1697    echo
1698    # The following way of writing the cache mishandles newlines in values,
1699(
1700  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1701    eval ac_val=\$$ac_var
1702    case $ac_val in #(
1703    *${as_nl}*)
1704      case $ac_var in #(
1705      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1706echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1707      esac
1708      case $ac_var in #(
1709      _ | IFS | as_nl) ;; #(
1710      *) $as_unset $ac_var ;;
1711      esac ;;
1712    esac
1713  done
1714  (set) 2>&1 |
1715    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1716    *${as_nl}ac_space=\ *)
1717      sed -n \
1718	"s/'\''/'\''\\\\'\'''\''/g;
1719	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1720      ;; #(
1721    *)
1722      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1723      ;;
1724    esac |
1725    sort
1726)
1727    echo
1728
1729    cat <<\_ASBOX
1730## ----------------- ##
1731## Output variables. ##
1732## ----------------- ##
1733_ASBOX
1734    echo
1735    for ac_var in $ac_subst_vars
1736    do
1737      eval ac_val=\$$ac_var
1738      case $ac_val in
1739      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1740      esac
1741      echo "$ac_var='\''$ac_val'\''"
1742    done | sort
1743    echo
1744
1745    if test -n "$ac_subst_files"; then
1746      cat <<\_ASBOX
1747## ------------------- ##
1748## File substitutions. ##
1749## ------------------- ##
1750_ASBOX
1751      echo
1752      for ac_var in $ac_subst_files
1753      do
1754	eval ac_val=\$$ac_var
1755	case $ac_val in
1756	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757	esac
1758	echo "$ac_var='\''$ac_val'\''"
1759      done | sort
1760      echo
1761    fi
1762
1763    if test -s confdefs.h; then
1764      cat <<\_ASBOX
1765## ----------- ##
1766## confdefs.h. ##
1767## ----------- ##
1768_ASBOX
1769      echo
1770      cat confdefs.h
1771      echo
1772    fi
1773    test "$ac_signal" != 0 &&
1774      echo "$as_me: caught signal $ac_signal"
1775    echo "$as_me: exit $exit_status"
1776  } >&5
1777  rm -f core *.core core.conftest.* &&
1778    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1779    exit $exit_status
1780' 0
1781for ac_signal in 1 2 13 15; do
1782  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1783done
1784ac_signal=0
1785
1786# confdefs.h avoids OS command line length limits that DEFS can exceed.
1787rm -f -r conftest* confdefs.h
1788
1789# Predefined preprocessor variables.
1790
1791cat >>confdefs.h <<_ACEOF
1792#define PACKAGE_NAME "$PACKAGE_NAME"
1793_ACEOF
1794
1795
1796cat >>confdefs.h <<_ACEOF
1797#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1798_ACEOF
1799
1800
1801cat >>confdefs.h <<_ACEOF
1802#define PACKAGE_VERSION "$PACKAGE_VERSION"
1803_ACEOF
1804
1805
1806cat >>confdefs.h <<_ACEOF
1807#define PACKAGE_STRING "$PACKAGE_STRING"
1808_ACEOF
1809
1810
1811cat >>confdefs.h <<_ACEOF
1812#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1813_ACEOF
1814
1815
1816# Let the site file select an alternate cache file if it wants to.
1817# Prefer explicitly selected file to automatically selected ones.
1818if test -n "$CONFIG_SITE"; then
1819  set x "$CONFIG_SITE"
1820elif test "x$prefix" != xNONE; then
1821  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1822else
1823  set x "$ac_default_prefix/share/config.site" \
1824	"$ac_default_prefix/etc/config.site"
1825fi
1826shift
1827for ac_site_file
1828do
1829  if test -r "$ac_site_file"; then
1830    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1831echo "$as_me: loading site script $ac_site_file" >&6;}
1832    sed 's/^/| /' "$ac_site_file" >&5
1833    . "$ac_site_file"
1834  fi
1835done
1836
1837if test -r "$cache_file"; then
1838  # Some versions of bash will fail to source /dev/null (special
1839  # files actually), so we avoid doing that.
1840  if test -f "$cache_file"; then
1841    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1842echo "$as_me: loading cache $cache_file" >&6;}
1843    case $cache_file in
1844      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1845      *)                      . "./$cache_file";;
1846    esac
1847  fi
1848else
1849  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1850echo "$as_me: creating cache $cache_file" >&6;}
1851  >$cache_file
1852fi
1853
1854# Check that the precious variables saved in the cache have kept the same
1855# value.
1856ac_cache_corrupted=false
1857for ac_var in $ac_precious_vars; do
1858  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1859  eval ac_new_set=\$ac_env_${ac_var}_set
1860  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1861  eval ac_new_val=\$ac_env_${ac_var}_value
1862  case $ac_old_set,$ac_new_set in
1863    set,)
1864      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1865echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1866      ac_cache_corrupted=: ;;
1867    ,set)
1868      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1869echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1870      ac_cache_corrupted=: ;;
1871    ,);;
1872    *)
1873      if test "x$ac_old_val" != "x$ac_new_val"; then
1874	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1875echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1876	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1877echo "$as_me:   former value:  $ac_old_val" >&2;}
1878	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1879echo "$as_me:   current value: $ac_new_val" >&2;}
1880	ac_cache_corrupted=:
1881      fi;;
1882  esac
1883  # Pass precious variables to config.status.
1884  if test "$ac_new_set" = set; then
1885    case $ac_new_val in
1886    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1887    *) ac_arg=$ac_var=$ac_new_val ;;
1888    esac
1889    case " $ac_configure_args " in
1890      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1891      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1892    esac
1893  fi
1894done
1895if $ac_cache_corrupted; then
1896  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1897echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1898  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1899echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1900   { (exit 1); exit 1; }; }
1901fi
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927ac_ext=c
1928ac_cpp='$CPP $CPPFLAGS'
1929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1931ac_compiler_gnu=$ac_cv_c_compiler_gnu
1932
1933
1934ac_aux_dir=
1935for ac_dir in config "$srcdir"/config; do
1936  if test -f "$ac_dir/install-sh"; then
1937    ac_aux_dir=$ac_dir
1938    ac_install_sh="$ac_aux_dir/install-sh -c"
1939    break
1940  elif test -f "$ac_dir/install.sh"; then
1941    ac_aux_dir=$ac_dir
1942    ac_install_sh="$ac_aux_dir/install.sh -c"
1943    break
1944  elif test -f "$ac_dir/shtool"; then
1945    ac_aux_dir=$ac_dir
1946    ac_install_sh="$ac_aux_dir/shtool install -c"
1947    break
1948  fi
1949done
1950if test -z "$ac_aux_dir"; then
1951  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1952echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1953   { (exit 1); exit 1; }; }
1954fi
1955
1956# These three variables are undocumented and unsupported,
1957# and are intended to be withdrawn in a future Autoconf release.
1958# They can cause serious problems if a builder's source tree is in a directory
1959# whose full name contains unusual characters.
1960ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1961ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1962ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1963
1964
1965
1966ac_config_headers="$ac_config_headers config.h"
1967
1968am__api_version="1.9"
1969# Find a good install program.  We prefer a C program (faster),
1970# so one script is as good as another.  But avoid the broken or
1971# incompatible versions:
1972# SysV /etc/install, /usr/sbin/install
1973# SunOS /usr/etc/install
1974# IRIX /sbin/install
1975# AIX /bin/install
1976# AmigaOS /C/install, which installs bootblocks on floppy discs
1977# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1978# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1979# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1980# OS/2's system install, which has a completely different semantic
1981# ./install, which can be erroneously created by make from ./install.sh.
1982{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1983echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1984if test -z "$INSTALL"; then
1985if test "${ac_cv_path_install+set}" = set; then
1986  echo $ECHO_N "(cached) $ECHO_C" >&6
1987else
1988  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989for as_dir in $PATH
1990do
1991  IFS=$as_save_IFS
1992  test -z "$as_dir" && as_dir=.
1993  # Account for people who put trailing slashes in PATH elements.
1994case $as_dir/ in
1995  ./ | .// | /cC/* | \
1996  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1997  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1998  /usr/ucb/* ) ;;
1999  *)
2000    # OSF1 and SCO ODT 3.0 have their own names for install.
2001    # Don't use installbsd from OSF since it installs stuff as root
2002    # by default.
2003    for ac_prog in ginstall scoinst install; do
2004      for ac_exec_ext in '' $ac_executable_extensions; do
2005	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2006	  if test $ac_prog = install &&
2007	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2008	    # AIX install.  It has an incompatible calling convention.
2009	    :
2010	  elif test $ac_prog = install &&
2011	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2012	    # program-specific install script used by HP pwplus--don't use.
2013	    :
2014	  else
2015	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2016	    break 3
2017	  fi
2018	fi
2019      done
2020    done
2021    ;;
2022esac
2023done
2024IFS=$as_save_IFS
2025
2026
2027fi
2028  if test "${ac_cv_path_install+set}" = set; then
2029    INSTALL=$ac_cv_path_install
2030  else
2031    # As a last resort, use the slow shell script.  Don't cache a
2032    # value for INSTALL within a source directory, because that will
2033    # break other packages using the cache if that directory is
2034    # removed, or if the value is a relative name.
2035    INSTALL=$ac_install_sh
2036  fi
2037fi
2038{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2039echo "${ECHO_T}$INSTALL" >&6; }
2040
2041# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2042# It thinks the first close brace ends the variable substitution.
2043test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2044
2045test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2046
2047test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2048
2049{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2050echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2051# Just in case
2052sleep 1
2053echo timestamp > conftest.file
2054# Do `set' in a subshell so we don't clobber the current shell's
2055# arguments.  Must try -L first in case configure is actually a
2056# symlink; some systems play weird games with the mod time of symlinks
2057# (eg FreeBSD returns the mod time of the symlink's containing
2058# directory).
2059if (
2060   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2061   if test "$*" = "X"; then
2062      # -L didn't work.
2063      set X `ls -t $srcdir/configure conftest.file`
2064   fi
2065   rm -f conftest.file
2066   if test "$*" != "X $srcdir/configure conftest.file" \
2067      && test "$*" != "X conftest.file $srcdir/configure"; then
2068
2069      # If neither matched, then we have a broken ls.  This can happen
2070      # if, for instance, CONFIG_SHELL is bash and it inherits a
2071      # broken ls alias from the environment.  This has actually
2072      # happened.  Such a system could not be considered "sane".
2073      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2074alias in your environment" >&5
2075echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2076alias in your environment" >&2;}
2077   { (exit 1); exit 1; }; }
2078   fi
2079
2080   test "$2" = conftest.file
2081   )
2082then
2083   # Ok.
2084   :
2085else
2086   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2087Check your system clock" >&5
2088echo "$as_me: error: newly created file is older than distributed files!
2089Check your system clock" >&2;}
2090   { (exit 1); exit 1; }; }
2091fi
2092{ echo "$as_me:$LINENO: result: yes" >&5
2093echo "${ECHO_T}yes" >&6; }
2094test "$program_prefix" != NONE &&
2095  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2096# Use a double $ so make ignores it.
2097test "$program_suffix" != NONE &&
2098  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2099# Double any \ or $.  echo might interpret backslashes.
2100# By default was `s,x,x', remove it if useless.
2101cat <<\_ACEOF >conftest.sed
2102s/[\\$]/&&/g;s/;s,x,x,$//
2103_ACEOF
2104program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2105rm -f conftest.sed
2106
2107# expand $ac_aux_dir to an absolute path
2108am_aux_dir=`cd $ac_aux_dir && pwd`
2109
2110test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2111# Use eval to expand $SHELL
2112if eval "$MISSING --run true"; then
2113  am_missing_run="$MISSING --run "
2114else
2115  am_missing_run=
2116  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2117echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2118fi
2119
2120if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2121  # We used to keeping the `.' as first argument, in order to
2122  # allow $(mkdir_p) to be used without argument.  As in
2123  #   $(mkdir_p) $(somedir)
2124  # where $(somedir) is conditionally defined.  However this is wrong
2125  # for two reasons:
2126  #  1. if the package is installed by a user who cannot write `.'
2127  #     make install will fail,
2128  #  2. the above comment should most certainly read
2129  #     $(mkdir_p) $(DESTDIR)$(somedir)
2130  #     so it does not work when $(somedir) is undefined and
2131  #     $(DESTDIR) is not.
2132  #  To support the latter case, we have to write
2133  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2134  #  so the `.' trick is pointless.
2135  mkdir_p='mkdir -p --'
2136else
2137  # On NextStep and OpenStep, the `mkdir' command does not
2138  # recognize any option.  It will interpret all options as
2139  # directories to create, and then abort because `.' already
2140  # exists.
2141  for d in ./-p ./--version;
2142  do
2143    test -d $d && rmdir $d
2144  done
2145  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2146  if test -f "$ac_aux_dir/mkinstalldirs"; then
2147    mkdir_p='$(mkinstalldirs)'
2148  else
2149    mkdir_p='$(install_sh) -d'
2150  fi
2151fi
2152
2153for ac_prog in gawk mawk nawk awk
2154do
2155  # Extract the first word of "$ac_prog", so it can be a program name with args.
2156set dummy $ac_prog; ac_word=$2
2157{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2159if test "${ac_cv_prog_AWK+set}" = set; then
2160  echo $ECHO_N "(cached) $ECHO_C" >&6
2161else
2162  if test -n "$AWK"; then
2163  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2164else
2165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166for as_dir in $PATH
2167do
2168  IFS=$as_save_IFS
2169  test -z "$as_dir" && as_dir=.
2170  for ac_exec_ext in '' $ac_executable_extensions; do
2171  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2172    ac_cv_prog_AWK="$ac_prog"
2173    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174    break 2
2175  fi
2176done
2177done
2178IFS=$as_save_IFS
2179
2180fi
2181fi
2182AWK=$ac_cv_prog_AWK
2183if test -n "$AWK"; then
2184  { echo "$as_me:$LINENO: result: $AWK" >&5
2185echo "${ECHO_T}$AWK" >&6; }
2186else
2187  { echo "$as_me:$LINENO: result: no" >&5
2188echo "${ECHO_T}no" >&6; }
2189fi
2190
2191
2192  test -n "$AWK" && break
2193done
2194
2195{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2196echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2197set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2198if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2199  echo $ECHO_N "(cached) $ECHO_C" >&6
2200else
2201  cat >conftest.make <<\_ACEOF
2202SHELL = /bin/sh
2203all:
2204	@echo '@@@%%%=$(MAKE)=@@@%%%'
2205_ACEOF
2206# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2207case `${MAKE-make} -f conftest.make 2>/dev/null` in
2208  *@@@%%%=?*=@@@%%%*)
2209    eval ac_cv_prog_make_${ac_make}_set=yes;;
2210  *)
2211    eval ac_cv_prog_make_${ac_make}_set=no;;
2212esac
2213rm -f conftest.make
2214fi
2215if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2216  { echo "$as_me:$LINENO: result: yes" >&5
2217echo "${ECHO_T}yes" >&6; }
2218  SET_MAKE=
2219else
2220  { echo "$as_me:$LINENO: result: no" >&5
2221echo "${ECHO_T}no" >&6; }
2222  SET_MAKE="MAKE=${MAKE-make}"
2223fi
2224
2225rm -rf .tst 2>/dev/null
2226mkdir .tst 2>/dev/null
2227if test -d .tst; then
2228  am__leading_dot=.
2229else
2230  am__leading_dot=_
2231fi
2232rmdir .tst 2>/dev/null
2233
2234# test to see if srcdir already configured
2235if test "`cd $srcdir && pwd`" != "`pwd`" &&
2236   test -f $srcdir/config.status; then
2237  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2238echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2239   { (exit 1); exit 1; }; }
2240fi
2241
2242# test whether we have cygpath
2243if test -z "$CYGPATH_W"; then
2244  if (cygpath --version) >/dev/null 2>/dev/null; then
2245    CYGPATH_W='cygpath -w'
2246  else
2247    CYGPATH_W=echo
2248  fi
2249fi
2250
2251
2252# Define the identity of the package.
2253 PACKAGE='rmcast'
2254 VERSION='2.0.0'
2255
2256
2257cat >>confdefs.h <<_ACEOF
2258#define PACKAGE "$PACKAGE"
2259_ACEOF
2260
2261
2262cat >>confdefs.h <<_ACEOF
2263#define VERSION "$VERSION"
2264_ACEOF
2265
2266# Some tools Automake needs.
2267
2268ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2269
2270
2271AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2272
2273
2274AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2275
2276
2277AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2278
2279
2280MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2281
2282install_sh=${install_sh-"$am_aux_dir/install-sh"}
2283
2284# Installed binaries are usually stripped using `strip' when the user
2285# run `make install-strip'.  However `strip' might not be the right
2286# tool to use in cross-compilation environments, therefore Automake
2287# will honor the `STRIP' environment variable to overrule this program.
2288if test "$cross_compiling" != no; then
2289  if test -n "$ac_tool_prefix"; then
2290  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2291set dummy ${ac_tool_prefix}strip; ac_word=$2
2292{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2294if test "${ac_cv_prog_STRIP+set}" = set; then
2295  echo $ECHO_N "(cached) $ECHO_C" >&6
2296else
2297  if test -n "$STRIP"; then
2298  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2299else
2300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301for as_dir in $PATH
2302do
2303  IFS=$as_save_IFS
2304  test -z "$as_dir" && as_dir=.
2305  for ac_exec_ext in '' $ac_executable_extensions; do
2306  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2308    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309    break 2
2310  fi
2311done
2312done
2313IFS=$as_save_IFS
2314
2315fi
2316fi
2317STRIP=$ac_cv_prog_STRIP
2318if test -n "$STRIP"; then
2319  { echo "$as_me:$LINENO: result: $STRIP" >&5
2320echo "${ECHO_T}$STRIP" >&6; }
2321else
2322  { echo "$as_me:$LINENO: result: no" >&5
2323echo "${ECHO_T}no" >&6; }
2324fi
2325
2326
2327fi
2328if test -z "$ac_cv_prog_STRIP"; then
2329  ac_ct_STRIP=$STRIP
2330  # Extract the first word of "strip", so it can be a program name with args.
2331set dummy strip; ac_word=$2
2332{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2334if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2335  echo $ECHO_N "(cached) $ECHO_C" >&6
2336else
2337  if test -n "$ac_ct_STRIP"; then
2338  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2339else
2340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341for as_dir in $PATH
2342do
2343  IFS=$as_save_IFS
2344  test -z "$as_dir" && as_dir=.
2345  for ac_exec_ext in '' $ac_executable_extensions; do
2346  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2347    ac_cv_prog_ac_ct_STRIP="strip"
2348    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349    break 2
2350  fi
2351done
2352done
2353IFS=$as_save_IFS
2354
2355fi
2356fi
2357ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2358if test -n "$ac_ct_STRIP"; then
2359  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2360echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2361else
2362  { echo "$as_me:$LINENO: result: no" >&5
2363echo "${ECHO_T}no" >&6; }
2364fi
2365
2366  if test "x$ac_ct_STRIP" = x; then
2367    STRIP=":"
2368  else
2369    case $cross_compiling:$ac_tool_warned in
2370yes:)
2371{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2372whose name does not start with the host triplet.  If you think this
2373configuration is useful to you, please write to autoconf@gnu.org." >&5
2374echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2375whose name does not start with the host triplet.  If you think this
2376configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2377ac_tool_warned=yes ;;
2378esac
2379    STRIP=$ac_ct_STRIP
2380  fi
2381else
2382  STRIP="$ac_cv_prog_STRIP"
2383fi
2384
2385fi
2386INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2387
2388# We need awk for the "check" target.  The system "awk" is bad on
2389# some platforms.
2390# Always define AMTAR for backward compatibility.
2391
2392AMTAR=${AMTAR-"${am_missing_run}tar"}
2393
2394am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2395
2396
2397
2398
2399
2400
2401# Checks for programs.
2402#AC_PROG_AWK
2403ac_ext=c
2404ac_cpp='$CPP $CPPFLAGS'
2405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2407ac_compiler_gnu=$ac_cv_c_compiler_gnu
2408if test -n "$ac_tool_prefix"; then
2409  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2410set dummy ${ac_tool_prefix}gcc; ac_word=$2
2411{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2413if test "${ac_cv_prog_CC+set}" = set; then
2414  echo $ECHO_N "(cached) $ECHO_C" >&6
2415else
2416  if test -n "$CC"; then
2417  ac_cv_prog_CC="$CC" # Let the user override the test.
2418else
2419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420for as_dir in $PATH
2421do
2422  IFS=$as_save_IFS
2423  test -z "$as_dir" && as_dir=.
2424  for ac_exec_ext in '' $ac_executable_extensions; do
2425  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2426    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2427    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428    break 2
2429  fi
2430done
2431done
2432IFS=$as_save_IFS
2433
2434fi
2435fi
2436CC=$ac_cv_prog_CC
2437if test -n "$CC"; then
2438  { echo "$as_me:$LINENO: result: $CC" >&5
2439echo "${ECHO_T}$CC" >&6; }
2440else
2441  { echo "$as_me:$LINENO: result: no" >&5
2442echo "${ECHO_T}no" >&6; }
2443fi
2444
2445
2446fi
2447if test -z "$ac_cv_prog_CC"; then
2448  ac_ct_CC=$CC
2449  # Extract the first word of "gcc", so it can be a program name with args.
2450set dummy gcc; ac_word=$2
2451{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2453if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2454  echo $ECHO_N "(cached) $ECHO_C" >&6
2455else
2456  if test -n "$ac_ct_CC"; then
2457  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2458else
2459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460for as_dir in $PATH
2461do
2462  IFS=$as_save_IFS
2463  test -z "$as_dir" && as_dir=.
2464  for ac_exec_ext in '' $ac_executable_extensions; do
2465  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2466    ac_cv_prog_ac_ct_CC="gcc"
2467    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468    break 2
2469  fi
2470done
2471done
2472IFS=$as_save_IFS
2473
2474fi
2475fi
2476ac_ct_CC=$ac_cv_prog_ac_ct_CC
2477if test -n "$ac_ct_CC"; then
2478  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2479echo "${ECHO_T}$ac_ct_CC" >&6; }
2480else
2481  { echo "$as_me:$LINENO: result: no" >&5
2482echo "${ECHO_T}no" >&6; }
2483fi
2484
2485  if test "x$ac_ct_CC" = x; then
2486    CC=""
2487  else
2488    case $cross_compiling:$ac_tool_warned in
2489yes:)
2490{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2491whose name does not start with the host triplet.  If you think this
2492configuration is useful to you, please write to autoconf@gnu.org." >&5
2493echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2494whose name does not start with the host triplet.  If you think this
2495configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2496ac_tool_warned=yes ;;
2497esac
2498    CC=$ac_ct_CC
2499  fi
2500else
2501  CC="$ac_cv_prog_CC"
2502fi
2503
2504if test -z "$CC"; then
2505          if test -n "$ac_tool_prefix"; then
2506    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2507set dummy ${ac_tool_prefix}cc; ac_word=$2
2508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2510if test "${ac_cv_prog_CC+set}" = set; then
2511  echo $ECHO_N "(cached) $ECHO_C" >&6
2512else
2513  if test -n "$CC"; then
2514  ac_cv_prog_CC="$CC" # Let the user override the test.
2515else
2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517for as_dir in $PATH
2518do
2519  IFS=$as_save_IFS
2520  test -z "$as_dir" && as_dir=.
2521  for ac_exec_ext in '' $ac_executable_extensions; do
2522  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523    ac_cv_prog_CC="${ac_tool_prefix}cc"
2524    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525    break 2
2526  fi
2527done
2528done
2529IFS=$as_save_IFS
2530
2531fi
2532fi
2533CC=$ac_cv_prog_CC
2534if test -n "$CC"; then
2535  { echo "$as_me:$LINENO: result: $CC" >&5
2536echo "${ECHO_T}$CC" >&6; }
2537else
2538  { echo "$as_me:$LINENO: result: no" >&5
2539echo "${ECHO_T}no" >&6; }
2540fi
2541
2542
2543  fi
2544fi
2545if test -z "$CC"; then
2546  # Extract the first word of "cc", so it can be a program name with args.
2547set dummy cc; ac_word=$2
2548{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2550if test "${ac_cv_prog_CC+set}" = set; then
2551  echo $ECHO_N "(cached) $ECHO_C" >&6
2552else
2553  if test -n "$CC"; then
2554  ac_cv_prog_CC="$CC" # Let the user override the test.
2555else
2556  ac_prog_rejected=no
2557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560  IFS=$as_save_IFS
2561  test -z "$as_dir" && as_dir=.
2562  for ac_exec_ext in '' $ac_executable_extensions; do
2563  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2564    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2565       ac_prog_rejected=yes
2566       continue
2567     fi
2568    ac_cv_prog_CC="cc"
2569    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570    break 2
2571  fi
2572done
2573done
2574IFS=$as_save_IFS
2575
2576if test $ac_prog_rejected = yes; then
2577  # We found a bogon in the path, so make sure we never use it.
2578  set dummy $ac_cv_prog_CC
2579  shift
2580  if test $# != 0; then
2581    # We chose a different compiler from the bogus one.
2582    # However, it has the same basename, so the bogon will be chosen
2583    # first if we set CC to just the basename; use the full file name.
2584    shift
2585    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2586  fi
2587fi
2588fi
2589fi
2590CC=$ac_cv_prog_CC
2591if test -n "$CC"; then
2592  { echo "$as_me:$LINENO: result: $CC" >&5
2593echo "${ECHO_T}$CC" >&6; }
2594else
2595  { echo "$as_me:$LINENO: result: no" >&5
2596echo "${ECHO_T}no" >&6; }
2597fi
2598
2599
2600fi
2601if test -z "$CC"; then
2602  if test -n "$ac_tool_prefix"; then
2603  for ac_prog in cl.exe
2604  do
2605    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2607{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2609if test "${ac_cv_prog_CC+set}" = set; then
2610  echo $ECHO_N "(cached) $ECHO_C" >&6
2611else
2612  if test -n "$CC"; then
2613  ac_cv_prog_CC="$CC" # Let the user override the test.
2614else
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618  IFS=$as_save_IFS
2619  test -z "$as_dir" && as_dir=.
2620  for ac_exec_ext in '' $ac_executable_extensions; do
2621  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2623    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624    break 2
2625  fi
2626done
2627done
2628IFS=$as_save_IFS
2629
2630fi
2631fi
2632CC=$ac_cv_prog_CC
2633if test -n "$CC"; then
2634  { echo "$as_me:$LINENO: result: $CC" >&5
2635echo "${ECHO_T}$CC" >&6; }
2636else
2637  { echo "$as_me:$LINENO: result: no" >&5
2638echo "${ECHO_T}no" >&6; }
2639fi
2640
2641
2642    test -n "$CC" && break
2643  done
2644fi
2645if test -z "$CC"; then
2646  ac_ct_CC=$CC
2647  for ac_prog in cl.exe
2648do
2649  # Extract the first word of "$ac_prog", so it can be a program name with args.
2650set dummy $ac_prog; ac_word=$2
2651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2653if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2654  echo $ECHO_N "(cached) $ECHO_C" >&6
2655else
2656  if test -n "$ac_ct_CC"; then
2657  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2658else
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662  IFS=$as_save_IFS
2663  test -z "$as_dir" && as_dir=.
2664  for ac_exec_ext in '' $ac_executable_extensions; do
2665  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666    ac_cv_prog_ac_ct_CC="$ac_prog"
2667    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668    break 2
2669  fi
2670done
2671done
2672IFS=$as_save_IFS
2673
2674fi
2675fi
2676ac_ct_CC=$ac_cv_prog_ac_ct_CC
2677if test -n "$ac_ct_CC"; then
2678  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2679echo "${ECHO_T}$ac_ct_CC" >&6; }
2680else
2681  { echo "$as_me:$LINENO: result: no" >&5
2682echo "${ECHO_T}no" >&6; }
2683fi
2684
2685
2686  test -n "$ac_ct_CC" && break
2687done
2688
2689  if test "x$ac_ct_CC" = x; then
2690    CC=""
2691  else
2692    case $cross_compiling:$ac_tool_warned in
2693yes:)
2694{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2695whose name does not start with the host triplet.  If you think this
2696configuration is useful to you, please write to autoconf@gnu.org." >&5
2697echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2698whose name does not start with the host triplet.  If you think this
2699configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2700ac_tool_warned=yes ;;
2701esac
2702    CC=$ac_ct_CC
2703  fi
2704fi
2705
2706fi
2707
2708
2709test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2710See \`config.log' for more details." >&5
2711echo "$as_me: error: no acceptable C compiler found in \$PATH
2712See \`config.log' for more details." >&2;}
2713   { (exit 1); exit 1; }; }
2714
2715# Provide some information about the compiler.
2716echo "$as_me:$LINENO: checking for C compiler version" >&5
2717ac_compiler=`set X $ac_compile; echo $2`
2718{ (ac_try="$ac_compiler --version >&5"
2719case "(($ac_try" in
2720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721  *) ac_try_echo=$ac_try;;
2722esac
2723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724  (eval "$ac_compiler --version >&5") 2>&5
2725  ac_status=$?
2726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727  (exit $ac_status); }
2728{ (ac_try="$ac_compiler -v >&5"
2729case "(($ac_try" in
2730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731  *) ac_try_echo=$ac_try;;
2732esac
2733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734  (eval "$ac_compiler -v >&5") 2>&5
2735  ac_status=$?
2736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737  (exit $ac_status); }
2738{ (ac_try="$ac_compiler -V >&5"
2739case "(($ac_try" in
2740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741  *) ac_try_echo=$ac_try;;
2742esac
2743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744  (eval "$ac_compiler -V >&5") 2>&5
2745  ac_status=$?
2746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747  (exit $ac_status); }
2748
2749cat >conftest.$ac_ext <<_ACEOF
2750/* confdefs.h.  */
2751_ACEOF
2752cat confdefs.h >>conftest.$ac_ext
2753cat >>conftest.$ac_ext <<_ACEOF
2754/* end confdefs.h.  */
2755
2756int
2757main ()
2758{
2759
2760  ;
2761  return 0;
2762}
2763_ACEOF
2764ac_clean_files_save=$ac_clean_files
2765ac_clean_files="$ac_clean_files a.out a.exe b.out"
2766# Try to create an executable without -o first, disregard a.out.
2767# It will help us diagnose broken compilers, and finding out an intuition
2768# of exeext.
2769{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2770echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2771ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2772#
2773# List of possible output files, starting from the most likely.
2774# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2775# only as a last resort.  b.out is created by i960 compilers.
2776ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2777#
2778# The IRIX 6 linker writes into existing files which may not be
2779# executable, retaining their permissions.  Remove them first so a
2780# subsequent execution test works.
2781ac_rmfiles=
2782for ac_file in $ac_files
2783do
2784  case $ac_file in
2785    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2786    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2787  esac
2788done
2789rm -f $ac_rmfiles
2790
2791if { (ac_try="$ac_link_default"
2792case "(($ac_try" in
2793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794  *) ac_try_echo=$ac_try;;
2795esac
2796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797  (eval "$ac_link_default") 2>&5
2798  ac_status=$?
2799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800  (exit $ac_status); }; then
2801  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2802# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2803# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2804# so that the user can short-circuit this test for compilers unknown to
2805# Autoconf.
2806for ac_file in $ac_files ''
2807do
2808  test -f "$ac_file" || continue
2809  case $ac_file in
2810    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2811	;;
2812    [ab].out )
2813	# We found the default executable, but exeext='' is most
2814	# certainly right.
2815	break;;
2816    *.* )
2817        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2818	then :; else
2819	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2820	fi
2821	# We set ac_cv_exeext here because the later test for it is not
2822	# safe: cross compilers may not add the suffix if given an `-o'
2823	# argument, so we may need to know it at that point already.
2824	# Even if this section looks crufty: it has the advantage of
2825	# actually working.
2826	break;;
2827    * )
2828	break;;
2829  esac
2830done
2831test "$ac_cv_exeext" = no && ac_cv_exeext=
2832
2833else
2834  ac_file=''
2835fi
2836
2837{ echo "$as_me:$LINENO: result: $ac_file" >&5
2838echo "${ECHO_T}$ac_file" >&6; }
2839if test -z "$ac_file"; then
2840  echo "$as_me: failed program was:" >&5
2841sed 's/^/| /' conftest.$ac_ext >&5
2842
2843{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2844See \`config.log' for more details." >&5
2845echo "$as_me: error: C compiler cannot create executables
2846See \`config.log' for more details." >&2;}
2847   { (exit 77); exit 77; }; }
2848fi
2849
2850ac_exeext=$ac_cv_exeext
2851
2852# Check that the compiler produces executables we can run.  If not, either
2853# the compiler is broken, or we cross compile.
2854{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2855echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2856# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2857# If not cross compiling, check that we can run a simple program.
2858if test "$cross_compiling" != yes; then
2859  if { ac_try='./$ac_file'
2860  { (case "(($ac_try" in
2861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862  *) ac_try_echo=$ac_try;;
2863esac
2864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865  (eval "$ac_try") 2>&5
2866  ac_status=$?
2867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868  (exit $ac_status); }; }; then
2869    cross_compiling=no
2870  else
2871    if test "$cross_compiling" = maybe; then
2872	cross_compiling=yes
2873    else
2874	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2875If you meant to cross compile, use \`--host'.
2876See \`config.log' for more details." >&5
2877echo "$as_me: error: cannot run C compiled programs.
2878If you meant to cross compile, use \`--host'.
2879See \`config.log' for more details." >&2;}
2880   { (exit 1); exit 1; }; }
2881    fi
2882  fi
2883fi
2884{ echo "$as_me:$LINENO: result: yes" >&5
2885echo "${ECHO_T}yes" >&6; }
2886
2887rm -f a.out a.exe conftest$ac_cv_exeext b.out
2888ac_clean_files=$ac_clean_files_save
2889# Check that the compiler produces executables we can run.  If not, either
2890# the compiler is broken, or we cross compile.
2891{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2892echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2893{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2894echo "${ECHO_T}$cross_compiling" >&6; }
2895
2896{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2897echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2898if { (ac_try="$ac_link"
2899case "(($ac_try" in
2900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901  *) ac_try_echo=$ac_try;;
2902esac
2903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904  (eval "$ac_link") 2>&5
2905  ac_status=$?
2906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907  (exit $ac_status); }; then
2908  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2909# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2910# work properly (i.e., refer to `conftest.exe'), while it won't with
2911# `rm'.
2912for ac_file in conftest.exe conftest conftest.*; do
2913  test -f "$ac_file" || continue
2914  case $ac_file in
2915    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2916    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2917	  break;;
2918    * ) break;;
2919  esac
2920done
2921else
2922  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2923See \`config.log' for more details." >&5
2924echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2925See \`config.log' for more details." >&2;}
2926   { (exit 1); exit 1; }; }
2927fi
2928
2929rm -f conftest$ac_cv_exeext
2930{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2931echo "${ECHO_T}$ac_cv_exeext" >&6; }
2932
2933rm -f conftest.$ac_ext
2934EXEEXT=$ac_cv_exeext
2935ac_exeext=$EXEEXT
2936{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2937echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2938if test "${ac_cv_objext+set}" = set; then
2939  echo $ECHO_N "(cached) $ECHO_C" >&6
2940else
2941  cat >conftest.$ac_ext <<_ACEOF
2942/* confdefs.h.  */
2943_ACEOF
2944cat confdefs.h >>conftest.$ac_ext
2945cat >>conftest.$ac_ext <<_ACEOF
2946/* end confdefs.h.  */
2947
2948int
2949main ()
2950{
2951
2952  ;
2953  return 0;
2954}
2955_ACEOF
2956rm -f conftest.o conftest.obj
2957if { (ac_try="$ac_compile"
2958case "(($ac_try" in
2959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960  *) ac_try_echo=$ac_try;;
2961esac
2962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963  (eval "$ac_compile") 2>&5
2964  ac_status=$?
2965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966  (exit $ac_status); }; then
2967  for ac_file in conftest.o conftest.obj conftest.*; do
2968  test -f "$ac_file" || continue;
2969  case $ac_file in
2970    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2971    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2972       break;;
2973  esac
2974done
2975else
2976  echo "$as_me: failed program was:" >&5
2977sed 's/^/| /' conftest.$ac_ext >&5
2978
2979{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2980See \`config.log' for more details." >&5
2981echo "$as_me: error: cannot compute suffix of object files: cannot compile
2982See \`config.log' for more details." >&2;}
2983   { (exit 1); exit 1; }; }
2984fi
2985
2986rm -f conftest.$ac_cv_objext conftest.$ac_ext
2987fi
2988{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2989echo "${ECHO_T}$ac_cv_objext" >&6; }
2990OBJEXT=$ac_cv_objext
2991ac_objext=$OBJEXT
2992{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2993echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2994if test "${ac_cv_c_compiler_gnu+set}" = set; then
2995  echo $ECHO_N "(cached) $ECHO_C" >&6
2996else
2997  cat >conftest.$ac_ext <<_ACEOF
2998/* confdefs.h.  */
2999_ACEOF
3000cat confdefs.h >>conftest.$ac_ext
3001cat >>conftest.$ac_ext <<_ACEOF
3002/* end confdefs.h.  */
3003
3004int
3005main ()
3006{
3007#ifndef __GNUC__
3008       choke me
3009#endif
3010
3011  ;
3012  return 0;
3013}
3014_ACEOF
3015rm -f conftest.$ac_objext
3016if { (ac_try="$ac_compile"
3017case "(($ac_try" in
3018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019  *) ac_try_echo=$ac_try;;
3020esac
3021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022  (eval "$ac_compile") 2>conftest.er1
3023  ac_status=$?
3024  grep -v '^ *+' conftest.er1 >conftest.err
3025  rm -f conftest.er1
3026  cat conftest.err >&5
3027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028  (exit $ac_status); } && {
3029	 test -z "$ac_c_werror_flag" ||
3030	 test ! -s conftest.err
3031       } && test -s conftest.$ac_objext; then
3032  ac_compiler_gnu=yes
3033else
3034  echo "$as_me: failed program was:" >&5
3035sed 's/^/| /' conftest.$ac_ext >&5
3036
3037	ac_compiler_gnu=no
3038fi
3039
3040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3041ac_cv_c_compiler_gnu=$ac_compiler_gnu
3042
3043fi
3044{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3045echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3046GCC=`test $ac_compiler_gnu = yes && echo yes`
3047ac_test_CFLAGS=${CFLAGS+set}
3048ac_save_CFLAGS=$CFLAGS
3049{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3050echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3051if test "${ac_cv_prog_cc_g+set}" = set; then
3052  echo $ECHO_N "(cached) $ECHO_C" >&6
3053else
3054  ac_save_c_werror_flag=$ac_c_werror_flag
3055   ac_c_werror_flag=yes
3056   ac_cv_prog_cc_g=no
3057   CFLAGS="-g"
3058   cat >conftest.$ac_ext <<_ACEOF
3059/* confdefs.h.  */
3060_ACEOF
3061cat confdefs.h >>conftest.$ac_ext
3062cat >>conftest.$ac_ext <<_ACEOF
3063/* end confdefs.h.  */
3064
3065int
3066main ()
3067{
3068
3069  ;
3070  return 0;
3071}
3072_ACEOF
3073rm -f conftest.$ac_objext
3074if { (ac_try="$ac_compile"
3075case "(($ac_try" in
3076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077  *) ac_try_echo=$ac_try;;
3078esac
3079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080  (eval "$ac_compile") 2>conftest.er1
3081  ac_status=$?
3082  grep -v '^ *+' conftest.er1 >conftest.err
3083  rm -f conftest.er1
3084  cat conftest.err >&5
3085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086  (exit $ac_status); } && {
3087	 test -z "$ac_c_werror_flag" ||
3088	 test ! -s conftest.err
3089       } && test -s conftest.$ac_objext; then
3090  ac_cv_prog_cc_g=yes
3091else
3092  echo "$as_me: failed program was:" >&5
3093sed 's/^/| /' conftest.$ac_ext >&5
3094
3095	CFLAGS=""
3096      cat >conftest.$ac_ext <<_ACEOF
3097/* confdefs.h.  */
3098_ACEOF
3099cat confdefs.h >>conftest.$ac_ext
3100cat >>conftest.$ac_ext <<_ACEOF
3101/* end confdefs.h.  */
3102
3103int
3104main ()
3105{
3106
3107  ;
3108  return 0;
3109}
3110_ACEOF
3111rm -f conftest.$ac_objext
3112if { (ac_try="$ac_compile"
3113case "(($ac_try" in
3114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115  *) ac_try_echo=$ac_try;;
3116esac
3117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118  (eval "$ac_compile") 2>conftest.er1
3119  ac_status=$?
3120  grep -v '^ *+' conftest.er1 >conftest.err
3121  rm -f conftest.er1
3122  cat conftest.err >&5
3123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124  (exit $ac_status); } && {
3125	 test -z "$ac_c_werror_flag" ||
3126	 test ! -s conftest.err
3127       } && test -s conftest.$ac_objext; then
3128  :
3129else
3130  echo "$as_me: failed program was:" >&5
3131sed 's/^/| /' conftest.$ac_ext >&5
3132
3133	ac_c_werror_flag=$ac_save_c_werror_flag
3134	 CFLAGS="-g"
3135	 cat >conftest.$ac_ext <<_ACEOF
3136/* confdefs.h.  */
3137_ACEOF
3138cat confdefs.h >>conftest.$ac_ext
3139cat >>conftest.$ac_ext <<_ACEOF
3140/* end confdefs.h.  */
3141
3142int
3143main ()
3144{
3145
3146  ;
3147  return 0;
3148}
3149_ACEOF
3150rm -f conftest.$ac_objext
3151if { (ac_try="$ac_compile"
3152case "(($ac_try" in
3153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154  *) ac_try_echo=$ac_try;;
3155esac
3156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157  (eval "$ac_compile") 2>conftest.er1
3158  ac_status=$?
3159  grep -v '^ *+' conftest.er1 >conftest.err
3160  rm -f conftest.er1
3161  cat conftest.err >&5
3162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163  (exit $ac_status); } && {
3164	 test -z "$ac_c_werror_flag" ||
3165	 test ! -s conftest.err
3166       } && test -s conftest.$ac_objext; then
3167  ac_cv_prog_cc_g=yes
3168else
3169  echo "$as_me: failed program was:" >&5
3170sed 's/^/| /' conftest.$ac_ext >&5
3171
3172
3173fi
3174
3175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176fi
3177
3178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179fi
3180
3181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182   ac_c_werror_flag=$ac_save_c_werror_flag
3183fi
3184{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3185echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3186if test "$ac_test_CFLAGS" = set; then
3187  CFLAGS=$ac_save_CFLAGS
3188elif test $ac_cv_prog_cc_g = yes; then
3189  if test "$GCC" = yes; then
3190    CFLAGS="-g -O2"
3191  else
3192    CFLAGS="-g"
3193  fi
3194else
3195  if test "$GCC" = yes; then
3196    CFLAGS="-O2"
3197  else
3198    CFLAGS=
3199  fi
3200fi
3201{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3202echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3203if test "${ac_cv_prog_cc_c89+set}" = set; then
3204  echo $ECHO_N "(cached) $ECHO_C" >&6
3205else
3206  ac_cv_prog_cc_c89=no
3207ac_save_CC=$CC
3208cat >conftest.$ac_ext <<_ACEOF
3209/* confdefs.h.  */
3210_ACEOF
3211cat confdefs.h >>conftest.$ac_ext
3212cat >>conftest.$ac_ext <<_ACEOF
3213/* end confdefs.h.  */
3214#include <stdarg.h>
3215#include <stdio.h>
3216#include <sys/types.h>
3217#include <sys/stat.h>
3218/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3219struct buf { int x; };
3220FILE * (*rcsopen) (struct buf *, struct stat *, int);
3221static char *e (p, i)
3222     char **p;
3223     int i;
3224{
3225  return p[i];
3226}
3227static char *f (char * (*g) (char **, int), char **p, ...)
3228{
3229  char *s;
3230  va_list v;
3231  va_start (v,p);
3232  s = g (p, va_arg (v,int));
3233  va_end (v);
3234  return s;
3235}
3236
3237/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3238   function prototypes and stuff, but not '\xHH' hex character constants.
3239   These don't provoke an error unfortunately, instead are silently treated
3240   as 'x'.  The following induces an error, until -std is added to get
3241   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3242   array size at least.  It's necessary to write '\x00'==0 to get something
3243   that's true only with -std.  */
3244int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3245
3246/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3247   inside strings and character constants.  */
3248#define FOO(x) 'x'
3249int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3250
3251int test (int i, double x);
3252struct s1 {int (*f) (int a);};
3253struct s2 {int (*f) (double a);};
3254int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3255int argc;
3256char **argv;
3257int
3258main ()
3259{
3260return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3261  ;
3262  return 0;
3263}
3264_ACEOF
3265for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3266	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3267do
3268  CC="$ac_save_CC $ac_arg"
3269  rm -f conftest.$ac_objext
3270if { (ac_try="$ac_compile"
3271case "(($ac_try" in
3272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273  *) ac_try_echo=$ac_try;;
3274esac
3275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276  (eval "$ac_compile") 2>conftest.er1
3277  ac_status=$?
3278  grep -v '^ *+' conftest.er1 >conftest.err
3279  rm -f conftest.er1
3280  cat conftest.err >&5
3281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282  (exit $ac_status); } && {
3283	 test -z "$ac_c_werror_flag" ||
3284	 test ! -s conftest.err
3285       } && test -s conftest.$ac_objext; then
3286  ac_cv_prog_cc_c89=$ac_arg
3287else
3288  echo "$as_me: failed program was:" >&5
3289sed 's/^/| /' conftest.$ac_ext >&5
3290
3291
3292fi
3293
3294rm -f core conftest.err conftest.$ac_objext
3295  test "x$ac_cv_prog_cc_c89" != "xno" && break
3296done
3297rm -f conftest.$ac_ext
3298CC=$ac_save_CC
3299
3300fi
3301# AC_CACHE_VAL
3302case "x$ac_cv_prog_cc_c89" in
3303  x)
3304    { echo "$as_me:$LINENO: result: none needed" >&5
3305echo "${ECHO_T}none needed" >&6; } ;;
3306  xno)
3307    { echo "$as_me:$LINENO: result: unsupported" >&5
3308echo "${ECHO_T}unsupported" >&6; } ;;
3309  *)
3310    CC="$CC $ac_cv_prog_cc_c89"
3311    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3312echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3313esac
3314
3315
3316ac_ext=c
3317ac_cpp='$CPP $CPPFLAGS'
3318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321DEPDIR="${am__leading_dot}deps"
3322
3323ac_config_commands="$ac_config_commands depfiles"
3324
3325
3326am_make=${MAKE-make}
3327cat > confinc << 'END'
3328am__doit:
3329	@echo done
3330.PHONY: am__doit
3331END
3332# If we don't find an include directive, just comment out the code.
3333{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3334echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3335am__include="#"
3336am__quote=
3337_am_result=none
3338# First try GNU make style include.
3339echo "include confinc" > confmf
3340# We grep out `Entering directory' and `Leaving directory'
3341# messages which can occur if `w' ends up in MAKEFLAGS.
3342# In particular we don't look at `^make:' because GNU make might
3343# be invoked under some other name (usually "gmake"), in which
3344# case it prints its new name instead of `make'.
3345if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3346   am__include=include
3347   am__quote=
3348   _am_result=GNU
3349fi
3350# Now try BSD make style include.
3351if test "$am__include" = "#"; then
3352   echo '.include "confinc"' > confmf
3353   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3354      am__include=.include
3355      am__quote="\""
3356      _am_result=BSD
3357   fi
3358fi
3359
3360
3361{ echo "$as_me:$LINENO: result: $_am_result" >&5
3362echo "${ECHO_T}$_am_result" >&6; }
3363rm -f confinc confmf
3364
3365# Check whether --enable-dependency-tracking was given.
3366if test "${enable_dependency_tracking+set}" = set; then
3367  enableval=$enable_dependency_tracking;
3368fi
3369
3370if test "x$enable_dependency_tracking" != xno; then
3371  am_depcomp="$ac_aux_dir/depcomp"
3372  AMDEPBACKSLASH='\'
3373fi
3374
3375
3376if test "x$enable_dependency_tracking" != xno; then
3377  AMDEP_TRUE=
3378  AMDEP_FALSE='#'
3379else
3380  AMDEP_TRUE='#'
3381  AMDEP_FALSE=
3382fi
3383
3384
3385
3386
3387depcc="$CC"   am_compiler_list=
3388
3389{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3390echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3391if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3392  echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3395  # We make a subdir and do the tests there.  Otherwise we can end up
3396  # making bogus files that we don't know about and never remove.  For
3397  # instance it was reported that on HP-UX the gcc test will end up
3398  # making a dummy file named `D' -- because `-MD' means `put the output
3399  # in D'.
3400  mkdir conftest.dir
3401  # Copy depcomp to subdir because otherwise we won't find it if we're
3402  # using a relative directory.
3403  cp "$am_depcomp" conftest.dir
3404  cd conftest.dir
3405  # We will build objects and dependencies in a subdirectory because
3406  # it helps to detect inapplicable dependency modes.  For instance
3407  # both Tru64's cc and ICC support -MD to output dependencies as a
3408  # side effect of compilation, but ICC will put the dependencies in
3409  # the current directory while Tru64 will put them in the object
3410  # directory.
3411  mkdir sub
3412
3413  am_cv_CC_dependencies_compiler_type=none
3414  if test "$am_compiler_list" = ""; then
3415     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3416  fi
3417  for depmode in $am_compiler_list; do
3418    # Setup a source with many dependencies, because some compilers
3419    # like to wrap large dependency lists on column 80 (with \), and
3420    # we should not choose a depcomp mode which is confused by this.
3421    #
3422    # We need to recreate these files for each test, as the compiler may
3423    # overwrite some of them when testing with obscure command lines.
3424    # This happens at least with the AIX C compiler.
3425    : > sub/conftest.c
3426    for i in 1 2 3 4 5 6; do
3427      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3428      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3429      # Solaris 8's {/usr,}/bin/sh.
3430      touch sub/conftst$i.h
3431    done
3432    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3433
3434    case $depmode in
3435    nosideeffect)
3436      # after this tag, mechanisms are not by side-effect, so they'll
3437      # only be used when explicitly requested
3438      if test "x$enable_dependency_tracking" = xyes; then
3439	continue
3440      else
3441	break
3442      fi
3443      ;;
3444    none) break ;;
3445    esac
3446    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3447    # mode.  It turns out that the SunPro C++ compiler does not properly
3448    # handle `-M -o', and we need to detect this.
3449    if depmode=$depmode \
3450       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3451       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3452       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3453         >/dev/null 2>conftest.err &&
3454       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3455       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3456       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3457      # icc doesn't choke on unknown options, it will just issue warnings
3458      # or remarks (even with -Werror).  So we grep stderr for any message
3459      # that says an option was ignored or not supported.
3460      # When given -MP, icc 7.0 and 7.1 complain thusly:
3461      #   icc: Command line warning: ignoring option '-M'; no argument required
3462      # The diagnosis changed in icc 8.0:
3463      #   icc: Command line remark: option '-MP' not supported
3464      if (grep 'ignoring option' conftest.err ||
3465          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3466        am_cv_CC_dependencies_compiler_type=$depmode
3467        break
3468      fi
3469    fi
3470  done
3471
3472  cd ..
3473  rm -rf conftest.dir
3474else
3475  am_cv_CC_dependencies_compiler_type=none
3476fi
3477
3478fi
3479{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3480echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3481CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3482
3483
3484
3485if
3486  test "x$enable_dependency_tracking" != xno \
3487  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3488  am__fastdepCC_TRUE=
3489  am__fastdepCC_FALSE='#'
3490else
3491  am__fastdepCC_TRUE='#'
3492  am__fastdepCC_FALSE=
3493fi
3494
3495
3496# Check whether --enable-shared was given.
3497if test "${enable_shared+set}" = set; then
3498  enableval=$enable_shared; p=${PACKAGE-default}
3499    case $enableval in
3500    yes) enable_shared=yes ;;
3501    no) enable_shared=no ;;
3502    *)
3503      enable_shared=no
3504      # Look at the argument we got.  We use all the common list separators.
3505      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3506      for pkg in $enableval; do
3507	IFS="$lt_save_ifs"
3508	if test "X$pkg" = "X$p"; then
3509	  enable_shared=yes
3510	fi
3511      done
3512      IFS="$lt_save_ifs"
3513      ;;
3514    esac
3515else
3516  enable_shared=yes
3517fi
3518
3519
3520# Check whether --enable-static was given.
3521if test "${enable_static+set}" = set; then
3522  enableval=$enable_static; p=${PACKAGE-default}
3523    case $enableval in
3524    yes) enable_static=yes ;;
3525    no) enable_static=no ;;
3526    *)
3527     enable_static=no
3528      # Look at the argument we got.  We use all the common list separators.
3529      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3530      for pkg in $enableval; do
3531	IFS="$lt_save_ifs"
3532	if test "X$pkg" = "X$p"; then
3533	  enable_static=yes
3534	fi
3535      done
3536      IFS="$lt_save_ifs"
3537      ;;
3538    esac
3539else
3540  enable_static=yes
3541fi
3542
3543
3544# Check whether --enable-fast-install was given.
3545if test "${enable_fast_install+set}" = set; then
3546  enableval=$enable_fast_install; p=${PACKAGE-default}
3547    case $enableval in
3548    yes) enable_fast_install=yes ;;
3549    no) enable_fast_install=no ;;
3550    *)
3551      enable_fast_install=no
3552      # Look at the argument we got.  We use all the common list separators.
3553      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3554      for pkg in $enableval; do
3555	IFS="$lt_save_ifs"
3556	if test "X$pkg" = "X$p"; then
3557	  enable_fast_install=yes
3558	fi
3559      done
3560      IFS="$lt_save_ifs"
3561      ;;
3562    esac
3563else
3564  enable_fast_install=yes
3565fi
3566
3567
3568# Make sure we can run config.sub.
3569$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3570  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3571echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3572   { (exit 1); exit 1; }; }
3573
3574{ echo "$as_me:$LINENO: checking build system type" >&5
3575echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3576if test "${ac_cv_build+set}" = set; then
3577  echo $ECHO_N "(cached) $ECHO_C" >&6
3578else
3579  ac_build_alias=$build_alias
3580test "x$ac_build_alias" = x &&
3581  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3582test "x$ac_build_alias" = x &&
3583  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3584echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3585   { (exit 1); exit 1; }; }
3586ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3587  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3588echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3589   { (exit 1); exit 1; }; }
3590
3591fi
3592{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3593echo "${ECHO_T}$ac_cv_build" >&6; }
3594case $ac_cv_build in
3595*-*-*) ;;
3596*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3597echo "$as_me: error: invalid value of canonical build" >&2;}
3598   { (exit 1); exit 1; }; };;
3599esac
3600build=$ac_cv_build
3601ac_save_IFS=$IFS; IFS='-'
3602set x $ac_cv_build
3603shift
3604build_cpu=$1
3605build_vendor=$2
3606shift; shift
3607# Remember, the first character of IFS is used to create $*,
3608# except with old shells:
3609build_os=$*
3610IFS=$ac_save_IFS
3611case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3612
3613
3614{ echo "$as_me:$LINENO: checking host system type" >&5
3615echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3616if test "${ac_cv_host+set}" = set; then
3617  echo $ECHO_N "(cached) $ECHO_C" >&6
3618else
3619  if test "x$host_alias" = x; then
3620  ac_cv_host=$ac_cv_build
3621else
3622  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3623    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3624echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3625   { (exit 1); exit 1; }; }
3626fi
3627
3628fi
3629{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3630echo "${ECHO_T}$ac_cv_host" >&6; }
3631case $ac_cv_host in
3632*-*-*) ;;
3633*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3634echo "$as_me: error: invalid value of canonical host" >&2;}
3635   { (exit 1); exit 1; }; };;
3636esac
3637host=$ac_cv_host
3638ac_save_IFS=$IFS; IFS='-'
3639set x $ac_cv_host
3640shift
3641host_cpu=$1
3642host_vendor=$2
3643shift; shift
3644# Remember, the first character of IFS is used to create $*,
3645# except with old shells:
3646host_os=$*
3647IFS=$ac_save_IFS
3648case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3649
3650
3651{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3652echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3653if test "${lt_cv_path_SED+set}" = set; then
3654  echo $ECHO_N "(cached) $ECHO_C" >&6
3655else
3656  # Loop through the user's path and test for sed and gsed.
3657# Then use that list of sed's as ones to test for truncation.
3658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659for as_dir in $PATH
3660do
3661  IFS=$as_save_IFS
3662  test -z "$as_dir" && as_dir=.
3663  for lt_ac_prog in sed gsed; do
3664    for ac_exec_ext in '' $ac_executable_extensions; do
3665      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3666        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3667      fi
3668    done
3669  done
3670done
3671IFS=$as_save_IFS
3672lt_ac_max=0
3673lt_ac_count=0
3674# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3675# along with /bin/sed that truncates output.
3676for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3677  test ! -f $lt_ac_sed && continue
3678  cat /dev/null > conftest.in
3679  lt_ac_count=0
3680  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3681  # Check for GNU sed and select it if it is found.
3682  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3683    lt_cv_path_SED=$lt_ac_sed
3684    break
3685  fi
3686  while true; do
3687    cat conftest.in conftest.in >conftest.tmp
3688    mv conftest.tmp conftest.in
3689    cp conftest.in conftest.nl
3690    echo >>conftest.nl
3691    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3692    cmp -s conftest.out conftest.nl || break
3693    # 10000 chars as input seems more than enough
3694    test $lt_ac_count -gt 10 && break
3695    lt_ac_count=`expr $lt_ac_count + 1`
3696    if test $lt_ac_count -gt $lt_ac_max; then
3697      lt_ac_max=$lt_ac_count
3698      lt_cv_path_SED=$lt_ac_sed
3699    fi
3700  done
3701done
3702
3703fi
3704
3705SED=$lt_cv_path_SED
3706
3707{ echo "$as_me:$LINENO: result: $SED" >&5
3708echo "${ECHO_T}$SED" >&6; }
3709
3710{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3711echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3712if test "${ac_cv_path_GREP+set}" = set; then
3713  echo $ECHO_N "(cached) $ECHO_C" >&6
3714else
3715  # Extract the first word of "grep ggrep" to use in msg output
3716if test -z "$GREP"; then
3717set dummy grep ggrep; ac_prog_name=$2
3718if test "${ac_cv_path_GREP+set}" = set; then
3719  echo $ECHO_N "(cached) $ECHO_C" >&6
3720else
3721  ac_path_GREP_found=false
3722# Loop through the user's path and test for each of PROGNAME-LIST
3723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3725do
3726  IFS=$as_save_IFS
3727  test -z "$as_dir" && as_dir=.
3728  for ac_prog in grep ggrep; do
3729  for ac_exec_ext in '' $ac_executable_extensions; do
3730    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3731    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3732    # Check for GNU ac_path_GREP and select it if it is found.
3733  # Check for GNU $ac_path_GREP
3734case `"$ac_path_GREP" --version 2>&1` in
3735*GNU*)
3736  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3737*)
3738  ac_count=0
3739  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3740  while :
3741  do
3742    cat "conftest.in" "conftest.in" >"conftest.tmp"
3743    mv "conftest.tmp" "conftest.in"
3744    cp "conftest.in" "conftest.nl"
3745    echo 'GREP' >> "conftest.nl"
3746    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3747    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3748    ac_count=`expr $ac_count + 1`
3749    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3750      # Best one so far, save it but keep looking for a better one
3751      ac_cv_path_GREP="$ac_path_GREP"
3752      ac_path_GREP_max=$ac_count
3753    fi
3754    # 10*(2^10) chars as input seems more than enough
3755    test $ac_count -gt 10 && break
3756  done
3757  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3758esac
3759
3760
3761    $ac_path_GREP_found && break 3
3762  done
3763done
3764
3765done
3766IFS=$as_save_IFS
3767
3768
3769fi
3770
3771GREP="$ac_cv_path_GREP"
3772if test -z "$GREP"; then
3773  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3774echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3775   { (exit 1); exit 1; }; }
3776fi
3777
3778else
3779  ac_cv_path_GREP=$GREP
3780fi
3781
3782
3783fi
3784{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3785echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3786 GREP="$ac_cv_path_GREP"
3787
3788
3789{ echo "$as_me:$LINENO: checking for egrep" >&5
3790echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3791if test "${ac_cv_path_EGREP+set}" = set; then
3792  echo $ECHO_N "(cached) $ECHO_C" >&6
3793else
3794  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3795   then ac_cv_path_EGREP="$GREP -E"
3796   else
3797     # Extract the first word of "egrep" to use in msg output
3798if test -z "$EGREP"; then
3799set dummy egrep; ac_prog_name=$2
3800if test "${ac_cv_path_EGREP+set}" = set; then
3801  echo $ECHO_N "(cached) $ECHO_C" >&6
3802else
3803  ac_path_EGREP_found=false
3804# Loop through the user's path and test for each of PROGNAME-LIST
3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3807do
3808  IFS=$as_save_IFS
3809  test -z "$as_dir" && as_dir=.
3810  for ac_prog in egrep; do
3811  for ac_exec_ext in '' $ac_executable_extensions; do
3812    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3813    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3814    # Check for GNU ac_path_EGREP and select it if it is found.
3815  # Check for GNU $ac_path_EGREP
3816case `"$ac_path_EGREP" --version 2>&1` in
3817*GNU*)
3818  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3819*)
3820  ac_count=0
3821  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3822  while :
3823  do
3824    cat "conftest.in" "conftest.in" >"conftest.tmp"
3825    mv "conftest.tmp" "conftest.in"
3826    cp "conftest.in" "conftest.nl"
3827    echo 'EGREP' >> "conftest.nl"
3828    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3829    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3830    ac_count=`expr $ac_count + 1`
3831    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3832      # Best one so far, save it but keep looking for a better one
3833      ac_cv_path_EGREP="$ac_path_EGREP"
3834      ac_path_EGREP_max=$ac_count
3835    fi
3836    # 10*(2^10) chars as input seems more than enough
3837    test $ac_count -gt 10 && break
3838  done
3839  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3840esac
3841
3842
3843    $ac_path_EGREP_found && break 3
3844  done
3845done
3846
3847done
3848IFS=$as_save_IFS
3849
3850
3851fi
3852
3853EGREP="$ac_cv_path_EGREP"
3854if test -z "$EGREP"; then
3855  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3856echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3857   { (exit 1); exit 1; }; }
3858fi
3859
3860else
3861  ac_cv_path_EGREP=$EGREP
3862fi
3863
3864
3865   fi
3866fi
3867{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3868echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3869 EGREP="$ac_cv_path_EGREP"
3870
3871
3872
3873# Check whether --with-gnu-ld was given.
3874if test "${with_gnu_ld+set}" = set; then
3875  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3876else
3877  with_gnu_ld=no
3878fi
3879
3880ac_prog=ld
3881if test "$GCC" = yes; then
3882  # Check if gcc -print-prog-name=ld gives a path.
3883  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3884echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3885  case $host in
3886  *-*-mingw*)
3887    # gcc leaves a trailing carriage return which upsets mingw
3888    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3889  *)
3890    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3891  esac
3892  case $ac_prog in
3893    # Accept absolute paths.
3894    [\\/]* | ?:[\\/]*)
3895      re_direlt='/[^/][^/]*/\.\./'
3896      # Canonicalize the pathname of ld
3897      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3898      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3899	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3900      done
3901      test -z "$LD" && LD="$ac_prog"
3902      ;;
3903  "")
3904    # If it fails, then pretend we aren't using GCC.
3905    ac_prog=ld
3906    ;;
3907  *)
3908    # If it is relative, then search for the first ld in PATH.
3909    with_gnu_ld=unknown
3910    ;;
3911  esac
3912elif test "$with_gnu_ld" = yes; then
3913  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3914echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3915else
3916  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3917echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3918fi
3919if test "${lt_cv_path_LD+set}" = set; then
3920  echo $ECHO_N "(cached) $ECHO_C" >&6
3921else
3922  if test -z "$LD"; then
3923  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3924  for ac_dir in $PATH; do
3925    IFS="$lt_save_ifs"
3926    test -z "$ac_dir" && ac_dir=.
3927    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3928      lt_cv_path_LD="$ac_dir/$ac_prog"
3929      # Check to see if the program is GNU ld.  I'd rather use --version,
3930      # but apparently some variants of GNU ld only accept -v.
3931      # Break only if it was the GNU/non-GNU ld that we prefer.
3932      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3933      *GNU* | *'with BFD'*)
3934	test "$with_gnu_ld" != no && break
3935	;;
3936      *)
3937	test "$with_gnu_ld" != yes && break
3938	;;
3939      esac
3940    fi
3941  done
3942  IFS="$lt_save_ifs"
3943else
3944  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3945fi
3946fi
3947
3948LD="$lt_cv_path_LD"
3949if test -n "$LD"; then
3950  { echo "$as_me:$LINENO: result: $LD" >&5
3951echo "${ECHO_T}$LD" >&6; }
3952else
3953  { echo "$as_me:$LINENO: result: no" >&5
3954echo "${ECHO_T}no" >&6; }
3955fi
3956test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3957echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3958   { (exit 1); exit 1; }; }
3959{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3960echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3961if test "${lt_cv_prog_gnu_ld+set}" = set; then
3962  echo $ECHO_N "(cached) $ECHO_C" >&6
3963else
3964  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3965case `$LD -v 2>&1 </dev/null` in
3966*GNU* | *'with BFD'*)
3967  lt_cv_prog_gnu_ld=yes
3968  ;;
3969*)
3970  lt_cv_prog_gnu_ld=no
3971  ;;
3972esac
3973fi
3974{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3975echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3976with_gnu_ld=$lt_cv_prog_gnu_ld
3977
3978
3979{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3980echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3981if test "${lt_cv_ld_reload_flag+set}" = set; then
3982  echo $ECHO_N "(cached) $ECHO_C" >&6
3983else
3984  lt_cv_ld_reload_flag='-r'
3985fi
3986{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3987echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3988reload_flag=$lt_cv_ld_reload_flag
3989case $reload_flag in
3990"" | " "*) ;;
3991*) reload_flag=" $reload_flag" ;;
3992esac
3993reload_cmds='$LD$reload_flag -o $output$reload_objs'
3994case $host_os in
3995  darwin*)
3996    if test "$GCC" = yes; then
3997      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3998    else
3999      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4000    fi
4001    ;;
4002esac
4003
4004{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4005echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4006if test "${lt_cv_path_NM+set}" = set; then
4007  echo $ECHO_N "(cached) $ECHO_C" >&6
4008else
4009  if test -n "$NM"; then
4010  # Let the user override the test.
4011  lt_cv_path_NM="$NM"
4012else
4013  lt_nm_to_check="${ac_tool_prefix}nm"
4014  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4015    lt_nm_to_check="$lt_nm_to_check nm"
4016  fi
4017  for lt_tmp_nm in $lt_nm_to_check; do
4018    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4019    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4020      IFS="$lt_save_ifs"
4021      test -z "$ac_dir" && ac_dir=.
4022      tmp_nm="$ac_dir/$lt_tmp_nm"
4023      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4024	# Check to see if the nm accepts a BSD-compat flag.
4025	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4026	#   nm: unknown option "B" ignored
4027	# Tru64's nm complains that /dev/null is an invalid object file
4028	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4029	*/dev/null* | *'Invalid file or object type'*)
4030	  lt_cv_path_NM="$tmp_nm -B"
4031	  break
4032	  ;;
4033	*)
4034	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4035	  */dev/null*)
4036	    lt_cv_path_NM="$tmp_nm -p"
4037	    break
4038	    ;;
4039	  *)
4040	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4041	    continue # so that we can try to find one that supports BSD flags
4042	    ;;
4043	  esac
4044	  ;;
4045	esac
4046      fi
4047    done
4048    IFS="$lt_save_ifs"
4049  done
4050  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4051fi
4052fi
4053{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4054echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4055NM="$lt_cv_path_NM"
4056
4057{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4058echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4059LN_S=$as_ln_s
4060if test "$LN_S" = "ln -s"; then
4061  { echo "$as_me:$LINENO: result: yes" >&5
4062echo "${ECHO_T}yes" >&6; }
4063else
4064  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4065echo "${ECHO_T}no, using $LN_S" >&6; }
4066fi
4067
4068{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4069echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4070if test "${lt_cv_deplibs_check_method+set}" = set; then
4071  echo $ECHO_N "(cached) $ECHO_C" >&6
4072else
4073  lt_cv_file_magic_cmd='$MAGIC_CMD'
4074lt_cv_file_magic_test_file=
4075lt_cv_deplibs_check_method='unknown'
4076# Need to set the preceding variable on all platforms that support
4077# interlibrary dependencies.
4078# 'none' -- dependencies not supported.
4079# `unknown' -- same as none, but documents that we really don't know.
4080# 'pass_all' -- all dependencies passed with no checks.
4081# 'test_compile' -- check by making test program.
4082# 'file_magic [[regex]]' -- check by looking for files in library path
4083# which responds to the $file_magic_cmd with a given extended regex.
4084# If you have `file' or equivalent on your system and you're not sure
4085# whether `pass_all' will *always* work, you probably want this one.
4086
4087case $host_os in
4088aix[4-9]*)
4089  lt_cv_deplibs_check_method=pass_all
4090  ;;
4091
4092beos*)
4093  lt_cv_deplibs_check_method=pass_all
4094  ;;
4095
4096bsdi[45]*)
4097  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4098  lt_cv_file_magic_cmd='/usr/bin/file -L'
4099  lt_cv_file_magic_test_file=/shlib/libc.so
4100  ;;
4101
4102cygwin*)
4103  # func_win32_libid is a shell function defined in ltmain.sh
4104  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4105  lt_cv_file_magic_cmd='func_win32_libid'
4106  ;;
4107
4108mingw* | pw32*)
4109  # Base MSYS/MinGW do not provide the 'file' command needed by
4110  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4111  # unless we find 'file', for example because we are cross-compiling.
4112  if ( file / ) >/dev/null 2>&1; then
4113    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4114    lt_cv_file_magic_cmd='func_win32_libid'
4115  else
4116    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4117    lt_cv_file_magic_cmd='$OBJDUMP -f'
4118  fi
4119  ;;
4120
4121darwin* | rhapsody*)
4122  lt_cv_deplibs_check_method=pass_all
4123  ;;
4124
4125freebsd* | dragonfly*)
4126  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4127    case $host_cpu in
4128    i*86 )
4129      # Not sure whether the presence of OpenBSD here was a mistake.
4130      # Let's accept both of them until this is cleared up.
4131      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4132      lt_cv_file_magic_cmd=/usr/bin/file
4133      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4134      ;;
4135    esac
4136  else
4137    lt_cv_deplibs_check_method=pass_all
4138  fi
4139  ;;
4140
4141gnu*)
4142  lt_cv_deplibs_check_method=pass_all
4143  ;;
4144
4145hpux10.20* | hpux11*)
4146  lt_cv_file_magic_cmd=/usr/bin/file
4147  case $host_cpu in
4148  ia64*)
4149    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4150    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4151    ;;
4152  hppa*64*)
4153    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]'
4154    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4155    ;;
4156  *)
4157    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4158    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4159    ;;
4160  esac
4161  ;;
4162
4163interix[3-9]*)
4164  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4165  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4166  ;;
4167
4168irix5* | irix6* | nonstopux*)
4169  case $LD in
4170  *-32|*"-32 ") libmagic=32-bit;;
4171  *-n32|*"-n32 ") libmagic=N32;;
4172  *-64|*"-64 ") libmagic=64-bit;;
4173  *) libmagic=never-match;;
4174  esac
4175  lt_cv_deplibs_check_method=pass_all
4176  ;;
4177
4178# This must be Linux ELF.
4179linux* | k*bsd*-gnu)
4180  lt_cv_deplibs_check_method=pass_all
4181  ;;
4182
4183netbsd* | netbsdelf*-gnu)
4184  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4185    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4186  else
4187    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4188  fi
4189  ;;
4190
4191newos6*)
4192  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4193  lt_cv_file_magic_cmd=/usr/bin/file
4194  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4195  ;;
4196
4197nto-qnx*)
4198  lt_cv_deplibs_check_method=unknown
4199  ;;
4200
4201openbsd*)
4202  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4203    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4204  else
4205    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4206  fi
4207  ;;
4208
4209osf3* | osf4* | osf5*)
4210  lt_cv_deplibs_check_method=pass_all
4211  ;;
4212
4213rdos*)
4214  lt_cv_deplibs_check_method=pass_all
4215  ;;
4216
4217solaris*)
4218  lt_cv_deplibs_check_method=pass_all
4219  ;;
4220
4221sysv4 | sysv4.3*)
4222  case $host_vendor in
4223  motorola)
4224    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]'
4225    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4226    ;;
4227  ncr)
4228    lt_cv_deplibs_check_method=pass_all
4229    ;;
4230  sequent)
4231    lt_cv_file_magic_cmd='/bin/file'
4232    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4233    ;;
4234  sni)
4235    lt_cv_file_magic_cmd='/bin/file'
4236    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4237    lt_cv_file_magic_test_file=/lib/libc.so
4238    ;;
4239  siemens)
4240    lt_cv_deplibs_check_method=pass_all
4241    ;;
4242  pc)
4243    lt_cv_deplibs_check_method=pass_all
4244    ;;
4245  esac
4246  ;;
4247
4248sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4249  lt_cv_deplibs_check_method=pass_all
4250  ;;
4251esac
4252
4253fi
4254{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4255echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4256file_magic_cmd=$lt_cv_file_magic_cmd
4257deplibs_check_method=$lt_cv_deplibs_check_method
4258test -z "$deplibs_check_method" && deplibs_check_method=unknown
4259
4260
4261
4262
4263# If no C compiler was specified, use CC.
4264LTCC=${LTCC-"$CC"}
4265
4266# If no C compiler flags were specified, use CFLAGS.
4267LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4268
4269# Allow CC to be a program name with arguments.
4270compiler=$CC
4271
4272
4273# Check whether --enable-libtool-lock was given.
4274if test "${enable_libtool_lock+set}" = set; then
4275  enableval=$enable_libtool_lock;
4276fi
4277
4278test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4279
4280# Some flags need to be propagated to the compiler or linker for good
4281# libtool support.
4282case $host in
4283ia64-*-hpux*)
4284  # Find out which ABI we are using.
4285  echo 'int i;' > conftest.$ac_ext
4286  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4287  (eval $ac_compile) 2>&5
4288  ac_status=$?
4289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290  (exit $ac_status); }; then
4291    case `/usr/bin/file conftest.$ac_objext` in
4292    *ELF-32*)
4293      HPUX_IA64_MODE="32"
4294      ;;
4295    *ELF-64*)
4296      HPUX_IA64_MODE="64"
4297      ;;
4298    esac
4299  fi
4300  rm -rf conftest*
4301  ;;
4302*-*-irix6*)
4303  # Find out which ABI we are using.
4304  echo '#line 4304 "configure"' > conftest.$ac_ext
4305  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306  (eval $ac_compile) 2>&5
4307  ac_status=$?
4308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309  (exit $ac_status); }; then
4310   if test "$lt_cv_prog_gnu_ld" = yes; then
4311    case `/usr/bin/file conftest.$ac_objext` in
4312    *32-bit*)
4313      LD="${LD-ld} -melf32bsmip"
4314      ;;
4315    *N32*)
4316      LD="${LD-ld} -melf32bmipn32"
4317      ;;
4318    *64-bit*)
4319      LD="${LD-ld} -melf64bmip"
4320      ;;
4321    esac
4322   else
4323    case `/usr/bin/file conftest.$ac_objext` in
4324    *32-bit*)
4325      LD="${LD-ld} -32"
4326      ;;
4327    *N32*)
4328      LD="${LD-ld} -n32"
4329      ;;
4330    *64-bit*)
4331      LD="${LD-ld} -64"
4332      ;;
4333    esac
4334   fi
4335  fi
4336  rm -rf conftest*
4337  ;;
4338
4339x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4340s390*-*linux*|sparc*-*linux*)
4341  # Find out which ABI we are using.
4342  echo 'int i;' > conftest.$ac_ext
4343  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4344  (eval $ac_compile) 2>&5
4345  ac_status=$?
4346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347  (exit $ac_status); }; then
4348    case `/usr/bin/file conftest.o` in
4349    *32-bit*)
4350      case $host in
4351        x86_64-*kfreebsd*-gnu)
4352          LD="${LD-ld} -m elf_i386_fbsd"
4353          ;;
4354        x86_64-*linux*)
4355          LD="${LD-ld} -m elf_i386"
4356          ;;
4357        ppc64-*linux*|powerpc64-*linux*)
4358          LD="${LD-ld} -m elf32ppclinux"
4359          ;;
4360        s390x-*linux*)
4361          LD="${LD-ld} -m elf_s390"
4362          ;;
4363        sparc64-*linux*)
4364          LD="${LD-ld} -m elf32_sparc"
4365          ;;
4366      esac
4367      ;;
4368    *64-bit*)
4369      case $host in
4370        x86_64-*kfreebsd*-gnu)
4371          LD="${LD-ld} -m elf_x86_64_fbsd"
4372          ;;
4373        x86_64-*linux*)
4374          LD="${LD-ld} -m elf_x86_64"
4375          ;;
4376        ppc*-*linux*|powerpc*-*linux*)
4377          LD="${LD-ld} -m elf64ppc"
4378          ;;
4379        s390*-*linux*)
4380          LD="${LD-ld} -m elf64_s390"
4381          ;;
4382        sparc*-*linux*)
4383          LD="${LD-ld} -m elf64_sparc"
4384          ;;
4385      esac
4386      ;;
4387    esac
4388  fi
4389  rm -rf conftest*
4390  ;;
4391
4392*-*-sco3.2v5*)
4393  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4394  SAVE_CFLAGS="$CFLAGS"
4395  CFLAGS="$CFLAGS -belf"
4396  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4397echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4398if test "${lt_cv_cc_needs_belf+set}" = set; then
4399  echo $ECHO_N "(cached) $ECHO_C" >&6
4400else
4401  ac_ext=c
4402ac_cpp='$CPP $CPPFLAGS'
4403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405ac_compiler_gnu=$ac_cv_c_compiler_gnu
4406
4407     cat >conftest.$ac_ext <<_ACEOF
4408/* confdefs.h.  */
4409_ACEOF
4410cat confdefs.h >>conftest.$ac_ext
4411cat >>conftest.$ac_ext <<_ACEOF
4412/* end confdefs.h.  */
4413
4414int
4415main ()
4416{
4417
4418  ;
4419  return 0;
4420}
4421_ACEOF
4422rm -f conftest.$ac_objext conftest$ac_exeext
4423if { (ac_try="$ac_link"
4424case "(($ac_try" in
4425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426  *) ac_try_echo=$ac_try;;
4427esac
4428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429  (eval "$ac_link") 2>conftest.er1
4430  ac_status=$?
4431  grep -v '^ *+' conftest.er1 >conftest.err
4432  rm -f conftest.er1
4433  cat conftest.err >&5
4434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435  (exit $ac_status); } && {
4436	 test -z "$ac_c_werror_flag" ||
4437	 test ! -s conftest.err
4438       } && test -s conftest$ac_exeext &&
4439       $as_test_x conftest$ac_exeext; then
4440  lt_cv_cc_needs_belf=yes
4441else
4442  echo "$as_me: failed program was:" >&5
4443sed 's/^/| /' conftest.$ac_ext >&5
4444
4445	lt_cv_cc_needs_belf=no
4446fi
4447
4448rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4449      conftest$ac_exeext conftest.$ac_ext
4450     ac_ext=c
4451ac_cpp='$CPP $CPPFLAGS'
4452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454ac_compiler_gnu=$ac_cv_c_compiler_gnu
4455
4456fi
4457{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4458echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4459  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4460    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4461    CFLAGS="$SAVE_CFLAGS"
4462  fi
4463  ;;
4464sparc*-*solaris*)
4465  # Find out which ABI we are using.
4466  echo 'int i;' > conftest.$ac_ext
4467  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4468  (eval $ac_compile) 2>&5
4469  ac_status=$?
4470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471  (exit $ac_status); }; then
4472    case `/usr/bin/file conftest.o` in
4473    *64-bit*)
4474      case $lt_cv_prog_gnu_ld in
4475      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4476      *)
4477        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4478	  LD="${LD-ld} -64"
4479	fi
4480	;;
4481      esac
4482      ;;
4483    esac
4484  fi
4485  rm -rf conftest*
4486  ;;
4487
4488
4489esac
4490
4491need_locks="$enable_libtool_lock"
4492
4493
4494ac_ext=c
4495ac_cpp='$CPP $CPPFLAGS'
4496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4500echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4501# On Suns, sometimes $CPP names a directory.
4502if test -n "$CPP" && test -d "$CPP"; then
4503  CPP=
4504fi
4505if test -z "$CPP"; then
4506  if test "${ac_cv_prog_CPP+set}" = set; then
4507  echo $ECHO_N "(cached) $ECHO_C" >&6
4508else
4509      # Double quotes because CPP needs to be expanded
4510    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4511    do
4512      ac_preproc_ok=false
4513for ac_c_preproc_warn_flag in '' yes
4514do
4515  # Use a header file that comes with gcc, so configuring glibc
4516  # with a fresh cross-compiler works.
4517  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4518  # <limits.h> exists even on freestanding compilers.
4519  # On the NeXT, cc -E runs the code through the compiler's parser,
4520  # not just through cpp. "Syntax error" is here to catch this case.
4521  cat >conftest.$ac_ext <<_ACEOF
4522/* confdefs.h.  */
4523_ACEOF
4524cat confdefs.h >>conftest.$ac_ext
4525cat >>conftest.$ac_ext <<_ACEOF
4526/* end confdefs.h.  */
4527#ifdef __STDC__
4528# include <limits.h>
4529#else
4530# include <assert.h>
4531#endif
4532		     Syntax error
4533_ACEOF
4534if { (ac_try="$ac_cpp conftest.$ac_ext"
4535case "(($ac_try" in
4536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537  *) ac_try_echo=$ac_try;;
4538esac
4539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4541  ac_status=$?
4542  grep -v '^ *+' conftest.er1 >conftest.err
4543  rm -f conftest.er1
4544  cat conftest.err >&5
4545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546  (exit $ac_status); } >/dev/null && {
4547	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4548	 test ! -s conftest.err
4549       }; then
4550  :
4551else
4552  echo "$as_me: failed program was:" >&5
4553sed 's/^/| /' conftest.$ac_ext >&5
4554
4555  # Broken: fails on valid input.
4556continue
4557fi
4558
4559rm -f conftest.err conftest.$ac_ext
4560
4561  # OK, works on sane cases.  Now check whether nonexistent headers
4562  # can be detected and how.
4563  cat >conftest.$ac_ext <<_ACEOF
4564/* confdefs.h.  */
4565_ACEOF
4566cat confdefs.h >>conftest.$ac_ext
4567cat >>conftest.$ac_ext <<_ACEOF
4568/* end confdefs.h.  */
4569#include <ac_nonexistent.h>
4570_ACEOF
4571if { (ac_try="$ac_cpp conftest.$ac_ext"
4572case "(($ac_try" in
4573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574  *) ac_try_echo=$ac_try;;
4575esac
4576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4577  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4578  ac_status=$?
4579  grep -v '^ *+' conftest.er1 >conftest.err
4580  rm -f conftest.er1
4581  cat conftest.err >&5
4582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583  (exit $ac_status); } >/dev/null && {
4584	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4585	 test ! -s conftest.err
4586       }; then
4587  # Broken: success on invalid input.
4588continue
4589else
4590  echo "$as_me: failed program was:" >&5
4591sed 's/^/| /' conftest.$ac_ext >&5
4592
4593  # Passes both tests.
4594ac_preproc_ok=:
4595break
4596fi
4597
4598rm -f conftest.err conftest.$ac_ext
4599
4600done
4601# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4602rm -f conftest.err conftest.$ac_ext
4603if $ac_preproc_ok; then
4604  break
4605fi
4606
4607    done
4608    ac_cv_prog_CPP=$CPP
4609
4610fi
4611  CPP=$ac_cv_prog_CPP
4612else
4613  ac_cv_prog_CPP=$CPP
4614fi
4615{ echo "$as_me:$LINENO: result: $CPP" >&5
4616echo "${ECHO_T}$CPP" >&6; }
4617ac_preproc_ok=false
4618for ac_c_preproc_warn_flag in '' yes
4619do
4620  # Use a header file that comes with gcc, so configuring glibc
4621  # with a fresh cross-compiler works.
4622  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4623  # <limits.h> exists even on freestanding compilers.
4624  # On the NeXT, cc -E runs the code through the compiler's parser,
4625  # not just through cpp. "Syntax error" is here to catch this case.
4626  cat >conftest.$ac_ext <<_ACEOF
4627/* confdefs.h.  */
4628_ACEOF
4629cat confdefs.h >>conftest.$ac_ext
4630cat >>conftest.$ac_ext <<_ACEOF
4631/* end confdefs.h.  */
4632#ifdef __STDC__
4633# include <limits.h>
4634#else
4635# include <assert.h>
4636#endif
4637		     Syntax error
4638_ACEOF
4639if { (ac_try="$ac_cpp conftest.$ac_ext"
4640case "(($ac_try" in
4641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642  *) ac_try_echo=$ac_try;;
4643esac
4644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4646  ac_status=$?
4647  grep -v '^ *+' conftest.er1 >conftest.err
4648  rm -f conftest.er1
4649  cat conftest.err >&5
4650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651  (exit $ac_status); } >/dev/null && {
4652	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4653	 test ! -s conftest.err
4654       }; then
4655  :
4656else
4657  echo "$as_me: failed program was:" >&5
4658sed 's/^/| /' conftest.$ac_ext >&5
4659
4660  # Broken: fails on valid input.
4661continue
4662fi
4663
4664rm -f conftest.err conftest.$ac_ext
4665
4666  # OK, works on sane cases.  Now check whether nonexistent headers
4667  # can be detected and how.
4668  cat >conftest.$ac_ext <<_ACEOF
4669/* confdefs.h.  */
4670_ACEOF
4671cat confdefs.h >>conftest.$ac_ext
4672cat >>conftest.$ac_ext <<_ACEOF
4673/* end confdefs.h.  */
4674#include <ac_nonexistent.h>
4675_ACEOF
4676if { (ac_try="$ac_cpp conftest.$ac_ext"
4677case "(($ac_try" in
4678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679  *) ac_try_echo=$ac_try;;
4680esac
4681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4683  ac_status=$?
4684  grep -v '^ *+' conftest.er1 >conftest.err
4685  rm -f conftest.er1
4686  cat conftest.err >&5
4687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688  (exit $ac_status); } >/dev/null && {
4689	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4690	 test ! -s conftest.err
4691       }; then
4692  # Broken: success on invalid input.
4693continue
4694else
4695  echo "$as_me: failed program was:" >&5
4696sed 's/^/| /' conftest.$ac_ext >&5
4697
4698  # Passes both tests.
4699ac_preproc_ok=:
4700break
4701fi
4702
4703rm -f conftest.err conftest.$ac_ext
4704
4705done
4706# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4707rm -f conftest.err conftest.$ac_ext
4708if $ac_preproc_ok; then
4709  :
4710else
4711  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4712See \`config.log' for more details." >&5
4713echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4714See \`config.log' for more details." >&2;}
4715   { (exit 1); exit 1; }; }
4716fi
4717
4718ac_ext=c
4719ac_cpp='$CPP $CPPFLAGS'
4720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4722ac_compiler_gnu=$ac_cv_c_compiler_gnu
4723
4724
4725{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4726echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4727if test "${ac_cv_header_stdc+set}" = set; then
4728  echo $ECHO_N "(cached) $ECHO_C" >&6
4729else
4730  cat >conftest.$ac_ext <<_ACEOF
4731/* confdefs.h.  */
4732_ACEOF
4733cat confdefs.h >>conftest.$ac_ext
4734cat >>conftest.$ac_ext <<_ACEOF
4735/* end confdefs.h.  */
4736#include <stdlib.h>
4737#include <stdarg.h>
4738#include <string.h>
4739#include <float.h>
4740
4741int
4742main ()
4743{
4744
4745  ;
4746  return 0;
4747}
4748_ACEOF
4749rm -f conftest.$ac_objext
4750if { (ac_try="$ac_compile"
4751case "(($ac_try" in
4752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753  *) ac_try_echo=$ac_try;;
4754esac
4755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4756  (eval "$ac_compile") 2>conftest.er1
4757  ac_status=$?
4758  grep -v '^ *+' conftest.er1 >conftest.err
4759  rm -f conftest.er1
4760  cat conftest.err >&5
4761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762  (exit $ac_status); } && {
4763	 test -z "$ac_c_werror_flag" ||
4764	 test ! -s conftest.err
4765       } && test -s conftest.$ac_objext; then
4766  ac_cv_header_stdc=yes
4767else
4768  echo "$as_me: failed program was:" >&5
4769sed 's/^/| /' conftest.$ac_ext >&5
4770
4771	ac_cv_header_stdc=no
4772fi
4773
4774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775
4776if test $ac_cv_header_stdc = yes; then
4777  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4778  cat >conftest.$ac_ext <<_ACEOF
4779/* confdefs.h.  */
4780_ACEOF
4781cat confdefs.h >>conftest.$ac_ext
4782cat >>conftest.$ac_ext <<_ACEOF
4783/* end confdefs.h.  */
4784#include <string.h>
4785
4786_ACEOF
4787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4788  $EGREP "memchr" >/dev/null 2>&1; then
4789  :
4790else
4791  ac_cv_header_stdc=no
4792fi
4793rm -f conftest*
4794
4795fi
4796
4797if test $ac_cv_header_stdc = yes; then
4798  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4799  cat >conftest.$ac_ext <<_ACEOF
4800/* confdefs.h.  */
4801_ACEOF
4802cat confdefs.h >>conftest.$ac_ext
4803cat >>conftest.$ac_ext <<_ACEOF
4804/* end confdefs.h.  */
4805#include <stdlib.h>
4806
4807_ACEOF
4808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4809  $EGREP "free" >/dev/null 2>&1; then
4810  :
4811else
4812  ac_cv_header_stdc=no
4813fi
4814rm -f conftest*
4815
4816fi
4817
4818if test $ac_cv_header_stdc = yes; then
4819  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4820  if test "$cross_compiling" = yes; then
4821  :
4822else
4823  cat >conftest.$ac_ext <<_ACEOF
4824/* confdefs.h.  */
4825_ACEOF
4826cat confdefs.h >>conftest.$ac_ext
4827cat >>conftest.$ac_ext <<_ACEOF
4828/* end confdefs.h.  */
4829#include <ctype.h>
4830#include <stdlib.h>
4831#if ((' ' & 0x0FF) == 0x020)
4832# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4833# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4834#else
4835# define ISLOWER(c) \
4836		   (('a' <= (c) && (c) <= 'i') \
4837		     || ('j' <= (c) && (c) <= 'r') \
4838		     || ('s' <= (c) && (c) <= 'z'))
4839# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4840#endif
4841
4842#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4843int
4844main ()
4845{
4846  int i;
4847  for (i = 0; i < 256; i++)
4848    if (XOR (islower (i), ISLOWER (i))
4849	|| toupper (i) != TOUPPER (i))
4850      return 2;
4851  return 0;
4852}
4853_ACEOF
4854rm -f conftest$ac_exeext
4855if { (ac_try="$ac_link"
4856case "(($ac_try" in
4857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858  *) ac_try_echo=$ac_try;;
4859esac
4860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4861  (eval "$ac_link") 2>&5
4862  ac_status=$?
4863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4865  { (case "(($ac_try" in
4866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4867  *) ac_try_echo=$ac_try;;
4868esac
4869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4870  (eval "$ac_try") 2>&5
4871  ac_status=$?
4872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873  (exit $ac_status); }; }; then
4874  :
4875else
4876  echo "$as_me: program exited with status $ac_status" >&5
4877echo "$as_me: failed program was:" >&5
4878sed 's/^/| /' conftest.$ac_ext >&5
4879
4880( exit $ac_status )
4881ac_cv_header_stdc=no
4882fi
4883rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4884fi
4885
4886
4887fi
4888fi
4889{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4890echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4891if test $ac_cv_header_stdc = yes; then
4892
4893cat >>confdefs.h <<\_ACEOF
4894#define STDC_HEADERS 1
4895_ACEOF
4896
4897fi
4898
4899# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4910		  inttypes.h stdint.h unistd.h
4911do
4912as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4913{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4916  echo $ECHO_N "(cached) $ECHO_C" >&6
4917else
4918  cat >conftest.$ac_ext <<_ACEOF
4919/* confdefs.h.  */
4920_ACEOF
4921cat confdefs.h >>conftest.$ac_ext
4922cat >>conftest.$ac_ext <<_ACEOF
4923/* end confdefs.h.  */
4924$ac_includes_default
4925
4926#include <$ac_header>
4927_ACEOF
4928rm -f conftest.$ac_objext
4929if { (ac_try="$ac_compile"
4930case "(($ac_try" in
4931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932  *) ac_try_echo=$ac_try;;
4933esac
4934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935  (eval "$ac_compile") 2>conftest.er1
4936  ac_status=$?
4937  grep -v '^ *+' conftest.er1 >conftest.err
4938  rm -f conftest.er1
4939  cat conftest.err >&5
4940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941  (exit $ac_status); } && {
4942	 test -z "$ac_c_werror_flag" ||
4943	 test ! -s conftest.err
4944       } && test -s conftest.$ac_objext; then
4945  eval "$as_ac_Header=yes"
4946else
4947  echo "$as_me: failed program was:" >&5
4948sed 's/^/| /' conftest.$ac_ext >&5
4949
4950	eval "$as_ac_Header=no"
4951fi
4952
4953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954fi
4955ac_res=`eval echo '${'$as_ac_Header'}'`
4956	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4957echo "${ECHO_T}$ac_res" >&6; }
4958if test `eval echo '${'$as_ac_Header'}'` = yes; then
4959  cat >>confdefs.h <<_ACEOF
4960#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4961_ACEOF
4962
4963fi
4964
4965done
4966
4967
4968
4969for ac_header in dlfcn.h
4970do
4971as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4973  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4975if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4976  echo $ECHO_N "(cached) $ECHO_C" >&6
4977fi
4978ac_res=`eval echo '${'$as_ac_Header'}'`
4979	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4980echo "${ECHO_T}$ac_res" >&6; }
4981else
4982  # Is the header compilable?
4983{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4984echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4985cat >conftest.$ac_ext <<_ACEOF
4986/* confdefs.h.  */
4987_ACEOF
4988cat confdefs.h >>conftest.$ac_ext
4989cat >>conftest.$ac_ext <<_ACEOF
4990/* end confdefs.h.  */
4991$ac_includes_default
4992#include <$ac_header>
4993_ACEOF
4994rm -f conftest.$ac_objext
4995if { (ac_try="$ac_compile"
4996case "(($ac_try" in
4997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4998  *) ac_try_echo=$ac_try;;
4999esac
5000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5001  (eval "$ac_compile") 2>conftest.er1
5002  ac_status=$?
5003  grep -v '^ *+' conftest.er1 >conftest.err
5004  rm -f conftest.er1
5005  cat conftest.err >&5
5006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007  (exit $ac_status); } && {
5008	 test -z "$ac_c_werror_flag" ||
5009	 test ! -s conftest.err
5010       } && test -s conftest.$ac_objext; then
5011  ac_header_compiler=yes
5012else
5013  echo "$as_me: failed program was:" >&5
5014sed 's/^/| /' conftest.$ac_ext >&5
5015
5016	ac_header_compiler=no
5017fi
5018
5019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5020{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5021echo "${ECHO_T}$ac_header_compiler" >&6; }
5022
5023# Is the header present?
5024{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5025echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5026cat >conftest.$ac_ext <<_ACEOF
5027/* confdefs.h.  */
5028_ACEOF
5029cat confdefs.h >>conftest.$ac_ext
5030cat >>conftest.$ac_ext <<_ACEOF
5031/* end confdefs.h.  */
5032#include <$ac_header>
5033_ACEOF
5034if { (ac_try="$ac_cpp conftest.$ac_ext"
5035case "(($ac_try" in
5036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037  *) ac_try_echo=$ac_try;;
5038esac
5039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5040  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5041  ac_status=$?
5042  grep -v '^ *+' conftest.er1 >conftest.err
5043  rm -f conftest.er1
5044  cat conftest.err >&5
5045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046  (exit $ac_status); } >/dev/null && {
5047	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5048	 test ! -s conftest.err
5049       }; then
5050  ac_header_preproc=yes
5051else
5052  echo "$as_me: failed program was:" >&5
5053sed 's/^/| /' conftest.$ac_ext >&5
5054
5055  ac_header_preproc=no
5056fi
5057
5058rm -f conftest.err conftest.$ac_ext
5059{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5060echo "${ECHO_T}$ac_header_preproc" >&6; }
5061
5062# So?  What about this header?
5063case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5064  yes:no: )
5065    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5066echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5067    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5068echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5069    ac_header_preproc=yes
5070    ;;
5071  no:yes:* )
5072    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5073echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5074    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5075echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5076    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5077echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5078    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5079echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5080    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5081echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5082    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5083echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5084    ( cat <<\_ASBOX
5085## ----------------------------------- ##
5086## Report this to support@land.ufrj.br ##
5087## ----------------------------------- ##
5088_ASBOX
5089     ) | sed "s/^/$as_me: WARNING:     /" >&2
5090    ;;
5091esac
5092{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5095  echo $ECHO_N "(cached) $ECHO_C" >&6
5096else
5097  eval "$as_ac_Header=\$ac_header_preproc"
5098fi
5099ac_res=`eval echo '${'$as_ac_Header'}'`
5100	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5101echo "${ECHO_T}$ac_res" >&6; }
5102
5103fi
5104if test `eval echo '${'$as_ac_Header'}'` = yes; then
5105  cat >>confdefs.h <<_ACEOF
5106#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5107_ACEOF
5108
5109fi
5110
5111done
5112
5113ac_ext=cpp
5114ac_cpp='$CXXCPP $CPPFLAGS'
5115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5118if test -z "$CXX"; then
5119  if test -n "$CCC"; then
5120    CXX=$CCC
5121  else
5122    if test -n "$ac_tool_prefix"; then
5123  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5124  do
5125    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5126set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5127{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5129if test "${ac_cv_prog_CXX+set}" = set; then
5130  echo $ECHO_N "(cached) $ECHO_C" >&6
5131else
5132  if test -n "$CXX"; then
5133  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5134else
5135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136for as_dir in $PATH
5137do
5138  IFS=$as_save_IFS
5139  test -z "$as_dir" && as_dir=.
5140  for ac_exec_ext in '' $ac_executable_extensions; do
5141  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5143    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5144    break 2
5145  fi
5146done
5147done
5148IFS=$as_save_IFS
5149
5150fi
5151fi
5152CXX=$ac_cv_prog_CXX
5153if test -n "$CXX"; then
5154  { echo "$as_me:$LINENO: result: $CXX" >&5
5155echo "${ECHO_T}$CXX" >&6; }
5156else
5157  { echo "$as_me:$LINENO: result: no" >&5
5158echo "${ECHO_T}no" >&6; }
5159fi
5160
5161
5162    test -n "$CXX" && break
5163  done
5164fi
5165if test -z "$CXX"; then
5166  ac_ct_CXX=$CXX
5167  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5168do
5169  # Extract the first word of "$ac_prog", so it can be a program name with args.
5170set dummy $ac_prog; ac_word=$2
5171{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5173if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5174  echo $ECHO_N "(cached) $ECHO_C" >&6
5175else
5176  if test -n "$ac_ct_CXX"; then
5177  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5178else
5179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180for as_dir in $PATH
5181do
5182  IFS=$as_save_IFS
5183  test -z "$as_dir" && as_dir=.
5184  for ac_exec_ext in '' $ac_executable_extensions; do
5185  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186    ac_cv_prog_ac_ct_CXX="$ac_prog"
5187    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5188    break 2
5189  fi
5190done
5191done
5192IFS=$as_save_IFS
5193
5194fi
5195fi
5196ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5197if test -n "$ac_ct_CXX"; then
5198  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5199echo "${ECHO_T}$ac_ct_CXX" >&6; }
5200else
5201  { echo "$as_me:$LINENO: result: no" >&5
5202echo "${ECHO_T}no" >&6; }
5203fi
5204
5205
5206  test -n "$ac_ct_CXX" && break
5207done
5208
5209  if test "x$ac_ct_CXX" = x; then
5210    CXX="g++"
5211  else
5212    case $cross_compiling:$ac_tool_warned in
5213yes:)
5214{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5215whose name does not start with the host triplet.  If you think this
5216configuration is useful to you, please write to autoconf@gnu.org." >&5
5217echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5218whose name does not start with the host triplet.  If you think this
5219configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5220ac_tool_warned=yes ;;
5221esac
5222    CXX=$ac_ct_CXX
5223  fi
5224fi
5225
5226  fi
5227fi
5228# Provide some information about the compiler.
5229echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5230ac_compiler=`set X $ac_compile; echo $2`
5231{ (ac_try="$ac_compiler --version >&5"
5232case "(($ac_try" in
5233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234  *) ac_try_echo=$ac_try;;
5235esac
5236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5237  (eval "$ac_compiler --version >&5") 2>&5
5238  ac_status=$?
5239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240  (exit $ac_status); }
5241{ (ac_try="$ac_compiler -v >&5"
5242case "(($ac_try" in
5243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5244  *) ac_try_echo=$ac_try;;
5245esac
5246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5247  (eval "$ac_compiler -v >&5") 2>&5
5248  ac_status=$?
5249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250  (exit $ac_status); }
5251{ (ac_try="$ac_compiler -V >&5"
5252case "(($ac_try" in
5253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254  *) ac_try_echo=$ac_try;;
5255esac
5256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257  (eval "$ac_compiler -V >&5") 2>&5
5258  ac_status=$?
5259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260  (exit $ac_status); }
5261
5262{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5263echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5264if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5265  echo $ECHO_N "(cached) $ECHO_C" >&6
5266else
5267  cat >conftest.$ac_ext <<_ACEOF
5268/* confdefs.h.  */
5269_ACEOF
5270cat confdefs.h >>conftest.$ac_ext
5271cat >>conftest.$ac_ext <<_ACEOF
5272/* end confdefs.h.  */
5273
5274int
5275main ()
5276{
5277#ifndef __GNUC__
5278       choke me
5279#endif
5280
5281  ;
5282  return 0;
5283}
5284_ACEOF
5285rm -f conftest.$ac_objext
5286if { (ac_try="$ac_compile"
5287case "(($ac_try" in
5288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289  *) ac_try_echo=$ac_try;;
5290esac
5291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292  (eval "$ac_compile") 2>conftest.er1
5293  ac_status=$?
5294  grep -v '^ *+' conftest.er1 >conftest.err
5295  rm -f conftest.er1
5296  cat conftest.err >&5
5297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298  (exit $ac_status); } && {
5299	 test -z "$ac_cxx_werror_flag" ||
5300	 test ! -s conftest.err
5301       } && test -s conftest.$ac_objext; then
5302  ac_compiler_gnu=yes
5303else
5304  echo "$as_me: failed program was:" >&5
5305sed 's/^/| /' conftest.$ac_ext >&5
5306
5307	ac_compiler_gnu=no
5308fi
5309
5310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5312
5313fi
5314{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5315echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5316GXX=`test $ac_compiler_gnu = yes && echo yes`
5317ac_test_CXXFLAGS=${CXXFLAGS+set}
5318ac_save_CXXFLAGS=$CXXFLAGS
5319{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5320echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5321if test "${ac_cv_prog_cxx_g+set}" = set; then
5322  echo $ECHO_N "(cached) $ECHO_C" >&6
5323else
5324  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5325   ac_cxx_werror_flag=yes
5326   ac_cv_prog_cxx_g=no
5327   CXXFLAGS="-g"
5328   cat >conftest.$ac_ext <<_ACEOF
5329/* confdefs.h.  */
5330_ACEOF
5331cat confdefs.h >>conftest.$ac_ext
5332cat >>conftest.$ac_ext <<_ACEOF
5333/* end confdefs.h.  */
5334
5335int
5336main ()
5337{
5338
5339  ;
5340  return 0;
5341}
5342_ACEOF
5343rm -f conftest.$ac_objext
5344if { (ac_try="$ac_compile"
5345case "(($ac_try" in
5346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347  *) ac_try_echo=$ac_try;;
5348esac
5349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350  (eval "$ac_compile") 2>conftest.er1
5351  ac_status=$?
5352  grep -v '^ *+' conftest.er1 >conftest.err
5353  rm -f conftest.er1
5354  cat conftest.err >&5
5355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356  (exit $ac_status); } && {
5357	 test -z "$ac_cxx_werror_flag" ||
5358	 test ! -s conftest.err
5359       } && test -s conftest.$ac_objext; then
5360  ac_cv_prog_cxx_g=yes
5361else
5362  echo "$as_me: failed program was:" >&5
5363sed 's/^/| /' conftest.$ac_ext >&5
5364
5365	CXXFLAGS=""
5366      cat >conftest.$ac_ext <<_ACEOF
5367/* confdefs.h.  */
5368_ACEOF
5369cat confdefs.h >>conftest.$ac_ext
5370cat >>conftest.$ac_ext <<_ACEOF
5371/* end confdefs.h.  */
5372
5373int
5374main ()
5375{
5376
5377  ;
5378  return 0;
5379}
5380_ACEOF
5381rm -f conftest.$ac_objext
5382if { (ac_try="$ac_compile"
5383case "(($ac_try" in
5384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385  *) ac_try_echo=$ac_try;;
5386esac
5387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388  (eval "$ac_compile") 2>conftest.er1
5389  ac_status=$?
5390  grep -v '^ *+' conftest.er1 >conftest.err
5391  rm -f conftest.er1
5392  cat conftest.err >&5
5393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394  (exit $ac_status); } && {
5395	 test -z "$ac_cxx_werror_flag" ||
5396	 test ! -s conftest.err
5397       } && test -s conftest.$ac_objext; then
5398  :
5399else
5400  echo "$as_me: failed program was:" >&5
5401sed 's/^/| /' conftest.$ac_ext >&5
5402
5403	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5404	 CXXFLAGS="-g"
5405	 cat >conftest.$ac_ext <<_ACEOF
5406/* confdefs.h.  */
5407_ACEOF
5408cat confdefs.h >>conftest.$ac_ext
5409cat >>conftest.$ac_ext <<_ACEOF
5410/* end confdefs.h.  */
5411
5412int
5413main ()
5414{
5415
5416  ;
5417  return 0;
5418}
5419_ACEOF
5420rm -f conftest.$ac_objext
5421if { (ac_try="$ac_compile"
5422case "(($ac_try" in
5423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424  *) ac_try_echo=$ac_try;;
5425esac
5426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5427  (eval "$ac_compile") 2>conftest.er1
5428  ac_status=$?
5429  grep -v '^ *+' conftest.er1 >conftest.err
5430  rm -f conftest.er1
5431  cat conftest.err >&5
5432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433  (exit $ac_status); } && {
5434	 test -z "$ac_cxx_werror_flag" ||
5435	 test ! -s conftest.err
5436       } && test -s conftest.$ac_objext; then
5437  ac_cv_prog_cxx_g=yes
5438else
5439  echo "$as_me: failed program was:" >&5
5440sed 's/^/| /' conftest.$ac_ext >&5
5441
5442
5443fi
5444
5445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446fi
5447
5448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449fi
5450
5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5453fi
5454{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5455echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5456if test "$ac_test_CXXFLAGS" = set; then
5457  CXXFLAGS=$ac_save_CXXFLAGS
5458elif test $ac_cv_prog_cxx_g = yes; then
5459  if test "$GXX" = yes; then
5460    CXXFLAGS="-g -O2"
5461  else
5462    CXXFLAGS="-g"
5463  fi
5464else
5465  if test "$GXX" = yes; then
5466    CXXFLAGS="-O2"
5467  else
5468    CXXFLAGS=
5469  fi
5470fi
5471ac_ext=cpp
5472ac_cpp='$CXXCPP $CPPFLAGS'
5473ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5474ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5475ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5476
5477depcc="$CXX"  am_compiler_list=
5478
5479{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5480echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5481if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5482  echo $ECHO_N "(cached) $ECHO_C" >&6
5483else
5484  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5485  # We make a subdir and do the tests there.  Otherwise we can end up
5486  # making bogus files that we don't know about and never remove.  For
5487  # instance it was reported that on HP-UX the gcc test will end up
5488  # making a dummy file named `D' -- because `-MD' means `put the output
5489  # in D'.
5490  mkdir conftest.dir
5491  # Copy depcomp to subdir because otherwise we won't find it if we're
5492  # using a relative directory.
5493  cp "$am_depcomp" conftest.dir
5494  cd conftest.dir
5495  # We will build objects and dependencies in a subdirectory because
5496  # it helps to detect inapplicable dependency modes.  For instance
5497  # both Tru64's cc and ICC support -MD to output dependencies as a
5498  # side effect of compilation, but ICC will put the dependencies in
5499  # the current directory while Tru64 will put them in the object
5500  # directory.
5501  mkdir sub
5502
5503  am_cv_CXX_dependencies_compiler_type=none
5504  if test "$am_compiler_list" = ""; then
5505     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5506  fi
5507  for depmode in $am_compiler_list; do
5508    # Setup a source with many dependencies, because some compilers
5509    # like to wrap large dependency lists on column 80 (with \), and
5510    # we should not choose a depcomp mode which is confused by this.
5511    #
5512    # We need to recreate these files for each test, as the compiler may
5513    # overwrite some of them when testing with obscure command lines.
5514    # This happens at least with the AIX C compiler.
5515    : > sub/conftest.c
5516    for i in 1 2 3 4 5 6; do
5517      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5518      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5519      # Solaris 8's {/usr,}/bin/sh.
5520      touch sub/conftst$i.h
5521    done
5522    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5523
5524    case $depmode in
5525    nosideeffect)
5526      # after this tag, mechanisms are not by side-effect, so they'll
5527      # only be used when explicitly requested
5528      if test "x$enable_dependency_tracking" = xyes; then
5529	continue
5530      else
5531	break
5532      fi
5533      ;;
5534    none) break ;;
5535    esac
5536    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5537    # mode.  It turns out that the SunPro C++ compiler does not properly
5538    # handle `-M -o', and we need to detect this.
5539    if depmode=$depmode \
5540       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5541       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5542       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5543         >/dev/null 2>conftest.err &&
5544       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5545       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5546       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5547      # icc doesn't choke on unknown options, it will just issue warnings
5548      # or remarks (even with -Werror).  So we grep stderr for any message
5549      # that says an option was ignored or not supported.
5550      # When given -MP, icc 7.0 and 7.1 complain thusly:
5551      #   icc: Command line warning: ignoring option '-M'; no argument required
5552      # The diagnosis changed in icc 8.0:
5553      #   icc: Command line remark: option '-MP' not supported
5554      if (grep 'ignoring option' conftest.err ||
5555          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5556        am_cv_CXX_dependencies_compiler_type=$depmode
5557        break
5558      fi
5559    fi
5560  done
5561
5562  cd ..
5563  rm -rf conftest.dir
5564else
5565  am_cv_CXX_dependencies_compiler_type=none
5566fi
5567
5568fi
5569{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5570echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5571CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5572
5573
5574
5575if
5576  test "x$enable_dependency_tracking" != xno \
5577  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5578  am__fastdepCXX_TRUE=
5579  am__fastdepCXX_FALSE='#'
5580else
5581  am__fastdepCXX_TRUE='#'
5582  am__fastdepCXX_FALSE=
5583fi
5584
5585
5586
5587
5588if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5589    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5590    (test "X$CXX" != "Xg++"))) ; then
5591  ac_ext=cpp
5592ac_cpp='$CXXCPP $CPPFLAGS'
5593ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5594ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5595ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5596{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5597echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5598if test -z "$CXXCPP"; then
5599  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5600  echo $ECHO_N "(cached) $ECHO_C" >&6
5601else
5602      # Double quotes because CXXCPP needs to be expanded
5603    for CXXCPP in "$CXX -E" "/lib/cpp"
5604    do
5605      ac_preproc_ok=false
5606for ac_cxx_preproc_warn_flag in '' yes
5607do
5608  # Use a header file that comes with gcc, so configuring glibc
5609  # with a fresh cross-compiler works.
5610  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5611  # <limits.h> exists even on freestanding compilers.
5612  # On the NeXT, cc -E runs the code through the compiler's parser,
5613  # not just through cpp. "Syntax error" is here to catch this case.
5614  cat >conftest.$ac_ext <<_ACEOF
5615/* confdefs.h.  */
5616_ACEOF
5617cat confdefs.h >>conftest.$ac_ext
5618cat >>conftest.$ac_ext <<_ACEOF
5619/* end confdefs.h.  */
5620#ifdef __STDC__
5621# include <limits.h>
5622#else
5623# include <assert.h>
5624#endif
5625		     Syntax error
5626_ACEOF
5627if { (ac_try="$ac_cpp conftest.$ac_ext"
5628case "(($ac_try" in
5629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5630  *) ac_try_echo=$ac_try;;
5631esac
5632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5633  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5634  ac_status=$?
5635  grep -v '^ *+' conftest.er1 >conftest.err
5636  rm -f conftest.er1
5637  cat conftest.err >&5
5638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639  (exit $ac_status); } >/dev/null && {
5640	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5641	 test ! -s conftest.err
5642       }; then
5643  :
5644else
5645  echo "$as_me: failed program was:" >&5
5646sed 's/^/| /' conftest.$ac_ext >&5
5647
5648  # Broken: fails on valid input.
5649continue
5650fi
5651
5652rm -f conftest.err conftest.$ac_ext
5653
5654  # OK, works on sane cases.  Now check whether nonexistent headers
5655  # can be detected and how.
5656  cat >conftest.$ac_ext <<_ACEOF
5657/* confdefs.h.  */
5658_ACEOF
5659cat confdefs.h >>conftest.$ac_ext
5660cat >>conftest.$ac_ext <<_ACEOF
5661/* end confdefs.h.  */
5662#include <ac_nonexistent.h>
5663_ACEOF
5664if { (ac_try="$ac_cpp conftest.$ac_ext"
5665case "(($ac_try" in
5666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667  *) ac_try_echo=$ac_try;;
5668esac
5669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5671  ac_status=$?
5672  grep -v '^ *+' conftest.er1 >conftest.err
5673  rm -f conftest.er1
5674  cat conftest.err >&5
5675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676  (exit $ac_status); } >/dev/null && {
5677	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5678	 test ! -s conftest.err
5679       }; then
5680  # Broken: success on invalid input.
5681continue
5682else
5683  echo "$as_me: failed program was:" >&5
5684sed 's/^/| /' conftest.$ac_ext >&5
5685
5686  # Passes both tests.
5687ac_preproc_ok=:
5688break
5689fi
5690
5691rm -f conftest.err conftest.$ac_ext
5692
5693done
5694# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5695rm -f conftest.err conftest.$ac_ext
5696if $ac_preproc_ok; then
5697  break
5698fi
5699
5700    done
5701    ac_cv_prog_CXXCPP=$CXXCPP
5702
5703fi
5704  CXXCPP=$ac_cv_prog_CXXCPP
5705else
5706  ac_cv_prog_CXXCPP=$CXXCPP
5707fi
5708{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5709echo "${ECHO_T}$CXXCPP" >&6; }
5710ac_preproc_ok=false
5711for ac_cxx_preproc_warn_flag in '' yes
5712do
5713  # Use a header file that comes with gcc, so configuring glibc
5714  # with a fresh cross-compiler works.
5715  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5716  # <limits.h> exists even on freestanding compilers.
5717  # On the NeXT, cc -E runs the code through the compiler's parser,
5718  # not just through cpp. "Syntax error" is here to catch this case.
5719  cat >conftest.$ac_ext <<_ACEOF
5720/* confdefs.h.  */
5721_ACEOF
5722cat confdefs.h >>conftest.$ac_ext
5723cat >>conftest.$ac_ext <<_ACEOF
5724/* end confdefs.h.  */
5725#ifdef __STDC__
5726# include <limits.h>
5727#else
5728# include <assert.h>
5729#endif
5730		     Syntax error
5731_ACEOF
5732if { (ac_try="$ac_cpp conftest.$ac_ext"
5733case "(($ac_try" in
5734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735  *) ac_try_echo=$ac_try;;
5736esac
5737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5739  ac_status=$?
5740  grep -v '^ *+' conftest.er1 >conftest.err
5741  rm -f conftest.er1
5742  cat conftest.err >&5
5743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744  (exit $ac_status); } >/dev/null && {
5745	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5746	 test ! -s conftest.err
5747       }; then
5748  :
5749else
5750  echo "$as_me: failed program was:" >&5
5751sed 's/^/| /' conftest.$ac_ext >&5
5752
5753  # Broken: fails on valid input.
5754continue
5755fi
5756
5757rm -f conftest.err conftest.$ac_ext
5758
5759  # OK, works on sane cases.  Now check whether nonexistent headers
5760  # can be detected and how.
5761  cat >conftest.$ac_ext <<_ACEOF
5762/* confdefs.h.  */
5763_ACEOF
5764cat confdefs.h >>conftest.$ac_ext
5765cat >>conftest.$ac_ext <<_ACEOF
5766/* end confdefs.h.  */
5767#include <ac_nonexistent.h>
5768_ACEOF
5769if { (ac_try="$ac_cpp conftest.$ac_ext"
5770case "(($ac_try" in
5771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772  *) ac_try_echo=$ac_try;;
5773esac
5774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5776  ac_status=$?
5777  grep -v '^ *+' conftest.er1 >conftest.err
5778  rm -f conftest.er1
5779  cat conftest.err >&5
5780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781  (exit $ac_status); } >/dev/null && {
5782	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5783	 test ! -s conftest.err
5784       }; then
5785  # Broken: success on invalid input.
5786continue
5787else
5788  echo "$as_me: failed program was:" >&5
5789sed 's/^/| /' conftest.$ac_ext >&5
5790
5791  # Passes both tests.
5792ac_preproc_ok=:
5793break
5794fi
5795
5796rm -f conftest.err conftest.$ac_ext
5797
5798done
5799# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5800rm -f conftest.err conftest.$ac_ext
5801if $ac_preproc_ok; then
5802  :
5803else
5804  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5805See \`config.log' for more details." >&5
5806echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5807See \`config.log' for more details." >&2;}
5808   { (exit 1); exit 1; }; }
5809fi
5810
5811ac_ext=cpp
5812ac_cpp='$CXXCPP $CPPFLAGS'
5813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5816
5817fi
5818
5819
5820ac_ext=f
5821ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5822ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5823ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5824if test -n "$ac_tool_prefix"; then
5825  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
5826  do
5827    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5828set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5831if test "${ac_cv_prog_F77+set}" = set; then
5832  echo $ECHO_N "(cached) $ECHO_C" >&6
5833else
5834  if test -n "$F77"; then
5835  ac_cv_prog_F77="$F77" # Let the user override the test.
5836else
5837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838for as_dir in $PATH
5839do
5840  IFS=$as_save_IFS
5841  test -z "$as_dir" && as_dir=.
5842  for ac_exec_ext in '' $ac_executable_extensions; do
5843  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5844    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5845    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5846    break 2
5847  fi
5848done
5849done
5850IFS=$as_save_IFS
5851
5852fi
5853fi
5854F77=$ac_cv_prog_F77
5855if test -n "$F77"; then
5856  { echo "$as_me:$LINENO: result: $F77" >&5
5857echo "${ECHO_T}$F77" >&6; }
5858else
5859  { echo "$as_me:$LINENO: result: no" >&5
5860echo "${ECHO_T}no" >&6; }
5861fi
5862
5863
5864    test -n "$F77" && break
5865  done
5866fi
5867if test -z "$F77"; then
5868  ac_ct_F77=$F77
5869  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
5870do
5871  # Extract the first word of "$ac_prog", so it can be a program name with args.
5872set dummy $ac_prog; ac_word=$2
5873{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5875if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5876  echo $ECHO_N "(cached) $ECHO_C" >&6
5877else
5878  if test -n "$ac_ct_F77"; then
5879  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5880else
5881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882for as_dir in $PATH
5883do
5884  IFS=$as_save_IFS
5885  test -z "$as_dir" && as_dir=.
5886  for ac_exec_ext in '' $ac_executable_extensions; do
5887  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888    ac_cv_prog_ac_ct_F77="$ac_prog"
5889    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890    break 2
5891  fi
5892done
5893done
5894IFS=$as_save_IFS
5895
5896fi
5897fi
5898ac_ct_F77=$ac_cv_prog_ac_ct_F77
5899if test -n "$ac_ct_F77"; then
5900  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5901echo "${ECHO_T}$ac_ct_F77" >&6; }
5902else
5903  { echo "$as_me:$LINENO: result: no" >&5
5904echo "${ECHO_T}no" >&6; }
5905fi
5906
5907
5908  test -n "$ac_ct_F77" && break
5909done
5910
5911  if test "x$ac_ct_F77" = x; then
5912    F77=""
5913  else
5914    case $cross_compiling:$ac_tool_warned in
5915yes:)
5916{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5917whose name does not start with the host triplet.  If you think this
5918configuration is useful to you, please write to autoconf@gnu.org." >&5
5919echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5920whose name does not start with the host triplet.  If you think this
5921configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5922ac_tool_warned=yes ;;
5923esac
5924    F77=$ac_ct_F77
5925  fi
5926fi
5927
5928
5929# Provide some information about the compiler.
5930echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5931ac_compiler=`set X $ac_compile; echo $2`
5932{ (ac_try="$ac_compiler --version >&5"
5933case "(($ac_try" in
5934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935  *) ac_try_echo=$ac_try;;
5936esac
5937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938  (eval "$ac_compiler --version >&5") 2>&5
5939  ac_status=$?
5940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941  (exit $ac_status); }
5942{ (ac_try="$ac_compiler -v >&5"
5943case "(($ac_try" in
5944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945  *) ac_try_echo=$ac_try;;
5946esac
5947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948  (eval "$ac_compiler -v >&5") 2>&5
5949  ac_status=$?
5950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951  (exit $ac_status); }
5952{ (ac_try="$ac_compiler -V >&5"
5953case "(($ac_try" in
5954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955  *) ac_try_echo=$ac_try;;
5956esac
5957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958  (eval "$ac_compiler -V >&5") 2>&5
5959  ac_status=$?
5960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961  (exit $ac_status); }
5962rm -f a.out
5963
5964# If we don't use `.F' as extension, the preprocessor is not run on the
5965# input file.  (Note that this only needs to work for GNU compilers.)
5966ac_save_ext=$ac_ext
5967ac_ext=F
5968{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5969echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5970if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5971  echo $ECHO_N "(cached) $ECHO_C" >&6
5972else
5973  cat >conftest.$ac_ext <<_ACEOF
5974      program main
5975#ifndef __GNUC__
5976       choke me
5977#endif
5978
5979      end
5980_ACEOF
5981rm -f conftest.$ac_objext
5982if { (ac_try="$ac_compile"
5983case "(($ac_try" in
5984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985  *) ac_try_echo=$ac_try;;
5986esac
5987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988  (eval "$ac_compile") 2>conftest.er1
5989  ac_status=$?
5990  grep -v '^ *+' conftest.er1 >conftest.err
5991  rm -f conftest.er1
5992  cat conftest.err >&5
5993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994  (exit $ac_status); } && {
5995	 test -z "$ac_f77_werror_flag" ||
5996	 test ! -s conftest.err
5997       } && test -s conftest.$ac_objext; then
5998  ac_compiler_gnu=yes
5999else
6000  echo "$as_me: failed program was:" >&5
6001sed 's/^/| /' conftest.$ac_ext >&5
6002
6003	ac_compiler_gnu=no
6004fi
6005
6006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6008
6009fi
6010{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6011echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6012ac_ext=$ac_save_ext
6013ac_test_FFLAGS=${FFLAGS+set}
6014ac_save_FFLAGS=$FFLAGS
6015FFLAGS=
6016{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6017echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6018if test "${ac_cv_prog_f77_g+set}" = set; then
6019  echo $ECHO_N "(cached) $ECHO_C" >&6
6020else
6021  FFLAGS=-g
6022cat >conftest.$ac_ext <<_ACEOF
6023      program main
6024
6025      end
6026_ACEOF
6027rm -f conftest.$ac_objext
6028if { (ac_try="$ac_compile"
6029case "(($ac_try" in
6030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6031  *) ac_try_echo=$ac_try;;
6032esac
6033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034  (eval "$ac_compile") 2>conftest.er1
6035  ac_status=$?
6036  grep -v '^ *+' conftest.er1 >conftest.err
6037  rm -f conftest.er1
6038  cat conftest.err >&5
6039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040  (exit $ac_status); } && {
6041	 test -z "$ac_f77_werror_flag" ||
6042	 test ! -s conftest.err
6043       } && test -s conftest.$ac_objext; then
6044  ac_cv_prog_f77_g=yes
6045else
6046  echo "$as_me: failed program was:" >&5
6047sed 's/^/| /' conftest.$ac_ext >&5
6048
6049	ac_cv_prog_f77_g=no
6050fi
6051
6052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053
6054fi
6055{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6056echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6057if test "$ac_test_FFLAGS" = set; then
6058  FFLAGS=$ac_save_FFLAGS
6059elif test $ac_cv_prog_f77_g = yes; then
6060  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6061    FFLAGS="-g -O2"
6062  else
6063    FFLAGS="-g"
6064  fi
6065else
6066  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6067    FFLAGS="-O2"
6068  else
6069    FFLAGS=
6070  fi
6071fi
6072
6073G77=`test $ac_compiler_gnu = yes && echo yes`
6074ac_ext=c
6075ac_cpp='$CPP $CPPFLAGS'
6076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6078ac_compiler_gnu=$ac_cv_c_compiler_gnu
6079
6080
6081
6082# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6083# find the maximum length of command line arguments
6084{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6085echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6086if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6087  echo $ECHO_N "(cached) $ECHO_C" >&6
6088else
6089    i=0
6090  teststring="ABCD"
6091
6092  case $build_os in
6093  msdosdjgpp*)
6094    # On DJGPP, this test can blow up pretty badly due to problems in libc
6095    # (any single argument exceeding 2000 bytes causes a buffer overrun
6096    # during glob expansion).  Even if it were fixed, the result of this
6097    # check would be larger than it should be.
6098    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6099    ;;
6100
6101  gnu*)
6102    # Under GNU Hurd, this test is not required because there is
6103    # no limit to the length of command line arguments.
6104    # Libtool will interpret -1 as no limit whatsoever
6105    lt_cv_sys_max_cmd_len=-1;
6106    ;;
6107
6108  cygwin* | mingw*)
6109    # On Win9x/ME, this test blows up -- it succeeds, but takes
6110    # about 5 minutes as the teststring grows exponentially.
6111    # Worse, since 9x/ME are not pre-emptively multitasking,
6112    # you end up with a "frozen" computer, even though with patience
6113    # the test eventually succeeds (with a max line length of 256k).
6114    # Instead, let's just punt: use the minimum linelength reported by
6115    # all of the supported platforms: 8192 (on NT/2K/XP).
6116    lt_cv_sys_max_cmd_len=8192;
6117    ;;
6118
6119  amigaos*)
6120    # On AmigaOS with pdksh, this test takes hours, literally.
6121    # So we just punt and use a minimum line length of 8192.
6122    lt_cv_sys_max_cmd_len=8192;
6123    ;;
6124
6125  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6126    # This has been around since 386BSD, at least.  Likely further.
6127    if test -x /sbin/sysctl; then
6128      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6129    elif test -x /usr/sbin/sysctl; then
6130      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6131    else
6132      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6133    fi
6134    # And add a safety zone
6135    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6136    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6137    ;;
6138
6139  interix*)
6140    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6141    lt_cv_sys_max_cmd_len=196608
6142    ;;
6143
6144  osf*)
6145    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6146    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6147    # nice to cause kernel panics so lets avoid the loop below.
6148    # First set a reasonable default.
6149    lt_cv_sys_max_cmd_len=16384
6150    #
6151    if test -x /sbin/sysconfig; then
6152      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6153        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6154      esac
6155    fi
6156    ;;
6157  sco3.2v5*)
6158    lt_cv_sys_max_cmd_len=102400
6159    ;;
6160  sysv5* | sco5v6* | sysv4.2uw2*)
6161    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6162    if test -n "$kargmax"; then
6163      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6164    else
6165      lt_cv_sys_max_cmd_len=32768
6166    fi
6167    ;;
6168  *)
6169    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6170    if test -n "$lt_cv_sys_max_cmd_len"; then
6171      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6172      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6173    else
6174      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6175      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6176	       = "XX$teststring") >/dev/null 2>&1 &&
6177	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6178	      lt_cv_sys_max_cmd_len=$new_result &&
6179	      test $i != 17 # 1/2 MB should be enough
6180      do
6181        i=`expr $i + 1`
6182        teststring=$teststring$teststring
6183      done
6184      teststring=
6185      # Add a significant safety factor because C++ compilers can tack on massive
6186      # amounts of additional arguments before passing them to the linker.
6187      # It appears as though 1/2 is a usable value.
6188      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6189    fi
6190    ;;
6191  esac
6192
6193fi
6194
6195if test -n $lt_cv_sys_max_cmd_len ; then
6196  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6197echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6198else
6199  { echo "$as_me:$LINENO: result: none" >&5
6200echo "${ECHO_T}none" >&6; }
6201fi
6202
6203
6204
6205
6206
6207# Check for command to grab the raw symbol name followed by C symbol from nm.
6208{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6209echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6210if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6211  echo $ECHO_N "(cached) $ECHO_C" >&6
6212else
6213
6214# These are sane defaults that work on at least a few old systems.
6215# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6216
6217# Character class describing NM global symbol codes.
6218symcode='[BCDEGRST]'
6219
6220# Regexp to match symbols that can be accessed directly from C.
6221sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6222
6223# Transform an extracted symbol line into a proper C declaration
6224lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6225
6226# Transform an extracted symbol line into symbol name and symbol address
6227lt_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'"
6228
6229# Define system-specific variables.
6230case $host_os in
6231aix*)
6232  symcode='[BCDT]'
6233  ;;
6234cygwin* | mingw* | pw32*)
6235  symcode='[ABCDGISTW]'
6236  ;;
6237hpux*) # Its linker distinguishes data from code symbols
6238  if test "$host_cpu" = ia64; then
6239    symcode='[ABCDEGRST]'
6240  fi
6241  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6242  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'"
6243  ;;
6244linux* | k*bsd*-gnu)
6245  if test "$host_cpu" = ia64; then
6246    symcode='[ABCDGIRSTW]'
6247    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6248    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'"
6249  fi
6250  ;;
6251irix* | nonstopux*)
6252  symcode='[BCDEGRST]'
6253  ;;
6254osf*)
6255  symcode='[BCDEGQRST]'
6256  ;;
6257solaris*)
6258  symcode='[BDRT]'
6259  ;;
6260sco3.2v5*)
6261  symcode='[DT]'
6262  ;;
6263sysv4.2uw2*)
6264  symcode='[DT]'
6265  ;;
6266sysv5* | sco5v6* | unixware* | OpenUNIX*)
6267  symcode='[ABDT]'
6268  ;;
6269sysv4)
6270  symcode='[DFNSTU]'
6271  ;;
6272esac
6273
6274# Handle CRLF in mingw tool chain
6275opt_cr=
6276case $build_os in
6277mingw*)
6278  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6279  ;;
6280esac
6281
6282# If we're using GNU nm, then use its standard symbol codes.
6283case `$NM -V 2>&1` in
6284*GNU* | *'with BFD'*)
6285  symcode='[ABCDGIRSTW]' ;;
6286esac
6287
6288# Try without a prefix undercore, then with it.
6289for ac_symprfx in "" "_"; do
6290
6291  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6292  symxfrm="\\1 $ac_symprfx\\2 \\2"
6293
6294  # Write the raw and C identifiers.
6295  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6296
6297  # Check to see that the pipe works correctly.
6298  pipe_works=no
6299
6300  rm -f conftest*
6301  cat > conftest.$ac_ext <<EOF
6302#ifdef __cplusplus
6303extern "C" {
6304#endif
6305char nm_test_var;
6306void nm_test_func(){}
6307#ifdef __cplusplus
6308}
6309#endif
6310int main(){nm_test_var='a';nm_test_func();return(0);}
6311EOF
6312
6313  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6314  (eval $ac_compile) 2>&5
6315  ac_status=$?
6316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317  (exit $ac_status); }; then
6318    # Now try to grab the symbols.
6319    nlist=conftest.nm
6320    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6321  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6322  ac_status=$?
6323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324  (exit $ac_status); } && test -s "$nlist"; then
6325      # Try sorting and uniquifying the output.
6326      if sort "$nlist" | uniq > "$nlist"T; then
6327	mv -f "$nlist"T "$nlist"
6328      else
6329	rm -f "$nlist"T
6330      fi
6331
6332      # Make sure that we snagged all the symbols we need.
6333      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6334	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6335	  cat <<EOF > conftest.$ac_ext
6336#ifdef __cplusplus
6337extern "C" {
6338#endif
6339
6340EOF
6341	  # Now generate the symbol file.
6342	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6343
6344	  cat <<EOF >> conftest.$ac_ext
6345#if defined (__STDC__) && __STDC__
6346# define lt_ptr_t void *
6347#else
6348# define lt_ptr_t char *
6349# define const
6350#endif
6351
6352/* The mapping between symbol names and symbols. */
6353const struct {
6354  const char *name;
6355  lt_ptr_t address;
6356}
6357lt_preloaded_symbols[] =
6358{
6359EOF
6360	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6361	  cat <<\EOF >> conftest.$ac_ext
6362  {0, (lt_ptr_t) 0}
6363};
6364
6365#ifdef __cplusplus
6366}
6367#endif
6368EOF
6369	  # Now try linking the two files.
6370	  mv conftest.$ac_objext conftstm.$ac_objext
6371	  lt_save_LIBS="$LIBS"
6372	  lt_save_CFLAGS="$CFLAGS"
6373	  LIBS="conftstm.$ac_objext"
6374	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6375	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6376  (eval $ac_link) 2>&5
6377  ac_status=$?
6378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6380	    pipe_works=yes
6381	  fi
6382	  LIBS="$lt_save_LIBS"
6383	  CFLAGS="$lt_save_CFLAGS"
6384	else
6385	  echo "cannot find nm_test_func in $nlist" >&5
6386	fi
6387      else
6388	echo "cannot find nm_test_var in $nlist" >&5
6389      fi
6390    else
6391      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6392    fi
6393  else
6394    echo "$progname: failed program was:" >&5
6395    cat conftest.$ac_ext >&5
6396  fi
6397  rm -rf conftest* conftst*
6398
6399  # Do not use the global_symbol_pipe unless it works.
6400  if test "$pipe_works" = yes; then
6401    break
6402  else
6403    lt_cv_sys_global_symbol_pipe=
6404  fi
6405done
6406
6407fi
6408
6409if test -z "$lt_cv_sys_global_symbol_pipe"; then
6410  lt_cv_sys_global_symbol_to_cdecl=
6411fi
6412if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6413  { echo "$as_me:$LINENO: result: failed" >&5
6414echo "${ECHO_T}failed" >&6; }
6415else
6416  { echo "$as_me:$LINENO: result: ok" >&5
6417echo "${ECHO_T}ok" >&6; }
6418fi
6419
6420{ echo "$as_me:$LINENO: checking for objdir" >&5
6421echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6422if test "${lt_cv_objdir+set}" = set; then
6423  echo $ECHO_N "(cached) $ECHO_C" >&6
6424else
6425  rm -f .libs 2>/dev/null
6426mkdir .libs 2>/dev/null
6427if test -d .libs; then
6428  lt_cv_objdir=.libs
6429else
6430  # MS-DOS does not allow filenames that begin with a dot.
6431  lt_cv_objdir=_libs
6432fi
6433rmdir .libs 2>/dev/null
6434fi
6435{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6436echo "${ECHO_T}$lt_cv_objdir" >&6; }
6437objdir=$lt_cv_objdir
6438
6439
6440
6441
6442
6443case $host_os in
6444aix3*)
6445  # AIX sometimes has problems with the GCC collect2 program.  For some
6446  # reason, if we set the COLLECT_NAMES environment variable, the problems
6447  # vanish in a puff of smoke.
6448  if test "X${COLLECT_NAMES+set}" != Xset; then
6449    COLLECT_NAMES=
6450    export COLLECT_NAMES
6451  fi
6452  ;;
6453esac
6454
6455# Sed substitution that helps us do robust quoting.  It backslashifies
6456# metacharacters that are still active within double-quoted strings.
6457Xsed='sed -e 1s/^X//'
6458sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6459
6460# Same as above, but do not quote variable references.
6461double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6462
6463# Sed substitution to delay expansion of an escaped shell variable in a
6464# double_quote_subst'ed string.
6465delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6466
6467# Sed substitution to avoid accidental globbing in evaled expressions
6468no_glob_subst='s/\*/\\\*/g'
6469
6470# Constants:
6471rm="rm -f"
6472
6473# Global variables:
6474default_ofile=libtool
6475can_build_shared=yes
6476
6477# All known linkers require a `.a' archive for static linking (except MSVC,
6478# which needs '.lib').
6479libext=a
6480ltmain="$ac_aux_dir/ltmain.sh"
6481ofile="$default_ofile"
6482with_gnu_ld="$lt_cv_prog_gnu_ld"
6483
6484if test -n "$ac_tool_prefix"; then
6485  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6486set dummy ${ac_tool_prefix}ar; ac_word=$2
6487{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6489if test "${ac_cv_prog_AR+set}" = set; then
6490  echo $ECHO_N "(cached) $ECHO_C" >&6
6491else
6492  if test -n "$AR"; then
6493  ac_cv_prog_AR="$AR" # Let the user override the test.
6494else
6495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496for as_dir in $PATH
6497do
6498  IFS=$as_save_IFS
6499  test -z "$as_dir" && as_dir=.
6500  for ac_exec_ext in '' $ac_executable_extensions; do
6501  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502    ac_cv_prog_AR="${ac_tool_prefix}ar"
6503    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6504    break 2
6505  fi
6506done
6507done
6508IFS=$as_save_IFS
6509
6510fi
6511fi
6512AR=$ac_cv_prog_AR
6513if test -n "$AR"; then
6514  { echo "$as_me:$LINENO: result: $AR" >&5
6515echo "${ECHO_T}$AR" >&6; }
6516else
6517  { echo "$as_me:$LINENO: result: no" >&5
6518echo "${ECHO_T}no" >&6; }
6519fi
6520
6521
6522fi
6523if test -z "$ac_cv_prog_AR"; then
6524  ac_ct_AR=$AR
6525  # Extract the first word of "ar", so it can be a program name with args.
6526set dummy ar; ac_word=$2
6527{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6529if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6530  echo $ECHO_N "(cached) $ECHO_C" >&6
6531else
6532  if test -n "$ac_ct_AR"; then
6533  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6534else
6535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536for as_dir in $PATH
6537do
6538  IFS=$as_save_IFS
6539  test -z "$as_dir" && as_dir=.
6540  for ac_exec_ext in '' $ac_executable_extensions; do
6541  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6542    ac_cv_prog_ac_ct_AR="ar"
6543    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544    break 2
6545  fi
6546done
6547done
6548IFS=$as_save_IFS
6549
6550fi
6551fi
6552ac_ct_AR=$ac_cv_prog_ac_ct_AR
6553if test -n "$ac_ct_AR"; then
6554  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6555echo "${ECHO_T}$ac_ct_AR" >&6; }
6556else
6557  { echo "$as_me:$LINENO: result: no" >&5
6558echo "${ECHO_T}no" >&6; }
6559fi
6560
6561  if test "x$ac_ct_AR" = x; then
6562    AR="false"
6563  else
6564    case $cross_compiling:$ac_tool_warned in
6565yes:)
6566{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6567whose name does not start with the host triplet.  If you think this
6568configuration is useful to you, please write to autoconf@gnu.org." >&5
6569echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6570whose name does not start with the host triplet.  If you think this
6571configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6572ac_tool_warned=yes ;;
6573esac
6574    AR=$ac_ct_AR
6575  fi
6576else
6577  AR="$ac_cv_prog_AR"
6578fi
6579
6580if test -n "$ac_tool_prefix"; then
6581  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6582set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585if test "${ac_cv_prog_RANLIB+set}" = set; then
6586  echo $ECHO_N "(cached) $ECHO_C" >&6
6587else
6588  if test -n "$RANLIB"; then
6589  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6590else
6591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592for as_dir in $PATH
6593do
6594  IFS=$as_save_IFS
6595  test -z "$as_dir" && as_dir=.
6596  for ac_exec_ext in '' $ac_executable_extensions; do
6597  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6598    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6599    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600    break 2
6601  fi
6602done
6603done
6604IFS=$as_save_IFS
6605
6606fi
6607fi
6608RANLIB=$ac_cv_prog_RANLIB
6609if test -n "$RANLIB"; then
6610  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6611echo "${ECHO_T}$RANLIB" >&6; }
6612else
6613  { echo "$as_me:$LINENO: result: no" >&5
6614echo "${ECHO_T}no" >&6; }
6615fi
6616
6617
6618fi
6619if test -z "$ac_cv_prog_RANLIB"; then
6620  ac_ct_RANLIB=$RANLIB
6621  # Extract the first word of "ranlib", so it can be a program name with args.
6622set dummy ranlib; ac_word=$2
6623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6625if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6626  echo $ECHO_N "(cached) $ECHO_C" >&6
6627else
6628  if test -n "$ac_ct_RANLIB"; then
6629  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6630else
6631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632for as_dir in $PATH
6633do
6634  IFS=$as_save_IFS
6635  test -z "$as_dir" && as_dir=.
6636  for ac_exec_ext in '' $ac_executable_extensions; do
6637  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6638    ac_cv_prog_ac_ct_RANLIB="ranlib"
6639    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640    break 2
6641  fi
6642done
6643done
6644IFS=$as_save_IFS
6645
6646fi
6647fi
6648ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6649if test -n "$ac_ct_RANLIB"; then
6650  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6651echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6652else
6653  { echo "$as_me:$LINENO: result: no" >&5
6654echo "${ECHO_T}no" >&6; }
6655fi
6656
6657  if test "x$ac_ct_RANLIB" = x; then
6658    RANLIB=":"
6659  else
6660    case $cross_compiling:$ac_tool_warned in
6661yes:)
6662{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6663whose name does not start with the host triplet.  If you think this
6664configuration is useful to you, please write to autoconf@gnu.org." >&5
6665echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6666whose name does not start with the host triplet.  If you think this
6667configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6668ac_tool_warned=yes ;;
6669esac
6670    RANLIB=$ac_ct_RANLIB
6671  fi
6672else
6673  RANLIB="$ac_cv_prog_RANLIB"
6674fi
6675
6676if test -n "$ac_tool_prefix"; then
6677  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6678set dummy ${ac_tool_prefix}strip; ac_word=$2
6679{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681if test "${ac_cv_prog_STRIP+set}" = set; then
6682  echo $ECHO_N "(cached) $ECHO_C" >&6
6683else
6684  if test -n "$STRIP"; then
6685  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6686else
6687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688for as_dir in $PATH
6689do
6690  IFS=$as_save_IFS
6691  test -z "$as_dir" && as_dir=.
6692  for ac_exec_ext in '' $ac_executable_extensions; do
6693  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6695    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6696    break 2
6697  fi
6698done
6699done
6700IFS=$as_save_IFS
6701
6702fi
6703fi
6704STRIP=$ac_cv_prog_STRIP
6705if test -n "$STRIP"; then
6706  { echo "$as_me:$LINENO: result: $STRIP" >&5
6707echo "${ECHO_T}$STRIP" >&6; }
6708else
6709  { echo "$as_me:$LINENO: result: no" >&5
6710echo "${ECHO_T}no" >&6; }
6711fi
6712
6713
6714fi
6715if test -z "$ac_cv_prog_STRIP"; then
6716  ac_ct_STRIP=$STRIP
6717  # Extract the first word of "strip", so it can be a program name with args.
6718set dummy strip; ac_word=$2
6719{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6721if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6722  echo $ECHO_N "(cached) $ECHO_C" >&6
6723else
6724  if test -n "$ac_ct_STRIP"; then
6725  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6726else
6727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728for as_dir in $PATH
6729do
6730  IFS=$as_save_IFS
6731  test -z "$as_dir" && as_dir=.
6732  for ac_exec_ext in '' $ac_executable_extensions; do
6733  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734    ac_cv_prog_ac_ct_STRIP="strip"
6735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736    break 2
6737  fi
6738done
6739done
6740IFS=$as_save_IFS
6741
6742fi
6743fi
6744ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6745if test -n "$ac_ct_STRIP"; then
6746  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6747echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6748else
6749  { echo "$as_me:$LINENO: result: no" >&5
6750echo "${ECHO_T}no" >&6; }
6751fi
6752
6753  if test "x$ac_ct_STRIP" = x; then
6754    STRIP=":"
6755  else
6756    case $cross_compiling:$ac_tool_warned in
6757yes:)
6758{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6759whose name does not start with the host triplet.  If you think this
6760configuration is useful to you, please write to autoconf@gnu.org." >&5
6761echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6762whose name does not start with the host triplet.  If you think this
6763configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6764ac_tool_warned=yes ;;
6765esac
6766    STRIP=$ac_ct_STRIP
6767  fi
6768else
6769  STRIP="$ac_cv_prog_STRIP"
6770fi
6771
6772
6773old_CC="$CC"
6774old_CFLAGS="$CFLAGS"
6775
6776# Set sane defaults for various variables
6777test -z "$AR" && AR=ar
6778test -z "$AR_FLAGS" && AR_FLAGS=cru
6779test -z "$AS" && AS=as
6780test -z "$CC" && CC=cc
6781test -z "$LTCC" && LTCC=$CC
6782test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6783test -z "$DLLTOOL" && DLLTOOL=dlltool
6784test -z "$LD" && LD=ld
6785test -z "$LN_S" && LN_S="ln -s"
6786test -z "$MAGIC_CMD" && MAGIC_CMD=file
6787test -z "$NM" && NM=nm
6788test -z "$SED" && SED=sed
6789test -z "$OBJDUMP" && OBJDUMP=objdump
6790test -z "$RANLIB" && RANLIB=:
6791test -z "$STRIP" && STRIP=:
6792test -z "$ac_objext" && ac_objext=o
6793
6794# Determine commands to create old-style static archives.
6795old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6796old_postinstall_cmds='chmod 644 $oldlib'
6797old_postuninstall_cmds=
6798
6799if test -n "$RANLIB"; then
6800  case $host_os in
6801  openbsd*)
6802    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6803    ;;
6804  *)
6805    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6806    ;;
6807  esac
6808  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6809fi
6810
6811for cc_temp in $compiler""; do
6812  case $cc_temp in
6813    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6814    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6815    \-*) ;;
6816    *) break;;
6817  esac
6818done
6819cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6820
6821
6822# Only perform the check for file, if the check method requires it
6823case $deplibs_check_method in
6824file_magic*)
6825  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6826    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6827echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6828if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6829  echo $ECHO_N "(cached) $ECHO_C" >&6
6830else
6831  case $MAGIC_CMD in
6832[\\/*] |  ?:[\\/]*)
6833  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6834  ;;
6835*)
6836  lt_save_MAGIC_CMD="$MAGIC_CMD"
6837  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6838  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6839  for ac_dir in $ac_dummy; do
6840    IFS="$lt_save_ifs"
6841    test -z "$ac_dir" && ac_dir=.
6842    if test -f $ac_dir/${ac_tool_prefix}file; then
6843      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6844      if test -n "$file_magic_test_file"; then
6845	case $deplibs_check_method in
6846	"file_magic "*)
6847	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6848	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6849	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6850	    $EGREP "$file_magic_regex" > /dev/null; then
6851	    :
6852	  else
6853	    cat <<EOF 1>&2
6854
6855*** Warning: the command libtool uses to detect shared libraries,
6856*** $file_magic_cmd, produces output that libtool cannot recognize.
6857*** The result is that libtool may fail to recognize shared libraries
6858*** as such.  This will affect the creation of libtool libraries that
6859*** depend on shared libraries, but programs linked with such libtool
6860*** libraries will work regardless of this problem.  Nevertheless, you
6861*** may want to report the problem to your system manager and/or to
6862*** bug-libtool@gnu.org
6863
6864EOF
6865	  fi ;;
6866	esac
6867      fi
6868      break
6869    fi
6870  done
6871  IFS="$lt_save_ifs"
6872  MAGIC_CMD="$lt_save_MAGIC_CMD"
6873  ;;
6874esac
6875fi
6876
6877MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6878if test -n "$MAGIC_CMD"; then
6879  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6880echo "${ECHO_T}$MAGIC_CMD" >&6; }
6881else
6882  { echo "$as_me:$LINENO: result: no" >&5
6883echo "${ECHO_T}no" >&6; }
6884fi
6885
6886if test -z "$lt_cv_path_MAGIC_CMD"; then
6887  if test -n "$ac_tool_prefix"; then
6888    { echo "$as_me:$LINENO: checking for file" >&5
6889echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6890if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6891  echo $ECHO_N "(cached) $ECHO_C" >&6
6892else
6893  case $MAGIC_CMD in
6894[\\/*] |  ?:[\\/]*)
6895  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6896  ;;
6897*)
6898  lt_save_MAGIC_CMD="$MAGIC_CMD"
6899  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6900  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6901  for ac_dir in $ac_dummy; do
6902    IFS="$lt_save_ifs"
6903    test -z "$ac_dir" && ac_dir=.
6904    if test -f $ac_dir/file; then
6905      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6906      if test -n "$file_magic_test_file"; then
6907	case $deplibs_check_method in
6908	"file_magic "*)
6909	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6910	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6911	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6912	    $EGREP "$file_magic_regex" > /dev/null; then
6913	    :
6914	  else
6915	    cat <<EOF 1>&2
6916
6917*** Warning: the command libtool uses to detect shared libraries,
6918*** $file_magic_cmd, produces output that libtool cannot recognize.
6919*** The result is that libtool may fail to recognize shared libraries
6920*** as such.  This will affect the creation of libtool libraries that
6921*** depend on shared libraries, but programs linked with such libtool
6922*** libraries will work regardless of this problem.  Nevertheless, you
6923*** may want to report the problem to your system manager and/or to
6924*** bug-libtool@gnu.org
6925
6926EOF
6927	  fi ;;
6928	esac
6929      fi
6930      break
6931    fi
6932  done
6933  IFS="$lt_save_ifs"
6934  MAGIC_CMD="$lt_save_MAGIC_CMD"
6935  ;;
6936esac
6937fi
6938
6939MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6940if test -n "$MAGIC_CMD"; then
6941  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6942echo "${ECHO_T}$MAGIC_CMD" >&6; }
6943else
6944  { echo "$as_me:$LINENO: result: no" >&5
6945echo "${ECHO_T}no" >&6; }
6946fi
6947
6948  else
6949    MAGIC_CMD=:
6950  fi
6951fi
6952
6953  fi
6954  ;;
6955esac
6956
6957
6958  case $host_os in
6959    rhapsody* | darwin*)
6960    if test -n "$ac_tool_prefix"; then
6961  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6962set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6963{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6965if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6966  echo $ECHO_N "(cached) $ECHO_C" >&6
6967else
6968  if test -n "$DSYMUTIL"; then
6969  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6970else
6971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972for as_dir in $PATH
6973do
6974  IFS=$as_save_IFS
6975  test -z "$as_dir" && as_dir=.
6976  for ac_exec_ext in '' $ac_executable_extensions; do
6977  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6978    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6979    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6980    break 2
6981  fi
6982done
6983done
6984IFS=$as_save_IFS
6985
6986fi
6987fi
6988DSYMUTIL=$ac_cv_prog_DSYMUTIL
6989if test -n "$DSYMUTIL"; then
6990  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6991echo "${ECHO_T}$DSYMUTIL" >&6; }
6992else
6993  { echo "$as_me:$LINENO: result: no" >&5
6994echo "${ECHO_T}no" >&6; }
6995fi
6996
6997
6998fi
6999if test -z "$ac_cv_prog_DSYMUTIL"; then
7000  ac_ct_DSYMUTIL=$DSYMUTIL
7001  # Extract the first word of "dsymutil", so it can be a program name with args.
7002set dummy dsymutil; ac_word=$2
7003{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7005if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7006  echo $ECHO_N "(cached) $ECHO_C" >&6
7007else
7008  if test -n "$ac_ct_DSYMUTIL"; then
7009  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7010else
7011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012for as_dir in $PATH
7013do
7014  IFS=$as_save_IFS
7015  test -z "$as_dir" && as_dir=.
7016  for ac_exec_ext in '' $ac_executable_extensions; do
7017  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7018    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7019    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7020    break 2
7021  fi
7022done
7023done
7024IFS=$as_save_IFS
7025
7026fi
7027fi
7028ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7029if test -n "$ac_ct_DSYMUTIL"; then
7030  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7031echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7032else
7033  { echo "$as_me:$LINENO: result: no" >&5
7034echo "${ECHO_T}no" >&6; }
7035fi
7036
7037  if test "x$ac_ct_DSYMUTIL" = x; then
7038    DSYMUTIL=":"
7039  else
7040    case $cross_compiling:$ac_tool_warned in
7041yes:)
7042{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7043whose name does not start with the host triplet.  If you think this
7044configuration is useful to you, please write to autoconf@gnu.org." >&5
7045echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7046whose name does not start with the host triplet.  If you think this
7047configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7048ac_tool_warned=yes ;;
7049esac
7050    DSYMUTIL=$ac_ct_DSYMUTIL
7051  fi
7052else
7053  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7054fi
7055
7056    if test -n "$ac_tool_prefix"; then
7057  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7058set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7059{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061if test "${ac_cv_prog_NMEDIT+set}" = set; then
7062  echo $ECHO_N "(cached) $ECHO_C" >&6
7063else
7064  if test -n "$NMEDIT"; then
7065  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7066else
7067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068for as_dir in $PATH
7069do
7070  IFS=$as_save_IFS
7071  test -z "$as_dir" && as_dir=.
7072  for ac_exec_ext in '' $ac_executable_extensions; do
7073  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7074    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7075    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7076    break 2
7077  fi
7078done
7079done
7080IFS=$as_save_IFS
7081
7082fi
7083fi
7084NMEDIT=$ac_cv_prog_NMEDIT
7085if test -n "$NMEDIT"; then
7086  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7087echo "${ECHO_T}$NMEDIT" >&6; }
7088else
7089  { echo "$as_me:$LINENO: result: no" >&5
7090echo "${ECHO_T}no" >&6; }
7091fi
7092
7093
7094fi
7095if test -z "$ac_cv_prog_NMEDIT"; then
7096  ac_ct_NMEDIT=$NMEDIT
7097  # Extract the first word of "nmedit", so it can be a program name with args.
7098set dummy nmedit; ac_word=$2
7099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7102  echo $ECHO_N "(cached) $ECHO_C" >&6
7103else
7104  if test -n "$ac_ct_NMEDIT"; then
7105  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7106else
7107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108for as_dir in $PATH
7109do
7110  IFS=$as_save_IFS
7111  test -z "$as_dir" && as_dir=.
7112  for ac_exec_ext in '' $ac_executable_extensions; do
7113  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7114    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7115    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7116    break 2
7117  fi
7118done
7119done
7120IFS=$as_save_IFS
7121
7122fi
7123fi
7124ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7125if test -n "$ac_ct_NMEDIT"; then
7126  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7127echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7128else
7129  { echo "$as_me:$LINENO: result: no" >&5
7130echo "${ECHO_T}no" >&6; }
7131fi
7132
7133  if test "x$ac_ct_NMEDIT" = x; then
7134    NMEDIT=":"
7135  else
7136    case $cross_compiling:$ac_tool_warned in
7137yes:)
7138{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7139whose name does not start with the host triplet.  If you think this
7140configuration is useful to you, please write to autoconf@gnu.org." >&5
7141echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7142whose name does not start with the host triplet.  If you think this
7143configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7144ac_tool_warned=yes ;;
7145esac
7146    NMEDIT=$ac_ct_NMEDIT
7147  fi
7148else
7149  NMEDIT="$ac_cv_prog_NMEDIT"
7150fi
7151
7152
7153    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7154echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7155if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7156  echo $ECHO_N "(cached) $ECHO_C" >&6
7157else
7158  lt_cv_apple_cc_single_mod=no
7159      if test -z "${LT_MULTI_MODULE}"; then
7160   # By default we will add the -single_module flag. You can override
7161   # by either setting the environment variable LT_MULTI_MODULE
7162   # non-empty at configure time, or by adding -multi_module to the
7163   # link flags.
7164   echo "int foo(void){return 1;}" > conftest.c
7165   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7166     -dynamiclib ${wl}-single_module conftest.c
7167   if test -f libconftest.dylib; then
7168     lt_cv_apple_cc_single_mod=yes
7169     rm -rf libconftest.dylib*
7170   fi
7171   rm conftest.c
7172      fi
7173fi
7174{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7175echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7176    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7177echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7178if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7179  echo $ECHO_N "(cached) $ECHO_C" >&6
7180else
7181  lt_cv_ld_exported_symbols_list=no
7182      save_LDFLAGS=$LDFLAGS
7183      echo "_main" > conftest.sym
7184      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7185      cat >conftest.$ac_ext <<_ACEOF
7186/* confdefs.h.  */
7187_ACEOF
7188cat confdefs.h >>conftest.$ac_ext
7189cat >>conftest.$ac_ext <<_ACEOF
7190/* end confdefs.h.  */
7191
7192int
7193main ()
7194{
7195
7196  ;
7197  return 0;
7198}
7199_ACEOF
7200rm -f conftest.$ac_objext conftest$ac_exeext
7201if { (ac_try="$ac_link"
7202case "(($ac_try" in
7203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7204  *) ac_try_echo=$ac_try;;
7205esac
7206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7207  (eval "$ac_link") 2>conftest.er1
7208  ac_status=$?
7209  grep -v '^ *+' conftest.er1 >conftest.err
7210  rm -f conftest.er1
7211  cat conftest.err >&5
7212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213  (exit $ac_status); } && {
7214	 test -z "$ac_c_werror_flag" ||
7215	 test ! -s conftest.err
7216       } && test -s conftest$ac_exeext &&
7217       $as_test_x conftest$ac_exeext; then
7218  lt_cv_ld_exported_symbols_list=yes
7219else
7220  echo "$as_me: failed program was:" >&5
7221sed 's/^/| /' conftest.$ac_ext >&5
7222
7223	lt_cv_ld_exported_symbols_list=no
7224fi
7225
7226rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7227      conftest$ac_exeext conftest.$ac_ext
7228   LDFLAGS="$save_LDFLAGS"
7229
7230fi
7231{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7232echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7233    case $host_os in
7234    rhapsody* | darwin1.[0123])
7235      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7236    darwin1.*)
7237     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7238    darwin*)
7239      # if running on 10.5 or later, the deployment target defaults
7240      # to the OS version, if on x86, and 10.4, the deployment
7241      # target defaults to 10.4. Don't you love it?
7242      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7243   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7244     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7245   10.[012]*)
7246     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7247   10.*)
7248     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7249      esac
7250    ;;
7251  esac
7252    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7253      _lt_dar_single_mod='$single_module'
7254    fi
7255    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7256      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7257    else
7258      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7259    fi
7260    if test "$DSYMUTIL" != ":"; then
7261      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7262    else
7263      _lt_dsymutil=
7264    fi
7265    ;;
7266  esac
7267
7268
7269enable_dlopen=no
7270enable_win32_dll=no
7271
7272# Check whether --enable-libtool-lock was given.
7273if test "${enable_libtool_lock+set}" = set; then
7274  enableval=$enable_libtool_lock;
7275fi
7276
7277test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7278
7279
7280# Check whether --with-pic was given.
7281if test "${with_pic+set}" = set; then
7282  withval=$with_pic; pic_mode="$withval"
7283else
7284  pic_mode=default
7285fi
7286
7287test -z "$pic_mode" && pic_mode=default
7288
7289# Use C for the default configuration in the libtool script
7290tagname=
7291lt_save_CC="$CC"
7292ac_ext=c
7293ac_cpp='$CPP $CPPFLAGS'
7294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7296ac_compiler_gnu=$ac_cv_c_compiler_gnu
7297
7298
7299# Source file extension for C test sources.
7300ac_ext=c
7301
7302# Object file extension for compiled C test sources.
7303objext=o
7304objext=$objext
7305
7306# Code to be used in simple compile tests
7307lt_simple_compile_test_code="int some_variable = 0;"
7308
7309# Code to be used in simple link tests
7310lt_simple_link_test_code='int main(){return(0);}'
7311
7312
7313# If no C compiler was specified, use CC.
7314LTCC=${LTCC-"$CC"}
7315
7316# If no C compiler flags were specified, use CFLAGS.
7317LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7318
7319# Allow CC to be a program name with arguments.
7320compiler=$CC
7321
7322
7323# save warnings/boilerplate of simple test code
7324ac_outfile=conftest.$ac_objext
7325echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7326eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7327_lt_compiler_boilerplate=`cat conftest.err`
7328$rm conftest*
7329
7330ac_outfile=conftest.$ac_objext
7331echo "$lt_simple_link_test_code" >conftest.$ac_ext
7332eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7333_lt_linker_boilerplate=`cat conftest.err`
7334$rm -r conftest*
7335
7336
7337
7338lt_prog_compiler_no_builtin_flag=
7339
7340if test "$GCC" = yes; then
7341  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7342
7343
7344{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7345echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7346if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7347  echo $ECHO_N "(cached) $ECHO_C" >&6
7348else
7349  lt_cv_prog_compiler_rtti_exceptions=no
7350  ac_outfile=conftest.$ac_objext
7351   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7352   lt_compiler_flag="-fno-rtti -fno-exceptions"
7353   # Insert the option either (1) after the last *FLAGS variable, or
7354   # (2) before a word containing "conftest.", or (3) at the end.
7355   # Note that $ac_compile itself does not contain backslashes and begins
7356   # with a dollar sign (not a hyphen), so the echo should work correctly.
7357   # The option is referenced via a variable to avoid confusing sed.
7358   lt_compile=`echo "$ac_compile" | $SED \
7359   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7360   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7361   -e 's:$: $lt_compiler_flag:'`
7362   (eval echo "\"\$as_me:7362: $lt_compile\"" >&5)
7363   (eval "$lt_compile" 2>conftest.err)
7364   ac_status=$?
7365   cat conftest.err >&5
7366   echo "$as_me:7366: \$? = $ac_status" >&5
7367   if (exit $ac_status) && test -s "$ac_outfile"; then
7368     # The compiler can only warn and ignore the option if not recognized
7369     # So say no if there are warnings other than the usual output.
7370     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7371     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7372     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7373       lt_cv_prog_compiler_rtti_exceptions=yes
7374     fi
7375   fi
7376   $rm conftest*
7377
7378fi
7379{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7380echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7381
7382if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7383    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7384else
7385    :
7386fi
7387
7388fi
7389
7390lt_prog_compiler_wl=
7391lt_prog_compiler_pic=
7392lt_prog_compiler_static=
7393
7394{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7395echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7396
7397  if test "$GCC" = yes; then
7398    lt_prog_compiler_wl='-Wl,'
7399    lt_prog_compiler_static='-static'
7400
7401    case $host_os in
7402      aix*)
7403      # All AIX code is PIC.
7404      if test "$host_cpu" = ia64; then
7405	# AIX 5 now supports IA64 processor
7406	lt_prog_compiler_static='-Bstatic'
7407      fi
7408      ;;
7409
7410    amigaos*)
7411      # FIXME: we need at least 68020 code to build shared libraries, but
7412      # adding the `-m68020' flag to GCC prevents building anything better,
7413      # like `-m68040'.
7414      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7415      ;;
7416
7417    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7418      # PIC is the default for these OSes.
7419      ;;
7420
7421    mingw* | cygwin* | pw32* | os2*)
7422      # This hack is so that the source file can tell whether it is being
7423      # built for inclusion in a dll (and should export symbols for example).
7424      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7425      # (--disable-auto-import) libraries
7426      lt_prog_compiler_pic='-DDLL_EXPORT'
7427      ;;
7428
7429    darwin* | rhapsody*)
7430      # PIC is the default on this platform
7431      # Common symbols not allowed in MH_DYLIB files
7432      lt_prog_compiler_pic='-fno-common'
7433      ;;
7434
7435    interix[3-9]*)
7436      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7437      # Instead, we relocate shared libraries at runtime.
7438      ;;
7439
7440    msdosdjgpp*)
7441      # Just because we use GCC doesn't mean we suddenly get shared libraries
7442      # on systems that don't support them.
7443      lt_prog_compiler_can_build_shared=no
7444      enable_shared=no
7445      ;;
7446
7447    sysv4*MP*)
7448      if test -d /usr/nec; then
7449	lt_prog_compiler_pic=-Kconform_pic
7450      fi
7451      ;;
7452
7453    hpux*)
7454      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7455      # not for PA HP-UX.
7456      case $host_cpu in
7457      hppa*64*|ia64*)
7458	# +Z the default
7459	;;
7460      *)
7461	lt_prog_compiler_pic='-fPIC'
7462	;;
7463      esac
7464      ;;
7465
7466    *)
7467      lt_prog_compiler_pic='-fPIC'
7468      ;;
7469    esac
7470  else
7471    # PORTME Check for flag to pass linker flags through the system compiler.
7472    case $host_os in
7473    aix*)
7474      lt_prog_compiler_wl='-Wl,'
7475      if test "$host_cpu" = ia64; then
7476	# AIX 5 now supports IA64 processor
7477	lt_prog_compiler_static='-Bstatic'
7478      else
7479	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7480      fi
7481      ;;
7482      darwin*)
7483        # PIC is the default on this platform
7484        # Common symbols not allowed in MH_DYLIB files
7485       case $cc_basename in
7486         xlc*)
7487         lt_prog_compiler_pic='-qnocommon'
7488         lt_prog_compiler_wl='-Wl,'
7489         ;;
7490       esac
7491       ;;
7492
7493    mingw* | cygwin* | pw32* | os2*)
7494      # This hack is so that the source file can tell whether it is being
7495      # built for inclusion in a dll (and should export symbols for example).
7496      lt_prog_compiler_pic='-DDLL_EXPORT'
7497      ;;
7498
7499    hpux9* | hpux10* | hpux11*)
7500      lt_prog_compiler_wl='-Wl,'
7501      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7502      # not for PA HP-UX.
7503      case $host_cpu in
7504      hppa*64*|ia64*)
7505	# +Z the default
7506	;;
7507      *)
7508	lt_prog_compiler_pic='+Z'
7509	;;
7510      esac
7511      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7512      lt_prog_compiler_static='${wl}-a ${wl}archive'
7513      ;;
7514
7515    irix5* | irix6* | nonstopux*)
7516      lt_prog_compiler_wl='-Wl,'
7517      # PIC (with -KPIC) is the default.
7518      lt_prog_compiler_static='-non_shared'
7519      ;;
7520
7521    newsos6)
7522      lt_prog_compiler_pic='-KPIC'
7523      lt_prog_compiler_static='-Bstatic'
7524      ;;
7525
7526    linux* | k*bsd*-gnu)
7527      case $cc_basename in
7528      icc* | ecc*)
7529	lt_prog_compiler_wl='-Wl,'
7530	lt_prog_compiler_pic='-KPIC'
7531	lt_prog_compiler_static='-static'
7532        ;;
7533      pgcc* | pgf77* | pgf90* | pgf95*)
7534        # Portland Group compilers (*not* the Pentium gcc compiler,
7535	# which looks to be a dead project)
7536	lt_prog_compiler_wl='-Wl,'
7537	lt_prog_compiler_pic='-fpic'
7538	lt_prog_compiler_static='-Bstatic'
7539        ;;
7540      ccc*)
7541        lt_prog_compiler_wl='-Wl,'
7542        # All Alpha code is PIC.
7543        lt_prog_compiler_static='-non_shared'
7544        ;;
7545      *)
7546        case `$CC -V 2>&1 | sed 5q` in
7547	*Sun\ C*)
7548	  # Sun C 5.9
7549	  lt_prog_compiler_pic='-KPIC'
7550	  lt_prog_compiler_static='-Bstatic'
7551	  lt_prog_compiler_wl='-Wl,'
7552	  ;;
7553	*Sun\ F*)
7554	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7555	  lt_prog_compiler_pic='-KPIC'
7556	  lt_prog_compiler_static='-Bstatic'
7557	  lt_prog_compiler_wl=''
7558	  ;;
7559	esac
7560	;;
7561      esac
7562      ;;
7563
7564    osf3* | osf4* | osf5*)
7565      lt_prog_compiler_wl='-Wl,'
7566      # All OSF/1 code is PIC.
7567      lt_prog_compiler_static='-non_shared'
7568      ;;
7569
7570    rdos*)
7571      lt_prog_compiler_static='-non_shared'
7572      ;;
7573
7574    solaris*)
7575      lt_prog_compiler_pic='-KPIC'
7576      lt_prog_compiler_static='-Bstatic'
7577      case $cc_basename in
7578      f77* | f90* | f95*)
7579	lt_prog_compiler_wl='-Qoption ld ';;
7580      *)
7581	lt_prog_compiler_wl='-Wl,';;
7582      esac
7583      ;;
7584
7585    sunos4*)
7586      lt_prog_compiler_wl='-Qoption ld '
7587      lt_prog_compiler_pic='-PIC'
7588      lt_prog_compiler_static='-Bstatic'
7589      ;;
7590
7591    sysv4 | sysv4.2uw2* | sysv4.3*)
7592      lt_prog_compiler_wl='-Wl,'
7593      lt_prog_compiler_pic='-KPIC'
7594      lt_prog_compiler_static='-Bstatic'
7595      ;;
7596
7597    sysv4*MP*)
7598      if test -d /usr/nec ;then
7599	lt_prog_compiler_pic='-Kconform_pic'
7600	lt_prog_compiler_static='-Bstatic'
7601      fi
7602      ;;
7603
7604    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7605      lt_prog_compiler_wl='-Wl,'
7606      lt_prog_compiler_pic='-KPIC'
7607      lt_prog_compiler_static='-Bstatic'
7608      ;;
7609
7610    unicos*)
7611      lt_prog_compiler_wl='-Wl,'
7612      lt_prog_compiler_can_build_shared=no
7613      ;;
7614
7615    uts4*)
7616      lt_prog_compiler_pic='-pic'
7617      lt_prog_compiler_static='-Bstatic'
7618      ;;
7619
7620    *)
7621      lt_prog_compiler_can_build_shared=no
7622      ;;
7623    esac
7624  fi
7625
7626{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7627echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7628
7629#
7630# Check to make sure the PIC flag actually works.
7631#
7632if test -n "$lt_prog_compiler_pic"; then
7633
7634{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7635echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7636if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7637  echo $ECHO_N "(cached) $ECHO_C" >&6
7638else
7639  lt_cv_prog_compiler_pic_works=no
7640  ac_outfile=conftest.$ac_objext
7641   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7642   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7643   # Insert the option either (1) after the last *FLAGS variable, or
7644   # (2) before a word containing "conftest.", or (3) at the end.
7645   # Note that $ac_compile itself does not contain backslashes and begins
7646   # with a dollar sign (not a hyphen), so the echo should work correctly.
7647   # The option is referenced via a variable to avoid confusing sed.
7648   lt_compile=`echo "$ac_compile" | $SED \
7649   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7650   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7651   -e 's:$: $lt_compiler_flag:'`
7652   (eval echo "\"\$as_me:7652: $lt_compile\"" >&5)
7653   (eval "$lt_compile" 2>conftest.err)
7654   ac_status=$?
7655   cat conftest.err >&5
7656   echo "$as_me:7656: \$? = $ac_status" >&5
7657   if (exit $ac_status) && test -s "$ac_outfile"; then
7658     # The compiler can only warn and ignore the option if not recognized
7659     # So say no if there are warnings other than the usual output.
7660     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7661     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7662     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7663       lt_cv_prog_compiler_pic_works=yes
7664     fi
7665   fi
7666   $rm conftest*
7667
7668fi
7669{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7670echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7671
7672if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7673    case $lt_prog_compiler_pic in
7674     "" | " "*) ;;
7675     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7676     esac
7677else
7678    lt_prog_compiler_pic=
7679     lt_prog_compiler_can_build_shared=no
7680fi
7681
7682fi
7683case $host_os in
7684  # For platforms which do not support PIC, -DPIC is meaningless:
7685  *djgpp*)
7686    lt_prog_compiler_pic=
7687    ;;
7688  *)
7689    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7690    ;;
7691esac
7692
7693#
7694# Check to make sure the static flag actually works.
7695#
7696wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7697{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7698echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7699if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7700  echo $ECHO_N "(cached) $ECHO_C" >&6
7701else
7702  lt_cv_prog_compiler_static_works=no
7703   save_LDFLAGS="$LDFLAGS"
7704   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7705   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7706   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7707     # The linker can only warn and ignore the option if not recognized
7708     # So say no if there are warnings
7709     if test -s conftest.err; then
7710       # Append any errors to the config.log.
7711       cat conftest.err 1>&5
7712       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7713       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7714       if diff conftest.exp conftest.er2 >/dev/null; then
7715         lt_cv_prog_compiler_static_works=yes
7716       fi
7717     else
7718       lt_cv_prog_compiler_static_works=yes
7719     fi
7720   fi
7721   $rm -r conftest*
7722   LDFLAGS="$save_LDFLAGS"
7723
7724fi
7725{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7726echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7727
7728if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7729    :
7730else
7731    lt_prog_compiler_static=
7732fi
7733
7734
7735{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7736echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7737if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7738  echo $ECHO_N "(cached) $ECHO_C" >&6
7739else
7740  lt_cv_prog_compiler_c_o=no
7741   $rm -r conftest 2>/dev/null
7742   mkdir conftest
7743   cd conftest
7744   mkdir out
7745   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7746
7747   lt_compiler_flag="-o out/conftest2.$ac_objext"
7748   # Insert the option either (1) after the last *FLAGS variable, or
7749   # (2) before a word containing "conftest.", or (3) at the end.
7750   # Note that $ac_compile itself does not contain backslashes and begins
7751   # with a dollar sign (not a hyphen), so the echo should work correctly.
7752   lt_compile=`echo "$ac_compile" | $SED \
7753   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7754   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7755   -e 's:$: $lt_compiler_flag:'`
7756   (eval echo "\"\$as_me:7756: $lt_compile\"" >&5)
7757   (eval "$lt_compile" 2>out/conftest.err)
7758   ac_status=$?
7759   cat out/conftest.err >&5
7760   echo "$as_me:7760: \$? = $ac_status" >&5
7761   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7762   then
7763     # The compiler can only warn and ignore the option if not recognized
7764     # So say no if there are warnings
7765     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7766     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7767     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7768       lt_cv_prog_compiler_c_o=yes
7769     fi
7770   fi
7771   chmod u+w . 2>&5
7772   $rm conftest*
7773   # SGI C++ compiler will create directory out/ii_files/ for
7774   # template instantiation
7775   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7776   $rm out/* && rmdir out
7777   cd ..
7778   rmdir conftest
7779   $rm conftest*
7780
7781fi
7782{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7783echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7784
7785
7786hard_links="nottested"
7787if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7788  # do not overwrite the value of need_locks provided by the user
7789  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7790echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7791  hard_links=yes
7792  $rm conftest*
7793  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7794  touch conftest.a
7795  ln conftest.a conftest.b 2>&5 || hard_links=no
7796  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7797  { echo "$as_me:$LINENO: result: $hard_links" >&5
7798echo "${ECHO_T}$hard_links" >&6; }
7799  if test "$hard_links" = no; then
7800    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7801echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7802    need_locks=warn
7803  fi
7804else
7805  need_locks=no
7806fi
7807
7808{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7809echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7810
7811  runpath_var=
7812  allow_undefined_flag=
7813  enable_shared_with_static_runtimes=no
7814  archive_cmds=
7815  archive_expsym_cmds=
7816  old_archive_From_new_cmds=
7817  old_archive_from_expsyms_cmds=
7818  export_dynamic_flag_spec=
7819  whole_archive_flag_spec=
7820  thread_safe_flag_spec=
7821  hardcode_libdir_flag_spec=
7822  hardcode_libdir_flag_spec_ld=
7823  hardcode_libdir_separator=
7824  hardcode_direct=no
7825  hardcode_minus_L=no
7826  hardcode_shlibpath_var=unsupported
7827  link_all_deplibs=unknown
7828  hardcode_automatic=no
7829  module_cmds=
7830  module_expsym_cmds=
7831  always_export_symbols=no
7832  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7833  # include_expsyms should be a list of space-separated symbols to be *always*
7834  # included in the symbol list
7835  include_expsyms=
7836  # exclude_expsyms can be an extended regexp of symbols to exclude
7837  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7838  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7839  # as well as any symbol that contains `d'.
7840  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7841  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7842  # platforms (ab)use it in PIC code, but their linkers get confused if
7843  # the symbol is explicitly referenced.  Since portable code cannot
7844  # rely on this symbol name, it's probably fine to never include it in
7845  # preloaded symbol tables.
7846  # Exclude shared library initialization/finalization symbols.
7847  extract_expsyms_cmds=
7848  # Just being paranoid about ensuring that cc_basename is set.
7849  for cc_temp in $compiler""; do
7850  case $cc_temp in
7851    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7852    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7853    \-*) ;;
7854    *) break;;
7855  esac
7856done
7857cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7858
7859  case $host_os in
7860  cygwin* | mingw* | pw32*)
7861    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7862    # When not using gcc, we currently assume that we are using
7863    # Microsoft Visual C++.
7864    if test "$GCC" != yes; then
7865      with_gnu_ld=no
7866    fi
7867    ;;
7868  interix*)
7869    # we just hope/assume this is gcc and not c89 (= MSVC++)
7870    with_gnu_ld=yes
7871    ;;
7872  openbsd*)
7873    with_gnu_ld=no
7874    ;;
7875  esac
7876
7877  ld_shlibs=yes
7878  if test "$with_gnu_ld" = yes; then
7879    # If archive_cmds runs LD, not CC, wlarc should be empty
7880    wlarc='${wl}'
7881
7882    # Set some defaults for GNU ld with shared library support. These
7883    # are reset later if shared libraries are not supported. Putting them
7884    # here allows them to be overridden if necessary.
7885    runpath_var=LD_RUN_PATH
7886    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7887    export_dynamic_flag_spec='${wl}--export-dynamic'
7888    # ancient GNU ld didn't support --whole-archive et. al.
7889    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7890	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7891      else
7892  	whole_archive_flag_spec=
7893    fi
7894    supports_anon_versioning=no
7895    case `$LD -v 2>/dev/null` in
7896      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7897      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7898      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7899      *\ 2.11.*) ;; # other 2.11 versions
7900      *) supports_anon_versioning=yes ;;
7901    esac
7902
7903    # See if GNU ld supports shared libraries.
7904    case $host_os in
7905    aix[3-9]*)
7906      # On AIX/PPC, the GNU linker is very broken
7907      if test "$host_cpu" != ia64; then
7908	ld_shlibs=no
7909	cat <<EOF 1>&2
7910
7911*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7912*** to be unable to reliably create shared libraries on AIX.
7913*** Therefore, libtool is disabling shared libraries support.  If you
7914*** really care for shared libraries, you may want to modify your PATH
7915*** so that a non-GNU linker is found, and then restart.
7916
7917EOF
7918      fi
7919      ;;
7920
7921    amigaos*)
7922      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)'
7923      hardcode_libdir_flag_spec='-L$libdir'
7924      hardcode_minus_L=yes
7925
7926      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7927      # that the semantics of dynamic libraries on AmigaOS, at least up
7928      # to version 4, is to share data among multiple programs linked
7929      # with the same dynamic library.  Since this doesn't match the
7930      # behavior of shared libraries on other platforms, we can't use
7931      # them.
7932      ld_shlibs=no
7933      ;;
7934
7935    beos*)
7936      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7937	allow_undefined_flag=unsupported
7938	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7939	# support --undefined.  This deserves some investigation.  FIXME
7940	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7941      else
7942	ld_shlibs=no
7943      fi
7944      ;;
7945
7946    cygwin* | mingw* | pw32*)
7947      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7948      # as there is no search path for DLLs.
7949      hardcode_libdir_flag_spec='-L$libdir'
7950      allow_undefined_flag=unsupported
7951      always_export_symbols=no
7952      enable_shared_with_static_runtimes=yes
7953      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7954
7955      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7956        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7957	# If the export-symbols file already is a .def file (1st line
7958	# is EXPORTS), use it as is; otherwise, prepend...
7959	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7960	  cp $export_symbols $output_objdir/$soname.def;
7961	else
7962	  echo EXPORTS > $output_objdir/$soname.def;
7963	  cat $export_symbols >> $output_objdir/$soname.def;
7964	fi~
7965	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7966      else
7967	ld_shlibs=no
7968      fi
7969      ;;
7970
7971    interix[3-9]*)
7972      hardcode_direct=no
7973      hardcode_shlibpath_var=no
7974      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7975      export_dynamic_flag_spec='${wl}-E'
7976      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7977      # Instead, shared libraries are loaded at an image base (0x10000000 by
7978      # default) and relocated if they conflict, which is a slow very memory
7979      # consuming and fragmenting process.  To avoid this, we pick a random,
7980      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7981      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7982      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7983      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'
7984      ;;
7985
7986    gnu* | linux* | k*bsd*-gnu)
7987      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7988	tmp_addflag=
7989	case $cc_basename,$host_cpu in
7990	pgcc*)				# Portland Group C compiler
7991	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7992	  tmp_addflag=' $pic_flag'
7993	  ;;
7994	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7995	  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'
7996	  tmp_addflag=' $pic_flag -Mnomain' ;;
7997	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7998	  tmp_addflag=' -i_dynamic' ;;
7999	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8000	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8001	ifc* | ifort*)			# Intel Fortran compiler
8002	  tmp_addflag=' -nofor_main' ;;
8003	esac
8004	case `$CC -V 2>&1 | sed 5q` in
8005	*Sun\ C*)			# Sun C 5.9
8006	  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'
8007	  tmp_sharedflag='-G' ;;
8008	*Sun\ F*)			# Sun Fortran 8.3
8009	  tmp_sharedflag='-G' ;;
8010	*)
8011	  tmp_sharedflag='-shared' ;;
8012	esac
8013	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8014
8015	if test $supports_anon_versioning = yes; then
8016	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8017  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8018  $echo "local: *; };" >> $output_objdir/$libname.ver~
8019	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8020	fi
8021	link_all_deplibs=no
8022      else
8023	ld_shlibs=no
8024      fi
8025      ;;
8026
8027    netbsd* | netbsdelf*-gnu)
8028      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8029	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8030	wlarc=
8031      else
8032	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8033	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8034      fi
8035      ;;
8036
8037    solaris*)
8038      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8039	ld_shlibs=no
8040	cat <<EOF 1>&2
8041
8042*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8043*** create shared libraries on Solaris systems.  Therefore, libtool
8044*** is disabling shared libraries support.  We urge you to upgrade GNU
8045*** binutils to release 2.9.1 or newer.  Another option is to modify
8046*** your PATH or compiler configuration so that the native linker is
8047*** used, and then restart.
8048
8049EOF
8050      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8051	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8052	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8053      else
8054	ld_shlibs=no
8055      fi
8056      ;;
8057
8058    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8059      case `$LD -v 2>&1` in
8060        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8061	ld_shlibs=no
8062	cat <<_LT_EOF 1>&2
8063
8064*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8065*** reliably create shared libraries on SCO systems.  Therefore, libtool
8066*** is disabling shared libraries support.  We urge you to upgrade GNU
8067*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8068*** your PATH or compiler configuration so that the native linker is
8069*** used, and then restart.
8070
8071_LT_EOF
8072	;;
8073	*)
8074	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8075	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8076	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8077	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8078	  else
8079	    ld_shlibs=no
8080	  fi
8081	;;
8082      esac
8083      ;;
8084
8085    sunos4*)
8086      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8087      wlarc=
8088      hardcode_direct=yes
8089      hardcode_shlibpath_var=no
8090      ;;
8091
8092    *)
8093      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8094	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8095	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8096      else
8097	ld_shlibs=no
8098      fi
8099      ;;
8100    esac
8101
8102    if test "$ld_shlibs" = no; then
8103      runpath_var=
8104      hardcode_libdir_flag_spec=
8105      export_dynamic_flag_spec=
8106      whole_archive_flag_spec=
8107    fi
8108  else
8109    # PORTME fill in a description of your system's linker (not GNU ld)
8110    case $host_os in
8111    aix3*)
8112      allow_undefined_flag=unsupported
8113      always_export_symbols=yes
8114      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'
8115      # Note: this linker hardcodes the directories in LIBPATH if there
8116      # are no directories specified by -L.
8117      hardcode_minus_L=yes
8118      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8119	# Neither direct hardcoding nor static linking is supported with a
8120	# broken collect2.
8121	hardcode_direct=unsupported
8122      fi
8123      ;;
8124
8125    aix[4-9]*)
8126      if test "$host_cpu" = ia64; then
8127	# On IA64, the linker does run time linking by default, so we don't
8128	# have to do anything special.
8129	aix_use_runtimelinking=no
8130	exp_sym_flag='-Bexport'
8131	no_entry_flag=""
8132      else
8133	# If we're using GNU nm, then we don't want the "-C" option.
8134	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8135	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8136	  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'
8137	else
8138	  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'
8139	fi
8140	aix_use_runtimelinking=no
8141
8142	# Test if we are trying to use run time linking or normal
8143	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8144	# need to do runtime linking.
8145	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8146	  for ld_flag in $LDFLAGS; do
8147  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8148  	    aix_use_runtimelinking=yes
8149  	    break
8150  	  fi
8151	  done
8152	  ;;
8153	esac
8154
8155	exp_sym_flag='-bexport'
8156	no_entry_flag='-bnoentry'
8157      fi
8158
8159      # When large executables or shared objects are built, AIX ld can
8160      # have problems creating the table of contents.  If linking a library
8161      # or program results in "error TOC overflow" add -mminimal-toc to
8162      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8163      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8164
8165      archive_cmds=''
8166      hardcode_direct=yes
8167      hardcode_libdir_separator=':'
8168      link_all_deplibs=yes
8169
8170      if test "$GCC" = yes; then
8171	case $host_os in aix4.[012]|aix4.[012].*)
8172	# We only want to do this on AIX 4.2 and lower, the check
8173	# below for broken collect2 doesn't work under 4.3+
8174	  collect2name=`${CC} -print-prog-name=collect2`
8175	  if test -f "$collect2name" && \
8176  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8177	  then
8178  	  # We have reworked collect2
8179  	  :
8180	  else
8181  	  # We have old collect2
8182  	  hardcode_direct=unsupported
8183  	  # It fails to find uninstalled libraries when the uninstalled
8184  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8185  	  # to unsupported forces relinking
8186  	  hardcode_minus_L=yes
8187  	  hardcode_libdir_flag_spec='-L$libdir'
8188  	  hardcode_libdir_separator=
8189	  fi
8190	  ;;
8191	esac
8192	shared_flag='-shared'
8193	if test "$aix_use_runtimelinking" = yes; then
8194	  shared_flag="$shared_flag "'${wl}-G'
8195	fi
8196      else
8197	# not using gcc
8198	if test "$host_cpu" = ia64; then
8199  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8200  	# chokes on -Wl,-G. The following line is correct:
8201	  shared_flag='-G'
8202	else
8203	  if test "$aix_use_runtimelinking" = yes; then
8204	    shared_flag='${wl}-G'
8205	  else
8206	    shared_flag='${wl}-bM:SRE'
8207	  fi
8208	fi
8209      fi
8210
8211      # It seems that -bexpall does not export symbols beginning with
8212      # underscore (_), so it is better to generate a list of symbols to export.
8213      always_export_symbols=yes
8214      if test "$aix_use_runtimelinking" = yes; then
8215	# Warning - without using the other runtime loading flags (-brtl),
8216	# -berok will link without error, but may produce a broken library.
8217	allow_undefined_flag='-berok'
8218       # Determine the default libpath from the value encoded in an empty executable.
8219       cat >conftest.$ac_ext <<_ACEOF
8220/* confdefs.h.  */
8221_ACEOF
8222cat confdefs.h >>conftest.$ac_ext
8223cat >>conftest.$ac_ext <<_ACEOF
8224/* end confdefs.h.  */
8225
8226int
8227main ()
8228{
8229
8230  ;
8231  return 0;
8232}
8233_ACEOF
8234rm -f conftest.$ac_objext conftest$ac_exeext
8235if { (ac_try="$ac_link"
8236case "(($ac_try" in
8237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238  *) ac_try_echo=$ac_try;;
8239esac
8240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8241  (eval "$ac_link") 2>conftest.er1
8242  ac_status=$?
8243  grep -v '^ *+' conftest.er1 >conftest.err
8244  rm -f conftest.er1
8245  cat conftest.err >&5
8246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247  (exit $ac_status); } && {
8248	 test -z "$ac_c_werror_flag" ||
8249	 test ! -s conftest.err
8250       } && test -s conftest$ac_exeext &&
8251       $as_test_x conftest$ac_exeext; then
8252
8253lt_aix_libpath_sed='
8254    /Import File Strings/,/^$/ {
8255	/^0/ {
8256	    s/^0  *\(.*\)$/\1/
8257	    p
8258	}
8259    }'
8260aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8261# Check for a 64-bit object if we didn't find anything.
8262if test -z "$aix_libpath"; then
8263  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8264fi
8265else
8266  echo "$as_me: failed program was:" >&5
8267sed 's/^/| /' conftest.$ac_ext >&5
8268
8269
8270fi
8271
8272rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8273      conftest$ac_exeext conftest.$ac_ext
8274if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8275
8276       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8277	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"
8278       else
8279	if test "$host_cpu" = ia64; then
8280	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8281	  allow_undefined_flag="-z nodefs"
8282	  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"
8283	else
8284	 # Determine the default libpath from the value encoded in an empty executable.
8285	 cat >conftest.$ac_ext <<_ACEOF
8286/* confdefs.h.  */
8287_ACEOF
8288cat confdefs.h >>conftest.$ac_ext
8289cat >>conftest.$ac_ext <<_ACEOF
8290/* end confdefs.h.  */
8291
8292int
8293main ()
8294{
8295
8296  ;
8297  return 0;
8298}
8299_ACEOF
8300rm -f conftest.$ac_objext conftest$ac_exeext
8301if { (ac_try="$ac_link"
8302case "(($ac_try" in
8303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304  *) ac_try_echo=$ac_try;;
8305esac
8306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307  (eval "$ac_link") 2>conftest.er1
8308  ac_status=$?
8309  grep -v '^ *+' conftest.er1 >conftest.err
8310  rm -f conftest.er1
8311  cat conftest.err >&5
8312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313  (exit $ac_status); } && {
8314	 test -z "$ac_c_werror_flag" ||
8315	 test ! -s conftest.err
8316       } && test -s conftest$ac_exeext &&
8317       $as_test_x conftest$ac_exeext; then
8318
8319lt_aix_libpath_sed='
8320    /Import File Strings/,/^$/ {
8321	/^0/ {
8322	    s/^0  *\(.*\)$/\1/
8323	    p
8324	}
8325    }'
8326aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8327# Check for a 64-bit object if we didn't find anything.
8328if test -z "$aix_libpath"; then
8329  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8330fi
8331else
8332  echo "$as_me: failed program was:" >&5
8333sed 's/^/| /' conftest.$ac_ext >&5
8334
8335
8336fi
8337
8338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8339      conftest$ac_exeext conftest.$ac_ext
8340if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8341
8342	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8343	  # Warning - without using the other run time loading flags,
8344	  # -berok will link without error, but may produce a broken library.
8345	  no_undefined_flag=' ${wl}-bernotok'
8346	  allow_undefined_flag=' ${wl}-berok'
8347	  # Exported symbols can be pulled into shared objects from archives
8348	  whole_archive_flag_spec='$convenience'
8349	  archive_cmds_need_lc=yes
8350	  # This is similar to how AIX traditionally builds its shared libraries.
8351	  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'
8352	fi
8353      fi
8354      ;;
8355
8356    amigaos*)
8357      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)'
8358      hardcode_libdir_flag_spec='-L$libdir'
8359      hardcode_minus_L=yes
8360      # see comment about different semantics on the GNU ld section
8361      ld_shlibs=no
8362      ;;
8363
8364    bsdi[45]*)
8365      export_dynamic_flag_spec=-rdynamic
8366      ;;
8367
8368    cygwin* | mingw* | pw32*)
8369      # When not using gcc, we currently assume that we are using
8370      # Microsoft Visual C++.
8371      # hardcode_libdir_flag_spec is actually meaningless, as there is
8372      # no search path for DLLs.
8373      hardcode_libdir_flag_spec=' '
8374      allow_undefined_flag=unsupported
8375      # Tell ltmain to make .lib files, not .a files.
8376      libext=lib
8377      # Tell ltmain to make .dll files, not .so files.
8378      shrext_cmds=".dll"
8379      # FIXME: Setting linknames here is a bad hack.
8380      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8381      # The linker will automatically build a .lib file if we build a DLL.
8382      old_archive_From_new_cmds='true'
8383      # FIXME: Should let the user specify the lib program.
8384      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8385      fix_srcfile_path='`cygpath -w "$srcfile"`'
8386      enable_shared_with_static_runtimes=yes
8387      ;;
8388
8389    darwin* | rhapsody*)
8390      case $host_os in
8391        rhapsody* | darwin1.[012])
8392         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8393         ;;
8394       *) # Darwin 1.3 on
8395         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8396           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8397         else
8398           case ${MACOSX_DEPLOYMENT_TARGET} in
8399             10.[012])
8400               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8401               ;;
8402             10.*)
8403               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8404               ;;
8405           esac
8406         fi
8407         ;;
8408      esac
8409      archive_cmds_need_lc=no
8410      hardcode_direct=no
8411      hardcode_automatic=yes
8412      hardcode_shlibpath_var=unsupported
8413      whole_archive_flag_spec=''
8414      link_all_deplibs=yes
8415    if test "$GCC" = yes ; then
8416    	output_verbose_link_cmd='echo'
8417        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8418        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8419        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}"
8420        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}"
8421    else
8422      case $cc_basename in
8423        xlc*)
8424         output_verbose_link_cmd='echo'
8425         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8426         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8427          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8428         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}'
8429          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}'
8430          ;;
8431       *)
8432         ld_shlibs=no
8433          ;;
8434      esac
8435    fi
8436      ;;
8437
8438    dgux*)
8439      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8440      hardcode_libdir_flag_spec='-L$libdir'
8441      hardcode_shlibpath_var=no
8442      ;;
8443
8444    freebsd1*)
8445      ld_shlibs=no
8446      ;;
8447
8448    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8449    # support.  Future versions do this automatically, but an explicit c++rt0.o
8450    # does not break anything, and helps significantly (at the cost of a little
8451    # extra space).
8452    freebsd2.2*)
8453      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8454      hardcode_libdir_flag_spec='-R$libdir'
8455      hardcode_direct=yes
8456      hardcode_shlibpath_var=no
8457      ;;
8458
8459    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8460    freebsd2*)
8461      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8462      hardcode_direct=yes
8463      hardcode_minus_L=yes
8464      hardcode_shlibpath_var=no
8465      ;;
8466
8467    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8468    freebsd* | dragonfly*)
8469      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8470      hardcode_libdir_flag_spec='-R$libdir'
8471      hardcode_direct=yes
8472      hardcode_shlibpath_var=no
8473      ;;
8474
8475    hpux9*)
8476      if test "$GCC" = yes; then
8477	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'
8478      else
8479	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'
8480      fi
8481      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8482      hardcode_libdir_separator=:
8483      hardcode_direct=yes
8484
8485      # hardcode_minus_L: Not really in the search PATH,
8486      # but as the default location of the library.
8487      hardcode_minus_L=yes
8488      export_dynamic_flag_spec='${wl}-E'
8489      ;;
8490
8491    hpux10*)
8492      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8493	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8494      else
8495	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8496      fi
8497      if test "$with_gnu_ld" = no; then
8498	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8499	hardcode_libdir_separator=:
8500
8501	hardcode_direct=yes
8502	export_dynamic_flag_spec='${wl}-E'
8503
8504	# hardcode_minus_L: Not really in the search PATH,
8505	# but as the default location of the library.
8506	hardcode_minus_L=yes
8507      fi
8508      ;;
8509
8510    hpux11*)
8511      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8512	case $host_cpu in
8513	hppa*64*)
8514	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8515	  ;;
8516	ia64*)
8517	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8518	  ;;
8519	*)
8520	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8521	  ;;
8522	esac
8523      else
8524	case $host_cpu in
8525	hppa*64*)
8526	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8527	  ;;
8528	ia64*)
8529	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8530	  ;;
8531	*)
8532	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8533	  ;;
8534	esac
8535      fi
8536      if test "$with_gnu_ld" = no; then
8537	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8538	hardcode_libdir_separator=:
8539
8540	case $host_cpu in
8541	hppa*64*|ia64*)
8542	  hardcode_libdir_flag_spec_ld='+b $libdir'
8543	  hardcode_direct=no
8544	  hardcode_shlibpath_var=no
8545	  ;;
8546	*)
8547	  hardcode_direct=yes
8548	  export_dynamic_flag_spec='${wl}-E'
8549
8550	  # hardcode_minus_L: Not really in the search PATH,
8551	  # but as the default location of the library.
8552	  hardcode_minus_L=yes
8553	  ;;
8554	esac
8555      fi
8556      ;;
8557
8558    irix5* | irix6* | nonstopux*)
8559      if test "$GCC" = yes; then
8560	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'
8561      else
8562	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'
8563	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8564      fi
8565      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8566      hardcode_libdir_separator=:
8567      link_all_deplibs=yes
8568      ;;
8569
8570    netbsd* | netbsdelf*-gnu)
8571      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8572	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8573      else
8574	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8575      fi
8576      hardcode_libdir_flag_spec='-R$libdir'
8577      hardcode_direct=yes
8578      hardcode_shlibpath_var=no
8579      ;;
8580
8581    newsos6)
8582      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8583      hardcode_direct=yes
8584      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8585      hardcode_libdir_separator=:
8586      hardcode_shlibpath_var=no
8587      ;;
8588
8589    openbsd*)
8590      if test -f /usr/libexec/ld.so; then
8591	hardcode_direct=yes
8592	hardcode_shlibpath_var=no
8593	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8594	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8595	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8596	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8597	  export_dynamic_flag_spec='${wl}-E'
8598	else
8599	  case $host_os in
8600	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8601	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8602	     hardcode_libdir_flag_spec='-R$libdir'
8603	     ;;
8604	   *)
8605	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8606	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8607	     ;;
8608	  esac
8609        fi
8610      else
8611	ld_shlibs=no
8612      fi
8613      ;;
8614
8615    os2*)
8616      hardcode_libdir_flag_spec='-L$libdir'
8617      hardcode_minus_L=yes
8618      allow_undefined_flag=unsupported
8619      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'
8620      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8621      ;;
8622
8623    osf3*)
8624      if test "$GCC" = yes; then
8625	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8626	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'
8627      else
8628	allow_undefined_flag=' -expect_unresolved \*'
8629	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'
8630      fi
8631      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8632      hardcode_libdir_separator=:
8633      ;;
8634
8635    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8636      if test "$GCC" = yes; then
8637	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8638	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'
8639	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8640      else
8641	allow_undefined_flag=' -expect_unresolved \*'
8642	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'
8643	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8644	$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'
8645
8646	# Both c and cxx compiler support -rpath directly
8647	hardcode_libdir_flag_spec='-rpath $libdir'
8648      fi
8649      hardcode_libdir_separator=:
8650      ;;
8651
8652    solaris*)
8653      no_undefined_flag=' -z text'
8654      if test "$GCC" = yes; then
8655	wlarc='${wl}'
8656	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8657	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8658	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8659      else
8660	wlarc=''
8661	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8662	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8663  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8664      fi
8665      hardcode_libdir_flag_spec='-R$libdir'
8666      hardcode_shlibpath_var=no
8667      case $host_os in
8668      solaris2.[0-5] | solaris2.[0-5].*) ;;
8669      *)
8670	# The compiler driver will combine and reorder linker options,
8671	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8672	# but is careful enough not to reorder.
8673 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8674	if test "$GCC" = yes; then
8675	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8676	else
8677	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8678	fi
8679	;;
8680      esac
8681      link_all_deplibs=yes
8682      ;;
8683
8684    sunos4*)
8685      if test "x$host_vendor" = xsequent; then
8686	# Use $CC to link under sequent, because it throws in some extra .o
8687	# files that make .init and .fini sections work.
8688	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8689      else
8690	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8691      fi
8692      hardcode_libdir_flag_spec='-L$libdir'
8693      hardcode_direct=yes
8694      hardcode_minus_L=yes
8695      hardcode_shlibpath_var=no
8696      ;;
8697
8698    sysv4)
8699      case $host_vendor in
8700	sni)
8701	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8702	  hardcode_direct=yes # is this really true???
8703	;;
8704	siemens)
8705	  ## LD is ld it makes a PLAMLIB
8706	  ## CC just makes a GrossModule.
8707	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8708	  reload_cmds='$CC -r -o $output$reload_objs'
8709	  hardcode_direct=no
8710        ;;
8711	motorola)
8712	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8713	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8714	;;
8715      esac
8716      runpath_var='LD_RUN_PATH'
8717      hardcode_shlibpath_var=no
8718      ;;
8719
8720    sysv4.3*)
8721      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8722      hardcode_shlibpath_var=no
8723      export_dynamic_flag_spec='-Bexport'
8724      ;;
8725
8726    sysv4*MP*)
8727      if test -d /usr/nec; then
8728	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8729	hardcode_shlibpath_var=no
8730	runpath_var=LD_RUN_PATH
8731	hardcode_runpath_var=yes
8732	ld_shlibs=yes
8733      fi
8734      ;;
8735
8736    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8737      no_undefined_flag='${wl}-z,text'
8738      archive_cmds_need_lc=no
8739      hardcode_shlibpath_var=no
8740      runpath_var='LD_RUN_PATH'
8741
8742      if test "$GCC" = yes; then
8743	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8744	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8745      else
8746	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8747	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8748      fi
8749      ;;
8750
8751    sysv5* | sco3.2v5* | sco5v6*)
8752      # Note: We can NOT use -z defs as we might desire, because we do not
8753      # link with -lc, and that would cause any symbols used from libc to
8754      # always be unresolved, which means just about no library would
8755      # ever link correctly.  If we're not using GNU ld we use -z text
8756      # though, which does catch some bad symbols but isn't as heavy-handed
8757      # as -z defs.
8758      no_undefined_flag='${wl}-z,text'
8759      allow_undefined_flag='${wl}-z,nodefs'
8760      archive_cmds_need_lc=no
8761      hardcode_shlibpath_var=no
8762      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8763      hardcode_libdir_separator=':'
8764      link_all_deplibs=yes
8765      export_dynamic_flag_spec='${wl}-Bexport'
8766      runpath_var='LD_RUN_PATH'
8767
8768      if test "$GCC" = yes; then
8769	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8770	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8771      else
8772	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8773	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8774      fi
8775      ;;
8776
8777    uts4*)
8778      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8779      hardcode_libdir_flag_spec='-L$libdir'
8780      hardcode_shlibpath_var=no
8781      ;;
8782
8783    *)
8784      ld_shlibs=no
8785      ;;
8786    esac
8787  fi
8788
8789{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8790echo "${ECHO_T}$ld_shlibs" >&6; }
8791test "$ld_shlibs" = no && can_build_shared=no
8792
8793#
8794# Do we need to explicitly link libc?
8795#
8796case "x$archive_cmds_need_lc" in
8797x|xyes)
8798  # Assume -lc should be added
8799  archive_cmds_need_lc=yes
8800
8801  if test "$enable_shared" = yes && test "$GCC" = yes; then
8802    case $archive_cmds in
8803    *'~'*)
8804      # FIXME: we may have to deal with multi-command sequences.
8805      ;;
8806    '$CC '*)
8807      # Test whether the compiler implicitly links with -lc since on some
8808      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8809      # to ld, don't add -lc before -lgcc.
8810      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8811echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8812      $rm conftest*
8813      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8814
8815      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8816  (eval $ac_compile) 2>&5
8817  ac_status=$?
8818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819  (exit $ac_status); } 2>conftest.err; then
8820        soname=conftest
8821        lib=conftest
8822        libobjs=conftest.$ac_objext
8823        deplibs=
8824        wl=$lt_prog_compiler_wl
8825	pic_flag=$lt_prog_compiler_pic
8826        compiler_flags=-v
8827        linker_flags=-v
8828        verstring=
8829        output_objdir=.
8830        libname=conftest
8831        lt_save_allow_undefined_flag=$allow_undefined_flag
8832        allow_undefined_flag=
8833        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8834  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8835  ac_status=$?
8836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837  (exit $ac_status); }
8838        then
8839	  archive_cmds_need_lc=no
8840        else
8841	  archive_cmds_need_lc=yes
8842        fi
8843        allow_undefined_flag=$lt_save_allow_undefined_flag
8844      else
8845        cat conftest.err 1>&5
8846      fi
8847      $rm conftest*
8848      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8849echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8850      ;;
8851    esac
8852  fi
8853  ;;
8854esac
8855
8856{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8857echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8858library_names_spec=
8859libname_spec='lib$name'
8860soname_spec=
8861shrext_cmds=".so"
8862postinstall_cmds=
8863postuninstall_cmds=
8864finish_cmds=
8865finish_eval=
8866shlibpath_var=
8867shlibpath_overrides_runpath=unknown
8868version_type=none
8869dynamic_linker="$host_os ld.so"
8870sys_lib_dlsearch_path_spec="/lib /usr/lib"
8871
8872if test "$GCC" = yes; then
8873  case $host_os in
8874    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8875    *) lt_awk_arg="/^libraries:/" ;;
8876  esac
8877  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8878  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8879    # if the path contains ";" then we assume it to be the separator
8880    # otherwise default to the standard path separator (i.e. ":") - it is
8881    # assumed that no part of a normal pathname contains ";" but that should
8882    # okay in the real world where ";" in dirpaths is itself problematic.
8883    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8884  else
8885    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8886  fi
8887  # Ok, now we have the path, separated by spaces, we can step through it
8888  # and add multilib dir if necessary.
8889  lt_tmp_lt_search_path_spec=
8890  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8891  for lt_sys_path in $lt_search_path_spec; do
8892    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8893      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8894    else
8895      test -d "$lt_sys_path" && \
8896	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8897    fi
8898  done
8899  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8900BEGIN {RS=" "; FS="/|\n";} {
8901  lt_foo="";
8902  lt_count=0;
8903  for (lt_i = NF; lt_i > 0; lt_i--) {
8904    if ($lt_i != "" && $lt_i != ".") {
8905      if ($lt_i == "..") {
8906        lt_count++;
8907      } else {
8908        if (lt_count == 0) {
8909          lt_foo="/" $lt_i lt_foo;
8910        } else {
8911          lt_count--;
8912        }
8913      }
8914    }
8915  }
8916  if (lt_foo != "") { lt_freq[lt_foo]++; }
8917  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8918}'`
8919  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8920else
8921  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8922fi
8923need_lib_prefix=unknown
8924hardcode_into_libs=no
8925
8926# when you set need_version to no, make sure it does not cause -set_version
8927# flags to be left without arguments
8928need_version=unknown
8929
8930case $host_os in
8931aix3*)
8932  version_type=linux
8933  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8934  shlibpath_var=LIBPATH
8935
8936  # AIX 3 has no versioning support, so we append a major version to the name.
8937  soname_spec='${libname}${release}${shared_ext}$major'
8938  ;;
8939
8940aix[4-9]*)
8941  version_type=linux
8942  need_lib_prefix=no
8943  need_version=no
8944  hardcode_into_libs=yes
8945  if test "$host_cpu" = ia64; then
8946    # AIX 5 supports IA64
8947    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8948    shlibpath_var=LD_LIBRARY_PATH
8949  else
8950    # With GCC up to 2.95.x, collect2 would create an import file
8951    # for dependence libraries.  The import file would start with
8952    # the line `#! .'.  This would cause the generated library to
8953    # depend on `.', always an invalid library.  This was fixed in
8954    # development snapshots of GCC prior to 3.0.
8955    case $host_os in
8956      aix4 | aix4.[01] | aix4.[01].*)
8957      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8958	   echo ' yes '
8959	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8960	:
8961      else
8962	can_build_shared=no
8963      fi
8964      ;;
8965    esac
8966    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8967    # soname into executable. Probably we can add versioning support to
8968    # collect2, so additional links can be useful in future.
8969    if test "$aix_use_runtimelinking" = yes; then
8970      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8971      # instead of lib<name>.a to let people know that these are not
8972      # typical AIX shared libraries.
8973      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8974    else
8975      # We preserve .a as extension for shared libraries through AIX4.2
8976      # and later when we are not doing run time linking.
8977      library_names_spec='${libname}${release}.a $libname.a'
8978      soname_spec='${libname}${release}${shared_ext}$major'
8979    fi
8980    shlibpath_var=LIBPATH
8981  fi
8982  ;;
8983
8984amigaos*)
8985  library_names_spec='$libname.ixlibrary $libname.a'
8986  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8987  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'
8988  ;;
8989
8990beos*)
8991  library_names_spec='${libname}${shared_ext}'
8992  dynamic_linker="$host_os ld.so"
8993  shlibpath_var=LIBRARY_PATH
8994  ;;
8995
8996bsdi[45]*)
8997  version_type=linux
8998  need_version=no
8999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9000  soname_spec='${libname}${release}${shared_ext}$major'
9001  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9002  shlibpath_var=LD_LIBRARY_PATH
9003  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9004  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9005  # the default ld.so.conf also contains /usr/contrib/lib and
9006  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9007  # libtool to hard-code these into programs
9008  ;;
9009
9010cygwin* | mingw* | pw32*)
9011  version_type=windows
9012  shrext_cmds=".dll"
9013  need_version=no
9014  need_lib_prefix=no
9015
9016  case $GCC,$host_os in
9017  yes,cygwin* | yes,mingw* | yes,pw32*)
9018    library_names_spec='$libname.dll.a'
9019    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9020    postinstall_cmds='base_file=`basename \${file}`~
9021      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9022      dldir=$destdir/`dirname \$dlpath`~
9023      test -d \$dldir || mkdir -p \$dldir~
9024      $install_prog $dir/$dlname \$dldir/$dlname~
9025      chmod a+x \$dldir/$dlname'
9026    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9027      dlpath=$dir/\$dldll~
9028       $rm \$dlpath'
9029    shlibpath_overrides_runpath=yes
9030
9031    case $host_os in
9032    cygwin*)
9033      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9034      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9035      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9036      ;;
9037    mingw*)
9038      # MinGW DLLs use traditional 'lib' prefix
9039      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9040      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9041      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9042        # It is most probably a Windows format PATH printed by
9043        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9044        # path with ; separators, and with drive letters. We can handle the
9045        # drive letters (cygwin fileutils understands them), so leave them,
9046        # especially as we might pass files found there to a mingw objdump,
9047        # which wouldn't understand a cygwinified path. Ahh.
9048        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9049      else
9050        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9051      fi
9052      ;;
9053    pw32*)
9054      # pw32 DLLs use 'pw' prefix rather than 'lib'
9055      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9056      ;;
9057    esac
9058    ;;
9059
9060  *)
9061    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9062    ;;
9063  esac
9064  dynamic_linker='Win32 ld.exe'
9065  # FIXME: first we should search . and the directory the executable is in
9066  shlibpath_var=PATH
9067  ;;
9068
9069darwin* | rhapsody*)
9070  dynamic_linker="$host_os dyld"
9071  version_type=darwin
9072  need_lib_prefix=no
9073  need_version=no
9074  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9075  soname_spec='${libname}${release}${major}$shared_ext'
9076  shlibpath_overrides_runpath=yes
9077  shlibpath_var=DYLD_LIBRARY_PATH
9078  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9079
9080  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9081  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9082  ;;
9083
9084dgux*)
9085  version_type=linux
9086  need_lib_prefix=no
9087  need_version=no
9088  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9089  soname_spec='${libname}${release}${shared_ext}$major'
9090  shlibpath_var=LD_LIBRARY_PATH
9091  ;;
9092
9093freebsd1*)
9094  dynamic_linker=no
9095  ;;
9096
9097freebsd* | dragonfly*)
9098  # DragonFly does not have aout.  When/if they implement a new
9099  # versioning mechanism, adjust this.
9100  if test -x /usr/bin/objformat; then
9101    objformat=`/usr/bin/objformat`
9102  else
9103    case $host_os in
9104    freebsd[123]*) objformat=aout ;;
9105    *) objformat=elf ;;
9106    esac
9107  fi
9108  version_type=freebsd-$objformat
9109  case $version_type in
9110    freebsd-elf*)
9111      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9112      need_version=no
9113      need_lib_prefix=no
9114      ;;
9115    freebsd-*)
9116      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9117      need_version=yes
9118      ;;
9119  esac
9120  shlibpath_var=LD_LIBRARY_PATH
9121  case $host_os in
9122  freebsd2*)
9123    shlibpath_overrides_runpath=yes
9124    ;;
9125  freebsd3.[01]* | freebsdelf3.[01]*)
9126    shlibpath_overrides_runpath=yes
9127    hardcode_into_libs=yes
9128    ;;
9129  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9130  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9131    shlibpath_overrides_runpath=no
9132    hardcode_into_libs=yes
9133    ;;
9134  *) # from 4.6 on, and DragonFly
9135    shlibpath_overrides_runpath=yes
9136    hardcode_into_libs=yes
9137    ;;
9138  esac
9139  ;;
9140
9141gnu*)
9142  version_type=linux
9143  need_lib_prefix=no
9144  need_version=no
9145  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9146  soname_spec='${libname}${release}${shared_ext}$major'
9147  shlibpath_var=LD_LIBRARY_PATH
9148  hardcode_into_libs=yes
9149  ;;
9150
9151hpux9* | hpux10* | hpux11*)
9152  # Give a soname corresponding to the major version so that dld.sl refuses to
9153  # link against other versions.
9154  version_type=sunos
9155  need_lib_prefix=no
9156  need_version=no
9157  case $host_cpu in
9158  ia64*)
9159    shrext_cmds='.so'
9160    hardcode_into_libs=yes
9161    dynamic_linker="$host_os dld.so"
9162    shlibpath_var=LD_LIBRARY_PATH
9163    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9164    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9165    soname_spec='${libname}${release}${shared_ext}$major'
9166    if test "X$HPUX_IA64_MODE" = X32; then
9167      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9168    else
9169      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9170    fi
9171    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9172    ;;
9173   hppa*64*)
9174     shrext_cmds='.sl'
9175     hardcode_into_libs=yes
9176     dynamic_linker="$host_os dld.sl"
9177     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9178     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9179     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9180     soname_spec='${libname}${release}${shared_ext}$major'
9181     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9182     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9183     ;;
9184   *)
9185    shrext_cmds='.sl'
9186    dynamic_linker="$host_os dld.sl"
9187    shlibpath_var=SHLIB_PATH
9188    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9189    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9190    soname_spec='${libname}${release}${shared_ext}$major'
9191    ;;
9192  esac
9193  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9194  postinstall_cmds='chmod 555 $lib'
9195  ;;
9196
9197interix[3-9]*)
9198  version_type=linux
9199  need_lib_prefix=no
9200  need_version=no
9201  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9202  soname_spec='${libname}${release}${shared_ext}$major'
9203  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9204  shlibpath_var=LD_LIBRARY_PATH
9205  shlibpath_overrides_runpath=no
9206  hardcode_into_libs=yes
9207  ;;
9208
9209irix5* | irix6* | nonstopux*)
9210  case $host_os in
9211    nonstopux*) version_type=nonstopux ;;
9212    *)
9213	if test "$lt_cv_prog_gnu_ld" = yes; then
9214		version_type=linux
9215	else
9216		version_type=irix
9217	fi ;;
9218  esac
9219  need_lib_prefix=no
9220  need_version=no
9221  soname_spec='${libname}${release}${shared_ext}$major'
9222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9223  case $host_os in
9224  irix5* | nonstopux*)
9225    libsuff= shlibsuff=
9226    ;;
9227  *)
9228    case $LD in # libtool.m4 will add one of these switches to LD
9229    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9230      libsuff= shlibsuff= libmagic=32-bit;;
9231    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9232      libsuff=32 shlibsuff=N32 libmagic=N32;;
9233    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9234      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9235    *) libsuff= shlibsuff= libmagic=never-match;;
9236    esac
9237    ;;
9238  esac
9239  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9240  shlibpath_overrides_runpath=no
9241  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9242  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9243  hardcode_into_libs=yes
9244  ;;
9245
9246# No shared lib support for Linux oldld, aout, or coff.
9247linux*oldld* | linux*aout* | linux*coff*)
9248  dynamic_linker=no
9249  ;;
9250
9251# This must be Linux ELF.
9252linux* | k*bsd*-gnu)
9253  version_type=linux
9254  need_lib_prefix=no
9255  need_version=no
9256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9257  soname_spec='${libname}${release}${shared_ext}$major'
9258  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9259  shlibpath_var=LD_LIBRARY_PATH
9260  shlibpath_overrides_runpath=no
9261  # This implies no fast_install, which is unacceptable.
9262  # Some rework will be needed to allow for fast_install
9263  # before this can be enabled.
9264  hardcode_into_libs=yes
9265
9266  # Append ld.so.conf contents to the search path
9267  if test -f /etc/ld.so.conf; then
9268    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' ' '`
9269    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9270  fi
9271
9272  # We used to test for /lib/ld.so.1 and disable shared libraries on
9273  # powerpc, because MkLinux only supported shared libraries with the
9274  # GNU dynamic linker.  Since this was broken with cross compilers,
9275  # most powerpc-linux boxes support dynamic linking these days and
9276  # people can always --disable-shared, the test was removed, and we
9277  # assume the GNU/Linux dynamic linker is in use.
9278  dynamic_linker='GNU/Linux ld.so'
9279  ;;
9280
9281netbsdelf*-gnu)
9282  version_type=linux
9283  need_lib_prefix=no
9284  need_version=no
9285  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9286  soname_spec='${libname}${release}${shared_ext}$major'
9287  shlibpath_var=LD_LIBRARY_PATH
9288  shlibpath_overrides_runpath=no
9289  hardcode_into_libs=yes
9290  dynamic_linker='NetBSD ld.elf_so'
9291  ;;
9292
9293netbsd*)
9294  version_type=sunos
9295  need_lib_prefix=no
9296  need_version=no
9297  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9298    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9299    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9300    dynamic_linker='NetBSD (a.out) ld.so'
9301  else
9302    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9303    soname_spec='${libname}${release}${shared_ext}$major'
9304    dynamic_linker='NetBSD ld.elf_so'
9305  fi
9306  shlibpath_var=LD_LIBRARY_PATH
9307  shlibpath_overrides_runpath=yes
9308  hardcode_into_libs=yes
9309  ;;
9310
9311newsos6)
9312  version_type=linux
9313  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314  shlibpath_var=LD_LIBRARY_PATH
9315  shlibpath_overrides_runpath=yes
9316  ;;
9317
9318nto-qnx*)
9319  version_type=linux
9320  need_lib_prefix=no
9321  need_version=no
9322  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9323  soname_spec='${libname}${release}${shared_ext}$major'
9324  shlibpath_var=LD_LIBRARY_PATH
9325  shlibpath_overrides_runpath=yes
9326  ;;
9327
9328openbsd*)
9329  version_type=sunos
9330  sys_lib_dlsearch_path_spec="/usr/lib"
9331  need_lib_prefix=no
9332  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9333  case $host_os in
9334    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9335    *)                         need_version=no  ;;
9336  esac
9337  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9338  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9339  shlibpath_var=LD_LIBRARY_PATH
9340  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9341    case $host_os in
9342      openbsd2.[89] | openbsd2.[89].*)
9343	shlibpath_overrides_runpath=no
9344	;;
9345      *)
9346	shlibpath_overrides_runpath=yes
9347	;;
9348      esac
9349  else
9350    shlibpath_overrides_runpath=yes
9351  fi
9352  ;;
9353
9354os2*)
9355  libname_spec='$name'
9356  shrext_cmds=".dll"
9357  need_lib_prefix=no
9358  library_names_spec='$libname${shared_ext} $libname.a'
9359  dynamic_linker='OS/2 ld.exe'
9360  shlibpath_var=LIBPATH
9361  ;;
9362
9363osf3* | osf4* | osf5*)
9364  version_type=osf
9365  need_lib_prefix=no
9366  need_version=no
9367  soname_spec='${libname}${release}${shared_ext}$major'
9368  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369  shlibpath_var=LD_LIBRARY_PATH
9370  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9371  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9372  ;;
9373
9374rdos*)
9375  dynamic_linker=no
9376  ;;
9377
9378solaris*)
9379  version_type=linux
9380  need_lib_prefix=no
9381  need_version=no
9382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383  soname_spec='${libname}${release}${shared_ext}$major'
9384  shlibpath_var=LD_LIBRARY_PATH
9385  shlibpath_overrides_runpath=yes
9386  hardcode_into_libs=yes
9387  # ldd complains unless libraries are executable
9388  postinstall_cmds='chmod +x $lib'
9389  ;;
9390
9391sunos4*)
9392  version_type=sunos
9393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9394  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9395  shlibpath_var=LD_LIBRARY_PATH
9396  shlibpath_overrides_runpath=yes
9397  if test "$with_gnu_ld" = yes; then
9398    need_lib_prefix=no
9399  fi
9400  need_version=yes
9401  ;;
9402
9403sysv4 | sysv4.3*)
9404  version_type=linux
9405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9406  soname_spec='${libname}${release}${shared_ext}$major'
9407  shlibpath_var=LD_LIBRARY_PATH
9408  case $host_vendor in
9409    sni)
9410      shlibpath_overrides_runpath=no
9411      need_lib_prefix=no
9412      export_dynamic_flag_spec='${wl}-Blargedynsym'
9413      runpath_var=LD_RUN_PATH
9414      ;;
9415    siemens)
9416      need_lib_prefix=no
9417      ;;
9418    motorola)
9419      need_lib_prefix=no
9420      need_version=no
9421      shlibpath_overrides_runpath=no
9422      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9423      ;;
9424  esac
9425  ;;
9426
9427sysv4*MP*)
9428  if test -d /usr/nec ;then
9429    version_type=linux
9430    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9431    soname_spec='$libname${shared_ext}.$major'
9432    shlibpath_var=LD_LIBRARY_PATH
9433  fi
9434  ;;
9435
9436sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9437  version_type=freebsd-elf
9438  need_lib_prefix=no
9439  need_version=no
9440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9441  soname_spec='${libname}${release}${shared_ext}$major'
9442  shlibpath_var=LD_LIBRARY_PATH
9443  hardcode_into_libs=yes
9444  if test "$with_gnu_ld" = yes; then
9445    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9446    shlibpath_overrides_runpath=no
9447  else
9448    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9449    shlibpath_overrides_runpath=yes
9450    case $host_os in
9451      sco3.2v5*)
9452        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9453	;;
9454    esac
9455  fi
9456  sys_lib_dlsearch_path_spec='/usr/lib'
9457  ;;
9458
9459uts4*)
9460  version_type=linux
9461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9462  soname_spec='${libname}${release}${shared_ext}$major'
9463  shlibpath_var=LD_LIBRARY_PATH
9464  ;;
9465
9466*)
9467  dynamic_linker=no
9468  ;;
9469esac
9470{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9471echo "${ECHO_T}$dynamic_linker" >&6; }
9472test "$dynamic_linker" = no && can_build_shared=no
9473
9474if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9475  echo $ECHO_N "(cached) $ECHO_C" >&6
9476else
9477  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9478fi
9479
9480sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9481if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9482  echo $ECHO_N "(cached) $ECHO_C" >&6
9483else
9484  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9485fi
9486
9487sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9488
9489variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9490if test "$GCC" = yes; then
9491  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9492fi
9493
9494{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9495echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9496hardcode_action=
9497if test -n "$hardcode_libdir_flag_spec" || \
9498   test -n "$runpath_var" || \
9499   test "X$hardcode_automatic" = "Xyes" ; then
9500
9501  # We can hardcode non-existant directories.
9502  if test "$hardcode_direct" != no &&
9503     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9504     # have to relink, otherwise we might link with an installed library
9505     # when we should be linking with a yet-to-be-installed one
9506     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9507     test "$hardcode_minus_L" != no; then
9508    # Linking always hardcodes the temporary library directory.
9509    hardcode_action=relink
9510  else
9511    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9512    hardcode_action=immediate
9513  fi
9514else
9515  # We cannot hardcode anything, or else we can only hardcode existing
9516  # directories.
9517  hardcode_action=unsupported
9518fi
9519{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9520echo "${ECHO_T}$hardcode_action" >&6; }
9521
9522if test "$hardcode_action" = relink; then
9523  # Fast installation is not supported
9524  enable_fast_install=no
9525elif test "$shlibpath_overrides_runpath" = yes ||
9526     test "$enable_shared" = no; then
9527  # Fast installation is not necessary
9528  enable_fast_install=needless
9529fi
9530
9531striplib=
9532old_striplib=
9533{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9534echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9535if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9536  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9537  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9538  { echo "$as_me:$LINENO: result: yes" >&5
9539echo "${ECHO_T}yes" >&6; }
9540else
9541# FIXME - insert some real tests, host_os isn't really good enough
9542  case $host_os in
9543   darwin*)
9544       if test -n "$STRIP" ; then
9545         striplib="$STRIP -x"
9546         old_striplib="$STRIP -S"
9547         { echo "$as_me:$LINENO: result: yes" >&5
9548echo "${ECHO_T}yes" >&6; }
9549       else
9550  { echo "$as_me:$LINENO: result: no" >&5
9551echo "${ECHO_T}no" >&6; }
9552fi
9553       ;;
9554   *)
9555  { echo "$as_me:$LINENO: result: no" >&5
9556echo "${ECHO_T}no" >&6; }
9557    ;;
9558  esac
9559fi
9560
9561if test "x$enable_dlopen" != xyes; then
9562  enable_dlopen=unknown
9563  enable_dlopen_self=unknown
9564  enable_dlopen_self_static=unknown
9565else
9566  lt_cv_dlopen=no
9567  lt_cv_dlopen_libs=
9568
9569  case $host_os in
9570  beos*)
9571    lt_cv_dlopen="load_add_on"
9572    lt_cv_dlopen_libs=
9573    lt_cv_dlopen_self=yes
9574    ;;
9575
9576  mingw* | pw32*)
9577    lt_cv_dlopen="LoadLibrary"
9578    lt_cv_dlopen_libs=
9579   ;;
9580
9581  cygwin*)
9582    lt_cv_dlopen="dlopen"
9583    lt_cv_dlopen_libs=
9584   ;;
9585
9586  darwin*)
9587  # if libdl is installed we need to link against it
9588    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9589echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9590if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9591  echo $ECHO_N "(cached) $ECHO_C" >&6
9592else
9593  ac_check_lib_save_LIBS=$LIBS
9594LIBS="-ldl  $LIBS"
9595cat >conftest.$ac_ext <<_ACEOF
9596/* confdefs.h.  */
9597_ACEOF
9598cat confdefs.h >>conftest.$ac_ext
9599cat >>conftest.$ac_ext <<_ACEOF
9600/* end confdefs.h.  */
9601
9602/* Override any GCC internal prototype to avoid an error.
9603   Use char because int might match the return type of a GCC
9604   builtin and then its argument prototype would still apply.  */
9605#ifdef __cplusplus
9606extern "C"
9607#endif
9608char dlopen ();
9609int
9610main ()
9611{
9612return dlopen ();
9613  ;
9614  return 0;
9615}
9616_ACEOF
9617rm -f conftest.$ac_objext conftest$ac_exeext
9618if { (ac_try="$ac_link"
9619case "(($ac_try" in
9620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9621  *) ac_try_echo=$ac_try;;
9622esac
9623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9624  (eval "$ac_link") 2>conftest.er1
9625  ac_status=$?
9626  grep -v '^ *+' conftest.er1 >conftest.err
9627  rm -f conftest.er1
9628  cat conftest.err >&5
9629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630  (exit $ac_status); } && {
9631	 test -z "$ac_c_werror_flag" ||
9632	 test ! -s conftest.err
9633       } && test -s conftest$ac_exeext &&
9634       $as_test_x conftest$ac_exeext; then
9635  ac_cv_lib_dl_dlopen=yes
9636else
9637  echo "$as_me: failed program was:" >&5
9638sed 's/^/| /' conftest.$ac_ext >&5
9639
9640	ac_cv_lib_dl_dlopen=no
9641fi
9642
9643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9644      conftest$ac_exeext conftest.$ac_ext
9645LIBS=$ac_check_lib_save_LIBS
9646fi
9647{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9648echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9649if test $ac_cv_lib_dl_dlopen = yes; then
9650  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9651else
9652
9653    lt_cv_dlopen="dyld"
9654    lt_cv_dlopen_libs=
9655    lt_cv_dlopen_self=yes
9656
9657fi
9658
9659   ;;
9660
9661  *)
9662    { echo "$as_me:$LINENO: checking for shl_load" >&5
9663echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9664if test "${ac_cv_func_shl_load+set}" = set; then
9665  echo $ECHO_N "(cached) $ECHO_C" >&6
9666else
9667  cat >conftest.$ac_ext <<_ACEOF
9668/* confdefs.h.  */
9669_ACEOF
9670cat confdefs.h >>conftest.$ac_ext
9671cat >>conftest.$ac_ext <<_ACEOF
9672/* end confdefs.h.  */
9673/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9674   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9675#define shl_load innocuous_shl_load
9676
9677/* System header to define __stub macros and hopefully few prototypes,
9678    which can conflict with char shl_load (); below.
9679    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9680    <limits.h> exists even on freestanding compilers.  */
9681
9682#ifdef __STDC__
9683# include <limits.h>
9684#else
9685# include <assert.h>
9686#endif
9687
9688#undef shl_load
9689
9690/* Override any GCC internal prototype to avoid an error.
9691   Use char because int might match the return type of a GCC
9692   builtin and then its argument prototype would still apply.  */
9693#ifdef __cplusplus
9694extern "C"
9695#endif
9696char shl_load ();
9697/* The GNU C library defines this for functions which it implements
9698    to always fail with ENOSYS.  Some functions are actually named
9699    something starting with __ and the normal name is an alias.  */
9700#if defined __stub_shl_load || defined __stub___shl_load
9701choke me
9702#endif
9703
9704int
9705main ()
9706{
9707return shl_load ();
9708  ;
9709  return 0;
9710}
9711_ACEOF
9712rm -f conftest.$ac_objext conftest$ac_exeext
9713if { (ac_try="$ac_link"
9714case "(($ac_try" in
9715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9716  *) ac_try_echo=$ac_try;;
9717esac
9718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9719  (eval "$ac_link") 2>conftest.er1
9720  ac_status=$?
9721  grep -v '^ *+' conftest.er1 >conftest.err
9722  rm -f conftest.er1
9723  cat conftest.err >&5
9724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725  (exit $ac_status); } && {
9726	 test -z "$ac_c_werror_flag" ||
9727	 test ! -s conftest.err
9728       } && test -s conftest$ac_exeext &&
9729       $as_test_x conftest$ac_exeext; then
9730  ac_cv_func_shl_load=yes
9731else
9732  echo "$as_me: failed program was:" >&5
9733sed 's/^/| /' conftest.$ac_ext >&5
9734
9735	ac_cv_func_shl_load=no
9736fi
9737
9738rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9739      conftest$ac_exeext conftest.$ac_ext
9740fi
9741{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9742echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9743if test $ac_cv_func_shl_load = yes; then
9744  lt_cv_dlopen="shl_load"
9745else
9746  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9747echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9748if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9749  echo $ECHO_N "(cached) $ECHO_C" >&6
9750else
9751  ac_check_lib_save_LIBS=$LIBS
9752LIBS="-ldld  $LIBS"
9753cat >conftest.$ac_ext <<_ACEOF
9754/* confdefs.h.  */
9755_ACEOF
9756cat confdefs.h >>conftest.$ac_ext
9757cat >>conftest.$ac_ext <<_ACEOF
9758/* end confdefs.h.  */
9759
9760/* Override any GCC internal prototype to avoid an error.
9761   Use char because int might match the return type of a GCC
9762   builtin and then its argument prototype would still apply.  */
9763#ifdef __cplusplus
9764extern "C"
9765#endif
9766char shl_load ();
9767int
9768main ()
9769{
9770return shl_load ();
9771  ;
9772  return 0;
9773}
9774_ACEOF
9775rm -f conftest.$ac_objext conftest$ac_exeext
9776if { (ac_try="$ac_link"
9777case "(($ac_try" in
9778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779  *) ac_try_echo=$ac_try;;
9780esac
9781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782  (eval "$ac_link") 2>conftest.er1
9783  ac_status=$?
9784  grep -v '^ *+' conftest.er1 >conftest.err
9785  rm -f conftest.er1
9786  cat conftest.err >&5
9787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788  (exit $ac_status); } && {
9789	 test -z "$ac_c_werror_flag" ||
9790	 test ! -s conftest.err
9791       } && test -s conftest$ac_exeext &&
9792       $as_test_x conftest$ac_exeext; then
9793  ac_cv_lib_dld_shl_load=yes
9794else
9795  echo "$as_me: failed program was:" >&5
9796sed 's/^/| /' conftest.$ac_ext >&5
9797
9798	ac_cv_lib_dld_shl_load=no
9799fi
9800
9801rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9802      conftest$ac_exeext conftest.$ac_ext
9803LIBS=$ac_check_lib_save_LIBS
9804fi
9805{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9806echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9807if test $ac_cv_lib_dld_shl_load = yes; then
9808  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9809else
9810  { echo "$as_me:$LINENO: checking for dlopen" >&5
9811echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9812if test "${ac_cv_func_dlopen+set}" = set; then
9813  echo $ECHO_N "(cached) $ECHO_C" >&6
9814else
9815  cat >conftest.$ac_ext <<_ACEOF
9816/* confdefs.h.  */
9817_ACEOF
9818cat confdefs.h >>conftest.$ac_ext
9819cat >>conftest.$ac_ext <<_ACEOF
9820/* end confdefs.h.  */
9821/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9822   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9823#define dlopen innocuous_dlopen
9824
9825/* System header to define __stub macros and hopefully few prototypes,
9826    which can conflict with char dlopen (); below.
9827    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9828    <limits.h> exists even on freestanding compilers.  */
9829
9830#ifdef __STDC__
9831# include <limits.h>
9832#else
9833# include <assert.h>
9834#endif
9835
9836#undef dlopen
9837
9838/* Override any GCC internal prototype to avoid an error.
9839   Use char because int might match the return type of a GCC
9840   builtin and then its argument prototype would still apply.  */
9841#ifdef __cplusplus
9842extern "C"
9843#endif
9844char dlopen ();
9845/* The GNU C library defines this for functions which it implements
9846    to always fail with ENOSYS.  Some functions are actually named
9847    something starting with __ and the normal name is an alias.  */
9848#if defined __stub_dlopen || defined __stub___dlopen
9849choke me
9850#endif
9851
9852int
9853main ()
9854{
9855return dlopen ();
9856  ;
9857  return 0;
9858}
9859_ACEOF
9860rm -f conftest.$ac_objext conftest$ac_exeext
9861if { (ac_try="$ac_link"
9862case "(($ac_try" in
9863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864  *) ac_try_echo=$ac_try;;
9865esac
9866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867  (eval "$ac_link") 2>conftest.er1
9868  ac_status=$?
9869  grep -v '^ *+' conftest.er1 >conftest.err
9870  rm -f conftest.er1
9871  cat conftest.err >&5
9872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873  (exit $ac_status); } && {
9874	 test -z "$ac_c_werror_flag" ||
9875	 test ! -s conftest.err
9876       } && test -s conftest$ac_exeext &&
9877       $as_test_x conftest$ac_exeext; then
9878  ac_cv_func_dlopen=yes
9879else
9880  echo "$as_me: failed program was:" >&5
9881sed 's/^/| /' conftest.$ac_ext >&5
9882
9883	ac_cv_func_dlopen=no
9884fi
9885
9886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9887      conftest$ac_exeext conftest.$ac_ext
9888fi
9889{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9890echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9891if test $ac_cv_func_dlopen = yes; then
9892  lt_cv_dlopen="dlopen"
9893else
9894  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9895echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9896if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9897  echo $ECHO_N "(cached) $ECHO_C" >&6
9898else
9899  ac_check_lib_save_LIBS=$LIBS
9900LIBS="-ldl  $LIBS"
9901cat >conftest.$ac_ext <<_ACEOF
9902/* confdefs.h.  */
9903_ACEOF
9904cat confdefs.h >>conftest.$ac_ext
9905cat >>conftest.$ac_ext <<_ACEOF
9906/* end confdefs.h.  */
9907
9908/* Override any GCC internal prototype to avoid an error.
9909   Use char because int might match the return type of a GCC
9910   builtin and then its argument prototype would still apply.  */
9911#ifdef __cplusplus
9912extern "C"
9913#endif
9914char dlopen ();
9915int
9916main ()
9917{
9918return dlopen ();
9919  ;
9920  return 0;
9921}
9922_ACEOF
9923rm -f conftest.$ac_objext conftest$ac_exeext
9924if { (ac_try="$ac_link"
9925case "(($ac_try" in
9926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927  *) ac_try_echo=$ac_try;;
9928esac
9929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930  (eval "$ac_link") 2>conftest.er1
9931  ac_status=$?
9932  grep -v '^ *+' conftest.er1 >conftest.err
9933  rm -f conftest.er1
9934  cat conftest.err >&5
9935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936  (exit $ac_status); } && {
9937	 test -z "$ac_c_werror_flag" ||
9938	 test ! -s conftest.err
9939       } && test -s conftest$ac_exeext &&
9940       $as_test_x conftest$ac_exeext; then
9941  ac_cv_lib_dl_dlopen=yes
9942else
9943  echo "$as_me: failed program was:" >&5
9944sed 's/^/| /' conftest.$ac_ext >&5
9945
9946	ac_cv_lib_dl_dlopen=no
9947fi
9948
9949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9950      conftest$ac_exeext conftest.$ac_ext
9951LIBS=$ac_check_lib_save_LIBS
9952fi
9953{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9954echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9955if test $ac_cv_lib_dl_dlopen = yes; then
9956  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9957else
9958  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9959echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9960if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9961  echo $ECHO_N "(cached) $ECHO_C" >&6
9962else
9963  ac_check_lib_save_LIBS=$LIBS
9964LIBS="-lsvld  $LIBS"
9965cat >conftest.$ac_ext <<_ACEOF
9966/* confdefs.h.  */
9967_ACEOF
9968cat confdefs.h >>conftest.$ac_ext
9969cat >>conftest.$ac_ext <<_ACEOF
9970/* end confdefs.h.  */
9971
9972/* Override any GCC internal prototype to avoid an error.
9973   Use char because int might match the return type of a GCC
9974   builtin and then its argument prototype would still apply.  */
9975#ifdef __cplusplus
9976extern "C"
9977#endif
9978char dlopen ();
9979int
9980main ()
9981{
9982return dlopen ();
9983  ;
9984  return 0;
9985}
9986_ACEOF
9987rm -f conftest.$ac_objext conftest$ac_exeext
9988if { (ac_try="$ac_link"
9989case "(($ac_try" in
9990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991  *) ac_try_echo=$ac_try;;
9992esac
9993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994  (eval "$ac_link") 2>conftest.er1
9995  ac_status=$?
9996  grep -v '^ *+' conftest.er1 >conftest.err
9997  rm -f conftest.er1
9998  cat conftest.err >&5
9999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000  (exit $ac_status); } && {
10001	 test -z "$ac_c_werror_flag" ||
10002	 test ! -s conftest.err
10003       } && test -s conftest$ac_exeext &&
10004       $as_test_x conftest$ac_exeext; then
10005  ac_cv_lib_svld_dlopen=yes
10006else
10007  echo "$as_me: failed program was:" >&5
10008sed 's/^/| /' conftest.$ac_ext >&5
10009
10010	ac_cv_lib_svld_dlopen=no
10011fi
10012
10013rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10014      conftest$ac_exeext conftest.$ac_ext
10015LIBS=$ac_check_lib_save_LIBS
10016fi
10017{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10018echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10019if test $ac_cv_lib_svld_dlopen = yes; then
10020  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10021else
10022  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10023echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10024if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10025  echo $ECHO_N "(cached) $ECHO_C" >&6
10026else
10027  ac_check_lib_save_LIBS=$LIBS
10028LIBS="-ldld  $LIBS"
10029cat >conftest.$ac_ext <<_ACEOF
10030/* confdefs.h.  */
10031_ACEOF
10032cat confdefs.h >>conftest.$ac_ext
10033cat >>conftest.$ac_ext <<_ACEOF
10034/* end confdefs.h.  */
10035
10036/* Override any GCC internal prototype to avoid an error.
10037   Use char because int might match the return type of a GCC
10038   builtin and then its argument prototype would still apply.  */
10039#ifdef __cplusplus
10040extern "C"
10041#endif
10042char dld_link ();
10043int
10044main ()
10045{
10046return dld_link ();
10047  ;
10048  return 0;
10049}
10050_ACEOF
10051rm -f conftest.$ac_objext conftest$ac_exeext
10052if { (ac_try="$ac_link"
10053case "(($ac_try" in
10054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055  *) ac_try_echo=$ac_try;;
10056esac
10057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058  (eval "$ac_link") 2>conftest.er1
10059  ac_status=$?
10060  grep -v '^ *+' conftest.er1 >conftest.err
10061  rm -f conftest.er1
10062  cat conftest.err >&5
10063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064  (exit $ac_status); } && {
10065	 test -z "$ac_c_werror_flag" ||
10066	 test ! -s conftest.err
10067       } && test -s conftest$ac_exeext &&
10068       $as_test_x conftest$ac_exeext; then
10069  ac_cv_lib_dld_dld_link=yes
10070else
10071  echo "$as_me: failed program was:" >&5
10072sed 's/^/| /' conftest.$ac_ext >&5
10073
10074	ac_cv_lib_dld_dld_link=no
10075fi
10076
10077rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10078      conftest$ac_exeext conftest.$ac_ext
10079LIBS=$ac_check_lib_save_LIBS
10080fi
10081{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10082echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10083if test $ac_cv_lib_dld_dld_link = yes; then
10084  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10085fi
10086
10087
10088fi
10089
10090
10091fi
10092
10093
10094fi
10095
10096
10097fi
10098
10099
10100fi
10101
10102    ;;
10103  esac
10104
10105  if test "x$lt_cv_dlopen" != xno; then
10106    enable_dlopen=yes
10107  else
10108    enable_dlopen=no
10109  fi
10110
10111  case $lt_cv_dlopen in
10112  dlopen)
10113    save_CPPFLAGS="$CPPFLAGS"
10114    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10115
10116    save_LDFLAGS="$LDFLAGS"
10117    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10118
10119    save_LIBS="$LIBS"
10120    LIBS="$lt_cv_dlopen_libs $LIBS"
10121
10122    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10123echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10124if test "${lt_cv_dlopen_self+set}" = set; then
10125  echo $ECHO_N "(cached) $ECHO_C" >&6
10126else
10127  	  if test "$cross_compiling" = yes; then :
10128  lt_cv_dlopen_self=cross
10129else
10130  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10131  lt_status=$lt_dlunknown
10132  cat > conftest.$ac_ext <<EOF
10133#line 10133 "configure"
10134#include "confdefs.h"
10135
10136#if HAVE_DLFCN_H
10137#include <dlfcn.h>
10138#endif
10139
10140#include <stdio.h>
10141
10142#ifdef RTLD_GLOBAL
10143#  define LT_DLGLOBAL		RTLD_GLOBAL
10144#else
10145#  ifdef DL_GLOBAL
10146#    define LT_DLGLOBAL		DL_GLOBAL
10147#  else
10148#    define LT_DLGLOBAL		0
10149#  endif
10150#endif
10151
10152/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10153   find out it does not work in some platform. */
10154#ifndef LT_DLLAZY_OR_NOW
10155#  ifdef RTLD_LAZY
10156#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10157#  else
10158#    ifdef DL_LAZY
10159#      define LT_DLLAZY_OR_NOW		DL_LAZY
10160#    else
10161#      ifdef RTLD_NOW
10162#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10163#      else
10164#        ifdef DL_NOW
10165#          define LT_DLLAZY_OR_NOW	DL_NOW
10166#        else
10167#          define LT_DLLAZY_OR_NOW	0
10168#        endif
10169#      endif
10170#    endif
10171#  endif
10172#endif
10173
10174#ifdef __cplusplus
10175extern "C" void exit (int);
10176#endif
10177
10178void fnord() { int i=42;}
10179int main ()
10180{
10181  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10182  int status = $lt_dlunknown;
10183
10184  if (self)
10185    {
10186      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10187      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10188      /* dlclose (self); */
10189    }
10190  else
10191    puts (dlerror ());
10192
10193    exit (status);
10194}
10195EOF
10196  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10197  (eval $ac_link) 2>&5
10198  ac_status=$?
10199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10201    (./conftest; exit; ) >&5 2>/dev/null
10202    lt_status=$?
10203    case x$lt_status in
10204      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10205      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10206      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10207    esac
10208  else :
10209    # compilation failed
10210    lt_cv_dlopen_self=no
10211  fi
10212fi
10213rm -fr conftest*
10214
10215
10216fi
10217{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10218echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10219
10220    if test "x$lt_cv_dlopen_self" = xyes; then
10221      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10222      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10223echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10224if test "${lt_cv_dlopen_self_static+set}" = set; then
10225  echo $ECHO_N "(cached) $ECHO_C" >&6
10226else
10227  	  if test "$cross_compiling" = yes; then :
10228  lt_cv_dlopen_self_static=cross
10229else
10230  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10231  lt_status=$lt_dlunknown
10232  cat > conftest.$ac_ext <<EOF
10233#line 10233 "configure"
10234#include "confdefs.h"
10235
10236#if HAVE_DLFCN_H
10237#include <dlfcn.h>
10238#endif
10239
10240#include <stdio.h>
10241
10242#ifdef RTLD_GLOBAL
10243#  define LT_DLGLOBAL		RTLD_GLOBAL
10244#else
10245#  ifdef DL_GLOBAL
10246#    define LT_DLGLOBAL		DL_GLOBAL
10247#  else
10248#    define LT_DLGLOBAL		0
10249#  endif
10250#endif
10251
10252/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10253   find out it does not work in some platform. */
10254#ifndef LT_DLLAZY_OR_NOW
10255#  ifdef RTLD_LAZY
10256#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10257#  else
10258#    ifdef DL_LAZY
10259#      define LT_DLLAZY_OR_NOW		DL_LAZY
10260#    else
10261#      ifdef RTLD_NOW
10262#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10263#      else
10264#        ifdef DL_NOW
10265#          define LT_DLLAZY_OR_NOW	DL_NOW
10266#        else
10267#          define LT_DLLAZY_OR_NOW	0
10268#        endif
10269#      endif
10270#    endif
10271#  endif
10272#endif
10273
10274#ifdef __cplusplus
10275extern "C" void exit (int);
10276#endif
10277
10278void fnord() { int i=42;}
10279int main ()
10280{
10281  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10282  int status = $lt_dlunknown;
10283
10284  if (self)
10285    {
10286      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10287      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10288      /* dlclose (self); */
10289    }
10290  else
10291    puts (dlerror ());
10292
10293    exit (status);
10294}
10295EOF
10296  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10297  (eval $ac_link) 2>&5
10298  ac_status=$?
10299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10301    (./conftest; exit; ) >&5 2>/dev/null
10302    lt_status=$?
10303    case x$lt_status in
10304      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10305      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10306      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10307    esac
10308  else :
10309    # compilation failed
10310    lt_cv_dlopen_self_static=no
10311  fi
10312fi
10313rm -fr conftest*
10314
10315
10316fi
10317{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10318echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10319    fi
10320
10321    CPPFLAGS="$save_CPPFLAGS"
10322    LDFLAGS="$save_LDFLAGS"
10323    LIBS="$save_LIBS"
10324    ;;
10325  esac
10326
10327  case $lt_cv_dlopen_self in
10328  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10329  *) enable_dlopen_self=unknown ;;
10330  esac
10331
10332  case $lt_cv_dlopen_self_static in
10333  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10334  *) enable_dlopen_self_static=unknown ;;
10335  esac
10336fi
10337
10338
10339# Report which library types will actually be built
10340{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10341echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10342{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10343echo "${ECHO_T}$can_build_shared" >&6; }
10344
10345{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10346echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10347test "$can_build_shared" = "no" && enable_shared=no
10348
10349# On AIX, shared libraries and static libraries use the same namespace, and
10350# are all built from PIC.
10351case $host_os in
10352aix3*)
10353  test "$enable_shared" = yes && enable_static=no
10354  if test -n "$RANLIB"; then
10355    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10356    postinstall_cmds='$RANLIB $lib'
10357  fi
10358  ;;
10359
10360aix[4-9]*)
10361  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10362    test "$enable_shared" = yes && enable_static=no
10363  fi
10364    ;;
10365esac
10366{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10367echo "${ECHO_T}$enable_shared" >&6; }
10368
10369{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10370echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10371# Make sure either enable_shared or enable_static is yes.
10372test "$enable_shared" = yes || enable_static=yes
10373{ echo "$as_me:$LINENO: result: $enable_static" >&5
10374echo "${ECHO_T}$enable_static" >&6; }
10375
10376# The else clause should only fire when bootstrapping the
10377# libtool distribution, otherwise you forgot to ship ltmain.sh
10378# with your package, and you will get complaints that there are
10379# no rules to generate ltmain.sh.
10380if test -f "$ltmain"; then
10381  # See if we are running on zsh, and set the options which allow our commands through
10382  # without removal of \ escapes.
10383  if test -n "${ZSH_VERSION+set}" ; then
10384    setopt NO_GLOB_SUBST
10385  fi
10386  # Now quote all the things that may contain metacharacters while being
10387  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10388  # variables and quote the copies for generation of the libtool script.
10389  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10390    SED SHELL STRIP \
10391    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10392    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10393    deplibs_check_method reload_flag reload_cmds need_locks \
10394    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10395    lt_cv_sys_global_symbol_to_c_name_address \
10396    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10397    old_postinstall_cmds old_postuninstall_cmds \
10398    compiler \
10399    CC \
10400    LD \
10401    lt_prog_compiler_wl \
10402    lt_prog_compiler_pic \
10403    lt_prog_compiler_static \
10404    lt_prog_compiler_no_builtin_flag \
10405    export_dynamic_flag_spec \
10406    thread_safe_flag_spec \
10407    whole_archive_flag_spec \
10408    enable_shared_with_static_runtimes \
10409    old_archive_cmds \
10410    old_archive_from_new_cmds \
10411    predep_objects \
10412    postdep_objects \
10413    predeps \
10414    postdeps \
10415    compiler_lib_search_path \
10416    compiler_lib_search_dirs \
10417    archive_cmds \
10418    archive_expsym_cmds \
10419    postinstall_cmds \
10420    postuninstall_cmds \
10421    old_archive_from_expsyms_cmds \
10422    allow_undefined_flag \
10423    no_undefined_flag \
10424    export_symbols_cmds \
10425    hardcode_libdir_flag_spec \
10426    hardcode_libdir_flag_spec_ld \
10427    hardcode_libdir_separator \
10428    hardcode_automatic \
10429    module_cmds \
10430    module_expsym_cmds \
10431    lt_cv_prog_compiler_c_o \
10432    fix_srcfile_path \
10433    exclude_expsyms \
10434    include_expsyms; do
10435
10436    case $var in
10437    old_archive_cmds | \
10438    old_archive_from_new_cmds | \
10439    archive_cmds | \
10440    archive_expsym_cmds | \
10441    module_cmds | \
10442    module_expsym_cmds | \
10443    old_archive_from_expsyms_cmds | \
10444    export_symbols_cmds | \
10445    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10446    postinstall_cmds | postuninstall_cmds | \
10447    old_postinstall_cmds | old_postuninstall_cmds | \
10448    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10449      # Double-quote double-evaled strings.
10450      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10451      ;;
10452    *)
10453      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10454      ;;
10455    esac
10456  done
10457
10458  case $lt_echo in
10459  *'\$0 --fallback-echo"')
10460    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10461    ;;
10462  esac
10463
10464cfgfile="${ofile}T"
10465  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10466  $rm -f "$cfgfile"
10467  { echo "$as_me:$LINENO: creating $ofile" >&5
10468echo "$as_me: creating $ofile" >&6;}
10469
10470  cat <<__EOF__ >> "$cfgfile"
10471#! $SHELL
10472
10473# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10474# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10475# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10476#
10477# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10478# Free Software Foundation, Inc.
10479#
10480# This file is part of GNU Libtool:
10481# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10482#
10483# This program is free software; you can redistribute it and/or modify
10484# it under the terms of the GNU General Public License as published by
10485# the Free Software Foundation; either version 2 of the License, or
10486# (at your option) any later version.
10487#
10488# This program is distributed in the hope that it will be useful, but
10489# WITHOUT ANY WARRANTY; without even the implied warranty of
10490# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10491# General Public License for more details.
10492#
10493# You should have received a copy of the GNU General Public License
10494# along with this program; if not, write to the Free Software
10495# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10496#
10497# As a special exception to the GNU General Public License, if you
10498# distribute this file as part of a program that contains a
10499# configuration script generated by Autoconf, you may include it under
10500# the same distribution terms that you use for the rest of that program.
10501
10502# A sed program that does not truncate output.
10503SED=$lt_SED
10504
10505# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10506Xsed="$SED -e 1s/^X//"
10507
10508# The HP-UX ksh and POSIX shell print the target directory to stdout
10509# if CDPATH is set.
10510(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10511
10512# The names of the tagged configurations supported by this script.
10513available_tags=
10514
10515# ### BEGIN LIBTOOL CONFIG
10516
10517# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10518
10519# Shell to use when invoking shell scripts.
10520SHELL=$lt_SHELL
10521
10522# Whether or not to build shared libraries.
10523build_libtool_libs=$enable_shared
10524
10525# Whether or not to build static libraries.
10526build_old_libs=$enable_static
10527
10528# Whether or not to add -lc for building shared libraries.
10529build_libtool_need_lc=$archive_cmds_need_lc
10530
10531# Whether or not to disallow shared libs when runtime libs are static
10532allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10533
10534# Whether or not to optimize for fast installation.
10535fast_install=$enable_fast_install
10536
10537# The host system.
10538host_alias=$host_alias
10539host=$host
10540host_os=$host_os
10541
10542# The build system.
10543build_alias=$build_alias
10544build=$build
10545build_os=$build_os
10546
10547# An echo program that does not interpret backslashes.
10548echo=$lt_echo
10549
10550# The archiver.
10551AR=$lt_AR
10552AR_FLAGS=$lt_AR_FLAGS
10553
10554# A C compiler.
10555LTCC=$lt_LTCC
10556
10557# LTCC compiler flags.
10558LTCFLAGS=$lt_LTCFLAGS
10559
10560# A language-specific compiler.
10561CC=$lt_compiler
10562
10563# Is the compiler the GNU C compiler?
10564with_gcc=$GCC
10565
10566# An ERE matcher.
10567EGREP=$lt_EGREP
10568
10569# The linker used to build libraries.
10570LD=$lt_LD
10571
10572# Whether we need hard or soft links.
10573LN_S=$lt_LN_S
10574
10575# A BSD-compatible nm program.
10576NM=$lt_NM
10577
10578# A symbol stripping program
10579STRIP=$lt_STRIP
10580
10581# Used to examine libraries when file_magic_cmd begins "file"
10582MAGIC_CMD=$MAGIC_CMD
10583
10584# Used on cygwin: DLL creation program.
10585DLLTOOL="$DLLTOOL"
10586
10587# Used on cygwin: object dumper.
10588OBJDUMP="$OBJDUMP"
10589
10590# Used on cygwin: assembler.
10591AS="$AS"
10592
10593# The name of the directory that contains temporary libtool files.
10594objdir=$objdir
10595
10596# How to create reloadable object files.
10597reload_flag=$lt_reload_flag
10598reload_cmds=$lt_reload_cmds
10599
10600# How to pass a linker flag through the compiler.
10601wl=$lt_lt_prog_compiler_wl
10602
10603# Object file suffix (normally "o").
10604objext="$ac_objext"
10605
10606# Old archive suffix (normally "a").
10607libext="$libext"
10608
10609# Shared library suffix (normally ".so").
10610shrext_cmds='$shrext_cmds'
10611
10612# Executable file suffix (normally "").
10613exeext="$exeext"
10614
10615# Additional compiler flags for building library objects.
10616pic_flag=$lt_lt_prog_compiler_pic
10617pic_mode=$pic_mode
10618
10619# What is the maximum length of a command?
10620max_cmd_len=$lt_cv_sys_max_cmd_len
10621
10622# Does compiler simultaneously support -c and -o options?
10623compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10624
10625# Must we lock files when doing compilation?
10626need_locks=$lt_need_locks
10627
10628# Do we need the lib prefix for modules?
10629need_lib_prefix=$need_lib_prefix
10630
10631# Do we need a version for libraries?
10632need_version=$need_version
10633
10634# Whether dlopen is supported.
10635dlopen_support=$enable_dlopen
10636
10637# Whether dlopen of programs is supported.
10638dlopen_self=$enable_dlopen_self
10639
10640# Whether dlopen of statically linked programs is supported.
10641dlopen_self_static=$enable_dlopen_self_static
10642
10643# Compiler flag to prevent dynamic linking.
10644link_static_flag=$lt_lt_prog_compiler_static
10645
10646# Compiler flag to turn off builtin functions.
10647no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10648
10649# Compiler flag to allow reflexive dlopens.
10650export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10651
10652# Compiler flag to generate shared objects directly from archives.
10653whole_archive_flag_spec=$lt_whole_archive_flag_spec
10654
10655# Compiler flag to generate thread-safe objects.
10656thread_safe_flag_spec=$lt_thread_safe_flag_spec
10657
10658# Library versioning type.
10659version_type=$version_type
10660
10661# Format of library name prefix.
10662libname_spec=$lt_libname_spec
10663
10664# List of archive names.  First name is the real one, the rest are links.
10665# The last name is the one that the linker finds with -lNAME.
10666library_names_spec=$lt_library_names_spec
10667
10668# The coded name of the library, if different from the real name.
10669soname_spec=$lt_soname_spec
10670
10671# Commands used to build and install an old-style archive.
10672RANLIB=$lt_RANLIB
10673old_archive_cmds=$lt_old_archive_cmds
10674old_postinstall_cmds=$lt_old_postinstall_cmds
10675old_postuninstall_cmds=$lt_old_postuninstall_cmds
10676
10677# Create an old-style archive from a shared archive.
10678old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10679
10680# Create a temporary old-style archive to link instead of a shared archive.
10681old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10682
10683# Commands used to build and install a shared archive.
10684archive_cmds=$lt_archive_cmds
10685archive_expsym_cmds=$lt_archive_expsym_cmds
10686postinstall_cmds=$lt_postinstall_cmds
10687postuninstall_cmds=$lt_postuninstall_cmds
10688
10689# Commands used to build a loadable module (assumed same as above if empty)
10690module_cmds=$lt_module_cmds
10691module_expsym_cmds=$lt_module_expsym_cmds
10692
10693# Commands to strip libraries.
10694old_striplib=$lt_old_striplib
10695striplib=$lt_striplib
10696
10697# Dependencies to place before the objects being linked to create a
10698# shared library.
10699predep_objects=$lt_predep_objects
10700
10701# Dependencies to place after the objects being linked to create a
10702# shared library.
10703postdep_objects=$lt_postdep_objects
10704
10705# Dependencies to place before the objects being linked to create a
10706# shared library.
10707predeps=$lt_predeps
10708
10709# Dependencies to place after the objects being linked to create a
10710# shared library.
10711postdeps=$lt_postdeps
10712
10713# The directories searched by this compiler when creating a shared
10714# library
10715compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10716
10717# The library search path used internally by the compiler when linking
10718# a shared library.
10719compiler_lib_search_path=$lt_compiler_lib_search_path
10720
10721# Method to check whether dependent libraries are shared objects.
10722deplibs_check_method=$lt_deplibs_check_method
10723
10724# Command to use when deplibs_check_method == file_magic.
10725file_magic_cmd=$lt_file_magic_cmd
10726
10727# Flag that allows shared libraries with undefined symbols to be built.
10728allow_undefined_flag=$lt_allow_undefined_flag
10729
10730# Flag that forces no undefined symbols.
10731no_undefined_flag=$lt_no_undefined_flag
10732
10733# Commands used to finish a libtool library installation in a directory.
10734finish_cmds=$lt_finish_cmds
10735
10736# Same as above, but a single script fragment to be evaled but not shown.
10737finish_eval=$lt_finish_eval
10738
10739# Take the output of nm and produce a listing of raw symbols and C names.
10740global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10741
10742# Transform the output of nm in a proper C declaration
10743global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10744
10745# Transform the output of nm in a C name address pair
10746global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10747
10748# This is the shared library runtime path variable.
10749runpath_var=$runpath_var
10750
10751# This is the shared library path variable.
10752shlibpath_var=$shlibpath_var
10753
10754# Is shlibpath searched before the hard-coded library search path?
10755shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10756
10757# How to hardcode a shared library path into an executable.
10758hardcode_action=$hardcode_action
10759
10760# Whether we should hardcode library paths into libraries.
10761hardcode_into_libs=$hardcode_into_libs
10762
10763# Flag to hardcode \$libdir into a binary during linking.
10764# This must work even if \$libdir does not exist.
10765hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10766
10767# If ld is used when linking, flag to hardcode \$libdir into
10768# a binary during linking. This must work even if \$libdir does
10769# not exist.
10770hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10771
10772# Whether we need a single -rpath flag with a separated argument.
10773hardcode_libdir_separator=$lt_hardcode_libdir_separator
10774
10775# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10776# resulting binary.
10777hardcode_direct=$hardcode_direct
10778
10779# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10780# resulting binary.
10781hardcode_minus_L=$hardcode_minus_L
10782
10783# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10784# the resulting binary.
10785hardcode_shlibpath_var=$hardcode_shlibpath_var
10786
10787# Set to yes if building a shared library automatically hardcodes DIR into the library
10788# and all subsequent libraries and executables linked against it.
10789hardcode_automatic=$hardcode_automatic
10790
10791# Variables whose values should be saved in libtool wrapper scripts and
10792# restored at relink time.
10793variables_saved_for_relink="$variables_saved_for_relink"
10794
10795# Whether libtool must link a program against all its dependency libraries.
10796link_all_deplibs=$link_all_deplibs
10797
10798# Compile-time system search path for libraries
10799sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10800
10801# Run-time system search path for libraries
10802sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10803
10804# Fix the shell variable \$srcfile for the compiler.
10805fix_srcfile_path=$lt_fix_srcfile_path
10806
10807# Set to yes if exported symbols are required.
10808always_export_symbols=$always_export_symbols
10809
10810# The commands to list exported symbols.
10811export_symbols_cmds=$lt_export_symbols_cmds
10812
10813# The commands to extract the exported symbol list from a shared archive.
10814extract_expsyms_cmds=$lt_extract_expsyms_cmds
10815
10816# Symbols that should not be listed in the preloaded symbols.
10817exclude_expsyms=$lt_exclude_expsyms
10818
10819# Symbols that must always be exported.
10820include_expsyms=$lt_include_expsyms
10821
10822# ### END LIBTOOL CONFIG
10823
10824__EOF__
10825
10826
10827  case $host_os in
10828  aix3*)
10829    cat <<\EOF >> "$cfgfile"
10830
10831# AIX sometimes has problems with the GCC collect2 program.  For some
10832# reason, if we set the COLLECT_NAMES environment variable, the problems
10833# vanish in a puff of smoke.
10834if test "X${COLLECT_NAMES+set}" != Xset; then
10835  COLLECT_NAMES=
10836  export COLLECT_NAMES
10837fi
10838EOF
10839    ;;
10840  esac
10841
10842  # We use sed instead of cat because bash on DJGPP gets confused if
10843  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10844  # text mode, it properly converts lines to CR/LF.  This bash problem
10845  # is reportedly fixed, but why not run on old versions too?
10846  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10847
10848  mv -f "$cfgfile" "$ofile" || \
10849    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10850  chmod +x "$ofile"
10851
10852else
10853  # If there is no Makefile yet, we rely on a make rule to execute
10854  # `config.status --recheck' to rerun these tests and create the
10855  # libtool script then.
10856  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10857  if test -f "$ltmain_in"; then
10858    test -f Makefile && make "$ltmain"
10859  fi
10860fi
10861
10862
10863ac_ext=c
10864ac_cpp='$CPP $CPPFLAGS'
10865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10867ac_compiler_gnu=$ac_cv_c_compiler_gnu
10868
10869CC="$lt_save_CC"
10870
10871
10872# Check whether --with-tags was given.
10873if test "${with_tags+set}" = set; then
10874  withval=$with_tags; tagnames="$withval"
10875fi
10876
10877
10878if test -f "$ltmain" && test -n "$tagnames"; then
10879  if test ! -f "${ofile}"; then
10880    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10881echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10882  fi
10883
10884  if test -z "$LTCC"; then
10885    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10886    if test -z "$LTCC"; then
10887      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10888echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10889    else
10890      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10891echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10892    fi
10893  fi
10894  if test -z "$LTCFLAGS"; then
10895    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10896  fi
10897
10898  # Extract list of available tagged configurations in $ofile.
10899  # Note that this assumes the entire list is on one line.
10900  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10901
10902  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10903  for tagname in $tagnames; do
10904    IFS="$lt_save_ifs"
10905    # Check whether tagname contains only valid characters
10906    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10907    "") ;;
10908    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10909echo "$as_me: error: invalid tag name: $tagname" >&2;}
10910   { (exit 1); exit 1; }; }
10911	;;
10912    esac
10913
10914    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10915    then
10916      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10917echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10918   { (exit 1); exit 1; }; }
10919    fi
10920
10921    # Update the list of available tags.
10922    if test -n "$tagname"; then
10923      echo appending configuration tag \"$tagname\" to $ofile
10924
10925      case $tagname in
10926      CXX)
10927	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10928	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10929	    (test "X$CXX" != "Xg++"))) ; then
10930	  ac_ext=cpp
10931ac_cpp='$CXXCPP $CPPFLAGS'
10932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10935
10936
10937
10938
10939archive_cmds_need_lc_CXX=no
10940allow_undefined_flag_CXX=
10941always_export_symbols_CXX=no
10942archive_expsym_cmds_CXX=
10943export_dynamic_flag_spec_CXX=
10944hardcode_direct_CXX=no
10945hardcode_libdir_flag_spec_CXX=
10946hardcode_libdir_flag_spec_ld_CXX=
10947hardcode_libdir_separator_CXX=
10948hardcode_minus_L_CXX=no
10949hardcode_shlibpath_var_CXX=unsupported
10950hardcode_automatic_CXX=no
10951module_cmds_CXX=
10952module_expsym_cmds_CXX=
10953link_all_deplibs_CXX=unknown
10954old_archive_cmds_CXX=$old_archive_cmds
10955no_undefined_flag_CXX=
10956whole_archive_flag_spec_CXX=
10957enable_shared_with_static_runtimes_CXX=no
10958
10959# Dependencies to place before and after the object being linked:
10960predep_objects_CXX=
10961postdep_objects_CXX=
10962predeps_CXX=
10963postdeps_CXX=
10964compiler_lib_search_path_CXX=
10965compiler_lib_search_dirs_CXX=
10966
10967# Source file extension for C++ test sources.
10968ac_ext=cpp
10969
10970# Object file extension for compiled C++ test sources.
10971objext=o
10972objext_CXX=$objext
10973
10974# Code to be used in simple compile tests
10975lt_simple_compile_test_code="int some_variable = 0;"
10976
10977# Code to be used in simple link tests
10978lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10979
10980# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10981
10982# If no C compiler was specified, use CC.
10983LTCC=${LTCC-"$CC"}
10984
10985# If no C compiler flags were specified, use CFLAGS.
10986LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10987
10988# Allow CC to be a program name with arguments.
10989compiler=$CC
10990
10991
10992# save warnings/boilerplate of simple test code
10993ac_outfile=conftest.$ac_objext
10994echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10995eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10996_lt_compiler_boilerplate=`cat conftest.err`
10997$rm conftest*
10998
10999ac_outfile=conftest.$ac_objext
11000echo "$lt_simple_link_test_code" >conftest.$ac_ext
11001eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11002_lt_linker_boilerplate=`cat conftest.err`
11003$rm -r conftest*
11004
11005
11006# Allow CC to be a program name with arguments.
11007lt_save_CC=$CC
11008lt_save_LD=$LD
11009lt_save_GCC=$GCC
11010GCC=$GXX
11011lt_save_with_gnu_ld=$with_gnu_ld
11012lt_save_path_LD=$lt_cv_path_LD
11013if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11014  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11015else
11016  $as_unset lt_cv_prog_gnu_ld
11017fi
11018if test -n "${lt_cv_path_LDCXX+set}"; then
11019  lt_cv_path_LD=$lt_cv_path_LDCXX
11020else
11021  $as_unset lt_cv_path_LD
11022fi
11023test -z "${LDCXX+set}" || LD=$LDCXX
11024CC=${CXX-"c++"}
11025compiler=$CC
11026compiler_CXX=$CC
11027for cc_temp in $compiler""; do
11028  case $cc_temp in
11029    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11030    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11031    \-*) ;;
11032    *) break;;
11033  esac
11034done
11035cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11036
11037
11038# We don't want -fno-exception wen compiling C++ code, so set the
11039# no_builtin_flag separately
11040if test "$GXX" = yes; then
11041  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11042else
11043  lt_prog_compiler_no_builtin_flag_CXX=
11044fi
11045
11046if test "$GXX" = yes; then
11047  # Set up default GNU C++ configuration
11048
11049
11050# Check whether --with-gnu-ld was given.
11051if test "${with_gnu_ld+set}" = set; then
11052  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11053else
11054  with_gnu_ld=no
11055fi
11056
11057ac_prog=ld
11058if test "$GCC" = yes; then
11059  # Check if gcc -print-prog-name=ld gives a path.
11060  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11061echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11062  case $host in
11063  *-*-mingw*)
11064    # gcc leaves a trailing carriage return which upsets mingw
11065    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11066  *)
11067    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11068  esac
11069  case $ac_prog in
11070    # Accept absolute paths.
11071    [\\/]* | ?:[\\/]*)
11072      re_direlt='/[^/][^/]*/\.\./'
11073      # Canonicalize the pathname of ld
11074      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11075      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11076	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11077      done
11078      test -z "$LD" && LD="$ac_prog"
11079      ;;
11080  "")
11081    # If it fails, then pretend we aren't using GCC.
11082    ac_prog=ld
11083    ;;
11084  *)
11085    # If it is relative, then search for the first ld in PATH.
11086    with_gnu_ld=unknown
11087    ;;
11088  esac
11089elif test "$with_gnu_ld" = yes; then
11090  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11091echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11092else
11093  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11094echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11095fi
11096if test "${lt_cv_path_LD+set}" = set; then
11097  echo $ECHO_N "(cached) $ECHO_C" >&6
11098else
11099  if test -z "$LD"; then
11100  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11101  for ac_dir in $PATH; do
11102    IFS="$lt_save_ifs"
11103    test -z "$ac_dir" && ac_dir=.
11104    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11105      lt_cv_path_LD="$ac_dir/$ac_prog"
11106      # Check to see if the program is GNU ld.  I'd rather use --version,
11107      # but apparently some variants of GNU ld only accept -v.
11108      # Break only if it was the GNU/non-GNU ld that we prefer.
11109      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11110      *GNU* | *'with BFD'*)
11111	test "$with_gnu_ld" != no && break
11112	;;
11113      *)
11114	test "$with_gnu_ld" != yes && break
11115	;;
11116      esac
11117    fi
11118  done
11119  IFS="$lt_save_ifs"
11120else
11121  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11122fi
11123fi
11124
11125LD="$lt_cv_path_LD"
11126if test -n "$LD"; then
11127  { echo "$as_me:$LINENO: result: $LD" >&5
11128echo "${ECHO_T}$LD" >&6; }
11129else
11130  { echo "$as_me:$LINENO: result: no" >&5
11131echo "${ECHO_T}no" >&6; }
11132fi
11133test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11134echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11135   { (exit 1); exit 1; }; }
11136{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11137echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11138if test "${lt_cv_prog_gnu_ld+set}" = set; then
11139  echo $ECHO_N "(cached) $ECHO_C" >&6
11140else
11141  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11142case `$LD -v 2>&1 </dev/null` in
11143*GNU* | *'with BFD'*)
11144  lt_cv_prog_gnu_ld=yes
11145  ;;
11146*)
11147  lt_cv_prog_gnu_ld=no
11148  ;;
11149esac
11150fi
11151{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11152echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11153with_gnu_ld=$lt_cv_prog_gnu_ld
11154
11155
11156
11157  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11158  # archiving commands below assume that GNU ld is being used.
11159  if test "$with_gnu_ld" = yes; then
11160    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11161    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'
11162
11163    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11164    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11165
11166    # If archive_cmds runs LD, not CC, wlarc should be empty
11167    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11168    #     investigate it a little bit more. (MM)
11169    wlarc='${wl}'
11170
11171    # ancient GNU ld didn't support --whole-archive et. al.
11172    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11173	grep 'no-whole-archive' > /dev/null; then
11174      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11175    else
11176      whole_archive_flag_spec_CXX=
11177    fi
11178  else
11179    with_gnu_ld=no
11180    wlarc=
11181
11182    # A generic and very simple default shared library creation
11183    # command for GNU C++ for the case where it uses the native
11184    # linker, instead of GNU ld.  If possible, this setting should
11185    # overridden to take advantage of the native linker features on
11186    # the platform it is being used on.
11187    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11188  fi
11189
11190  # Commands to make compiler produce verbose output that lists
11191  # what "hidden" libraries, object files and flags are used when
11192  # linking a shared library.
11193  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11194
11195else
11196  GXX=no
11197  with_gnu_ld=no
11198  wlarc=
11199fi
11200
11201# PORTME: fill in a description of your system's C++ link characteristics
11202{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11203echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11204ld_shlibs_CXX=yes
11205case $host_os in
11206  aix3*)
11207    # FIXME: insert proper C++ library support
11208    ld_shlibs_CXX=no
11209    ;;
11210  aix[4-9]*)
11211    if test "$host_cpu" = ia64; then
11212      # On IA64, the linker does run time linking by default, so we don't
11213      # have to do anything special.
11214      aix_use_runtimelinking=no
11215      exp_sym_flag='-Bexport'
11216      no_entry_flag=""
11217    else
11218      aix_use_runtimelinking=no
11219
11220      # Test if we are trying to use run time linking or normal
11221      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11222      # need to do runtime linking.
11223      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11224	for ld_flag in $LDFLAGS; do
11225	  case $ld_flag in
11226	  *-brtl*)
11227	    aix_use_runtimelinking=yes
11228	    break
11229	    ;;
11230	  esac
11231	done
11232	;;
11233      esac
11234
11235      exp_sym_flag='-bexport'
11236      no_entry_flag='-bnoentry'
11237    fi
11238
11239    # When large executables or shared objects are built, AIX ld can
11240    # have problems creating the table of contents.  If linking a library
11241    # or program results in "error TOC overflow" add -mminimal-toc to
11242    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11243    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11244
11245    archive_cmds_CXX=''
11246    hardcode_direct_CXX=yes
11247    hardcode_libdir_separator_CXX=':'
11248    link_all_deplibs_CXX=yes
11249
11250    if test "$GXX" = yes; then
11251      case $host_os in aix4.[012]|aix4.[012].*)
11252      # We only want to do this on AIX 4.2 and lower, the check
11253      # below for broken collect2 doesn't work under 4.3+
11254	collect2name=`${CC} -print-prog-name=collect2`
11255	if test -f "$collect2name" && \
11256	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11257	then
11258	  # We have reworked collect2
11259	  :
11260	else
11261	  # We have old collect2
11262	  hardcode_direct_CXX=unsupported
11263	  # It fails to find uninstalled libraries when the uninstalled
11264	  # path is not listed in the libpath.  Setting hardcode_minus_L
11265	  # to unsupported forces relinking
11266	  hardcode_minus_L_CXX=yes
11267	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11268	  hardcode_libdir_separator_CXX=
11269	fi
11270	;;
11271      esac
11272      shared_flag='-shared'
11273      if test "$aix_use_runtimelinking" = yes; then
11274	shared_flag="$shared_flag "'${wl}-G'
11275      fi
11276    else
11277      # not using gcc
11278      if test "$host_cpu" = ia64; then
11279	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11280	# chokes on -Wl,-G. The following line is correct:
11281	shared_flag='-G'
11282      else
11283	if test "$aix_use_runtimelinking" = yes; then
11284	  shared_flag='${wl}-G'
11285	else
11286	  shared_flag='${wl}-bM:SRE'
11287	fi
11288      fi
11289    fi
11290
11291    # It seems that -bexpall does not export symbols beginning with
11292    # underscore (_), so it is better to generate a list of symbols to export.
11293    always_export_symbols_CXX=yes
11294    if test "$aix_use_runtimelinking" = yes; then
11295      # Warning - without using the other runtime loading flags (-brtl),
11296      # -berok will link without error, but may produce a broken library.
11297      allow_undefined_flag_CXX='-berok'
11298      # Determine the default libpath from the value encoded in an empty executable.
11299      cat >conftest.$ac_ext <<_ACEOF
11300/* confdefs.h.  */
11301_ACEOF
11302cat confdefs.h >>conftest.$ac_ext
11303cat >>conftest.$ac_ext <<_ACEOF
11304/* end confdefs.h.  */
11305
11306int
11307main ()
11308{
11309
11310  ;
11311  return 0;
11312}
11313_ACEOF
11314rm -f conftest.$ac_objext conftest$ac_exeext
11315if { (ac_try="$ac_link"
11316case "(($ac_try" in
11317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318  *) ac_try_echo=$ac_try;;
11319esac
11320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321  (eval "$ac_link") 2>conftest.er1
11322  ac_status=$?
11323  grep -v '^ *+' conftest.er1 >conftest.err
11324  rm -f conftest.er1
11325  cat conftest.err >&5
11326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327  (exit $ac_status); } && {
11328	 test -z "$ac_cxx_werror_flag" ||
11329	 test ! -s conftest.err
11330       } && test -s conftest$ac_exeext &&
11331       $as_test_x conftest$ac_exeext; then
11332
11333lt_aix_libpath_sed='
11334    /Import File Strings/,/^$/ {
11335	/^0/ {
11336	    s/^0  *\(.*\)$/\1/
11337	    p
11338	}
11339    }'
11340aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11341# Check for a 64-bit object if we didn't find anything.
11342if test -z "$aix_libpath"; then
11343  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11344fi
11345else
11346  echo "$as_me: failed program was:" >&5
11347sed 's/^/| /' conftest.$ac_ext >&5
11348
11349
11350fi
11351
11352rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11353      conftest$ac_exeext conftest.$ac_ext
11354if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11355
11356      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11357
11358      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"
11359     else
11360      if test "$host_cpu" = ia64; then
11361	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11362	allow_undefined_flag_CXX="-z nodefs"
11363	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"
11364      else
11365	# Determine the default libpath from the value encoded in an empty executable.
11366	cat >conftest.$ac_ext <<_ACEOF
11367/* confdefs.h.  */
11368_ACEOF
11369cat confdefs.h >>conftest.$ac_ext
11370cat >>conftest.$ac_ext <<_ACEOF
11371/* end confdefs.h.  */
11372
11373int
11374main ()
11375{
11376
11377  ;
11378  return 0;
11379}
11380_ACEOF
11381rm -f conftest.$ac_objext conftest$ac_exeext
11382if { (ac_try="$ac_link"
11383case "(($ac_try" in
11384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385  *) ac_try_echo=$ac_try;;
11386esac
11387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11388  (eval "$ac_link") 2>conftest.er1
11389  ac_status=$?
11390  grep -v '^ *+' conftest.er1 >conftest.err
11391  rm -f conftest.er1
11392  cat conftest.err >&5
11393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394  (exit $ac_status); } && {
11395	 test -z "$ac_cxx_werror_flag" ||
11396	 test ! -s conftest.err
11397       } && test -s conftest$ac_exeext &&
11398       $as_test_x conftest$ac_exeext; then
11399
11400lt_aix_libpath_sed='
11401    /Import File Strings/,/^$/ {
11402	/^0/ {
11403	    s/^0  *\(.*\)$/\1/
11404	    p
11405	}
11406    }'
11407aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11408# Check for a 64-bit object if we didn't find anything.
11409if test -z "$aix_libpath"; then
11410  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11411fi
11412else
11413  echo "$as_me: failed program was:" >&5
11414sed 's/^/| /' conftest.$ac_ext >&5
11415
11416
11417fi
11418
11419rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11420      conftest$ac_exeext conftest.$ac_ext
11421if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11422
11423	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11424	# Warning - without using the other run time loading flags,
11425	# -berok will link without error, but may produce a broken library.
11426	no_undefined_flag_CXX=' ${wl}-bernotok'
11427	allow_undefined_flag_CXX=' ${wl}-berok'
11428	# Exported symbols can be pulled into shared objects from archives
11429	whole_archive_flag_spec_CXX='$convenience'
11430	archive_cmds_need_lc_CXX=yes
11431	# This is similar to how AIX traditionally builds its shared libraries.
11432	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'
11433      fi
11434    fi
11435    ;;
11436
11437  beos*)
11438    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11439      allow_undefined_flag_CXX=unsupported
11440      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11441      # support --undefined.  This deserves some investigation.  FIXME
11442      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11443    else
11444      ld_shlibs_CXX=no
11445    fi
11446    ;;
11447
11448  chorus*)
11449    case $cc_basename in
11450      *)
11451	# FIXME: insert proper C++ library support
11452	ld_shlibs_CXX=no
11453	;;
11454    esac
11455    ;;
11456
11457  cygwin* | mingw* | pw32*)
11458    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11459    # as there is no search path for DLLs.
11460    hardcode_libdir_flag_spec_CXX='-L$libdir'
11461    allow_undefined_flag_CXX=unsupported
11462    always_export_symbols_CXX=no
11463    enable_shared_with_static_runtimes_CXX=yes
11464
11465    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11466      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'
11467      # If the export-symbols file already is a .def file (1st line
11468      # is EXPORTS), use it as is; otherwise, prepend...
11469      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11470	cp $export_symbols $output_objdir/$soname.def;
11471      else
11472	echo EXPORTS > $output_objdir/$soname.def;
11473	cat $export_symbols >> $output_objdir/$soname.def;
11474      fi~
11475      $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'
11476    else
11477      ld_shlibs_CXX=no
11478    fi
11479  ;;
11480      darwin* | rhapsody*)
11481      archive_cmds_need_lc_CXX=no
11482      hardcode_direct_CXX=no
11483      hardcode_automatic_CXX=yes
11484      hardcode_shlibpath_var_CXX=unsupported
11485      whole_archive_flag_spec_CXX=''
11486      link_all_deplibs_CXX=yes
11487      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11488      if test "$GXX" = yes ; then
11489      output_verbose_link_cmd='echo'
11490      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}"
11491      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11492      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}"
11493      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}"
11494      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11495        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}"
11496        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}"
11497      fi
11498      else
11499      case $cc_basename in
11500        xlc*)
11501         output_verbose_link_cmd='echo'
11502          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'
11503          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11504          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11505          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}'
11506          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}'
11507          ;;
11508       *)
11509         ld_shlibs_CXX=no
11510          ;;
11511      esac
11512      fi
11513        ;;
11514
11515  dgux*)
11516    case $cc_basename in
11517      ec++*)
11518	# FIXME: insert proper C++ library support
11519	ld_shlibs_CXX=no
11520	;;
11521      ghcx*)
11522	# Green Hills C++ Compiler
11523	# FIXME: insert proper C++ library support
11524	ld_shlibs_CXX=no
11525	;;
11526      *)
11527	# FIXME: insert proper C++ library support
11528	ld_shlibs_CXX=no
11529	;;
11530    esac
11531    ;;
11532  freebsd[12]*)
11533    # C++ shared libraries reported to be fairly broken before switch to ELF
11534    ld_shlibs_CXX=no
11535    ;;
11536  freebsd-elf*)
11537    archive_cmds_need_lc_CXX=no
11538    ;;
11539  freebsd* | dragonfly*)
11540    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11541    # conventions
11542    ld_shlibs_CXX=yes
11543    ;;
11544  gnu*)
11545    ;;
11546  hpux9*)
11547    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11548    hardcode_libdir_separator_CXX=:
11549    export_dynamic_flag_spec_CXX='${wl}-E'
11550    hardcode_direct_CXX=yes
11551    hardcode_minus_L_CXX=yes # Not in the search PATH,
11552				# but as the default
11553				# location of the library.
11554
11555    case $cc_basename in
11556    CC*)
11557      # FIXME: insert proper C++ library support
11558      ld_shlibs_CXX=no
11559      ;;
11560    aCC*)
11561      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'
11562      # Commands to make compiler produce verbose output that lists
11563      # what "hidden" libraries, object files and flags are used when
11564      # linking a shared library.
11565      #
11566      # There doesn't appear to be a way to prevent this compiler from
11567      # explicitly linking system object files so we need to strip them
11568      # from the output so that they don't get included in the library
11569      # dependencies.
11570      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'
11571      ;;
11572    *)
11573      if test "$GXX" = yes; then
11574        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'
11575      else
11576        # FIXME: insert proper C++ library support
11577        ld_shlibs_CXX=no
11578      fi
11579      ;;
11580    esac
11581    ;;
11582  hpux10*|hpux11*)
11583    if test $with_gnu_ld = no; then
11584      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11585      hardcode_libdir_separator_CXX=:
11586
11587      case $host_cpu in
11588      hppa*64*|ia64*) ;;
11589      *)
11590	export_dynamic_flag_spec_CXX='${wl}-E'
11591        ;;
11592      esac
11593    fi
11594    case $host_cpu in
11595    hppa*64*|ia64*)
11596      hardcode_direct_CXX=no
11597      hardcode_shlibpath_var_CXX=no
11598      ;;
11599    *)
11600      hardcode_direct_CXX=yes
11601      hardcode_minus_L_CXX=yes # Not in the search PATH,
11602					      # but as the default
11603					      # location of the library.
11604      ;;
11605    esac
11606
11607    case $cc_basename in
11608      CC*)
11609	# FIXME: insert proper C++ library support
11610	ld_shlibs_CXX=no
11611	;;
11612      aCC*)
11613	case $host_cpu in
11614	hppa*64*)
11615	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11616	  ;;
11617	ia64*)
11618	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11619	  ;;
11620	*)
11621	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11622	  ;;
11623	esac
11624	# Commands to make compiler produce verbose output that lists
11625	# what "hidden" libraries, object files and flags are used when
11626	# linking a shared library.
11627	#
11628	# There doesn't appear to be a way to prevent this compiler from
11629	# explicitly linking system object files so we need to strip them
11630	# from the output so that they don't get included in the library
11631	# dependencies.
11632	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'
11633	;;
11634      *)
11635	if test "$GXX" = yes; then
11636	  if test $with_gnu_ld = no; then
11637	    case $host_cpu in
11638	    hppa*64*)
11639	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11640	      ;;
11641	    ia64*)
11642	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11643	      ;;
11644	    *)
11645	      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'
11646	      ;;
11647	    esac
11648	  fi
11649	else
11650	  # FIXME: insert proper C++ library support
11651	  ld_shlibs_CXX=no
11652	fi
11653	;;
11654    esac
11655    ;;
11656  interix[3-9]*)
11657    hardcode_direct_CXX=no
11658    hardcode_shlibpath_var_CXX=no
11659    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11660    export_dynamic_flag_spec_CXX='${wl}-E'
11661    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11662    # Instead, shared libraries are loaded at an image base (0x10000000 by
11663    # default) and relocated if they conflict, which is a slow very memory
11664    # consuming and fragmenting process.  To avoid this, we pick a random,
11665    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11666    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11667    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'
11668    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'
11669    ;;
11670  irix5* | irix6*)
11671    case $cc_basename in
11672      CC*)
11673	# SGI C++
11674	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'
11675
11676	# Archives containing C++ object files must be created using
11677	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11678	# necessary to make sure instantiated templates are included
11679	# in the archive.
11680	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11681	;;
11682      *)
11683	if test "$GXX" = yes; then
11684	  if test "$with_gnu_ld" = no; then
11685	    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'
11686	  else
11687	    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'
11688	  fi
11689	fi
11690	link_all_deplibs_CXX=yes
11691	;;
11692    esac
11693    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11694    hardcode_libdir_separator_CXX=:
11695    ;;
11696  linux* | k*bsd*-gnu)
11697    case $cc_basename in
11698      KCC*)
11699	# Kuck and Associates, Inc. (KAI) C++ Compiler
11700
11701	# KCC will only create a shared library if the output file
11702	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11703	# to its proper name (with version) after linking.
11704	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'
11705	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'
11706	# Commands to make compiler produce verbose output that lists
11707	# what "hidden" libraries, object files and flags are used when
11708	# linking a shared library.
11709	#
11710	# There doesn't appear to be a way to prevent this compiler from
11711	# explicitly linking system object files so we need to strip them
11712	# from the output so that they don't get included in the library
11713	# dependencies.
11714	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'
11715
11716	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11717	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11718
11719	# Archives containing C++ object files must be created using
11720	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11721	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11722	;;
11723      icpc*)
11724	# Intel C++
11725	with_gnu_ld=yes
11726	# version 8.0 and above of icpc choke on multiply defined symbols
11727	# if we add $predep_objects and $postdep_objects, however 7.1 and
11728	# earlier do not add the objects themselves.
11729	case `$CC -V 2>&1` in
11730	*"Version 7."*)
11731  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11732  	  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'
11733	  ;;
11734	*)  # Version 8.0 or newer
11735	  tmp_idyn=
11736	  case $host_cpu in
11737	    ia64*) tmp_idyn=' -i_dynamic';;
11738	  esac
11739  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11740	  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'
11741	  ;;
11742	esac
11743	archive_cmds_need_lc_CXX=no
11744	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11745	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11746	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11747	;;
11748      pgCC* | pgcpp*)
11749        # Portland Group C++ compiler
11750	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11751  	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'
11752
11753	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11754	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11755	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'
11756        ;;
11757      cxx*)
11758	# Compaq C++
11759	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11760	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'
11761
11762	runpath_var=LD_RUN_PATH
11763	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11764	hardcode_libdir_separator_CXX=:
11765
11766	# Commands to make compiler produce verbose output that lists
11767	# what "hidden" libraries, object files and flags are used when
11768	# linking a shared library.
11769	#
11770	# There doesn't appear to be a way to prevent this compiler from
11771	# explicitly linking system object files so we need to strip them
11772	# from the output so that they don't get included in the library
11773	# dependencies.
11774	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'
11775	;;
11776      *)
11777	case `$CC -V 2>&1 | sed 5q` in
11778	*Sun\ C*)
11779	  # Sun C++ 5.9
11780	  no_undefined_flag_CXX=' -zdefs'
11781	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11782	  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'
11783	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11784	  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'
11785
11786	  # Not sure whether something based on
11787	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11788	  # would be better.
11789	  output_verbose_link_cmd='echo'
11790
11791	  # Archives containing C++ object files must be created using
11792	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11793	  # necessary to make sure instantiated templates are included
11794	  # in the archive.
11795	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11796	  ;;
11797	esac
11798	;;
11799    esac
11800    ;;
11801  lynxos*)
11802    # FIXME: insert proper C++ library support
11803    ld_shlibs_CXX=no
11804    ;;
11805  m88k*)
11806    # FIXME: insert proper C++ library support
11807    ld_shlibs_CXX=no
11808    ;;
11809  mvs*)
11810    case $cc_basename in
11811      cxx*)
11812	# FIXME: insert proper C++ library support
11813	ld_shlibs_CXX=no
11814	;;
11815      *)
11816	# FIXME: insert proper C++ library support
11817	ld_shlibs_CXX=no
11818	;;
11819    esac
11820    ;;
11821  netbsd* | netbsdelf*-gnu)
11822    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11823      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11824      wlarc=
11825      hardcode_libdir_flag_spec_CXX='-R$libdir'
11826      hardcode_direct_CXX=yes
11827      hardcode_shlibpath_var_CXX=no
11828    fi
11829    # Workaround some broken pre-1.5 toolchains
11830    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11831    ;;
11832  openbsd2*)
11833    # C++ shared libraries are fairly broken
11834    ld_shlibs_CXX=no
11835    ;;
11836  openbsd*)
11837    if test -f /usr/libexec/ld.so; then
11838      hardcode_direct_CXX=yes
11839      hardcode_shlibpath_var_CXX=no
11840      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11841      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11842      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11843	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11844	export_dynamic_flag_spec_CXX='${wl}-E'
11845	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11846      fi
11847      output_verbose_link_cmd='echo'
11848    else
11849      ld_shlibs_CXX=no
11850    fi
11851    ;;
11852  osf3*)
11853    case $cc_basename in
11854      KCC*)
11855	# Kuck and Associates, Inc. (KAI) C++ Compiler
11856
11857	# KCC will only create a shared library if the output file
11858	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11859	# to its proper name (with version) after linking.
11860	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'
11861
11862	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11863	hardcode_libdir_separator_CXX=:
11864
11865	# Archives containing C++ object files must be created using
11866	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11867	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11868
11869	;;
11870      RCC*)
11871	# Rational C++ 2.4.1
11872	# FIXME: insert proper C++ library support
11873	ld_shlibs_CXX=no
11874	;;
11875      cxx*)
11876	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11877	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'
11878
11879	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11880	hardcode_libdir_separator_CXX=:
11881
11882	# Commands to make compiler produce verbose output that lists
11883	# what "hidden" libraries, object files and flags are used when
11884	# linking a shared library.
11885	#
11886	# There doesn't appear to be a way to prevent this compiler from
11887	# explicitly linking system object files so we need to strip them
11888	# from the output so that they don't get included in the library
11889	# dependencies.
11890	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'
11891	;;
11892      *)
11893	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11894	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11895	  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'
11896
11897	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11898	  hardcode_libdir_separator_CXX=:
11899
11900	  # Commands to make compiler produce verbose output that lists
11901	  # what "hidden" libraries, object files and flags are used when
11902	  # linking a shared library.
11903	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11904
11905	else
11906	  # FIXME: insert proper C++ library support
11907	  ld_shlibs_CXX=no
11908	fi
11909	;;
11910    esac
11911    ;;
11912  osf4* | osf5*)
11913    case $cc_basename in
11914      KCC*)
11915	# Kuck and Associates, Inc. (KAI) C++ Compiler
11916
11917	# KCC will only create a shared library if the output file
11918	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11919	# to its proper name (with version) after linking.
11920	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'
11921
11922	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11923	hardcode_libdir_separator_CXX=:
11924
11925	# Archives containing C++ object files must be created using
11926	# the KAI C++ compiler.
11927	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11928	;;
11929      RCC*)
11930	# Rational C++ 2.4.1
11931	# FIXME: insert proper C++ library support
11932	ld_shlibs_CXX=no
11933	;;
11934      cxx*)
11935	allow_undefined_flag_CXX=' -expect_unresolved \*'
11936	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'
11937	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11938	  echo "-hidden">> $lib.exp~
11939	  $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~
11940	  $rm $lib.exp'
11941
11942	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11943	hardcode_libdir_separator_CXX=:
11944
11945	# Commands to make compiler produce verbose output that lists
11946	# what "hidden" libraries, object files and flags are used when
11947	# linking a shared library.
11948	#
11949	# There doesn't appear to be a way to prevent this compiler from
11950	# explicitly linking system object files so we need to strip them
11951	# from the output so that they don't get included in the library
11952	# dependencies.
11953	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'
11954	;;
11955      *)
11956	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11957	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11958	 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'
11959
11960	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11961	  hardcode_libdir_separator_CXX=:
11962
11963	  # Commands to make compiler produce verbose output that lists
11964	  # what "hidden" libraries, object files and flags are used when
11965	  # linking a shared library.
11966	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11967
11968	else
11969	  # FIXME: insert proper C++ library support
11970	  ld_shlibs_CXX=no
11971	fi
11972	;;
11973    esac
11974    ;;
11975  psos*)
11976    # FIXME: insert proper C++ library support
11977    ld_shlibs_CXX=no
11978    ;;
11979  sunos4*)
11980    case $cc_basename in
11981      CC*)
11982	# Sun C++ 4.x
11983	# FIXME: insert proper C++ library support
11984	ld_shlibs_CXX=no
11985	;;
11986      lcc*)
11987	# Lucid
11988	# FIXME: insert proper C++ library support
11989	ld_shlibs_CXX=no
11990	;;
11991      *)
11992	# FIXME: insert proper C++ library support
11993	ld_shlibs_CXX=no
11994	;;
11995    esac
11996    ;;
11997  solaris*)
11998    case $cc_basename in
11999      CC*)
12000	# Sun C++ 4.2, 5.x and Centerline C++
12001        archive_cmds_need_lc_CXX=yes
12002	no_undefined_flag_CXX=' -zdefs'
12003	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12004	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12005	$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'
12006
12007	hardcode_libdir_flag_spec_CXX='-R$libdir'
12008	hardcode_shlibpath_var_CXX=no
12009	case $host_os in
12010	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12011	  *)
12012	    # The compiler driver will combine and reorder linker options,
12013	    # but understands `-z linker_flag'.
12014	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12015	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12016	    ;;
12017	esac
12018	link_all_deplibs_CXX=yes
12019
12020	output_verbose_link_cmd='echo'
12021
12022	# Archives containing C++ object files must be created using
12023	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12024	# necessary to make sure instantiated templates are included
12025	# in the archive.
12026	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12027	;;
12028      gcx*)
12029	# Green Hills C++ Compiler
12030	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12031
12032	# The C++ compiler must be used to create the archive.
12033	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12034	;;
12035      *)
12036	# GNU C++ compiler with Solaris linker
12037	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12038	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12039	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12040	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12041	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12042		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12043
12044	    # Commands to make compiler produce verbose output that lists
12045	    # what "hidden" libraries, object files and flags are used when
12046	    # linking a shared library.
12047	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12048	  else
12049	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12050	    # platform.
12051	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12052	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12053		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12054
12055	    # Commands to make compiler produce verbose output that lists
12056	    # what "hidden" libraries, object files and flags are used when
12057	    # linking a shared library.
12058	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12059	  fi
12060
12061	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12062	  case $host_os in
12063	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12064	  *)
12065	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12066	    ;;
12067	  esac
12068	fi
12069	;;
12070    esac
12071    ;;
12072  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12073    no_undefined_flag_CXX='${wl}-z,text'
12074    archive_cmds_need_lc_CXX=no
12075    hardcode_shlibpath_var_CXX=no
12076    runpath_var='LD_RUN_PATH'
12077
12078    case $cc_basename in
12079      CC*)
12080	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12081	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12082	;;
12083      *)
12084	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12085	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12086	;;
12087    esac
12088    ;;
12089  sysv5* | sco3.2v5* | sco5v6*)
12090    # Note: We can NOT use -z defs as we might desire, because we do not
12091    # link with -lc, and that would cause any symbols used from libc to
12092    # always be unresolved, which means just about no library would
12093    # ever link correctly.  If we're not using GNU ld we use -z text
12094    # though, which does catch some bad symbols but isn't as heavy-handed
12095    # as -z defs.
12096    # For security reasons, it is highly recommended that you always
12097    # use absolute paths for naming shared libraries, and exclude the
12098    # DT_RUNPATH tag from executables and libraries.  But doing so
12099    # requires that you compile everything twice, which is a pain.
12100    # So that behaviour is only enabled if SCOABSPATH is set to a
12101    # non-empty value in the environment.  Most likely only useful for
12102    # creating official distributions of packages.
12103    # This is a hack until libtool officially supports absolute path
12104    # names for shared libraries.
12105    no_undefined_flag_CXX='${wl}-z,text'
12106    allow_undefined_flag_CXX='${wl}-z,nodefs'
12107    archive_cmds_need_lc_CXX=no
12108    hardcode_shlibpath_var_CXX=no
12109    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12110    hardcode_libdir_separator_CXX=':'
12111    link_all_deplibs_CXX=yes
12112    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12113    runpath_var='LD_RUN_PATH'
12114
12115    case $cc_basename in
12116      CC*)
12117	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12118	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12119	;;
12120      *)
12121	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12122	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12123	;;
12124    esac
12125    ;;
12126  tandem*)
12127    case $cc_basename in
12128      NCC*)
12129	# NonStop-UX NCC 3.20
12130	# FIXME: insert proper C++ library support
12131	ld_shlibs_CXX=no
12132	;;
12133      *)
12134	# FIXME: insert proper C++ library support
12135	ld_shlibs_CXX=no
12136	;;
12137    esac
12138    ;;
12139  vxworks*)
12140    # FIXME: insert proper C++ library support
12141    ld_shlibs_CXX=no
12142    ;;
12143  *)
12144    # FIXME: insert proper C++ library support
12145    ld_shlibs_CXX=no
12146    ;;
12147esac
12148{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12149echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12150test "$ld_shlibs_CXX" = no && can_build_shared=no
12151
12152GCC_CXX="$GXX"
12153LD_CXX="$LD"
12154
12155cat > conftest.$ac_ext <<EOF
12156class Foo
12157{
12158public:
12159  Foo (void) { a = 0; }
12160private:
12161  int a;
12162};
12163EOF
12164
12165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12166  (eval $ac_compile) 2>&5
12167  ac_status=$?
12168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169  (exit $ac_status); }; then
12170  # Parse the compiler output and extract the necessary
12171  # objects, libraries and library flags.
12172
12173  # Sentinel used to keep track of whether or not we are before
12174  # the conftest object file.
12175  pre_test_object_deps_done=no
12176
12177  # The `*' in the case matches for architectures that use `case' in
12178  # $output_verbose_cmd can trigger glob expansion during the loop
12179  # eval without this substitution.
12180  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12181
12182  for p in `eval $output_verbose_link_cmd`; do
12183    case $p in
12184
12185    -L* | -R* | -l*)
12186       # Some compilers place space between "-{L,R}" and the path.
12187       # Remove the space.
12188       if test $p = "-L" \
12189	  || test $p = "-R"; then
12190	 prev=$p
12191	 continue
12192       else
12193	 prev=
12194       fi
12195
12196       if test "$pre_test_object_deps_done" = no; then
12197	 case $p in
12198	 -L* | -R*)
12199	   # Internal compiler library paths should come after those
12200	   # provided the user.  The postdeps already come after the
12201	   # user supplied libs so there is no need to process them.
12202	   if test -z "$compiler_lib_search_path_CXX"; then
12203	     compiler_lib_search_path_CXX="${prev}${p}"
12204	   else
12205	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12206	   fi
12207	   ;;
12208	 # The "-l" case would never come before the object being
12209	 # linked, so don't bother handling this case.
12210	 esac
12211       else
12212	 if test -z "$postdeps_CXX"; then
12213	   postdeps_CXX="${prev}${p}"
12214	 else
12215	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12216	 fi
12217       fi
12218       ;;
12219
12220    *.$objext)
12221       # This assumes that the test object file only shows up
12222       # once in the compiler output.
12223       if test "$p" = "conftest.$objext"; then
12224	 pre_test_object_deps_done=yes
12225	 continue
12226       fi
12227
12228       if test "$pre_test_object_deps_done" = no; then
12229	 if test -z "$predep_objects_CXX"; then
12230	   predep_objects_CXX="$p"
12231	 else
12232	   predep_objects_CXX="$predep_objects_CXX $p"
12233	 fi
12234       else
12235	 if test -z "$postdep_objects_CXX"; then
12236	   postdep_objects_CXX="$p"
12237	 else
12238	   postdep_objects_CXX="$postdep_objects_CXX $p"
12239	 fi
12240       fi
12241       ;;
12242
12243    *) ;; # Ignore the rest.
12244
12245    esac
12246  done
12247
12248  # Clean up.
12249  rm -f a.out a.exe
12250else
12251  echo "libtool.m4: error: problem compiling CXX test program"
12252fi
12253
12254$rm -f confest.$objext
12255
12256compiler_lib_search_dirs_CXX=
12257if test -n "$compiler_lib_search_path_CXX"; then
12258  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12259fi
12260
12261# PORTME: override above test on systems where it is broken
12262case $host_os in
12263interix[3-9]*)
12264  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12265  # hack all around it, let's just trust "g++" to DTRT.
12266  predep_objects_CXX=
12267  postdep_objects_CXX=
12268  postdeps_CXX=
12269  ;;
12270
12271linux*)
12272  case `$CC -V 2>&1 | sed 5q` in
12273  *Sun\ C*)
12274    # Sun C++ 5.9
12275    #
12276    # The more standards-conforming stlport4 library is
12277    # incompatible with the Cstd library. Avoid specifying
12278    # it if it's in CXXFLAGS. Ignore libCrun as
12279    # -library=stlport4 depends on it.
12280    case " $CXX $CXXFLAGS " in
12281    *" -library=stlport4 "*)
12282      solaris_use_stlport4=yes
12283      ;;
12284    esac
12285    if test "$solaris_use_stlport4" != yes; then
12286      postdeps_CXX='-library=Cstd -library=Crun'
12287    fi
12288    ;;
12289  esac
12290  ;;
12291
12292solaris*)
12293  case $cc_basename in
12294  CC*)
12295    # The more standards-conforming stlport4 library is
12296    # incompatible with the Cstd library. Avoid specifying
12297    # it if it's in CXXFLAGS. Ignore libCrun as
12298    # -library=stlport4 depends on it.
12299    case " $CXX $CXXFLAGS " in
12300    *" -library=stlport4 "*)
12301      solaris_use_stlport4=yes
12302      ;;
12303    esac
12304
12305    # Adding this requires a known-good setup of shared libraries for
12306    # Sun compiler versions before 5.6, else PIC objects from an old
12307    # archive will be linked into the output, leading to subtle bugs.
12308    if test "$solaris_use_stlport4" != yes; then
12309      postdeps_CXX='-library=Cstd -library=Crun'
12310    fi
12311    ;;
12312  esac
12313  ;;
12314esac
12315
12316case " $postdeps_CXX " in
12317*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12318esac
12319
12320lt_prog_compiler_wl_CXX=
12321lt_prog_compiler_pic_CXX=
12322lt_prog_compiler_static_CXX=
12323
12324{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12325echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12326
12327  # C++ specific cases for pic, static, wl, etc.
12328  if test "$GXX" = yes; then
12329    lt_prog_compiler_wl_CXX='-Wl,'
12330    lt_prog_compiler_static_CXX='-static'
12331
12332    case $host_os in
12333    aix*)
12334      # All AIX code is PIC.
12335      if test "$host_cpu" = ia64; then
12336	# AIX 5 now supports IA64 processor
12337	lt_prog_compiler_static_CXX='-Bstatic'
12338      fi
12339      ;;
12340    amigaos*)
12341      # FIXME: we need at least 68020 code to build shared libraries, but
12342      # adding the `-m68020' flag to GCC prevents building anything better,
12343      # like `-m68040'.
12344      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12345      ;;
12346    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12347      # PIC is the default for these OSes.
12348      ;;
12349    mingw* | cygwin* | os2* | pw32*)
12350      # This hack is so that the source file can tell whether it is being
12351      # built for inclusion in a dll (and should export symbols for example).
12352      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12353      # (--disable-auto-import) libraries
12354      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12355      ;;
12356    darwin* | rhapsody*)
12357      # PIC is the default on this platform
12358      # Common symbols not allowed in MH_DYLIB files
12359      lt_prog_compiler_pic_CXX='-fno-common'
12360      ;;
12361    *djgpp*)
12362      # DJGPP does not support shared libraries at all
12363      lt_prog_compiler_pic_CXX=
12364      ;;
12365    interix[3-9]*)
12366      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12367      # Instead, we relocate shared libraries at runtime.
12368      ;;
12369    sysv4*MP*)
12370      if test -d /usr/nec; then
12371	lt_prog_compiler_pic_CXX=-Kconform_pic
12372      fi
12373      ;;
12374    hpux*)
12375      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12376      # not for PA HP-UX.
12377      case $host_cpu in
12378      hppa*64*|ia64*)
12379	;;
12380      *)
12381	lt_prog_compiler_pic_CXX='-fPIC'
12382	;;
12383      esac
12384      ;;
12385    *)
12386      lt_prog_compiler_pic_CXX='-fPIC'
12387      ;;
12388    esac
12389  else
12390    case $host_os in
12391      aix[4-9]*)
12392	# All AIX code is PIC.
12393	if test "$host_cpu" = ia64; then
12394	  # AIX 5 now supports IA64 processor
12395	  lt_prog_compiler_static_CXX='-Bstatic'
12396	else
12397	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12398	fi
12399	;;
12400      chorus*)
12401	case $cc_basename in
12402	cxch68*)
12403	  # Green Hills C++ Compiler
12404	  # _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"
12405	  ;;
12406	esac
12407	;;
12408       darwin*)
12409         # PIC is the default on this platform
12410         # Common symbols not allowed in MH_DYLIB files
12411         case $cc_basename in
12412           xlc*)
12413           lt_prog_compiler_pic_CXX='-qnocommon'
12414           lt_prog_compiler_wl_CXX='-Wl,'
12415           ;;
12416         esac
12417       ;;
12418      dgux*)
12419	case $cc_basename in
12420	  ec++*)
12421	    lt_prog_compiler_pic_CXX='-KPIC'
12422	    ;;
12423	  ghcx*)
12424	    # Green Hills C++ Compiler
12425	    lt_prog_compiler_pic_CXX='-pic'
12426	    ;;
12427	  *)
12428	    ;;
12429	esac
12430	;;
12431      freebsd* | dragonfly*)
12432	# FreeBSD uses GNU C++
12433	;;
12434      hpux9* | hpux10* | hpux11*)
12435	case $cc_basename in
12436	  CC*)
12437	    lt_prog_compiler_wl_CXX='-Wl,'
12438	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12439	    if test "$host_cpu" != ia64; then
12440	      lt_prog_compiler_pic_CXX='+Z'
12441	    fi
12442	    ;;
12443	  aCC*)
12444	    lt_prog_compiler_wl_CXX='-Wl,'
12445	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12446	    case $host_cpu in
12447	    hppa*64*|ia64*)
12448	      # +Z the default
12449	      ;;
12450	    *)
12451	      lt_prog_compiler_pic_CXX='+Z'
12452	      ;;
12453	    esac
12454	    ;;
12455	  *)
12456	    ;;
12457	esac
12458	;;
12459      interix*)
12460	# This is c89, which is MS Visual C++ (no shared libs)
12461	# Anyone wants to do a port?
12462	;;
12463      irix5* | irix6* | nonstopux*)
12464	case $cc_basename in
12465	  CC*)
12466	    lt_prog_compiler_wl_CXX='-Wl,'
12467	    lt_prog_compiler_static_CXX='-non_shared'
12468	    # CC pic flag -KPIC is the default.
12469	    ;;
12470	  *)
12471	    ;;
12472	esac
12473	;;
12474      linux* | k*bsd*-gnu)
12475	case $cc_basename in
12476	  KCC*)
12477	    # KAI C++ Compiler
12478	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12479	    lt_prog_compiler_pic_CXX='-fPIC'
12480	    ;;
12481	  icpc* | ecpc*)
12482	    # Intel C++
12483	    lt_prog_compiler_wl_CXX='-Wl,'
12484	    lt_prog_compiler_pic_CXX='-KPIC'
12485	    lt_prog_compiler_static_CXX='-static'
12486	    ;;
12487	  pgCC* | pgcpp*)
12488	    # Portland Group C++ compiler.
12489	    lt_prog_compiler_wl_CXX='-Wl,'
12490	    lt_prog_compiler_pic_CXX='-fpic'
12491	    lt_prog_compiler_static_CXX='-Bstatic'
12492	    ;;
12493	  cxx*)
12494	    # Compaq C++
12495	    # Make sure the PIC flag is empty.  It appears that all Alpha
12496	    # Linux and Compaq Tru64 Unix objects are PIC.
12497	    lt_prog_compiler_pic_CXX=
12498	    lt_prog_compiler_static_CXX='-non_shared'
12499	    ;;
12500	  *)
12501	    case `$CC -V 2>&1 | sed 5q` in
12502	    *Sun\ C*)
12503	      # Sun C++ 5.9
12504	      lt_prog_compiler_pic_CXX='-KPIC'
12505	      lt_prog_compiler_static_CXX='-Bstatic'
12506	      lt_prog_compiler_wl_CXX='-Qoption ld '
12507	      ;;
12508	    esac
12509	    ;;
12510	esac
12511	;;
12512      lynxos*)
12513	;;
12514      m88k*)
12515	;;
12516      mvs*)
12517	case $cc_basename in
12518	  cxx*)
12519	    lt_prog_compiler_pic_CXX='-W c,exportall'
12520	    ;;
12521	  *)
12522	    ;;
12523	esac
12524	;;
12525      netbsd* | netbsdelf*-gnu)
12526	;;
12527      osf3* | osf4* | osf5*)
12528	case $cc_basename in
12529	  KCC*)
12530	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12531	    ;;
12532	  RCC*)
12533	    # Rational C++ 2.4.1
12534	    lt_prog_compiler_pic_CXX='-pic'
12535	    ;;
12536	  cxx*)
12537	    # Digital/Compaq C++
12538	    lt_prog_compiler_wl_CXX='-Wl,'
12539	    # Make sure the PIC flag is empty.  It appears that all Alpha
12540	    # Linux and Compaq Tru64 Unix objects are PIC.
12541	    lt_prog_compiler_pic_CXX=
12542	    lt_prog_compiler_static_CXX='-non_shared'
12543	    ;;
12544	  *)
12545	    ;;
12546	esac
12547	;;
12548      psos*)
12549	;;
12550      solaris*)
12551	case $cc_basename in
12552	  CC*)
12553	    # Sun C++ 4.2, 5.x and Centerline C++
12554	    lt_prog_compiler_pic_CXX='-KPIC'
12555	    lt_prog_compiler_static_CXX='-Bstatic'
12556	    lt_prog_compiler_wl_CXX='-Qoption ld '
12557	    ;;
12558	  gcx*)
12559	    # Green Hills C++ Compiler
12560	    lt_prog_compiler_pic_CXX='-PIC'
12561	    ;;
12562	  *)
12563	    ;;
12564	esac
12565	;;
12566      sunos4*)
12567	case $cc_basename in
12568	  CC*)
12569	    # Sun C++ 4.x
12570	    lt_prog_compiler_pic_CXX='-pic'
12571	    lt_prog_compiler_static_CXX='-Bstatic'
12572	    ;;
12573	  lcc*)
12574	    # Lucid
12575	    lt_prog_compiler_pic_CXX='-pic'
12576	    ;;
12577	  *)
12578	    ;;
12579	esac
12580	;;
12581      tandem*)
12582	case $cc_basename in
12583	  NCC*)
12584	    # NonStop-UX NCC 3.20
12585	    lt_prog_compiler_pic_CXX='-KPIC'
12586	    ;;
12587	  *)
12588	    ;;
12589	esac
12590	;;
12591      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12592	case $cc_basename in
12593	  CC*)
12594	    lt_prog_compiler_wl_CXX='-Wl,'
12595	    lt_prog_compiler_pic_CXX='-KPIC'
12596	    lt_prog_compiler_static_CXX='-Bstatic'
12597	    ;;
12598	esac
12599	;;
12600      vxworks*)
12601	;;
12602      *)
12603	lt_prog_compiler_can_build_shared_CXX=no
12604	;;
12605    esac
12606  fi
12607
12608{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12609echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12610
12611#
12612# Check to make sure the PIC flag actually works.
12613#
12614if test -n "$lt_prog_compiler_pic_CXX"; then
12615
12616{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12617echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12618if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12619  echo $ECHO_N "(cached) $ECHO_C" >&6
12620else
12621  lt_cv_prog_compiler_pic_works_CXX=no
12622  ac_outfile=conftest.$ac_objext
12623   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12624   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12625   # Insert the option either (1) after the last *FLAGS variable, or
12626   # (2) before a word containing "conftest.", or (3) at the end.
12627   # Note that $ac_compile itself does not contain backslashes and begins
12628   # with a dollar sign (not a hyphen), so the echo should work correctly.
12629   # The option is referenced via a variable to avoid confusing sed.
12630   lt_compile=`echo "$ac_compile" | $SED \
12631   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12632   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12633   -e 's:$: $lt_compiler_flag:'`
12634   (eval echo "\"\$as_me:12634: $lt_compile\"" >&5)
12635   (eval "$lt_compile" 2>conftest.err)
12636   ac_status=$?
12637   cat conftest.err >&5
12638   echo "$as_me:12638: \$? = $ac_status" >&5
12639   if (exit $ac_status) && test -s "$ac_outfile"; then
12640     # The compiler can only warn and ignore the option if not recognized
12641     # So say no if there are warnings other than the usual output.
12642     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12643     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12644     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12645       lt_cv_prog_compiler_pic_works_CXX=yes
12646     fi
12647   fi
12648   $rm conftest*
12649
12650fi
12651{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12652echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12653
12654if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12655    case $lt_prog_compiler_pic_CXX in
12656     "" | " "*) ;;
12657     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12658     esac
12659else
12660    lt_prog_compiler_pic_CXX=
12661     lt_prog_compiler_can_build_shared_CXX=no
12662fi
12663
12664fi
12665case $host_os in
12666  # For platforms which do not support PIC, -DPIC is meaningless:
12667  *djgpp*)
12668    lt_prog_compiler_pic_CXX=
12669    ;;
12670  *)
12671    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12672    ;;
12673esac
12674
12675#
12676# Check to make sure the static flag actually works.
12677#
12678wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12679{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12680echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12681if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12682  echo $ECHO_N "(cached) $ECHO_C" >&6
12683else
12684  lt_cv_prog_compiler_static_works_CXX=no
12685   save_LDFLAGS="$LDFLAGS"
12686   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12687   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12688   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12689     # The linker can only warn and ignore the option if not recognized
12690     # So say no if there are warnings
12691     if test -s conftest.err; then
12692       # Append any errors to the config.log.
12693       cat conftest.err 1>&5
12694       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12695       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12696       if diff conftest.exp conftest.er2 >/dev/null; then
12697         lt_cv_prog_compiler_static_works_CXX=yes
12698       fi
12699     else
12700       lt_cv_prog_compiler_static_works_CXX=yes
12701     fi
12702   fi
12703   $rm -r conftest*
12704   LDFLAGS="$save_LDFLAGS"
12705
12706fi
12707{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12708echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12709
12710if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12711    :
12712else
12713    lt_prog_compiler_static_CXX=
12714fi
12715
12716
12717{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12718echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12719if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12720  echo $ECHO_N "(cached) $ECHO_C" >&6
12721else
12722  lt_cv_prog_compiler_c_o_CXX=no
12723   $rm -r conftest 2>/dev/null
12724   mkdir conftest
12725   cd conftest
12726   mkdir out
12727   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12728
12729   lt_compiler_flag="-o out/conftest2.$ac_objext"
12730   # Insert the option either (1) after the last *FLAGS variable, or
12731   # (2) before a word containing "conftest.", or (3) at the end.
12732   # Note that $ac_compile itself does not contain backslashes and begins
12733   # with a dollar sign (not a hyphen), so the echo should work correctly.
12734   lt_compile=`echo "$ac_compile" | $SED \
12735   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12736   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12737   -e 's:$: $lt_compiler_flag:'`
12738   (eval echo "\"\$as_me:12738: $lt_compile\"" >&5)
12739   (eval "$lt_compile" 2>out/conftest.err)
12740   ac_status=$?
12741   cat out/conftest.err >&5
12742   echo "$as_me:12742: \$? = $ac_status" >&5
12743   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12744   then
12745     # The compiler can only warn and ignore the option if not recognized
12746     # So say no if there are warnings
12747     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12748     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12749     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12750       lt_cv_prog_compiler_c_o_CXX=yes
12751     fi
12752   fi
12753   chmod u+w . 2>&5
12754   $rm conftest*
12755   # SGI C++ compiler will create directory out/ii_files/ for
12756   # template instantiation
12757   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12758   $rm out/* && rmdir out
12759   cd ..
12760   rmdir conftest
12761   $rm conftest*
12762
12763fi
12764{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12765echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12766
12767
12768hard_links="nottested"
12769if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12770  # do not overwrite the value of need_locks provided by the user
12771  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12772echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12773  hard_links=yes
12774  $rm conftest*
12775  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12776  touch conftest.a
12777  ln conftest.a conftest.b 2>&5 || hard_links=no
12778  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12779  { echo "$as_me:$LINENO: result: $hard_links" >&5
12780echo "${ECHO_T}$hard_links" >&6; }
12781  if test "$hard_links" = no; then
12782    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12783echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12784    need_locks=warn
12785  fi
12786else
12787  need_locks=no
12788fi
12789
12790{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12791echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12792
12793  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12794  case $host_os in
12795  aix[4-9]*)
12796    # If we're using GNU nm, then we don't want the "-C" option.
12797    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12798    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12799      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'
12800    else
12801      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'
12802    fi
12803    ;;
12804  pw32*)
12805    export_symbols_cmds_CXX="$ltdll_cmds"
12806  ;;
12807  cygwin* | mingw*)
12808    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'
12809  ;;
12810  linux* | k*bsd*-gnu)
12811    link_all_deplibs_CXX=no
12812  ;;
12813  *)
12814    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12815  ;;
12816  esac
12817  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12818
12819{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12820echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12821test "$ld_shlibs_CXX" = no && can_build_shared=no
12822
12823#
12824# Do we need to explicitly link libc?
12825#
12826case "x$archive_cmds_need_lc_CXX" in
12827x|xyes)
12828  # Assume -lc should be added
12829  archive_cmds_need_lc_CXX=yes
12830
12831  if test "$enable_shared" = yes && test "$GCC" = yes; then
12832    case $archive_cmds_CXX in
12833    *'~'*)
12834      # FIXME: we may have to deal with multi-command sequences.
12835      ;;
12836    '$CC '*)
12837      # Test whether the compiler implicitly links with -lc since on some
12838      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12839      # to ld, don't add -lc before -lgcc.
12840      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12841echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12842      $rm conftest*
12843      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12844
12845      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12846  (eval $ac_compile) 2>&5
12847  ac_status=$?
12848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849  (exit $ac_status); } 2>conftest.err; then
12850        soname=conftest
12851        lib=conftest
12852        libobjs=conftest.$ac_objext
12853        deplibs=
12854        wl=$lt_prog_compiler_wl_CXX
12855	pic_flag=$lt_prog_compiler_pic_CXX
12856        compiler_flags=-v
12857        linker_flags=-v
12858        verstring=
12859        output_objdir=.
12860        libname=conftest
12861        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12862        allow_undefined_flag_CXX=
12863        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12864  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12865  ac_status=$?
12866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867  (exit $ac_status); }
12868        then
12869	  archive_cmds_need_lc_CXX=no
12870        else
12871	  archive_cmds_need_lc_CXX=yes
12872        fi
12873        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12874      else
12875        cat conftest.err 1>&5
12876      fi
12877      $rm conftest*
12878      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12879echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12880      ;;
12881    esac
12882  fi
12883  ;;
12884esac
12885
12886{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12887echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12888library_names_spec=
12889libname_spec='lib$name'
12890soname_spec=
12891shrext_cmds=".so"
12892postinstall_cmds=
12893postuninstall_cmds=
12894finish_cmds=
12895finish_eval=
12896shlibpath_var=
12897shlibpath_overrides_runpath=unknown
12898version_type=none
12899dynamic_linker="$host_os ld.so"
12900sys_lib_dlsearch_path_spec="/lib /usr/lib"
12901
12902need_lib_prefix=unknown
12903hardcode_into_libs=no
12904
12905# when you set need_version to no, make sure it does not cause -set_version
12906# flags to be left without arguments
12907need_version=unknown
12908
12909case $host_os in
12910aix3*)
12911  version_type=linux
12912  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12913  shlibpath_var=LIBPATH
12914
12915  # AIX 3 has no versioning support, so we append a major version to the name.
12916  soname_spec='${libname}${release}${shared_ext}$major'
12917  ;;
12918
12919aix[4-9]*)
12920  version_type=linux
12921  need_lib_prefix=no
12922  need_version=no
12923  hardcode_into_libs=yes
12924  if test "$host_cpu" = ia64; then
12925    # AIX 5 supports IA64
12926    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12927    shlibpath_var=LD_LIBRARY_PATH
12928  else
12929    # With GCC up to 2.95.x, collect2 would create an import file
12930    # for dependence libraries.  The import file would start with
12931    # the line `#! .'.  This would cause the generated library to
12932    # depend on `.', always an invalid library.  This was fixed in
12933    # development snapshots of GCC prior to 3.0.
12934    case $host_os in
12935      aix4 | aix4.[01] | aix4.[01].*)
12936      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12937	   echo ' yes '
12938	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12939	:
12940      else
12941	can_build_shared=no
12942      fi
12943      ;;
12944    esac
12945    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12946    # soname into executable. Probably we can add versioning support to
12947    # collect2, so additional links can be useful in future.
12948    if test "$aix_use_runtimelinking" = yes; then
12949      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12950      # instead of lib<name>.a to let people know that these are not
12951      # typical AIX shared libraries.
12952      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12953    else
12954      # We preserve .a as extension for shared libraries through AIX4.2
12955      # and later when we are not doing run time linking.
12956      library_names_spec='${libname}${release}.a $libname.a'
12957      soname_spec='${libname}${release}${shared_ext}$major'
12958    fi
12959    shlibpath_var=LIBPATH
12960  fi
12961  ;;
12962
12963amigaos*)
12964  library_names_spec='$libname.ixlibrary $libname.a'
12965  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12966  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'
12967  ;;
12968
12969beos*)
12970  library_names_spec='${libname}${shared_ext}'
12971  dynamic_linker="$host_os ld.so"
12972  shlibpath_var=LIBRARY_PATH
12973  ;;
12974
12975bsdi[45]*)
12976  version_type=linux
12977  need_version=no
12978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12979  soname_spec='${libname}${release}${shared_ext}$major'
12980  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12981  shlibpath_var=LD_LIBRARY_PATH
12982  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12983  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12984  # the default ld.so.conf also contains /usr/contrib/lib and
12985  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12986  # libtool to hard-code these into programs
12987  ;;
12988
12989cygwin* | mingw* | pw32*)
12990  version_type=windows
12991  shrext_cmds=".dll"
12992  need_version=no
12993  need_lib_prefix=no
12994
12995  case $GCC,$host_os in
12996  yes,cygwin* | yes,mingw* | yes,pw32*)
12997    library_names_spec='$libname.dll.a'
12998    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12999    postinstall_cmds='base_file=`basename \${file}`~
13000      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13001      dldir=$destdir/`dirname \$dlpath`~
13002      test -d \$dldir || mkdir -p \$dldir~
13003      $install_prog $dir/$dlname \$dldir/$dlname~
13004      chmod a+x \$dldir/$dlname'
13005    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13006      dlpath=$dir/\$dldll~
13007       $rm \$dlpath'
13008    shlibpath_overrides_runpath=yes
13009
13010    case $host_os in
13011    cygwin*)
13012      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13013      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13014      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13015      ;;
13016    mingw*)
13017      # MinGW DLLs use traditional 'lib' prefix
13018      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13019      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13020      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13021        # It is most probably a Windows format PATH printed by
13022        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13023        # path with ; separators, and with drive letters. We can handle the
13024        # drive letters (cygwin fileutils understands them), so leave them,
13025        # especially as we might pass files found there to a mingw objdump,
13026        # which wouldn't understand a cygwinified path. Ahh.
13027        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13028      else
13029        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13030      fi
13031      ;;
13032    pw32*)
13033      # pw32 DLLs use 'pw' prefix rather than 'lib'
13034      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13035      ;;
13036    esac
13037    ;;
13038
13039  *)
13040    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13041    ;;
13042  esac
13043  dynamic_linker='Win32 ld.exe'
13044  # FIXME: first we should search . and the directory the executable is in
13045  shlibpath_var=PATH
13046  ;;
13047
13048darwin* | rhapsody*)
13049  dynamic_linker="$host_os dyld"
13050  version_type=darwin
13051  need_lib_prefix=no
13052  need_version=no
13053  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13054  soname_spec='${libname}${release}${major}$shared_ext'
13055  shlibpath_overrides_runpath=yes
13056  shlibpath_var=DYLD_LIBRARY_PATH
13057  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13058
13059  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13060  ;;
13061
13062dgux*)
13063  version_type=linux
13064  need_lib_prefix=no
13065  need_version=no
13066  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13067  soname_spec='${libname}${release}${shared_ext}$major'
13068  shlibpath_var=LD_LIBRARY_PATH
13069  ;;
13070
13071freebsd1*)
13072  dynamic_linker=no
13073  ;;
13074
13075freebsd* | dragonfly*)
13076  # DragonFly does not have aout.  When/if they implement a new
13077  # versioning mechanism, adjust this.
13078  if test -x /usr/bin/objformat; then
13079    objformat=`/usr/bin/objformat`
13080  else
13081    case $host_os in
13082    freebsd[123]*) objformat=aout ;;
13083    *) objformat=elf ;;
13084    esac
13085  fi
13086  version_type=freebsd-$objformat
13087  case $version_type in
13088    freebsd-elf*)
13089      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13090      need_version=no
13091      need_lib_prefix=no
13092      ;;
13093    freebsd-*)
13094      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13095      need_version=yes
13096      ;;
13097  esac
13098  shlibpath_var=LD_LIBRARY_PATH
13099  case $host_os in
13100  freebsd2*)
13101    shlibpath_overrides_runpath=yes
13102    ;;
13103  freebsd3.[01]* | freebsdelf3.[01]*)
13104    shlibpath_overrides_runpath=yes
13105    hardcode_into_libs=yes
13106    ;;
13107  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13108  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13109    shlibpath_overrides_runpath=no
13110    hardcode_into_libs=yes
13111    ;;
13112  *) # from 4.6 on, and DragonFly
13113    shlibpath_overrides_runpath=yes
13114    hardcode_into_libs=yes
13115    ;;
13116  esac
13117  ;;
13118
13119gnu*)
13120  version_type=linux
13121  need_lib_prefix=no
13122  need_version=no
13123  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13124  soname_spec='${libname}${release}${shared_ext}$major'
13125  shlibpath_var=LD_LIBRARY_PATH
13126  hardcode_into_libs=yes
13127  ;;
13128
13129hpux9* | hpux10* | hpux11*)
13130  # Give a soname corresponding to the major version so that dld.sl refuses to
13131  # link against other versions.
13132  version_type=sunos
13133  need_lib_prefix=no
13134  need_version=no
13135  case $host_cpu in
13136  ia64*)
13137    shrext_cmds='.so'
13138    hardcode_into_libs=yes
13139    dynamic_linker="$host_os dld.so"
13140    shlibpath_var=LD_LIBRARY_PATH
13141    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13142    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13143    soname_spec='${libname}${release}${shared_ext}$major'
13144    if test "X$HPUX_IA64_MODE" = X32; then
13145      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13146    else
13147      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13148    fi
13149    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13150    ;;
13151   hppa*64*)
13152     shrext_cmds='.sl'
13153     hardcode_into_libs=yes
13154     dynamic_linker="$host_os dld.sl"
13155     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13156     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13157     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13158     soname_spec='${libname}${release}${shared_ext}$major'
13159     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13160     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13161     ;;
13162   *)
13163    shrext_cmds='.sl'
13164    dynamic_linker="$host_os dld.sl"
13165    shlibpath_var=SHLIB_PATH
13166    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13167    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13168    soname_spec='${libname}${release}${shared_ext}$major'
13169    ;;
13170  esac
13171  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13172  postinstall_cmds='chmod 555 $lib'
13173  ;;
13174
13175interix[3-9]*)
13176  version_type=linux
13177  need_lib_prefix=no
13178  need_version=no
13179  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13180  soname_spec='${libname}${release}${shared_ext}$major'
13181  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13182  shlibpath_var=LD_LIBRARY_PATH
13183  shlibpath_overrides_runpath=no
13184  hardcode_into_libs=yes
13185  ;;
13186
13187irix5* | irix6* | nonstopux*)
13188  case $host_os in
13189    nonstopux*) version_type=nonstopux ;;
13190    *)
13191	if test "$lt_cv_prog_gnu_ld" = yes; then
13192		version_type=linux
13193	else
13194		version_type=irix
13195	fi ;;
13196  esac
13197  need_lib_prefix=no
13198  need_version=no
13199  soname_spec='${libname}${release}${shared_ext}$major'
13200  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13201  case $host_os in
13202  irix5* | nonstopux*)
13203    libsuff= shlibsuff=
13204    ;;
13205  *)
13206    case $LD in # libtool.m4 will add one of these switches to LD
13207    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13208      libsuff= shlibsuff= libmagic=32-bit;;
13209    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13210      libsuff=32 shlibsuff=N32 libmagic=N32;;
13211    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13212      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13213    *) libsuff= shlibsuff= libmagic=never-match;;
13214    esac
13215    ;;
13216  esac
13217  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13218  shlibpath_overrides_runpath=no
13219  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13220  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13221  hardcode_into_libs=yes
13222  ;;
13223
13224# No shared lib support for Linux oldld, aout, or coff.
13225linux*oldld* | linux*aout* | linux*coff*)
13226  dynamic_linker=no
13227  ;;
13228
13229# This must be Linux ELF.
13230linux* | k*bsd*-gnu)
13231  version_type=linux
13232  need_lib_prefix=no
13233  need_version=no
13234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13235  soname_spec='${libname}${release}${shared_ext}$major'
13236  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13237  shlibpath_var=LD_LIBRARY_PATH
13238  shlibpath_overrides_runpath=no
13239  # This implies no fast_install, which is unacceptable.
13240  # Some rework will be needed to allow for fast_install
13241  # before this can be enabled.
13242  hardcode_into_libs=yes
13243
13244  # Append ld.so.conf contents to the search path
13245  if test -f /etc/ld.so.conf; then
13246    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' ' '`
13247    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13248  fi
13249
13250  # We used to test for /lib/ld.so.1 and disable shared libraries on
13251  # powerpc, because MkLinux only supported shared libraries with the
13252  # GNU dynamic linker.  Since this was broken with cross compilers,
13253  # most powerpc-linux boxes support dynamic linking these days and
13254  # people can always --disable-shared, the test was removed, and we
13255  # assume the GNU/Linux dynamic linker is in use.
13256  dynamic_linker='GNU/Linux ld.so'
13257  ;;
13258
13259netbsdelf*-gnu)
13260  version_type=linux
13261  need_lib_prefix=no
13262  need_version=no
13263  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13264  soname_spec='${libname}${release}${shared_ext}$major'
13265  shlibpath_var=LD_LIBRARY_PATH
13266  shlibpath_overrides_runpath=no
13267  hardcode_into_libs=yes
13268  dynamic_linker='NetBSD ld.elf_so'
13269  ;;
13270
13271netbsd*)
13272  version_type=sunos
13273  need_lib_prefix=no
13274  need_version=no
13275  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13276    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13277    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13278    dynamic_linker='NetBSD (a.out) ld.so'
13279  else
13280    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13281    soname_spec='${libname}${release}${shared_ext}$major'
13282    dynamic_linker='NetBSD ld.elf_so'
13283  fi
13284  shlibpath_var=LD_LIBRARY_PATH
13285  shlibpath_overrides_runpath=yes
13286  hardcode_into_libs=yes
13287  ;;
13288
13289newsos6)
13290  version_type=linux
13291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13292  shlibpath_var=LD_LIBRARY_PATH
13293  shlibpath_overrides_runpath=yes
13294  ;;
13295
13296nto-qnx*)
13297  version_type=linux
13298  need_lib_prefix=no
13299  need_version=no
13300  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13301  soname_spec='${libname}${release}${shared_ext}$major'
13302  shlibpath_var=LD_LIBRARY_PATH
13303  shlibpath_overrides_runpath=yes
13304  ;;
13305
13306openbsd*)
13307  version_type=sunos
13308  sys_lib_dlsearch_path_spec="/usr/lib"
13309  need_lib_prefix=no
13310  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13311  case $host_os in
13312    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13313    *)                         need_version=no  ;;
13314  esac
13315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13316  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13317  shlibpath_var=LD_LIBRARY_PATH
13318  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13319    case $host_os in
13320      openbsd2.[89] | openbsd2.[89].*)
13321	shlibpath_overrides_runpath=no
13322	;;
13323      *)
13324	shlibpath_overrides_runpath=yes
13325	;;
13326      esac
13327  else
13328    shlibpath_overrides_runpath=yes
13329  fi
13330  ;;
13331
13332os2*)
13333  libname_spec='$name'
13334  shrext_cmds=".dll"
13335  need_lib_prefix=no
13336  library_names_spec='$libname${shared_ext} $libname.a'
13337  dynamic_linker='OS/2 ld.exe'
13338  shlibpath_var=LIBPATH
13339  ;;
13340
13341osf3* | osf4* | osf5*)
13342  version_type=osf
13343  need_lib_prefix=no
13344  need_version=no
13345  soname_spec='${libname}${release}${shared_ext}$major'
13346  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13347  shlibpath_var=LD_LIBRARY_PATH
13348  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13349  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13350  ;;
13351
13352rdos*)
13353  dynamic_linker=no
13354  ;;
13355
13356solaris*)
13357  version_type=linux
13358  need_lib_prefix=no
13359  need_version=no
13360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13361  soname_spec='${libname}${release}${shared_ext}$major'
13362  shlibpath_var=LD_LIBRARY_PATH
13363  shlibpath_overrides_runpath=yes
13364  hardcode_into_libs=yes
13365  # ldd complains unless libraries are executable
13366  postinstall_cmds='chmod +x $lib'
13367  ;;
13368
13369sunos4*)
13370  version_type=sunos
13371  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13372  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13373  shlibpath_var=LD_LIBRARY_PATH
13374  shlibpath_overrides_runpath=yes
13375  if test "$with_gnu_ld" = yes; then
13376    need_lib_prefix=no
13377  fi
13378  need_version=yes
13379  ;;
13380
13381sysv4 | sysv4.3*)
13382  version_type=linux
13383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13384  soname_spec='${libname}${release}${shared_ext}$major'
13385  shlibpath_var=LD_LIBRARY_PATH
13386  case $host_vendor in
13387    sni)
13388      shlibpath_overrides_runpath=no
13389      need_lib_prefix=no
13390      export_dynamic_flag_spec='${wl}-Blargedynsym'
13391      runpath_var=LD_RUN_PATH
13392      ;;
13393    siemens)
13394      need_lib_prefix=no
13395      ;;
13396    motorola)
13397      need_lib_prefix=no
13398      need_version=no
13399      shlibpath_overrides_runpath=no
13400      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13401      ;;
13402  esac
13403  ;;
13404
13405sysv4*MP*)
13406  if test -d /usr/nec ;then
13407    version_type=linux
13408    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13409    soname_spec='$libname${shared_ext}.$major'
13410    shlibpath_var=LD_LIBRARY_PATH
13411  fi
13412  ;;
13413
13414sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13415  version_type=freebsd-elf
13416  need_lib_prefix=no
13417  need_version=no
13418  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13419  soname_spec='${libname}${release}${shared_ext}$major'
13420  shlibpath_var=LD_LIBRARY_PATH
13421  hardcode_into_libs=yes
13422  if test "$with_gnu_ld" = yes; then
13423    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13424    shlibpath_overrides_runpath=no
13425  else
13426    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13427    shlibpath_overrides_runpath=yes
13428    case $host_os in
13429      sco3.2v5*)
13430        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13431	;;
13432    esac
13433  fi
13434  sys_lib_dlsearch_path_spec='/usr/lib'
13435  ;;
13436
13437uts4*)
13438  version_type=linux
13439  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13440  soname_spec='${libname}${release}${shared_ext}$major'
13441  shlibpath_var=LD_LIBRARY_PATH
13442  ;;
13443
13444*)
13445  dynamic_linker=no
13446  ;;
13447esac
13448{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13449echo "${ECHO_T}$dynamic_linker" >&6; }
13450test "$dynamic_linker" = no && can_build_shared=no
13451
13452if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13453  echo $ECHO_N "(cached) $ECHO_C" >&6
13454else
13455  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13456fi
13457
13458sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13459if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13460  echo $ECHO_N "(cached) $ECHO_C" >&6
13461else
13462  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13463fi
13464
13465sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13466
13467variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13468if test "$GCC" = yes; then
13469  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13470fi
13471
13472{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13473echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13474hardcode_action_CXX=
13475if test -n "$hardcode_libdir_flag_spec_CXX" || \
13476   test -n "$runpath_var_CXX" || \
13477   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13478
13479  # We can hardcode non-existant directories.
13480  if test "$hardcode_direct_CXX" != no &&
13481     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13482     # have to relink, otherwise we might link with an installed library
13483     # when we should be linking with a yet-to-be-installed one
13484     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13485     test "$hardcode_minus_L_CXX" != no; then
13486    # Linking always hardcodes the temporary library directory.
13487    hardcode_action_CXX=relink
13488  else
13489    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13490    hardcode_action_CXX=immediate
13491  fi
13492else
13493  # We cannot hardcode anything, or else we can only hardcode existing
13494  # directories.
13495  hardcode_action_CXX=unsupported
13496fi
13497{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13498echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13499
13500if test "$hardcode_action_CXX" = relink; then
13501  # Fast installation is not supported
13502  enable_fast_install=no
13503elif test "$shlibpath_overrides_runpath" = yes ||
13504     test "$enable_shared" = no; then
13505  # Fast installation is not necessary
13506  enable_fast_install=needless
13507fi
13508
13509
13510# The else clause should only fire when bootstrapping the
13511# libtool distribution, otherwise you forgot to ship ltmain.sh
13512# with your package, and you will get complaints that there are
13513# no rules to generate ltmain.sh.
13514if test -f "$ltmain"; then
13515  # See if we are running on zsh, and set the options which allow our commands through
13516  # without removal of \ escapes.
13517  if test -n "${ZSH_VERSION+set}" ; then
13518    setopt NO_GLOB_SUBST
13519  fi
13520  # Now quote all the things that may contain metacharacters while being
13521  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13522  # variables and quote the copies for generation of the libtool script.
13523  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13524    SED SHELL STRIP \
13525    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13526    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13527    deplibs_check_method reload_flag reload_cmds need_locks \
13528    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13529    lt_cv_sys_global_symbol_to_c_name_address \
13530    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13531    old_postinstall_cmds old_postuninstall_cmds \
13532    compiler_CXX \
13533    CC_CXX \
13534    LD_CXX \
13535    lt_prog_compiler_wl_CXX \
13536    lt_prog_compiler_pic_CXX \
13537    lt_prog_compiler_static_CXX \
13538    lt_prog_compiler_no_builtin_flag_CXX \
13539    export_dynamic_flag_spec_CXX \
13540    thread_safe_flag_spec_CXX \
13541    whole_archive_flag_spec_CXX \
13542    enable_shared_with_static_runtimes_CXX \
13543    old_archive_cmds_CXX \
13544    old_archive_from_new_cmds_CXX \
13545    predep_objects_CXX \
13546    postdep_objects_CXX \
13547    predeps_CXX \
13548    postdeps_CXX \
13549    compiler_lib_search_path_CXX \
13550    compiler_lib_search_dirs_CXX \
13551    archive_cmds_CXX \
13552    archive_expsym_cmds_CXX \
13553    postinstall_cmds_CXX \
13554    postuninstall_cmds_CXX \
13555    old_archive_from_expsyms_cmds_CXX \
13556    allow_undefined_flag_CXX \
13557    no_undefined_flag_CXX \
13558    export_symbols_cmds_CXX \
13559    hardcode_libdir_flag_spec_CXX \
13560    hardcode_libdir_flag_spec_ld_CXX \
13561    hardcode_libdir_separator_CXX \
13562    hardcode_automatic_CXX \
13563    module_cmds_CXX \
13564    module_expsym_cmds_CXX \
13565    lt_cv_prog_compiler_c_o_CXX \
13566    fix_srcfile_path_CXX \
13567    exclude_expsyms_CXX \
13568    include_expsyms_CXX; do
13569
13570    case $var in
13571    old_archive_cmds_CXX | \
13572    old_archive_from_new_cmds_CXX | \
13573    archive_cmds_CXX | \
13574    archive_expsym_cmds_CXX | \
13575    module_cmds_CXX | \
13576    module_expsym_cmds_CXX | \
13577    old_archive_from_expsyms_cmds_CXX | \
13578    export_symbols_cmds_CXX | \
13579    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13580    postinstall_cmds | postuninstall_cmds | \
13581    old_postinstall_cmds | old_postuninstall_cmds | \
13582    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13583      # Double-quote double-evaled strings.
13584      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13585      ;;
13586    *)
13587      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13588      ;;
13589    esac
13590  done
13591
13592  case $lt_echo in
13593  *'\$0 --fallback-echo"')
13594    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13595    ;;
13596  esac
13597
13598cfgfile="$ofile"
13599
13600  cat <<__EOF__ >> "$cfgfile"
13601# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13602
13603# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13604
13605# Shell to use when invoking shell scripts.
13606SHELL=$lt_SHELL
13607
13608# Whether or not to build shared libraries.
13609build_libtool_libs=$enable_shared
13610
13611# Whether or not to build static libraries.
13612build_old_libs=$enable_static
13613
13614# Whether or not to add -lc for building shared libraries.
13615build_libtool_need_lc=$archive_cmds_need_lc_CXX
13616
13617# Whether or not to disallow shared libs when runtime libs are static
13618allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13619
13620# Whether or not to optimize for fast installation.
13621fast_install=$enable_fast_install
13622
13623# The host system.
13624host_alias=$host_alias
13625host=$host
13626host_os=$host_os
13627
13628# The build system.
13629build_alias=$build_alias
13630build=$build
13631build_os=$build_os
13632
13633# An echo program that does not interpret backslashes.
13634echo=$lt_echo
13635
13636# The archiver.
13637AR=$lt_AR
13638AR_FLAGS=$lt_AR_FLAGS
13639
13640# A C compiler.
13641LTCC=$lt_LTCC
13642
13643# LTCC compiler flags.
13644LTCFLAGS=$lt_LTCFLAGS
13645
13646# A language-specific compiler.
13647CC=$lt_compiler_CXX
13648
13649# Is the compiler the GNU C compiler?
13650with_gcc=$GCC_CXX
13651
13652# An ERE matcher.
13653EGREP=$lt_EGREP
13654
13655# The linker used to build libraries.
13656LD=$lt_LD_CXX
13657
13658# Whether we need hard or soft links.
13659LN_S=$lt_LN_S
13660
13661# A BSD-compatible nm program.
13662NM=$lt_NM
13663
13664# A symbol stripping program
13665STRIP=$lt_STRIP
13666
13667# Used to examine libraries when file_magic_cmd begins "file"
13668MAGIC_CMD=$MAGIC_CMD
13669
13670# Used on cygwin: DLL creation program.
13671DLLTOOL="$DLLTOOL"
13672
13673# Used on cygwin: object dumper.
13674OBJDUMP="$OBJDUMP"
13675
13676# Used on cygwin: assembler.
13677AS="$AS"
13678
13679# The name of the directory that contains temporary libtool files.
13680objdir=$objdir
13681
13682# How to create reloadable object files.
13683reload_flag=$lt_reload_flag
13684reload_cmds=$lt_reload_cmds
13685
13686# How to pass a linker flag through the compiler.
13687wl=$lt_lt_prog_compiler_wl_CXX
13688
13689# Object file suffix (normally "o").
13690objext="$ac_objext"
13691
13692# Old archive suffix (normally "a").
13693libext="$libext"
13694
13695# Shared library suffix (normally ".so").
13696shrext_cmds='$shrext_cmds'
13697
13698# Executable file suffix (normally "").
13699exeext="$exeext"
13700
13701# Additional compiler flags for building library objects.
13702pic_flag=$lt_lt_prog_compiler_pic_CXX
13703pic_mode=$pic_mode
13704
13705# What is the maximum length of a command?
13706max_cmd_len=$lt_cv_sys_max_cmd_len
13707
13708# Does compiler simultaneously support -c and -o options?
13709compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13710
13711# Must we lock files when doing compilation?
13712need_locks=$lt_need_locks
13713
13714# Do we need the lib prefix for modules?
13715need_lib_prefix=$need_lib_prefix
13716
13717# Do we need a version for libraries?
13718need_version=$need_version
13719
13720# Whether dlopen is supported.
13721dlopen_support=$enable_dlopen
13722
13723# Whether dlopen of programs is supported.
13724dlopen_self=$enable_dlopen_self
13725
13726# Whether dlopen of statically linked programs is supported.
13727dlopen_self_static=$enable_dlopen_self_static
13728
13729# Compiler flag to prevent dynamic linking.
13730link_static_flag=$lt_lt_prog_compiler_static_CXX
13731
13732# Compiler flag to turn off builtin functions.
13733no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13734
13735# Compiler flag to allow reflexive dlopens.
13736export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13737
13738# Compiler flag to generate shared objects directly from archives.
13739whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13740
13741# Compiler flag to generate thread-safe objects.
13742thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13743
13744# Library versioning type.
13745version_type=$version_type
13746
13747# Format of library name prefix.
13748libname_spec=$lt_libname_spec
13749
13750# List of archive names.  First name is the real one, the rest are links.
13751# The last name is the one that the linker finds with -lNAME.
13752library_names_spec=$lt_library_names_spec
13753
13754# The coded name of the library, if different from the real name.
13755soname_spec=$lt_soname_spec
13756
13757# Commands used to build and install an old-style archive.
13758RANLIB=$lt_RANLIB
13759old_archive_cmds=$lt_old_archive_cmds_CXX
13760old_postinstall_cmds=$lt_old_postinstall_cmds
13761old_postuninstall_cmds=$lt_old_postuninstall_cmds
13762
13763# Create an old-style archive from a shared archive.
13764old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13765
13766# Create a temporary old-style archive to link instead of a shared archive.
13767old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13768
13769# Commands used to build and install a shared archive.
13770archive_cmds=$lt_archive_cmds_CXX
13771archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13772postinstall_cmds=$lt_postinstall_cmds
13773postuninstall_cmds=$lt_postuninstall_cmds
13774
13775# Commands used to build a loadable module (assumed same as above if empty)
13776module_cmds=$lt_module_cmds_CXX
13777module_expsym_cmds=$lt_module_expsym_cmds_CXX
13778
13779# Commands to strip libraries.
13780old_striplib=$lt_old_striplib
13781striplib=$lt_striplib
13782
13783# Dependencies to place before the objects being linked to create a
13784# shared library.
13785predep_objects=$lt_predep_objects_CXX
13786
13787# Dependencies to place after the objects being linked to create a
13788# shared library.
13789postdep_objects=$lt_postdep_objects_CXX
13790
13791# Dependencies to place before the objects being linked to create a
13792# shared library.
13793predeps=$lt_predeps_CXX
13794
13795# Dependencies to place after the objects being linked to create a
13796# shared library.
13797postdeps=$lt_postdeps_CXX
13798
13799# The directories searched by this compiler when creating a shared
13800# library
13801compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13802
13803# The library search path used internally by the compiler when linking
13804# a shared library.
13805compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13806
13807# Method to check whether dependent libraries are shared objects.
13808deplibs_check_method=$lt_deplibs_check_method
13809
13810# Command to use when deplibs_check_method == file_magic.
13811file_magic_cmd=$lt_file_magic_cmd
13812
13813# Flag that allows shared libraries with undefined symbols to be built.
13814allow_undefined_flag=$lt_allow_undefined_flag_CXX
13815
13816# Flag that forces no undefined symbols.
13817no_undefined_flag=$lt_no_undefined_flag_CXX
13818
13819# Commands used to finish a libtool library installation in a directory.
13820finish_cmds=$lt_finish_cmds
13821
13822# Same as above, but a single script fragment to be evaled but not shown.
13823finish_eval=$lt_finish_eval
13824
13825# Take the output of nm and produce a listing of raw symbols and C names.
13826global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13827
13828# Transform the output of nm in a proper C declaration
13829global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13830
13831# Transform the output of nm in a C name address pair
13832global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13833
13834# This is the shared library runtime path variable.
13835runpath_var=$runpath_var
13836
13837# This is the shared library path variable.
13838shlibpath_var=$shlibpath_var
13839
13840# Is shlibpath searched before the hard-coded library search path?
13841shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13842
13843# How to hardcode a shared library path into an executable.
13844hardcode_action=$hardcode_action_CXX
13845
13846# Whether we should hardcode library paths into libraries.
13847hardcode_into_libs=$hardcode_into_libs
13848
13849# Flag to hardcode \$libdir into a binary during linking.
13850# This must work even if \$libdir does not exist.
13851hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13852
13853# If ld is used when linking, flag to hardcode \$libdir into
13854# a binary during linking. This must work even if \$libdir does
13855# not exist.
13856hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13857
13858# Whether we need a single -rpath flag with a separated argument.
13859hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13860
13861# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13862# resulting binary.
13863hardcode_direct=$hardcode_direct_CXX
13864
13865# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13866# resulting binary.
13867hardcode_minus_L=$hardcode_minus_L_CXX
13868
13869# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13870# the resulting binary.
13871hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13872
13873# Set to yes if building a shared library automatically hardcodes DIR into the library
13874# and all subsequent libraries and executables linked against it.
13875hardcode_automatic=$hardcode_automatic_CXX
13876
13877# Variables whose values should be saved in libtool wrapper scripts and
13878# restored at relink time.
13879variables_saved_for_relink="$variables_saved_for_relink"
13880
13881# Whether libtool must link a program against all its dependency libraries.
13882link_all_deplibs=$link_all_deplibs_CXX
13883
13884# Compile-time system search path for libraries
13885sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13886
13887# Run-time system search path for libraries
13888sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13889
13890# Fix the shell variable \$srcfile for the compiler.
13891fix_srcfile_path=$lt_fix_srcfile_path
13892
13893# Set to yes if exported symbols are required.
13894always_export_symbols=$always_export_symbols_CXX
13895
13896# The commands to list exported symbols.
13897export_symbols_cmds=$lt_export_symbols_cmds_CXX
13898
13899# The commands to extract the exported symbol list from a shared archive.
13900extract_expsyms_cmds=$lt_extract_expsyms_cmds
13901
13902# Symbols that should not be listed in the preloaded symbols.
13903exclude_expsyms=$lt_exclude_expsyms_CXX
13904
13905# Symbols that must always be exported.
13906include_expsyms=$lt_include_expsyms_CXX
13907
13908# ### END LIBTOOL TAG CONFIG: $tagname
13909
13910__EOF__
13911
13912
13913else
13914  # If there is no Makefile yet, we rely on a make rule to execute
13915  # `config.status --recheck' to rerun these tests and create the
13916  # libtool script then.
13917  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13918  if test -f "$ltmain_in"; then
13919    test -f Makefile && make "$ltmain"
13920  fi
13921fi
13922
13923
13924ac_ext=c
13925ac_cpp='$CPP $CPPFLAGS'
13926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13928ac_compiler_gnu=$ac_cv_c_compiler_gnu
13929
13930CC=$lt_save_CC
13931LDCXX=$LD
13932LD=$lt_save_LD
13933GCC=$lt_save_GCC
13934with_gnu_ldcxx=$with_gnu_ld
13935with_gnu_ld=$lt_save_with_gnu_ld
13936lt_cv_path_LDCXX=$lt_cv_path_LD
13937lt_cv_path_LD=$lt_save_path_LD
13938lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13939lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13940
13941	else
13942	  tagname=""
13943	fi
13944	;;
13945
13946      F77)
13947	if test -n "$F77" && test "X$F77" != "Xno"; then
13948
13949ac_ext=f
13950ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13951ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13952ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13953
13954
13955archive_cmds_need_lc_F77=no
13956allow_undefined_flag_F77=
13957always_export_symbols_F77=no
13958archive_expsym_cmds_F77=
13959export_dynamic_flag_spec_F77=
13960hardcode_direct_F77=no
13961hardcode_libdir_flag_spec_F77=
13962hardcode_libdir_flag_spec_ld_F77=
13963hardcode_libdir_separator_F77=
13964hardcode_minus_L_F77=no
13965hardcode_automatic_F77=no
13966module_cmds_F77=
13967module_expsym_cmds_F77=
13968link_all_deplibs_F77=unknown
13969old_archive_cmds_F77=$old_archive_cmds
13970no_undefined_flag_F77=
13971whole_archive_flag_spec_F77=
13972enable_shared_with_static_runtimes_F77=no
13973
13974# Source file extension for f77 test sources.
13975ac_ext=f
13976
13977# Object file extension for compiled f77 test sources.
13978objext=o
13979objext_F77=$objext
13980
13981# Code to be used in simple compile tests
13982lt_simple_compile_test_code="\
13983      subroutine t
13984      return
13985      end
13986"
13987
13988# Code to be used in simple link tests
13989lt_simple_link_test_code="\
13990      program t
13991      end
13992"
13993
13994# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13995
13996# If no C compiler was specified, use CC.
13997LTCC=${LTCC-"$CC"}
13998
13999# If no C compiler flags were specified, use CFLAGS.
14000LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14001
14002# Allow CC to be a program name with arguments.
14003compiler=$CC
14004
14005
14006# save warnings/boilerplate of simple test code
14007ac_outfile=conftest.$ac_objext
14008echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14009eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14010_lt_compiler_boilerplate=`cat conftest.err`
14011$rm conftest*
14012
14013ac_outfile=conftest.$ac_objext
14014echo "$lt_simple_link_test_code" >conftest.$ac_ext
14015eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14016_lt_linker_boilerplate=`cat conftest.err`
14017$rm -r conftest*
14018
14019
14020# Allow CC to be a program name with arguments.
14021lt_save_CC="$CC"
14022CC=${F77-"f77"}
14023compiler=$CC
14024compiler_F77=$CC
14025for cc_temp in $compiler""; do
14026  case $cc_temp in
14027    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14028    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14029    \-*) ;;
14030    *) break;;
14031  esac
14032done
14033cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14034
14035
14036{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14037echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14038{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14039echo "${ECHO_T}$can_build_shared" >&6; }
14040
14041{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14042echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14043test "$can_build_shared" = "no" && enable_shared=no
14044
14045# On AIX, shared libraries and static libraries use the same namespace, and
14046# are all built from PIC.
14047case $host_os in
14048aix3*)
14049  test "$enable_shared" = yes && enable_static=no
14050  if test -n "$RANLIB"; then
14051    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14052    postinstall_cmds='$RANLIB $lib'
14053  fi
14054  ;;
14055aix[4-9]*)
14056  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14057    test "$enable_shared" = yes && enable_static=no
14058  fi
14059  ;;
14060esac
14061{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14062echo "${ECHO_T}$enable_shared" >&6; }
14063
14064{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14065echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14066# Make sure either enable_shared or enable_static is yes.
14067test "$enable_shared" = yes || enable_static=yes
14068{ echo "$as_me:$LINENO: result: $enable_static" >&5
14069echo "${ECHO_T}$enable_static" >&6; }
14070
14071GCC_F77="$G77"
14072LD_F77="$LD"
14073
14074lt_prog_compiler_wl_F77=
14075lt_prog_compiler_pic_F77=
14076lt_prog_compiler_static_F77=
14077
14078{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14079echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14080
14081  if test "$GCC" = yes; then
14082    lt_prog_compiler_wl_F77='-Wl,'
14083    lt_prog_compiler_static_F77='-static'
14084
14085    case $host_os in
14086      aix*)
14087      # All AIX code is PIC.
14088      if test "$host_cpu" = ia64; then
14089	# AIX 5 now supports IA64 processor
14090	lt_prog_compiler_static_F77='-Bstatic'
14091      fi
14092      ;;
14093
14094    amigaos*)
14095      # FIXME: we need at least 68020 code to build shared libraries, but
14096      # adding the `-m68020' flag to GCC prevents building anything better,
14097      # like `-m68040'.
14098      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14099      ;;
14100
14101    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14102      # PIC is the default for these OSes.
14103      ;;
14104
14105    mingw* | cygwin* | pw32* | os2*)
14106      # This hack is so that the source file can tell whether it is being
14107      # built for inclusion in a dll (and should export symbols for example).
14108      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14109      # (--disable-auto-import) libraries
14110      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14111      ;;
14112
14113    darwin* | rhapsody*)
14114      # PIC is the default on this platform
14115      # Common symbols not allowed in MH_DYLIB files
14116      lt_prog_compiler_pic_F77='-fno-common'
14117      ;;
14118
14119    interix[3-9]*)
14120      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14121      # Instead, we relocate shared libraries at runtime.
14122      ;;
14123
14124    msdosdjgpp*)
14125      # Just because we use GCC doesn't mean we suddenly get shared libraries
14126      # on systems that don't support them.
14127      lt_prog_compiler_can_build_shared_F77=no
14128      enable_shared=no
14129      ;;
14130
14131    sysv4*MP*)
14132      if test -d /usr/nec; then
14133	lt_prog_compiler_pic_F77=-Kconform_pic
14134      fi
14135      ;;
14136
14137    hpux*)
14138      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14139      # not for PA HP-UX.
14140      case $host_cpu in
14141      hppa*64*|ia64*)
14142	# +Z the default
14143	;;
14144      *)
14145	lt_prog_compiler_pic_F77='-fPIC'
14146	;;
14147      esac
14148      ;;
14149
14150    *)
14151      lt_prog_compiler_pic_F77='-fPIC'
14152      ;;
14153    esac
14154  else
14155    # PORTME Check for flag to pass linker flags through the system compiler.
14156    case $host_os in
14157    aix*)
14158      lt_prog_compiler_wl_F77='-Wl,'
14159      if test "$host_cpu" = ia64; then
14160	# AIX 5 now supports IA64 processor
14161	lt_prog_compiler_static_F77='-Bstatic'
14162      else
14163	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14164      fi
14165      ;;
14166      darwin*)
14167        # PIC is the default on this platform
14168        # Common symbols not allowed in MH_DYLIB files
14169       case $cc_basename in
14170         xlc*)
14171         lt_prog_compiler_pic_F77='-qnocommon'
14172         lt_prog_compiler_wl_F77='-Wl,'
14173         ;;
14174       esac
14175       ;;
14176
14177    mingw* | cygwin* | pw32* | os2*)
14178      # This hack is so that the source file can tell whether it is being
14179      # built for inclusion in a dll (and should export symbols for example).
14180      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14181      ;;
14182
14183    hpux9* | hpux10* | hpux11*)
14184      lt_prog_compiler_wl_F77='-Wl,'
14185      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14186      # not for PA HP-UX.
14187      case $host_cpu in
14188      hppa*64*|ia64*)
14189	# +Z the default
14190	;;
14191      *)
14192	lt_prog_compiler_pic_F77='+Z'
14193	;;
14194      esac
14195      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14196      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14197      ;;
14198
14199    irix5* | irix6* | nonstopux*)
14200      lt_prog_compiler_wl_F77='-Wl,'
14201      # PIC (with -KPIC) is the default.
14202      lt_prog_compiler_static_F77='-non_shared'
14203      ;;
14204
14205    newsos6)
14206      lt_prog_compiler_pic_F77='-KPIC'
14207      lt_prog_compiler_static_F77='-Bstatic'
14208      ;;
14209
14210    linux* | k*bsd*-gnu)
14211      case $cc_basename in
14212      icc* | ecc*)
14213	lt_prog_compiler_wl_F77='-Wl,'
14214	lt_prog_compiler_pic_F77='-KPIC'
14215	lt_prog_compiler_static_F77='-static'
14216        ;;
14217      pgcc* | pgf77* | pgf90* | pgf95*)
14218        # Portland Group compilers (*not* the Pentium gcc compiler,
14219	# which looks to be a dead project)
14220	lt_prog_compiler_wl_F77='-Wl,'
14221	lt_prog_compiler_pic_F77='-fpic'
14222	lt_prog_compiler_static_F77='-Bstatic'
14223        ;;
14224      ccc*)
14225        lt_prog_compiler_wl_F77='-Wl,'
14226        # All Alpha code is PIC.
14227        lt_prog_compiler_static_F77='-non_shared'
14228        ;;
14229      *)
14230        case `$CC -V 2>&1 | sed 5q` in
14231	*Sun\ C*)
14232	  # Sun C 5.9
14233	  lt_prog_compiler_pic_F77='-KPIC'
14234	  lt_prog_compiler_static_F77='-Bstatic'
14235	  lt_prog_compiler_wl_F77='-Wl,'
14236	  ;;
14237	*Sun\ F*)
14238	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14239	  lt_prog_compiler_pic_F77='-KPIC'
14240	  lt_prog_compiler_static_F77='-Bstatic'
14241	  lt_prog_compiler_wl_F77=''
14242	  ;;
14243	esac
14244	;;
14245      esac
14246      ;;
14247
14248    osf3* | osf4* | osf5*)
14249      lt_prog_compiler_wl_F77='-Wl,'
14250      # All OSF/1 code is PIC.
14251      lt_prog_compiler_static_F77='-non_shared'
14252      ;;
14253
14254    rdos*)
14255      lt_prog_compiler_static_F77='-non_shared'
14256      ;;
14257
14258    solaris*)
14259      lt_prog_compiler_pic_F77='-KPIC'
14260      lt_prog_compiler_static_F77='-Bstatic'
14261      case $cc_basename in
14262      f77* | f90* | f95*)
14263	lt_prog_compiler_wl_F77='-Qoption ld ';;
14264      *)
14265	lt_prog_compiler_wl_F77='-Wl,';;
14266      esac
14267      ;;
14268
14269    sunos4*)
14270      lt_prog_compiler_wl_F77='-Qoption ld '
14271      lt_prog_compiler_pic_F77='-PIC'
14272      lt_prog_compiler_static_F77='-Bstatic'
14273      ;;
14274
14275    sysv4 | sysv4.2uw2* | sysv4.3*)
14276      lt_prog_compiler_wl_F77='-Wl,'
14277      lt_prog_compiler_pic_F77='-KPIC'
14278      lt_prog_compiler_static_F77='-Bstatic'
14279      ;;
14280
14281    sysv4*MP*)
14282      if test -d /usr/nec ;then
14283	lt_prog_compiler_pic_F77='-Kconform_pic'
14284	lt_prog_compiler_static_F77='-Bstatic'
14285      fi
14286      ;;
14287
14288    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14289      lt_prog_compiler_wl_F77='-Wl,'
14290      lt_prog_compiler_pic_F77='-KPIC'
14291      lt_prog_compiler_static_F77='-Bstatic'
14292      ;;
14293
14294    unicos*)
14295      lt_prog_compiler_wl_F77='-Wl,'
14296      lt_prog_compiler_can_build_shared_F77=no
14297      ;;
14298
14299    uts4*)
14300      lt_prog_compiler_pic_F77='-pic'
14301      lt_prog_compiler_static_F77='-Bstatic'
14302      ;;
14303
14304    *)
14305      lt_prog_compiler_can_build_shared_F77=no
14306      ;;
14307    esac
14308  fi
14309
14310{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14311echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14312
14313#
14314# Check to make sure the PIC flag actually works.
14315#
14316if test -n "$lt_prog_compiler_pic_F77"; then
14317
14318{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14319echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14320if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14321  echo $ECHO_N "(cached) $ECHO_C" >&6
14322else
14323  lt_cv_prog_compiler_pic_works_F77=no
14324  ac_outfile=conftest.$ac_objext
14325   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14326   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14327   # Insert the option either (1) after the last *FLAGS variable, or
14328   # (2) before a word containing "conftest.", or (3) at the end.
14329   # Note that $ac_compile itself does not contain backslashes and begins
14330   # with a dollar sign (not a hyphen), so the echo should work correctly.
14331   # The option is referenced via a variable to avoid confusing sed.
14332   lt_compile=`echo "$ac_compile" | $SED \
14333   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14334   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14335   -e 's:$: $lt_compiler_flag:'`
14336   (eval echo "\"\$as_me:14336: $lt_compile\"" >&5)
14337   (eval "$lt_compile" 2>conftest.err)
14338   ac_status=$?
14339   cat conftest.err >&5
14340   echo "$as_me:14340: \$? = $ac_status" >&5
14341   if (exit $ac_status) && test -s "$ac_outfile"; then
14342     # The compiler can only warn and ignore the option if not recognized
14343     # So say no if there are warnings other than the usual output.
14344     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14345     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14346     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14347       lt_cv_prog_compiler_pic_works_F77=yes
14348     fi
14349   fi
14350   $rm conftest*
14351
14352fi
14353{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14354echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14355
14356if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14357    case $lt_prog_compiler_pic_F77 in
14358     "" | " "*) ;;
14359     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14360     esac
14361else
14362    lt_prog_compiler_pic_F77=
14363     lt_prog_compiler_can_build_shared_F77=no
14364fi
14365
14366fi
14367case $host_os in
14368  # For platforms which do not support PIC, -DPIC is meaningless:
14369  *djgpp*)
14370    lt_prog_compiler_pic_F77=
14371    ;;
14372  *)
14373    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14374    ;;
14375esac
14376
14377#
14378# Check to make sure the static flag actually works.
14379#
14380wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14381{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14382echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14383if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14384  echo $ECHO_N "(cached) $ECHO_C" >&6
14385else
14386  lt_cv_prog_compiler_static_works_F77=no
14387   save_LDFLAGS="$LDFLAGS"
14388   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14389   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14390   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14391     # The linker can only warn and ignore the option if not recognized
14392     # So say no if there are warnings
14393     if test -s conftest.err; then
14394       # Append any errors to the config.log.
14395       cat conftest.err 1>&5
14396       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14397       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14398       if diff conftest.exp conftest.er2 >/dev/null; then
14399         lt_cv_prog_compiler_static_works_F77=yes
14400       fi
14401     else
14402       lt_cv_prog_compiler_static_works_F77=yes
14403     fi
14404   fi
14405   $rm -r conftest*
14406   LDFLAGS="$save_LDFLAGS"
14407
14408fi
14409{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14410echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14411
14412if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14413    :
14414else
14415    lt_prog_compiler_static_F77=
14416fi
14417
14418
14419{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14420echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14421if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14422  echo $ECHO_N "(cached) $ECHO_C" >&6
14423else
14424  lt_cv_prog_compiler_c_o_F77=no
14425   $rm -r conftest 2>/dev/null
14426   mkdir conftest
14427   cd conftest
14428   mkdir out
14429   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14430
14431   lt_compiler_flag="-o out/conftest2.$ac_objext"
14432   # Insert the option either (1) after the last *FLAGS variable, or
14433   # (2) before a word containing "conftest.", or (3) at the end.
14434   # Note that $ac_compile itself does not contain backslashes and begins
14435   # with a dollar sign (not a hyphen), so the echo should work correctly.
14436   lt_compile=`echo "$ac_compile" | $SED \
14437   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14438   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14439   -e 's:$: $lt_compiler_flag:'`
14440   (eval echo "\"\$as_me:14440: $lt_compile\"" >&5)
14441   (eval "$lt_compile" 2>out/conftest.err)
14442   ac_status=$?
14443   cat out/conftest.err >&5
14444   echo "$as_me:14444: \$? = $ac_status" >&5
14445   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14446   then
14447     # The compiler can only warn and ignore the option if not recognized
14448     # So say no if there are warnings
14449     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14450     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14451     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14452       lt_cv_prog_compiler_c_o_F77=yes
14453     fi
14454   fi
14455   chmod u+w . 2>&5
14456   $rm conftest*
14457   # SGI C++ compiler will create directory out/ii_files/ for
14458   # template instantiation
14459   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14460   $rm out/* && rmdir out
14461   cd ..
14462   rmdir conftest
14463   $rm conftest*
14464
14465fi
14466{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14467echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14468
14469
14470hard_links="nottested"
14471if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14472  # do not overwrite the value of need_locks provided by the user
14473  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14474echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14475  hard_links=yes
14476  $rm conftest*
14477  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14478  touch conftest.a
14479  ln conftest.a conftest.b 2>&5 || hard_links=no
14480  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14481  { echo "$as_me:$LINENO: result: $hard_links" >&5
14482echo "${ECHO_T}$hard_links" >&6; }
14483  if test "$hard_links" = no; then
14484    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14485echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14486    need_locks=warn
14487  fi
14488else
14489  need_locks=no
14490fi
14491
14492{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14493echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14494
14495  runpath_var=
14496  allow_undefined_flag_F77=
14497  enable_shared_with_static_runtimes_F77=no
14498  archive_cmds_F77=
14499  archive_expsym_cmds_F77=
14500  old_archive_From_new_cmds_F77=
14501  old_archive_from_expsyms_cmds_F77=
14502  export_dynamic_flag_spec_F77=
14503  whole_archive_flag_spec_F77=
14504  thread_safe_flag_spec_F77=
14505  hardcode_libdir_flag_spec_F77=
14506  hardcode_libdir_flag_spec_ld_F77=
14507  hardcode_libdir_separator_F77=
14508  hardcode_direct_F77=no
14509  hardcode_minus_L_F77=no
14510  hardcode_shlibpath_var_F77=unsupported
14511  link_all_deplibs_F77=unknown
14512  hardcode_automatic_F77=no
14513  module_cmds_F77=
14514  module_expsym_cmds_F77=
14515  always_export_symbols_F77=no
14516  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14517  # include_expsyms should be a list of space-separated symbols to be *always*
14518  # included in the symbol list
14519  include_expsyms_F77=
14520  # exclude_expsyms can be an extended regexp of symbols to exclude
14521  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14522  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14523  # as well as any symbol that contains `d'.
14524  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14525  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14526  # platforms (ab)use it in PIC code, but their linkers get confused if
14527  # the symbol is explicitly referenced.  Since portable code cannot
14528  # rely on this symbol name, it's probably fine to never include it in
14529  # preloaded symbol tables.
14530  # Exclude shared library initialization/finalization symbols.
14531  extract_expsyms_cmds=
14532  # Just being paranoid about ensuring that cc_basename is set.
14533  for cc_temp in $compiler""; do
14534  case $cc_temp in
14535    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14536    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14537    \-*) ;;
14538    *) break;;
14539  esac
14540done
14541cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14542
14543  case $host_os in
14544  cygwin* | mingw* | pw32*)
14545    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14546    # When not using gcc, we currently assume that we are using
14547    # Microsoft Visual C++.
14548    if test "$GCC" != yes; then
14549      with_gnu_ld=no
14550    fi
14551    ;;
14552  interix*)
14553    # we just hope/assume this is gcc and not c89 (= MSVC++)
14554    with_gnu_ld=yes
14555    ;;
14556  openbsd*)
14557    with_gnu_ld=no
14558    ;;
14559  esac
14560
14561  ld_shlibs_F77=yes
14562  if test "$with_gnu_ld" = yes; then
14563    # If archive_cmds runs LD, not CC, wlarc should be empty
14564    wlarc='${wl}'
14565
14566    # Set some defaults for GNU ld with shared library support. These
14567    # are reset later if shared libraries are not supported. Putting them
14568    # here allows them to be overridden if necessary.
14569    runpath_var=LD_RUN_PATH
14570    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14571    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14572    # ancient GNU ld didn't support --whole-archive et. al.
14573    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14574	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14575      else
14576  	whole_archive_flag_spec_F77=
14577    fi
14578    supports_anon_versioning=no
14579    case `$LD -v 2>/dev/null` in
14580      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14581      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14582      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14583      *\ 2.11.*) ;; # other 2.11 versions
14584      *) supports_anon_versioning=yes ;;
14585    esac
14586
14587    # See if GNU ld supports shared libraries.
14588    case $host_os in
14589    aix[3-9]*)
14590      # On AIX/PPC, the GNU linker is very broken
14591      if test "$host_cpu" != ia64; then
14592	ld_shlibs_F77=no
14593	cat <<EOF 1>&2
14594
14595*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14596*** to be unable to reliably create shared libraries on AIX.
14597*** Therefore, libtool is disabling shared libraries support.  If you
14598*** really care for shared libraries, you may want to modify your PATH
14599*** so that a non-GNU linker is found, and then restart.
14600
14601EOF
14602      fi
14603      ;;
14604
14605    amigaos*)
14606      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)'
14607      hardcode_libdir_flag_spec_F77='-L$libdir'
14608      hardcode_minus_L_F77=yes
14609
14610      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14611      # that the semantics of dynamic libraries on AmigaOS, at least up
14612      # to version 4, is to share data among multiple programs linked
14613      # with the same dynamic library.  Since this doesn't match the
14614      # behavior of shared libraries on other platforms, we can't use
14615      # them.
14616      ld_shlibs_F77=no
14617      ;;
14618
14619    beos*)
14620      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14621	allow_undefined_flag_F77=unsupported
14622	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14623	# support --undefined.  This deserves some investigation.  FIXME
14624	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14625      else
14626	ld_shlibs_F77=no
14627      fi
14628      ;;
14629
14630    cygwin* | mingw* | pw32*)
14631      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14632      # as there is no search path for DLLs.
14633      hardcode_libdir_flag_spec_F77='-L$libdir'
14634      allow_undefined_flag_F77=unsupported
14635      always_export_symbols_F77=no
14636      enable_shared_with_static_runtimes_F77=yes
14637      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14638
14639      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14640        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14641	# If the export-symbols file already is a .def file (1st line
14642	# is EXPORTS), use it as is; otherwise, prepend...
14643	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14644	  cp $export_symbols $output_objdir/$soname.def;
14645	else
14646	  echo EXPORTS > $output_objdir/$soname.def;
14647	  cat $export_symbols >> $output_objdir/$soname.def;
14648	fi~
14649	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14650      else
14651	ld_shlibs_F77=no
14652      fi
14653      ;;
14654
14655    interix[3-9]*)
14656      hardcode_direct_F77=no
14657      hardcode_shlibpath_var_F77=no
14658      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14659      export_dynamic_flag_spec_F77='${wl}-E'
14660      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14661      # Instead, shared libraries are loaded at an image base (0x10000000 by
14662      # default) and relocated if they conflict, which is a slow very memory
14663      # consuming and fragmenting process.  To avoid this, we pick a random,
14664      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14665      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14666      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'
14667      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'
14668      ;;
14669
14670    gnu* | linux* | k*bsd*-gnu)
14671      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14672	tmp_addflag=
14673	case $cc_basename,$host_cpu in
14674	pgcc*)				# Portland Group C compiler
14675	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14676	  tmp_addflag=' $pic_flag'
14677	  ;;
14678	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14679	  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'
14680	  tmp_addflag=' $pic_flag -Mnomain' ;;
14681	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14682	  tmp_addflag=' -i_dynamic' ;;
14683	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14684	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14685	ifc* | ifort*)			# Intel Fortran compiler
14686	  tmp_addflag=' -nofor_main' ;;
14687	esac
14688	case `$CC -V 2>&1 | sed 5q` in
14689	*Sun\ C*)			# Sun C 5.9
14690	  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'
14691	  tmp_sharedflag='-G' ;;
14692	*Sun\ F*)			# Sun Fortran 8.3
14693	  tmp_sharedflag='-G' ;;
14694	*)
14695	  tmp_sharedflag='-shared' ;;
14696	esac
14697	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14698
14699	if test $supports_anon_versioning = yes; then
14700	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14701  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14702  $echo "local: *; };" >> $output_objdir/$libname.ver~
14703	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14704	fi
14705	link_all_deplibs_F77=no
14706      else
14707	ld_shlibs_F77=no
14708      fi
14709      ;;
14710
14711    netbsd* | netbsdelf*-gnu)
14712      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14713	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14714	wlarc=
14715      else
14716	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14717	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14718      fi
14719      ;;
14720
14721    solaris*)
14722      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14723	ld_shlibs_F77=no
14724	cat <<EOF 1>&2
14725
14726*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14727*** create shared libraries on Solaris systems.  Therefore, libtool
14728*** is disabling shared libraries support.  We urge you to upgrade GNU
14729*** binutils to release 2.9.1 or newer.  Another option is to modify
14730*** your PATH or compiler configuration so that the native linker is
14731*** used, and then restart.
14732
14733EOF
14734      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14735	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14736	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14737      else
14738	ld_shlibs_F77=no
14739      fi
14740      ;;
14741
14742    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14743      case `$LD -v 2>&1` in
14744        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14745	ld_shlibs_F77=no
14746	cat <<_LT_EOF 1>&2
14747
14748*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14749*** reliably create shared libraries on SCO systems.  Therefore, libtool
14750*** is disabling shared libraries support.  We urge you to upgrade GNU
14751*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14752*** your PATH or compiler configuration so that the native linker is
14753*** used, and then restart.
14754
14755_LT_EOF
14756	;;
14757	*)
14758	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14759	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14760	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14761	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14762	  else
14763	    ld_shlibs_F77=no
14764	  fi
14765	;;
14766      esac
14767      ;;
14768
14769    sunos4*)
14770      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14771      wlarc=
14772      hardcode_direct_F77=yes
14773      hardcode_shlibpath_var_F77=no
14774      ;;
14775
14776    *)
14777      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14778	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14779	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14780      else
14781	ld_shlibs_F77=no
14782      fi
14783      ;;
14784    esac
14785
14786    if test "$ld_shlibs_F77" = no; then
14787      runpath_var=
14788      hardcode_libdir_flag_spec_F77=
14789      export_dynamic_flag_spec_F77=
14790      whole_archive_flag_spec_F77=
14791    fi
14792  else
14793    # PORTME fill in a description of your system's linker (not GNU ld)
14794    case $host_os in
14795    aix3*)
14796      allow_undefined_flag_F77=unsupported
14797      always_export_symbols_F77=yes
14798      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'
14799      # Note: this linker hardcodes the directories in LIBPATH if there
14800      # are no directories specified by -L.
14801      hardcode_minus_L_F77=yes
14802      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14803	# Neither direct hardcoding nor static linking is supported with a
14804	# broken collect2.
14805	hardcode_direct_F77=unsupported
14806      fi
14807      ;;
14808
14809    aix[4-9]*)
14810      if test "$host_cpu" = ia64; then
14811	# On IA64, the linker does run time linking by default, so we don't
14812	# have to do anything special.
14813	aix_use_runtimelinking=no
14814	exp_sym_flag='-Bexport'
14815	no_entry_flag=""
14816      else
14817	# If we're using GNU nm, then we don't want the "-C" option.
14818	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14819	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14820	  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'
14821	else
14822	  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'
14823	fi
14824	aix_use_runtimelinking=no
14825
14826	# Test if we are trying to use run time linking or normal
14827	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14828	# need to do runtime linking.
14829	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14830	  for ld_flag in $LDFLAGS; do
14831  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14832  	    aix_use_runtimelinking=yes
14833  	    break
14834  	  fi
14835	  done
14836	  ;;
14837	esac
14838
14839	exp_sym_flag='-bexport'
14840	no_entry_flag='-bnoentry'
14841      fi
14842
14843      # When large executables or shared objects are built, AIX ld can
14844      # have problems creating the table of contents.  If linking a library
14845      # or program results in "error TOC overflow" add -mminimal-toc to
14846      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14847      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14848
14849      archive_cmds_F77=''
14850      hardcode_direct_F77=yes
14851      hardcode_libdir_separator_F77=':'
14852      link_all_deplibs_F77=yes
14853
14854      if test "$GCC" = yes; then
14855	case $host_os in aix4.[012]|aix4.[012].*)
14856	# We only want to do this on AIX 4.2 and lower, the check
14857	# below for broken collect2 doesn't work under 4.3+
14858	  collect2name=`${CC} -print-prog-name=collect2`
14859	  if test -f "$collect2name" && \
14860  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14861	  then
14862  	  # We have reworked collect2
14863  	  :
14864	  else
14865  	  # We have old collect2
14866  	  hardcode_direct_F77=unsupported
14867  	  # It fails to find uninstalled libraries when the uninstalled
14868  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14869  	  # to unsupported forces relinking
14870  	  hardcode_minus_L_F77=yes
14871  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14872  	  hardcode_libdir_separator_F77=
14873	  fi
14874	  ;;
14875	esac
14876	shared_flag='-shared'
14877	if test "$aix_use_runtimelinking" = yes; then
14878	  shared_flag="$shared_flag "'${wl}-G'
14879	fi
14880      else
14881	# not using gcc
14882	if test "$host_cpu" = ia64; then
14883  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14884  	# chokes on -Wl,-G. The following line is correct:
14885	  shared_flag='-G'
14886	else
14887	  if test "$aix_use_runtimelinking" = yes; then
14888	    shared_flag='${wl}-G'
14889	  else
14890	    shared_flag='${wl}-bM:SRE'
14891	  fi
14892	fi
14893      fi
14894
14895      # It seems that -bexpall does not export symbols beginning with
14896      # underscore (_), so it is better to generate a list of symbols to export.
14897      always_export_symbols_F77=yes
14898      if test "$aix_use_runtimelinking" = yes; then
14899	# Warning - without using the other runtime loading flags (-brtl),
14900	# -berok will link without error, but may produce a broken library.
14901	allow_undefined_flag_F77='-berok'
14902       # Determine the default libpath from the value encoded in an empty executable.
14903       cat >conftest.$ac_ext <<_ACEOF
14904      program main
14905
14906      end
14907_ACEOF
14908rm -f conftest.$ac_objext conftest$ac_exeext
14909if { (ac_try="$ac_link"
14910case "(($ac_try" in
14911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14912  *) ac_try_echo=$ac_try;;
14913esac
14914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14915  (eval "$ac_link") 2>conftest.er1
14916  ac_status=$?
14917  grep -v '^ *+' conftest.er1 >conftest.err
14918  rm -f conftest.er1
14919  cat conftest.err >&5
14920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921  (exit $ac_status); } && {
14922	 test -z "$ac_f77_werror_flag" ||
14923	 test ! -s conftest.err
14924       } && test -s conftest$ac_exeext &&
14925       $as_test_x conftest$ac_exeext; then
14926
14927lt_aix_libpath_sed='
14928    /Import File Strings/,/^$/ {
14929	/^0/ {
14930	    s/^0  *\(.*\)$/\1/
14931	    p
14932	}
14933    }'
14934aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14935# Check for a 64-bit object if we didn't find anything.
14936if test -z "$aix_libpath"; then
14937  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14938fi
14939else
14940  echo "$as_me: failed program was:" >&5
14941sed 's/^/| /' conftest.$ac_ext >&5
14942
14943
14944fi
14945
14946rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14947      conftest$ac_exeext conftest.$ac_ext
14948if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14949
14950       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14951	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"
14952       else
14953	if test "$host_cpu" = ia64; then
14954	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14955	  allow_undefined_flag_F77="-z nodefs"
14956	  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"
14957	else
14958	 # Determine the default libpath from the value encoded in an empty executable.
14959	 cat >conftest.$ac_ext <<_ACEOF
14960      program main
14961
14962      end
14963_ACEOF
14964rm -f conftest.$ac_objext conftest$ac_exeext
14965if { (ac_try="$ac_link"
14966case "(($ac_try" in
14967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14968  *) ac_try_echo=$ac_try;;
14969esac
14970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14971  (eval "$ac_link") 2>conftest.er1
14972  ac_status=$?
14973  grep -v '^ *+' conftest.er1 >conftest.err
14974  rm -f conftest.er1
14975  cat conftest.err >&5
14976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977  (exit $ac_status); } && {
14978	 test -z "$ac_f77_werror_flag" ||
14979	 test ! -s conftest.err
14980       } && test -s conftest$ac_exeext &&
14981       $as_test_x conftest$ac_exeext; then
14982
14983lt_aix_libpath_sed='
14984    /Import File Strings/,/^$/ {
14985	/^0/ {
14986	    s/^0  *\(.*\)$/\1/
14987	    p
14988	}
14989    }'
14990aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14991# Check for a 64-bit object if we didn't find anything.
14992if test -z "$aix_libpath"; then
14993  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14994fi
14995else
14996  echo "$as_me: failed program was:" >&5
14997sed 's/^/| /' conftest.$ac_ext >&5
14998
14999
15000fi
15001
15002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15003      conftest$ac_exeext conftest.$ac_ext
15004if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15005
15006	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15007	  # Warning - without using the other run time loading flags,
15008	  # -berok will link without error, but may produce a broken library.
15009	  no_undefined_flag_F77=' ${wl}-bernotok'
15010	  allow_undefined_flag_F77=' ${wl}-berok'
15011	  # Exported symbols can be pulled into shared objects from archives
15012	  whole_archive_flag_spec_F77='$convenience'
15013	  archive_cmds_need_lc_F77=yes
15014	  # This is similar to how AIX traditionally builds its shared libraries.
15015	  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'
15016	fi
15017      fi
15018      ;;
15019
15020    amigaos*)
15021      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)'
15022      hardcode_libdir_flag_spec_F77='-L$libdir'
15023      hardcode_minus_L_F77=yes
15024      # see comment about different semantics on the GNU ld section
15025      ld_shlibs_F77=no
15026      ;;
15027
15028    bsdi[45]*)
15029      export_dynamic_flag_spec_F77=-rdynamic
15030      ;;
15031
15032    cygwin* | mingw* | pw32*)
15033      # When not using gcc, we currently assume that we are using
15034      # Microsoft Visual C++.
15035      # hardcode_libdir_flag_spec is actually meaningless, as there is
15036      # no search path for DLLs.
15037      hardcode_libdir_flag_spec_F77=' '
15038      allow_undefined_flag_F77=unsupported
15039      # Tell ltmain to make .lib files, not .a files.
15040      libext=lib
15041      # Tell ltmain to make .dll files, not .so files.
15042      shrext_cmds=".dll"
15043      # FIXME: Setting linknames here is a bad hack.
15044      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15045      # The linker will automatically build a .lib file if we build a DLL.
15046      old_archive_From_new_cmds_F77='true'
15047      # FIXME: Should let the user specify the lib program.
15048      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15049      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15050      enable_shared_with_static_runtimes_F77=yes
15051      ;;
15052
15053    darwin* | rhapsody*)
15054      case $host_os in
15055        rhapsody* | darwin1.[012])
15056         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15057         ;;
15058       *) # Darwin 1.3 on
15059         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15060           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15061         else
15062           case ${MACOSX_DEPLOYMENT_TARGET} in
15063             10.[012])
15064               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15065               ;;
15066             10.*)
15067               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15068               ;;
15069           esac
15070         fi
15071         ;;
15072      esac
15073      archive_cmds_need_lc_F77=no
15074      hardcode_direct_F77=no
15075      hardcode_automatic_F77=yes
15076      hardcode_shlibpath_var_F77=unsupported
15077      whole_archive_flag_spec_F77=''
15078      link_all_deplibs_F77=yes
15079    if test "$GCC" = yes ; then
15080    	output_verbose_link_cmd='echo'
15081        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}"
15082        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15083        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}"
15084        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}"
15085    else
15086      case $cc_basename in
15087        xlc*)
15088         output_verbose_link_cmd='echo'
15089         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15090         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15091          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15092         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}'
15093          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}'
15094          ;;
15095       *)
15096         ld_shlibs_F77=no
15097          ;;
15098      esac
15099    fi
15100      ;;
15101
15102    dgux*)
15103      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15104      hardcode_libdir_flag_spec_F77='-L$libdir'
15105      hardcode_shlibpath_var_F77=no
15106      ;;
15107
15108    freebsd1*)
15109      ld_shlibs_F77=no
15110      ;;
15111
15112    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15113    # support.  Future versions do this automatically, but an explicit c++rt0.o
15114    # does not break anything, and helps significantly (at the cost of a little
15115    # extra space).
15116    freebsd2.2*)
15117      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15118      hardcode_libdir_flag_spec_F77='-R$libdir'
15119      hardcode_direct_F77=yes
15120      hardcode_shlibpath_var_F77=no
15121      ;;
15122
15123    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15124    freebsd2*)
15125      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15126      hardcode_direct_F77=yes
15127      hardcode_minus_L_F77=yes
15128      hardcode_shlibpath_var_F77=no
15129      ;;
15130
15131    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15132    freebsd* | dragonfly*)
15133      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15134      hardcode_libdir_flag_spec_F77='-R$libdir'
15135      hardcode_direct_F77=yes
15136      hardcode_shlibpath_var_F77=no
15137      ;;
15138
15139    hpux9*)
15140      if test "$GCC" = yes; then
15141	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'
15142      else
15143	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'
15144      fi
15145      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15146      hardcode_libdir_separator_F77=:
15147      hardcode_direct_F77=yes
15148
15149      # hardcode_minus_L: Not really in the search PATH,
15150      # but as the default location of the library.
15151      hardcode_minus_L_F77=yes
15152      export_dynamic_flag_spec_F77='${wl}-E'
15153      ;;
15154
15155    hpux10*)
15156      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15157	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15158      else
15159	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15160      fi
15161      if test "$with_gnu_ld" = no; then
15162	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15163	hardcode_libdir_separator_F77=:
15164
15165	hardcode_direct_F77=yes
15166	export_dynamic_flag_spec_F77='${wl}-E'
15167
15168	# hardcode_minus_L: Not really in the search PATH,
15169	# but as the default location of the library.
15170	hardcode_minus_L_F77=yes
15171      fi
15172      ;;
15173
15174    hpux11*)
15175      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15176	case $host_cpu in
15177	hppa*64*)
15178	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15179	  ;;
15180	ia64*)
15181	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15182	  ;;
15183	*)
15184	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15185	  ;;
15186	esac
15187      else
15188	case $host_cpu in
15189	hppa*64*)
15190	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15191	  ;;
15192	ia64*)
15193	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15194	  ;;
15195	*)
15196	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15197	  ;;
15198	esac
15199      fi
15200      if test "$with_gnu_ld" = no; then
15201	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15202	hardcode_libdir_separator_F77=:
15203
15204	case $host_cpu in
15205	hppa*64*|ia64*)
15206	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15207	  hardcode_direct_F77=no
15208	  hardcode_shlibpath_var_F77=no
15209	  ;;
15210	*)
15211	  hardcode_direct_F77=yes
15212	  export_dynamic_flag_spec_F77='${wl}-E'
15213
15214	  # hardcode_minus_L: Not really in the search PATH,
15215	  # but as the default location of the library.
15216	  hardcode_minus_L_F77=yes
15217	  ;;
15218	esac
15219      fi
15220      ;;
15221
15222    irix5* | irix6* | nonstopux*)
15223      if test "$GCC" = yes; then
15224	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'
15225      else
15226	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'
15227	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15228      fi
15229      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15230      hardcode_libdir_separator_F77=:
15231      link_all_deplibs_F77=yes
15232      ;;
15233
15234    netbsd* | netbsdelf*-gnu)
15235      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15236	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15237      else
15238	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15239      fi
15240      hardcode_libdir_flag_spec_F77='-R$libdir'
15241      hardcode_direct_F77=yes
15242      hardcode_shlibpath_var_F77=no
15243      ;;
15244
15245    newsos6)
15246      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15247      hardcode_direct_F77=yes
15248      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15249      hardcode_libdir_separator_F77=:
15250      hardcode_shlibpath_var_F77=no
15251      ;;
15252
15253    openbsd*)
15254      if test -f /usr/libexec/ld.so; then
15255	hardcode_direct_F77=yes
15256	hardcode_shlibpath_var_F77=no
15257	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15258	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15259	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15260	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15261	  export_dynamic_flag_spec_F77='${wl}-E'
15262	else
15263	  case $host_os in
15264	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15265	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15266	     hardcode_libdir_flag_spec_F77='-R$libdir'
15267	     ;;
15268	   *)
15269	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15270	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15271	     ;;
15272	  esac
15273        fi
15274      else
15275	ld_shlibs_F77=no
15276      fi
15277      ;;
15278
15279    os2*)
15280      hardcode_libdir_flag_spec_F77='-L$libdir'
15281      hardcode_minus_L_F77=yes
15282      allow_undefined_flag_F77=unsupported
15283      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'
15284      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15285      ;;
15286
15287    osf3*)
15288      if test "$GCC" = yes; then
15289	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15290	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'
15291      else
15292	allow_undefined_flag_F77=' -expect_unresolved \*'
15293	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'
15294      fi
15295      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15296      hardcode_libdir_separator_F77=:
15297      ;;
15298
15299    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15300      if test "$GCC" = yes; then
15301	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15302	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'
15303	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15304      else
15305	allow_undefined_flag_F77=' -expect_unresolved \*'
15306	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'
15307	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~
15308	$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'
15309
15310	# Both c and cxx compiler support -rpath directly
15311	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15312      fi
15313      hardcode_libdir_separator_F77=:
15314      ;;
15315
15316    solaris*)
15317      no_undefined_flag_F77=' -z text'
15318      if test "$GCC" = yes; then
15319	wlarc='${wl}'
15320	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15321	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15322	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15323      else
15324	wlarc=''
15325	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15326	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15327  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15328      fi
15329      hardcode_libdir_flag_spec_F77='-R$libdir'
15330      hardcode_shlibpath_var_F77=no
15331      case $host_os in
15332      solaris2.[0-5] | solaris2.[0-5].*) ;;
15333      *)
15334	# The compiler driver will combine and reorder linker options,
15335	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15336	# but is careful enough not to reorder.
15337 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15338	if test "$GCC" = yes; then
15339	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15340	else
15341	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15342	fi
15343	;;
15344      esac
15345      link_all_deplibs_F77=yes
15346      ;;
15347
15348    sunos4*)
15349      if test "x$host_vendor" = xsequent; then
15350	# Use $CC to link under sequent, because it throws in some extra .o
15351	# files that make .init and .fini sections work.
15352	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15353      else
15354	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15355      fi
15356      hardcode_libdir_flag_spec_F77='-L$libdir'
15357      hardcode_direct_F77=yes
15358      hardcode_minus_L_F77=yes
15359      hardcode_shlibpath_var_F77=no
15360      ;;
15361
15362    sysv4)
15363      case $host_vendor in
15364	sni)
15365	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15366	  hardcode_direct_F77=yes # is this really true???
15367	;;
15368	siemens)
15369	  ## LD is ld it makes a PLAMLIB
15370	  ## CC just makes a GrossModule.
15371	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15372	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15373	  hardcode_direct_F77=no
15374        ;;
15375	motorola)
15376	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15377	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15378	;;
15379      esac
15380      runpath_var='LD_RUN_PATH'
15381      hardcode_shlibpath_var_F77=no
15382      ;;
15383
15384    sysv4.3*)
15385      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15386      hardcode_shlibpath_var_F77=no
15387      export_dynamic_flag_spec_F77='-Bexport'
15388      ;;
15389
15390    sysv4*MP*)
15391      if test -d /usr/nec; then
15392	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15393	hardcode_shlibpath_var_F77=no
15394	runpath_var=LD_RUN_PATH
15395	hardcode_runpath_var=yes
15396	ld_shlibs_F77=yes
15397      fi
15398      ;;
15399
15400    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15401      no_undefined_flag_F77='${wl}-z,text'
15402      archive_cmds_need_lc_F77=no
15403      hardcode_shlibpath_var_F77=no
15404      runpath_var='LD_RUN_PATH'
15405
15406      if test "$GCC" = yes; then
15407	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15408	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15409      else
15410	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15411	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15412      fi
15413      ;;
15414
15415    sysv5* | sco3.2v5* | sco5v6*)
15416      # Note: We can NOT use -z defs as we might desire, because we do not
15417      # link with -lc, and that would cause any symbols used from libc to
15418      # always be unresolved, which means just about no library would
15419      # ever link correctly.  If we're not using GNU ld we use -z text
15420      # though, which does catch some bad symbols but isn't as heavy-handed
15421      # as -z defs.
15422      no_undefined_flag_F77='${wl}-z,text'
15423      allow_undefined_flag_F77='${wl}-z,nodefs'
15424      archive_cmds_need_lc_F77=no
15425      hardcode_shlibpath_var_F77=no
15426      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15427      hardcode_libdir_separator_F77=':'
15428      link_all_deplibs_F77=yes
15429      export_dynamic_flag_spec_F77='${wl}-Bexport'
15430      runpath_var='LD_RUN_PATH'
15431
15432      if test "$GCC" = yes; then
15433	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15434	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15435      else
15436	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15437	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15438      fi
15439      ;;
15440
15441    uts4*)
15442      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15443      hardcode_libdir_flag_spec_F77='-L$libdir'
15444      hardcode_shlibpath_var_F77=no
15445      ;;
15446
15447    *)
15448      ld_shlibs_F77=no
15449      ;;
15450    esac
15451  fi
15452
15453{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15454echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15455test "$ld_shlibs_F77" = no && can_build_shared=no
15456
15457#
15458# Do we need to explicitly link libc?
15459#
15460case "x$archive_cmds_need_lc_F77" in
15461x|xyes)
15462  # Assume -lc should be added
15463  archive_cmds_need_lc_F77=yes
15464
15465  if test "$enable_shared" = yes && test "$GCC" = yes; then
15466    case $archive_cmds_F77 in
15467    *'~'*)
15468      # FIXME: we may have to deal with multi-command sequences.
15469      ;;
15470    '$CC '*)
15471      # Test whether the compiler implicitly links with -lc since on some
15472      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15473      # to ld, don't add -lc before -lgcc.
15474      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15475echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15476      $rm conftest*
15477      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15478
15479      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15480  (eval $ac_compile) 2>&5
15481  ac_status=$?
15482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483  (exit $ac_status); } 2>conftest.err; then
15484        soname=conftest
15485        lib=conftest
15486        libobjs=conftest.$ac_objext
15487        deplibs=
15488        wl=$lt_prog_compiler_wl_F77
15489	pic_flag=$lt_prog_compiler_pic_F77
15490        compiler_flags=-v
15491        linker_flags=-v
15492        verstring=
15493        output_objdir=.
15494        libname=conftest
15495        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15496        allow_undefined_flag_F77=
15497        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15498  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15499  ac_status=$?
15500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501  (exit $ac_status); }
15502        then
15503	  archive_cmds_need_lc_F77=no
15504        else
15505	  archive_cmds_need_lc_F77=yes
15506        fi
15507        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15508      else
15509        cat conftest.err 1>&5
15510      fi
15511      $rm conftest*
15512      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15513echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15514      ;;
15515    esac
15516  fi
15517  ;;
15518esac
15519
15520{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15521echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15522library_names_spec=
15523libname_spec='lib$name'
15524soname_spec=
15525shrext_cmds=".so"
15526postinstall_cmds=
15527postuninstall_cmds=
15528finish_cmds=
15529finish_eval=
15530shlibpath_var=
15531shlibpath_overrides_runpath=unknown
15532version_type=none
15533dynamic_linker="$host_os ld.so"
15534sys_lib_dlsearch_path_spec="/lib /usr/lib"
15535
15536need_lib_prefix=unknown
15537hardcode_into_libs=no
15538
15539# when you set need_version to no, make sure it does not cause -set_version
15540# flags to be left without arguments
15541need_version=unknown
15542
15543case $host_os in
15544aix3*)
15545  version_type=linux
15546  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15547  shlibpath_var=LIBPATH
15548
15549  # AIX 3 has no versioning support, so we append a major version to the name.
15550  soname_spec='${libname}${release}${shared_ext}$major'
15551  ;;
15552
15553aix[4-9]*)
15554  version_type=linux
15555  need_lib_prefix=no
15556  need_version=no
15557  hardcode_into_libs=yes
15558  if test "$host_cpu" = ia64; then
15559    # AIX 5 supports IA64
15560    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15561    shlibpath_var=LD_LIBRARY_PATH
15562  else
15563    # With GCC up to 2.95.x, collect2 would create an import file
15564    # for dependence libraries.  The import file would start with
15565    # the line `#! .'.  This would cause the generated library to
15566    # depend on `.', always an invalid library.  This was fixed in
15567    # development snapshots of GCC prior to 3.0.
15568    case $host_os in
15569      aix4 | aix4.[01] | aix4.[01].*)
15570      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15571	   echo ' yes '
15572	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15573	:
15574      else
15575	can_build_shared=no
15576      fi
15577      ;;
15578    esac
15579    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15580    # soname into executable. Probably we can add versioning support to
15581    # collect2, so additional links can be useful in future.
15582    if test "$aix_use_runtimelinking" = yes; then
15583      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15584      # instead of lib<name>.a to let people know that these are not
15585      # typical AIX shared libraries.
15586      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15587    else
15588      # We preserve .a as extension for shared libraries through AIX4.2
15589      # and later when we are not doing run time linking.
15590      library_names_spec='${libname}${release}.a $libname.a'
15591      soname_spec='${libname}${release}${shared_ext}$major'
15592    fi
15593    shlibpath_var=LIBPATH
15594  fi
15595  ;;
15596
15597amigaos*)
15598  library_names_spec='$libname.ixlibrary $libname.a'
15599  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15600  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'
15601  ;;
15602
15603beos*)
15604  library_names_spec='${libname}${shared_ext}'
15605  dynamic_linker="$host_os ld.so"
15606  shlibpath_var=LIBRARY_PATH
15607  ;;
15608
15609bsdi[45]*)
15610  version_type=linux
15611  need_version=no
15612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15613  soname_spec='${libname}${release}${shared_ext}$major'
15614  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15615  shlibpath_var=LD_LIBRARY_PATH
15616  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15617  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15618  # the default ld.so.conf also contains /usr/contrib/lib and
15619  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15620  # libtool to hard-code these into programs
15621  ;;
15622
15623cygwin* | mingw* | pw32*)
15624  version_type=windows
15625  shrext_cmds=".dll"
15626  need_version=no
15627  need_lib_prefix=no
15628
15629  case $GCC,$host_os in
15630  yes,cygwin* | yes,mingw* | yes,pw32*)
15631    library_names_spec='$libname.dll.a'
15632    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15633    postinstall_cmds='base_file=`basename \${file}`~
15634      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15635      dldir=$destdir/`dirname \$dlpath`~
15636      test -d \$dldir || mkdir -p \$dldir~
15637      $install_prog $dir/$dlname \$dldir/$dlname~
15638      chmod a+x \$dldir/$dlname'
15639    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15640      dlpath=$dir/\$dldll~
15641       $rm \$dlpath'
15642    shlibpath_overrides_runpath=yes
15643
15644    case $host_os in
15645    cygwin*)
15646      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15647      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15648      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15649      ;;
15650    mingw*)
15651      # MinGW DLLs use traditional 'lib' prefix
15652      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15653      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15654      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15655        # It is most probably a Windows format PATH printed by
15656        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15657        # path with ; separators, and with drive letters. We can handle the
15658        # drive letters (cygwin fileutils understands them), so leave them,
15659        # especially as we might pass files found there to a mingw objdump,
15660        # which wouldn't understand a cygwinified path. Ahh.
15661        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15662      else
15663        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15664      fi
15665      ;;
15666    pw32*)
15667      # pw32 DLLs use 'pw' prefix rather than 'lib'
15668      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15669      ;;
15670    esac
15671    ;;
15672
15673  *)
15674    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15675    ;;
15676  esac
15677  dynamic_linker='Win32 ld.exe'
15678  # FIXME: first we should search . and the directory the executable is in
15679  shlibpath_var=PATH
15680  ;;
15681
15682darwin* | rhapsody*)
15683  dynamic_linker="$host_os dyld"
15684  version_type=darwin
15685  need_lib_prefix=no
15686  need_version=no
15687  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15688  soname_spec='${libname}${release}${major}$shared_ext'
15689  shlibpath_overrides_runpath=yes
15690  shlibpath_var=DYLD_LIBRARY_PATH
15691  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15692
15693  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15694  ;;
15695
15696dgux*)
15697  version_type=linux
15698  need_lib_prefix=no
15699  need_version=no
15700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15701  soname_spec='${libname}${release}${shared_ext}$major'
15702  shlibpath_var=LD_LIBRARY_PATH
15703  ;;
15704
15705freebsd1*)
15706  dynamic_linker=no
15707  ;;
15708
15709freebsd* | dragonfly*)
15710  # DragonFly does not have aout.  When/if they implement a new
15711  # versioning mechanism, adjust this.
15712  if test -x /usr/bin/objformat; then
15713    objformat=`/usr/bin/objformat`
15714  else
15715    case $host_os in
15716    freebsd[123]*) objformat=aout ;;
15717    *) objformat=elf ;;
15718    esac
15719  fi
15720  version_type=freebsd-$objformat
15721  case $version_type in
15722    freebsd-elf*)
15723      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15724      need_version=no
15725      need_lib_prefix=no
15726      ;;
15727    freebsd-*)
15728      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15729      need_version=yes
15730      ;;
15731  esac
15732  shlibpath_var=LD_LIBRARY_PATH
15733  case $host_os in
15734  freebsd2*)
15735    shlibpath_overrides_runpath=yes
15736    ;;
15737  freebsd3.[01]* | freebsdelf3.[01]*)
15738    shlibpath_overrides_runpath=yes
15739    hardcode_into_libs=yes
15740    ;;
15741  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15742  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15743    shlibpath_overrides_runpath=no
15744    hardcode_into_libs=yes
15745    ;;
15746  *) # from 4.6 on, and DragonFly
15747    shlibpath_overrides_runpath=yes
15748    hardcode_into_libs=yes
15749    ;;
15750  esac
15751  ;;
15752
15753gnu*)
15754  version_type=linux
15755  need_lib_prefix=no
15756  need_version=no
15757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15758  soname_spec='${libname}${release}${shared_ext}$major'
15759  shlibpath_var=LD_LIBRARY_PATH
15760  hardcode_into_libs=yes
15761  ;;
15762
15763hpux9* | hpux10* | hpux11*)
15764  # Give a soname corresponding to the major version so that dld.sl refuses to
15765  # link against other versions.
15766  version_type=sunos
15767  need_lib_prefix=no
15768  need_version=no
15769  case $host_cpu in
15770  ia64*)
15771    shrext_cmds='.so'
15772    hardcode_into_libs=yes
15773    dynamic_linker="$host_os dld.so"
15774    shlibpath_var=LD_LIBRARY_PATH
15775    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15776    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15777    soname_spec='${libname}${release}${shared_ext}$major'
15778    if test "X$HPUX_IA64_MODE" = X32; then
15779      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15780    else
15781      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15782    fi
15783    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15784    ;;
15785   hppa*64*)
15786     shrext_cmds='.sl'
15787     hardcode_into_libs=yes
15788     dynamic_linker="$host_os dld.sl"
15789     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15790     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15791     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15792     soname_spec='${libname}${release}${shared_ext}$major'
15793     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15794     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15795     ;;
15796   *)
15797    shrext_cmds='.sl'
15798    dynamic_linker="$host_os dld.sl"
15799    shlibpath_var=SHLIB_PATH
15800    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15801    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15802    soname_spec='${libname}${release}${shared_ext}$major'
15803    ;;
15804  esac
15805  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15806  postinstall_cmds='chmod 555 $lib'
15807  ;;
15808
15809interix[3-9]*)
15810  version_type=linux
15811  need_lib_prefix=no
15812  need_version=no
15813  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15814  soname_spec='${libname}${release}${shared_ext}$major'
15815  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15816  shlibpath_var=LD_LIBRARY_PATH
15817  shlibpath_overrides_runpath=no
15818  hardcode_into_libs=yes
15819  ;;
15820
15821irix5* | irix6* | nonstopux*)
15822  case $host_os in
15823    nonstopux*) version_type=nonstopux ;;
15824    *)
15825	if test "$lt_cv_prog_gnu_ld" = yes; then
15826		version_type=linux
15827	else
15828		version_type=irix
15829	fi ;;
15830  esac
15831  need_lib_prefix=no
15832  need_version=no
15833  soname_spec='${libname}${release}${shared_ext}$major'
15834  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15835  case $host_os in
15836  irix5* | nonstopux*)
15837    libsuff= shlibsuff=
15838    ;;
15839  *)
15840    case $LD in # libtool.m4 will add one of these switches to LD
15841    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15842      libsuff= shlibsuff= libmagic=32-bit;;
15843    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15844      libsuff=32 shlibsuff=N32 libmagic=N32;;
15845    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15846      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15847    *) libsuff= shlibsuff= libmagic=never-match;;
15848    esac
15849    ;;
15850  esac
15851  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15852  shlibpath_overrides_runpath=no
15853  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15854  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15855  hardcode_into_libs=yes
15856  ;;
15857
15858# No shared lib support for Linux oldld, aout, or coff.
15859linux*oldld* | linux*aout* | linux*coff*)
15860  dynamic_linker=no
15861  ;;
15862
15863# This must be Linux ELF.
15864linux* | k*bsd*-gnu)
15865  version_type=linux
15866  need_lib_prefix=no
15867  need_version=no
15868  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15869  soname_spec='${libname}${release}${shared_ext}$major'
15870  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15871  shlibpath_var=LD_LIBRARY_PATH
15872  shlibpath_overrides_runpath=no
15873  # This implies no fast_install, which is unacceptable.
15874  # Some rework will be needed to allow for fast_install
15875  # before this can be enabled.
15876  hardcode_into_libs=yes
15877
15878  # Append ld.so.conf contents to the search path
15879  if test -f /etc/ld.so.conf; then
15880    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' ' '`
15881    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15882  fi
15883
15884  # We used to test for /lib/ld.so.1 and disable shared libraries on
15885  # powerpc, because MkLinux only supported shared libraries with the
15886  # GNU dynamic linker.  Since this was broken with cross compilers,
15887  # most powerpc-linux boxes support dynamic linking these days and
15888  # people can always --disable-shared, the test was removed, and we
15889  # assume the GNU/Linux dynamic linker is in use.
15890  dynamic_linker='GNU/Linux ld.so'
15891  ;;
15892
15893netbsdelf*-gnu)
15894  version_type=linux
15895  need_lib_prefix=no
15896  need_version=no
15897  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15898  soname_spec='${libname}${release}${shared_ext}$major'
15899  shlibpath_var=LD_LIBRARY_PATH
15900  shlibpath_overrides_runpath=no
15901  hardcode_into_libs=yes
15902  dynamic_linker='NetBSD ld.elf_so'
15903  ;;
15904
15905netbsd*)
15906  version_type=sunos
15907  need_lib_prefix=no
15908  need_version=no
15909  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15910    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15911    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15912    dynamic_linker='NetBSD (a.out) ld.so'
15913  else
15914    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15915    soname_spec='${libname}${release}${shared_ext}$major'
15916    dynamic_linker='NetBSD ld.elf_so'
15917  fi
15918  shlibpath_var=LD_LIBRARY_PATH
15919  shlibpath_overrides_runpath=yes
15920  hardcode_into_libs=yes
15921  ;;
15922
15923newsos6)
15924  version_type=linux
15925  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15926  shlibpath_var=LD_LIBRARY_PATH
15927  shlibpath_overrides_runpath=yes
15928  ;;
15929
15930nto-qnx*)
15931  version_type=linux
15932  need_lib_prefix=no
15933  need_version=no
15934  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15935  soname_spec='${libname}${release}${shared_ext}$major'
15936  shlibpath_var=LD_LIBRARY_PATH
15937  shlibpath_overrides_runpath=yes
15938  ;;
15939
15940openbsd*)
15941  version_type=sunos
15942  sys_lib_dlsearch_path_spec="/usr/lib"
15943  need_lib_prefix=no
15944  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15945  case $host_os in
15946    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15947    *)                         need_version=no  ;;
15948  esac
15949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15950  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15951  shlibpath_var=LD_LIBRARY_PATH
15952  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15953    case $host_os in
15954      openbsd2.[89] | openbsd2.[89].*)
15955	shlibpath_overrides_runpath=no
15956	;;
15957      *)
15958	shlibpath_overrides_runpath=yes
15959	;;
15960      esac
15961  else
15962    shlibpath_overrides_runpath=yes
15963  fi
15964  ;;
15965
15966os2*)
15967  libname_spec='$name'
15968  shrext_cmds=".dll"
15969  need_lib_prefix=no
15970  library_names_spec='$libname${shared_ext} $libname.a'
15971  dynamic_linker='OS/2 ld.exe'
15972  shlibpath_var=LIBPATH
15973  ;;
15974
15975osf3* | osf4* | osf5*)
15976  version_type=osf
15977  need_lib_prefix=no
15978  need_version=no
15979  soname_spec='${libname}${release}${shared_ext}$major'
15980  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15981  shlibpath_var=LD_LIBRARY_PATH
15982  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15983  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15984  ;;
15985
15986rdos*)
15987  dynamic_linker=no
15988  ;;
15989
15990solaris*)
15991  version_type=linux
15992  need_lib_prefix=no
15993  need_version=no
15994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15995  soname_spec='${libname}${release}${shared_ext}$major'
15996  shlibpath_var=LD_LIBRARY_PATH
15997  shlibpath_overrides_runpath=yes
15998  hardcode_into_libs=yes
15999  # ldd complains unless libraries are executable
16000  postinstall_cmds='chmod +x $lib'
16001  ;;
16002
16003sunos4*)
16004  version_type=sunos
16005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16006  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16007  shlibpath_var=LD_LIBRARY_PATH
16008  shlibpath_overrides_runpath=yes
16009  if test "$with_gnu_ld" = yes; then
16010    need_lib_prefix=no
16011  fi
16012  need_version=yes
16013  ;;
16014
16015sysv4 | sysv4.3*)
16016  version_type=linux
16017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16018  soname_spec='${libname}${release}${shared_ext}$major'
16019  shlibpath_var=LD_LIBRARY_PATH
16020  case $host_vendor in
16021    sni)
16022      shlibpath_overrides_runpath=no
16023      need_lib_prefix=no
16024      export_dynamic_flag_spec='${wl}-Blargedynsym'
16025      runpath_var=LD_RUN_PATH
16026      ;;
16027    siemens)
16028      need_lib_prefix=no
16029      ;;
16030    motorola)
16031      need_lib_prefix=no
16032      need_version=no
16033      shlibpath_overrides_runpath=no
16034      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16035      ;;
16036  esac
16037  ;;
16038
16039sysv4*MP*)
16040  if test -d /usr/nec ;then
16041    version_type=linux
16042    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16043    soname_spec='$libname${shared_ext}.$major'
16044    shlibpath_var=LD_LIBRARY_PATH
16045  fi
16046  ;;
16047
16048sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16049  version_type=freebsd-elf
16050  need_lib_prefix=no
16051  need_version=no
16052  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16053  soname_spec='${libname}${release}${shared_ext}$major'
16054  shlibpath_var=LD_LIBRARY_PATH
16055  hardcode_into_libs=yes
16056  if test "$with_gnu_ld" = yes; then
16057    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16058    shlibpath_overrides_runpath=no
16059  else
16060    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16061    shlibpath_overrides_runpath=yes
16062    case $host_os in
16063      sco3.2v5*)
16064        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16065	;;
16066    esac
16067  fi
16068  sys_lib_dlsearch_path_spec='/usr/lib'
16069  ;;
16070
16071uts4*)
16072  version_type=linux
16073  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16074  soname_spec='${libname}${release}${shared_ext}$major'
16075  shlibpath_var=LD_LIBRARY_PATH
16076  ;;
16077
16078*)
16079  dynamic_linker=no
16080  ;;
16081esac
16082{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16083echo "${ECHO_T}$dynamic_linker" >&6; }
16084test "$dynamic_linker" = no && can_build_shared=no
16085
16086if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16087  echo $ECHO_N "(cached) $ECHO_C" >&6
16088else
16089  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16090fi
16091
16092sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16093if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16094  echo $ECHO_N "(cached) $ECHO_C" >&6
16095else
16096  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16097fi
16098
16099sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16100
16101variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16102if test "$GCC" = yes; then
16103  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16104fi
16105
16106{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16107echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16108hardcode_action_F77=
16109if test -n "$hardcode_libdir_flag_spec_F77" || \
16110   test -n "$runpath_var_F77" || \
16111   test "X$hardcode_automatic_F77" = "Xyes" ; then
16112
16113  # We can hardcode non-existant directories.
16114  if test "$hardcode_direct_F77" != no &&
16115     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16116     # have to relink, otherwise we might link with an installed library
16117     # when we should be linking with a yet-to-be-installed one
16118     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16119     test "$hardcode_minus_L_F77" != no; then
16120    # Linking always hardcodes the temporary library directory.
16121    hardcode_action_F77=relink
16122  else
16123    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16124    hardcode_action_F77=immediate
16125  fi
16126else
16127  # We cannot hardcode anything, or else we can only hardcode existing
16128  # directories.
16129  hardcode_action_F77=unsupported
16130fi
16131{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16132echo "${ECHO_T}$hardcode_action_F77" >&6; }
16133
16134if test "$hardcode_action_F77" = relink; then
16135  # Fast installation is not supported
16136  enable_fast_install=no
16137elif test "$shlibpath_overrides_runpath" = yes ||
16138     test "$enable_shared" = no; then
16139  # Fast installation is not necessary
16140  enable_fast_install=needless
16141fi
16142
16143
16144# The else clause should only fire when bootstrapping the
16145# libtool distribution, otherwise you forgot to ship ltmain.sh
16146# with your package, and you will get complaints that there are
16147# no rules to generate ltmain.sh.
16148if test -f "$ltmain"; then
16149  # See if we are running on zsh, and set the options which allow our commands through
16150  # without removal of \ escapes.
16151  if test -n "${ZSH_VERSION+set}" ; then
16152    setopt NO_GLOB_SUBST
16153  fi
16154  # Now quote all the things that may contain metacharacters while being
16155  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16156  # variables and quote the copies for generation of the libtool script.
16157  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16158    SED SHELL STRIP \
16159    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16160    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16161    deplibs_check_method reload_flag reload_cmds need_locks \
16162    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16163    lt_cv_sys_global_symbol_to_c_name_address \
16164    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16165    old_postinstall_cmds old_postuninstall_cmds \
16166    compiler_F77 \
16167    CC_F77 \
16168    LD_F77 \
16169    lt_prog_compiler_wl_F77 \
16170    lt_prog_compiler_pic_F77 \
16171    lt_prog_compiler_static_F77 \
16172    lt_prog_compiler_no_builtin_flag_F77 \
16173    export_dynamic_flag_spec_F77 \
16174    thread_safe_flag_spec_F77 \
16175    whole_archive_flag_spec_F77 \
16176    enable_shared_with_static_runtimes_F77 \
16177    old_archive_cmds_F77 \
16178    old_archive_from_new_cmds_F77 \
16179    predep_objects_F77 \
16180    postdep_objects_F77 \
16181    predeps_F77 \
16182    postdeps_F77 \
16183    compiler_lib_search_path_F77 \
16184    compiler_lib_search_dirs_F77 \
16185    archive_cmds_F77 \
16186    archive_expsym_cmds_F77 \
16187    postinstall_cmds_F77 \
16188    postuninstall_cmds_F77 \
16189    old_archive_from_expsyms_cmds_F77 \
16190    allow_undefined_flag_F77 \
16191    no_undefined_flag_F77 \
16192    export_symbols_cmds_F77 \
16193    hardcode_libdir_flag_spec_F77 \
16194    hardcode_libdir_flag_spec_ld_F77 \
16195    hardcode_libdir_separator_F77 \
16196    hardcode_automatic_F77 \
16197    module_cmds_F77 \
16198    module_expsym_cmds_F77 \
16199    lt_cv_prog_compiler_c_o_F77 \
16200    fix_srcfile_path_F77 \
16201    exclude_expsyms_F77 \
16202    include_expsyms_F77; do
16203
16204    case $var in
16205    old_archive_cmds_F77 | \
16206    old_archive_from_new_cmds_F77 | \
16207    archive_cmds_F77 | \
16208    archive_expsym_cmds_F77 | \
16209    module_cmds_F77 | \
16210    module_expsym_cmds_F77 | \
16211    old_archive_from_expsyms_cmds_F77 | \
16212    export_symbols_cmds_F77 | \
16213    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16214    postinstall_cmds | postuninstall_cmds | \
16215    old_postinstall_cmds | old_postuninstall_cmds | \
16216    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16217      # Double-quote double-evaled strings.
16218      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16219      ;;
16220    *)
16221      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16222      ;;
16223    esac
16224  done
16225
16226  case $lt_echo in
16227  *'\$0 --fallback-echo"')
16228    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16229    ;;
16230  esac
16231
16232cfgfile="$ofile"
16233
16234  cat <<__EOF__ >> "$cfgfile"
16235# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16236
16237# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16238
16239# Shell to use when invoking shell scripts.
16240SHELL=$lt_SHELL
16241
16242# Whether or not to build shared libraries.
16243build_libtool_libs=$enable_shared
16244
16245# Whether or not to build static libraries.
16246build_old_libs=$enable_static
16247
16248# Whether or not to add -lc for building shared libraries.
16249build_libtool_need_lc=$archive_cmds_need_lc_F77
16250
16251# Whether or not to disallow shared libs when runtime libs are static
16252allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16253
16254# Whether or not to optimize for fast installation.
16255fast_install=$enable_fast_install
16256
16257# The host system.
16258host_alias=$host_alias
16259host=$host
16260host_os=$host_os
16261
16262# The build system.
16263build_alias=$build_alias
16264build=$build
16265build_os=$build_os
16266
16267# An echo program that does not interpret backslashes.
16268echo=$lt_echo
16269
16270# The archiver.
16271AR=$lt_AR
16272AR_FLAGS=$lt_AR_FLAGS
16273
16274# A C compiler.
16275LTCC=$lt_LTCC
16276
16277# LTCC compiler flags.
16278LTCFLAGS=$lt_LTCFLAGS
16279
16280# A language-specific compiler.
16281CC=$lt_compiler_F77
16282
16283# Is the compiler the GNU C compiler?
16284with_gcc=$GCC_F77
16285
16286# An ERE matcher.
16287EGREP=$lt_EGREP
16288
16289# The linker used to build libraries.
16290LD=$lt_LD_F77
16291
16292# Whether we need hard or soft links.
16293LN_S=$lt_LN_S
16294
16295# A BSD-compatible nm program.
16296NM=$lt_NM
16297
16298# A symbol stripping program
16299STRIP=$lt_STRIP
16300
16301# Used to examine libraries when file_magic_cmd begins "file"
16302MAGIC_CMD=$MAGIC_CMD
16303
16304# Used on cygwin: DLL creation program.
16305DLLTOOL="$DLLTOOL"
16306
16307# Used on cygwin: object dumper.
16308OBJDUMP="$OBJDUMP"
16309
16310# Used on cygwin: assembler.
16311AS="$AS"
16312
16313# The name of the directory that contains temporary libtool files.
16314objdir=$objdir
16315
16316# How to create reloadable object files.
16317reload_flag=$lt_reload_flag
16318reload_cmds=$lt_reload_cmds
16319
16320# How to pass a linker flag through the compiler.
16321wl=$lt_lt_prog_compiler_wl_F77
16322
16323# Object file suffix (normally "o").
16324objext="$ac_objext"
16325
16326# Old archive suffix (normally "a").
16327libext="$libext"
16328
16329# Shared library suffix (normally ".so").
16330shrext_cmds='$shrext_cmds'
16331
16332# Executable file suffix (normally "").
16333exeext="$exeext"
16334
16335# Additional compiler flags for building library objects.
16336pic_flag=$lt_lt_prog_compiler_pic_F77
16337pic_mode=$pic_mode
16338
16339# What is the maximum length of a command?
16340max_cmd_len=$lt_cv_sys_max_cmd_len
16341
16342# Does compiler simultaneously support -c and -o options?
16343compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16344
16345# Must we lock files when doing compilation?
16346need_locks=$lt_need_locks
16347
16348# Do we need the lib prefix for modules?
16349need_lib_prefix=$need_lib_prefix
16350
16351# Do we need a version for libraries?
16352need_version=$need_version
16353
16354# Whether dlopen is supported.
16355dlopen_support=$enable_dlopen
16356
16357# Whether dlopen of programs is supported.
16358dlopen_self=$enable_dlopen_self
16359
16360# Whether dlopen of statically linked programs is supported.
16361dlopen_self_static=$enable_dlopen_self_static
16362
16363# Compiler flag to prevent dynamic linking.
16364link_static_flag=$lt_lt_prog_compiler_static_F77
16365
16366# Compiler flag to turn off builtin functions.
16367no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16368
16369# Compiler flag to allow reflexive dlopens.
16370export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16371
16372# Compiler flag to generate shared objects directly from archives.
16373whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16374
16375# Compiler flag to generate thread-safe objects.
16376thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16377
16378# Library versioning type.
16379version_type=$version_type
16380
16381# Format of library name prefix.
16382libname_spec=$lt_libname_spec
16383
16384# List of archive names.  First name is the real one, the rest are links.
16385# The last name is the one that the linker finds with -lNAME.
16386library_names_spec=$lt_library_names_spec
16387
16388# The coded name of the library, if different from the real name.
16389soname_spec=$lt_soname_spec
16390
16391# Commands used to build and install an old-style archive.
16392RANLIB=$lt_RANLIB
16393old_archive_cmds=$lt_old_archive_cmds_F77
16394old_postinstall_cmds=$lt_old_postinstall_cmds
16395old_postuninstall_cmds=$lt_old_postuninstall_cmds
16396
16397# Create an old-style archive from a shared archive.
16398old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16399
16400# Create a temporary old-style archive to link instead of a shared archive.
16401old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16402
16403# Commands used to build and install a shared archive.
16404archive_cmds=$lt_archive_cmds_F77
16405archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16406postinstall_cmds=$lt_postinstall_cmds
16407postuninstall_cmds=$lt_postuninstall_cmds
16408
16409# Commands used to build a loadable module (assumed same as above if empty)
16410module_cmds=$lt_module_cmds_F77
16411module_expsym_cmds=$lt_module_expsym_cmds_F77
16412
16413# Commands to strip libraries.
16414old_striplib=$lt_old_striplib
16415striplib=$lt_striplib
16416
16417# Dependencies to place before the objects being linked to create a
16418# shared library.
16419predep_objects=$lt_predep_objects_F77
16420
16421# Dependencies to place after the objects being linked to create a
16422# shared library.
16423postdep_objects=$lt_postdep_objects_F77
16424
16425# Dependencies to place before the objects being linked to create a
16426# shared library.
16427predeps=$lt_predeps_F77
16428
16429# Dependencies to place after the objects being linked to create a
16430# shared library.
16431postdeps=$lt_postdeps_F77
16432
16433# The directories searched by this compiler when creating a shared
16434# library
16435compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16436
16437# The library search path used internally by the compiler when linking
16438# a shared library.
16439compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16440
16441# Method to check whether dependent libraries are shared objects.
16442deplibs_check_method=$lt_deplibs_check_method
16443
16444# Command to use when deplibs_check_method == file_magic.
16445file_magic_cmd=$lt_file_magic_cmd
16446
16447# Flag that allows shared libraries with undefined symbols to be built.
16448allow_undefined_flag=$lt_allow_undefined_flag_F77
16449
16450# Flag that forces no undefined symbols.
16451no_undefined_flag=$lt_no_undefined_flag_F77
16452
16453# Commands used to finish a libtool library installation in a directory.
16454finish_cmds=$lt_finish_cmds
16455
16456# Same as above, but a single script fragment to be evaled but not shown.
16457finish_eval=$lt_finish_eval
16458
16459# Take the output of nm and produce a listing of raw symbols and C names.
16460global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16461
16462# Transform the output of nm in a proper C declaration
16463global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16464
16465# Transform the output of nm in a C name address pair
16466global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16467
16468# This is the shared library runtime path variable.
16469runpath_var=$runpath_var
16470
16471# This is the shared library path variable.
16472shlibpath_var=$shlibpath_var
16473
16474# Is shlibpath searched before the hard-coded library search path?
16475shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16476
16477# How to hardcode a shared library path into an executable.
16478hardcode_action=$hardcode_action_F77
16479
16480# Whether we should hardcode library paths into libraries.
16481hardcode_into_libs=$hardcode_into_libs
16482
16483# Flag to hardcode \$libdir into a binary during linking.
16484# This must work even if \$libdir does not exist.
16485hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16486
16487# If ld is used when linking, flag to hardcode \$libdir into
16488# a binary during linking. This must work even if \$libdir does
16489# not exist.
16490hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16491
16492# Whether we need a single -rpath flag with a separated argument.
16493hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16494
16495# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16496# resulting binary.
16497hardcode_direct=$hardcode_direct_F77
16498
16499# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16500# resulting binary.
16501hardcode_minus_L=$hardcode_minus_L_F77
16502
16503# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16504# the resulting binary.
16505hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16506
16507# Set to yes if building a shared library automatically hardcodes DIR into the library
16508# and all subsequent libraries and executables linked against it.
16509hardcode_automatic=$hardcode_automatic_F77
16510
16511# Variables whose values should be saved in libtool wrapper scripts and
16512# restored at relink time.
16513variables_saved_for_relink="$variables_saved_for_relink"
16514
16515# Whether libtool must link a program against all its dependency libraries.
16516link_all_deplibs=$link_all_deplibs_F77
16517
16518# Compile-time system search path for libraries
16519sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16520
16521# Run-time system search path for libraries
16522sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16523
16524# Fix the shell variable \$srcfile for the compiler.
16525fix_srcfile_path=$lt_fix_srcfile_path
16526
16527# Set to yes if exported symbols are required.
16528always_export_symbols=$always_export_symbols_F77
16529
16530# The commands to list exported symbols.
16531export_symbols_cmds=$lt_export_symbols_cmds_F77
16532
16533# The commands to extract the exported symbol list from a shared archive.
16534extract_expsyms_cmds=$lt_extract_expsyms_cmds
16535
16536# Symbols that should not be listed in the preloaded symbols.
16537exclude_expsyms=$lt_exclude_expsyms_F77
16538
16539# Symbols that must always be exported.
16540include_expsyms=$lt_include_expsyms_F77
16541
16542# ### END LIBTOOL TAG CONFIG: $tagname
16543
16544__EOF__
16545
16546
16547else
16548  # If there is no Makefile yet, we rely on a make rule to execute
16549  # `config.status --recheck' to rerun these tests and create the
16550  # libtool script then.
16551  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16552  if test -f "$ltmain_in"; then
16553    test -f Makefile && make "$ltmain"
16554  fi
16555fi
16556
16557
16558ac_ext=c
16559ac_cpp='$CPP $CPPFLAGS'
16560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16562ac_compiler_gnu=$ac_cv_c_compiler_gnu
16563
16564CC="$lt_save_CC"
16565
16566	else
16567	  tagname=""
16568	fi
16569	;;
16570
16571      GCJ)
16572	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16573
16574
16575# Source file extension for Java test sources.
16576ac_ext=java
16577
16578# Object file extension for compiled Java test sources.
16579objext=o
16580objext_GCJ=$objext
16581
16582# Code to be used in simple compile tests
16583lt_simple_compile_test_code="class foo {}"
16584
16585# Code to be used in simple link tests
16586lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16587
16588# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16589
16590# If no C compiler was specified, use CC.
16591LTCC=${LTCC-"$CC"}
16592
16593# If no C compiler flags were specified, use CFLAGS.
16594LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16595
16596# Allow CC to be a program name with arguments.
16597compiler=$CC
16598
16599
16600# save warnings/boilerplate of simple test code
16601ac_outfile=conftest.$ac_objext
16602echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16603eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16604_lt_compiler_boilerplate=`cat conftest.err`
16605$rm conftest*
16606
16607ac_outfile=conftest.$ac_objext
16608echo "$lt_simple_link_test_code" >conftest.$ac_ext
16609eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16610_lt_linker_boilerplate=`cat conftest.err`
16611$rm -r conftest*
16612
16613
16614# Allow CC to be a program name with arguments.
16615lt_save_CC="$CC"
16616CC=${GCJ-"gcj"}
16617compiler=$CC
16618compiler_GCJ=$CC
16619for cc_temp in $compiler""; do
16620  case $cc_temp in
16621    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16622    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16623    \-*) ;;
16624    *) break;;
16625  esac
16626done
16627cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16628
16629
16630# GCJ did not exist at the time GCC didn't implicitly link libc in.
16631archive_cmds_need_lc_GCJ=no
16632
16633old_archive_cmds_GCJ=$old_archive_cmds
16634
16635
16636lt_prog_compiler_no_builtin_flag_GCJ=
16637
16638if test "$GCC" = yes; then
16639  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16640
16641
16642{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16643echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16644if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16645  echo $ECHO_N "(cached) $ECHO_C" >&6
16646else
16647  lt_cv_prog_compiler_rtti_exceptions=no
16648  ac_outfile=conftest.$ac_objext
16649   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16650   lt_compiler_flag="-fno-rtti -fno-exceptions"
16651   # Insert the option either (1) after the last *FLAGS variable, or
16652   # (2) before a word containing "conftest.", or (3) at the end.
16653   # Note that $ac_compile itself does not contain backslashes and begins
16654   # with a dollar sign (not a hyphen), so the echo should work correctly.
16655   # The option is referenced via a variable to avoid confusing sed.
16656   lt_compile=`echo "$ac_compile" | $SED \
16657   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16658   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16659   -e 's:$: $lt_compiler_flag:'`
16660   (eval echo "\"\$as_me:16660: $lt_compile\"" >&5)
16661   (eval "$lt_compile" 2>conftest.err)
16662   ac_status=$?
16663   cat conftest.err >&5
16664   echo "$as_me:16664: \$? = $ac_status" >&5
16665   if (exit $ac_status) && test -s "$ac_outfile"; then
16666     # The compiler can only warn and ignore the option if not recognized
16667     # So say no if there are warnings other than the usual output.
16668     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16669     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16670     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16671       lt_cv_prog_compiler_rtti_exceptions=yes
16672     fi
16673   fi
16674   $rm conftest*
16675
16676fi
16677{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16678echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16679
16680if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16681    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16682else
16683    :
16684fi
16685
16686fi
16687
16688lt_prog_compiler_wl_GCJ=
16689lt_prog_compiler_pic_GCJ=
16690lt_prog_compiler_static_GCJ=
16691
16692{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16693echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16694
16695  if test "$GCC" = yes; then
16696    lt_prog_compiler_wl_GCJ='-Wl,'
16697    lt_prog_compiler_static_GCJ='-static'
16698
16699    case $host_os in
16700      aix*)
16701      # All AIX code is PIC.
16702      if test "$host_cpu" = ia64; then
16703	# AIX 5 now supports IA64 processor
16704	lt_prog_compiler_static_GCJ='-Bstatic'
16705      fi
16706      ;;
16707
16708    amigaos*)
16709      # FIXME: we need at least 68020 code to build shared libraries, but
16710      # adding the `-m68020' flag to GCC prevents building anything better,
16711      # like `-m68040'.
16712      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16713      ;;
16714
16715    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16716      # PIC is the default for these OSes.
16717      ;;
16718
16719    mingw* | cygwin* | pw32* | os2*)
16720      # This hack is so that the source file can tell whether it is being
16721      # built for inclusion in a dll (and should export symbols for example).
16722      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16723      # (--disable-auto-import) libraries
16724
16725      ;;
16726
16727    darwin* | rhapsody*)
16728      # PIC is the default on this platform
16729      # Common symbols not allowed in MH_DYLIB files
16730      lt_prog_compiler_pic_GCJ='-fno-common'
16731      ;;
16732
16733    interix[3-9]*)
16734      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16735      # Instead, we relocate shared libraries at runtime.
16736      ;;
16737
16738    msdosdjgpp*)
16739      # Just because we use GCC doesn't mean we suddenly get shared libraries
16740      # on systems that don't support them.
16741      lt_prog_compiler_can_build_shared_GCJ=no
16742      enable_shared=no
16743      ;;
16744
16745    sysv4*MP*)
16746      if test -d /usr/nec; then
16747	lt_prog_compiler_pic_GCJ=-Kconform_pic
16748      fi
16749      ;;
16750
16751    hpux*)
16752      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16753      # not for PA HP-UX.
16754      case $host_cpu in
16755      hppa*64*|ia64*)
16756	# +Z the default
16757	;;
16758      *)
16759	lt_prog_compiler_pic_GCJ='-fPIC'
16760	;;
16761      esac
16762      ;;
16763
16764    *)
16765      lt_prog_compiler_pic_GCJ='-fPIC'
16766      ;;
16767    esac
16768  else
16769    # PORTME Check for flag to pass linker flags through the system compiler.
16770    case $host_os in
16771    aix*)
16772      lt_prog_compiler_wl_GCJ='-Wl,'
16773      if test "$host_cpu" = ia64; then
16774	# AIX 5 now supports IA64 processor
16775	lt_prog_compiler_static_GCJ='-Bstatic'
16776      else
16777	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16778      fi
16779      ;;
16780      darwin*)
16781        # PIC is the default on this platform
16782        # Common symbols not allowed in MH_DYLIB files
16783       case $cc_basename in
16784         xlc*)
16785         lt_prog_compiler_pic_GCJ='-qnocommon'
16786         lt_prog_compiler_wl_GCJ='-Wl,'
16787         ;;
16788       esac
16789       ;;
16790
16791    mingw* | cygwin* | pw32* | os2*)
16792      # This hack is so that the source file can tell whether it is being
16793      # built for inclusion in a dll (and should export symbols for example).
16794
16795      ;;
16796
16797    hpux9* | hpux10* | hpux11*)
16798      lt_prog_compiler_wl_GCJ='-Wl,'
16799      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16800      # not for PA HP-UX.
16801      case $host_cpu in
16802      hppa*64*|ia64*)
16803	# +Z the default
16804	;;
16805      *)
16806	lt_prog_compiler_pic_GCJ='+Z'
16807	;;
16808      esac
16809      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16810      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16811      ;;
16812
16813    irix5* | irix6* | nonstopux*)
16814      lt_prog_compiler_wl_GCJ='-Wl,'
16815      # PIC (with -KPIC) is the default.
16816      lt_prog_compiler_static_GCJ='-non_shared'
16817      ;;
16818
16819    newsos6)
16820      lt_prog_compiler_pic_GCJ='-KPIC'
16821      lt_prog_compiler_static_GCJ='-Bstatic'
16822      ;;
16823
16824    linux* | k*bsd*-gnu)
16825      case $cc_basename in
16826      icc* | ecc*)
16827	lt_prog_compiler_wl_GCJ='-Wl,'
16828	lt_prog_compiler_pic_GCJ='-KPIC'
16829	lt_prog_compiler_static_GCJ='-static'
16830        ;;
16831      pgcc* | pgf77* | pgf90* | pgf95*)
16832        # Portland Group compilers (*not* the Pentium gcc compiler,
16833	# which looks to be a dead project)
16834	lt_prog_compiler_wl_GCJ='-Wl,'
16835	lt_prog_compiler_pic_GCJ='-fpic'
16836	lt_prog_compiler_static_GCJ='-Bstatic'
16837        ;;
16838      ccc*)
16839        lt_prog_compiler_wl_GCJ='-Wl,'
16840        # All Alpha code is PIC.
16841        lt_prog_compiler_static_GCJ='-non_shared'
16842        ;;
16843      *)
16844        case `$CC -V 2>&1 | sed 5q` in
16845	*Sun\ C*)
16846	  # Sun C 5.9
16847	  lt_prog_compiler_pic_GCJ='-KPIC'
16848	  lt_prog_compiler_static_GCJ='-Bstatic'
16849	  lt_prog_compiler_wl_GCJ='-Wl,'
16850	  ;;
16851	*Sun\ F*)
16852	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16853	  lt_prog_compiler_pic_GCJ='-KPIC'
16854	  lt_prog_compiler_static_GCJ='-Bstatic'
16855	  lt_prog_compiler_wl_GCJ=''
16856	  ;;
16857	esac
16858	;;
16859      esac
16860      ;;
16861
16862    osf3* | osf4* | osf5*)
16863      lt_prog_compiler_wl_GCJ='-Wl,'
16864      # All OSF/1 code is PIC.
16865      lt_prog_compiler_static_GCJ='-non_shared'
16866      ;;
16867
16868    rdos*)
16869      lt_prog_compiler_static_GCJ='-non_shared'
16870      ;;
16871
16872    solaris*)
16873      lt_prog_compiler_pic_GCJ='-KPIC'
16874      lt_prog_compiler_static_GCJ='-Bstatic'
16875      case $cc_basename in
16876      f77* | f90* | f95*)
16877	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16878      *)
16879	lt_prog_compiler_wl_GCJ='-Wl,';;
16880      esac
16881      ;;
16882
16883    sunos4*)
16884      lt_prog_compiler_wl_GCJ='-Qoption ld '
16885      lt_prog_compiler_pic_GCJ='-PIC'
16886      lt_prog_compiler_static_GCJ='-Bstatic'
16887      ;;
16888
16889    sysv4 | sysv4.2uw2* | sysv4.3*)
16890      lt_prog_compiler_wl_GCJ='-Wl,'
16891      lt_prog_compiler_pic_GCJ='-KPIC'
16892      lt_prog_compiler_static_GCJ='-Bstatic'
16893      ;;
16894
16895    sysv4*MP*)
16896      if test -d /usr/nec ;then
16897	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16898	lt_prog_compiler_static_GCJ='-Bstatic'
16899      fi
16900      ;;
16901
16902    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16903      lt_prog_compiler_wl_GCJ='-Wl,'
16904      lt_prog_compiler_pic_GCJ='-KPIC'
16905      lt_prog_compiler_static_GCJ='-Bstatic'
16906      ;;
16907
16908    unicos*)
16909      lt_prog_compiler_wl_GCJ='-Wl,'
16910      lt_prog_compiler_can_build_shared_GCJ=no
16911      ;;
16912
16913    uts4*)
16914      lt_prog_compiler_pic_GCJ='-pic'
16915      lt_prog_compiler_static_GCJ='-Bstatic'
16916      ;;
16917
16918    *)
16919      lt_prog_compiler_can_build_shared_GCJ=no
16920      ;;
16921    esac
16922  fi
16923
16924{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16925echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16926
16927#
16928# Check to make sure the PIC flag actually works.
16929#
16930if test -n "$lt_prog_compiler_pic_GCJ"; then
16931
16932{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16933echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16934if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16935  echo $ECHO_N "(cached) $ECHO_C" >&6
16936else
16937  lt_cv_prog_compiler_pic_works_GCJ=no
16938  ac_outfile=conftest.$ac_objext
16939   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16940   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16941   # Insert the option either (1) after the last *FLAGS variable, or
16942   # (2) before a word containing "conftest.", or (3) at the end.
16943   # Note that $ac_compile itself does not contain backslashes and begins
16944   # with a dollar sign (not a hyphen), so the echo should work correctly.
16945   # The option is referenced via a variable to avoid confusing sed.
16946   lt_compile=`echo "$ac_compile" | $SED \
16947   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16948   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16949   -e 's:$: $lt_compiler_flag:'`
16950   (eval echo "\"\$as_me:16950: $lt_compile\"" >&5)
16951   (eval "$lt_compile" 2>conftest.err)
16952   ac_status=$?
16953   cat conftest.err >&5
16954   echo "$as_me:16954: \$? = $ac_status" >&5
16955   if (exit $ac_status) && test -s "$ac_outfile"; then
16956     # The compiler can only warn and ignore the option if not recognized
16957     # So say no if there are warnings other than the usual output.
16958     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16959     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16960     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16961       lt_cv_prog_compiler_pic_works_GCJ=yes
16962     fi
16963   fi
16964   $rm conftest*
16965
16966fi
16967{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16968echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16969
16970if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16971    case $lt_prog_compiler_pic_GCJ in
16972     "" | " "*) ;;
16973     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16974     esac
16975else
16976    lt_prog_compiler_pic_GCJ=
16977     lt_prog_compiler_can_build_shared_GCJ=no
16978fi
16979
16980fi
16981case $host_os in
16982  # For platforms which do not support PIC, -DPIC is meaningless:
16983  *djgpp*)
16984    lt_prog_compiler_pic_GCJ=
16985    ;;
16986  *)
16987    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16988    ;;
16989esac
16990
16991#
16992# Check to make sure the static flag actually works.
16993#
16994wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16995{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16996echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16997if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16998  echo $ECHO_N "(cached) $ECHO_C" >&6
16999else
17000  lt_cv_prog_compiler_static_works_GCJ=no
17001   save_LDFLAGS="$LDFLAGS"
17002   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17003   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17004   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17005     # The linker can only warn and ignore the option if not recognized
17006     # So say no if there are warnings
17007     if test -s conftest.err; then
17008       # Append any errors to the config.log.
17009       cat conftest.err 1>&5
17010       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17011       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17012       if diff conftest.exp conftest.er2 >/dev/null; then
17013         lt_cv_prog_compiler_static_works_GCJ=yes
17014       fi
17015     else
17016       lt_cv_prog_compiler_static_works_GCJ=yes
17017     fi
17018   fi
17019   $rm -r conftest*
17020   LDFLAGS="$save_LDFLAGS"
17021
17022fi
17023{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17024echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17025
17026if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17027    :
17028else
17029    lt_prog_compiler_static_GCJ=
17030fi
17031
17032
17033{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17034echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17035if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17036  echo $ECHO_N "(cached) $ECHO_C" >&6
17037else
17038  lt_cv_prog_compiler_c_o_GCJ=no
17039   $rm -r conftest 2>/dev/null
17040   mkdir conftest
17041   cd conftest
17042   mkdir out
17043   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17044
17045   lt_compiler_flag="-o out/conftest2.$ac_objext"
17046   # Insert the option either (1) after the last *FLAGS variable, or
17047   # (2) before a word containing "conftest.", or (3) at the end.
17048   # Note that $ac_compile itself does not contain backslashes and begins
17049   # with a dollar sign (not a hyphen), so the echo should work correctly.
17050   lt_compile=`echo "$ac_compile" | $SED \
17051   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17052   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17053   -e 's:$: $lt_compiler_flag:'`
17054   (eval echo "\"\$as_me:17054: $lt_compile\"" >&5)
17055   (eval "$lt_compile" 2>out/conftest.err)
17056   ac_status=$?
17057   cat out/conftest.err >&5
17058   echo "$as_me:17058: \$? = $ac_status" >&5
17059   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17060   then
17061     # The compiler can only warn and ignore the option if not recognized
17062     # So say no if there are warnings
17063     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17064     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17065     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17066       lt_cv_prog_compiler_c_o_GCJ=yes
17067     fi
17068   fi
17069   chmod u+w . 2>&5
17070   $rm conftest*
17071   # SGI C++ compiler will create directory out/ii_files/ for
17072   # template instantiation
17073   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17074   $rm out/* && rmdir out
17075   cd ..
17076   rmdir conftest
17077   $rm conftest*
17078
17079fi
17080{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17081echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17082
17083
17084hard_links="nottested"
17085if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17086  # do not overwrite the value of need_locks provided by the user
17087  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17088echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17089  hard_links=yes
17090  $rm conftest*
17091  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17092  touch conftest.a
17093  ln conftest.a conftest.b 2>&5 || hard_links=no
17094  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17095  { echo "$as_me:$LINENO: result: $hard_links" >&5
17096echo "${ECHO_T}$hard_links" >&6; }
17097  if test "$hard_links" = no; then
17098    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17099echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17100    need_locks=warn
17101  fi
17102else
17103  need_locks=no
17104fi
17105
17106{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17107echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17108
17109  runpath_var=
17110  allow_undefined_flag_GCJ=
17111  enable_shared_with_static_runtimes_GCJ=no
17112  archive_cmds_GCJ=
17113  archive_expsym_cmds_GCJ=
17114  old_archive_From_new_cmds_GCJ=
17115  old_archive_from_expsyms_cmds_GCJ=
17116  export_dynamic_flag_spec_GCJ=
17117  whole_archive_flag_spec_GCJ=
17118  thread_safe_flag_spec_GCJ=
17119  hardcode_libdir_flag_spec_GCJ=
17120  hardcode_libdir_flag_spec_ld_GCJ=
17121  hardcode_libdir_separator_GCJ=
17122  hardcode_direct_GCJ=no
17123  hardcode_minus_L_GCJ=no
17124  hardcode_shlibpath_var_GCJ=unsupported
17125  link_all_deplibs_GCJ=unknown
17126  hardcode_automatic_GCJ=no
17127  module_cmds_GCJ=
17128  module_expsym_cmds_GCJ=
17129  always_export_symbols_GCJ=no
17130  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17131  # include_expsyms should be a list of space-separated symbols to be *always*
17132  # included in the symbol list
17133  include_expsyms_GCJ=
17134  # exclude_expsyms can be an extended regexp of symbols to exclude
17135  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17136  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17137  # as well as any symbol that contains `d'.
17138  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17139  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17140  # platforms (ab)use it in PIC code, but their linkers get confused if
17141  # the symbol is explicitly referenced.  Since portable code cannot
17142  # rely on this symbol name, it's probably fine to never include it in
17143  # preloaded symbol tables.
17144  # Exclude shared library initialization/finalization symbols.
17145  extract_expsyms_cmds=
17146  # Just being paranoid about ensuring that cc_basename is set.
17147  for cc_temp in $compiler""; do
17148  case $cc_temp in
17149    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17150    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17151    \-*) ;;
17152    *) break;;
17153  esac
17154done
17155cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17156
17157  case $host_os in
17158  cygwin* | mingw* | pw32*)
17159    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17160    # When not using gcc, we currently assume that we are using
17161    # Microsoft Visual C++.
17162    if test "$GCC" != yes; then
17163      with_gnu_ld=no
17164    fi
17165    ;;
17166  interix*)
17167    # we just hope/assume this is gcc and not c89 (= MSVC++)
17168    with_gnu_ld=yes
17169    ;;
17170  openbsd*)
17171    with_gnu_ld=no
17172    ;;
17173  esac
17174
17175  ld_shlibs_GCJ=yes
17176  if test "$with_gnu_ld" = yes; then
17177    # If archive_cmds runs LD, not CC, wlarc should be empty
17178    wlarc='${wl}'
17179
17180    # Set some defaults for GNU ld with shared library support. These
17181    # are reset later if shared libraries are not supported. Putting them
17182    # here allows them to be overridden if necessary.
17183    runpath_var=LD_RUN_PATH
17184    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17185    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17186    # ancient GNU ld didn't support --whole-archive et. al.
17187    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17188	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17189      else
17190  	whole_archive_flag_spec_GCJ=
17191    fi
17192    supports_anon_versioning=no
17193    case `$LD -v 2>/dev/null` in
17194      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17195      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17196      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17197      *\ 2.11.*) ;; # other 2.11 versions
17198      *) supports_anon_versioning=yes ;;
17199    esac
17200
17201    # See if GNU ld supports shared libraries.
17202    case $host_os in
17203    aix[3-9]*)
17204      # On AIX/PPC, the GNU linker is very broken
17205      if test "$host_cpu" != ia64; then
17206	ld_shlibs_GCJ=no
17207	cat <<EOF 1>&2
17208
17209*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17210*** to be unable to reliably create shared libraries on AIX.
17211*** Therefore, libtool is disabling shared libraries support.  If you
17212*** really care for shared libraries, you may want to modify your PATH
17213*** so that a non-GNU linker is found, and then restart.
17214
17215EOF
17216      fi
17217      ;;
17218
17219    amigaos*)
17220      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)'
17221      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17222      hardcode_minus_L_GCJ=yes
17223
17224      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17225      # that the semantics of dynamic libraries on AmigaOS, at least up
17226      # to version 4, is to share data among multiple programs linked
17227      # with the same dynamic library.  Since this doesn't match the
17228      # behavior of shared libraries on other platforms, we can't use
17229      # them.
17230      ld_shlibs_GCJ=no
17231      ;;
17232
17233    beos*)
17234      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17235	allow_undefined_flag_GCJ=unsupported
17236	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17237	# support --undefined.  This deserves some investigation.  FIXME
17238	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17239      else
17240	ld_shlibs_GCJ=no
17241      fi
17242      ;;
17243
17244    cygwin* | mingw* | pw32*)
17245      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17246      # as there is no search path for DLLs.
17247      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17248      allow_undefined_flag_GCJ=unsupported
17249      always_export_symbols_GCJ=no
17250      enable_shared_with_static_runtimes_GCJ=yes
17251      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17252
17253      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17254        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17255	# If the export-symbols file already is a .def file (1st line
17256	# is EXPORTS), use it as is; otherwise, prepend...
17257	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17258	  cp $export_symbols $output_objdir/$soname.def;
17259	else
17260	  echo EXPORTS > $output_objdir/$soname.def;
17261	  cat $export_symbols >> $output_objdir/$soname.def;
17262	fi~
17263	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17264      else
17265	ld_shlibs_GCJ=no
17266      fi
17267      ;;
17268
17269    interix[3-9]*)
17270      hardcode_direct_GCJ=no
17271      hardcode_shlibpath_var_GCJ=no
17272      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17273      export_dynamic_flag_spec_GCJ='${wl}-E'
17274      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17275      # Instead, shared libraries are loaded at an image base (0x10000000 by
17276      # default) and relocated if they conflict, which is a slow very memory
17277      # consuming and fragmenting process.  To avoid this, we pick a random,
17278      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17279      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17280      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'
17281      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'
17282      ;;
17283
17284    gnu* | linux* | k*bsd*-gnu)
17285      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17286	tmp_addflag=
17287	case $cc_basename,$host_cpu in
17288	pgcc*)				# Portland Group C compiler
17289	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17290	  tmp_addflag=' $pic_flag'
17291	  ;;
17292	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17293	  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'
17294	  tmp_addflag=' $pic_flag -Mnomain' ;;
17295	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17296	  tmp_addflag=' -i_dynamic' ;;
17297	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17298	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17299	ifc* | ifort*)			# Intel Fortran compiler
17300	  tmp_addflag=' -nofor_main' ;;
17301	esac
17302	case `$CC -V 2>&1 | sed 5q` in
17303	*Sun\ C*)			# Sun C 5.9
17304	  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'
17305	  tmp_sharedflag='-G' ;;
17306	*Sun\ F*)			# Sun Fortran 8.3
17307	  tmp_sharedflag='-G' ;;
17308	*)
17309	  tmp_sharedflag='-shared' ;;
17310	esac
17311	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17312
17313	if test $supports_anon_versioning = yes; then
17314	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17315  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17316  $echo "local: *; };" >> $output_objdir/$libname.ver~
17317	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17318	fi
17319	link_all_deplibs_GCJ=no
17320      else
17321	ld_shlibs_GCJ=no
17322      fi
17323      ;;
17324
17325    netbsd* | netbsdelf*-gnu)
17326      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17327	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17328	wlarc=
17329      else
17330	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17331	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17332      fi
17333      ;;
17334
17335    solaris*)
17336      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17337	ld_shlibs_GCJ=no
17338	cat <<EOF 1>&2
17339
17340*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17341*** create shared libraries on Solaris systems.  Therefore, libtool
17342*** is disabling shared libraries support.  We urge you to upgrade GNU
17343*** binutils to release 2.9.1 or newer.  Another option is to modify
17344*** your PATH or compiler configuration so that the native linker is
17345*** used, and then restart.
17346
17347EOF
17348      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17349	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17350	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17351      else
17352	ld_shlibs_GCJ=no
17353      fi
17354      ;;
17355
17356    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17357      case `$LD -v 2>&1` in
17358        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17359	ld_shlibs_GCJ=no
17360	cat <<_LT_EOF 1>&2
17361
17362*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17363*** reliably create shared libraries on SCO systems.  Therefore, libtool
17364*** is disabling shared libraries support.  We urge you to upgrade GNU
17365*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17366*** your PATH or compiler configuration so that the native linker is
17367*** used, and then restart.
17368
17369_LT_EOF
17370	;;
17371	*)
17372	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17373	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17374	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17375	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17376	  else
17377	    ld_shlibs_GCJ=no
17378	  fi
17379	;;
17380      esac
17381      ;;
17382
17383    sunos4*)
17384      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17385      wlarc=
17386      hardcode_direct_GCJ=yes
17387      hardcode_shlibpath_var_GCJ=no
17388      ;;
17389
17390    *)
17391      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17392	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17393	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17394      else
17395	ld_shlibs_GCJ=no
17396      fi
17397      ;;
17398    esac
17399
17400    if test "$ld_shlibs_GCJ" = no; then
17401      runpath_var=
17402      hardcode_libdir_flag_spec_GCJ=
17403      export_dynamic_flag_spec_GCJ=
17404      whole_archive_flag_spec_GCJ=
17405    fi
17406  else
17407    # PORTME fill in a description of your system's linker (not GNU ld)
17408    case $host_os in
17409    aix3*)
17410      allow_undefined_flag_GCJ=unsupported
17411      always_export_symbols_GCJ=yes
17412      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'
17413      # Note: this linker hardcodes the directories in LIBPATH if there
17414      # are no directories specified by -L.
17415      hardcode_minus_L_GCJ=yes
17416      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17417	# Neither direct hardcoding nor static linking is supported with a
17418	# broken collect2.
17419	hardcode_direct_GCJ=unsupported
17420      fi
17421      ;;
17422
17423    aix[4-9]*)
17424      if test "$host_cpu" = ia64; then
17425	# On IA64, the linker does run time linking by default, so we don't
17426	# have to do anything special.
17427	aix_use_runtimelinking=no
17428	exp_sym_flag='-Bexport'
17429	no_entry_flag=""
17430      else
17431	# If we're using GNU nm, then we don't want the "-C" option.
17432	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17433	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17434	  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'
17435	else
17436	  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'
17437	fi
17438	aix_use_runtimelinking=no
17439
17440	# Test if we are trying to use run time linking or normal
17441	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17442	# need to do runtime linking.
17443	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17444	  for ld_flag in $LDFLAGS; do
17445  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17446  	    aix_use_runtimelinking=yes
17447  	    break
17448  	  fi
17449	  done
17450	  ;;
17451	esac
17452
17453	exp_sym_flag='-bexport'
17454	no_entry_flag='-bnoentry'
17455      fi
17456
17457      # When large executables or shared objects are built, AIX ld can
17458      # have problems creating the table of contents.  If linking a library
17459      # or program results in "error TOC overflow" add -mminimal-toc to
17460      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17461      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17462
17463      archive_cmds_GCJ=''
17464      hardcode_direct_GCJ=yes
17465      hardcode_libdir_separator_GCJ=':'
17466      link_all_deplibs_GCJ=yes
17467
17468      if test "$GCC" = yes; then
17469	case $host_os in aix4.[012]|aix4.[012].*)
17470	# We only want to do this on AIX 4.2 and lower, the check
17471	# below for broken collect2 doesn't work under 4.3+
17472	  collect2name=`${CC} -print-prog-name=collect2`
17473	  if test -f "$collect2name" && \
17474  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17475	  then
17476  	  # We have reworked collect2
17477  	  :
17478	  else
17479  	  # We have old collect2
17480  	  hardcode_direct_GCJ=unsupported
17481  	  # It fails to find uninstalled libraries when the uninstalled
17482  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17483  	  # to unsupported forces relinking
17484  	  hardcode_minus_L_GCJ=yes
17485  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17486  	  hardcode_libdir_separator_GCJ=
17487	  fi
17488	  ;;
17489	esac
17490	shared_flag='-shared'
17491	if test "$aix_use_runtimelinking" = yes; then
17492	  shared_flag="$shared_flag "'${wl}-G'
17493	fi
17494      else
17495	# not using gcc
17496	if test "$host_cpu" = ia64; then
17497  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17498  	# chokes on -Wl,-G. The following line is correct:
17499	  shared_flag='-G'
17500	else
17501	  if test "$aix_use_runtimelinking" = yes; then
17502	    shared_flag='${wl}-G'
17503	  else
17504	    shared_flag='${wl}-bM:SRE'
17505	  fi
17506	fi
17507      fi
17508
17509      # It seems that -bexpall does not export symbols beginning with
17510      # underscore (_), so it is better to generate a list of symbols to export.
17511      always_export_symbols_GCJ=yes
17512      if test "$aix_use_runtimelinking" = yes; then
17513	# Warning - without using the other runtime loading flags (-brtl),
17514	# -berok will link without error, but may produce a broken library.
17515	allow_undefined_flag_GCJ='-berok'
17516       # Determine the default libpath from the value encoded in an empty executable.
17517       cat >conftest.$ac_ext <<_ACEOF
17518/* confdefs.h.  */
17519_ACEOF
17520cat confdefs.h >>conftest.$ac_ext
17521cat >>conftest.$ac_ext <<_ACEOF
17522/* end confdefs.h.  */
17523
17524int
17525main ()
17526{
17527
17528  ;
17529  return 0;
17530}
17531_ACEOF
17532rm -f conftest.$ac_objext conftest$ac_exeext
17533if { (ac_try="$ac_link"
17534case "(($ac_try" in
17535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536  *) ac_try_echo=$ac_try;;
17537esac
17538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539  (eval "$ac_link") 2>conftest.er1
17540  ac_status=$?
17541  grep -v '^ *+' conftest.er1 >conftest.err
17542  rm -f conftest.er1
17543  cat conftest.err >&5
17544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545  (exit $ac_status); } && {
17546	 test -z "$ac_c_werror_flag" ||
17547	 test ! -s conftest.err
17548       } && test -s conftest$ac_exeext &&
17549       $as_test_x conftest$ac_exeext; then
17550
17551lt_aix_libpath_sed='
17552    /Import File Strings/,/^$/ {
17553	/^0/ {
17554	    s/^0  *\(.*\)$/\1/
17555	    p
17556	}
17557    }'
17558aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17559# Check for a 64-bit object if we didn't find anything.
17560if test -z "$aix_libpath"; then
17561  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17562fi
17563else
17564  echo "$as_me: failed program was:" >&5
17565sed 's/^/| /' conftest.$ac_ext >&5
17566
17567
17568fi
17569
17570rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17571      conftest$ac_exeext conftest.$ac_ext
17572if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17573
17574       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17575	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"
17576       else
17577	if test "$host_cpu" = ia64; then
17578	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17579	  allow_undefined_flag_GCJ="-z nodefs"
17580	  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"
17581	else
17582	 # Determine the default libpath from the value encoded in an empty executable.
17583	 cat >conftest.$ac_ext <<_ACEOF
17584/* confdefs.h.  */
17585_ACEOF
17586cat confdefs.h >>conftest.$ac_ext
17587cat >>conftest.$ac_ext <<_ACEOF
17588/* end confdefs.h.  */
17589
17590int
17591main ()
17592{
17593
17594  ;
17595  return 0;
17596}
17597_ACEOF
17598rm -f conftest.$ac_objext conftest$ac_exeext
17599if { (ac_try="$ac_link"
17600case "(($ac_try" in
17601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602  *) ac_try_echo=$ac_try;;
17603esac
17604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605  (eval "$ac_link") 2>conftest.er1
17606  ac_status=$?
17607  grep -v '^ *+' conftest.er1 >conftest.err
17608  rm -f conftest.er1
17609  cat conftest.err >&5
17610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611  (exit $ac_status); } && {
17612	 test -z "$ac_c_werror_flag" ||
17613	 test ! -s conftest.err
17614       } && test -s conftest$ac_exeext &&
17615       $as_test_x conftest$ac_exeext; then
17616
17617lt_aix_libpath_sed='
17618    /Import File Strings/,/^$/ {
17619	/^0/ {
17620	    s/^0  *\(.*\)$/\1/
17621	    p
17622	}
17623    }'
17624aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17625# Check for a 64-bit object if we didn't find anything.
17626if test -z "$aix_libpath"; then
17627  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17628fi
17629else
17630  echo "$as_me: failed program was:" >&5
17631sed 's/^/| /' conftest.$ac_ext >&5
17632
17633
17634fi
17635
17636rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17637      conftest$ac_exeext conftest.$ac_ext
17638if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17639
17640	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17641	  # Warning - without using the other run time loading flags,
17642	  # -berok will link without error, but may produce a broken library.
17643	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17644	  allow_undefined_flag_GCJ=' ${wl}-berok'
17645	  # Exported symbols can be pulled into shared objects from archives
17646	  whole_archive_flag_spec_GCJ='$convenience'
17647	  archive_cmds_need_lc_GCJ=yes
17648	  # This is similar to how AIX traditionally builds its shared libraries.
17649	  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'
17650	fi
17651      fi
17652      ;;
17653
17654    amigaos*)
17655      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)'
17656      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17657      hardcode_minus_L_GCJ=yes
17658      # see comment about different semantics on the GNU ld section
17659      ld_shlibs_GCJ=no
17660      ;;
17661
17662    bsdi[45]*)
17663      export_dynamic_flag_spec_GCJ=-rdynamic
17664      ;;
17665
17666    cygwin* | mingw* | pw32*)
17667      # When not using gcc, we currently assume that we are using
17668      # Microsoft Visual C++.
17669      # hardcode_libdir_flag_spec is actually meaningless, as there is
17670      # no search path for DLLs.
17671      hardcode_libdir_flag_spec_GCJ=' '
17672      allow_undefined_flag_GCJ=unsupported
17673      # Tell ltmain to make .lib files, not .a files.
17674      libext=lib
17675      # Tell ltmain to make .dll files, not .so files.
17676      shrext_cmds=".dll"
17677      # FIXME: Setting linknames here is a bad hack.
17678      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17679      # The linker will automatically build a .lib file if we build a DLL.
17680      old_archive_From_new_cmds_GCJ='true'
17681      # FIXME: Should let the user specify the lib program.
17682      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17683      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17684      enable_shared_with_static_runtimes_GCJ=yes
17685      ;;
17686
17687    darwin* | rhapsody*)
17688      case $host_os in
17689        rhapsody* | darwin1.[012])
17690         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17691         ;;
17692       *) # Darwin 1.3 on
17693         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17694           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17695         else
17696           case ${MACOSX_DEPLOYMENT_TARGET} in
17697             10.[012])
17698               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17699               ;;
17700             10.*)
17701               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17702               ;;
17703           esac
17704         fi
17705         ;;
17706      esac
17707      archive_cmds_need_lc_GCJ=no
17708      hardcode_direct_GCJ=no
17709      hardcode_automatic_GCJ=yes
17710      hardcode_shlibpath_var_GCJ=unsupported
17711      whole_archive_flag_spec_GCJ=''
17712      link_all_deplibs_GCJ=yes
17713    if test "$GCC" = yes ; then
17714    	output_verbose_link_cmd='echo'
17715        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}"
17716        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17717        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}"
17718        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}"
17719    else
17720      case $cc_basename in
17721        xlc*)
17722         output_verbose_link_cmd='echo'
17723         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17724         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17725          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17726         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}'
17727          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}'
17728          ;;
17729       *)
17730         ld_shlibs_GCJ=no
17731          ;;
17732      esac
17733    fi
17734      ;;
17735
17736    dgux*)
17737      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17738      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17739      hardcode_shlibpath_var_GCJ=no
17740      ;;
17741
17742    freebsd1*)
17743      ld_shlibs_GCJ=no
17744      ;;
17745
17746    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17747    # support.  Future versions do this automatically, but an explicit c++rt0.o
17748    # does not break anything, and helps significantly (at the cost of a little
17749    # extra space).
17750    freebsd2.2*)
17751      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17752      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17753      hardcode_direct_GCJ=yes
17754      hardcode_shlibpath_var_GCJ=no
17755      ;;
17756
17757    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17758    freebsd2*)
17759      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17760      hardcode_direct_GCJ=yes
17761      hardcode_minus_L_GCJ=yes
17762      hardcode_shlibpath_var_GCJ=no
17763      ;;
17764
17765    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17766    freebsd* | dragonfly*)
17767      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17768      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17769      hardcode_direct_GCJ=yes
17770      hardcode_shlibpath_var_GCJ=no
17771      ;;
17772
17773    hpux9*)
17774      if test "$GCC" = yes; then
17775	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'
17776      else
17777	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'
17778      fi
17779      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17780      hardcode_libdir_separator_GCJ=:
17781      hardcode_direct_GCJ=yes
17782
17783      # hardcode_minus_L: Not really in the search PATH,
17784      # but as the default location of the library.
17785      hardcode_minus_L_GCJ=yes
17786      export_dynamic_flag_spec_GCJ='${wl}-E'
17787      ;;
17788
17789    hpux10*)
17790      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17791	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17792      else
17793	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17794      fi
17795      if test "$with_gnu_ld" = no; then
17796	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17797	hardcode_libdir_separator_GCJ=:
17798
17799	hardcode_direct_GCJ=yes
17800	export_dynamic_flag_spec_GCJ='${wl}-E'
17801
17802	# hardcode_minus_L: Not really in the search PATH,
17803	# but as the default location of the library.
17804	hardcode_minus_L_GCJ=yes
17805      fi
17806      ;;
17807
17808    hpux11*)
17809      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17810	case $host_cpu in
17811	hppa*64*)
17812	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17813	  ;;
17814	ia64*)
17815	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17816	  ;;
17817	*)
17818	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17819	  ;;
17820	esac
17821      else
17822	case $host_cpu in
17823	hppa*64*)
17824	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17825	  ;;
17826	ia64*)
17827	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17828	  ;;
17829	*)
17830	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17831	  ;;
17832	esac
17833      fi
17834      if test "$with_gnu_ld" = no; then
17835	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17836	hardcode_libdir_separator_GCJ=:
17837
17838	case $host_cpu in
17839	hppa*64*|ia64*)
17840	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17841	  hardcode_direct_GCJ=no
17842	  hardcode_shlibpath_var_GCJ=no
17843	  ;;
17844	*)
17845	  hardcode_direct_GCJ=yes
17846	  export_dynamic_flag_spec_GCJ='${wl}-E'
17847
17848	  # hardcode_minus_L: Not really in the search PATH,
17849	  # but as the default location of the library.
17850	  hardcode_minus_L_GCJ=yes
17851	  ;;
17852	esac
17853      fi
17854      ;;
17855
17856    irix5* | irix6* | nonstopux*)
17857      if test "$GCC" = yes; then
17858	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'
17859      else
17860	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'
17861	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17862      fi
17863      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17864      hardcode_libdir_separator_GCJ=:
17865      link_all_deplibs_GCJ=yes
17866      ;;
17867
17868    netbsd* | netbsdelf*-gnu)
17869      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17870	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17871      else
17872	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17873      fi
17874      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17875      hardcode_direct_GCJ=yes
17876      hardcode_shlibpath_var_GCJ=no
17877      ;;
17878
17879    newsos6)
17880      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17881      hardcode_direct_GCJ=yes
17882      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17883      hardcode_libdir_separator_GCJ=:
17884      hardcode_shlibpath_var_GCJ=no
17885      ;;
17886
17887    openbsd*)
17888      if test -f /usr/libexec/ld.so; then
17889	hardcode_direct_GCJ=yes
17890	hardcode_shlibpath_var_GCJ=no
17891	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17892	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17893	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17894	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17895	  export_dynamic_flag_spec_GCJ='${wl}-E'
17896	else
17897	  case $host_os in
17898	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17899	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17900	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
17901	     ;;
17902	   *)
17903	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17904	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17905	     ;;
17906	  esac
17907        fi
17908      else
17909	ld_shlibs_GCJ=no
17910      fi
17911      ;;
17912
17913    os2*)
17914      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17915      hardcode_minus_L_GCJ=yes
17916      allow_undefined_flag_GCJ=unsupported
17917      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'
17918      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17919      ;;
17920
17921    osf3*)
17922      if test "$GCC" = yes; then
17923	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17924	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'
17925      else
17926	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17927	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'
17928      fi
17929      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17930      hardcode_libdir_separator_GCJ=:
17931      ;;
17932
17933    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17934      if test "$GCC" = yes; then
17935	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17936	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'
17937	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17938      else
17939	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17940	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'
17941	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~
17942	$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'
17943
17944	# Both c and cxx compiler support -rpath directly
17945	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17946      fi
17947      hardcode_libdir_separator_GCJ=:
17948      ;;
17949
17950    solaris*)
17951      no_undefined_flag_GCJ=' -z text'
17952      if test "$GCC" = yes; then
17953	wlarc='${wl}'
17954	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17955	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17956	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17957      else
17958	wlarc=''
17959	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17960	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17961  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17962      fi
17963      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17964      hardcode_shlibpath_var_GCJ=no
17965      case $host_os in
17966      solaris2.[0-5] | solaris2.[0-5].*) ;;
17967      *)
17968	# The compiler driver will combine and reorder linker options,
17969	# but understands `-z linker_flag'.  GCC discards it without `$wl',
17970	# but is careful enough not to reorder.
17971 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17972	if test "$GCC" = yes; then
17973	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17974	else
17975	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17976	fi
17977	;;
17978      esac
17979      link_all_deplibs_GCJ=yes
17980      ;;
17981
17982    sunos4*)
17983      if test "x$host_vendor" = xsequent; then
17984	# Use $CC to link under sequent, because it throws in some extra .o
17985	# files that make .init and .fini sections work.
17986	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17987      else
17988	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17989      fi
17990      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17991      hardcode_direct_GCJ=yes
17992      hardcode_minus_L_GCJ=yes
17993      hardcode_shlibpath_var_GCJ=no
17994      ;;
17995
17996    sysv4)
17997      case $host_vendor in
17998	sni)
17999	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18000	  hardcode_direct_GCJ=yes # is this really true???
18001	;;
18002	siemens)
18003	  ## LD is ld it makes a PLAMLIB
18004	  ## CC just makes a GrossModule.
18005	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18006	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18007	  hardcode_direct_GCJ=no
18008        ;;
18009	motorola)
18010	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18011	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18012	;;
18013      esac
18014      runpath_var='LD_RUN_PATH'
18015      hardcode_shlibpath_var_GCJ=no
18016      ;;
18017
18018    sysv4.3*)
18019      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18020      hardcode_shlibpath_var_GCJ=no
18021      export_dynamic_flag_spec_GCJ='-Bexport'
18022      ;;
18023
18024    sysv4*MP*)
18025      if test -d /usr/nec; then
18026	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18027	hardcode_shlibpath_var_GCJ=no
18028	runpath_var=LD_RUN_PATH
18029	hardcode_runpath_var=yes
18030	ld_shlibs_GCJ=yes
18031      fi
18032      ;;
18033
18034    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18035      no_undefined_flag_GCJ='${wl}-z,text'
18036      archive_cmds_need_lc_GCJ=no
18037      hardcode_shlibpath_var_GCJ=no
18038      runpath_var='LD_RUN_PATH'
18039
18040      if test "$GCC" = yes; then
18041	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18042	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18043      else
18044	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18045	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18046      fi
18047      ;;
18048
18049    sysv5* | sco3.2v5* | sco5v6*)
18050      # Note: We can NOT use -z defs as we might desire, because we do not
18051      # link with -lc, and that would cause any symbols used from libc to
18052      # always be unresolved, which means just about no library would
18053      # ever link correctly.  If we're not using GNU ld we use -z text
18054      # though, which does catch some bad symbols but isn't as heavy-handed
18055      # as -z defs.
18056      no_undefined_flag_GCJ='${wl}-z,text'
18057      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18058      archive_cmds_need_lc_GCJ=no
18059      hardcode_shlibpath_var_GCJ=no
18060      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18061      hardcode_libdir_separator_GCJ=':'
18062      link_all_deplibs_GCJ=yes
18063      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18064      runpath_var='LD_RUN_PATH'
18065
18066      if test "$GCC" = yes; then
18067	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18068	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18069      else
18070	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18071	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18072      fi
18073      ;;
18074
18075    uts4*)
18076      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18077      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18078      hardcode_shlibpath_var_GCJ=no
18079      ;;
18080
18081    *)
18082      ld_shlibs_GCJ=no
18083      ;;
18084    esac
18085  fi
18086
18087{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18088echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18089test "$ld_shlibs_GCJ" = no && can_build_shared=no
18090
18091#
18092# Do we need to explicitly link libc?
18093#
18094case "x$archive_cmds_need_lc_GCJ" in
18095x|xyes)
18096  # Assume -lc should be added
18097  archive_cmds_need_lc_GCJ=yes
18098
18099  if test "$enable_shared" = yes && test "$GCC" = yes; then
18100    case $archive_cmds_GCJ in
18101    *'~'*)
18102      # FIXME: we may have to deal with multi-command sequences.
18103      ;;
18104    '$CC '*)
18105      # Test whether the compiler implicitly links with -lc since on some
18106      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18107      # to ld, don't add -lc before -lgcc.
18108      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18109echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18110      $rm conftest*
18111      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18112
18113      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18114  (eval $ac_compile) 2>&5
18115  ac_status=$?
18116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117  (exit $ac_status); } 2>conftest.err; then
18118        soname=conftest
18119        lib=conftest
18120        libobjs=conftest.$ac_objext
18121        deplibs=
18122        wl=$lt_prog_compiler_wl_GCJ
18123	pic_flag=$lt_prog_compiler_pic_GCJ
18124        compiler_flags=-v
18125        linker_flags=-v
18126        verstring=
18127        output_objdir=.
18128        libname=conftest
18129        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18130        allow_undefined_flag_GCJ=
18131        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18132  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18133  ac_status=$?
18134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135  (exit $ac_status); }
18136        then
18137	  archive_cmds_need_lc_GCJ=no
18138        else
18139	  archive_cmds_need_lc_GCJ=yes
18140        fi
18141        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18142      else
18143        cat conftest.err 1>&5
18144      fi
18145      $rm conftest*
18146      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18147echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18148      ;;
18149    esac
18150  fi
18151  ;;
18152esac
18153
18154{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18155echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18156library_names_spec=
18157libname_spec='lib$name'
18158soname_spec=
18159shrext_cmds=".so"
18160postinstall_cmds=
18161postuninstall_cmds=
18162finish_cmds=
18163finish_eval=
18164shlibpath_var=
18165shlibpath_overrides_runpath=unknown
18166version_type=none
18167dynamic_linker="$host_os ld.so"
18168sys_lib_dlsearch_path_spec="/lib /usr/lib"
18169
18170need_lib_prefix=unknown
18171hardcode_into_libs=no
18172
18173# when you set need_version to no, make sure it does not cause -set_version
18174# flags to be left without arguments
18175need_version=unknown
18176
18177case $host_os in
18178aix3*)
18179  version_type=linux
18180  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18181  shlibpath_var=LIBPATH
18182
18183  # AIX 3 has no versioning support, so we append a major version to the name.
18184  soname_spec='${libname}${release}${shared_ext}$major'
18185  ;;
18186
18187aix[4-9]*)
18188  version_type=linux
18189  need_lib_prefix=no
18190  need_version=no
18191  hardcode_into_libs=yes
18192  if test "$host_cpu" = ia64; then
18193    # AIX 5 supports IA64
18194    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18195    shlibpath_var=LD_LIBRARY_PATH
18196  else
18197    # With GCC up to 2.95.x, collect2 would create an import file
18198    # for dependence libraries.  The import file would start with
18199    # the line `#! .'.  This would cause the generated library to
18200    # depend on `.', always an invalid library.  This was fixed in
18201    # development snapshots of GCC prior to 3.0.
18202    case $host_os in
18203      aix4 | aix4.[01] | aix4.[01].*)
18204      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18205	   echo ' yes '
18206	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18207	:
18208      else
18209	can_build_shared=no
18210      fi
18211      ;;
18212    esac
18213    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18214    # soname into executable. Probably we can add versioning support to
18215    # collect2, so additional links can be useful in future.
18216    if test "$aix_use_runtimelinking" = yes; then
18217      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18218      # instead of lib<name>.a to let people know that these are not
18219      # typical AIX shared libraries.
18220      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18221    else
18222      # We preserve .a as extension for shared libraries through AIX4.2
18223      # and later when we are not doing run time linking.
18224      library_names_spec='${libname}${release}.a $libname.a'
18225      soname_spec='${libname}${release}${shared_ext}$major'
18226    fi
18227    shlibpath_var=LIBPATH
18228  fi
18229  ;;
18230
18231amigaos*)
18232  library_names_spec='$libname.ixlibrary $libname.a'
18233  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18234  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'
18235  ;;
18236
18237beos*)
18238  library_names_spec='${libname}${shared_ext}'
18239  dynamic_linker="$host_os ld.so"
18240  shlibpath_var=LIBRARY_PATH
18241  ;;
18242
18243bsdi[45]*)
18244  version_type=linux
18245  need_version=no
18246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18247  soname_spec='${libname}${release}${shared_ext}$major'
18248  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18249  shlibpath_var=LD_LIBRARY_PATH
18250  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18251  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18252  # the default ld.so.conf also contains /usr/contrib/lib and
18253  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18254  # libtool to hard-code these into programs
18255  ;;
18256
18257cygwin* | mingw* | pw32*)
18258  version_type=windows
18259  shrext_cmds=".dll"
18260  need_version=no
18261  need_lib_prefix=no
18262
18263  case $GCC,$host_os in
18264  yes,cygwin* | yes,mingw* | yes,pw32*)
18265    library_names_spec='$libname.dll.a'
18266    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18267    postinstall_cmds='base_file=`basename \${file}`~
18268      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18269      dldir=$destdir/`dirname \$dlpath`~
18270      test -d \$dldir || mkdir -p \$dldir~
18271      $install_prog $dir/$dlname \$dldir/$dlname~
18272      chmod a+x \$dldir/$dlname'
18273    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18274      dlpath=$dir/\$dldll~
18275       $rm \$dlpath'
18276    shlibpath_overrides_runpath=yes
18277
18278    case $host_os in
18279    cygwin*)
18280      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18281      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18282      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18283      ;;
18284    mingw*)
18285      # MinGW DLLs use traditional 'lib' prefix
18286      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18287      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18288      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18289        # It is most probably a Windows format PATH printed by
18290        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18291        # path with ; separators, and with drive letters. We can handle the
18292        # drive letters (cygwin fileutils understands them), so leave them,
18293        # especially as we might pass files found there to a mingw objdump,
18294        # which wouldn't understand a cygwinified path. Ahh.
18295        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18296      else
18297        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18298      fi
18299      ;;
18300    pw32*)
18301      # pw32 DLLs use 'pw' prefix rather than 'lib'
18302      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18303      ;;
18304    esac
18305    ;;
18306
18307  *)
18308    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18309    ;;
18310  esac
18311  dynamic_linker='Win32 ld.exe'
18312  # FIXME: first we should search . and the directory the executable is in
18313  shlibpath_var=PATH
18314  ;;
18315
18316darwin* | rhapsody*)
18317  dynamic_linker="$host_os dyld"
18318  version_type=darwin
18319  need_lib_prefix=no
18320  need_version=no
18321  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18322  soname_spec='${libname}${release}${major}$shared_ext'
18323  shlibpath_overrides_runpath=yes
18324  shlibpath_var=DYLD_LIBRARY_PATH
18325  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18326
18327  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18328  ;;
18329
18330dgux*)
18331  version_type=linux
18332  need_lib_prefix=no
18333  need_version=no
18334  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18335  soname_spec='${libname}${release}${shared_ext}$major'
18336  shlibpath_var=LD_LIBRARY_PATH
18337  ;;
18338
18339freebsd1*)
18340  dynamic_linker=no
18341  ;;
18342
18343freebsd* | dragonfly*)
18344  # DragonFly does not have aout.  When/if they implement a new
18345  # versioning mechanism, adjust this.
18346  if test -x /usr/bin/objformat; then
18347    objformat=`/usr/bin/objformat`
18348  else
18349    case $host_os in
18350    freebsd[123]*) objformat=aout ;;
18351    *) objformat=elf ;;
18352    esac
18353  fi
18354  version_type=freebsd-$objformat
18355  case $version_type in
18356    freebsd-elf*)
18357      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18358      need_version=no
18359      need_lib_prefix=no
18360      ;;
18361    freebsd-*)
18362      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18363      need_version=yes
18364      ;;
18365  esac
18366  shlibpath_var=LD_LIBRARY_PATH
18367  case $host_os in
18368  freebsd2*)
18369    shlibpath_overrides_runpath=yes
18370    ;;
18371  freebsd3.[01]* | freebsdelf3.[01]*)
18372    shlibpath_overrides_runpath=yes
18373    hardcode_into_libs=yes
18374    ;;
18375  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18376  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18377    shlibpath_overrides_runpath=no
18378    hardcode_into_libs=yes
18379    ;;
18380  *) # from 4.6 on, and DragonFly
18381    shlibpath_overrides_runpath=yes
18382    hardcode_into_libs=yes
18383    ;;
18384  esac
18385  ;;
18386
18387gnu*)
18388  version_type=linux
18389  need_lib_prefix=no
18390  need_version=no
18391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18392  soname_spec='${libname}${release}${shared_ext}$major'
18393  shlibpath_var=LD_LIBRARY_PATH
18394  hardcode_into_libs=yes
18395  ;;
18396
18397hpux9* | hpux10* | hpux11*)
18398  # Give a soname corresponding to the major version so that dld.sl refuses to
18399  # link against other versions.
18400  version_type=sunos
18401  need_lib_prefix=no
18402  need_version=no
18403  case $host_cpu in
18404  ia64*)
18405    shrext_cmds='.so'
18406    hardcode_into_libs=yes
18407    dynamic_linker="$host_os dld.so"
18408    shlibpath_var=LD_LIBRARY_PATH
18409    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18410    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18411    soname_spec='${libname}${release}${shared_ext}$major'
18412    if test "X$HPUX_IA64_MODE" = X32; then
18413      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18414    else
18415      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18416    fi
18417    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18418    ;;
18419   hppa*64*)
18420     shrext_cmds='.sl'
18421     hardcode_into_libs=yes
18422     dynamic_linker="$host_os dld.sl"
18423     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18424     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18425     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18426     soname_spec='${libname}${release}${shared_ext}$major'
18427     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18428     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18429     ;;
18430   *)
18431    shrext_cmds='.sl'
18432    dynamic_linker="$host_os dld.sl"
18433    shlibpath_var=SHLIB_PATH
18434    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18435    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18436    soname_spec='${libname}${release}${shared_ext}$major'
18437    ;;
18438  esac
18439  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18440  postinstall_cmds='chmod 555 $lib'
18441  ;;
18442
18443interix[3-9]*)
18444  version_type=linux
18445  need_lib_prefix=no
18446  need_version=no
18447  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18448  soname_spec='${libname}${release}${shared_ext}$major'
18449  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18450  shlibpath_var=LD_LIBRARY_PATH
18451  shlibpath_overrides_runpath=no
18452  hardcode_into_libs=yes
18453  ;;
18454
18455irix5* | irix6* | nonstopux*)
18456  case $host_os in
18457    nonstopux*) version_type=nonstopux ;;
18458    *)
18459	if test "$lt_cv_prog_gnu_ld" = yes; then
18460		version_type=linux
18461	else
18462		version_type=irix
18463	fi ;;
18464  esac
18465  need_lib_prefix=no
18466  need_version=no
18467  soname_spec='${libname}${release}${shared_ext}$major'
18468  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18469  case $host_os in
18470  irix5* | nonstopux*)
18471    libsuff= shlibsuff=
18472    ;;
18473  *)
18474    case $LD in # libtool.m4 will add one of these switches to LD
18475    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18476      libsuff= shlibsuff= libmagic=32-bit;;
18477    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18478      libsuff=32 shlibsuff=N32 libmagic=N32;;
18479    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18480      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18481    *) libsuff= shlibsuff= libmagic=never-match;;
18482    esac
18483    ;;
18484  esac
18485  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18486  shlibpath_overrides_runpath=no
18487  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18488  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18489  hardcode_into_libs=yes
18490  ;;
18491
18492# No shared lib support for Linux oldld, aout, or coff.
18493linux*oldld* | linux*aout* | linux*coff*)
18494  dynamic_linker=no
18495  ;;
18496
18497# This must be Linux ELF.
18498linux* | k*bsd*-gnu)
18499  version_type=linux
18500  need_lib_prefix=no
18501  need_version=no
18502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18503  soname_spec='${libname}${release}${shared_ext}$major'
18504  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18505  shlibpath_var=LD_LIBRARY_PATH
18506  shlibpath_overrides_runpath=no
18507  # This implies no fast_install, which is unacceptable.
18508  # Some rework will be needed to allow for fast_install
18509  # before this can be enabled.
18510  hardcode_into_libs=yes
18511
18512  # Append ld.so.conf contents to the search path
18513  if test -f /etc/ld.so.conf; then
18514    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' ' '`
18515    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18516  fi
18517
18518  # We used to test for /lib/ld.so.1 and disable shared libraries on
18519  # powerpc, because MkLinux only supported shared libraries with the
18520  # GNU dynamic linker.  Since this was broken with cross compilers,
18521  # most powerpc-linux boxes support dynamic linking these days and
18522  # people can always --disable-shared, the test was removed, and we
18523  # assume the GNU/Linux dynamic linker is in use.
18524  dynamic_linker='GNU/Linux ld.so'
18525  ;;
18526
18527netbsdelf*-gnu)
18528  version_type=linux
18529  need_lib_prefix=no
18530  need_version=no
18531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18532  soname_spec='${libname}${release}${shared_ext}$major'
18533  shlibpath_var=LD_LIBRARY_PATH
18534  shlibpath_overrides_runpath=no
18535  hardcode_into_libs=yes
18536  dynamic_linker='NetBSD ld.elf_so'
18537  ;;
18538
18539netbsd*)
18540  version_type=sunos
18541  need_lib_prefix=no
18542  need_version=no
18543  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18544    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18545    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18546    dynamic_linker='NetBSD (a.out) ld.so'
18547  else
18548    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18549    soname_spec='${libname}${release}${shared_ext}$major'
18550    dynamic_linker='NetBSD ld.elf_so'
18551  fi
18552  shlibpath_var=LD_LIBRARY_PATH
18553  shlibpath_overrides_runpath=yes
18554  hardcode_into_libs=yes
18555  ;;
18556
18557newsos6)
18558  version_type=linux
18559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18560  shlibpath_var=LD_LIBRARY_PATH
18561  shlibpath_overrides_runpath=yes
18562  ;;
18563
18564nto-qnx*)
18565  version_type=linux
18566  need_lib_prefix=no
18567  need_version=no
18568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18569  soname_spec='${libname}${release}${shared_ext}$major'
18570  shlibpath_var=LD_LIBRARY_PATH
18571  shlibpath_overrides_runpath=yes
18572  ;;
18573
18574openbsd*)
18575  version_type=sunos
18576  sys_lib_dlsearch_path_spec="/usr/lib"
18577  need_lib_prefix=no
18578  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18579  case $host_os in
18580    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18581    *)                         need_version=no  ;;
18582  esac
18583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18584  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18585  shlibpath_var=LD_LIBRARY_PATH
18586  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18587    case $host_os in
18588      openbsd2.[89] | openbsd2.[89].*)
18589	shlibpath_overrides_runpath=no
18590	;;
18591      *)
18592	shlibpath_overrides_runpath=yes
18593	;;
18594      esac
18595  else
18596    shlibpath_overrides_runpath=yes
18597  fi
18598  ;;
18599
18600os2*)
18601  libname_spec='$name'
18602  shrext_cmds=".dll"
18603  need_lib_prefix=no
18604  library_names_spec='$libname${shared_ext} $libname.a'
18605  dynamic_linker='OS/2 ld.exe'
18606  shlibpath_var=LIBPATH
18607  ;;
18608
18609osf3* | osf4* | osf5*)
18610  version_type=osf
18611  need_lib_prefix=no
18612  need_version=no
18613  soname_spec='${libname}${release}${shared_ext}$major'
18614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18615  shlibpath_var=LD_LIBRARY_PATH
18616  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18617  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18618  ;;
18619
18620rdos*)
18621  dynamic_linker=no
18622  ;;
18623
18624solaris*)
18625  version_type=linux
18626  need_lib_prefix=no
18627  need_version=no
18628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18629  soname_spec='${libname}${release}${shared_ext}$major'
18630  shlibpath_var=LD_LIBRARY_PATH
18631  shlibpath_overrides_runpath=yes
18632  hardcode_into_libs=yes
18633  # ldd complains unless libraries are executable
18634  postinstall_cmds='chmod +x $lib'
18635  ;;
18636
18637sunos4*)
18638  version_type=sunos
18639  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18640  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18641  shlibpath_var=LD_LIBRARY_PATH
18642  shlibpath_overrides_runpath=yes
18643  if test "$with_gnu_ld" = yes; then
18644    need_lib_prefix=no
18645  fi
18646  need_version=yes
18647  ;;
18648
18649sysv4 | sysv4.3*)
18650  version_type=linux
18651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18652  soname_spec='${libname}${release}${shared_ext}$major'
18653  shlibpath_var=LD_LIBRARY_PATH
18654  case $host_vendor in
18655    sni)
18656      shlibpath_overrides_runpath=no
18657      need_lib_prefix=no
18658      export_dynamic_flag_spec='${wl}-Blargedynsym'
18659      runpath_var=LD_RUN_PATH
18660      ;;
18661    siemens)
18662      need_lib_prefix=no
18663      ;;
18664    motorola)
18665      need_lib_prefix=no
18666      need_version=no
18667      shlibpath_overrides_runpath=no
18668      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18669      ;;
18670  esac
18671  ;;
18672
18673sysv4*MP*)
18674  if test -d /usr/nec ;then
18675    version_type=linux
18676    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18677    soname_spec='$libname${shared_ext}.$major'
18678    shlibpath_var=LD_LIBRARY_PATH
18679  fi
18680  ;;
18681
18682sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18683  version_type=freebsd-elf
18684  need_lib_prefix=no
18685  need_version=no
18686  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18687  soname_spec='${libname}${release}${shared_ext}$major'
18688  shlibpath_var=LD_LIBRARY_PATH
18689  hardcode_into_libs=yes
18690  if test "$with_gnu_ld" = yes; then
18691    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18692    shlibpath_overrides_runpath=no
18693  else
18694    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18695    shlibpath_overrides_runpath=yes
18696    case $host_os in
18697      sco3.2v5*)
18698        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18699	;;
18700    esac
18701  fi
18702  sys_lib_dlsearch_path_spec='/usr/lib'
18703  ;;
18704
18705uts4*)
18706  version_type=linux
18707  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18708  soname_spec='${libname}${release}${shared_ext}$major'
18709  shlibpath_var=LD_LIBRARY_PATH
18710  ;;
18711
18712*)
18713  dynamic_linker=no
18714  ;;
18715esac
18716{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18717echo "${ECHO_T}$dynamic_linker" >&6; }
18718test "$dynamic_linker" = no && can_build_shared=no
18719
18720if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18721  echo $ECHO_N "(cached) $ECHO_C" >&6
18722else
18723  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18724fi
18725
18726sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18727if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18728  echo $ECHO_N "(cached) $ECHO_C" >&6
18729else
18730  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18731fi
18732
18733sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18734
18735variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18736if test "$GCC" = yes; then
18737  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18738fi
18739
18740{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18741echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18742hardcode_action_GCJ=
18743if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18744   test -n "$runpath_var_GCJ" || \
18745   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18746
18747  # We can hardcode non-existant directories.
18748  if test "$hardcode_direct_GCJ" != no &&
18749     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18750     # have to relink, otherwise we might link with an installed library
18751     # when we should be linking with a yet-to-be-installed one
18752     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18753     test "$hardcode_minus_L_GCJ" != no; then
18754    # Linking always hardcodes the temporary library directory.
18755    hardcode_action_GCJ=relink
18756  else
18757    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18758    hardcode_action_GCJ=immediate
18759  fi
18760else
18761  # We cannot hardcode anything, or else we can only hardcode existing
18762  # directories.
18763  hardcode_action_GCJ=unsupported
18764fi
18765{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18766echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18767
18768if test "$hardcode_action_GCJ" = relink; then
18769  # Fast installation is not supported
18770  enable_fast_install=no
18771elif test "$shlibpath_overrides_runpath" = yes ||
18772     test "$enable_shared" = no; then
18773  # Fast installation is not necessary
18774  enable_fast_install=needless
18775fi
18776
18777
18778# The else clause should only fire when bootstrapping the
18779# libtool distribution, otherwise you forgot to ship ltmain.sh
18780# with your package, and you will get complaints that there are
18781# no rules to generate ltmain.sh.
18782if test -f "$ltmain"; then
18783  # See if we are running on zsh, and set the options which allow our commands through
18784  # without removal of \ escapes.
18785  if test -n "${ZSH_VERSION+set}" ; then
18786    setopt NO_GLOB_SUBST
18787  fi
18788  # Now quote all the things that may contain metacharacters while being
18789  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18790  # variables and quote the copies for generation of the libtool script.
18791  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18792    SED SHELL STRIP \
18793    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18794    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18795    deplibs_check_method reload_flag reload_cmds need_locks \
18796    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18797    lt_cv_sys_global_symbol_to_c_name_address \
18798    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18799    old_postinstall_cmds old_postuninstall_cmds \
18800    compiler_GCJ \
18801    CC_GCJ \
18802    LD_GCJ \
18803    lt_prog_compiler_wl_GCJ \
18804    lt_prog_compiler_pic_GCJ \
18805    lt_prog_compiler_static_GCJ \
18806    lt_prog_compiler_no_builtin_flag_GCJ \
18807    export_dynamic_flag_spec_GCJ \
18808    thread_safe_flag_spec_GCJ \
18809    whole_archive_flag_spec_GCJ \
18810    enable_shared_with_static_runtimes_GCJ \
18811    old_archive_cmds_GCJ \
18812    old_archive_from_new_cmds_GCJ \
18813    predep_objects_GCJ \
18814    postdep_objects_GCJ \
18815    predeps_GCJ \
18816    postdeps_GCJ \
18817    compiler_lib_search_path_GCJ \
18818    compiler_lib_search_dirs_GCJ \
18819    archive_cmds_GCJ \
18820    archive_expsym_cmds_GCJ \
18821    postinstall_cmds_GCJ \
18822    postuninstall_cmds_GCJ \
18823    old_archive_from_expsyms_cmds_GCJ \
18824    allow_undefined_flag_GCJ \
18825    no_undefined_flag_GCJ \
18826    export_symbols_cmds_GCJ \
18827    hardcode_libdir_flag_spec_GCJ \
18828    hardcode_libdir_flag_spec_ld_GCJ \
18829    hardcode_libdir_separator_GCJ \
18830    hardcode_automatic_GCJ \
18831    module_cmds_GCJ \
18832    module_expsym_cmds_GCJ \
18833    lt_cv_prog_compiler_c_o_GCJ \
18834    fix_srcfile_path_GCJ \
18835    exclude_expsyms_GCJ \
18836    include_expsyms_GCJ; do
18837
18838    case $var in
18839    old_archive_cmds_GCJ | \
18840    old_archive_from_new_cmds_GCJ | \
18841    archive_cmds_GCJ | \
18842    archive_expsym_cmds_GCJ | \
18843    module_cmds_GCJ | \
18844    module_expsym_cmds_GCJ | \
18845    old_archive_from_expsyms_cmds_GCJ | \
18846    export_symbols_cmds_GCJ | \
18847    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18848    postinstall_cmds | postuninstall_cmds | \
18849    old_postinstall_cmds | old_postuninstall_cmds | \
18850    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18851      # Double-quote double-evaled strings.
18852      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18853      ;;
18854    *)
18855      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18856      ;;
18857    esac
18858  done
18859
18860  case $lt_echo in
18861  *'\$0 --fallback-echo"')
18862    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18863    ;;
18864  esac
18865
18866cfgfile="$ofile"
18867
18868  cat <<__EOF__ >> "$cfgfile"
18869# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18870
18871# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18872
18873# Shell to use when invoking shell scripts.
18874SHELL=$lt_SHELL
18875
18876# Whether or not to build shared libraries.
18877build_libtool_libs=$enable_shared
18878
18879# Whether or not to build static libraries.
18880build_old_libs=$enable_static
18881
18882# Whether or not to add -lc for building shared libraries.
18883build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18884
18885# Whether or not to disallow shared libs when runtime libs are static
18886allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18887
18888# Whether or not to optimize for fast installation.
18889fast_install=$enable_fast_install
18890
18891# The host system.
18892host_alias=$host_alias
18893host=$host
18894host_os=$host_os
18895
18896# The build system.
18897build_alias=$build_alias
18898build=$build
18899build_os=$build_os
18900
18901# An echo program that does not interpret backslashes.
18902echo=$lt_echo
18903
18904# The archiver.
18905AR=$lt_AR
18906AR_FLAGS=$lt_AR_FLAGS
18907
18908# A C compiler.
18909LTCC=$lt_LTCC
18910
18911# LTCC compiler flags.
18912LTCFLAGS=$lt_LTCFLAGS
18913
18914# A language-specific compiler.
18915CC=$lt_compiler_GCJ
18916
18917# Is the compiler the GNU C compiler?
18918with_gcc=$GCC_GCJ
18919
18920# An ERE matcher.
18921EGREP=$lt_EGREP
18922
18923# The linker used to build libraries.
18924LD=$lt_LD_GCJ
18925
18926# Whether we need hard or soft links.
18927LN_S=$lt_LN_S
18928
18929# A BSD-compatible nm program.
18930NM=$lt_NM
18931
18932# A symbol stripping program
18933STRIP=$lt_STRIP
18934
18935# Used to examine libraries when file_magic_cmd begins "file"
18936MAGIC_CMD=$MAGIC_CMD
18937
18938# Used on cygwin: DLL creation program.
18939DLLTOOL="$DLLTOOL"
18940
18941# Used on cygwin: object dumper.
18942OBJDUMP="$OBJDUMP"
18943
18944# Used on cygwin: assembler.
18945AS="$AS"
18946
18947# The name of the directory that contains temporary libtool files.
18948objdir=$objdir
18949
18950# How to create reloadable object files.
18951reload_flag=$lt_reload_flag
18952reload_cmds=$lt_reload_cmds
18953
18954# How to pass a linker flag through the compiler.
18955wl=$lt_lt_prog_compiler_wl_GCJ
18956
18957# Object file suffix (normally "o").
18958objext="$ac_objext"
18959
18960# Old archive suffix (normally "a").
18961libext="$libext"
18962
18963# Shared library suffix (normally ".so").
18964shrext_cmds='$shrext_cmds'
18965
18966# Executable file suffix (normally "").
18967exeext="$exeext"
18968
18969# Additional compiler flags for building library objects.
18970pic_flag=$lt_lt_prog_compiler_pic_GCJ
18971pic_mode=$pic_mode
18972
18973# What is the maximum length of a command?
18974max_cmd_len=$lt_cv_sys_max_cmd_len
18975
18976# Does compiler simultaneously support -c and -o options?
18977compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18978
18979# Must we lock files when doing compilation?
18980need_locks=$lt_need_locks
18981
18982# Do we need the lib prefix for modules?
18983need_lib_prefix=$need_lib_prefix
18984
18985# Do we need a version for libraries?
18986need_version=$need_version
18987
18988# Whether dlopen is supported.
18989dlopen_support=$enable_dlopen
18990
18991# Whether dlopen of programs is supported.
18992dlopen_self=$enable_dlopen_self
18993
18994# Whether dlopen of statically linked programs is supported.
18995dlopen_self_static=$enable_dlopen_self_static
18996
18997# Compiler flag to prevent dynamic linking.
18998link_static_flag=$lt_lt_prog_compiler_static_GCJ
18999
19000# Compiler flag to turn off builtin functions.
19001no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19002
19003# Compiler flag to allow reflexive dlopens.
19004export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19005
19006# Compiler flag to generate shared objects directly from archives.
19007whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19008
19009# Compiler flag to generate thread-safe objects.
19010thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19011
19012# Library versioning type.
19013version_type=$version_type
19014
19015# Format of library name prefix.
19016libname_spec=$lt_libname_spec
19017
19018# List of archive names.  First name is the real one, the rest are links.
19019# The last name is the one that the linker finds with -lNAME.
19020library_names_spec=$lt_library_names_spec
19021
19022# The coded name of the library, if different from the real name.
19023soname_spec=$lt_soname_spec
19024
19025# Commands used to build and install an old-style archive.
19026RANLIB=$lt_RANLIB
19027old_archive_cmds=$lt_old_archive_cmds_GCJ
19028old_postinstall_cmds=$lt_old_postinstall_cmds
19029old_postuninstall_cmds=$lt_old_postuninstall_cmds
19030
19031# Create an old-style archive from a shared archive.
19032old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19033
19034# Create a temporary old-style archive to link instead of a shared archive.
19035old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19036
19037# Commands used to build and install a shared archive.
19038archive_cmds=$lt_archive_cmds_GCJ
19039archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19040postinstall_cmds=$lt_postinstall_cmds
19041postuninstall_cmds=$lt_postuninstall_cmds
19042
19043# Commands used to build a loadable module (assumed same as above if empty)
19044module_cmds=$lt_module_cmds_GCJ
19045module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19046
19047# Commands to strip libraries.
19048old_striplib=$lt_old_striplib
19049striplib=$lt_striplib
19050
19051# Dependencies to place before the objects being linked to create a
19052# shared library.
19053predep_objects=$lt_predep_objects_GCJ
19054
19055# Dependencies to place after the objects being linked to create a
19056# shared library.
19057postdep_objects=$lt_postdep_objects_GCJ
19058
19059# Dependencies to place before the objects being linked to create a
19060# shared library.
19061predeps=$lt_predeps_GCJ
19062
19063# Dependencies to place after the objects being linked to create a
19064# shared library.
19065postdeps=$lt_postdeps_GCJ
19066
19067# The directories searched by this compiler when creating a shared
19068# library
19069compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19070
19071# The library search path used internally by the compiler when linking
19072# a shared library.
19073compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19074
19075# Method to check whether dependent libraries are shared objects.
19076deplibs_check_method=$lt_deplibs_check_method
19077
19078# Command to use when deplibs_check_method == file_magic.
19079file_magic_cmd=$lt_file_magic_cmd
19080
19081# Flag that allows shared libraries with undefined symbols to be built.
19082allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19083
19084# Flag that forces no undefined symbols.
19085no_undefined_flag=$lt_no_undefined_flag_GCJ
19086
19087# Commands used to finish a libtool library installation in a directory.
19088finish_cmds=$lt_finish_cmds
19089
19090# Same as above, but a single script fragment to be evaled but not shown.
19091finish_eval=$lt_finish_eval
19092
19093# Take the output of nm and produce a listing of raw symbols and C names.
19094global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19095
19096# Transform the output of nm in a proper C declaration
19097global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19098
19099# Transform the output of nm in a C name address pair
19100global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19101
19102# This is the shared library runtime path variable.
19103runpath_var=$runpath_var
19104
19105# This is the shared library path variable.
19106shlibpath_var=$shlibpath_var
19107
19108# Is shlibpath searched before the hard-coded library search path?
19109shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19110
19111# How to hardcode a shared library path into an executable.
19112hardcode_action=$hardcode_action_GCJ
19113
19114# Whether we should hardcode library paths into libraries.
19115hardcode_into_libs=$hardcode_into_libs
19116
19117# Flag to hardcode \$libdir into a binary during linking.
19118# This must work even if \$libdir does not exist.
19119hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19120
19121# If ld is used when linking, flag to hardcode \$libdir into
19122# a binary during linking. This must work even if \$libdir does
19123# not exist.
19124hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19125
19126# Whether we need a single -rpath flag with a separated argument.
19127hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19128
19129# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19130# resulting binary.
19131hardcode_direct=$hardcode_direct_GCJ
19132
19133# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19134# resulting binary.
19135hardcode_minus_L=$hardcode_minus_L_GCJ
19136
19137# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19138# the resulting binary.
19139hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19140
19141# Set to yes if building a shared library automatically hardcodes DIR into the library
19142# and all subsequent libraries and executables linked against it.
19143hardcode_automatic=$hardcode_automatic_GCJ
19144
19145# Variables whose values should be saved in libtool wrapper scripts and
19146# restored at relink time.
19147variables_saved_for_relink="$variables_saved_for_relink"
19148
19149# Whether libtool must link a program against all its dependency libraries.
19150link_all_deplibs=$link_all_deplibs_GCJ
19151
19152# Compile-time system search path for libraries
19153sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19154
19155# Run-time system search path for libraries
19156sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19157
19158# Fix the shell variable \$srcfile for the compiler.
19159fix_srcfile_path=$lt_fix_srcfile_path
19160
19161# Set to yes if exported symbols are required.
19162always_export_symbols=$always_export_symbols_GCJ
19163
19164# The commands to list exported symbols.
19165export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19166
19167# The commands to extract the exported symbol list from a shared archive.
19168extract_expsyms_cmds=$lt_extract_expsyms_cmds
19169
19170# Symbols that should not be listed in the preloaded symbols.
19171exclude_expsyms=$lt_exclude_expsyms_GCJ
19172
19173# Symbols that must always be exported.
19174include_expsyms=$lt_include_expsyms_GCJ
19175
19176# ### END LIBTOOL TAG CONFIG: $tagname
19177
19178__EOF__
19179
19180
19181else
19182  # If there is no Makefile yet, we rely on a make rule to execute
19183  # `config.status --recheck' to rerun these tests and create the
19184  # libtool script then.
19185  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19186  if test -f "$ltmain_in"; then
19187    test -f Makefile && make "$ltmain"
19188  fi
19189fi
19190
19191
19192ac_ext=c
19193ac_cpp='$CPP $CPPFLAGS'
19194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19196ac_compiler_gnu=$ac_cv_c_compiler_gnu
19197
19198CC="$lt_save_CC"
19199
19200	else
19201	  tagname=""
19202	fi
19203	;;
19204
19205      RC)
19206
19207
19208# Source file extension for RC test sources.
19209ac_ext=rc
19210
19211# Object file extension for compiled RC test sources.
19212objext=o
19213objext_RC=$objext
19214
19215# Code to be used in simple compile tests
19216lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19217
19218# Code to be used in simple link tests
19219lt_simple_link_test_code="$lt_simple_compile_test_code"
19220
19221# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19222
19223# If no C compiler was specified, use CC.
19224LTCC=${LTCC-"$CC"}
19225
19226# If no C compiler flags were specified, use CFLAGS.
19227LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19228
19229# Allow CC to be a program name with arguments.
19230compiler=$CC
19231
19232
19233# save warnings/boilerplate of simple test code
19234ac_outfile=conftest.$ac_objext
19235echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19236eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19237_lt_compiler_boilerplate=`cat conftest.err`
19238$rm conftest*
19239
19240ac_outfile=conftest.$ac_objext
19241echo "$lt_simple_link_test_code" >conftest.$ac_ext
19242eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19243_lt_linker_boilerplate=`cat conftest.err`
19244$rm -r conftest*
19245
19246
19247# Allow CC to be a program name with arguments.
19248lt_save_CC="$CC"
19249CC=${RC-"windres"}
19250compiler=$CC
19251compiler_RC=$CC
19252for cc_temp in $compiler""; do
19253  case $cc_temp in
19254    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19255    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19256    \-*) ;;
19257    *) break;;
19258  esac
19259done
19260cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19261
19262lt_cv_prog_compiler_c_o_RC=yes
19263
19264# The else clause should only fire when bootstrapping the
19265# libtool distribution, otherwise you forgot to ship ltmain.sh
19266# with your package, and you will get complaints that there are
19267# no rules to generate ltmain.sh.
19268if test -f "$ltmain"; then
19269  # See if we are running on zsh, and set the options which allow our commands through
19270  # without removal of \ escapes.
19271  if test -n "${ZSH_VERSION+set}" ; then
19272    setopt NO_GLOB_SUBST
19273  fi
19274  # Now quote all the things that may contain metacharacters while being
19275  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19276  # variables and quote the copies for generation of the libtool script.
19277  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19278    SED SHELL STRIP \
19279    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19280    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19281    deplibs_check_method reload_flag reload_cmds need_locks \
19282    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19283    lt_cv_sys_global_symbol_to_c_name_address \
19284    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19285    old_postinstall_cmds old_postuninstall_cmds \
19286    compiler_RC \
19287    CC_RC \
19288    LD_RC \
19289    lt_prog_compiler_wl_RC \
19290    lt_prog_compiler_pic_RC \
19291    lt_prog_compiler_static_RC \
19292    lt_prog_compiler_no_builtin_flag_RC \
19293    export_dynamic_flag_spec_RC \
19294    thread_safe_flag_spec_RC \
19295    whole_archive_flag_spec_RC \
19296    enable_shared_with_static_runtimes_RC \
19297    old_archive_cmds_RC \
19298    old_archive_from_new_cmds_RC \
19299    predep_objects_RC \
19300    postdep_objects_RC \
19301    predeps_RC \
19302    postdeps_RC \
19303    compiler_lib_search_path_RC \
19304    compiler_lib_search_dirs_RC \
19305    archive_cmds_RC \
19306    archive_expsym_cmds_RC \
19307    postinstall_cmds_RC \
19308    postuninstall_cmds_RC \
19309    old_archive_from_expsyms_cmds_RC \
19310    allow_undefined_flag_RC \
19311    no_undefined_flag_RC \
19312    export_symbols_cmds_RC \
19313    hardcode_libdir_flag_spec_RC \
19314    hardcode_libdir_flag_spec_ld_RC \
19315    hardcode_libdir_separator_RC \
19316    hardcode_automatic_RC \
19317    module_cmds_RC \
19318    module_expsym_cmds_RC \
19319    lt_cv_prog_compiler_c_o_RC \
19320    fix_srcfile_path_RC \
19321    exclude_expsyms_RC \
19322    include_expsyms_RC; do
19323
19324    case $var in
19325    old_archive_cmds_RC | \
19326    old_archive_from_new_cmds_RC | \
19327    archive_cmds_RC | \
19328    archive_expsym_cmds_RC | \
19329    module_cmds_RC | \
19330    module_expsym_cmds_RC | \
19331    old_archive_from_expsyms_cmds_RC | \
19332    export_symbols_cmds_RC | \
19333    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19334    postinstall_cmds | postuninstall_cmds | \
19335    old_postinstall_cmds | old_postuninstall_cmds | \
19336    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19337      # Double-quote double-evaled strings.
19338      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19339      ;;
19340    *)
19341      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19342      ;;
19343    esac
19344  done
19345
19346  case $lt_echo in
19347  *'\$0 --fallback-echo"')
19348    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19349    ;;
19350  esac
19351
19352cfgfile="$ofile"
19353
19354  cat <<__EOF__ >> "$cfgfile"
19355# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19356
19357# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19358
19359# Shell to use when invoking shell scripts.
19360SHELL=$lt_SHELL
19361
19362# Whether or not to build shared libraries.
19363build_libtool_libs=$enable_shared
19364
19365# Whether or not to build static libraries.
19366build_old_libs=$enable_static
19367
19368# Whether or not to add -lc for building shared libraries.
19369build_libtool_need_lc=$archive_cmds_need_lc_RC
19370
19371# Whether or not to disallow shared libs when runtime libs are static
19372allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19373
19374# Whether or not to optimize for fast installation.
19375fast_install=$enable_fast_install
19376
19377# The host system.
19378host_alias=$host_alias
19379host=$host
19380host_os=$host_os
19381
19382# The build system.
19383build_alias=$build_alias
19384build=$build
19385build_os=$build_os
19386
19387# An echo program that does not interpret backslashes.
19388echo=$lt_echo
19389
19390# The archiver.
19391AR=$lt_AR
19392AR_FLAGS=$lt_AR_FLAGS
19393
19394# A C compiler.
19395LTCC=$lt_LTCC
19396
19397# LTCC compiler flags.
19398LTCFLAGS=$lt_LTCFLAGS
19399
19400# A language-specific compiler.
19401CC=$lt_compiler_RC
19402
19403# Is the compiler the GNU C compiler?
19404with_gcc=$GCC_RC
19405
19406# An ERE matcher.
19407EGREP=$lt_EGREP
19408
19409# The linker used to build libraries.
19410LD=$lt_LD_RC
19411
19412# Whether we need hard or soft links.
19413LN_S=$lt_LN_S
19414
19415# A BSD-compatible nm program.
19416NM=$lt_NM
19417
19418# A symbol stripping program
19419STRIP=$lt_STRIP
19420
19421# Used to examine libraries when file_magic_cmd begins "file"
19422MAGIC_CMD=$MAGIC_CMD
19423
19424# Used on cygwin: DLL creation program.
19425DLLTOOL="$DLLTOOL"
19426
19427# Used on cygwin: object dumper.
19428OBJDUMP="$OBJDUMP"
19429
19430# Used on cygwin: assembler.
19431AS="$AS"
19432
19433# The name of the directory that contains temporary libtool files.
19434objdir=$objdir
19435
19436# How to create reloadable object files.
19437reload_flag=$lt_reload_flag
19438reload_cmds=$lt_reload_cmds
19439
19440# How to pass a linker flag through the compiler.
19441wl=$lt_lt_prog_compiler_wl_RC
19442
19443# Object file suffix (normally "o").
19444objext="$ac_objext"
19445
19446# Old archive suffix (normally "a").
19447libext="$libext"
19448
19449# Shared library suffix (normally ".so").
19450shrext_cmds='$shrext_cmds'
19451
19452# Executable file suffix (normally "").
19453exeext="$exeext"
19454
19455# Additional compiler flags for building library objects.
19456pic_flag=$lt_lt_prog_compiler_pic_RC
19457pic_mode=$pic_mode
19458
19459# What is the maximum length of a command?
19460max_cmd_len=$lt_cv_sys_max_cmd_len
19461
19462# Does compiler simultaneously support -c and -o options?
19463compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19464
19465# Must we lock files when doing compilation?
19466need_locks=$lt_need_locks
19467
19468# Do we need the lib prefix for modules?
19469need_lib_prefix=$need_lib_prefix
19470
19471# Do we need a version for libraries?
19472need_version=$need_version
19473
19474# Whether dlopen is supported.
19475dlopen_support=$enable_dlopen
19476
19477# Whether dlopen of programs is supported.
19478dlopen_self=$enable_dlopen_self
19479
19480# Whether dlopen of statically linked programs is supported.
19481dlopen_self_static=$enable_dlopen_self_static
19482
19483# Compiler flag to prevent dynamic linking.
19484link_static_flag=$lt_lt_prog_compiler_static_RC
19485
19486# Compiler flag to turn off builtin functions.
19487no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19488
19489# Compiler flag to allow reflexive dlopens.
19490export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19491
19492# Compiler flag to generate shared objects directly from archives.
19493whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19494
19495# Compiler flag to generate thread-safe objects.
19496thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19497
19498# Library versioning type.
19499version_type=$version_type
19500
19501# Format of library name prefix.
19502libname_spec=$lt_libname_spec
19503
19504# List of archive names.  First name is the real one, the rest are links.
19505# The last name is the one that the linker finds with -lNAME.
19506library_names_spec=$lt_library_names_spec
19507
19508# The coded name of the library, if different from the real name.
19509soname_spec=$lt_soname_spec
19510
19511# Commands used to build and install an old-style archive.
19512RANLIB=$lt_RANLIB
19513old_archive_cmds=$lt_old_archive_cmds_RC
19514old_postinstall_cmds=$lt_old_postinstall_cmds
19515old_postuninstall_cmds=$lt_old_postuninstall_cmds
19516
19517# Create an old-style archive from a shared archive.
19518old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19519
19520# Create a temporary old-style archive to link instead of a shared archive.
19521old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19522
19523# Commands used to build and install a shared archive.
19524archive_cmds=$lt_archive_cmds_RC
19525archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19526postinstall_cmds=$lt_postinstall_cmds
19527postuninstall_cmds=$lt_postuninstall_cmds
19528
19529# Commands used to build a loadable module (assumed same as above if empty)
19530module_cmds=$lt_module_cmds_RC
19531module_expsym_cmds=$lt_module_expsym_cmds_RC
19532
19533# Commands to strip libraries.
19534old_striplib=$lt_old_striplib
19535striplib=$lt_striplib
19536
19537# Dependencies to place before the objects being linked to create a
19538# shared library.
19539predep_objects=$lt_predep_objects_RC
19540
19541# Dependencies to place after the objects being linked to create a
19542# shared library.
19543postdep_objects=$lt_postdep_objects_RC
19544
19545# Dependencies to place before the objects being linked to create a
19546# shared library.
19547predeps=$lt_predeps_RC
19548
19549# Dependencies to place after the objects being linked to create a
19550# shared library.
19551postdeps=$lt_postdeps_RC
19552
19553# The directories searched by this compiler when creating a shared
19554# library
19555compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19556
19557# The library search path used internally by the compiler when linking
19558# a shared library.
19559compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19560
19561# Method to check whether dependent libraries are shared objects.
19562deplibs_check_method=$lt_deplibs_check_method
19563
19564# Command to use when deplibs_check_method == file_magic.
19565file_magic_cmd=$lt_file_magic_cmd
19566
19567# Flag that allows shared libraries with undefined symbols to be built.
19568allow_undefined_flag=$lt_allow_undefined_flag_RC
19569
19570# Flag that forces no undefined symbols.
19571no_undefined_flag=$lt_no_undefined_flag_RC
19572
19573# Commands used to finish a libtool library installation in a directory.
19574finish_cmds=$lt_finish_cmds
19575
19576# Same as above, but a single script fragment to be evaled but not shown.
19577finish_eval=$lt_finish_eval
19578
19579# Take the output of nm and produce a listing of raw symbols and C names.
19580global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19581
19582# Transform the output of nm in a proper C declaration
19583global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19584
19585# Transform the output of nm in a C name address pair
19586global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19587
19588# This is the shared library runtime path variable.
19589runpath_var=$runpath_var
19590
19591# This is the shared library path variable.
19592shlibpath_var=$shlibpath_var
19593
19594# Is shlibpath searched before the hard-coded library search path?
19595shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19596
19597# How to hardcode a shared library path into an executable.
19598hardcode_action=$hardcode_action_RC
19599
19600# Whether we should hardcode library paths into libraries.
19601hardcode_into_libs=$hardcode_into_libs
19602
19603# Flag to hardcode \$libdir into a binary during linking.
19604# This must work even if \$libdir does not exist.
19605hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19606
19607# If ld is used when linking, flag to hardcode \$libdir into
19608# a binary during linking. This must work even if \$libdir does
19609# not exist.
19610hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19611
19612# Whether we need a single -rpath flag with a separated argument.
19613hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19614
19615# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19616# resulting binary.
19617hardcode_direct=$hardcode_direct_RC
19618
19619# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19620# resulting binary.
19621hardcode_minus_L=$hardcode_minus_L_RC
19622
19623# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19624# the resulting binary.
19625hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19626
19627# Set to yes if building a shared library automatically hardcodes DIR into the library
19628# and all subsequent libraries and executables linked against it.
19629hardcode_automatic=$hardcode_automatic_RC
19630
19631# Variables whose values should be saved in libtool wrapper scripts and
19632# restored at relink time.
19633variables_saved_for_relink="$variables_saved_for_relink"
19634
19635# Whether libtool must link a program against all its dependency libraries.
19636link_all_deplibs=$link_all_deplibs_RC
19637
19638# Compile-time system search path for libraries
19639sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19640
19641# Run-time system search path for libraries
19642sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19643
19644# Fix the shell variable \$srcfile for the compiler.
19645fix_srcfile_path=$lt_fix_srcfile_path
19646
19647# Set to yes if exported symbols are required.
19648always_export_symbols=$always_export_symbols_RC
19649
19650# The commands to list exported symbols.
19651export_symbols_cmds=$lt_export_symbols_cmds_RC
19652
19653# The commands to extract the exported symbol list from a shared archive.
19654extract_expsyms_cmds=$lt_extract_expsyms_cmds
19655
19656# Symbols that should not be listed in the preloaded symbols.
19657exclude_expsyms=$lt_exclude_expsyms_RC
19658
19659# Symbols that must always be exported.
19660include_expsyms=$lt_include_expsyms_RC
19661
19662# ### END LIBTOOL TAG CONFIG: $tagname
19663
19664__EOF__
19665
19666
19667else
19668  # If there is no Makefile yet, we rely on a make rule to execute
19669  # `config.status --recheck' to rerun these tests and create the
19670  # libtool script then.
19671  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19672  if test -f "$ltmain_in"; then
19673    test -f Makefile && make "$ltmain"
19674  fi
19675fi
19676
19677
19678ac_ext=c
19679ac_cpp='$CPP $CPPFLAGS'
19680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19682ac_compiler_gnu=$ac_cv_c_compiler_gnu
19683
19684CC="$lt_save_CC"
19685
19686	;;
19687
19688      *)
19689	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19690echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19691   { (exit 1); exit 1; }; }
19692	;;
19693      esac
19694
19695      # Append the new tag name to the list of available tags.
19696      if test -n "$tagname" ; then
19697      available_tags="$available_tags $tagname"
19698    fi
19699    fi
19700  done
19701  IFS="$lt_save_ifs"
19702
19703  # Now substitute the updated list of available tags.
19704  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19705    mv "${ofile}T" "$ofile"
19706    chmod +x "$ofile"
19707  else
19708    rm -f "${ofile}T"
19709    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19710echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19711   { (exit 1); exit 1; }; }
19712  fi
19713fi
19714
19715
19716
19717# This can be used to rebuild libtool when needed
19718LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19719
19720# Always use our own libtool.
19721LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19722
19723# Prevent multiple expansion
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745# Checks for libraries.
19746
19747{ echo "$as_me:$LINENO: checking for pow in -lm" >&5
19748echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
19749if test "${ac_cv_lib_m_pow+set}" = set; then
19750  echo $ECHO_N "(cached) $ECHO_C" >&6
19751else
19752  ac_check_lib_save_LIBS=$LIBS
19753LIBS="-lm  $LIBS"
19754cat >conftest.$ac_ext <<_ACEOF
19755/* confdefs.h.  */
19756_ACEOF
19757cat confdefs.h >>conftest.$ac_ext
19758cat >>conftest.$ac_ext <<_ACEOF
19759/* end confdefs.h.  */
19760
19761/* Override any GCC internal prototype to avoid an error.
19762   Use char because int might match the return type of a GCC
19763   builtin and then its argument prototype would still apply.  */
19764#ifdef __cplusplus
19765extern "C"
19766#endif
19767char pow ();
19768int
19769main ()
19770{
19771return pow ();
19772  ;
19773  return 0;
19774}
19775_ACEOF
19776rm -f conftest.$ac_objext conftest$ac_exeext
19777if { (ac_try="$ac_link"
19778case "(($ac_try" in
19779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780  *) ac_try_echo=$ac_try;;
19781esac
19782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783  (eval "$ac_link") 2>conftest.er1
19784  ac_status=$?
19785  grep -v '^ *+' conftest.er1 >conftest.err
19786  rm -f conftest.er1
19787  cat conftest.err >&5
19788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789  (exit $ac_status); } && {
19790	 test -z "$ac_c_werror_flag" ||
19791	 test ! -s conftest.err
19792       } && test -s conftest$ac_exeext &&
19793       $as_test_x conftest$ac_exeext; then
19794  ac_cv_lib_m_pow=yes
19795else
19796  echo "$as_me: failed program was:" >&5
19797sed 's/^/| /' conftest.$ac_ext >&5
19798
19799	ac_cv_lib_m_pow=no
19800fi
19801
19802rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19803      conftest$ac_exeext conftest.$ac_ext
19804LIBS=$ac_check_lib_save_LIBS
19805fi
19806{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
19807echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
19808if test $ac_cv_lib_m_pow = yes; then
19809  cat >>confdefs.h <<_ACEOF
19810#define HAVE_LIBM 1
19811_ACEOF
19812
19813  LIBS="-lm $LIBS"
19814
19815fi
19816
19817
19818{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19819echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
19820if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19821  echo $ECHO_N "(cached) $ECHO_C" >&6
19822else
19823  ac_check_lib_save_LIBS=$LIBS
19824LIBS="-lpthread  $LIBS"
19825cat >conftest.$ac_ext <<_ACEOF
19826/* confdefs.h.  */
19827_ACEOF
19828cat confdefs.h >>conftest.$ac_ext
19829cat >>conftest.$ac_ext <<_ACEOF
19830/* end confdefs.h.  */
19831
19832/* Override any GCC internal prototype to avoid an error.
19833   Use char because int might match the return type of a GCC
19834   builtin and then its argument prototype would still apply.  */
19835#ifdef __cplusplus
19836extern "C"
19837#endif
19838char pthread_create ();
19839int
19840main ()
19841{
19842return pthread_create ();
19843  ;
19844  return 0;
19845}
19846_ACEOF
19847rm -f conftest.$ac_objext conftest$ac_exeext
19848if { (ac_try="$ac_link"
19849case "(($ac_try" in
19850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851  *) ac_try_echo=$ac_try;;
19852esac
19853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19854  (eval "$ac_link") 2>conftest.er1
19855  ac_status=$?
19856  grep -v '^ *+' conftest.er1 >conftest.err
19857  rm -f conftest.er1
19858  cat conftest.err >&5
19859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860  (exit $ac_status); } && {
19861	 test -z "$ac_c_werror_flag" ||
19862	 test ! -s conftest.err
19863       } && test -s conftest$ac_exeext &&
19864       $as_test_x conftest$ac_exeext; then
19865  ac_cv_lib_pthread_pthread_create=yes
19866else
19867  echo "$as_me: failed program was:" >&5
19868sed 's/^/| /' conftest.$ac_ext >&5
19869
19870	ac_cv_lib_pthread_pthread_create=no
19871fi
19872
19873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19874      conftest$ac_exeext conftest.$ac_ext
19875LIBS=$ac_check_lib_save_LIBS
19876fi
19877{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19878echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
19879if test $ac_cv_lib_pthread_pthread_create = yes; then
19880  cat >>confdefs.h <<_ACEOF
19881#define HAVE_LIBPTHREAD 1
19882_ACEOF
19883
19884  LIBS="-lpthread $LIBS"
19885
19886fi
19887
19888
19889# Checks for header files.
19890{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19891echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19892if test "${ac_cv_header_stdc+set}" = set; then
19893  echo $ECHO_N "(cached) $ECHO_C" >&6
19894else
19895  cat >conftest.$ac_ext <<_ACEOF
19896/* confdefs.h.  */
19897_ACEOF
19898cat confdefs.h >>conftest.$ac_ext
19899cat >>conftest.$ac_ext <<_ACEOF
19900/* end confdefs.h.  */
19901#include <stdlib.h>
19902#include <stdarg.h>
19903#include <string.h>
19904#include <float.h>
19905
19906int
19907main ()
19908{
19909
19910  ;
19911  return 0;
19912}
19913_ACEOF
19914rm -f conftest.$ac_objext
19915if { (ac_try="$ac_compile"
19916case "(($ac_try" in
19917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19918  *) ac_try_echo=$ac_try;;
19919esac
19920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19921  (eval "$ac_compile") 2>conftest.er1
19922  ac_status=$?
19923  grep -v '^ *+' conftest.er1 >conftest.err
19924  rm -f conftest.er1
19925  cat conftest.err >&5
19926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927  (exit $ac_status); } && {
19928	 test -z "$ac_c_werror_flag" ||
19929	 test ! -s conftest.err
19930       } && test -s conftest.$ac_objext; then
19931  ac_cv_header_stdc=yes
19932else
19933  echo "$as_me: failed program was:" >&5
19934sed 's/^/| /' conftest.$ac_ext >&5
19935
19936	ac_cv_header_stdc=no
19937fi
19938
19939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19940
19941if test $ac_cv_header_stdc = yes; then
19942  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19943  cat >conftest.$ac_ext <<_ACEOF
19944/* confdefs.h.  */
19945_ACEOF
19946cat confdefs.h >>conftest.$ac_ext
19947cat >>conftest.$ac_ext <<_ACEOF
19948/* end confdefs.h.  */
19949#include <string.h>
19950
19951_ACEOF
19952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19953  $EGREP "memchr" >/dev/null 2>&1; then
19954  :
19955else
19956  ac_cv_header_stdc=no
19957fi
19958rm -f conftest*
19959
19960fi
19961
19962if test $ac_cv_header_stdc = yes; then
19963  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19964  cat >conftest.$ac_ext <<_ACEOF
19965/* confdefs.h.  */
19966_ACEOF
19967cat confdefs.h >>conftest.$ac_ext
19968cat >>conftest.$ac_ext <<_ACEOF
19969/* end confdefs.h.  */
19970#include <stdlib.h>
19971
19972_ACEOF
19973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19974  $EGREP "free" >/dev/null 2>&1; then
19975  :
19976else
19977  ac_cv_header_stdc=no
19978fi
19979rm -f conftest*
19980
19981fi
19982
19983if test $ac_cv_header_stdc = yes; then
19984  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19985  if test "$cross_compiling" = yes; then
19986  :
19987else
19988  cat >conftest.$ac_ext <<_ACEOF
19989/* confdefs.h.  */
19990_ACEOF
19991cat confdefs.h >>conftest.$ac_ext
19992cat >>conftest.$ac_ext <<_ACEOF
19993/* end confdefs.h.  */
19994#include <ctype.h>
19995#include <stdlib.h>
19996#if ((' ' & 0x0FF) == 0x020)
19997# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19998# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19999#else
20000# define ISLOWER(c) \
20001		   (('a' <= (c) && (c) <= 'i') \
20002		     || ('j' <= (c) && (c) <= 'r') \
20003		     || ('s' <= (c) && (c) <= 'z'))
20004# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20005#endif
20006
20007#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20008int
20009main ()
20010{
20011  int i;
20012  for (i = 0; i < 256; i++)
20013    if (XOR (islower (i), ISLOWER (i))
20014	|| toupper (i) != TOUPPER (i))
20015      return 2;
20016  return 0;
20017}
20018_ACEOF
20019rm -f conftest$ac_exeext
20020if { (ac_try="$ac_link"
20021case "(($ac_try" in
20022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20023  *) ac_try_echo=$ac_try;;
20024esac
20025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20026  (eval "$ac_link") 2>&5
20027  ac_status=$?
20028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20030  { (case "(($ac_try" in
20031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032  *) ac_try_echo=$ac_try;;
20033esac
20034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20035  (eval "$ac_try") 2>&5
20036  ac_status=$?
20037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038  (exit $ac_status); }; }; then
20039  :
20040else
20041  echo "$as_me: program exited with status $ac_status" >&5
20042echo "$as_me: failed program was:" >&5
20043sed 's/^/| /' conftest.$ac_ext >&5
20044
20045( exit $ac_status )
20046ac_cv_header_stdc=no
20047fi
20048rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20049fi
20050
20051
20052fi
20053fi
20054{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20055echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20056if test $ac_cv_header_stdc = yes; then
20057
20058cat >>confdefs.h <<\_ACEOF
20059#define STDC_HEADERS 1
20060_ACEOF
20061
20062fi
20063
20064
20065
20066
20067for ac_header in arpa/inet.h netdb.h netinet/in.h
20068do
20069as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20070if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20071  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20073if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20074  echo $ECHO_N "(cached) $ECHO_C" >&6
20075fi
20076ac_res=`eval echo '${'$as_ac_Header'}'`
20077	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20078echo "${ECHO_T}$ac_res" >&6; }
20079else
20080  # Is the header compilable?
20081{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20082echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20083cat >conftest.$ac_ext <<_ACEOF
20084/* confdefs.h.  */
20085_ACEOF
20086cat confdefs.h >>conftest.$ac_ext
20087cat >>conftest.$ac_ext <<_ACEOF
20088/* end confdefs.h.  */
20089$ac_includes_default
20090#include <$ac_header>
20091_ACEOF
20092rm -f conftest.$ac_objext
20093if { (ac_try="$ac_compile"
20094case "(($ac_try" in
20095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20096  *) ac_try_echo=$ac_try;;
20097esac
20098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20099  (eval "$ac_compile") 2>conftest.er1
20100  ac_status=$?
20101  grep -v '^ *+' conftest.er1 >conftest.err
20102  rm -f conftest.er1
20103  cat conftest.err >&5
20104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105  (exit $ac_status); } && {
20106	 test -z "$ac_c_werror_flag" ||
20107	 test ! -s conftest.err
20108       } && test -s conftest.$ac_objext; then
20109  ac_header_compiler=yes
20110else
20111  echo "$as_me: failed program was:" >&5
20112sed 's/^/| /' conftest.$ac_ext >&5
20113
20114	ac_header_compiler=no
20115fi
20116
20117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20118{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20119echo "${ECHO_T}$ac_header_compiler" >&6; }
20120
20121# Is the header present?
20122{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20124cat >conftest.$ac_ext <<_ACEOF
20125/* confdefs.h.  */
20126_ACEOF
20127cat confdefs.h >>conftest.$ac_ext
20128cat >>conftest.$ac_ext <<_ACEOF
20129/* end confdefs.h.  */
20130#include <$ac_header>
20131_ACEOF
20132if { (ac_try="$ac_cpp conftest.$ac_ext"
20133case "(($ac_try" in
20134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135  *) ac_try_echo=$ac_try;;
20136esac
20137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20139  ac_status=$?
20140  grep -v '^ *+' conftest.er1 >conftest.err
20141  rm -f conftest.er1
20142  cat conftest.err >&5
20143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144  (exit $ac_status); } >/dev/null && {
20145	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20146	 test ! -s conftest.err
20147       }; then
20148  ac_header_preproc=yes
20149else
20150  echo "$as_me: failed program was:" >&5
20151sed 's/^/| /' conftest.$ac_ext >&5
20152
20153  ac_header_preproc=no
20154fi
20155
20156rm -f conftest.err conftest.$ac_ext
20157{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20158echo "${ECHO_T}$ac_header_preproc" >&6; }
20159
20160# So?  What about this header?
20161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20162  yes:no: )
20163    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20164echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20165    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20166echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20167    ac_header_preproc=yes
20168    ;;
20169  no:yes:* )
20170    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20171echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20172    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20173echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20174    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20175echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20176    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20177echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20178    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20179echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20180    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20181echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20182    ( cat <<\_ASBOX
20183## ----------------------------------- ##
20184## Report this to support@land.ufrj.br ##
20185## ----------------------------------- ##
20186_ASBOX
20187     ) | sed "s/^/$as_me: WARNING:     /" >&2
20188    ;;
20189esac
20190{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20193  echo $ECHO_N "(cached) $ECHO_C" >&6
20194else
20195  eval "$as_ac_Header=\$ac_header_preproc"
20196fi
20197ac_res=`eval echo '${'$as_ac_Header'}'`
20198	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20199echo "${ECHO_T}$ac_res" >&6; }
20200
20201fi
20202if test `eval echo '${'$as_ac_Header'}'` = yes; then
20203  cat >>confdefs.h <<_ACEOF
20204#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20205_ACEOF
20206
20207fi
20208
20209done
20210
20211
20212# Checks for typedefs, structures, and compiler characteristics.
20213{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20214echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20215if test "${ac_cv_c_const+set}" = set; then
20216  echo $ECHO_N "(cached) $ECHO_C" >&6
20217else
20218  cat >conftest.$ac_ext <<_ACEOF
20219/* confdefs.h.  */
20220_ACEOF
20221cat confdefs.h >>conftest.$ac_ext
20222cat >>conftest.$ac_ext <<_ACEOF
20223/* end confdefs.h.  */
20224
20225int
20226main ()
20227{
20228/* FIXME: Include the comments suggested by Paul. */
20229#ifndef __cplusplus
20230  /* Ultrix mips cc rejects this.  */
20231  typedef int charset[2];
20232  const charset cs;
20233  /* SunOS 4.1.1 cc rejects this.  */
20234  char const *const *pcpcc;
20235  char **ppc;
20236  /* NEC SVR4.0.2 mips cc rejects this.  */
20237  struct point {int x, y;};
20238  static struct point const zero = {0,0};
20239  /* AIX XL C 1.02.0.0 rejects this.
20240     It does not let you subtract one const X* pointer from another in
20241     an arm of an if-expression whose if-part is not a constant
20242     expression */
20243  const char *g = "string";
20244  pcpcc = &g + (g ? g-g : 0);
20245  /* HPUX 7.0 cc rejects these. */
20246  ++pcpcc;
20247  ppc = (char**) pcpcc;
20248  pcpcc = (char const *const *) ppc;
20249  { /* SCO 3.2v4 cc rejects this.  */
20250    char *t;
20251    char const *s = 0 ? (char *) 0 : (char const *) 0;
20252
20253    *t++ = 0;
20254    if (s) return 0;
20255  }
20256  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20257    int x[] = {25, 17};
20258    const int *foo = &x[0];
20259    ++foo;
20260  }
20261  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20262    typedef const int *iptr;
20263    iptr p = 0;
20264    ++p;
20265  }
20266  { /* AIX XL C 1.02.0.0 rejects this saying
20267       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20268    struct s { int j; const int *ap[3]; };
20269    struct s *b; b->j = 5;
20270  }
20271  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20272    const int foo = 10;
20273    if (!foo) return 0;
20274  }
20275  return !cs[0] && !zero.x;
20276#endif
20277
20278  ;
20279  return 0;
20280}
20281_ACEOF
20282rm -f conftest.$ac_objext
20283if { (ac_try="$ac_compile"
20284case "(($ac_try" in
20285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20286  *) ac_try_echo=$ac_try;;
20287esac
20288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20289  (eval "$ac_compile") 2>conftest.er1
20290  ac_status=$?
20291  grep -v '^ *+' conftest.er1 >conftest.err
20292  rm -f conftest.er1
20293  cat conftest.err >&5
20294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295  (exit $ac_status); } && {
20296	 test -z "$ac_c_werror_flag" ||
20297	 test ! -s conftest.err
20298       } && test -s conftest.$ac_objext; then
20299  ac_cv_c_const=yes
20300else
20301  echo "$as_me: failed program was:" >&5
20302sed 's/^/| /' conftest.$ac_ext >&5
20303
20304	ac_cv_c_const=no
20305fi
20306
20307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20308fi
20309{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20310echo "${ECHO_T}$ac_cv_c_const" >&6; }
20311if test $ac_cv_c_const = no; then
20312
20313cat >>confdefs.h <<\_ACEOF
20314#define const
20315_ACEOF
20316
20317fi
20318
20319{ echo "$as_me:$LINENO: checking for inline" >&5
20320echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20321if test "${ac_cv_c_inline+set}" = set; then
20322  echo $ECHO_N "(cached) $ECHO_C" >&6
20323else
20324  ac_cv_c_inline=no
20325for ac_kw in inline __inline__ __inline; do
20326  cat >conftest.$ac_ext <<_ACEOF
20327/* confdefs.h.  */
20328_ACEOF
20329cat confdefs.h >>conftest.$ac_ext
20330cat >>conftest.$ac_ext <<_ACEOF
20331/* end confdefs.h.  */
20332#ifndef __cplusplus
20333typedef int foo_t;
20334static $ac_kw foo_t static_foo () {return 0; }
20335$ac_kw foo_t foo () {return 0; }
20336#endif
20337
20338_ACEOF
20339rm -f conftest.$ac_objext
20340if { (ac_try="$ac_compile"
20341case "(($ac_try" in
20342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20343  *) ac_try_echo=$ac_try;;
20344esac
20345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20346  (eval "$ac_compile") 2>conftest.er1
20347  ac_status=$?
20348  grep -v '^ *+' conftest.er1 >conftest.err
20349  rm -f conftest.er1
20350  cat conftest.err >&5
20351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352  (exit $ac_status); } && {
20353	 test -z "$ac_c_werror_flag" ||
20354	 test ! -s conftest.err
20355       } && test -s conftest.$ac_objext; then
20356  ac_cv_c_inline=$ac_kw
20357else
20358  echo "$as_me: failed program was:" >&5
20359sed 's/^/| /' conftest.$ac_ext >&5
20360
20361
20362fi
20363
20364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20365  test "$ac_cv_c_inline" != no && break
20366done
20367
20368fi
20369{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20370echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20371
20372
20373case $ac_cv_c_inline in
20374  inline | yes) ;;
20375  *)
20376    case $ac_cv_c_inline in
20377      no) ac_val=;;
20378      *) ac_val=$ac_cv_c_inline;;
20379    esac
20380    cat >>confdefs.h <<_ACEOF
20381#ifndef __cplusplus
20382#define inline $ac_val
20383#endif
20384_ACEOF
20385    ;;
20386esac
20387
20388{ echo "$as_me:$LINENO: checking for size_t" >&5
20389echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20390if test "${ac_cv_type_size_t+set}" = set; then
20391  echo $ECHO_N "(cached) $ECHO_C" >&6
20392else
20393  cat >conftest.$ac_ext <<_ACEOF
20394/* confdefs.h.  */
20395_ACEOF
20396cat confdefs.h >>conftest.$ac_ext
20397cat >>conftest.$ac_ext <<_ACEOF
20398/* end confdefs.h.  */
20399$ac_includes_default
20400typedef size_t ac__type_new_;
20401int
20402main ()
20403{
20404if ((ac__type_new_ *) 0)
20405  return 0;
20406if (sizeof (ac__type_new_))
20407  return 0;
20408  ;
20409  return 0;
20410}
20411_ACEOF
20412rm -f conftest.$ac_objext
20413if { (ac_try="$ac_compile"
20414case "(($ac_try" in
20415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416  *) ac_try_echo=$ac_try;;
20417esac
20418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20419  (eval "$ac_compile") 2>conftest.er1
20420  ac_status=$?
20421  grep -v '^ *+' conftest.er1 >conftest.err
20422  rm -f conftest.er1
20423  cat conftest.err >&5
20424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425  (exit $ac_status); } && {
20426	 test -z "$ac_c_werror_flag" ||
20427	 test ! -s conftest.err
20428       } && test -s conftest.$ac_objext; then
20429  ac_cv_type_size_t=yes
20430else
20431  echo "$as_me: failed program was:" >&5
20432sed 's/^/| /' conftest.$ac_ext >&5
20433
20434	ac_cv_type_size_t=no
20435fi
20436
20437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20438fi
20439{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20440echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20441if test $ac_cv_type_size_t = yes; then
20442  :
20443else
20444
20445cat >>confdefs.h <<_ACEOF
20446#define size_t unsigned int
20447_ACEOF
20448
20449fi
20450
20451{ echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
20452echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
20453if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
20454  echo $ECHO_N "(cached) $ECHO_C" >&6
20455else
20456  cat >conftest.$ac_ext <<_ACEOF
20457/* confdefs.h.  */
20458_ACEOF
20459cat confdefs.h >>conftest.$ac_ext
20460cat >>conftest.$ac_ext <<_ACEOF
20461/* end confdefs.h.  */
20462$ac_includes_default
20463int
20464main ()
20465{
20466#ifndef sys_siglist
20467  (void) sys_siglist;
20468#endif
20469
20470  ;
20471  return 0;
20472}
20473_ACEOF
20474rm -f conftest.$ac_objext
20475if { (ac_try="$ac_compile"
20476case "(($ac_try" in
20477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478  *) ac_try_echo=$ac_try;;
20479esac
20480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481  (eval "$ac_compile") 2>conftest.er1
20482  ac_status=$?
20483  grep -v '^ *+' conftest.er1 >conftest.err
20484  rm -f conftest.er1
20485  cat conftest.err >&5
20486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487  (exit $ac_status); } && {
20488	 test -z "$ac_c_werror_flag" ||
20489	 test ! -s conftest.err
20490       } && test -s conftest.$ac_objext; then
20491  ac_cv_have_decl_sys_siglist=yes
20492else
20493  echo "$as_me: failed program was:" >&5
20494sed 's/^/| /' conftest.$ac_ext >&5
20495
20496	ac_cv_have_decl_sys_siglist=no
20497fi
20498
20499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20500fi
20501{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
20502echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
20503if test $ac_cv_have_decl_sys_siglist = yes; then
20504
20505cat >>confdefs.h <<_ACEOF
20506#define HAVE_DECL_SYS_SIGLIST 1
20507_ACEOF
20508
20509
20510else
20511  cat >>confdefs.h <<_ACEOF
20512#define HAVE_DECL_SYS_SIGLIST 0
20513_ACEOF
20514
20515
20516fi
20517
20518
20519{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20520echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20521if test "${ac_cv_header_time+set}" = set; then
20522  echo $ECHO_N "(cached) $ECHO_C" >&6
20523else
20524  cat >conftest.$ac_ext <<_ACEOF
20525/* confdefs.h.  */
20526_ACEOF
20527cat confdefs.h >>conftest.$ac_ext
20528cat >>conftest.$ac_ext <<_ACEOF
20529/* end confdefs.h.  */
20530#include <sys/types.h>
20531#include <sys/time.h>
20532#include <time.h>
20533
20534int
20535main ()
20536{
20537if ((struct tm *) 0)
20538return 0;
20539  ;
20540  return 0;
20541}
20542_ACEOF
20543rm -f conftest.$ac_objext
20544if { (ac_try="$ac_compile"
20545case "(($ac_try" in
20546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547  *) ac_try_echo=$ac_try;;
20548esac
20549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550  (eval "$ac_compile") 2>conftest.er1
20551  ac_status=$?
20552  grep -v '^ *+' conftest.er1 >conftest.err
20553  rm -f conftest.er1
20554  cat conftest.err >&5
20555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556  (exit $ac_status); } && {
20557	 test -z "$ac_c_werror_flag" ||
20558	 test ! -s conftest.err
20559       } && test -s conftest.$ac_objext; then
20560  ac_cv_header_time=yes
20561else
20562  echo "$as_me: failed program was:" >&5
20563sed 's/^/| /' conftest.$ac_ext >&5
20564
20565	ac_cv_header_time=no
20566fi
20567
20568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20569fi
20570{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20571echo "${ECHO_T}$ac_cv_header_time" >&6; }
20572if test $ac_cv_header_time = yes; then
20573
20574cat >>confdefs.h <<\_ACEOF
20575#define TIME_WITH_SYS_TIME 1
20576_ACEOF
20577
20578fi
20579
20580{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20581echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20582if test "${ac_cv_struct_tm+set}" = set; then
20583  echo $ECHO_N "(cached) $ECHO_C" >&6
20584else
20585  cat >conftest.$ac_ext <<_ACEOF
20586/* confdefs.h.  */
20587_ACEOF
20588cat confdefs.h >>conftest.$ac_ext
20589cat >>conftest.$ac_ext <<_ACEOF
20590/* end confdefs.h.  */
20591#include <sys/types.h>
20592#include <time.h>
20593
20594int
20595main ()
20596{
20597struct tm tm;
20598				     int *p = &tm.tm_sec;
20599 				     return !p;
20600  ;
20601  return 0;
20602}
20603_ACEOF
20604rm -f conftest.$ac_objext
20605if { (ac_try="$ac_compile"
20606case "(($ac_try" in
20607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608  *) ac_try_echo=$ac_try;;
20609esac
20610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20611  (eval "$ac_compile") 2>conftest.er1
20612  ac_status=$?
20613  grep -v '^ *+' conftest.er1 >conftest.err
20614  rm -f conftest.er1
20615  cat conftest.err >&5
20616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617  (exit $ac_status); } && {
20618	 test -z "$ac_c_werror_flag" ||
20619	 test ! -s conftest.err
20620       } && test -s conftest.$ac_objext; then
20621  ac_cv_struct_tm=time.h
20622else
20623  echo "$as_me: failed program was:" >&5
20624sed 's/^/| /' conftest.$ac_ext >&5
20625
20626	ac_cv_struct_tm=sys/time.h
20627fi
20628
20629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20630fi
20631{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20632echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20633if test $ac_cv_struct_tm = sys/time.h; then
20634
20635cat >>confdefs.h <<\_ACEOF
20636#define TM_IN_SYS_TIME 1
20637_ACEOF
20638
20639fi
20640
20641
20642# Checks for library functions.
20643
20644
20645
20646
20647
20648ac_header_dirent=no
20649for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20650  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20651{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20652echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20653if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20654  echo $ECHO_N "(cached) $ECHO_C" >&6
20655else
20656  cat >conftest.$ac_ext <<_ACEOF
20657/* confdefs.h.  */
20658_ACEOF
20659cat confdefs.h >>conftest.$ac_ext
20660cat >>conftest.$ac_ext <<_ACEOF
20661/* end confdefs.h.  */
20662#include <sys/types.h>
20663#include <$ac_hdr>
20664
20665int
20666main ()
20667{
20668if ((DIR *) 0)
20669return 0;
20670  ;
20671  return 0;
20672}
20673_ACEOF
20674rm -f conftest.$ac_objext
20675if { (ac_try="$ac_compile"
20676case "(($ac_try" in
20677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678  *) ac_try_echo=$ac_try;;
20679esac
20680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20681  (eval "$ac_compile") 2>conftest.er1
20682  ac_status=$?
20683  grep -v '^ *+' conftest.er1 >conftest.err
20684  rm -f conftest.er1
20685  cat conftest.err >&5
20686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687  (exit $ac_status); } && {
20688	 test -z "$ac_c_werror_flag" ||
20689	 test ! -s conftest.err
20690       } && test -s conftest.$ac_objext; then
20691  eval "$as_ac_Header=yes"
20692else
20693  echo "$as_me: failed program was:" >&5
20694sed 's/^/| /' conftest.$ac_ext >&5
20695
20696	eval "$as_ac_Header=no"
20697fi
20698
20699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20700fi
20701ac_res=`eval echo '${'$as_ac_Header'}'`
20702	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20703echo "${ECHO_T}$ac_res" >&6; }
20704if test `eval echo '${'$as_ac_Header'}'` = yes; then
20705  cat >>confdefs.h <<_ACEOF
20706#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20707_ACEOF
20708
20709ac_header_dirent=$ac_hdr; break
20710fi
20711
20712done
20713# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20714if test $ac_header_dirent = dirent.h; then
20715  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20716echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20717if test "${ac_cv_search_opendir+set}" = set; then
20718  echo $ECHO_N "(cached) $ECHO_C" >&6
20719else
20720  ac_func_search_save_LIBS=$LIBS
20721cat >conftest.$ac_ext <<_ACEOF
20722/* confdefs.h.  */
20723_ACEOF
20724cat confdefs.h >>conftest.$ac_ext
20725cat >>conftest.$ac_ext <<_ACEOF
20726/* end confdefs.h.  */
20727
20728/* Override any GCC internal prototype to avoid an error.
20729   Use char because int might match the return type of a GCC
20730   builtin and then its argument prototype would still apply.  */
20731#ifdef __cplusplus
20732extern "C"
20733#endif
20734char opendir ();
20735int
20736main ()
20737{
20738return opendir ();
20739  ;
20740  return 0;
20741}
20742_ACEOF
20743for ac_lib in '' dir; do
20744  if test -z "$ac_lib"; then
20745    ac_res="none required"
20746  else
20747    ac_res=-l$ac_lib
20748    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20749  fi
20750  rm -f conftest.$ac_objext conftest$ac_exeext
20751if { (ac_try="$ac_link"
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_link") 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_exeext &&
20767       $as_test_x conftest$ac_exeext; then
20768  ac_cv_search_opendir=$ac_res
20769else
20770  echo "$as_me: failed program was:" >&5
20771sed 's/^/| /' conftest.$ac_ext >&5
20772
20773
20774fi
20775
20776rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20777      conftest$ac_exeext
20778  if test "${ac_cv_search_opendir+set}" = set; then
20779  break
20780fi
20781done
20782if test "${ac_cv_search_opendir+set}" = set; then
20783  :
20784else
20785  ac_cv_search_opendir=no
20786fi
20787rm conftest.$ac_ext
20788LIBS=$ac_func_search_save_LIBS
20789fi
20790{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20791echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20792ac_res=$ac_cv_search_opendir
20793if test "$ac_res" != no; then
20794  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20795
20796fi
20797
20798else
20799  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20800echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20801if test "${ac_cv_search_opendir+set}" = set; then
20802  echo $ECHO_N "(cached) $ECHO_C" >&6
20803else
20804  ac_func_search_save_LIBS=$LIBS
20805cat >conftest.$ac_ext <<_ACEOF
20806/* confdefs.h.  */
20807_ACEOF
20808cat confdefs.h >>conftest.$ac_ext
20809cat >>conftest.$ac_ext <<_ACEOF
20810/* end confdefs.h.  */
20811
20812/* Override any GCC internal prototype to avoid an error.
20813   Use char because int might match the return type of a GCC
20814   builtin and then its argument prototype would still apply.  */
20815#ifdef __cplusplus
20816extern "C"
20817#endif
20818char opendir ();
20819int
20820main ()
20821{
20822return opendir ();
20823  ;
20824  return 0;
20825}
20826_ACEOF
20827for ac_lib in '' x; do
20828  if test -z "$ac_lib"; then
20829    ac_res="none required"
20830  else
20831    ac_res=-l$ac_lib
20832    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20833  fi
20834  rm -f conftest.$ac_objext conftest$ac_exeext
20835if { (ac_try="$ac_link"
20836case "(($ac_try" in
20837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20838  *) ac_try_echo=$ac_try;;
20839esac
20840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20841  (eval "$ac_link") 2>conftest.er1
20842  ac_status=$?
20843  grep -v '^ *+' conftest.er1 >conftest.err
20844  rm -f conftest.er1
20845  cat conftest.err >&5
20846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847  (exit $ac_status); } && {
20848	 test -z "$ac_c_werror_flag" ||
20849	 test ! -s conftest.err
20850       } && test -s conftest$ac_exeext &&
20851       $as_test_x conftest$ac_exeext; then
20852  ac_cv_search_opendir=$ac_res
20853else
20854  echo "$as_me: failed program was:" >&5
20855sed 's/^/| /' conftest.$ac_ext >&5
20856
20857
20858fi
20859
20860rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20861      conftest$ac_exeext
20862  if test "${ac_cv_search_opendir+set}" = set; then
20863  break
20864fi
20865done
20866if test "${ac_cv_search_opendir+set}" = set; then
20867  :
20868else
20869  ac_cv_search_opendir=no
20870fi
20871rm conftest.$ac_ext
20872LIBS=$ac_func_search_save_LIBS
20873fi
20874{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20875echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20876ac_res=$ac_cv_search_opendir
20877if test "$ac_res" != no; then
20878  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20879
20880fi
20881
20882fi
20883
20884{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5
20885echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
20886if test "${ac_cv_func_closedir_void+set}" = set; then
20887  echo $ECHO_N "(cached) $ECHO_C" >&6
20888else
20889  if test "$cross_compiling" = yes; then
20890  ac_cv_func_closedir_void=yes
20891else
20892  cat >conftest.$ac_ext <<_ACEOF
20893/* confdefs.h.  */
20894_ACEOF
20895cat confdefs.h >>conftest.$ac_ext
20896cat >>conftest.$ac_ext <<_ACEOF
20897/* end confdefs.h.  */
20898$ac_includes_default
20899#include <$ac_header_dirent>
20900#ifndef __cplusplus
20901int closedir ();
20902#endif
20903
20904int
20905main ()
20906{
20907return closedir (opendir (".")) != 0;
20908  ;
20909  return 0;
20910}
20911_ACEOF
20912rm -f conftest$ac_exeext
20913if { (ac_try="$ac_link"
20914case "(($ac_try" in
20915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916  *) ac_try_echo=$ac_try;;
20917esac
20918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20919  (eval "$ac_link") 2>&5
20920  ac_status=$?
20921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20923  { (case "(($ac_try" in
20924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20925  *) ac_try_echo=$ac_try;;
20926esac
20927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20928  (eval "$ac_try") 2>&5
20929  ac_status=$?
20930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931  (exit $ac_status); }; }; then
20932  ac_cv_func_closedir_void=no
20933else
20934  echo "$as_me: program exited with status $ac_status" >&5
20935echo "$as_me: failed program was:" >&5
20936sed 's/^/| /' conftest.$ac_ext >&5
20937
20938( exit $ac_status )
20939ac_cv_func_closedir_void=yes
20940fi
20941rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20942fi
20943
20944
20945fi
20946{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20947echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
20948if test $ac_cv_func_closedir_void = yes; then
20949
20950cat >>confdefs.h <<\_ACEOF
20951#define CLOSEDIR_VOID 1
20952_ACEOF
20953
20954fi
20955
20956{ echo "$as_me:$LINENO: checking for pid_t" >&5
20957echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
20958if test "${ac_cv_type_pid_t+set}" = set; then
20959  echo $ECHO_N "(cached) $ECHO_C" >&6
20960else
20961  cat >conftest.$ac_ext <<_ACEOF
20962/* confdefs.h.  */
20963_ACEOF
20964cat confdefs.h >>conftest.$ac_ext
20965cat >>conftest.$ac_ext <<_ACEOF
20966/* end confdefs.h.  */
20967$ac_includes_default
20968typedef pid_t ac__type_new_;
20969int
20970main ()
20971{
20972if ((ac__type_new_ *) 0)
20973  return 0;
20974if (sizeof (ac__type_new_))
20975  return 0;
20976  ;
20977  return 0;
20978}
20979_ACEOF
20980rm -f conftest.$ac_objext
20981if { (ac_try="$ac_compile"
20982case "(($ac_try" in
20983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20984  *) ac_try_echo=$ac_try;;
20985esac
20986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20987  (eval "$ac_compile") 2>conftest.er1
20988  ac_status=$?
20989  grep -v '^ *+' conftest.er1 >conftest.err
20990  rm -f conftest.er1
20991  cat conftest.err >&5
20992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993  (exit $ac_status); } && {
20994	 test -z "$ac_c_werror_flag" ||
20995	 test ! -s conftest.err
20996       } && test -s conftest.$ac_objext; then
20997  ac_cv_type_pid_t=yes
20998else
20999  echo "$as_me: failed program was:" >&5
21000sed 's/^/| /' conftest.$ac_ext >&5
21001
21002	ac_cv_type_pid_t=no
21003fi
21004
21005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21006fi
21007{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21008echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21009if test $ac_cv_type_pid_t = yes; then
21010  :
21011else
21012
21013cat >>confdefs.h <<_ACEOF
21014#define pid_t int
21015_ACEOF
21016
21017fi
21018
21019
21020for ac_header in vfork.h
21021do
21022as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21023if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21024  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21027  echo $ECHO_N "(cached) $ECHO_C" >&6
21028fi
21029ac_res=`eval echo '${'$as_ac_Header'}'`
21030	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21031echo "${ECHO_T}$ac_res" >&6; }
21032else
21033  # Is the header compilable?
21034{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21035echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21036cat >conftest.$ac_ext <<_ACEOF
21037/* confdefs.h.  */
21038_ACEOF
21039cat confdefs.h >>conftest.$ac_ext
21040cat >>conftest.$ac_ext <<_ACEOF
21041/* end confdefs.h.  */
21042$ac_includes_default
21043#include <$ac_header>
21044_ACEOF
21045rm -f conftest.$ac_objext
21046if { (ac_try="$ac_compile"
21047case "(($ac_try" in
21048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049  *) ac_try_echo=$ac_try;;
21050esac
21051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052  (eval "$ac_compile") 2>conftest.er1
21053  ac_status=$?
21054  grep -v '^ *+' conftest.er1 >conftest.err
21055  rm -f conftest.er1
21056  cat conftest.err >&5
21057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058  (exit $ac_status); } && {
21059	 test -z "$ac_c_werror_flag" ||
21060	 test ! -s conftest.err
21061       } && test -s conftest.$ac_objext; then
21062  ac_header_compiler=yes
21063else
21064  echo "$as_me: failed program was:" >&5
21065sed 's/^/| /' conftest.$ac_ext >&5
21066
21067	ac_header_compiler=no
21068fi
21069
21070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21071{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21072echo "${ECHO_T}$ac_header_compiler" >&6; }
21073
21074# Is the header present?
21075{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21076echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21077cat >conftest.$ac_ext <<_ACEOF
21078/* confdefs.h.  */
21079_ACEOF
21080cat confdefs.h >>conftest.$ac_ext
21081cat >>conftest.$ac_ext <<_ACEOF
21082/* end confdefs.h.  */
21083#include <$ac_header>
21084_ACEOF
21085if { (ac_try="$ac_cpp conftest.$ac_ext"
21086case "(($ac_try" in
21087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088  *) ac_try_echo=$ac_try;;
21089esac
21090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21091  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21092  ac_status=$?
21093  grep -v '^ *+' conftest.er1 >conftest.err
21094  rm -f conftest.er1
21095  cat conftest.err >&5
21096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097  (exit $ac_status); } >/dev/null && {
21098	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21099	 test ! -s conftest.err
21100       }; then
21101  ac_header_preproc=yes
21102else
21103  echo "$as_me: failed program was:" >&5
21104sed 's/^/| /' conftest.$ac_ext >&5
21105
21106  ac_header_preproc=no
21107fi
21108
21109rm -f conftest.err conftest.$ac_ext
21110{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21111echo "${ECHO_T}$ac_header_preproc" >&6; }
21112
21113# So?  What about this header?
21114case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21115  yes:no: )
21116    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21117echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21118    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21119echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21120    ac_header_preproc=yes
21121    ;;
21122  no:yes:* )
21123    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21124echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21125    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21126echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21127    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21128echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21129    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21130echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21131    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21132echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21133    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21134echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21135    ( cat <<\_ASBOX
21136## ----------------------------------- ##
21137## Report this to support@land.ufrj.br ##
21138## ----------------------------------- ##
21139_ASBOX
21140     ) | sed "s/^/$as_me: WARNING:     /" >&2
21141    ;;
21142esac
21143{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21144echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21145if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21146  echo $ECHO_N "(cached) $ECHO_C" >&6
21147else
21148  eval "$as_ac_Header=\$ac_header_preproc"
21149fi
21150ac_res=`eval echo '${'$as_ac_Header'}'`
21151	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21152echo "${ECHO_T}$ac_res" >&6; }
21153
21154fi
21155if test `eval echo '${'$as_ac_Header'}'` = yes; then
21156  cat >>confdefs.h <<_ACEOF
21157#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21158_ACEOF
21159
21160fi
21161
21162done
21163
21164
21165
21166for ac_func in fork vfork
21167do
21168as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21169{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21170echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21171if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21172  echo $ECHO_N "(cached) $ECHO_C" >&6
21173else
21174  cat >conftest.$ac_ext <<_ACEOF
21175/* confdefs.h.  */
21176_ACEOF
21177cat confdefs.h >>conftest.$ac_ext
21178cat >>conftest.$ac_ext <<_ACEOF
21179/* end confdefs.h.  */
21180/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21181   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21182#define $ac_func innocuous_$ac_func
21183
21184/* System header to define __stub macros and hopefully few prototypes,
21185    which can conflict with char $ac_func (); below.
21186    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21187    <limits.h> exists even on freestanding compilers.  */
21188
21189#ifdef __STDC__
21190# include <limits.h>
21191#else
21192# include <assert.h>
21193#endif
21194
21195#undef $ac_func
21196
21197/* Override any GCC internal prototype to avoid an error.
21198   Use char because int might match the return type of a GCC
21199   builtin and then its argument prototype would still apply.  */
21200#ifdef __cplusplus
21201extern "C"
21202#endif
21203char $ac_func ();
21204/* The GNU C library defines this for functions which it implements
21205    to always fail with ENOSYS.  Some functions are actually named
21206    something starting with __ and the normal name is an alias.  */
21207#if defined __stub_$ac_func || defined __stub___$ac_func
21208choke me
21209#endif
21210
21211int
21212main ()
21213{
21214return $ac_func ();
21215  ;
21216  return 0;
21217}
21218_ACEOF
21219rm -f conftest.$ac_objext conftest$ac_exeext
21220if { (ac_try="$ac_link"
21221case "(($ac_try" in
21222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21223  *) ac_try_echo=$ac_try;;
21224esac
21225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21226  (eval "$ac_link") 2>conftest.er1
21227  ac_status=$?
21228  grep -v '^ *+' conftest.er1 >conftest.err
21229  rm -f conftest.er1
21230  cat conftest.err >&5
21231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232  (exit $ac_status); } && {
21233	 test -z "$ac_c_werror_flag" ||
21234	 test ! -s conftest.err
21235       } && test -s conftest$ac_exeext &&
21236       $as_test_x conftest$ac_exeext; then
21237  eval "$as_ac_var=yes"
21238else
21239  echo "$as_me: failed program was:" >&5
21240sed 's/^/| /' conftest.$ac_ext >&5
21241
21242	eval "$as_ac_var=no"
21243fi
21244
21245rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21246      conftest$ac_exeext conftest.$ac_ext
21247fi
21248ac_res=`eval echo '${'$as_ac_var'}'`
21249	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21250echo "${ECHO_T}$ac_res" >&6; }
21251if test `eval echo '${'$as_ac_var'}'` = yes; then
21252  cat >>confdefs.h <<_ACEOF
21253#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21254_ACEOF
21255
21256fi
21257done
21258
21259if test "x$ac_cv_func_fork" = xyes; then
21260  { echo "$as_me:$LINENO: checking for working fork" >&5
21261echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
21262if test "${ac_cv_func_fork_works+set}" = set; then
21263  echo $ECHO_N "(cached) $ECHO_C" >&6
21264else
21265  if test "$cross_compiling" = yes; then
21266  ac_cv_func_fork_works=cross
21267else
21268  cat >conftest.$ac_ext <<_ACEOF
21269/* confdefs.h.  */
21270_ACEOF
21271cat confdefs.h >>conftest.$ac_ext
21272cat >>conftest.$ac_ext <<_ACEOF
21273/* end confdefs.h.  */
21274$ac_includes_default
21275int
21276main ()
21277{
21278
21279	  /* By Ruediger Kuhlmann. */
21280	  return fork () < 0;
21281
21282  ;
21283  return 0;
21284}
21285_ACEOF
21286rm -f conftest$ac_exeext
21287if { (ac_try="$ac_link"
21288case "(($ac_try" in
21289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21290  *) ac_try_echo=$ac_try;;
21291esac
21292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21293  (eval "$ac_link") 2>&5
21294  ac_status=$?
21295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21297  { (case "(($ac_try" in
21298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299  *) ac_try_echo=$ac_try;;
21300esac
21301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21302  (eval "$ac_try") 2>&5
21303  ac_status=$?
21304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305  (exit $ac_status); }; }; then
21306  ac_cv_func_fork_works=yes
21307else
21308  echo "$as_me: program exited with status $ac_status" >&5
21309echo "$as_me: failed program was:" >&5
21310sed 's/^/| /' conftest.$ac_ext >&5
21311
21312( exit $ac_status )
21313ac_cv_func_fork_works=no
21314fi
21315rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21316fi
21317
21318
21319fi
21320{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21321echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
21322
21323else
21324  ac_cv_func_fork_works=$ac_cv_func_fork
21325fi
21326if test "x$ac_cv_func_fork_works" = xcross; then
21327  case $host in
21328    *-*-amigaos* | *-*-msdosdjgpp*)
21329      # Override, as these systems have only a dummy fork() stub
21330      ac_cv_func_fork_works=no
21331      ;;
21332    *)
21333      ac_cv_func_fork_works=yes
21334      ;;
21335  esac
21336  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21337echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21338fi
21339ac_cv_func_vfork_works=$ac_cv_func_vfork
21340if test "x$ac_cv_func_vfork" = xyes; then
21341  { echo "$as_me:$LINENO: checking for working vfork" >&5
21342echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
21343if test "${ac_cv_func_vfork_works+set}" = set; then
21344  echo $ECHO_N "(cached) $ECHO_C" >&6
21345else
21346  if test "$cross_compiling" = yes; then
21347  ac_cv_func_vfork_works=cross
21348else
21349  cat >conftest.$ac_ext <<_ACEOF
21350/* confdefs.h.  */
21351_ACEOF
21352cat confdefs.h >>conftest.$ac_ext
21353cat >>conftest.$ac_ext <<_ACEOF
21354/* end confdefs.h.  */
21355/* Thanks to Paul Eggert for this test.  */
21356$ac_includes_default
21357#include <sys/wait.h>
21358#ifdef HAVE_VFORK_H
21359# include <vfork.h>
21360#endif
21361/* On some sparc systems, changes by the child to local and incoming
21362   argument registers are propagated back to the parent.  The compiler
21363   is told about this with #include <vfork.h>, but some compilers
21364   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
21365   static variable whose address is put into a register that is
21366   clobbered by the vfork.  */
21367static void
21368#ifdef __cplusplus
21369sparc_address_test (int arg)
21370# else
21371sparc_address_test (arg) int arg;
21372#endif
21373{
21374  static pid_t child;
21375  if (!child) {
21376    child = vfork ();
21377    if (child < 0) {
21378      perror ("vfork");
21379      _exit(2);
21380    }
21381    if (!child) {
21382      arg = getpid();
21383      write(-1, "", 0);
21384      _exit (arg);
21385    }
21386  }
21387}
21388
21389int
21390main ()
21391{
21392  pid_t parent = getpid ();
21393  pid_t child;
21394
21395  sparc_address_test (0);
21396
21397  child = vfork ();
21398
21399  if (child == 0) {
21400    /* Here is another test for sparc vfork register problems.  This
21401       test uses lots of local variables, at least as many local
21402       variables as main has allocated so far including compiler
21403       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
21404       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
21405       reuse the register of parent for one of the local variables,
21406       since it will think that parent can't possibly be used any more
21407       in this routine.  Assigning to the local variable will thus
21408       munge parent in the parent process.  */
21409    pid_t
21410      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21411      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21412    /* Convince the compiler that p..p7 are live; otherwise, it might
21413       use the same hardware register for all 8 local variables.  */
21414    if (p != p1 || p != p2 || p != p3 || p != p4
21415	|| p != p5 || p != p6 || p != p7)
21416      _exit(1);
21417
21418    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21419       from child file descriptors.  If the child closes a descriptor
21420       before it execs or exits, this munges the parent's descriptor
21421       as well.  Test for this by closing stdout in the child.  */
21422    _exit(close(fileno(stdout)) != 0);
21423  } else {
21424    int status;
21425    struct stat st;
21426
21427    while (wait(&status) != child)
21428      ;
21429    return (
21430	 /* Was there some problem with vforking?  */
21431	 child < 0
21432
21433	 /* Did the child fail?  (This shouldn't happen.)  */
21434	 || status
21435
21436	 /* Did the vfork/compiler bug occur?  */
21437	 || parent != getpid()
21438
21439	 /* Did the file descriptor bug occur?  */
21440	 || fstat(fileno(stdout), &st) != 0
21441	 );
21442  }
21443}
21444_ACEOF
21445rm -f conftest$ac_exeext
21446if { (ac_try="$ac_link"
21447case "(($ac_try" in
21448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449  *) ac_try_echo=$ac_try;;
21450esac
21451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452  (eval "$ac_link") 2>&5
21453  ac_status=$?
21454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21456  { (case "(($ac_try" in
21457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21458  *) ac_try_echo=$ac_try;;
21459esac
21460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21461  (eval "$ac_try") 2>&5
21462  ac_status=$?
21463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464  (exit $ac_status); }; }; then
21465  ac_cv_func_vfork_works=yes
21466else
21467  echo "$as_me: program exited with status $ac_status" >&5
21468echo "$as_me: failed program was:" >&5
21469sed 's/^/| /' conftest.$ac_ext >&5
21470
21471( exit $ac_status )
21472ac_cv_func_vfork_works=no
21473fi
21474rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21475fi
21476
21477
21478fi
21479{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21480echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
21481
21482fi;
21483if test "x$ac_cv_func_fork_works" = xcross; then
21484  ac_cv_func_vfork_works=$ac_cv_func_vfork
21485  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21486echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21487fi
21488
21489if test "x$ac_cv_func_vfork_works" = xyes; then
21490
21491cat >>confdefs.h <<\_ACEOF
21492#define HAVE_WORKING_VFORK 1
21493_ACEOF
21494
21495else
21496
21497cat >>confdefs.h <<\_ACEOF
21498#define vfork fork
21499_ACEOF
21500
21501fi
21502if test "x$ac_cv_func_fork_works" = xyes; then
21503
21504cat >>confdefs.h <<\_ACEOF
21505#define HAVE_WORKING_FORK 1
21506_ACEOF
21507
21508fi
21509
21510
21511for ac_header in stdlib.h
21512do
21513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21515  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21518  echo $ECHO_N "(cached) $ECHO_C" >&6
21519fi
21520ac_res=`eval echo '${'$as_ac_Header'}'`
21521	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21522echo "${ECHO_T}$ac_res" >&6; }
21523else
21524  # Is the header compilable?
21525{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21526echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21527cat >conftest.$ac_ext <<_ACEOF
21528/* confdefs.h.  */
21529_ACEOF
21530cat confdefs.h >>conftest.$ac_ext
21531cat >>conftest.$ac_ext <<_ACEOF
21532/* end confdefs.h.  */
21533$ac_includes_default
21534#include <$ac_header>
21535_ACEOF
21536rm -f conftest.$ac_objext
21537if { (ac_try="$ac_compile"
21538case "(($ac_try" in
21539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21540  *) ac_try_echo=$ac_try;;
21541esac
21542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21543  (eval "$ac_compile") 2>conftest.er1
21544  ac_status=$?
21545  grep -v '^ *+' conftest.er1 >conftest.err
21546  rm -f conftest.er1
21547  cat conftest.err >&5
21548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549  (exit $ac_status); } && {
21550	 test -z "$ac_c_werror_flag" ||
21551	 test ! -s conftest.err
21552       } && test -s conftest.$ac_objext; then
21553  ac_header_compiler=yes
21554else
21555  echo "$as_me: failed program was:" >&5
21556sed 's/^/| /' conftest.$ac_ext >&5
21557
21558	ac_header_compiler=no
21559fi
21560
21561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21562{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21563echo "${ECHO_T}$ac_header_compiler" >&6; }
21564
21565# Is the header present?
21566{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21567echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21568cat >conftest.$ac_ext <<_ACEOF
21569/* confdefs.h.  */
21570_ACEOF
21571cat confdefs.h >>conftest.$ac_ext
21572cat >>conftest.$ac_ext <<_ACEOF
21573/* end confdefs.h.  */
21574#include <$ac_header>
21575_ACEOF
21576if { (ac_try="$ac_cpp conftest.$ac_ext"
21577case "(($ac_try" in
21578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21579  *) ac_try_echo=$ac_try;;
21580esac
21581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21582  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21583  ac_status=$?
21584  grep -v '^ *+' conftest.er1 >conftest.err
21585  rm -f conftest.er1
21586  cat conftest.err >&5
21587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588  (exit $ac_status); } >/dev/null && {
21589	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21590	 test ! -s conftest.err
21591       }; then
21592  ac_header_preproc=yes
21593else
21594  echo "$as_me: failed program was:" >&5
21595sed 's/^/| /' conftest.$ac_ext >&5
21596
21597  ac_header_preproc=no
21598fi
21599
21600rm -f conftest.err conftest.$ac_ext
21601{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21602echo "${ECHO_T}$ac_header_preproc" >&6; }
21603
21604# So?  What about this header?
21605case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21606  yes:no: )
21607    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21608echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21609    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21610echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21611    ac_header_preproc=yes
21612    ;;
21613  no:yes:* )
21614    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21615echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21616    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21617echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21618    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21619echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21620    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21621echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21622    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21623echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21624    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21625echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21626    ( cat <<\_ASBOX
21627## ----------------------------------- ##
21628## Report this to support@land.ufrj.br ##
21629## ----------------------------------- ##
21630_ASBOX
21631     ) | sed "s/^/$as_me: WARNING:     /" >&2
21632    ;;
21633esac
21634{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21636if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21637  echo $ECHO_N "(cached) $ECHO_C" >&6
21638else
21639  eval "$as_ac_Header=\$ac_header_preproc"
21640fi
21641ac_res=`eval echo '${'$as_ac_Header'}'`
21642	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21643echo "${ECHO_T}$ac_res" >&6; }
21644
21645fi
21646if test `eval echo '${'$as_ac_Header'}'` = yes; then
21647  cat >>confdefs.h <<_ACEOF
21648#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21649_ACEOF
21650
21651fi
21652
21653done
21654
21655{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21656echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
21657if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21658  echo $ECHO_N "(cached) $ECHO_C" >&6
21659else
21660  if test "$cross_compiling" = yes; then
21661  ac_cv_func_malloc_0_nonnull=no
21662else
21663  cat >conftest.$ac_ext <<_ACEOF
21664/* confdefs.h.  */
21665_ACEOF
21666cat confdefs.h >>conftest.$ac_ext
21667cat >>conftest.$ac_ext <<_ACEOF
21668/* end confdefs.h.  */
21669#if defined STDC_HEADERS || defined HAVE_STDLIB_H
21670# include <stdlib.h>
21671#else
21672char *malloc ();
21673#endif
21674
21675int
21676main ()
21677{
21678return ! malloc (0);
21679  ;
21680  return 0;
21681}
21682_ACEOF
21683rm -f conftest$ac_exeext
21684if { (ac_try="$ac_link"
21685case "(($ac_try" in
21686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687  *) ac_try_echo=$ac_try;;
21688esac
21689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690  (eval "$ac_link") 2>&5
21691  ac_status=$?
21692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21694  { (case "(($ac_try" in
21695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21696  *) ac_try_echo=$ac_try;;
21697esac
21698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21699  (eval "$ac_try") 2>&5
21700  ac_status=$?
21701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702  (exit $ac_status); }; }; then
21703  ac_cv_func_malloc_0_nonnull=yes
21704else
21705  echo "$as_me: program exited with status $ac_status" >&5
21706echo "$as_me: failed program was:" >&5
21707sed 's/^/| /' conftest.$ac_ext >&5
21708
21709( exit $ac_status )
21710ac_cv_func_malloc_0_nonnull=no
21711fi
21712rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21713fi
21714
21715
21716fi
21717{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21718echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
21719if test $ac_cv_func_malloc_0_nonnull = yes; then
21720
21721cat >>confdefs.h <<\_ACEOF
21722#define HAVE_MALLOC 1
21723_ACEOF
21724
21725else
21726  cat >>confdefs.h <<\_ACEOF
21727#define HAVE_MALLOC 0
21728_ACEOF
21729
21730   case " $LIBOBJS " in
21731  *" malloc.$ac_objext "* ) ;;
21732  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21733 ;;
21734esac
21735
21736
21737cat >>confdefs.h <<\_ACEOF
21738#define malloc rpl_malloc
21739_ACEOF
21740
21741fi
21742
21743
21744
21745
21746for ac_header in stdlib.h
21747do
21748as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21749if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21750  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21752if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21753  echo $ECHO_N "(cached) $ECHO_C" >&6
21754fi
21755ac_res=`eval echo '${'$as_ac_Header'}'`
21756	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21757echo "${ECHO_T}$ac_res" >&6; }
21758else
21759  # Is the header compilable?
21760{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21761echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21762cat >conftest.$ac_ext <<_ACEOF
21763/* confdefs.h.  */
21764_ACEOF
21765cat confdefs.h >>conftest.$ac_ext
21766cat >>conftest.$ac_ext <<_ACEOF
21767/* end confdefs.h.  */
21768$ac_includes_default
21769#include <$ac_header>
21770_ACEOF
21771rm -f conftest.$ac_objext
21772if { (ac_try="$ac_compile"
21773case "(($ac_try" in
21774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21775  *) ac_try_echo=$ac_try;;
21776esac
21777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21778  (eval "$ac_compile") 2>conftest.er1
21779  ac_status=$?
21780  grep -v '^ *+' conftest.er1 >conftest.err
21781  rm -f conftest.er1
21782  cat conftest.err >&5
21783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784  (exit $ac_status); } && {
21785	 test -z "$ac_c_werror_flag" ||
21786	 test ! -s conftest.err
21787       } && test -s conftest.$ac_objext; then
21788  ac_header_compiler=yes
21789else
21790  echo "$as_me: failed program was:" >&5
21791sed 's/^/| /' conftest.$ac_ext >&5
21792
21793	ac_header_compiler=no
21794fi
21795
21796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21797{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21798echo "${ECHO_T}$ac_header_compiler" >&6; }
21799
21800# Is the header present?
21801{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21802echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21803cat >conftest.$ac_ext <<_ACEOF
21804/* confdefs.h.  */
21805_ACEOF
21806cat confdefs.h >>conftest.$ac_ext
21807cat >>conftest.$ac_ext <<_ACEOF
21808/* end confdefs.h.  */
21809#include <$ac_header>
21810_ACEOF
21811if { (ac_try="$ac_cpp conftest.$ac_ext"
21812case "(($ac_try" in
21813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21814  *) ac_try_echo=$ac_try;;
21815esac
21816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21817  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21818  ac_status=$?
21819  grep -v '^ *+' conftest.er1 >conftest.err
21820  rm -f conftest.er1
21821  cat conftest.err >&5
21822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823  (exit $ac_status); } >/dev/null && {
21824	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21825	 test ! -s conftest.err
21826       }; then
21827  ac_header_preproc=yes
21828else
21829  echo "$as_me: failed program was:" >&5
21830sed 's/^/| /' conftest.$ac_ext >&5
21831
21832  ac_header_preproc=no
21833fi
21834
21835rm -f conftest.err conftest.$ac_ext
21836{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21837echo "${ECHO_T}$ac_header_preproc" >&6; }
21838
21839# So?  What about this header?
21840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21841  yes:no: )
21842    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21843echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21844    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21845echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21846    ac_header_preproc=yes
21847    ;;
21848  no:yes:* )
21849    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21850echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21851    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21852echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21853    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21854echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21855    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21856echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21857    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21858echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21859    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21860echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21861    ( cat <<\_ASBOX
21862## ----------------------------------- ##
21863## Report this to support@land.ufrj.br ##
21864## ----------------------------------- ##
21865_ASBOX
21866     ) | sed "s/^/$as_me: WARNING:     /" >&2
21867    ;;
21868esac
21869{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21871if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21872  echo $ECHO_N "(cached) $ECHO_C" >&6
21873else
21874  eval "$as_ac_Header=\$ac_header_preproc"
21875fi
21876ac_res=`eval echo '${'$as_ac_Header'}'`
21877	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21878echo "${ECHO_T}$ac_res" >&6; }
21879
21880fi
21881if test `eval echo '${'$as_ac_Header'}'` = yes; then
21882  cat >>confdefs.h <<_ACEOF
21883#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21884_ACEOF
21885
21886fi
21887
21888done
21889
21890{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
21891echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
21892if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
21893  echo $ECHO_N "(cached) $ECHO_C" >&6
21894else
21895  if test "$cross_compiling" = yes; then
21896  ac_cv_func_realloc_0_nonnull=no
21897else
21898  cat >conftest.$ac_ext <<_ACEOF
21899/* confdefs.h.  */
21900_ACEOF
21901cat confdefs.h >>conftest.$ac_ext
21902cat >>conftest.$ac_ext <<_ACEOF
21903/* end confdefs.h.  */
21904#if defined STDC_HEADERS || defined HAVE_STDLIB_H
21905# include <stdlib.h>
21906#else
21907char *realloc ();
21908#endif
21909
21910int
21911main ()
21912{
21913return ! realloc (0, 0);
21914  ;
21915  return 0;
21916}
21917_ACEOF
21918rm -f conftest$ac_exeext
21919if { (ac_try="$ac_link"
21920case "(($ac_try" in
21921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922  *) ac_try_echo=$ac_try;;
21923esac
21924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925  (eval "$ac_link") 2>&5
21926  ac_status=$?
21927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21929  { (case "(($ac_try" in
21930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931  *) ac_try_echo=$ac_try;;
21932esac
21933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21934  (eval "$ac_try") 2>&5
21935  ac_status=$?
21936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937  (exit $ac_status); }; }; then
21938  ac_cv_func_realloc_0_nonnull=yes
21939else
21940  echo "$as_me: program exited with status $ac_status" >&5
21941echo "$as_me: failed program was:" >&5
21942sed 's/^/| /' conftest.$ac_ext >&5
21943
21944( exit $ac_status )
21945ac_cv_func_realloc_0_nonnull=no
21946fi
21947rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21948fi
21949
21950
21951fi
21952{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
21953echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
21954if test $ac_cv_func_realloc_0_nonnull = yes; then
21955
21956cat >>confdefs.h <<\_ACEOF
21957#define HAVE_REALLOC 1
21958_ACEOF
21959
21960else
21961  cat >>confdefs.h <<\_ACEOF
21962#define HAVE_REALLOC 0
21963_ACEOF
21964
21965   case " $LIBOBJS " in
21966  *" realloc.$ac_objext "* ) ;;
21967  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
21968 ;;
21969esac
21970
21971
21972cat >>confdefs.h <<\_ACEOF
21973#define realloc rpl_realloc
21974_ACEOF
21975
21976fi
21977
21978
21979
21980
21981
21982for ac_header in sys/select.h sys/socket.h
21983do
21984as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21985if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21986  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21989  echo $ECHO_N "(cached) $ECHO_C" >&6
21990fi
21991ac_res=`eval echo '${'$as_ac_Header'}'`
21992	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21993echo "${ECHO_T}$ac_res" >&6; }
21994else
21995  # Is the header compilable?
21996{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21997echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21998cat >conftest.$ac_ext <<_ACEOF
21999/* confdefs.h.  */
22000_ACEOF
22001cat confdefs.h >>conftest.$ac_ext
22002cat >>conftest.$ac_ext <<_ACEOF
22003/* end confdefs.h.  */
22004$ac_includes_default
22005#include <$ac_header>
22006_ACEOF
22007rm -f conftest.$ac_objext
22008if { (ac_try="$ac_compile"
22009case "(($ac_try" in
22010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011  *) ac_try_echo=$ac_try;;
22012esac
22013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22014  (eval "$ac_compile") 2>conftest.er1
22015  ac_status=$?
22016  grep -v '^ *+' conftest.er1 >conftest.err
22017  rm -f conftest.er1
22018  cat conftest.err >&5
22019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020  (exit $ac_status); } && {
22021	 test -z "$ac_c_werror_flag" ||
22022	 test ! -s conftest.err
22023       } && test -s conftest.$ac_objext; then
22024  ac_header_compiler=yes
22025else
22026  echo "$as_me: failed program was:" >&5
22027sed 's/^/| /' conftest.$ac_ext >&5
22028
22029	ac_header_compiler=no
22030fi
22031
22032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22033{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22034echo "${ECHO_T}$ac_header_compiler" >&6; }
22035
22036# Is the header present?
22037{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22038echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22039cat >conftest.$ac_ext <<_ACEOF
22040/* confdefs.h.  */
22041_ACEOF
22042cat confdefs.h >>conftest.$ac_ext
22043cat >>conftest.$ac_ext <<_ACEOF
22044/* end confdefs.h.  */
22045#include <$ac_header>
22046_ACEOF
22047if { (ac_try="$ac_cpp conftest.$ac_ext"
22048case "(($ac_try" in
22049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050  *) ac_try_echo=$ac_try;;
22051esac
22052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22054  ac_status=$?
22055  grep -v '^ *+' conftest.er1 >conftest.err
22056  rm -f conftest.er1
22057  cat conftest.err >&5
22058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059  (exit $ac_status); } >/dev/null && {
22060	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22061	 test ! -s conftest.err
22062       }; then
22063  ac_header_preproc=yes
22064else
22065  echo "$as_me: failed program was:" >&5
22066sed 's/^/| /' conftest.$ac_ext >&5
22067
22068  ac_header_preproc=no
22069fi
22070
22071rm -f conftest.err conftest.$ac_ext
22072{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22073echo "${ECHO_T}$ac_header_preproc" >&6; }
22074
22075# So?  What about this header?
22076case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22077  yes:no: )
22078    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22079echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22080    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22081echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22082    ac_header_preproc=yes
22083    ;;
22084  no:yes:* )
22085    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22086echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22087    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22088echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22089    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22090echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22091    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22092echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22093    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22094echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22095    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22096echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22097    ( cat <<\_ASBOX
22098## ----------------------------------- ##
22099## Report this to support@land.ufrj.br ##
22100## ----------------------------------- ##
22101_ASBOX
22102     ) | sed "s/^/$as_me: WARNING:     /" >&2
22103    ;;
22104esac
22105{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22107if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22108  echo $ECHO_N "(cached) $ECHO_C" >&6
22109else
22110  eval "$as_ac_Header=\$ac_header_preproc"
22111fi
22112ac_res=`eval echo '${'$as_ac_Header'}'`
22113	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22114echo "${ECHO_T}$ac_res" >&6; }
22115
22116fi
22117if test `eval echo '${'$as_ac_Header'}'` = yes; then
22118  cat >>confdefs.h <<_ACEOF
22119#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22120_ACEOF
22121
22122fi
22123
22124done
22125
22126{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
22127echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
22128if test "${ac_cv_func_select_args+set}" = set; then
22129  echo $ECHO_N "(cached) $ECHO_C" >&6
22130else
22131  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22132 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22133  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
22134   cat >conftest.$ac_ext <<_ACEOF
22135/* confdefs.h.  */
22136_ACEOF
22137cat confdefs.h >>conftest.$ac_ext
22138cat >>conftest.$ac_ext <<_ACEOF
22139/* end confdefs.h.  */
22140$ac_includes_default
22141#ifdef HAVE_SYS_SELECT_H
22142# include <sys/select.h>
22143#endif
22144#ifdef HAVE_SYS_SOCKET_H
22145# include <sys/socket.h>
22146#endif
22147
22148int
22149main ()
22150{
22151extern int select ($ac_arg1,
22152					    $ac_arg234, $ac_arg234, $ac_arg234,
22153					    $ac_arg5);
22154  ;
22155  return 0;
22156}
22157_ACEOF
22158rm -f conftest.$ac_objext
22159if { (ac_try="$ac_compile"
22160case "(($ac_try" in
22161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22162  *) ac_try_echo=$ac_try;;
22163esac
22164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22165  (eval "$ac_compile") 2>conftest.er1
22166  ac_status=$?
22167  grep -v '^ *+' conftest.er1 >conftest.err
22168  rm -f conftest.er1
22169  cat conftest.err >&5
22170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171  (exit $ac_status); } && {
22172	 test -z "$ac_c_werror_flag" ||
22173	 test ! -s conftest.err
22174       } && test -s conftest.$ac_objext; then
22175  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
22176else
22177  echo "$as_me: failed program was:" >&5
22178sed 's/^/| /' conftest.$ac_ext >&5
22179
22180
22181fi
22182
22183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22184  done
22185 done
22186done
22187# Provide a safe default value.
22188: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22189
22190fi
22191{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
22192echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
22193ac_save_IFS=$IFS; IFS=','
22194set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22195IFS=$ac_save_IFS
22196shift
22197
22198cat >>confdefs.h <<_ACEOF
22199#define SELECT_TYPE_ARG1 $1
22200_ACEOF
22201
22202
22203cat >>confdefs.h <<_ACEOF
22204#define SELECT_TYPE_ARG234 ($2)
22205_ACEOF
22206
22207
22208cat >>confdefs.h <<_ACEOF
22209#define SELECT_TYPE_ARG5 ($3)
22210_ACEOF
22211
22212rm -f conftest*
22213
22214{ echo "$as_me:$LINENO: checking for function prototypes" >&5
22215echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
22216if test "$ac_cv_prog_cc_c89" != no; then
22217  { echo "$as_me:$LINENO: result: yes" >&5
22218echo "${ECHO_T}yes" >&6; }
22219
22220cat >>confdefs.h <<\_ACEOF
22221#define PROTOTYPES 1
22222_ACEOF
22223
22224
22225cat >>confdefs.h <<\_ACEOF
22226#define __PROTOTYPES 1
22227_ACEOF
22228
22229else
22230  { echo "$as_me:$LINENO: result: no" >&5
22231echo "${ECHO_T}no" >&6; }
22232fi
22233
22234{ echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
22235echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
22236if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
22237  echo $ECHO_N "(cached) $ECHO_C" >&6
22238else
22239  ac_cv_func_setvbuf_reversed=no
22240   cat >conftest.$ac_ext <<_ACEOF
22241/* confdefs.h.  */
22242_ACEOF
22243cat confdefs.h >>conftest.$ac_ext
22244cat >>conftest.$ac_ext <<_ACEOF
22245/* end confdefs.h.  */
22246#include <stdio.h>
22247#	  ifdef PROTOTYPES
22248	   int (setvbuf) (FILE *, int, char *, size_t);
22249#	  endif
22250int
22251main ()
22252{
22253char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
22254  ;
22255  return 0;
22256}
22257_ACEOF
22258rm -f conftest.$ac_objext conftest$ac_exeext
22259if { (ac_try="$ac_link"
22260case "(($ac_try" in
22261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22262  *) ac_try_echo=$ac_try;;
22263esac
22264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22265  (eval "$ac_link") 2>conftest.er1
22266  ac_status=$?
22267  grep -v '^ *+' conftest.er1 >conftest.err
22268  rm -f conftest.er1
22269  cat conftest.err >&5
22270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271  (exit $ac_status); } && {
22272	 test -z "$ac_c_werror_flag" ||
22273	 test ! -s conftest.err
22274       } && test -s conftest$ac_exeext &&
22275       $as_test_x conftest$ac_exeext; then
22276  cat >conftest.$ac_ext <<_ACEOF
22277/* confdefs.h.  */
22278_ACEOF
22279cat confdefs.h >>conftest.$ac_ext
22280cat >>conftest.$ac_ext <<_ACEOF
22281/* end confdefs.h.  */
22282#include <stdio.h>
22283#	     ifdef PROTOTYPES
22284	      int (setvbuf) (FILE *, int, char *, size_t);
22285#	     endif
22286int
22287main ()
22288{
22289char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
22290  ;
22291  return 0;
22292}
22293_ACEOF
22294rm -f conftest.$ac_objext conftest$ac_exeext
22295if { (ac_try="$ac_link"
22296case "(($ac_try" in
22297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22298  *) ac_try_echo=$ac_try;;
22299esac
22300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22301  (eval "$ac_link") 2>conftest.er1
22302  ac_status=$?
22303  grep -v '^ *+' conftest.er1 >conftest.err
22304  rm -f conftest.er1
22305  cat conftest.err >&5
22306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307  (exit $ac_status); } && {
22308	 test -z "$ac_c_werror_flag" ||
22309	 test ! -s conftest.err
22310       } && test -s conftest$ac_exeext &&
22311       $as_test_x conftest$ac_exeext; then
22312  # It compiles and links either way, so it must not be declared
22313	 # with a prototype and most likely this is a K&R C compiler.
22314	 # Try running it.
22315	 if test "$cross_compiling" = yes; then
22316  : # Assume setvbuf is not reversed when cross-compiling.
22317else
22318  cat >conftest.$ac_ext <<_ACEOF
22319/* confdefs.h.  */
22320_ACEOF
22321cat confdefs.h >>conftest.$ac_ext
22322cat >>conftest.$ac_ext <<_ACEOF
22323/* end confdefs.h.  */
22324$ac_includes_default
22325int
22326main ()
22327{
22328/* This call has the arguments reversed.
22329		   A reversed system may check and see that the address of buf
22330		   is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
22331		char buf;
22332		if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
22333		  return 1;
22334		putchar ('\r');
22335		return 0; /* Non-reversed systems SEGV here.  */
22336  ;
22337  return 0;
22338}
22339_ACEOF
22340rm -f conftest$ac_exeext
22341if { (ac_try="$ac_link"
22342case "(($ac_try" in
22343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22344  *) ac_try_echo=$ac_try;;
22345esac
22346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22347  (eval "$ac_link") 2>&5
22348  ac_status=$?
22349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22351  { (case "(($ac_try" in
22352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22353  *) ac_try_echo=$ac_try;;
22354esac
22355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22356  (eval "$ac_try") 2>&5
22357  ac_status=$?
22358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359  (exit $ac_status); }; }; then
22360  ac_cv_func_setvbuf_reversed=yes
22361else
22362  echo "$as_me: program exited with status $ac_status" >&5
22363echo "$as_me: failed program was:" >&5
22364sed 's/^/| /' conftest.$ac_ext >&5
22365
22366fi
22367rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22368fi
22369
22370
22371	ac_cv_func_setvbuf_reversed=yes
22372else
22373  echo "$as_me: failed program was:" >&5
22374sed 's/^/| /' conftest.$ac_ext >&5
22375
22376
22377fi
22378
22379rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22380      conftest$ac_exeext conftest.$ac_ext
22381else
22382  echo "$as_me: failed program was:" >&5
22383sed 's/^/| /' conftest.$ac_ext >&5
22384
22385
22386fi
22387
22388rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22389      conftest$ac_exeext conftest.$ac_ext
22390fi
22391{ echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
22392echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
22393if test $ac_cv_func_setvbuf_reversed = yes; then
22394
22395cat >>confdefs.h <<\_ACEOF
22396#define SETVBUF_REVERSED 1
22397_ACEOF
22398
22399fi
22400
22401{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22402echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22403if test "${ac_cv_type_signal+set}" = set; then
22404  echo $ECHO_N "(cached) $ECHO_C" >&6
22405else
22406  cat >conftest.$ac_ext <<_ACEOF
22407/* confdefs.h.  */
22408_ACEOF
22409cat confdefs.h >>conftest.$ac_ext
22410cat >>conftest.$ac_ext <<_ACEOF
22411/* end confdefs.h.  */
22412#include <sys/types.h>
22413#include <signal.h>
22414
22415int
22416main ()
22417{
22418return *(signal (0, 0)) (0) == 1;
22419  ;
22420  return 0;
22421}
22422_ACEOF
22423rm -f conftest.$ac_objext
22424if { (ac_try="$ac_compile"
22425case "(($ac_try" in
22426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22427  *) ac_try_echo=$ac_try;;
22428esac
22429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22430  (eval "$ac_compile") 2>conftest.er1
22431  ac_status=$?
22432  grep -v '^ *+' conftest.er1 >conftest.err
22433  rm -f conftest.er1
22434  cat conftest.err >&5
22435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436  (exit $ac_status); } && {
22437	 test -z "$ac_c_werror_flag" ||
22438	 test ! -s conftest.err
22439       } && test -s conftest.$ac_objext; then
22440  ac_cv_type_signal=int
22441else
22442  echo "$as_me: failed program was:" >&5
22443sed 's/^/| /' conftest.$ac_ext >&5
22444
22445	ac_cv_type_signal=void
22446fi
22447
22448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22449fi
22450{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22451echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22452
22453cat >>confdefs.h <<_ACEOF
22454#define RETSIGTYPE $ac_cv_type_signal
22455_ACEOF
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474for ac_func in alarm bzero gethostbyname gethostname gettimeofday inet_ntoa memset pow putenv select setlocale socket strchr strdup strerror strstr
22475do
22476as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22477{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22478echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22479if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22480  echo $ECHO_N "(cached) $ECHO_C" >&6
22481else
22482  cat >conftest.$ac_ext <<_ACEOF
22483/* confdefs.h.  */
22484_ACEOF
22485cat confdefs.h >>conftest.$ac_ext
22486cat >>conftest.$ac_ext <<_ACEOF
22487/* end confdefs.h.  */
22488/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22489   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22490#define $ac_func innocuous_$ac_func
22491
22492/* System header to define __stub macros and hopefully few prototypes,
22493    which can conflict with char $ac_func (); below.
22494    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22495    <limits.h> exists even on freestanding compilers.  */
22496
22497#ifdef __STDC__
22498# include <limits.h>
22499#else
22500# include <assert.h>
22501#endif
22502
22503#undef $ac_func
22504
22505/* Override any GCC internal prototype to avoid an error.
22506   Use char because int might match the return type of a GCC
22507   builtin and then its argument prototype would still apply.  */
22508#ifdef __cplusplus
22509extern "C"
22510#endif
22511char $ac_func ();
22512/* The GNU C library defines this for functions which it implements
22513    to always fail with ENOSYS.  Some functions are actually named
22514    something starting with __ and the normal name is an alias.  */
22515#if defined __stub_$ac_func || defined __stub___$ac_func
22516choke me
22517#endif
22518
22519int
22520main ()
22521{
22522return $ac_func ();
22523  ;
22524  return 0;
22525}
22526_ACEOF
22527rm -f conftest.$ac_objext conftest$ac_exeext
22528if { (ac_try="$ac_link"
22529case "(($ac_try" in
22530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22531  *) ac_try_echo=$ac_try;;
22532esac
22533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22534  (eval "$ac_link") 2>conftest.er1
22535  ac_status=$?
22536  grep -v '^ *+' conftest.er1 >conftest.err
22537  rm -f conftest.er1
22538  cat conftest.err >&5
22539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540  (exit $ac_status); } && {
22541	 test -z "$ac_c_werror_flag" ||
22542	 test ! -s conftest.err
22543       } && test -s conftest$ac_exeext &&
22544       $as_test_x conftest$ac_exeext; then
22545  eval "$as_ac_var=yes"
22546else
22547  echo "$as_me: failed program was:" >&5
22548sed 's/^/| /' conftest.$ac_ext >&5
22549
22550	eval "$as_ac_var=no"
22551fi
22552
22553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22554      conftest$ac_exeext conftest.$ac_ext
22555fi
22556ac_res=`eval echo '${'$as_ac_var'}'`
22557	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22558echo "${ECHO_T}$ac_res" >&6; }
22559if test `eval echo '${'$as_ac_var'}'` = yes; then
22560  cat >>confdefs.h <<_ACEOF
22561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22562_ACEOF
22563
22564fi
22565done
22566
22567
22568ac_config_files="$ac_config_files Makefile src/Makefile mcastproxy/Makefile rmchat/Makefile"
22569
22570cat >confcache <<\_ACEOF
22571# This file is a shell script that caches the results of configure
22572# tests run on this system so they can be shared between configure
22573# scripts and configure runs, see configure's option --config-cache.
22574# It is not useful on other systems.  If it contains results you don't
22575# want to keep, you may remove or edit it.
22576#
22577# config.status only pays attention to the cache file if you give it
22578# the --recheck option to rerun configure.
22579#
22580# `ac_cv_env_foo' variables (set or unset) will be overridden when
22581# loading this file, other *unset* `ac_cv_foo' will be assigned the
22582# following values.
22583
22584_ACEOF
22585
22586# The following way of writing the cache mishandles newlines in values,
22587# but we know of no workaround that is simple, portable, and efficient.
22588# So, we kill variables containing newlines.
22589# Ultrix sh set writes to stderr and can't be redirected directly,
22590# and sets the high bit in the cache file unless we assign to the vars.
22591(
22592  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22593    eval ac_val=\$$ac_var
22594    case $ac_val in #(
22595    *${as_nl}*)
22596      case $ac_var in #(
22597      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22598echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22599      esac
22600      case $ac_var in #(
22601      _ | IFS | as_nl) ;; #(
22602      *) $as_unset $ac_var ;;
22603      esac ;;
22604    esac
22605  done
22606
22607  (set) 2>&1 |
22608    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22609    *${as_nl}ac_space=\ *)
22610      # `set' does not quote correctly, so add quotes (double-quote
22611      # substitution turns \\\\ into \\, and sed turns \\ into \).
22612      sed -n \
22613	"s/'/'\\\\''/g;
22614	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22615      ;; #(
22616    *)
22617      # `set' quotes correctly as required by POSIX, so do not add quotes.
22618      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22619      ;;
22620    esac |
22621    sort
22622) |
22623  sed '
22624     /^ac_cv_env_/b end
22625     t clear
22626     :clear
22627     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22628     t end
22629     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22630     :end' >>confcache
22631if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22632  if test -w "$cache_file"; then
22633    test "x$cache_file" != "x/dev/null" &&
22634      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22635echo "$as_me: updating cache $cache_file" >&6;}
22636    cat confcache >$cache_file
22637  else
22638    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22639echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22640  fi
22641fi
22642rm -f confcache
22643
22644test "x$prefix" = xNONE && prefix=$ac_default_prefix
22645# Let make expand exec_prefix.
22646test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22647
22648DEFS=-DHAVE_CONFIG_H
22649
22650ac_libobjs=
22651ac_ltlibobjs=
22652for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22653  # 1. Remove the extension, and $U if already installed.
22654  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22655  ac_i=`echo "$ac_i" | sed "$ac_script"`
22656  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22657  #    will be set to the directory where LIBOBJS objects are built.
22658  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22659  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22660done
22661LIBOBJS=$ac_libobjs
22662
22663LTLIBOBJS=$ac_ltlibobjs
22664
22665
22666if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22667  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22668Usually this means the macro was only invoked conditionally." >&5
22669echo "$as_me: error: conditional \"AMDEP\" was never defined.
22670Usually this means the macro was only invoked conditionally." >&2;}
22671   { (exit 1); exit 1; }; }
22672fi
22673if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22674  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22675Usually this means the macro was only invoked conditionally." >&5
22676echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22677Usually this means the macro was only invoked conditionally." >&2;}
22678   { (exit 1); exit 1; }; }
22679fi
22680if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22681  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22682Usually this means the macro was only invoked conditionally." >&5
22683echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22684Usually this means the macro was only invoked conditionally." >&2;}
22685   { (exit 1); exit 1; }; }
22686fi
22687
22688: ${CONFIG_STATUS=./config.status}
22689ac_clean_files_save=$ac_clean_files
22690ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22691{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22692echo "$as_me: creating $CONFIG_STATUS" >&6;}
22693cat >$CONFIG_STATUS <<_ACEOF
22694#! $SHELL
22695# Generated by $as_me.
22696# Run this file to recreate the current configuration.
22697# Compiler output produced by configure, useful for debugging
22698# configure, is in config.log if it exists.
22699
22700debug=false
22701ac_cs_recheck=false
22702ac_cs_silent=false
22703SHELL=\${CONFIG_SHELL-$SHELL}
22704_ACEOF
22705
22706cat >>$CONFIG_STATUS <<\_ACEOF
22707## --------------------- ##
22708## M4sh Initialization.  ##
22709## --------------------- ##
22710
22711# Be more Bourne compatible
22712DUALCASE=1; export DUALCASE # for MKS sh
22713if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22714  emulate sh
22715  NULLCMD=:
22716  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22717  # is contrary to our usage.  Disable this feature.
22718  alias -g '${1+"$@"}'='"$@"'
22719  setopt NO_GLOB_SUBST
22720else
22721  case `(set -o) 2>/dev/null` in
22722  *posix*) set -o posix ;;
22723esac
22724
22725fi
22726
22727
22728
22729
22730# PATH needs CR
22731# Avoid depending upon Character Ranges.
22732as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22733as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22734as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22735as_cr_digits='0123456789'
22736as_cr_alnum=$as_cr_Letters$as_cr_digits
22737
22738# The user is always right.
22739if test "${PATH_SEPARATOR+set}" != set; then
22740  echo "#! /bin/sh" >conf$$.sh
22741  echo  "exit 0"   >>conf$$.sh
22742  chmod +x conf$$.sh
22743  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22744    PATH_SEPARATOR=';'
22745  else
22746    PATH_SEPARATOR=:
22747  fi
22748  rm -f conf$$.sh
22749fi
22750
22751# Support unset when possible.
22752if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22753  as_unset=unset
22754else
22755  as_unset=false
22756fi
22757
22758
22759# IFS
22760# We need space, tab and new line, in precisely that order.  Quoting is
22761# there to prevent editors from complaining about space-tab.
22762# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22763# splitting by setting IFS to empty value.)
22764as_nl='
22765'
22766IFS=" ""	$as_nl"
22767
22768# Find who we are.  Look in the path if we contain no directory separator.
22769case $0 in
22770  *[\\/]* ) as_myself=$0 ;;
22771  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22772for as_dir in $PATH
22773do
22774  IFS=$as_save_IFS
22775  test -z "$as_dir" && as_dir=.
22776  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22777done
22778IFS=$as_save_IFS
22779
22780     ;;
22781esac
22782# We did not find ourselves, most probably we were run as `sh COMMAND'
22783# in which case we are not to be found in the path.
22784if test "x$as_myself" = x; then
22785  as_myself=$0
22786fi
22787if test ! -f "$as_myself"; then
22788  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22789  { (exit 1); exit 1; }
22790fi
22791
22792# Work around bugs in pre-3.0 UWIN ksh.
22793for as_var in ENV MAIL MAILPATH
22794do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22795done
22796PS1='$ '
22797PS2='> '
22798PS4='+ '
22799
22800# NLS nuisances.
22801for as_var in \
22802  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22803  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22804  LC_TELEPHONE LC_TIME
22805do
22806  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22807    eval $as_var=C; export $as_var
22808  else
22809    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22810  fi
22811done
22812
22813# Required to use basename.
22814if expr a : '\(a\)' >/dev/null 2>&1 &&
22815   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22816  as_expr=expr
22817else
22818  as_expr=false
22819fi
22820
22821if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22822  as_basename=basename
22823else
22824  as_basename=false
22825fi
22826
22827
22828# Name of the executable.
22829as_me=`$as_basename -- "$0" ||
22830$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22831	 X"$0" : 'X\(//\)$' \| \
22832	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22833echo X/"$0" |
22834    sed '/^.*\/\([^/][^/]*\)\/*$/{
22835	    s//\1/
22836	    q
22837	  }
22838	  /^X\/\(\/\/\)$/{
22839	    s//\1/
22840	    q
22841	  }
22842	  /^X\/\(\/\).*/{
22843	    s//\1/
22844	    q
22845	  }
22846	  s/.*/./; q'`
22847
22848# CDPATH.
22849$as_unset CDPATH
22850
22851
22852
22853  as_lineno_1=$LINENO
22854  as_lineno_2=$LINENO
22855  test "x$as_lineno_1" != "x$as_lineno_2" &&
22856  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22857
22858  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22859  # uniformly replaced by the line number.  The first 'sed' inserts a
22860  # line-number line after each line using $LINENO; the second 'sed'
22861  # does the real work.  The second script uses 'N' to pair each
22862  # line-number line with the line containing $LINENO, and appends
22863  # trailing '-' during substitution so that $LINENO is not a special
22864  # case at line end.
22865  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22866  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22867  # E. McMahon (1931-1989) for sed's syntax.  :-)
22868  sed -n '
22869    p
22870    /[$]LINENO/=
22871  ' <$as_myself |
22872    sed '
22873      s/[$]LINENO.*/&-/
22874      t lineno
22875      b
22876      :lineno
22877      N
22878      :loop
22879      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22880      t loop
22881      s/-\n.*//
22882    ' >$as_me.lineno &&
22883  chmod +x "$as_me.lineno" ||
22884    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22885   { (exit 1); exit 1; }; }
22886
22887  # Don't try to exec as it changes $[0], causing all sort of problems
22888  # (the dirname of $[0] is not the place where we might find the
22889  # original and so on.  Autoconf is especially sensitive to this).
22890  . "./$as_me.lineno"
22891  # Exit status is that of the last command.
22892  exit
22893}
22894
22895
22896if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22897  as_dirname=dirname
22898else
22899  as_dirname=false
22900fi
22901
22902ECHO_C= ECHO_N= ECHO_T=
22903case `echo -n x` in
22904-n*)
22905  case `echo 'x\c'` in
22906  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22907  *)   ECHO_C='\c';;
22908  esac;;
22909*)
22910  ECHO_N='-n';;
22911esac
22912
22913if expr a : '\(a\)' >/dev/null 2>&1 &&
22914   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22915  as_expr=expr
22916else
22917  as_expr=false
22918fi
22919
22920rm -f conf$$ conf$$.exe conf$$.file
22921if test -d conf$$.dir; then
22922  rm -f conf$$.dir/conf$$.file
22923else
22924  rm -f conf$$.dir
22925  mkdir conf$$.dir
22926fi
22927echo >conf$$.file
22928if ln -s conf$$.file conf$$ 2>/dev/null; then
22929  as_ln_s='ln -s'
22930  # ... but there are two gotchas:
22931  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22932  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22933  # In both cases, we have to default to `cp -p'.
22934  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22935    as_ln_s='cp -p'
22936elif ln conf$$.file conf$$ 2>/dev/null; then
22937  as_ln_s=ln
22938else
22939  as_ln_s='cp -p'
22940fi
22941rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22942rmdir conf$$.dir 2>/dev/null
22943
22944if mkdir -p . 2>/dev/null; then
22945  as_mkdir_p=:
22946else
22947  test -d ./-p && rmdir ./-p
22948  as_mkdir_p=false
22949fi
22950
22951if test -x / >/dev/null 2>&1; then
22952  as_test_x='test -x'
22953else
22954  if ls -dL / >/dev/null 2>&1; then
22955    as_ls_L_option=L
22956  else
22957    as_ls_L_option=
22958  fi
22959  as_test_x='
22960    eval sh -c '\''
22961      if test -d "$1"; then
22962        test -d "$1/.";
22963      else
22964	case $1 in
22965        -*)set "./$1";;
22966	esac;
22967	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22968	???[sx]*):;;*)false;;esac;fi
22969    '\'' sh
22970  '
22971fi
22972as_executable_p=$as_test_x
22973
22974# Sed expression to map a string onto a valid CPP name.
22975as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22976
22977# Sed expression to map a string onto a valid variable name.
22978as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22979
22980
22981exec 6>&1
22982
22983# Save the log message, to keep $[0] and so on meaningful, and to
22984# report actual input values of CONFIG_FILES etc. instead of their
22985# values after options handling.
22986ac_log="
22987This file was extended by rmcast $as_me 2.0.0, which was
22988generated by GNU Autoconf 2.61.  Invocation command line was
22989
22990  CONFIG_FILES    = $CONFIG_FILES
22991  CONFIG_HEADERS  = $CONFIG_HEADERS
22992  CONFIG_LINKS    = $CONFIG_LINKS
22993  CONFIG_COMMANDS = $CONFIG_COMMANDS
22994  $ $0 $@
22995
22996on `(hostname || uname -n) 2>/dev/null | sed 1q`
22997"
22998
22999_ACEOF
23000
23001cat >>$CONFIG_STATUS <<_ACEOF
23002# Files that config.status was made for.
23003config_files="$ac_config_files"
23004config_headers="$ac_config_headers"
23005config_commands="$ac_config_commands"
23006
23007_ACEOF
23008
23009cat >>$CONFIG_STATUS <<\_ACEOF
23010ac_cs_usage="\
23011\`$as_me' instantiates files from templates according to the
23012current configuration.
23013
23014Usage: $0 [OPTIONS] [FILE]...
23015
23016  -h, --help       print this help, then exit
23017  -V, --version    print version number and configuration settings, then exit
23018  -q, --quiet      do not print progress messages
23019  -d, --debug      don't remove temporary files
23020      --recheck    update $as_me by reconfiguring in the same conditions
23021  --file=FILE[:TEMPLATE]
23022		   instantiate the configuration file FILE
23023  --header=FILE[:TEMPLATE]
23024		   instantiate the configuration header FILE
23025
23026Configuration files:
23027$config_files
23028
23029Configuration headers:
23030$config_headers
23031
23032Configuration commands:
23033$config_commands
23034
23035Report bugs to <bug-autoconf@gnu.org>."
23036
23037_ACEOF
23038cat >>$CONFIG_STATUS <<_ACEOF
23039ac_cs_version="\\
23040rmcast config.status 2.0.0
23041configured by $0, generated by GNU Autoconf 2.61,
23042  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23043
23044Copyright (C) 2006 Free Software Foundation, Inc.
23045This config.status script is free software; the Free Software Foundation
23046gives unlimited permission to copy, distribute and modify it."
23047
23048ac_pwd='$ac_pwd'
23049srcdir='$srcdir'
23050INSTALL='$INSTALL'
23051_ACEOF
23052
23053cat >>$CONFIG_STATUS <<\_ACEOF
23054# If no file are specified by the user, then we need to provide default
23055# value.  By we need to know if files were specified by the user.
23056ac_need_defaults=:
23057while test $# != 0
23058do
23059  case $1 in
23060  --*=*)
23061    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23062    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23063    ac_shift=:
23064    ;;
23065  *)
23066    ac_option=$1
23067    ac_optarg=$2
23068    ac_shift=shift
23069    ;;
23070  esac
23071
23072  case $ac_option in
23073  # Handling of the options.
23074  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23075    ac_cs_recheck=: ;;
23076  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23077    echo "$ac_cs_version"; exit ;;
23078  --debug | --debu | --deb | --de | --d | -d )
23079    debug=: ;;
23080  --file | --fil | --fi | --f )
23081    $ac_shift
23082    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23083    ac_need_defaults=false;;
23084  --header | --heade | --head | --hea )
23085    $ac_shift
23086    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23087    ac_need_defaults=false;;
23088  --he | --h)
23089    # Conflict between --help and --header
23090    { echo "$as_me: error: ambiguous option: $1
23091Try \`$0 --help' for more information." >&2
23092   { (exit 1); exit 1; }; };;
23093  --help | --hel | -h )
23094    echo "$ac_cs_usage"; exit ;;
23095  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23096  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23097    ac_cs_silent=: ;;
23098
23099  # This is an error.
23100  -*) { echo "$as_me: error: unrecognized option: $1
23101Try \`$0 --help' for more information." >&2
23102   { (exit 1); exit 1; }; } ;;
23103
23104  *) ac_config_targets="$ac_config_targets $1"
23105     ac_need_defaults=false ;;
23106
23107  esac
23108  shift
23109done
23110
23111ac_configure_extra_args=
23112
23113if $ac_cs_silent; then
23114  exec 6>/dev/null
23115  ac_configure_extra_args="$ac_configure_extra_args --silent"
23116fi
23117
23118_ACEOF
23119cat >>$CONFIG_STATUS <<_ACEOF
23120if \$ac_cs_recheck; then
23121  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23122  CONFIG_SHELL=$SHELL
23123  export CONFIG_SHELL
23124  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23125fi
23126
23127_ACEOF
23128cat >>$CONFIG_STATUS <<\_ACEOF
23129exec 5>>config.log
23130{
23131  echo
23132  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23133## Running $as_me. ##
23134_ASBOX
23135  echo "$ac_log"
23136} >&5
23137
23138_ACEOF
23139cat >>$CONFIG_STATUS <<_ACEOF
23140#
23141# INIT-COMMANDS
23142#
23143AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23144
23145_ACEOF
23146
23147cat >>$CONFIG_STATUS <<\_ACEOF
23148
23149# Handling of arguments.
23150for ac_config_target in $ac_config_targets
23151do
23152  case $ac_config_target in
23153    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23154    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23155    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23156    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23157    "mcastproxy/Makefile") CONFIG_FILES="$CONFIG_FILES mcastproxy/Makefile" ;;
23158    "rmchat/Makefile") CONFIG_FILES="$CONFIG_FILES rmchat/Makefile" ;;
23159
23160  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23161echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23162   { (exit 1); exit 1; }; };;
23163  esac
23164done
23165
23166
23167# If the user did not use the arguments to specify the items to instantiate,
23168# then the envvar interface is used.  Set only those that are not.
23169# We use the long form for the default assignment because of an extremely
23170# bizarre bug on SunOS 4.1.3.
23171if $ac_need_defaults; then
23172  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23173  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23174  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23175fi
23176
23177# Have a temporary directory for convenience.  Make it in the build tree
23178# simply because there is no reason against having it here, and in addition,
23179# creating and moving files from /tmp can sometimes cause problems.
23180# Hook for its removal unless debugging.
23181# Note that there is a small window in which the directory will not be cleaned:
23182# after its creation but before its name has been assigned to `$tmp'.
23183$debug ||
23184{
23185  tmp=
23186  trap 'exit_status=$?
23187  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23188' 0
23189  trap '{ (exit 1); exit 1; }' 1 2 13 15
23190}
23191# Create a (secure) tmp directory for tmp files.
23192
23193{
23194  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23195  test -n "$tmp" && test -d "$tmp"
23196}  ||
23197{
23198  tmp=./conf$$-$RANDOM
23199  (umask 077 && mkdir "$tmp")
23200} ||
23201{
23202   echo "$me: cannot create a temporary directory in ." >&2
23203   { (exit 1); exit 1; }
23204}
23205
23206#
23207# Set up the sed scripts for CONFIG_FILES section.
23208#
23209
23210# No need to generate the scripts if there are no CONFIG_FILES.
23211# This happens for instance when ./config.status config.h
23212if test -n "$CONFIG_FILES"; then
23213
23214_ACEOF
23215
23216
23217
23218ac_delim='%!_!# '
23219for ac_last_try in false false false false false :; do
23220  cat >conf$$subs.sed <<_ACEOF
23221SHELL!$SHELL$ac_delim
23222PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23223PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23224PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23225PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23226PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23227PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23228exec_prefix!$exec_prefix$ac_delim
23229prefix!$prefix$ac_delim
23230program_transform_name!$program_transform_name$ac_delim
23231bindir!$bindir$ac_delim
23232sbindir!$sbindir$ac_delim
23233libexecdir!$libexecdir$ac_delim
23234datarootdir!$datarootdir$ac_delim
23235datadir!$datadir$ac_delim
23236sysconfdir!$sysconfdir$ac_delim
23237sharedstatedir!$sharedstatedir$ac_delim
23238localstatedir!$localstatedir$ac_delim
23239includedir!$includedir$ac_delim
23240oldincludedir!$oldincludedir$ac_delim
23241docdir!$docdir$ac_delim
23242infodir!$infodir$ac_delim
23243htmldir!$htmldir$ac_delim
23244dvidir!$dvidir$ac_delim
23245pdfdir!$pdfdir$ac_delim
23246psdir!$psdir$ac_delim
23247libdir!$libdir$ac_delim
23248localedir!$localedir$ac_delim
23249mandir!$mandir$ac_delim
23250DEFS!$DEFS$ac_delim
23251ECHO_C!$ECHO_C$ac_delim
23252ECHO_N!$ECHO_N$ac_delim
23253ECHO_T!$ECHO_T$ac_delim
23254LIBS!$LIBS$ac_delim
23255build_alias!$build_alias$ac_delim
23256host_alias!$host_alias$ac_delim
23257target_alias!$target_alias$ac_delim
23258INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23259INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23260INSTALL_DATA!$INSTALL_DATA$ac_delim
23261CYGPATH_W!$CYGPATH_W$ac_delim
23262PACKAGE!$PACKAGE$ac_delim
23263VERSION!$VERSION$ac_delim
23264ACLOCAL!$ACLOCAL$ac_delim
23265AUTOCONF!$AUTOCONF$ac_delim
23266AUTOMAKE!$AUTOMAKE$ac_delim
23267AUTOHEADER!$AUTOHEADER$ac_delim
23268MAKEINFO!$MAKEINFO$ac_delim
23269install_sh!$install_sh$ac_delim
23270STRIP!$STRIP$ac_delim
23271INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23272mkdir_p!$mkdir_p$ac_delim
23273AWK!$AWK$ac_delim
23274SET_MAKE!$SET_MAKE$ac_delim
23275am__leading_dot!$am__leading_dot$ac_delim
23276AMTAR!$AMTAR$ac_delim
23277am__tar!$am__tar$ac_delim
23278am__untar!$am__untar$ac_delim
23279CC!$CC$ac_delim
23280CFLAGS!$CFLAGS$ac_delim
23281LDFLAGS!$LDFLAGS$ac_delim
23282CPPFLAGS!$CPPFLAGS$ac_delim
23283ac_ct_CC!$ac_ct_CC$ac_delim
23284EXEEXT!$EXEEXT$ac_delim
23285OBJEXT!$OBJEXT$ac_delim
23286DEPDIR!$DEPDIR$ac_delim
23287am__include!$am__include$ac_delim
23288am__quote!$am__quote$ac_delim
23289AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23290AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23291AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23292CCDEPMODE!$CCDEPMODE$ac_delim
23293am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23294am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23295build!$build$ac_delim
23296build_cpu!$build_cpu$ac_delim
23297build_vendor!$build_vendor$ac_delim
23298build_os!$build_os$ac_delim
23299host!$host$ac_delim
23300host_cpu!$host_cpu$ac_delim
23301host_vendor!$host_vendor$ac_delim
23302host_os!$host_os$ac_delim
23303SED!$SED$ac_delim
23304GREP!$GREP$ac_delim
23305EGREP!$EGREP$ac_delim
23306LN_S!$LN_S$ac_delim
23307ECHO!$ECHO$ac_delim
23308AR!$AR$ac_delim
23309RANLIB!$RANLIB$ac_delim
23310DSYMUTIL!$DSYMUTIL$ac_delim
23311NMEDIT!$NMEDIT$ac_delim
23312CPP!$CPP$ac_delim
23313CXX!$CXX$ac_delim
23314CXXFLAGS!$CXXFLAGS$ac_delim
23315ac_ct_CXX!$ac_ct_CXX$ac_delim
23316CXXDEPMODE!$CXXDEPMODE$ac_delim
23317am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23318_ACEOF
23319
23320  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23321    break
23322  elif $ac_last_try; then
23323    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23324echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23325   { (exit 1); exit 1; }; }
23326  else
23327    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23328  fi
23329done
23330
23331ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23332if test -n "$ac_eof"; then
23333  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23334  ac_eof=`expr $ac_eof + 1`
23335fi
23336
23337cat >>$CONFIG_STATUS <<_ACEOF
23338cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23339/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23340_ACEOF
23341sed '
23342s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23343s/^/s,@/; s/!/@,|#_!!_#|/
23344:n
23345t n
23346s/'"$ac_delim"'$/,g/; t
23347s/$/\\/; p
23348N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23349' >>$CONFIG_STATUS <conf$$subs.sed
23350rm -f conf$$subs.sed
23351cat >>$CONFIG_STATUS <<_ACEOF
23352CEOF$ac_eof
23353_ACEOF
23354
23355
23356ac_delim='%!_!# '
23357for ac_last_try in false false false false false :; do
23358  cat >conf$$subs.sed <<_ACEOF
23359am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23360CXXCPP!$CXXCPP$ac_delim
23361F77!$F77$ac_delim
23362FFLAGS!$FFLAGS$ac_delim
23363ac_ct_F77!$ac_ct_F77$ac_delim
23364LIBTOOL!$LIBTOOL$ac_delim
23365LIBOBJS!$LIBOBJS$ac_delim
23366LTLIBOBJS!$LTLIBOBJS$ac_delim
23367_ACEOF
23368
23369  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23370    break
23371  elif $ac_last_try; then
23372    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23373echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23374   { (exit 1); exit 1; }; }
23375  else
23376    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23377  fi
23378done
23379
23380ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23381if test -n "$ac_eof"; then
23382  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23383  ac_eof=`expr $ac_eof + 1`
23384fi
23385
23386cat >>$CONFIG_STATUS <<_ACEOF
23387cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23388/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23389_ACEOF
23390sed '
23391s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23392s/^/s,@/; s/!/@,|#_!!_#|/
23393:n
23394t n
23395s/'"$ac_delim"'$/,g/; t
23396s/$/\\/; p
23397N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23398' >>$CONFIG_STATUS <conf$$subs.sed
23399rm -f conf$$subs.sed
23400cat >>$CONFIG_STATUS <<_ACEOF
23401:end
23402s/|#_!!_#|//g
23403CEOF$ac_eof
23404_ACEOF
23405
23406
23407# VPATH may cause trouble with some makes, so we remove $(srcdir),
23408# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23409# trailing colons and then remove the whole line if VPATH becomes empty
23410# (actually we leave an empty line to preserve line numbers).
23411if test "x$srcdir" = x.; then
23412  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23413s/:*\$(srcdir):*/:/
23414s/:*\${srcdir}:*/:/
23415s/:*@srcdir@:*/:/
23416s/^\([^=]*=[	 ]*\):*/\1/
23417s/:*$//
23418s/^[^=]*=[	 ]*$//
23419}'
23420fi
23421
23422cat >>$CONFIG_STATUS <<\_ACEOF
23423fi # test -n "$CONFIG_FILES"
23424
23425
23426for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23427do
23428  case $ac_tag in
23429  :[FHLC]) ac_mode=$ac_tag; continue;;
23430  esac
23431  case $ac_mode$ac_tag in
23432  :[FHL]*:*);;
23433  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23434echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23435   { (exit 1); exit 1; }; };;
23436  :[FH]-) ac_tag=-:-;;
23437  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23438  esac
23439  ac_save_IFS=$IFS
23440  IFS=:
23441  set x $ac_tag
23442  IFS=$ac_save_IFS
23443  shift
23444  ac_file=$1
23445  shift
23446
23447  case $ac_mode in
23448  :L) ac_source=$1;;
23449  :[FH])
23450    ac_file_inputs=
23451    for ac_f
23452    do
23453      case $ac_f in
23454      -) ac_f="$tmp/stdin";;
23455      *) # Look for the file first in the build tree, then in the source tree
23456	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23457	 # because $ac_f cannot contain `:'.
23458	 test -f "$ac_f" ||
23459	   case $ac_f in
23460	   [\\/$]*) false;;
23461	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23462	   esac ||
23463	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23464echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23465   { (exit 1); exit 1; }; };;
23466      esac
23467      ac_file_inputs="$ac_file_inputs $ac_f"
23468    done
23469
23470    # Let's still pretend it is `configure' which instantiates (i.e., don't
23471    # use $as_me), people would be surprised to read:
23472    #    /* config.h.  Generated by config.status.  */
23473    configure_input="Generated from "`IFS=:
23474	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23475    if test x"$ac_file" != x-; then
23476      configure_input="$ac_file.  $configure_input"
23477      { echo "$as_me:$LINENO: creating $ac_file" >&5
23478echo "$as_me: creating $ac_file" >&6;}
23479    fi
23480
23481    case $ac_tag in
23482    *:-:* | *:-) cat >"$tmp/stdin";;
23483    esac
23484    ;;
23485  esac
23486
23487  ac_dir=`$as_dirname -- "$ac_file" ||
23488$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23489	 X"$ac_file" : 'X\(//\)[^/]' \| \
23490	 X"$ac_file" : 'X\(//\)$' \| \
23491	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23492echo X"$ac_file" |
23493    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23494	    s//\1/
23495	    q
23496	  }
23497	  /^X\(\/\/\)[^/].*/{
23498	    s//\1/
23499	    q
23500	  }
23501	  /^X\(\/\/\)$/{
23502	    s//\1/
23503	    q
23504	  }
23505	  /^X\(\/\).*/{
23506	    s//\1/
23507	    q
23508	  }
23509	  s/.*/./; q'`
23510  { as_dir="$ac_dir"
23511  case $as_dir in #(
23512  -*) as_dir=./$as_dir;;
23513  esac
23514  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23515    as_dirs=
23516    while :; do
23517      case $as_dir in #(
23518      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23519      *) as_qdir=$as_dir;;
23520      esac
23521      as_dirs="'$as_qdir' $as_dirs"
23522      as_dir=`$as_dirname -- "$as_dir" ||
23523$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23524	 X"$as_dir" : 'X\(//\)[^/]' \| \
23525	 X"$as_dir" : 'X\(//\)$' \| \
23526	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23527echo X"$as_dir" |
23528    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23529	    s//\1/
23530	    q
23531	  }
23532	  /^X\(\/\/\)[^/].*/{
23533	    s//\1/
23534	    q
23535	  }
23536	  /^X\(\/\/\)$/{
23537	    s//\1/
23538	    q
23539	  }
23540	  /^X\(\/\).*/{
23541	    s//\1/
23542	    q
23543	  }
23544	  s/.*/./; q'`
23545      test -d "$as_dir" && break
23546    done
23547    test -z "$as_dirs" || eval "mkdir $as_dirs"
23548  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23549echo "$as_me: error: cannot create directory $as_dir" >&2;}
23550   { (exit 1); exit 1; }; }; }
23551  ac_builddir=.
23552
23553case "$ac_dir" in
23554.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23555*)
23556  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23557  # A ".." for each directory in $ac_dir_suffix.
23558  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23559  case $ac_top_builddir_sub in
23560  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23561  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23562  esac ;;
23563esac
23564ac_abs_top_builddir=$ac_pwd
23565ac_abs_builddir=$ac_pwd$ac_dir_suffix
23566# for backward compatibility:
23567ac_top_builddir=$ac_top_build_prefix
23568
23569case $srcdir in
23570  .)  # We are building in place.
23571    ac_srcdir=.
23572    ac_top_srcdir=$ac_top_builddir_sub
23573    ac_abs_top_srcdir=$ac_pwd ;;
23574  [\\/]* | ?:[\\/]* )  # Absolute name.
23575    ac_srcdir=$srcdir$ac_dir_suffix;
23576    ac_top_srcdir=$srcdir
23577    ac_abs_top_srcdir=$srcdir ;;
23578  *) # Relative name.
23579    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23580    ac_top_srcdir=$ac_top_build_prefix$srcdir
23581    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23582esac
23583ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23584
23585
23586  case $ac_mode in
23587  :F)
23588  #
23589  # CONFIG_FILE
23590  #
23591
23592  case $INSTALL in
23593  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23594  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23595  esac
23596_ACEOF
23597
23598cat >>$CONFIG_STATUS <<\_ACEOF
23599# If the template does not know about datarootdir, expand it.
23600# FIXME: This hack should be removed a few years after 2.60.
23601ac_datarootdir_hack=; ac_datarootdir_seen=
23602
23603case `sed -n '/datarootdir/ {
23604  p
23605  q
23606}
23607/@datadir@/p
23608/@docdir@/p
23609/@infodir@/p
23610/@localedir@/p
23611/@mandir@/p
23612' $ac_file_inputs` in
23613*datarootdir*) ac_datarootdir_seen=yes;;
23614*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23615  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23616echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23617_ACEOF
23618cat >>$CONFIG_STATUS <<_ACEOF
23619  ac_datarootdir_hack='
23620  s&@datadir@&$datadir&g
23621  s&@docdir@&$docdir&g
23622  s&@infodir@&$infodir&g
23623  s&@localedir@&$localedir&g
23624  s&@mandir@&$mandir&g
23625    s&\\\${datarootdir}&$datarootdir&g' ;;
23626esac
23627_ACEOF
23628
23629# Neutralize VPATH when `$srcdir' = `.'.
23630# Shell code in configure.ac might set extrasub.
23631# FIXME: do we really want to maintain this feature?
23632cat >>$CONFIG_STATUS <<_ACEOF
23633  sed "$ac_vpsub
23634$extrasub
23635_ACEOF
23636cat >>$CONFIG_STATUS <<\_ACEOF
23637:t
23638/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23639s&@configure_input@&$configure_input&;t t
23640s&@top_builddir@&$ac_top_builddir_sub&;t t
23641s&@srcdir@&$ac_srcdir&;t t
23642s&@abs_srcdir@&$ac_abs_srcdir&;t t
23643s&@top_srcdir@&$ac_top_srcdir&;t t
23644s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23645s&@builddir@&$ac_builddir&;t t
23646s&@abs_builddir@&$ac_abs_builddir&;t t
23647s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23648s&@INSTALL@&$ac_INSTALL&;t t
23649$ac_datarootdir_hack
23650" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23651
23652test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23653  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23654  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23655  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23656which seems to be undefined.  Please make sure it is defined." >&5
23657echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23658which seems to be undefined.  Please make sure it is defined." >&2;}
23659
23660  rm -f "$tmp/stdin"
23661  case $ac_file in
23662  -) cat "$tmp/out"; rm -f "$tmp/out";;
23663  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23664  esac
23665 ;;
23666  :H)
23667  #
23668  # CONFIG_HEADER
23669  #
23670_ACEOF
23671
23672# Transform confdefs.h into a sed script `conftest.defines', that
23673# substitutes the proper values into config.h.in to produce config.h.
23674rm -f conftest.defines conftest.tail
23675# First, append a space to every undef/define line, to ease matching.
23676echo 's/$/ /' >conftest.defines
23677# Then, protect against being on the right side of a sed subst, or in
23678# an unquoted here document, in config.status.  If some macros were
23679# called several times there might be several #defines for the same
23680# symbol, which is useless.  But do not sort them, since the last
23681# AC_DEFINE must be honored.
23682ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23683# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23684# NAME is the cpp macro being defined, VALUE is the value it is being given.
23685# PARAMS is the parameter list in the macro definition--in most cases, it's
23686# just an empty string.
23687ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
23688ac_dB='\\)[	 (].*,\\1define\\2'
23689ac_dC=' '
23690ac_dD=' ,'
23691
23692uniq confdefs.h |
23693  sed -n '
23694	t rset
23695	:rset
23696	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
23697	t ok
23698	d
23699	:ok
23700	s/[\\&,]/\\&/g
23701	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23702	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23703  ' >>conftest.defines
23704
23705# Remove the space that was appended to ease matching.
23706# Then replace #undef with comments.  This is necessary, for
23707# example, in the case of _POSIX_SOURCE, which is predefined and required
23708# on some systems where configure will not decide to define it.
23709# (The regexp can be short, since the line contains either #define or #undef.)
23710echo 's/ $//
23711s,^[	 #]*u.*,/* & */,' >>conftest.defines
23712
23713# Break up conftest.defines:
23714ac_max_sed_lines=50
23715
23716# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23717# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23718# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23719# et cetera.
23720ac_in='$ac_file_inputs'
23721ac_out='"$tmp/out1"'
23722ac_nxt='"$tmp/out2"'
23723
23724while :
23725do
23726  # Write a here document:
23727    cat >>$CONFIG_STATUS <<_ACEOF
23728    # First, check the format of the line:
23729    cat >"\$tmp/defines.sed" <<\\CEOF
23730/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
23731/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
23732b
23733:def
23734_ACEOF
23735  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23736  echo 'CEOF
23737    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23738  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23739  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23740  grep . conftest.tail >/dev/null || break
23741  rm -f conftest.defines
23742  mv conftest.tail conftest.defines
23743done
23744rm -f conftest.defines conftest.tail
23745
23746echo "ac_result=$ac_in" >>$CONFIG_STATUS
23747cat >>$CONFIG_STATUS <<\_ACEOF
23748  if test x"$ac_file" != x-; then
23749    echo "/* $configure_input  */" >"$tmp/config.h"
23750    cat "$ac_result" >>"$tmp/config.h"
23751    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23752      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23753echo "$as_me: $ac_file is unchanged" >&6;}
23754    else
23755      rm -f $ac_file
23756      mv "$tmp/config.h" $ac_file
23757    fi
23758  else
23759    echo "/* $configure_input  */"
23760    cat "$ac_result"
23761  fi
23762  rm -f "$tmp/out12"
23763# Compute $ac_file's index in $config_headers.
23764_am_stamp_count=1
23765for _am_header in $config_headers :; do
23766  case $_am_header in
23767    $ac_file | $ac_file:* )
23768      break ;;
23769    * )
23770      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23771  esac
23772done
23773echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23774$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23775	 X$ac_file : 'X\(//\)[^/]' \| \
23776	 X$ac_file : 'X\(//\)$' \| \
23777	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23778echo X$ac_file |
23779    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23780	    s//\1/
23781	    q
23782	  }
23783	  /^X\(\/\/\)[^/].*/{
23784	    s//\1/
23785	    q
23786	  }
23787	  /^X\(\/\/\)$/{
23788	    s//\1/
23789	    q
23790	  }
23791	  /^X\(\/\).*/{
23792	    s//\1/
23793	    q
23794	  }
23795	  s/.*/./; q'`/stamp-h$_am_stamp_count
23796 ;;
23797
23798  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23799echo "$as_me: executing $ac_file commands" >&6;}
23800 ;;
23801  esac
23802
23803
23804  case $ac_file$ac_mode in
23805    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23806  # Strip MF so we end up with the name of the file.
23807  mf=`echo "$mf" | sed -e 's/:.*$//'`
23808  # Check whether this is an Automake generated Makefile or not.
23809  # We used to match only the files named `Makefile.in', but
23810  # some people rename them; so instead we look at the file content.
23811  # Grep'ing the first line is not enough: some people post-process
23812  # each Makefile.in and add a new line on top of each file to say so.
23813  # So let's grep whole file.
23814  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23815    dirpart=`$as_dirname -- "$mf" ||
23816$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23817	 X"$mf" : 'X\(//\)[^/]' \| \
23818	 X"$mf" : 'X\(//\)$' \| \
23819	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23820echo X"$mf" |
23821    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23822	    s//\1/
23823	    q
23824	  }
23825	  /^X\(\/\/\)[^/].*/{
23826	    s//\1/
23827	    q
23828	  }
23829	  /^X\(\/\/\)$/{
23830	    s//\1/
23831	    q
23832	  }
23833	  /^X\(\/\).*/{
23834	    s//\1/
23835	    q
23836	  }
23837	  s/.*/./; q'`
23838  else
23839    continue
23840  fi
23841  # Extract the definition of DEPDIR, am__include, and am__quote
23842  # from the Makefile without running `make'.
23843  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23844  test -z "$DEPDIR" && continue
23845  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23846  test -z "am__include" && continue
23847  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23848  # When using ansi2knr, U may be empty or an underscore; expand it
23849  U=`sed -n 's/^U = //p' < "$mf"`
23850  # Find all dependency output files, they are included files with
23851  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23852  # simplest approach to changing $(DEPDIR) to its actual value in the
23853  # expansion.
23854  for file in `sed -n "
23855    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23856       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23857    # Make sure the directory exists.
23858    test -f "$dirpart/$file" && continue
23859    fdir=`$as_dirname -- "$file" ||
23860$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23861	 X"$file" : 'X\(//\)[^/]' \| \
23862	 X"$file" : 'X\(//\)$' \| \
23863	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23864echo X"$file" |
23865    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23866	    s//\1/
23867	    q
23868	  }
23869	  /^X\(\/\/\)[^/].*/{
23870	    s//\1/
23871	    q
23872	  }
23873	  /^X\(\/\/\)$/{
23874	    s//\1/
23875	    q
23876	  }
23877	  /^X\(\/\).*/{
23878	    s//\1/
23879	    q
23880	  }
23881	  s/.*/./; q'`
23882    { as_dir=$dirpart/$fdir
23883  case $as_dir in #(
23884  -*) as_dir=./$as_dir;;
23885  esac
23886  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23887    as_dirs=
23888    while :; do
23889      case $as_dir in #(
23890      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23891      *) as_qdir=$as_dir;;
23892      esac
23893      as_dirs="'$as_qdir' $as_dirs"
23894      as_dir=`$as_dirname -- "$as_dir" ||
23895$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23896	 X"$as_dir" : 'X\(//\)[^/]' \| \
23897	 X"$as_dir" : 'X\(//\)$' \| \
23898	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23899echo X"$as_dir" |
23900    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23901	    s//\1/
23902	    q
23903	  }
23904	  /^X\(\/\/\)[^/].*/{
23905	    s//\1/
23906	    q
23907	  }
23908	  /^X\(\/\/\)$/{
23909	    s//\1/
23910	    q
23911	  }
23912	  /^X\(\/\).*/{
23913	    s//\1/
23914	    q
23915	  }
23916	  s/.*/./; q'`
23917      test -d "$as_dir" && break
23918    done
23919    test -z "$as_dirs" || eval "mkdir $as_dirs"
23920  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23921echo "$as_me: error: cannot create directory $as_dir" >&2;}
23922   { (exit 1); exit 1; }; }; }
23923    # echo "creating $dirpart/$file"
23924    echo '# dummy' > "$dirpart/$file"
23925  done
23926done
23927 ;;
23928
23929  esac
23930done # for ac_tag
23931
23932
23933{ (exit 0); exit 0; }
23934_ACEOF
23935chmod +x $CONFIG_STATUS
23936ac_clean_files=$ac_clean_files_save
23937
23938
23939# configure is writing to config.log, and then calls config.status.
23940# config.status does its own redirection, appending to config.log.
23941# Unfortunately, on DOS this fails, as config.log is still kept open
23942# by configure, so config.status won't be able to write to it; its
23943# output is simply discarded.  So we exec the FD to /dev/null,
23944# effectively closing config.log, so it can be properly (re)opened and
23945# appended to by config.status.  When coming back to configure, we
23946# need to make the FD available again.
23947if test "$no_create" != yes; then
23948  ac_cs_success=:
23949  ac_config_status_args=
23950  test "$silent" = yes &&
23951    ac_config_status_args="$ac_config_status_args --quiet"
23952  exec 5>/dev/null
23953  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23954  exec 5>>config.log
23955  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23956  # would make configure fail if this is the last instruction.
23957  $ac_cs_success || { (exit 1); exit 1; }
23958fi
23959
23960