1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for libbs2b 3.1.0.
4#
5# Report bugs to <boris_mikhaylov@users.sourceforge.net>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 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  # Pre-4.2 versions of Zsh do 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
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$ECHO in
581X*--fallback-echo)
582  # Remove one level of quotation (which was required for Make).
583  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584  ;;
585esac
586
587echo=${ECHO-echo}
588if test "X$1" = X--no-reexec; then
589  # Discard the --no-reexec flag, and continue.
590  shift
591elif test "X$1" = X--fallback-echo; then
592  # Avoid inline document here, it may be left over
593  :
594elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595  # Yippee, $echo works!
596  :
597else
598  # Restart under the correct shell.
599  exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603  # used as fallback echo
604  shift
605  cat <<EOF
606$*
607EOF
608  exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$ECHO"; then
616if test "X${echo_test_string+set}" != Xset; then
617# find a string as large as possible, as long as the shell can cope with it
618  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621       echo_test_string=`eval $cmd` &&
622       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623    then
624      break
625    fi
626  done
627fi
628
629if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631   test "X$echo_testing_string" = "X$echo_test_string"; then
632  :
633else
634  # The Solaris, AIX, and Digital Unix default echo programs unquote
635  # backslashes.  This makes it impossible to quote backslashes using
636  #   echo "$something" | sed 's/\\/\\\\/g'
637  #
638  # So, first we look for a working echo in the user's PATH.
639
640  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641  for dir in $PATH /usr/ucb; do
642    IFS="$lt_save_ifs"
643    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646       test "X$echo_testing_string" = "X$echo_test_string"; then
647      echo="$dir/echo"
648      break
649    fi
650  done
651  IFS="$lt_save_ifs"
652
653  if test "X$echo" = Xecho; then
654    # We didn't find a better echo, so look for alternatives.
655    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657       test "X$echo_testing_string" = "X$echo_test_string"; then
658      # This shell has a builtin print -r that does the trick.
659      echo='print -r'
660    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661	 test "X$CONFIG_SHELL" != X/bin/ksh; then
662      # If we have ksh, try running configure again with it.
663      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664      export ORIGINAL_CONFIG_SHELL
665      CONFIG_SHELL=/bin/ksh
666      export CONFIG_SHELL
667      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668    else
669      # Try using printf.
670      echo='printf %s\n'
671      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673	 test "X$echo_testing_string" = "X$echo_test_string"; then
674	# Cool, printf works
675	:
676      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677	   test "X$echo_testing_string" = 'X\t' &&
678	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679	   test "X$echo_testing_string" = "X$echo_test_string"; then
680	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681	export CONFIG_SHELL
682	SHELL="$CONFIG_SHELL"
683	export SHELL
684	echo="$CONFIG_SHELL $0 --fallback-echo"
685      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686	   test "X$echo_testing_string" = 'X\t' &&
687	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688	   test "X$echo_testing_string" = "X$echo_test_string"; then
689	echo="$CONFIG_SHELL $0 --fallback-echo"
690      else
691	# maybe with a smaller string...
692	prev=:
693
694	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696	  then
697	    break
698	  fi
699	  prev="$cmd"
700	done
701
702	if test "$prev" != 'sed 50q "$0"'; then
703	  echo_test_string=`eval $prev`
704	  export echo_test_string
705	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706	else
707	  # Oops.  We lost completely, so just stick with echo.
708	  echo=echo
709	fi
710      fi
711    fi
712  fi
713fi
714fi
715
716# Copy echo and quote the copy suitably for passing to libtool from
717# the Makefile, instead of quoting the original, which is used later.
718ECHO=$echo
719if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721fi
722
723
724
725
726tagnames=${tagnames+${tagnames},}CXX
727
728tagnames=${tagnames+${tagnames},}F77
729
730exec 7<&0 </dev/null 6>&1
731
732# Name of the host.
733# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734# so uname gets run too.
735ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737#
738# Initializations.
739#
740ac_default_prefix=/usr/local
741ac_clean_files=
742ac_config_libobj_dir=.
743LIBOBJS=
744cross_compiling=no
745subdirs=
746MFLAGS=
747MAKEFLAGS=
748SHELL=${CONFIG_SHELL-/bin/sh}
749
750# Identity of this package.
751PACKAGE_NAME='libbs2b'
752PACKAGE_TARNAME='libbs2b'
753PACKAGE_VERSION='3.1.0'
754PACKAGE_STRING='libbs2b 3.1.0'
755PACKAGE_BUGREPORT='boris_mikhaylov@users.sourceforge.net'
756
757ac_unique_file="src/bs2b.h"
758# Factoring default headers for most tests.
759ac_includes_default="\
760#include <stdio.h>
761#ifdef HAVE_SYS_TYPES_H
762# include <sys/types.h>
763#endif
764#ifdef HAVE_SYS_STAT_H
765# include <sys/stat.h>
766#endif
767#ifdef STDC_HEADERS
768# include <stdlib.h>
769# include <stddef.h>
770#else
771# ifdef HAVE_STDLIB_H
772#  include <stdlib.h>
773# endif
774#endif
775#ifdef HAVE_STRING_H
776# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777#  include <memory.h>
778# endif
779# include <string.h>
780#endif
781#ifdef HAVE_STRINGS_H
782# include <strings.h>
783#endif
784#ifdef HAVE_INTTYPES_H
785# include <inttypes.h>
786#endif
787#ifdef HAVE_STDINT_H
788# include <stdint.h>
789#endif
790#ifdef HAVE_UNISTD_H
791# include <unistd.h>
792#endif"
793
794ac_subst_vars='LTLIBOBJS
795LIBOBJS
796PKG_CONFIG
797LIBTOOL
798ac_ct_F77
799FFLAGS
800F77
801CXXCPP
802CPP
803NMEDIT
804DSYMUTIL
805RANLIB
806AR
807ECHO
808LN_S
809EGREP
810GREP
811SED
812host_os
813host_vendor
814host_cpu
815host
816build_os
817build_vendor
818build_cpu
819build
820am__fastdepCC_FALSE
821am__fastdepCC_TRUE
822CCDEPMODE
823ac_ct_CC
824CFLAGS
825CC
826am__fastdepCXX_FALSE
827am__fastdepCXX_TRUE
828CXXDEPMODE
829AMDEPBACKSLASH
830AMDEP_FALSE
831AMDEP_TRUE
832am__quote
833am__include
834DEPDIR
835OBJEXT
836EXEEXT
837ac_ct_CXX
838CPPFLAGS
839LDFLAGS
840CXXFLAGS
841CXX
842am__untar
843am__tar
844AMTAR
845am__leading_dot
846SET_MAKE
847AWK
848mkdir_p
849MKDIR_P
850INSTALL_STRIP_PROGRAM
851STRIP
852install_sh
853MAKEINFO
854AUTOHEADER
855AUTOMAKE
856AUTOCONF
857ACLOCAL
858VERSION
859PACKAGE
860CYGPATH_W
861am__isrc
862INSTALL_DATA
863INSTALL_SCRIPT
864INSTALL_PROGRAM
865target_alias
866host_alias
867build_alias
868LIBS
869ECHO_T
870ECHO_N
871ECHO_C
872DEFS
873mandir
874localedir
875libdir
876psdir
877pdfdir
878dvidir
879htmldir
880infodir
881docdir
882oldincludedir
883includedir
884localstatedir
885sharedstatedir
886sysconfdir
887datadir
888datarootdir
889libexecdir
890sbindir
891bindir
892program_transform_name
893prefix
894exec_prefix
895PACKAGE_BUGREPORT
896PACKAGE_STRING
897PACKAGE_VERSION
898PACKAGE_TARNAME
899PACKAGE_NAME
900PATH_SEPARATOR
901SHELL'
902ac_subst_files=''
903ac_user_opts='
904enable_option_checking
905enable_dependency_tracking
906enable_shared
907enable_static
908enable_fast_install
909with_gnu_ld
910enable_libtool_lock
911with_pic
912with_tags
913'
914      ac_precious_vars='build_alias
915host_alias
916target_alias
917CXX
918CXXFLAGS
919LDFLAGS
920LIBS
921CPPFLAGS
922CCC
923CC
924CFLAGS
925CPP
926CXXCPP
927F77
928FFLAGS
929PKG_CONFIG'
930
931
932# Initialize some variables set by options.
933ac_init_help=
934ac_init_version=false
935ac_unrecognized_opts=
936ac_unrecognized_sep=
937# The variables have the same names as the options, with
938# dashes changed to underlines.
939cache_file=/dev/null
940exec_prefix=NONE
941no_create=
942no_recursion=
943prefix=NONE
944program_prefix=NONE
945program_suffix=NONE
946program_transform_name=s,x,x,
947silent=
948site=
949srcdir=
950verbose=
951x_includes=NONE
952x_libraries=NONE
953
954# Installation directory options.
955# These are left unexpanded so users can "make install exec_prefix=/foo"
956# and all the variables that are supposed to be based on exec_prefix
957# by default will actually change.
958# Use braces instead of parens because sh, perl, etc. also accept them.
959# (The list follows the same order as the GNU Coding Standards.)
960bindir='${exec_prefix}/bin'
961sbindir='${exec_prefix}/sbin'
962libexecdir='${exec_prefix}/libexec'
963datarootdir='${prefix}/share'
964datadir='${datarootdir}'
965sysconfdir='${prefix}/etc'
966sharedstatedir='${prefix}/com'
967localstatedir='${prefix}/var'
968includedir='${prefix}/include'
969oldincludedir='/usr/include'
970docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
971infodir='${datarootdir}/info'
972htmldir='${docdir}'
973dvidir='${docdir}'
974pdfdir='${docdir}'
975psdir='${docdir}'
976libdir='${exec_prefix}/lib'
977localedir='${datarootdir}/locale'
978mandir='${datarootdir}/man'
979
980ac_prev=
981ac_dashdash=
982for ac_option
983do
984  # If the previous option needs an argument, assign it.
985  if test -n "$ac_prev"; then
986    eval $ac_prev=\$ac_option
987    ac_prev=
988    continue
989  fi
990
991  case $ac_option in
992  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
993  *)	ac_optarg=yes ;;
994  esac
995
996  # Accept the important Cygnus configure options, so we can diagnose typos.
997
998  case $ac_dashdash$ac_option in
999  --)
1000    ac_dashdash=yes ;;
1001
1002  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1003    ac_prev=bindir ;;
1004  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1005    bindir=$ac_optarg ;;
1006
1007  -build | --build | --buil | --bui | --bu)
1008    ac_prev=build_alias ;;
1009  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1010    build_alias=$ac_optarg ;;
1011
1012  -cache-file | --cache-file | --cache-fil | --cache-fi \
1013  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1014    ac_prev=cache_file ;;
1015  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1016  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1017    cache_file=$ac_optarg ;;
1018
1019  --config-cache | -C)
1020    cache_file=config.cache ;;
1021
1022  -datadir | --datadir | --datadi | --datad)
1023    ac_prev=datadir ;;
1024  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1025    datadir=$ac_optarg ;;
1026
1027  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1028  | --dataroo | --dataro | --datar)
1029    ac_prev=datarootdir ;;
1030  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1031  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1032    datarootdir=$ac_optarg ;;
1033
1034  -disable-* | --disable-*)
1035    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1036    # Reject names that are not valid shell variable names.
1037    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1039   { (exit 1); exit 1; }; }
1040    ac_useropt_orig=$ac_useropt
1041    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042    case $ac_user_opts in
1043      *"
1044"enable_$ac_useropt"
1045"*) ;;
1046      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1047	 ac_unrecognized_sep=', ';;
1048    esac
1049    eval enable_$ac_useropt=no ;;
1050
1051  -docdir | --docdir | --docdi | --doc | --do)
1052    ac_prev=docdir ;;
1053  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1054    docdir=$ac_optarg ;;
1055
1056  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1057    ac_prev=dvidir ;;
1058  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1059    dvidir=$ac_optarg ;;
1060
1061  -enable-* | --enable-*)
1062    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1063    # Reject names that are not valid shell variable names.
1064    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1066   { (exit 1); exit 1; }; }
1067    ac_useropt_orig=$ac_useropt
1068    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069    case $ac_user_opts in
1070      *"
1071"enable_$ac_useropt"
1072"*) ;;
1073      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1074	 ac_unrecognized_sep=', ';;
1075    esac
1076    eval enable_$ac_useropt=\$ac_optarg ;;
1077
1078  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080  | --exec | --exe | --ex)
1081    ac_prev=exec_prefix ;;
1082  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084  | --exec=* | --exe=* | --ex=*)
1085    exec_prefix=$ac_optarg ;;
1086
1087  -gas | --gas | --ga | --g)
1088    # Obsolete; use --with-gas.
1089    with_gas=yes ;;
1090
1091  -help | --help | --hel | --he | -h)
1092    ac_init_help=long ;;
1093  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094    ac_init_help=recursive ;;
1095  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096    ac_init_help=short ;;
1097
1098  -host | --host | --hos | --ho)
1099    ac_prev=host_alias ;;
1100  -host=* | --host=* | --hos=* | --ho=*)
1101    host_alias=$ac_optarg ;;
1102
1103  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1104    ac_prev=htmldir ;;
1105  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1106  | --ht=*)
1107    htmldir=$ac_optarg ;;
1108
1109  -includedir | --includedir | --includedi | --included | --include \
1110  | --includ | --inclu | --incl | --inc)
1111    ac_prev=includedir ;;
1112  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113  | --includ=* | --inclu=* | --incl=* | --inc=*)
1114    includedir=$ac_optarg ;;
1115
1116  -infodir | --infodir | --infodi | --infod | --info | --inf)
1117    ac_prev=infodir ;;
1118  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119    infodir=$ac_optarg ;;
1120
1121  -libdir | --libdir | --libdi | --libd)
1122    ac_prev=libdir ;;
1123  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124    libdir=$ac_optarg ;;
1125
1126  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127  | --libexe | --libex | --libe)
1128    ac_prev=libexecdir ;;
1129  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130  | --libexe=* | --libex=* | --libe=*)
1131    libexecdir=$ac_optarg ;;
1132
1133  -localedir | --localedir | --localedi | --localed | --locale)
1134    ac_prev=localedir ;;
1135  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136    localedir=$ac_optarg ;;
1137
1138  -localstatedir | --localstatedir | --localstatedi | --localstated \
1139  | --localstate | --localstat | --localsta | --localst | --locals)
1140    ac_prev=localstatedir ;;
1141  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143    localstatedir=$ac_optarg ;;
1144
1145  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1146    ac_prev=mandir ;;
1147  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148    mandir=$ac_optarg ;;
1149
1150  -nfp | --nfp | --nf)
1151    # Obsolete; use --without-fp.
1152    with_fp=no ;;
1153
1154  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155  | --no-cr | --no-c | -n)
1156    no_create=yes ;;
1157
1158  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160    no_recursion=yes ;;
1161
1162  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164  | --oldin | --oldi | --old | --ol | --o)
1165    ac_prev=oldincludedir ;;
1166  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169    oldincludedir=$ac_optarg ;;
1170
1171  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172    ac_prev=prefix ;;
1173  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174    prefix=$ac_optarg ;;
1175
1176  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177  | --program-pre | --program-pr | --program-p)
1178    ac_prev=program_prefix ;;
1179  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181    program_prefix=$ac_optarg ;;
1182
1183  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184  | --program-suf | --program-su | --program-s)
1185    ac_prev=program_suffix ;;
1186  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188    program_suffix=$ac_optarg ;;
1189
1190  -program-transform-name | --program-transform-name \
1191  | --program-transform-nam | --program-transform-na \
1192  | --program-transform-n | --program-transform- \
1193  | --program-transform | --program-transfor \
1194  | --program-transfo | --program-transf \
1195  | --program-trans | --program-tran \
1196  | --progr-tra | --program-tr | --program-t)
1197    ac_prev=program_transform_name ;;
1198  -program-transform-name=* | --program-transform-name=* \
1199  | --program-transform-nam=* | --program-transform-na=* \
1200  | --program-transform-n=* | --program-transform-=* \
1201  | --program-transform=* | --program-transfor=* \
1202  | --program-transfo=* | --program-transf=* \
1203  | --program-trans=* | --program-tran=* \
1204  | --progr-tra=* | --program-tr=* | --program-t=*)
1205    program_transform_name=$ac_optarg ;;
1206
1207  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1208    ac_prev=pdfdir ;;
1209  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210    pdfdir=$ac_optarg ;;
1211
1212  -psdir | --psdir | --psdi | --psd | --ps)
1213    ac_prev=psdir ;;
1214  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215    psdir=$ac_optarg ;;
1216
1217  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218  | -silent | --silent | --silen | --sile | --sil)
1219    silent=yes ;;
1220
1221  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1222    ac_prev=sbindir ;;
1223  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1224  | --sbi=* | --sb=*)
1225    sbindir=$ac_optarg ;;
1226
1227  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229  | --sharedst | --shareds | --shared | --share | --shar \
1230  | --sha | --sh)
1231    ac_prev=sharedstatedir ;;
1232  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1235  | --sha=* | --sh=*)
1236    sharedstatedir=$ac_optarg ;;
1237
1238  -site | --site | --sit)
1239    ac_prev=site ;;
1240  -site=* | --site=* | --sit=*)
1241    site=$ac_optarg ;;
1242
1243  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1244    ac_prev=srcdir ;;
1245  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246    srcdir=$ac_optarg ;;
1247
1248  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249  | --syscon | --sysco | --sysc | --sys | --sy)
1250    ac_prev=sysconfdir ;;
1251  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253    sysconfdir=$ac_optarg ;;
1254
1255  -target | --target | --targe | --targ | --tar | --ta | --t)
1256    ac_prev=target_alias ;;
1257  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258    target_alias=$ac_optarg ;;
1259
1260  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261    verbose=yes ;;
1262
1263  -version | --version | --versio | --versi | --vers | -V)
1264    ac_init_version=: ;;
1265
1266  -with-* | --with-*)
1267    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268    # Reject names that are not valid shell variable names.
1269    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1271   { (exit 1); exit 1; }; }
1272    ac_useropt_orig=$ac_useropt
1273    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274    case $ac_user_opts in
1275      *"
1276"with_$ac_useropt"
1277"*) ;;
1278      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1279	 ac_unrecognized_sep=', ';;
1280    esac
1281    eval with_$ac_useropt=\$ac_optarg ;;
1282
1283  -without-* | --without-*)
1284    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1285    # Reject names that are not valid shell variable names.
1286    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1288   { (exit 1); exit 1; }; }
1289    ac_useropt_orig=$ac_useropt
1290    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291    case $ac_user_opts in
1292      *"
1293"with_$ac_useropt"
1294"*) ;;
1295      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1296	 ac_unrecognized_sep=', ';;
1297    esac
1298    eval with_$ac_useropt=no ;;
1299
1300  --x)
1301    # Obsolete; use --with-x.
1302    with_x=yes ;;
1303
1304  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1305  | --x-incl | --x-inc | --x-in | --x-i)
1306    ac_prev=x_includes ;;
1307  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1308  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1309    x_includes=$ac_optarg ;;
1310
1311  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1312  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1313    ac_prev=x_libraries ;;
1314  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1315  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1316    x_libraries=$ac_optarg ;;
1317
1318  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1319Try \`$0 --help' for more information." >&2
1320   { (exit 1); exit 1; }; }
1321    ;;
1322
1323  *=*)
1324    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325    # Reject names that are not valid shell variable names.
1326    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1327      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1328   { (exit 1); exit 1; }; }
1329    eval $ac_envvar=\$ac_optarg
1330    export $ac_envvar ;;
1331
1332  *)
1333    # FIXME: should be removed in autoconf 3.0.
1334    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1335    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1336      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1337    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1338    ;;
1339
1340  esac
1341done
1342
1343if test -n "$ac_prev"; then
1344  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1345  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1346   { (exit 1); exit 1; }; }
1347fi
1348
1349if test -n "$ac_unrecognized_opts"; then
1350  case $enable_option_checking in
1351    no) ;;
1352    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1353   { (exit 1); exit 1; }; } ;;
1354    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1355  esac
1356fi
1357
1358# Check all directory arguments for consistency.
1359for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1360		datadir sysconfdir sharedstatedir localstatedir includedir \
1361		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1362		libdir localedir mandir
1363do
1364  eval ac_val=\$$ac_var
1365  # Remove trailing slashes.
1366  case $ac_val in
1367    */ )
1368      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1369      eval $ac_var=\$ac_val;;
1370  esac
1371  # Be sure to have absolute directory names.
1372  case $ac_val in
1373    [\\/$]* | ?:[\\/]* )  continue;;
1374    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1375  esac
1376  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1377   { (exit 1); exit 1; }; }
1378done
1379
1380# There might be people who depend on the old broken behavior: `$host'
1381# used to hold the argument of --host etc.
1382# FIXME: To remove some day.
1383build=$build_alias
1384host=$host_alias
1385target=$target_alias
1386
1387# FIXME: To remove some day.
1388if test "x$host_alias" != x; then
1389  if test "x$build_alias" = x; then
1390    cross_compiling=maybe
1391    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1392    If a cross compiler is detected then cross compile mode will be used." >&2
1393  elif test "x$build_alias" != "x$host_alias"; then
1394    cross_compiling=yes
1395  fi
1396fi
1397
1398ac_tool_prefix=
1399test -n "$host_alias" && ac_tool_prefix=$host_alias-
1400
1401test "$silent" = yes && exec 6>/dev/null
1402
1403
1404ac_pwd=`pwd` && test -n "$ac_pwd" &&
1405ac_ls_di=`ls -di .` &&
1406ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1407  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1408   { (exit 1); exit 1; }; }
1409test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1411   { (exit 1); exit 1; }; }
1412
1413
1414# Find the source files, if location was not specified.
1415if test -z "$srcdir"; then
1416  ac_srcdir_defaulted=yes
1417  # Try the directory containing this script, then the parent directory.
1418  ac_confdir=`$as_dirname -- "$as_myself" ||
1419$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420	 X"$as_myself" : 'X\(//\)[^/]' \| \
1421	 X"$as_myself" : 'X\(//\)$' \| \
1422	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423$as_echo X"$as_myself" |
1424    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425	    s//\1/
1426	    q
1427	  }
1428	  /^X\(\/\/\)[^/].*/{
1429	    s//\1/
1430	    q
1431	  }
1432	  /^X\(\/\/\)$/{
1433	    s//\1/
1434	    q
1435	  }
1436	  /^X\(\/\).*/{
1437	    s//\1/
1438	    q
1439	  }
1440	  s/.*/./; q'`
1441  srcdir=$ac_confdir
1442  if test ! -r "$srcdir/$ac_unique_file"; then
1443    srcdir=..
1444  fi
1445else
1446  ac_srcdir_defaulted=no
1447fi
1448if test ! -r "$srcdir/$ac_unique_file"; then
1449  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1451   { (exit 1); exit 1; }; }
1452fi
1453ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454ac_abs_confdir=`(
1455	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1456   { (exit 1); exit 1; }; }
1457	pwd)`
1458# When building in place, set srcdir=.
1459if test "$ac_abs_confdir" = "$ac_pwd"; then
1460  srcdir=.
1461fi
1462# Remove unnecessary trailing slashes from srcdir.
1463# Double slashes in file names in object file debugging info
1464# mess up M-x gdb in Emacs.
1465case $srcdir in
1466*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467esac
1468for ac_var in $ac_precious_vars; do
1469  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470  eval ac_env_${ac_var}_value=\$${ac_var}
1471  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473done
1474
1475#
1476# Report the --help message.
1477#
1478if test "$ac_init_help" = "long"; then
1479  # Omit some internal or obsolete options to make the list less imposing.
1480  # This message is too long to be a string in the A/UX 3.1 sh.
1481  cat <<_ACEOF
1482\`configure' configures libbs2b 3.1.0 to adapt to many kinds of systems.
1483
1484Usage: $0 [OPTION]... [VAR=VALUE]...
1485
1486To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487VAR=VALUE.  See below for descriptions of some of the useful variables.
1488
1489Defaults for the options are specified in brackets.
1490
1491Configuration:
1492  -h, --help              display this help and exit
1493      --help=short        display options specific to this package
1494      --help=recursive    display the short help of all the included packages
1495  -V, --version           display version information and exit
1496  -q, --quiet, --silent   do not print \`checking...' messages
1497      --cache-file=FILE   cache test results in FILE [disabled]
1498  -C, --config-cache      alias for \`--cache-file=config.cache'
1499  -n, --no-create         do not create output files
1500      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1501
1502Installation directories:
1503  --prefix=PREFIX         install architecture-independent files in PREFIX
1504                          [$ac_default_prefix]
1505  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1506                          [PREFIX]
1507
1508By default, \`make install' will install all the files in
1509\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1510an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511for instance \`--prefix=\$HOME'.
1512
1513For better control, use the options below.
1514
1515Fine tuning of the installation directories:
1516  --bindir=DIR            user executables [EPREFIX/bin]
1517  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1518  --libexecdir=DIR        program executables [EPREFIX/libexec]
1519  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1520  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1521  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1522  --libdir=DIR            object code libraries [EPREFIX/lib]
1523  --includedir=DIR        C header files [PREFIX/include]
1524  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1525  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1526  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1527  --infodir=DIR           info documentation [DATAROOTDIR/info]
1528  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1529  --mandir=DIR            man documentation [DATAROOTDIR/man]
1530  --docdir=DIR            documentation root [DATAROOTDIR/doc/libbs2b]
1531  --htmldir=DIR           html documentation [DOCDIR]
1532  --dvidir=DIR            dvi documentation [DOCDIR]
1533  --pdfdir=DIR            pdf documentation [DOCDIR]
1534  --psdir=DIR             ps documentation [DOCDIR]
1535_ACEOF
1536
1537  cat <<\_ACEOF
1538
1539Program names:
1540  --program-prefix=PREFIX            prepend PREFIX to installed program names
1541  --program-suffix=SUFFIX            append SUFFIX to installed program names
1542  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1543
1544System types:
1545  --build=BUILD     configure for building on BUILD [guessed]
1546  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1547_ACEOF
1548fi
1549
1550if test -n "$ac_init_help"; then
1551  case $ac_init_help in
1552     short | recursive ) echo "Configuration of libbs2b 3.1.0:";;
1553   esac
1554  cat <<\_ACEOF
1555
1556Optional Features:
1557  --disable-option-checking  ignore unrecognized --enable/--with options
1558  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1559  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1560  --disable-dependency-tracking  speeds up one-time build
1561  --enable-dependency-tracking   do not reject slow dependency extractors
1562  --enable-shared[=PKGS]  build shared libraries [default=yes]
1563  --enable-static[=PKGS]  build static libraries [default=yes]
1564  --enable-fast-install[=PKGS]
1565                          optimize for fast installation [default=yes]
1566  --disable-libtool-lock  avoid locking (might break parallel builds)
1567
1568Optional Packages:
1569  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1570  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1571  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1572  --with-pic              try to use only PIC/non-PIC objects [default=use
1573                          both]
1574  --with-tags[=TAGS]      include additional configurations [automatic]
1575
1576Some influential environment variables:
1577  CXX         C++ compiler command
1578  CXXFLAGS    C++ compiler flags
1579  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1580              nonstandard directory <lib dir>
1581  LIBS        libraries to pass to the linker, e.g. -l<library>
1582  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1583              you have headers in a nonstandard directory <include dir>
1584  CC          C compiler command
1585  CFLAGS      C compiler flags
1586  CPP         C preprocessor
1587  CXXCPP      C++ preprocessor
1588  F77         Fortran 77 compiler command
1589  FFLAGS      Fortran 77 compiler flags
1590  PKG_CONFIG  path to pkg-config utility
1591
1592Use these variables to override the choices made by `configure' or to help
1593it to find libraries and programs with nonstandard names/locations.
1594
1595Report bugs to <boris_mikhaylov@users.sourceforge.net>.
1596_ACEOF
1597ac_status=$?
1598fi
1599
1600if test "$ac_init_help" = "recursive"; then
1601  # If there are subdirs, report their specific --help.
1602  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1603    test -d "$ac_dir" ||
1604      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1605      continue
1606    ac_builddir=.
1607
1608case "$ac_dir" in
1609.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610*)
1611  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1612  # A ".." for each directory in $ac_dir_suffix.
1613  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1614  case $ac_top_builddir_sub in
1615  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617  esac ;;
1618esac
1619ac_abs_top_builddir=$ac_pwd
1620ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621# for backward compatibility:
1622ac_top_builddir=$ac_top_build_prefix
1623
1624case $srcdir in
1625  .)  # We are building in place.
1626    ac_srcdir=.
1627    ac_top_srcdir=$ac_top_builddir_sub
1628    ac_abs_top_srcdir=$ac_pwd ;;
1629  [\\/]* | ?:[\\/]* )  # Absolute name.
1630    ac_srcdir=$srcdir$ac_dir_suffix;
1631    ac_top_srcdir=$srcdir
1632    ac_abs_top_srcdir=$srcdir ;;
1633  *) # Relative name.
1634    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635    ac_top_srcdir=$ac_top_build_prefix$srcdir
1636    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637esac
1638ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639
1640    cd "$ac_dir" || { ac_status=$?; continue; }
1641    # Check for guested configure.
1642    if test -f "$ac_srcdir/configure.gnu"; then
1643      echo &&
1644      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645    elif test -f "$ac_srcdir/configure"; then
1646      echo &&
1647      $SHELL "$ac_srcdir/configure" --help=recursive
1648    else
1649      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650    fi || ac_status=$?
1651    cd "$ac_pwd" || { ac_status=$?; break; }
1652  done
1653fi
1654
1655test -n "$ac_init_help" && exit $ac_status
1656if $ac_init_version; then
1657  cat <<\_ACEOF
1658libbs2b configure 3.1.0
1659generated by GNU Autoconf 2.63
1660
1661Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16622002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1663This configure script is free software; the Free Software Foundation
1664gives unlimited permission to copy, distribute and modify it.
1665_ACEOF
1666  exit
1667fi
1668cat >config.log <<_ACEOF
1669This file contains any messages produced by compilers while
1670running configure, to aid debugging if configure makes a mistake.
1671
1672It was created by libbs2b $as_me 3.1.0, which was
1673generated by GNU Autoconf 2.63.  Invocation command line was
1674
1675  $ $0 $@
1676
1677_ACEOF
1678exec 5>>config.log
1679{
1680cat <<_ASUNAME
1681## --------- ##
1682## Platform. ##
1683## --------- ##
1684
1685hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1686uname -m = `(uname -m) 2>/dev/null || echo unknown`
1687uname -r = `(uname -r) 2>/dev/null || echo unknown`
1688uname -s = `(uname -s) 2>/dev/null || echo unknown`
1689uname -v = `(uname -v) 2>/dev/null || echo unknown`
1690
1691/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1692/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1693
1694/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1695/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1696/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1697/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1698/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1699/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1700/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1701
1702_ASUNAME
1703
1704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705for as_dir in $PATH
1706do
1707  IFS=$as_save_IFS
1708  test -z "$as_dir" && as_dir=.
1709  $as_echo "PATH: $as_dir"
1710done
1711IFS=$as_save_IFS
1712
1713} >&5
1714
1715cat >&5 <<_ACEOF
1716
1717
1718## ----------- ##
1719## Core tests. ##
1720## ----------- ##
1721
1722_ACEOF
1723
1724
1725# Keep a trace of the command line.
1726# Strip out --no-create and --no-recursion so they do not pile up.
1727# Strip out --silent because we don't want to record it for future runs.
1728# Also quote any args containing shell meta-characters.
1729# Make two passes to allow for proper duplicate-argument suppression.
1730ac_configure_args=
1731ac_configure_args0=
1732ac_configure_args1=
1733ac_must_keep_next=false
1734for ac_pass in 1 2
1735do
1736  for ac_arg
1737  do
1738    case $ac_arg in
1739    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1740    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1741    | -silent | --silent | --silen | --sile | --sil)
1742      continue ;;
1743    *\'*)
1744      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1745    esac
1746    case $ac_pass in
1747    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1748    2)
1749      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1750      if test $ac_must_keep_next = true; then
1751	ac_must_keep_next=false # Got value, back to normal.
1752      else
1753	case $ac_arg in
1754	  *=* | --config-cache | -C | -disable-* | --disable-* \
1755	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1756	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1757	  | -with-* | --with-* | -without-* | --without-* | --x)
1758	    case "$ac_configure_args0 " in
1759	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1760	    esac
1761	    ;;
1762	  -* ) ac_must_keep_next=true ;;
1763	esac
1764      fi
1765      ac_configure_args="$ac_configure_args '$ac_arg'"
1766      ;;
1767    esac
1768  done
1769done
1770$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1771$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1772
1773# When interrupted or exit'd, cleanup temporary files, and complete
1774# config.log.  We remove comments because anyway the quotes in there
1775# would cause problems or look ugly.
1776# WARNING: Use '\'' to represent an apostrophe within the trap.
1777# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1778trap 'exit_status=$?
1779  # Save into config.log some information that might help in debugging.
1780  {
1781    echo
1782
1783    cat <<\_ASBOX
1784## ---------------- ##
1785## Cache variables. ##
1786## ---------------- ##
1787_ASBOX
1788    echo
1789    # The following way of writing the cache mishandles newlines in values,
1790(
1791  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1792    eval ac_val=\$$ac_var
1793    case $ac_val in #(
1794    *${as_nl}*)
1795      case $ac_var in #(
1796      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1797$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1798      esac
1799      case $ac_var in #(
1800      _ | IFS | as_nl) ;; #(
1801      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1802      *) $as_unset $ac_var ;;
1803      esac ;;
1804    esac
1805  done
1806  (set) 2>&1 |
1807    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1808    *${as_nl}ac_space=\ *)
1809      sed -n \
1810	"s/'\''/'\''\\\\'\'''\''/g;
1811	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1812      ;; #(
1813    *)
1814      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1815      ;;
1816    esac |
1817    sort
1818)
1819    echo
1820
1821    cat <<\_ASBOX
1822## ----------------- ##
1823## Output variables. ##
1824## ----------------- ##
1825_ASBOX
1826    echo
1827    for ac_var in $ac_subst_vars
1828    do
1829      eval ac_val=\$$ac_var
1830      case $ac_val in
1831      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1832      esac
1833      $as_echo "$ac_var='\''$ac_val'\''"
1834    done | sort
1835    echo
1836
1837    if test -n "$ac_subst_files"; then
1838      cat <<\_ASBOX
1839## ------------------- ##
1840## File substitutions. ##
1841## ------------------- ##
1842_ASBOX
1843      echo
1844      for ac_var in $ac_subst_files
1845      do
1846	eval ac_val=\$$ac_var
1847	case $ac_val in
1848	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1849	esac
1850	$as_echo "$ac_var='\''$ac_val'\''"
1851      done | sort
1852      echo
1853    fi
1854
1855    if test -s confdefs.h; then
1856      cat <<\_ASBOX
1857## ----------- ##
1858## confdefs.h. ##
1859## ----------- ##
1860_ASBOX
1861      echo
1862      cat confdefs.h
1863      echo
1864    fi
1865    test "$ac_signal" != 0 &&
1866      $as_echo "$as_me: caught signal $ac_signal"
1867    $as_echo "$as_me: exit $exit_status"
1868  } >&5
1869  rm -f core *.core core.conftest.* &&
1870    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1871    exit $exit_status
1872' 0
1873for ac_signal in 1 2 13 15; do
1874  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1875done
1876ac_signal=0
1877
1878# confdefs.h avoids OS command line length limits that DEFS can exceed.
1879rm -f -r conftest* confdefs.h
1880
1881# Predefined preprocessor variables.
1882
1883cat >>confdefs.h <<_ACEOF
1884#define PACKAGE_NAME "$PACKAGE_NAME"
1885_ACEOF
1886
1887
1888cat >>confdefs.h <<_ACEOF
1889#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1890_ACEOF
1891
1892
1893cat >>confdefs.h <<_ACEOF
1894#define PACKAGE_VERSION "$PACKAGE_VERSION"
1895_ACEOF
1896
1897
1898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_STRING "$PACKAGE_STRING"
1900_ACEOF
1901
1902
1903cat >>confdefs.h <<_ACEOF
1904#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1905_ACEOF
1906
1907
1908# Let the site file select an alternate cache file if it wants to.
1909# Prefer an explicitly selected file to automatically selected ones.
1910ac_site_file1=NONE
1911ac_site_file2=NONE
1912if test -n "$CONFIG_SITE"; then
1913  ac_site_file1=$CONFIG_SITE
1914elif test "x$prefix" != xNONE; then
1915  ac_site_file1=$prefix/share/config.site
1916  ac_site_file2=$prefix/etc/config.site
1917else
1918  ac_site_file1=$ac_default_prefix/share/config.site
1919  ac_site_file2=$ac_default_prefix/etc/config.site
1920fi
1921for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1922do
1923  test "x$ac_site_file" = xNONE && continue
1924  if test -r "$ac_site_file"; then
1925    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1926$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1927    sed 's/^/| /' "$ac_site_file" >&5
1928    . "$ac_site_file"
1929  fi
1930done
1931
1932if test -r "$cache_file"; then
1933  # Some versions of bash will fail to source /dev/null (special
1934  # files actually), so we avoid doing that.
1935  if test -f "$cache_file"; then
1936    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1937$as_echo "$as_me: loading cache $cache_file" >&6;}
1938    case $cache_file in
1939      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1940      *)                      . "./$cache_file";;
1941    esac
1942  fi
1943else
1944  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1945$as_echo "$as_me: creating cache $cache_file" >&6;}
1946  >$cache_file
1947fi
1948
1949# Check that the precious variables saved in the cache have kept the same
1950# value.
1951ac_cache_corrupted=false
1952for ac_var in $ac_precious_vars; do
1953  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1954  eval ac_new_set=\$ac_env_${ac_var}_set
1955  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1956  eval ac_new_val=\$ac_env_${ac_var}_value
1957  case $ac_old_set,$ac_new_set in
1958    set,)
1959      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1960$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1961      ac_cache_corrupted=: ;;
1962    ,set)
1963      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1964$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1965      ac_cache_corrupted=: ;;
1966    ,);;
1967    *)
1968      if test "x$ac_old_val" != "x$ac_new_val"; then
1969	# differences in whitespace do not lead to failure.
1970	ac_old_val_w=`echo x $ac_old_val`
1971	ac_new_val_w=`echo x $ac_new_val`
1972	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1973	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1974$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1975	  ac_cache_corrupted=:
1976	else
1977	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1978$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1979	  eval $ac_var=\$ac_old_val
1980	fi
1981	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1982$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1983	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1984$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1985      fi;;
1986  esac
1987  # Pass precious variables to config.status.
1988  if test "$ac_new_set" = set; then
1989    case $ac_new_val in
1990    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1991    *) ac_arg=$ac_var=$ac_new_val ;;
1992    esac
1993    case " $ac_configure_args " in
1994      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1995      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1996    esac
1997  fi
1998done
1999if $ac_cache_corrupted; then
2000  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2001$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2002  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2003$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2004  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2005$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2006   { (exit 1); exit 1; }; }
2007fi
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033ac_ext=c
2034ac_cpp='$CPP $CPPFLAGS'
2035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037ac_compiler_gnu=$ac_cv_c_compiler_gnu
2038
2039
2040ac_aux_dir=
2041for ac_dir in build-aux "$srcdir"/build-aux; do
2042  if test -f "$ac_dir/install-sh"; then
2043    ac_aux_dir=$ac_dir
2044    ac_install_sh="$ac_aux_dir/install-sh -c"
2045    break
2046  elif test -f "$ac_dir/install.sh"; then
2047    ac_aux_dir=$ac_dir
2048    ac_install_sh="$ac_aux_dir/install.sh -c"
2049    break
2050  elif test -f "$ac_dir/shtool"; then
2051    ac_aux_dir=$ac_dir
2052    ac_install_sh="$ac_aux_dir/shtool install -c"
2053    break
2054  fi
2055done
2056if test -z "$ac_aux_dir"; then
2057  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2058$as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2059   { (exit 1); exit 1; }; }
2060fi
2061
2062# These three variables are undocumented and unsupported,
2063# and are intended to be withdrawn in a future Autoconf release.
2064# They can cause serious problems if a builder's source tree is in a directory
2065# whose full name contains unusual characters.
2066ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2067ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2068ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2069
2070
2071am__api_version='1.10'
2072
2073# Find a good install program.  We prefer a C program (faster),
2074# so one script is as good as another.  But avoid the broken or
2075# incompatible versions:
2076# SysV /etc/install, /usr/sbin/install
2077# SunOS /usr/etc/install
2078# IRIX /sbin/install
2079# AIX /bin/install
2080# AmigaOS /C/install, which installs bootblocks on floppy discs
2081# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2082# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2083# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2084# OS/2's system install, which has a completely different semantic
2085# ./install, which can be erroneously created by make from ./install.sh.
2086# Reject install programs that cannot install multiple files.
2087{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2088$as_echo_n "checking for a BSD-compatible install... " >&6; }
2089if test -z "$INSTALL"; then
2090if test "${ac_cv_path_install+set}" = set; then
2091  $as_echo_n "(cached) " >&6
2092else
2093  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094for as_dir in $PATH
2095do
2096  IFS=$as_save_IFS
2097  test -z "$as_dir" && as_dir=.
2098  # Account for people who put trailing slashes in PATH elements.
2099case $as_dir/ in
2100  ./ | .// | /cC/* | \
2101  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2102  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2103  /usr/ucb/* ) ;;
2104  *)
2105    # OSF1 and SCO ODT 3.0 have their own names for install.
2106    # Don't use installbsd from OSF since it installs stuff as root
2107    # by default.
2108    for ac_prog in ginstall scoinst install; do
2109      for ac_exec_ext in '' $ac_executable_extensions; do
2110	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2111	  if test $ac_prog = install &&
2112	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2113	    # AIX install.  It has an incompatible calling convention.
2114	    :
2115	  elif test $ac_prog = install &&
2116	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2117	    # program-specific install script used by HP pwplus--don't use.
2118	    :
2119	  else
2120	    rm -rf conftest.one conftest.two conftest.dir
2121	    echo one > conftest.one
2122	    echo two > conftest.two
2123	    mkdir conftest.dir
2124	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2125	      test -s conftest.one && test -s conftest.two &&
2126	      test -s conftest.dir/conftest.one &&
2127	      test -s conftest.dir/conftest.two
2128	    then
2129	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2130	      break 3
2131	    fi
2132	  fi
2133	fi
2134      done
2135    done
2136    ;;
2137esac
2138
2139done
2140IFS=$as_save_IFS
2141
2142rm -rf conftest.one conftest.two conftest.dir
2143
2144fi
2145  if test "${ac_cv_path_install+set}" = set; then
2146    INSTALL=$ac_cv_path_install
2147  else
2148    # As a last resort, use the slow shell script.  Don't cache a
2149    # value for INSTALL within a source directory, because that will
2150    # break other packages using the cache if that directory is
2151    # removed, or if the value is a relative name.
2152    INSTALL=$ac_install_sh
2153  fi
2154fi
2155{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2156$as_echo "$INSTALL" >&6; }
2157
2158# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2159# It thinks the first close brace ends the variable substitution.
2160test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2161
2162test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2163
2164test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2165
2166{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2167$as_echo_n "checking whether build environment is sane... " >&6; }
2168# Just in case
2169sleep 1
2170echo timestamp > conftest.file
2171# Do `set' in a subshell so we don't clobber the current shell's
2172# arguments.  Must try -L first in case configure is actually a
2173# symlink; some systems play weird games with the mod time of symlinks
2174# (eg FreeBSD returns the mod time of the symlink's containing
2175# directory).
2176if (
2177   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2178   if test "$*" = "X"; then
2179      # -L didn't work.
2180      set X `ls -t $srcdir/configure conftest.file`
2181   fi
2182   rm -f conftest.file
2183   if test "$*" != "X $srcdir/configure conftest.file" \
2184      && test "$*" != "X conftest.file $srcdir/configure"; then
2185
2186      # If neither matched, then we have a broken ls.  This can happen
2187      # if, for instance, CONFIG_SHELL is bash and it inherits a
2188      # broken ls alias from the environment.  This has actually
2189      # happened.  Such a system could not be considered "sane".
2190      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2191alias in your environment" >&5
2192$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2193alias in your environment" >&2;}
2194   { (exit 1); exit 1; }; }
2195   fi
2196
2197   test "$2" = conftest.file
2198   )
2199then
2200   # Ok.
2201   :
2202else
2203   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2204Check your system clock" >&5
2205$as_echo "$as_me: error: newly created file is older than distributed files!
2206Check your system clock" >&2;}
2207   { (exit 1); exit 1; }; }
2208fi
2209{ $as_echo "$as_me:$LINENO: result: yes" >&5
2210$as_echo "yes" >&6; }
2211test "$program_prefix" != NONE &&
2212  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2213# Use a double $ so make ignores it.
2214test "$program_suffix" != NONE &&
2215  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2216# Double any \ or $.
2217# By default was `s,x,x', remove it if useless.
2218ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2219program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2220
2221# expand $ac_aux_dir to an absolute path
2222am_aux_dir=`cd $ac_aux_dir && pwd`
2223
2224test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2225# Use eval to expand $SHELL
2226if eval "$MISSING --run true"; then
2227  am_missing_run="$MISSING --run "
2228else
2229  am_missing_run=
2230  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2231$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2232fi
2233
2234{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2235$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2236if test -z "$MKDIR_P"; then
2237  if test "${ac_cv_path_mkdir+set}" = set; then
2238  $as_echo_n "(cached) " >&6
2239else
2240  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2242do
2243  IFS=$as_save_IFS
2244  test -z "$as_dir" && as_dir=.
2245  for ac_prog in mkdir gmkdir; do
2246	 for ac_exec_ext in '' $ac_executable_extensions; do
2247	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2248	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2249	     'mkdir (GNU coreutils) '* | \
2250	     'mkdir (coreutils) '* | \
2251	     'mkdir (fileutils) '4.1*)
2252	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2253	       break 3;;
2254	   esac
2255	 done
2256       done
2257done
2258IFS=$as_save_IFS
2259
2260fi
2261
2262  if test "${ac_cv_path_mkdir+set}" = set; then
2263    MKDIR_P="$ac_cv_path_mkdir -p"
2264  else
2265    # As a last resort, use the slow shell script.  Don't cache a
2266    # value for MKDIR_P within a source directory, because that will
2267    # break other packages using the cache if that directory is
2268    # removed, or if the value is a relative name.
2269    test -d ./--version && rmdir ./--version
2270    MKDIR_P="$ac_install_sh -d"
2271  fi
2272fi
2273{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2274$as_echo "$MKDIR_P" >&6; }
2275
2276mkdir_p="$MKDIR_P"
2277case $mkdir_p in
2278  [\\/$]* | ?:[\\/]*) ;;
2279  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2280esac
2281
2282for ac_prog in gawk mawk nawk awk
2283do
2284  # Extract the first word of "$ac_prog", so it can be a program name with args.
2285set dummy $ac_prog; ac_word=$2
2286{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2287$as_echo_n "checking for $ac_word... " >&6; }
2288if test "${ac_cv_prog_AWK+set}" = set; then
2289  $as_echo_n "(cached) " >&6
2290else
2291  if test -n "$AWK"; then
2292  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2293else
2294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295for as_dir in $PATH
2296do
2297  IFS=$as_save_IFS
2298  test -z "$as_dir" && as_dir=.
2299  for ac_exec_ext in '' $ac_executable_extensions; do
2300  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2301    ac_cv_prog_AWK="$ac_prog"
2302    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303    break 2
2304  fi
2305done
2306done
2307IFS=$as_save_IFS
2308
2309fi
2310fi
2311AWK=$ac_cv_prog_AWK
2312if test -n "$AWK"; then
2313  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2314$as_echo "$AWK" >&6; }
2315else
2316  { $as_echo "$as_me:$LINENO: result: no" >&5
2317$as_echo "no" >&6; }
2318fi
2319
2320
2321  test -n "$AWK" && break
2322done
2323
2324{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2325$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2326set x ${MAKE-make}
2327ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2328if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2329  $as_echo_n "(cached) " >&6
2330else
2331  cat >conftest.make <<\_ACEOF
2332SHELL = /bin/sh
2333all:
2334	@echo '@@@%%%=$(MAKE)=@@@%%%'
2335_ACEOF
2336# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2337case `${MAKE-make} -f conftest.make 2>/dev/null` in
2338  *@@@%%%=?*=@@@%%%*)
2339    eval ac_cv_prog_make_${ac_make}_set=yes;;
2340  *)
2341    eval ac_cv_prog_make_${ac_make}_set=no;;
2342esac
2343rm -f conftest.make
2344fi
2345if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2346  { $as_echo "$as_me:$LINENO: result: yes" >&5
2347$as_echo "yes" >&6; }
2348  SET_MAKE=
2349else
2350  { $as_echo "$as_me:$LINENO: result: no" >&5
2351$as_echo "no" >&6; }
2352  SET_MAKE="MAKE=${MAKE-make}"
2353fi
2354
2355rm -rf .tst 2>/dev/null
2356mkdir .tst 2>/dev/null
2357if test -d .tst; then
2358  am__leading_dot=.
2359else
2360  am__leading_dot=_
2361fi
2362rmdir .tst 2>/dev/null
2363
2364if test "`cd $srcdir && pwd`" != "`pwd`"; then
2365  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2366  # is not polluted with repeated "-I."
2367  am__isrc=' -I$(srcdir)'
2368  # test to see if srcdir already configured
2369  if test -f $srcdir/config.status; then
2370    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2371$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2372   { (exit 1); exit 1; }; }
2373  fi
2374fi
2375
2376# test whether we have cygpath
2377if test -z "$CYGPATH_W"; then
2378  if (cygpath --version) >/dev/null 2>/dev/null; then
2379    CYGPATH_W='cygpath -w'
2380  else
2381    CYGPATH_W=echo
2382  fi
2383fi
2384
2385
2386# Define the identity of the package.
2387 PACKAGE='libbs2b'
2388 VERSION='3.1.0'
2389
2390
2391cat >>confdefs.h <<_ACEOF
2392#define PACKAGE "$PACKAGE"
2393_ACEOF
2394
2395
2396cat >>confdefs.h <<_ACEOF
2397#define VERSION "$VERSION"
2398_ACEOF
2399
2400# Some tools Automake needs.
2401
2402ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2403
2404
2405AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2406
2407
2408AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2409
2410
2411AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2412
2413
2414MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2415
2416install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2417
2418# Installed binaries are usually stripped using `strip' when the user
2419# run `make install-strip'.  However `strip' might not be the right
2420# tool to use in cross-compilation environments, therefore Automake
2421# will honor the `STRIP' environment variable to overrule this program.
2422if test "$cross_compiling" != no; then
2423  if test -n "$ac_tool_prefix"; then
2424  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2425set dummy ${ac_tool_prefix}strip; ac_word=$2
2426{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2427$as_echo_n "checking for $ac_word... " >&6; }
2428if test "${ac_cv_prog_STRIP+set}" = set; then
2429  $as_echo_n "(cached) " >&6
2430else
2431  if test -n "$STRIP"; then
2432  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2433else
2434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435for as_dir in $PATH
2436do
2437  IFS=$as_save_IFS
2438  test -z "$as_dir" && as_dir=.
2439  for ac_exec_ext in '' $ac_executable_extensions; do
2440  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2441    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2442    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2443    break 2
2444  fi
2445done
2446done
2447IFS=$as_save_IFS
2448
2449fi
2450fi
2451STRIP=$ac_cv_prog_STRIP
2452if test -n "$STRIP"; then
2453  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2454$as_echo "$STRIP" >&6; }
2455else
2456  { $as_echo "$as_me:$LINENO: result: no" >&5
2457$as_echo "no" >&6; }
2458fi
2459
2460
2461fi
2462if test -z "$ac_cv_prog_STRIP"; then
2463  ac_ct_STRIP=$STRIP
2464  # Extract the first word of "strip", so it can be a program name with args.
2465set dummy strip; ac_word=$2
2466{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2467$as_echo_n "checking for $ac_word... " >&6; }
2468if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2469  $as_echo_n "(cached) " >&6
2470else
2471  if test -n "$ac_ct_STRIP"; then
2472  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2473else
2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475for as_dir in $PATH
2476do
2477  IFS=$as_save_IFS
2478  test -z "$as_dir" && as_dir=.
2479  for ac_exec_ext in '' $ac_executable_extensions; do
2480  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481    ac_cv_prog_ac_ct_STRIP="strip"
2482    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483    break 2
2484  fi
2485done
2486done
2487IFS=$as_save_IFS
2488
2489fi
2490fi
2491ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2492if test -n "$ac_ct_STRIP"; then
2493  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2494$as_echo "$ac_ct_STRIP" >&6; }
2495else
2496  { $as_echo "$as_me:$LINENO: result: no" >&5
2497$as_echo "no" >&6; }
2498fi
2499
2500  if test "x$ac_ct_STRIP" = x; then
2501    STRIP=":"
2502  else
2503    case $cross_compiling:$ac_tool_warned in
2504yes:)
2505{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2507ac_tool_warned=yes ;;
2508esac
2509    STRIP=$ac_ct_STRIP
2510  fi
2511else
2512  STRIP="$ac_cv_prog_STRIP"
2513fi
2514
2515fi
2516INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2517
2518# We need awk for the "check" target.  The system "awk" is bad on
2519# some platforms.
2520# Always define AMTAR for backward compatibility.
2521
2522AMTAR=${AMTAR-"${am_missing_run}tar"}
2523
2524am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2525
2526
2527
2528
2529
2530
2531
2532# Checks for programs.
2533ac_ext=cpp
2534ac_cpp='$CXXCPP $CPPFLAGS'
2535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2538if test -z "$CXX"; then
2539  if test -n "$CCC"; then
2540    CXX=$CCC
2541  else
2542    if test -n "$ac_tool_prefix"; then
2543  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2544  do
2545    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2546set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2547{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2548$as_echo_n "checking for $ac_word... " >&6; }
2549if test "${ac_cv_prog_CXX+set}" = set; then
2550  $as_echo_n "(cached) " >&6
2551else
2552  if test -n "$CXX"; then
2553  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2554else
2555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556for as_dir in $PATH
2557do
2558  IFS=$as_save_IFS
2559  test -z "$as_dir" && as_dir=.
2560  for ac_exec_ext in '' $ac_executable_extensions; do
2561  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2562    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2563    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564    break 2
2565  fi
2566done
2567done
2568IFS=$as_save_IFS
2569
2570fi
2571fi
2572CXX=$ac_cv_prog_CXX
2573if test -n "$CXX"; then
2574  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
2575$as_echo "$CXX" >&6; }
2576else
2577  { $as_echo "$as_me:$LINENO: result: no" >&5
2578$as_echo "no" >&6; }
2579fi
2580
2581
2582    test -n "$CXX" && break
2583  done
2584fi
2585if test -z "$CXX"; then
2586  ac_ct_CXX=$CXX
2587  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2588do
2589  # Extract the first word of "$ac_prog", so it can be a program name with args.
2590set dummy $ac_prog; ac_word=$2
2591{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2592$as_echo_n "checking for $ac_word... " >&6; }
2593if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2594  $as_echo_n "(cached) " >&6
2595else
2596  if test -n "$ac_ct_CXX"; then
2597  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2598else
2599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600for as_dir in $PATH
2601do
2602  IFS=$as_save_IFS
2603  test -z "$as_dir" && as_dir=.
2604  for ac_exec_ext in '' $ac_executable_extensions; do
2605  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2606    ac_cv_prog_ac_ct_CXX="$ac_prog"
2607    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608    break 2
2609  fi
2610done
2611done
2612IFS=$as_save_IFS
2613
2614fi
2615fi
2616ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2617if test -n "$ac_ct_CXX"; then
2618  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2619$as_echo "$ac_ct_CXX" >&6; }
2620else
2621  { $as_echo "$as_me:$LINENO: result: no" >&5
2622$as_echo "no" >&6; }
2623fi
2624
2625
2626  test -n "$ac_ct_CXX" && break
2627done
2628
2629  if test "x$ac_ct_CXX" = x; then
2630    CXX="g++"
2631  else
2632    case $cross_compiling:$ac_tool_warned in
2633yes:)
2634{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2636ac_tool_warned=yes ;;
2637esac
2638    CXX=$ac_ct_CXX
2639  fi
2640fi
2641
2642  fi
2643fi
2644# Provide some information about the compiler.
2645$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2646set X $ac_compile
2647ac_compiler=$2
2648{ (ac_try="$ac_compiler --version >&5"
2649case "(($ac_try" in
2650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651  *) ac_try_echo=$ac_try;;
2652esac
2653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2654$as_echo "$ac_try_echo") >&5
2655  (eval "$ac_compiler --version >&5") 2>&5
2656  ac_status=$?
2657  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658  (exit $ac_status); }
2659{ (ac_try="$ac_compiler -v >&5"
2660case "(($ac_try" in
2661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662  *) ac_try_echo=$ac_try;;
2663esac
2664eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2665$as_echo "$ac_try_echo") >&5
2666  (eval "$ac_compiler -v >&5") 2>&5
2667  ac_status=$?
2668  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669  (exit $ac_status); }
2670{ (ac_try="$ac_compiler -V >&5"
2671case "(($ac_try" in
2672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673  *) ac_try_echo=$ac_try;;
2674esac
2675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2676$as_echo "$ac_try_echo") >&5
2677  (eval "$ac_compiler -V >&5") 2>&5
2678  ac_status=$?
2679  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680  (exit $ac_status); }
2681
2682cat >conftest.$ac_ext <<_ACEOF
2683/* confdefs.h.  */
2684_ACEOF
2685cat confdefs.h >>conftest.$ac_ext
2686cat >>conftest.$ac_ext <<_ACEOF
2687/* end confdefs.h.  */
2688
2689int
2690main ()
2691{
2692
2693  ;
2694  return 0;
2695}
2696_ACEOF
2697ac_clean_files_save=$ac_clean_files
2698ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2699# Try to create an executable without -o first, disregard a.out.
2700# It will help us diagnose broken compilers, and finding out an intuition
2701# of exeext.
2702{ $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2703$as_echo_n "checking for C++ compiler default output file name... " >&6; }
2704ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2705
2706# The possible output files:
2707ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2708
2709ac_rmfiles=
2710for ac_file in $ac_files
2711do
2712  case $ac_file in
2713    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2714    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2715  esac
2716done
2717rm -f $ac_rmfiles
2718
2719if { (ac_try="$ac_link_default"
2720case "(($ac_try" in
2721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722  *) ac_try_echo=$ac_try;;
2723esac
2724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2725$as_echo "$ac_try_echo") >&5
2726  (eval "$ac_link_default") 2>&5
2727  ac_status=$?
2728  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729  (exit $ac_status); }; then
2730  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2731# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2732# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2733# so that the user can short-circuit this test for compilers unknown to
2734# Autoconf.
2735for ac_file in $ac_files ''
2736do
2737  test -f "$ac_file" || continue
2738  case $ac_file in
2739    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2740	;;
2741    [ab].out )
2742	# We found the default executable, but exeext='' is most
2743	# certainly right.
2744	break;;
2745    *.* )
2746        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2747	then :; else
2748	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2749	fi
2750	# We set ac_cv_exeext here because the later test for it is not
2751	# safe: cross compilers may not add the suffix if given an `-o'
2752	# argument, so we may need to know it at that point already.
2753	# Even if this section looks crufty: it has the advantage of
2754	# actually working.
2755	break;;
2756    * )
2757	break;;
2758  esac
2759done
2760test "$ac_cv_exeext" = no && ac_cv_exeext=
2761
2762else
2763  ac_file=''
2764fi
2765
2766{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2767$as_echo "$ac_file" >&6; }
2768if test -z "$ac_file"; then
2769  $as_echo "$as_me: failed program was:" >&5
2770sed 's/^/| /' conftest.$ac_ext >&5
2771
2772{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2774{ { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2775See \`config.log' for more details." >&5
2776$as_echo "$as_me: error: C++ compiler cannot create executables
2777See \`config.log' for more details." >&2;}
2778   { (exit 77); exit 77; }; }; }
2779fi
2780
2781ac_exeext=$ac_cv_exeext
2782
2783# Check that the compiler produces executables we can run.  If not, either
2784# the compiler is broken, or we cross compile.
2785{ $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2786$as_echo_n "checking whether the C++ compiler works... " >&6; }
2787# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2788# If not cross compiling, check that we can run a simple program.
2789if test "$cross_compiling" != yes; then
2790  if { ac_try='./$ac_file'
2791  { (case "(($ac_try" in
2792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793  *) ac_try_echo=$ac_try;;
2794esac
2795eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2796$as_echo "$ac_try_echo") >&5
2797  (eval "$ac_try") 2>&5
2798  ac_status=$?
2799  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800  (exit $ac_status); }; }; then
2801    cross_compiling=no
2802  else
2803    if test "$cross_compiling" = maybe; then
2804	cross_compiling=yes
2805    else
2806	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2807$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2808{ { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2809If you meant to cross compile, use \`--host'.
2810See \`config.log' for more details." >&5
2811$as_echo "$as_me: error: cannot run C++ compiled programs.
2812If you meant to cross compile, use \`--host'.
2813See \`config.log' for more details." >&2;}
2814   { (exit 1); exit 1; }; }; }
2815    fi
2816  fi
2817fi
2818{ $as_echo "$as_me:$LINENO: result: yes" >&5
2819$as_echo "yes" >&6; }
2820
2821rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2822ac_clean_files=$ac_clean_files_save
2823# Check that the compiler produces executables we can run.  If not, either
2824# the compiler is broken, or we cross compile.
2825{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2826$as_echo_n "checking whether we are cross compiling... " >&6; }
2827{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2828$as_echo "$cross_compiling" >&6; }
2829
2830{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2831$as_echo_n "checking for suffix of executables... " >&6; }
2832if { (ac_try="$ac_link"
2833case "(($ac_try" in
2834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835  *) ac_try_echo=$ac_try;;
2836esac
2837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2838$as_echo "$ac_try_echo") >&5
2839  (eval "$ac_link") 2>&5
2840  ac_status=$?
2841  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842  (exit $ac_status); }; then
2843  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2844# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2845# work properly (i.e., refer to `conftest.exe'), while it won't with
2846# `rm'.
2847for ac_file in conftest.exe conftest conftest.*; do
2848  test -f "$ac_file" || continue
2849  case $ac_file in
2850    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2851    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2852	  break;;
2853    * ) break;;
2854  esac
2855done
2856else
2857  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2859{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2860See \`config.log' for more details." >&5
2861$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2862See \`config.log' for more details." >&2;}
2863   { (exit 1); exit 1; }; }; }
2864fi
2865
2866rm -f conftest$ac_cv_exeext
2867{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2868$as_echo "$ac_cv_exeext" >&6; }
2869
2870rm -f conftest.$ac_ext
2871EXEEXT=$ac_cv_exeext
2872ac_exeext=$EXEEXT
2873{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2874$as_echo_n "checking for suffix of object files... " >&6; }
2875if test "${ac_cv_objext+set}" = set; then
2876  $as_echo_n "(cached) " >&6
2877else
2878  cat >conftest.$ac_ext <<_ACEOF
2879/* confdefs.h.  */
2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
2883/* end confdefs.h.  */
2884
2885int
2886main ()
2887{
2888
2889  ;
2890  return 0;
2891}
2892_ACEOF
2893rm -f conftest.o conftest.obj
2894if { (ac_try="$ac_compile"
2895case "(($ac_try" in
2896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897  *) ac_try_echo=$ac_try;;
2898esac
2899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2900$as_echo "$ac_try_echo") >&5
2901  (eval "$ac_compile") 2>&5
2902  ac_status=$?
2903  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904  (exit $ac_status); }; then
2905  for ac_file in conftest.o conftest.obj conftest.*; do
2906  test -f "$ac_file" || continue;
2907  case $ac_file in
2908    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2909    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2910       break;;
2911  esac
2912done
2913else
2914  $as_echo "$as_me: failed program was:" >&5
2915sed 's/^/| /' conftest.$ac_ext >&5
2916
2917{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2918$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2919{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2920See \`config.log' for more details." >&5
2921$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2922See \`config.log' for more details." >&2;}
2923   { (exit 1); exit 1; }; }; }
2924fi
2925
2926rm -f conftest.$ac_cv_objext conftest.$ac_ext
2927fi
2928{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2929$as_echo "$ac_cv_objext" >&6; }
2930OBJEXT=$ac_cv_objext
2931ac_objext=$OBJEXT
2932{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2933$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2934if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2935  $as_echo_n "(cached) " >&6
2936else
2937  cat >conftest.$ac_ext <<_ACEOF
2938/* confdefs.h.  */
2939_ACEOF
2940cat confdefs.h >>conftest.$ac_ext
2941cat >>conftest.$ac_ext <<_ACEOF
2942/* end confdefs.h.  */
2943
2944int
2945main ()
2946{
2947#ifndef __GNUC__
2948       choke me
2949#endif
2950
2951  ;
2952  return 0;
2953}
2954_ACEOF
2955rm -f conftest.$ac_objext
2956if { (ac_try="$ac_compile"
2957case "(($ac_try" in
2958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959  *) ac_try_echo=$ac_try;;
2960esac
2961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2962$as_echo "$ac_try_echo") >&5
2963  (eval "$ac_compile") 2>conftest.er1
2964  ac_status=$?
2965  grep -v '^ *+' conftest.er1 >conftest.err
2966  rm -f conftest.er1
2967  cat conftest.err >&5
2968  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969  (exit $ac_status); } && {
2970	 test -z "$ac_cxx_werror_flag" ||
2971	 test ! -s conftest.err
2972       } && test -s conftest.$ac_objext; then
2973  ac_compiler_gnu=yes
2974else
2975  $as_echo "$as_me: failed program was:" >&5
2976sed 's/^/| /' conftest.$ac_ext >&5
2977
2978	ac_compiler_gnu=no
2979fi
2980
2981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2982ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2983
2984fi
2985{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2986$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2987if test $ac_compiler_gnu = yes; then
2988  GXX=yes
2989else
2990  GXX=
2991fi
2992ac_test_CXXFLAGS=${CXXFLAGS+set}
2993ac_save_CXXFLAGS=$CXXFLAGS
2994{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2995$as_echo_n "checking whether $CXX accepts -g... " >&6; }
2996if test "${ac_cv_prog_cxx_g+set}" = set; then
2997  $as_echo_n "(cached) " >&6
2998else
2999  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3000   ac_cxx_werror_flag=yes
3001   ac_cv_prog_cxx_g=no
3002   CXXFLAGS="-g"
3003   cat >conftest.$ac_ext <<_ACEOF
3004/* confdefs.h.  */
3005_ACEOF
3006cat confdefs.h >>conftest.$ac_ext
3007cat >>conftest.$ac_ext <<_ACEOF
3008/* end confdefs.h.  */
3009
3010int
3011main ()
3012{
3013
3014  ;
3015  return 0;
3016}
3017_ACEOF
3018rm -f conftest.$ac_objext
3019if { (ac_try="$ac_compile"
3020case "(($ac_try" in
3021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022  *) ac_try_echo=$ac_try;;
3023esac
3024eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3025$as_echo "$ac_try_echo") >&5
3026  (eval "$ac_compile") 2>conftest.er1
3027  ac_status=$?
3028  grep -v '^ *+' conftest.er1 >conftest.err
3029  rm -f conftest.er1
3030  cat conftest.err >&5
3031  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032  (exit $ac_status); } && {
3033	 test -z "$ac_cxx_werror_flag" ||
3034	 test ! -s conftest.err
3035       } && test -s conftest.$ac_objext; then
3036  ac_cv_prog_cxx_g=yes
3037else
3038  $as_echo "$as_me: failed program was:" >&5
3039sed 's/^/| /' conftest.$ac_ext >&5
3040
3041	CXXFLAGS=""
3042      cat >conftest.$ac_ext <<_ACEOF
3043/* confdefs.h.  */
3044_ACEOF
3045cat confdefs.h >>conftest.$ac_ext
3046cat >>conftest.$ac_ext <<_ACEOF
3047/* end confdefs.h.  */
3048
3049int
3050main ()
3051{
3052
3053  ;
3054  return 0;
3055}
3056_ACEOF
3057rm -f conftest.$ac_objext
3058if { (ac_try="$ac_compile"
3059case "(($ac_try" in
3060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061  *) ac_try_echo=$ac_try;;
3062esac
3063eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3064$as_echo "$ac_try_echo") >&5
3065  (eval "$ac_compile") 2>conftest.er1
3066  ac_status=$?
3067  grep -v '^ *+' conftest.er1 >conftest.err
3068  rm -f conftest.er1
3069  cat conftest.err >&5
3070  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071  (exit $ac_status); } && {
3072	 test -z "$ac_cxx_werror_flag" ||
3073	 test ! -s conftest.err
3074       } && test -s conftest.$ac_objext; then
3075  :
3076else
3077  $as_echo "$as_me: failed program was:" >&5
3078sed 's/^/| /' conftest.$ac_ext >&5
3079
3080	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3081	 CXXFLAGS="-g"
3082	 cat >conftest.$ac_ext <<_ACEOF
3083/* confdefs.h.  */
3084_ACEOF
3085cat confdefs.h >>conftest.$ac_ext
3086cat >>conftest.$ac_ext <<_ACEOF
3087/* end confdefs.h.  */
3088
3089int
3090main ()
3091{
3092
3093  ;
3094  return 0;
3095}
3096_ACEOF
3097rm -f conftest.$ac_objext
3098if { (ac_try="$ac_compile"
3099case "(($ac_try" in
3100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101  *) ac_try_echo=$ac_try;;
3102esac
3103eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3104$as_echo "$ac_try_echo") >&5
3105  (eval "$ac_compile") 2>conftest.er1
3106  ac_status=$?
3107  grep -v '^ *+' conftest.er1 >conftest.err
3108  rm -f conftest.er1
3109  cat conftest.err >&5
3110  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); } && {
3112	 test -z "$ac_cxx_werror_flag" ||
3113	 test ! -s conftest.err
3114       } && test -s conftest.$ac_objext; then
3115  ac_cv_prog_cxx_g=yes
3116else
3117  $as_echo "$as_me: failed program was:" >&5
3118sed 's/^/| /' conftest.$ac_ext >&5
3119
3120
3121fi
3122
3123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3124fi
3125
3126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127fi
3128
3129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3130   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3131fi
3132{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3133$as_echo "$ac_cv_prog_cxx_g" >&6; }
3134if test "$ac_test_CXXFLAGS" = set; then
3135  CXXFLAGS=$ac_save_CXXFLAGS
3136elif test $ac_cv_prog_cxx_g = yes; then
3137  if test "$GXX" = yes; then
3138    CXXFLAGS="-g -O2"
3139  else
3140    CXXFLAGS="-g"
3141  fi
3142else
3143  if test "$GXX" = yes; then
3144    CXXFLAGS="-O2"
3145  else
3146    CXXFLAGS=
3147  fi
3148fi
3149ac_ext=c
3150ac_cpp='$CPP $CPPFLAGS'
3151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153ac_compiler_gnu=$ac_cv_c_compiler_gnu
3154DEPDIR="${am__leading_dot}deps"
3155
3156ac_config_commands="$ac_config_commands depfiles"
3157
3158
3159am_make=${MAKE-make}
3160cat > confinc << 'END'
3161am__doit:
3162	@echo done
3163.PHONY: am__doit
3164END
3165# If we don't find an include directive, just comment out the code.
3166{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3167$as_echo_n "checking for style of include used by $am_make... " >&6; }
3168am__include="#"
3169am__quote=
3170_am_result=none
3171# First try GNU make style include.
3172echo "include confinc" > confmf
3173# We grep out `Entering directory' and `Leaving directory'
3174# messages which can occur if `w' ends up in MAKEFLAGS.
3175# In particular we don't look at `^make:' because GNU make might
3176# be invoked under some other name (usually "gmake"), in which
3177# case it prints its new name instead of `make'.
3178if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3179   am__include=include
3180   am__quote=
3181   _am_result=GNU
3182fi
3183# Now try BSD make style include.
3184if test "$am__include" = "#"; then
3185   echo '.include "confinc"' > confmf
3186   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3187      am__include=.include
3188      am__quote="\""
3189      _am_result=BSD
3190   fi
3191fi
3192
3193
3194{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3195$as_echo "$_am_result" >&6; }
3196rm -f confinc confmf
3197
3198# Check whether --enable-dependency-tracking was given.
3199if test "${enable_dependency_tracking+set}" = set; then
3200  enableval=$enable_dependency_tracking;
3201fi
3202
3203if test "x$enable_dependency_tracking" != xno; then
3204  am_depcomp="$ac_aux_dir/depcomp"
3205  AMDEPBACKSLASH='\'
3206fi
3207 if test "x$enable_dependency_tracking" != xno; then
3208  AMDEP_TRUE=
3209  AMDEP_FALSE='#'
3210else
3211  AMDEP_TRUE='#'
3212  AMDEP_FALSE=
3213fi
3214
3215
3216
3217depcc="$CXX"  am_compiler_list=
3218
3219{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3220$as_echo_n "checking dependency style of $depcc... " >&6; }
3221if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3222  $as_echo_n "(cached) " >&6
3223else
3224  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3225  # We make a subdir and do the tests there.  Otherwise we can end up
3226  # making bogus files that we don't know about and never remove.  For
3227  # instance it was reported that on HP-UX the gcc test will end up
3228  # making a dummy file named `D' -- because `-MD' means `put the output
3229  # in D'.
3230  mkdir conftest.dir
3231  # Copy depcomp to subdir because otherwise we won't find it if we're
3232  # using a relative directory.
3233  cp "$am_depcomp" conftest.dir
3234  cd conftest.dir
3235  # We will build objects and dependencies in a subdirectory because
3236  # it helps to detect inapplicable dependency modes.  For instance
3237  # both Tru64's cc and ICC support -MD to output dependencies as a
3238  # side effect of compilation, but ICC will put the dependencies in
3239  # the current directory while Tru64 will put them in the object
3240  # directory.
3241  mkdir sub
3242
3243  am_cv_CXX_dependencies_compiler_type=none
3244  if test "$am_compiler_list" = ""; then
3245     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3246  fi
3247  for depmode in $am_compiler_list; do
3248    # Setup a source with many dependencies, because some compilers
3249    # like to wrap large dependency lists on column 80 (with \), and
3250    # we should not choose a depcomp mode which is confused by this.
3251    #
3252    # We need to recreate these files for each test, as the compiler may
3253    # overwrite some of them when testing with obscure command lines.
3254    # This happens at least with the AIX C compiler.
3255    : > sub/conftest.c
3256    for i in 1 2 3 4 5 6; do
3257      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3258      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3259      # Solaris 8's {/usr,}/bin/sh.
3260      touch sub/conftst$i.h
3261    done
3262    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3263
3264    case $depmode in
3265    nosideeffect)
3266      # after this tag, mechanisms are not by side-effect, so they'll
3267      # only be used when explicitly requested
3268      if test "x$enable_dependency_tracking" = xyes; then
3269	continue
3270      else
3271	break
3272      fi
3273      ;;
3274    none) break ;;
3275    esac
3276    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3277    # mode.  It turns out that the SunPro C++ compiler does not properly
3278    # handle `-M -o', and we need to detect this.
3279    if depmode=$depmode \
3280       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3281       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3282       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3283         >/dev/null 2>conftest.err &&
3284       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3285       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3286       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3287       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3288      # icc doesn't choke on unknown options, it will just issue warnings
3289      # or remarks (even with -Werror).  So we grep stderr for any message
3290      # that says an option was ignored or not supported.
3291      # When given -MP, icc 7.0 and 7.1 complain thusly:
3292      #   icc: Command line warning: ignoring option '-M'; no argument required
3293      # The diagnosis changed in icc 8.0:
3294      #   icc: Command line remark: option '-MP' not supported
3295      if (grep 'ignoring option' conftest.err ||
3296          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3297        am_cv_CXX_dependencies_compiler_type=$depmode
3298        break
3299      fi
3300    fi
3301  done
3302
3303  cd ..
3304  rm -rf conftest.dir
3305else
3306  am_cv_CXX_dependencies_compiler_type=none
3307fi
3308
3309fi
3310{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3311$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3312CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3313
3314 if
3315  test "x$enable_dependency_tracking" != xno \
3316  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3317  am__fastdepCXX_TRUE=
3318  am__fastdepCXX_FALSE='#'
3319else
3320  am__fastdepCXX_TRUE='#'
3321  am__fastdepCXX_FALSE=
3322fi
3323
3324
3325ac_ext=c
3326ac_cpp='$CPP $CPPFLAGS'
3327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329ac_compiler_gnu=$ac_cv_c_compiler_gnu
3330if test -n "$ac_tool_prefix"; then
3331  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3332set dummy ${ac_tool_prefix}gcc; ac_word=$2
3333{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3334$as_echo_n "checking for $ac_word... " >&6; }
3335if test "${ac_cv_prog_CC+set}" = set; then
3336  $as_echo_n "(cached) " >&6
3337else
3338  if test -n "$CC"; then
3339  ac_cv_prog_CC="$CC" # Let the user override the test.
3340else
3341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342for as_dir in $PATH
3343do
3344  IFS=$as_save_IFS
3345  test -z "$as_dir" && as_dir=.
3346  for ac_exec_ext in '' $ac_executable_extensions; do
3347  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3348    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3349    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350    break 2
3351  fi
3352done
3353done
3354IFS=$as_save_IFS
3355
3356fi
3357fi
3358CC=$ac_cv_prog_CC
3359if test -n "$CC"; then
3360  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3361$as_echo "$CC" >&6; }
3362else
3363  { $as_echo "$as_me:$LINENO: result: no" >&5
3364$as_echo "no" >&6; }
3365fi
3366
3367
3368fi
3369if test -z "$ac_cv_prog_CC"; then
3370  ac_ct_CC=$CC
3371  # Extract the first word of "gcc", so it can be a program name with args.
3372set dummy gcc; ac_word=$2
3373{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3374$as_echo_n "checking for $ac_word... " >&6; }
3375if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3376  $as_echo_n "(cached) " >&6
3377else
3378  if test -n "$ac_ct_CC"; then
3379  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3380else
3381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382for as_dir in $PATH
3383do
3384  IFS=$as_save_IFS
3385  test -z "$as_dir" && as_dir=.
3386  for ac_exec_ext in '' $ac_executable_extensions; do
3387  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3388    ac_cv_prog_ac_ct_CC="gcc"
3389    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3390    break 2
3391  fi
3392done
3393done
3394IFS=$as_save_IFS
3395
3396fi
3397fi
3398ac_ct_CC=$ac_cv_prog_ac_ct_CC
3399if test -n "$ac_ct_CC"; then
3400  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3401$as_echo "$ac_ct_CC" >&6; }
3402else
3403  { $as_echo "$as_me:$LINENO: result: no" >&5
3404$as_echo "no" >&6; }
3405fi
3406
3407  if test "x$ac_ct_CC" = x; then
3408    CC=""
3409  else
3410    case $cross_compiling:$ac_tool_warned in
3411yes:)
3412{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3414ac_tool_warned=yes ;;
3415esac
3416    CC=$ac_ct_CC
3417  fi
3418else
3419  CC="$ac_cv_prog_CC"
3420fi
3421
3422if test -z "$CC"; then
3423          if test -n "$ac_tool_prefix"; then
3424    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3425set dummy ${ac_tool_prefix}cc; ac_word=$2
3426{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3427$as_echo_n "checking for $ac_word... " >&6; }
3428if test "${ac_cv_prog_CC+set}" = set; then
3429  $as_echo_n "(cached) " >&6
3430else
3431  if test -n "$CC"; then
3432  ac_cv_prog_CC="$CC" # Let the user override the test.
3433else
3434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435for as_dir in $PATH
3436do
3437  IFS=$as_save_IFS
3438  test -z "$as_dir" && as_dir=.
3439  for ac_exec_ext in '' $ac_executable_extensions; do
3440  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3441    ac_cv_prog_CC="${ac_tool_prefix}cc"
3442    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3443    break 2
3444  fi
3445done
3446done
3447IFS=$as_save_IFS
3448
3449fi
3450fi
3451CC=$ac_cv_prog_CC
3452if test -n "$CC"; then
3453  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3454$as_echo "$CC" >&6; }
3455else
3456  { $as_echo "$as_me:$LINENO: result: no" >&5
3457$as_echo "no" >&6; }
3458fi
3459
3460
3461  fi
3462fi
3463if test -z "$CC"; then
3464  # Extract the first word of "cc", so it can be a program name with args.
3465set dummy cc; ac_word=$2
3466{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3467$as_echo_n "checking for $ac_word... " >&6; }
3468if test "${ac_cv_prog_CC+set}" = set; then
3469  $as_echo_n "(cached) " >&6
3470else
3471  if test -n "$CC"; then
3472  ac_cv_prog_CC="$CC" # Let the user override the test.
3473else
3474  ac_prog_rejected=no
3475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476for as_dir in $PATH
3477do
3478  IFS=$as_save_IFS
3479  test -z "$as_dir" && as_dir=.
3480  for ac_exec_ext in '' $ac_executable_extensions; do
3481  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3482    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3483       ac_prog_rejected=yes
3484       continue
3485     fi
3486    ac_cv_prog_CC="cc"
3487    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3488    break 2
3489  fi
3490done
3491done
3492IFS=$as_save_IFS
3493
3494if test $ac_prog_rejected = yes; then
3495  # We found a bogon in the path, so make sure we never use it.
3496  set dummy $ac_cv_prog_CC
3497  shift
3498  if test $# != 0; then
3499    # We chose a different compiler from the bogus one.
3500    # However, it has the same basename, so the bogon will be chosen
3501    # first if we set CC to just the basename; use the full file name.
3502    shift
3503    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3504  fi
3505fi
3506fi
3507fi
3508CC=$ac_cv_prog_CC
3509if test -n "$CC"; then
3510  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3511$as_echo "$CC" >&6; }
3512else
3513  { $as_echo "$as_me:$LINENO: result: no" >&5
3514$as_echo "no" >&6; }
3515fi
3516
3517
3518fi
3519if test -z "$CC"; then
3520  if test -n "$ac_tool_prefix"; then
3521  for ac_prog in cl.exe
3522  do
3523    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3524set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3525{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3526$as_echo_n "checking for $ac_word... " >&6; }
3527if test "${ac_cv_prog_CC+set}" = set; then
3528  $as_echo_n "(cached) " >&6
3529else
3530  if test -n "$CC"; then
3531  ac_cv_prog_CC="$CC" # Let the user override the test.
3532else
3533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534for as_dir in $PATH
3535do
3536  IFS=$as_save_IFS
3537  test -z "$as_dir" && as_dir=.
3538  for ac_exec_ext in '' $ac_executable_extensions; do
3539  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3540    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3541    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3542    break 2
3543  fi
3544done
3545done
3546IFS=$as_save_IFS
3547
3548fi
3549fi
3550CC=$ac_cv_prog_CC
3551if test -n "$CC"; then
3552  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3553$as_echo "$CC" >&6; }
3554else
3555  { $as_echo "$as_me:$LINENO: result: no" >&5
3556$as_echo "no" >&6; }
3557fi
3558
3559
3560    test -n "$CC" && break
3561  done
3562fi
3563if test -z "$CC"; then
3564  ac_ct_CC=$CC
3565  for ac_prog in cl.exe
3566do
3567  # Extract the first word of "$ac_prog", so it can be a program name with args.
3568set dummy $ac_prog; ac_word=$2
3569{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3570$as_echo_n "checking for $ac_word... " >&6; }
3571if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3572  $as_echo_n "(cached) " >&6
3573else
3574  if test -n "$ac_ct_CC"; then
3575  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3576else
3577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578for as_dir in $PATH
3579do
3580  IFS=$as_save_IFS
3581  test -z "$as_dir" && as_dir=.
3582  for ac_exec_ext in '' $ac_executable_extensions; do
3583  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584    ac_cv_prog_ac_ct_CC="$ac_prog"
3585    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3586    break 2
3587  fi
3588done
3589done
3590IFS=$as_save_IFS
3591
3592fi
3593fi
3594ac_ct_CC=$ac_cv_prog_ac_ct_CC
3595if test -n "$ac_ct_CC"; then
3596  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3597$as_echo "$ac_ct_CC" >&6; }
3598else
3599  { $as_echo "$as_me:$LINENO: result: no" >&5
3600$as_echo "no" >&6; }
3601fi
3602
3603
3604  test -n "$ac_ct_CC" && break
3605done
3606
3607  if test "x$ac_ct_CC" = x; then
3608    CC=""
3609  else
3610    case $cross_compiling:$ac_tool_warned in
3611yes:)
3612{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3614ac_tool_warned=yes ;;
3615esac
3616    CC=$ac_ct_CC
3617  fi
3618fi
3619
3620fi
3621
3622
3623test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3626See \`config.log' for more details." >&5
3627$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3628See \`config.log' for more details." >&2;}
3629   { (exit 1); exit 1; }; }; }
3630
3631# Provide some information about the compiler.
3632$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3633set X $ac_compile
3634ac_compiler=$2
3635{ (ac_try="$ac_compiler --version >&5"
3636case "(($ac_try" in
3637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638  *) ac_try_echo=$ac_try;;
3639esac
3640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3641$as_echo "$ac_try_echo") >&5
3642  (eval "$ac_compiler --version >&5") 2>&5
3643  ac_status=$?
3644  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645  (exit $ac_status); }
3646{ (ac_try="$ac_compiler -v >&5"
3647case "(($ac_try" in
3648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649  *) ac_try_echo=$ac_try;;
3650esac
3651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3652$as_echo "$ac_try_echo") >&5
3653  (eval "$ac_compiler -v >&5") 2>&5
3654  ac_status=$?
3655  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656  (exit $ac_status); }
3657{ (ac_try="$ac_compiler -V >&5"
3658case "(($ac_try" in
3659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660  *) ac_try_echo=$ac_try;;
3661esac
3662eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3663$as_echo "$ac_try_echo") >&5
3664  (eval "$ac_compiler -V >&5") 2>&5
3665  ac_status=$?
3666  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667  (exit $ac_status); }
3668
3669{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3670$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3671if test "${ac_cv_c_compiler_gnu+set}" = set; then
3672  $as_echo_n "(cached) " >&6
3673else
3674  cat >conftest.$ac_ext <<_ACEOF
3675/* confdefs.h.  */
3676_ACEOF
3677cat confdefs.h >>conftest.$ac_ext
3678cat >>conftest.$ac_ext <<_ACEOF
3679/* end confdefs.h.  */
3680
3681int
3682main ()
3683{
3684#ifndef __GNUC__
3685       choke me
3686#endif
3687
3688  ;
3689  return 0;
3690}
3691_ACEOF
3692rm -f conftest.$ac_objext
3693if { (ac_try="$ac_compile"
3694case "(($ac_try" in
3695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696  *) ac_try_echo=$ac_try;;
3697esac
3698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3699$as_echo "$ac_try_echo") >&5
3700  (eval "$ac_compile") 2>conftest.er1
3701  ac_status=$?
3702  grep -v '^ *+' conftest.er1 >conftest.err
3703  rm -f conftest.er1
3704  cat conftest.err >&5
3705  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706  (exit $ac_status); } && {
3707	 test -z "$ac_c_werror_flag" ||
3708	 test ! -s conftest.err
3709       } && test -s conftest.$ac_objext; then
3710  ac_compiler_gnu=yes
3711else
3712  $as_echo "$as_me: failed program was:" >&5
3713sed 's/^/| /' conftest.$ac_ext >&5
3714
3715	ac_compiler_gnu=no
3716fi
3717
3718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719ac_cv_c_compiler_gnu=$ac_compiler_gnu
3720
3721fi
3722{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3723$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3724if test $ac_compiler_gnu = yes; then
3725  GCC=yes
3726else
3727  GCC=
3728fi
3729ac_test_CFLAGS=${CFLAGS+set}
3730ac_save_CFLAGS=$CFLAGS
3731{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3732$as_echo_n "checking whether $CC accepts -g... " >&6; }
3733if test "${ac_cv_prog_cc_g+set}" = set; then
3734  $as_echo_n "(cached) " >&6
3735else
3736  ac_save_c_werror_flag=$ac_c_werror_flag
3737   ac_c_werror_flag=yes
3738   ac_cv_prog_cc_g=no
3739   CFLAGS="-g"
3740   cat >conftest.$ac_ext <<_ACEOF
3741/* confdefs.h.  */
3742_ACEOF
3743cat confdefs.h >>conftest.$ac_ext
3744cat >>conftest.$ac_ext <<_ACEOF
3745/* end confdefs.h.  */
3746
3747int
3748main ()
3749{
3750
3751  ;
3752  return 0;
3753}
3754_ACEOF
3755rm -f conftest.$ac_objext
3756if { (ac_try="$ac_compile"
3757case "(($ac_try" in
3758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759  *) ac_try_echo=$ac_try;;
3760esac
3761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3762$as_echo "$ac_try_echo") >&5
3763  (eval "$ac_compile") 2>conftest.er1
3764  ac_status=$?
3765  grep -v '^ *+' conftest.er1 >conftest.err
3766  rm -f conftest.er1
3767  cat conftest.err >&5
3768  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769  (exit $ac_status); } && {
3770	 test -z "$ac_c_werror_flag" ||
3771	 test ! -s conftest.err
3772       } && test -s conftest.$ac_objext; then
3773  ac_cv_prog_cc_g=yes
3774else
3775  $as_echo "$as_me: failed program was:" >&5
3776sed 's/^/| /' conftest.$ac_ext >&5
3777
3778	CFLAGS=""
3779      cat >conftest.$ac_ext <<_ACEOF
3780/* confdefs.h.  */
3781_ACEOF
3782cat confdefs.h >>conftest.$ac_ext
3783cat >>conftest.$ac_ext <<_ACEOF
3784/* end confdefs.h.  */
3785
3786int
3787main ()
3788{
3789
3790  ;
3791  return 0;
3792}
3793_ACEOF
3794rm -f conftest.$ac_objext
3795if { (ac_try="$ac_compile"
3796case "(($ac_try" in
3797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798  *) ac_try_echo=$ac_try;;
3799esac
3800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3801$as_echo "$ac_try_echo") >&5
3802  (eval "$ac_compile") 2>conftest.er1
3803  ac_status=$?
3804  grep -v '^ *+' conftest.er1 >conftest.err
3805  rm -f conftest.er1
3806  cat conftest.err >&5
3807  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808  (exit $ac_status); } && {
3809	 test -z "$ac_c_werror_flag" ||
3810	 test ! -s conftest.err
3811       } && test -s conftest.$ac_objext; then
3812  :
3813else
3814  $as_echo "$as_me: failed program was:" >&5
3815sed 's/^/| /' conftest.$ac_ext >&5
3816
3817	ac_c_werror_flag=$ac_save_c_werror_flag
3818	 CFLAGS="-g"
3819	 cat >conftest.$ac_ext <<_ACEOF
3820/* confdefs.h.  */
3821_ACEOF
3822cat confdefs.h >>conftest.$ac_ext
3823cat >>conftest.$ac_ext <<_ACEOF
3824/* end confdefs.h.  */
3825
3826int
3827main ()
3828{
3829
3830  ;
3831  return 0;
3832}
3833_ACEOF
3834rm -f conftest.$ac_objext
3835if { (ac_try="$ac_compile"
3836case "(($ac_try" in
3837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838  *) ac_try_echo=$ac_try;;
3839esac
3840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3841$as_echo "$ac_try_echo") >&5
3842  (eval "$ac_compile") 2>conftest.er1
3843  ac_status=$?
3844  grep -v '^ *+' conftest.er1 >conftest.err
3845  rm -f conftest.er1
3846  cat conftest.err >&5
3847  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848  (exit $ac_status); } && {
3849	 test -z "$ac_c_werror_flag" ||
3850	 test ! -s conftest.err
3851       } && test -s conftest.$ac_objext; then
3852  ac_cv_prog_cc_g=yes
3853else
3854  $as_echo "$as_me: failed program was:" >&5
3855sed 's/^/| /' conftest.$ac_ext >&5
3856
3857
3858fi
3859
3860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861fi
3862
3863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3864fi
3865
3866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3867   ac_c_werror_flag=$ac_save_c_werror_flag
3868fi
3869{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3870$as_echo "$ac_cv_prog_cc_g" >&6; }
3871if test "$ac_test_CFLAGS" = set; then
3872  CFLAGS=$ac_save_CFLAGS
3873elif test $ac_cv_prog_cc_g = yes; then
3874  if test "$GCC" = yes; then
3875    CFLAGS="-g -O2"
3876  else
3877    CFLAGS="-g"
3878  fi
3879else
3880  if test "$GCC" = yes; then
3881    CFLAGS="-O2"
3882  else
3883    CFLAGS=
3884  fi
3885fi
3886{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3887$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3888if test "${ac_cv_prog_cc_c89+set}" = set; then
3889  $as_echo_n "(cached) " >&6
3890else
3891  ac_cv_prog_cc_c89=no
3892ac_save_CC=$CC
3893cat >conftest.$ac_ext <<_ACEOF
3894/* confdefs.h.  */
3895_ACEOF
3896cat confdefs.h >>conftest.$ac_ext
3897cat >>conftest.$ac_ext <<_ACEOF
3898/* end confdefs.h.  */
3899#include <stdarg.h>
3900#include <stdio.h>
3901#include <sys/types.h>
3902#include <sys/stat.h>
3903/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3904struct buf { int x; };
3905FILE * (*rcsopen) (struct buf *, struct stat *, int);
3906static char *e (p, i)
3907     char **p;
3908     int i;
3909{
3910  return p[i];
3911}
3912static char *f (char * (*g) (char **, int), char **p, ...)
3913{
3914  char *s;
3915  va_list v;
3916  va_start (v,p);
3917  s = g (p, va_arg (v,int));
3918  va_end (v);
3919  return s;
3920}
3921
3922/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3923   function prototypes and stuff, but not '\xHH' hex character constants.
3924   These don't provoke an error unfortunately, instead are silently treated
3925   as 'x'.  The following induces an error, until -std is added to get
3926   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3927   array size at least.  It's necessary to write '\x00'==0 to get something
3928   that's true only with -std.  */
3929int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3930
3931/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3932   inside strings and character constants.  */
3933#define FOO(x) 'x'
3934int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3935
3936int test (int i, double x);
3937struct s1 {int (*f) (int a);};
3938struct s2 {int (*f) (double a);};
3939int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3940int argc;
3941char **argv;
3942int
3943main ()
3944{
3945return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3946  ;
3947  return 0;
3948}
3949_ACEOF
3950for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3951	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3952do
3953  CC="$ac_save_CC $ac_arg"
3954  rm -f conftest.$ac_objext
3955if { (ac_try="$ac_compile"
3956case "(($ac_try" in
3957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958  *) ac_try_echo=$ac_try;;
3959esac
3960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3961$as_echo "$ac_try_echo") >&5
3962  (eval "$ac_compile") 2>conftest.er1
3963  ac_status=$?
3964  grep -v '^ *+' conftest.er1 >conftest.err
3965  rm -f conftest.er1
3966  cat conftest.err >&5
3967  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968  (exit $ac_status); } && {
3969	 test -z "$ac_c_werror_flag" ||
3970	 test ! -s conftest.err
3971       } && test -s conftest.$ac_objext; then
3972  ac_cv_prog_cc_c89=$ac_arg
3973else
3974  $as_echo "$as_me: failed program was:" >&5
3975sed 's/^/| /' conftest.$ac_ext >&5
3976
3977
3978fi
3979
3980rm -f core conftest.err conftest.$ac_objext
3981  test "x$ac_cv_prog_cc_c89" != "xno" && break
3982done
3983rm -f conftest.$ac_ext
3984CC=$ac_save_CC
3985
3986fi
3987# AC_CACHE_VAL
3988case "x$ac_cv_prog_cc_c89" in
3989  x)
3990    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3991$as_echo "none needed" >&6; } ;;
3992  xno)
3993    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3994$as_echo "unsupported" >&6; } ;;
3995  *)
3996    CC="$CC $ac_cv_prog_cc_c89"
3997    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3998$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3999esac
4000
4001
4002ac_ext=c
4003ac_cpp='$CPP $CPPFLAGS'
4004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007
4008depcc="$CC"   am_compiler_list=
4009
4010{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4011$as_echo_n "checking dependency style of $depcc... " >&6; }
4012if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4013  $as_echo_n "(cached) " >&6
4014else
4015  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4016  # We make a subdir and do the tests there.  Otherwise we can end up
4017  # making bogus files that we don't know about and never remove.  For
4018  # instance it was reported that on HP-UX the gcc test will end up
4019  # making a dummy file named `D' -- because `-MD' means `put the output
4020  # in D'.
4021  mkdir conftest.dir
4022  # Copy depcomp to subdir because otherwise we won't find it if we're
4023  # using a relative directory.
4024  cp "$am_depcomp" conftest.dir
4025  cd conftest.dir
4026  # We will build objects and dependencies in a subdirectory because
4027  # it helps to detect inapplicable dependency modes.  For instance
4028  # both Tru64's cc and ICC support -MD to output dependencies as a
4029  # side effect of compilation, but ICC will put the dependencies in
4030  # the current directory while Tru64 will put them in the object
4031  # directory.
4032  mkdir sub
4033
4034  am_cv_CC_dependencies_compiler_type=none
4035  if test "$am_compiler_list" = ""; then
4036     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4037  fi
4038  for depmode in $am_compiler_list; do
4039    # Setup a source with many dependencies, because some compilers
4040    # like to wrap large dependency lists on column 80 (with \), and
4041    # we should not choose a depcomp mode which is confused by this.
4042    #
4043    # We need to recreate these files for each test, as the compiler may
4044    # overwrite some of them when testing with obscure command lines.
4045    # This happens at least with the AIX C compiler.
4046    : > sub/conftest.c
4047    for i in 1 2 3 4 5 6; do
4048      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4049      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4050      # Solaris 8's {/usr,}/bin/sh.
4051      touch sub/conftst$i.h
4052    done
4053    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4054
4055    case $depmode in
4056    nosideeffect)
4057      # after this tag, mechanisms are not by side-effect, so they'll
4058      # only be used when explicitly requested
4059      if test "x$enable_dependency_tracking" = xyes; then
4060	continue
4061      else
4062	break
4063      fi
4064      ;;
4065    none) break ;;
4066    esac
4067    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4068    # mode.  It turns out that the SunPro C++ compiler does not properly
4069    # handle `-M -o', and we need to detect this.
4070    if depmode=$depmode \
4071       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4072       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4073       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4074         >/dev/null 2>conftest.err &&
4075       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4076       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4077       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4078       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4079      # icc doesn't choke on unknown options, it will just issue warnings
4080      # or remarks (even with -Werror).  So we grep stderr for any message
4081      # that says an option was ignored or not supported.
4082      # When given -MP, icc 7.0 and 7.1 complain thusly:
4083      #   icc: Command line warning: ignoring option '-M'; no argument required
4084      # The diagnosis changed in icc 8.0:
4085      #   icc: Command line remark: option '-MP' not supported
4086      if (grep 'ignoring option' conftest.err ||
4087          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4088        am_cv_CC_dependencies_compiler_type=$depmode
4089        break
4090      fi
4091    fi
4092  done
4093
4094  cd ..
4095  rm -rf conftest.dir
4096else
4097  am_cv_CC_dependencies_compiler_type=none
4098fi
4099
4100fi
4101{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4102$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4103CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4104
4105 if
4106  test "x$enable_dependency_tracking" != xno \
4107  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4108  am__fastdepCC_TRUE=
4109  am__fastdepCC_FALSE='#'
4110else
4111  am__fastdepCC_TRUE='#'
4112  am__fastdepCC_FALSE=
4113fi
4114
4115
4116# Check whether --enable-shared was given.
4117if test "${enable_shared+set}" = set; then
4118  enableval=$enable_shared; p=${PACKAGE-default}
4119    case $enableval in
4120    yes) enable_shared=yes ;;
4121    no) enable_shared=no ;;
4122    *)
4123      enable_shared=no
4124      # Look at the argument we got.  We use all the common list separators.
4125      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4126      for pkg in $enableval; do
4127	IFS="$lt_save_ifs"
4128	if test "X$pkg" = "X$p"; then
4129	  enable_shared=yes
4130	fi
4131      done
4132      IFS="$lt_save_ifs"
4133      ;;
4134    esac
4135else
4136  enable_shared=yes
4137fi
4138
4139
4140# Check whether --enable-static was given.
4141if test "${enable_static+set}" = set; then
4142  enableval=$enable_static; p=${PACKAGE-default}
4143    case $enableval in
4144    yes) enable_static=yes ;;
4145    no) enable_static=no ;;
4146    *)
4147     enable_static=no
4148      # Look at the argument we got.  We use all the common list separators.
4149      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4150      for pkg in $enableval; do
4151	IFS="$lt_save_ifs"
4152	if test "X$pkg" = "X$p"; then
4153	  enable_static=yes
4154	fi
4155      done
4156      IFS="$lt_save_ifs"
4157      ;;
4158    esac
4159else
4160  enable_static=yes
4161fi
4162
4163
4164# Check whether --enable-fast-install was given.
4165if test "${enable_fast_install+set}" = set; then
4166  enableval=$enable_fast_install; p=${PACKAGE-default}
4167    case $enableval in
4168    yes) enable_fast_install=yes ;;
4169    no) enable_fast_install=no ;;
4170    *)
4171      enable_fast_install=no
4172      # Look at the argument we got.  We use all the common list separators.
4173      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4174      for pkg in $enableval; do
4175	IFS="$lt_save_ifs"
4176	if test "X$pkg" = "X$p"; then
4177	  enable_fast_install=yes
4178	fi
4179      done
4180      IFS="$lt_save_ifs"
4181      ;;
4182    esac
4183else
4184  enable_fast_install=yes
4185fi
4186
4187
4188# Make sure we can run config.sub.
4189$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4190  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4191$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4192   { (exit 1); exit 1; }; }
4193
4194{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4195$as_echo_n "checking build system type... " >&6; }
4196if test "${ac_cv_build+set}" = set; then
4197  $as_echo_n "(cached) " >&6
4198else
4199  ac_build_alias=$build_alias
4200test "x$ac_build_alias" = x &&
4201  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4202test "x$ac_build_alias" = x &&
4203  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4204$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4205   { (exit 1); exit 1; }; }
4206ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4207  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4208$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4209   { (exit 1); exit 1; }; }
4210
4211fi
4212{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4213$as_echo "$ac_cv_build" >&6; }
4214case $ac_cv_build in
4215*-*-*) ;;
4216*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4217$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4218   { (exit 1); exit 1; }; };;
4219esac
4220build=$ac_cv_build
4221ac_save_IFS=$IFS; IFS='-'
4222set x $ac_cv_build
4223shift
4224build_cpu=$1
4225build_vendor=$2
4226shift; shift
4227# Remember, the first character of IFS is used to create $*,
4228# except with old shells:
4229build_os=$*
4230IFS=$ac_save_IFS
4231case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4232
4233
4234{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4235$as_echo_n "checking host system type... " >&6; }
4236if test "${ac_cv_host+set}" = set; then
4237  $as_echo_n "(cached) " >&6
4238else
4239  if test "x$host_alias" = x; then
4240  ac_cv_host=$ac_cv_build
4241else
4242  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4243    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4244$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4245   { (exit 1); exit 1; }; }
4246fi
4247
4248fi
4249{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4250$as_echo "$ac_cv_host" >&6; }
4251case $ac_cv_host in
4252*-*-*) ;;
4253*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4254$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4255   { (exit 1); exit 1; }; };;
4256esac
4257host=$ac_cv_host
4258ac_save_IFS=$IFS; IFS='-'
4259set x $ac_cv_host
4260shift
4261host_cpu=$1
4262host_vendor=$2
4263shift; shift
4264# Remember, the first character of IFS is used to create $*,
4265# except with old shells:
4266host_os=$*
4267IFS=$ac_save_IFS
4268case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4269
4270
4271{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4272$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4273if test "${lt_cv_path_SED+set}" = set; then
4274  $as_echo_n "(cached) " >&6
4275else
4276  # Loop through the user's path and test for sed and gsed.
4277# Then use that list of sed's as ones to test for truncation.
4278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH
4280do
4281  IFS=$as_save_IFS
4282  test -z "$as_dir" && as_dir=.
4283  for lt_ac_prog in sed gsed; do
4284    for ac_exec_ext in '' $ac_executable_extensions; do
4285      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4286        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4287      fi
4288    done
4289  done
4290done
4291IFS=$as_save_IFS
4292lt_ac_max=0
4293lt_ac_count=0
4294# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4295# along with /bin/sed that truncates output.
4296for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4297  test ! -f $lt_ac_sed && continue
4298  cat /dev/null > conftest.in
4299  lt_ac_count=0
4300  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4301  # Check for GNU sed and select it if it is found.
4302  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4303    lt_cv_path_SED=$lt_ac_sed
4304    break
4305  fi
4306  while true; do
4307    cat conftest.in conftest.in >conftest.tmp
4308    mv conftest.tmp conftest.in
4309    cp conftest.in conftest.nl
4310    echo >>conftest.nl
4311    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4312    cmp -s conftest.out conftest.nl || break
4313    # 10000 chars as input seems more than enough
4314    test $lt_ac_count -gt 10 && break
4315    lt_ac_count=`expr $lt_ac_count + 1`
4316    if test $lt_ac_count -gt $lt_ac_max; then
4317      lt_ac_max=$lt_ac_count
4318      lt_cv_path_SED=$lt_ac_sed
4319    fi
4320  done
4321done
4322
4323fi
4324
4325SED=$lt_cv_path_SED
4326
4327{ $as_echo "$as_me:$LINENO: result: $SED" >&5
4328$as_echo "$SED" >&6; }
4329
4330{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4331$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4332if test "${ac_cv_path_GREP+set}" = set; then
4333  $as_echo_n "(cached) " >&6
4334else
4335  if test -z "$GREP"; then
4336  ac_path_GREP_found=false
4337  # Loop through the user's path and test for each of PROGNAME-LIST
4338  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4340do
4341  IFS=$as_save_IFS
4342  test -z "$as_dir" && as_dir=.
4343  for ac_prog in grep ggrep; do
4344    for ac_exec_ext in '' $ac_executable_extensions; do
4345      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4346      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4347# Check for GNU ac_path_GREP and select it if it is found.
4348  # Check for GNU $ac_path_GREP
4349case `"$ac_path_GREP" --version 2>&1` in
4350*GNU*)
4351  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4352*)
4353  ac_count=0
4354  $as_echo_n 0123456789 >"conftest.in"
4355  while :
4356  do
4357    cat "conftest.in" "conftest.in" >"conftest.tmp"
4358    mv "conftest.tmp" "conftest.in"
4359    cp "conftest.in" "conftest.nl"
4360    $as_echo 'GREP' >> "conftest.nl"
4361    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4362    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4363    ac_count=`expr $ac_count + 1`
4364    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4365      # Best one so far, save it but keep looking for a better one
4366      ac_cv_path_GREP="$ac_path_GREP"
4367      ac_path_GREP_max=$ac_count
4368    fi
4369    # 10*(2^10) chars as input seems more than enough
4370    test $ac_count -gt 10 && break
4371  done
4372  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4373esac
4374
4375      $ac_path_GREP_found && break 3
4376    done
4377  done
4378done
4379IFS=$as_save_IFS
4380  if test -z "$ac_cv_path_GREP"; then
4381    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4382$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4383   { (exit 1); exit 1; }; }
4384  fi
4385else
4386  ac_cv_path_GREP=$GREP
4387fi
4388
4389fi
4390{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4391$as_echo "$ac_cv_path_GREP" >&6; }
4392 GREP="$ac_cv_path_GREP"
4393
4394
4395{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4396$as_echo_n "checking for egrep... " >&6; }
4397if test "${ac_cv_path_EGREP+set}" = set; then
4398  $as_echo_n "(cached) " >&6
4399else
4400  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4401   then ac_cv_path_EGREP="$GREP -E"
4402   else
4403     if test -z "$EGREP"; then
4404  ac_path_EGREP_found=false
4405  # Loop through the user's path and test for each of PROGNAME-LIST
4406  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4408do
4409  IFS=$as_save_IFS
4410  test -z "$as_dir" && as_dir=.
4411  for ac_prog in egrep; do
4412    for ac_exec_ext in '' $ac_executable_extensions; do
4413      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4414      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4415# Check for GNU ac_path_EGREP and select it if it is found.
4416  # Check for GNU $ac_path_EGREP
4417case `"$ac_path_EGREP" --version 2>&1` in
4418*GNU*)
4419  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4420*)
4421  ac_count=0
4422  $as_echo_n 0123456789 >"conftest.in"
4423  while :
4424  do
4425    cat "conftest.in" "conftest.in" >"conftest.tmp"
4426    mv "conftest.tmp" "conftest.in"
4427    cp "conftest.in" "conftest.nl"
4428    $as_echo 'EGREP' >> "conftest.nl"
4429    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4430    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4431    ac_count=`expr $ac_count + 1`
4432    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4433      # Best one so far, save it but keep looking for a better one
4434      ac_cv_path_EGREP="$ac_path_EGREP"
4435      ac_path_EGREP_max=$ac_count
4436    fi
4437    # 10*(2^10) chars as input seems more than enough
4438    test $ac_count -gt 10 && break
4439  done
4440  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4441esac
4442
4443      $ac_path_EGREP_found && break 3
4444    done
4445  done
4446done
4447IFS=$as_save_IFS
4448  if test -z "$ac_cv_path_EGREP"; then
4449    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4450$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4451   { (exit 1); exit 1; }; }
4452  fi
4453else
4454  ac_cv_path_EGREP=$EGREP
4455fi
4456
4457   fi
4458fi
4459{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4460$as_echo "$ac_cv_path_EGREP" >&6; }
4461 EGREP="$ac_cv_path_EGREP"
4462
4463
4464
4465# Check whether --with-gnu-ld was given.
4466if test "${with_gnu_ld+set}" = set; then
4467  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4468else
4469  with_gnu_ld=no
4470fi
4471
4472ac_prog=ld
4473if test "$GCC" = yes; then
4474  # Check if gcc -print-prog-name=ld gives a path.
4475  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4476$as_echo_n "checking for ld used by $CC... " >&6; }
4477  case $host in
4478  *-*-mingw*)
4479    # gcc leaves a trailing carriage return which upsets mingw
4480    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4481  *)
4482    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4483  esac
4484  case $ac_prog in
4485    # Accept absolute paths.
4486    [\\/]* | ?:[\\/]*)
4487      re_direlt='/[^/][^/]*/\.\./'
4488      # Canonicalize the pathname of ld
4489      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4490      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4491	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4492      done
4493      test -z "$LD" && LD="$ac_prog"
4494      ;;
4495  "")
4496    # If it fails, then pretend we aren't using GCC.
4497    ac_prog=ld
4498    ;;
4499  *)
4500    # If it is relative, then search for the first ld in PATH.
4501    with_gnu_ld=unknown
4502    ;;
4503  esac
4504elif test "$with_gnu_ld" = yes; then
4505  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4506$as_echo_n "checking for GNU ld... " >&6; }
4507else
4508  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4509$as_echo_n "checking for non-GNU ld... " >&6; }
4510fi
4511if test "${lt_cv_path_LD+set}" = set; then
4512  $as_echo_n "(cached) " >&6
4513else
4514  if test -z "$LD"; then
4515  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4516  for ac_dir in $PATH; do
4517    IFS="$lt_save_ifs"
4518    test -z "$ac_dir" && ac_dir=.
4519    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4520      lt_cv_path_LD="$ac_dir/$ac_prog"
4521      # Check to see if the program is GNU ld.  I'd rather use --version,
4522      # but apparently some variants of GNU ld only accept -v.
4523      # Break only if it was the GNU/non-GNU ld that we prefer.
4524      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4525      *GNU* | *'with BFD'*)
4526	test "$with_gnu_ld" != no && break
4527	;;
4528      *)
4529	test "$with_gnu_ld" != yes && break
4530	;;
4531      esac
4532    fi
4533  done
4534  IFS="$lt_save_ifs"
4535else
4536  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4537fi
4538fi
4539
4540LD="$lt_cv_path_LD"
4541if test -n "$LD"; then
4542  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4543$as_echo "$LD" >&6; }
4544else
4545  { $as_echo "$as_me:$LINENO: result: no" >&5
4546$as_echo "no" >&6; }
4547fi
4548test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4549$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4550   { (exit 1); exit 1; }; }
4551{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4552$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4553if test "${lt_cv_prog_gnu_ld+set}" = set; then
4554  $as_echo_n "(cached) " >&6
4555else
4556  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4557case `$LD -v 2>&1 </dev/null` in
4558*GNU* | *'with BFD'*)
4559  lt_cv_prog_gnu_ld=yes
4560  ;;
4561*)
4562  lt_cv_prog_gnu_ld=no
4563  ;;
4564esac
4565fi
4566{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4567$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4568with_gnu_ld=$lt_cv_prog_gnu_ld
4569
4570
4571{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4572$as_echo_n "checking for $LD option to reload object files... " >&6; }
4573if test "${lt_cv_ld_reload_flag+set}" = set; then
4574  $as_echo_n "(cached) " >&6
4575else
4576  lt_cv_ld_reload_flag='-r'
4577fi
4578{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4579$as_echo "$lt_cv_ld_reload_flag" >&6; }
4580reload_flag=$lt_cv_ld_reload_flag
4581case $reload_flag in
4582"" | " "*) ;;
4583*) reload_flag=" $reload_flag" ;;
4584esac
4585reload_cmds='$LD$reload_flag -o $output$reload_objs'
4586case $host_os in
4587  darwin*)
4588    if test "$GCC" = yes; then
4589      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4590    else
4591      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4592    fi
4593    ;;
4594esac
4595
4596{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4597$as_echo_n "checking for BSD-compatible nm... " >&6; }
4598if test "${lt_cv_path_NM+set}" = set; then
4599  $as_echo_n "(cached) " >&6
4600else
4601  if test -n "$NM"; then
4602  # Let the user override the test.
4603  lt_cv_path_NM="$NM"
4604else
4605  lt_nm_to_check="${ac_tool_prefix}nm"
4606  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4607    lt_nm_to_check="$lt_nm_to_check nm"
4608  fi
4609  for lt_tmp_nm in $lt_nm_to_check; do
4610    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4611    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4612      IFS="$lt_save_ifs"
4613      test -z "$ac_dir" && ac_dir=.
4614      tmp_nm="$ac_dir/$lt_tmp_nm"
4615      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4616	# Check to see if the nm accepts a BSD-compat flag.
4617	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4618	#   nm: unknown option "B" ignored
4619	# Tru64's nm complains that /dev/null is an invalid object file
4620	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4621	*/dev/null* | *'Invalid file or object type'*)
4622	  lt_cv_path_NM="$tmp_nm -B"
4623	  break
4624	  ;;
4625	*)
4626	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4627	  */dev/null*)
4628	    lt_cv_path_NM="$tmp_nm -p"
4629	    break
4630	    ;;
4631	  *)
4632	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4633	    continue # so that we can try to find one that supports BSD flags
4634	    ;;
4635	  esac
4636	  ;;
4637	esac
4638      fi
4639    done
4640    IFS="$lt_save_ifs"
4641  done
4642  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4643fi
4644fi
4645{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4646$as_echo "$lt_cv_path_NM" >&6; }
4647NM="$lt_cv_path_NM"
4648
4649{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4650$as_echo_n "checking whether ln -s works... " >&6; }
4651LN_S=$as_ln_s
4652if test "$LN_S" = "ln -s"; then
4653  { $as_echo "$as_me:$LINENO: result: yes" >&5
4654$as_echo "yes" >&6; }
4655else
4656  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4657$as_echo "no, using $LN_S" >&6; }
4658fi
4659
4660{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4661$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4662if test "${lt_cv_deplibs_check_method+set}" = set; then
4663  $as_echo_n "(cached) " >&6
4664else
4665  lt_cv_file_magic_cmd='$MAGIC_CMD'
4666lt_cv_file_magic_test_file=
4667lt_cv_deplibs_check_method='unknown'
4668# Need to set the preceding variable on all platforms that support
4669# interlibrary dependencies.
4670# 'none' -- dependencies not supported.
4671# `unknown' -- same as none, but documents that we really don't know.
4672# 'pass_all' -- all dependencies passed with no checks.
4673# 'test_compile' -- check by making test program.
4674# 'file_magic [[regex]]' -- check by looking for files in library path
4675# which responds to the $file_magic_cmd with a given extended regex.
4676# If you have `file' or equivalent on your system and you're not sure
4677# whether `pass_all' will *always* work, you probably want this one.
4678
4679case $host_os in
4680aix[4-9]*)
4681  lt_cv_deplibs_check_method=pass_all
4682  ;;
4683
4684beos*)
4685  lt_cv_deplibs_check_method=pass_all
4686  ;;
4687
4688bsdi[45]*)
4689  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4690  lt_cv_file_magic_cmd='/usr/bin/file -L'
4691  lt_cv_file_magic_test_file=/shlib/libc.so
4692  ;;
4693
4694cygwin*)
4695  # func_win32_libid is a shell function defined in ltmain.sh
4696  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4697  lt_cv_file_magic_cmd='func_win32_libid'
4698  ;;
4699
4700mingw* | pw32*)
4701  # Base MSYS/MinGW do not provide the 'file' command needed by
4702  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4703  # unless we find 'file', for example because we are cross-compiling.
4704  if ( file / ) >/dev/null 2>&1; then
4705    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4706    lt_cv_file_magic_cmd='func_win32_libid'
4707  else
4708    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4709    lt_cv_file_magic_cmd='$OBJDUMP -f'
4710  fi
4711  ;;
4712
4713darwin* | rhapsody*)
4714  lt_cv_deplibs_check_method=pass_all
4715  ;;
4716
4717freebsd* | dragonfly*)
4718  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4719    case $host_cpu in
4720    i*86 )
4721      # Not sure whether the presence of OpenBSD here was a mistake.
4722      # Let's accept both of them until this is cleared up.
4723      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4724      lt_cv_file_magic_cmd=/usr/bin/file
4725      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4726      ;;
4727    esac
4728  else
4729    lt_cv_deplibs_check_method=pass_all
4730  fi
4731  ;;
4732
4733gnu*)
4734  lt_cv_deplibs_check_method=pass_all
4735  ;;
4736
4737hpux10.20* | hpux11*)
4738  lt_cv_file_magic_cmd=/usr/bin/file
4739  case $host_cpu in
4740  ia64*)
4741    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4742    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4743    ;;
4744  hppa*64*)
4745    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]'
4746    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4747    ;;
4748  *)
4749    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4750    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4751    ;;
4752  esac
4753  ;;
4754
4755interix[3-9]*)
4756  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4757  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4758  ;;
4759
4760irix5* | irix6* | nonstopux*)
4761  case $LD in
4762  *-32|*"-32 ") libmagic=32-bit;;
4763  *-n32|*"-n32 ") libmagic=N32;;
4764  *-64|*"-64 ") libmagic=64-bit;;
4765  *) libmagic=never-match;;
4766  esac
4767  lt_cv_deplibs_check_method=pass_all
4768  ;;
4769
4770# This must be Linux ELF.
4771linux* | k*bsd*-gnu)
4772  lt_cv_deplibs_check_method=pass_all
4773  ;;
4774
4775netbsd*)
4776  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4777    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4778  else
4779    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4780  fi
4781  ;;
4782
4783newos6*)
4784  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4785  lt_cv_file_magic_cmd=/usr/bin/file
4786  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4787  ;;
4788
4789nto-qnx*)
4790  lt_cv_deplibs_check_method=unknown
4791  ;;
4792
4793openbsd*)
4794  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4795    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4796  else
4797    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4798  fi
4799  ;;
4800
4801osf3* | osf4* | osf5*)
4802  lt_cv_deplibs_check_method=pass_all
4803  ;;
4804
4805rdos*)
4806  lt_cv_deplibs_check_method=pass_all
4807  ;;
4808
4809solaris*)
4810  lt_cv_deplibs_check_method=pass_all
4811  ;;
4812
4813sysv4 | sysv4.3*)
4814  case $host_vendor in
4815  motorola)
4816    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]'
4817    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4818    ;;
4819  ncr)
4820    lt_cv_deplibs_check_method=pass_all
4821    ;;
4822  sequent)
4823    lt_cv_file_magic_cmd='/bin/file'
4824    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4825    ;;
4826  sni)
4827    lt_cv_file_magic_cmd='/bin/file'
4828    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4829    lt_cv_file_magic_test_file=/lib/libc.so
4830    ;;
4831  siemens)
4832    lt_cv_deplibs_check_method=pass_all
4833    ;;
4834  pc)
4835    lt_cv_deplibs_check_method=pass_all
4836    ;;
4837  esac
4838  ;;
4839
4840sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4841  lt_cv_deplibs_check_method=pass_all
4842  ;;
4843esac
4844
4845fi
4846{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4847$as_echo "$lt_cv_deplibs_check_method" >&6; }
4848file_magic_cmd=$lt_cv_file_magic_cmd
4849deplibs_check_method=$lt_cv_deplibs_check_method
4850test -z "$deplibs_check_method" && deplibs_check_method=unknown
4851
4852
4853
4854
4855# If no C compiler was specified, use CC.
4856LTCC=${LTCC-"$CC"}
4857
4858# If no C compiler flags were specified, use CFLAGS.
4859LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4860
4861# Allow CC to be a program name with arguments.
4862compiler=$CC
4863
4864
4865# Check whether --enable-libtool-lock was given.
4866if test "${enable_libtool_lock+set}" = set; then
4867  enableval=$enable_libtool_lock;
4868fi
4869
4870test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4871
4872# Some flags need to be propagated to the compiler or linker for good
4873# libtool support.
4874case $host in
4875ia64-*-hpux*)
4876  # Find out which ABI we are using.
4877  echo 'int i;' > conftest.$ac_ext
4878  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4879  (eval $ac_compile) 2>&5
4880  ac_status=$?
4881  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882  (exit $ac_status); }; then
4883    case `/usr/bin/file conftest.$ac_objext` in
4884    *ELF-32*)
4885      HPUX_IA64_MODE="32"
4886      ;;
4887    *ELF-64*)
4888      HPUX_IA64_MODE="64"
4889      ;;
4890    esac
4891  fi
4892  rm -rf conftest*
4893  ;;
4894*-*-irix6*)
4895  # Find out which ABI we are using.
4896  echo '#line 4896 "configure"' > conftest.$ac_ext
4897  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4898  (eval $ac_compile) 2>&5
4899  ac_status=$?
4900  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901  (exit $ac_status); }; then
4902   if test "$lt_cv_prog_gnu_ld" = yes; then
4903    case `/usr/bin/file conftest.$ac_objext` in
4904    *32-bit*)
4905      LD="${LD-ld} -melf32bsmip"
4906      ;;
4907    *N32*)
4908      LD="${LD-ld} -melf32bmipn32"
4909      ;;
4910    *64-bit*)
4911      LD="${LD-ld} -melf64bmip"
4912      ;;
4913    esac
4914   else
4915    case `/usr/bin/file conftest.$ac_objext` in
4916    *32-bit*)
4917      LD="${LD-ld} -32"
4918      ;;
4919    *N32*)
4920      LD="${LD-ld} -n32"
4921      ;;
4922    *64-bit*)
4923      LD="${LD-ld} -64"
4924      ;;
4925    esac
4926   fi
4927  fi
4928  rm -rf conftest*
4929  ;;
4930
4931x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4932s390*-*linux*|sparc*-*linux*)
4933  # Find out which ABI we are using.
4934  echo 'int i;' > conftest.$ac_ext
4935  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936  (eval $ac_compile) 2>&5
4937  ac_status=$?
4938  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939  (exit $ac_status); }; then
4940    case `/usr/bin/file conftest.o` in
4941    *32-bit*)
4942      case $host in
4943        x86_64-*kfreebsd*-gnu)
4944          LD="${LD-ld} -m elf_i386_fbsd"
4945          ;;
4946        x86_64-*linux*)
4947          LD="${LD-ld} -m elf_i386"
4948          ;;
4949        ppc64-*linux*|powerpc64-*linux*)
4950          LD="${LD-ld} -m elf32ppclinux"
4951          ;;
4952        s390x-*linux*)
4953          LD="${LD-ld} -m elf_s390"
4954          ;;
4955        sparc64-*linux*)
4956          LD="${LD-ld} -m elf32_sparc"
4957          ;;
4958      esac
4959      ;;
4960    *64-bit*)
4961      case $host in
4962        x86_64-*kfreebsd*-gnu)
4963          LD="${LD-ld} -m elf_x86_64_fbsd"
4964          ;;
4965        x86_64-*linux*)
4966          LD="${LD-ld} -m elf_x86_64"
4967          ;;
4968        ppc*-*linux*|powerpc*-*linux*)
4969          LD="${LD-ld} -m elf64ppc"
4970          ;;
4971        s390*-*linux*)
4972          LD="${LD-ld} -m elf64_s390"
4973          ;;
4974        sparc*-*linux*)
4975          LD="${LD-ld} -m elf64_sparc"
4976          ;;
4977      esac
4978      ;;
4979    esac
4980  fi
4981  rm -rf conftest*
4982  ;;
4983
4984*-*-sco3.2v5*)
4985  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4986  SAVE_CFLAGS="$CFLAGS"
4987  CFLAGS="$CFLAGS -belf"
4988  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4989$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4990if test "${lt_cv_cc_needs_belf+set}" = set; then
4991  $as_echo_n "(cached) " >&6
4992else
4993  ac_ext=c
4994ac_cpp='$CPP $CPPFLAGS'
4995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4997ac_compiler_gnu=$ac_cv_c_compiler_gnu
4998
4999     cat >conftest.$ac_ext <<_ACEOF
5000/* confdefs.h.  */
5001_ACEOF
5002cat confdefs.h >>conftest.$ac_ext
5003cat >>conftest.$ac_ext <<_ACEOF
5004/* end confdefs.h.  */
5005
5006int
5007main ()
5008{
5009
5010  ;
5011  return 0;
5012}
5013_ACEOF
5014rm -f conftest.$ac_objext conftest$ac_exeext
5015if { (ac_try="$ac_link"
5016case "(($ac_try" in
5017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018  *) ac_try_echo=$ac_try;;
5019esac
5020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5021$as_echo "$ac_try_echo") >&5
5022  (eval "$ac_link") 2>conftest.er1
5023  ac_status=$?
5024  grep -v '^ *+' conftest.er1 >conftest.err
5025  rm -f conftest.er1
5026  cat conftest.err >&5
5027  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028  (exit $ac_status); } && {
5029	 test -z "$ac_c_werror_flag" ||
5030	 test ! -s conftest.err
5031       } && test -s conftest$ac_exeext && {
5032	 test "$cross_compiling" = yes ||
5033	 $as_test_x conftest$ac_exeext
5034       }; then
5035  lt_cv_cc_needs_belf=yes
5036else
5037  $as_echo "$as_me: failed program was:" >&5
5038sed 's/^/| /' conftest.$ac_ext >&5
5039
5040	lt_cv_cc_needs_belf=no
5041fi
5042
5043rm -rf conftest.dSYM
5044rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5045      conftest$ac_exeext conftest.$ac_ext
5046     ac_ext=c
5047ac_cpp='$CPP $CPPFLAGS'
5048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050ac_compiler_gnu=$ac_cv_c_compiler_gnu
5051
5052fi
5053{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5054$as_echo "$lt_cv_cc_needs_belf" >&6; }
5055  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5056    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5057    CFLAGS="$SAVE_CFLAGS"
5058  fi
5059  ;;
5060sparc*-*solaris*)
5061  # Find out which ABI we are using.
5062  echo 'int i;' > conftest.$ac_ext
5063  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5064  (eval $ac_compile) 2>&5
5065  ac_status=$?
5066  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067  (exit $ac_status); }; then
5068    case `/usr/bin/file conftest.o` in
5069    *64-bit*)
5070      case $lt_cv_prog_gnu_ld in
5071      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5072      *)
5073        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5074	  LD="${LD-ld} -64"
5075	fi
5076	;;
5077      esac
5078      ;;
5079    esac
5080  fi
5081  rm -rf conftest*
5082  ;;
5083
5084
5085esac
5086
5087need_locks="$enable_libtool_lock"
5088
5089
5090ac_ext=c
5091ac_cpp='$CPP $CPPFLAGS'
5092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5094ac_compiler_gnu=$ac_cv_c_compiler_gnu
5095{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5096$as_echo_n "checking how to run the C preprocessor... " >&6; }
5097# On Suns, sometimes $CPP names a directory.
5098if test -n "$CPP" && test -d "$CPP"; then
5099  CPP=
5100fi
5101if test -z "$CPP"; then
5102  if test "${ac_cv_prog_CPP+set}" = set; then
5103  $as_echo_n "(cached) " >&6
5104else
5105      # Double quotes because CPP needs to be expanded
5106    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5107    do
5108      ac_preproc_ok=false
5109for ac_c_preproc_warn_flag in '' yes
5110do
5111  # Use a header file that comes with gcc, so configuring glibc
5112  # with a fresh cross-compiler works.
5113  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5114  # <limits.h> exists even on freestanding compilers.
5115  # On the NeXT, cc -E runs the code through the compiler's parser,
5116  # not just through cpp. "Syntax error" is here to catch this case.
5117  cat >conftest.$ac_ext <<_ACEOF
5118/* confdefs.h.  */
5119_ACEOF
5120cat confdefs.h >>conftest.$ac_ext
5121cat >>conftest.$ac_ext <<_ACEOF
5122/* end confdefs.h.  */
5123#ifdef __STDC__
5124# include <limits.h>
5125#else
5126# include <assert.h>
5127#endif
5128		     Syntax error
5129_ACEOF
5130if { (ac_try="$ac_cpp conftest.$ac_ext"
5131case "(($ac_try" in
5132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133  *) ac_try_echo=$ac_try;;
5134esac
5135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5136$as_echo "$ac_try_echo") >&5
5137  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5138  ac_status=$?
5139  grep -v '^ *+' conftest.er1 >conftest.err
5140  rm -f conftest.er1
5141  cat conftest.err >&5
5142  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143  (exit $ac_status); } >/dev/null && {
5144	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5145	 test ! -s conftest.err
5146       }; then
5147  :
5148else
5149  $as_echo "$as_me: failed program was:" >&5
5150sed 's/^/| /' conftest.$ac_ext >&5
5151
5152  # Broken: fails on valid input.
5153continue
5154fi
5155
5156rm -f conftest.err conftest.$ac_ext
5157
5158  # OK, works on sane cases.  Now check whether nonexistent headers
5159  # can be detected and how.
5160  cat >conftest.$ac_ext <<_ACEOF
5161/* confdefs.h.  */
5162_ACEOF
5163cat confdefs.h >>conftest.$ac_ext
5164cat >>conftest.$ac_ext <<_ACEOF
5165/* end confdefs.h.  */
5166#include <ac_nonexistent.h>
5167_ACEOF
5168if { (ac_try="$ac_cpp conftest.$ac_ext"
5169case "(($ac_try" in
5170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5171  *) ac_try_echo=$ac_try;;
5172esac
5173eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5174$as_echo "$ac_try_echo") >&5
5175  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5176  ac_status=$?
5177  grep -v '^ *+' conftest.er1 >conftest.err
5178  rm -f conftest.er1
5179  cat conftest.err >&5
5180  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181  (exit $ac_status); } >/dev/null && {
5182	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5183	 test ! -s conftest.err
5184       }; then
5185  # Broken: success on invalid input.
5186continue
5187else
5188  $as_echo "$as_me: failed program was:" >&5
5189sed 's/^/| /' conftest.$ac_ext >&5
5190
5191  # Passes both tests.
5192ac_preproc_ok=:
5193break
5194fi
5195
5196rm -f conftest.err conftest.$ac_ext
5197
5198done
5199# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5200rm -f conftest.err conftest.$ac_ext
5201if $ac_preproc_ok; then
5202  break
5203fi
5204
5205    done
5206    ac_cv_prog_CPP=$CPP
5207
5208fi
5209  CPP=$ac_cv_prog_CPP
5210else
5211  ac_cv_prog_CPP=$CPP
5212fi
5213{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5214$as_echo "$CPP" >&6; }
5215ac_preproc_ok=false
5216for ac_c_preproc_warn_flag in '' yes
5217do
5218  # Use a header file that comes with gcc, so configuring glibc
5219  # with a fresh cross-compiler works.
5220  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5221  # <limits.h> exists even on freestanding compilers.
5222  # On the NeXT, cc -E runs the code through the compiler's parser,
5223  # not just through cpp. "Syntax error" is here to catch this case.
5224  cat >conftest.$ac_ext <<_ACEOF
5225/* confdefs.h.  */
5226_ACEOF
5227cat confdefs.h >>conftest.$ac_ext
5228cat >>conftest.$ac_ext <<_ACEOF
5229/* end confdefs.h.  */
5230#ifdef __STDC__
5231# include <limits.h>
5232#else
5233# include <assert.h>
5234#endif
5235		     Syntax error
5236_ACEOF
5237if { (ac_try="$ac_cpp conftest.$ac_ext"
5238case "(($ac_try" in
5239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5240  *) ac_try_echo=$ac_try;;
5241esac
5242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5243$as_echo "$ac_try_echo") >&5
5244  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5245  ac_status=$?
5246  grep -v '^ *+' conftest.er1 >conftest.err
5247  rm -f conftest.er1
5248  cat conftest.err >&5
5249  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250  (exit $ac_status); } >/dev/null && {
5251	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5252	 test ! -s conftest.err
5253       }; then
5254  :
5255else
5256  $as_echo "$as_me: failed program was:" >&5
5257sed 's/^/| /' conftest.$ac_ext >&5
5258
5259  # Broken: fails on valid input.
5260continue
5261fi
5262
5263rm -f conftest.err conftest.$ac_ext
5264
5265  # OK, works on sane cases.  Now check whether nonexistent headers
5266  # can be detected and how.
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#include <ac_nonexistent.h>
5274_ACEOF
5275if { (ac_try="$ac_cpp conftest.$ac_ext"
5276case "(($ac_try" in
5277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278  *) ac_try_echo=$ac_try;;
5279esac
5280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5281$as_echo "$ac_try_echo") >&5
5282  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5283  ac_status=$?
5284  grep -v '^ *+' conftest.er1 >conftest.err
5285  rm -f conftest.er1
5286  cat conftest.err >&5
5287  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288  (exit $ac_status); } >/dev/null && {
5289	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5290	 test ! -s conftest.err
5291       }; then
5292  # Broken: success on invalid input.
5293continue
5294else
5295  $as_echo "$as_me: failed program was:" >&5
5296sed 's/^/| /' conftest.$ac_ext >&5
5297
5298  # Passes both tests.
5299ac_preproc_ok=:
5300break
5301fi
5302
5303rm -f conftest.err conftest.$ac_ext
5304
5305done
5306# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5307rm -f conftest.err conftest.$ac_ext
5308if $ac_preproc_ok; then
5309  :
5310else
5311  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5313{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5314See \`config.log' for more details." >&5
5315$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5316See \`config.log' for more details." >&2;}
5317   { (exit 1); exit 1; }; }; }
5318fi
5319
5320ac_ext=c
5321ac_cpp='$CPP $CPPFLAGS'
5322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5324ac_compiler_gnu=$ac_cv_c_compiler_gnu
5325
5326
5327{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5328$as_echo_n "checking for ANSI C header files... " >&6; }
5329if test "${ac_cv_header_stdc+set}" = set; then
5330  $as_echo_n "(cached) " >&6
5331else
5332  cat >conftest.$ac_ext <<_ACEOF
5333/* confdefs.h.  */
5334_ACEOF
5335cat confdefs.h >>conftest.$ac_ext
5336cat >>conftest.$ac_ext <<_ACEOF
5337/* end confdefs.h.  */
5338#include <stdlib.h>
5339#include <stdarg.h>
5340#include <string.h>
5341#include <float.h>
5342
5343int
5344main ()
5345{
5346
5347  ;
5348  return 0;
5349}
5350_ACEOF
5351rm -f conftest.$ac_objext
5352if { (ac_try="$ac_compile"
5353case "(($ac_try" in
5354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355  *) ac_try_echo=$ac_try;;
5356esac
5357eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5358$as_echo "$ac_try_echo") >&5
5359  (eval "$ac_compile") 2>conftest.er1
5360  ac_status=$?
5361  grep -v '^ *+' conftest.er1 >conftest.err
5362  rm -f conftest.er1
5363  cat conftest.err >&5
5364  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365  (exit $ac_status); } && {
5366	 test -z "$ac_c_werror_flag" ||
5367	 test ! -s conftest.err
5368       } && test -s conftest.$ac_objext; then
5369  ac_cv_header_stdc=yes
5370else
5371  $as_echo "$as_me: failed program was:" >&5
5372sed 's/^/| /' conftest.$ac_ext >&5
5373
5374	ac_cv_header_stdc=no
5375fi
5376
5377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5378
5379if test $ac_cv_header_stdc = yes; then
5380  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5381  cat >conftest.$ac_ext <<_ACEOF
5382/* confdefs.h.  */
5383_ACEOF
5384cat confdefs.h >>conftest.$ac_ext
5385cat >>conftest.$ac_ext <<_ACEOF
5386/* end confdefs.h.  */
5387#include <string.h>
5388
5389_ACEOF
5390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5391  $EGREP "memchr" >/dev/null 2>&1; then
5392  :
5393else
5394  ac_cv_header_stdc=no
5395fi
5396rm -f conftest*
5397
5398fi
5399
5400if test $ac_cv_header_stdc = yes; then
5401  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5402  cat >conftest.$ac_ext <<_ACEOF
5403/* confdefs.h.  */
5404_ACEOF
5405cat confdefs.h >>conftest.$ac_ext
5406cat >>conftest.$ac_ext <<_ACEOF
5407/* end confdefs.h.  */
5408#include <stdlib.h>
5409
5410_ACEOF
5411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5412  $EGREP "free" >/dev/null 2>&1; then
5413  :
5414else
5415  ac_cv_header_stdc=no
5416fi
5417rm -f conftest*
5418
5419fi
5420
5421if test $ac_cv_header_stdc = yes; then
5422  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5423  if test "$cross_compiling" = yes; then
5424  :
5425else
5426  cat >conftest.$ac_ext <<_ACEOF
5427/* confdefs.h.  */
5428_ACEOF
5429cat confdefs.h >>conftest.$ac_ext
5430cat >>conftest.$ac_ext <<_ACEOF
5431/* end confdefs.h.  */
5432#include <ctype.h>
5433#include <stdlib.h>
5434#if ((' ' & 0x0FF) == 0x020)
5435# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5436# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5437#else
5438# define ISLOWER(c) \
5439		   (('a' <= (c) && (c) <= 'i') \
5440		     || ('j' <= (c) && (c) <= 'r') \
5441		     || ('s' <= (c) && (c) <= 'z'))
5442# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5443#endif
5444
5445#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5446int
5447main ()
5448{
5449  int i;
5450  for (i = 0; i < 256; i++)
5451    if (XOR (islower (i), ISLOWER (i))
5452	|| toupper (i) != TOUPPER (i))
5453      return 2;
5454  return 0;
5455}
5456_ACEOF
5457rm -f conftest$ac_exeext
5458if { (ac_try="$ac_link"
5459case "(($ac_try" in
5460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461  *) ac_try_echo=$ac_try;;
5462esac
5463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5464$as_echo "$ac_try_echo") >&5
5465  (eval "$ac_link") 2>&5
5466  ac_status=$?
5467  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5469  { (case "(($ac_try" in
5470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471  *) ac_try_echo=$ac_try;;
5472esac
5473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5474$as_echo "$ac_try_echo") >&5
5475  (eval "$ac_try") 2>&5
5476  ac_status=$?
5477  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478  (exit $ac_status); }; }; then
5479  :
5480else
5481  $as_echo "$as_me: program exited with status $ac_status" >&5
5482$as_echo "$as_me: failed program was:" >&5
5483sed 's/^/| /' conftest.$ac_ext >&5
5484
5485( exit $ac_status )
5486ac_cv_header_stdc=no
5487fi
5488rm -rf conftest.dSYM
5489rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5490fi
5491
5492
5493fi
5494fi
5495{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5496$as_echo "$ac_cv_header_stdc" >&6; }
5497if test $ac_cv_header_stdc = yes; then
5498
5499cat >>confdefs.h <<\_ACEOF
5500#define STDC_HEADERS 1
5501_ACEOF
5502
5503fi
5504
5505# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5516		  inttypes.h stdint.h unistd.h
5517do
5518as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5519{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5520$as_echo_n "checking for $ac_header... " >&6; }
5521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5522  $as_echo_n "(cached) " >&6
5523else
5524  cat >conftest.$ac_ext <<_ACEOF
5525/* confdefs.h.  */
5526_ACEOF
5527cat confdefs.h >>conftest.$ac_ext
5528cat >>conftest.$ac_ext <<_ACEOF
5529/* end confdefs.h.  */
5530$ac_includes_default
5531
5532#include <$ac_header>
5533_ACEOF
5534rm -f conftest.$ac_objext
5535if { (ac_try="$ac_compile"
5536case "(($ac_try" in
5537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538  *) ac_try_echo=$ac_try;;
5539esac
5540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5541$as_echo "$ac_try_echo") >&5
5542  (eval "$ac_compile") 2>conftest.er1
5543  ac_status=$?
5544  grep -v '^ *+' conftest.er1 >conftest.err
5545  rm -f conftest.er1
5546  cat conftest.err >&5
5547  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548  (exit $ac_status); } && {
5549	 test -z "$ac_c_werror_flag" ||
5550	 test ! -s conftest.err
5551       } && test -s conftest.$ac_objext; then
5552  eval "$as_ac_Header=yes"
5553else
5554  $as_echo "$as_me: failed program was:" >&5
5555sed 's/^/| /' conftest.$ac_ext >&5
5556
5557	eval "$as_ac_Header=no"
5558fi
5559
5560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561fi
5562ac_res=`eval 'as_val=${'$as_ac_Header'}
5563		 $as_echo "$as_val"'`
5564	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5565$as_echo "$ac_res" >&6; }
5566as_val=`eval 'as_val=${'$as_ac_Header'}
5567		 $as_echo "$as_val"'`
5568   if test "x$as_val" = x""yes; then
5569  cat >>confdefs.h <<_ACEOF
5570#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5571_ACEOF
5572
5573fi
5574
5575done
5576
5577
5578
5579for ac_header in dlfcn.h
5580do
5581as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5583  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5584$as_echo_n "checking for $ac_header... " >&6; }
5585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5586  $as_echo_n "(cached) " >&6
5587fi
5588ac_res=`eval 'as_val=${'$as_ac_Header'}
5589		 $as_echo "$as_val"'`
5590	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5591$as_echo "$ac_res" >&6; }
5592else
5593  # Is the header compilable?
5594{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5595$as_echo_n "checking $ac_header usability... " >&6; }
5596cat >conftest.$ac_ext <<_ACEOF
5597/* confdefs.h.  */
5598_ACEOF
5599cat confdefs.h >>conftest.$ac_ext
5600cat >>conftest.$ac_ext <<_ACEOF
5601/* end confdefs.h.  */
5602$ac_includes_default
5603#include <$ac_header>
5604_ACEOF
5605rm -f conftest.$ac_objext
5606if { (ac_try="$ac_compile"
5607case "(($ac_try" in
5608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609  *) ac_try_echo=$ac_try;;
5610esac
5611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5612$as_echo "$ac_try_echo") >&5
5613  (eval "$ac_compile") 2>conftest.er1
5614  ac_status=$?
5615  grep -v '^ *+' conftest.er1 >conftest.err
5616  rm -f conftest.er1
5617  cat conftest.err >&5
5618  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619  (exit $ac_status); } && {
5620	 test -z "$ac_c_werror_flag" ||
5621	 test ! -s conftest.err
5622       } && test -s conftest.$ac_objext; then
5623  ac_header_compiler=yes
5624else
5625  $as_echo "$as_me: failed program was:" >&5
5626sed 's/^/| /' conftest.$ac_ext >&5
5627
5628	ac_header_compiler=no
5629fi
5630
5631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5633$as_echo "$ac_header_compiler" >&6; }
5634
5635# Is the header present?
5636{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5637$as_echo_n "checking $ac_header presence... " >&6; }
5638cat >conftest.$ac_ext <<_ACEOF
5639/* confdefs.h.  */
5640_ACEOF
5641cat confdefs.h >>conftest.$ac_ext
5642cat >>conftest.$ac_ext <<_ACEOF
5643/* end confdefs.h.  */
5644#include <$ac_header>
5645_ACEOF
5646if { (ac_try="$ac_cpp conftest.$ac_ext"
5647case "(($ac_try" in
5648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649  *) ac_try_echo=$ac_try;;
5650esac
5651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5652$as_echo "$ac_try_echo") >&5
5653  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5654  ac_status=$?
5655  grep -v '^ *+' conftest.er1 >conftest.err
5656  rm -f conftest.er1
5657  cat conftest.err >&5
5658  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659  (exit $ac_status); } >/dev/null && {
5660	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5661	 test ! -s conftest.err
5662       }; then
5663  ac_header_preproc=yes
5664else
5665  $as_echo "$as_me: failed program was:" >&5
5666sed 's/^/| /' conftest.$ac_ext >&5
5667
5668  ac_header_preproc=no
5669fi
5670
5671rm -f conftest.err conftest.$ac_ext
5672{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5673$as_echo "$ac_header_preproc" >&6; }
5674
5675# So?  What about this header?
5676case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5677  yes:no: )
5678    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5679$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5680    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5681$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5682    ac_header_preproc=yes
5683    ;;
5684  no:yes:* )
5685    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5686$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5687    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5688$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5689    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5690$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5691    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5692$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5693    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5694$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5695    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5696$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5697    ( cat <<\_ASBOX
5698## ---------------------------------------------------- ##
5699## Report this to boris_mikhaylov@users.sourceforge.net ##
5700## ---------------------------------------------------- ##
5701_ASBOX
5702     ) | sed "s/^/$as_me: WARNING:     /" >&2
5703    ;;
5704esac
5705{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5706$as_echo_n "checking for $ac_header... " >&6; }
5707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5708  $as_echo_n "(cached) " >&6
5709else
5710  eval "$as_ac_Header=\$ac_header_preproc"
5711fi
5712ac_res=`eval 'as_val=${'$as_ac_Header'}
5713		 $as_echo "$as_val"'`
5714	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5715$as_echo "$ac_res" >&6; }
5716
5717fi
5718as_val=`eval 'as_val=${'$as_ac_Header'}
5719		 $as_echo "$as_val"'`
5720   if test "x$as_val" = x""yes; then
5721  cat >>confdefs.h <<_ACEOF
5722#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5723_ACEOF
5724
5725fi
5726
5727done
5728
5729
5730
5731if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5732    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5733    (test "X$CXX" != "Xg++"))) ; then
5734  ac_ext=cpp
5735ac_cpp='$CXXCPP $CPPFLAGS'
5736ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5737ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5738ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5739{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5740$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5741if test -z "$CXXCPP"; then
5742  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5743  $as_echo_n "(cached) " >&6
5744else
5745      # Double quotes because CXXCPP needs to be expanded
5746    for CXXCPP in "$CXX -E" "/lib/cpp"
5747    do
5748      ac_preproc_ok=false
5749for ac_cxx_preproc_warn_flag in '' yes
5750do
5751  # Use a header file that comes with gcc, so configuring glibc
5752  # with a fresh cross-compiler works.
5753  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5754  # <limits.h> exists even on freestanding compilers.
5755  # On the NeXT, cc -E runs the code through the compiler's parser,
5756  # not just through cpp. "Syntax error" is here to catch this case.
5757  cat >conftest.$ac_ext <<_ACEOF
5758/* confdefs.h.  */
5759_ACEOF
5760cat confdefs.h >>conftest.$ac_ext
5761cat >>conftest.$ac_ext <<_ACEOF
5762/* end confdefs.h.  */
5763#ifdef __STDC__
5764# include <limits.h>
5765#else
5766# include <assert.h>
5767#endif
5768		     Syntax error
5769_ACEOF
5770if { (ac_try="$ac_cpp conftest.$ac_ext"
5771case "(($ac_try" in
5772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773  *) ac_try_echo=$ac_try;;
5774esac
5775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5776$as_echo "$ac_try_echo") >&5
5777  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5778  ac_status=$?
5779  grep -v '^ *+' conftest.er1 >conftest.err
5780  rm -f conftest.er1
5781  cat conftest.err >&5
5782  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783  (exit $ac_status); } >/dev/null && {
5784	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5785	 test ! -s conftest.err
5786       }; then
5787  :
5788else
5789  $as_echo "$as_me: failed program was:" >&5
5790sed 's/^/| /' conftest.$ac_ext >&5
5791
5792  # Broken: fails on valid input.
5793continue
5794fi
5795
5796rm -f conftest.err conftest.$ac_ext
5797
5798  # OK, works on sane cases.  Now check whether nonexistent headers
5799  # can be detected and how.
5800  cat >conftest.$ac_ext <<_ACEOF
5801/* confdefs.h.  */
5802_ACEOF
5803cat confdefs.h >>conftest.$ac_ext
5804cat >>conftest.$ac_ext <<_ACEOF
5805/* end confdefs.h.  */
5806#include <ac_nonexistent.h>
5807_ACEOF
5808if { (ac_try="$ac_cpp conftest.$ac_ext"
5809case "(($ac_try" in
5810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811  *) ac_try_echo=$ac_try;;
5812esac
5813eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5814$as_echo "$ac_try_echo") >&5
5815  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5816  ac_status=$?
5817  grep -v '^ *+' conftest.er1 >conftest.err
5818  rm -f conftest.er1
5819  cat conftest.err >&5
5820  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821  (exit $ac_status); } >/dev/null && {
5822	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5823	 test ! -s conftest.err
5824       }; then
5825  # Broken: success on invalid input.
5826continue
5827else
5828  $as_echo "$as_me: failed program was:" >&5
5829sed 's/^/| /' conftest.$ac_ext >&5
5830
5831  # Passes both tests.
5832ac_preproc_ok=:
5833break
5834fi
5835
5836rm -f conftest.err conftest.$ac_ext
5837
5838done
5839# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5840rm -f conftest.err conftest.$ac_ext
5841if $ac_preproc_ok; then
5842  break
5843fi
5844
5845    done
5846    ac_cv_prog_CXXCPP=$CXXCPP
5847
5848fi
5849  CXXCPP=$ac_cv_prog_CXXCPP
5850else
5851  ac_cv_prog_CXXCPP=$CXXCPP
5852fi
5853{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5854$as_echo "$CXXCPP" >&6; }
5855ac_preproc_ok=false
5856for ac_cxx_preproc_warn_flag in '' yes
5857do
5858  # Use a header file that comes with gcc, so configuring glibc
5859  # with a fresh cross-compiler works.
5860  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5861  # <limits.h> exists even on freestanding compilers.
5862  # On the NeXT, cc -E runs the code through the compiler's parser,
5863  # not just through cpp. "Syntax error" is here to catch this case.
5864  cat >conftest.$ac_ext <<_ACEOF
5865/* confdefs.h.  */
5866_ACEOF
5867cat confdefs.h >>conftest.$ac_ext
5868cat >>conftest.$ac_ext <<_ACEOF
5869/* end confdefs.h.  */
5870#ifdef __STDC__
5871# include <limits.h>
5872#else
5873# include <assert.h>
5874#endif
5875		     Syntax error
5876_ACEOF
5877if { (ac_try="$ac_cpp conftest.$ac_ext"
5878case "(($ac_try" in
5879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880  *) ac_try_echo=$ac_try;;
5881esac
5882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5883$as_echo "$ac_try_echo") >&5
5884  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5885  ac_status=$?
5886  grep -v '^ *+' conftest.er1 >conftest.err
5887  rm -f conftest.er1
5888  cat conftest.err >&5
5889  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890  (exit $ac_status); } >/dev/null && {
5891	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5892	 test ! -s conftest.err
5893       }; then
5894  :
5895else
5896  $as_echo "$as_me: failed program was:" >&5
5897sed 's/^/| /' conftest.$ac_ext >&5
5898
5899  # Broken: fails on valid input.
5900continue
5901fi
5902
5903rm -f conftest.err conftest.$ac_ext
5904
5905  # OK, works on sane cases.  Now check whether nonexistent headers
5906  # can be detected and how.
5907  cat >conftest.$ac_ext <<_ACEOF
5908/* confdefs.h.  */
5909_ACEOF
5910cat confdefs.h >>conftest.$ac_ext
5911cat >>conftest.$ac_ext <<_ACEOF
5912/* end confdefs.h.  */
5913#include <ac_nonexistent.h>
5914_ACEOF
5915if { (ac_try="$ac_cpp conftest.$ac_ext"
5916case "(($ac_try" in
5917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918  *) ac_try_echo=$ac_try;;
5919esac
5920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5921$as_echo "$ac_try_echo") >&5
5922  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5923  ac_status=$?
5924  grep -v '^ *+' conftest.er1 >conftest.err
5925  rm -f conftest.er1
5926  cat conftest.err >&5
5927  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928  (exit $ac_status); } >/dev/null && {
5929	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5930	 test ! -s conftest.err
5931       }; then
5932  # Broken: success on invalid input.
5933continue
5934else
5935  $as_echo "$as_me: failed program was:" >&5
5936sed 's/^/| /' conftest.$ac_ext >&5
5937
5938  # Passes both tests.
5939ac_preproc_ok=:
5940break
5941fi
5942
5943rm -f conftest.err conftest.$ac_ext
5944
5945done
5946# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5947rm -f conftest.err conftest.$ac_ext
5948if $ac_preproc_ok; then
5949  :
5950else
5951  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5953{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5954See \`config.log' for more details." >&5
5955$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5956See \`config.log' for more details." >&2;}
5957   { (exit 1); exit 1; }; }; }
5958fi
5959
5960ac_ext=cpp
5961ac_cpp='$CXXCPP $CPPFLAGS'
5962ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5963ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5964ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5965
5966fi
5967
5968
5969ac_ext=f
5970ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5971ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5972ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5973if test -n "$ac_tool_prefix"; then
5974  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
5975  do
5976    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5977set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5978{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5979$as_echo_n "checking for $ac_word... " >&6; }
5980if test "${ac_cv_prog_F77+set}" = set; then
5981  $as_echo_n "(cached) " >&6
5982else
5983  if test -n "$F77"; then
5984  ac_cv_prog_F77="$F77" # Let the user override the test.
5985else
5986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987for as_dir in $PATH
5988do
5989  IFS=$as_save_IFS
5990  test -z "$as_dir" && as_dir=.
5991  for ac_exec_ext in '' $ac_executable_extensions; do
5992  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5993    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5994    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5995    break 2
5996  fi
5997done
5998done
5999IFS=$as_save_IFS
6000
6001fi
6002fi
6003F77=$ac_cv_prog_F77
6004if test -n "$F77"; then
6005  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6006$as_echo "$F77" >&6; }
6007else
6008  { $as_echo "$as_me:$LINENO: result: no" >&5
6009$as_echo "no" >&6; }
6010fi
6011
6012
6013    test -n "$F77" && break
6014  done
6015fi
6016if test -z "$F77"; then
6017  ac_ct_F77=$F77
6018  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
6019do
6020  # Extract the first word of "$ac_prog", so it can be a program name with args.
6021set dummy $ac_prog; ac_word=$2
6022{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6023$as_echo_n "checking for $ac_word... " >&6; }
6024if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6025  $as_echo_n "(cached) " >&6
6026else
6027  if test -n "$ac_ct_F77"; then
6028  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6029else
6030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031for as_dir in $PATH
6032do
6033  IFS=$as_save_IFS
6034  test -z "$as_dir" && as_dir=.
6035  for ac_exec_ext in '' $ac_executable_extensions; do
6036  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6037    ac_cv_prog_ac_ct_F77="$ac_prog"
6038    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6039    break 2
6040  fi
6041done
6042done
6043IFS=$as_save_IFS
6044
6045fi
6046fi
6047ac_ct_F77=$ac_cv_prog_ac_ct_F77
6048if test -n "$ac_ct_F77"; then
6049  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6050$as_echo "$ac_ct_F77" >&6; }
6051else
6052  { $as_echo "$as_me:$LINENO: result: no" >&5
6053$as_echo "no" >&6; }
6054fi
6055
6056
6057  test -n "$ac_ct_F77" && break
6058done
6059
6060  if test "x$ac_ct_F77" = x; then
6061    F77=""
6062  else
6063    case $cross_compiling:$ac_tool_warned in
6064yes:)
6065{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6066$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6067ac_tool_warned=yes ;;
6068esac
6069    F77=$ac_ct_F77
6070  fi
6071fi
6072
6073
6074# Provide some information about the compiler.
6075$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6076set X $ac_compile
6077ac_compiler=$2
6078{ (ac_try="$ac_compiler --version >&5"
6079case "(($ac_try" in
6080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081  *) ac_try_echo=$ac_try;;
6082esac
6083eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6084$as_echo "$ac_try_echo") >&5
6085  (eval "$ac_compiler --version >&5") 2>&5
6086  ac_status=$?
6087  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088  (exit $ac_status); }
6089{ (ac_try="$ac_compiler -v >&5"
6090case "(($ac_try" in
6091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6092  *) ac_try_echo=$ac_try;;
6093esac
6094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6095$as_echo "$ac_try_echo") >&5
6096  (eval "$ac_compiler -v >&5") 2>&5
6097  ac_status=$?
6098  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099  (exit $ac_status); }
6100{ (ac_try="$ac_compiler -V >&5"
6101case "(($ac_try" in
6102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103  *) ac_try_echo=$ac_try;;
6104esac
6105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6106$as_echo "$ac_try_echo") >&5
6107  (eval "$ac_compiler -V >&5") 2>&5
6108  ac_status=$?
6109  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110  (exit $ac_status); }
6111rm -f a.out
6112
6113# If we don't use `.F' as extension, the preprocessor is not run on the
6114# input file.  (Note that this only needs to work for GNU compilers.)
6115ac_save_ext=$ac_ext
6116ac_ext=F
6117{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6118$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6119if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6120  $as_echo_n "(cached) " >&6
6121else
6122  cat >conftest.$ac_ext <<_ACEOF
6123      program main
6124#ifndef __GNUC__
6125       choke me
6126#endif
6127
6128      end
6129_ACEOF
6130rm -f conftest.$ac_objext
6131if { (ac_try="$ac_compile"
6132case "(($ac_try" in
6133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134  *) ac_try_echo=$ac_try;;
6135esac
6136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6137$as_echo "$ac_try_echo") >&5
6138  (eval "$ac_compile") 2>conftest.er1
6139  ac_status=$?
6140  grep -v '^ *+' conftest.er1 >conftest.err
6141  rm -f conftest.er1
6142  cat conftest.err >&5
6143  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144  (exit $ac_status); } && {
6145	 test -z "$ac_f77_werror_flag" ||
6146	 test ! -s conftest.err
6147       } && test -s conftest.$ac_objext; then
6148  ac_compiler_gnu=yes
6149else
6150  $as_echo "$as_me: failed program was:" >&5
6151sed 's/^/| /' conftest.$ac_ext >&5
6152
6153	ac_compiler_gnu=no
6154fi
6155
6156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6157ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6158
6159fi
6160{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6161$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6162ac_ext=$ac_save_ext
6163ac_test_FFLAGS=${FFLAGS+set}
6164ac_save_FFLAGS=$FFLAGS
6165FFLAGS=
6166{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6167$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6168if test "${ac_cv_prog_f77_g+set}" = set; then
6169  $as_echo_n "(cached) " >&6
6170else
6171  FFLAGS=-g
6172cat >conftest.$ac_ext <<_ACEOF
6173      program main
6174
6175      end
6176_ACEOF
6177rm -f conftest.$ac_objext
6178if { (ac_try="$ac_compile"
6179case "(($ac_try" in
6180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181  *) ac_try_echo=$ac_try;;
6182esac
6183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6184$as_echo "$ac_try_echo") >&5
6185  (eval "$ac_compile") 2>conftest.er1
6186  ac_status=$?
6187  grep -v '^ *+' conftest.er1 >conftest.err
6188  rm -f conftest.er1
6189  cat conftest.err >&5
6190  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191  (exit $ac_status); } && {
6192	 test -z "$ac_f77_werror_flag" ||
6193	 test ! -s conftest.err
6194       } && test -s conftest.$ac_objext; then
6195  ac_cv_prog_f77_g=yes
6196else
6197  $as_echo "$as_me: failed program was:" >&5
6198sed 's/^/| /' conftest.$ac_ext >&5
6199
6200	ac_cv_prog_f77_g=no
6201fi
6202
6203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204
6205fi
6206{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6207$as_echo "$ac_cv_prog_f77_g" >&6; }
6208if test "$ac_test_FFLAGS" = set; then
6209  FFLAGS=$ac_save_FFLAGS
6210elif test $ac_cv_prog_f77_g = yes; then
6211  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6212    FFLAGS="-g -O2"
6213  else
6214    FFLAGS="-g"
6215  fi
6216else
6217  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6218    FFLAGS="-O2"
6219  else
6220    FFLAGS=
6221  fi
6222fi
6223
6224if test $ac_compiler_gnu = yes; then
6225  G77=yes
6226else
6227  G77=
6228fi
6229ac_ext=c
6230ac_cpp='$CPP $CPPFLAGS'
6231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6233ac_compiler_gnu=$ac_cv_c_compiler_gnu
6234
6235
6236
6237# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6238# find the maximum length of command line arguments
6239{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6240$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6241if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6242  $as_echo_n "(cached) " >&6
6243else
6244    i=0
6245  teststring="ABCD"
6246
6247  case $build_os in
6248  msdosdjgpp*)
6249    # On DJGPP, this test can blow up pretty badly due to problems in libc
6250    # (any single argument exceeding 2000 bytes causes a buffer overrun
6251    # during glob expansion).  Even if it were fixed, the result of this
6252    # check would be larger than it should be.
6253    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6254    ;;
6255
6256  gnu*)
6257    # Under GNU Hurd, this test is not required because there is
6258    # no limit to the length of command line arguments.
6259    # Libtool will interpret -1 as no limit whatsoever
6260    lt_cv_sys_max_cmd_len=-1;
6261    ;;
6262
6263  cygwin* | mingw*)
6264    # On Win9x/ME, this test blows up -- it succeeds, but takes
6265    # about 5 minutes as the teststring grows exponentially.
6266    # Worse, since 9x/ME are not pre-emptively multitasking,
6267    # you end up with a "frozen" computer, even though with patience
6268    # the test eventually succeeds (with a max line length of 256k).
6269    # Instead, let's just punt: use the minimum linelength reported by
6270    # all of the supported platforms: 8192 (on NT/2K/XP).
6271    lt_cv_sys_max_cmd_len=8192;
6272    ;;
6273
6274  amigaos*)
6275    # On AmigaOS with pdksh, this test takes hours, literally.
6276    # So we just punt and use a minimum line length of 8192.
6277    lt_cv_sys_max_cmd_len=8192;
6278    ;;
6279
6280  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6281    # This has been around since 386BSD, at least.  Likely further.
6282    if test -x /sbin/sysctl; then
6283      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6284    elif test -x /usr/sbin/sysctl; then
6285      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6286    else
6287      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6288    fi
6289    # And add a safety zone
6290    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6291    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6292    ;;
6293
6294  interix*)
6295    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6296    lt_cv_sys_max_cmd_len=196608
6297    ;;
6298
6299  osf*)
6300    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6301    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6302    # nice to cause kernel panics so lets avoid the loop below.
6303    # First set a reasonable default.
6304    lt_cv_sys_max_cmd_len=16384
6305    #
6306    if test -x /sbin/sysconfig; then
6307      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6308        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6309      esac
6310    fi
6311    ;;
6312  sco3.2v5*)
6313    lt_cv_sys_max_cmd_len=102400
6314    ;;
6315  sysv5* | sco5v6* | sysv4.2uw2*)
6316    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6317    if test -n "$kargmax"; then
6318      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6319    else
6320      lt_cv_sys_max_cmd_len=32768
6321    fi
6322    ;;
6323  *)
6324    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6325    if test -n "$lt_cv_sys_max_cmd_len"; then
6326      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6327      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6328    else
6329      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6330      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6331	       = "XX$teststring") >/dev/null 2>&1 &&
6332	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6333	      lt_cv_sys_max_cmd_len=$new_result &&
6334	      test $i != 17 # 1/2 MB should be enough
6335      do
6336        i=`expr $i + 1`
6337        teststring=$teststring$teststring
6338      done
6339      teststring=
6340      # Add a significant safety factor because C++ compilers can tack on massive
6341      # amounts of additional arguments before passing them to the linker.
6342      # It appears as though 1/2 is a usable value.
6343      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6344    fi
6345    ;;
6346  esac
6347
6348fi
6349
6350if test -n $lt_cv_sys_max_cmd_len ; then
6351  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6352$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6353else
6354  { $as_echo "$as_me:$LINENO: result: none" >&5
6355$as_echo "none" >&6; }
6356fi
6357
6358
6359
6360
6361
6362# Check for command to grab the raw symbol name followed by C symbol from nm.
6363{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6364$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6365if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6366  $as_echo_n "(cached) " >&6
6367else
6368
6369# These are sane defaults that work on at least a few old systems.
6370# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6371
6372# Character class describing NM global symbol codes.
6373symcode='[BCDEGRST]'
6374
6375# Regexp to match symbols that can be accessed directly from C.
6376sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6377
6378# Transform an extracted symbol line into a proper C declaration
6379lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6380
6381# Transform an extracted symbol line into symbol name and symbol address
6382lt_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'"
6383
6384# Define system-specific variables.
6385case $host_os in
6386aix*)
6387  symcode='[BCDT]'
6388  ;;
6389cygwin* | mingw* | pw32*)
6390  symcode='[ABCDGISTW]'
6391  ;;
6392hpux*) # Its linker distinguishes data from code symbols
6393  if test "$host_cpu" = ia64; then
6394    symcode='[ABCDEGRST]'
6395  fi
6396  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6397  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'"
6398  ;;
6399linux* | k*bsd*-gnu)
6400  if test "$host_cpu" = ia64; then
6401    symcode='[ABCDGIRSTW]'
6402    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6403    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'"
6404  fi
6405  ;;
6406irix* | nonstopux*)
6407  symcode='[BCDEGRST]'
6408  ;;
6409osf*)
6410  symcode='[BCDEGQRST]'
6411  ;;
6412solaris*)
6413  symcode='[BDRT]'
6414  ;;
6415sco3.2v5*)
6416  symcode='[DT]'
6417  ;;
6418sysv4.2uw2*)
6419  symcode='[DT]'
6420  ;;
6421sysv5* | sco5v6* | unixware* | OpenUNIX*)
6422  symcode='[ABDT]'
6423  ;;
6424sysv4)
6425  symcode='[DFNSTU]'
6426  ;;
6427esac
6428
6429# Handle CRLF in mingw tool chain
6430opt_cr=
6431case $build_os in
6432mingw*)
6433  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6434  ;;
6435esac
6436
6437# If we're using GNU nm, then use its standard symbol codes.
6438case `$NM -V 2>&1` in
6439*GNU* | *'with BFD'*)
6440  symcode='[ABCDGIRSTW]' ;;
6441esac
6442
6443# Try without a prefix undercore, then with it.
6444for ac_symprfx in "" "_"; do
6445
6446  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6447  symxfrm="\\1 $ac_symprfx\\2 \\2"
6448
6449  # Write the raw and C identifiers.
6450  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6451
6452  # Check to see that the pipe works correctly.
6453  pipe_works=no
6454
6455  rm -f conftest*
6456  cat > conftest.$ac_ext <<EOF
6457#ifdef __cplusplus
6458extern "C" {
6459#endif
6460char nm_test_var;
6461void nm_test_func(){}
6462#ifdef __cplusplus
6463}
6464#endif
6465int main(){nm_test_var='a';nm_test_func();return(0);}
6466EOF
6467
6468  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6469  (eval $ac_compile) 2>&5
6470  ac_status=$?
6471  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472  (exit $ac_status); }; then
6473    # Now try to grab the symbols.
6474    nlist=conftest.nm
6475    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6476  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6477  ac_status=$?
6478  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479  (exit $ac_status); } && test -s "$nlist"; then
6480      # Try sorting and uniquifying the output.
6481      if sort "$nlist" | uniq > "$nlist"T; then
6482	mv -f "$nlist"T "$nlist"
6483      else
6484	rm -f "$nlist"T
6485      fi
6486
6487      # Make sure that we snagged all the symbols we need.
6488      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6489	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6490	  cat <<EOF > conftest.$ac_ext
6491#ifdef __cplusplus
6492extern "C" {
6493#endif
6494
6495EOF
6496	  # Now generate the symbol file.
6497	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6498
6499	  cat <<EOF >> conftest.$ac_ext
6500#if defined (__STDC__) && __STDC__
6501# define lt_ptr_t void *
6502#else
6503# define lt_ptr_t char *
6504# define const
6505#endif
6506
6507/* The mapping between symbol names and symbols. */
6508const struct {
6509  const char *name;
6510  lt_ptr_t address;
6511}
6512lt_preloaded_symbols[] =
6513{
6514EOF
6515	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6516	  cat <<\EOF >> conftest.$ac_ext
6517  {0, (lt_ptr_t) 0}
6518};
6519
6520#ifdef __cplusplus
6521}
6522#endif
6523EOF
6524	  # Now try linking the two files.
6525	  mv conftest.$ac_objext conftstm.$ac_objext
6526	  lt_save_LIBS="$LIBS"
6527	  lt_save_CFLAGS="$CFLAGS"
6528	  LIBS="conftstm.$ac_objext"
6529	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6530	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6531  (eval $ac_link) 2>&5
6532  ac_status=$?
6533  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6535	    pipe_works=yes
6536	  fi
6537	  LIBS="$lt_save_LIBS"
6538	  CFLAGS="$lt_save_CFLAGS"
6539	else
6540	  echo "cannot find nm_test_func in $nlist" >&5
6541	fi
6542      else
6543	echo "cannot find nm_test_var in $nlist" >&5
6544      fi
6545    else
6546      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6547    fi
6548  else
6549    echo "$progname: failed program was:" >&5
6550    cat conftest.$ac_ext >&5
6551  fi
6552  rm -rf conftest* conftst*
6553
6554  # Do not use the global_symbol_pipe unless it works.
6555  if test "$pipe_works" = yes; then
6556    break
6557  else
6558    lt_cv_sys_global_symbol_pipe=
6559  fi
6560done
6561
6562fi
6563
6564if test -z "$lt_cv_sys_global_symbol_pipe"; then
6565  lt_cv_sys_global_symbol_to_cdecl=
6566fi
6567if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6568  { $as_echo "$as_me:$LINENO: result: failed" >&5
6569$as_echo "failed" >&6; }
6570else
6571  { $as_echo "$as_me:$LINENO: result: ok" >&5
6572$as_echo "ok" >&6; }
6573fi
6574
6575{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6576$as_echo_n "checking for objdir... " >&6; }
6577if test "${lt_cv_objdir+set}" = set; then
6578  $as_echo_n "(cached) " >&6
6579else
6580  rm -f .libs 2>/dev/null
6581mkdir .libs 2>/dev/null
6582if test -d .libs; then
6583  lt_cv_objdir=.libs
6584else
6585  # MS-DOS does not allow filenames that begin with a dot.
6586  lt_cv_objdir=_libs
6587fi
6588rmdir .libs 2>/dev/null
6589fi
6590{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6591$as_echo "$lt_cv_objdir" >&6; }
6592objdir=$lt_cv_objdir
6593
6594
6595
6596
6597
6598case $host_os in
6599aix3*)
6600  # AIX sometimes has problems with the GCC collect2 program.  For some
6601  # reason, if we set the COLLECT_NAMES environment variable, the problems
6602  # vanish in a puff of smoke.
6603  if test "X${COLLECT_NAMES+set}" != Xset; then
6604    COLLECT_NAMES=
6605    export COLLECT_NAMES
6606  fi
6607  ;;
6608esac
6609
6610# Sed substitution that helps us do robust quoting.  It backslashifies
6611# metacharacters that are still active within double-quoted strings.
6612Xsed='sed -e 1s/^X//'
6613sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6614
6615# Same as above, but do not quote variable references.
6616double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6617
6618# Sed substitution to delay expansion of an escaped shell variable in a
6619# double_quote_subst'ed string.
6620delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6621
6622# Sed substitution to avoid accidental globbing in evaled expressions
6623no_glob_subst='s/\*/\\\*/g'
6624
6625# Constants:
6626rm="rm -f"
6627
6628# Global variables:
6629default_ofile=libtool
6630can_build_shared=yes
6631
6632# All known linkers require a `.a' archive for static linking (except MSVC,
6633# which needs '.lib').
6634libext=a
6635ltmain="$ac_aux_dir/ltmain.sh"
6636ofile="$default_ofile"
6637with_gnu_ld="$lt_cv_prog_gnu_ld"
6638
6639if test -n "$ac_tool_prefix"; then
6640  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6641set dummy ${ac_tool_prefix}ar; ac_word=$2
6642{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6643$as_echo_n "checking for $ac_word... " >&6; }
6644if test "${ac_cv_prog_AR+set}" = set; then
6645  $as_echo_n "(cached) " >&6
6646else
6647  if test -n "$AR"; then
6648  ac_cv_prog_AR="$AR" # Let the user override the test.
6649else
6650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651for as_dir in $PATH
6652do
6653  IFS=$as_save_IFS
6654  test -z "$as_dir" && as_dir=.
6655  for ac_exec_ext in '' $ac_executable_extensions; do
6656  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657    ac_cv_prog_AR="${ac_tool_prefix}ar"
6658    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6659    break 2
6660  fi
6661done
6662done
6663IFS=$as_save_IFS
6664
6665fi
6666fi
6667AR=$ac_cv_prog_AR
6668if test -n "$AR"; then
6669  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6670$as_echo "$AR" >&6; }
6671else
6672  { $as_echo "$as_me:$LINENO: result: no" >&5
6673$as_echo "no" >&6; }
6674fi
6675
6676
6677fi
6678if test -z "$ac_cv_prog_AR"; then
6679  ac_ct_AR=$AR
6680  # Extract the first word of "ar", so it can be a program name with args.
6681set dummy ar; ac_word=$2
6682{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6683$as_echo_n "checking for $ac_word... " >&6; }
6684if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6685  $as_echo_n "(cached) " >&6
6686else
6687  if test -n "$ac_ct_AR"; then
6688  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6689else
6690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691for as_dir in $PATH
6692do
6693  IFS=$as_save_IFS
6694  test -z "$as_dir" && as_dir=.
6695  for ac_exec_ext in '' $ac_executable_extensions; do
6696  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697    ac_cv_prog_ac_ct_AR="ar"
6698    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699    break 2
6700  fi
6701done
6702done
6703IFS=$as_save_IFS
6704
6705fi
6706fi
6707ac_ct_AR=$ac_cv_prog_ac_ct_AR
6708if test -n "$ac_ct_AR"; then
6709  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6710$as_echo "$ac_ct_AR" >&6; }
6711else
6712  { $as_echo "$as_me:$LINENO: result: no" >&5
6713$as_echo "no" >&6; }
6714fi
6715
6716  if test "x$ac_ct_AR" = x; then
6717    AR="false"
6718  else
6719    case $cross_compiling:$ac_tool_warned in
6720yes:)
6721{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6723ac_tool_warned=yes ;;
6724esac
6725    AR=$ac_ct_AR
6726  fi
6727else
6728  AR="$ac_cv_prog_AR"
6729fi
6730
6731if test -n "$ac_tool_prefix"; then
6732  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6733set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6734{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6735$as_echo_n "checking for $ac_word... " >&6; }
6736if test "${ac_cv_prog_RANLIB+set}" = set; then
6737  $as_echo_n "(cached) " >&6
6738else
6739  if test -n "$RANLIB"; then
6740  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6741else
6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745  IFS=$as_save_IFS
6746  test -z "$as_dir" && as_dir=.
6747  for ac_exec_ext in '' $ac_executable_extensions; do
6748  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6750    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751    break 2
6752  fi
6753done
6754done
6755IFS=$as_save_IFS
6756
6757fi
6758fi
6759RANLIB=$ac_cv_prog_RANLIB
6760if test -n "$RANLIB"; then
6761  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6762$as_echo "$RANLIB" >&6; }
6763else
6764  { $as_echo "$as_me:$LINENO: result: no" >&5
6765$as_echo "no" >&6; }
6766fi
6767
6768
6769fi
6770if test -z "$ac_cv_prog_RANLIB"; then
6771  ac_ct_RANLIB=$RANLIB
6772  # Extract the first word of "ranlib", so it can be a program name with args.
6773set dummy ranlib; ac_word=$2
6774{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6775$as_echo_n "checking for $ac_word... " >&6; }
6776if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6777  $as_echo_n "(cached) " >&6
6778else
6779  if test -n "$ac_ct_RANLIB"; then
6780  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6781else
6782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783for as_dir in $PATH
6784do
6785  IFS=$as_save_IFS
6786  test -z "$as_dir" && as_dir=.
6787  for ac_exec_ext in '' $ac_executable_extensions; do
6788  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789    ac_cv_prog_ac_ct_RANLIB="ranlib"
6790    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6791    break 2
6792  fi
6793done
6794done
6795IFS=$as_save_IFS
6796
6797fi
6798fi
6799ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6800if test -n "$ac_ct_RANLIB"; then
6801  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6802$as_echo "$ac_ct_RANLIB" >&6; }
6803else
6804  { $as_echo "$as_me:$LINENO: result: no" >&5
6805$as_echo "no" >&6; }
6806fi
6807
6808  if test "x$ac_ct_RANLIB" = x; then
6809    RANLIB=":"
6810  else
6811    case $cross_compiling:$ac_tool_warned in
6812yes:)
6813{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6815ac_tool_warned=yes ;;
6816esac
6817    RANLIB=$ac_ct_RANLIB
6818  fi
6819else
6820  RANLIB="$ac_cv_prog_RANLIB"
6821fi
6822
6823if test -n "$ac_tool_prefix"; then
6824  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6825set dummy ${ac_tool_prefix}strip; ac_word=$2
6826{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6827$as_echo_n "checking for $ac_word... " >&6; }
6828if test "${ac_cv_prog_STRIP+set}" = set; then
6829  $as_echo_n "(cached) " >&6
6830else
6831  if test -n "$STRIP"; then
6832  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6833else
6834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835for as_dir in $PATH
6836do
6837  IFS=$as_save_IFS
6838  test -z "$as_dir" && as_dir=.
6839  for ac_exec_ext in '' $ac_executable_extensions; do
6840  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6842    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843    break 2
6844  fi
6845done
6846done
6847IFS=$as_save_IFS
6848
6849fi
6850fi
6851STRIP=$ac_cv_prog_STRIP
6852if test -n "$STRIP"; then
6853  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6854$as_echo "$STRIP" >&6; }
6855else
6856  { $as_echo "$as_me:$LINENO: result: no" >&5
6857$as_echo "no" >&6; }
6858fi
6859
6860
6861fi
6862if test -z "$ac_cv_prog_STRIP"; then
6863  ac_ct_STRIP=$STRIP
6864  # Extract the first word of "strip", so it can be a program name with args.
6865set dummy strip; ac_word=$2
6866{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6867$as_echo_n "checking for $ac_word... " >&6; }
6868if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6869  $as_echo_n "(cached) " >&6
6870else
6871  if test -n "$ac_ct_STRIP"; then
6872  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6873else
6874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875for as_dir in $PATH
6876do
6877  IFS=$as_save_IFS
6878  test -z "$as_dir" && as_dir=.
6879  for ac_exec_ext in '' $ac_executable_extensions; do
6880  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6881    ac_cv_prog_ac_ct_STRIP="strip"
6882    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6883    break 2
6884  fi
6885done
6886done
6887IFS=$as_save_IFS
6888
6889fi
6890fi
6891ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6892if test -n "$ac_ct_STRIP"; then
6893  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6894$as_echo "$ac_ct_STRIP" >&6; }
6895else
6896  { $as_echo "$as_me:$LINENO: result: no" >&5
6897$as_echo "no" >&6; }
6898fi
6899
6900  if test "x$ac_ct_STRIP" = x; then
6901    STRIP=":"
6902  else
6903    case $cross_compiling:$ac_tool_warned in
6904yes:)
6905{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6907ac_tool_warned=yes ;;
6908esac
6909    STRIP=$ac_ct_STRIP
6910  fi
6911else
6912  STRIP="$ac_cv_prog_STRIP"
6913fi
6914
6915
6916old_CC="$CC"
6917old_CFLAGS="$CFLAGS"
6918
6919# Set sane defaults for various variables
6920test -z "$AR" && AR=ar
6921test -z "$AR_FLAGS" && AR_FLAGS=cru
6922test -z "$AS" && AS=as
6923test -z "$CC" && CC=cc
6924test -z "$LTCC" && LTCC=$CC
6925test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6926test -z "$DLLTOOL" && DLLTOOL=dlltool
6927test -z "$LD" && LD=ld
6928test -z "$LN_S" && LN_S="ln -s"
6929test -z "$MAGIC_CMD" && MAGIC_CMD=file
6930test -z "$NM" && NM=nm
6931test -z "$SED" && SED=sed
6932test -z "$OBJDUMP" && OBJDUMP=objdump
6933test -z "$RANLIB" && RANLIB=:
6934test -z "$STRIP" && STRIP=:
6935test -z "$ac_objext" && ac_objext=o
6936
6937# Determine commands to create old-style static archives.
6938old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6939old_postinstall_cmds='chmod 644 $oldlib'
6940old_postuninstall_cmds=
6941
6942if test -n "$RANLIB"; then
6943  case $host_os in
6944  openbsd*)
6945    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6946    ;;
6947  *)
6948    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6949    ;;
6950  esac
6951  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6952fi
6953
6954for cc_temp in $compiler""; do
6955  case $cc_temp in
6956    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6957    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6958    \-*) ;;
6959    *) break;;
6960  esac
6961done
6962cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6963
6964
6965# Only perform the check for file, if the check method requires it
6966case $deplibs_check_method in
6967file_magic*)
6968  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6969    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6970$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6971if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6972  $as_echo_n "(cached) " >&6
6973else
6974  case $MAGIC_CMD in
6975[\\/*] |  ?:[\\/]*)
6976  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6977  ;;
6978*)
6979  lt_save_MAGIC_CMD="$MAGIC_CMD"
6980  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6981  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6982  for ac_dir in $ac_dummy; do
6983    IFS="$lt_save_ifs"
6984    test -z "$ac_dir" && ac_dir=.
6985    if test -f $ac_dir/${ac_tool_prefix}file; then
6986      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6987      if test -n "$file_magic_test_file"; then
6988	case $deplibs_check_method in
6989	"file_magic "*)
6990	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6991	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6992	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6993	    $EGREP "$file_magic_regex" > /dev/null; then
6994	    :
6995	  else
6996	    cat <<EOF 1>&2
6997
6998*** Warning: the command libtool uses to detect shared libraries,
6999*** $file_magic_cmd, produces output that libtool cannot recognize.
7000*** The result is that libtool may fail to recognize shared libraries
7001*** as such.  This will affect the creation of libtool libraries that
7002*** depend on shared libraries, but programs linked with such libtool
7003*** libraries will work regardless of this problem.  Nevertheless, you
7004*** may want to report the problem to your system manager and/or to
7005*** bug-libtool@gnu.org
7006
7007EOF
7008	  fi ;;
7009	esac
7010      fi
7011      break
7012    fi
7013  done
7014  IFS="$lt_save_ifs"
7015  MAGIC_CMD="$lt_save_MAGIC_CMD"
7016  ;;
7017esac
7018fi
7019
7020MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7021if test -n "$MAGIC_CMD"; then
7022  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7023$as_echo "$MAGIC_CMD" >&6; }
7024else
7025  { $as_echo "$as_me:$LINENO: result: no" >&5
7026$as_echo "no" >&6; }
7027fi
7028
7029if test -z "$lt_cv_path_MAGIC_CMD"; then
7030  if test -n "$ac_tool_prefix"; then
7031    { $as_echo "$as_me:$LINENO: checking for file" >&5
7032$as_echo_n "checking for file... " >&6; }
7033if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7034  $as_echo_n "(cached) " >&6
7035else
7036  case $MAGIC_CMD in
7037[\\/*] |  ?:[\\/]*)
7038  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7039  ;;
7040*)
7041  lt_save_MAGIC_CMD="$MAGIC_CMD"
7042  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7043  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7044  for ac_dir in $ac_dummy; do
7045    IFS="$lt_save_ifs"
7046    test -z "$ac_dir" && ac_dir=.
7047    if test -f $ac_dir/file; then
7048      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7049      if test -n "$file_magic_test_file"; then
7050	case $deplibs_check_method in
7051	"file_magic "*)
7052	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7053	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7054	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7055	    $EGREP "$file_magic_regex" > /dev/null; then
7056	    :
7057	  else
7058	    cat <<EOF 1>&2
7059
7060*** Warning: the command libtool uses to detect shared libraries,
7061*** $file_magic_cmd, produces output that libtool cannot recognize.
7062*** The result is that libtool may fail to recognize shared libraries
7063*** as such.  This will affect the creation of libtool libraries that
7064*** depend on shared libraries, but programs linked with such libtool
7065*** libraries will work regardless of this problem.  Nevertheless, you
7066*** may want to report the problem to your system manager and/or to
7067*** bug-libtool@gnu.org
7068
7069EOF
7070	  fi ;;
7071	esac
7072      fi
7073      break
7074    fi
7075  done
7076  IFS="$lt_save_ifs"
7077  MAGIC_CMD="$lt_save_MAGIC_CMD"
7078  ;;
7079esac
7080fi
7081
7082MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7083if test -n "$MAGIC_CMD"; then
7084  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7085$as_echo "$MAGIC_CMD" >&6; }
7086else
7087  { $as_echo "$as_me:$LINENO: result: no" >&5
7088$as_echo "no" >&6; }
7089fi
7090
7091  else
7092    MAGIC_CMD=:
7093  fi
7094fi
7095
7096  fi
7097  ;;
7098esac
7099
7100
7101  case $host_os in
7102    rhapsody* | darwin*)
7103    if test -n "$ac_tool_prefix"; then
7104  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7105set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7106{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7107$as_echo_n "checking for $ac_word... " >&6; }
7108if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7109  $as_echo_n "(cached) " >&6
7110else
7111  if test -n "$DSYMUTIL"; then
7112  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7113else
7114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115for as_dir in $PATH
7116do
7117  IFS=$as_save_IFS
7118  test -z "$as_dir" && as_dir=.
7119  for ac_exec_ext in '' $ac_executable_extensions; do
7120  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7121    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7122    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123    break 2
7124  fi
7125done
7126done
7127IFS=$as_save_IFS
7128
7129fi
7130fi
7131DSYMUTIL=$ac_cv_prog_DSYMUTIL
7132if test -n "$DSYMUTIL"; then
7133  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7134$as_echo "$DSYMUTIL" >&6; }
7135else
7136  { $as_echo "$as_me:$LINENO: result: no" >&5
7137$as_echo "no" >&6; }
7138fi
7139
7140
7141fi
7142if test -z "$ac_cv_prog_DSYMUTIL"; then
7143  ac_ct_DSYMUTIL=$DSYMUTIL
7144  # Extract the first word of "dsymutil", so it can be a program name with args.
7145set dummy dsymutil; ac_word=$2
7146{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7147$as_echo_n "checking for $ac_word... " >&6; }
7148if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7149  $as_echo_n "(cached) " >&6
7150else
7151  if test -n "$ac_ct_DSYMUTIL"; then
7152  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7153else
7154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155for as_dir in $PATH
7156do
7157  IFS=$as_save_IFS
7158  test -z "$as_dir" && as_dir=.
7159  for ac_exec_ext in '' $ac_executable_extensions; do
7160  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7161    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7162    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163    break 2
7164  fi
7165done
7166done
7167IFS=$as_save_IFS
7168
7169fi
7170fi
7171ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7172if test -n "$ac_ct_DSYMUTIL"; then
7173  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7174$as_echo "$ac_ct_DSYMUTIL" >&6; }
7175else
7176  { $as_echo "$as_me:$LINENO: result: no" >&5
7177$as_echo "no" >&6; }
7178fi
7179
7180  if test "x$ac_ct_DSYMUTIL" = x; then
7181    DSYMUTIL=":"
7182  else
7183    case $cross_compiling:$ac_tool_warned in
7184yes:)
7185{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7186$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7187ac_tool_warned=yes ;;
7188esac
7189    DSYMUTIL=$ac_ct_DSYMUTIL
7190  fi
7191else
7192  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7193fi
7194
7195    if test -n "$ac_tool_prefix"; then
7196  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7197set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7198{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7199$as_echo_n "checking for $ac_word... " >&6; }
7200if test "${ac_cv_prog_NMEDIT+set}" = set; then
7201  $as_echo_n "(cached) " >&6
7202else
7203  if test -n "$NMEDIT"; then
7204  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7205else
7206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207for as_dir in $PATH
7208do
7209  IFS=$as_save_IFS
7210  test -z "$as_dir" && as_dir=.
7211  for ac_exec_ext in '' $ac_executable_extensions; do
7212  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7213    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7214    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7215    break 2
7216  fi
7217done
7218done
7219IFS=$as_save_IFS
7220
7221fi
7222fi
7223NMEDIT=$ac_cv_prog_NMEDIT
7224if test -n "$NMEDIT"; then
7225  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7226$as_echo "$NMEDIT" >&6; }
7227else
7228  { $as_echo "$as_me:$LINENO: result: no" >&5
7229$as_echo "no" >&6; }
7230fi
7231
7232
7233fi
7234if test -z "$ac_cv_prog_NMEDIT"; then
7235  ac_ct_NMEDIT=$NMEDIT
7236  # Extract the first word of "nmedit", so it can be a program name with args.
7237set dummy nmedit; ac_word=$2
7238{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7239$as_echo_n "checking for $ac_word... " >&6; }
7240if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7241  $as_echo_n "(cached) " >&6
7242else
7243  if test -n "$ac_ct_NMEDIT"; then
7244  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7245else
7246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247for as_dir in $PATH
7248do
7249  IFS=$as_save_IFS
7250  test -z "$as_dir" && as_dir=.
7251  for ac_exec_ext in '' $ac_executable_extensions; do
7252  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7253    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7254    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7255    break 2
7256  fi
7257done
7258done
7259IFS=$as_save_IFS
7260
7261fi
7262fi
7263ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7264if test -n "$ac_ct_NMEDIT"; then
7265  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7266$as_echo "$ac_ct_NMEDIT" >&6; }
7267else
7268  { $as_echo "$as_me:$LINENO: result: no" >&5
7269$as_echo "no" >&6; }
7270fi
7271
7272  if test "x$ac_ct_NMEDIT" = x; then
7273    NMEDIT=":"
7274  else
7275    case $cross_compiling:$ac_tool_warned in
7276yes:)
7277{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7279ac_tool_warned=yes ;;
7280esac
7281    NMEDIT=$ac_ct_NMEDIT
7282  fi
7283else
7284  NMEDIT="$ac_cv_prog_NMEDIT"
7285fi
7286
7287
7288    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7289$as_echo_n "checking for -single_module linker flag... " >&6; }
7290if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7291  $as_echo_n "(cached) " >&6
7292else
7293  lt_cv_apple_cc_single_mod=no
7294      if test -z "${LT_MULTI_MODULE}"; then
7295   # By default we will add the -single_module flag. You can override
7296   # by either setting the environment variable LT_MULTI_MODULE
7297   # non-empty at configure time, or by adding -multi_module to the
7298   # link flags.
7299   echo "int foo(void){return 1;}" > conftest.c
7300   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7301     -dynamiclib ${wl}-single_module conftest.c
7302   if test -f libconftest.dylib; then
7303     lt_cv_apple_cc_single_mod=yes
7304     rm -rf libconftest.dylib*
7305   fi
7306   rm conftest.c
7307      fi
7308fi
7309{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7310$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7311    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7312$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7313if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7314  $as_echo_n "(cached) " >&6
7315else
7316  lt_cv_ld_exported_symbols_list=no
7317      save_LDFLAGS=$LDFLAGS
7318      echo "_main" > conftest.sym
7319      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7320      cat >conftest.$ac_ext <<_ACEOF
7321/* confdefs.h.  */
7322_ACEOF
7323cat confdefs.h >>conftest.$ac_ext
7324cat >>conftest.$ac_ext <<_ACEOF
7325/* end confdefs.h.  */
7326
7327int
7328main ()
7329{
7330
7331  ;
7332  return 0;
7333}
7334_ACEOF
7335rm -f conftest.$ac_objext conftest$ac_exeext
7336if { (ac_try="$ac_link"
7337case "(($ac_try" in
7338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7339  *) ac_try_echo=$ac_try;;
7340esac
7341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7342$as_echo "$ac_try_echo") >&5
7343  (eval "$ac_link") 2>conftest.er1
7344  ac_status=$?
7345  grep -v '^ *+' conftest.er1 >conftest.err
7346  rm -f conftest.er1
7347  cat conftest.err >&5
7348  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349  (exit $ac_status); } && {
7350	 test -z "$ac_c_werror_flag" ||
7351	 test ! -s conftest.err
7352       } && test -s conftest$ac_exeext && {
7353	 test "$cross_compiling" = yes ||
7354	 $as_test_x conftest$ac_exeext
7355       }; then
7356  lt_cv_ld_exported_symbols_list=yes
7357else
7358  $as_echo "$as_me: failed program was:" >&5
7359sed 's/^/| /' conftest.$ac_ext >&5
7360
7361	lt_cv_ld_exported_symbols_list=no
7362fi
7363
7364rm -rf conftest.dSYM
7365rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7366      conftest$ac_exeext conftest.$ac_ext
7367   LDFLAGS="$save_LDFLAGS"
7368
7369fi
7370{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7371$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7372    case $host_os in
7373    rhapsody* | darwin1.[0123])
7374      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7375    darwin1.*)
7376     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7377    darwin*)
7378      # if running on 10.5 or later, the deployment target defaults
7379      # to the OS version, if on x86, and 10.4, the deployment
7380      # target defaults to 10.4. Don't you love it?
7381      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7382   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7383     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7384   10.[012]*)
7385     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7386   10.*)
7387     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7388      esac
7389    ;;
7390  esac
7391    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7392      _lt_dar_single_mod='$single_module'
7393    fi
7394    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7395      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7396    else
7397      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7398    fi
7399    if test "$DSYMUTIL" != ":"; then
7400      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7401    else
7402      _lt_dsymutil=
7403    fi
7404    ;;
7405  esac
7406
7407
7408enable_dlopen=no
7409enable_win32_dll=no
7410
7411# Check whether --enable-libtool-lock was given.
7412if test "${enable_libtool_lock+set}" = set; then
7413  enableval=$enable_libtool_lock;
7414fi
7415
7416test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7417
7418
7419# Check whether --with-pic was given.
7420if test "${with_pic+set}" = set; then
7421  withval=$with_pic; pic_mode="$withval"
7422else
7423  pic_mode=default
7424fi
7425
7426test -z "$pic_mode" && pic_mode=default
7427
7428# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
7429#
7430# Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
7431#        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
7432#        calls AC_LIBTOOL_CONFIG and creates libtool.
7433#
7434{ $as_echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
7435$as_echo_n "checking for correct ltmain.sh version... " >&6; }
7436if test "x$ltmain" = "x" ; then
7437  { $as_echo "$as_me:$LINENO: result: no" >&5
7438$as_echo "no" >&6; }
7439  { { $as_echo "$as_me:$LINENO: error:
7440
7441*** [Gentoo] sanity check failed! ***
7442*** \$ltmain is not defined, please check the patch for consistency! ***
7443" >&5
7444$as_echo "$as_me: error:
7445
7446*** [Gentoo] sanity check failed! ***
7447*** \$ltmain is not defined, please check the patch for consistency! ***
7448" >&2;}
7449   { (exit 1); exit 1; }; }
7450fi
7451gentoo_lt_version="1.5.26"
7452gentoo_ltmain_version=`sed -n '/^[ 	]*VERSION=/{s/^[ 	]*VERSION=//;p;q;}' "$ltmain"`
7453if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
7454  { $as_echo "$as_me:$LINENO: result: no" >&5
7455$as_echo "no" >&6; }
7456  { { $as_echo "$as_me:$LINENO: error:
7457
7458*** [Gentoo] sanity check failed! ***
7459*** libtool.m4 and ltmain.sh have a version mismatch! ***
7460*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7461
7462Please run:
7463
7464  libtoolize --copy --force
7465
7466if appropriate, please contact the maintainer of this
7467package (or your distribution) for help.
7468" >&5
7469$as_echo "$as_me: error:
7470
7471*** [Gentoo] sanity check failed! ***
7472*** libtool.m4 and ltmain.sh have a version mismatch! ***
7473*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7474
7475Please run:
7476
7477  libtoolize --copy --force
7478
7479if appropriate, please contact the maintainer of this
7480package (or your distribution) for help.
7481" >&2;}
7482   { (exit 1); exit 1; }; }
7483else
7484  { $as_echo "$as_me:$LINENO: result: yes" >&5
7485$as_echo "yes" >&6; }
7486fi
7487
7488
7489# Use C for the default configuration in the libtool script
7490tagname=
7491lt_save_CC="$CC"
7492ac_ext=c
7493ac_cpp='$CPP $CPPFLAGS'
7494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7496ac_compiler_gnu=$ac_cv_c_compiler_gnu
7497
7498
7499# Source file extension for C test sources.
7500ac_ext=c
7501
7502# Object file extension for compiled C test sources.
7503objext=o
7504objext=$objext
7505
7506# Code to be used in simple compile tests
7507lt_simple_compile_test_code="int some_variable = 0;"
7508
7509# Code to be used in simple link tests
7510lt_simple_link_test_code='int main(){return(0);}'
7511
7512
7513# If no C compiler was specified, use CC.
7514LTCC=${LTCC-"$CC"}
7515
7516# If no C compiler flags were specified, use CFLAGS.
7517LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7518
7519# Allow CC to be a program name with arguments.
7520compiler=$CC
7521
7522
7523# save warnings/boilerplate of simple test code
7524ac_outfile=conftest.$ac_objext
7525echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7526eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7527_lt_compiler_boilerplate=`cat conftest.err`
7528$rm conftest*
7529
7530ac_outfile=conftest.$ac_objext
7531echo "$lt_simple_link_test_code" >conftest.$ac_ext
7532eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7533_lt_linker_boilerplate=`cat conftest.err`
7534$rm -r conftest*
7535
7536
7537
7538lt_prog_compiler_no_builtin_flag=
7539
7540if test "$GCC" = yes; then
7541  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7542
7543
7544{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7545$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7546if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7547  $as_echo_n "(cached) " >&6
7548else
7549  lt_cv_prog_compiler_rtti_exceptions=no
7550  ac_outfile=conftest.$ac_objext
7551   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7552   lt_compiler_flag="-fno-rtti -fno-exceptions"
7553   # Insert the option either (1) after the last *FLAGS variable, or
7554   # (2) before a word containing "conftest.", or (3) at the end.
7555   # Note that $ac_compile itself does not contain backslashes and begins
7556   # with a dollar sign (not a hyphen), so the echo should work correctly.
7557   # The option is referenced via a variable to avoid confusing sed.
7558   lt_compile=`echo "$ac_compile" | $SED \
7559   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7560   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7561   -e 's:$: $lt_compiler_flag:'`
7562   (eval echo "\"\$as_me:7562: $lt_compile\"" >&5)
7563   (eval "$lt_compile" 2>conftest.err)
7564   ac_status=$?
7565   cat conftest.err >&5
7566   echo "$as_me:7566: \$? = $ac_status" >&5
7567   if (exit $ac_status) && test -s "$ac_outfile"; then
7568     # The compiler can only warn and ignore the option if not recognized
7569     # So say no if there are warnings other than the usual output.
7570     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7571     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7572     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7573       lt_cv_prog_compiler_rtti_exceptions=yes
7574     fi
7575   fi
7576   $rm conftest*
7577
7578fi
7579{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7580$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7581
7582if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7583    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7584else
7585    :
7586fi
7587
7588fi
7589
7590lt_prog_compiler_wl=
7591lt_prog_compiler_pic=
7592lt_prog_compiler_static=
7593
7594{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7595$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7596
7597  if test "$GCC" = yes; then
7598    lt_prog_compiler_wl='-Wl,'
7599    lt_prog_compiler_static='-static'
7600
7601    case $host_os in
7602      aix*)
7603      # All AIX code is PIC.
7604      if test "$host_cpu" = ia64; then
7605	# AIX 5 now supports IA64 processor
7606	lt_prog_compiler_static='-Bstatic'
7607      fi
7608      ;;
7609
7610    amigaos*)
7611      # FIXME: we need at least 68020 code to build shared libraries, but
7612      # adding the `-m68020' flag to GCC prevents building anything better,
7613      # like `-m68040'.
7614      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7615      ;;
7616
7617    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7618      # PIC is the default for these OSes.
7619      ;;
7620
7621    mingw* | cygwin* | pw32* | os2*)
7622      # This hack is so that the source file can tell whether it is being
7623      # built for inclusion in a dll (and should export symbols for example).
7624      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7625      # (--disable-auto-import) libraries
7626      lt_prog_compiler_pic='-DDLL_EXPORT'
7627      ;;
7628
7629    darwin* | rhapsody*)
7630      # PIC is the default on this platform
7631      # Common symbols not allowed in MH_DYLIB files
7632      lt_prog_compiler_pic='-fno-common'
7633      ;;
7634
7635    interix[3-9]*)
7636      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7637      # Instead, we relocate shared libraries at runtime.
7638      ;;
7639
7640    msdosdjgpp*)
7641      # Just because we use GCC doesn't mean we suddenly get shared libraries
7642      # on systems that don't support them.
7643      lt_prog_compiler_can_build_shared=no
7644      enable_shared=no
7645      ;;
7646
7647    sysv4*MP*)
7648      if test -d /usr/nec; then
7649	lt_prog_compiler_pic=-Kconform_pic
7650      fi
7651      ;;
7652
7653    hpux*)
7654      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7655      # not for PA HP-UX.
7656      case $host_cpu in
7657      hppa*64*|ia64*)
7658	# +Z the default
7659	;;
7660      *)
7661	lt_prog_compiler_pic='-fPIC'
7662	;;
7663      esac
7664      ;;
7665
7666    *)
7667      lt_prog_compiler_pic='-fPIC'
7668      ;;
7669    esac
7670  else
7671    # PORTME Check for flag to pass linker flags through the system compiler.
7672    case $host_os in
7673    aix*)
7674      lt_prog_compiler_wl='-Wl,'
7675      if test "$host_cpu" = ia64; then
7676	# AIX 5 now supports IA64 processor
7677	lt_prog_compiler_static='-Bstatic'
7678      else
7679	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7680      fi
7681      ;;
7682      darwin*)
7683        # PIC is the default on this platform
7684        # Common symbols not allowed in MH_DYLIB files
7685       case $cc_basename in
7686         xlc*)
7687         lt_prog_compiler_pic='-qnocommon'
7688         lt_prog_compiler_wl='-Wl,'
7689         ;;
7690       esac
7691       ;;
7692
7693    mingw* | cygwin* | pw32* | os2*)
7694      # This hack is so that the source file can tell whether it is being
7695      # built for inclusion in a dll (and should export symbols for example).
7696      lt_prog_compiler_pic='-DDLL_EXPORT'
7697      ;;
7698
7699    hpux9* | hpux10* | hpux11*)
7700      lt_prog_compiler_wl='-Wl,'
7701      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7702      # not for PA HP-UX.
7703      case $host_cpu in
7704      hppa*64*|ia64*)
7705	# +Z the default
7706	;;
7707      *)
7708	lt_prog_compiler_pic='+Z'
7709	;;
7710      esac
7711      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7712      lt_prog_compiler_static='${wl}-a ${wl}archive'
7713      ;;
7714
7715    irix5* | irix6* | nonstopux*)
7716      lt_prog_compiler_wl='-Wl,'
7717      # PIC (with -KPIC) is the default.
7718      lt_prog_compiler_static='-non_shared'
7719      ;;
7720
7721    newsos6)
7722      lt_prog_compiler_pic='-KPIC'
7723      lt_prog_compiler_static='-Bstatic'
7724      ;;
7725
7726    linux* | k*bsd*-gnu)
7727      case $cc_basename in
7728      icc* | ecc*)
7729	lt_prog_compiler_wl='-Wl,'
7730	lt_prog_compiler_pic='-KPIC'
7731	lt_prog_compiler_static='-static'
7732        ;;
7733      pgcc* | pgf77* | pgf90* | pgf95*)
7734        # Portland Group compilers (*not* the Pentium gcc compiler,
7735	# which looks to be a dead project)
7736	lt_prog_compiler_wl='-Wl,'
7737	lt_prog_compiler_pic='-fpic'
7738	lt_prog_compiler_static='-Bstatic'
7739        ;;
7740      ccc*)
7741        lt_prog_compiler_wl='-Wl,'
7742        # All Alpha code is PIC.
7743        lt_prog_compiler_static='-non_shared'
7744        ;;
7745      *)
7746        case `$CC -V 2>&1 | sed 5q` in
7747	*Sun\ C*)
7748	  # Sun C 5.9
7749	  lt_prog_compiler_pic='-KPIC'
7750	  lt_prog_compiler_static='-Bstatic'
7751	  lt_prog_compiler_wl='-Wl,'
7752	  ;;
7753	*Sun\ F*)
7754	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7755	  lt_prog_compiler_pic='-KPIC'
7756	  lt_prog_compiler_static='-Bstatic'
7757	  lt_prog_compiler_wl=''
7758	  ;;
7759	esac
7760	;;
7761      esac
7762      ;;
7763
7764    osf3* | osf4* | osf5*)
7765      lt_prog_compiler_wl='-Wl,'
7766      # All OSF/1 code is PIC.
7767      lt_prog_compiler_static='-non_shared'
7768      ;;
7769
7770    rdos*)
7771      lt_prog_compiler_static='-non_shared'
7772      ;;
7773
7774    solaris*)
7775      lt_prog_compiler_pic='-KPIC'
7776      lt_prog_compiler_static='-Bstatic'
7777      case $cc_basename in
7778      f77* | f90* | f95*)
7779	lt_prog_compiler_wl='-Qoption ld ';;
7780      *)
7781	lt_prog_compiler_wl='-Wl,';;
7782      esac
7783      ;;
7784
7785    sunos4*)
7786      lt_prog_compiler_wl='-Qoption ld '
7787      lt_prog_compiler_pic='-PIC'
7788      lt_prog_compiler_static='-Bstatic'
7789      ;;
7790
7791    sysv4 | sysv4.2uw2* | sysv4.3*)
7792      lt_prog_compiler_wl='-Wl,'
7793      lt_prog_compiler_pic='-KPIC'
7794      lt_prog_compiler_static='-Bstatic'
7795      ;;
7796
7797    sysv4*MP*)
7798      if test -d /usr/nec ;then
7799	lt_prog_compiler_pic='-Kconform_pic'
7800	lt_prog_compiler_static='-Bstatic'
7801      fi
7802      ;;
7803
7804    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7805      lt_prog_compiler_wl='-Wl,'
7806      lt_prog_compiler_pic='-KPIC'
7807      lt_prog_compiler_static='-Bstatic'
7808      ;;
7809
7810    unicos*)
7811      lt_prog_compiler_wl='-Wl,'
7812      lt_prog_compiler_can_build_shared=no
7813      ;;
7814
7815    uts4*)
7816      lt_prog_compiler_pic='-pic'
7817      lt_prog_compiler_static='-Bstatic'
7818      ;;
7819
7820    *)
7821      lt_prog_compiler_can_build_shared=no
7822      ;;
7823    esac
7824  fi
7825
7826{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7827$as_echo "$lt_prog_compiler_pic" >&6; }
7828
7829#
7830# Check to make sure the PIC flag actually works.
7831#
7832if test -n "$lt_prog_compiler_pic"; then
7833
7834{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7835$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7836if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7837  $as_echo_n "(cached) " >&6
7838else
7839  lt_cv_prog_compiler_pic_works=no
7840  ac_outfile=conftest.$ac_objext
7841   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7842   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7843   # Insert the option either (1) after the last *FLAGS variable, or
7844   # (2) before a word containing "conftest.", or (3) at the end.
7845   # Note that $ac_compile itself does not contain backslashes and begins
7846   # with a dollar sign (not a hyphen), so the echo should work correctly.
7847   # The option is referenced via a variable to avoid confusing sed.
7848   lt_compile=`echo "$ac_compile" | $SED \
7849   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7850   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7851   -e 's:$: $lt_compiler_flag:'`
7852   (eval echo "\"\$as_me:7852: $lt_compile\"" >&5)
7853   (eval "$lt_compile" 2>conftest.err)
7854   ac_status=$?
7855   cat conftest.err >&5
7856   echo "$as_me:7856: \$? = $ac_status" >&5
7857   if (exit $ac_status) && test -s "$ac_outfile"; then
7858     # The compiler can only warn and ignore the option if not recognized
7859     # So say no if there are warnings other than the usual output.
7860     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7861     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7862     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7863       lt_cv_prog_compiler_pic_works=yes
7864     fi
7865   fi
7866   $rm conftest*
7867
7868fi
7869{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7870$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7871
7872if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7873    case $lt_prog_compiler_pic in
7874     "" | " "*) ;;
7875     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7876     esac
7877else
7878    lt_prog_compiler_pic=
7879     lt_prog_compiler_can_build_shared=no
7880fi
7881
7882fi
7883case $host_os in
7884  # For platforms which do not support PIC, -DPIC is meaningless:
7885  *djgpp*)
7886    lt_prog_compiler_pic=
7887    ;;
7888  *)
7889    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7890    ;;
7891esac
7892
7893#
7894# Check to make sure the static flag actually works.
7895#
7896wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7897{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7898$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7899if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7900  $as_echo_n "(cached) " >&6
7901else
7902  lt_cv_prog_compiler_static_works=no
7903   save_LDFLAGS="$LDFLAGS"
7904   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7905   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7906   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7907     # The linker can only warn and ignore the option if not recognized
7908     # So say no if there are warnings
7909     if test -s conftest.err; then
7910       # Append any errors to the config.log.
7911       cat conftest.err 1>&5
7912       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7913       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7914       if diff conftest.exp conftest.er2 >/dev/null; then
7915         lt_cv_prog_compiler_static_works=yes
7916       fi
7917     else
7918       lt_cv_prog_compiler_static_works=yes
7919     fi
7920   fi
7921   $rm -r conftest*
7922   LDFLAGS="$save_LDFLAGS"
7923
7924fi
7925{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7926$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7927
7928if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7929    :
7930else
7931    lt_prog_compiler_static=
7932fi
7933
7934
7935{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7936$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7937if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7938  $as_echo_n "(cached) " >&6
7939else
7940  lt_cv_prog_compiler_c_o=no
7941   $rm -r conftest 2>/dev/null
7942   mkdir conftest
7943   cd conftest
7944   mkdir out
7945   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7946
7947   lt_compiler_flag="-o out/conftest2.$ac_objext"
7948   # Insert the option either (1) after the last *FLAGS variable, or
7949   # (2) before a word containing "conftest.", or (3) at the end.
7950   # Note that $ac_compile itself does not contain backslashes and begins
7951   # with a dollar sign (not a hyphen), so the echo should work correctly.
7952   lt_compile=`echo "$ac_compile" | $SED \
7953   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7954   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7955   -e 's:$: $lt_compiler_flag:'`
7956   (eval echo "\"\$as_me:7956: $lt_compile\"" >&5)
7957   (eval "$lt_compile" 2>out/conftest.err)
7958   ac_status=$?
7959   cat out/conftest.err >&5
7960   echo "$as_me:7960: \$? = $ac_status" >&5
7961   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7962   then
7963     # The compiler can only warn and ignore the option if not recognized
7964     # So say no if there are warnings
7965     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7966     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7967     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7968       lt_cv_prog_compiler_c_o=yes
7969     fi
7970   fi
7971   chmod u+w . 2>&5
7972   $rm conftest*
7973   # SGI C++ compiler will create directory out/ii_files/ for
7974   # template instantiation
7975   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7976   $rm out/* && rmdir out
7977   cd ..
7978   rmdir conftest
7979   $rm conftest*
7980
7981fi
7982{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7983$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7984
7985
7986hard_links="nottested"
7987if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7988  # do not overwrite the value of need_locks provided by the user
7989  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7990$as_echo_n "checking if we can lock with hard links... " >&6; }
7991  hard_links=yes
7992  $rm conftest*
7993  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7994  touch conftest.a
7995  ln conftest.a conftest.b 2>&5 || hard_links=no
7996  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7997  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7998$as_echo "$hard_links" >&6; }
7999  if test "$hard_links" = no; then
8000    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8001$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8002    need_locks=warn
8003  fi
8004else
8005  need_locks=no
8006fi
8007
8008{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8009$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8010
8011  runpath_var=
8012  allow_undefined_flag=
8013  enable_shared_with_static_runtimes=no
8014  archive_cmds=
8015  archive_expsym_cmds=
8016  old_archive_From_new_cmds=
8017  old_archive_from_expsyms_cmds=
8018  export_dynamic_flag_spec=
8019  whole_archive_flag_spec=
8020  thread_safe_flag_spec=
8021  hardcode_libdir_flag_spec=
8022  hardcode_libdir_flag_spec_ld=
8023  hardcode_libdir_separator=
8024  hardcode_direct=no
8025  hardcode_minus_L=no
8026  hardcode_shlibpath_var=unsupported
8027  link_all_deplibs=unknown
8028  hardcode_automatic=no
8029  module_cmds=
8030  module_expsym_cmds=
8031  always_export_symbols=no
8032  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8033  # include_expsyms should be a list of space-separated symbols to be *always*
8034  # included in the symbol list
8035  include_expsyms=
8036  # exclude_expsyms can be an extended regexp of symbols to exclude
8037  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8038  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8039  # as well as any symbol that contains `d'.
8040  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8041  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8042  # platforms (ab)use it in PIC code, but their linkers get confused if
8043  # the symbol is explicitly referenced.  Since portable code cannot
8044  # rely on this symbol name, it's probably fine to never include it in
8045  # preloaded symbol tables.
8046  # Exclude shared library initialization/finalization symbols.
8047  extract_expsyms_cmds=
8048  # Just being paranoid about ensuring that cc_basename is set.
8049  for cc_temp in $compiler""; do
8050  case $cc_temp in
8051    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8052    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8053    \-*) ;;
8054    *) break;;
8055  esac
8056done
8057cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8058
8059  case $host_os in
8060  cygwin* | mingw* | pw32*)
8061    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8062    # When not using gcc, we currently assume that we are using
8063    # Microsoft Visual C++.
8064    if test "$GCC" != yes; then
8065      with_gnu_ld=no
8066    fi
8067    ;;
8068  interix*)
8069    # we just hope/assume this is gcc and not c89 (= MSVC++)
8070    with_gnu_ld=yes
8071    ;;
8072  openbsd*)
8073    with_gnu_ld=no
8074    ;;
8075  esac
8076
8077  ld_shlibs=yes
8078  if test "$with_gnu_ld" = yes; then
8079    # If archive_cmds runs LD, not CC, wlarc should be empty
8080    wlarc='${wl}'
8081
8082    # Set some defaults for GNU ld with shared library support. These
8083    # are reset later if shared libraries are not supported. Putting them
8084    # here allows them to be overridden if necessary.
8085    runpath_var=LD_RUN_PATH
8086    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8087    export_dynamic_flag_spec='${wl}--export-dynamic'
8088    # ancient GNU ld didn't support --whole-archive et. al.
8089    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8090	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8091      else
8092  	whole_archive_flag_spec=
8093    fi
8094    supports_anon_versioning=no
8095    case `$LD -v 2>/dev/null` in
8096      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8097      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8098      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8099      *\ 2.11.*) ;; # other 2.11 versions
8100      *) supports_anon_versioning=yes ;;
8101    esac
8102
8103    # See if GNU ld supports shared libraries.
8104    case $host_os in
8105    aix[3-9]*)
8106      # On AIX/PPC, the GNU linker is very broken
8107      if test "$host_cpu" != ia64; then
8108	ld_shlibs=no
8109	cat <<EOF 1>&2
8110
8111*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8112*** to be unable to reliably create shared libraries on AIX.
8113*** Therefore, libtool is disabling shared libraries support.  If you
8114*** really care for shared libraries, you may want to modify your PATH
8115*** so that a non-GNU linker is found, and then restart.
8116
8117EOF
8118      fi
8119      ;;
8120
8121    amigaos*)
8122      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)'
8123      hardcode_libdir_flag_spec='-L$libdir'
8124      hardcode_minus_L=yes
8125
8126      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8127      # that the semantics of dynamic libraries on AmigaOS, at least up
8128      # to version 4, is to share data among multiple programs linked
8129      # with the same dynamic library.  Since this doesn't match the
8130      # behavior of shared libraries on other platforms, we can't use
8131      # them.
8132      ld_shlibs=no
8133      ;;
8134
8135    beos*)
8136      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8137	allow_undefined_flag=unsupported
8138	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8139	# support --undefined.  This deserves some investigation.  FIXME
8140	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8141      else
8142	ld_shlibs=no
8143      fi
8144      ;;
8145
8146    cygwin* | mingw* | pw32*)
8147      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8148      # as there is no search path for DLLs.
8149      hardcode_libdir_flag_spec='-L$libdir'
8150      allow_undefined_flag=unsupported
8151      always_export_symbols=no
8152      enable_shared_with_static_runtimes=yes
8153      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8154
8155      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8156        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8157	# If the export-symbols file already is a .def file (1st line
8158	# is EXPORTS), use it as is; otherwise, prepend...
8159	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8160	  cp $export_symbols $output_objdir/$soname.def;
8161	else
8162	  echo EXPORTS > $output_objdir/$soname.def;
8163	  cat $export_symbols >> $output_objdir/$soname.def;
8164	fi~
8165	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8166      else
8167	ld_shlibs=no
8168      fi
8169      ;;
8170
8171    interix[3-9]*)
8172      hardcode_direct=no
8173      hardcode_shlibpath_var=no
8174      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8175      export_dynamic_flag_spec='${wl}-E'
8176      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8177      # Instead, shared libraries are loaded at an image base (0x10000000 by
8178      # default) and relocated if they conflict, which is a slow very memory
8179      # consuming and fragmenting process.  To avoid this, we pick a random,
8180      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8181      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8182      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8183      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'
8184      ;;
8185
8186    gnu* | linux* | k*bsd*-gnu)
8187      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8188	tmp_addflag=
8189	case $cc_basename,$host_cpu in
8190	pgcc*)				# Portland Group C compiler
8191	  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'
8192	  tmp_addflag=' $pic_flag'
8193	  ;;
8194	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8195	  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'
8196	  tmp_addflag=' $pic_flag -Mnomain' ;;
8197	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8198	  tmp_addflag=' -i_dynamic' ;;
8199	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8200	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8201	ifc* | ifort*)			# Intel Fortran compiler
8202	  tmp_addflag=' -nofor_main' ;;
8203	esac
8204	case `$CC -V 2>&1 | sed 5q` in
8205	*Sun\ C*)			# Sun C 5.9
8206	  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'
8207	  tmp_sharedflag='-G' ;;
8208	*Sun\ F*)			# Sun Fortran 8.3
8209	  tmp_sharedflag='-G' ;;
8210	*)
8211	  tmp_sharedflag='-shared' ;;
8212	esac
8213	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8214
8215	if test $supports_anon_versioning = yes; then
8216	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8217  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8218  $echo "local: *; };" >> $output_objdir/$libname.ver~
8219	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8220	fi
8221      else
8222	ld_shlibs=no
8223      fi
8224      ;;
8225
8226    netbsd*)
8227      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8228	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8229	wlarc=
8230      else
8231	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8232	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8233      fi
8234      ;;
8235
8236    solaris*)
8237      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8238	ld_shlibs=no
8239	cat <<EOF 1>&2
8240
8241*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8242*** create shared libraries on Solaris systems.  Therefore, libtool
8243*** is disabling shared libraries support.  We urge you to upgrade GNU
8244*** binutils to release 2.9.1 or newer.  Another option is to modify
8245*** your PATH or compiler configuration so that the native linker is
8246*** used, and then restart.
8247
8248EOF
8249      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8250	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8251	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8252      else
8253	ld_shlibs=no
8254      fi
8255      ;;
8256
8257    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8258      case `$LD -v 2>&1` in
8259        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8260	ld_shlibs=no
8261	cat <<_LT_EOF 1>&2
8262
8263*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8264*** reliably create shared libraries on SCO systems.  Therefore, libtool
8265*** is disabling shared libraries support.  We urge you to upgrade GNU
8266*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8267*** your PATH or compiler configuration so that the native linker is
8268*** used, and then restart.
8269
8270_LT_EOF
8271	;;
8272	*)
8273	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8274	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8275	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8276	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8277	  else
8278	    ld_shlibs=no
8279	  fi
8280	;;
8281      esac
8282      ;;
8283
8284    sunos4*)
8285      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8286      wlarc=
8287      hardcode_direct=yes
8288      hardcode_shlibpath_var=no
8289      ;;
8290
8291    *)
8292      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8293	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8294	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8295      else
8296	ld_shlibs=no
8297      fi
8298      ;;
8299    esac
8300
8301    if test "$ld_shlibs" = no; then
8302      runpath_var=
8303      hardcode_libdir_flag_spec=
8304      export_dynamic_flag_spec=
8305      whole_archive_flag_spec=
8306    fi
8307  else
8308    # PORTME fill in a description of your system's linker (not GNU ld)
8309    case $host_os in
8310    aix3*)
8311      allow_undefined_flag=unsupported
8312      always_export_symbols=yes
8313      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'
8314      # Note: this linker hardcodes the directories in LIBPATH if there
8315      # are no directories specified by -L.
8316      hardcode_minus_L=yes
8317      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8318	# Neither direct hardcoding nor static linking is supported with a
8319	# broken collect2.
8320	hardcode_direct=unsupported
8321      fi
8322      ;;
8323
8324    aix[4-9]*)
8325      if test "$host_cpu" = ia64; then
8326	# On IA64, the linker does run time linking by default, so we don't
8327	# have to do anything special.
8328	aix_use_runtimelinking=no
8329	exp_sym_flag='-Bexport'
8330	no_entry_flag=""
8331      else
8332	# If we're using GNU nm, then we don't want the "-C" option.
8333	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8334	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8335	  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'
8336	else
8337	  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'
8338	fi
8339	aix_use_runtimelinking=no
8340
8341	# Test if we are trying to use run time linking or normal
8342	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8343	# need to do runtime linking.
8344	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8345	  for ld_flag in $LDFLAGS; do
8346  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8347  	    aix_use_runtimelinking=yes
8348  	    break
8349  	  fi
8350	  done
8351	  ;;
8352	esac
8353
8354	exp_sym_flag='-bexport'
8355	no_entry_flag='-bnoentry'
8356      fi
8357
8358      # When large executables or shared objects are built, AIX ld can
8359      # have problems creating the table of contents.  If linking a library
8360      # or program results in "error TOC overflow" add -mminimal-toc to
8361      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8362      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8363
8364      archive_cmds=''
8365      hardcode_direct=yes
8366      hardcode_libdir_separator=':'
8367      link_all_deplibs=yes
8368
8369      if test "$GCC" = yes; then
8370	case $host_os in aix4.[012]|aix4.[012].*)
8371	# We only want to do this on AIX 4.2 and lower, the check
8372	# below for broken collect2 doesn't work under 4.3+
8373	  collect2name=`${CC} -print-prog-name=collect2`
8374	  if test -f "$collect2name" && \
8375  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8376	  then
8377  	  # We have reworked collect2
8378  	  :
8379	  else
8380  	  # We have old collect2
8381  	  hardcode_direct=unsupported
8382  	  # It fails to find uninstalled libraries when the uninstalled
8383  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8384  	  # to unsupported forces relinking
8385  	  hardcode_minus_L=yes
8386  	  hardcode_libdir_flag_spec='-L$libdir'
8387  	  hardcode_libdir_separator=
8388	  fi
8389	  ;;
8390	esac
8391	shared_flag='-shared'
8392	if test "$aix_use_runtimelinking" = yes; then
8393	  shared_flag="$shared_flag "'${wl}-G'
8394	fi
8395      else
8396	# not using gcc
8397	if test "$host_cpu" = ia64; then
8398  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8399  	# chokes on -Wl,-G. The following line is correct:
8400	  shared_flag='-G'
8401	else
8402	  if test "$aix_use_runtimelinking" = yes; then
8403	    shared_flag='${wl}-G'
8404	  else
8405	    shared_flag='${wl}-bM:SRE'
8406	  fi
8407	fi
8408      fi
8409
8410      # It seems that -bexpall does not export symbols beginning with
8411      # underscore (_), so it is better to generate a list of symbols to export.
8412      always_export_symbols=yes
8413      if test "$aix_use_runtimelinking" = yes; then
8414	# Warning - without using the other runtime loading flags (-brtl),
8415	# -berok will link without error, but may produce a broken library.
8416	allow_undefined_flag='-berok'
8417       # Determine the default libpath from the value encoded in an empty executable.
8418       cat >conftest.$ac_ext <<_ACEOF
8419/* confdefs.h.  */
8420_ACEOF
8421cat confdefs.h >>conftest.$ac_ext
8422cat >>conftest.$ac_ext <<_ACEOF
8423/* end confdefs.h.  */
8424
8425int
8426main ()
8427{
8428
8429  ;
8430  return 0;
8431}
8432_ACEOF
8433rm -f conftest.$ac_objext conftest$ac_exeext
8434if { (ac_try="$ac_link"
8435case "(($ac_try" in
8436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437  *) ac_try_echo=$ac_try;;
8438esac
8439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8440$as_echo "$ac_try_echo") >&5
8441  (eval "$ac_link") 2>conftest.er1
8442  ac_status=$?
8443  grep -v '^ *+' conftest.er1 >conftest.err
8444  rm -f conftest.er1
8445  cat conftest.err >&5
8446  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447  (exit $ac_status); } && {
8448	 test -z "$ac_c_werror_flag" ||
8449	 test ! -s conftest.err
8450       } && test -s conftest$ac_exeext && {
8451	 test "$cross_compiling" = yes ||
8452	 $as_test_x conftest$ac_exeext
8453       }; then
8454
8455lt_aix_libpath_sed='
8456    /Import File Strings/,/^$/ {
8457	/^0/ {
8458	    s/^0  *\(.*\)$/\1/
8459	    p
8460	}
8461    }'
8462aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8463# Check for a 64-bit object if we didn't find anything.
8464if test -z "$aix_libpath"; then
8465  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8466fi
8467else
8468  $as_echo "$as_me: failed program was:" >&5
8469sed 's/^/| /' conftest.$ac_ext >&5
8470
8471
8472fi
8473
8474rm -rf conftest.dSYM
8475rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8476      conftest$ac_exeext conftest.$ac_ext
8477if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8478
8479       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8480	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"
8481       else
8482	if test "$host_cpu" = ia64; then
8483	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8484	  allow_undefined_flag="-z nodefs"
8485	  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"
8486	else
8487	 # Determine the default libpath from the value encoded in an empty executable.
8488	 cat >conftest.$ac_ext <<_ACEOF
8489/* confdefs.h.  */
8490_ACEOF
8491cat confdefs.h >>conftest.$ac_ext
8492cat >>conftest.$ac_ext <<_ACEOF
8493/* end confdefs.h.  */
8494
8495int
8496main ()
8497{
8498
8499  ;
8500  return 0;
8501}
8502_ACEOF
8503rm -f conftest.$ac_objext conftest$ac_exeext
8504if { (ac_try="$ac_link"
8505case "(($ac_try" in
8506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507  *) ac_try_echo=$ac_try;;
8508esac
8509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8510$as_echo "$ac_try_echo") >&5
8511  (eval "$ac_link") 2>conftest.er1
8512  ac_status=$?
8513  grep -v '^ *+' conftest.er1 >conftest.err
8514  rm -f conftest.er1
8515  cat conftest.err >&5
8516  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517  (exit $ac_status); } && {
8518	 test -z "$ac_c_werror_flag" ||
8519	 test ! -s conftest.err
8520       } && test -s conftest$ac_exeext && {
8521	 test "$cross_compiling" = yes ||
8522	 $as_test_x conftest$ac_exeext
8523       }; then
8524
8525lt_aix_libpath_sed='
8526    /Import File Strings/,/^$/ {
8527	/^0/ {
8528	    s/^0  *\(.*\)$/\1/
8529	    p
8530	}
8531    }'
8532aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8533# Check for a 64-bit object if we didn't find anything.
8534if test -z "$aix_libpath"; then
8535  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8536fi
8537else
8538  $as_echo "$as_me: failed program was:" >&5
8539sed 's/^/| /' conftest.$ac_ext >&5
8540
8541
8542fi
8543
8544rm -rf conftest.dSYM
8545rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8546      conftest$ac_exeext conftest.$ac_ext
8547if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8548
8549	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8550	  # Warning - without using the other run time loading flags,
8551	  # -berok will link without error, but may produce a broken library.
8552	  no_undefined_flag=' ${wl}-bernotok'
8553	  allow_undefined_flag=' ${wl}-berok'
8554	  # Exported symbols can be pulled into shared objects from archives
8555	  whole_archive_flag_spec='$convenience'
8556	  archive_cmds_need_lc=yes
8557	  # This is similar to how AIX traditionally builds its shared libraries.
8558	  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'
8559	fi
8560      fi
8561      ;;
8562
8563    amigaos*)
8564      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)'
8565      hardcode_libdir_flag_spec='-L$libdir'
8566      hardcode_minus_L=yes
8567      # see comment about different semantics on the GNU ld section
8568      ld_shlibs=no
8569      ;;
8570
8571    bsdi[45]*)
8572      export_dynamic_flag_spec=-rdynamic
8573      ;;
8574
8575    cygwin* | mingw* | pw32*)
8576      # When not using gcc, we currently assume that we are using
8577      # Microsoft Visual C++.
8578      # hardcode_libdir_flag_spec is actually meaningless, as there is
8579      # no search path for DLLs.
8580      hardcode_libdir_flag_spec=' '
8581      allow_undefined_flag=unsupported
8582      # Tell ltmain to make .lib files, not .a files.
8583      libext=lib
8584      # Tell ltmain to make .dll files, not .so files.
8585      shrext_cmds=".dll"
8586      # FIXME: Setting linknames here is a bad hack.
8587      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8588      # The linker will automatically build a .lib file if we build a DLL.
8589      old_archive_From_new_cmds='true'
8590      # FIXME: Should let the user specify the lib program.
8591      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8592      fix_srcfile_path='`cygpath -w "$srcfile"`'
8593      enable_shared_with_static_runtimes=yes
8594      ;;
8595
8596    darwin* | rhapsody*)
8597      case $host_os in
8598        rhapsody* | darwin1.[012])
8599         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8600         ;;
8601       *) # Darwin 1.3 on
8602         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8603           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8604         else
8605           case ${MACOSX_DEPLOYMENT_TARGET} in
8606             10.[012])
8607               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8608               ;;
8609             10.*)
8610               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8611               ;;
8612           esac
8613         fi
8614         ;;
8615      esac
8616      archive_cmds_need_lc=no
8617      hardcode_direct=no
8618      hardcode_automatic=yes
8619      hardcode_shlibpath_var=unsupported
8620      whole_archive_flag_spec=''
8621      link_all_deplibs=yes
8622    if test "$GCC" = yes ; then
8623    	output_verbose_link_cmd='echo'
8624        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8625        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8626        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}"
8627        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}"
8628    else
8629      case $cc_basename in
8630        xlc*)
8631         output_verbose_link_cmd='echo'
8632         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8633         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8634          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8635         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}'
8636          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}'
8637          ;;
8638       *)
8639         ld_shlibs=no
8640          ;;
8641      esac
8642    fi
8643      ;;
8644
8645    dgux*)
8646      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8647      hardcode_libdir_flag_spec='-L$libdir'
8648      hardcode_shlibpath_var=no
8649      ;;
8650
8651    freebsd1*)
8652      ld_shlibs=no
8653      ;;
8654
8655    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8656    # support.  Future versions do this automatically, but an explicit c++rt0.o
8657    # does not break anything, and helps significantly (at the cost of a little
8658    # extra space).
8659    freebsd2.2*)
8660      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8661      hardcode_libdir_flag_spec='-R$libdir'
8662      hardcode_direct=yes
8663      hardcode_shlibpath_var=no
8664      ;;
8665
8666    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8667    freebsd2*)
8668      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8669      hardcode_direct=yes
8670      hardcode_minus_L=yes
8671      hardcode_shlibpath_var=no
8672      ;;
8673
8674    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8675    freebsd* | dragonfly*)
8676      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8677      hardcode_libdir_flag_spec='-R$libdir'
8678      hardcode_direct=yes
8679      hardcode_shlibpath_var=no
8680      ;;
8681
8682    hpux9*)
8683      if test "$GCC" = yes; then
8684	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'
8685      else
8686	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'
8687      fi
8688      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8689      hardcode_libdir_separator=:
8690      hardcode_direct=yes
8691
8692      # hardcode_minus_L: Not really in the search PATH,
8693      # but as the default location of the library.
8694      hardcode_minus_L=yes
8695      export_dynamic_flag_spec='${wl}-E'
8696      ;;
8697
8698    hpux10*)
8699      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8700	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8701      else
8702	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8703      fi
8704      if test "$with_gnu_ld" = no; then
8705	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8706	hardcode_libdir_separator=:
8707
8708	hardcode_direct=yes
8709	export_dynamic_flag_spec='${wl}-E'
8710
8711	# hardcode_minus_L: Not really in the search PATH,
8712	# but as the default location of the library.
8713	hardcode_minus_L=yes
8714      fi
8715      ;;
8716
8717    hpux11*)
8718      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8719	case $host_cpu in
8720	hppa*64*)
8721	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8722	  ;;
8723	ia64*)
8724	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8725	  ;;
8726	*)
8727	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8728	  ;;
8729	esac
8730      else
8731	case $host_cpu in
8732	hppa*64*)
8733	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8734	  ;;
8735	ia64*)
8736	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8737	  ;;
8738	*)
8739	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8740	  ;;
8741	esac
8742      fi
8743      if test "$with_gnu_ld" = no; then
8744	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8745	hardcode_libdir_separator=:
8746
8747	case $host_cpu in
8748	hppa*64*|ia64*)
8749	  hardcode_libdir_flag_spec_ld='+b $libdir'
8750	  hardcode_direct=no
8751	  hardcode_shlibpath_var=no
8752	  ;;
8753	*)
8754	  hardcode_direct=yes
8755	  export_dynamic_flag_spec='${wl}-E'
8756
8757	  # hardcode_minus_L: Not really in the search PATH,
8758	  # but as the default location of the library.
8759	  hardcode_minus_L=yes
8760	  ;;
8761	esac
8762      fi
8763      ;;
8764
8765    irix5* | irix6* | nonstopux*)
8766      if test "$GCC" = yes; then
8767	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'
8768      else
8769	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'
8770	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8771      fi
8772      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8773      hardcode_libdir_separator=:
8774      link_all_deplibs=yes
8775      ;;
8776
8777    netbsd*)
8778      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8779	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8780      else
8781	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8782      fi
8783      hardcode_libdir_flag_spec='-R$libdir'
8784      hardcode_direct=yes
8785      hardcode_shlibpath_var=no
8786      ;;
8787
8788    newsos6)
8789      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8790      hardcode_direct=yes
8791      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8792      hardcode_libdir_separator=:
8793      hardcode_shlibpath_var=no
8794      ;;
8795
8796    openbsd*)
8797      if test -f /usr/libexec/ld.so; then
8798	hardcode_direct=yes
8799	hardcode_shlibpath_var=no
8800	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8801	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8802	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8803	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8804	  export_dynamic_flag_spec='${wl}-E'
8805	else
8806	  case $host_os in
8807	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8808	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8809	     hardcode_libdir_flag_spec='-R$libdir'
8810	     ;;
8811	   *)
8812	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8813	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8814	     ;;
8815	  esac
8816        fi
8817      else
8818	ld_shlibs=no
8819      fi
8820      ;;
8821
8822    os2*)
8823      hardcode_libdir_flag_spec='-L$libdir'
8824      hardcode_minus_L=yes
8825      allow_undefined_flag=unsupported
8826      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'
8827      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8828      ;;
8829
8830    osf3*)
8831      if test "$GCC" = yes; then
8832	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8833	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'
8834      else
8835	allow_undefined_flag=' -expect_unresolved \*'
8836	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'
8837      fi
8838      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8839      hardcode_libdir_separator=:
8840      ;;
8841
8842    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8843      if test "$GCC" = yes; then
8844	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8845	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'
8846	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8847      else
8848	allow_undefined_flag=' -expect_unresolved \*'
8849	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'
8850	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8851	$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'
8852
8853	# Both c and cxx compiler support -rpath directly
8854	hardcode_libdir_flag_spec='-rpath $libdir'
8855      fi
8856      hardcode_libdir_separator=:
8857      ;;
8858
8859    solaris*)
8860      no_undefined_flag=' -z text'
8861      if test "$GCC" = yes; then
8862	wlarc='${wl}'
8863	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8864	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8865	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8866      else
8867	wlarc=''
8868	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8869	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8870  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8871      fi
8872      hardcode_libdir_flag_spec='-R$libdir'
8873      hardcode_shlibpath_var=no
8874      case $host_os in
8875      solaris2.[0-5] | solaris2.[0-5].*) ;;
8876      *)
8877	# The compiler driver will combine and reorder linker options,
8878	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8879	# but is careful enough not to reorder.
8880 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8881	if test "$GCC" = yes; then
8882	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8883	else
8884	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8885	fi
8886	;;
8887      esac
8888      link_all_deplibs=yes
8889      ;;
8890
8891    sunos4*)
8892      if test "x$host_vendor" = xsequent; then
8893	# Use $CC to link under sequent, because it throws in some extra .o
8894	# files that make .init and .fini sections work.
8895	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8896      else
8897	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8898      fi
8899      hardcode_libdir_flag_spec='-L$libdir'
8900      hardcode_direct=yes
8901      hardcode_minus_L=yes
8902      hardcode_shlibpath_var=no
8903      ;;
8904
8905    sysv4)
8906      case $host_vendor in
8907	sni)
8908	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8909	  hardcode_direct=yes # is this really true???
8910	;;
8911	siemens)
8912	  ## LD is ld it makes a PLAMLIB
8913	  ## CC just makes a GrossModule.
8914	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8915	  reload_cmds='$CC -r -o $output$reload_objs'
8916	  hardcode_direct=no
8917        ;;
8918	motorola)
8919	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8920	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8921	;;
8922      esac
8923      runpath_var='LD_RUN_PATH'
8924      hardcode_shlibpath_var=no
8925      ;;
8926
8927    sysv4.3*)
8928      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8929      hardcode_shlibpath_var=no
8930      export_dynamic_flag_spec='-Bexport'
8931      ;;
8932
8933    sysv4*MP*)
8934      if test -d /usr/nec; then
8935	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8936	hardcode_shlibpath_var=no
8937	runpath_var=LD_RUN_PATH
8938	hardcode_runpath_var=yes
8939	ld_shlibs=yes
8940      fi
8941      ;;
8942
8943    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8944      no_undefined_flag='${wl}-z,text'
8945      archive_cmds_need_lc=no
8946      hardcode_shlibpath_var=no
8947      runpath_var='LD_RUN_PATH'
8948
8949      if test "$GCC" = yes; then
8950	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8951	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8952      else
8953	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8954	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8955      fi
8956      ;;
8957
8958    sysv5* | sco3.2v5* | sco5v6*)
8959      # Note: We can NOT use -z defs as we might desire, because we do not
8960      # link with -lc, and that would cause any symbols used from libc to
8961      # always be unresolved, which means just about no library would
8962      # ever link correctly.  If we're not using GNU ld we use -z text
8963      # though, which does catch some bad symbols but isn't as heavy-handed
8964      # as -z defs.
8965      no_undefined_flag='${wl}-z,text'
8966      allow_undefined_flag='${wl}-z,nodefs'
8967      archive_cmds_need_lc=no
8968      hardcode_shlibpath_var=no
8969      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8970      hardcode_libdir_separator=':'
8971      link_all_deplibs=yes
8972      export_dynamic_flag_spec='${wl}-Bexport'
8973      runpath_var='LD_RUN_PATH'
8974
8975      if test "$GCC" = yes; then
8976	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8977	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8978      else
8979	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8980	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8981      fi
8982      ;;
8983
8984    uts4*)
8985      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8986      hardcode_libdir_flag_spec='-L$libdir'
8987      hardcode_shlibpath_var=no
8988      ;;
8989
8990    *)
8991      ld_shlibs=no
8992      ;;
8993    esac
8994  fi
8995
8996{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8997$as_echo "$ld_shlibs" >&6; }
8998test "$ld_shlibs" = no && can_build_shared=no
8999
9000#
9001# Do we need to explicitly link libc?
9002#
9003case "x$archive_cmds_need_lc" in
9004x|xyes)
9005  # Assume -lc should be added
9006  archive_cmds_need_lc=yes
9007
9008  if test "$enable_shared" = yes && test "$GCC" = yes; then
9009    case $archive_cmds in
9010    *'~'*)
9011      # FIXME: we may have to deal with multi-command sequences.
9012      ;;
9013    '$CC '*)
9014      # Test whether the compiler implicitly links with -lc since on some
9015      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9016      # to ld, don't add -lc before -lgcc.
9017      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9018$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9019      $rm conftest*
9020      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9021
9022      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9023  (eval $ac_compile) 2>&5
9024  ac_status=$?
9025  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026  (exit $ac_status); } 2>conftest.err; then
9027        soname=conftest
9028        lib=conftest
9029        libobjs=conftest.$ac_objext
9030        deplibs=
9031        wl=$lt_prog_compiler_wl
9032	pic_flag=$lt_prog_compiler_pic
9033        compiler_flags=-v
9034        linker_flags=-v
9035        verstring=
9036        output_objdir=.
9037        libname=conftest
9038        lt_save_allow_undefined_flag=$allow_undefined_flag
9039        allow_undefined_flag=
9040        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9041  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9042  ac_status=$?
9043  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044  (exit $ac_status); }
9045        then
9046	  archive_cmds_need_lc=no
9047        else
9048	  archive_cmds_need_lc=yes
9049        fi
9050        allow_undefined_flag=$lt_save_allow_undefined_flag
9051      else
9052        cat conftest.err 1>&5
9053      fi
9054      $rm conftest*
9055      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9056$as_echo "$archive_cmds_need_lc" >&6; }
9057      ;;
9058    esac
9059  fi
9060  ;;
9061esac
9062
9063{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9064$as_echo_n "checking dynamic linker characteristics... " >&6; }
9065library_names_spec=
9066libname_spec='lib$name'
9067soname_spec=
9068shrext_cmds=".so"
9069postinstall_cmds=
9070postuninstall_cmds=
9071finish_cmds=
9072finish_eval=
9073shlibpath_var=
9074shlibpath_overrides_runpath=unknown
9075version_type=none
9076dynamic_linker="$host_os ld.so"
9077sys_lib_dlsearch_path_spec="/lib /usr/lib"
9078
9079if test "$GCC" = yes; then
9080  case $host_os in
9081    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9082    *) lt_awk_arg="/^libraries:/" ;;
9083  esac
9084  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9085  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9086    # if the path contains ";" then we assume it to be the separator
9087    # otherwise default to the standard path separator (i.e. ":") - it is
9088    # assumed that no part of a normal pathname contains ";" but that should
9089    # okay in the real world where ";" in dirpaths is itself problematic.
9090    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9091  else
9092    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9093  fi
9094  # Ok, now we have the path, separated by spaces, we can step through it
9095  # and add multilib dir if necessary.
9096  lt_tmp_lt_search_path_spec=
9097  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9098  for lt_sys_path in $lt_search_path_spec; do
9099    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9100      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9101    else
9102      test -d "$lt_sys_path" && \
9103	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9104    fi
9105  done
9106  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9107BEGIN {RS=" "; FS="/|\n";} {
9108  lt_foo="";
9109  lt_count=0;
9110  for (lt_i = NF; lt_i > 0; lt_i--) {
9111    if ($lt_i != "" && $lt_i != ".") {
9112      if ($lt_i == "..") {
9113        lt_count++;
9114      } else {
9115        if (lt_count == 0) {
9116          lt_foo="/" $lt_i lt_foo;
9117        } else {
9118          lt_count--;
9119        }
9120      }
9121    }
9122  }
9123  if (lt_foo != "") { lt_freq[lt_foo]++; }
9124  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9125}'`
9126  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9127else
9128  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9129fi
9130need_lib_prefix=unknown
9131hardcode_into_libs=no
9132
9133# when you set need_version to no, make sure it does not cause -set_version
9134# flags to be left without arguments
9135need_version=unknown
9136
9137case $host_os in
9138aix3*)
9139  version_type=linux
9140  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9141  shlibpath_var=LIBPATH
9142
9143  # AIX 3 has no versioning support, so we append a major version to the name.
9144  soname_spec='${libname}${release}${shared_ext}$major'
9145  ;;
9146
9147aix[4-9]*)
9148  version_type=linux
9149  need_lib_prefix=no
9150  need_version=no
9151  hardcode_into_libs=yes
9152  if test "$host_cpu" = ia64; then
9153    # AIX 5 supports IA64
9154    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9155    shlibpath_var=LD_LIBRARY_PATH
9156  else
9157    # With GCC up to 2.95.x, collect2 would create an import file
9158    # for dependence libraries.  The import file would start with
9159    # the line `#! .'.  This would cause the generated library to
9160    # depend on `.', always an invalid library.  This was fixed in
9161    # development snapshots of GCC prior to 3.0.
9162    case $host_os in
9163      aix4 | aix4.[01] | aix4.[01].*)
9164      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9165	   echo ' yes '
9166	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9167	:
9168      else
9169	can_build_shared=no
9170      fi
9171      ;;
9172    esac
9173    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9174    # soname into executable. Probably we can add versioning support to
9175    # collect2, so additional links can be useful in future.
9176    if test "$aix_use_runtimelinking" = yes; then
9177      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9178      # instead of lib<name>.a to let people know that these are not
9179      # typical AIX shared libraries.
9180      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181    else
9182      # We preserve .a as extension for shared libraries through AIX4.2
9183      # and later when we are not doing run time linking.
9184      library_names_spec='${libname}${release}.a $libname.a'
9185      soname_spec='${libname}${release}${shared_ext}$major'
9186    fi
9187    shlibpath_var=LIBPATH
9188  fi
9189  ;;
9190
9191amigaos*)
9192  library_names_spec='$libname.ixlibrary $libname.a'
9193  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9194  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'
9195  ;;
9196
9197beos*)
9198  library_names_spec='${libname}${shared_ext}'
9199  dynamic_linker="$host_os ld.so"
9200  shlibpath_var=LIBRARY_PATH
9201  ;;
9202
9203bsdi[45]*)
9204  version_type=linux
9205  need_version=no
9206  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207  soname_spec='${libname}${release}${shared_ext}$major'
9208  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9209  shlibpath_var=LD_LIBRARY_PATH
9210  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9211  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9212  # the default ld.so.conf also contains /usr/contrib/lib and
9213  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9214  # libtool to hard-code these into programs
9215  ;;
9216
9217cygwin* | mingw* | pw32*)
9218  version_type=windows
9219  shrext_cmds=".dll"
9220  need_version=no
9221  need_lib_prefix=no
9222
9223  case $GCC,$host_os in
9224  yes,cygwin* | yes,mingw* | yes,pw32*)
9225    library_names_spec='$libname.dll.a'
9226    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9227    postinstall_cmds='base_file=`basename \${file}`~
9228      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9229      dldir=$destdir/`dirname \$dlpath`~
9230      test -d \$dldir || mkdir -p \$dldir~
9231      $install_prog $dir/$dlname \$dldir/$dlname~
9232      chmod a+x \$dldir/$dlname'
9233    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9234      dlpath=$dir/\$dldll~
9235       $rm \$dlpath'
9236    shlibpath_overrides_runpath=yes
9237
9238    case $host_os in
9239    cygwin*)
9240      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9241      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9242      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9243      ;;
9244    mingw*)
9245      # MinGW DLLs use traditional 'lib' prefix
9246      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9247      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9248      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9249        # It is most probably a Windows format PATH printed by
9250        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9251        # path with ; separators, and with drive letters. We can handle the
9252        # drive letters (cygwin fileutils understands them), so leave them,
9253        # especially as we might pass files found there to a mingw objdump,
9254        # which wouldn't understand a cygwinified path. Ahh.
9255        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9256      else
9257        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9258      fi
9259      ;;
9260    pw32*)
9261      # pw32 DLLs use 'pw' prefix rather than 'lib'
9262      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9263      ;;
9264    esac
9265    ;;
9266
9267  *)
9268    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9269    ;;
9270  esac
9271  dynamic_linker='Win32 ld.exe'
9272  # FIXME: first we should search . and the directory the executable is in
9273  shlibpath_var=PATH
9274  ;;
9275
9276darwin* | rhapsody*)
9277  dynamic_linker="$host_os dyld"
9278  version_type=darwin
9279  need_lib_prefix=no
9280  need_version=no
9281  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9282  soname_spec='${libname}${release}${major}$shared_ext'
9283  shlibpath_overrides_runpath=yes
9284  shlibpath_var=DYLD_LIBRARY_PATH
9285  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9286
9287  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9288  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9289  ;;
9290
9291dgux*)
9292  version_type=linux
9293  need_lib_prefix=no
9294  need_version=no
9295  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9296  soname_spec='${libname}${release}${shared_ext}$major'
9297  shlibpath_var=LD_LIBRARY_PATH
9298  ;;
9299
9300freebsd1*)
9301  dynamic_linker=no
9302  ;;
9303
9304freebsd* | dragonfly*)
9305  # DragonFly does not have aout.  When/if they implement a new
9306  # versioning mechanism, adjust this.
9307  if test -x /usr/bin/objformat; then
9308    objformat=`/usr/bin/objformat`
9309  else
9310    case $host_os in
9311    freebsd[123]*) objformat=aout ;;
9312    *) objformat=elf ;;
9313    esac
9314  fi
9315  # Handle Gentoo/FreeBSD as it was Linux
9316  case $host_vendor in
9317    gentoo)
9318      version_type=linux ;;
9319    *)
9320      version_type=freebsd-$objformat ;;
9321  esac
9322
9323  case $version_type in
9324    freebsd-elf*)
9325      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9326      need_version=no
9327      need_lib_prefix=no
9328      ;;
9329    freebsd-*)
9330      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9331      need_version=yes
9332      ;;
9333    linux)
9334      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9335      soname_spec='${libname}${release}${shared_ext}$major'
9336      need_lib_prefix=no
9337      need_version=no
9338      ;;
9339  esac
9340  shlibpath_var=LD_LIBRARY_PATH
9341  case $host_os in
9342  freebsd2*)
9343    shlibpath_overrides_runpath=yes
9344    ;;
9345  freebsd3.[01]* | freebsdelf3.[01]*)
9346    shlibpath_overrides_runpath=yes
9347    hardcode_into_libs=yes
9348    ;;
9349  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9350  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9351    shlibpath_overrides_runpath=no
9352    hardcode_into_libs=yes
9353    ;;
9354  *) # from 4.6 on, and DragonFly
9355    shlibpath_overrides_runpath=yes
9356    hardcode_into_libs=yes
9357    ;;
9358  esac
9359  ;;
9360
9361gnu*)
9362  version_type=linux
9363  need_lib_prefix=no
9364  need_version=no
9365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9366  soname_spec='${libname}${release}${shared_ext}$major'
9367  shlibpath_var=LD_LIBRARY_PATH
9368  hardcode_into_libs=yes
9369  ;;
9370
9371hpux9* | hpux10* | hpux11*)
9372  # Give a soname corresponding to the major version so that dld.sl refuses to
9373  # link against other versions.
9374  version_type=sunos
9375  need_lib_prefix=no
9376  need_version=no
9377  case $host_cpu in
9378  ia64*)
9379    shrext_cmds='.so'
9380    hardcode_into_libs=yes
9381    dynamic_linker="$host_os dld.so"
9382    shlibpath_var=LD_LIBRARY_PATH
9383    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9384    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385    soname_spec='${libname}${release}${shared_ext}$major'
9386    if test "X$HPUX_IA64_MODE" = X32; then
9387      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9388    else
9389      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9390    fi
9391    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9392    ;;
9393   hppa*64*)
9394     shrext_cmds='.sl'
9395     hardcode_into_libs=yes
9396     dynamic_linker="$host_os dld.sl"
9397     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9398     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9399     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9400     soname_spec='${libname}${release}${shared_ext}$major'
9401     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9402     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9403     ;;
9404   *)
9405    shrext_cmds='.sl'
9406    dynamic_linker="$host_os dld.sl"
9407    shlibpath_var=SHLIB_PATH
9408    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9409    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9410    soname_spec='${libname}${release}${shared_ext}$major'
9411    ;;
9412  esac
9413  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9414  postinstall_cmds='chmod 555 $lib'
9415  ;;
9416
9417interix[3-9]*)
9418  version_type=linux
9419  need_lib_prefix=no
9420  need_version=no
9421  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9422  soname_spec='${libname}${release}${shared_ext}$major'
9423  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9424  shlibpath_var=LD_LIBRARY_PATH
9425  shlibpath_overrides_runpath=no
9426  hardcode_into_libs=yes
9427  ;;
9428
9429irix5* | irix6* | nonstopux*)
9430  case $host_os in
9431    nonstopux*) version_type=nonstopux ;;
9432    *)
9433	if test "$lt_cv_prog_gnu_ld" = yes; then
9434		version_type=linux
9435	else
9436		version_type=irix
9437	fi ;;
9438  esac
9439  need_lib_prefix=no
9440  need_version=no
9441  soname_spec='${libname}${release}${shared_ext}$major'
9442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9443  case $host_os in
9444  irix5* | nonstopux*)
9445    libsuff= shlibsuff=
9446    ;;
9447  *)
9448    case $LD in # libtool.m4 will add one of these switches to LD
9449    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9450      libsuff= shlibsuff= libmagic=32-bit;;
9451    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9452      libsuff=32 shlibsuff=N32 libmagic=N32;;
9453    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9454      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9455    *) libsuff= shlibsuff= libmagic=never-match;;
9456    esac
9457    ;;
9458  esac
9459  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9460  shlibpath_overrides_runpath=no
9461  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9462  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9463  hardcode_into_libs=yes
9464  ;;
9465
9466# No shared lib support for Linux oldld, aout, or coff.
9467linux*oldld* | linux*aout* | linux*coff*)
9468  dynamic_linker=no
9469  ;;
9470
9471# This must be Linux ELF.
9472linux* | k*bsd*-gnu)
9473  version_type=linux
9474  need_lib_prefix=no
9475  need_version=no
9476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9477  soname_spec='${libname}${release}${shared_ext}$major'
9478  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9479  shlibpath_var=LD_LIBRARY_PATH
9480  shlibpath_overrides_runpath=no
9481  # This implies no fast_install, which is unacceptable.
9482  # Some rework will be needed to allow for fast_install
9483  # before this can be enabled.
9484  hardcode_into_libs=yes
9485
9486  # Append ld.so.conf contents to the search path
9487  if test -f /etc/ld.so.conf; then
9488    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' ' '`
9489    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9490  fi
9491
9492  # We used to test for /lib/ld.so.1 and disable shared libraries on
9493  # powerpc, because MkLinux only supported shared libraries with the
9494  # GNU dynamic linker.  Since this was broken with cross compilers,
9495  # most powerpc-linux boxes support dynamic linking these days and
9496  # people can always --disable-shared, the test was removed, and we
9497  # assume the GNU/Linux dynamic linker is in use.
9498  dynamic_linker='GNU/Linux ld.so'
9499  ;;
9500
9501netbsd*)
9502  version_type=sunos
9503  need_lib_prefix=no
9504  need_version=no
9505  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9506    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9507    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9508    dynamic_linker='NetBSD (a.out) ld.so'
9509  else
9510    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9511    soname_spec='${libname}${release}${shared_ext}$major'
9512    dynamic_linker='NetBSD ld.elf_so'
9513  fi
9514  shlibpath_var=LD_LIBRARY_PATH
9515  shlibpath_overrides_runpath=yes
9516  hardcode_into_libs=yes
9517  ;;
9518
9519newsos6)
9520  version_type=linux
9521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9522  shlibpath_var=LD_LIBRARY_PATH
9523  shlibpath_overrides_runpath=yes
9524  ;;
9525
9526nto-qnx*)
9527  version_type=linux
9528  need_lib_prefix=no
9529  need_version=no
9530  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9531  soname_spec='${libname}${release}${shared_ext}$major'
9532  shlibpath_var=LD_LIBRARY_PATH
9533  shlibpath_overrides_runpath=yes
9534  ;;
9535
9536openbsd*)
9537  version_type=sunos
9538  sys_lib_dlsearch_path_spec="/usr/lib"
9539  need_lib_prefix=no
9540  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9541  case $host_os in
9542    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9543    *)                         need_version=no  ;;
9544  esac
9545  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9546  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9547  shlibpath_var=LD_LIBRARY_PATH
9548  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9549    case $host_os in
9550      openbsd2.[89] | openbsd2.[89].*)
9551	shlibpath_overrides_runpath=no
9552	;;
9553      *)
9554	shlibpath_overrides_runpath=yes
9555	;;
9556      esac
9557  else
9558    shlibpath_overrides_runpath=yes
9559  fi
9560  ;;
9561
9562os2*)
9563  libname_spec='$name'
9564  shrext_cmds=".dll"
9565  need_lib_prefix=no
9566  library_names_spec='$libname${shared_ext} $libname.a'
9567  dynamic_linker='OS/2 ld.exe'
9568  shlibpath_var=LIBPATH
9569  ;;
9570
9571osf3* | osf4* | osf5*)
9572  version_type=osf
9573  need_lib_prefix=no
9574  need_version=no
9575  soname_spec='${libname}${release}${shared_ext}$major'
9576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9577  shlibpath_var=LD_LIBRARY_PATH
9578  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9579  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9580  ;;
9581
9582rdos*)
9583  dynamic_linker=no
9584  ;;
9585
9586solaris*)
9587  version_type=linux
9588  need_lib_prefix=no
9589  need_version=no
9590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9591  soname_spec='${libname}${release}${shared_ext}$major'
9592  shlibpath_var=LD_LIBRARY_PATH
9593  shlibpath_overrides_runpath=yes
9594  hardcode_into_libs=yes
9595  # ldd complains unless libraries are executable
9596  postinstall_cmds='chmod +x $lib'
9597  ;;
9598
9599sunos4*)
9600  version_type=sunos
9601  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9602  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9603  shlibpath_var=LD_LIBRARY_PATH
9604  shlibpath_overrides_runpath=yes
9605  if test "$with_gnu_ld" = yes; then
9606    need_lib_prefix=no
9607  fi
9608  need_version=yes
9609  ;;
9610
9611sysv4 | sysv4.3*)
9612  version_type=linux
9613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9614  soname_spec='${libname}${release}${shared_ext}$major'
9615  shlibpath_var=LD_LIBRARY_PATH
9616  case $host_vendor in
9617    sni)
9618      shlibpath_overrides_runpath=no
9619      need_lib_prefix=no
9620      export_dynamic_flag_spec='${wl}-Blargedynsym'
9621      runpath_var=LD_RUN_PATH
9622      ;;
9623    siemens)
9624      need_lib_prefix=no
9625      ;;
9626    motorola)
9627      need_lib_prefix=no
9628      need_version=no
9629      shlibpath_overrides_runpath=no
9630      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9631      ;;
9632  esac
9633  ;;
9634
9635sysv4*MP*)
9636  if test -d /usr/nec ;then
9637    version_type=linux
9638    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9639    soname_spec='$libname${shared_ext}.$major'
9640    shlibpath_var=LD_LIBRARY_PATH
9641  fi
9642  ;;
9643
9644sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9645  version_type=freebsd-elf
9646  need_lib_prefix=no
9647  need_version=no
9648  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9649  soname_spec='${libname}${release}${shared_ext}$major'
9650  shlibpath_var=LD_LIBRARY_PATH
9651  hardcode_into_libs=yes
9652  if test "$with_gnu_ld" = yes; then
9653    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9654    shlibpath_overrides_runpath=no
9655  else
9656    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9657    shlibpath_overrides_runpath=yes
9658    case $host_os in
9659      sco3.2v5*)
9660        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9661	;;
9662    esac
9663  fi
9664  sys_lib_dlsearch_path_spec='/usr/lib'
9665  ;;
9666
9667uts4*)
9668  version_type=linux
9669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9670  soname_spec='${libname}${release}${shared_ext}$major'
9671  shlibpath_var=LD_LIBRARY_PATH
9672  ;;
9673
9674*)
9675  dynamic_linker=no
9676  ;;
9677esac
9678{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9679$as_echo "$dynamic_linker" >&6; }
9680test "$dynamic_linker" = no && can_build_shared=no
9681
9682if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9683  $as_echo_n "(cached) " >&6
9684else
9685  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9686fi
9687
9688sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9689if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9690  $as_echo_n "(cached) " >&6
9691else
9692  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9693fi
9694
9695sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9696
9697variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9698if test "$GCC" = yes; then
9699  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9700fi
9701
9702{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9703$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9704hardcode_action=
9705if test -n "$hardcode_libdir_flag_spec" || \
9706   test -n "$runpath_var" || \
9707   test "X$hardcode_automatic" = "Xyes" ; then
9708
9709  # We can hardcode non-existant directories.
9710  if test "$hardcode_direct" != no &&
9711     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9712     # have to relink, otherwise we might link with an installed library
9713     # when we should be linking with a yet-to-be-installed one
9714     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9715     test "$hardcode_minus_L" != no; then
9716    # Linking always hardcodes the temporary library directory.
9717    hardcode_action=relink
9718  else
9719    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9720    hardcode_action=immediate
9721  fi
9722else
9723  # We cannot hardcode anything, or else we can only hardcode existing
9724  # directories.
9725  hardcode_action=unsupported
9726fi
9727{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9728$as_echo "$hardcode_action" >&6; }
9729
9730if test "$hardcode_action" = relink; then
9731  # Fast installation is not supported
9732  enable_fast_install=no
9733elif test "$shlibpath_overrides_runpath" = yes ||
9734     test "$enable_shared" = no; then
9735  # Fast installation is not necessary
9736  enable_fast_install=needless
9737fi
9738
9739striplib=
9740old_striplib=
9741{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9742$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9743if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9744  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9745  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9746  { $as_echo "$as_me:$LINENO: result: yes" >&5
9747$as_echo "yes" >&6; }
9748else
9749# FIXME - insert some real tests, host_os isn't really good enough
9750  case $host_os in
9751   darwin*)
9752       if test -n "$STRIP" ; then
9753         striplib="$STRIP -x"
9754         old_striplib="$STRIP -S"
9755         { $as_echo "$as_me:$LINENO: result: yes" >&5
9756$as_echo "yes" >&6; }
9757       else
9758  { $as_echo "$as_me:$LINENO: result: no" >&5
9759$as_echo "no" >&6; }
9760fi
9761       ;;
9762   *)
9763  { $as_echo "$as_me:$LINENO: result: no" >&5
9764$as_echo "no" >&6; }
9765    ;;
9766  esac
9767fi
9768
9769if test "x$enable_dlopen" != xyes; then
9770  enable_dlopen=unknown
9771  enable_dlopen_self=unknown
9772  enable_dlopen_self_static=unknown
9773else
9774  lt_cv_dlopen=no
9775  lt_cv_dlopen_libs=
9776
9777  case $host_os in
9778  beos*)
9779    lt_cv_dlopen="load_add_on"
9780    lt_cv_dlopen_libs=
9781    lt_cv_dlopen_self=yes
9782    ;;
9783
9784  mingw* | pw32*)
9785    lt_cv_dlopen="LoadLibrary"
9786    lt_cv_dlopen_libs=
9787   ;;
9788
9789  cygwin*)
9790    lt_cv_dlopen="dlopen"
9791    lt_cv_dlopen_libs=
9792   ;;
9793
9794  darwin*)
9795  # if libdl is installed we need to link against it
9796    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9797$as_echo_n "checking for dlopen in -ldl... " >&6; }
9798if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9799  $as_echo_n "(cached) " >&6
9800else
9801  ac_check_lib_save_LIBS=$LIBS
9802LIBS="-ldl  $LIBS"
9803cat >conftest.$ac_ext <<_ACEOF
9804/* confdefs.h.  */
9805_ACEOF
9806cat confdefs.h >>conftest.$ac_ext
9807cat >>conftest.$ac_ext <<_ACEOF
9808/* end confdefs.h.  */
9809
9810/* Override any GCC internal prototype to avoid an error.
9811   Use char because int might match the return type of a GCC
9812   builtin and then its argument prototype would still apply.  */
9813#ifdef __cplusplus
9814extern "C"
9815#endif
9816char dlopen ();
9817int
9818main ()
9819{
9820return dlopen ();
9821  ;
9822  return 0;
9823}
9824_ACEOF
9825rm -f conftest.$ac_objext conftest$ac_exeext
9826if { (ac_try="$ac_link"
9827case "(($ac_try" in
9828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829  *) ac_try_echo=$ac_try;;
9830esac
9831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9832$as_echo "$ac_try_echo") >&5
9833  (eval "$ac_link") 2>conftest.er1
9834  ac_status=$?
9835  grep -v '^ *+' conftest.er1 >conftest.err
9836  rm -f conftest.er1
9837  cat conftest.err >&5
9838  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839  (exit $ac_status); } && {
9840	 test -z "$ac_c_werror_flag" ||
9841	 test ! -s conftest.err
9842       } && test -s conftest$ac_exeext && {
9843	 test "$cross_compiling" = yes ||
9844	 $as_test_x conftest$ac_exeext
9845       }; then
9846  ac_cv_lib_dl_dlopen=yes
9847else
9848  $as_echo "$as_me: failed program was:" >&5
9849sed 's/^/| /' conftest.$ac_ext >&5
9850
9851	ac_cv_lib_dl_dlopen=no
9852fi
9853
9854rm -rf conftest.dSYM
9855rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9856      conftest$ac_exeext conftest.$ac_ext
9857LIBS=$ac_check_lib_save_LIBS
9858fi
9859{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9860$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9861if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9862  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9863else
9864
9865    lt_cv_dlopen="dyld"
9866    lt_cv_dlopen_libs=
9867    lt_cv_dlopen_self=yes
9868
9869fi
9870
9871   ;;
9872
9873  *)
9874    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9875$as_echo_n "checking for shl_load... " >&6; }
9876if test "${ac_cv_func_shl_load+set}" = set; then
9877  $as_echo_n "(cached) " >&6
9878else
9879  cat >conftest.$ac_ext <<_ACEOF
9880/* confdefs.h.  */
9881_ACEOF
9882cat confdefs.h >>conftest.$ac_ext
9883cat >>conftest.$ac_ext <<_ACEOF
9884/* end confdefs.h.  */
9885/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9886   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9887#define shl_load innocuous_shl_load
9888
9889/* System header to define __stub macros and hopefully few prototypes,
9890    which can conflict with char shl_load (); below.
9891    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9892    <limits.h> exists even on freestanding compilers.  */
9893
9894#ifdef __STDC__
9895# include <limits.h>
9896#else
9897# include <assert.h>
9898#endif
9899
9900#undef shl_load
9901
9902/* Override any GCC internal prototype to avoid an error.
9903   Use char because int might match the return type of a GCC
9904   builtin and then its argument prototype would still apply.  */
9905#ifdef __cplusplus
9906extern "C"
9907#endif
9908char shl_load ();
9909/* The GNU C library defines this for functions which it implements
9910    to always fail with ENOSYS.  Some functions are actually named
9911    something starting with __ and the normal name is an alias.  */
9912#if defined __stub_shl_load || defined __stub___shl_load
9913choke me
9914#endif
9915
9916int
9917main ()
9918{
9919return shl_load ();
9920  ;
9921  return 0;
9922}
9923_ACEOF
9924rm -f conftest.$ac_objext conftest$ac_exeext
9925if { (ac_try="$ac_link"
9926case "(($ac_try" in
9927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9928  *) ac_try_echo=$ac_try;;
9929esac
9930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9931$as_echo "$ac_try_echo") >&5
9932  (eval "$ac_link") 2>conftest.er1
9933  ac_status=$?
9934  grep -v '^ *+' conftest.er1 >conftest.err
9935  rm -f conftest.er1
9936  cat conftest.err >&5
9937  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938  (exit $ac_status); } && {
9939	 test -z "$ac_c_werror_flag" ||
9940	 test ! -s conftest.err
9941       } && test -s conftest$ac_exeext && {
9942	 test "$cross_compiling" = yes ||
9943	 $as_test_x conftest$ac_exeext
9944       }; then
9945  ac_cv_func_shl_load=yes
9946else
9947  $as_echo "$as_me: failed program was:" >&5
9948sed 's/^/| /' conftest.$ac_ext >&5
9949
9950	ac_cv_func_shl_load=no
9951fi
9952
9953rm -rf conftest.dSYM
9954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9955      conftest$ac_exeext conftest.$ac_ext
9956fi
9957{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9958$as_echo "$ac_cv_func_shl_load" >&6; }
9959if test "x$ac_cv_func_shl_load" = x""yes; then
9960  lt_cv_dlopen="shl_load"
9961else
9962  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9963$as_echo_n "checking for shl_load in -ldld... " >&6; }
9964if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9965  $as_echo_n "(cached) " >&6
9966else
9967  ac_check_lib_save_LIBS=$LIBS
9968LIBS="-ldld  $LIBS"
9969cat >conftest.$ac_ext <<_ACEOF
9970/* confdefs.h.  */
9971_ACEOF
9972cat confdefs.h >>conftest.$ac_ext
9973cat >>conftest.$ac_ext <<_ACEOF
9974/* end confdefs.h.  */
9975
9976/* Override any GCC internal prototype to avoid an error.
9977   Use char because int might match the return type of a GCC
9978   builtin and then its argument prototype would still apply.  */
9979#ifdef __cplusplus
9980extern "C"
9981#endif
9982char shl_load ();
9983int
9984main ()
9985{
9986return shl_load ();
9987  ;
9988  return 0;
9989}
9990_ACEOF
9991rm -f conftest.$ac_objext conftest$ac_exeext
9992if { (ac_try="$ac_link"
9993case "(($ac_try" in
9994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995  *) ac_try_echo=$ac_try;;
9996esac
9997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9998$as_echo "$ac_try_echo") >&5
9999  (eval "$ac_link") 2>conftest.er1
10000  ac_status=$?
10001  grep -v '^ *+' conftest.er1 >conftest.err
10002  rm -f conftest.er1
10003  cat conftest.err >&5
10004  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005  (exit $ac_status); } && {
10006	 test -z "$ac_c_werror_flag" ||
10007	 test ! -s conftest.err
10008       } && test -s conftest$ac_exeext && {
10009	 test "$cross_compiling" = yes ||
10010	 $as_test_x conftest$ac_exeext
10011       }; then
10012  ac_cv_lib_dld_shl_load=yes
10013else
10014  $as_echo "$as_me: failed program was:" >&5
10015sed 's/^/| /' conftest.$ac_ext >&5
10016
10017	ac_cv_lib_dld_shl_load=no
10018fi
10019
10020rm -rf conftest.dSYM
10021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10022      conftest$ac_exeext conftest.$ac_ext
10023LIBS=$ac_check_lib_save_LIBS
10024fi
10025{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10026$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10027if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10028  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10029else
10030  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10031$as_echo_n "checking for dlopen... " >&6; }
10032if test "${ac_cv_func_dlopen+set}" = set; then
10033  $as_echo_n "(cached) " >&6
10034else
10035  cat >conftest.$ac_ext <<_ACEOF
10036/* confdefs.h.  */
10037_ACEOF
10038cat confdefs.h >>conftest.$ac_ext
10039cat >>conftest.$ac_ext <<_ACEOF
10040/* end confdefs.h.  */
10041/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10042   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10043#define dlopen innocuous_dlopen
10044
10045/* System header to define __stub macros and hopefully few prototypes,
10046    which can conflict with char dlopen (); below.
10047    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10048    <limits.h> exists even on freestanding compilers.  */
10049
10050#ifdef __STDC__
10051# include <limits.h>
10052#else
10053# include <assert.h>
10054#endif
10055
10056#undef dlopen
10057
10058/* Override any GCC internal prototype to avoid an error.
10059   Use char because int might match the return type of a GCC
10060   builtin and then its argument prototype would still apply.  */
10061#ifdef __cplusplus
10062extern "C"
10063#endif
10064char dlopen ();
10065/* The GNU C library defines this for functions which it implements
10066    to always fail with ENOSYS.  Some functions are actually named
10067    something starting with __ and the normal name is an alias.  */
10068#if defined __stub_dlopen || defined __stub___dlopen
10069choke me
10070#endif
10071
10072int
10073main ()
10074{
10075return dlopen ();
10076  ;
10077  return 0;
10078}
10079_ACEOF
10080rm -f conftest.$ac_objext conftest$ac_exeext
10081if { (ac_try="$ac_link"
10082case "(($ac_try" in
10083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084  *) ac_try_echo=$ac_try;;
10085esac
10086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10087$as_echo "$ac_try_echo") >&5
10088  (eval "$ac_link") 2>conftest.er1
10089  ac_status=$?
10090  grep -v '^ *+' conftest.er1 >conftest.err
10091  rm -f conftest.er1
10092  cat conftest.err >&5
10093  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094  (exit $ac_status); } && {
10095	 test -z "$ac_c_werror_flag" ||
10096	 test ! -s conftest.err
10097       } && test -s conftest$ac_exeext && {
10098	 test "$cross_compiling" = yes ||
10099	 $as_test_x conftest$ac_exeext
10100       }; then
10101  ac_cv_func_dlopen=yes
10102else
10103  $as_echo "$as_me: failed program was:" >&5
10104sed 's/^/| /' conftest.$ac_ext >&5
10105
10106	ac_cv_func_dlopen=no
10107fi
10108
10109rm -rf conftest.dSYM
10110rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10111      conftest$ac_exeext conftest.$ac_ext
10112fi
10113{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10114$as_echo "$ac_cv_func_dlopen" >&6; }
10115if test "x$ac_cv_func_dlopen" = x""yes; then
10116  lt_cv_dlopen="dlopen"
10117else
10118  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10119$as_echo_n "checking for dlopen in -ldl... " >&6; }
10120if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10121  $as_echo_n "(cached) " >&6
10122else
10123  ac_check_lib_save_LIBS=$LIBS
10124LIBS="-ldl  $LIBS"
10125cat >conftest.$ac_ext <<_ACEOF
10126/* confdefs.h.  */
10127_ACEOF
10128cat confdefs.h >>conftest.$ac_ext
10129cat >>conftest.$ac_ext <<_ACEOF
10130/* end confdefs.h.  */
10131
10132/* Override any GCC internal prototype to avoid an error.
10133   Use char because int might match the return type of a GCC
10134   builtin and then its argument prototype would still apply.  */
10135#ifdef __cplusplus
10136extern "C"
10137#endif
10138char dlopen ();
10139int
10140main ()
10141{
10142return dlopen ();
10143  ;
10144  return 0;
10145}
10146_ACEOF
10147rm -f conftest.$ac_objext conftest$ac_exeext
10148if { (ac_try="$ac_link"
10149case "(($ac_try" in
10150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151  *) ac_try_echo=$ac_try;;
10152esac
10153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10154$as_echo "$ac_try_echo") >&5
10155  (eval "$ac_link") 2>conftest.er1
10156  ac_status=$?
10157  grep -v '^ *+' conftest.er1 >conftest.err
10158  rm -f conftest.er1
10159  cat conftest.err >&5
10160  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161  (exit $ac_status); } && {
10162	 test -z "$ac_c_werror_flag" ||
10163	 test ! -s conftest.err
10164       } && test -s conftest$ac_exeext && {
10165	 test "$cross_compiling" = yes ||
10166	 $as_test_x conftest$ac_exeext
10167       }; then
10168  ac_cv_lib_dl_dlopen=yes
10169else
10170  $as_echo "$as_me: failed program was:" >&5
10171sed 's/^/| /' conftest.$ac_ext >&5
10172
10173	ac_cv_lib_dl_dlopen=no
10174fi
10175
10176rm -rf conftest.dSYM
10177rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10178      conftest$ac_exeext conftest.$ac_ext
10179LIBS=$ac_check_lib_save_LIBS
10180fi
10181{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10182$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10183if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10184  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10185else
10186  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10187$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10188if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10189  $as_echo_n "(cached) " >&6
10190else
10191  ac_check_lib_save_LIBS=$LIBS
10192LIBS="-lsvld  $LIBS"
10193cat >conftest.$ac_ext <<_ACEOF
10194/* confdefs.h.  */
10195_ACEOF
10196cat confdefs.h >>conftest.$ac_ext
10197cat >>conftest.$ac_ext <<_ACEOF
10198/* end confdefs.h.  */
10199
10200/* Override any GCC internal prototype to avoid an error.
10201   Use char because int might match the return type of a GCC
10202   builtin and then its argument prototype would still apply.  */
10203#ifdef __cplusplus
10204extern "C"
10205#endif
10206char dlopen ();
10207int
10208main ()
10209{
10210return dlopen ();
10211  ;
10212  return 0;
10213}
10214_ACEOF
10215rm -f conftest.$ac_objext conftest$ac_exeext
10216if { (ac_try="$ac_link"
10217case "(($ac_try" in
10218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10219  *) ac_try_echo=$ac_try;;
10220esac
10221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10222$as_echo "$ac_try_echo") >&5
10223  (eval "$ac_link") 2>conftest.er1
10224  ac_status=$?
10225  grep -v '^ *+' conftest.er1 >conftest.err
10226  rm -f conftest.er1
10227  cat conftest.err >&5
10228  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229  (exit $ac_status); } && {
10230	 test -z "$ac_c_werror_flag" ||
10231	 test ! -s conftest.err
10232       } && test -s conftest$ac_exeext && {
10233	 test "$cross_compiling" = yes ||
10234	 $as_test_x conftest$ac_exeext
10235       }; then
10236  ac_cv_lib_svld_dlopen=yes
10237else
10238  $as_echo "$as_me: failed program was:" >&5
10239sed 's/^/| /' conftest.$ac_ext >&5
10240
10241	ac_cv_lib_svld_dlopen=no
10242fi
10243
10244rm -rf conftest.dSYM
10245rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10246      conftest$ac_exeext conftest.$ac_ext
10247LIBS=$ac_check_lib_save_LIBS
10248fi
10249{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10250$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10251if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10252  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10253else
10254  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10255$as_echo_n "checking for dld_link in -ldld... " >&6; }
10256if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10257  $as_echo_n "(cached) " >&6
10258else
10259  ac_check_lib_save_LIBS=$LIBS
10260LIBS="-ldld  $LIBS"
10261cat >conftest.$ac_ext <<_ACEOF
10262/* confdefs.h.  */
10263_ACEOF
10264cat confdefs.h >>conftest.$ac_ext
10265cat >>conftest.$ac_ext <<_ACEOF
10266/* end confdefs.h.  */
10267
10268/* Override any GCC internal prototype to avoid an error.
10269   Use char because int might match the return type of a GCC
10270   builtin and then its argument prototype would still apply.  */
10271#ifdef __cplusplus
10272extern "C"
10273#endif
10274char dld_link ();
10275int
10276main ()
10277{
10278return dld_link ();
10279  ;
10280  return 0;
10281}
10282_ACEOF
10283rm -f conftest.$ac_objext conftest$ac_exeext
10284if { (ac_try="$ac_link"
10285case "(($ac_try" in
10286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287  *) ac_try_echo=$ac_try;;
10288esac
10289eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10290$as_echo "$ac_try_echo") >&5
10291  (eval "$ac_link") 2>conftest.er1
10292  ac_status=$?
10293  grep -v '^ *+' conftest.er1 >conftest.err
10294  rm -f conftest.er1
10295  cat conftest.err >&5
10296  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297  (exit $ac_status); } && {
10298	 test -z "$ac_c_werror_flag" ||
10299	 test ! -s conftest.err
10300       } && test -s conftest$ac_exeext && {
10301	 test "$cross_compiling" = yes ||
10302	 $as_test_x conftest$ac_exeext
10303       }; then
10304  ac_cv_lib_dld_dld_link=yes
10305else
10306  $as_echo "$as_me: failed program was:" >&5
10307sed 's/^/| /' conftest.$ac_ext >&5
10308
10309	ac_cv_lib_dld_dld_link=no
10310fi
10311
10312rm -rf conftest.dSYM
10313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10314      conftest$ac_exeext conftest.$ac_ext
10315LIBS=$ac_check_lib_save_LIBS
10316fi
10317{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10318$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10319if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10320  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10321fi
10322
10323
10324fi
10325
10326
10327fi
10328
10329
10330fi
10331
10332
10333fi
10334
10335
10336fi
10337
10338    ;;
10339  esac
10340
10341  if test "x$lt_cv_dlopen" != xno; then
10342    enable_dlopen=yes
10343  else
10344    enable_dlopen=no
10345  fi
10346
10347  case $lt_cv_dlopen in
10348  dlopen)
10349    save_CPPFLAGS="$CPPFLAGS"
10350    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10351
10352    save_LDFLAGS="$LDFLAGS"
10353    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10354
10355    save_LIBS="$LIBS"
10356    LIBS="$lt_cv_dlopen_libs $LIBS"
10357
10358    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10359$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10360if test "${lt_cv_dlopen_self+set}" = set; then
10361  $as_echo_n "(cached) " >&6
10362else
10363  	  if test "$cross_compiling" = yes; then :
10364  lt_cv_dlopen_self=cross
10365else
10366  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10367  lt_status=$lt_dlunknown
10368  cat > conftest.$ac_ext <<EOF
10369#line 10369 "configure"
10370#include "confdefs.h"
10371
10372#if HAVE_DLFCN_H
10373#include <dlfcn.h>
10374#endif
10375
10376#include <stdio.h>
10377
10378#ifdef RTLD_GLOBAL
10379#  define LT_DLGLOBAL		RTLD_GLOBAL
10380#else
10381#  ifdef DL_GLOBAL
10382#    define LT_DLGLOBAL		DL_GLOBAL
10383#  else
10384#    define LT_DLGLOBAL		0
10385#  endif
10386#endif
10387
10388/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10389   find out it does not work in some platform. */
10390#ifndef LT_DLLAZY_OR_NOW
10391#  ifdef RTLD_LAZY
10392#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10393#  else
10394#    ifdef DL_LAZY
10395#      define LT_DLLAZY_OR_NOW		DL_LAZY
10396#    else
10397#      ifdef RTLD_NOW
10398#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10399#      else
10400#        ifdef DL_NOW
10401#          define LT_DLLAZY_OR_NOW	DL_NOW
10402#        else
10403#          define LT_DLLAZY_OR_NOW	0
10404#        endif
10405#      endif
10406#    endif
10407#  endif
10408#endif
10409
10410#ifdef __cplusplus
10411extern "C" void exit (int);
10412#endif
10413
10414void fnord() { int i=42;}
10415int main ()
10416{
10417  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10418  int status = $lt_dlunknown;
10419
10420  if (self)
10421    {
10422      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10423      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10424      /* dlclose (self); */
10425    }
10426  else
10427    puts (dlerror ());
10428
10429    exit (status);
10430}
10431EOF
10432  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10433  (eval $ac_link) 2>&5
10434  ac_status=$?
10435  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10437    (./conftest; exit; ) >&5 2>/dev/null
10438    lt_status=$?
10439    case x$lt_status in
10440      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10441      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10442      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10443    esac
10444  else :
10445    # compilation failed
10446    lt_cv_dlopen_self=no
10447  fi
10448fi
10449rm -fr conftest*
10450
10451
10452fi
10453{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10454$as_echo "$lt_cv_dlopen_self" >&6; }
10455
10456    if test "x$lt_cv_dlopen_self" = xyes; then
10457      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10458      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10459$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10460if test "${lt_cv_dlopen_self_static+set}" = set; then
10461  $as_echo_n "(cached) " >&6
10462else
10463  	  if test "$cross_compiling" = yes; then :
10464  lt_cv_dlopen_self_static=cross
10465else
10466  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10467  lt_status=$lt_dlunknown
10468  cat > conftest.$ac_ext <<EOF
10469#line 10469 "configure"
10470#include "confdefs.h"
10471
10472#if HAVE_DLFCN_H
10473#include <dlfcn.h>
10474#endif
10475
10476#include <stdio.h>
10477
10478#ifdef RTLD_GLOBAL
10479#  define LT_DLGLOBAL		RTLD_GLOBAL
10480#else
10481#  ifdef DL_GLOBAL
10482#    define LT_DLGLOBAL		DL_GLOBAL
10483#  else
10484#    define LT_DLGLOBAL		0
10485#  endif
10486#endif
10487
10488/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10489   find out it does not work in some platform. */
10490#ifndef LT_DLLAZY_OR_NOW
10491#  ifdef RTLD_LAZY
10492#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10493#  else
10494#    ifdef DL_LAZY
10495#      define LT_DLLAZY_OR_NOW		DL_LAZY
10496#    else
10497#      ifdef RTLD_NOW
10498#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10499#      else
10500#        ifdef DL_NOW
10501#          define LT_DLLAZY_OR_NOW	DL_NOW
10502#        else
10503#          define LT_DLLAZY_OR_NOW	0
10504#        endif
10505#      endif
10506#    endif
10507#  endif
10508#endif
10509
10510#ifdef __cplusplus
10511extern "C" void exit (int);
10512#endif
10513
10514void fnord() { int i=42;}
10515int main ()
10516{
10517  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10518  int status = $lt_dlunknown;
10519
10520  if (self)
10521    {
10522      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10523      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10524      /* dlclose (self); */
10525    }
10526  else
10527    puts (dlerror ());
10528
10529    exit (status);
10530}
10531EOF
10532  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10533  (eval $ac_link) 2>&5
10534  ac_status=$?
10535  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10537    (./conftest; exit; ) >&5 2>/dev/null
10538    lt_status=$?
10539    case x$lt_status in
10540      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10541      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10542      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10543    esac
10544  else :
10545    # compilation failed
10546    lt_cv_dlopen_self_static=no
10547  fi
10548fi
10549rm -fr conftest*
10550
10551
10552fi
10553{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10554$as_echo "$lt_cv_dlopen_self_static" >&6; }
10555    fi
10556
10557    CPPFLAGS="$save_CPPFLAGS"
10558    LDFLAGS="$save_LDFLAGS"
10559    LIBS="$save_LIBS"
10560    ;;
10561  esac
10562
10563  case $lt_cv_dlopen_self in
10564  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10565  *) enable_dlopen_self=unknown ;;
10566  esac
10567
10568  case $lt_cv_dlopen_self_static in
10569  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10570  *) enable_dlopen_self_static=unknown ;;
10571  esac
10572fi
10573
10574
10575# Report which library types will actually be built
10576{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10577$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10578{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10579$as_echo "$can_build_shared" >&6; }
10580
10581{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10582$as_echo_n "checking whether to build shared libraries... " >&6; }
10583test "$can_build_shared" = "no" && enable_shared=no
10584
10585# On AIX, shared libraries and static libraries use the same namespace, and
10586# are all built from PIC.
10587case $host_os in
10588aix3*)
10589  test "$enable_shared" = yes && enable_static=no
10590  if test -n "$RANLIB"; then
10591    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10592    postinstall_cmds='$RANLIB $lib'
10593  fi
10594  ;;
10595
10596aix[4-9]*)
10597  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10598    test "$enable_shared" = yes && enable_static=no
10599  fi
10600    ;;
10601esac
10602{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10603$as_echo "$enable_shared" >&6; }
10604
10605{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10606$as_echo_n "checking whether to build static libraries... " >&6; }
10607# Make sure either enable_shared or enable_static is yes.
10608test "$enable_shared" = yes || enable_static=yes
10609{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10610$as_echo "$enable_static" >&6; }
10611
10612# The else clause should only fire when bootstrapping the
10613# libtool distribution, otherwise you forgot to ship ltmain.sh
10614# with your package, and you will get complaints that there are
10615# no rules to generate ltmain.sh.
10616if test -f "$ltmain"; then
10617  # See if we are running on zsh, and set the options which allow our commands through
10618  # without removal of \ escapes.
10619  if test -n "${ZSH_VERSION+set}" ; then
10620    setopt NO_GLOB_SUBST
10621  fi
10622  # Now quote all the things that may contain metacharacters while being
10623  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10624  # variables and quote the copies for generation of the libtool script.
10625  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10626    SED SHELL STRIP \
10627    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10628    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10629    deplibs_check_method reload_flag reload_cmds need_locks \
10630    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10631    lt_cv_sys_global_symbol_to_c_name_address \
10632    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10633    old_postinstall_cmds old_postuninstall_cmds \
10634    compiler \
10635    CC \
10636    LD \
10637    lt_prog_compiler_wl \
10638    lt_prog_compiler_pic \
10639    lt_prog_compiler_static \
10640    lt_prog_compiler_no_builtin_flag \
10641    export_dynamic_flag_spec \
10642    thread_safe_flag_spec \
10643    whole_archive_flag_spec \
10644    enable_shared_with_static_runtimes \
10645    old_archive_cmds \
10646    old_archive_from_new_cmds \
10647    predep_objects \
10648    postdep_objects \
10649    predeps \
10650    postdeps \
10651    compiler_lib_search_path \
10652    compiler_lib_search_dirs \
10653    archive_cmds \
10654    archive_expsym_cmds \
10655    postinstall_cmds \
10656    postuninstall_cmds \
10657    old_archive_from_expsyms_cmds \
10658    allow_undefined_flag \
10659    no_undefined_flag \
10660    export_symbols_cmds \
10661    hardcode_libdir_flag_spec \
10662    hardcode_libdir_flag_spec_ld \
10663    hardcode_libdir_separator \
10664    hardcode_automatic \
10665    module_cmds \
10666    module_expsym_cmds \
10667    lt_cv_prog_compiler_c_o \
10668    fix_srcfile_path \
10669    exclude_expsyms \
10670    include_expsyms; do
10671
10672    case $var in
10673    old_archive_cmds | \
10674    old_archive_from_new_cmds | \
10675    archive_cmds | \
10676    archive_expsym_cmds | \
10677    module_cmds | \
10678    module_expsym_cmds | \
10679    old_archive_from_expsyms_cmds | \
10680    export_symbols_cmds | \
10681    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10682    postinstall_cmds | postuninstall_cmds | \
10683    old_postinstall_cmds | old_postuninstall_cmds | \
10684    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10685      # Double-quote double-evaled strings.
10686      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10687      ;;
10688    *)
10689      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10690      ;;
10691    esac
10692  done
10693
10694  case $lt_echo in
10695  *'\$0 --fallback-echo"')
10696    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10697    ;;
10698  esac
10699
10700cfgfile="${ofile}T"
10701  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10702  $rm -f "$cfgfile"
10703  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10704$as_echo "$as_me: creating $ofile" >&6;}
10705
10706  cat <<__EOF__ >> "$cfgfile"
10707#! $SHELL
10708
10709# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10710# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10711# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10712#
10713# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10714# Free Software Foundation, Inc.
10715#
10716# This file is part of GNU Libtool:
10717# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10718#
10719# This program is free software; you can redistribute it and/or modify
10720# it under the terms of the GNU General Public License as published by
10721# the Free Software Foundation; either version 2 of the License, or
10722# (at your option) any later version.
10723#
10724# This program is distributed in the hope that it will be useful, but
10725# WITHOUT ANY WARRANTY; without even the implied warranty of
10726# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10727# General Public License for more details.
10728#
10729# You should have received a copy of the GNU General Public License
10730# along with this program; if not, write to the Free Software
10731# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10732#
10733# As a special exception to the GNU General Public License, if you
10734# distribute this file as part of a program that contains a
10735# configuration script generated by Autoconf, you may include it under
10736# the same distribution terms that you use for the rest of that program.
10737
10738# A sed program that does not truncate output.
10739SED=$lt_SED
10740
10741# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10742Xsed="$SED -e 1s/^X//"
10743
10744# The HP-UX ksh and POSIX shell print the target directory to stdout
10745# if CDPATH is set.
10746(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10747
10748# The names of the tagged configurations supported by this script.
10749available_tags=
10750
10751# ### BEGIN LIBTOOL CONFIG
10752
10753# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10754
10755# Shell to use when invoking shell scripts.
10756SHELL=$lt_SHELL
10757
10758# Whether or not to build shared libraries.
10759build_libtool_libs=$enable_shared
10760
10761# Whether or not to build static libraries.
10762build_old_libs=$enable_static
10763
10764# Whether or not to add -lc for building shared libraries.
10765build_libtool_need_lc=$archive_cmds_need_lc
10766
10767# Whether or not to disallow shared libs when runtime libs are static
10768allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10769
10770# Whether or not to optimize for fast installation.
10771fast_install=$enable_fast_install
10772
10773# The host system.
10774host_alias=$host_alias
10775host=$host
10776host_os=$host_os
10777
10778# The build system.
10779build_alias=$build_alias
10780build=$build
10781build_os=$build_os
10782
10783# An echo program that does not interpret backslashes.
10784echo=$lt_echo
10785
10786# The archiver.
10787AR=$lt_AR
10788AR_FLAGS=$lt_AR_FLAGS
10789
10790# A C compiler.
10791LTCC=$lt_LTCC
10792
10793# LTCC compiler flags.
10794LTCFLAGS=$lt_LTCFLAGS
10795
10796# A language-specific compiler.
10797CC=$lt_compiler
10798
10799# Is the compiler the GNU C compiler?
10800with_gcc=$GCC
10801
10802# An ERE matcher.
10803EGREP=$lt_EGREP
10804
10805# The linker used to build libraries.
10806LD=$lt_LD
10807
10808# Whether we need hard or soft links.
10809LN_S=$lt_LN_S
10810
10811# A BSD-compatible nm program.
10812NM=$lt_NM
10813
10814# A symbol stripping program
10815STRIP=$lt_STRIP
10816
10817# Used to examine libraries when file_magic_cmd begins "file"
10818MAGIC_CMD=$MAGIC_CMD
10819
10820# Used on cygwin: DLL creation program.
10821DLLTOOL="$DLLTOOL"
10822
10823# Used on cygwin: object dumper.
10824OBJDUMP="$OBJDUMP"
10825
10826# Used on cygwin: assembler.
10827AS="$AS"
10828
10829# The name of the directory that contains temporary libtool files.
10830objdir=$objdir
10831
10832# How to create reloadable object files.
10833reload_flag=$lt_reload_flag
10834reload_cmds=$lt_reload_cmds
10835
10836# How to pass a linker flag through the compiler.
10837wl=$lt_lt_prog_compiler_wl
10838
10839# Object file suffix (normally "o").
10840objext="$ac_objext"
10841
10842# Old archive suffix (normally "a").
10843libext="$libext"
10844
10845# Shared library suffix (normally ".so").
10846shrext_cmds='$shrext_cmds'
10847
10848# Executable file suffix (normally "").
10849exeext="$exeext"
10850
10851# Additional compiler flags for building library objects.
10852pic_flag=$lt_lt_prog_compiler_pic
10853pic_mode=$pic_mode
10854
10855# What is the maximum length of a command?
10856max_cmd_len=$lt_cv_sys_max_cmd_len
10857
10858# Does compiler simultaneously support -c and -o options?
10859compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10860
10861# Must we lock files when doing compilation?
10862need_locks=$lt_need_locks
10863
10864# Do we need the lib prefix for modules?
10865need_lib_prefix=$need_lib_prefix
10866
10867# Do we need a version for libraries?
10868need_version=$need_version
10869
10870# Whether dlopen is supported.
10871dlopen_support=$enable_dlopen
10872
10873# Whether dlopen of programs is supported.
10874dlopen_self=$enable_dlopen_self
10875
10876# Whether dlopen of statically linked programs is supported.
10877dlopen_self_static=$enable_dlopen_self_static
10878
10879# Compiler flag to prevent dynamic linking.
10880link_static_flag=$lt_lt_prog_compiler_static
10881
10882# Compiler flag to turn off builtin functions.
10883no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10884
10885# Compiler flag to allow reflexive dlopens.
10886export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10887
10888# Compiler flag to generate shared objects directly from archives.
10889whole_archive_flag_spec=$lt_whole_archive_flag_spec
10890
10891# Compiler flag to generate thread-safe objects.
10892thread_safe_flag_spec=$lt_thread_safe_flag_spec
10893
10894# Library versioning type.
10895version_type=$version_type
10896
10897# Format of library name prefix.
10898libname_spec=$lt_libname_spec
10899
10900# List of archive names.  First name is the real one, the rest are links.
10901# The last name is the one that the linker finds with -lNAME.
10902library_names_spec=$lt_library_names_spec
10903
10904# The coded name of the library, if different from the real name.
10905soname_spec=$lt_soname_spec
10906
10907# Commands used to build and install an old-style archive.
10908RANLIB=$lt_RANLIB
10909old_archive_cmds=$lt_old_archive_cmds
10910old_postinstall_cmds=$lt_old_postinstall_cmds
10911old_postuninstall_cmds=$lt_old_postuninstall_cmds
10912
10913# Create an old-style archive from a shared archive.
10914old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10915
10916# Create a temporary old-style archive to link instead of a shared archive.
10917old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10918
10919# Commands used to build and install a shared archive.
10920archive_cmds=$lt_archive_cmds
10921archive_expsym_cmds=$lt_archive_expsym_cmds
10922postinstall_cmds=$lt_postinstall_cmds
10923postuninstall_cmds=$lt_postuninstall_cmds
10924
10925# Commands used to build a loadable module (assumed same as above if empty)
10926module_cmds=$lt_module_cmds
10927module_expsym_cmds=$lt_module_expsym_cmds
10928
10929# Commands to strip libraries.
10930old_striplib=$lt_old_striplib
10931striplib=$lt_striplib
10932
10933# Dependencies to place before the objects being linked to create a
10934# shared library.
10935predep_objects=$lt_predep_objects
10936
10937# Dependencies to place after the objects being linked to create a
10938# shared library.
10939postdep_objects=$lt_postdep_objects
10940
10941# Dependencies to place before the objects being linked to create a
10942# shared library.
10943predeps=$lt_predeps
10944
10945# Dependencies to place after the objects being linked to create a
10946# shared library.
10947postdeps=$lt_postdeps
10948
10949# The directories searched by this compiler when creating a shared
10950# library
10951compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10952
10953# The library search path used internally by the compiler when linking
10954# a shared library.
10955compiler_lib_search_path=$lt_compiler_lib_search_path
10956
10957# Method to check whether dependent libraries are shared objects.
10958deplibs_check_method=$lt_deplibs_check_method
10959
10960# Command to use when deplibs_check_method == file_magic.
10961file_magic_cmd=$lt_file_magic_cmd
10962
10963# Flag that allows shared libraries with undefined symbols to be built.
10964allow_undefined_flag=$lt_allow_undefined_flag
10965
10966# Flag that forces no undefined symbols.
10967no_undefined_flag=$lt_no_undefined_flag
10968
10969# Commands used to finish a libtool library installation in a directory.
10970finish_cmds=$lt_finish_cmds
10971
10972# Same as above, but a single script fragment to be evaled but not shown.
10973finish_eval=$lt_finish_eval
10974
10975# Take the output of nm and produce a listing of raw symbols and C names.
10976global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10977
10978# Transform the output of nm in a proper C declaration
10979global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10980
10981# Transform the output of nm in a C name address pair
10982global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10983
10984# This is the shared library runtime path variable.
10985runpath_var=$runpath_var
10986
10987# This is the shared library path variable.
10988shlibpath_var=$shlibpath_var
10989
10990# Is shlibpath searched before the hard-coded library search path?
10991shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10992
10993# How to hardcode a shared library path into an executable.
10994hardcode_action=$hardcode_action
10995
10996# Whether we should hardcode library paths into libraries.
10997hardcode_into_libs=$hardcode_into_libs
10998
10999# Flag to hardcode \$libdir into a binary during linking.
11000# This must work even if \$libdir does not exist.
11001hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11002
11003# If ld is used when linking, flag to hardcode \$libdir into
11004# a binary during linking. This must work even if \$libdir does
11005# not exist.
11006hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11007
11008# Whether we need a single -rpath flag with a separated argument.
11009hardcode_libdir_separator=$lt_hardcode_libdir_separator
11010
11011# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11012# resulting binary.
11013hardcode_direct=$hardcode_direct
11014
11015# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11016# resulting binary.
11017hardcode_minus_L=$hardcode_minus_L
11018
11019# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11020# the resulting binary.
11021hardcode_shlibpath_var=$hardcode_shlibpath_var
11022
11023# Set to yes if building a shared library automatically hardcodes DIR into the library
11024# and all subsequent libraries and executables linked against it.
11025hardcode_automatic=$hardcode_automatic
11026
11027# Variables whose values should be saved in libtool wrapper scripts and
11028# restored at relink time.
11029variables_saved_for_relink="$variables_saved_for_relink"
11030
11031# Whether libtool must link a program against all its dependency libraries.
11032link_all_deplibs=$link_all_deplibs
11033
11034# Compile-time system search path for libraries
11035sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11036
11037# Run-time system search path for libraries
11038sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11039
11040# Fix the shell variable \$srcfile for the compiler.
11041fix_srcfile_path=$lt_fix_srcfile_path
11042
11043# Set to yes if exported symbols are required.
11044always_export_symbols=$always_export_symbols
11045
11046# The commands to list exported symbols.
11047export_symbols_cmds=$lt_export_symbols_cmds
11048
11049# The commands to extract the exported symbol list from a shared archive.
11050extract_expsyms_cmds=$lt_extract_expsyms_cmds
11051
11052# Symbols that should not be listed in the preloaded symbols.
11053exclude_expsyms=$lt_exclude_expsyms
11054
11055# Symbols that must always be exported.
11056include_expsyms=$lt_include_expsyms
11057
11058# ### END LIBTOOL CONFIG
11059
11060__EOF__
11061
11062
11063  case $host_os in
11064  aix3*)
11065    cat <<\EOF >> "$cfgfile"
11066
11067# AIX sometimes has problems with the GCC collect2 program.  For some
11068# reason, if we set the COLLECT_NAMES environment variable, the problems
11069# vanish in a puff of smoke.
11070if test "X${COLLECT_NAMES+set}" != Xset; then
11071  COLLECT_NAMES=
11072  export COLLECT_NAMES
11073fi
11074EOF
11075    ;;
11076  esac
11077
11078  # We use sed instead of cat because bash on DJGPP gets confused if
11079  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11080  # text mode, it properly converts lines to CR/LF.  This bash problem
11081  # is reportedly fixed, but why not run on old versions too?
11082  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11083
11084  mv -f "$cfgfile" "$ofile" || \
11085    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11086  chmod +x "$ofile"
11087
11088else
11089  # If there is no Makefile yet, we rely on a make rule to execute
11090  # `config.status --recheck' to rerun these tests and create the
11091  # libtool script then.
11092  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11093  if test -f "$ltmain_in"; then
11094    test -f Makefile && make "$ltmain"
11095  fi
11096fi
11097
11098
11099ac_ext=c
11100ac_cpp='$CPP $CPPFLAGS'
11101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11103ac_compiler_gnu=$ac_cv_c_compiler_gnu
11104
11105CC="$lt_save_CC"
11106
11107
11108# Check whether --with-tags was given.
11109if test "${with_tags+set}" = set; then
11110  withval=$with_tags; tagnames="$withval"
11111fi
11112
11113
11114if test -f "$ltmain" && test -n "$tagnames"; then
11115  if test ! -f "${ofile}"; then
11116    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11117$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11118  fi
11119
11120  if test -z "$LTCC"; then
11121    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11122    if test -z "$LTCC"; then
11123      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11124$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11125    else
11126      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11127$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11128    fi
11129  fi
11130  if test -z "$LTCFLAGS"; then
11131    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11132  fi
11133
11134  # Extract list of available tagged configurations in $ofile.
11135  # Note that this assumes the entire list is on one line.
11136  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11137
11138  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11139  for tagname in $tagnames; do
11140    IFS="$lt_save_ifs"
11141    # Check whether tagname contains only valid characters
11142    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11143    "") ;;
11144    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11145$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11146   { (exit 1); exit 1; }; }
11147	;;
11148    esac
11149
11150    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11151    then
11152      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11153$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11154   { (exit 1); exit 1; }; }
11155    fi
11156
11157    # Update the list of available tags.
11158    if test -n "$tagname"; then
11159      echo appending configuration tag \"$tagname\" to $ofile
11160
11161      case $tagname in
11162      CXX)
11163	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11164	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11165	    (test "X$CXX" != "Xg++"))) ; then
11166	  ac_ext=cpp
11167ac_cpp='$CXXCPP $CPPFLAGS'
11168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11171
11172
11173
11174
11175archive_cmds_need_lc_CXX=no
11176allow_undefined_flag_CXX=
11177always_export_symbols_CXX=no
11178archive_expsym_cmds_CXX=
11179export_dynamic_flag_spec_CXX=
11180hardcode_direct_CXX=no
11181hardcode_libdir_flag_spec_CXX=
11182hardcode_libdir_flag_spec_ld_CXX=
11183hardcode_libdir_separator_CXX=
11184hardcode_minus_L_CXX=no
11185hardcode_shlibpath_var_CXX=unsupported
11186hardcode_automatic_CXX=no
11187module_cmds_CXX=
11188module_expsym_cmds_CXX=
11189link_all_deplibs_CXX=unknown
11190old_archive_cmds_CXX=$old_archive_cmds
11191no_undefined_flag_CXX=
11192whole_archive_flag_spec_CXX=
11193enable_shared_with_static_runtimes_CXX=no
11194
11195# Dependencies to place before and after the object being linked:
11196predep_objects_CXX=
11197postdep_objects_CXX=
11198predeps_CXX=
11199postdeps_CXX=
11200compiler_lib_search_path_CXX=
11201compiler_lib_search_dirs_CXX=
11202
11203# Source file extension for C++ test sources.
11204ac_ext=cpp
11205
11206# Object file extension for compiled C++ test sources.
11207objext=o
11208objext_CXX=$objext
11209
11210# Code to be used in simple compile tests
11211lt_simple_compile_test_code="int some_variable = 0;"
11212
11213# Code to be used in simple link tests
11214lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11215
11216# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11217
11218# If no C compiler was specified, use CC.
11219LTCC=${LTCC-"$CC"}
11220
11221# If no C compiler flags were specified, use CFLAGS.
11222LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11223
11224# Allow CC to be a program name with arguments.
11225compiler=$CC
11226
11227
11228# save warnings/boilerplate of simple test code
11229ac_outfile=conftest.$ac_objext
11230echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11231eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11232_lt_compiler_boilerplate=`cat conftest.err`
11233$rm conftest*
11234
11235ac_outfile=conftest.$ac_objext
11236echo "$lt_simple_link_test_code" >conftest.$ac_ext
11237eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11238_lt_linker_boilerplate=`cat conftest.err`
11239$rm -r conftest*
11240
11241
11242# Allow CC to be a program name with arguments.
11243lt_save_CC=$CC
11244lt_save_LD=$LD
11245lt_save_GCC=$GCC
11246GCC=$GXX
11247lt_save_with_gnu_ld=$with_gnu_ld
11248lt_save_path_LD=$lt_cv_path_LD
11249if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11250  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11251else
11252  $as_unset lt_cv_prog_gnu_ld
11253fi
11254if test -n "${lt_cv_path_LDCXX+set}"; then
11255  lt_cv_path_LD=$lt_cv_path_LDCXX
11256else
11257  $as_unset lt_cv_path_LD
11258fi
11259test -z "${LDCXX+set}" || LD=$LDCXX
11260CC=${CXX-"c++"}
11261compiler=$CC
11262compiler_CXX=$CC
11263for cc_temp in $compiler""; do
11264  case $cc_temp in
11265    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11266    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11267    \-*) ;;
11268    *) break;;
11269  esac
11270done
11271cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11272
11273
11274# We don't want -fno-exception wen compiling C++ code, so set the
11275# no_builtin_flag separately
11276if test "$GXX" = yes; then
11277  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11278else
11279  lt_prog_compiler_no_builtin_flag_CXX=
11280fi
11281
11282if test "$GXX" = yes; then
11283  # Set up default GNU C++ configuration
11284
11285
11286# Check whether --with-gnu-ld was given.
11287if test "${with_gnu_ld+set}" = set; then
11288  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11289else
11290  with_gnu_ld=no
11291fi
11292
11293ac_prog=ld
11294if test "$GCC" = yes; then
11295  # Check if gcc -print-prog-name=ld gives a path.
11296  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11297$as_echo_n "checking for ld used by $CC... " >&6; }
11298  case $host in
11299  *-*-mingw*)
11300    # gcc leaves a trailing carriage return which upsets mingw
11301    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11302  *)
11303    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11304  esac
11305  case $ac_prog in
11306    # Accept absolute paths.
11307    [\\/]* | ?:[\\/]*)
11308      re_direlt='/[^/][^/]*/\.\./'
11309      # Canonicalize the pathname of ld
11310      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11311      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11312	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11313      done
11314      test -z "$LD" && LD="$ac_prog"
11315      ;;
11316  "")
11317    # If it fails, then pretend we aren't using GCC.
11318    ac_prog=ld
11319    ;;
11320  *)
11321    # If it is relative, then search for the first ld in PATH.
11322    with_gnu_ld=unknown
11323    ;;
11324  esac
11325elif test "$with_gnu_ld" = yes; then
11326  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11327$as_echo_n "checking for GNU ld... " >&6; }
11328else
11329  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11330$as_echo_n "checking for non-GNU ld... " >&6; }
11331fi
11332if test "${lt_cv_path_LD+set}" = set; then
11333  $as_echo_n "(cached) " >&6
11334else
11335  if test -z "$LD"; then
11336  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11337  for ac_dir in $PATH; do
11338    IFS="$lt_save_ifs"
11339    test -z "$ac_dir" && ac_dir=.
11340    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11341      lt_cv_path_LD="$ac_dir/$ac_prog"
11342      # Check to see if the program is GNU ld.  I'd rather use --version,
11343      # but apparently some variants of GNU ld only accept -v.
11344      # Break only if it was the GNU/non-GNU ld that we prefer.
11345      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11346      *GNU* | *'with BFD'*)
11347	test "$with_gnu_ld" != no && break
11348	;;
11349      *)
11350	test "$with_gnu_ld" != yes && break
11351	;;
11352      esac
11353    fi
11354  done
11355  IFS="$lt_save_ifs"
11356else
11357  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11358fi
11359fi
11360
11361LD="$lt_cv_path_LD"
11362if test -n "$LD"; then
11363  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11364$as_echo "$LD" >&6; }
11365else
11366  { $as_echo "$as_me:$LINENO: result: no" >&5
11367$as_echo "no" >&6; }
11368fi
11369test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11370$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11371   { (exit 1); exit 1; }; }
11372{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11373$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11374if test "${lt_cv_prog_gnu_ld+set}" = set; then
11375  $as_echo_n "(cached) " >&6
11376else
11377  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11378case `$LD -v 2>&1 </dev/null` in
11379*GNU* | *'with BFD'*)
11380  lt_cv_prog_gnu_ld=yes
11381  ;;
11382*)
11383  lt_cv_prog_gnu_ld=no
11384  ;;
11385esac
11386fi
11387{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11388$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11389with_gnu_ld=$lt_cv_prog_gnu_ld
11390
11391
11392
11393  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11394  # archiving commands below assume that GNU ld is being used.
11395  if test "$with_gnu_ld" = yes; then
11396    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11397    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'
11398
11399    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11400    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11401
11402    # If archive_cmds runs LD, not CC, wlarc should be empty
11403    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11404    #     investigate it a little bit more. (MM)
11405    wlarc='${wl}'
11406
11407    # ancient GNU ld didn't support --whole-archive et. al.
11408    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11409	grep 'no-whole-archive' > /dev/null; then
11410      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11411    else
11412      whole_archive_flag_spec_CXX=
11413    fi
11414  else
11415    with_gnu_ld=no
11416    wlarc=
11417
11418    # A generic and very simple default shared library creation
11419    # command for GNU C++ for the case where it uses the native
11420    # linker, instead of GNU ld.  If possible, this setting should
11421    # overridden to take advantage of the native linker features on
11422    # the platform it is being used on.
11423    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11424  fi
11425
11426  # Commands to make compiler produce verbose output that lists
11427  # what "hidden" libraries, object files and flags are used when
11428  # linking a shared library.
11429  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11430
11431else
11432  GXX=no
11433  with_gnu_ld=no
11434  wlarc=
11435fi
11436
11437# PORTME: fill in a description of your system's C++ link characteristics
11438{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11439$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11440ld_shlibs_CXX=yes
11441case $host_os in
11442  aix3*)
11443    # FIXME: insert proper C++ library support
11444    ld_shlibs_CXX=no
11445    ;;
11446  aix[4-9]*)
11447    if test "$host_cpu" = ia64; then
11448      # On IA64, the linker does run time linking by default, so we don't
11449      # have to do anything special.
11450      aix_use_runtimelinking=no
11451      exp_sym_flag='-Bexport'
11452      no_entry_flag=""
11453    else
11454      aix_use_runtimelinking=no
11455
11456      # Test if we are trying to use run time linking or normal
11457      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11458      # need to do runtime linking.
11459      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11460	for ld_flag in $LDFLAGS; do
11461	  case $ld_flag in
11462	  *-brtl*)
11463	    aix_use_runtimelinking=yes
11464	    break
11465	    ;;
11466	  esac
11467	done
11468	;;
11469      esac
11470
11471      exp_sym_flag='-bexport'
11472      no_entry_flag='-bnoentry'
11473    fi
11474
11475    # When large executables or shared objects are built, AIX ld can
11476    # have problems creating the table of contents.  If linking a library
11477    # or program results in "error TOC overflow" add -mminimal-toc to
11478    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11479    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11480
11481    archive_cmds_CXX=''
11482    hardcode_direct_CXX=yes
11483    hardcode_libdir_separator_CXX=':'
11484    link_all_deplibs_CXX=yes
11485
11486    if test "$GXX" = yes; then
11487      case $host_os in aix4.[012]|aix4.[012].*)
11488      # We only want to do this on AIX 4.2 and lower, the check
11489      # below for broken collect2 doesn't work under 4.3+
11490	collect2name=`${CC} -print-prog-name=collect2`
11491	if test -f "$collect2name" && \
11492	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11493	then
11494	  # We have reworked collect2
11495	  :
11496	else
11497	  # We have old collect2
11498	  hardcode_direct_CXX=unsupported
11499	  # It fails to find uninstalled libraries when the uninstalled
11500	  # path is not listed in the libpath.  Setting hardcode_minus_L
11501	  # to unsupported forces relinking
11502	  hardcode_minus_L_CXX=yes
11503	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11504	  hardcode_libdir_separator_CXX=
11505	fi
11506	;;
11507      esac
11508      shared_flag='-shared'
11509      if test "$aix_use_runtimelinking" = yes; then
11510	shared_flag="$shared_flag "'${wl}-G'
11511      fi
11512    else
11513      # not using gcc
11514      if test "$host_cpu" = ia64; then
11515	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11516	# chokes on -Wl,-G. The following line is correct:
11517	shared_flag='-G'
11518      else
11519	if test "$aix_use_runtimelinking" = yes; then
11520	  shared_flag='${wl}-G'
11521	else
11522	  shared_flag='${wl}-bM:SRE'
11523	fi
11524      fi
11525    fi
11526
11527    # It seems that -bexpall does not export symbols beginning with
11528    # underscore (_), so it is better to generate a list of symbols to export.
11529    always_export_symbols_CXX=yes
11530    if test "$aix_use_runtimelinking" = yes; then
11531      # Warning - without using the other runtime loading flags (-brtl),
11532      # -berok will link without error, but may produce a broken library.
11533      allow_undefined_flag_CXX='-berok'
11534      # Determine the default libpath from the value encoded in an empty executable.
11535      cat >conftest.$ac_ext <<_ACEOF
11536/* confdefs.h.  */
11537_ACEOF
11538cat confdefs.h >>conftest.$ac_ext
11539cat >>conftest.$ac_ext <<_ACEOF
11540/* end confdefs.h.  */
11541
11542int
11543main ()
11544{
11545
11546  ;
11547  return 0;
11548}
11549_ACEOF
11550rm -f conftest.$ac_objext conftest$ac_exeext
11551if { (ac_try="$ac_link"
11552case "(($ac_try" in
11553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554  *) ac_try_echo=$ac_try;;
11555esac
11556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11557$as_echo "$ac_try_echo") >&5
11558  (eval "$ac_link") 2>conftest.er1
11559  ac_status=$?
11560  grep -v '^ *+' conftest.er1 >conftest.err
11561  rm -f conftest.er1
11562  cat conftest.err >&5
11563  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564  (exit $ac_status); } && {
11565	 test -z "$ac_cxx_werror_flag" ||
11566	 test ! -s conftest.err
11567       } && test -s conftest$ac_exeext && {
11568	 test "$cross_compiling" = yes ||
11569	 $as_test_x conftest$ac_exeext
11570       }; then
11571
11572lt_aix_libpath_sed='
11573    /Import File Strings/,/^$/ {
11574	/^0/ {
11575	    s/^0  *\(.*\)$/\1/
11576	    p
11577	}
11578    }'
11579aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11580# Check for a 64-bit object if we didn't find anything.
11581if test -z "$aix_libpath"; then
11582  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11583fi
11584else
11585  $as_echo "$as_me: failed program was:" >&5
11586sed 's/^/| /' conftest.$ac_ext >&5
11587
11588
11589fi
11590
11591rm -rf conftest.dSYM
11592rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11593      conftest$ac_exeext conftest.$ac_ext
11594if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11595
11596      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11597
11598      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"
11599     else
11600      if test "$host_cpu" = ia64; then
11601	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11602	allow_undefined_flag_CXX="-z nodefs"
11603	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"
11604      else
11605	# Determine the default libpath from the value encoded in an empty executable.
11606	cat >conftest.$ac_ext <<_ACEOF
11607/* confdefs.h.  */
11608_ACEOF
11609cat confdefs.h >>conftest.$ac_ext
11610cat >>conftest.$ac_ext <<_ACEOF
11611/* end confdefs.h.  */
11612
11613int
11614main ()
11615{
11616
11617  ;
11618  return 0;
11619}
11620_ACEOF
11621rm -f conftest.$ac_objext conftest$ac_exeext
11622if { (ac_try="$ac_link"
11623case "(($ac_try" in
11624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625  *) ac_try_echo=$ac_try;;
11626esac
11627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11628$as_echo "$ac_try_echo") >&5
11629  (eval "$ac_link") 2>conftest.er1
11630  ac_status=$?
11631  grep -v '^ *+' conftest.er1 >conftest.err
11632  rm -f conftest.er1
11633  cat conftest.err >&5
11634  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635  (exit $ac_status); } && {
11636	 test -z "$ac_cxx_werror_flag" ||
11637	 test ! -s conftest.err
11638       } && test -s conftest$ac_exeext && {
11639	 test "$cross_compiling" = yes ||
11640	 $as_test_x conftest$ac_exeext
11641       }; then
11642
11643lt_aix_libpath_sed='
11644    /Import File Strings/,/^$/ {
11645	/^0/ {
11646	    s/^0  *\(.*\)$/\1/
11647	    p
11648	}
11649    }'
11650aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11651# Check for a 64-bit object if we didn't find anything.
11652if test -z "$aix_libpath"; then
11653  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11654fi
11655else
11656  $as_echo "$as_me: failed program was:" >&5
11657sed 's/^/| /' conftest.$ac_ext >&5
11658
11659
11660fi
11661
11662rm -rf conftest.dSYM
11663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11664      conftest$ac_exeext conftest.$ac_ext
11665if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11666
11667	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11668	# Warning - without using the other run time loading flags,
11669	# -berok will link without error, but may produce a broken library.
11670	no_undefined_flag_CXX=' ${wl}-bernotok'
11671	allow_undefined_flag_CXX=' ${wl}-berok'
11672	# Exported symbols can be pulled into shared objects from archives
11673	whole_archive_flag_spec_CXX='$convenience'
11674	archive_cmds_need_lc_CXX=yes
11675	# This is similar to how AIX traditionally builds its shared libraries.
11676	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'
11677      fi
11678    fi
11679    ;;
11680
11681  beos*)
11682    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11683      allow_undefined_flag_CXX=unsupported
11684      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11685      # support --undefined.  This deserves some investigation.  FIXME
11686      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11687    else
11688      ld_shlibs_CXX=no
11689    fi
11690    ;;
11691
11692  chorus*)
11693    case $cc_basename in
11694      *)
11695	# FIXME: insert proper C++ library support
11696	ld_shlibs_CXX=no
11697	;;
11698    esac
11699    ;;
11700
11701  cygwin* | mingw* | pw32*)
11702    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11703    # as there is no search path for DLLs.
11704    hardcode_libdir_flag_spec_CXX='-L$libdir'
11705    allow_undefined_flag_CXX=unsupported
11706    always_export_symbols_CXX=no
11707    enable_shared_with_static_runtimes_CXX=yes
11708
11709    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11710      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'
11711      # If the export-symbols file already is a .def file (1st line
11712      # is EXPORTS), use it as is; otherwise, prepend...
11713      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11714	cp $export_symbols $output_objdir/$soname.def;
11715      else
11716	echo EXPORTS > $output_objdir/$soname.def;
11717	cat $export_symbols >> $output_objdir/$soname.def;
11718      fi~
11719      $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'
11720    else
11721      ld_shlibs_CXX=no
11722    fi
11723  ;;
11724      darwin* | rhapsody*)
11725      archive_cmds_need_lc_CXX=no
11726      hardcode_direct_CXX=no
11727      hardcode_automatic_CXX=yes
11728      hardcode_shlibpath_var_CXX=unsupported
11729      whole_archive_flag_spec_CXX=''
11730      link_all_deplibs_CXX=yes
11731      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11732      if test "$GXX" = yes ; then
11733      output_verbose_link_cmd='echo'
11734      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}"
11735      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11736      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}"
11737      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}"
11738      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11739        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}"
11740        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}"
11741      fi
11742      else
11743      case $cc_basename in
11744        xlc*)
11745         output_verbose_link_cmd='echo'
11746          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'
11747          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11748          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11749          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}'
11750          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}'
11751          ;;
11752       *)
11753         ld_shlibs_CXX=no
11754          ;;
11755      esac
11756      fi
11757        ;;
11758
11759  dgux*)
11760    case $cc_basename in
11761      ec++*)
11762	# FIXME: insert proper C++ library support
11763	ld_shlibs_CXX=no
11764	;;
11765      ghcx*)
11766	# Green Hills C++ Compiler
11767	# FIXME: insert proper C++ library support
11768	ld_shlibs_CXX=no
11769	;;
11770      *)
11771	# FIXME: insert proper C++ library support
11772	ld_shlibs_CXX=no
11773	;;
11774    esac
11775    ;;
11776  freebsd[12]*)
11777    # C++ shared libraries reported to be fairly broken before switch to ELF
11778    ld_shlibs_CXX=no
11779    ;;
11780  freebsd-elf*)
11781    archive_cmds_need_lc_CXX=no
11782    ;;
11783  freebsd* | dragonfly*)
11784    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11785    # conventions
11786    ld_shlibs_CXX=yes
11787    ;;
11788  gnu*)
11789    ;;
11790  hpux9*)
11791    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11792    hardcode_libdir_separator_CXX=:
11793    export_dynamic_flag_spec_CXX='${wl}-E'
11794    hardcode_direct_CXX=yes
11795    hardcode_minus_L_CXX=yes # Not in the search PATH,
11796				# but as the default
11797				# location of the library.
11798
11799    case $cc_basename in
11800    CC*)
11801      # FIXME: insert proper C++ library support
11802      ld_shlibs_CXX=no
11803      ;;
11804    aCC*)
11805      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'
11806      # Commands to make compiler produce verbose output that lists
11807      # what "hidden" libraries, object files and flags are used when
11808      # linking a shared library.
11809      #
11810      # There doesn't appear to be a way to prevent this compiler from
11811      # explicitly linking system object files so we need to strip them
11812      # from the output so that they don't get included in the library
11813      # dependencies.
11814      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'
11815      ;;
11816    *)
11817      if test "$GXX" = yes; then
11818        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'
11819      else
11820        # FIXME: insert proper C++ library support
11821        ld_shlibs_CXX=no
11822      fi
11823      ;;
11824    esac
11825    ;;
11826  hpux10*|hpux11*)
11827    if test $with_gnu_ld = no; then
11828      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11829      hardcode_libdir_separator_CXX=:
11830
11831      case $host_cpu in
11832      hppa*64*|ia64*) ;;
11833      *)
11834	export_dynamic_flag_spec_CXX='${wl}-E'
11835        ;;
11836      esac
11837    fi
11838    case $host_cpu in
11839    hppa*64*|ia64*)
11840      hardcode_direct_CXX=no
11841      hardcode_shlibpath_var_CXX=no
11842      ;;
11843    *)
11844      hardcode_direct_CXX=yes
11845      hardcode_minus_L_CXX=yes # Not in the search PATH,
11846					      # but as the default
11847					      # location of the library.
11848      ;;
11849    esac
11850
11851    case $cc_basename in
11852      CC*)
11853	# FIXME: insert proper C++ library support
11854	ld_shlibs_CXX=no
11855	;;
11856      aCC*)
11857	case $host_cpu in
11858	hppa*64*)
11859	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11860	  ;;
11861	ia64*)
11862	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11863	  ;;
11864	*)
11865	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11866	  ;;
11867	esac
11868	# Commands to make compiler produce verbose output that lists
11869	# what "hidden" libraries, object files and flags are used when
11870	# linking a shared library.
11871	#
11872	# There doesn't appear to be a way to prevent this compiler from
11873	# explicitly linking system object files so we need to strip them
11874	# from the output so that they don't get included in the library
11875	# dependencies.
11876	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'
11877	;;
11878      *)
11879	if test "$GXX" = yes; then
11880	  if test $with_gnu_ld = no; then
11881	    case $host_cpu in
11882	    hppa*64*)
11883	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11884	      ;;
11885	    ia64*)
11886	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11887	      ;;
11888	    *)
11889	      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'
11890	      ;;
11891	    esac
11892	  fi
11893	else
11894	  # FIXME: insert proper C++ library support
11895	  ld_shlibs_CXX=no
11896	fi
11897	;;
11898    esac
11899    ;;
11900  interix[3-9]*)
11901    hardcode_direct_CXX=no
11902    hardcode_shlibpath_var_CXX=no
11903    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11904    export_dynamic_flag_spec_CXX='${wl}-E'
11905    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11906    # Instead, shared libraries are loaded at an image base (0x10000000 by
11907    # default) and relocated if they conflict, which is a slow very memory
11908    # consuming and fragmenting process.  To avoid this, we pick a random,
11909    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11910    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11911    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'
11912    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'
11913    ;;
11914  irix5* | irix6*)
11915    case $cc_basename in
11916      CC*)
11917	# SGI C++
11918	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'
11919
11920	# Archives containing C++ object files must be created using
11921	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11922	# necessary to make sure instantiated templates are included
11923	# in the archive.
11924	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11925	;;
11926      *)
11927	if test "$GXX" = yes; then
11928	  if test "$with_gnu_ld" = no; then
11929	    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'
11930	  else
11931	    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'
11932	  fi
11933	fi
11934	link_all_deplibs_CXX=yes
11935	;;
11936    esac
11937    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11938    hardcode_libdir_separator_CXX=:
11939    ;;
11940  linux* | k*bsd*-gnu)
11941    case $cc_basename in
11942      KCC*)
11943	# Kuck and Associates, Inc. (KAI) C++ Compiler
11944
11945	# KCC will only create a shared library if the output file
11946	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11947	# to its proper name (with version) after linking.
11948	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'
11949	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'
11950	# Commands to make compiler produce verbose output that lists
11951	# what "hidden" libraries, object files and flags are used when
11952	# linking a shared library.
11953	#
11954	# There doesn't appear to be a way to prevent this compiler from
11955	# explicitly linking system object files so we need to strip them
11956	# from the output so that they don't get included in the library
11957	# dependencies.
11958	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'
11959
11960	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11961	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11962
11963	# Archives containing C++ object files must be created using
11964	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11965	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11966	;;
11967      icpc*)
11968	# Intel C++
11969	with_gnu_ld=yes
11970	# version 8.0 and above of icpc choke on multiply defined symbols
11971	# if we add $predep_objects and $postdep_objects, however 7.1 and
11972	# earlier do not add the objects themselves.
11973	case `$CC -V 2>&1` in
11974	*"Version 7."*)
11975  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11976  	  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'
11977	  ;;
11978	*)  # Version 8.0 or newer
11979	  tmp_idyn=
11980	  case $host_cpu in
11981	    ia64*) tmp_idyn=' -i_dynamic';;
11982	  esac
11983  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11984	  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'
11985	  ;;
11986	esac
11987	archive_cmds_need_lc_CXX=no
11988	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11989	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11990	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11991	;;
11992      pgCC* | pgcpp*)
11993        # Portland Group C++ compiler
11994	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11995  	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'
11996
11997	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11998	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11999	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'
12000        ;;
12001      cxx*)
12002	# Compaq C++
12003	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12004	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'
12005
12006	runpath_var=LD_RUN_PATH
12007	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12008	hardcode_libdir_separator_CXX=:
12009
12010	# Commands to make compiler produce verbose output that lists
12011	# what "hidden" libraries, object files and flags are used when
12012	# linking a shared library.
12013	#
12014	# There doesn't appear to be a way to prevent this compiler from
12015	# explicitly linking system object files so we need to strip them
12016	# from the output so that they don't get included in the library
12017	# dependencies.
12018	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'
12019	;;
12020      *)
12021	case `$CC -V 2>&1 | sed 5q` in
12022	*Sun\ C*)
12023	  # Sun C++ 5.9
12024	  no_undefined_flag_CXX=' -zdefs'
12025	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12026	  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'
12027	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12028	  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'
12029
12030	  # Not sure whether something based on
12031	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12032	  # would be better.
12033	  output_verbose_link_cmd='echo'
12034
12035	  # Archives containing C++ object files must be created using
12036	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12037	  # necessary to make sure instantiated templates are included
12038	  # in the archive.
12039	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12040	  ;;
12041	esac
12042	;;
12043    esac
12044    ;;
12045  lynxos*)
12046    # FIXME: insert proper C++ library support
12047    ld_shlibs_CXX=no
12048    ;;
12049  m88k*)
12050    # FIXME: insert proper C++ library support
12051    ld_shlibs_CXX=no
12052    ;;
12053  mvs*)
12054    case $cc_basename in
12055      cxx*)
12056	# FIXME: insert proper C++ library support
12057	ld_shlibs_CXX=no
12058	;;
12059      *)
12060	# FIXME: insert proper C++ library support
12061	ld_shlibs_CXX=no
12062	;;
12063    esac
12064    ;;
12065  netbsd*)
12066    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12067      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12068      wlarc=
12069      hardcode_libdir_flag_spec_CXX='-R$libdir'
12070      hardcode_direct_CXX=yes
12071      hardcode_shlibpath_var_CXX=no
12072    fi
12073    # Workaround some broken pre-1.5 toolchains
12074    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12075    ;;
12076  openbsd2*)
12077    # C++ shared libraries are fairly broken
12078    ld_shlibs_CXX=no
12079    ;;
12080  openbsd*)
12081    if test -f /usr/libexec/ld.so; then
12082      hardcode_direct_CXX=yes
12083      hardcode_shlibpath_var_CXX=no
12084      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12085      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12086      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12087	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12088	export_dynamic_flag_spec_CXX='${wl}-E'
12089	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12090      fi
12091      output_verbose_link_cmd='echo'
12092    else
12093      ld_shlibs_CXX=no
12094    fi
12095    ;;
12096  osf3*)
12097    case $cc_basename in
12098      KCC*)
12099	# Kuck and Associates, Inc. (KAI) C++ Compiler
12100
12101	# KCC will only create a shared library if the output file
12102	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12103	# to its proper name (with version) after linking.
12104	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'
12105
12106	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12107	hardcode_libdir_separator_CXX=:
12108
12109	# Archives containing C++ object files must be created using
12110	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12111	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12112
12113	;;
12114      RCC*)
12115	# Rational C++ 2.4.1
12116	# FIXME: insert proper C++ library support
12117	ld_shlibs_CXX=no
12118	;;
12119      cxx*)
12120	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12121	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'
12122
12123	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12124	hardcode_libdir_separator_CXX=:
12125
12126	# Commands to make compiler produce verbose output that lists
12127	# what "hidden" libraries, object files and flags are used when
12128	# linking a shared library.
12129	#
12130	# There doesn't appear to be a way to prevent this compiler from
12131	# explicitly linking system object files so we need to strip them
12132	# from the output so that they don't get included in the library
12133	# dependencies.
12134	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'
12135	;;
12136      *)
12137	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12138	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12139	  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'
12140
12141	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12142	  hardcode_libdir_separator_CXX=:
12143
12144	  # Commands to make compiler produce verbose output that lists
12145	  # what "hidden" libraries, object files and flags are used when
12146	  # linking a shared library.
12147	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12148
12149	else
12150	  # FIXME: insert proper C++ library support
12151	  ld_shlibs_CXX=no
12152	fi
12153	;;
12154    esac
12155    ;;
12156  osf4* | osf5*)
12157    case $cc_basename in
12158      KCC*)
12159	# Kuck and Associates, Inc. (KAI) C++ Compiler
12160
12161	# KCC will only create a shared library if the output file
12162	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12163	# to its proper name (with version) after linking.
12164	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'
12165
12166	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12167	hardcode_libdir_separator_CXX=:
12168
12169	# Archives containing C++ object files must be created using
12170	# the KAI C++ compiler.
12171	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12172	;;
12173      RCC*)
12174	# Rational C++ 2.4.1
12175	# FIXME: insert proper C++ library support
12176	ld_shlibs_CXX=no
12177	;;
12178      cxx*)
12179	allow_undefined_flag_CXX=' -expect_unresolved \*'
12180	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'
12181	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12182	  echo "-hidden">> $lib.exp~
12183	  $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~
12184	  $rm $lib.exp'
12185
12186	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12187	hardcode_libdir_separator_CXX=:
12188
12189	# Commands to make compiler produce verbose output that lists
12190	# what "hidden" libraries, object files and flags are used when
12191	# linking a shared library.
12192	#
12193	# There doesn't appear to be a way to prevent this compiler from
12194	# explicitly linking system object files so we need to strip them
12195	# from the output so that they don't get included in the library
12196	# dependencies.
12197	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'
12198	;;
12199      *)
12200	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12201	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12202	 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'
12203
12204	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12205	  hardcode_libdir_separator_CXX=:
12206
12207	  # Commands to make compiler produce verbose output that lists
12208	  # what "hidden" libraries, object files and flags are used when
12209	  # linking a shared library.
12210	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12211
12212	else
12213	  # FIXME: insert proper C++ library support
12214	  ld_shlibs_CXX=no
12215	fi
12216	;;
12217    esac
12218    ;;
12219  psos*)
12220    # FIXME: insert proper C++ library support
12221    ld_shlibs_CXX=no
12222    ;;
12223  sunos4*)
12224    case $cc_basename in
12225      CC*)
12226	# Sun C++ 4.x
12227	# FIXME: insert proper C++ library support
12228	ld_shlibs_CXX=no
12229	;;
12230      lcc*)
12231	# Lucid
12232	# FIXME: insert proper C++ library support
12233	ld_shlibs_CXX=no
12234	;;
12235      *)
12236	# FIXME: insert proper C++ library support
12237	ld_shlibs_CXX=no
12238	;;
12239    esac
12240    ;;
12241  solaris*)
12242    case $cc_basename in
12243      CC*)
12244	# Sun C++ 4.2, 5.x and Centerline C++
12245        archive_cmds_need_lc_CXX=yes
12246	no_undefined_flag_CXX=' -zdefs'
12247	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12248	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12249	$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'
12250
12251	hardcode_libdir_flag_spec_CXX='-R$libdir'
12252	hardcode_shlibpath_var_CXX=no
12253	case $host_os in
12254	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12255	  *)
12256	    # The compiler driver will combine and reorder linker options,
12257	    # but understands `-z linker_flag'.
12258	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12259	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12260	    ;;
12261	esac
12262	link_all_deplibs_CXX=yes
12263
12264	output_verbose_link_cmd='echo'
12265
12266	# Archives containing C++ object files must be created using
12267	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12268	# necessary to make sure instantiated templates are included
12269	# in the archive.
12270	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12271	;;
12272      gcx*)
12273	# Green Hills C++ Compiler
12274	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12275
12276	# The C++ compiler must be used to create the archive.
12277	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12278	;;
12279      *)
12280	# GNU C++ compiler with Solaris linker
12281	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12282	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12283	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12284	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12285	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12286		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12287
12288	    # Commands to make compiler produce verbose output that lists
12289	    # what "hidden" libraries, object files and flags are used when
12290	    # linking a shared library.
12291	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12292	  else
12293	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12294	    # platform.
12295	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12296	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12297		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12298
12299	    # Commands to make compiler produce verbose output that lists
12300	    # what "hidden" libraries, object files and flags are used when
12301	    # linking a shared library.
12302	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12303	  fi
12304
12305	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12306	  case $host_os in
12307	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12308	  *)
12309	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12310	    ;;
12311	  esac
12312	fi
12313	;;
12314    esac
12315    ;;
12316  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12317    no_undefined_flag_CXX='${wl}-z,text'
12318    archive_cmds_need_lc_CXX=no
12319    hardcode_shlibpath_var_CXX=no
12320    runpath_var='LD_RUN_PATH'
12321
12322    case $cc_basename in
12323      CC*)
12324	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12325	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12326	;;
12327      *)
12328	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12329	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12330	;;
12331    esac
12332    ;;
12333  sysv5* | sco3.2v5* | sco5v6*)
12334    # Note: We can NOT use -z defs as we might desire, because we do not
12335    # link with -lc, and that would cause any symbols used from libc to
12336    # always be unresolved, which means just about no library would
12337    # ever link correctly.  If we're not using GNU ld we use -z text
12338    # though, which does catch some bad symbols but isn't as heavy-handed
12339    # as -z defs.
12340    # For security reasons, it is highly recommended that you always
12341    # use absolute paths for naming shared libraries, and exclude the
12342    # DT_RUNPATH tag from executables and libraries.  But doing so
12343    # requires that you compile everything twice, which is a pain.
12344    # So that behaviour is only enabled if SCOABSPATH is set to a
12345    # non-empty value in the environment.  Most likely only useful for
12346    # creating official distributions of packages.
12347    # This is a hack until libtool officially supports absolute path
12348    # names for shared libraries.
12349    no_undefined_flag_CXX='${wl}-z,text'
12350    allow_undefined_flag_CXX='${wl}-z,nodefs'
12351    archive_cmds_need_lc_CXX=no
12352    hardcode_shlibpath_var_CXX=no
12353    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12354    hardcode_libdir_separator_CXX=':'
12355    link_all_deplibs_CXX=yes
12356    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12357    runpath_var='LD_RUN_PATH'
12358
12359    case $cc_basename in
12360      CC*)
12361	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12362	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12363	;;
12364      *)
12365	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12366	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12367	;;
12368    esac
12369    ;;
12370  tandem*)
12371    case $cc_basename in
12372      NCC*)
12373	# NonStop-UX NCC 3.20
12374	# FIXME: insert proper C++ library support
12375	ld_shlibs_CXX=no
12376	;;
12377      *)
12378	# FIXME: insert proper C++ library support
12379	ld_shlibs_CXX=no
12380	;;
12381    esac
12382    ;;
12383  vxworks*)
12384    # FIXME: insert proper C++ library support
12385    ld_shlibs_CXX=no
12386    ;;
12387  *)
12388    # FIXME: insert proper C++ library support
12389    ld_shlibs_CXX=no
12390    ;;
12391esac
12392{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12393$as_echo "$ld_shlibs_CXX" >&6; }
12394test "$ld_shlibs_CXX" = no && can_build_shared=no
12395
12396GCC_CXX="$GXX"
12397LD_CXX="$LD"
12398
12399cat > conftest.$ac_ext <<EOF
12400class Foo
12401{
12402public:
12403  Foo (void) { a = 0; }
12404private:
12405  int a;
12406};
12407EOF
12408
12409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12410  (eval $ac_compile) 2>&5
12411  ac_status=$?
12412  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413  (exit $ac_status); }; then
12414  # Parse the compiler output and extract the necessary
12415  # objects, libraries and library flags.
12416
12417  # Sentinel used to keep track of whether or not we are before
12418  # the conftest object file.
12419  pre_test_object_deps_done=no
12420
12421  # The `*' in the case matches for architectures that use `case' in
12422  # $output_verbose_cmd can trigger glob expansion during the loop
12423  # eval without this substitution.
12424  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12425
12426  for p in `eval $output_verbose_link_cmd`; do
12427    case $p in
12428
12429    -L* | -R* | -l*)
12430       # Some compilers place space between "-{L,R}" and the path.
12431       # Remove the space.
12432       if test $p = "-L" \
12433	  || test $p = "-R"; then
12434	 prev=$p
12435	 continue
12436       else
12437	 prev=
12438       fi
12439
12440       if test "$pre_test_object_deps_done" = no; then
12441	 case $p in
12442	 -L* | -R*)
12443	   # Internal compiler library paths should come after those
12444	   # provided the user.  The postdeps already come after the
12445	   # user supplied libs so there is no need to process them.
12446	   if test -z "$compiler_lib_search_path_CXX"; then
12447	     compiler_lib_search_path_CXX="${prev}${p}"
12448	   else
12449	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12450	   fi
12451	   ;;
12452	 # The "-l" case would never come before the object being
12453	 # linked, so don't bother handling this case.
12454	 esac
12455       else
12456	 if test -z "$postdeps_CXX"; then
12457	   postdeps_CXX="${prev}${p}"
12458	 else
12459	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12460	 fi
12461       fi
12462       ;;
12463
12464    *.$objext)
12465       # This assumes that the test object file only shows up
12466       # once in the compiler output.
12467       if test "$p" = "conftest.$objext"; then
12468	 pre_test_object_deps_done=yes
12469	 continue
12470       fi
12471
12472       if test "$pre_test_object_deps_done" = no; then
12473	 if test -z "$predep_objects_CXX"; then
12474	   predep_objects_CXX="$p"
12475	 else
12476	   predep_objects_CXX="$predep_objects_CXX $p"
12477	 fi
12478       else
12479	 if test -z "$postdep_objects_CXX"; then
12480	   postdep_objects_CXX="$p"
12481	 else
12482	   postdep_objects_CXX="$postdep_objects_CXX $p"
12483	 fi
12484       fi
12485       ;;
12486
12487    *) ;; # Ignore the rest.
12488
12489    esac
12490  done
12491
12492  # Clean up.
12493  rm -f a.out a.exe
12494else
12495  echo "libtool.m4: error: problem compiling CXX test program"
12496fi
12497
12498$rm -f confest.$objext
12499
12500compiler_lib_search_dirs_CXX=
12501if test -n "$compiler_lib_search_path_CXX"; then
12502  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12503fi
12504
12505# PORTME: override above test on systems where it is broken
12506case $host_os in
12507interix[3-9]*)
12508  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12509  # hack all around it, let's just trust "g++" to DTRT.
12510  predep_objects_CXX=
12511  postdep_objects_CXX=
12512  postdeps_CXX=
12513  ;;
12514
12515linux*)
12516  case `$CC -V 2>&1 | sed 5q` in
12517  *Sun\ C*)
12518    # Sun C++ 5.9
12519    #
12520    # The more standards-conforming stlport4 library is
12521    # incompatible with the Cstd library. Avoid specifying
12522    # it if it's in CXXFLAGS. Ignore libCrun as
12523    # -library=stlport4 depends on it.
12524    case " $CXX $CXXFLAGS " in
12525    *" -library=stlport4 "*)
12526      solaris_use_stlport4=yes
12527      ;;
12528    esac
12529    if test "$solaris_use_stlport4" != yes; then
12530      postdeps_CXX='-library=Cstd -library=Crun'
12531    fi
12532    ;;
12533  esac
12534  ;;
12535
12536solaris*)
12537  case $cc_basename in
12538  CC*)
12539    # The more standards-conforming stlport4 library is
12540    # incompatible with the Cstd library. Avoid specifying
12541    # it if it's in CXXFLAGS. Ignore libCrun as
12542    # -library=stlport4 depends on it.
12543    case " $CXX $CXXFLAGS " in
12544    *" -library=stlport4 "*)
12545      solaris_use_stlport4=yes
12546      ;;
12547    esac
12548
12549    # Adding this requires a known-good setup of shared libraries for
12550    # Sun compiler versions before 5.6, else PIC objects from an old
12551    # archive will be linked into the output, leading to subtle bugs.
12552    if test "$solaris_use_stlport4" != yes; then
12553      postdeps_CXX='-library=Cstd -library=Crun'
12554    fi
12555    ;;
12556  esac
12557  ;;
12558esac
12559
12560case " $postdeps_CXX " in
12561*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12562esac
12563
12564lt_prog_compiler_wl_CXX=
12565lt_prog_compiler_pic_CXX=
12566lt_prog_compiler_static_CXX=
12567
12568{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12569$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12570
12571  # C++ specific cases for pic, static, wl, etc.
12572  if test "$GXX" = yes; then
12573    lt_prog_compiler_wl_CXX='-Wl,'
12574    lt_prog_compiler_static_CXX='-static'
12575
12576    case $host_os in
12577    aix*)
12578      # All AIX code is PIC.
12579      if test "$host_cpu" = ia64; then
12580	# AIX 5 now supports IA64 processor
12581	lt_prog_compiler_static_CXX='-Bstatic'
12582      fi
12583      ;;
12584    amigaos*)
12585      # FIXME: we need at least 68020 code to build shared libraries, but
12586      # adding the `-m68020' flag to GCC prevents building anything better,
12587      # like `-m68040'.
12588      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12589      ;;
12590    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12591      # PIC is the default for these OSes.
12592      ;;
12593    mingw* | cygwin* | os2* | pw32*)
12594      # This hack is so that the source file can tell whether it is being
12595      # built for inclusion in a dll (and should export symbols for example).
12596      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12597      # (--disable-auto-import) libraries
12598      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12599      ;;
12600    darwin* | rhapsody*)
12601      # PIC is the default on this platform
12602      # Common symbols not allowed in MH_DYLIB files
12603      lt_prog_compiler_pic_CXX='-fno-common'
12604      ;;
12605    *djgpp*)
12606      # DJGPP does not support shared libraries at all
12607      lt_prog_compiler_pic_CXX=
12608      ;;
12609    interix[3-9]*)
12610      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12611      # Instead, we relocate shared libraries at runtime.
12612      ;;
12613    sysv4*MP*)
12614      if test -d /usr/nec; then
12615	lt_prog_compiler_pic_CXX=-Kconform_pic
12616      fi
12617      ;;
12618    hpux*)
12619      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12620      # not for PA HP-UX.
12621      case $host_cpu in
12622      hppa*64*|ia64*)
12623	;;
12624      *)
12625	lt_prog_compiler_pic_CXX='-fPIC'
12626	;;
12627      esac
12628      ;;
12629    *)
12630      lt_prog_compiler_pic_CXX='-fPIC'
12631      ;;
12632    esac
12633  else
12634    case $host_os in
12635      aix[4-9]*)
12636	# All AIX code is PIC.
12637	if test "$host_cpu" = ia64; then
12638	  # AIX 5 now supports IA64 processor
12639	  lt_prog_compiler_static_CXX='-Bstatic'
12640	else
12641	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12642	fi
12643	;;
12644      chorus*)
12645	case $cc_basename in
12646	cxch68*)
12647	  # Green Hills C++ Compiler
12648	  # _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"
12649	  ;;
12650	esac
12651	;;
12652       darwin*)
12653         # PIC is the default on this platform
12654         # Common symbols not allowed in MH_DYLIB files
12655         case $cc_basename in
12656           xlc*)
12657           lt_prog_compiler_pic_CXX='-qnocommon'
12658           lt_prog_compiler_wl_CXX='-Wl,'
12659           ;;
12660         esac
12661       ;;
12662      dgux*)
12663	case $cc_basename in
12664	  ec++*)
12665	    lt_prog_compiler_pic_CXX='-KPIC'
12666	    ;;
12667	  ghcx*)
12668	    # Green Hills C++ Compiler
12669	    lt_prog_compiler_pic_CXX='-pic'
12670	    ;;
12671	  *)
12672	    ;;
12673	esac
12674	;;
12675      freebsd* | dragonfly*)
12676	# FreeBSD uses GNU C++
12677	;;
12678      hpux9* | hpux10* | hpux11*)
12679	case $cc_basename in
12680	  CC*)
12681	    lt_prog_compiler_wl_CXX='-Wl,'
12682	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12683	    if test "$host_cpu" != ia64; then
12684	      lt_prog_compiler_pic_CXX='+Z'
12685	    fi
12686	    ;;
12687	  aCC*)
12688	    lt_prog_compiler_wl_CXX='-Wl,'
12689	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12690	    case $host_cpu in
12691	    hppa*64*|ia64*)
12692	      # +Z the default
12693	      ;;
12694	    *)
12695	      lt_prog_compiler_pic_CXX='+Z'
12696	      ;;
12697	    esac
12698	    ;;
12699	  *)
12700	    ;;
12701	esac
12702	;;
12703      interix*)
12704	# This is c89, which is MS Visual C++ (no shared libs)
12705	# Anyone wants to do a port?
12706	;;
12707      irix5* | irix6* | nonstopux*)
12708	case $cc_basename in
12709	  CC*)
12710	    lt_prog_compiler_wl_CXX='-Wl,'
12711	    lt_prog_compiler_static_CXX='-non_shared'
12712	    # CC pic flag -KPIC is the default.
12713	    ;;
12714	  *)
12715	    ;;
12716	esac
12717	;;
12718      linux* | k*bsd*-gnu)
12719	case $cc_basename in
12720	  KCC*)
12721	    # KAI C++ Compiler
12722	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12723	    lt_prog_compiler_pic_CXX='-fPIC'
12724	    ;;
12725	  icpc* | ecpc*)
12726	    # Intel C++
12727	    lt_prog_compiler_wl_CXX='-Wl,'
12728	    lt_prog_compiler_pic_CXX='-KPIC'
12729	    lt_prog_compiler_static_CXX='-static'
12730	    ;;
12731	  pgCC* | pgcpp*)
12732	    # Portland Group C++ compiler.
12733	    lt_prog_compiler_wl_CXX='-Wl,'
12734	    lt_prog_compiler_pic_CXX='-fpic'
12735	    lt_prog_compiler_static_CXX='-Bstatic'
12736	    ;;
12737	  cxx*)
12738	    # Compaq C++
12739	    # Make sure the PIC flag is empty.  It appears that all Alpha
12740	    # Linux and Compaq Tru64 Unix objects are PIC.
12741	    lt_prog_compiler_pic_CXX=
12742	    lt_prog_compiler_static_CXX='-non_shared'
12743	    ;;
12744	  *)
12745	    case `$CC -V 2>&1 | sed 5q` in
12746	    *Sun\ C*)
12747	      # Sun C++ 5.9
12748	      lt_prog_compiler_pic_CXX='-KPIC'
12749	      lt_prog_compiler_static_CXX='-Bstatic'
12750	      lt_prog_compiler_wl_CXX='-Qoption ld '
12751	      ;;
12752	    esac
12753	    ;;
12754	esac
12755	;;
12756      lynxos*)
12757	;;
12758      m88k*)
12759	;;
12760      mvs*)
12761	case $cc_basename in
12762	  cxx*)
12763	    lt_prog_compiler_pic_CXX='-W c,exportall'
12764	    ;;
12765	  *)
12766	    ;;
12767	esac
12768	;;
12769      netbsd*)
12770	;;
12771      osf3* | osf4* | osf5*)
12772	case $cc_basename in
12773	  KCC*)
12774	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12775	    ;;
12776	  RCC*)
12777	    # Rational C++ 2.4.1
12778	    lt_prog_compiler_pic_CXX='-pic'
12779	    ;;
12780	  cxx*)
12781	    # Digital/Compaq C++
12782	    lt_prog_compiler_wl_CXX='-Wl,'
12783	    # Make sure the PIC flag is empty.  It appears that all Alpha
12784	    # Linux and Compaq Tru64 Unix objects are PIC.
12785	    lt_prog_compiler_pic_CXX=
12786	    lt_prog_compiler_static_CXX='-non_shared'
12787	    ;;
12788	  *)
12789	    ;;
12790	esac
12791	;;
12792      psos*)
12793	;;
12794      solaris*)
12795	case $cc_basename in
12796	  CC*)
12797	    # Sun C++ 4.2, 5.x and Centerline C++
12798	    lt_prog_compiler_pic_CXX='-KPIC'
12799	    lt_prog_compiler_static_CXX='-Bstatic'
12800	    lt_prog_compiler_wl_CXX='-Qoption ld '
12801	    ;;
12802	  gcx*)
12803	    # Green Hills C++ Compiler
12804	    lt_prog_compiler_pic_CXX='-PIC'
12805	    ;;
12806	  *)
12807	    ;;
12808	esac
12809	;;
12810      sunos4*)
12811	case $cc_basename in
12812	  CC*)
12813	    # Sun C++ 4.x
12814	    lt_prog_compiler_pic_CXX='-pic'
12815	    lt_prog_compiler_static_CXX='-Bstatic'
12816	    ;;
12817	  lcc*)
12818	    # Lucid
12819	    lt_prog_compiler_pic_CXX='-pic'
12820	    ;;
12821	  *)
12822	    ;;
12823	esac
12824	;;
12825      tandem*)
12826	case $cc_basename in
12827	  NCC*)
12828	    # NonStop-UX NCC 3.20
12829	    lt_prog_compiler_pic_CXX='-KPIC'
12830	    ;;
12831	  *)
12832	    ;;
12833	esac
12834	;;
12835      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12836	case $cc_basename in
12837	  CC*)
12838	    lt_prog_compiler_wl_CXX='-Wl,'
12839	    lt_prog_compiler_pic_CXX='-KPIC'
12840	    lt_prog_compiler_static_CXX='-Bstatic'
12841	    ;;
12842	esac
12843	;;
12844      vxworks*)
12845	;;
12846      *)
12847	lt_prog_compiler_can_build_shared_CXX=no
12848	;;
12849    esac
12850  fi
12851
12852{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12853$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12854
12855#
12856# Check to make sure the PIC flag actually works.
12857#
12858if test -n "$lt_prog_compiler_pic_CXX"; then
12859
12860{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12861$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12862if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12863  $as_echo_n "(cached) " >&6
12864else
12865  lt_cv_prog_compiler_pic_works_CXX=no
12866  ac_outfile=conftest.$ac_objext
12867   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12868   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12869   # Insert the option either (1) after the last *FLAGS variable, or
12870   # (2) before a word containing "conftest.", or (3) at the end.
12871   # Note that $ac_compile itself does not contain backslashes and begins
12872   # with a dollar sign (not a hyphen), so the echo should work correctly.
12873   # The option is referenced via a variable to avoid confusing sed.
12874   lt_compile=`echo "$ac_compile" | $SED \
12875   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12876   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12877   -e 's:$: $lt_compiler_flag:'`
12878   (eval echo "\"\$as_me:12878: $lt_compile\"" >&5)
12879   (eval "$lt_compile" 2>conftest.err)
12880   ac_status=$?
12881   cat conftest.err >&5
12882   echo "$as_me:12882: \$? = $ac_status" >&5
12883   if (exit $ac_status) && test -s "$ac_outfile"; then
12884     # The compiler can only warn and ignore the option if not recognized
12885     # So say no if there are warnings other than the usual output.
12886     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12887     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12888     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12889       lt_cv_prog_compiler_pic_works_CXX=yes
12890     fi
12891   fi
12892   $rm conftest*
12893
12894fi
12895{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12896$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12897
12898if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12899    case $lt_prog_compiler_pic_CXX in
12900     "" | " "*) ;;
12901     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12902     esac
12903else
12904    lt_prog_compiler_pic_CXX=
12905     lt_prog_compiler_can_build_shared_CXX=no
12906fi
12907
12908fi
12909case $host_os in
12910  # For platforms which do not support PIC, -DPIC is meaningless:
12911  *djgpp*)
12912    lt_prog_compiler_pic_CXX=
12913    ;;
12914  *)
12915    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12916    ;;
12917esac
12918
12919#
12920# Check to make sure the static flag actually works.
12921#
12922wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12923{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12924$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12925if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12926  $as_echo_n "(cached) " >&6
12927else
12928  lt_cv_prog_compiler_static_works_CXX=no
12929   save_LDFLAGS="$LDFLAGS"
12930   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12931   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12932   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12933     # The linker can only warn and ignore the option if not recognized
12934     # So say no if there are warnings
12935     if test -s conftest.err; then
12936       # Append any errors to the config.log.
12937       cat conftest.err 1>&5
12938       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12939       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12940       if diff conftest.exp conftest.er2 >/dev/null; then
12941         lt_cv_prog_compiler_static_works_CXX=yes
12942       fi
12943     else
12944       lt_cv_prog_compiler_static_works_CXX=yes
12945     fi
12946   fi
12947   $rm -r conftest*
12948   LDFLAGS="$save_LDFLAGS"
12949
12950fi
12951{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12952$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12953
12954if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12955    :
12956else
12957    lt_prog_compiler_static_CXX=
12958fi
12959
12960
12961{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12962$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12963if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12964  $as_echo_n "(cached) " >&6
12965else
12966  lt_cv_prog_compiler_c_o_CXX=no
12967   $rm -r conftest 2>/dev/null
12968   mkdir conftest
12969   cd conftest
12970   mkdir out
12971   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12972
12973   lt_compiler_flag="-o out/conftest2.$ac_objext"
12974   # Insert the option either (1) after the last *FLAGS variable, or
12975   # (2) before a word containing "conftest.", or (3) at the end.
12976   # Note that $ac_compile itself does not contain backslashes and begins
12977   # with a dollar sign (not a hyphen), so the echo should work correctly.
12978   lt_compile=`echo "$ac_compile" | $SED \
12979   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12980   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12981   -e 's:$: $lt_compiler_flag:'`
12982   (eval echo "\"\$as_me:12982: $lt_compile\"" >&5)
12983   (eval "$lt_compile" 2>out/conftest.err)
12984   ac_status=$?
12985   cat out/conftest.err >&5
12986   echo "$as_me:12986: \$? = $ac_status" >&5
12987   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12988   then
12989     # The compiler can only warn and ignore the option if not recognized
12990     # So say no if there are warnings
12991     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12992     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12993     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12994       lt_cv_prog_compiler_c_o_CXX=yes
12995     fi
12996   fi
12997   chmod u+w . 2>&5
12998   $rm conftest*
12999   # SGI C++ compiler will create directory out/ii_files/ for
13000   # template instantiation
13001   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13002   $rm out/* && rmdir out
13003   cd ..
13004   rmdir conftest
13005   $rm conftest*
13006
13007fi
13008{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13009$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13010
13011
13012hard_links="nottested"
13013if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13014  # do not overwrite the value of need_locks provided by the user
13015  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13016$as_echo_n "checking if we can lock with hard links... " >&6; }
13017  hard_links=yes
13018  $rm conftest*
13019  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13020  touch conftest.a
13021  ln conftest.a conftest.b 2>&5 || hard_links=no
13022  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13023  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13024$as_echo "$hard_links" >&6; }
13025  if test "$hard_links" = no; then
13026    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13027$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13028    need_locks=warn
13029  fi
13030else
13031  need_locks=no
13032fi
13033
13034{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13035$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13036
13037  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13038  case $host_os in
13039  aix[4-9]*)
13040    # If we're using GNU nm, then we don't want the "-C" option.
13041    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13042    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13043      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'
13044    else
13045      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'
13046    fi
13047    ;;
13048  pw32*)
13049    export_symbols_cmds_CXX="$ltdll_cmds"
13050  ;;
13051  cygwin* | mingw*)
13052    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'
13053  ;;
13054  *)
13055    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13056  ;;
13057  esac
13058  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13059
13060{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13061$as_echo "$ld_shlibs_CXX" >&6; }
13062test "$ld_shlibs_CXX" = no && can_build_shared=no
13063
13064#
13065# Do we need to explicitly link libc?
13066#
13067case "x$archive_cmds_need_lc_CXX" in
13068x|xyes)
13069  # Assume -lc should be added
13070  archive_cmds_need_lc_CXX=yes
13071
13072  if test "$enable_shared" = yes && test "$GCC" = yes; then
13073    case $archive_cmds_CXX in
13074    *'~'*)
13075      # FIXME: we may have to deal with multi-command sequences.
13076      ;;
13077    '$CC '*)
13078      # Test whether the compiler implicitly links with -lc since on some
13079      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13080      # to ld, don't add -lc before -lgcc.
13081      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13082$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13083      $rm conftest*
13084      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13085
13086      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13087  (eval $ac_compile) 2>&5
13088  ac_status=$?
13089  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090  (exit $ac_status); } 2>conftest.err; then
13091        soname=conftest
13092        lib=conftest
13093        libobjs=conftest.$ac_objext
13094        deplibs=
13095        wl=$lt_prog_compiler_wl_CXX
13096	pic_flag=$lt_prog_compiler_pic_CXX
13097        compiler_flags=-v
13098        linker_flags=-v
13099        verstring=
13100        output_objdir=.
13101        libname=conftest
13102        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13103        allow_undefined_flag_CXX=
13104        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13105  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13106  ac_status=$?
13107  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108  (exit $ac_status); }
13109        then
13110	  archive_cmds_need_lc_CXX=no
13111        else
13112	  archive_cmds_need_lc_CXX=yes
13113        fi
13114        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13115      else
13116        cat conftest.err 1>&5
13117      fi
13118      $rm conftest*
13119      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13120$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13121      ;;
13122    esac
13123  fi
13124  ;;
13125esac
13126
13127{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13128$as_echo_n "checking dynamic linker characteristics... " >&6; }
13129library_names_spec=
13130libname_spec='lib$name'
13131soname_spec=
13132shrext_cmds=".so"
13133postinstall_cmds=
13134postuninstall_cmds=
13135finish_cmds=
13136finish_eval=
13137shlibpath_var=
13138shlibpath_overrides_runpath=unknown
13139version_type=none
13140dynamic_linker="$host_os ld.so"
13141sys_lib_dlsearch_path_spec="/lib /usr/lib"
13142
13143need_lib_prefix=unknown
13144hardcode_into_libs=no
13145
13146# when you set need_version to no, make sure it does not cause -set_version
13147# flags to be left without arguments
13148need_version=unknown
13149
13150case $host_os in
13151aix3*)
13152  version_type=linux
13153  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13154  shlibpath_var=LIBPATH
13155
13156  # AIX 3 has no versioning support, so we append a major version to the name.
13157  soname_spec='${libname}${release}${shared_ext}$major'
13158  ;;
13159
13160aix[4-9]*)
13161  version_type=linux
13162  need_lib_prefix=no
13163  need_version=no
13164  hardcode_into_libs=yes
13165  if test "$host_cpu" = ia64; then
13166    # AIX 5 supports IA64
13167    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13168    shlibpath_var=LD_LIBRARY_PATH
13169  else
13170    # With GCC up to 2.95.x, collect2 would create an import file
13171    # for dependence libraries.  The import file would start with
13172    # the line `#! .'.  This would cause the generated library to
13173    # depend on `.', always an invalid library.  This was fixed in
13174    # development snapshots of GCC prior to 3.0.
13175    case $host_os in
13176      aix4 | aix4.[01] | aix4.[01].*)
13177      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13178	   echo ' yes '
13179	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13180	:
13181      else
13182	can_build_shared=no
13183      fi
13184      ;;
13185    esac
13186    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13187    # soname into executable. Probably we can add versioning support to
13188    # collect2, so additional links can be useful in future.
13189    if test "$aix_use_runtimelinking" = yes; then
13190      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13191      # instead of lib<name>.a to let people know that these are not
13192      # typical AIX shared libraries.
13193      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13194    else
13195      # We preserve .a as extension for shared libraries through AIX4.2
13196      # and later when we are not doing run time linking.
13197      library_names_spec='${libname}${release}.a $libname.a'
13198      soname_spec='${libname}${release}${shared_ext}$major'
13199    fi
13200    shlibpath_var=LIBPATH
13201  fi
13202  ;;
13203
13204amigaos*)
13205  library_names_spec='$libname.ixlibrary $libname.a'
13206  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13207  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'
13208  ;;
13209
13210beos*)
13211  library_names_spec='${libname}${shared_ext}'
13212  dynamic_linker="$host_os ld.so"
13213  shlibpath_var=LIBRARY_PATH
13214  ;;
13215
13216bsdi[45]*)
13217  version_type=linux
13218  need_version=no
13219  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13220  soname_spec='${libname}${release}${shared_ext}$major'
13221  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13222  shlibpath_var=LD_LIBRARY_PATH
13223  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13224  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13225  # the default ld.so.conf also contains /usr/contrib/lib and
13226  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13227  # libtool to hard-code these into programs
13228  ;;
13229
13230cygwin* | mingw* | pw32*)
13231  version_type=windows
13232  shrext_cmds=".dll"
13233  need_version=no
13234  need_lib_prefix=no
13235
13236  case $GCC,$host_os in
13237  yes,cygwin* | yes,mingw* | yes,pw32*)
13238    library_names_spec='$libname.dll.a'
13239    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13240    postinstall_cmds='base_file=`basename \${file}`~
13241      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13242      dldir=$destdir/`dirname \$dlpath`~
13243      test -d \$dldir || mkdir -p \$dldir~
13244      $install_prog $dir/$dlname \$dldir/$dlname~
13245      chmod a+x \$dldir/$dlname'
13246    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13247      dlpath=$dir/\$dldll~
13248       $rm \$dlpath'
13249    shlibpath_overrides_runpath=yes
13250
13251    case $host_os in
13252    cygwin*)
13253      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13254      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13255      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13256      ;;
13257    mingw*)
13258      # MinGW DLLs use traditional 'lib' prefix
13259      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13260      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13261      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13262        # It is most probably a Windows format PATH printed by
13263        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13264        # path with ; separators, and with drive letters. We can handle the
13265        # drive letters (cygwin fileutils understands them), so leave them,
13266        # especially as we might pass files found there to a mingw objdump,
13267        # which wouldn't understand a cygwinified path. Ahh.
13268        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13269      else
13270        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13271      fi
13272      ;;
13273    pw32*)
13274      # pw32 DLLs use 'pw' prefix rather than 'lib'
13275      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13276      ;;
13277    esac
13278    ;;
13279
13280  *)
13281    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13282    ;;
13283  esac
13284  dynamic_linker='Win32 ld.exe'
13285  # FIXME: first we should search . and the directory the executable is in
13286  shlibpath_var=PATH
13287  ;;
13288
13289darwin* | rhapsody*)
13290  dynamic_linker="$host_os dyld"
13291  version_type=darwin
13292  need_lib_prefix=no
13293  need_version=no
13294  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13295  soname_spec='${libname}${release}${major}$shared_ext'
13296  shlibpath_overrides_runpath=yes
13297  shlibpath_var=DYLD_LIBRARY_PATH
13298  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13299
13300  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13301  ;;
13302
13303dgux*)
13304  version_type=linux
13305  need_lib_prefix=no
13306  need_version=no
13307  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13308  soname_spec='${libname}${release}${shared_ext}$major'
13309  shlibpath_var=LD_LIBRARY_PATH
13310  ;;
13311
13312freebsd1*)
13313  dynamic_linker=no
13314  ;;
13315
13316freebsd* | dragonfly*)
13317  # DragonFly does not have aout.  When/if they implement a new
13318  # versioning mechanism, adjust this.
13319  if test -x /usr/bin/objformat; then
13320    objformat=`/usr/bin/objformat`
13321  else
13322    case $host_os in
13323    freebsd[123]*) objformat=aout ;;
13324    *) objformat=elf ;;
13325    esac
13326  fi
13327  # Handle Gentoo/FreeBSD as it was Linux
13328  case $host_vendor in
13329    gentoo)
13330      version_type=linux ;;
13331    *)
13332      version_type=freebsd-$objformat ;;
13333  esac
13334
13335  case $version_type in
13336    freebsd-elf*)
13337      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13338      need_version=no
13339      need_lib_prefix=no
13340      ;;
13341    freebsd-*)
13342      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13343      need_version=yes
13344      ;;
13345    linux)
13346      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13347      soname_spec='${libname}${release}${shared_ext}$major'
13348      need_lib_prefix=no
13349      need_version=no
13350      ;;
13351  esac
13352  shlibpath_var=LD_LIBRARY_PATH
13353  case $host_os in
13354  freebsd2*)
13355    shlibpath_overrides_runpath=yes
13356    ;;
13357  freebsd3.[01]* | freebsdelf3.[01]*)
13358    shlibpath_overrides_runpath=yes
13359    hardcode_into_libs=yes
13360    ;;
13361  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13362  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13363    shlibpath_overrides_runpath=no
13364    hardcode_into_libs=yes
13365    ;;
13366  *) # from 4.6 on, and DragonFly
13367    shlibpath_overrides_runpath=yes
13368    hardcode_into_libs=yes
13369    ;;
13370  esac
13371  ;;
13372
13373gnu*)
13374  version_type=linux
13375  need_lib_prefix=no
13376  need_version=no
13377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13378  soname_spec='${libname}${release}${shared_ext}$major'
13379  shlibpath_var=LD_LIBRARY_PATH
13380  hardcode_into_libs=yes
13381  ;;
13382
13383hpux9* | hpux10* | hpux11*)
13384  # Give a soname corresponding to the major version so that dld.sl refuses to
13385  # link against other versions.
13386  version_type=sunos
13387  need_lib_prefix=no
13388  need_version=no
13389  case $host_cpu in
13390  ia64*)
13391    shrext_cmds='.so'
13392    hardcode_into_libs=yes
13393    dynamic_linker="$host_os dld.so"
13394    shlibpath_var=LD_LIBRARY_PATH
13395    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13396    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13397    soname_spec='${libname}${release}${shared_ext}$major'
13398    if test "X$HPUX_IA64_MODE" = X32; then
13399      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13400    else
13401      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13402    fi
13403    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13404    ;;
13405   hppa*64*)
13406     shrext_cmds='.sl'
13407     hardcode_into_libs=yes
13408     dynamic_linker="$host_os dld.sl"
13409     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13410     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13411     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13412     soname_spec='${libname}${release}${shared_ext}$major'
13413     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13414     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13415     ;;
13416   *)
13417    shrext_cmds='.sl'
13418    dynamic_linker="$host_os dld.sl"
13419    shlibpath_var=SHLIB_PATH
13420    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13421    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13422    soname_spec='${libname}${release}${shared_ext}$major'
13423    ;;
13424  esac
13425  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13426  postinstall_cmds='chmod 555 $lib'
13427  ;;
13428
13429interix[3-9]*)
13430  version_type=linux
13431  need_lib_prefix=no
13432  need_version=no
13433  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13434  soname_spec='${libname}${release}${shared_ext}$major'
13435  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13436  shlibpath_var=LD_LIBRARY_PATH
13437  shlibpath_overrides_runpath=no
13438  hardcode_into_libs=yes
13439  ;;
13440
13441irix5* | irix6* | nonstopux*)
13442  case $host_os in
13443    nonstopux*) version_type=nonstopux ;;
13444    *)
13445	if test "$lt_cv_prog_gnu_ld" = yes; then
13446		version_type=linux
13447	else
13448		version_type=irix
13449	fi ;;
13450  esac
13451  need_lib_prefix=no
13452  need_version=no
13453  soname_spec='${libname}${release}${shared_ext}$major'
13454  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13455  case $host_os in
13456  irix5* | nonstopux*)
13457    libsuff= shlibsuff=
13458    ;;
13459  *)
13460    case $LD in # libtool.m4 will add one of these switches to LD
13461    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13462      libsuff= shlibsuff= libmagic=32-bit;;
13463    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13464      libsuff=32 shlibsuff=N32 libmagic=N32;;
13465    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13466      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13467    *) libsuff= shlibsuff= libmagic=never-match;;
13468    esac
13469    ;;
13470  esac
13471  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13472  shlibpath_overrides_runpath=no
13473  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13474  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13475  hardcode_into_libs=yes
13476  ;;
13477
13478# No shared lib support for Linux oldld, aout, or coff.
13479linux*oldld* | linux*aout* | linux*coff*)
13480  dynamic_linker=no
13481  ;;
13482
13483# This must be Linux ELF.
13484linux* | k*bsd*-gnu)
13485  version_type=linux
13486  need_lib_prefix=no
13487  need_version=no
13488  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13489  soname_spec='${libname}${release}${shared_ext}$major'
13490  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13491  shlibpath_var=LD_LIBRARY_PATH
13492  shlibpath_overrides_runpath=no
13493  # This implies no fast_install, which is unacceptable.
13494  # Some rework will be needed to allow for fast_install
13495  # before this can be enabled.
13496  hardcode_into_libs=yes
13497
13498  # Append ld.so.conf contents to the search path
13499  if test -f /etc/ld.so.conf; then
13500    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' ' '`
13501    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13502  fi
13503
13504  # We used to test for /lib/ld.so.1 and disable shared libraries on
13505  # powerpc, because MkLinux only supported shared libraries with the
13506  # GNU dynamic linker.  Since this was broken with cross compilers,
13507  # most powerpc-linux boxes support dynamic linking these days and
13508  # people can always --disable-shared, the test was removed, and we
13509  # assume the GNU/Linux dynamic linker is in use.
13510  dynamic_linker='GNU/Linux ld.so'
13511  ;;
13512
13513netbsd*)
13514  version_type=sunos
13515  need_lib_prefix=no
13516  need_version=no
13517  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13518    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13519    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13520    dynamic_linker='NetBSD (a.out) ld.so'
13521  else
13522    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13523    soname_spec='${libname}${release}${shared_ext}$major'
13524    dynamic_linker='NetBSD ld.elf_so'
13525  fi
13526  shlibpath_var=LD_LIBRARY_PATH
13527  shlibpath_overrides_runpath=yes
13528  hardcode_into_libs=yes
13529  ;;
13530
13531newsos6)
13532  version_type=linux
13533  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13534  shlibpath_var=LD_LIBRARY_PATH
13535  shlibpath_overrides_runpath=yes
13536  ;;
13537
13538nto-qnx*)
13539  version_type=linux
13540  need_lib_prefix=no
13541  need_version=no
13542  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13543  soname_spec='${libname}${release}${shared_ext}$major'
13544  shlibpath_var=LD_LIBRARY_PATH
13545  shlibpath_overrides_runpath=yes
13546  ;;
13547
13548openbsd*)
13549  version_type=sunos
13550  sys_lib_dlsearch_path_spec="/usr/lib"
13551  need_lib_prefix=no
13552  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13553  case $host_os in
13554    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13555    *)                         need_version=no  ;;
13556  esac
13557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13558  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13559  shlibpath_var=LD_LIBRARY_PATH
13560  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13561    case $host_os in
13562      openbsd2.[89] | openbsd2.[89].*)
13563	shlibpath_overrides_runpath=no
13564	;;
13565      *)
13566	shlibpath_overrides_runpath=yes
13567	;;
13568      esac
13569  else
13570    shlibpath_overrides_runpath=yes
13571  fi
13572  ;;
13573
13574os2*)
13575  libname_spec='$name'
13576  shrext_cmds=".dll"
13577  need_lib_prefix=no
13578  library_names_spec='$libname${shared_ext} $libname.a'
13579  dynamic_linker='OS/2 ld.exe'
13580  shlibpath_var=LIBPATH
13581  ;;
13582
13583osf3* | osf4* | osf5*)
13584  version_type=osf
13585  need_lib_prefix=no
13586  need_version=no
13587  soname_spec='${libname}${release}${shared_ext}$major'
13588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13589  shlibpath_var=LD_LIBRARY_PATH
13590  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13591  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13592  ;;
13593
13594rdos*)
13595  dynamic_linker=no
13596  ;;
13597
13598solaris*)
13599  version_type=linux
13600  need_lib_prefix=no
13601  need_version=no
13602  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13603  soname_spec='${libname}${release}${shared_ext}$major'
13604  shlibpath_var=LD_LIBRARY_PATH
13605  shlibpath_overrides_runpath=yes
13606  hardcode_into_libs=yes
13607  # ldd complains unless libraries are executable
13608  postinstall_cmds='chmod +x $lib'
13609  ;;
13610
13611sunos4*)
13612  version_type=sunos
13613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13614  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13615  shlibpath_var=LD_LIBRARY_PATH
13616  shlibpath_overrides_runpath=yes
13617  if test "$with_gnu_ld" = yes; then
13618    need_lib_prefix=no
13619  fi
13620  need_version=yes
13621  ;;
13622
13623sysv4 | sysv4.3*)
13624  version_type=linux
13625  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13626  soname_spec='${libname}${release}${shared_ext}$major'
13627  shlibpath_var=LD_LIBRARY_PATH
13628  case $host_vendor in
13629    sni)
13630      shlibpath_overrides_runpath=no
13631      need_lib_prefix=no
13632      export_dynamic_flag_spec='${wl}-Blargedynsym'
13633      runpath_var=LD_RUN_PATH
13634      ;;
13635    siemens)
13636      need_lib_prefix=no
13637      ;;
13638    motorola)
13639      need_lib_prefix=no
13640      need_version=no
13641      shlibpath_overrides_runpath=no
13642      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13643      ;;
13644  esac
13645  ;;
13646
13647sysv4*MP*)
13648  if test -d /usr/nec ;then
13649    version_type=linux
13650    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13651    soname_spec='$libname${shared_ext}.$major'
13652    shlibpath_var=LD_LIBRARY_PATH
13653  fi
13654  ;;
13655
13656sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13657  version_type=freebsd-elf
13658  need_lib_prefix=no
13659  need_version=no
13660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13661  soname_spec='${libname}${release}${shared_ext}$major'
13662  shlibpath_var=LD_LIBRARY_PATH
13663  hardcode_into_libs=yes
13664  if test "$with_gnu_ld" = yes; then
13665    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13666    shlibpath_overrides_runpath=no
13667  else
13668    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13669    shlibpath_overrides_runpath=yes
13670    case $host_os in
13671      sco3.2v5*)
13672        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13673	;;
13674    esac
13675  fi
13676  sys_lib_dlsearch_path_spec='/usr/lib'
13677  ;;
13678
13679uts4*)
13680  version_type=linux
13681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13682  soname_spec='${libname}${release}${shared_ext}$major'
13683  shlibpath_var=LD_LIBRARY_PATH
13684  ;;
13685
13686*)
13687  dynamic_linker=no
13688  ;;
13689esac
13690{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13691$as_echo "$dynamic_linker" >&6; }
13692test "$dynamic_linker" = no && can_build_shared=no
13693
13694if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13695  $as_echo_n "(cached) " >&6
13696else
13697  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13698fi
13699
13700sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13701if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13702  $as_echo_n "(cached) " >&6
13703else
13704  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13705fi
13706
13707sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13708
13709variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13710if test "$GCC" = yes; then
13711  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13712fi
13713
13714{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13715$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13716hardcode_action_CXX=
13717if test -n "$hardcode_libdir_flag_spec_CXX" || \
13718   test -n "$runpath_var_CXX" || \
13719   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13720
13721  # We can hardcode non-existant directories.
13722  if test "$hardcode_direct_CXX" != no &&
13723     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13724     # have to relink, otherwise we might link with an installed library
13725     # when we should be linking with a yet-to-be-installed one
13726     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13727     test "$hardcode_minus_L_CXX" != no; then
13728    # Linking always hardcodes the temporary library directory.
13729    hardcode_action_CXX=relink
13730  else
13731    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13732    hardcode_action_CXX=immediate
13733  fi
13734else
13735  # We cannot hardcode anything, or else we can only hardcode existing
13736  # directories.
13737  hardcode_action_CXX=unsupported
13738fi
13739{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13740$as_echo "$hardcode_action_CXX" >&6; }
13741
13742if test "$hardcode_action_CXX" = relink; then
13743  # Fast installation is not supported
13744  enable_fast_install=no
13745elif test "$shlibpath_overrides_runpath" = yes ||
13746     test "$enable_shared" = no; then
13747  # Fast installation is not necessary
13748  enable_fast_install=needless
13749fi
13750
13751
13752# The else clause should only fire when bootstrapping the
13753# libtool distribution, otherwise you forgot to ship ltmain.sh
13754# with your package, and you will get complaints that there are
13755# no rules to generate ltmain.sh.
13756if test -f "$ltmain"; then
13757  # See if we are running on zsh, and set the options which allow our commands through
13758  # without removal of \ escapes.
13759  if test -n "${ZSH_VERSION+set}" ; then
13760    setopt NO_GLOB_SUBST
13761  fi
13762  # Now quote all the things that may contain metacharacters while being
13763  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13764  # variables and quote the copies for generation of the libtool script.
13765  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13766    SED SHELL STRIP \
13767    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13768    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13769    deplibs_check_method reload_flag reload_cmds need_locks \
13770    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13771    lt_cv_sys_global_symbol_to_c_name_address \
13772    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13773    old_postinstall_cmds old_postuninstall_cmds \
13774    compiler_CXX \
13775    CC_CXX \
13776    LD_CXX \
13777    lt_prog_compiler_wl_CXX \
13778    lt_prog_compiler_pic_CXX \
13779    lt_prog_compiler_static_CXX \
13780    lt_prog_compiler_no_builtin_flag_CXX \
13781    export_dynamic_flag_spec_CXX \
13782    thread_safe_flag_spec_CXX \
13783    whole_archive_flag_spec_CXX \
13784    enable_shared_with_static_runtimes_CXX \
13785    old_archive_cmds_CXX \
13786    old_archive_from_new_cmds_CXX \
13787    predep_objects_CXX \
13788    postdep_objects_CXX \
13789    predeps_CXX \
13790    postdeps_CXX \
13791    compiler_lib_search_path_CXX \
13792    compiler_lib_search_dirs_CXX \
13793    archive_cmds_CXX \
13794    archive_expsym_cmds_CXX \
13795    postinstall_cmds_CXX \
13796    postuninstall_cmds_CXX \
13797    old_archive_from_expsyms_cmds_CXX \
13798    allow_undefined_flag_CXX \
13799    no_undefined_flag_CXX \
13800    export_symbols_cmds_CXX \
13801    hardcode_libdir_flag_spec_CXX \
13802    hardcode_libdir_flag_spec_ld_CXX \
13803    hardcode_libdir_separator_CXX \
13804    hardcode_automatic_CXX \
13805    module_cmds_CXX \
13806    module_expsym_cmds_CXX \
13807    lt_cv_prog_compiler_c_o_CXX \
13808    fix_srcfile_path_CXX \
13809    exclude_expsyms_CXX \
13810    include_expsyms_CXX; do
13811
13812    case $var in
13813    old_archive_cmds_CXX | \
13814    old_archive_from_new_cmds_CXX | \
13815    archive_cmds_CXX | \
13816    archive_expsym_cmds_CXX | \
13817    module_cmds_CXX | \
13818    module_expsym_cmds_CXX | \
13819    old_archive_from_expsyms_cmds_CXX | \
13820    export_symbols_cmds_CXX | \
13821    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13822    postinstall_cmds | postuninstall_cmds | \
13823    old_postinstall_cmds | old_postuninstall_cmds | \
13824    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13825      # Double-quote double-evaled strings.
13826      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13827      ;;
13828    *)
13829      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13830      ;;
13831    esac
13832  done
13833
13834  case $lt_echo in
13835  *'\$0 --fallback-echo"')
13836    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13837    ;;
13838  esac
13839
13840cfgfile="$ofile"
13841
13842  cat <<__EOF__ >> "$cfgfile"
13843# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13844
13845# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13846
13847# Shell to use when invoking shell scripts.
13848SHELL=$lt_SHELL
13849
13850# Whether or not to build shared libraries.
13851build_libtool_libs=$enable_shared
13852
13853# Whether or not to build static libraries.
13854build_old_libs=$enable_static
13855
13856# Whether or not to add -lc for building shared libraries.
13857build_libtool_need_lc=$archive_cmds_need_lc_CXX
13858
13859# Whether or not to disallow shared libs when runtime libs are static
13860allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13861
13862# Whether or not to optimize for fast installation.
13863fast_install=$enable_fast_install
13864
13865# The host system.
13866host_alias=$host_alias
13867host=$host
13868host_os=$host_os
13869
13870# The build system.
13871build_alias=$build_alias
13872build=$build
13873build_os=$build_os
13874
13875# An echo program that does not interpret backslashes.
13876echo=$lt_echo
13877
13878# The archiver.
13879AR=$lt_AR
13880AR_FLAGS=$lt_AR_FLAGS
13881
13882# A C compiler.
13883LTCC=$lt_LTCC
13884
13885# LTCC compiler flags.
13886LTCFLAGS=$lt_LTCFLAGS
13887
13888# A language-specific compiler.
13889CC=$lt_compiler_CXX
13890
13891# Is the compiler the GNU C compiler?
13892with_gcc=$GCC_CXX
13893
13894# An ERE matcher.
13895EGREP=$lt_EGREP
13896
13897# The linker used to build libraries.
13898LD=$lt_LD_CXX
13899
13900# Whether we need hard or soft links.
13901LN_S=$lt_LN_S
13902
13903# A BSD-compatible nm program.
13904NM=$lt_NM
13905
13906# A symbol stripping program
13907STRIP=$lt_STRIP
13908
13909# Used to examine libraries when file_magic_cmd begins "file"
13910MAGIC_CMD=$MAGIC_CMD
13911
13912# Used on cygwin: DLL creation program.
13913DLLTOOL="$DLLTOOL"
13914
13915# Used on cygwin: object dumper.
13916OBJDUMP="$OBJDUMP"
13917
13918# Used on cygwin: assembler.
13919AS="$AS"
13920
13921# The name of the directory that contains temporary libtool files.
13922objdir=$objdir
13923
13924# How to create reloadable object files.
13925reload_flag=$lt_reload_flag
13926reload_cmds=$lt_reload_cmds
13927
13928# How to pass a linker flag through the compiler.
13929wl=$lt_lt_prog_compiler_wl_CXX
13930
13931# Object file suffix (normally "o").
13932objext="$ac_objext"
13933
13934# Old archive suffix (normally "a").
13935libext="$libext"
13936
13937# Shared library suffix (normally ".so").
13938shrext_cmds='$shrext_cmds'
13939
13940# Executable file suffix (normally "").
13941exeext="$exeext"
13942
13943# Additional compiler flags for building library objects.
13944pic_flag=$lt_lt_prog_compiler_pic_CXX
13945pic_mode=$pic_mode
13946
13947# What is the maximum length of a command?
13948max_cmd_len=$lt_cv_sys_max_cmd_len
13949
13950# Does compiler simultaneously support -c and -o options?
13951compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13952
13953# Must we lock files when doing compilation?
13954need_locks=$lt_need_locks
13955
13956# Do we need the lib prefix for modules?
13957need_lib_prefix=$need_lib_prefix
13958
13959# Do we need a version for libraries?
13960need_version=$need_version
13961
13962# Whether dlopen is supported.
13963dlopen_support=$enable_dlopen
13964
13965# Whether dlopen of programs is supported.
13966dlopen_self=$enable_dlopen_self
13967
13968# Whether dlopen of statically linked programs is supported.
13969dlopen_self_static=$enable_dlopen_self_static
13970
13971# Compiler flag to prevent dynamic linking.
13972link_static_flag=$lt_lt_prog_compiler_static_CXX
13973
13974# Compiler flag to turn off builtin functions.
13975no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13976
13977# Compiler flag to allow reflexive dlopens.
13978export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13979
13980# Compiler flag to generate shared objects directly from archives.
13981whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13982
13983# Compiler flag to generate thread-safe objects.
13984thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13985
13986# Library versioning type.
13987version_type=$version_type
13988
13989# Format of library name prefix.
13990libname_spec=$lt_libname_spec
13991
13992# List of archive names.  First name is the real one, the rest are links.
13993# The last name is the one that the linker finds with -lNAME.
13994library_names_spec=$lt_library_names_spec
13995
13996# The coded name of the library, if different from the real name.
13997soname_spec=$lt_soname_spec
13998
13999# Commands used to build and install an old-style archive.
14000RANLIB=$lt_RANLIB
14001old_archive_cmds=$lt_old_archive_cmds_CXX
14002old_postinstall_cmds=$lt_old_postinstall_cmds
14003old_postuninstall_cmds=$lt_old_postuninstall_cmds
14004
14005# Create an old-style archive from a shared archive.
14006old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14007
14008# Create a temporary old-style archive to link instead of a shared archive.
14009old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14010
14011# Commands used to build and install a shared archive.
14012archive_cmds=$lt_archive_cmds_CXX
14013archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14014postinstall_cmds=$lt_postinstall_cmds
14015postuninstall_cmds=$lt_postuninstall_cmds
14016
14017# Commands used to build a loadable module (assumed same as above if empty)
14018module_cmds=$lt_module_cmds_CXX
14019module_expsym_cmds=$lt_module_expsym_cmds_CXX
14020
14021# Commands to strip libraries.
14022old_striplib=$lt_old_striplib
14023striplib=$lt_striplib
14024
14025# Dependencies to place before the objects being linked to create a
14026# shared library.
14027predep_objects=$lt_predep_objects_CXX
14028
14029# Dependencies to place after the objects being linked to create a
14030# shared library.
14031postdep_objects=$lt_postdep_objects_CXX
14032
14033# Dependencies to place before the objects being linked to create a
14034# shared library.
14035predeps=$lt_predeps_CXX
14036
14037# Dependencies to place after the objects being linked to create a
14038# shared library.
14039postdeps=$lt_postdeps_CXX
14040
14041# The directories searched by this compiler when creating a shared
14042# library
14043compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14044
14045# The library search path used internally by the compiler when linking
14046# a shared library.
14047compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14048
14049# Method to check whether dependent libraries are shared objects.
14050deplibs_check_method=$lt_deplibs_check_method
14051
14052# Command to use when deplibs_check_method == file_magic.
14053file_magic_cmd=$lt_file_magic_cmd
14054
14055# Flag that allows shared libraries with undefined symbols to be built.
14056allow_undefined_flag=$lt_allow_undefined_flag_CXX
14057
14058# Flag that forces no undefined symbols.
14059no_undefined_flag=$lt_no_undefined_flag_CXX
14060
14061# Commands used to finish a libtool library installation in a directory.
14062finish_cmds=$lt_finish_cmds
14063
14064# Same as above, but a single script fragment to be evaled but not shown.
14065finish_eval=$lt_finish_eval
14066
14067# Take the output of nm and produce a listing of raw symbols and C names.
14068global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14069
14070# Transform the output of nm in a proper C declaration
14071global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14072
14073# Transform the output of nm in a C name address pair
14074global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14075
14076# This is the shared library runtime path variable.
14077runpath_var=$runpath_var
14078
14079# This is the shared library path variable.
14080shlibpath_var=$shlibpath_var
14081
14082# Is shlibpath searched before the hard-coded library search path?
14083shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14084
14085# How to hardcode a shared library path into an executable.
14086hardcode_action=$hardcode_action_CXX
14087
14088# Whether we should hardcode library paths into libraries.
14089hardcode_into_libs=$hardcode_into_libs
14090
14091# Flag to hardcode \$libdir into a binary during linking.
14092# This must work even if \$libdir does not exist.
14093hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14094
14095# If ld is used when linking, flag to hardcode \$libdir into
14096# a binary during linking. This must work even if \$libdir does
14097# not exist.
14098hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14099
14100# Whether we need a single -rpath flag with a separated argument.
14101hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14102
14103# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14104# resulting binary.
14105hardcode_direct=$hardcode_direct_CXX
14106
14107# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14108# resulting binary.
14109hardcode_minus_L=$hardcode_minus_L_CXX
14110
14111# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14112# the resulting binary.
14113hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14114
14115# Set to yes if building a shared library automatically hardcodes DIR into the library
14116# and all subsequent libraries and executables linked against it.
14117hardcode_automatic=$hardcode_automatic_CXX
14118
14119# Variables whose values should be saved in libtool wrapper scripts and
14120# restored at relink time.
14121variables_saved_for_relink="$variables_saved_for_relink"
14122
14123# Whether libtool must link a program against all its dependency libraries.
14124link_all_deplibs=$link_all_deplibs_CXX
14125
14126# Compile-time system search path for libraries
14127sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14128
14129# Run-time system search path for libraries
14130sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14131
14132# Fix the shell variable \$srcfile for the compiler.
14133fix_srcfile_path=$lt_fix_srcfile_path
14134
14135# Set to yes if exported symbols are required.
14136always_export_symbols=$always_export_symbols_CXX
14137
14138# The commands to list exported symbols.
14139export_symbols_cmds=$lt_export_symbols_cmds_CXX
14140
14141# The commands to extract the exported symbol list from a shared archive.
14142extract_expsyms_cmds=$lt_extract_expsyms_cmds
14143
14144# Symbols that should not be listed in the preloaded symbols.
14145exclude_expsyms=$lt_exclude_expsyms_CXX
14146
14147# Symbols that must always be exported.
14148include_expsyms=$lt_include_expsyms_CXX
14149
14150# ### END LIBTOOL TAG CONFIG: $tagname
14151
14152__EOF__
14153
14154
14155else
14156  # If there is no Makefile yet, we rely on a make rule to execute
14157  # `config.status --recheck' to rerun these tests and create the
14158  # libtool script then.
14159  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14160  if test -f "$ltmain_in"; then
14161    test -f Makefile && make "$ltmain"
14162  fi
14163fi
14164
14165
14166ac_ext=c
14167ac_cpp='$CPP $CPPFLAGS'
14168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14170ac_compiler_gnu=$ac_cv_c_compiler_gnu
14171
14172CC=$lt_save_CC
14173LDCXX=$LD
14174LD=$lt_save_LD
14175GCC=$lt_save_GCC
14176with_gnu_ldcxx=$with_gnu_ld
14177with_gnu_ld=$lt_save_with_gnu_ld
14178lt_cv_path_LDCXX=$lt_cv_path_LD
14179lt_cv_path_LD=$lt_save_path_LD
14180lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14181lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14182
14183	else
14184	  tagname=""
14185	fi
14186	;;
14187
14188      F77)
14189	if test -n "$F77" && test "X$F77" != "Xno"; then
14190
14191ac_ext=f
14192ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14193ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14194ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14195
14196
14197archive_cmds_need_lc_F77=no
14198allow_undefined_flag_F77=
14199always_export_symbols_F77=no
14200archive_expsym_cmds_F77=
14201export_dynamic_flag_spec_F77=
14202hardcode_direct_F77=no
14203hardcode_libdir_flag_spec_F77=
14204hardcode_libdir_flag_spec_ld_F77=
14205hardcode_libdir_separator_F77=
14206hardcode_minus_L_F77=no
14207hardcode_automatic_F77=no
14208module_cmds_F77=
14209module_expsym_cmds_F77=
14210link_all_deplibs_F77=unknown
14211old_archive_cmds_F77=$old_archive_cmds
14212no_undefined_flag_F77=
14213whole_archive_flag_spec_F77=
14214enable_shared_with_static_runtimes_F77=no
14215
14216# Source file extension for f77 test sources.
14217ac_ext=f
14218
14219# Object file extension for compiled f77 test sources.
14220objext=o
14221objext_F77=$objext
14222
14223# Code to be used in simple compile tests
14224lt_simple_compile_test_code="\
14225      subroutine t
14226      return
14227      end
14228"
14229
14230# Code to be used in simple link tests
14231lt_simple_link_test_code="\
14232      program t
14233      end
14234"
14235
14236# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14237
14238# If no C compiler was specified, use CC.
14239LTCC=${LTCC-"$CC"}
14240
14241# If no C compiler flags were specified, use CFLAGS.
14242LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14243
14244# Allow CC to be a program name with arguments.
14245compiler=$CC
14246
14247
14248# save warnings/boilerplate of simple test code
14249ac_outfile=conftest.$ac_objext
14250echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14251eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14252_lt_compiler_boilerplate=`cat conftest.err`
14253$rm conftest*
14254
14255ac_outfile=conftest.$ac_objext
14256echo "$lt_simple_link_test_code" >conftest.$ac_ext
14257eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14258_lt_linker_boilerplate=`cat conftest.err`
14259$rm -r conftest*
14260
14261
14262# Allow CC to be a program name with arguments.
14263lt_save_CC="$CC"
14264CC=${F77-"f77"}
14265compiler=$CC
14266compiler_F77=$CC
14267for cc_temp in $compiler""; do
14268  case $cc_temp in
14269    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14270    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14271    \-*) ;;
14272    *) break;;
14273  esac
14274done
14275cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14276
14277
14278{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14279$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14280{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14281$as_echo "$can_build_shared" >&6; }
14282
14283{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14284$as_echo_n "checking whether to build shared libraries... " >&6; }
14285test "$can_build_shared" = "no" && enable_shared=no
14286
14287# On AIX, shared libraries and static libraries use the same namespace, and
14288# are all built from PIC.
14289case $host_os in
14290aix3*)
14291  test "$enable_shared" = yes && enable_static=no
14292  if test -n "$RANLIB"; then
14293    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14294    postinstall_cmds='$RANLIB $lib'
14295  fi
14296  ;;
14297aix[4-9]*)
14298  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14299    test "$enable_shared" = yes && enable_static=no
14300  fi
14301  ;;
14302esac
14303{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14304$as_echo "$enable_shared" >&6; }
14305
14306{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14307$as_echo_n "checking whether to build static libraries... " >&6; }
14308# Make sure either enable_shared or enable_static is yes.
14309test "$enable_shared" = yes || enable_static=yes
14310{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14311$as_echo "$enable_static" >&6; }
14312
14313GCC_F77="$G77"
14314LD_F77="$LD"
14315
14316lt_prog_compiler_wl_F77=
14317lt_prog_compiler_pic_F77=
14318lt_prog_compiler_static_F77=
14319
14320{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14321$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14322
14323  if test "$GCC" = yes; then
14324    lt_prog_compiler_wl_F77='-Wl,'
14325    lt_prog_compiler_static_F77='-static'
14326
14327    case $host_os in
14328      aix*)
14329      # All AIX code is PIC.
14330      if test "$host_cpu" = ia64; then
14331	# AIX 5 now supports IA64 processor
14332	lt_prog_compiler_static_F77='-Bstatic'
14333      fi
14334      ;;
14335
14336    amigaos*)
14337      # FIXME: we need at least 68020 code to build shared libraries, but
14338      # adding the `-m68020' flag to GCC prevents building anything better,
14339      # like `-m68040'.
14340      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14341      ;;
14342
14343    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14344      # PIC is the default for these OSes.
14345      ;;
14346
14347    mingw* | cygwin* | pw32* | os2*)
14348      # This hack is so that the source file can tell whether it is being
14349      # built for inclusion in a dll (and should export symbols for example).
14350      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14351      # (--disable-auto-import) libraries
14352      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14353      ;;
14354
14355    darwin* | rhapsody*)
14356      # PIC is the default on this platform
14357      # Common symbols not allowed in MH_DYLIB files
14358      lt_prog_compiler_pic_F77='-fno-common'
14359      ;;
14360
14361    interix[3-9]*)
14362      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14363      # Instead, we relocate shared libraries at runtime.
14364      ;;
14365
14366    msdosdjgpp*)
14367      # Just because we use GCC doesn't mean we suddenly get shared libraries
14368      # on systems that don't support them.
14369      lt_prog_compiler_can_build_shared_F77=no
14370      enable_shared=no
14371      ;;
14372
14373    sysv4*MP*)
14374      if test -d /usr/nec; then
14375	lt_prog_compiler_pic_F77=-Kconform_pic
14376      fi
14377      ;;
14378
14379    hpux*)
14380      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14381      # not for PA HP-UX.
14382      case $host_cpu in
14383      hppa*64*|ia64*)
14384	# +Z the default
14385	;;
14386      *)
14387	lt_prog_compiler_pic_F77='-fPIC'
14388	;;
14389      esac
14390      ;;
14391
14392    *)
14393      lt_prog_compiler_pic_F77='-fPIC'
14394      ;;
14395    esac
14396  else
14397    # PORTME Check for flag to pass linker flags through the system compiler.
14398    case $host_os in
14399    aix*)
14400      lt_prog_compiler_wl_F77='-Wl,'
14401      if test "$host_cpu" = ia64; then
14402	# AIX 5 now supports IA64 processor
14403	lt_prog_compiler_static_F77='-Bstatic'
14404      else
14405	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14406      fi
14407      ;;
14408      darwin*)
14409        # PIC is the default on this platform
14410        # Common symbols not allowed in MH_DYLIB files
14411       case $cc_basename in
14412         xlc*)
14413         lt_prog_compiler_pic_F77='-qnocommon'
14414         lt_prog_compiler_wl_F77='-Wl,'
14415         ;;
14416       esac
14417       ;;
14418
14419    mingw* | cygwin* | pw32* | os2*)
14420      # This hack is so that the source file can tell whether it is being
14421      # built for inclusion in a dll (and should export symbols for example).
14422      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14423      ;;
14424
14425    hpux9* | hpux10* | hpux11*)
14426      lt_prog_compiler_wl_F77='-Wl,'
14427      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14428      # not for PA HP-UX.
14429      case $host_cpu in
14430      hppa*64*|ia64*)
14431	# +Z the default
14432	;;
14433      *)
14434	lt_prog_compiler_pic_F77='+Z'
14435	;;
14436      esac
14437      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14438      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14439      ;;
14440
14441    irix5* | irix6* | nonstopux*)
14442      lt_prog_compiler_wl_F77='-Wl,'
14443      # PIC (with -KPIC) is the default.
14444      lt_prog_compiler_static_F77='-non_shared'
14445      ;;
14446
14447    newsos6)
14448      lt_prog_compiler_pic_F77='-KPIC'
14449      lt_prog_compiler_static_F77='-Bstatic'
14450      ;;
14451
14452    linux* | k*bsd*-gnu)
14453      case $cc_basename in
14454      icc* | ecc*)
14455	lt_prog_compiler_wl_F77='-Wl,'
14456	lt_prog_compiler_pic_F77='-KPIC'
14457	lt_prog_compiler_static_F77='-static'
14458        ;;
14459      pgcc* | pgf77* | pgf90* | pgf95*)
14460        # Portland Group compilers (*not* the Pentium gcc compiler,
14461	# which looks to be a dead project)
14462	lt_prog_compiler_wl_F77='-Wl,'
14463	lt_prog_compiler_pic_F77='-fpic'
14464	lt_prog_compiler_static_F77='-Bstatic'
14465        ;;
14466      ccc*)
14467        lt_prog_compiler_wl_F77='-Wl,'
14468        # All Alpha code is PIC.
14469        lt_prog_compiler_static_F77='-non_shared'
14470        ;;
14471      *)
14472        case `$CC -V 2>&1 | sed 5q` in
14473	*Sun\ C*)
14474	  # Sun C 5.9
14475	  lt_prog_compiler_pic_F77='-KPIC'
14476	  lt_prog_compiler_static_F77='-Bstatic'
14477	  lt_prog_compiler_wl_F77='-Wl,'
14478	  ;;
14479	*Sun\ F*)
14480	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14481	  lt_prog_compiler_pic_F77='-KPIC'
14482	  lt_prog_compiler_static_F77='-Bstatic'
14483	  lt_prog_compiler_wl_F77=''
14484	  ;;
14485	esac
14486	;;
14487      esac
14488      ;;
14489
14490    osf3* | osf4* | osf5*)
14491      lt_prog_compiler_wl_F77='-Wl,'
14492      # All OSF/1 code is PIC.
14493      lt_prog_compiler_static_F77='-non_shared'
14494      ;;
14495
14496    rdos*)
14497      lt_prog_compiler_static_F77='-non_shared'
14498      ;;
14499
14500    solaris*)
14501      lt_prog_compiler_pic_F77='-KPIC'
14502      lt_prog_compiler_static_F77='-Bstatic'
14503      case $cc_basename in
14504      f77* | f90* | f95*)
14505	lt_prog_compiler_wl_F77='-Qoption ld ';;
14506      *)
14507	lt_prog_compiler_wl_F77='-Wl,';;
14508      esac
14509      ;;
14510
14511    sunos4*)
14512      lt_prog_compiler_wl_F77='-Qoption ld '
14513      lt_prog_compiler_pic_F77='-PIC'
14514      lt_prog_compiler_static_F77='-Bstatic'
14515      ;;
14516
14517    sysv4 | sysv4.2uw2* | sysv4.3*)
14518      lt_prog_compiler_wl_F77='-Wl,'
14519      lt_prog_compiler_pic_F77='-KPIC'
14520      lt_prog_compiler_static_F77='-Bstatic'
14521      ;;
14522
14523    sysv4*MP*)
14524      if test -d /usr/nec ;then
14525	lt_prog_compiler_pic_F77='-Kconform_pic'
14526	lt_prog_compiler_static_F77='-Bstatic'
14527      fi
14528      ;;
14529
14530    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14531      lt_prog_compiler_wl_F77='-Wl,'
14532      lt_prog_compiler_pic_F77='-KPIC'
14533      lt_prog_compiler_static_F77='-Bstatic'
14534      ;;
14535
14536    unicos*)
14537      lt_prog_compiler_wl_F77='-Wl,'
14538      lt_prog_compiler_can_build_shared_F77=no
14539      ;;
14540
14541    uts4*)
14542      lt_prog_compiler_pic_F77='-pic'
14543      lt_prog_compiler_static_F77='-Bstatic'
14544      ;;
14545
14546    *)
14547      lt_prog_compiler_can_build_shared_F77=no
14548      ;;
14549    esac
14550  fi
14551
14552{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14553$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14554
14555#
14556# Check to make sure the PIC flag actually works.
14557#
14558if test -n "$lt_prog_compiler_pic_F77"; then
14559
14560{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14561$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14562if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14563  $as_echo_n "(cached) " >&6
14564else
14565  lt_cv_prog_compiler_pic_works_F77=no
14566  ac_outfile=conftest.$ac_objext
14567   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14568   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14569   # Insert the option either (1) after the last *FLAGS variable, or
14570   # (2) before a word containing "conftest.", or (3) at the end.
14571   # Note that $ac_compile itself does not contain backslashes and begins
14572   # with a dollar sign (not a hyphen), so the echo should work correctly.
14573   # The option is referenced via a variable to avoid confusing sed.
14574   lt_compile=`echo "$ac_compile" | $SED \
14575   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14576   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14577   -e 's:$: $lt_compiler_flag:'`
14578   (eval echo "\"\$as_me:14578: $lt_compile\"" >&5)
14579   (eval "$lt_compile" 2>conftest.err)
14580   ac_status=$?
14581   cat conftest.err >&5
14582   echo "$as_me:14582: \$? = $ac_status" >&5
14583   if (exit $ac_status) && test -s "$ac_outfile"; then
14584     # The compiler can only warn and ignore the option if not recognized
14585     # So say no if there are warnings other than the usual output.
14586     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14587     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14588     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14589       lt_cv_prog_compiler_pic_works_F77=yes
14590     fi
14591   fi
14592   $rm conftest*
14593
14594fi
14595{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14596$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14597
14598if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14599    case $lt_prog_compiler_pic_F77 in
14600     "" | " "*) ;;
14601     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14602     esac
14603else
14604    lt_prog_compiler_pic_F77=
14605     lt_prog_compiler_can_build_shared_F77=no
14606fi
14607
14608fi
14609case $host_os in
14610  # For platforms which do not support PIC, -DPIC is meaningless:
14611  *djgpp*)
14612    lt_prog_compiler_pic_F77=
14613    ;;
14614  *)
14615    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14616    ;;
14617esac
14618
14619#
14620# Check to make sure the static flag actually works.
14621#
14622wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14623{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14624$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14625if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14626  $as_echo_n "(cached) " >&6
14627else
14628  lt_cv_prog_compiler_static_works_F77=no
14629   save_LDFLAGS="$LDFLAGS"
14630   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14631   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14632   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14633     # The linker can only warn and ignore the option if not recognized
14634     # So say no if there are warnings
14635     if test -s conftest.err; then
14636       # Append any errors to the config.log.
14637       cat conftest.err 1>&5
14638       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14639       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14640       if diff conftest.exp conftest.er2 >/dev/null; then
14641         lt_cv_prog_compiler_static_works_F77=yes
14642       fi
14643     else
14644       lt_cv_prog_compiler_static_works_F77=yes
14645     fi
14646   fi
14647   $rm -r conftest*
14648   LDFLAGS="$save_LDFLAGS"
14649
14650fi
14651{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14652$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14653
14654if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14655    :
14656else
14657    lt_prog_compiler_static_F77=
14658fi
14659
14660
14661{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14662$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14663if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14664  $as_echo_n "(cached) " >&6
14665else
14666  lt_cv_prog_compiler_c_o_F77=no
14667   $rm -r conftest 2>/dev/null
14668   mkdir conftest
14669   cd conftest
14670   mkdir out
14671   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14672
14673   lt_compiler_flag="-o out/conftest2.$ac_objext"
14674   # Insert the option either (1) after the last *FLAGS variable, or
14675   # (2) before a word containing "conftest.", or (3) at the end.
14676   # Note that $ac_compile itself does not contain backslashes and begins
14677   # with a dollar sign (not a hyphen), so the echo should work correctly.
14678   lt_compile=`echo "$ac_compile" | $SED \
14679   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14680   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14681   -e 's:$: $lt_compiler_flag:'`
14682   (eval echo "\"\$as_me:14682: $lt_compile\"" >&5)
14683   (eval "$lt_compile" 2>out/conftest.err)
14684   ac_status=$?
14685   cat out/conftest.err >&5
14686   echo "$as_me:14686: \$? = $ac_status" >&5
14687   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14688   then
14689     # The compiler can only warn and ignore the option if not recognized
14690     # So say no if there are warnings
14691     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14692     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14693     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14694       lt_cv_prog_compiler_c_o_F77=yes
14695     fi
14696   fi
14697   chmod u+w . 2>&5
14698   $rm conftest*
14699   # SGI C++ compiler will create directory out/ii_files/ for
14700   # template instantiation
14701   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14702   $rm out/* && rmdir out
14703   cd ..
14704   rmdir conftest
14705   $rm conftest*
14706
14707fi
14708{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14709$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14710
14711
14712hard_links="nottested"
14713if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14714  # do not overwrite the value of need_locks provided by the user
14715  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14716$as_echo_n "checking if we can lock with hard links... " >&6; }
14717  hard_links=yes
14718  $rm conftest*
14719  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14720  touch conftest.a
14721  ln conftest.a conftest.b 2>&5 || hard_links=no
14722  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14723  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14724$as_echo "$hard_links" >&6; }
14725  if test "$hard_links" = no; then
14726    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14727$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14728    need_locks=warn
14729  fi
14730else
14731  need_locks=no
14732fi
14733
14734{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14735$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14736
14737  runpath_var=
14738  allow_undefined_flag_F77=
14739  enable_shared_with_static_runtimes_F77=no
14740  archive_cmds_F77=
14741  archive_expsym_cmds_F77=
14742  old_archive_From_new_cmds_F77=
14743  old_archive_from_expsyms_cmds_F77=
14744  export_dynamic_flag_spec_F77=
14745  whole_archive_flag_spec_F77=
14746  thread_safe_flag_spec_F77=
14747  hardcode_libdir_flag_spec_F77=
14748  hardcode_libdir_flag_spec_ld_F77=
14749  hardcode_libdir_separator_F77=
14750  hardcode_direct_F77=no
14751  hardcode_minus_L_F77=no
14752  hardcode_shlibpath_var_F77=unsupported
14753  link_all_deplibs_F77=unknown
14754  hardcode_automatic_F77=no
14755  module_cmds_F77=
14756  module_expsym_cmds_F77=
14757  always_export_symbols_F77=no
14758  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14759  # include_expsyms should be a list of space-separated symbols to be *always*
14760  # included in the symbol list
14761  include_expsyms_F77=
14762  # exclude_expsyms can be an extended regexp of symbols to exclude
14763  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14764  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14765  # as well as any symbol that contains `d'.
14766  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14767  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14768  # platforms (ab)use it in PIC code, but their linkers get confused if
14769  # the symbol is explicitly referenced.  Since portable code cannot
14770  # rely on this symbol name, it's probably fine to never include it in
14771  # preloaded symbol tables.
14772  # Exclude shared library initialization/finalization symbols.
14773  extract_expsyms_cmds=
14774  # Just being paranoid about ensuring that cc_basename is set.
14775  for cc_temp in $compiler""; do
14776  case $cc_temp in
14777    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14778    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14779    \-*) ;;
14780    *) break;;
14781  esac
14782done
14783cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14784
14785  case $host_os in
14786  cygwin* | mingw* | pw32*)
14787    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14788    # When not using gcc, we currently assume that we are using
14789    # Microsoft Visual C++.
14790    if test "$GCC" != yes; then
14791      with_gnu_ld=no
14792    fi
14793    ;;
14794  interix*)
14795    # we just hope/assume this is gcc and not c89 (= MSVC++)
14796    with_gnu_ld=yes
14797    ;;
14798  openbsd*)
14799    with_gnu_ld=no
14800    ;;
14801  esac
14802
14803  ld_shlibs_F77=yes
14804  if test "$with_gnu_ld" = yes; then
14805    # If archive_cmds runs LD, not CC, wlarc should be empty
14806    wlarc='${wl}'
14807
14808    # Set some defaults for GNU ld with shared library support. These
14809    # are reset later if shared libraries are not supported. Putting them
14810    # here allows them to be overridden if necessary.
14811    runpath_var=LD_RUN_PATH
14812    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14813    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14814    # ancient GNU ld didn't support --whole-archive et. al.
14815    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14816	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14817      else
14818  	whole_archive_flag_spec_F77=
14819    fi
14820    supports_anon_versioning=no
14821    case `$LD -v 2>/dev/null` in
14822      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14823      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14824      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14825      *\ 2.11.*) ;; # other 2.11 versions
14826      *) supports_anon_versioning=yes ;;
14827    esac
14828
14829    # See if GNU ld supports shared libraries.
14830    case $host_os in
14831    aix[3-9]*)
14832      # On AIX/PPC, the GNU linker is very broken
14833      if test "$host_cpu" != ia64; then
14834	ld_shlibs_F77=no
14835	cat <<EOF 1>&2
14836
14837*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14838*** to be unable to reliably create shared libraries on AIX.
14839*** Therefore, libtool is disabling shared libraries support.  If you
14840*** really care for shared libraries, you may want to modify your PATH
14841*** so that a non-GNU linker is found, and then restart.
14842
14843EOF
14844      fi
14845      ;;
14846
14847    amigaos*)
14848      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)'
14849      hardcode_libdir_flag_spec_F77='-L$libdir'
14850      hardcode_minus_L_F77=yes
14851
14852      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14853      # that the semantics of dynamic libraries on AmigaOS, at least up
14854      # to version 4, is to share data among multiple programs linked
14855      # with the same dynamic library.  Since this doesn't match the
14856      # behavior of shared libraries on other platforms, we can't use
14857      # them.
14858      ld_shlibs_F77=no
14859      ;;
14860
14861    beos*)
14862      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14863	allow_undefined_flag_F77=unsupported
14864	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14865	# support --undefined.  This deserves some investigation.  FIXME
14866	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14867      else
14868	ld_shlibs_F77=no
14869      fi
14870      ;;
14871
14872    cygwin* | mingw* | pw32*)
14873      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14874      # as there is no search path for DLLs.
14875      hardcode_libdir_flag_spec_F77='-L$libdir'
14876      allow_undefined_flag_F77=unsupported
14877      always_export_symbols_F77=no
14878      enable_shared_with_static_runtimes_F77=yes
14879      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14880
14881      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14882        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14883	# If the export-symbols file already is a .def file (1st line
14884	# is EXPORTS), use it as is; otherwise, prepend...
14885	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14886	  cp $export_symbols $output_objdir/$soname.def;
14887	else
14888	  echo EXPORTS > $output_objdir/$soname.def;
14889	  cat $export_symbols >> $output_objdir/$soname.def;
14890	fi~
14891	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14892      else
14893	ld_shlibs_F77=no
14894      fi
14895      ;;
14896
14897    interix[3-9]*)
14898      hardcode_direct_F77=no
14899      hardcode_shlibpath_var_F77=no
14900      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14901      export_dynamic_flag_spec_F77='${wl}-E'
14902      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14903      # Instead, shared libraries are loaded at an image base (0x10000000 by
14904      # default) and relocated if they conflict, which is a slow very memory
14905      # consuming and fragmenting process.  To avoid this, we pick a random,
14906      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14907      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14908      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'
14909      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'
14910      ;;
14911
14912    gnu* | linux* | k*bsd*-gnu)
14913      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14914	tmp_addflag=
14915	case $cc_basename,$host_cpu in
14916	pgcc*)				# Portland Group C compiler
14917	  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'
14918	  tmp_addflag=' $pic_flag'
14919	  ;;
14920	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14921	  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'
14922	  tmp_addflag=' $pic_flag -Mnomain' ;;
14923	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14924	  tmp_addflag=' -i_dynamic' ;;
14925	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14926	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14927	ifc* | ifort*)			# Intel Fortran compiler
14928	  tmp_addflag=' -nofor_main' ;;
14929	esac
14930	case `$CC -V 2>&1 | sed 5q` in
14931	*Sun\ C*)			# Sun C 5.9
14932	  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'
14933	  tmp_sharedflag='-G' ;;
14934	*Sun\ F*)			# Sun Fortran 8.3
14935	  tmp_sharedflag='-G' ;;
14936	*)
14937	  tmp_sharedflag='-shared' ;;
14938	esac
14939	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14940
14941	if test $supports_anon_versioning = yes; then
14942	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14943  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14944  $echo "local: *; };" >> $output_objdir/$libname.ver~
14945	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14946	fi
14947      else
14948	ld_shlibs_F77=no
14949      fi
14950      ;;
14951
14952    netbsd*)
14953      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14954	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14955	wlarc=
14956      else
14957	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14958	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14959      fi
14960      ;;
14961
14962    solaris*)
14963      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14964	ld_shlibs_F77=no
14965	cat <<EOF 1>&2
14966
14967*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14968*** create shared libraries on Solaris systems.  Therefore, libtool
14969*** is disabling shared libraries support.  We urge you to upgrade GNU
14970*** binutils to release 2.9.1 or newer.  Another option is to modify
14971*** your PATH or compiler configuration so that the native linker is
14972*** used, and then restart.
14973
14974EOF
14975      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14976	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14977	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14978      else
14979	ld_shlibs_F77=no
14980      fi
14981      ;;
14982
14983    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14984      case `$LD -v 2>&1` in
14985        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14986	ld_shlibs_F77=no
14987	cat <<_LT_EOF 1>&2
14988
14989*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14990*** reliably create shared libraries on SCO systems.  Therefore, libtool
14991*** is disabling shared libraries support.  We urge you to upgrade GNU
14992*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14993*** your PATH or compiler configuration so that the native linker is
14994*** used, and then restart.
14995
14996_LT_EOF
14997	;;
14998	*)
14999	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15000	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15001	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15002	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15003	  else
15004	    ld_shlibs_F77=no
15005	  fi
15006	;;
15007      esac
15008      ;;
15009
15010    sunos4*)
15011      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15012      wlarc=
15013      hardcode_direct_F77=yes
15014      hardcode_shlibpath_var_F77=no
15015      ;;
15016
15017    *)
15018      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15019	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15020	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15021      else
15022	ld_shlibs_F77=no
15023      fi
15024      ;;
15025    esac
15026
15027    if test "$ld_shlibs_F77" = no; then
15028      runpath_var=
15029      hardcode_libdir_flag_spec_F77=
15030      export_dynamic_flag_spec_F77=
15031      whole_archive_flag_spec_F77=
15032    fi
15033  else
15034    # PORTME fill in a description of your system's linker (not GNU ld)
15035    case $host_os in
15036    aix3*)
15037      allow_undefined_flag_F77=unsupported
15038      always_export_symbols_F77=yes
15039      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'
15040      # Note: this linker hardcodes the directories in LIBPATH if there
15041      # are no directories specified by -L.
15042      hardcode_minus_L_F77=yes
15043      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15044	# Neither direct hardcoding nor static linking is supported with a
15045	# broken collect2.
15046	hardcode_direct_F77=unsupported
15047      fi
15048      ;;
15049
15050    aix[4-9]*)
15051      if test "$host_cpu" = ia64; then
15052	# On IA64, the linker does run time linking by default, so we don't
15053	# have to do anything special.
15054	aix_use_runtimelinking=no
15055	exp_sym_flag='-Bexport'
15056	no_entry_flag=""
15057      else
15058	# If we're using GNU nm, then we don't want the "-C" option.
15059	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15060	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15061	  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'
15062	else
15063	  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'
15064	fi
15065	aix_use_runtimelinking=no
15066
15067	# Test if we are trying to use run time linking or normal
15068	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15069	# need to do runtime linking.
15070	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15071	  for ld_flag in $LDFLAGS; do
15072  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15073  	    aix_use_runtimelinking=yes
15074  	    break
15075  	  fi
15076	  done
15077	  ;;
15078	esac
15079
15080	exp_sym_flag='-bexport'
15081	no_entry_flag='-bnoentry'
15082      fi
15083
15084      # When large executables or shared objects are built, AIX ld can
15085      # have problems creating the table of contents.  If linking a library
15086      # or program results in "error TOC overflow" add -mminimal-toc to
15087      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15088      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15089
15090      archive_cmds_F77=''
15091      hardcode_direct_F77=yes
15092      hardcode_libdir_separator_F77=':'
15093      link_all_deplibs_F77=yes
15094
15095      if test "$GCC" = yes; then
15096	case $host_os in aix4.[012]|aix4.[012].*)
15097	# We only want to do this on AIX 4.2 and lower, the check
15098	# below for broken collect2 doesn't work under 4.3+
15099	  collect2name=`${CC} -print-prog-name=collect2`
15100	  if test -f "$collect2name" && \
15101  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15102	  then
15103  	  # We have reworked collect2
15104  	  :
15105	  else
15106  	  # We have old collect2
15107  	  hardcode_direct_F77=unsupported
15108  	  # It fails to find uninstalled libraries when the uninstalled
15109  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15110  	  # to unsupported forces relinking
15111  	  hardcode_minus_L_F77=yes
15112  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15113  	  hardcode_libdir_separator_F77=
15114	  fi
15115	  ;;
15116	esac
15117	shared_flag='-shared'
15118	if test "$aix_use_runtimelinking" = yes; then
15119	  shared_flag="$shared_flag "'${wl}-G'
15120	fi
15121      else
15122	# not using gcc
15123	if test "$host_cpu" = ia64; then
15124  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15125  	# chokes on -Wl,-G. The following line is correct:
15126	  shared_flag='-G'
15127	else
15128	  if test "$aix_use_runtimelinking" = yes; then
15129	    shared_flag='${wl}-G'
15130	  else
15131	    shared_flag='${wl}-bM:SRE'
15132	  fi
15133	fi
15134      fi
15135
15136      # It seems that -bexpall does not export symbols beginning with
15137      # underscore (_), so it is better to generate a list of symbols to export.
15138      always_export_symbols_F77=yes
15139      if test "$aix_use_runtimelinking" = yes; then
15140	# Warning - without using the other runtime loading flags (-brtl),
15141	# -berok will link without error, but may produce a broken library.
15142	allow_undefined_flag_F77='-berok'
15143       # Determine the default libpath from the value encoded in an empty executable.
15144       cat >conftest.$ac_ext <<_ACEOF
15145      program main
15146
15147      end
15148_ACEOF
15149rm -f conftest.$ac_objext conftest$ac_exeext
15150if { (ac_try="$ac_link"
15151case "(($ac_try" in
15152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153  *) ac_try_echo=$ac_try;;
15154esac
15155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15156$as_echo "$ac_try_echo") >&5
15157  (eval "$ac_link") 2>conftest.er1
15158  ac_status=$?
15159  grep -v '^ *+' conftest.er1 >conftest.err
15160  rm -f conftest.er1
15161  cat conftest.err >&5
15162  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163  (exit $ac_status); } && {
15164	 test -z "$ac_f77_werror_flag" ||
15165	 test ! -s conftest.err
15166       } && test -s conftest$ac_exeext && {
15167	 test "$cross_compiling" = yes ||
15168	 $as_test_x conftest$ac_exeext
15169       }; then
15170
15171lt_aix_libpath_sed='
15172    /Import File Strings/,/^$/ {
15173	/^0/ {
15174	    s/^0  *\(.*\)$/\1/
15175	    p
15176	}
15177    }'
15178aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15179# Check for a 64-bit object if we didn't find anything.
15180if test -z "$aix_libpath"; then
15181  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15182fi
15183else
15184  $as_echo "$as_me: failed program was:" >&5
15185sed 's/^/| /' conftest.$ac_ext >&5
15186
15187
15188fi
15189
15190rm -rf conftest.dSYM
15191rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15192      conftest$ac_exeext conftest.$ac_ext
15193if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15194
15195       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15196	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"
15197       else
15198	if test "$host_cpu" = ia64; then
15199	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15200	  allow_undefined_flag_F77="-z nodefs"
15201	  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"
15202	else
15203	 # Determine the default libpath from the value encoded in an empty executable.
15204	 cat >conftest.$ac_ext <<_ACEOF
15205      program main
15206
15207      end
15208_ACEOF
15209rm -f conftest.$ac_objext conftest$ac_exeext
15210if { (ac_try="$ac_link"
15211case "(($ac_try" in
15212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213  *) ac_try_echo=$ac_try;;
15214esac
15215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15216$as_echo "$ac_try_echo") >&5
15217  (eval "$ac_link") 2>conftest.er1
15218  ac_status=$?
15219  grep -v '^ *+' conftest.er1 >conftest.err
15220  rm -f conftest.er1
15221  cat conftest.err >&5
15222  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223  (exit $ac_status); } && {
15224	 test -z "$ac_f77_werror_flag" ||
15225	 test ! -s conftest.err
15226       } && test -s conftest$ac_exeext && {
15227	 test "$cross_compiling" = yes ||
15228	 $as_test_x conftest$ac_exeext
15229       }; then
15230
15231lt_aix_libpath_sed='
15232    /Import File Strings/,/^$/ {
15233	/^0/ {
15234	    s/^0  *\(.*\)$/\1/
15235	    p
15236	}
15237    }'
15238aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15239# Check for a 64-bit object if we didn't find anything.
15240if test -z "$aix_libpath"; then
15241  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15242fi
15243else
15244  $as_echo "$as_me: failed program was:" >&5
15245sed 's/^/| /' conftest.$ac_ext >&5
15246
15247
15248fi
15249
15250rm -rf conftest.dSYM
15251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15252      conftest$ac_exeext conftest.$ac_ext
15253if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15254
15255	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15256	  # Warning - without using the other run time loading flags,
15257	  # -berok will link without error, but may produce a broken library.
15258	  no_undefined_flag_F77=' ${wl}-bernotok'
15259	  allow_undefined_flag_F77=' ${wl}-berok'
15260	  # Exported symbols can be pulled into shared objects from archives
15261	  whole_archive_flag_spec_F77='$convenience'
15262	  archive_cmds_need_lc_F77=yes
15263	  # This is similar to how AIX traditionally builds its shared libraries.
15264	  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'
15265	fi
15266      fi
15267      ;;
15268
15269    amigaos*)
15270      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)'
15271      hardcode_libdir_flag_spec_F77='-L$libdir'
15272      hardcode_minus_L_F77=yes
15273      # see comment about different semantics on the GNU ld section
15274      ld_shlibs_F77=no
15275      ;;
15276
15277    bsdi[45]*)
15278      export_dynamic_flag_spec_F77=-rdynamic
15279      ;;
15280
15281    cygwin* | mingw* | pw32*)
15282      # When not using gcc, we currently assume that we are using
15283      # Microsoft Visual C++.
15284      # hardcode_libdir_flag_spec is actually meaningless, as there is
15285      # no search path for DLLs.
15286      hardcode_libdir_flag_spec_F77=' '
15287      allow_undefined_flag_F77=unsupported
15288      # Tell ltmain to make .lib files, not .a files.
15289      libext=lib
15290      # Tell ltmain to make .dll files, not .so files.
15291      shrext_cmds=".dll"
15292      # FIXME: Setting linknames here is a bad hack.
15293      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15294      # The linker will automatically build a .lib file if we build a DLL.
15295      old_archive_From_new_cmds_F77='true'
15296      # FIXME: Should let the user specify the lib program.
15297      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15298      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15299      enable_shared_with_static_runtimes_F77=yes
15300      ;;
15301
15302    darwin* | rhapsody*)
15303      case $host_os in
15304        rhapsody* | darwin1.[012])
15305         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15306         ;;
15307       *) # Darwin 1.3 on
15308         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15309           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15310         else
15311           case ${MACOSX_DEPLOYMENT_TARGET} in
15312             10.[012])
15313               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15314               ;;
15315             10.*)
15316               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15317               ;;
15318           esac
15319         fi
15320         ;;
15321      esac
15322      archive_cmds_need_lc_F77=no
15323      hardcode_direct_F77=no
15324      hardcode_automatic_F77=yes
15325      hardcode_shlibpath_var_F77=unsupported
15326      whole_archive_flag_spec_F77=''
15327      link_all_deplibs_F77=yes
15328    if test "$GCC" = yes ; then
15329    	output_verbose_link_cmd='echo'
15330        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}"
15331        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15332        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}"
15333        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}"
15334    else
15335      case $cc_basename in
15336        xlc*)
15337         output_verbose_link_cmd='echo'
15338         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15339         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15340          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15341         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}'
15342          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}'
15343          ;;
15344       *)
15345         ld_shlibs_F77=no
15346          ;;
15347      esac
15348    fi
15349      ;;
15350
15351    dgux*)
15352      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15353      hardcode_libdir_flag_spec_F77='-L$libdir'
15354      hardcode_shlibpath_var_F77=no
15355      ;;
15356
15357    freebsd1*)
15358      ld_shlibs_F77=no
15359      ;;
15360
15361    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15362    # support.  Future versions do this automatically, but an explicit c++rt0.o
15363    # does not break anything, and helps significantly (at the cost of a little
15364    # extra space).
15365    freebsd2.2*)
15366      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15367      hardcode_libdir_flag_spec_F77='-R$libdir'
15368      hardcode_direct_F77=yes
15369      hardcode_shlibpath_var_F77=no
15370      ;;
15371
15372    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15373    freebsd2*)
15374      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15375      hardcode_direct_F77=yes
15376      hardcode_minus_L_F77=yes
15377      hardcode_shlibpath_var_F77=no
15378      ;;
15379
15380    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15381    freebsd* | dragonfly*)
15382      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15383      hardcode_libdir_flag_spec_F77='-R$libdir'
15384      hardcode_direct_F77=yes
15385      hardcode_shlibpath_var_F77=no
15386      ;;
15387
15388    hpux9*)
15389      if test "$GCC" = yes; then
15390	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'
15391      else
15392	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'
15393      fi
15394      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15395      hardcode_libdir_separator_F77=:
15396      hardcode_direct_F77=yes
15397
15398      # hardcode_minus_L: Not really in the search PATH,
15399      # but as the default location of the library.
15400      hardcode_minus_L_F77=yes
15401      export_dynamic_flag_spec_F77='${wl}-E'
15402      ;;
15403
15404    hpux10*)
15405      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15406	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15407      else
15408	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15409      fi
15410      if test "$with_gnu_ld" = no; then
15411	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15412	hardcode_libdir_separator_F77=:
15413
15414	hardcode_direct_F77=yes
15415	export_dynamic_flag_spec_F77='${wl}-E'
15416
15417	# hardcode_minus_L: Not really in the search PATH,
15418	# but as the default location of the library.
15419	hardcode_minus_L_F77=yes
15420      fi
15421      ;;
15422
15423    hpux11*)
15424      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15425	case $host_cpu in
15426	hppa*64*)
15427	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15428	  ;;
15429	ia64*)
15430	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15431	  ;;
15432	*)
15433	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15434	  ;;
15435	esac
15436      else
15437	case $host_cpu in
15438	hppa*64*)
15439	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15440	  ;;
15441	ia64*)
15442	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15443	  ;;
15444	*)
15445	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15446	  ;;
15447	esac
15448      fi
15449      if test "$with_gnu_ld" = no; then
15450	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15451	hardcode_libdir_separator_F77=:
15452
15453	case $host_cpu in
15454	hppa*64*|ia64*)
15455	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15456	  hardcode_direct_F77=no
15457	  hardcode_shlibpath_var_F77=no
15458	  ;;
15459	*)
15460	  hardcode_direct_F77=yes
15461	  export_dynamic_flag_spec_F77='${wl}-E'
15462
15463	  # hardcode_minus_L: Not really in the search PATH,
15464	  # but as the default location of the library.
15465	  hardcode_minus_L_F77=yes
15466	  ;;
15467	esac
15468      fi
15469      ;;
15470
15471    irix5* | irix6* | nonstopux*)
15472      if test "$GCC" = yes; then
15473	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'
15474      else
15475	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'
15476	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15477      fi
15478      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15479      hardcode_libdir_separator_F77=:
15480      link_all_deplibs_F77=yes
15481      ;;
15482
15483    netbsd*)
15484      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15485	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15486      else
15487	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15488      fi
15489      hardcode_libdir_flag_spec_F77='-R$libdir'
15490      hardcode_direct_F77=yes
15491      hardcode_shlibpath_var_F77=no
15492      ;;
15493
15494    newsos6)
15495      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15496      hardcode_direct_F77=yes
15497      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15498      hardcode_libdir_separator_F77=:
15499      hardcode_shlibpath_var_F77=no
15500      ;;
15501
15502    openbsd*)
15503      if test -f /usr/libexec/ld.so; then
15504	hardcode_direct_F77=yes
15505	hardcode_shlibpath_var_F77=no
15506	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15507	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15508	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15509	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15510	  export_dynamic_flag_spec_F77='${wl}-E'
15511	else
15512	  case $host_os in
15513	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15514	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15515	     hardcode_libdir_flag_spec_F77='-R$libdir'
15516	     ;;
15517	   *)
15518	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15519	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15520	     ;;
15521	  esac
15522        fi
15523      else
15524	ld_shlibs_F77=no
15525      fi
15526      ;;
15527
15528    os2*)
15529      hardcode_libdir_flag_spec_F77='-L$libdir'
15530      hardcode_minus_L_F77=yes
15531      allow_undefined_flag_F77=unsupported
15532      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'
15533      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15534      ;;
15535
15536    osf3*)
15537      if test "$GCC" = yes; then
15538	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15539	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'
15540      else
15541	allow_undefined_flag_F77=' -expect_unresolved \*'
15542	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'
15543      fi
15544      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15545      hardcode_libdir_separator_F77=:
15546      ;;
15547
15548    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15549      if test "$GCC" = yes; then
15550	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15551	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'
15552	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15553      else
15554	allow_undefined_flag_F77=' -expect_unresolved \*'
15555	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'
15556	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~
15557	$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'
15558
15559	# Both c and cxx compiler support -rpath directly
15560	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15561      fi
15562      hardcode_libdir_separator_F77=:
15563      ;;
15564
15565    solaris*)
15566      no_undefined_flag_F77=' -z text'
15567      if test "$GCC" = yes; then
15568	wlarc='${wl}'
15569	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15570	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15571	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15572      else
15573	wlarc=''
15574	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15575	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15576  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15577      fi
15578      hardcode_libdir_flag_spec_F77='-R$libdir'
15579      hardcode_shlibpath_var_F77=no
15580      case $host_os in
15581      solaris2.[0-5] | solaris2.[0-5].*) ;;
15582      *)
15583	# The compiler driver will combine and reorder linker options,
15584	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15585	# but is careful enough not to reorder.
15586 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15587	if test "$GCC" = yes; then
15588	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15589	else
15590	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15591	fi
15592	;;
15593      esac
15594      link_all_deplibs_F77=yes
15595      ;;
15596
15597    sunos4*)
15598      if test "x$host_vendor" = xsequent; then
15599	# Use $CC to link under sequent, because it throws in some extra .o
15600	# files that make .init and .fini sections work.
15601	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15602      else
15603	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15604      fi
15605      hardcode_libdir_flag_spec_F77='-L$libdir'
15606      hardcode_direct_F77=yes
15607      hardcode_minus_L_F77=yes
15608      hardcode_shlibpath_var_F77=no
15609      ;;
15610
15611    sysv4)
15612      case $host_vendor in
15613	sni)
15614	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15615	  hardcode_direct_F77=yes # is this really true???
15616	;;
15617	siemens)
15618	  ## LD is ld it makes a PLAMLIB
15619	  ## CC just makes a GrossModule.
15620	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15621	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15622	  hardcode_direct_F77=no
15623        ;;
15624	motorola)
15625	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15626	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15627	;;
15628      esac
15629      runpath_var='LD_RUN_PATH'
15630      hardcode_shlibpath_var_F77=no
15631      ;;
15632
15633    sysv4.3*)
15634      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15635      hardcode_shlibpath_var_F77=no
15636      export_dynamic_flag_spec_F77='-Bexport'
15637      ;;
15638
15639    sysv4*MP*)
15640      if test -d /usr/nec; then
15641	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15642	hardcode_shlibpath_var_F77=no
15643	runpath_var=LD_RUN_PATH
15644	hardcode_runpath_var=yes
15645	ld_shlibs_F77=yes
15646      fi
15647      ;;
15648
15649    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15650      no_undefined_flag_F77='${wl}-z,text'
15651      archive_cmds_need_lc_F77=no
15652      hardcode_shlibpath_var_F77=no
15653      runpath_var='LD_RUN_PATH'
15654
15655      if test "$GCC" = yes; then
15656	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15657	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15658      else
15659	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15660	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15661      fi
15662      ;;
15663
15664    sysv5* | sco3.2v5* | sco5v6*)
15665      # Note: We can NOT use -z defs as we might desire, because we do not
15666      # link with -lc, and that would cause any symbols used from libc to
15667      # always be unresolved, which means just about no library would
15668      # ever link correctly.  If we're not using GNU ld we use -z text
15669      # though, which does catch some bad symbols but isn't as heavy-handed
15670      # as -z defs.
15671      no_undefined_flag_F77='${wl}-z,text'
15672      allow_undefined_flag_F77='${wl}-z,nodefs'
15673      archive_cmds_need_lc_F77=no
15674      hardcode_shlibpath_var_F77=no
15675      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15676      hardcode_libdir_separator_F77=':'
15677      link_all_deplibs_F77=yes
15678      export_dynamic_flag_spec_F77='${wl}-Bexport'
15679      runpath_var='LD_RUN_PATH'
15680
15681      if test "$GCC" = yes; then
15682	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15683	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15684      else
15685	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15686	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15687      fi
15688      ;;
15689
15690    uts4*)
15691      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15692      hardcode_libdir_flag_spec_F77='-L$libdir'
15693      hardcode_shlibpath_var_F77=no
15694      ;;
15695
15696    *)
15697      ld_shlibs_F77=no
15698      ;;
15699    esac
15700  fi
15701
15702{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15703$as_echo "$ld_shlibs_F77" >&6; }
15704test "$ld_shlibs_F77" = no && can_build_shared=no
15705
15706#
15707# Do we need to explicitly link libc?
15708#
15709case "x$archive_cmds_need_lc_F77" in
15710x|xyes)
15711  # Assume -lc should be added
15712  archive_cmds_need_lc_F77=yes
15713
15714  if test "$enable_shared" = yes && test "$GCC" = yes; then
15715    case $archive_cmds_F77 in
15716    *'~'*)
15717      # FIXME: we may have to deal with multi-command sequences.
15718      ;;
15719    '$CC '*)
15720      # Test whether the compiler implicitly links with -lc since on some
15721      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15722      # to ld, don't add -lc before -lgcc.
15723      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15724$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15725      $rm conftest*
15726      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15727
15728      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15729  (eval $ac_compile) 2>&5
15730  ac_status=$?
15731  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732  (exit $ac_status); } 2>conftest.err; then
15733        soname=conftest
15734        lib=conftest
15735        libobjs=conftest.$ac_objext
15736        deplibs=
15737        wl=$lt_prog_compiler_wl_F77
15738	pic_flag=$lt_prog_compiler_pic_F77
15739        compiler_flags=-v
15740        linker_flags=-v
15741        verstring=
15742        output_objdir=.
15743        libname=conftest
15744        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15745        allow_undefined_flag_F77=
15746        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15747  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15748  ac_status=$?
15749  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750  (exit $ac_status); }
15751        then
15752	  archive_cmds_need_lc_F77=no
15753        else
15754	  archive_cmds_need_lc_F77=yes
15755        fi
15756        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15757      else
15758        cat conftest.err 1>&5
15759      fi
15760      $rm conftest*
15761      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15762$as_echo "$archive_cmds_need_lc_F77" >&6; }
15763      ;;
15764    esac
15765  fi
15766  ;;
15767esac
15768
15769{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15770$as_echo_n "checking dynamic linker characteristics... " >&6; }
15771library_names_spec=
15772libname_spec='lib$name'
15773soname_spec=
15774shrext_cmds=".so"
15775postinstall_cmds=
15776postuninstall_cmds=
15777finish_cmds=
15778finish_eval=
15779shlibpath_var=
15780shlibpath_overrides_runpath=unknown
15781version_type=none
15782dynamic_linker="$host_os ld.so"
15783sys_lib_dlsearch_path_spec="/lib /usr/lib"
15784
15785need_lib_prefix=unknown
15786hardcode_into_libs=no
15787
15788# when you set need_version to no, make sure it does not cause -set_version
15789# flags to be left without arguments
15790need_version=unknown
15791
15792case $host_os in
15793aix3*)
15794  version_type=linux
15795  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15796  shlibpath_var=LIBPATH
15797
15798  # AIX 3 has no versioning support, so we append a major version to the name.
15799  soname_spec='${libname}${release}${shared_ext}$major'
15800  ;;
15801
15802aix[4-9]*)
15803  version_type=linux
15804  need_lib_prefix=no
15805  need_version=no
15806  hardcode_into_libs=yes
15807  if test "$host_cpu" = ia64; then
15808    # AIX 5 supports IA64
15809    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15810    shlibpath_var=LD_LIBRARY_PATH
15811  else
15812    # With GCC up to 2.95.x, collect2 would create an import file
15813    # for dependence libraries.  The import file would start with
15814    # the line `#! .'.  This would cause the generated library to
15815    # depend on `.', always an invalid library.  This was fixed in
15816    # development snapshots of GCC prior to 3.0.
15817    case $host_os in
15818      aix4 | aix4.[01] | aix4.[01].*)
15819      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15820	   echo ' yes '
15821	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15822	:
15823      else
15824	can_build_shared=no
15825      fi
15826      ;;
15827    esac
15828    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15829    # soname into executable. Probably we can add versioning support to
15830    # collect2, so additional links can be useful in future.
15831    if test "$aix_use_runtimelinking" = yes; then
15832      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15833      # instead of lib<name>.a to let people know that these are not
15834      # typical AIX shared libraries.
15835      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15836    else
15837      # We preserve .a as extension for shared libraries through AIX4.2
15838      # and later when we are not doing run time linking.
15839      library_names_spec='${libname}${release}.a $libname.a'
15840      soname_spec='${libname}${release}${shared_ext}$major'
15841    fi
15842    shlibpath_var=LIBPATH
15843  fi
15844  ;;
15845
15846amigaos*)
15847  library_names_spec='$libname.ixlibrary $libname.a'
15848  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15849  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'
15850  ;;
15851
15852beos*)
15853  library_names_spec='${libname}${shared_ext}'
15854  dynamic_linker="$host_os ld.so"
15855  shlibpath_var=LIBRARY_PATH
15856  ;;
15857
15858bsdi[45]*)
15859  version_type=linux
15860  need_version=no
15861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15862  soname_spec='${libname}${release}${shared_ext}$major'
15863  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15864  shlibpath_var=LD_LIBRARY_PATH
15865  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15866  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15867  # the default ld.so.conf also contains /usr/contrib/lib and
15868  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15869  # libtool to hard-code these into programs
15870  ;;
15871
15872cygwin* | mingw* | pw32*)
15873  version_type=windows
15874  shrext_cmds=".dll"
15875  need_version=no
15876  need_lib_prefix=no
15877
15878  case $GCC,$host_os in
15879  yes,cygwin* | yes,mingw* | yes,pw32*)
15880    library_names_spec='$libname.dll.a'
15881    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15882    postinstall_cmds='base_file=`basename \${file}`~
15883      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15884      dldir=$destdir/`dirname \$dlpath`~
15885      test -d \$dldir || mkdir -p \$dldir~
15886      $install_prog $dir/$dlname \$dldir/$dlname~
15887      chmod a+x \$dldir/$dlname'
15888    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15889      dlpath=$dir/\$dldll~
15890       $rm \$dlpath'
15891    shlibpath_overrides_runpath=yes
15892
15893    case $host_os in
15894    cygwin*)
15895      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15896      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15897      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15898      ;;
15899    mingw*)
15900      # MinGW DLLs use traditional 'lib' prefix
15901      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15902      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15903      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15904        # It is most probably a Windows format PATH printed by
15905        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15906        # path with ; separators, and with drive letters. We can handle the
15907        # drive letters (cygwin fileutils understands them), so leave them,
15908        # especially as we might pass files found there to a mingw objdump,
15909        # which wouldn't understand a cygwinified path. Ahh.
15910        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15911      else
15912        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15913      fi
15914      ;;
15915    pw32*)
15916      # pw32 DLLs use 'pw' prefix rather than 'lib'
15917      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15918      ;;
15919    esac
15920    ;;
15921
15922  *)
15923    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15924    ;;
15925  esac
15926  dynamic_linker='Win32 ld.exe'
15927  # FIXME: first we should search . and the directory the executable is in
15928  shlibpath_var=PATH
15929  ;;
15930
15931darwin* | rhapsody*)
15932  dynamic_linker="$host_os dyld"
15933  version_type=darwin
15934  need_lib_prefix=no
15935  need_version=no
15936  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15937  soname_spec='${libname}${release}${major}$shared_ext'
15938  shlibpath_overrides_runpath=yes
15939  shlibpath_var=DYLD_LIBRARY_PATH
15940  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15941
15942  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15943  ;;
15944
15945dgux*)
15946  version_type=linux
15947  need_lib_prefix=no
15948  need_version=no
15949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15950  soname_spec='${libname}${release}${shared_ext}$major'
15951  shlibpath_var=LD_LIBRARY_PATH
15952  ;;
15953
15954freebsd1*)
15955  dynamic_linker=no
15956  ;;
15957
15958freebsd* | dragonfly*)
15959  # DragonFly does not have aout.  When/if they implement a new
15960  # versioning mechanism, adjust this.
15961  if test -x /usr/bin/objformat; then
15962    objformat=`/usr/bin/objformat`
15963  else
15964    case $host_os in
15965    freebsd[123]*) objformat=aout ;;
15966    *) objformat=elf ;;
15967    esac
15968  fi
15969  # Handle Gentoo/FreeBSD as it was Linux
15970  case $host_vendor in
15971    gentoo)
15972      version_type=linux ;;
15973    *)
15974      version_type=freebsd-$objformat ;;
15975  esac
15976
15977  case $version_type in
15978    freebsd-elf*)
15979      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15980      need_version=no
15981      need_lib_prefix=no
15982      ;;
15983    freebsd-*)
15984      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15985      need_version=yes
15986      ;;
15987    linux)
15988      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15989      soname_spec='${libname}${release}${shared_ext}$major'
15990      need_lib_prefix=no
15991      need_version=no
15992      ;;
15993  esac
15994  shlibpath_var=LD_LIBRARY_PATH
15995  case $host_os in
15996  freebsd2*)
15997    shlibpath_overrides_runpath=yes
15998    ;;
15999  freebsd3.[01]* | freebsdelf3.[01]*)
16000    shlibpath_overrides_runpath=yes
16001    hardcode_into_libs=yes
16002    ;;
16003  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16004  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16005    shlibpath_overrides_runpath=no
16006    hardcode_into_libs=yes
16007    ;;
16008  *) # from 4.6 on, and DragonFly
16009    shlibpath_overrides_runpath=yes
16010    hardcode_into_libs=yes
16011    ;;
16012  esac
16013  ;;
16014
16015gnu*)
16016  version_type=linux
16017  need_lib_prefix=no
16018  need_version=no
16019  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16020  soname_spec='${libname}${release}${shared_ext}$major'
16021  shlibpath_var=LD_LIBRARY_PATH
16022  hardcode_into_libs=yes
16023  ;;
16024
16025hpux9* | hpux10* | hpux11*)
16026  # Give a soname corresponding to the major version so that dld.sl refuses to
16027  # link against other versions.
16028  version_type=sunos
16029  need_lib_prefix=no
16030  need_version=no
16031  case $host_cpu in
16032  ia64*)
16033    shrext_cmds='.so'
16034    hardcode_into_libs=yes
16035    dynamic_linker="$host_os dld.so"
16036    shlibpath_var=LD_LIBRARY_PATH
16037    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16038    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16039    soname_spec='${libname}${release}${shared_ext}$major'
16040    if test "X$HPUX_IA64_MODE" = X32; then
16041      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16042    else
16043      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16044    fi
16045    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16046    ;;
16047   hppa*64*)
16048     shrext_cmds='.sl'
16049     hardcode_into_libs=yes
16050     dynamic_linker="$host_os dld.sl"
16051     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16052     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16053     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16054     soname_spec='${libname}${release}${shared_ext}$major'
16055     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16056     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16057     ;;
16058   *)
16059    shrext_cmds='.sl'
16060    dynamic_linker="$host_os dld.sl"
16061    shlibpath_var=SHLIB_PATH
16062    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16063    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064    soname_spec='${libname}${release}${shared_ext}$major'
16065    ;;
16066  esac
16067  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16068  postinstall_cmds='chmod 555 $lib'
16069  ;;
16070
16071interix[3-9]*)
16072  version_type=linux
16073  need_lib_prefix=no
16074  need_version=no
16075  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16076  soname_spec='${libname}${release}${shared_ext}$major'
16077  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16078  shlibpath_var=LD_LIBRARY_PATH
16079  shlibpath_overrides_runpath=no
16080  hardcode_into_libs=yes
16081  ;;
16082
16083irix5* | irix6* | nonstopux*)
16084  case $host_os in
16085    nonstopux*) version_type=nonstopux ;;
16086    *)
16087	if test "$lt_cv_prog_gnu_ld" = yes; then
16088		version_type=linux
16089	else
16090		version_type=irix
16091	fi ;;
16092  esac
16093  need_lib_prefix=no
16094  need_version=no
16095  soname_spec='${libname}${release}${shared_ext}$major'
16096  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16097  case $host_os in
16098  irix5* | nonstopux*)
16099    libsuff= shlibsuff=
16100    ;;
16101  *)
16102    case $LD in # libtool.m4 will add one of these switches to LD
16103    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16104      libsuff= shlibsuff= libmagic=32-bit;;
16105    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16106      libsuff=32 shlibsuff=N32 libmagic=N32;;
16107    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16108      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16109    *) libsuff= shlibsuff= libmagic=never-match;;
16110    esac
16111    ;;
16112  esac
16113  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16114  shlibpath_overrides_runpath=no
16115  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16116  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16117  hardcode_into_libs=yes
16118  ;;
16119
16120# No shared lib support for Linux oldld, aout, or coff.
16121linux*oldld* | linux*aout* | linux*coff*)
16122  dynamic_linker=no
16123  ;;
16124
16125# This must be Linux ELF.
16126linux* | k*bsd*-gnu)
16127  version_type=linux
16128  need_lib_prefix=no
16129  need_version=no
16130  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16131  soname_spec='${libname}${release}${shared_ext}$major'
16132  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16133  shlibpath_var=LD_LIBRARY_PATH
16134  shlibpath_overrides_runpath=no
16135  # This implies no fast_install, which is unacceptable.
16136  # Some rework will be needed to allow for fast_install
16137  # before this can be enabled.
16138  hardcode_into_libs=yes
16139
16140  # Append ld.so.conf contents to the search path
16141  if test -f /etc/ld.so.conf; then
16142    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' ' '`
16143    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16144  fi
16145
16146  # We used to test for /lib/ld.so.1 and disable shared libraries on
16147  # powerpc, because MkLinux only supported shared libraries with the
16148  # GNU dynamic linker.  Since this was broken with cross compilers,
16149  # most powerpc-linux boxes support dynamic linking these days and
16150  # people can always --disable-shared, the test was removed, and we
16151  # assume the GNU/Linux dynamic linker is in use.
16152  dynamic_linker='GNU/Linux ld.so'
16153  ;;
16154
16155netbsd*)
16156  version_type=sunos
16157  need_lib_prefix=no
16158  need_version=no
16159  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16160    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16161    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16162    dynamic_linker='NetBSD (a.out) ld.so'
16163  else
16164    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16165    soname_spec='${libname}${release}${shared_ext}$major'
16166    dynamic_linker='NetBSD ld.elf_so'
16167  fi
16168  shlibpath_var=LD_LIBRARY_PATH
16169  shlibpath_overrides_runpath=yes
16170  hardcode_into_libs=yes
16171  ;;
16172
16173newsos6)
16174  version_type=linux
16175  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16176  shlibpath_var=LD_LIBRARY_PATH
16177  shlibpath_overrides_runpath=yes
16178  ;;
16179
16180nto-qnx*)
16181  version_type=linux
16182  need_lib_prefix=no
16183  need_version=no
16184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16185  soname_spec='${libname}${release}${shared_ext}$major'
16186  shlibpath_var=LD_LIBRARY_PATH
16187  shlibpath_overrides_runpath=yes
16188  ;;
16189
16190openbsd*)
16191  version_type=sunos
16192  sys_lib_dlsearch_path_spec="/usr/lib"
16193  need_lib_prefix=no
16194  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16195  case $host_os in
16196    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16197    *)                         need_version=no  ;;
16198  esac
16199  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16200  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16201  shlibpath_var=LD_LIBRARY_PATH
16202  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16203    case $host_os in
16204      openbsd2.[89] | openbsd2.[89].*)
16205	shlibpath_overrides_runpath=no
16206	;;
16207      *)
16208	shlibpath_overrides_runpath=yes
16209	;;
16210      esac
16211  else
16212    shlibpath_overrides_runpath=yes
16213  fi
16214  ;;
16215
16216os2*)
16217  libname_spec='$name'
16218  shrext_cmds=".dll"
16219  need_lib_prefix=no
16220  library_names_spec='$libname${shared_ext} $libname.a'
16221  dynamic_linker='OS/2 ld.exe'
16222  shlibpath_var=LIBPATH
16223  ;;
16224
16225osf3* | osf4* | osf5*)
16226  version_type=osf
16227  need_lib_prefix=no
16228  need_version=no
16229  soname_spec='${libname}${release}${shared_ext}$major'
16230  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231  shlibpath_var=LD_LIBRARY_PATH
16232  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16233  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16234  ;;
16235
16236rdos*)
16237  dynamic_linker=no
16238  ;;
16239
16240solaris*)
16241  version_type=linux
16242  need_lib_prefix=no
16243  need_version=no
16244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245  soname_spec='${libname}${release}${shared_ext}$major'
16246  shlibpath_var=LD_LIBRARY_PATH
16247  shlibpath_overrides_runpath=yes
16248  hardcode_into_libs=yes
16249  # ldd complains unless libraries are executable
16250  postinstall_cmds='chmod +x $lib'
16251  ;;
16252
16253sunos4*)
16254  version_type=sunos
16255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16256  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16257  shlibpath_var=LD_LIBRARY_PATH
16258  shlibpath_overrides_runpath=yes
16259  if test "$with_gnu_ld" = yes; then
16260    need_lib_prefix=no
16261  fi
16262  need_version=yes
16263  ;;
16264
16265sysv4 | sysv4.3*)
16266  version_type=linux
16267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16268  soname_spec='${libname}${release}${shared_ext}$major'
16269  shlibpath_var=LD_LIBRARY_PATH
16270  case $host_vendor in
16271    sni)
16272      shlibpath_overrides_runpath=no
16273      need_lib_prefix=no
16274      export_dynamic_flag_spec='${wl}-Blargedynsym'
16275      runpath_var=LD_RUN_PATH
16276      ;;
16277    siemens)
16278      need_lib_prefix=no
16279      ;;
16280    motorola)
16281      need_lib_prefix=no
16282      need_version=no
16283      shlibpath_overrides_runpath=no
16284      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16285      ;;
16286  esac
16287  ;;
16288
16289sysv4*MP*)
16290  if test -d /usr/nec ;then
16291    version_type=linux
16292    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16293    soname_spec='$libname${shared_ext}.$major'
16294    shlibpath_var=LD_LIBRARY_PATH
16295  fi
16296  ;;
16297
16298sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16299  version_type=freebsd-elf
16300  need_lib_prefix=no
16301  need_version=no
16302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16303  soname_spec='${libname}${release}${shared_ext}$major'
16304  shlibpath_var=LD_LIBRARY_PATH
16305  hardcode_into_libs=yes
16306  if test "$with_gnu_ld" = yes; then
16307    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16308    shlibpath_overrides_runpath=no
16309  else
16310    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16311    shlibpath_overrides_runpath=yes
16312    case $host_os in
16313      sco3.2v5*)
16314        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16315	;;
16316    esac
16317  fi
16318  sys_lib_dlsearch_path_spec='/usr/lib'
16319  ;;
16320
16321uts4*)
16322  version_type=linux
16323  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16324  soname_spec='${libname}${release}${shared_ext}$major'
16325  shlibpath_var=LD_LIBRARY_PATH
16326  ;;
16327
16328*)
16329  dynamic_linker=no
16330  ;;
16331esac
16332{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16333$as_echo "$dynamic_linker" >&6; }
16334test "$dynamic_linker" = no && can_build_shared=no
16335
16336if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16337  $as_echo_n "(cached) " >&6
16338else
16339  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16340fi
16341
16342sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16343if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16344  $as_echo_n "(cached) " >&6
16345else
16346  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16347fi
16348
16349sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16350
16351variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16352if test "$GCC" = yes; then
16353  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16354fi
16355
16356{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16357$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16358hardcode_action_F77=
16359if test -n "$hardcode_libdir_flag_spec_F77" || \
16360   test -n "$runpath_var_F77" || \
16361   test "X$hardcode_automatic_F77" = "Xyes" ; then
16362
16363  # We can hardcode non-existant directories.
16364  if test "$hardcode_direct_F77" != no &&
16365     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16366     # have to relink, otherwise we might link with an installed library
16367     # when we should be linking with a yet-to-be-installed one
16368     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16369     test "$hardcode_minus_L_F77" != no; then
16370    # Linking always hardcodes the temporary library directory.
16371    hardcode_action_F77=relink
16372  else
16373    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16374    hardcode_action_F77=immediate
16375  fi
16376else
16377  # We cannot hardcode anything, or else we can only hardcode existing
16378  # directories.
16379  hardcode_action_F77=unsupported
16380fi
16381{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16382$as_echo "$hardcode_action_F77" >&6; }
16383
16384if test "$hardcode_action_F77" = relink; then
16385  # Fast installation is not supported
16386  enable_fast_install=no
16387elif test "$shlibpath_overrides_runpath" = yes ||
16388     test "$enable_shared" = no; then
16389  # Fast installation is not necessary
16390  enable_fast_install=needless
16391fi
16392
16393
16394# The else clause should only fire when bootstrapping the
16395# libtool distribution, otherwise you forgot to ship ltmain.sh
16396# with your package, and you will get complaints that there are
16397# no rules to generate ltmain.sh.
16398if test -f "$ltmain"; then
16399  # See if we are running on zsh, and set the options which allow our commands through
16400  # without removal of \ escapes.
16401  if test -n "${ZSH_VERSION+set}" ; then
16402    setopt NO_GLOB_SUBST
16403  fi
16404  # Now quote all the things that may contain metacharacters while being
16405  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16406  # variables and quote the copies for generation of the libtool script.
16407  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16408    SED SHELL STRIP \
16409    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16410    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16411    deplibs_check_method reload_flag reload_cmds need_locks \
16412    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16413    lt_cv_sys_global_symbol_to_c_name_address \
16414    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16415    old_postinstall_cmds old_postuninstall_cmds \
16416    compiler_F77 \
16417    CC_F77 \
16418    LD_F77 \
16419    lt_prog_compiler_wl_F77 \
16420    lt_prog_compiler_pic_F77 \
16421    lt_prog_compiler_static_F77 \
16422    lt_prog_compiler_no_builtin_flag_F77 \
16423    export_dynamic_flag_spec_F77 \
16424    thread_safe_flag_spec_F77 \
16425    whole_archive_flag_spec_F77 \
16426    enable_shared_with_static_runtimes_F77 \
16427    old_archive_cmds_F77 \
16428    old_archive_from_new_cmds_F77 \
16429    predep_objects_F77 \
16430    postdep_objects_F77 \
16431    predeps_F77 \
16432    postdeps_F77 \
16433    compiler_lib_search_path_F77 \
16434    compiler_lib_search_dirs_F77 \
16435    archive_cmds_F77 \
16436    archive_expsym_cmds_F77 \
16437    postinstall_cmds_F77 \
16438    postuninstall_cmds_F77 \
16439    old_archive_from_expsyms_cmds_F77 \
16440    allow_undefined_flag_F77 \
16441    no_undefined_flag_F77 \
16442    export_symbols_cmds_F77 \
16443    hardcode_libdir_flag_spec_F77 \
16444    hardcode_libdir_flag_spec_ld_F77 \
16445    hardcode_libdir_separator_F77 \
16446    hardcode_automatic_F77 \
16447    module_cmds_F77 \
16448    module_expsym_cmds_F77 \
16449    lt_cv_prog_compiler_c_o_F77 \
16450    fix_srcfile_path_F77 \
16451    exclude_expsyms_F77 \
16452    include_expsyms_F77; do
16453
16454    case $var in
16455    old_archive_cmds_F77 | \
16456    old_archive_from_new_cmds_F77 | \
16457    archive_cmds_F77 | \
16458    archive_expsym_cmds_F77 | \
16459    module_cmds_F77 | \
16460    module_expsym_cmds_F77 | \
16461    old_archive_from_expsyms_cmds_F77 | \
16462    export_symbols_cmds_F77 | \
16463    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16464    postinstall_cmds | postuninstall_cmds | \
16465    old_postinstall_cmds | old_postuninstall_cmds | \
16466    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16467      # Double-quote double-evaled strings.
16468      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16469      ;;
16470    *)
16471      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16472      ;;
16473    esac
16474  done
16475
16476  case $lt_echo in
16477  *'\$0 --fallback-echo"')
16478    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16479    ;;
16480  esac
16481
16482cfgfile="$ofile"
16483
16484  cat <<__EOF__ >> "$cfgfile"
16485# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16486
16487# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16488
16489# Shell to use when invoking shell scripts.
16490SHELL=$lt_SHELL
16491
16492# Whether or not to build shared libraries.
16493build_libtool_libs=$enable_shared
16494
16495# Whether or not to build static libraries.
16496build_old_libs=$enable_static
16497
16498# Whether or not to add -lc for building shared libraries.
16499build_libtool_need_lc=$archive_cmds_need_lc_F77
16500
16501# Whether or not to disallow shared libs when runtime libs are static
16502allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16503
16504# Whether or not to optimize for fast installation.
16505fast_install=$enable_fast_install
16506
16507# The host system.
16508host_alias=$host_alias
16509host=$host
16510host_os=$host_os
16511
16512# The build system.
16513build_alias=$build_alias
16514build=$build
16515build_os=$build_os
16516
16517# An echo program that does not interpret backslashes.
16518echo=$lt_echo
16519
16520# The archiver.
16521AR=$lt_AR
16522AR_FLAGS=$lt_AR_FLAGS
16523
16524# A C compiler.
16525LTCC=$lt_LTCC
16526
16527# LTCC compiler flags.
16528LTCFLAGS=$lt_LTCFLAGS
16529
16530# A language-specific compiler.
16531CC=$lt_compiler_F77
16532
16533# Is the compiler the GNU C compiler?
16534with_gcc=$GCC_F77
16535
16536# An ERE matcher.
16537EGREP=$lt_EGREP
16538
16539# The linker used to build libraries.
16540LD=$lt_LD_F77
16541
16542# Whether we need hard or soft links.
16543LN_S=$lt_LN_S
16544
16545# A BSD-compatible nm program.
16546NM=$lt_NM
16547
16548# A symbol stripping program
16549STRIP=$lt_STRIP
16550
16551# Used to examine libraries when file_magic_cmd begins "file"
16552MAGIC_CMD=$MAGIC_CMD
16553
16554# Used on cygwin: DLL creation program.
16555DLLTOOL="$DLLTOOL"
16556
16557# Used on cygwin: object dumper.
16558OBJDUMP="$OBJDUMP"
16559
16560# Used on cygwin: assembler.
16561AS="$AS"
16562
16563# The name of the directory that contains temporary libtool files.
16564objdir=$objdir
16565
16566# How to create reloadable object files.
16567reload_flag=$lt_reload_flag
16568reload_cmds=$lt_reload_cmds
16569
16570# How to pass a linker flag through the compiler.
16571wl=$lt_lt_prog_compiler_wl_F77
16572
16573# Object file suffix (normally "o").
16574objext="$ac_objext"
16575
16576# Old archive suffix (normally "a").
16577libext="$libext"
16578
16579# Shared library suffix (normally ".so").
16580shrext_cmds='$shrext_cmds'
16581
16582# Executable file suffix (normally "").
16583exeext="$exeext"
16584
16585# Additional compiler flags for building library objects.
16586pic_flag=$lt_lt_prog_compiler_pic_F77
16587pic_mode=$pic_mode
16588
16589# What is the maximum length of a command?
16590max_cmd_len=$lt_cv_sys_max_cmd_len
16591
16592# Does compiler simultaneously support -c and -o options?
16593compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16594
16595# Must we lock files when doing compilation?
16596need_locks=$lt_need_locks
16597
16598# Do we need the lib prefix for modules?
16599need_lib_prefix=$need_lib_prefix
16600
16601# Do we need a version for libraries?
16602need_version=$need_version
16603
16604# Whether dlopen is supported.
16605dlopen_support=$enable_dlopen
16606
16607# Whether dlopen of programs is supported.
16608dlopen_self=$enable_dlopen_self
16609
16610# Whether dlopen of statically linked programs is supported.
16611dlopen_self_static=$enable_dlopen_self_static
16612
16613# Compiler flag to prevent dynamic linking.
16614link_static_flag=$lt_lt_prog_compiler_static_F77
16615
16616# Compiler flag to turn off builtin functions.
16617no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16618
16619# Compiler flag to allow reflexive dlopens.
16620export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16621
16622# Compiler flag to generate shared objects directly from archives.
16623whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16624
16625# Compiler flag to generate thread-safe objects.
16626thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16627
16628# Library versioning type.
16629version_type=$version_type
16630
16631# Format of library name prefix.
16632libname_spec=$lt_libname_spec
16633
16634# List of archive names.  First name is the real one, the rest are links.
16635# The last name is the one that the linker finds with -lNAME.
16636library_names_spec=$lt_library_names_spec
16637
16638# The coded name of the library, if different from the real name.
16639soname_spec=$lt_soname_spec
16640
16641# Commands used to build and install an old-style archive.
16642RANLIB=$lt_RANLIB
16643old_archive_cmds=$lt_old_archive_cmds_F77
16644old_postinstall_cmds=$lt_old_postinstall_cmds
16645old_postuninstall_cmds=$lt_old_postuninstall_cmds
16646
16647# Create an old-style archive from a shared archive.
16648old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16649
16650# Create a temporary old-style archive to link instead of a shared archive.
16651old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16652
16653# Commands used to build and install a shared archive.
16654archive_cmds=$lt_archive_cmds_F77
16655archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16656postinstall_cmds=$lt_postinstall_cmds
16657postuninstall_cmds=$lt_postuninstall_cmds
16658
16659# Commands used to build a loadable module (assumed same as above if empty)
16660module_cmds=$lt_module_cmds_F77
16661module_expsym_cmds=$lt_module_expsym_cmds_F77
16662
16663# Commands to strip libraries.
16664old_striplib=$lt_old_striplib
16665striplib=$lt_striplib
16666
16667# Dependencies to place before the objects being linked to create a
16668# shared library.
16669predep_objects=$lt_predep_objects_F77
16670
16671# Dependencies to place after the objects being linked to create a
16672# shared library.
16673postdep_objects=$lt_postdep_objects_F77
16674
16675# Dependencies to place before the objects being linked to create a
16676# shared library.
16677predeps=$lt_predeps_F77
16678
16679# Dependencies to place after the objects being linked to create a
16680# shared library.
16681postdeps=$lt_postdeps_F77
16682
16683# The directories searched by this compiler when creating a shared
16684# library
16685compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16686
16687# The library search path used internally by the compiler when linking
16688# a shared library.
16689compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16690
16691# Method to check whether dependent libraries are shared objects.
16692deplibs_check_method=$lt_deplibs_check_method
16693
16694# Command to use when deplibs_check_method == file_magic.
16695file_magic_cmd=$lt_file_magic_cmd
16696
16697# Flag that allows shared libraries with undefined symbols to be built.
16698allow_undefined_flag=$lt_allow_undefined_flag_F77
16699
16700# Flag that forces no undefined symbols.
16701no_undefined_flag=$lt_no_undefined_flag_F77
16702
16703# Commands used to finish a libtool library installation in a directory.
16704finish_cmds=$lt_finish_cmds
16705
16706# Same as above, but a single script fragment to be evaled but not shown.
16707finish_eval=$lt_finish_eval
16708
16709# Take the output of nm and produce a listing of raw symbols and C names.
16710global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16711
16712# Transform the output of nm in a proper C declaration
16713global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16714
16715# Transform the output of nm in a C name address pair
16716global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16717
16718# This is the shared library runtime path variable.
16719runpath_var=$runpath_var
16720
16721# This is the shared library path variable.
16722shlibpath_var=$shlibpath_var
16723
16724# Is shlibpath searched before the hard-coded library search path?
16725shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16726
16727# How to hardcode a shared library path into an executable.
16728hardcode_action=$hardcode_action_F77
16729
16730# Whether we should hardcode library paths into libraries.
16731hardcode_into_libs=$hardcode_into_libs
16732
16733# Flag to hardcode \$libdir into a binary during linking.
16734# This must work even if \$libdir does not exist.
16735hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16736
16737# If ld is used when linking, flag to hardcode \$libdir into
16738# a binary during linking. This must work even if \$libdir does
16739# not exist.
16740hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16741
16742# Whether we need a single -rpath flag with a separated argument.
16743hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16744
16745# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16746# resulting binary.
16747hardcode_direct=$hardcode_direct_F77
16748
16749# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16750# resulting binary.
16751hardcode_minus_L=$hardcode_minus_L_F77
16752
16753# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16754# the resulting binary.
16755hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16756
16757# Set to yes if building a shared library automatically hardcodes DIR into the library
16758# and all subsequent libraries and executables linked against it.
16759hardcode_automatic=$hardcode_automatic_F77
16760
16761# Variables whose values should be saved in libtool wrapper scripts and
16762# restored at relink time.
16763variables_saved_for_relink="$variables_saved_for_relink"
16764
16765# Whether libtool must link a program against all its dependency libraries.
16766link_all_deplibs=$link_all_deplibs_F77
16767
16768# Compile-time system search path for libraries
16769sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16770
16771# Run-time system search path for libraries
16772sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16773
16774# Fix the shell variable \$srcfile for the compiler.
16775fix_srcfile_path=$lt_fix_srcfile_path
16776
16777# Set to yes if exported symbols are required.
16778always_export_symbols=$always_export_symbols_F77
16779
16780# The commands to list exported symbols.
16781export_symbols_cmds=$lt_export_symbols_cmds_F77
16782
16783# The commands to extract the exported symbol list from a shared archive.
16784extract_expsyms_cmds=$lt_extract_expsyms_cmds
16785
16786# Symbols that should not be listed in the preloaded symbols.
16787exclude_expsyms=$lt_exclude_expsyms_F77
16788
16789# Symbols that must always be exported.
16790include_expsyms=$lt_include_expsyms_F77
16791
16792# ### END LIBTOOL TAG CONFIG: $tagname
16793
16794__EOF__
16795
16796
16797else
16798  # If there is no Makefile yet, we rely on a make rule to execute
16799  # `config.status --recheck' to rerun these tests and create the
16800  # libtool script then.
16801  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16802  if test -f "$ltmain_in"; then
16803    test -f Makefile && make "$ltmain"
16804  fi
16805fi
16806
16807
16808ac_ext=c
16809ac_cpp='$CPP $CPPFLAGS'
16810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16812ac_compiler_gnu=$ac_cv_c_compiler_gnu
16813
16814CC="$lt_save_CC"
16815
16816	else
16817	  tagname=""
16818	fi
16819	;;
16820
16821      GCJ)
16822	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16823
16824
16825# Source file extension for Java test sources.
16826ac_ext=java
16827
16828# Object file extension for compiled Java test sources.
16829objext=o
16830objext_GCJ=$objext
16831
16832# Code to be used in simple compile tests
16833lt_simple_compile_test_code="class foo {}"
16834
16835# Code to be used in simple link tests
16836lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16837
16838# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16839
16840# If no C compiler was specified, use CC.
16841LTCC=${LTCC-"$CC"}
16842
16843# If no C compiler flags were specified, use CFLAGS.
16844LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16845
16846# Allow CC to be a program name with arguments.
16847compiler=$CC
16848
16849
16850# save warnings/boilerplate of simple test code
16851ac_outfile=conftest.$ac_objext
16852echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16853eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16854_lt_compiler_boilerplate=`cat conftest.err`
16855$rm conftest*
16856
16857ac_outfile=conftest.$ac_objext
16858echo "$lt_simple_link_test_code" >conftest.$ac_ext
16859eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16860_lt_linker_boilerplate=`cat conftest.err`
16861$rm -r conftest*
16862
16863
16864# Allow CC to be a program name with arguments.
16865lt_save_CC="$CC"
16866CC=${GCJ-"gcj"}
16867compiler=$CC
16868compiler_GCJ=$CC
16869for cc_temp in $compiler""; do
16870  case $cc_temp in
16871    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16872    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16873    \-*) ;;
16874    *) break;;
16875  esac
16876done
16877cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16878
16879
16880# GCJ did not exist at the time GCC didn't implicitly link libc in.
16881archive_cmds_need_lc_GCJ=no
16882
16883old_archive_cmds_GCJ=$old_archive_cmds
16884
16885
16886lt_prog_compiler_no_builtin_flag_GCJ=
16887
16888if test "$GCC" = yes; then
16889  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16890
16891
16892{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16893$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16894if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16895  $as_echo_n "(cached) " >&6
16896else
16897  lt_cv_prog_compiler_rtti_exceptions=no
16898  ac_outfile=conftest.$ac_objext
16899   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16900   lt_compiler_flag="-fno-rtti -fno-exceptions"
16901   # Insert the option either (1) after the last *FLAGS variable, or
16902   # (2) before a word containing "conftest.", or (3) at the end.
16903   # Note that $ac_compile itself does not contain backslashes and begins
16904   # with a dollar sign (not a hyphen), so the echo should work correctly.
16905   # The option is referenced via a variable to avoid confusing sed.
16906   lt_compile=`echo "$ac_compile" | $SED \
16907   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16908   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16909   -e 's:$: $lt_compiler_flag:'`
16910   (eval echo "\"\$as_me:16910: $lt_compile\"" >&5)
16911   (eval "$lt_compile" 2>conftest.err)
16912   ac_status=$?
16913   cat conftest.err >&5
16914   echo "$as_me:16914: \$? = $ac_status" >&5
16915   if (exit $ac_status) && test -s "$ac_outfile"; then
16916     # The compiler can only warn and ignore the option if not recognized
16917     # So say no if there are warnings other than the usual output.
16918     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16919     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16920     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16921       lt_cv_prog_compiler_rtti_exceptions=yes
16922     fi
16923   fi
16924   $rm conftest*
16925
16926fi
16927{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16928$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16929
16930if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16931    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16932else
16933    :
16934fi
16935
16936fi
16937
16938lt_prog_compiler_wl_GCJ=
16939lt_prog_compiler_pic_GCJ=
16940lt_prog_compiler_static_GCJ=
16941
16942{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16943$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16944
16945  if test "$GCC" = yes; then
16946    lt_prog_compiler_wl_GCJ='-Wl,'
16947    lt_prog_compiler_static_GCJ='-static'
16948
16949    case $host_os in
16950      aix*)
16951      # All AIX code is PIC.
16952      if test "$host_cpu" = ia64; then
16953	# AIX 5 now supports IA64 processor
16954	lt_prog_compiler_static_GCJ='-Bstatic'
16955      fi
16956      ;;
16957
16958    amigaos*)
16959      # FIXME: we need at least 68020 code to build shared libraries, but
16960      # adding the `-m68020' flag to GCC prevents building anything better,
16961      # like `-m68040'.
16962      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16963      ;;
16964
16965    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16966      # PIC is the default for these OSes.
16967      ;;
16968
16969    mingw* | cygwin* | pw32* | os2*)
16970      # This hack is so that the source file can tell whether it is being
16971      # built for inclusion in a dll (and should export symbols for example).
16972      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16973      # (--disable-auto-import) libraries
16974
16975      ;;
16976
16977    darwin* | rhapsody*)
16978      # PIC is the default on this platform
16979      # Common symbols not allowed in MH_DYLIB files
16980      lt_prog_compiler_pic_GCJ='-fno-common'
16981      ;;
16982
16983    interix[3-9]*)
16984      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16985      # Instead, we relocate shared libraries at runtime.
16986      ;;
16987
16988    msdosdjgpp*)
16989      # Just because we use GCC doesn't mean we suddenly get shared libraries
16990      # on systems that don't support them.
16991      lt_prog_compiler_can_build_shared_GCJ=no
16992      enable_shared=no
16993      ;;
16994
16995    sysv4*MP*)
16996      if test -d /usr/nec; then
16997	lt_prog_compiler_pic_GCJ=-Kconform_pic
16998      fi
16999      ;;
17000
17001    hpux*)
17002      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17003      # not for PA HP-UX.
17004      case $host_cpu in
17005      hppa*64*|ia64*)
17006	# +Z the default
17007	;;
17008      *)
17009	lt_prog_compiler_pic_GCJ='-fPIC'
17010	;;
17011      esac
17012      ;;
17013
17014    *)
17015      lt_prog_compiler_pic_GCJ='-fPIC'
17016      ;;
17017    esac
17018  else
17019    # PORTME Check for flag to pass linker flags through the system compiler.
17020    case $host_os in
17021    aix*)
17022      lt_prog_compiler_wl_GCJ='-Wl,'
17023      if test "$host_cpu" = ia64; then
17024	# AIX 5 now supports IA64 processor
17025	lt_prog_compiler_static_GCJ='-Bstatic'
17026      else
17027	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17028      fi
17029      ;;
17030      darwin*)
17031        # PIC is the default on this platform
17032        # Common symbols not allowed in MH_DYLIB files
17033       case $cc_basename in
17034         xlc*)
17035         lt_prog_compiler_pic_GCJ='-qnocommon'
17036         lt_prog_compiler_wl_GCJ='-Wl,'
17037         ;;
17038       esac
17039       ;;
17040
17041    mingw* | cygwin* | pw32* | os2*)
17042      # This hack is so that the source file can tell whether it is being
17043      # built for inclusion in a dll (and should export symbols for example).
17044
17045      ;;
17046
17047    hpux9* | hpux10* | hpux11*)
17048      lt_prog_compiler_wl_GCJ='-Wl,'
17049      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17050      # not for PA HP-UX.
17051      case $host_cpu in
17052      hppa*64*|ia64*)
17053	# +Z the default
17054	;;
17055      *)
17056	lt_prog_compiler_pic_GCJ='+Z'
17057	;;
17058      esac
17059      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17060      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17061      ;;
17062
17063    irix5* | irix6* | nonstopux*)
17064      lt_prog_compiler_wl_GCJ='-Wl,'
17065      # PIC (with -KPIC) is the default.
17066      lt_prog_compiler_static_GCJ='-non_shared'
17067      ;;
17068
17069    newsos6)
17070      lt_prog_compiler_pic_GCJ='-KPIC'
17071      lt_prog_compiler_static_GCJ='-Bstatic'
17072      ;;
17073
17074    linux* | k*bsd*-gnu)
17075      case $cc_basename in
17076      icc* | ecc*)
17077	lt_prog_compiler_wl_GCJ='-Wl,'
17078	lt_prog_compiler_pic_GCJ='-KPIC'
17079	lt_prog_compiler_static_GCJ='-static'
17080        ;;
17081      pgcc* | pgf77* | pgf90* | pgf95*)
17082        # Portland Group compilers (*not* the Pentium gcc compiler,
17083	# which looks to be a dead project)
17084	lt_prog_compiler_wl_GCJ='-Wl,'
17085	lt_prog_compiler_pic_GCJ='-fpic'
17086	lt_prog_compiler_static_GCJ='-Bstatic'
17087        ;;
17088      ccc*)
17089        lt_prog_compiler_wl_GCJ='-Wl,'
17090        # All Alpha code is PIC.
17091        lt_prog_compiler_static_GCJ='-non_shared'
17092        ;;
17093      *)
17094        case `$CC -V 2>&1 | sed 5q` in
17095	*Sun\ C*)
17096	  # Sun C 5.9
17097	  lt_prog_compiler_pic_GCJ='-KPIC'
17098	  lt_prog_compiler_static_GCJ='-Bstatic'
17099	  lt_prog_compiler_wl_GCJ='-Wl,'
17100	  ;;
17101	*Sun\ F*)
17102	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17103	  lt_prog_compiler_pic_GCJ='-KPIC'
17104	  lt_prog_compiler_static_GCJ='-Bstatic'
17105	  lt_prog_compiler_wl_GCJ=''
17106	  ;;
17107	esac
17108	;;
17109      esac
17110      ;;
17111
17112    osf3* | osf4* | osf5*)
17113      lt_prog_compiler_wl_GCJ='-Wl,'
17114      # All OSF/1 code is PIC.
17115      lt_prog_compiler_static_GCJ='-non_shared'
17116      ;;
17117
17118    rdos*)
17119      lt_prog_compiler_static_GCJ='-non_shared'
17120      ;;
17121
17122    solaris*)
17123      lt_prog_compiler_pic_GCJ='-KPIC'
17124      lt_prog_compiler_static_GCJ='-Bstatic'
17125      case $cc_basename in
17126      f77* | f90* | f95*)
17127	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17128      *)
17129	lt_prog_compiler_wl_GCJ='-Wl,';;
17130      esac
17131      ;;
17132
17133    sunos4*)
17134      lt_prog_compiler_wl_GCJ='-Qoption ld '
17135      lt_prog_compiler_pic_GCJ='-PIC'
17136      lt_prog_compiler_static_GCJ='-Bstatic'
17137      ;;
17138
17139    sysv4 | sysv4.2uw2* | sysv4.3*)
17140      lt_prog_compiler_wl_GCJ='-Wl,'
17141      lt_prog_compiler_pic_GCJ='-KPIC'
17142      lt_prog_compiler_static_GCJ='-Bstatic'
17143      ;;
17144
17145    sysv4*MP*)
17146      if test -d /usr/nec ;then
17147	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17148	lt_prog_compiler_static_GCJ='-Bstatic'
17149      fi
17150      ;;
17151
17152    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17153      lt_prog_compiler_wl_GCJ='-Wl,'
17154      lt_prog_compiler_pic_GCJ='-KPIC'
17155      lt_prog_compiler_static_GCJ='-Bstatic'
17156      ;;
17157
17158    unicos*)
17159      lt_prog_compiler_wl_GCJ='-Wl,'
17160      lt_prog_compiler_can_build_shared_GCJ=no
17161      ;;
17162
17163    uts4*)
17164      lt_prog_compiler_pic_GCJ='-pic'
17165      lt_prog_compiler_static_GCJ='-Bstatic'
17166      ;;
17167
17168    *)
17169      lt_prog_compiler_can_build_shared_GCJ=no
17170      ;;
17171    esac
17172  fi
17173
17174{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17175$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17176
17177#
17178# Check to make sure the PIC flag actually works.
17179#
17180if test -n "$lt_prog_compiler_pic_GCJ"; then
17181
17182{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17183$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17184if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17185  $as_echo_n "(cached) " >&6
17186else
17187  lt_cv_prog_compiler_pic_works_GCJ=no
17188  ac_outfile=conftest.$ac_objext
17189   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17190   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17191   # Insert the option either (1) after the last *FLAGS variable, or
17192   # (2) before a word containing "conftest.", or (3) at the end.
17193   # Note that $ac_compile itself does not contain backslashes and begins
17194   # with a dollar sign (not a hyphen), so the echo should work correctly.
17195   # The option is referenced via a variable to avoid confusing sed.
17196   lt_compile=`echo "$ac_compile" | $SED \
17197   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17198   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17199   -e 's:$: $lt_compiler_flag:'`
17200   (eval echo "\"\$as_me:17200: $lt_compile\"" >&5)
17201   (eval "$lt_compile" 2>conftest.err)
17202   ac_status=$?
17203   cat conftest.err >&5
17204   echo "$as_me:17204: \$? = $ac_status" >&5
17205   if (exit $ac_status) && test -s "$ac_outfile"; then
17206     # The compiler can only warn and ignore the option if not recognized
17207     # So say no if there are warnings other than the usual output.
17208     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17209     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17210     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17211       lt_cv_prog_compiler_pic_works_GCJ=yes
17212     fi
17213   fi
17214   $rm conftest*
17215
17216fi
17217{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17218$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17219
17220if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17221    case $lt_prog_compiler_pic_GCJ in
17222     "" | " "*) ;;
17223     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17224     esac
17225else
17226    lt_prog_compiler_pic_GCJ=
17227     lt_prog_compiler_can_build_shared_GCJ=no
17228fi
17229
17230fi
17231case $host_os in
17232  # For platforms which do not support PIC, -DPIC is meaningless:
17233  *djgpp*)
17234    lt_prog_compiler_pic_GCJ=
17235    ;;
17236  *)
17237    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17238    ;;
17239esac
17240
17241#
17242# Check to make sure the static flag actually works.
17243#
17244wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17245{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17246$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17247if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17248  $as_echo_n "(cached) " >&6
17249else
17250  lt_cv_prog_compiler_static_works_GCJ=no
17251   save_LDFLAGS="$LDFLAGS"
17252   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17253   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17254   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17255     # The linker can only warn and ignore the option if not recognized
17256     # So say no if there are warnings
17257     if test -s conftest.err; then
17258       # Append any errors to the config.log.
17259       cat conftest.err 1>&5
17260       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17261       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17262       if diff conftest.exp conftest.er2 >/dev/null; then
17263         lt_cv_prog_compiler_static_works_GCJ=yes
17264       fi
17265     else
17266       lt_cv_prog_compiler_static_works_GCJ=yes
17267     fi
17268   fi
17269   $rm -r conftest*
17270   LDFLAGS="$save_LDFLAGS"
17271
17272fi
17273{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17274$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17275
17276if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17277    :
17278else
17279    lt_prog_compiler_static_GCJ=
17280fi
17281
17282
17283{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17284$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17285if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17286  $as_echo_n "(cached) " >&6
17287else
17288  lt_cv_prog_compiler_c_o_GCJ=no
17289   $rm -r conftest 2>/dev/null
17290   mkdir conftest
17291   cd conftest
17292   mkdir out
17293   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17294
17295   lt_compiler_flag="-o out/conftest2.$ac_objext"
17296   # Insert the option either (1) after the last *FLAGS variable, or
17297   # (2) before a word containing "conftest.", or (3) at the end.
17298   # Note that $ac_compile itself does not contain backslashes and begins
17299   # with a dollar sign (not a hyphen), so the echo should work correctly.
17300   lt_compile=`echo "$ac_compile" | $SED \
17301   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17302   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17303   -e 's:$: $lt_compiler_flag:'`
17304   (eval echo "\"\$as_me:17304: $lt_compile\"" >&5)
17305   (eval "$lt_compile" 2>out/conftest.err)
17306   ac_status=$?
17307   cat out/conftest.err >&5
17308   echo "$as_me:17308: \$? = $ac_status" >&5
17309   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17310   then
17311     # The compiler can only warn and ignore the option if not recognized
17312     # So say no if there are warnings
17313     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17314     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17315     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17316       lt_cv_prog_compiler_c_o_GCJ=yes
17317     fi
17318   fi
17319   chmod u+w . 2>&5
17320   $rm conftest*
17321   # SGI C++ compiler will create directory out/ii_files/ for
17322   # template instantiation
17323   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17324   $rm out/* && rmdir out
17325   cd ..
17326   rmdir conftest
17327   $rm conftest*
17328
17329fi
17330{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17331$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17332
17333
17334hard_links="nottested"
17335if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17336  # do not overwrite the value of need_locks provided by the user
17337  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17338$as_echo_n "checking if we can lock with hard links... " >&6; }
17339  hard_links=yes
17340  $rm conftest*
17341  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17342  touch conftest.a
17343  ln conftest.a conftest.b 2>&5 || hard_links=no
17344  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17345  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17346$as_echo "$hard_links" >&6; }
17347  if test "$hard_links" = no; then
17348    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17349$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17350    need_locks=warn
17351  fi
17352else
17353  need_locks=no
17354fi
17355
17356{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17357$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17358
17359  runpath_var=
17360  allow_undefined_flag_GCJ=
17361  enable_shared_with_static_runtimes_GCJ=no
17362  archive_cmds_GCJ=
17363  archive_expsym_cmds_GCJ=
17364  old_archive_From_new_cmds_GCJ=
17365  old_archive_from_expsyms_cmds_GCJ=
17366  export_dynamic_flag_spec_GCJ=
17367  whole_archive_flag_spec_GCJ=
17368  thread_safe_flag_spec_GCJ=
17369  hardcode_libdir_flag_spec_GCJ=
17370  hardcode_libdir_flag_spec_ld_GCJ=
17371  hardcode_libdir_separator_GCJ=
17372  hardcode_direct_GCJ=no
17373  hardcode_minus_L_GCJ=no
17374  hardcode_shlibpath_var_GCJ=unsupported
17375  link_all_deplibs_GCJ=unknown
17376  hardcode_automatic_GCJ=no
17377  module_cmds_GCJ=
17378  module_expsym_cmds_GCJ=
17379  always_export_symbols_GCJ=no
17380  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17381  # include_expsyms should be a list of space-separated symbols to be *always*
17382  # included in the symbol list
17383  include_expsyms_GCJ=
17384  # exclude_expsyms can be an extended regexp of symbols to exclude
17385  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17386  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17387  # as well as any symbol that contains `d'.
17388  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17389  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17390  # platforms (ab)use it in PIC code, but their linkers get confused if
17391  # the symbol is explicitly referenced.  Since portable code cannot
17392  # rely on this symbol name, it's probably fine to never include it in
17393  # preloaded symbol tables.
17394  # Exclude shared library initialization/finalization symbols.
17395  extract_expsyms_cmds=
17396  # Just being paranoid about ensuring that cc_basename is set.
17397  for cc_temp in $compiler""; do
17398  case $cc_temp in
17399    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17400    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17401    \-*) ;;
17402    *) break;;
17403  esac
17404done
17405cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17406
17407  case $host_os in
17408  cygwin* | mingw* | pw32*)
17409    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17410    # When not using gcc, we currently assume that we are using
17411    # Microsoft Visual C++.
17412    if test "$GCC" != yes; then
17413      with_gnu_ld=no
17414    fi
17415    ;;
17416  interix*)
17417    # we just hope/assume this is gcc and not c89 (= MSVC++)
17418    with_gnu_ld=yes
17419    ;;
17420  openbsd*)
17421    with_gnu_ld=no
17422    ;;
17423  esac
17424
17425  ld_shlibs_GCJ=yes
17426  if test "$with_gnu_ld" = yes; then
17427    # If archive_cmds runs LD, not CC, wlarc should be empty
17428    wlarc='${wl}'
17429
17430    # Set some defaults for GNU ld with shared library support. These
17431    # are reset later if shared libraries are not supported. Putting them
17432    # here allows them to be overridden if necessary.
17433    runpath_var=LD_RUN_PATH
17434    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17435    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17436    # ancient GNU ld didn't support --whole-archive et. al.
17437    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17438	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17439      else
17440  	whole_archive_flag_spec_GCJ=
17441    fi
17442    supports_anon_versioning=no
17443    case `$LD -v 2>/dev/null` in
17444      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17445      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17446      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17447      *\ 2.11.*) ;; # other 2.11 versions
17448      *) supports_anon_versioning=yes ;;
17449    esac
17450
17451    # See if GNU ld supports shared libraries.
17452    case $host_os in
17453    aix[3-9]*)
17454      # On AIX/PPC, the GNU linker is very broken
17455      if test "$host_cpu" != ia64; then
17456	ld_shlibs_GCJ=no
17457	cat <<EOF 1>&2
17458
17459*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17460*** to be unable to reliably create shared libraries on AIX.
17461*** Therefore, libtool is disabling shared libraries support.  If you
17462*** really care for shared libraries, you may want to modify your PATH
17463*** so that a non-GNU linker is found, and then restart.
17464
17465EOF
17466      fi
17467      ;;
17468
17469    amigaos*)
17470      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)'
17471      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17472      hardcode_minus_L_GCJ=yes
17473
17474      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17475      # that the semantics of dynamic libraries on AmigaOS, at least up
17476      # to version 4, is to share data among multiple programs linked
17477      # with the same dynamic library.  Since this doesn't match the
17478      # behavior of shared libraries on other platforms, we can't use
17479      # them.
17480      ld_shlibs_GCJ=no
17481      ;;
17482
17483    beos*)
17484      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17485	allow_undefined_flag_GCJ=unsupported
17486	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17487	# support --undefined.  This deserves some investigation.  FIXME
17488	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17489      else
17490	ld_shlibs_GCJ=no
17491      fi
17492      ;;
17493
17494    cygwin* | mingw* | pw32*)
17495      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17496      # as there is no search path for DLLs.
17497      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17498      allow_undefined_flag_GCJ=unsupported
17499      always_export_symbols_GCJ=no
17500      enable_shared_with_static_runtimes_GCJ=yes
17501      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17502
17503      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17504        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17505	# If the export-symbols file already is a .def file (1st line
17506	# is EXPORTS), use it as is; otherwise, prepend...
17507	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17508	  cp $export_symbols $output_objdir/$soname.def;
17509	else
17510	  echo EXPORTS > $output_objdir/$soname.def;
17511	  cat $export_symbols >> $output_objdir/$soname.def;
17512	fi~
17513	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17514      else
17515	ld_shlibs_GCJ=no
17516      fi
17517      ;;
17518
17519    interix[3-9]*)
17520      hardcode_direct_GCJ=no
17521      hardcode_shlibpath_var_GCJ=no
17522      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17523      export_dynamic_flag_spec_GCJ='${wl}-E'
17524      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17525      # Instead, shared libraries are loaded at an image base (0x10000000 by
17526      # default) and relocated if they conflict, which is a slow very memory
17527      # consuming and fragmenting process.  To avoid this, we pick a random,
17528      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17529      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17530      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'
17531      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'
17532      ;;
17533
17534    gnu* | linux* | k*bsd*-gnu)
17535      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17536	tmp_addflag=
17537	case $cc_basename,$host_cpu in
17538	pgcc*)				# Portland Group C compiler
17539	  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'
17540	  tmp_addflag=' $pic_flag'
17541	  ;;
17542	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17543	  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'
17544	  tmp_addflag=' $pic_flag -Mnomain' ;;
17545	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17546	  tmp_addflag=' -i_dynamic' ;;
17547	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17548	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17549	ifc* | ifort*)			# Intel Fortran compiler
17550	  tmp_addflag=' -nofor_main' ;;
17551	esac
17552	case `$CC -V 2>&1 | sed 5q` in
17553	*Sun\ C*)			# Sun C 5.9
17554	  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'
17555	  tmp_sharedflag='-G' ;;
17556	*Sun\ F*)			# Sun Fortran 8.3
17557	  tmp_sharedflag='-G' ;;
17558	*)
17559	  tmp_sharedflag='-shared' ;;
17560	esac
17561	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17562
17563	if test $supports_anon_versioning = yes; then
17564	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17565  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17566  $echo "local: *; };" >> $output_objdir/$libname.ver~
17567	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17568	fi
17569      else
17570	ld_shlibs_GCJ=no
17571      fi
17572      ;;
17573
17574    netbsd*)
17575      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17576	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17577	wlarc=
17578      else
17579	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17580	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17581      fi
17582      ;;
17583
17584    solaris*)
17585      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17586	ld_shlibs_GCJ=no
17587	cat <<EOF 1>&2
17588
17589*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17590*** create shared libraries on Solaris systems.  Therefore, libtool
17591*** is disabling shared libraries support.  We urge you to upgrade GNU
17592*** binutils to release 2.9.1 or newer.  Another option is to modify
17593*** your PATH or compiler configuration so that the native linker is
17594*** used, and then restart.
17595
17596EOF
17597      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17598	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17599	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17600      else
17601	ld_shlibs_GCJ=no
17602      fi
17603      ;;
17604
17605    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17606      case `$LD -v 2>&1` in
17607        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17608	ld_shlibs_GCJ=no
17609	cat <<_LT_EOF 1>&2
17610
17611*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17612*** reliably create shared libraries on SCO systems.  Therefore, libtool
17613*** is disabling shared libraries support.  We urge you to upgrade GNU
17614*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17615*** your PATH or compiler configuration so that the native linker is
17616*** used, and then restart.
17617
17618_LT_EOF
17619	;;
17620	*)
17621	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17622	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17623	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17624	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17625	  else
17626	    ld_shlibs_GCJ=no
17627	  fi
17628	;;
17629      esac
17630      ;;
17631
17632    sunos4*)
17633      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17634      wlarc=
17635      hardcode_direct_GCJ=yes
17636      hardcode_shlibpath_var_GCJ=no
17637      ;;
17638
17639    *)
17640      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17641	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17642	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17643      else
17644	ld_shlibs_GCJ=no
17645      fi
17646      ;;
17647    esac
17648
17649    if test "$ld_shlibs_GCJ" = no; then
17650      runpath_var=
17651      hardcode_libdir_flag_spec_GCJ=
17652      export_dynamic_flag_spec_GCJ=
17653      whole_archive_flag_spec_GCJ=
17654    fi
17655  else
17656    # PORTME fill in a description of your system's linker (not GNU ld)
17657    case $host_os in
17658    aix3*)
17659      allow_undefined_flag_GCJ=unsupported
17660      always_export_symbols_GCJ=yes
17661      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'
17662      # Note: this linker hardcodes the directories in LIBPATH if there
17663      # are no directories specified by -L.
17664      hardcode_minus_L_GCJ=yes
17665      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17666	# Neither direct hardcoding nor static linking is supported with a
17667	# broken collect2.
17668	hardcode_direct_GCJ=unsupported
17669      fi
17670      ;;
17671
17672    aix[4-9]*)
17673      if test "$host_cpu" = ia64; then
17674	# On IA64, the linker does run time linking by default, so we don't
17675	# have to do anything special.
17676	aix_use_runtimelinking=no
17677	exp_sym_flag='-Bexport'
17678	no_entry_flag=""
17679      else
17680	# If we're using GNU nm, then we don't want the "-C" option.
17681	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17682	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17683	  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'
17684	else
17685	  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'
17686	fi
17687	aix_use_runtimelinking=no
17688
17689	# Test if we are trying to use run time linking or normal
17690	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17691	# need to do runtime linking.
17692	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17693	  for ld_flag in $LDFLAGS; do
17694  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17695  	    aix_use_runtimelinking=yes
17696  	    break
17697  	  fi
17698	  done
17699	  ;;
17700	esac
17701
17702	exp_sym_flag='-bexport'
17703	no_entry_flag='-bnoentry'
17704      fi
17705
17706      # When large executables or shared objects are built, AIX ld can
17707      # have problems creating the table of contents.  If linking a library
17708      # or program results in "error TOC overflow" add -mminimal-toc to
17709      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17710      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17711
17712      archive_cmds_GCJ=''
17713      hardcode_direct_GCJ=yes
17714      hardcode_libdir_separator_GCJ=':'
17715      link_all_deplibs_GCJ=yes
17716
17717      if test "$GCC" = yes; then
17718	case $host_os in aix4.[012]|aix4.[012].*)
17719	# We only want to do this on AIX 4.2 and lower, the check
17720	# below for broken collect2 doesn't work under 4.3+
17721	  collect2name=`${CC} -print-prog-name=collect2`
17722	  if test -f "$collect2name" && \
17723  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17724	  then
17725  	  # We have reworked collect2
17726  	  :
17727	  else
17728  	  # We have old collect2
17729  	  hardcode_direct_GCJ=unsupported
17730  	  # It fails to find uninstalled libraries when the uninstalled
17731  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17732  	  # to unsupported forces relinking
17733  	  hardcode_minus_L_GCJ=yes
17734  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17735  	  hardcode_libdir_separator_GCJ=
17736	  fi
17737	  ;;
17738	esac
17739	shared_flag='-shared'
17740	if test "$aix_use_runtimelinking" = yes; then
17741	  shared_flag="$shared_flag "'${wl}-G'
17742	fi
17743      else
17744	# not using gcc
17745	if test "$host_cpu" = ia64; then
17746  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17747  	# chokes on -Wl,-G. The following line is correct:
17748	  shared_flag='-G'
17749	else
17750	  if test "$aix_use_runtimelinking" = yes; then
17751	    shared_flag='${wl}-G'
17752	  else
17753	    shared_flag='${wl}-bM:SRE'
17754	  fi
17755	fi
17756      fi
17757
17758      # It seems that -bexpall does not export symbols beginning with
17759      # underscore (_), so it is better to generate a list of symbols to export.
17760      always_export_symbols_GCJ=yes
17761      if test "$aix_use_runtimelinking" = yes; then
17762	# Warning - without using the other runtime loading flags (-brtl),
17763	# -berok will link without error, but may produce a broken library.
17764	allow_undefined_flag_GCJ='-berok'
17765       # Determine the default libpath from the value encoded in an empty executable.
17766       cat >conftest.$ac_ext <<_ACEOF
17767/* confdefs.h.  */
17768_ACEOF
17769cat confdefs.h >>conftest.$ac_ext
17770cat >>conftest.$ac_ext <<_ACEOF
17771/* end confdefs.h.  */
17772
17773int
17774main ()
17775{
17776
17777  ;
17778  return 0;
17779}
17780_ACEOF
17781rm -f conftest.$ac_objext conftest$ac_exeext
17782if { (ac_try="$ac_link"
17783case "(($ac_try" in
17784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785  *) ac_try_echo=$ac_try;;
17786esac
17787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17788$as_echo "$ac_try_echo") >&5
17789  (eval "$ac_link") 2>conftest.er1
17790  ac_status=$?
17791  grep -v '^ *+' conftest.er1 >conftest.err
17792  rm -f conftest.er1
17793  cat conftest.err >&5
17794  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795  (exit $ac_status); } && {
17796	 test -z "$ac_c_werror_flag" ||
17797	 test ! -s conftest.err
17798       } && test -s conftest$ac_exeext && {
17799	 test "$cross_compiling" = yes ||
17800	 $as_test_x conftest$ac_exeext
17801       }; then
17802
17803lt_aix_libpath_sed='
17804    /Import File Strings/,/^$/ {
17805	/^0/ {
17806	    s/^0  *\(.*\)$/\1/
17807	    p
17808	}
17809    }'
17810aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17811# Check for a 64-bit object if we didn't find anything.
17812if test -z "$aix_libpath"; then
17813  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17814fi
17815else
17816  $as_echo "$as_me: failed program was:" >&5
17817sed 's/^/| /' conftest.$ac_ext >&5
17818
17819
17820fi
17821
17822rm -rf conftest.dSYM
17823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17824      conftest$ac_exeext conftest.$ac_ext
17825if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17826
17827       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17828	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"
17829       else
17830	if test "$host_cpu" = ia64; then
17831	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17832	  allow_undefined_flag_GCJ="-z nodefs"
17833	  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"
17834	else
17835	 # Determine the default libpath from the value encoded in an empty executable.
17836	 cat >conftest.$ac_ext <<_ACEOF
17837/* confdefs.h.  */
17838_ACEOF
17839cat confdefs.h >>conftest.$ac_ext
17840cat >>conftest.$ac_ext <<_ACEOF
17841/* end confdefs.h.  */
17842
17843int
17844main ()
17845{
17846
17847  ;
17848  return 0;
17849}
17850_ACEOF
17851rm -f conftest.$ac_objext conftest$ac_exeext
17852if { (ac_try="$ac_link"
17853case "(($ac_try" in
17854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17855  *) ac_try_echo=$ac_try;;
17856esac
17857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17858$as_echo "$ac_try_echo") >&5
17859  (eval "$ac_link") 2>conftest.er1
17860  ac_status=$?
17861  grep -v '^ *+' conftest.er1 >conftest.err
17862  rm -f conftest.er1
17863  cat conftest.err >&5
17864  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865  (exit $ac_status); } && {
17866	 test -z "$ac_c_werror_flag" ||
17867	 test ! -s conftest.err
17868       } && test -s conftest$ac_exeext && {
17869	 test "$cross_compiling" = yes ||
17870	 $as_test_x conftest$ac_exeext
17871       }; then
17872
17873lt_aix_libpath_sed='
17874    /Import File Strings/,/^$/ {
17875	/^0/ {
17876	    s/^0  *\(.*\)$/\1/
17877	    p
17878	}
17879    }'
17880aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17881# Check for a 64-bit object if we didn't find anything.
17882if test -z "$aix_libpath"; then
17883  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17884fi
17885else
17886  $as_echo "$as_me: failed program was:" >&5
17887sed 's/^/| /' conftest.$ac_ext >&5
17888
17889
17890fi
17891
17892rm -rf conftest.dSYM
17893rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17894      conftest$ac_exeext conftest.$ac_ext
17895if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17896
17897	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17898	  # Warning - without using the other run time loading flags,
17899	  # -berok will link without error, but may produce a broken library.
17900	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17901	  allow_undefined_flag_GCJ=' ${wl}-berok'
17902	  # Exported symbols can be pulled into shared objects from archives
17903	  whole_archive_flag_spec_GCJ='$convenience'
17904	  archive_cmds_need_lc_GCJ=yes
17905	  # This is similar to how AIX traditionally builds its shared libraries.
17906	  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'
17907	fi
17908      fi
17909      ;;
17910
17911    amigaos*)
17912      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)'
17913      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17914      hardcode_minus_L_GCJ=yes
17915      # see comment about different semantics on the GNU ld section
17916      ld_shlibs_GCJ=no
17917      ;;
17918
17919    bsdi[45]*)
17920      export_dynamic_flag_spec_GCJ=-rdynamic
17921      ;;
17922
17923    cygwin* | mingw* | pw32*)
17924      # When not using gcc, we currently assume that we are using
17925      # Microsoft Visual C++.
17926      # hardcode_libdir_flag_spec is actually meaningless, as there is
17927      # no search path for DLLs.
17928      hardcode_libdir_flag_spec_GCJ=' '
17929      allow_undefined_flag_GCJ=unsupported
17930      # Tell ltmain to make .lib files, not .a files.
17931      libext=lib
17932      # Tell ltmain to make .dll files, not .so files.
17933      shrext_cmds=".dll"
17934      # FIXME: Setting linknames here is a bad hack.
17935      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17936      # The linker will automatically build a .lib file if we build a DLL.
17937      old_archive_From_new_cmds_GCJ='true'
17938      # FIXME: Should let the user specify the lib program.
17939      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17940      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17941      enable_shared_with_static_runtimes_GCJ=yes
17942      ;;
17943
17944    darwin* | rhapsody*)
17945      case $host_os in
17946        rhapsody* | darwin1.[012])
17947         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17948         ;;
17949       *) # Darwin 1.3 on
17950         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17951           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17952         else
17953           case ${MACOSX_DEPLOYMENT_TARGET} in
17954             10.[012])
17955               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17956               ;;
17957             10.*)
17958               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17959               ;;
17960           esac
17961         fi
17962         ;;
17963      esac
17964      archive_cmds_need_lc_GCJ=no
17965      hardcode_direct_GCJ=no
17966      hardcode_automatic_GCJ=yes
17967      hardcode_shlibpath_var_GCJ=unsupported
17968      whole_archive_flag_spec_GCJ=''
17969      link_all_deplibs_GCJ=yes
17970    if test "$GCC" = yes ; then
17971    	output_verbose_link_cmd='echo'
17972        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}"
17973        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17974        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}"
17975        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}"
17976    else
17977      case $cc_basename in
17978        xlc*)
17979         output_verbose_link_cmd='echo'
17980         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17981         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17982          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17983         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}'
17984          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}'
17985          ;;
17986       *)
17987         ld_shlibs_GCJ=no
17988          ;;
17989      esac
17990    fi
17991      ;;
17992
17993    dgux*)
17994      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17995      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17996      hardcode_shlibpath_var_GCJ=no
17997      ;;
17998
17999    freebsd1*)
18000      ld_shlibs_GCJ=no
18001      ;;
18002
18003    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18004    # support.  Future versions do this automatically, but an explicit c++rt0.o
18005    # does not break anything, and helps significantly (at the cost of a little
18006    # extra space).
18007    freebsd2.2*)
18008      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18009      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18010      hardcode_direct_GCJ=yes
18011      hardcode_shlibpath_var_GCJ=no
18012      ;;
18013
18014    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18015    freebsd2*)
18016      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18017      hardcode_direct_GCJ=yes
18018      hardcode_minus_L_GCJ=yes
18019      hardcode_shlibpath_var_GCJ=no
18020      ;;
18021
18022    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18023    freebsd* | dragonfly*)
18024      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18025      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18026      hardcode_direct_GCJ=yes
18027      hardcode_shlibpath_var_GCJ=no
18028      ;;
18029
18030    hpux9*)
18031      if test "$GCC" = yes; then
18032	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'
18033      else
18034	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'
18035      fi
18036      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18037      hardcode_libdir_separator_GCJ=:
18038      hardcode_direct_GCJ=yes
18039
18040      # hardcode_minus_L: Not really in the search PATH,
18041      # but as the default location of the library.
18042      hardcode_minus_L_GCJ=yes
18043      export_dynamic_flag_spec_GCJ='${wl}-E'
18044      ;;
18045
18046    hpux10*)
18047      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18048	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18049      else
18050	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18051      fi
18052      if test "$with_gnu_ld" = no; then
18053	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18054	hardcode_libdir_separator_GCJ=:
18055
18056	hardcode_direct_GCJ=yes
18057	export_dynamic_flag_spec_GCJ='${wl}-E'
18058
18059	# hardcode_minus_L: Not really in the search PATH,
18060	# but as the default location of the library.
18061	hardcode_minus_L_GCJ=yes
18062      fi
18063      ;;
18064
18065    hpux11*)
18066      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18067	case $host_cpu in
18068	hppa*64*)
18069	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18070	  ;;
18071	ia64*)
18072	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18073	  ;;
18074	*)
18075	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18076	  ;;
18077	esac
18078      else
18079	case $host_cpu in
18080	hppa*64*)
18081	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18082	  ;;
18083	ia64*)
18084	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18085	  ;;
18086	*)
18087	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18088	  ;;
18089	esac
18090      fi
18091      if test "$with_gnu_ld" = no; then
18092	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18093	hardcode_libdir_separator_GCJ=:
18094
18095	case $host_cpu in
18096	hppa*64*|ia64*)
18097	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18098	  hardcode_direct_GCJ=no
18099	  hardcode_shlibpath_var_GCJ=no
18100	  ;;
18101	*)
18102	  hardcode_direct_GCJ=yes
18103	  export_dynamic_flag_spec_GCJ='${wl}-E'
18104
18105	  # hardcode_minus_L: Not really in the search PATH,
18106	  # but as the default location of the library.
18107	  hardcode_minus_L_GCJ=yes
18108	  ;;
18109	esac
18110      fi
18111      ;;
18112
18113    irix5* | irix6* | nonstopux*)
18114      if test "$GCC" = yes; then
18115	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'
18116      else
18117	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'
18118	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18119      fi
18120      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18121      hardcode_libdir_separator_GCJ=:
18122      link_all_deplibs_GCJ=yes
18123      ;;
18124
18125    netbsd*)
18126      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18127	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18128      else
18129	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18130      fi
18131      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18132      hardcode_direct_GCJ=yes
18133      hardcode_shlibpath_var_GCJ=no
18134      ;;
18135
18136    newsos6)
18137      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18138      hardcode_direct_GCJ=yes
18139      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18140      hardcode_libdir_separator_GCJ=:
18141      hardcode_shlibpath_var_GCJ=no
18142      ;;
18143
18144    openbsd*)
18145      if test -f /usr/libexec/ld.so; then
18146	hardcode_direct_GCJ=yes
18147	hardcode_shlibpath_var_GCJ=no
18148	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18149	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18150	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18151	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18152	  export_dynamic_flag_spec_GCJ='${wl}-E'
18153	else
18154	  case $host_os in
18155	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18156	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18157	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18158	     ;;
18159	   *)
18160	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18161	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18162	     ;;
18163	  esac
18164        fi
18165      else
18166	ld_shlibs_GCJ=no
18167      fi
18168      ;;
18169
18170    os2*)
18171      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18172      hardcode_minus_L_GCJ=yes
18173      allow_undefined_flag_GCJ=unsupported
18174      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'
18175      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18176      ;;
18177
18178    osf3*)
18179      if test "$GCC" = yes; then
18180	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18181	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'
18182      else
18183	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18184	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'
18185      fi
18186      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18187      hardcode_libdir_separator_GCJ=:
18188      ;;
18189
18190    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18191      if test "$GCC" = yes; then
18192	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18193	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'
18194	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18195      else
18196	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18197	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'
18198	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~
18199	$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'
18200
18201	# Both c and cxx compiler support -rpath directly
18202	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18203      fi
18204      hardcode_libdir_separator_GCJ=:
18205      ;;
18206
18207    solaris*)
18208      no_undefined_flag_GCJ=' -z text'
18209      if test "$GCC" = yes; then
18210	wlarc='${wl}'
18211	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18212	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18213	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18214      else
18215	wlarc=''
18216	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18217	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18218  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18219      fi
18220      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18221      hardcode_shlibpath_var_GCJ=no
18222      case $host_os in
18223      solaris2.[0-5] | solaris2.[0-5].*) ;;
18224      *)
18225	# The compiler driver will combine and reorder linker options,
18226	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18227	# but is careful enough not to reorder.
18228 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18229	if test "$GCC" = yes; then
18230	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18231	else
18232	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18233	fi
18234	;;
18235      esac
18236      link_all_deplibs_GCJ=yes
18237      ;;
18238
18239    sunos4*)
18240      if test "x$host_vendor" = xsequent; then
18241	# Use $CC to link under sequent, because it throws in some extra .o
18242	# files that make .init and .fini sections work.
18243	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18244      else
18245	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18246      fi
18247      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18248      hardcode_direct_GCJ=yes
18249      hardcode_minus_L_GCJ=yes
18250      hardcode_shlibpath_var_GCJ=no
18251      ;;
18252
18253    sysv4)
18254      case $host_vendor in
18255	sni)
18256	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18257	  hardcode_direct_GCJ=yes # is this really true???
18258	;;
18259	siemens)
18260	  ## LD is ld it makes a PLAMLIB
18261	  ## CC just makes a GrossModule.
18262	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18263	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18264	  hardcode_direct_GCJ=no
18265        ;;
18266	motorola)
18267	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18268	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18269	;;
18270      esac
18271      runpath_var='LD_RUN_PATH'
18272      hardcode_shlibpath_var_GCJ=no
18273      ;;
18274
18275    sysv4.3*)
18276      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18277      hardcode_shlibpath_var_GCJ=no
18278      export_dynamic_flag_spec_GCJ='-Bexport'
18279      ;;
18280
18281    sysv4*MP*)
18282      if test -d /usr/nec; then
18283	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18284	hardcode_shlibpath_var_GCJ=no
18285	runpath_var=LD_RUN_PATH
18286	hardcode_runpath_var=yes
18287	ld_shlibs_GCJ=yes
18288      fi
18289      ;;
18290
18291    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18292      no_undefined_flag_GCJ='${wl}-z,text'
18293      archive_cmds_need_lc_GCJ=no
18294      hardcode_shlibpath_var_GCJ=no
18295      runpath_var='LD_RUN_PATH'
18296
18297      if test "$GCC" = yes; then
18298	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18299	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18300      else
18301	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18302	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18303      fi
18304      ;;
18305
18306    sysv5* | sco3.2v5* | sco5v6*)
18307      # Note: We can NOT use -z defs as we might desire, because we do not
18308      # link with -lc, and that would cause any symbols used from libc to
18309      # always be unresolved, which means just about no library would
18310      # ever link correctly.  If we're not using GNU ld we use -z text
18311      # though, which does catch some bad symbols but isn't as heavy-handed
18312      # as -z defs.
18313      no_undefined_flag_GCJ='${wl}-z,text'
18314      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18315      archive_cmds_need_lc_GCJ=no
18316      hardcode_shlibpath_var_GCJ=no
18317      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18318      hardcode_libdir_separator_GCJ=':'
18319      link_all_deplibs_GCJ=yes
18320      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18321      runpath_var='LD_RUN_PATH'
18322
18323      if test "$GCC" = yes; then
18324	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18325	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18326      else
18327	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18328	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18329      fi
18330      ;;
18331
18332    uts4*)
18333      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18334      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18335      hardcode_shlibpath_var_GCJ=no
18336      ;;
18337
18338    *)
18339      ld_shlibs_GCJ=no
18340      ;;
18341    esac
18342  fi
18343
18344{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18345$as_echo "$ld_shlibs_GCJ" >&6; }
18346test "$ld_shlibs_GCJ" = no && can_build_shared=no
18347
18348#
18349# Do we need to explicitly link libc?
18350#
18351case "x$archive_cmds_need_lc_GCJ" in
18352x|xyes)
18353  # Assume -lc should be added
18354  archive_cmds_need_lc_GCJ=yes
18355
18356  if test "$enable_shared" = yes && test "$GCC" = yes; then
18357    case $archive_cmds_GCJ in
18358    *'~'*)
18359      # FIXME: we may have to deal with multi-command sequences.
18360      ;;
18361    '$CC '*)
18362      # Test whether the compiler implicitly links with -lc since on some
18363      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18364      # to ld, don't add -lc before -lgcc.
18365      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18366$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18367      $rm conftest*
18368      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18369
18370      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18371  (eval $ac_compile) 2>&5
18372  ac_status=$?
18373  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374  (exit $ac_status); } 2>conftest.err; then
18375        soname=conftest
18376        lib=conftest
18377        libobjs=conftest.$ac_objext
18378        deplibs=
18379        wl=$lt_prog_compiler_wl_GCJ
18380	pic_flag=$lt_prog_compiler_pic_GCJ
18381        compiler_flags=-v
18382        linker_flags=-v
18383        verstring=
18384        output_objdir=.
18385        libname=conftest
18386        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18387        allow_undefined_flag_GCJ=
18388        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18389  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18390  ac_status=$?
18391  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392  (exit $ac_status); }
18393        then
18394	  archive_cmds_need_lc_GCJ=no
18395        else
18396	  archive_cmds_need_lc_GCJ=yes
18397        fi
18398        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18399      else
18400        cat conftest.err 1>&5
18401      fi
18402      $rm conftest*
18403      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18404$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18405      ;;
18406    esac
18407  fi
18408  ;;
18409esac
18410
18411{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18412$as_echo_n "checking dynamic linker characteristics... " >&6; }
18413library_names_spec=
18414libname_spec='lib$name'
18415soname_spec=
18416shrext_cmds=".so"
18417postinstall_cmds=
18418postuninstall_cmds=
18419finish_cmds=
18420finish_eval=
18421shlibpath_var=
18422shlibpath_overrides_runpath=unknown
18423version_type=none
18424dynamic_linker="$host_os ld.so"
18425sys_lib_dlsearch_path_spec="/lib /usr/lib"
18426
18427need_lib_prefix=unknown
18428hardcode_into_libs=no
18429
18430# when you set need_version to no, make sure it does not cause -set_version
18431# flags to be left without arguments
18432need_version=unknown
18433
18434case $host_os in
18435aix3*)
18436  version_type=linux
18437  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18438  shlibpath_var=LIBPATH
18439
18440  # AIX 3 has no versioning support, so we append a major version to the name.
18441  soname_spec='${libname}${release}${shared_ext}$major'
18442  ;;
18443
18444aix[4-9]*)
18445  version_type=linux
18446  need_lib_prefix=no
18447  need_version=no
18448  hardcode_into_libs=yes
18449  if test "$host_cpu" = ia64; then
18450    # AIX 5 supports IA64
18451    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18452    shlibpath_var=LD_LIBRARY_PATH
18453  else
18454    # With GCC up to 2.95.x, collect2 would create an import file
18455    # for dependence libraries.  The import file would start with
18456    # the line `#! .'.  This would cause the generated library to
18457    # depend on `.', always an invalid library.  This was fixed in
18458    # development snapshots of GCC prior to 3.0.
18459    case $host_os in
18460      aix4 | aix4.[01] | aix4.[01].*)
18461      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18462	   echo ' yes '
18463	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18464	:
18465      else
18466	can_build_shared=no
18467      fi
18468      ;;
18469    esac
18470    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18471    # soname into executable. Probably we can add versioning support to
18472    # collect2, so additional links can be useful in future.
18473    if test "$aix_use_runtimelinking" = yes; then
18474      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18475      # instead of lib<name>.a to let people know that these are not
18476      # typical AIX shared libraries.
18477      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18478    else
18479      # We preserve .a as extension for shared libraries through AIX4.2
18480      # and later when we are not doing run time linking.
18481      library_names_spec='${libname}${release}.a $libname.a'
18482      soname_spec='${libname}${release}${shared_ext}$major'
18483    fi
18484    shlibpath_var=LIBPATH
18485  fi
18486  ;;
18487
18488amigaos*)
18489  library_names_spec='$libname.ixlibrary $libname.a'
18490  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18491  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'
18492  ;;
18493
18494beos*)
18495  library_names_spec='${libname}${shared_ext}'
18496  dynamic_linker="$host_os ld.so"
18497  shlibpath_var=LIBRARY_PATH
18498  ;;
18499
18500bsdi[45]*)
18501  version_type=linux
18502  need_version=no
18503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18504  soname_spec='${libname}${release}${shared_ext}$major'
18505  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18506  shlibpath_var=LD_LIBRARY_PATH
18507  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18508  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18509  # the default ld.so.conf also contains /usr/contrib/lib and
18510  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18511  # libtool to hard-code these into programs
18512  ;;
18513
18514cygwin* | mingw* | pw32*)
18515  version_type=windows
18516  shrext_cmds=".dll"
18517  need_version=no
18518  need_lib_prefix=no
18519
18520  case $GCC,$host_os in
18521  yes,cygwin* | yes,mingw* | yes,pw32*)
18522    library_names_spec='$libname.dll.a'
18523    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18524    postinstall_cmds='base_file=`basename \${file}`~
18525      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18526      dldir=$destdir/`dirname \$dlpath`~
18527      test -d \$dldir || mkdir -p \$dldir~
18528      $install_prog $dir/$dlname \$dldir/$dlname~
18529      chmod a+x \$dldir/$dlname'
18530    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18531      dlpath=$dir/\$dldll~
18532       $rm \$dlpath'
18533    shlibpath_overrides_runpath=yes
18534
18535    case $host_os in
18536    cygwin*)
18537      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18538      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18539      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18540      ;;
18541    mingw*)
18542      # MinGW DLLs use traditional 'lib' prefix
18543      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18544      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18545      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18546        # It is most probably a Windows format PATH printed by
18547        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18548        # path with ; separators, and with drive letters. We can handle the
18549        # drive letters (cygwin fileutils understands them), so leave them,
18550        # especially as we might pass files found there to a mingw objdump,
18551        # which wouldn't understand a cygwinified path. Ahh.
18552        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18553      else
18554        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18555      fi
18556      ;;
18557    pw32*)
18558      # pw32 DLLs use 'pw' prefix rather than 'lib'
18559      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18560      ;;
18561    esac
18562    ;;
18563
18564  *)
18565    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18566    ;;
18567  esac
18568  dynamic_linker='Win32 ld.exe'
18569  # FIXME: first we should search . and the directory the executable is in
18570  shlibpath_var=PATH
18571  ;;
18572
18573darwin* | rhapsody*)
18574  dynamic_linker="$host_os dyld"
18575  version_type=darwin
18576  need_lib_prefix=no
18577  need_version=no
18578  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18579  soname_spec='${libname}${release}${major}$shared_ext'
18580  shlibpath_overrides_runpath=yes
18581  shlibpath_var=DYLD_LIBRARY_PATH
18582  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18583
18584  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18585  ;;
18586
18587dgux*)
18588  version_type=linux
18589  need_lib_prefix=no
18590  need_version=no
18591  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18592  soname_spec='${libname}${release}${shared_ext}$major'
18593  shlibpath_var=LD_LIBRARY_PATH
18594  ;;
18595
18596freebsd1*)
18597  dynamic_linker=no
18598  ;;
18599
18600freebsd* | dragonfly*)
18601  # DragonFly does not have aout.  When/if they implement a new
18602  # versioning mechanism, adjust this.
18603  if test -x /usr/bin/objformat; then
18604    objformat=`/usr/bin/objformat`
18605  else
18606    case $host_os in
18607    freebsd[123]*) objformat=aout ;;
18608    *) objformat=elf ;;
18609    esac
18610  fi
18611  # Handle Gentoo/FreeBSD as it was Linux
18612  case $host_vendor in
18613    gentoo)
18614      version_type=linux ;;
18615    *)
18616      version_type=freebsd-$objformat ;;
18617  esac
18618
18619  case $version_type in
18620    freebsd-elf*)
18621      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18622      need_version=no
18623      need_lib_prefix=no
18624      ;;
18625    freebsd-*)
18626      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18627      need_version=yes
18628      ;;
18629    linux)
18630      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18631      soname_spec='${libname}${release}${shared_ext}$major'
18632      need_lib_prefix=no
18633      need_version=no
18634      ;;
18635  esac
18636  shlibpath_var=LD_LIBRARY_PATH
18637  case $host_os in
18638  freebsd2*)
18639    shlibpath_overrides_runpath=yes
18640    ;;
18641  freebsd3.[01]* | freebsdelf3.[01]*)
18642    shlibpath_overrides_runpath=yes
18643    hardcode_into_libs=yes
18644    ;;
18645  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18646  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18647    shlibpath_overrides_runpath=no
18648    hardcode_into_libs=yes
18649    ;;
18650  *) # from 4.6 on, and DragonFly
18651    shlibpath_overrides_runpath=yes
18652    hardcode_into_libs=yes
18653    ;;
18654  esac
18655  ;;
18656
18657gnu*)
18658  version_type=linux
18659  need_lib_prefix=no
18660  need_version=no
18661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18662  soname_spec='${libname}${release}${shared_ext}$major'
18663  shlibpath_var=LD_LIBRARY_PATH
18664  hardcode_into_libs=yes
18665  ;;
18666
18667hpux9* | hpux10* | hpux11*)
18668  # Give a soname corresponding to the major version so that dld.sl refuses to
18669  # link against other versions.
18670  version_type=sunos
18671  need_lib_prefix=no
18672  need_version=no
18673  case $host_cpu in
18674  ia64*)
18675    shrext_cmds='.so'
18676    hardcode_into_libs=yes
18677    dynamic_linker="$host_os dld.so"
18678    shlibpath_var=LD_LIBRARY_PATH
18679    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18680    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18681    soname_spec='${libname}${release}${shared_ext}$major'
18682    if test "X$HPUX_IA64_MODE" = X32; then
18683      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18684    else
18685      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18686    fi
18687    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18688    ;;
18689   hppa*64*)
18690     shrext_cmds='.sl'
18691     hardcode_into_libs=yes
18692     dynamic_linker="$host_os dld.sl"
18693     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18694     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18695     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18696     soname_spec='${libname}${release}${shared_ext}$major'
18697     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18698     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18699     ;;
18700   *)
18701    shrext_cmds='.sl'
18702    dynamic_linker="$host_os dld.sl"
18703    shlibpath_var=SHLIB_PATH
18704    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18705    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18706    soname_spec='${libname}${release}${shared_ext}$major'
18707    ;;
18708  esac
18709  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18710  postinstall_cmds='chmod 555 $lib'
18711  ;;
18712
18713interix[3-9]*)
18714  version_type=linux
18715  need_lib_prefix=no
18716  need_version=no
18717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18718  soname_spec='${libname}${release}${shared_ext}$major'
18719  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18720  shlibpath_var=LD_LIBRARY_PATH
18721  shlibpath_overrides_runpath=no
18722  hardcode_into_libs=yes
18723  ;;
18724
18725irix5* | irix6* | nonstopux*)
18726  case $host_os in
18727    nonstopux*) version_type=nonstopux ;;
18728    *)
18729	if test "$lt_cv_prog_gnu_ld" = yes; then
18730		version_type=linux
18731	else
18732		version_type=irix
18733	fi ;;
18734  esac
18735  need_lib_prefix=no
18736  need_version=no
18737  soname_spec='${libname}${release}${shared_ext}$major'
18738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18739  case $host_os in
18740  irix5* | nonstopux*)
18741    libsuff= shlibsuff=
18742    ;;
18743  *)
18744    case $LD in # libtool.m4 will add one of these switches to LD
18745    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18746      libsuff= shlibsuff= libmagic=32-bit;;
18747    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18748      libsuff=32 shlibsuff=N32 libmagic=N32;;
18749    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18750      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18751    *) libsuff= shlibsuff= libmagic=never-match;;
18752    esac
18753    ;;
18754  esac
18755  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18756  shlibpath_overrides_runpath=no
18757  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18758  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18759  hardcode_into_libs=yes
18760  ;;
18761
18762# No shared lib support for Linux oldld, aout, or coff.
18763linux*oldld* | linux*aout* | linux*coff*)
18764  dynamic_linker=no
18765  ;;
18766
18767# This must be Linux ELF.
18768linux* | k*bsd*-gnu)
18769  version_type=linux
18770  need_lib_prefix=no
18771  need_version=no
18772  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18773  soname_spec='${libname}${release}${shared_ext}$major'
18774  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18775  shlibpath_var=LD_LIBRARY_PATH
18776  shlibpath_overrides_runpath=no
18777  # This implies no fast_install, which is unacceptable.
18778  # Some rework will be needed to allow for fast_install
18779  # before this can be enabled.
18780  hardcode_into_libs=yes
18781
18782  # Append ld.so.conf contents to the search path
18783  if test -f /etc/ld.so.conf; then
18784    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' ' '`
18785    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18786  fi
18787
18788  # We used to test for /lib/ld.so.1 and disable shared libraries on
18789  # powerpc, because MkLinux only supported shared libraries with the
18790  # GNU dynamic linker.  Since this was broken with cross compilers,
18791  # most powerpc-linux boxes support dynamic linking these days and
18792  # people can always --disable-shared, the test was removed, and we
18793  # assume the GNU/Linux dynamic linker is in use.
18794  dynamic_linker='GNU/Linux ld.so'
18795  ;;
18796
18797netbsd*)
18798  version_type=sunos
18799  need_lib_prefix=no
18800  need_version=no
18801  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18802    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18803    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18804    dynamic_linker='NetBSD (a.out) ld.so'
18805  else
18806    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18807    soname_spec='${libname}${release}${shared_ext}$major'
18808    dynamic_linker='NetBSD ld.elf_so'
18809  fi
18810  shlibpath_var=LD_LIBRARY_PATH
18811  shlibpath_overrides_runpath=yes
18812  hardcode_into_libs=yes
18813  ;;
18814
18815newsos6)
18816  version_type=linux
18817  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18818  shlibpath_var=LD_LIBRARY_PATH
18819  shlibpath_overrides_runpath=yes
18820  ;;
18821
18822nto-qnx*)
18823  version_type=linux
18824  need_lib_prefix=no
18825  need_version=no
18826  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18827  soname_spec='${libname}${release}${shared_ext}$major'
18828  shlibpath_var=LD_LIBRARY_PATH
18829  shlibpath_overrides_runpath=yes
18830  ;;
18831
18832openbsd*)
18833  version_type=sunos
18834  sys_lib_dlsearch_path_spec="/usr/lib"
18835  need_lib_prefix=no
18836  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18837  case $host_os in
18838    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18839    *)                         need_version=no  ;;
18840  esac
18841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18842  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18843  shlibpath_var=LD_LIBRARY_PATH
18844  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18845    case $host_os in
18846      openbsd2.[89] | openbsd2.[89].*)
18847	shlibpath_overrides_runpath=no
18848	;;
18849      *)
18850	shlibpath_overrides_runpath=yes
18851	;;
18852      esac
18853  else
18854    shlibpath_overrides_runpath=yes
18855  fi
18856  ;;
18857
18858os2*)
18859  libname_spec='$name'
18860  shrext_cmds=".dll"
18861  need_lib_prefix=no
18862  library_names_spec='$libname${shared_ext} $libname.a'
18863  dynamic_linker='OS/2 ld.exe'
18864  shlibpath_var=LIBPATH
18865  ;;
18866
18867osf3* | osf4* | osf5*)
18868  version_type=osf
18869  need_lib_prefix=no
18870  need_version=no
18871  soname_spec='${libname}${release}${shared_ext}$major'
18872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18873  shlibpath_var=LD_LIBRARY_PATH
18874  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18875  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18876  ;;
18877
18878rdos*)
18879  dynamic_linker=no
18880  ;;
18881
18882solaris*)
18883  version_type=linux
18884  need_lib_prefix=no
18885  need_version=no
18886  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18887  soname_spec='${libname}${release}${shared_ext}$major'
18888  shlibpath_var=LD_LIBRARY_PATH
18889  shlibpath_overrides_runpath=yes
18890  hardcode_into_libs=yes
18891  # ldd complains unless libraries are executable
18892  postinstall_cmds='chmod +x $lib'
18893  ;;
18894
18895sunos4*)
18896  version_type=sunos
18897  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18898  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18899  shlibpath_var=LD_LIBRARY_PATH
18900  shlibpath_overrides_runpath=yes
18901  if test "$with_gnu_ld" = yes; then
18902    need_lib_prefix=no
18903  fi
18904  need_version=yes
18905  ;;
18906
18907sysv4 | sysv4.3*)
18908  version_type=linux
18909  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18910  soname_spec='${libname}${release}${shared_ext}$major'
18911  shlibpath_var=LD_LIBRARY_PATH
18912  case $host_vendor in
18913    sni)
18914      shlibpath_overrides_runpath=no
18915      need_lib_prefix=no
18916      export_dynamic_flag_spec='${wl}-Blargedynsym'
18917      runpath_var=LD_RUN_PATH
18918      ;;
18919    siemens)
18920      need_lib_prefix=no
18921      ;;
18922    motorola)
18923      need_lib_prefix=no
18924      need_version=no
18925      shlibpath_overrides_runpath=no
18926      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18927      ;;
18928  esac
18929  ;;
18930
18931sysv4*MP*)
18932  if test -d /usr/nec ;then
18933    version_type=linux
18934    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18935    soname_spec='$libname${shared_ext}.$major'
18936    shlibpath_var=LD_LIBRARY_PATH
18937  fi
18938  ;;
18939
18940sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18941  version_type=freebsd-elf
18942  need_lib_prefix=no
18943  need_version=no
18944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18945  soname_spec='${libname}${release}${shared_ext}$major'
18946  shlibpath_var=LD_LIBRARY_PATH
18947  hardcode_into_libs=yes
18948  if test "$with_gnu_ld" = yes; then
18949    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18950    shlibpath_overrides_runpath=no
18951  else
18952    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18953    shlibpath_overrides_runpath=yes
18954    case $host_os in
18955      sco3.2v5*)
18956        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18957	;;
18958    esac
18959  fi
18960  sys_lib_dlsearch_path_spec='/usr/lib'
18961  ;;
18962
18963uts4*)
18964  version_type=linux
18965  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18966  soname_spec='${libname}${release}${shared_ext}$major'
18967  shlibpath_var=LD_LIBRARY_PATH
18968  ;;
18969
18970*)
18971  dynamic_linker=no
18972  ;;
18973esac
18974{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18975$as_echo "$dynamic_linker" >&6; }
18976test "$dynamic_linker" = no && can_build_shared=no
18977
18978if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18979  $as_echo_n "(cached) " >&6
18980else
18981  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18982fi
18983
18984sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18985if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18986  $as_echo_n "(cached) " >&6
18987else
18988  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18989fi
18990
18991sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18992
18993variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18994if test "$GCC" = yes; then
18995  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18996fi
18997
18998{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18999$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19000hardcode_action_GCJ=
19001if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19002   test -n "$runpath_var_GCJ" || \
19003   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19004
19005  # We can hardcode non-existant directories.
19006  if test "$hardcode_direct_GCJ" != no &&
19007     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19008     # have to relink, otherwise we might link with an installed library
19009     # when we should be linking with a yet-to-be-installed one
19010     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19011     test "$hardcode_minus_L_GCJ" != no; then
19012    # Linking always hardcodes the temporary library directory.
19013    hardcode_action_GCJ=relink
19014  else
19015    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19016    hardcode_action_GCJ=immediate
19017  fi
19018else
19019  # We cannot hardcode anything, or else we can only hardcode existing
19020  # directories.
19021  hardcode_action_GCJ=unsupported
19022fi
19023{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19024$as_echo "$hardcode_action_GCJ" >&6; }
19025
19026if test "$hardcode_action_GCJ" = relink; then
19027  # Fast installation is not supported
19028  enable_fast_install=no
19029elif test "$shlibpath_overrides_runpath" = yes ||
19030     test "$enable_shared" = no; then
19031  # Fast installation is not necessary
19032  enable_fast_install=needless
19033fi
19034
19035
19036# The else clause should only fire when bootstrapping the
19037# libtool distribution, otherwise you forgot to ship ltmain.sh
19038# with your package, and you will get complaints that there are
19039# no rules to generate ltmain.sh.
19040if test -f "$ltmain"; then
19041  # See if we are running on zsh, and set the options which allow our commands through
19042  # without removal of \ escapes.
19043  if test -n "${ZSH_VERSION+set}" ; then
19044    setopt NO_GLOB_SUBST
19045  fi
19046  # Now quote all the things that may contain metacharacters while being
19047  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19048  # variables and quote the copies for generation of the libtool script.
19049  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19050    SED SHELL STRIP \
19051    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19052    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19053    deplibs_check_method reload_flag reload_cmds need_locks \
19054    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19055    lt_cv_sys_global_symbol_to_c_name_address \
19056    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19057    old_postinstall_cmds old_postuninstall_cmds \
19058    compiler_GCJ \
19059    CC_GCJ \
19060    LD_GCJ \
19061    lt_prog_compiler_wl_GCJ \
19062    lt_prog_compiler_pic_GCJ \
19063    lt_prog_compiler_static_GCJ \
19064    lt_prog_compiler_no_builtin_flag_GCJ \
19065    export_dynamic_flag_spec_GCJ \
19066    thread_safe_flag_spec_GCJ \
19067    whole_archive_flag_spec_GCJ \
19068    enable_shared_with_static_runtimes_GCJ \
19069    old_archive_cmds_GCJ \
19070    old_archive_from_new_cmds_GCJ \
19071    predep_objects_GCJ \
19072    postdep_objects_GCJ \
19073    predeps_GCJ \
19074    postdeps_GCJ \
19075    compiler_lib_search_path_GCJ \
19076    compiler_lib_search_dirs_GCJ \
19077    archive_cmds_GCJ \
19078    archive_expsym_cmds_GCJ \
19079    postinstall_cmds_GCJ \
19080    postuninstall_cmds_GCJ \
19081    old_archive_from_expsyms_cmds_GCJ \
19082    allow_undefined_flag_GCJ \
19083    no_undefined_flag_GCJ \
19084    export_symbols_cmds_GCJ \
19085    hardcode_libdir_flag_spec_GCJ \
19086    hardcode_libdir_flag_spec_ld_GCJ \
19087    hardcode_libdir_separator_GCJ \
19088    hardcode_automatic_GCJ \
19089    module_cmds_GCJ \
19090    module_expsym_cmds_GCJ \
19091    lt_cv_prog_compiler_c_o_GCJ \
19092    fix_srcfile_path_GCJ \
19093    exclude_expsyms_GCJ \
19094    include_expsyms_GCJ; do
19095
19096    case $var in
19097    old_archive_cmds_GCJ | \
19098    old_archive_from_new_cmds_GCJ | \
19099    archive_cmds_GCJ | \
19100    archive_expsym_cmds_GCJ | \
19101    module_cmds_GCJ | \
19102    module_expsym_cmds_GCJ | \
19103    old_archive_from_expsyms_cmds_GCJ | \
19104    export_symbols_cmds_GCJ | \
19105    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19106    postinstall_cmds | postuninstall_cmds | \
19107    old_postinstall_cmds | old_postuninstall_cmds | \
19108    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19109      # Double-quote double-evaled strings.
19110      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19111      ;;
19112    *)
19113      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19114      ;;
19115    esac
19116  done
19117
19118  case $lt_echo in
19119  *'\$0 --fallback-echo"')
19120    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19121    ;;
19122  esac
19123
19124cfgfile="$ofile"
19125
19126  cat <<__EOF__ >> "$cfgfile"
19127# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19128
19129# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19130
19131# Shell to use when invoking shell scripts.
19132SHELL=$lt_SHELL
19133
19134# Whether or not to build shared libraries.
19135build_libtool_libs=$enable_shared
19136
19137# Whether or not to build static libraries.
19138build_old_libs=$enable_static
19139
19140# Whether or not to add -lc for building shared libraries.
19141build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19142
19143# Whether or not to disallow shared libs when runtime libs are static
19144allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19145
19146# Whether or not to optimize for fast installation.
19147fast_install=$enable_fast_install
19148
19149# The host system.
19150host_alias=$host_alias
19151host=$host
19152host_os=$host_os
19153
19154# The build system.
19155build_alias=$build_alias
19156build=$build
19157build_os=$build_os
19158
19159# An echo program that does not interpret backslashes.
19160echo=$lt_echo
19161
19162# The archiver.
19163AR=$lt_AR
19164AR_FLAGS=$lt_AR_FLAGS
19165
19166# A C compiler.
19167LTCC=$lt_LTCC
19168
19169# LTCC compiler flags.
19170LTCFLAGS=$lt_LTCFLAGS
19171
19172# A language-specific compiler.
19173CC=$lt_compiler_GCJ
19174
19175# Is the compiler the GNU C compiler?
19176with_gcc=$GCC_GCJ
19177
19178# An ERE matcher.
19179EGREP=$lt_EGREP
19180
19181# The linker used to build libraries.
19182LD=$lt_LD_GCJ
19183
19184# Whether we need hard or soft links.
19185LN_S=$lt_LN_S
19186
19187# A BSD-compatible nm program.
19188NM=$lt_NM
19189
19190# A symbol stripping program
19191STRIP=$lt_STRIP
19192
19193# Used to examine libraries when file_magic_cmd begins "file"
19194MAGIC_CMD=$MAGIC_CMD
19195
19196# Used on cygwin: DLL creation program.
19197DLLTOOL="$DLLTOOL"
19198
19199# Used on cygwin: object dumper.
19200OBJDUMP="$OBJDUMP"
19201
19202# Used on cygwin: assembler.
19203AS="$AS"
19204
19205# The name of the directory that contains temporary libtool files.
19206objdir=$objdir
19207
19208# How to create reloadable object files.
19209reload_flag=$lt_reload_flag
19210reload_cmds=$lt_reload_cmds
19211
19212# How to pass a linker flag through the compiler.
19213wl=$lt_lt_prog_compiler_wl_GCJ
19214
19215# Object file suffix (normally "o").
19216objext="$ac_objext"
19217
19218# Old archive suffix (normally "a").
19219libext="$libext"
19220
19221# Shared library suffix (normally ".so").
19222shrext_cmds='$shrext_cmds'
19223
19224# Executable file suffix (normally "").
19225exeext="$exeext"
19226
19227# Additional compiler flags for building library objects.
19228pic_flag=$lt_lt_prog_compiler_pic_GCJ
19229pic_mode=$pic_mode
19230
19231# What is the maximum length of a command?
19232max_cmd_len=$lt_cv_sys_max_cmd_len
19233
19234# Does compiler simultaneously support -c and -o options?
19235compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19236
19237# Must we lock files when doing compilation?
19238need_locks=$lt_need_locks
19239
19240# Do we need the lib prefix for modules?
19241need_lib_prefix=$need_lib_prefix
19242
19243# Do we need a version for libraries?
19244need_version=$need_version
19245
19246# Whether dlopen is supported.
19247dlopen_support=$enable_dlopen
19248
19249# Whether dlopen of programs is supported.
19250dlopen_self=$enable_dlopen_self
19251
19252# Whether dlopen of statically linked programs is supported.
19253dlopen_self_static=$enable_dlopen_self_static
19254
19255# Compiler flag to prevent dynamic linking.
19256link_static_flag=$lt_lt_prog_compiler_static_GCJ
19257
19258# Compiler flag to turn off builtin functions.
19259no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19260
19261# Compiler flag to allow reflexive dlopens.
19262export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19263
19264# Compiler flag to generate shared objects directly from archives.
19265whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19266
19267# Compiler flag to generate thread-safe objects.
19268thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19269
19270# Library versioning type.
19271version_type=$version_type
19272
19273# Format of library name prefix.
19274libname_spec=$lt_libname_spec
19275
19276# List of archive names.  First name is the real one, the rest are links.
19277# The last name is the one that the linker finds with -lNAME.
19278library_names_spec=$lt_library_names_spec
19279
19280# The coded name of the library, if different from the real name.
19281soname_spec=$lt_soname_spec
19282
19283# Commands used to build and install an old-style archive.
19284RANLIB=$lt_RANLIB
19285old_archive_cmds=$lt_old_archive_cmds_GCJ
19286old_postinstall_cmds=$lt_old_postinstall_cmds
19287old_postuninstall_cmds=$lt_old_postuninstall_cmds
19288
19289# Create an old-style archive from a shared archive.
19290old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19291
19292# Create a temporary old-style archive to link instead of a shared archive.
19293old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19294
19295# Commands used to build and install a shared archive.
19296archive_cmds=$lt_archive_cmds_GCJ
19297archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19298postinstall_cmds=$lt_postinstall_cmds
19299postuninstall_cmds=$lt_postuninstall_cmds
19300
19301# Commands used to build a loadable module (assumed same as above if empty)
19302module_cmds=$lt_module_cmds_GCJ
19303module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19304
19305# Commands to strip libraries.
19306old_striplib=$lt_old_striplib
19307striplib=$lt_striplib
19308
19309# Dependencies to place before the objects being linked to create a
19310# shared library.
19311predep_objects=$lt_predep_objects_GCJ
19312
19313# Dependencies to place after the objects being linked to create a
19314# shared library.
19315postdep_objects=$lt_postdep_objects_GCJ
19316
19317# Dependencies to place before the objects being linked to create a
19318# shared library.
19319predeps=$lt_predeps_GCJ
19320
19321# Dependencies to place after the objects being linked to create a
19322# shared library.
19323postdeps=$lt_postdeps_GCJ
19324
19325# The directories searched by this compiler when creating a shared
19326# library
19327compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19328
19329# The library search path used internally by the compiler when linking
19330# a shared library.
19331compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19332
19333# Method to check whether dependent libraries are shared objects.
19334deplibs_check_method=$lt_deplibs_check_method
19335
19336# Command to use when deplibs_check_method == file_magic.
19337file_magic_cmd=$lt_file_magic_cmd
19338
19339# Flag that allows shared libraries with undefined symbols to be built.
19340allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19341
19342# Flag that forces no undefined symbols.
19343no_undefined_flag=$lt_no_undefined_flag_GCJ
19344
19345# Commands used to finish a libtool library installation in a directory.
19346finish_cmds=$lt_finish_cmds
19347
19348# Same as above, but a single script fragment to be evaled but not shown.
19349finish_eval=$lt_finish_eval
19350
19351# Take the output of nm and produce a listing of raw symbols and C names.
19352global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19353
19354# Transform the output of nm in a proper C declaration
19355global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19356
19357# Transform the output of nm in a C name address pair
19358global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19359
19360# This is the shared library runtime path variable.
19361runpath_var=$runpath_var
19362
19363# This is the shared library path variable.
19364shlibpath_var=$shlibpath_var
19365
19366# Is shlibpath searched before the hard-coded library search path?
19367shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19368
19369# How to hardcode a shared library path into an executable.
19370hardcode_action=$hardcode_action_GCJ
19371
19372# Whether we should hardcode library paths into libraries.
19373hardcode_into_libs=$hardcode_into_libs
19374
19375# Flag to hardcode \$libdir into a binary during linking.
19376# This must work even if \$libdir does not exist.
19377hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19378
19379# If ld is used when linking, flag to hardcode \$libdir into
19380# a binary during linking. This must work even if \$libdir does
19381# not exist.
19382hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19383
19384# Whether we need a single -rpath flag with a separated argument.
19385hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19386
19387# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19388# resulting binary.
19389hardcode_direct=$hardcode_direct_GCJ
19390
19391# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19392# resulting binary.
19393hardcode_minus_L=$hardcode_minus_L_GCJ
19394
19395# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19396# the resulting binary.
19397hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19398
19399# Set to yes if building a shared library automatically hardcodes DIR into the library
19400# and all subsequent libraries and executables linked against it.
19401hardcode_automatic=$hardcode_automatic_GCJ
19402
19403# Variables whose values should be saved in libtool wrapper scripts and
19404# restored at relink time.
19405variables_saved_for_relink="$variables_saved_for_relink"
19406
19407# Whether libtool must link a program against all its dependency libraries.
19408link_all_deplibs=$link_all_deplibs_GCJ
19409
19410# Compile-time system search path for libraries
19411sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19412
19413# Run-time system search path for libraries
19414sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19415
19416# Fix the shell variable \$srcfile for the compiler.
19417fix_srcfile_path=$lt_fix_srcfile_path
19418
19419# Set to yes if exported symbols are required.
19420always_export_symbols=$always_export_symbols_GCJ
19421
19422# The commands to list exported symbols.
19423export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19424
19425# The commands to extract the exported symbol list from a shared archive.
19426extract_expsyms_cmds=$lt_extract_expsyms_cmds
19427
19428# Symbols that should not be listed in the preloaded symbols.
19429exclude_expsyms=$lt_exclude_expsyms_GCJ
19430
19431# Symbols that must always be exported.
19432include_expsyms=$lt_include_expsyms_GCJ
19433
19434# ### END LIBTOOL TAG CONFIG: $tagname
19435
19436__EOF__
19437
19438
19439else
19440  # If there is no Makefile yet, we rely on a make rule to execute
19441  # `config.status --recheck' to rerun these tests and create the
19442  # libtool script then.
19443  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19444  if test -f "$ltmain_in"; then
19445    test -f Makefile && make "$ltmain"
19446  fi
19447fi
19448
19449
19450ac_ext=c
19451ac_cpp='$CPP $CPPFLAGS'
19452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19454ac_compiler_gnu=$ac_cv_c_compiler_gnu
19455
19456CC="$lt_save_CC"
19457
19458	else
19459	  tagname=""
19460	fi
19461	;;
19462
19463      RC)
19464
19465
19466# Source file extension for RC test sources.
19467ac_ext=rc
19468
19469# Object file extension for compiled RC test sources.
19470objext=o
19471objext_RC=$objext
19472
19473# Code to be used in simple compile tests
19474lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19475
19476# Code to be used in simple link tests
19477lt_simple_link_test_code="$lt_simple_compile_test_code"
19478
19479# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19480
19481# If no C compiler was specified, use CC.
19482LTCC=${LTCC-"$CC"}
19483
19484# If no C compiler flags were specified, use CFLAGS.
19485LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19486
19487# Allow CC to be a program name with arguments.
19488compiler=$CC
19489
19490
19491# save warnings/boilerplate of simple test code
19492ac_outfile=conftest.$ac_objext
19493echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19494eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19495_lt_compiler_boilerplate=`cat conftest.err`
19496$rm conftest*
19497
19498ac_outfile=conftest.$ac_objext
19499echo "$lt_simple_link_test_code" >conftest.$ac_ext
19500eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19501_lt_linker_boilerplate=`cat conftest.err`
19502$rm -r conftest*
19503
19504
19505# Allow CC to be a program name with arguments.
19506lt_save_CC="$CC"
19507CC=${RC-"windres"}
19508compiler=$CC
19509compiler_RC=$CC
19510for cc_temp in $compiler""; do
19511  case $cc_temp in
19512    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19513    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19514    \-*) ;;
19515    *) break;;
19516  esac
19517done
19518cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19519
19520lt_cv_prog_compiler_c_o_RC=yes
19521
19522# The else clause should only fire when bootstrapping the
19523# libtool distribution, otherwise you forgot to ship ltmain.sh
19524# with your package, and you will get complaints that there are
19525# no rules to generate ltmain.sh.
19526if test -f "$ltmain"; then
19527  # See if we are running on zsh, and set the options which allow our commands through
19528  # without removal of \ escapes.
19529  if test -n "${ZSH_VERSION+set}" ; then
19530    setopt NO_GLOB_SUBST
19531  fi
19532  # Now quote all the things that may contain metacharacters while being
19533  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19534  # variables and quote the copies for generation of the libtool script.
19535  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19536    SED SHELL STRIP \
19537    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19538    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19539    deplibs_check_method reload_flag reload_cmds need_locks \
19540    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19541    lt_cv_sys_global_symbol_to_c_name_address \
19542    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19543    old_postinstall_cmds old_postuninstall_cmds \
19544    compiler_RC \
19545    CC_RC \
19546    LD_RC \
19547    lt_prog_compiler_wl_RC \
19548    lt_prog_compiler_pic_RC \
19549    lt_prog_compiler_static_RC \
19550    lt_prog_compiler_no_builtin_flag_RC \
19551    export_dynamic_flag_spec_RC \
19552    thread_safe_flag_spec_RC \
19553    whole_archive_flag_spec_RC \
19554    enable_shared_with_static_runtimes_RC \
19555    old_archive_cmds_RC \
19556    old_archive_from_new_cmds_RC \
19557    predep_objects_RC \
19558    postdep_objects_RC \
19559    predeps_RC \
19560    postdeps_RC \
19561    compiler_lib_search_path_RC \
19562    compiler_lib_search_dirs_RC \
19563    archive_cmds_RC \
19564    archive_expsym_cmds_RC \
19565    postinstall_cmds_RC \
19566    postuninstall_cmds_RC \
19567    old_archive_from_expsyms_cmds_RC \
19568    allow_undefined_flag_RC \
19569    no_undefined_flag_RC \
19570    export_symbols_cmds_RC \
19571    hardcode_libdir_flag_spec_RC \
19572    hardcode_libdir_flag_spec_ld_RC \
19573    hardcode_libdir_separator_RC \
19574    hardcode_automatic_RC \
19575    module_cmds_RC \
19576    module_expsym_cmds_RC \
19577    lt_cv_prog_compiler_c_o_RC \
19578    fix_srcfile_path_RC \
19579    exclude_expsyms_RC \
19580    include_expsyms_RC; do
19581
19582    case $var in
19583    old_archive_cmds_RC | \
19584    old_archive_from_new_cmds_RC | \
19585    archive_cmds_RC | \
19586    archive_expsym_cmds_RC | \
19587    module_cmds_RC | \
19588    module_expsym_cmds_RC | \
19589    old_archive_from_expsyms_cmds_RC | \
19590    export_symbols_cmds_RC | \
19591    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19592    postinstall_cmds | postuninstall_cmds | \
19593    old_postinstall_cmds | old_postuninstall_cmds | \
19594    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19595      # Double-quote double-evaled strings.
19596      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19597      ;;
19598    *)
19599      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19600      ;;
19601    esac
19602  done
19603
19604  case $lt_echo in
19605  *'\$0 --fallback-echo"')
19606    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19607    ;;
19608  esac
19609
19610cfgfile="$ofile"
19611
19612  cat <<__EOF__ >> "$cfgfile"
19613# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19614
19615# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19616
19617# Shell to use when invoking shell scripts.
19618SHELL=$lt_SHELL
19619
19620# Whether or not to build shared libraries.
19621build_libtool_libs=$enable_shared
19622
19623# Whether or not to build static libraries.
19624build_old_libs=$enable_static
19625
19626# Whether or not to add -lc for building shared libraries.
19627build_libtool_need_lc=$archive_cmds_need_lc_RC
19628
19629# Whether or not to disallow shared libs when runtime libs are static
19630allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19631
19632# Whether or not to optimize for fast installation.
19633fast_install=$enable_fast_install
19634
19635# The host system.
19636host_alias=$host_alias
19637host=$host
19638host_os=$host_os
19639
19640# The build system.
19641build_alias=$build_alias
19642build=$build
19643build_os=$build_os
19644
19645# An echo program that does not interpret backslashes.
19646echo=$lt_echo
19647
19648# The archiver.
19649AR=$lt_AR
19650AR_FLAGS=$lt_AR_FLAGS
19651
19652# A C compiler.
19653LTCC=$lt_LTCC
19654
19655# LTCC compiler flags.
19656LTCFLAGS=$lt_LTCFLAGS
19657
19658# A language-specific compiler.
19659CC=$lt_compiler_RC
19660
19661# Is the compiler the GNU C compiler?
19662with_gcc=$GCC_RC
19663
19664# An ERE matcher.
19665EGREP=$lt_EGREP
19666
19667# The linker used to build libraries.
19668LD=$lt_LD_RC
19669
19670# Whether we need hard or soft links.
19671LN_S=$lt_LN_S
19672
19673# A BSD-compatible nm program.
19674NM=$lt_NM
19675
19676# A symbol stripping program
19677STRIP=$lt_STRIP
19678
19679# Used to examine libraries when file_magic_cmd begins "file"
19680MAGIC_CMD=$MAGIC_CMD
19681
19682# Used on cygwin: DLL creation program.
19683DLLTOOL="$DLLTOOL"
19684
19685# Used on cygwin: object dumper.
19686OBJDUMP="$OBJDUMP"
19687
19688# Used on cygwin: assembler.
19689AS="$AS"
19690
19691# The name of the directory that contains temporary libtool files.
19692objdir=$objdir
19693
19694# How to create reloadable object files.
19695reload_flag=$lt_reload_flag
19696reload_cmds=$lt_reload_cmds
19697
19698# How to pass a linker flag through the compiler.
19699wl=$lt_lt_prog_compiler_wl_RC
19700
19701# Object file suffix (normally "o").
19702objext="$ac_objext"
19703
19704# Old archive suffix (normally "a").
19705libext="$libext"
19706
19707# Shared library suffix (normally ".so").
19708shrext_cmds='$shrext_cmds'
19709
19710# Executable file suffix (normally "").
19711exeext="$exeext"
19712
19713# Additional compiler flags for building library objects.
19714pic_flag=$lt_lt_prog_compiler_pic_RC
19715pic_mode=$pic_mode
19716
19717# What is the maximum length of a command?
19718max_cmd_len=$lt_cv_sys_max_cmd_len
19719
19720# Does compiler simultaneously support -c and -o options?
19721compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19722
19723# Must we lock files when doing compilation?
19724need_locks=$lt_need_locks
19725
19726# Do we need the lib prefix for modules?
19727need_lib_prefix=$need_lib_prefix
19728
19729# Do we need a version for libraries?
19730need_version=$need_version
19731
19732# Whether dlopen is supported.
19733dlopen_support=$enable_dlopen
19734
19735# Whether dlopen of programs is supported.
19736dlopen_self=$enable_dlopen_self
19737
19738# Whether dlopen of statically linked programs is supported.
19739dlopen_self_static=$enable_dlopen_self_static
19740
19741# Compiler flag to prevent dynamic linking.
19742link_static_flag=$lt_lt_prog_compiler_static_RC
19743
19744# Compiler flag to turn off builtin functions.
19745no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19746
19747# Compiler flag to allow reflexive dlopens.
19748export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19749
19750# Compiler flag to generate shared objects directly from archives.
19751whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19752
19753# Compiler flag to generate thread-safe objects.
19754thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19755
19756# Library versioning type.
19757version_type=$version_type
19758
19759# Format of library name prefix.
19760libname_spec=$lt_libname_spec
19761
19762# List of archive names.  First name is the real one, the rest are links.
19763# The last name is the one that the linker finds with -lNAME.
19764library_names_spec=$lt_library_names_spec
19765
19766# The coded name of the library, if different from the real name.
19767soname_spec=$lt_soname_spec
19768
19769# Commands used to build and install an old-style archive.
19770RANLIB=$lt_RANLIB
19771old_archive_cmds=$lt_old_archive_cmds_RC
19772old_postinstall_cmds=$lt_old_postinstall_cmds
19773old_postuninstall_cmds=$lt_old_postuninstall_cmds
19774
19775# Create an old-style archive from a shared archive.
19776old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19777
19778# Create a temporary old-style archive to link instead of a shared archive.
19779old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19780
19781# Commands used to build and install a shared archive.
19782archive_cmds=$lt_archive_cmds_RC
19783archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19784postinstall_cmds=$lt_postinstall_cmds
19785postuninstall_cmds=$lt_postuninstall_cmds
19786
19787# Commands used to build a loadable module (assumed same as above if empty)
19788module_cmds=$lt_module_cmds_RC
19789module_expsym_cmds=$lt_module_expsym_cmds_RC
19790
19791# Commands to strip libraries.
19792old_striplib=$lt_old_striplib
19793striplib=$lt_striplib
19794
19795# Dependencies to place before the objects being linked to create a
19796# shared library.
19797predep_objects=$lt_predep_objects_RC
19798
19799# Dependencies to place after the objects being linked to create a
19800# shared library.
19801postdep_objects=$lt_postdep_objects_RC
19802
19803# Dependencies to place before the objects being linked to create a
19804# shared library.
19805predeps=$lt_predeps_RC
19806
19807# Dependencies to place after the objects being linked to create a
19808# shared library.
19809postdeps=$lt_postdeps_RC
19810
19811# The directories searched by this compiler when creating a shared
19812# library
19813compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19814
19815# The library search path used internally by the compiler when linking
19816# a shared library.
19817compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19818
19819# Method to check whether dependent libraries are shared objects.
19820deplibs_check_method=$lt_deplibs_check_method
19821
19822# Command to use when deplibs_check_method == file_magic.
19823file_magic_cmd=$lt_file_magic_cmd
19824
19825# Flag that allows shared libraries with undefined symbols to be built.
19826allow_undefined_flag=$lt_allow_undefined_flag_RC
19827
19828# Flag that forces no undefined symbols.
19829no_undefined_flag=$lt_no_undefined_flag_RC
19830
19831# Commands used to finish a libtool library installation in a directory.
19832finish_cmds=$lt_finish_cmds
19833
19834# Same as above, but a single script fragment to be evaled but not shown.
19835finish_eval=$lt_finish_eval
19836
19837# Take the output of nm and produce a listing of raw symbols and C names.
19838global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19839
19840# Transform the output of nm in a proper C declaration
19841global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19842
19843# Transform the output of nm in a C name address pair
19844global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19845
19846# This is the shared library runtime path variable.
19847runpath_var=$runpath_var
19848
19849# This is the shared library path variable.
19850shlibpath_var=$shlibpath_var
19851
19852# Is shlibpath searched before the hard-coded library search path?
19853shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19854
19855# How to hardcode a shared library path into an executable.
19856hardcode_action=$hardcode_action_RC
19857
19858# Whether we should hardcode library paths into libraries.
19859hardcode_into_libs=$hardcode_into_libs
19860
19861# Flag to hardcode \$libdir into a binary during linking.
19862# This must work even if \$libdir does not exist.
19863hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19864
19865# If ld is used when linking, flag to hardcode \$libdir into
19866# a binary during linking. This must work even if \$libdir does
19867# not exist.
19868hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19869
19870# Whether we need a single -rpath flag with a separated argument.
19871hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19872
19873# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19874# resulting binary.
19875hardcode_direct=$hardcode_direct_RC
19876
19877# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19878# resulting binary.
19879hardcode_minus_L=$hardcode_minus_L_RC
19880
19881# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19882# the resulting binary.
19883hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19884
19885# Set to yes if building a shared library automatically hardcodes DIR into the library
19886# and all subsequent libraries and executables linked against it.
19887hardcode_automatic=$hardcode_automatic_RC
19888
19889# Variables whose values should be saved in libtool wrapper scripts and
19890# restored at relink time.
19891variables_saved_for_relink="$variables_saved_for_relink"
19892
19893# Whether libtool must link a program against all its dependency libraries.
19894link_all_deplibs=$link_all_deplibs_RC
19895
19896# Compile-time system search path for libraries
19897sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19898
19899# Run-time system search path for libraries
19900sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19901
19902# Fix the shell variable \$srcfile for the compiler.
19903fix_srcfile_path=$lt_fix_srcfile_path
19904
19905# Set to yes if exported symbols are required.
19906always_export_symbols=$always_export_symbols_RC
19907
19908# The commands to list exported symbols.
19909export_symbols_cmds=$lt_export_symbols_cmds_RC
19910
19911# The commands to extract the exported symbol list from a shared archive.
19912extract_expsyms_cmds=$lt_extract_expsyms_cmds
19913
19914# Symbols that should not be listed in the preloaded symbols.
19915exclude_expsyms=$lt_exclude_expsyms_RC
19916
19917# Symbols that must always be exported.
19918include_expsyms=$lt_include_expsyms_RC
19919
19920# ### END LIBTOOL TAG CONFIG: $tagname
19921
19922__EOF__
19923
19924
19925else
19926  # If there is no Makefile yet, we rely on a make rule to execute
19927  # `config.status --recheck' to rerun these tests and create the
19928  # libtool script then.
19929  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19930  if test -f "$ltmain_in"; then
19931    test -f Makefile && make "$ltmain"
19932  fi
19933fi
19934
19935
19936ac_ext=c
19937ac_cpp='$CPP $CPPFLAGS'
19938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19940ac_compiler_gnu=$ac_cv_c_compiler_gnu
19941
19942CC="$lt_save_CC"
19943
19944	;;
19945
19946      *)
19947	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19948$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19949   { (exit 1); exit 1; }; }
19950	;;
19951      esac
19952
19953      # Append the new tag name to the list of available tags.
19954      if test -n "$tagname" ; then
19955      available_tags="$available_tags $tagname"
19956    fi
19957    fi
19958  done
19959  IFS="$lt_save_ifs"
19960
19961  # Now substitute the updated list of available tags.
19962  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19963    mv "${ofile}T" "$ofile"
19964    chmod +x "$ofile"
19965  else
19966    rm -f "${ofile}T"
19967    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19968$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19969   { (exit 1); exit 1; }; }
19970  fi
19971fi
19972
19973
19974
19975# This can be used to rebuild libtool when needed
19976LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19977
19978# Always use our own libtool.
19979LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19980
19981# Prevent multiple expansion
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20005	if test -n "$ac_tool_prefix"; then
20006  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20007set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20008{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20009$as_echo_n "checking for $ac_word... " >&6; }
20010if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20011  $as_echo_n "(cached) " >&6
20012else
20013  case $PKG_CONFIG in
20014  [\\/]* | ?:[\\/]*)
20015  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20016  ;;
20017  *)
20018  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20019for as_dir in $PATH
20020do
20021  IFS=$as_save_IFS
20022  test -z "$as_dir" && as_dir=.
20023  for ac_exec_ext in '' $ac_executable_extensions; do
20024  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20025    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20026    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20027    break 2
20028  fi
20029done
20030done
20031IFS=$as_save_IFS
20032
20033  ;;
20034esac
20035fi
20036PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20037if test -n "$PKG_CONFIG"; then
20038  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20039$as_echo "$PKG_CONFIG" >&6; }
20040else
20041  { $as_echo "$as_me:$LINENO: result: no" >&5
20042$as_echo "no" >&6; }
20043fi
20044
20045
20046fi
20047if test -z "$ac_cv_path_PKG_CONFIG"; then
20048  ac_pt_PKG_CONFIG=$PKG_CONFIG
20049  # Extract the first word of "pkg-config", so it can be a program name with args.
20050set dummy pkg-config; ac_word=$2
20051{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20052$as_echo_n "checking for $ac_word... " >&6; }
20053if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20054  $as_echo_n "(cached) " >&6
20055else
20056  case $ac_pt_PKG_CONFIG in
20057  [\\/]* | ?:[\\/]*)
20058  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20059  ;;
20060  *)
20061  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20062for as_dir in $PATH
20063do
20064  IFS=$as_save_IFS
20065  test -z "$as_dir" && as_dir=.
20066  for ac_exec_ext in '' $ac_executable_extensions; do
20067  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20068    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20069    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20070    break 2
20071  fi
20072done
20073done
20074IFS=$as_save_IFS
20075
20076  ;;
20077esac
20078fi
20079ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20080if test -n "$ac_pt_PKG_CONFIG"; then
20081  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20082$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20083else
20084  { $as_echo "$as_me:$LINENO: result: no" >&5
20085$as_echo "no" >&6; }
20086fi
20087
20088  if test "x$ac_pt_PKG_CONFIG" = x; then
20089    PKG_CONFIG=""
20090  else
20091    case $cross_compiling:$ac_tool_warned in
20092yes:)
20093{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20095ac_tool_warned=yes ;;
20096esac
20097    PKG_CONFIG=$ac_pt_PKG_CONFIG
20098  fi
20099else
20100  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20101fi
20102
20103fi
20104if test -n "$PKG_CONFIG"; then
20105	_pkg_min_version=0.9.0
20106	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20107$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20108	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20109		{ $as_echo "$as_me:$LINENO: result: yes" >&5
20110$as_echo "yes" >&6; }
20111	else
20112		{ $as_echo "$as_me:$LINENO: result: no" >&5
20113$as_echo "no" >&6; }
20114		PKG_CONFIG=""
20115	fi
20116
20117fi
20118
20119# Checks for libraries.
20120if test -n "$PKG_CONFIG" && \
20121    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sndfile\"") >&5
20122  ($PKG_CONFIG --exists --print-errors "sndfile") 2>&5
20123  ac_status=$?
20124  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125  (exit $ac_status); }; then
20126  :
20127else
20128
20129    { { $as_echo "$as_me:$LINENO: error: Please install libsndfile." >&5
20130$as_echo "$as_me: error: Please install libsndfile." >&2;}
20131   { (exit 1); exit 1; }; }
20132
20133fi
20134
20135# Checks for header files.
20136
20137
20138
20139for ac_header in fcntl.h malloc.h string.h
20140do
20141as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20143  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20144$as_echo_n "checking for $ac_header... " >&6; }
20145if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20146  $as_echo_n "(cached) " >&6
20147fi
20148ac_res=`eval 'as_val=${'$as_ac_Header'}
20149		 $as_echo "$as_val"'`
20150	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20151$as_echo "$ac_res" >&6; }
20152else
20153  # Is the header compilable?
20154{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20155$as_echo_n "checking $ac_header usability... " >&6; }
20156cat >conftest.$ac_ext <<_ACEOF
20157/* confdefs.h.  */
20158_ACEOF
20159cat confdefs.h >>conftest.$ac_ext
20160cat >>conftest.$ac_ext <<_ACEOF
20161/* end confdefs.h.  */
20162$ac_includes_default
20163#include <$ac_header>
20164_ACEOF
20165rm -f conftest.$ac_objext
20166if { (ac_try="$ac_compile"
20167case "(($ac_try" in
20168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169  *) ac_try_echo=$ac_try;;
20170esac
20171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20172$as_echo "$ac_try_echo") >&5
20173  (eval "$ac_compile") 2>conftest.er1
20174  ac_status=$?
20175  grep -v '^ *+' conftest.er1 >conftest.err
20176  rm -f conftest.er1
20177  cat conftest.err >&5
20178  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179  (exit $ac_status); } && {
20180	 test -z "$ac_c_werror_flag" ||
20181	 test ! -s conftest.err
20182       } && test -s conftest.$ac_objext; then
20183  ac_header_compiler=yes
20184else
20185  $as_echo "$as_me: failed program was:" >&5
20186sed 's/^/| /' conftest.$ac_ext >&5
20187
20188	ac_header_compiler=no
20189fi
20190
20191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20192{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20193$as_echo "$ac_header_compiler" >&6; }
20194
20195# Is the header present?
20196{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20197$as_echo_n "checking $ac_header presence... " >&6; }
20198cat >conftest.$ac_ext <<_ACEOF
20199/* confdefs.h.  */
20200_ACEOF
20201cat confdefs.h >>conftest.$ac_ext
20202cat >>conftest.$ac_ext <<_ACEOF
20203/* end confdefs.h.  */
20204#include <$ac_header>
20205_ACEOF
20206if { (ac_try="$ac_cpp conftest.$ac_ext"
20207case "(($ac_try" in
20208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209  *) ac_try_echo=$ac_try;;
20210esac
20211eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20212$as_echo "$ac_try_echo") >&5
20213  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20214  ac_status=$?
20215  grep -v '^ *+' conftest.er1 >conftest.err
20216  rm -f conftest.er1
20217  cat conftest.err >&5
20218  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219  (exit $ac_status); } >/dev/null && {
20220	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20221	 test ! -s conftest.err
20222       }; then
20223  ac_header_preproc=yes
20224else
20225  $as_echo "$as_me: failed program was:" >&5
20226sed 's/^/| /' conftest.$ac_ext >&5
20227
20228  ac_header_preproc=no
20229fi
20230
20231rm -f conftest.err conftest.$ac_ext
20232{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20233$as_echo "$ac_header_preproc" >&6; }
20234
20235# So?  What about this header?
20236case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20237  yes:no: )
20238    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20239$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20240    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20241$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20242    ac_header_preproc=yes
20243    ;;
20244  no:yes:* )
20245    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20246$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20247    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20248$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20249    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20250$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20251    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20252$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20253    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20254$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20255    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20256$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20257    ( cat <<\_ASBOX
20258## ---------------------------------------------------- ##
20259## Report this to boris_mikhaylov@users.sourceforge.net ##
20260## ---------------------------------------------------- ##
20261_ASBOX
20262     ) | sed "s/^/$as_me: WARNING:     /" >&2
20263    ;;
20264esac
20265{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20266$as_echo_n "checking for $ac_header... " >&6; }
20267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20268  $as_echo_n "(cached) " >&6
20269else
20270  eval "$as_ac_Header=\$ac_header_preproc"
20271fi
20272ac_res=`eval 'as_val=${'$as_ac_Header'}
20273		 $as_echo "$as_val"'`
20274	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20275$as_echo "$ac_res" >&6; }
20276
20277fi
20278as_val=`eval 'as_val=${'$as_ac_Header'}
20279		 $as_echo "$as_val"'`
20280   if test "x$as_val" = x""yes; then
20281  cat >>confdefs.h <<_ACEOF
20282#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20283_ACEOF
20284
20285fi
20286
20287done
20288
20289
20290# Checks for typedefs, structures, and compiler characteristics.
20291{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
20292$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20293if test "${ac_cv_header_stdbool_h+set}" = set; then
20294  $as_echo_n "(cached) " >&6
20295else
20296  cat >conftest.$ac_ext <<_ACEOF
20297/* confdefs.h.  */
20298_ACEOF
20299cat confdefs.h >>conftest.$ac_ext
20300cat >>conftest.$ac_ext <<_ACEOF
20301/* end confdefs.h.  */
20302
20303#include <stdbool.h>
20304#ifndef bool
20305 "error: bool is not defined"
20306#endif
20307#ifndef false
20308 "error: false is not defined"
20309#endif
20310#if false
20311 "error: false is not 0"
20312#endif
20313#ifndef true
20314 "error: true is not defined"
20315#endif
20316#if true != 1
20317 "error: true is not 1"
20318#endif
20319#ifndef __bool_true_false_are_defined
20320 "error: __bool_true_false_are_defined is not defined"
20321#endif
20322
20323	struct s { _Bool s: 1; _Bool t; } s;
20324
20325	char a[true == 1 ? 1 : -1];
20326	char b[false == 0 ? 1 : -1];
20327	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20328	char d[(bool) 0.5 == true ? 1 : -1];
20329	bool e = &s;
20330	char f[(_Bool) 0.0 == false ? 1 : -1];
20331	char g[true];
20332	char h[sizeof (_Bool)];
20333	char i[sizeof s.t];
20334	enum { j = false, k = true, l = false * true, m = true * 256 };
20335	/* The following fails for
20336	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20337	_Bool n[m];
20338	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20339	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20340#	if defined __xlc__ || defined __GNUC__
20341	 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20342	    reported by James Lemley on 2005-10-05; see
20343	    http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20344	    This test is not quite right, since xlc is allowed to
20345	    reject this program, as the initializer for xlcbug is
20346	    not one of the forms that C requires support for.
20347	    However, doing the test right would require a runtime
20348	    test, and that would make cross-compilation harder.
20349	    Let us hope that IBM fixes the xlc bug, and also adds
20350	    support for this kind of constant expression.  In the
20351	    meantime, this test will reject xlc, which is OK, since
20352	    our stdbool.h substitute should suffice.  We also test
20353	    this with GCC, where it should work, to detect more
20354	    quickly whether someone messes up the test in the
20355	    future.  */
20356	 char digs[] = "0123456789";
20357	 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20358#	endif
20359	/* Catch a bug in an HP-UX C compiler.  See
20360	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20361	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20362	 */
20363	_Bool q = true;
20364	_Bool *pq = &q;
20365
20366int
20367main ()
20368{
20369
20370	*pq |= q;
20371	*pq |= ! q;
20372	/* Refer to every declared value, to avoid compiler optimizations.  */
20373	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20374		+ !m + !n + !o + !p + !q + !pq);
20375
20376  ;
20377  return 0;
20378}
20379_ACEOF
20380rm -f conftest.$ac_objext
20381if { (ac_try="$ac_compile"
20382case "(($ac_try" in
20383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384  *) ac_try_echo=$ac_try;;
20385esac
20386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20387$as_echo "$ac_try_echo") >&5
20388  (eval "$ac_compile") 2>conftest.er1
20389  ac_status=$?
20390  grep -v '^ *+' conftest.er1 >conftest.err
20391  rm -f conftest.er1
20392  cat conftest.err >&5
20393  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394  (exit $ac_status); } && {
20395	 test -z "$ac_c_werror_flag" ||
20396	 test ! -s conftest.err
20397       } && test -s conftest.$ac_objext; then
20398  ac_cv_header_stdbool_h=yes
20399else
20400  $as_echo "$as_me: failed program was:" >&5
20401sed 's/^/| /' conftest.$ac_ext >&5
20402
20403	ac_cv_header_stdbool_h=no
20404fi
20405
20406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20407fi
20408{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
20409$as_echo "$ac_cv_header_stdbool_h" >&6; }
20410{ $as_echo "$as_me:$LINENO: checking for _Bool" >&5
20411$as_echo_n "checking for _Bool... " >&6; }
20412if test "${ac_cv_type__Bool+set}" = set; then
20413  $as_echo_n "(cached) " >&6
20414else
20415  ac_cv_type__Bool=no
20416cat >conftest.$ac_ext <<_ACEOF
20417/* confdefs.h.  */
20418_ACEOF
20419cat confdefs.h >>conftest.$ac_ext
20420cat >>conftest.$ac_ext <<_ACEOF
20421/* end confdefs.h.  */
20422$ac_includes_default
20423int
20424main ()
20425{
20426if (sizeof (_Bool))
20427       return 0;
20428  ;
20429  return 0;
20430}
20431_ACEOF
20432rm -f conftest.$ac_objext
20433if { (ac_try="$ac_compile"
20434case "(($ac_try" in
20435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436  *) ac_try_echo=$ac_try;;
20437esac
20438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20439$as_echo "$ac_try_echo") >&5
20440  (eval "$ac_compile") 2>conftest.er1
20441  ac_status=$?
20442  grep -v '^ *+' conftest.er1 >conftest.err
20443  rm -f conftest.er1
20444  cat conftest.err >&5
20445  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446  (exit $ac_status); } && {
20447	 test -z "$ac_c_werror_flag" ||
20448	 test ! -s conftest.err
20449       } && test -s conftest.$ac_objext; then
20450  cat >conftest.$ac_ext <<_ACEOF
20451/* confdefs.h.  */
20452_ACEOF
20453cat confdefs.h >>conftest.$ac_ext
20454cat >>conftest.$ac_ext <<_ACEOF
20455/* end confdefs.h.  */
20456$ac_includes_default
20457int
20458main ()
20459{
20460if (sizeof ((_Bool)))
20461	  return 0;
20462  ;
20463  return 0;
20464}
20465_ACEOF
20466rm -f conftest.$ac_objext
20467if { (ac_try="$ac_compile"
20468case "(($ac_try" in
20469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470  *) ac_try_echo=$ac_try;;
20471esac
20472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20473$as_echo "$ac_try_echo") >&5
20474  (eval "$ac_compile") 2>conftest.er1
20475  ac_status=$?
20476  grep -v '^ *+' conftest.er1 >conftest.err
20477  rm -f conftest.er1
20478  cat conftest.err >&5
20479  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480  (exit $ac_status); } && {
20481	 test -z "$ac_c_werror_flag" ||
20482	 test ! -s conftest.err
20483       } && test -s conftest.$ac_objext; then
20484  :
20485else
20486  $as_echo "$as_me: failed program was:" >&5
20487sed 's/^/| /' conftest.$ac_ext >&5
20488
20489	ac_cv_type__Bool=yes
20490fi
20491
20492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20493else
20494  $as_echo "$as_me: failed program was:" >&5
20495sed 's/^/| /' conftest.$ac_ext >&5
20496
20497
20498fi
20499
20500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20501fi
20502{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
20503$as_echo "$ac_cv_type__Bool" >&6; }
20504if test "x$ac_cv_type__Bool" = x""yes; then
20505
20506cat >>confdefs.h <<_ACEOF
20507#define HAVE__BOOL 1
20508_ACEOF
20509
20510
20511fi
20512
20513if test $ac_cv_header_stdbool_h = yes; then
20514
20515cat >>confdefs.h <<\_ACEOF
20516#define HAVE_STDBOOL_H 1
20517_ACEOF
20518
20519fi
20520
20521{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
20522$as_echo_n "checking for size_t... " >&6; }
20523if test "${ac_cv_type_size_t+set}" = set; then
20524  $as_echo_n "(cached) " >&6
20525else
20526  ac_cv_type_size_t=no
20527cat >conftest.$ac_ext <<_ACEOF
20528/* confdefs.h.  */
20529_ACEOF
20530cat confdefs.h >>conftest.$ac_ext
20531cat >>conftest.$ac_ext <<_ACEOF
20532/* end confdefs.h.  */
20533$ac_includes_default
20534int
20535main ()
20536{
20537if (sizeof (size_t))
20538       return 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20550$as_echo "$ac_try_echo") >&5
20551  (eval "$ac_compile") 2>conftest.er1
20552  ac_status=$?
20553  grep -v '^ *+' conftest.er1 >conftest.err
20554  rm -f conftest.er1
20555  cat conftest.err >&5
20556  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557  (exit $ac_status); } && {
20558	 test -z "$ac_c_werror_flag" ||
20559	 test ! -s conftest.err
20560       } && test -s conftest.$ac_objext; then
20561  cat >conftest.$ac_ext <<_ACEOF
20562/* confdefs.h.  */
20563_ACEOF
20564cat confdefs.h >>conftest.$ac_ext
20565cat >>conftest.$ac_ext <<_ACEOF
20566/* end confdefs.h.  */
20567$ac_includes_default
20568int
20569main ()
20570{
20571if (sizeof ((size_t)))
20572	  return 0;
20573  ;
20574  return 0;
20575}
20576_ACEOF
20577rm -f conftest.$ac_objext
20578if { (ac_try="$ac_compile"
20579case "(($ac_try" in
20580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581  *) ac_try_echo=$ac_try;;
20582esac
20583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20584$as_echo "$ac_try_echo") >&5
20585  (eval "$ac_compile") 2>conftest.er1
20586  ac_status=$?
20587  grep -v '^ *+' conftest.er1 >conftest.err
20588  rm -f conftest.er1
20589  cat conftest.err >&5
20590  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591  (exit $ac_status); } && {
20592	 test -z "$ac_c_werror_flag" ||
20593	 test ! -s conftest.err
20594       } && test -s conftest.$ac_objext; then
20595  :
20596else
20597  $as_echo "$as_me: failed program was:" >&5
20598sed 's/^/| /' conftest.$ac_ext >&5
20599
20600	ac_cv_type_size_t=yes
20601fi
20602
20603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20604else
20605  $as_echo "$as_me: failed program was:" >&5
20606sed 's/^/| /' conftest.$ac_ext >&5
20607
20608
20609fi
20610
20611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20612fi
20613{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20614$as_echo "$ac_cv_type_size_t" >&6; }
20615if test "x$ac_cv_type_size_t" = x""yes; then
20616  :
20617else
20618
20619cat >>confdefs.h <<_ACEOF
20620#define size_t unsigned int
20621_ACEOF
20622
20623fi
20624
20625
20626# Checks for library functions.
20627
20628for ac_header in stdlib.h
20629do
20630as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20632  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20633$as_echo_n "checking for $ac_header... " >&6; }
20634if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20635  $as_echo_n "(cached) " >&6
20636fi
20637ac_res=`eval 'as_val=${'$as_ac_Header'}
20638		 $as_echo "$as_val"'`
20639	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20640$as_echo "$ac_res" >&6; }
20641else
20642  # Is the header compilable?
20643{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20644$as_echo_n "checking $ac_header usability... " >&6; }
20645cat >conftest.$ac_ext <<_ACEOF
20646/* confdefs.h.  */
20647_ACEOF
20648cat confdefs.h >>conftest.$ac_ext
20649cat >>conftest.$ac_ext <<_ACEOF
20650/* end confdefs.h.  */
20651$ac_includes_default
20652#include <$ac_header>
20653_ACEOF
20654rm -f conftest.$ac_objext
20655if { (ac_try="$ac_compile"
20656case "(($ac_try" in
20657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658  *) ac_try_echo=$ac_try;;
20659esac
20660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20661$as_echo "$ac_try_echo") >&5
20662  (eval "$ac_compile") 2>conftest.er1
20663  ac_status=$?
20664  grep -v '^ *+' conftest.er1 >conftest.err
20665  rm -f conftest.er1
20666  cat conftest.err >&5
20667  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668  (exit $ac_status); } && {
20669	 test -z "$ac_c_werror_flag" ||
20670	 test ! -s conftest.err
20671       } && test -s conftest.$ac_objext; then
20672  ac_header_compiler=yes
20673else
20674  $as_echo "$as_me: failed program was:" >&5
20675sed 's/^/| /' conftest.$ac_ext >&5
20676
20677	ac_header_compiler=no
20678fi
20679
20680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20681{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20682$as_echo "$ac_header_compiler" >&6; }
20683
20684# Is the header present?
20685{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20686$as_echo_n "checking $ac_header presence... " >&6; }
20687cat >conftest.$ac_ext <<_ACEOF
20688/* confdefs.h.  */
20689_ACEOF
20690cat confdefs.h >>conftest.$ac_ext
20691cat >>conftest.$ac_ext <<_ACEOF
20692/* end confdefs.h.  */
20693#include <$ac_header>
20694_ACEOF
20695if { (ac_try="$ac_cpp conftest.$ac_ext"
20696case "(($ac_try" in
20697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20698  *) ac_try_echo=$ac_try;;
20699esac
20700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20701$as_echo "$ac_try_echo") >&5
20702  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20703  ac_status=$?
20704  grep -v '^ *+' conftest.er1 >conftest.err
20705  rm -f conftest.er1
20706  cat conftest.err >&5
20707  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708  (exit $ac_status); } >/dev/null && {
20709	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20710	 test ! -s conftest.err
20711       }; then
20712  ac_header_preproc=yes
20713else
20714  $as_echo "$as_me: failed program was:" >&5
20715sed 's/^/| /' conftest.$ac_ext >&5
20716
20717  ac_header_preproc=no
20718fi
20719
20720rm -f conftest.err conftest.$ac_ext
20721{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20722$as_echo "$ac_header_preproc" >&6; }
20723
20724# So?  What about this header?
20725case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20726  yes:no: )
20727    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20728$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20729    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20730$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20731    ac_header_preproc=yes
20732    ;;
20733  no:yes:* )
20734    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20735$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20736    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20737$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20738    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20739$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20740    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20741$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20742    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20743$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20744    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20745$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20746    ( cat <<\_ASBOX
20747## ---------------------------------------------------- ##
20748## Report this to boris_mikhaylov@users.sourceforge.net ##
20749## ---------------------------------------------------- ##
20750_ASBOX
20751     ) | sed "s/^/$as_me: WARNING:     /" >&2
20752    ;;
20753esac
20754{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20755$as_echo_n "checking for $ac_header... " >&6; }
20756if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20757  $as_echo_n "(cached) " >&6
20758else
20759  eval "$as_ac_Header=\$ac_header_preproc"
20760fi
20761ac_res=`eval 'as_val=${'$as_ac_Header'}
20762		 $as_echo "$as_val"'`
20763	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20764$as_echo "$ac_res" >&6; }
20765
20766fi
20767as_val=`eval 'as_val=${'$as_ac_Header'}
20768		 $as_echo "$as_val"'`
20769   if test "x$as_val" = x""yes; then
20770  cat >>confdefs.h <<_ACEOF
20771#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20772_ACEOF
20773
20774fi
20775
20776done
20777
20778{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
20779$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
20780if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
20781  $as_echo_n "(cached) " >&6
20782else
20783  if test "$cross_compiling" = yes; then
20784  ac_cv_func_malloc_0_nonnull=no
20785else
20786  cat >conftest.$ac_ext <<_ACEOF
20787/* confdefs.h.  */
20788_ACEOF
20789cat confdefs.h >>conftest.$ac_ext
20790cat >>conftest.$ac_ext <<_ACEOF
20791/* end confdefs.h.  */
20792#if defined STDC_HEADERS || defined HAVE_STDLIB_H
20793# include <stdlib.h>
20794#else
20795char *malloc ();
20796#endif
20797
20798int
20799main ()
20800{
20801return ! malloc (0);
20802  ;
20803  return 0;
20804}
20805_ACEOF
20806rm -f conftest$ac_exeext
20807if { (ac_try="$ac_link"
20808case "(($ac_try" in
20809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20810  *) ac_try_echo=$ac_try;;
20811esac
20812eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20813$as_echo "$ac_try_echo") >&5
20814  (eval "$ac_link") 2>&5
20815  ac_status=$?
20816  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20818  { (case "(($ac_try" in
20819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820  *) ac_try_echo=$ac_try;;
20821esac
20822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20823$as_echo "$ac_try_echo") >&5
20824  (eval "$ac_try") 2>&5
20825  ac_status=$?
20826  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827  (exit $ac_status); }; }; then
20828  ac_cv_func_malloc_0_nonnull=yes
20829else
20830  $as_echo "$as_me: program exited with status $ac_status" >&5
20831$as_echo "$as_me: failed program was:" >&5
20832sed 's/^/| /' conftest.$ac_ext >&5
20833
20834( exit $ac_status )
20835ac_cv_func_malloc_0_nonnull=no
20836fi
20837rm -rf conftest.dSYM
20838rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20839fi
20840
20841
20842fi
20843{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
20844$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
20845if test $ac_cv_func_malloc_0_nonnull = yes; then
20846
20847cat >>confdefs.h <<\_ACEOF
20848#define HAVE_MALLOC 1
20849_ACEOF
20850
20851else
20852  cat >>confdefs.h <<\_ACEOF
20853#define HAVE_MALLOC 0
20854_ACEOF
20855
20856   case " $LIBOBJS " in
20857  *" malloc.$ac_objext "* ) ;;
20858  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
20859 ;;
20860esac
20861
20862
20863cat >>confdefs.h <<\_ACEOF
20864#define malloc rpl_malloc
20865_ACEOF
20866
20867fi
20868
20869
20870
20871
20872for ac_func in strrchr
20873do
20874as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20875{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20876$as_echo_n "checking for $ac_func... " >&6; }
20877if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20878  $as_echo_n "(cached) " >&6
20879else
20880  cat >conftest.$ac_ext <<_ACEOF
20881/* confdefs.h.  */
20882_ACEOF
20883cat confdefs.h >>conftest.$ac_ext
20884cat >>conftest.$ac_ext <<_ACEOF
20885/* end confdefs.h.  */
20886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20887   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20888#define $ac_func innocuous_$ac_func
20889
20890/* System header to define __stub macros and hopefully few prototypes,
20891    which can conflict with char $ac_func (); below.
20892    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20893    <limits.h> exists even on freestanding compilers.  */
20894
20895#ifdef __STDC__
20896# include <limits.h>
20897#else
20898# include <assert.h>
20899#endif
20900
20901#undef $ac_func
20902
20903/* Override any GCC internal prototype to avoid an error.
20904   Use char because int might match the return type of a GCC
20905   builtin and then its argument prototype would still apply.  */
20906#ifdef __cplusplus
20907extern "C"
20908#endif
20909char $ac_func ();
20910/* The GNU C library defines this for functions which it implements
20911    to always fail with ENOSYS.  Some functions are actually named
20912    something starting with __ and the normal name is an alias.  */
20913#if defined __stub_$ac_func || defined __stub___$ac_func
20914choke me
20915#endif
20916
20917int
20918main ()
20919{
20920return $ac_func ();
20921  ;
20922  return 0;
20923}
20924_ACEOF
20925rm -f conftest.$ac_objext conftest$ac_exeext
20926if { (ac_try="$ac_link"
20927case "(($ac_try" in
20928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20929  *) ac_try_echo=$ac_try;;
20930esac
20931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20932$as_echo "$ac_try_echo") >&5
20933  (eval "$ac_link") 2>conftest.er1
20934  ac_status=$?
20935  grep -v '^ *+' conftest.er1 >conftest.err
20936  rm -f conftest.er1
20937  cat conftest.err >&5
20938  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939  (exit $ac_status); } && {
20940	 test -z "$ac_c_werror_flag" ||
20941	 test ! -s conftest.err
20942       } && test -s conftest$ac_exeext && {
20943	 test "$cross_compiling" = yes ||
20944	 $as_test_x conftest$ac_exeext
20945       }; then
20946  eval "$as_ac_var=yes"
20947else
20948  $as_echo "$as_me: failed program was:" >&5
20949sed 's/^/| /' conftest.$ac_ext >&5
20950
20951	eval "$as_ac_var=no"
20952fi
20953
20954rm -rf conftest.dSYM
20955rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20956      conftest$ac_exeext conftest.$ac_ext
20957fi
20958ac_res=`eval 'as_val=${'$as_ac_var'}
20959		 $as_echo "$as_val"'`
20960	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20961$as_echo "$ac_res" >&6; }
20962as_val=`eval 'as_val=${'$as_ac_var'}
20963		 $as_echo "$as_val"'`
20964   if test "x$as_val" = x""yes; then
20965  cat >>confdefs.h <<_ACEOF
20966#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20967_ACEOF
20968
20969fi
20970done
20971
20972
20973ac_config_files="$ac_config_files libbs2b.pc Makefile doc/Makefile src/Makefile win32/Makefile"
20974
20975cat >confcache <<\_ACEOF
20976# This file is a shell script that caches the results of configure
20977# tests run on this system so they can be shared between configure
20978# scripts and configure runs, see configure's option --config-cache.
20979# It is not useful on other systems.  If it contains results you don't
20980# want to keep, you may remove or edit it.
20981#
20982# config.status only pays attention to the cache file if you give it
20983# the --recheck option to rerun configure.
20984#
20985# `ac_cv_env_foo' variables (set or unset) will be overridden when
20986# loading this file, other *unset* `ac_cv_foo' will be assigned the
20987# following values.
20988
20989_ACEOF
20990
20991# The following way of writing the cache mishandles newlines in values,
20992# but we know of no workaround that is simple, portable, and efficient.
20993# So, we kill variables containing newlines.
20994# Ultrix sh set writes to stderr and can't be redirected directly,
20995# and sets the high bit in the cache file unless we assign to the vars.
20996(
20997  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20998    eval ac_val=\$$ac_var
20999    case $ac_val in #(
21000    *${as_nl}*)
21001      case $ac_var in #(
21002      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21003$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21004      esac
21005      case $ac_var in #(
21006      _ | IFS | as_nl) ;; #(
21007      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21008      *) $as_unset $ac_var ;;
21009      esac ;;
21010    esac
21011  done
21012
21013  (set) 2>&1 |
21014    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21015    *${as_nl}ac_space=\ *)
21016      # `set' does not quote correctly, so add quotes (double-quote
21017      # substitution turns \\\\ into \\, and sed turns \\ into \).
21018      sed -n \
21019	"s/'/'\\\\''/g;
21020	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21021      ;; #(
21022    *)
21023      # `set' quotes correctly as required by POSIX, so do not add quotes.
21024      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21025      ;;
21026    esac |
21027    sort
21028) |
21029  sed '
21030     /^ac_cv_env_/b end
21031     t clear
21032     :clear
21033     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21034     t end
21035     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21036     :end' >>confcache
21037if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21038  if test -w "$cache_file"; then
21039    test "x$cache_file" != "x/dev/null" &&
21040      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21041$as_echo "$as_me: updating cache $cache_file" >&6;}
21042    cat confcache >$cache_file
21043  else
21044    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21045$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21046  fi
21047fi
21048rm -f confcache
21049
21050test "x$prefix" = xNONE && prefix=$ac_default_prefix
21051# Let make expand exec_prefix.
21052test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21053
21054# Transform confdefs.h into DEFS.
21055# Protect against shell expansion while executing Makefile rules.
21056# Protect against Makefile macro expansion.
21057#
21058# If the first sed substitution is executed (which looks for macros that
21059# take arguments), then branch to the quote section.  Otherwise,
21060# look for a macro that doesn't take arguments.
21061ac_script='
21062:mline
21063/\\$/{
21064 N
21065 s,\\\n,,
21066 b mline
21067}
21068t clear
21069:clear
21070s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
21071t quote
21072s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
21073t quote
21074b any
21075:quote
21076s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21077s/\[/\\&/g
21078s/\]/\\&/g
21079s/\$/$$/g
21080H
21081:any
21082${
21083	g
21084	s/^\n//
21085	s/\n/ /g
21086	p
21087}
21088'
21089DEFS=`sed -n "$ac_script" confdefs.h`
21090
21091
21092ac_libobjs=
21093ac_ltlibobjs=
21094for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21095  # 1. Remove the extension, and $U if already installed.
21096  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21097  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21098  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21099  #    will be set to the directory where LIBOBJS objects are built.
21100  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21101  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21102done
21103LIBOBJS=$ac_libobjs
21104
21105LTLIBOBJS=$ac_ltlibobjs
21106
21107
21108if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21109  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21110Usually this means the macro was only invoked conditionally." >&5
21111$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21112Usually this means the macro was only invoked conditionally." >&2;}
21113   { (exit 1); exit 1; }; }
21114fi
21115if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21116  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21117Usually this means the macro was only invoked conditionally." >&5
21118$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21119Usually this means the macro was only invoked conditionally." >&2;}
21120   { (exit 1); exit 1; }; }
21121fi
21122if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21123  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21124Usually this means the macro was only invoked conditionally." >&5
21125$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21126Usually this means the macro was only invoked conditionally." >&2;}
21127   { (exit 1); exit 1; }; }
21128fi
21129
21130: ${CONFIG_STATUS=./config.status}
21131ac_write_fail=0
21132ac_clean_files_save=$ac_clean_files
21133ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21134{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21135$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21136cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21137#! $SHELL
21138# Generated by $as_me.
21139# Run this file to recreate the current configuration.
21140# Compiler output produced by configure, useful for debugging
21141# configure, is in config.log if it exists.
21142
21143debug=false
21144ac_cs_recheck=false
21145ac_cs_silent=false
21146SHELL=\${CONFIG_SHELL-$SHELL}
21147_ACEOF
21148
21149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21150## --------------------- ##
21151## M4sh Initialization.  ##
21152## --------------------- ##
21153
21154# Be more Bourne compatible
21155DUALCASE=1; export DUALCASE # for MKS sh
21156if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21157  emulate sh
21158  NULLCMD=:
21159  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21160  # is contrary to our usage.  Disable this feature.
21161  alias -g '${1+"$@"}'='"$@"'
21162  setopt NO_GLOB_SUBST
21163else
21164  case `(set -o) 2>/dev/null` in
21165  *posix*) set -o posix ;;
21166esac
21167
21168fi
21169
21170
21171
21172
21173# PATH needs CR
21174# Avoid depending upon Character Ranges.
21175as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21176as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21177as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21178as_cr_digits='0123456789'
21179as_cr_alnum=$as_cr_Letters$as_cr_digits
21180
21181as_nl='
21182'
21183export as_nl
21184# Printing a long string crashes Solaris 7 /usr/bin/printf.
21185as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21186as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21187as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21188if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21189  as_echo='printf %s\n'
21190  as_echo_n='printf %s'
21191else
21192  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21193    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21194    as_echo_n='/usr/ucb/echo -n'
21195  else
21196    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21197    as_echo_n_body='eval
21198      arg=$1;
21199      case $arg in
21200      *"$as_nl"*)
21201	expr "X$arg" : "X\\(.*\\)$as_nl";
21202	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21203      esac;
21204      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21205    '
21206    export as_echo_n_body
21207    as_echo_n='sh -c $as_echo_n_body as_echo'
21208  fi
21209  export as_echo_body
21210  as_echo='sh -c $as_echo_body as_echo'
21211fi
21212
21213# The user is always right.
21214if test "${PATH_SEPARATOR+set}" != set; then
21215  PATH_SEPARATOR=:
21216  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21217    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21218      PATH_SEPARATOR=';'
21219  }
21220fi
21221
21222# Support unset when possible.
21223if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21224  as_unset=unset
21225else
21226  as_unset=false
21227fi
21228
21229
21230# IFS
21231# We need space, tab and new line, in precisely that order.  Quoting is
21232# there to prevent editors from complaining about space-tab.
21233# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21234# splitting by setting IFS to empty value.)
21235IFS=" ""	$as_nl"
21236
21237# Find who we are.  Look in the path if we contain no directory separator.
21238case $0 in
21239  *[\\/]* ) as_myself=$0 ;;
21240  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21241for as_dir in $PATH
21242do
21243  IFS=$as_save_IFS
21244  test -z "$as_dir" && as_dir=.
21245  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21246done
21247IFS=$as_save_IFS
21248
21249     ;;
21250esac
21251# We did not find ourselves, most probably we were run as `sh COMMAND'
21252# in which case we are not to be found in the path.
21253if test "x$as_myself" = x; then
21254  as_myself=$0
21255fi
21256if test ! -f "$as_myself"; then
21257  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21258  { (exit 1); exit 1; }
21259fi
21260
21261# Work around bugs in pre-3.0 UWIN ksh.
21262for as_var in ENV MAIL MAILPATH
21263do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21264done
21265PS1='$ '
21266PS2='> '
21267PS4='+ '
21268
21269# NLS nuisances.
21270LC_ALL=C
21271export LC_ALL
21272LANGUAGE=C
21273export LANGUAGE
21274
21275# Required to use basename.
21276if expr a : '\(a\)' >/dev/null 2>&1 &&
21277   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21278  as_expr=expr
21279else
21280  as_expr=false
21281fi
21282
21283if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21284  as_basename=basename
21285else
21286  as_basename=false
21287fi
21288
21289
21290# Name of the executable.
21291as_me=`$as_basename -- "$0" ||
21292$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21293	 X"$0" : 'X\(//\)$' \| \
21294	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21295$as_echo X/"$0" |
21296    sed '/^.*\/\([^/][^/]*\)\/*$/{
21297	    s//\1/
21298	    q
21299	  }
21300	  /^X\/\(\/\/\)$/{
21301	    s//\1/
21302	    q
21303	  }
21304	  /^X\/\(\/\).*/{
21305	    s//\1/
21306	    q
21307	  }
21308	  s/.*/./; q'`
21309
21310# CDPATH.
21311$as_unset CDPATH
21312
21313
21314
21315  as_lineno_1=$LINENO
21316  as_lineno_2=$LINENO
21317  test "x$as_lineno_1" != "x$as_lineno_2" &&
21318  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21319
21320  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21321  # uniformly replaced by the line number.  The first 'sed' inserts a
21322  # line-number line after each line using $LINENO; the second 'sed'
21323  # does the real work.  The second script uses 'N' to pair each
21324  # line-number line with the line containing $LINENO, and appends
21325  # trailing '-' during substitution so that $LINENO is not a special
21326  # case at line end.
21327  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21328  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21329  # E. McMahon (1931-1989) for sed's syntax.  :-)
21330  sed -n '
21331    p
21332    /[$]LINENO/=
21333  ' <$as_myself |
21334    sed '
21335      s/[$]LINENO.*/&-/
21336      t lineno
21337      b
21338      :lineno
21339      N
21340      :loop
21341      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21342      t loop
21343      s/-\n.*//
21344    ' >$as_me.lineno &&
21345  chmod +x "$as_me.lineno" ||
21346    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21347   { (exit 1); exit 1; }; }
21348
21349  # Don't try to exec as it changes $[0], causing all sort of problems
21350  # (the dirname of $[0] is not the place where we might find the
21351  # original and so on.  Autoconf is especially sensitive to this).
21352  . "./$as_me.lineno"
21353  # Exit status is that of the last command.
21354  exit
21355}
21356
21357
21358if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21359  as_dirname=dirname
21360else
21361  as_dirname=false
21362fi
21363
21364ECHO_C= ECHO_N= ECHO_T=
21365case `echo -n x` in
21366-n*)
21367  case `echo 'x\c'` in
21368  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21369  *)   ECHO_C='\c';;
21370  esac;;
21371*)
21372  ECHO_N='-n';;
21373esac
21374if expr a : '\(a\)' >/dev/null 2>&1 &&
21375   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21376  as_expr=expr
21377else
21378  as_expr=false
21379fi
21380
21381rm -f conf$$ conf$$.exe conf$$.file
21382if test -d conf$$.dir; then
21383  rm -f conf$$.dir/conf$$.file
21384else
21385  rm -f conf$$.dir
21386  mkdir conf$$.dir 2>/dev/null
21387fi
21388if (echo >conf$$.file) 2>/dev/null; then
21389  if ln -s conf$$.file conf$$ 2>/dev/null; then
21390    as_ln_s='ln -s'
21391    # ... but there are two gotchas:
21392    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21393    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21394    # In both cases, we have to default to `cp -p'.
21395    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21396      as_ln_s='cp -p'
21397  elif ln conf$$.file conf$$ 2>/dev/null; then
21398    as_ln_s=ln
21399  else
21400    as_ln_s='cp -p'
21401  fi
21402else
21403  as_ln_s='cp -p'
21404fi
21405rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21406rmdir conf$$.dir 2>/dev/null
21407
21408if mkdir -p . 2>/dev/null; then
21409  as_mkdir_p=:
21410else
21411  test -d ./-p && rmdir ./-p
21412  as_mkdir_p=false
21413fi
21414
21415if test -x / >/dev/null 2>&1; then
21416  as_test_x='test -x'
21417else
21418  if ls -dL / >/dev/null 2>&1; then
21419    as_ls_L_option=L
21420  else
21421    as_ls_L_option=
21422  fi
21423  as_test_x='
21424    eval sh -c '\''
21425      if test -d "$1"; then
21426	test -d "$1/.";
21427      else
21428	case $1 in
21429	-*)set "./$1";;
21430	esac;
21431	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21432	???[sx]*):;;*)false;;esac;fi
21433    '\'' sh
21434  '
21435fi
21436as_executable_p=$as_test_x
21437
21438# Sed expression to map a string onto a valid CPP name.
21439as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21440
21441# Sed expression to map a string onto a valid variable name.
21442as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21443
21444
21445exec 6>&1
21446
21447# Save the log message, to keep $[0] and so on meaningful, and to
21448# report actual input values of CONFIG_FILES etc. instead of their
21449# values after options handling.
21450ac_log="
21451This file was extended by libbs2b $as_me 3.1.0, which was
21452generated by GNU Autoconf 2.63.  Invocation command line was
21453
21454  CONFIG_FILES    = $CONFIG_FILES
21455  CONFIG_HEADERS  = $CONFIG_HEADERS
21456  CONFIG_LINKS    = $CONFIG_LINKS
21457  CONFIG_COMMANDS = $CONFIG_COMMANDS
21458  $ $0 $@
21459
21460on `(hostname || uname -n) 2>/dev/null | sed 1q`
21461"
21462
21463_ACEOF
21464
21465case $ac_config_files in *"
21466"*) set x $ac_config_files; shift; ac_config_files=$*;;
21467esac
21468
21469
21470
21471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21472# Files that config.status was made for.
21473config_files="$ac_config_files"
21474config_commands="$ac_config_commands"
21475
21476_ACEOF
21477
21478cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21479ac_cs_usage="\
21480\`$as_me' instantiates files from templates according to the
21481current configuration.
21482
21483Usage: $0 [OPTION]... [FILE]...
21484
21485  -h, --help       print this help, then exit
21486  -V, --version    print version number and configuration settings, then exit
21487  -q, --quiet, --silent
21488                   do not print progress messages
21489  -d, --debug      don't remove temporary files
21490      --recheck    update $as_me by reconfiguring in the same conditions
21491      --file=FILE[:TEMPLATE]
21492                   instantiate the configuration file FILE
21493
21494Configuration files:
21495$config_files
21496
21497Configuration commands:
21498$config_commands
21499
21500Report bugs to <bug-autoconf@gnu.org>."
21501
21502_ACEOF
21503cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21504ac_cs_version="\\
21505libbs2b config.status 3.1.0
21506configured by $0, generated by GNU Autoconf 2.63,
21507  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21508
21509Copyright (C) 2008 Free Software Foundation, Inc.
21510This config.status script is free software; the Free Software Foundation
21511gives unlimited permission to copy, distribute and modify it."
21512
21513ac_pwd='$ac_pwd'
21514srcdir='$srcdir'
21515INSTALL='$INSTALL'
21516MKDIR_P='$MKDIR_P'
21517AWK='$AWK'
21518test -n "\$AWK" || AWK=awk
21519_ACEOF
21520
21521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21522# The default lists apply if the user does not specify any file.
21523ac_need_defaults=:
21524while test $# != 0
21525do
21526  case $1 in
21527  --*=*)
21528    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21529    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21530    ac_shift=:
21531    ;;
21532  *)
21533    ac_option=$1
21534    ac_optarg=$2
21535    ac_shift=shift
21536    ;;
21537  esac
21538
21539  case $ac_option in
21540  # Handling of the options.
21541  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21542    ac_cs_recheck=: ;;
21543  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21544    $as_echo "$ac_cs_version"; exit ;;
21545  --debug | --debu | --deb | --de | --d | -d )
21546    debug=: ;;
21547  --file | --fil | --fi | --f )
21548    $ac_shift
21549    case $ac_optarg in
21550    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21551    esac
21552    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21553    ac_need_defaults=false;;
21554  --he | --h |  --help | --hel | -h )
21555    $as_echo "$ac_cs_usage"; exit ;;
21556  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21557  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21558    ac_cs_silent=: ;;
21559
21560  # This is an error.
21561  -*) { $as_echo "$as_me: error: unrecognized option: $1
21562Try \`$0 --help' for more information." >&2
21563   { (exit 1); exit 1; }; } ;;
21564
21565  *) ac_config_targets="$ac_config_targets $1"
21566     ac_need_defaults=false ;;
21567
21568  esac
21569  shift
21570done
21571
21572ac_configure_extra_args=
21573
21574if $ac_cs_silent; then
21575  exec 6>/dev/null
21576  ac_configure_extra_args="$ac_configure_extra_args --silent"
21577fi
21578
21579_ACEOF
21580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21581if \$ac_cs_recheck; then
21582  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21583  shift
21584  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21585  CONFIG_SHELL='$SHELL'
21586  export CONFIG_SHELL
21587  exec "\$@"
21588fi
21589
21590_ACEOF
21591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21592exec 5>>config.log
21593{
21594  echo
21595  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21596## Running $as_me. ##
21597_ASBOX
21598  $as_echo "$ac_log"
21599} >&5
21600
21601_ACEOF
21602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21603#
21604# INIT-COMMANDS
21605#
21606AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21607
21608_ACEOF
21609
21610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21611
21612# Handling of arguments.
21613for ac_config_target in $ac_config_targets
21614do
21615  case $ac_config_target in
21616    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21617    "libbs2b.pc") CONFIG_FILES="$CONFIG_FILES libbs2b.pc" ;;
21618    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21619    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21620    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21621    "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
21622
21623  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21624$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21625   { (exit 1); exit 1; }; };;
21626  esac
21627done
21628
21629
21630# If the user did not use the arguments to specify the items to instantiate,
21631# then the envvar interface is used.  Set only those that are not.
21632# We use the long form for the default assignment because of an extremely
21633# bizarre bug on SunOS 4.1.3.
21634if $ac_need_defaults; then
21635  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21636  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21637fi
21638
21639# Have a temporary directory for convenience.  Make it in the build tree
21640# simply because there is no reason against having it here, and in addition,
21641# creating and moving files from /tmp can sometimes cause problems.
21642# Hook for its removal unless debugging.
21643# Note that there is a small window in which the directory will not be cleaned:
21644# after its creation but before its name has been assigned to `$tmp'.
21645$debug ||
21646{
21647  tmp=
21648  trap 'exit_status=$?
21649  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21650' 0
21651  trap '{ (exit 1); exit 1; }' 1 2 13 15
21652}
21653# Create a (secure) tmp directory for tmp files.
21654
21655{
21656  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21657  test -n "$tmp" && test -d "$tmp"
21658}  ||
21659{
21660  tmp=./conf$$-$RANDOM
21661  (umask 077 && mkdir "$tmp")
21662} ||
21663{
21664   $as_echo "$as_me: cannot create a temporary directory in ." >&2
21665   { (exit 1); exit 1; }
21666}
21667
21668# Set up the scripts for CONFIG_FILES section.
21669# No need to generate them if there are no CONFIG_FILES.
21670# This happens for instance with `./config.status config.h'.
21671if test -n "$CONFIG_FILES"; then
21672
21673
21674ac_cr='
21675'
21676ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21677if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21678  ac_cs_awk_cr='\\r'
21679else
21680  ac_cs_awk_cr=$ac_cr
21681fi
21682
21683echo 'BEGIN {' >"$tmp/subs1.awk" &&
21684_ACEOF
21685
21686
21687{
21688  echo "cat >conf$$subs.awk <<_ACEOF" &&
21689  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21690  echo "_ACEOF"
21691} >conf$$subs.sh ||
21692  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21693$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21694   { (exit 1); exit 1; }; }
21695ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21696ac_delim='%!_!# '
21697for ac_last_try in false false false false false :; do
21698  . ./conf$$subs.sh ||
21699    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21700$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21701   { (exit 1); exit 1; }; }
21702
21703  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21704  if test $ac_delim_n = $ac_delim_num; then
21705    break
21706  elif $ac_last_try; then
21707    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21708$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21709   { (exit 1); exit 1; }; }
21710  else
21711    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21712  fi
21713done
21714rm -f conf$$subs.sh
21715
21716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21717cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21718_ACEOF
21719sed -n '
21720h
21721s/^/S["/; s/!.*/"]=/
21722p
21723g
21724s/^[^!]*!//
21725:repl
21726t repl
21727s/'"$ac_delim"'$//
21728t delim
21729:nl
21730h
21731s/\(.\{148\}\).*/\1/
21732t more1
21733s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21734p
21735n
21736b repl
21737:more1
21738s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21739p
21740g
21741s/.\{148\}//
21742t nl
21743:delim
21744h
21745s/\(.\{148\}\).*/\1/
21746t more2
21747s/["\\]/\\&/g; s/^/"/; s/$/"/
21748p
21749b
21750:more2
21751s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21752p
21753g
21754s/.\{148\}//
21755t delim
21756' <conf$$subs.awk | sed '
21757/^[^""]/{
21758  N
21759  s/\n//
21760}
21761' >>$CONFIG_STATUS || ac_write_fail=1
21762rm -f conf$$subs.awk
21763cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21764_ACAWK
21765cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21766  for (key in S) S_is_set[key] = 1
21767  FS = ""
21768
21769}
21770{
21771  line = $ 0
21772  nfields = split(line, field, "@")
21773  substed = 0
21774  len = length(field[1])
21775  for (i = 2; i < nfields; i++) {
21776    key = field[i]
21777    keylen = length(key)
21778    if (S_is_set[key]) {
21779      value = S[key]
21780      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21781      len += length(value) + length(field[++i])
21782      substed = 1
21783    } else
21784      len += 1 + keylen
21785  }
21786
21787  print line
21788}
21789
21790_ACAWK
21791_ACEOF
21792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21793if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21794  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21795else
21796  cat
21797fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21798  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21799$as_echo "$as_me: error: could not setup config files machinery" >&2;}
21800   { (exit 1); exit 1; }; }
21801_ACEOF
21802
21803# VPATH may cause trouble with some makes, so we remove $(srcdir),
21804# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21805# trailing colons and then remove the whole line if VPATH becomes empty
21806# (actually we leave an empty line to preserve line numbers).
21807if test "x$srcdir" = x.; then
21808  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21809s/:*\$(srcdir):*/:/
21810s/:*\${srcdir}:*/:/
21811s/:*@srcdir@:*/:/
21812s/^\([^=]*=[	 ]*\):*/\1/
21813s/:*$//
21814s/^[^=]*=[	 ]*$//
21815}'
21816fi
21817
21818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21819fi # test -n "$CONFIG_FILES"
21820
21821
21822eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
21823shift
21824for ac_tag
21825do
21826  case $ac_tag in
21827  :[FHLC]) ac_mode=$ac_tag; continue;;
21828  esac
21829  case $ac_mode$ac_tag in
21830  :[FHL]*:*);;
21831  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21832$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21833   { (exit 1); exit 1; }; };;
21834  :[FH]-) ac_tag=-:-;;
21835  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21836  esac
21837  ac_save_IFS=$IFS
21838  IFS=:
21839  set x $ac_tag
21840  IFS=$ac_save_IFS
21841  shift
21842  ac_file=$1
21843  shift
21844
21845  case $ac_mode in
21846  :L) ac_source=$1;;
21847  :[FH])
21848    ac_file_inputs=
21849    for ac_f
21850    do
21851      case $ac_f in
21852      -) ac_f="$tmp/stdin";;
21853      *) # Look for the file first in the build tree, then in the source tree
21854	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21855	 # because $ac_f cannot contain `:'.
21856	 test -f "$ac_f" ||
21857	   case $ac_f in
21858	   [\\/$]*) false;;
21859	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21860	   esac ||
21861	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21862$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21863   { (exit 1); exit 1; }; };;
21864      esac
21865      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21866      ac_file_inputs="$ac_file_inputs '$ac_f'"
21867    done
21868
21869    # Let's still pretend it is `configure' which instantiates (i.e., don't
21870    # use $as_me), people would be surprised to read:
21871    #    /* config.h.  Generated by config.status.  */
21872    configure_input='Generated from '`
21873	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21874	`' by configure.'
21875    if test x"$ac_file" != x-; then
21876      configure_input="$ac_file.  $configure_input"
21877      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21878$as_echo "$as_me: creating $ac_file" >&6;}
21879    fi
21880    # Neutralize special characters interpreted by sed in replacement strings.
21881    case $configure_input in #(
21882    *\&* | *\|* | *\\* )
21883       ac_sed_conf_input=`$as_echo "$configure_input" |
21884       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21885    *) ac_sed_conf_input=$configure_input;;
21886    esac
21887
21888    case $ac_tag in
21889    *:-:* | *:-) cat >"$tmp/stdin" \
21890      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21891$as_echo "$as_me: error: could not create $ac_file" >&2;}
21892   { (exit 1); exit 1; }; } ;;
21893    esac
21894    ;;
21895  esac
21896
21897  ac_dir=`$as_dirname -- "$ac_file" ||
21898$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21899	 X"$ac_file" : 'X\(//\)[^/]' \| \
21900	 X"$ac_file" : 'X\(//\)$' \| \
21901	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21902$as_echo X"$ac_file" |
21903    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21904	    s//\1/
21905	    q
21906	  }
21907	  /^X\(\/\/\)[^/].*/{
21908	    s//\1/
21909	    q
21910	  }
21911	  /^X\(\/\/\)$/{
21912	    s//\1/
21913	    q
21914	  }
21915	  /^X\(\/\).*/{
21916	    s//\1/
21917	    q
21918	  }
21919	  s/.*/./; q'`
21920  { as_dir="$ac_dir"
21921  case $as_dir in #(
21922  -*) as_dir=./$as_dir;;
21923  esac
21924  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21925    as_dirs=
21926    while :; do
21927      case $as_dir in #(
21928      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21929      *) as_qdir=$as_dir;;
21930      esac
21931      as_dirs="'$as_qdir' $as_dirs"
21932      as_dir=`$as_dirname -- "$as_dir" ||
21933$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21934	 X"$as_dir" : 'X\(//\)[^/]' \| \
21935	 X"$as_dir" : 'X\(//\)$' \| \
21936	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21937$as_echo X"$as_dir" |
21938    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21939	    s//\1/
21940	    q
21941	  }
21942	  /^X\(\/\/\)[^/].*/{
21943	    s//\1/
21944	    q
21945	  }
21946	  /^X\(\/\/\)$/{
21947	    s//\1/
21948	    q
21949	  }
21950	  /^X\(\/\).*/{
21951	    s//\1/
21952	    q
21953	  }
21954	  s/.*/./; q'`
21955      test -d "$as_dir" && break
21956    done
21957    test -z "$as_dirs" || eval "mkdir $as_dirs"
21958  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21959$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21960   { (exit 1); exit 1; }; }; }
21961  ac_builddir=.
21962
21963case "$ac_dir" in
21964.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21965*)
21966  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21967  # A ".." for each directory in $ac_dir_suffix.
21968  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21969  case $ac_top_builddir_sub in
21970  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21971  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21972  esac ;;
21973esac
21974ac_abs_top_builddir=$ac_pwd
21975ac_abs_builddir=$ac_pwd$ac_dir_suffix
21976# for backward compatibility:
21977ac_top_builddir=$ac_top_build_prefix
21978
21979case $srcdir in
21980  .)  # We are building in place.
21981    ac_srcdir=.
21982    ac_top_srcdir=$ac_top_builddir_sub
21983    ac_abs_top_srcdir=$ac_pwd ;;
21984  [\\/]* | ?:[\\/]* )  # Absolute name.
21985    ac_srcdir=$srcdir$ac_dir_suffix;
21986    ac_top_srcdir=$srcdir
21987    ac_abs_top_srcdir=$srcdir ;;
21988  *) # Relative name.
21989    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21990    ac_top_srcdir=$ac_top_build_prefix$srcdir
21991    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21992esac
21993ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21994
21995
21996  case $ac_mode in
21997  :F)
21998  #
21999  # CONFIG_FILE
22000  #
22001
22002  case $INSTALL in
22003  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22004  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22005  esac
22006  ac_MKDIR_P=$MKDIR_P
22007  case $MKDIR_P in
22008  [\\/$]* | ?:[\\/]* ) ;;
22009  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22010  esac
22011_ACEOF
22012
22013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22014# If the template does not know about datarootdir, expand it.
22015# FIXME: This hack should be removed a few years after 2.60.
22016ac_datarootdir_hack=; ac_datarootdir_seen=
22017
22018ac_sed_dataroot='
22019/datarootdir/ {
22020  p
22021  q
22022}
22023/@datadir@/p
22024/@docdir@/p
22025/@infodir@/p
22026/@localedir@/p
22027/@mandir@/p
22028'
22029case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22030*datarootdir*) ac_datarootdir_seen=yes;;
22031*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22032  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22033$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22034_ACEOF
22035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22036  ac_datarootdir_hack='
22037  s&@datadir@&$datadir&g
22038  s&@docdir@&$docdir&g
22039  s&@infodir@&$infodir&g
22040  s&@localedir@&$localedir&g
22041  s&@mandir@&$mandir&g
22042    s&\\\${datarootdir}&$datarootdir&g' ;;
22043esac
22044_ACEOF
22045
22046# Neutralize VPATH when `$srcdir' = `.'.
22047# Shell code in configure.ac might set extrasub.
22048# FIXME: do we really want to maintain this feature?
22049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22050ac_sed_extra="$ac_vpsub
22051$extrasub
22052_ACEOF
22053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22054:t
22055/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22056s|@configure_input@|$ac_sed_conf_input|;t t
22057s&@top_builddir@&$ac_top_builddir_sub&;t t
22058s&@top_build_prefix@&$ac_top_build_prefix&;t t
22059s&@srcdir@&$ac_srcdir&;t t
22060s&@abs_srcdir@&$ac_abs_srcdir&;t t
22061s&@top_srcdir@&$ac_top_srcdir&;t t
22062s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22063s&@builddir@&$ac_builddir&;t t
22064s&@abs_builddir@&$ac_abs_builddir&;t t
22065s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22066s&@INSTALL@&$ac_INSTALL&;t t
22067s&@MKDIR_P@&$ac_MKDIR_P&;t t
22068$ac_datarootdir_hack
22069"
22070eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22071  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22072$as_echo "$as_me: error: could not create $ac_file" >&2;}
22073   { (exit 1); exit 1; }; }
22074
22075test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22076  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22077  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22078  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22079which seems to be undefined.  Please make sure it is defined." >&5
22080$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22081which seems to be undefined.  Please make sure it is defined." >&2;}
22082
22083  rm -f "$tmp/stdin"
22084  case $ac_file in
22085  -) cat "$tmp/out" && rm -f "$tmp/out";;
22086  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22087  esac \
22088  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22089$as_echo "$as_me: error: could not create $ac_file" >&2;}
22090   { (exit 1); exit 1; }; }
22091 ;;
22092
22093
22094  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22095$as_echo "$as_me: executing $ac_file commands" >&6;}
22096 ;;
22097  esac
22098
22099
22100  case $ac_file$ac_mode in
22101    "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
22102# are listed without --file.  Let's play safe and only enable the eval
22103# if we detect the quoting.
22104case $CONFIG_FILES in
22105*\'*) eval set x "$CONFIG_FILES" ;;
22106*)   set x $CONFIG_FILES ;;
22107esac
22108shift
22109for mf
22110do
22111  # Strip MF so we end up with the name of the file.
22112  mf=`echo "$mf" | sed -e 's/:.*$//'`
22113  # Check whether this is an Automake generated Makefile or not.
22114  # We used to match only the files named `Makefile.in', but
22115  # some people rename them; so instead we look at the file content.
22116  # Grep'ing the first line is not enough: some people post-process
22117  # each Makefile.in and add a new line on top of each file to say so.
22118  # Grep'ing the whole file is not good either: AIX grep has a line
22119  # limit of 2048, but all sed's we know have understand at least 4000.
22120  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22121    dirpart=`$as_dirname -- "$mf" ||
22122$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22123	 X"$mf" : 'X\(//\)[^/]' \| \
22124	 X"$mf" : 'X\(//\)$' \| \
22125	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22126$as_echo X"$mf" |
22127    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22128	    s//\1/
22129	    q
22130	  }
22131	  /^X\(\/\/\)[^/].*/{
22132	    s//\1/
22133	    q
22134	  }
22135	  /^X\(\/\/\)$/{
22136	    s//\1/
22137	    q
22138	  }
22139	  /^X\(\/\).*/{
22140	    s//\1/
22141	    q
22142	  }
22143	  s/.*/./; q'`
22144  else
22145    continue
22146  fi
22147  # Extract the definition of DEPDIR, am__include, and am__quote
22148  # from the Makefile without running `make'.
22149  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22150  test -z "$DEPDIR" && continue
22151  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22152  test -z "am__include" && continue
22153  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22154  # When using ansi2knr, U may be empty or an underscore; expand it
22155  U=`sed -n 's/^U = //p' < "$mf"`
22156  # Find all dependency output files, they are included files with
22157  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22158  # simplest approach to changing $(DEPDIR) to its actual value in the
22159  # expansion.
22160  for file in `sed -n "
22161    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22162       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22163    # Make sure the directory exists.
22164    test -f "$dirpart/$file" && continue
22165    fdir=`$as_dirname -- "$file" ||
22166$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22167	 X"$file" : 'X\(//\)[^/]' \| \
22168	 X"$file" : 'X\(//\)$' \| \
22169	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22170$as_echo X"$file" |
22171    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22172	    s//\1/
22173	    q
22174	  }
22175	  /^X\(\/\/\)[^/].*/{
22176	    s//\1/
22177	    q
22178	  }
22179	  /^X\(\/\/\)$/{
22180	    s//\1/
22181	    q
22182	  }
22183	  /^X\(\/\).*/{
22184	    s//\1/
22185	    q
22186	  }
22187	  s/.*/./; q'`
22188    { as_dir=$dirpart/$fdir
22189  case $as_dir in #(
22190  -*) as_dir=./$as_dir;;
22191  esac
22192  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22193    as_dirs=
22194    while :; do
22195      case $as_dir in #(
22196      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22197      *) as_qdir=$as_dir;;
22198      esac
22199      as_dirs="'$as_qdir' $as_dirs"
22200      as_dir=`$as_dirname -- "$as_dir" ||
22201$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22202	 X"$as_dir" : 'X\(//\)[^/]' \| \
22203	 X"$as_dir" : 'X\(//\)$' \| \
22204	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22205$as_echo X"$as_dir" |
22206    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22207	    s//\1/
22208	    q
22209	  }
22210	  /^X\(\/\/\)[^/].*/{
22211	    s//\1/
22212	    q
22213	  }
22214	  /^X\(\/\/\)$/{
22215	    s//\1/
22216	    q
22217	  }
22218	  /^X\(\/\).*/{
22219	    s//\1/
22220	    q
22221	  }
22222	  s/.*/./; q'`
22223      test -d "$as_dir" && break
22224    done
22225    test -z "$as_dirs" || eval "mkdir $as_dirs"
22226  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22227$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22228   { (exit 1); exit 1; }; }; }
22229    # echo "creating $dirpart/$file"
22230    echo '# dummy' > "$dirpart/$file"
22231  done
22232done
22233 ;;
22234
22235  esac
22236done # for ac_tag
22237
22238
22239{ (exit 0); exit 0; }
22240_ACEOF
22241chmod +x $CONFIG_STATUS
22242ac_clean_files=$ac_clean_files_save
22243
22244test $ac_write_fail = 0 ||
22245  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22246$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22247   { (exit 1); exit 1; }; }
22248
22249
22250# configure is writing to config.log, and then calls config.status.
22251# config.status does its own redirection, appending to config.log.
22252# Unfortunately, on DOS this fails, as config.log is still kept open
22253# by configure, so config.status won't be able to write to it; its
22254# output is simply discarded.  So we exec the FD to /dev/null,
22255# effectively closing config.log, so it can be properly (re)opened and
22256# appended to by config.status.  When coming back to configure, we
22257# need to make the FD available again.
22258if test "$no_create" != yes; then
22259  ac_cs_success=:
22260  ac_config_status_args=
22261  test "$silent" = yes &&
22262    ac_config_status_args="$ac_config_status_args --quiet"
22263  exec 5>/dev/null
22264  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22265  exec 5>>config.log
22266  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22267  # would make configure fail if this is the last instruction.
22268  $ac_cs_success || { (exit 1); exit 1; }
22269fi
22270if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22271  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22272$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22273fi
22274
22275