1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for ScriptSWF 1.8.4.
4#
5# Report bugs to <alexis@m2osw.com>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12# Copyright (c) 2002-2009 Made to Order Software Corp.
13#
14# Permission is hereby granted, free of charge, to any
15# person obtaining a copy of this software and
16# associated documentation files (the "Software"), to
17# deal in the Software without restriction, including
18# without limitation the rights to use, copy, modify,
19# merge, publish, distribute, sublicense, and/or sell
20# copies of the Software, and to permit persons to whom
21# the Software is furnished to do so, subject to the
22# following conditions:
23#
24# The above copyright notice and this permission notice
25# shall be included in all copies or substantial
26# portions of the Software.
27#
28# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
29# ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
30# LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
31# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
32# EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
33# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
34# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
35# ARISING FROM, OUT OF OR IN CONNECTION WITH THE
36# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
37# SOFTWARE.
38## --------------------- ##
39## M4sh Initialization.  ##
40## --------------------- ##
41
42# Be more Bourne compatible
43DUALCASE=1; export DUALCASE # for MKS sh
44if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45  emulate sh
46  NULLCMD=:
47  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
48  # is contrary to our usage.  Disable this feature.
49  alias -g '${1+"$@"}'='"$@"'
50  setopt NO_GLOB_SUBST
51else
52  case `(set -o) 2>/dev/null` in
53  *posix*) set -o posix ;;
54esac
55
56fi
57
58
59
60
61# PATH needs CR
62# Avoid depending upon Character Ranges.
63as_cr_letters='abcdefghijklmnopqrstuvwxyz'
64as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
65as_cr_Letters=$as_cr_letters$as_cr_LETTERS
66as_cr_digits='0123456789'
67as_cr_alnum=$as_cr_Letters$as_cr_digits
68
69# The user is always right.
70if test "${PATH_SEPARATOR+set}" != set; then
71  echo "#! /bin/sh" >conf$$.sh
72  echo  "exit 0"   >>conf$$.sh
73  chmod +x conf$$.sh
74  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
75    PATH_SEPARATOR=';'
76  else
77    PATH_SEPARATOR=:
78  fi
79  rm -f conf$$.sh
80fi
81
82# Support unset when possible.
83if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
84  as_unset=unset
85else
86  as_unset=false
87fi
88
89
90# IFS
91# We need space, tab and new line, in precisely that order.  Quoting is
92# there to prevent editors from complaining about space-tab.
93# (If _AS_PATH_WALK were called with IFS unset, it would disable word
94# splitting by setting IFS to empty value.)
95as_nl='
96'
97IFS=" ""	$as_nl"
98
99# Find who we are.  Look in the path if we contain no directory separator.
100case $0 in
101  *[\\/]* ) as_myself=$0 ;;
102  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103for as_dir in $PATH
104do
105  IFS=$as_save_IFS
106  test -z "$as_dir" && as_dir=.
107  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108done
109IFS=$as_save_IFS
110
111     ;;
112esac
113# We did not find ourselves, most probably we were run as `sh COMMAND'
114# in which case we are not to be found in the path.
115if test "x$as_myself" = x; then
116  as_myself=$0
117fi
118if test ! -f "$as_myself"; then
119  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120  { (exit 1); exit 1; }
121fi
122
123# Work around bugs in pre-3.0 UWIN ksh.
124for as_var in ENV MAIL MAILPATH
125do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
126done
127PS1='$ '
128PS2='> '
129PS4='+ '
130
131# NLS nuisances.
132for as_var in \
133  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
134  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
135  LC_TELEPHONE LC_TIME
136do
137  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
138    eval $as_var=C; export $as_var
139  else
140    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
141  fi
142done
143
144# Required to use basename.
145if expr a : '\(a\)' >/dev/null 2>&1 &&
146   test "X`expr 00001 : '.*\(...\)'`" = X001; then
147  as_expr=expr
148else
149  as_expr=false
150fi
151
152if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
153  as_basename=basename
154else
155  as_basename=false
156fi
157
158
159# Name of the executable.
160as_me=`$as_basename -- "$0" ||
161$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
162	 X"$0" : 'X\(//\)$' \| \
163	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
164echo X/"$0" |
165    sed '/^.*\/\([^/][^/]*\)\/*$/{
166	    s//\1/
167	    q
168	  }
169	  /^X\/\(\/\/\)$/{
170	    s//\1/
171	    q
172	  }
173	  /^X\/\(\/\).*/{
174	    s//\1/
175	    q
176	  }
177	  s/.*/./; q'`
178
179# CDPATH.
180$as_unset CDPATH
181
182
183if test "x$CONFIG_SHELL" = x; then
184  if (eval ":") 2>/dev/null; then
185  as_have_required=yes
186else
187  as_have_required=no
188fi
189
190  if test $as_have_required = yes && 	 (eval ":
191(as_func_return () {
192  (exit \$1)
193}
194as_func_success () {
195  as_func_return 0
196}
197as_func_failure () {
198  as_func_return 1
199}
200as_func_ret_success () {
201  return 0
202}
203as_func_ret_failure () {
204  return 1
205}
206
207exitcode=0
208if as_func_success; then
209  :
210else
211  exitcode=1
212  echo as_func_success failed.
213fi
214
215if as_func_failure; then
216  exitcode=1
217  echo as_func_failure succeeded.
218fi
219
220if as_func_ret_success; then
221  :
222else
223  exitcode=1
224  echo as_func_ret_success failed.
225fi
226
227if as_func_ret_failure; then
228  exitcode=1
229  echo as_func_ret_failure succeeded.
230fi
231
232if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
233  :
234else
235  exitcode=1
236  echo positional parameters were not saved.
237fi
238
239test \$exitcode = 0) || { (exit 1); exit 1; }
240
241(
242  as_lineno_1=\$LINENO
243  as_lineno_2=\$LINENO
244  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
245  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
246") 2> /dev/null; then
247  :
248else
249  as_candidate_shells=
250    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
251for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
252do
253  IFS=$as_save_IFS
254  test -z "$as_dir" && as_dir=.
255  case $as_dir in
256	 /*)
257	   for as_base in sh bash ksh sh5; do
258	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
259	   done;;
260       esac
261done
262IFS=$as_save_IFS
263
264
265      for as_shell in $as_candidate_shells $SHELL; do
266	 # Try only shells that exist, to save several forks.
267	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
268		{ ("$as_shell") 2> /dev/null <<\_ASEOF
269if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
270  emulate sh
271  NULLCMD=:
272  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
273  # is contrary to our usage.  Disable this feature.
274  alias -g '${1+"$@"}'='"$@"'
275  setopt NO_GLOB_SUBST
276else
277  case `(set -o) 2>/dev/null` in
278  *posix*) set -o posix ;;
279esac
280
281fi
282
283
284:
285_ASEOF
286}; then
287  CONFIG_SHELL=$as_shell
288	       as_have_required=yes
289	       if { "$as_shell" 2> /dev/null <<\_ASEOF
290if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
291  emulate sh
292  NULLCMD=:
293  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
294  # is contrary to our usage.  Disable this feature.
295  alias -g '${1+"$@"}'='"$@"'
296  setopt NO_GLOB_SUBST
297else
298  case `(set -o) 2>/dev/null` in
299  *posix*) set -o posix ;;
300esac
301
302fi
303
304
305:
306(as_func_return () {
307  (exit $1)
308}
309as_func_success () {
310  as_func_return 0
311}
312as_func_failure () {
313  as_func_return 1
314}
315as_func_ret_success () {
316  return 0
317}
318as_func_ret_failure () {
319  return 1
320}
321
322exitcode=0
323if as_func_success; then
324  :
325else
326  exitcode=1
327  echo as_func_success failed.
328fi
329
330if as_func_failure; then
331  exitcode=1
332  echo as_func_failure succeeded.
333fi
334
335if as_func_ret_success; then
336  :
337else
338  exitcode=1
339  echo as_func_ret_success failed.
340fi
341
342if as_func_ret_failure; then
343  exitcode=1
344  echo as_func_ret_failure succeeded.
345fi
346
347if ( set x; as_func_ret_success y && test x = "$1" ); then
348  :
349else
350  exitcode=1
351  echo positional parameters were not saved.
352fi
353
354test $exitcode = 0) || { (exit 1); exit 1; }
355
356(
357  as_lineno_1=$LINENO
358  as_lineno_2=$LINENO
359  test "x$as_lineno_1" != "x$as_lineno_2" &&
360  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361
362_ASEOF
363}; then
364  break
365fi
366
367fi
368
369      done
370
371      if test "x$CONFIG_SHELL" != x; then
372  for as_var in BASH_ENV ENV
373        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
374        done
375        export CONFIG_SHELL
376        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
377fi
378
379
380    if test $as_have_required = no; then
381  echo This script requires a shell more modern than all the
382      echo shells that I found on your system.  Please install a
383      echo modern shell, or manually run the script under such a
384      echo shell if you do have one.
385      { (exit 1); exit 1; }
386fi
387
388
389fi
390
391fi
392
393
394
395(eval "as_func_return () {
396  (exit \$1)
397}
398as_func_success () {
399  as_func_return 0
400}
401as_func_failure () {
402  as_func_return 1
403}
404as_func_ret_success () {
405  return 0
406}
407as_func_ret_failure () {
408  return 1
409}
410
411exitcode=0
412if as_func_success; then
413  :
414else
415  exitcode=1
416  echo as_func_success failed.
417fi
418
419if as_func_failure; then
420  exitcode=1
421  echo as_func_failure succeeded.
422fi
423
424if as_func_ret_success; then
425  :
426else
427  exitcode=1
428  echo as_func_ret_success failed.
429fi
430
431if as_func_ret_failure; then
432  exitcode=1
433  echo as_func_ret_failure succeeded.
434fi
435
436if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
437  :
438else
439  exitcode=1
440  echo positional parameters were not saved.
441fi
442
443test \$exitcode = 0") || {
444  echo No shell found that supports shell functions.
445  echo Please tell autoconf@gnu.org about your system,
446  echo including any error possibly output before this
447  echo message
448}
449
450
451
452  as_lineno_1=$LINENO
453  as_lineno_2=$LINENO
454  test "x$as_lineno_1" != "x$as_lineno_2" &&
455  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
456
457  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
458  # uniformly replaced by the line number.  The first 'sed' inserts a
459  # line-number line after each line using $LINENO; the second 'sed'
460  # does the real work.  The second script uses 'N' to pair each
461  # line-number line with the line containing $LINENO, and appends
462  # trailing '-' during substitution so that $LINENO is not a special
463  # case at line end.
464  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
465  # scripts with optimization help from Paolo Bonzini.  Blame Lee
466  # E. McMahon (1931-1989) for sed's syntax.  :-)
467  sed -n '
468    p
469    /[$]LINENO/=
470  ' <$as_myself |
471    sed '
472      s/[$]LINENO.*/&-/
473      t lineno
474      b
475      :lineno
476      N
477      :loop
478      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
479      t loop
480      s/-\n.*//
481    ' >$as_me.lineno &&
482  chmod +x "$as_me.lineno" ||
483    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
484   { (exit 1); exit 1; }; }
485
486  # Don't try to exec as it changes $[0], causing all sort of problems
487  # (the dirname of $[0] is not the place where we might find the
488  # original and so on.  Autoconf is especially sensitive to this).
489  . "./$as_me.lineno"
490  # Exit status is that of the last command.
491  exit
492}
493
494
495if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
496  as_dirname=dirname
497else
498  as_dirname=false
499fi
500
501ECHO_C= ECHO_N= ECHO_T=
502case `echo -n x` in
503-n*)
504  case `echo 'x\c'` in
505  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
506  *)   ECHO_C='\c';;
507  esac;;
508*)
509  ECHO_N='-n';;
510esac
511
512if expr a : '\(a\)' >/dev/null 2>&1 &&
513   test "X`expr 00001 : '.*\(...\)'`" = X001; then
514  as_expr=expr
515else
516  as_expr=false
517fi
518
519rm -f conf$$ conf$$.exe conf$$.file
520if test -d conf$$.dir; then
521  rm -f conf$$.dir/conf$$.file
522else
523  rm -f conf$$.dir
524  mkdir conf$$.dir
525fi
526echo >conf$$.file
527if ln -s conf$$.file conf$$ 2>/dev/null; then
528  as_ln_s='ln -s'
529  # ... but there are two gotchas:
530  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
531  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
532  # In both cases, we have to default to `cp -p'.
533  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
534    as_ln_s='cp -p'
535elif ln conf$$.file conf$$ 2>/dev/null; then
536  as_ln_s=ln
537else
538  as_ln_s='cp -p'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p=:
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550if test -x / >/dev/null 2>&1; then
551  as_test_x='test -x'
552else
553  if ls -dL / >/dev/null 2>&1; then
554    as_ls_L_option=L
555  else
556    as_ls_L_option=
557  fi
558  as_test_x='
559    eval sh -c '\''
560      if test -d "$1"; then
561        test -d "$1/.";
562      else
563	case $1 in
564        -*)set "./$1";;
565	esac;
566	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
567	???[sx]*):;;*)false;;esac;fi
568    '\'' sh
569  '
570fi
571as_executable_p=$as_test_x
572
573# Sed expression to map a string onto a valid CPP name.
574as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
575
576# Sed expression to map a string onto a valid variable name.
577as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
578
579
580
581
582# Check that we are running under the correct shell.
583SHELL=${CONFIG_SHELL-/bin/sh}
584
585case X$ECHO in
586X*--fallback-echo)
587  # Remove one level of quotation (which was required for Make).
588  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
589  ;;
590esac
591
592echo=${ECHO-echo}
593if test "X$1" = X--no-reexec; then
594  # Discard the --no-reexec flag, and continue.
595  shift
596elif test "X$1" = X--fallback-echo; then
597  # Avoid inline document here, it may be left over
598  :
599elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
600  # Yippee, $echo works!
601  :
602else
603  # Restart under the correct shell.
604  exec $SHELL "$0" --no-reexec ${1+"$@"}
605fi
606
607if test "X$1" = X--fallback-echo; then
608  # used as fallback echo
609  shift
610  cat <<EOF
611$*
612EOF
613  exit 0
614fi
615
616# The HP-UX ksh and POSIX shell print the target directory to stdout
617# if CDPATH is set.
618(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
619
620if test -z "$ECHO"; then
621if test "X${echo_test_string+set}" != Xset; then
622# find a string as large as possible, as long as the shell can cope with it
623  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
624    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
625    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
626       echo_test_string=`eval $cmd` &&
627       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
628    then
629      break
630    fi
631  done
632fi
633
634if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
635   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
636   test "X$echo_testing_string" = "X$echo_test_string"; then
637  :
638else
639  # The Solaris, AIX, and Digital Unix default echo programs unquote
640  # backslashes.  This makes it impossible to quote backslashes using
641  #   echo "$something" | sed 's/\\/\\\\/g'
642  #
643  # So, first we look for a working echo in the user's PATH.
644
645  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
646  for dir in $PATH /usr/ucb; do
647    IFS="$lt_save_ifs"
648    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
649       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
650       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
651       test "X$echo_testing_string" = "X$echo_test_string"; then
652      echo="$dir/echo"
653      break
654    fi
655  done
656  IFS="$lt_save_ifs"
657
658  if test "X$echo" = Xecho; then
659    # We didn't find a better echo, so look for alternatives.
660    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
661       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
662       test "X$echo_testing_string" = "X$echo_test_string"; then
663      # This shell has a builtin print -r that does the trick.
664      echo='print -r'
665    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
666	 test "X$CONFIG_SHELL" != X/bin/ksh; then
667      # If we have ksh, try running configure again with it.
668      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
669      export ORIGINAL_CONFIG_SHELL
670      CONFIG_SHELL=/bin/ksh
671      export CONFIG_SHELL
672      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
673    else
674      # Try using printf.
675      echo='printf %s\n'
676      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
677	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
678	 test "X$echo_testing_string" = "X$echo_test_string"; then
679	# Cool, printf works
680	:
681      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
682	   test "X$echo_testing_string" = 'X\t' &&
683	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
684	   test "X$echo_testing_string" = "X$echo_test_string"; then
685	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
686	export CONFIG_SHELL
687	SHELL="$CONFIG_SHELL"
688	export SHELL
689	echo="$CONFIG_SHELL $0 --fallback-echo"
690      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
691	   test "X$echo_testing_string" = 'X\t' &&
692	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
693	   test "X$echo_testing_string" = "X$echo_test_string"; then
694	echo="$CONFIG_SHELL $0 --fallback-echo"
695      else
696	# maybe with a smaller string...
697	prev=:
698
699	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
700	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
701	  then
702	    break
703	  fi
704	  prev="$cmd"
705	done
706
707	if test "$prev" != 'sed 50q "$0"'; then
708	  echo_test_string=`eval $prev`
709	  export echo_test_string
710	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
711	else
712	  # Oops.  We lost completely, so just stick with echo.
713	  echo=echo
714	fi
715      fi
716    fi
717  fi
718fi
719fi
720
721# Copy echo and quote the copy suitably for passing to libtool from
722# the Makefile, instead of quoting the original, which is used later.
723ECHO=$echo
724if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
725   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
726fi
727
728
729
730
731tagnames=${tagnames+${tagnames},}CXX
732
733tagnames=${tagnames+${tagnames},}F77
734
735exec 7<&0 </dev/null 6>&1
736
737# Name of the host.
738# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
739# so uname gets run too.
740ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
741
742#
743# Initializations.
744#
745ac_default_prefix=/usr/local
746ac_clean_files=
747ac_config_libobj_dir=.
748LIBOBJS=
749cross_compiling=no
750subdirs=
751MFLAGS=
752MAKEFLAGS=
753SHELL=${CONFIG_SHELL-/bin/sh}
754
755# Identity of this package.
756PACKAGE_NAME='ScriptSWF'
757PACKAGE_TARNAME='sswf'
758PACKAGE_VERSION='1.8.4'
759PACKAGE_STRING='ScriptSWF 1.8.4'
760PACKAGE_BUGREPORT='alexis@m2osw.com'
761
762# Factoring default headers for most tests.
763ac_includes_default="\
764#include <stdio.h>
765#ifdef HAVE_SYS_TYPES_H
766# include <sys/types.h>
767#endif
768#ifdef HAVE_SYS_STAT_H
769# include <sys/stat.h>
770#endif
771#ifdef STDC_HEADERS
772# include <stdlib.h>
773# include <stddef.h>
774#else
775# ifdef HAVE_STDLIB_H
776#  include <stdlib.h>
777# endif
778#endif
779#ifdef HAVE_STRING_H
780# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
781#  include <memory.h>
782# endif
783# include <string.h>
784#endif
785#ifdef HAVE_STRINGS_H
786# include <strings.h>
787#endif
788#ifdef HAVE_INTTYPES_H
789# include <inttypes.h>
790#endif
791#ifdef HAVE_STDINT_H
792# include <stdint.h>
793#endif
794#ifdef HAVE_UNISTD_H
795# include <unistd.h>
796#endif"
797
798ac_subst_vars='SHELL
799PATH_SEPARATOR
800PACKAGE_NAME
801PACKAGE_TARNAME
802PACKAGE_VERSION
803PACKAGE_STRING
804PACKAGE_BUGREPORT
805exec_prefix
806prefix
807program_transform_name
808bindir
809sbindir
810libexecdir
811datarootdir
812datadir
813sysconfdir
814sharedstatedir
815localstatedir
816includedir
817oldincludedir
818docdir
819infodir
820htmldir
821dvidir
822pdfdir
823psdir
824libdir
825localedir
826mandir
827DEFS
828ECHO_C
829ECHO_N
830ECHO_T
831LIBS
832build_alias
833host_alias
834target_alias
835INSTALL_PROGRAM
836INSTALL_SCRIPT
837INSTALL_DATA
838CYGPATH_W
839PACKAGE
840VERSION
841ACLOCAL
842AUTOCONF
843AUTOMAKE
844AUTOHEADER
845MAKEINFO
846install_sh
847STRIP
848INSTALL_STRIP_PROGRAM
849mkdir_p
850AWK
851SET_MAKE
852am__leading_dot
853AMTAR
854am__tar
855am__untar
856build
857build_cpu
858build_vendor
859build_os
860host
861host_cpu
862host_vendor
863host_os
864CC
865CFLAGS
866LDFLAGS
867CPPFLAGS
868ac_ct_CC
869EXEEXT
870OBJEXT
871DEPDIR
872am__include
873am__quote
874AMDEP_TRUE
875AMDEP_FALSE
876AMDEPBACKSLASH
877CCDEPMODE
878am__fastdepCC_TRUE
879am__fastdepCC_FALSE
880SED
881GREP
882EGREP
883LN_S
884ECHO
885AR
886RANLIB
887DSYMUTIL
888NMEDIT
889DLLTOOL
890AS
891OBJDUMP
892CPP
893CXX
894CXXFLAGS
895ac_ct_CXX
896CXXDEPMODE
897am__fastdepCXX_TRUE
898am__fastdepCXX_FALSE
899CXXCPP
900F77
901FFLAGS
902ac_ct_F77
903LIBTOOL
904YACC
905YFLAGS
906PLATFORM_WIN32_TRUE
907PLATFORM_WIN32_FALSE
908NO_UNDEFINED
909ICONV_LIBS
910JPEG_LIBS
911ZLIB_LIBS
912FREETYPE_LIBS
913FREETYPE_CFLAGS
914FREETYPE_CONFIG
915HAVE_FREETYPE_TRUE
916HAVE_FREETYPE_FALSE
917BUILD_WITH_INTERNAL_SCRIPTS_TRUE
918BUILD_WITH_INTERNAL_SCRIPTS_FALSE
919BUILD_NOTES_TO_HTML_TRUE
920BUILD_NOTES_TO_HTML_FALSE
921BUILD_CPP_TO_C_TRUE
922BUILD_CPP_TO_C_FALSE
923BUILD_ASC_TO_C_TRUE
924BUILD_ASC_TO_C_FALSE
925INSTALL_SSWF_DOCS_TRUE
926INSTALL_SSWF_DOCS_FALSE
927pkgconfigdir
928NOT_RPM_DOCS_TRUE
929NOT_RPM_DOCS_FALSE
930SAMPLES
931MISC
932TXTDOC
933HTMLDOC
934MANDOC
935ASCHEADERS
936LIBSSWF_VERSION
937LIBSSWFC_VERSION
938LIBSSWFAS_VERSION
939LIBSSWFASAS_VERSION
940LIBSSWFASC_VERSION
941LIBOBJS
942LTLIBOBJS'
943ac_subst_files=''
944      ac_precious_vars='build_alias
945host_alias
946target_alias
947CC
948CFLAGS
949LDFLAGS
950LIBS
951CPPFLAGS
952CPP
953CXX
954CXXFLAGS
955CCC
956CXXCPP
957F77
958FFLAGS
959YACC
960YFLAGS'
961
962
963# Initialize some variables set by options.
964ac_init_help=
965ac_init_version=false
966# The variables have the same names as the options, with
967# dashes changed to underlines.
968cache_file=/dev/null
969exec_prefix=NONE
970no_create=
971no_recursion=
972prefix=NONE
973program_prefix=NONE
974program_suffix=NONE
975program_transform_name=s,x,x,
976silent=
977site=
978srcdir=
979verbose=
980x_includes=NONE
981x_libraries=NONE
982
983# Installation directory options.
984# These are left unexpanded so users can "make install exec_prefix=/foo"
985# and all the variables that are supposed to be based on exec_prefix
986# by default will actually change.
987# Use braces instead of parens because sh, perl, etc. also accept them.
988# (The list follows the same order as the GNU Coding Standards.)
989bindir='${exec_prefix}/bin'
990sbindir='${exec_prefix}/sbin'
991libexecdir='${exec_prefix}/libexec'
992datarootdir='${prefix}/share'
993datadir='${datarootdir}'
994sysconfdir='${prefix}/etc'
995sharedstatedir='${prefix}/com'
996localstatedir='${prefix}/var'
997includedir='${prefix}/include'
998oldincludedir='/usr/include'
999docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000infodir='${datarootdir}/info'
1001htmldir='${docdir}'
1002dvidir='${docdir}'
1003pdfdir='${docdir}'
1004psdir='${docdir}'
1005libdir='${exec_prefix}/lib'
1006localedir='${datarootdir}/locale'
1007mandir='${datarootdir}/man'
1008
1009ac_prev=
1010ac_dashdash=
1011for ac_option
1012do
1013  # If the previous option needs an argument, assign it.
1014  if test -n "$ac_prev"; then
1015    eval $ac_prev=\$ac_option
1016    ac_prev=
1017    continue
1018  fi
1019
1020  case $ac_option in
1021  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022  *)	ac_optarg=yes ;;
1023  esac
1024
1025  # Accept the important Cygnus configure options, so we can diagnose typos.
1026
1027  case $ac_dashdash$ac_option in
1028  --)
1029    ac_dashdash=yes ;;
1030
1031  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032    ac_prev=bindir ;;
1033  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034    bindir=$ac_optarg ;;
1035
1036  -build | --build | --buil | --bui | --bu)
1037    ac_prev=build_alias ;;
1038  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039    build_alias=$ac_optarg ;;
1040
1041  -cache-file | --cache-file | --cache-fil | --cache-fi \
1042  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043    ac_prev=cache_file ;;
1044  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046    cache_file=$ac_optarg ;;
1047
1048  --config-cache | -C)
1049    cache_file=config.cache ;;
1050
1051  -datadir | --datadir | --datadi | --datad)
1052    ac_prev=datadir ;;
1053  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054    datadir=$ac_optarg ;;
1055
1056  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057  | --dataroo | --dataro | --datar)
1058    ac_prev=datarootdir ;;
1059  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061    datarootdir=$ac_optarg ;;
1062
1063  -disable-* | --disable-*)
1064    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065    # Reject names that are not valid shell variable names.
1066    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1068   { (exit 1); exit 1; }; }
1069    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1070    eval enable_$ac_feature=no ;;
1071
1072  -docdir | --docdir | --docdi | --doc | --do)
1073    ac_prev=docdir ;;
1074  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075    docdir=$ac_optarg ;;
1076
1077  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078    ac_prev=dvidir ;;
1079  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080    dvidir=$ac_optarg ;;
1081
1082  -enable-* | --enable-*)
1083    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084    # Reject names that are not valid shell variable names.
1085    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1086      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1087   { (exit 1); exit 1; }; }
1088    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1089    eval enable_$ac_feature=\$ac_optarg ;;
1090
1091  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093  | --exec | --exe | --ex)
1094    ac_prev=exec_prefix ;;
1095  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097  | --exec=* | --exe=* | --ex=*)
1098    exec_prefix=$ac_optarg ;;
1099
1100  -gas | --gas | --ga | --g)
1101    # Obsolete; use --with-gas.
1102    with_gas=yes ;;
1103
1104  -help | --help | --hel | --he | -h)
1105    ac_init_help=long ;;
1106  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107    ac_init_help=recursive ;;
1108  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109    ac_init_help=short ;;
1110
1111  -host | --host | --hos | --ho)
1112    ac_prev=host_alias ;;
1113  -host=* | --host=* | --hos=* | --ho=*)
1114    host_alias=$ac_optarg ;;
1115
1116  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117    ac_prev=htmldir ;;
1118  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119  | --ht=*)
1120    htmldir=$ac_optarg ;;
1121
1122  -includedir | --includedir | --includedi | --included | --include \
1123  | --includ | --inclu | --incl | --inc)
1124    ac_prev=includedir ;;
1125  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126  | --includ=* | --inclu=* | --incl=* | --inc=*)
1127    includedir=$ac_optarg ;;
1128
1129  -infodir | --infodir | --infodi | --infod | --info | --inf)
1130    ac_prev=infodir ;;
1131  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132    infodir=$ac_optarg ;;
1133
1134  -libdir | --libdir | --libdi | --libd)
1135    ac_prev=libdir ;;
1136  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137    libdir=$ac_optarg ;;
1138
1139  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140  | --libexe | --libex | --libe)
1141    ac_prev=libexecdir ;;
1142  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143  | --libexe=* | --libex=* | --libe=*)
1144    libexecdir=$ac_optarg ;;
1145
1146  -localedir | --localedir | --localedi | --localed | --locale)
1147    ac_prev=localedir ;;
1148  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149    localedir=$ac_optarg ;;
1150
1151  -localstatedir | --localstatedir | --localstatedi | --localstated \
1152  | --localstate | --localstat | --localsta | --localst | --locals)
1153    ac_prev=localstatedir ;;
1154  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156    localstatedir=$ac_optarg ;;
1157
1158  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159    ac_prev=mandir ;;
1160  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161    mandir=$ac_optarg ;;
1162
1163  -nfp | --nfp | --nf)
1164    # Obsolete; use --without-fp.
1165    with_fp=no ;;
1166
1167  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168  | --no-cr | --no-c | -n)
1169    no_create=yes ;;
1170
1171  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173    no_recursion=yes ;;
1174
1175  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177  | --oldin | --oldi | --old | --ol | --o)
1178    ac_prev=oldincludedir ;;
1179  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182    oldincludedir=$ac_optarg ;;
1183
1184  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185    ac_prev=prefix ;;
1186  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187    prefix=$ac_optarg ;;
1188
1189  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190  | --program-pre | --program-pr | --program-p)
1191    ac_prev=program_prefix ;;
1192  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194    program_prefix=$ac_optarg ;;
1195
1196  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197  | --program-suf | --program-su | --program-s)
1198    ac_prev=program_suffix ;;
1199  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201    program_suffix=$ac_optarg ;;
1202
1203  -program-transform-name | --program-transform-name \
1204  | --program-transform-nam | --program-transform-na \
1205  | --program-transform-n | --program-transform- \
1206  | --program-transform | --program-transfor \
1207  | --program-transfo | --program-transf \
1208  | --program-trans | --program-tran \
1209  | --progr-tra | --program-tr | --program-t)
1210    ac_prev=program_transform_name ;;
1211  -program-transform-name=* | --program-transform-name=* \
1212  | --program-transform-nam=* | --program-transform-na=* \
1213  | --program-transform-n=* | --program-transform-=* \
1214  | --program-transform=* | --program-transfor=* \
1215  | --program-transfo=* | --program-transf=* \
1216  | --program-trans=* | --program-tran=* \
1217  | --progr-tra=* | --program-tr=* | --program-t=*)
1218    program_transform_name=$ac_optarg ;;
1219
1220  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221    ac_prev=pdfdir ;;
1222  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223    pdfdir=$ac_optarg ;;
1224
1225  -psdir | --psdir | --psdi | --psd | --ps)
1226    ac_prev=psdir ;;
1227  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228    psdir=$ac_optarg ;;
1229
1230  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231  | -silent | --silent | --silen | --sile | --sil)
1232    silent=yes ;;
1233
1234  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235    ac_prev=sbindir ;;
1236  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237  | --sbi=* | --sb=*)
1238    sbindir=$ac_optarg ;;
1239
1240  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242  | --sharedst | --shareds | --shared | --share | --shar \
1243  | --sha | --sh)
1244    ac_prev=sharedstatedir ;;
1245  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248  | --sha=* | --sh=*)
1249    sharedstatedir=$ac_optarg ;;
1250
1251  -site | --site | --sit)
1252    ac_prev=site ;;
1253  -site=* | --site=* | --sit=*)
1254    site=$ac_optarg ;;
1255
1256  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257    ac_prev=srcdir ;;
1258  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259    srcdir=$ac_optarg ;;
1260
1261  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262  | --syscon | --sysco | --sysc | --sys | --sy)
1263    ac_prev=sysconfdir ;;
1264  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266    sysconfdir=$ac_optarg ;;
1267
1268  -target | --target | --targe | --targ | --tar | --ta | --t)
1269    ac_prev=target_alias ;;
1270  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271    target_alias=$ac_optarg ;;
1272
1273  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274    verbose=yes ;;
1275
1276  -version | --version | --versio | --versi | --vers | -V)
1277    ac_init_version=: ;;
1278
1279  -with-* | --with-*)
1280    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281    # Reject names that are not valid shell variable names.
1282    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283      { echo "$as_me: error: invalid package name: $ac_package" >&2
1284   { (exit 1); exit 1; }; }
1285    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1286    eval with_$ac_package=\$ac_optarg ;;
1287
1288  -without-* | --without-*)
1289    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290    # Reject names that are not valid shell variable names.
1291    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292      { echo "$as_me: error: invalid package name: $ac_package" >&2
1293   { (exit 1); exit 1; }; }
1294    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1295    eval with_$ac_package=no ;;
1296
1297  --x)
1298    # Obsolete; use --with-x.
1299    with_x=yes ;;
1300
1301  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302  | --x-incl | --x-inc | --x-in | --x-i)
1303    ac_prev=x_includes ;;
1304  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1306    x_includes=$ac_optarg ;;
1307
1308  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310    ac_prev=x_libraries ;;
1311  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1313    x_libraries=$ac_optarg ;;
1314
1315  -*) { echo "$as_me: error: unrecognized option: $ac_option
1316Try \`$0 --help' for more information." >&2
1317   { (exit 1); exit 1; }; }
1318    ;;
1319
1320  *=*)
1321    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322    # Reject names that are not valid shell variable names.
1323    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1324      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1325   { (exit 1); exit 1; }; }
1326    eval $ac_envvar=\$ac_optarg
1327    export $ac_envvar ;;
1328
1329  *)
1330    # FIXME: should be removed in autoconf 3.0.
1331    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1332    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1334    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1335    ;;
1336
1337  esac
1338done
1339
1340if test -n "$ac_prev"; then
1341  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1342  { echo "$as_me: error: missing argument to $ac_option" >&2
1343   { (exit 1); exit 1; }; }
1344fi
1345
1346# Be sure to have absolute directory names.
1347for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348		datadir sysconfdir sharedstatedir localstatedir includedir \
1349		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350		libdir localedir mandir
1351do
1352  eval ac_val=\$$ac_var
1353  case $ac_val in
1354    [\\/$]* | ?:[\\/]* )  continue;;
1355    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356  esac
1357  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1358   { (exit 1); exit 1; }; }
1359done
1360
1361# There might be people who depend on the old broken behavior: `$host'
1362# used to hold the argument of --host etc.
1363# FIXME: To remove some day.
1364build=$build_alias
1365host=$host_alias
1366target=$target_alias
1367
1368# FIXME: To remove some day.
1369if test "x$host_alias" != x; then
1370  if test "x$build_alias" = x; then
1371    cross_compiling=maybe
1372    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1373    If a cross compiler is detected then cross compile mode will be used." >&2
1374  elif test "x$build_alias" != "x$host_alias"; then
1375    cross_compiling=yes
1376  fi
1377fi
1378
1379ac_tool_prefix=
1380test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382test "$silent" = yes && exec 6>/dev/null
1383
1384
1385ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386ac_ls_di=`ls -di .` &&
1387ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388  { echo "$as_me: error: Working directory cannot be determined" >&2
1389   { (exit 1); exit 1; }; }
1390test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391  { echo "$as_me: error: pwd does not report name of working directory" >&2
1392   { (exit 1); exit 1; }; }
1393
1394
1395# Find the source files, if location was not specified.
1396if test -z "$srcdir"; then
1397  ac_srcdir_defaulted=yes
1398  # Try the directory containing this script, then the parent directory.
1399  ac_confdir=`$as_dirname -- "$0" ||
1400$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401	 X"$0" : 'X\(//\)[^/]' \| \
1402	 X"$0" : 'X\(//\)$' \| \
1403	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1404echo X"$0" |
1405    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406	    s//\1/
1407	    q
1408	  }
1409	  /^X\(\/\/\)[^/].*/{
1410	    s//\1/
1411	    q
1412	  }
1413	  /^X\(\/\/\)$/{
1414	    s//\1/
1415	    q
1416	  }
1417	  /^X\(\/\).*/{
1418	    s//\1/
1419	    q
1420	  }
1421	  s/.*/./; q'`
1422  srcdir=$ac_confdir
1423  if test ! -r "$srcdir/$ac_unique_file"; then
1424    srcdir=..
1425  fi
1426else
1427  ac_srcdir_defaulted=no
1428fi
1429if test ! -r "$srcdir/$ac_unique_file"; then
1430  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1432   { (exit 1); exit 1; }; }
1433fi
1434ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435ac_abs_confdir=`(
1436	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1437   { (exit 1); exit 1; }; }
1438	pwd)`
1439# When building in place, set srcdir=.
1440if test "$ac_abs_confdir" = "$ac_pwd"; then
1441  srcdir=.
1442fi
1443# Remove unnecessary trailing slashes from srcdir.
1444# Double slashes in file names in object file debugging info
1445# mess up M-x gdb in Emacs.
1446case $srcdir in
1447*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448esac
1449for ac_var in $ac_precious_vars; do
1450  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451  eval ac_env_${ac_var}_value=\$${ac_var}
1452  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454done
1455
1456#
1457# Report the --help message.
1458#
1459if test "$ac_init_help" = "long"; then
1460  # Omit some internal or obsolete options to make the list less imposing.
1461  # This message is too long to be a string in the A/UX 3.1 sh.
1462  cat <<_ACEOF
1463\`configure' configures ScriptSWF 1.8.4 to adapt to many kinds of systems.
1464
1465Usage: $0 [OPTION]... [VAR=VALUE]...
1466
1467To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468VAR=VALUE.  See below for descriptions of some of the useful variables.
1469
1470Defaults for the options are specified in brackets.
1471
1472Configuration:
1473  -h, --help              display this help and exit
1474      --help=short        display options specific to this package
1475      --help=recursive    display the short help of all the included packages
1476  -V, --version           display version information and exit
1477  -q, --quiet, --silent   do not print \`checking...' messages
1478      --cache-file=FILE   cache test results in FILE [disabled]
1479  -C, --config-cache      alias for \`--cache-file=config.cache'
1480  -n, --no-create         do not create output files
1481      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1482
1483Installation directories:
1484  --prefix=PREFIX         install architecture-independent files in PREFIX
1485			  [$ac_default_prefix]
1486  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1487			  [PREFIX]
1488
1489By default, \`make install' will install all the files in
1490\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1491an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492for instance \`--prefix=\$HOME'.
1493
1494For better control, use the options below.
1495
1496Fine tuning of the installation directories:
1497  --bindir=DIR           user executables [EPREFIX/bin]
1498  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1499  --libexecdir=DIR       program executables [EPREFIX/libexec]
1500  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1501  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1502  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1503  --libdir=DIR           object code libraries [EPREFIX/lib]
1504  --includedir=DIR       C header files [PREFIX/include]
1505  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1506  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1507  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1508  --infodir=DIR          info documentation [DATAROOTDIR/info]
1509  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1510  --mandir=DIR           man documentation [DATAROOTDIR/man]
1511  --docdir=DIR           documentation root [DATAROOTDIR/doc/sswf]
1512  --htmldir=DIR          html documentation [DOCDIR]
1513  --dvidir=DIR           dvi documentation [DOCDIR]
1514  --pdfdir=DIR           pdf documentation [DOCDIR]
1515  --psdir=DIR            ps documentation [DOCDIR]
1516_ACEOF
1517
1518  cat <<\_ACEOF
1519
1520Program names:
1521  --program-prefix=PREFIX            prepend PREFIX to installed program names
1522  --program-suffix=SUFFIX            append SUFFIX to installed program names
1523  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1524
1525System types:
1526  --build=BUILD     configure for building on BUILD [guessed]
1527  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1528_ACEOF
1529fi
1530
1531if test -n "$ac_init_help"; then
1532  case $ac_init_help in
1533     short | recursive ) echo "Configuration of ScriptSWF 1.8.4:";;
1534   esac
1535  cat <<\_ACEOF
1536
1537Optional Features:
1538  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1539  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1540  --enable-shared[=PKGS]  build shared libraries [default=yes]
1541  --enable-static[=PKGS]  build static libraries [default=yes]
1542  --enable-fast-install[=PKGS]
1543                          optimize for fast installation [default=yes]
1544  --disable-dependency-tracking  speeds up one-time build
1545  --enable-dependency-tracking   do not reject slow dependency extractors
1546  --disable-libtool-lock  avoid locking (might break parallel builds)
1547  --enable-internal-scripts
1548                          use the internal scripts from libsswf_asc instead of
1549                          the include/sswf/scripts/... (Default disabled)
1550  --enable-notes-to-html  creates the notes-to-html tool (default is disabled)
1551  --enable-cpp-to-c       creates the cpp-to-c tool (default is disabled)
1552  --enable-asc-to-c       creates the asc-to-c tool (default is disabled)
1553  --enable-docs           install documentations (default is enabled if docs
1554                          package installed along source code)
1555  --enable-rpm-docs       avoid installing the HTML from the Makefile, it is
1556                          done in the RPM specification file
1557  --enable-debug          enable debug (default is enabled)
1558  --enable-yydebug        enable yydebug (default is enabled)
1559
1560Optional Packages:
1561  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1562  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1563  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1564  --with-pic              try to use only PIC/non-PIC objects [default=use
1565                          both]
1566  --with-tags[=TAGS]      include additional configurations [automatic]
1567  --with-pkgconfigdir     Use specified pkgconfig directory (default is
1568                          libdir/pkgconfig)
1569
1570Some influential environment variables:
1571  CC          C compiler command
1572  CFLAGS      C compiler flags
1573  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1574              nonstandard directory <lib dir>
1575  LIBS        libraries to pass to the linker, e.g. -l<library>
1576  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1577              you have headers in a nonstandard directory <include dir>
1578  CPP         C preprocessor
1579  CXX         C++ compiler command
1580  CXXFLAGS    C++ compiler flags
1581  CXXCPP      C++ preprocessor
1582  F77         Fortran 77 compiler command
1583  FFLAGS      Fortran 77 compiler flags
1584  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1585              the first program found out of: `bison -y', `byacc', `yacc'.
1586  YFLAGS      The list of arguments that will be passed by default to $YACC.
1587              This script will default YFLAGS to the empty string to avoid a
1588              default value of `-d' given by some make applications.
1589
1590Use these variables to override the choices made by `configure' or to help
1591it to find libraries and programs with nonstandard names/locations.
1592
1593Report bugs to <alexis@m2osw.com>.
1594_ACEOF
1595ac_status=$?
1596fi
1597
1598if test "$ac_init_help" = "recursive"; then
1599  # If there are subdirs, report their specific --help.
1600  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1601    test -d "$ac_dir" || continue
1602    ac_builddir=.
1603
1604case "$ac_dir" in
1605.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606*)
1607  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1608  # A ".." for each directory in $ac_dir_suffix.
1609  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1610  case $ac_top_builddir_sub in
1611  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1613  esac ;;
1614esac
1615ac_abs_top_builddir=$ac_pwd
1616ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617# for backward compatibility:
1618ac_top_builddir=$ac_top_build_prefix
1619
1620case $srcdir in
1621  .)  # We are building in place.
1622    ac_srcdir=.
1623    ac_top_srcdir=$ac_top_builddir_sub
1624    ac_abs_top_srcdir=$ac_pwd ;;
1625  [\\/]* | ?:[\\/]* )  # Absolute name.
1626    ac_srcdir=$srcdir$ac_dir_suffix;
1627    ac_top_srcdir=$srcdir
1628    ac_abs_top_srcdir=$srcdir ;;
1629  *) # Relative name.
1630    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631    ac_top_srcdir=$ac_top_build_prefix$srcdir
1632    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1633esac
1634ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1635
1636    cd "$ac_dir" || { ac_status=$?; continue; }
1637    # Check for guested configure.
1638    if test -f "$ac_srcdir/configure.gnu"; then
1639      echo &&
1640      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641    elif test -f "$ac_srcdir/configure"; then
1642      echo &&
1643      $SHELL "$ac_srcdir/configure" --help=recursive
1644    else
1645      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646    fi || ac_status=$?
1647    cd "$ac_pwd" || { ac_status=$?; break; }
1648  done
1649fi
1650
1651test -n "$ac_init_help" && exit $ac_status
1652if $ac_init_version; then
1653  cat <<\_ACEOF
1654ScriptSWF configure 1.8.4
1655generated by GNU Autoconf 2.61
1656
1657Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16582002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1659This configure script is free software; the Free Software Foundation
1660gives unlimited permission to copy, distribute and modify it.
1661
1662Copyright (c) 2002-2009 Made to Order Software Corp.
1663
1664Permission is hereby granted, free of charge, to any
1665person obtaining a copy of this software and
1666associated documentation files (the "Software"), to
1667deal in the Software without restriction, including
1668without limitation the rights to use, copy, modify,
1669merge, publish, distribute, sublicense, and/or sell
1670copies of the Software, and to permit persons to whom
1671the Software is furnished to do so, subject to the
1672following conditions:
1673
1674The above copyright notice and this permission notice
1675shall be included in all copies or substantial
1676portions of the Software.
1677
1678THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
1679ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
1680LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
1681FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
1682EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
1683LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
1684WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
1685ARISING FROM, OUT OF OR IN CONNECTION WITH THE
1686SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1687SOFTWARE.
1688_ACEOF
1689  exit
1690fi
1691cat >config.log <<_ACEOF
1692This file contains any messages produced by compilers while
1693running configure, to aid debugging if configure makes a mistake.
1694
1695It was created by ScriptSWF $as_me 1.8.4, which was
1696generated by GNU Autoconf 2.61.  Invocation command line was
1697
1698  $ $0 $@
1699
1700_ACEOF
1701exec 5>>config.log
1702{
1703cat <<_ASUNAME
1704## --------- ##
1705## Platform. ##
1706## --------- ##
1707
1708hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1709uname -m = `(uname -m) 2>/dev/null || echo unknown`
1710uname -r = `(uname -r) 2>/dev/null || echo unknown`
1711uname -s = `(uname -s) 2>/dev/null || echo unknown`
1712uname -v = `(uname -v) 2>/dev/null || echo unknown`
1713
1714/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1715/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1716
1717/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1718/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1719/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1720/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1721/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1722/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1723/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1724
1725_ASUNAME
1726
1727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728for as_dir in $PATH
1729do
1730  IFS=$as_save_IFS
1731  test -z "$as_dir" && as_dir=.
1732  echo "PATH: $as_dir"
1733done
1734IFS=$as_save_IFS
1735
1736} >&5
1737
1738cat >&5 <<_ACEOF
1739
1740
1741## ----------- ##
1742## Core tests. ##
1743## ----------- ##
1744
1745_ACEOF
1746
1747
1748# Keep a trace of the command line.
1749# Strip out --no-create and --no-recursion so they do not pile up.
1750# Strip out --silent because we don't want to record it for future runs.
1751# Also quote any args containing shell meta-characters.
1752# Make two passes to allow for proper duplicate-argument suppression.
1753ac_configure_args=
1754ac_configure_args0=
1755ac_configure_args1=
1756ac_must_keep_next=false
1757for ac_pass in 1 2
1758do
1759  for ac_arg
1760  do
1761    case $ac_arg in
1762    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1763    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1764    | -silent | --silent | --silen | --sile | --sil)
1765      continue ;;
1766    *\'*)
1767      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1768    esac
1769    case $ac_pass in
1770    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1771    2)
1772      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1773      if test $ac_must_keep_next = true; then
1774	ac_must_keep_next=false # Got value, back to normal.
1775      else
1776	case $ac_arg in
1777	  *=* | --config-cache | -C | -disable-* | --disable-* \
1778	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1779	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1780	  | -with-* | --with-* | -without-* | --without-* | --x)
1781	    case "$ac_configure_args0 " in
1782	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1783	    esac
1784	    ;;
1785	  -* ) ac_must_keep_next=true ;;
1786	esac
1787      fi
1788      ac_configure_args="$ac_configure_args '$ac_arg'"
1789      ;;
1790    esac
1791  done
1792done
1793$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1794$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1795
1796# When interrupted or exit'd, cleanup temporary files, and complete
1797# config.log.  We remove comments because anyway the quotes in there
1798# would cause problems or look ugly.
1799# WARNING: Use '\'' to represent an apostrophe within the trap.
1800# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1801trap 'exit_status=$?
1802  # Save into config.log some information that might help in debugging.
1803  {
1804    echo
1805
1806    cat <<\_ASBOX
1807## ---------------- ##
1808## Cache variables. ##
1809## ---------------- ##
1810_ASBOX
1811    echo
1812    # The following way of writing the cache mishandles newlines in values,
1813(
1814  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1815    eval ac_val=\$$ac_var
1816    case $ac_val in #(
1817    *${as_nl}*)
1818      case $ac_var in #(
1819      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1820echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1821      esac
1822      case $ac_var in #(
1823      _ | IFS | as_nl) ;; #(
1824      *) $as_unset $ac_var ;;
1825      esac ;;
1826    esac
1827  done
1828  (set) 2>&1 |
1829    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1830    *${as_nl}ac_space=\ *)
1831      sed -n \
1832	"s/'\''/'\''\\\\'\'''\''/g;
1833	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1834      ;; #(
1835    *)
1836      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1837      ;;
1838    esac |
1839    sort
1840)
1841    echo
1842
1843    cat <<\_ASBOX
1844## ----------------- ##
1845## Output variables. ##
1846## ----------------- ##
1847_ASBOX
1848    echo
1849    for ac_var in $ac_subst_vars
1850    do
1851      eval ac_val=\$$ac_var
1852      case $ac_val in
1853      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854      esac
1855      echo "$ac_var='\''$ac_val'\''"
1856    done | sort
1857    echo
1858
1859    if test -n "$ac_subst_files"; then
1860      cat <<\_ASBOX
1861## ------------------- ##
1862## File substitutions. ##
1863## ------------------- ##
1864_ASBOX
1865      echo
1866      for ac_var in $ac_subst_files
1867      do
1868	eval ac_val=\$$ac_var
1869	case $ac_val in
1870	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1871	esac
1872	echo "$ac_var='\''$ac_val'\''"
1873      done | sort
1874      echo
1875    fi
1876
1877    if test -s confdefs.h; then
1878      cat <<\_ASBOX
1879## ----------- ##
1880## confdefs.h. ##
1881## ----------- ##
1882_ASBOX
1883      echo
1884      cat confdefs.h
1885      echo
1886    fi
1887    test "$ac_signal" != 0 &&
1888      echo "$as_me: caught signal $ac_signal"
1889    echo "$as_me: exit $exit_status"
1890  } >&5
1891  rm -f core *.core core.conftest.* &&
1892    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1893    exit $exit_status
1894' 0
1895for ac_signal in 1 2 13 15; do
1896  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1897done
1898ac_signal=0
1899
1900# confdefs.h avoids OS command line length limits that DEFS can exceed.
1901rm -f -r conftest* confdefs.h
1902
1903# Predefined preprocessor variables.
1904
1905cat >>confdefs.h <<_ACEOF
1906#define PACKAGE_NAME "$PACKAGE_NAME"
1907_ACEOF
1908
1909
1910cat >>confdefs.h <<_ACEOF
1911#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1912_ACEOF
1913
1914
1915cat >>confdefs.h <<_ACEOF
1916#define PACKAGE_VERSION "$PACKAGE_VERSION"
1917_ACEOF
1918
1919
1920cat >>confdefs.h <<_ACEOF
1921#define PACKAGE_STRING "$PACKAGE_STRING"
1922_ACEOF
1923
1924
1925cat >>confdefs.h <<_ACEOF
1926#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1927_ACEOF
1928
1929
1930# Let the site file select an alternate cache file if it wants to.
1931# Prefer explicitly selected file to automatically selected ones.
1932if test -n "$CONFIG_SITE"; then
1933  set x "$CONFIG_SITE"
1934elif test "x$prefix" != xNONE; then
1935  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1936else
1937  set x "$ac_default_prefix/share/config.site" \
1938	"$ac_default_prefix/etc/config.site"
1939fi
1940shift
1941for ac_site_file
1942do
1943  if test -r "$ac_site_file"; then
1944    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1945echo "$as_me: loading site script $ac_site_file" >&6;}
1946    sed 's/^/| /' "$ac_site_file" >&5
1947    . "$ac_site_file"
1948  fi
1949done
1950
1951if test -r "$cache_file"; then
1952  # Some versions of bash will fail to source /dev/null (special
1953  # files actually), so we avoid doing that.
1954  if test -f "$cache_file"; then
1955    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1956echo "$as_me: loading cache $cache_file" >&6;}
1957    case $cache_file in
1958      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1959      *)                      . "./$cache_file";;
1960    esac
1961  fi
1962else
1963  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1964echo "$as_me: creating cache $cache_file" >&6;}
1965  >$cache_file
1966fi
1967
1968# Check that the precious variables saved in the cache have kept the same
1969# value.
1970ac_cache_corrupted=false
1971for ac_var in $ac_precious_vars; do
1972  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1973  eval ac_new_set=\$ac_env_${ac_var}_set
1974  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1975  eval ac_new_val=\$ac_env_${ac_var}_value
1976  case $ac_old_set,$ac_new_set in
1977    set,)
1978      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1979echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1980      ac_cache_corrupted=: ;;
1981    ,set)
1982      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1983echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1984      ac_cache_corrupted=: ;;
1985    ,);;
1986    *)
1987      if test "x$ac_old_val" != "x$ac_new_val"; then
1988	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1989echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1990	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1991echo "$as_me:   former value:  $ac_old_val" >&2;}
1992	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1993echo "$as_me:   current value: $ac_new_val" >&2;}
1994	ac_cache_corrupted=:
1995      fi;;
1996  esac
1997  # Pass precious variables to config.status.
1998  if test "$ac_new_set" = set; then
1999    case $ac_new_val in
2000    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2001    *) ac_arg=$ac_var=$ac_new_val ;;
2002    esac
2003    case " $ac_configure_args " in
2004      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2005      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2006    esac
2007  fi
2008done
2009if $ac_cache_corrupted; then
2010  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2011echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2012  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2013echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2014   { (exit 1); exit 1; }; }
2015fi
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041ac_ext=c
2042ac_cpp='$CPP $CPPFLAGS'
2043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2045ac_compiler_gnu=$ac_cv_c_compiler_gnu
2046
2047
2048
2049
2050
2051
2052
2053
2054am__api_version="1.9"
2055ac_aux_dir=
2056for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2057  if test -f "$ac_dir/install-sh"; then
2058    ac_aux_dir=$ac_dir
2059    ac_install_sh="$ac_aux_dir/install-sh -c"
2060    break
2061  elif test -f "$ac_dir/install.sh"; then
2062    ac_aux_dir=$ac_dir
2063    ac_install_sh="$ac_aux_dir/install.sh -c"
2064    break
2065  elif test -f "$ac_dir/shtool"; then
2066    ac_aux_dir=$ac_dir
2067    ac_install_sh="$ac_aux_dir/shtool install -c"
2068    break
2069  fi
2070done
2071if test -z "$ac_aux_dir"; then
2072  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2073echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2074   { (exit 1); exit 1; }; }
2075fi
2076
2077# These three variables are undocumented and unsupported,
2078# and are intended to be withdrawn in a future Autoconf release.
2079# They can cause serious problems if a builder's source tree is in a directory
2080# whose full name contains unusual characters.
2081ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2082ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2083ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2084
2085
2086# Find a good install program.  We prefer a C program (faster),
2087# so one script is as good as another.  But avoid the broken or
2088# incompatible versions:
2089# SysV /etc/install, /usr/sbin/install
2090# SunOS /usr/etc/install
2091# IRIX /sbin/install
2092# AIX /bin/install
2093# AmigaOS /C/install, which installs bootblocks on floppy discs
2094# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2095# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2096# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2097# OS/2's system install, which has a completely different semantic
2098# ./install, which can be erroneously created by make from ./install.sh.
2099{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2100echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2101if test -z "$INSTALL"; then
2102if test "${ac_cv_path_install+set}" = set; then
2103  echo $ECHO_N "(cached) $ECHO_C" >&6
2104else
2105  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106for as_dir in $PATH
2107do
2108  IFS=$as_save_IFS
2109  test -z "$as_dir" && as_dir=.
2110  # Account for people who put trailing slashes in PATH elements.
2111case $as_dir/ in
2112  ./ | .// | /cC/* | \
2113  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2114  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2115  /usr/ucb/* ) ;;
2116  *)
2117    # OSF1 and SCO ODT 3.0 have their own names for install.
2118    # Don't use installbsd from OSF since it installs stuff as root
2119    # by default.
2120    for ac_prog in ginstall scoinst install; do
2121      for ac_exec_ext in '' $ac_executable_extensions; do
2122	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2123	  if test $ac_prog = install &&
2124	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2125	    # AIX install.  It has an incompatible calling convention.
2126	    :
2127	  elif test $ac_prog = install &&
2128	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2129	    # program-specific install script used by HP pwplus--don't use.
2130	    :
2131	  else
2132	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2133	    break 3
2134	  fi
2135	fi
2136      done
2137    done
2138    ;;
2139esac
2140done
2141IFS=$as_save_IFS
2142
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{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2156echo "${ECHO_T}$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{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2167echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&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      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2191alias in your environment" >&5
2192echo "$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   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2204Check your system clock" >&5
2205echo "$as_me: error: newly created file is older than distributed files!
2206Check your system clock" >&2;}
2207   { (exit 1); exit 1; }; }
2208fi
2209{ echo "$as_me:$LINENO: result: yes" >&5
2210echo "${ECHO_T}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 $.  echo might interpret backslashes.
2217# By default was `s,x,x', remove it if useless.
2218cat <<\_ACEOF >conftest.sed
2219s/[\\$]/&&/g;s/;s,x,x,$//
2220_ACEOF
2221program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2222rm -f conftest.sed
2223
2224# expand $ac_aux_dir to an absolute path
2225am_aux_dir=`cd $ac_aux_dir && pwd`
2226
2227test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2228# Use eval to expand $SHELL
2229if eval "$MISSING --run true"; then
2230  am_missing_run="$MISSING --run "
2231else
2232  am_missing_run=
2233  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2234echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2235fi
2236
2237if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2238  # We used to keeping the `.' as first argument, in order to
2239  # allow $(mkdir_p) to be used without argument.  As in
2240  #   $(mkdir_p) $(somedir)
2241  # where $(somedir) is conditionally defined.  However this is wrong
2242  # for two reasons:
2243  #  1. if the package is installed by a user who cannot write `.'
2244  #     make install will fail,
2245  #  2. the above comment should most certainly read
2246  #     $(mkdir_p) $(DESTDIR)$(somedir)
2247  #     so it does not work when $(somedir) is undefined and
2248  #     $(DESTDIR) is not.
2249  #  To support the latter case, we have to write
2250  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2251  #  so the `.' trick is pointless.
2252  mkdir_p='mkdir -p --'
2253else
2254  # On NextStep and OpenStep, the `mkdir' command does not
2255  # recognize any option.  It will interpret all options as
2256  # directories to create, and then abort because `.' already
2257  # exists.
2258  for d in ./-p ./--version;
2259  do
2260    test -d $d && rmdir $d
2261  done
2262  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2263  if test -f "$ac_aux_dir/mkinstalldirs"; then
2264    mkdir_p='$(mkinstalldirs)'
2265  else
2266    mkdir_p='$(install_sh) -d'
2267  fi
2268fi
2269
2270for ac_prog in gawk mawk nawk awk
2271do
2272  # Extract the first word of "$ac_prog", so it can be a program name with args.
2273set dummy $ac_prog; ac_word=$2
2274{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2276if test "${ac_cv_prog_AWK+set}" = set; then
2277  echo $ECHO_N "(cached) $ECHO_C" >&6
2278else
2279  if test -n "$AWK"; then
2280  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2281else
2282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283for as_dir in $PATH
2284do
2285  IFS=$as_save_IFS
2286  test -z "$as_dir" && as_dir=.
2287  for ac_exec_ext in '' $ac_executable_extensions; do
2288  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2289    ac_cv_prog_AWK="$ac_prog"
2290    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291    break 2
2292  fi
2293done
2294done
2295IFS=$as_save_IFS
2296
2297fi
2298fi
2299AWK=$ac_cv_prog_AWK
2300if test -n "$AWK"; then
2301  { echo "$as_me:$LINENO: result: $AWK" >&5
2302echo "${ECHO_T}$AWK" >&6; }
2303else
2304  { echo "$as_me:$LINENO: result: no" >&5
2305echo "${ECHO_T}no" >&6; }
2306fi
2307
2308
2309  test -n "$AWK" && break
2310done
2311
2312{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2313echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2314set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2315if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2316  echo $ECHO_N "(cached) $ECHO_C" >&6
2317else
2318  cat >conftest.make <<\_ACEOF
2319SHELL = /bin/sh
2320all:
2321	@echo '@@@%%%=$(MAKE)=@@@%%%'
2322_ACEOF
2323# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2324case `${MAKE-make} -f conftest.make 2>/dev/null` in
2325  *@@@%%%=?*=@@@%%%*)
2326    eval ac_cv_prog_make_${ac_make}_set=yes;;
2327  *)
2328    eval ac_cv_prog_make_${ac_make}_set=no;;
2329esac
2330rm -f conftest.make
2331fi
2332if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2333  { echo "$as_me:$LINENO: result: yes" >&5
2334echo "${ECHO_T}yes" >&6; }
2335  SET_MAKE=
2336else
2337  { echo "$as_me:$LINENO: result: no" >&5
2338echo "${ECHO_T}no" >&6; }
2339  SET_MAKE="MAKE=${MAKE-make}"
2340fi
2341
2342rm -rf .tst 2>/dev/null
2343mkdir .tst 2>/dev/null
2344if test -d .tst; then
2345  am__leading_dot=.
2346else
2347  am__leading_dot=_
2348fi
2349rmdir .tst 2>/dev/null
2350
2351# test to see if srcdir already configured
2352if test "`cd $srcdir && pwd`" != "`pwd`" &&
2353   test -f $srcdir/config.status; then
2354  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2355echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2356   { (exit 1); exit 1; }; }
2357fi
2358
2359# test whether we have cygpath
2360if test -z "$CYGPATH_W"; then
2361  if (cygpath --version) >/dev/null 2>/dev/null; then
2362    CYGPATH_W='cygpath -w'
2363  else
2364    CYGPATH_W=echo
2365  fi
2366fi
2367
2368
2369# Define the identity of the package.
2370 PACKAGE='sswf'
2371 VERSION='1.8.4'
2372
2373
2374cat >>confdefs.h <<_ACEOF
2375#define PACKAGE "$PACKAGE"
2376_ACEOF
2377
2378
2379cat >>confdefs.h <<_ACEOF
2380#define VERSION "$VERSION"
2381_ACEOF
2382
2383# Some tools Automake needs.
2384
2385ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2386
2387
2388AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2389
2390
2391AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2392
2393
2394AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2395
2396
2397MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2398
2399install_sh=${install_sh-"$am_aux_dir/install-sh"}
2400
2401# Installed binaries are usually stripped using `strip' when the user
2402# run `make install-strip'.  However `strip' might not be the right
2403# tool to use in cross-compilation environments, therefore Automake
2404# will honor the `STRIP' environment variable to overrule this program.
2405if test "$cross_compiling" != no; then
2406  if test -n "$ac_tool_prefix"; then
2407  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2408set dummy ${ac_tool_prefix}strip; ac_word=$2
2409{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2411if test "${ac_cv_prog_STRIP+set}" = set; then
2412  echo $ECHO_N "(cached) $ECHO_C" >&6
2413else
2414  if test -n "$STRIP"; then
2415  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2416else
2417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418for as_dir in $PATH
2419do
2420  IFS=$as_save_IFS
2421  test -z "$as_dir" && as_dir=.
2422  for ac_exec_ext in '' $ac_executable_extensions; do
2423  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2424    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2425    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426    break 2
2427  fi
2428done
2429done
2430IFS=$as_save_IFS
2431
2432fi
2433fi
2434STRIP=$ac_cv_prog_STRIP
2435if test -n "$STRIP"; then
2436  { echo "$as_me:$LINENO: result: $STRIP" >&5
2437echo "${ECHO_T}$STRIP" >&6; }
2438else
2439  { echo "$as_me:$LINENO: result: no" >&5
2440echo "${ECHO_T}no" >&6; }
2441fi
2442
2443
2444fi
2445if test -z "$ac_cv_prog_STRIP"; then
2446  ac_ct_STRIP=$STRIP
2447  # Extract the first word of "strip", so it can be a program name with args.
2448set dummy strip; ac_word=$2
2449{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2451if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2452  echo $ECHO_N "(cached) $ECHO_C" >&6
2453else
2454  if test -n "$ac_ct_STRIP"; then
2455  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2456else
2457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458for as_dir in $PATH
2459do
2460  IFS=$as_save_IFS
2461  test -z "$as_dir" && as_dir=.
2462  for ac_exec_ext in '' $ac_executable_extensions; do
2463  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2464    ac_cv_prog_ac_ct_STRIP="strip"
2465    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466    break 2
2467  fi
2468done
2469done
2470IFS=$as_save_IFS
2471
2472fi
2473fi
2474ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2475if test -n "$ac_ct_STRIP"; then
2476  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2477echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2478else
2479  { echo "$as_me:$LINENO: result: no" >&5
2480echo "${ECHO_T}no" >&6; }
2481fi
2482
2483  if test "x$ac_ct_STRIP" = x; then
2484    STRIP=":"
2485  else
2486    case $cross_compiling:$ac_tool_warned in
2487yes:)
2488{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2489whose name does not start with the host triplet.  If you think this
2490configuration is useful to you, please write to autoconf@gnu.org." >&5
2491echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2492whose name does not start with the host triplet.  If you think this
2493configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2494ac_tool_warned=yes ;;
2495esac
2496    STRIP=$ac_ct_STRIP
2497  fi
2498else
2499  STRIP="$ac_cv_prog_STRIP"
2500fi
2501
2502fi
2503INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2504
2505# We need awk for the "check" target.  The system "awk" is bad on
2506# some platforms.
2507# Always define AMTAR for backward compatibility.
2508
2509AMTAR=${AMTAR-"${am_missing_run}tar"}
2510
2511am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2512
2513
2514
2515
2516
2517
2518ALL_LINGUAS="en"
2519
2520
2521
2522# Check whether --enable-shared was given.
2523if test "${enable_shared+set}" = set; then
2524  enableval=$enable_shared; p=${PACKAGE-default}
2525    case $enableval in
2526    yes) enable_shared=yes ;;
2527    no) enable_shared=no ;;
2528    *)
2529      enable_shared=no
2530      # Look at the argument we got.  We use all the common list separators.
2531      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2532      for pkg in $enableval; do
2533	IFS="$lt_save_ifs"
2534	if test "X$pkg" = "X$p"; then
2535	  enable_shared=yes
2536	fi
2537      done
2538      IFS="$lt_save_ifs"
2539      ;;
2540    esac
2541else
2542  enable_shared=yes
2543fi
2544
2545
2546# Check whether --enable-static was given.
2547if test "${enable_static+set}" = set; then
2548  enableval=$enable_static; p=${PACKAGE-default}
2549    case $enableval in
2550    yes) enable_static=yes ;;
2551    no) enable_static=no ;;
2552    *)
2553     enable_static=no
2554      # Look at the argument we got.  We use all the common list separators.
2555      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2556      for pkg in $enableval; do
2557	IFS="$lt_save_ifs"
2558	if test "X$pkg" = "X$p"; then
2559	  enable_static=yes
2560	fi
2561      done
2562      IFS="$lt_save_ifs"
2563      ;;
2564    esac
2565else
2566  enable_static=yes
2567fi
2568
2569
2570# Check whether --enable-fast-install was given.
2571if test "${enable_fast_install+set}" = set; then
2572  enableval=$enable_fast_install; p=${PACKAGE-default}
2573    case $enableval in
2574    yes) enable_fast_install=yes ;;
2575    no) enable_fast_install=no ;;
2576    *)
2577      enable_fast_install=no
2578      # Look at the argument we got.  We use all the common list separators.
2579      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2580      for pkg in $enableval; do
2581	IFS="$lt_save_ifs"
2582	if test "X$pkg" = "X$p"; then
2583	  enable_fast_install=yes
2584	fi
2585      done
2586      IFS="$lt_save_ifs"
2587      ;;
2588    esac
2589else
2590  enable_fast_install=yes
2591fi
2592
2593
2594# Make sure we can run config.sub.
2595$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2596  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2597echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2598   { (exit 1); exit 1; }; }
2599
2600{ echo "$as_me:$LINENO: checking build system type" >&5
2601echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2602if test "${ac_cv_build+set}" = set; then
2603  echo $ECHO_N "(cached) $ECHO_C" >&6
2604else
2605  ac_build_alias=$build_alias
2606test "x$ac_build_alias" = x &&
2607  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2608test "x$ac_build_alias" = x &&
2609  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2610echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2611   { (exit 1); exit 1; }; }
2612ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2613  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2614echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2615   { (exit 1); exit 1; }; }
2616
2617fi
2618{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2619echo "${ECHO_T}$ac_cv_build" >&6; }
2620case $ac_cv_build in
2621*-*-*) ;;
2622*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2623echo "$as_me: error: invalid value of canonical build" >&2;}
2624   { (exit 1); exit 1; }; };;
2625esac
2626build=$ac_cv_build
2627ac_save_IFS=$IFS; IFS='-'
2628set x $ac_cv_build
2629shift
2630build_cpu=$1
2631build_vendor=$2
2632shift; shift
2633# Remember, the first character of IFS is used to create $*,
2634# except with old shells:
2635build_os=$*
2636IFS=$ac_save_IFS
2637case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2638
2639
2640{ echo "$as_me:$LINENO: checking host system type" >&5
2641echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2642if test "${ac_cv_host+set}" = set; then
2643  echo $ECHO_N "(cached) $ECHO_C" >&6
2644else
2645  if test "x$host_alias" = x; then
2646  ac_cv_host=$ac_cv_build
2647else
2648  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2649    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2650echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2651   { (exit 1); exit 1; }; }
2652fi
2653
2654fi
2655{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2656echo "${ECHO_T}$ac_cv_host" >&6; }
2657case $ac_cv_host in
2658*-*-*) ;;
2659*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2660echo "$as_me: error: invalid value of canonical host" >&2;}
2661   { (exit 1); exit 1; }; };;
2662esac
2663host=$ac_cv_host
2664ac_save_IFS=$IFS; IFS='-'
2665set x $ac_cv_host
2666shift
2667host_cpu=$1
2668host_vendor=$2
2669shift; shift
2670# Remember, the first character of IFS is used to create $*,
2671# except with old shells:
2672host_os=$*
2673IFS=$ac_save_IFS
2674case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2675
2676
2677DEPDIR="${am__leading_dot}deps"
2678
2679ac_config_commands="$ac_config_commands depfiles"
2680
2681
2682am_make=${MAKE-make}
2683cat > confinc << 'END'
2684am__doit:
2685	@echo done
2686.PHONY: am__doit
2687END
2688# If we don't find an include directive, just comment out the code.
2689{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2690echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2691am__include="#"
2692am__quote=
2693_am_result=none
2694# First try GNU make style include.
2695echo "include confinc" > confmf
2696# We grep out `Entering directory' and `Leaving directory'
2697# messages which can occur if `w' ends up in MAKEFLAGS.
2698# In particular we don't look at `^make:' because GNU make might
2699# be invoked under some other name (usually "gmake"), in which
2700# case it prints its new name instead of `make'.
2701if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2702   am__include=include
2703   am__quote=
2704   _am_result=GNU
2705fi
2706# Now try BSD make style include.
2707if test "$am__include" = "#"; then
2708   echo '.include "confinc"' > confmf
2709   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2710      am__include=.include
2711      am__quote="\""
2712      _am_result=BSD
2713   fi
2714fi
2715
2716
2717{ echo "$as_me:$LINENO: result: $_am_result" >&5
2718echo "${ECHO_T}$_am_result" >&6; }
2719rm -f confinc confmf
2720
2721# Check whether --enable-dependency-tracking was given.
2722if test "${enable_dependency_tracking+set}" = set; then
2723  enableval=$enable_dependency_tracking;
2724fi
2725
2726if test "x$enable_dependency_tracking" != xno; then
2727  am_depcomp="$ac_aux_dir/depcomp"
2728  AMDEPBACKSLASH='\'
2729fi
2730
2731
2732if test "x$enable_dependency_tracking" != xno; then
2733  AMDEP_TRUE=
2734  AMDEP_FALSE='#'
2735else
2736  AMDEP_TRUE='#'
2737  AMDEP_FALSE=
2738fi
2739
2740
2741
2742ac_ext=c
2743ac_cpp='$CPP $CPPFLAGS'
2744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747if test -n "$ac_tool_prefix"; then
2748  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2749set dummy ${ac_tool_prefix}gcc; ac_word=$2
2750{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2752if test "${ac_cv_prog_CC+set}" = set; then
2753  echo $ECHO_N "(cached) $ECHO_C" >&6
2754else
2755  if test -n "$CC"; then
2756  ac_cv_prog_CC="$CC" # Let the user override the test.
2757else
2758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759for as_dir in $PATH
2760do
2761  IFS=$as_save_IFS
2762  test -z "$as_dir" && as_dir=.
2763  for ac_exec_ext in '' $ac_executable_extensions; do
2764  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2765    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2766    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2767    break 2
2768  fi
2769done
2770done
2771IFS=$as_save_IFS
2772
2773fi
2774fi
2775CC=$ac_cv_prog_CC
2776if test -n "$CC"; then
2777  { echo "$as_me:$LINENO: result: $CC" >&5
2778echo "${ECHO_T}$CC" >&6; }
2779else
2780  { echo "$as_me:$LINENO: result: no" >&5
2781echo "${ECHO_T}no" >&6; }
2782fi
2783
2784
2785fi
2786if test -z "$ac_cv_prog_CC"; then
2787  ac_ct_CC=$CC
2788  # Extract the first word of "gcc", so it can be a program name with args.
2789set dummy gcc; ac_word=$2
2790{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2792if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2793  echo $ECHO_N "(cached) $ECHO_C" >&6
2794else
2795  if test -n "$ac_ct_CC"; then
2796  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2797else
2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799for as_dir in $PATH
2800do
2801  IFS=$as_save_IFS
2802  test -z "$as_dir" && as_dir=.
2803  for ac_exec_ext in '' $ac_executable_extensions; do
2804  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805    ac_cv_prog_ac_ct_CC="gcc"
2806    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807    break 2
2808  fi
2809done
2810done
2811IFS=$as_save_IFS
2812
2813fi
2814fi
2815ac_ct_CC=$ac_cv_prog_ac_ct_CC
2816if test -n "$ac_ct_CC"; then
2817  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2818echo "${ECHO_T}$ac_ct_CC" >&6; }
2819else
2820  { echo "$as_me:$LINENO: result: no" >&5
2821echo "${ECHO_T}no" >&6; }
2822fi
2823
2824  if test "x$ac_ct_CC" = x; then
2825    CC=""
2826  else
2827    case $cross_compiling:$ac_tool_warned in
2828yes:)
2829{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2830whose name does not start with the host triplet.  If you think this
2831configuration is useful to you, please write to autoconf@gnu.org." >&5
2832echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2833whose name does not start with the host triplet.  If you think this
2834configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2835ac_tool_warned=yes ;;
2836esac
2837    CC=$ac_ct_CC
2838  fi
2839else
2840  CC="$ac_cv_prog_CC"
2841fi
2842
2843if test -z "$CC"; then
2844          if test -n "$ac_tool_prefix"; then
2845    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2846set dummy ${ac_tool_prefix}cc; ac_word=$2
2847{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2849if test "${ac_cv_prog_CC+set}" = set; then
2850  echo $ECHO_N "(cached) $ECHO_C" >&6
2851else
2852  if test -n "$CC"; then
2853  ac_cv_prog_CC="$CC" # Let the user override the test.
2854else
2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856for as_dir in $PATH
2857do
2858  IFS=$as_save_IFS
2859  test -z "$as_dir" && as_dir=.
2860  for ac_exec_ext in '' $ac_executable_extensions; do
2861  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862    ac_cv_prog_CC="${ac_tool_prefix}cc"
2863    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864    break 2
2865  fi
2866done
2867done
2868IFS=$as_save_IFS
2869
2870fi
2871fi
2872CC=$ac_cv_prog_CC
2873if test -n "$CC"; then
2874  { echo "$as_me:$LINENO: result: $CC" >&5
2875echo "${ECHO_T}$CC" >&6; }
2876else
2877  { echo "$as_me:$LINENO: result: no" >&5
2878echo "${ECHO_T}no" >&6; }
2879fi
2880
2881
2882  fi
2883fi
2884if test -z "$CC"; then
2885  # Extract the first word of "cc", so it can be a program name with args.
2886set dummy cc; ac_word=$2
2887{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2889if test "${ac_cv_prog_CC+set}" = set; then
2890  echo $ECHO_N "(cached) $ECHO_C" >&6
2891else
2892  if test -n "$CC"; then
2893  ac_cv_prog_CC="$CC" # Let the user override the test.
2894else
2895  ac_prog_rejected=no
2896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897for as_dir in $PATH
2898do
2899  IFS=$as_save_IFS
2900  test -z "$as_dir" && as_dir=.
2901  for ac_exec_ext in '' $ac_executable_extensions; do
2902  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2904       ac_prog_rejected=yes
2905       continue
2906     fi
2907    ac_cv_prog_CC="cc"
2908    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2909    break 2
2910  fi
2911done
2912done
2913IFS=$as_save_IFS
2914
2915if test $ac_prog_rejected = yes; then
2916  # We found a bogon in the path, so make sure we never use it.
2917  set dummy $ac_cv_prog_CC
2918  shift
2919  if test $# != 0; then
2920    # We chose a different compiler from the bogus one.
2921    # However, it has the same basename, so the bogon will be chosen
2922    # first if we set CC to just the basename; use the full file name.
2923    shift
2924    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2925  fi
2926fi
2927fi
2928fi
2929CC=$ac_cv_prog_CC
2930if test -n "$CC"; then
2931  { echo "$as_me:$LINENO: result: $CC" >&5
2932echo "${ECHO_T}$CC" >&6; }
2933else
2934  { echo "$as_me:$LINENO: result: no" >&5
2935echo "${ECHO_T}no" >&6; }
2936fi
2937
2938
2939fi
2940if test -z "$CC"; then
2941  if test -n "$ac_tool_prefix"; then
2942  for ac_prog in cl.exe
2943  do
2944    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2945set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2946{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2948if test "${ac_cv_prog_CC+set}" = set; then
2949  echo $ECHO_N "(cached) $ECHO_C" >&6
2950else
2951  if test -n "$CC"; then
2952  ac_cv_prog_CC="$CC" # Let the user override the test.
2953else
2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957  IFS=$as_save_IFS
2958  test -z "$as_dir" && as_dir=.
2959  for ac_exec_ext in '' $ac_executable_extensions; do
2960  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2962    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963    break 2
2964  fi
2965done
2966done
2967IFS=$as_save_IFS
2968
2969fi
2970fi
2971CC=$ac_cv_prog_CC
2972if test -n "$CC"; then
2973  { echo "$as_me:$LINENO: result: $CC" >&5
2974echo "${ECHO_T}$CC" >&6; }
2975else
2976  { echo "$as_me:$LINENO: result: no" >&5
2977echo "${ECHO_T}no" >&6; }
2978fi
2979
2980
2981    test -n "$CC" && break
2982  done
2983fi
2984if test -z "$CC"; then
2985  ac_ct_CC=$CC
2986  for ac_prog in cl.exe
2987do
2988  # Extract the first word of "$ac_prog", so it can be a program name with args.
2989set dummy $ac_prog; ac_word=$2
2990{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2992if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2993  echo $ECHO_N "(cached) $ECHO_C" >&6
2994else
2995  if test -n "$ac_ct_CC"; then
2996  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2997else
2998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999for as_dir in $PATH
3000do
3001  IFS=$as_save_IFS
3002  test -z "$as_dir" && as_dir=.
3003  for ac_exec_ext in '' $ac_executable_extensions; do
3004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3005    ac_cv_prog_ac_ct_CC="$ac_prog"
3006    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3007    break 2
3008  fi
3009done
3010done
3011IFS=$as_save_IFS
3012
3013fi
3014fi
3015ac_ct_CC=$ac_cv_prog_ac_ct_CC
3016if test -n "$ac_ct_CC"; then
3017  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3018echo "${ECHO_T}$ac_ct_CC" >&6; }
3019else
3020  { echo "$as_me:$LINENO: result: no" >&5
3021echo "${ECHO_T}no" >&6; }
3022fi
3023
3024
3025  test -n "$ac_ct_CC" && break
3026done
3027
3028  if test "x$ac_ct_CC" = x; then
3029    CC=""
3030  else
3031    case $cross_compiling:$ac_tool_warned in
3032yes:)
3033{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3034whose name does not start with the host triplet.  If you think this
3035configuration is useful to you, please write to autoconf@gnu.org." >&5
3036echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3037whose name does not start with the host triplet.  If you think this
3038configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3039ac_tool_warned=yes ;;
3040esac
3041    CC=$ac_ct_CC
3042  fi
3043fi
3044
3045fi
3046
3047
3048test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3049See \`config.log' for more details." >&5
3050echo "$as_me: error: no acceptable C compiler found in \$PATH
3051See \`config.log' for more details." >&2;}
3052   { (exit 1); exit 1; }; }
3053
3054# Provide some information about the compiler.
3055echo "$as_me:$LINENO: checking for C compiler version" >&5
3056ac_compiler=`set X $ac_compile; echo $2`
3057{ (ac_try="$ac_compiler --version >&5"
3058case "(($ac_try" in
3059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060  *) ac_try_echo=$ac_try;;
3061esac
3062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063  (eval "$ac_compiler --version >&5") 2>&5
3064  ac_status=$?
3065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066  (exit $ac_status); }
3067{ (ac_try="$ac_compiler -v >&5"
3068case "(($ac_try" in
3069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070  *) ac_try_echo=$ac_try;;
3071esac
3072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073  (eval "$ac_compiler -v >&5") 2>&5
3074  ac_status=$?
3075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076  (exit $ac_status); }
3077{ (ac_try="$ac_compiler -V >&5"
3078case "(($ac_try" in
3079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080  *) ac_try_echo=$ac_try;;
3081esac
3082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083  (eval "$ac_compiler -V >&5") 2>&5
3084  ac_status=$?
3085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086  (exit $ac_status); }
3087
3088cat >conftest.$ac_ext <<_ACEOF
3089/* confdefs.h.  */
3090_ACEOF
3091cat confdefs.h >>conftest.$ac_ext
3092cat >>conftest.$ac_ext <<_ACEOF
3093/* end confdefs.h.  */
3094
3095int
3096main ()
3097{
3098
3099  ;
3100  return 0;
3101}
3102_ACEOF
3103ac_clean_files_save=$ac_clean_files
3104ac_clean_files="$ac_clean_files a.out a.exe b.out"
3105# Try to create an executable without -o first, disregard a.out.
3106# It will help us diagnose broken compilers, and finding out an intuition
3107# of exeext.
3108{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3109echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3110ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3111#
3112# List of possible output files, starting from the most likely.
3113# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3114# only as a last resort.  b.out is created by i960 compilers.
3115ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3116#
3117# The IRIX 6 linker writes into existing files which may not be
3118# executable, retaining their permissions.  Remove them first so a
3119# subsequent execution test works.
3120ac_rmfiles=
3121for ac_file in $ac_files
3122do
3123  case $ac_file in
3124    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3125    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3126  esac
3127done
3128rm -f $ac_rmfiles
3129
3130if { (ac_try="$ac_link_default"
3131case "(($ac_try" in
3132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133  *) ac_try_echo=$ac_try;;
3134esac
3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136  (eval "$ac_link_default") 2>&5
3137  ac_status=$?
3138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139  (exit $ac_status); }; then
3140  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3141# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3142# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3143# so that the user can short-circuit this test for compilers unknown to
3144# Autoconf.
3145for ac_file in $ac_files ''
3146do
3147  test -f "$ac_file" || continue
3148  case $ac_file in
3149    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3150	;;
3151    [ab].out )
3152	# We found the default executable, but exeext='' is most
3153	# certainly right.
3154	break;;
3155    *.* )
3156        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3157	then :; else
3158	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3159	fi
3160	# We set ac_cv_exeext here because the later test for it is not
3161	# safe: cross compilers may not add the suffix if given an `-o'
3162	# argument, so we may need to know it at that point already.
3163	# Even if this section looks crufty: it has the advantage of
3164	# actually working.
3165	break;;
3166    * )
3167	break;;
3168  esac
3169done
3170test "$ac_cv_exeext" = no && ac_cv_exeext=
3171
3172else
3173  ac_file=''
3174fi
3175
3176{ echo "$as_me:$LINENO: result: $ac_file" >&5
3177echo "${ECHO_T}$ac_file" >&6; }
3178if test -z "$ac_file"; then
3179  echo "$as_me: failed program was:" >&5
3180sed 's/^/| /' conftest.$ac_ext >&5
3181
3182{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3183See \`config.log' for more details." >&5
3184echo "$as_me: error: C compiler cannot create executables
3185See \`config.log' for more details." >&2;}
3186   { (exit 77); exit 77; }; }
3187fi
3188
3189ac_exeext=$ac_cv_exeext
3190
3191# Check that the compiler produces executables we can run.  If not, either
3192# the compiler is broken, or we cross compile.
3193{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3194echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3195# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3196# If not cross compiling, check that we can run a simple program.
3197if test "$cross_compiling" != yes; then
3198  if { ac_try='./$ac_file'
3199  { (case "(($ac_try" in
3200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201  *) ac_try_echo=$ac_try;;
3202esac
3203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204  (eval "$ac_try") 2>&5
3205  ac_status=$?
3206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207  (exit $ac_status); }; }; then
3208    cross_compiling=no
3209  else
3210    if test "$cross_compiling" = maybe; then
3211	cross_compiling=yes
3212    else
3213	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3214If you meant to cross compile, use \`--host'.
3215See \`config.log' for more details." >&5
3216echo "$as_me: error: cannot run C compiled programs.
3217If you meant to cross compile, use \`--host'.
3218See \`config.log' for more details." >&2;}
3219   { (exit 1); exit 1; }; }
3220    fi
3221  fi
3222fi
3223{ echo "$as_me:$LINENO: result: yes" >&5
3224echo "${ECHO_T}yes" >&6; }
3225
3226rm -f a.out a.exe conftest$ac_cv_exeext b.out
3227ac_clean_files=$ac_clean_files_save
3228# Check that the compiler produces executables we can run.  If not, either
3229# the compiler is broken, or we cross compile.
3230{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3231echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3232{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3233echo "${ECHO_T}$cross_compiling" >&6; }
3234
3235{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3236echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3237if { (ac_try="$ac_link"
3238case "(($ac_try" in
3239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240  *) ac_try_echo=$ac_try;;
3241esac
3242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243  (eval "$ac_link") 2>&5
3244  ac_status=$?
3245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246  (exit $ac_status); }; then
3247  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3248# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3249# work properly (i.e., refer to `conftest.exe'), while it won't with
3250# `rm'.
3251for ac_file in conftest.exe conftest conftest.*; do
3252  test -f "$ac_file" || continue
3253  case $ac_file in
3254    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3255    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3256	  break;;
3257    * ) break;;
3258  esac
3259done
3260else
3261  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3262See \`config.log' for more details." >&5
3263echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3264See \`config.log' for more details." >&2;}
3265   { (exit 1); exit 1; }; }
3266fi
3267
3268rm -f conftest$ac_cv_exeext
3269{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3270echo "${ECHO_T}$ac_cv_exeext" >&6; }
3271
3272rm -f conftest.$ac_ext
3273EXEEXT=$ac_cv_exeext
3274ac_exeext=$EXEEXT
3275{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3276echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3277if test "${ac_cv_objext+set}" = set; then
3278  echo $ECHO_N "(cached) $ECHO_C" >&6
3279else
3280  cat >conftest.$ac_ext <<_ACEOF
3281/* confdefs.h.  */
3282_ACEOF
3283cat confdefs.h >>conftest.$ac_ext
3284cat >>conftest.$ac_ext <<_ACEOF
3285/* end confdefs.h.  */
3286
3287int
3288main ()
3289{
3290
3291  ;
3292  return 0;
3293}
3294_ACEOF
3295rm -f conftest.o conftest.obj
3296if { (ac_try="$ac_compile"
3297case "(($ac_try" in
3298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299  *) ac_try_echo=$ac_try;;
3300esac
3301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302  (eval "$ac_compile") 2>&5
3303  ac_status=$?
3304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305  (exit $ac_status); }; then
3306  for ac_file in conftest.o conftest.obj conftest.*; do
3307  test -f "$ac_file" || continue;
3308  case $ac_file in
3309    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3310    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3311       break;;
3312  esac
3313done
3314else
3315  echo "$as_me: failed program was:" >&5
3316sed 's/^/| /' conftest.$ac_ext >&5
3317
3318{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3319See \`config.log' for more details." >&5
3320echo "$as_me: error: cannot compute suffix of object files: cannot compile
3321See \`config.log' for more details." >&2;}
3322   { (exit 1); exit 1; }; }
3323fi
3324
3325rm -f conftest.$ac_cv_objext conftest.$ac_ext
3326fi
3327{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3328echo "${ECHO_T}$ac_cv_objext" >&6; }
3329OBJEXT=$ac_cv_objext
3330ac_objext=$OBJEXT
3331{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3332echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3333if test "${ac_cv_c_compiler_gnu+set}" = set; then
3334  echo $ECHO_N "(cached) $ECHO_C" >&6
3335else
3336  cat >conftest.$ac_ext <<_ACEOF
3337/* confdefs.h.  */
3338_ACEOF
3339cat confdefs.h >>conftest.$ac_ext
3340cat >>conftest.$ac_ext <<_ACEOF
3341/* end confdefs.h.  */
3342
3343int
3344main ()
3345{
3346#ifndef __GNUC__
3347       choke me
3348#endif
3349
3350  ;
3351  return 0;
3352}
3353_ACEOF
3354rm -f conftest.$ac_objext
3355if { (ac_try="$ac_compile"
3356case "(($ac_try" in
3357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358  *) ac_try_echo=$ac_try;;
3359esac
3360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361  (eval "$ac_compile") 2>conftest.er1
3362  ac_status=$?
3363  grep -v '^ *+' conftest.er1 >conftest.err
3364  rm -f conftest.er1
3365  cat conftest.err >&5
3366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367  (exit $ac_status); } && {
3368	 test -z "$ac_c_werror_flag" ||
3369	 test ! -s conftest.err
3370       } && test -s conftest.$ac_objext; then
3371  ac_compiler_gnu=yes
3372else
3373  echo "$as_me: failed program was:" >&5
3374sed 's/^/| /' conftest.$ac_ext >&5
3375
3376	ac_compiler_gnu=no
3377fi
3378
3379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380ac_cv_c_compiler_gnu=$ac_compiler_gnu
3381
3382fi
3383{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3384echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3385GCC=`test $ac_compiler_gnu = yes && echo yes`
3386ac_test_CFLAGS=${CFLAGS+set}
3387ac_save_CFLAGS=$CFLAGS
3388{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3389echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3390if test "${ac_cv_prog_cc_g+set}" = set; then
3391  echo $ECHO_N "(cached) $ECHO_C" >&6
3392else
3393  ac_save_c_werror_flag=$ac_c_werror_flag
3394   ac_c_werror_flag=yes
3395   ac_cv_prog_cc_g=no
3396   CFLAGS="-g"
3397   cat >conftest.$ac_ext <<_ACEOF
3398/* confdefs.h.  */
3399_ACEOF
3400cat confdefs.h >>conftest.$ac_ext
3401cat >>conftest.$ac_ext <<_ACEOF
3402/* end confdefs.h.  */
3403
3404int
3405main ()
3406{
3407
3408  ;
3409  return 0;
3410}
3411_ACEOF
3412rm -f conftest.$ac_objext
3413if { (ac_try="$ac_compile"
3414case "(($ac_try" in
3415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416  *) ac_try_echo=$ac_try;;
3417esac
3418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419  (eval "$ac_compile") 2>conftest.er1
3420  ac_status=$?
3421  grep -v '^ *+' conftest.er1 >conftest.err
3422  rm -f conftest.er1
3423  cat conftest.err >&5
3424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425  (exit $ac_status); } && {
3426	 test -z "$ac_c_werror_flag" ||
3427	 test ! -s conftest.err
3428       } && test -s conftest.$ac_objext; then
3429  ac_cv_prog_cc_g=yes
3430else
3431  echo "$as_me: failed program was:" >&5
3432sed 's/^/| /' conftest.$ac_ext >&5
3433
3434	CFLAGS=""
3435      cat >conftest.$ac_ext <<_ACEOF
3436/* confdefs.h.  */
3437_ACEOF
3438cat confdefs.h >>conftest.$ac_ext
3439cat >>conftest.$ac_ext <<_ACEOF
3440/* end confdefs.h.  */
3441
3442int
3443main ()
3444{
3445
3446  ;
3447  return 0;
3448}
3449_ACEOF
3450rm -f conftest.$ac_objext
3451if { (ac_try="$ac_compile"
3452case "(($ac_try" in
3453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454  *) ac_try_echo=$ac_try;;
3455esac
3456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3457  (eval "$ac_compile") 2>conftest.er1
3458  ac_status=$?
3459  grep -v '^ *+' conftest.er1 >conftest.err
3460  rm -f conftest.er1
3461  cat conftest.err >&5
3462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463  (exit $ac_status); } && {
3464	 test -z "$ac_c_werror_flag" ||
3465	 test ! -s conftest.err
3466       } && test -s conftest.$ac_objext; then
3467  :
3468else
3469  echo "$as_me: failed program was:" >&5
3470sed 's/^/| /' conftest.$ac_ext >&5
3471
3472	ac_c_werror_flag=$ac_save_c_werror_flag
3473	 CFLAGS="-g"
3474	 cat >conftest.$ac_ext <<_ACEOF
3475/* confdefs.h.  */
3476_ACEOF
3477cat confdefs.h >>conftest.$ac_ext
3478cat >>conftest.$ac_ext <<_ACEOF
3479/* end confdefs.h.  */
3480
3481int
3482main ()
3483{
3484
3485  ;
3486  return 0;
3487}
3488_ACEOF
3489rm -f conftest.$ac_objext
3490if { (ac_try="$ac_compile"
3491case "(($ac_try" in
3492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493  *) ac_try_echo=$ac_try;;
3494esac
3495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496  (eval "$ac_compile") 2>conftest.er1
3497  ac_status=$?
3498  grep -v '^ *+' conftest.er1 >conftest.err
3499  rm -f conftest.er1
3500  cat conftest.err >&5
3501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502  (exit $ac_status); } && {
3503	 test -z "$ac_c_werror_flag" ||
3504	 test ! -s conftest.err
3505       } && test -s conftest.$ac_objext; then
3506  ac_cv_prog_cc_g=yes
3507else
3508  echo "$as_me: failed program was:" >&5
3509sed 's/^/| /' conftest.$ac_ext >&5
3510
3511
3512fi
3513
3514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515fi
3516
3517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518fi
3519
3520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521   ac_c_werror_flag=$ac_save_c_werror_flag
3522fi
3523{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3524echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3525if test "$ac_test_CFLAGS" = set; then
3526  CFLAGS=$ac_save_CFLAGS
3527elif test $ac_cv_prog_cc_g = yes; then
3528  if test "$GCC" = yes; then
3529    CFLAGS="-g -O2"
3530  else
3531    CFLAGS="-g"
3532  fi
3533else
3534  if test "$GCC" = yes; then
3535    CFLAGS="-O2"
3536  else
3537    CFLAGS=
3538  fi
3539fi
3540{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3541echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3542if test "${ac_cv_prog_cc_c89+set}" = set; then
3543  echo $ECHO_N "(cached) $ECHO_C" >&6
3544else
3545  ac_cv_prog_cc_c89=no
3546ac_save_CC=$CC
3547cat >conftest.$ac_ext <<_ACEOF
3548/* confdefs.h.  */
3549_ACEOF
3550cat confdefs.h >>conftest.$ac_ext
3551cat >>conftest.$ac_ext <<_ACEOF
3552/* end confdefs.h.  */
3553#include <stdarg.h>
3554#include <stdio.h>
3555#include <sys/types.h>
3556#include <sys/stat.h>
3557/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3558struct buf { int x; };
3559FILE * (*rcsopen) (struct buf *, struct stat *, int);
3560static char *e (p, i)
3561     char **p;
3562     int i;
3563{
3564  return p[i];
3565}
3566static char *f (char * (*g) (char **, int), char **p, ...)
3567{
3568  char *s;
3569  va_list v;
3570  va_start (v,p);
3571  s = g (p, va_arg (v,int));
3572  va_end (v);
3573  return s;
3574}
3575
3576/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3577   function prototypes and stuff, but not '\xHH' hex character constants.
3578   These don't provoke an error unfortunately, instead are silently treated
3579   as 'x'.  The following induces an error, until -std is added to get
3580   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3581   array size at least.  It's necessary to write '\x00'==0 to get something
3582   that's true only with -std.  */
3583int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3584
3585/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3586   inside strings and character constants.  */
3587#define FOO(x) 'x'
3588int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3589
3590int test (int i, double x);
3591struct s1 {int (*f) (int a);};
3592struct s2 {int (*f) (double a);};
3593int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3594int argc;
3595char **argv;
3596int
3597main ()
3598{
3599return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3600  ;
3601  return 0;
3602}
3603_ACEOF
3604for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3605	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3606do
3607  CC="$ac_save_CC $ac_arg"
3608  rm -f conftest.$ac_objext
3609if { (ac_try="$ac_compile"
3610case "(($ac_try" in
3611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612  *) ac_try_echo=$ac_try;;
3613esac
3614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615  (eval "$ac_compile") 2>conftest.er1
3616  ac_status=$?
3617  grep -v '^ *+' conftest.er1 >conftest.err
3618  rm -f conftest.er1
3619  cat conftest.err >&5
3620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621  (exit $ac_status); } && {
3622	 test -z "$ac_c_werror_flag" ||
3623	 test ! -s conftest.err
3624       } && test -s conftest.$ac_objext; then
3625  ac_cv_prog_cc_c89=$ac_arg
3626else
3627  echo "$as_me: failed program was:" >&5
3628sed 's/^/| /' conftest.$ac_ext >&5
3629
3630
3631fi
3632
3633rm -f core conftest.err conftest.$ac_objext
3634  test "x$ac_cv_prog_cc_c89" != "xno" && break
3635done
3636rm -f conftest.$ac_ext
3637CC=$ac_save_CC
3638
3639fi
3640# AC_CACHE_VAL
3641case "x$ac_cv_prog_cc_c89" in
3642  x)
3643    { echo "$as_me:$LINENO: result: none needed" >&5
3644echo "${ECHO_T}none needed" >&6; } ;;
3645  xno)
3646    { echo "$as_me:$LINENO: result: unsupported" >&5
3647echo "${ECHO_T}unsupported" >&6; } ;;
3648  *)
3649    CC="$CC $ac_cv_prog_cc_c89"
3650    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3651echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3652esac
3653
3654
3655ac_ext=c
3656ac_cpp='$CPP $CPPFLAGS'
3657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659ac_compiler_gnu=$ac_cv_c_compiler_gnu
3660
3661depcc="$CC"   am_compiler_list=
3662
3663{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3664echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3665if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3666  echo $ECHO_N "(cached) $ECHO_C" >&6
3667else
3668  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3669  # We make a subdir and do the tests there.  Otherwise we can end up
3670  # making bogus files that we don't know about and never remove.  For
3671  # instance it was reported that on HP-UX the gcc test will end up
3672  # making a dummy file named `D' -- because `-MD' means `put the output
3673  # in D'.
3674  mkdir conftest.dir
3675  # Copy depcomp to subdir because otherwise we won't find it if we're
3676  # using a relative directory.
3677  cp "$am_depcomp" conftest.dir
3678  cd conftest.dir
3679  # We will build objects and dependencies in a subdirectory because
3680  # it helps to detect inapplicable dependency modes.  For instance
3681  # both Tru64's cc and ICC support -MD to output dependencies as a
3682  # side effect of compilation, but ICC will put the dependencies in
3683  # the current directory while Tru64 will put them in the object
3684  # directory.
3685  mkdir sub
3686
3687  am_cv_CC_dependencies_compiler_type=none
3688  if test "$am_compiler_list" = ""; then
3689     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3690  fi
3691  for depmode in $am_compiler_list; do
3692    # Setup a source with many dependencies, because some compilers
3693    # like to wrap large dependency lists on column 80 (with \), and
3694    # we should not choose a depcomp mode which is confused by this.
3695    #
3696    # We need to recreate these files for each test, as the compiler may
3697    # overwrite some of them when testing with obscure command lines.
3698    # This happens at least with the AIX C compiler.
3699    : > sub/conftest.c
3700    for i in 1 2 3 4 5 6; do
3701      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3702      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3703      # Solaris 8's {/usr,}/bin/sh.
3704      touch sub/conftst$i.h
3705    done
3706    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3707
3708    case $depmode in
3709    nosideeffect)
3710      # after this tag, mechanisms are not by side-effect, so they'll
3711      # only be used when explicitly requested
3712      if test "x$enable_dependency_tracking" = xyes; then
3713	continue
3714      else
3715	break
3716      fi
3717      ;;
3718    none) break ;;
3719    esac
3720    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3721    # mode.  It turns out that the SunPro C++ compiler does not properly
3722    # handle `-M -o', and we need to detect this.
3723    if depmode=$depmode \
3724       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3725       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3726       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3727         >/dev/null 2>conftest.err &&
3728       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3729       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3730       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3731      # icc doesn't choke on unknown options, it will just issue warnings
3732      # or remarks (even with -Werror).  So we grep stderr for any message
3733      # that says an option was ignored or not supported.
3734      # When given -MP, icc 7.0 and 7.1 complain thusly:
3735      #   icc: Command line warning: ignoring option '-M'; no argument required
3736      # The diagnosis changed in icc 8.0:
3737      #   icc: Command line remark: option '-MP' not supported
3738      if (grep 'ignoring option' conftest.err ||
3739          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3740        am_cv_CC_dependencies_compiler_type=$depmode
3741        break
3742      fi
3743    fi
3744  done
3745
3746  cd ..
3747  rm -rf conftest.dir
3748else
3749  am_cv_CC_dependencies_compiler_type=none
3750fi
3751
3752fi
3753{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3754echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3755CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3756
3757
3758
3759if
3760  test "x$enable_dependency_tracking" != xno \
3761  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3762  am__fastdepCC_TRUE=
3763  am__fastdepCC_FALSE='#'
3764else
3765  am__fastdepCC_TRUE='#'
3766  am__fastdepCC_FALSE=
3767fi
3768
3769
3770{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3771echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3772if test "${lt_cv_path_SED+set}" = set; then
3773  echo $ECHO_N "(cached) $ECHO_C" >&6
3774else
3775  # Loop through the user's path and test for sed and gsed.
3776# Then use that list of sed's as ones to test for truncation.
3777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778for as_dir in $PATH
3779do
3780  IFS=$as_save_IFS
3781  test -z "$as_dir" && as_dir=.
3782  for lt_ac_prog in sed gsed; do
3783    for ac_exec_ext in '' $ac_executable_extensions; do
3784      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3785        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3786      fi
3787    done
3788  done
3789done
3790IFS=$as_save_IFS
3791lt_ac_max=0
3792lt_ac_count=0
3793# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3794# along with /bin/sed that truncates output.
3795for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3796  test ! -f $lt_ac_sed && continue
3797  cat /dev/null > conftest.in
3798  lt_ac_count=0
3799  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3800  # Check for GNU sed and select it if it is found.
3801  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3802    lt_cv_path_SED=$lt_ac_sed
3803    break
3804  fi
3805  while true; do
3806    cat conftest.in conftest.in >conftest.tmp
3807    mv conftest.tmp conftest.in
3808    cp conftest.in conftest.nl
3809    echo >>conftest.nl
3810    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3811    cmp -s conftest.out conftest.nl || break
3812    # 10000 chars as input seems more than enough
3813    test $lt_ac_count -gt 10 && break
3814    lt_ac_count=`expr $lt_ac_count + 1`
3815    if test $lt_ac_count -gt $lt_ac_max; then
3816      lt_ac_max=$lt_ac_count
3817      lt_cv_path_SED=$lt_ac_sed
3818    fi
3819  done
3820done
3821
3822fi
3823
3824SED=$lt_cv_path_SED
3825
3826{ echo "$as_me:$LINENO: result: $SED" >&5
3827echo "${ECHO_T}$SED" >&6; }
3828
3829{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3830echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3831if test "${ac_cv_path_GREP+set}" = set; then
3832  echo $ECHO_N "(cached) $ECHO_C" >&6
3833else
3834  # Extract the first word of "grep ggrep" to use in msg output
3835if test -z "$GREP"; then
3836set dummy grep ggrep; ac_prog_name=$2
3837if test "${ac_cv_path_GREP+set}" = set; then
3838  echo $ECHO_N "(cached) $ECHO_C" >&6
3839else
3840  ac_path_GREP_found=false
3841# Loop through the user's path and test for each of PROGNAME-LIST
3842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3844do
3845  IFS=$as_save_IFS
3846  test -z "$as_dir" && as_dir=.
3847  for ac_prog in grep ggrep; do
3848  for ac_exec_ext in '' $ac_executable_extensions; do
3849    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3850    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3851    # Check for GNU ac_path_GREP and select it if it is found.
3852  # Check for GNU $ac_path_GREP
3853case `"$ac_path_GREP" --version 2>&1` in
3854*GNU*)
3855  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3856*)
3857  ac_count=0
3858  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3859  while :
3860  do
3861    cat "conftest.in" "conftest.in" >"conftest.tmp"
3862    mv "conftest.tmp" "conftest.in"
3863    cp "conftest.in" "conftest.nl"
3864    echo 'GREP' >> "conftest.nl"
3865    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3866    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3867    ac_count=`expr $ac_count + 1`
3868    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3869      # Best one so far, save it but keep looking for a better one
3870      ac_cv_path_GREP="$ac_path_GREP"
3871      ac_path_GREP_max=$ac_count
3872    fi
3873    # 10*(2^10) chars as input seems more than enough
3874    test $ac_count -gt 10 && break
3875  done
3876  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3877esac
3878
3879
3880    $ac_path_GREP_found && break 3
3881  done
3882done
3883
3884done
3885IFS=$as_save_IFS
3886
3887
3888fi
3889
3890GREP="$ac_cv_path_GREP"
3891if test -z "$GREP"; then
3892  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3893echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3894   { (exit 1); exit 1; }; }
3895fi
3896
3897else
3898  ac_cv_path_GREP=$GREP
3899fi
3900
3901
3902fi
3903{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3904echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3905 GREP="$ac_cv_path_GREP"
3906
3907
3908{ echo "$as_me:$LINENO: checking for egrep" >&5
3909echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3910if test "${ac_cv_path_EGREP+set}" = set; then
3911  echo $ECHO_N "(cached) $ECHO_C" >&6
3912else
3913  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3914   then ac_cv_path_EGREP="$GREP -E"
3915   else
3916     # Extract the first word of "egrep" to use in msg output
3917if test -z "$EGREP"; then
3918set dummy egrep; ac_prog_name=$2
3919if test "${ac_cv_path_EGREP+set}" = set; then
3920  echo $ECHO_N "(cached) $ECHO_C" >&6
3921else
3922  ac_path_EGREP_found=false
3923# Loop through the user's path and test for each of PROGNAME-LIST
3924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3926do
3927  IFS=$as_save_IFS
3928  test -z "$as_dir" && as_dir=.
3929  for ac_prog in egrep; do
3930  for ac_exec_ext in '' $ac_executable_extensions; do
3931    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3932    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3933    # Check for GNU ac_path_EGREP and select it if it is found.
3934  # Check for GNU $ac_path_EGREP
3935case `"$ac_path_EGREP" --version 2>&1` in
3936*GNU*)
3937  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3938*)
3939  ac_count=0
3940  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3941  while :
3942  do
3943    cat "conftest.in" "conftest.in" >"conftest.tmp"
3944    mv "conftest.tmp" "conftest.in"
3945    cp "conftest.in" "conftest.nl"
3946    echo 'EGREP' >> "conftest.nl"
3947    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3948    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3949    ac_count=`expr $ac_count + 1`
3950    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3951      # Best one so far, save it but keep looking for a better one
3952      ac_cv_path_EGREP="$ac_path_EGREP"
3953      ac_path_EGREP_max=$ac_count
3954    fi
3955    # 10*(2^10) chars as input seems more than enough
3956    test $ac_count -gt 10 && break
3957  done
3958  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3959esac
3960
3961
3962    $ac_path_EGREP_found && break 3
3963  done
3964done
3965
3966done
3967IFS=$as_save_IFS
3968
3969
3970fi
3971
3972EGREP="$ac_cv_path_EGREP"
3973if test -z "$EGREP"; then
3974  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3975echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3976   { (exit 1); exit 1; }; }
3977fi
3978
3979else
3980  ac_cv_path_EGREP=$EGREP
3981fi
3982
3983
3984   fi
3985fi
3986{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3987echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3988 EGREP="$ac_cv_path_EGREP"
3989
3990
3991
3992# Check whether --with-gnu-ld was given.
3993if test "${with_gnu_ld+set}" = set; then
3994  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3995else
3996  with_gnu_ld=no
3997fi
3998
3999ac_prog=ld
4000if test "$GCC" = yes; then
4001  # Check if gcc -print-prog-name=ld gives a path.
4002  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4003echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4004  case $host in
4005  *-*-mingw*)
4006    # gcc leaves a trailing carriage return which upsets mingw
4007    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4008  *)
4009    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4010  esac
4011  case $ac_prog in
4012    # Accept absolute paths.
4013    [\\/]* | ?:[\\/]*)
4014      re_direlt='/[^/][^/]*/\.\./'
4015      # Canonicalize the pathname of ld
4016      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4017      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4018	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4019      done
4020      test -z "$LD" && LD="$ac_prog"
4021      ;;
4022  "")
4023    # If it fails, then pretend we aren't using GCC.
4024    ac_prog=ld
4025    ;;
4026  *)
4027    # If it is relative, then search for the first ld in PATH.
4028    with_gnu_ld=unknown
4029    ;;
4030  esac
4031elif test "$with_gnu_ld" = yes; then
4032  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4033echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4034else
4035  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4036echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4037fi
4038if test "${lt_cv_path_LD+set}" = set; then
4039  echo $ECHO_N "(cached) $ECHO_C" >&6
4040else
4041  if test -z "$LD"; then
4042  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4043  for ac_dir in $PATH; do
4044    IFS="$lt_save_ifs"
4045    test -z "$ac_dir" && ac_dir=.
4046    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4047      lt_cv_path_LD="$ac_dir/$ac_prog"
4048      # Check to see if the program is GNU ld.  I'd rather use --version,
4049      # but apparently some variants of GNU ld only accept -v.
4050      # Break only if it was the GNU/non-GNU ld that we prefer.
4051      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4052      *GNU* | *'with BFD'*)
4053	test "$with_gnu_ld" != no && break
4054	;;
4055      *)
4056	test "$with_gnu_ld" != yes && break
4057	;;
4058      esac
4059    fi
4060  done
4061  IFS="$lt_save_ifs"
4062else
4063  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4064fi
4065fi
4066
4067LD="$lt_cv_path_LD"
4068if test -n "$LD"; then
4069  { echo "$as_me:$LINENO: result: $LD" >&5
4070echo "${ECHO_T}$LD" >&6; }
4071else
4072  { echo "$as_me:$LINENO: result: no" >&5
4073echo "${ECHO_T}no" >&6; }
4074fi
4075test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4076echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4077   { (exit 1); exit 1; }; }
4078{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4079echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4080if test "${lt_cv_prog_gnu_ld+set}" = set; then
4081  echo $ECHO_N "(cached) $ECHO_C" >&6
4082else
4083  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4084case `$LD -v 2>&1 </dev/null` in
4085*GNU* | *'with BFD'*)
4086  lt_cv_prog_gnu_ld=yes
4087  ;;
4088*)
4089  lt_cv_prog_gnu_ld=no
4090  ;;
4091esac
4092fi
4093{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4094echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4095with_gnu_ld=$lt_cv_prog_gnu_ld
4096
4097
4098{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4099echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4100if test "${lt_cv_ld_reload_flag+set}" = set; then
4101  echo $ECHO_N "(cached) $ECHO_C" >&6
4102else
4103  lt_cv_ld_reload_flag='-r'
4104fi
4105{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4106echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4107reload_flag=$lt_cv_ld_reload_flag
4108case $reload_flag in
4109"" | " "*) ;;
4110*) reload_flag=" $reload_flag" ;;
4111esac
4112reload_cmds='$LD$reload_flag -o $output$reload_objs'
4113case $host_os in
4114  darwin*)
4115    if test "$GCC" = yes; then
4116      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4117    else
4118      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4119    fi
4120    ;;
4121esac
4122
4123{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4124echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4125if test "${lt_cv_path_NM+set}" = set; then
4126  echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
4128  if test -n "$NM"; then
4129  # Let the user override the test.
4130  lt_cv_path_NM="$NM"
4131else
4132  lt_nm_to_check="${ac_tool_prefix}nm"
4133  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4134    lt_nm_to_check="$lt_nm_to_check nm"
4135  fi
4136  for lt_tmp_nm in $lt_nm_to_check; do
4137    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4138    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4139      IFS="$lt_save_ifs"
4140      test -z "$ac_dir" && ac_dir=.
4141      tmp_nm="$ac_dir/$lt_tmp_nm"
4142      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4143	# Check to see if the nm accepts a BSD-compat flag.
4144	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4145	#   nm: unknown option "B" ignored
4146	# Tru64's nm complains that /dev/null is an invalid object file
4147	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4148	*/dev/null* | *'Invalid file or object type'*)
4149	  lt_cv_path_NM="$tmp_nm -B"
4150	  break
4151	  ;;
4152	*)
4153	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4154	  */dev/null*)
4155	    lt_cv_path_NM="$tmp_nm -p"
4156	    break
4157	    ;;
4158	  *)
4159	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4160	    continue # so that we can try to find one that supports BSD flags
4161	    ;;
4162	  esac
4163	  ;;
4164	esac
4165      fi
4166    done
4167    IFS="$lt_save_ifs"
4168  done
4169  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4170fi
4171fi
4172{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4173echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4174NM="$lt_cv_path_NM"
4175
4176{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4177echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4178LN_S=$as_ln_s
4179if test "$LN_S" = "ln -s"; then
4180  { echo "$as_me:$LINENO: result: yes" >&5
4181echo "${ECHO_T}yes" >&6; }
4182else
4183  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4184echo "${ECHO_T}no, using $LN_S" >&6; }
4185fi
4186
4187{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4188echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4189if test "${lt_cv_deplibs_check_method+set}" = set; then
4190  echo $ECHO_N "(cached) $ECHO_C" >&6
4191else
4192  lt_cv_file_magic_cmd='$MAGIC_CMD'
4193lt_cv_file_magic_test_file=
4194lt_cv_deplibs_check_method='unknown'
4195# Need to set the preceding variable on all platforms that support
4196# interlibrary dependencies.
4197# 'none' -- dependencies not supported.
4198# `unknown' -- same as none, but documents that we really don't know.
4199# 'pass_all' -- all dependencies passed with no checks.
4200# 'test_compile' -- check by making test program.
4201# 'file_magic [[regex]]' -- check by looking for files in library path
4202# which responds to the $file_magic_cmd with a given extended regex.
4203# If you have `file' or equivalent on your system and you're not sure
4204# whether `pass_all' will *always* work, you probably want this one.
4205
4206case $host_os in
4207aix[4-9]*)
4208  lt_cv_deplibs_check_method=pass_all
4209  ;;
4210
4211beos*)
4212  lt_cv_deplibs_check_method=pass_all
4213  ;;
4214
4215bsdi[45]*)
4216  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4217  lt_cv_file_magic_cmd='/usr/bin/file -L'
4218  lt_cv_file_magic_test_file=/shlib/libc.so
4219  ;;
4220
4221cygwin*)
4222  # func_win32_libid is a shell function defined in ltmain.sh
4223  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4224  lt_cv_file_magic_cmd='func_win32_libid'
4225  ;;
4226
4227mingw* | pw32*)
4228  # Base MSYS/MinGW do not provide the 'file' command needed by
4229  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4230  # unless we find 'file', for example because we are cross-compiling.
4231  if ( file / ) >/dev/null 2>&1; then
4232    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4233    lt_cv_file_magic_cmd='func_win32_libid'
4234  else
4235    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4236    lt_cv_file_magic_cmd='$OBJDUMP -f'
4237  fi
4238  ;;
4239
4240darwin* | rhapsody*)
4241  lt_cv_deplibs_check_method=pass_all
4242  ;;
4243
4244freebsd* | dragonfly*)
4245  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4246    case $host_cpu in
4247    i*86 )
4248      # Not sure whether the presence of OpenBSD here was a mistake.
4249      # Let's accept both of them until this is cleared up.
4250      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4251      lt_cv_file_magic_cmd=/usr/bin/file
4252      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4253      ;;
4254    esac
4255  else
4256    lt_cv_deplibs_check_method=pass_all
4257  fi
4258  ;;
4259
4260gnu*)
4261  lt_cv_deplibs_check_method=pass_all
4262  ;;
4263
4264hpux10.20* | hpux11*)
4265  lt_cv_file_magic_cmd=/usr/bin/file
4266  case $host_cpu in
4267  ia64*)
4268    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4269    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4270    ;;
4271  hppa*64*)
4272    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]'
4273    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4274    ;;
4275  *)
4276    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4277    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4278    ;;
4279  esac
4280  ;;
4281
4282interix[3-9]*)
4283  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4284  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4285  ;;
4286
4287irix5* | irix6* | nonstopux*)
4288  case $LD in
4289  *-32|*"-32 ") libmagic=32-bit;;
4290  *-n32|*"-n32 ") libmagic=N32;;
4291  *-64|*"-64 ") libmagic=64-bit;;
4292  *) libmagic=never-match;;
4293  esac
4294  lt_cv_deplibs_check_method=pass_all
4295  ;;
4296
4297# This must be Linux ELF.
4298linux* | k*bsd*-gnu)
4299  lt_cv_deplibs_check_method=pass_all
4300  ;;
4301
4302netbsd* | netbsdelf*-gnu)
4303  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4304    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4305  else
4306    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4307  fi
4308  ;;
4309
4310newos6*)
4311  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4312  lt_cv_file_magic_cmd=/usr/bin/file
4313  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4314  ;;
4315
4316nto-qnx*)
4317  lt_cv_deplibs_check_method=unknown
4318  ;;
4319
4320openbsd*)
4321  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4322    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4323  else
4324    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4325  fi
4326  ;;
4327
4328osf3* | osf4* | osf5*)
4329  lt_cv_deplibs_check_method=pass_all
4330  ;;
4331
4332rdos*)
4333  lt_cv_deplibs_check_method=pass_all
4334  ;;
4335
4336solaris*)
4337  lt_cv_deplibs_check_method=pass_all
4338  ;;
4339
4340sysv4 | sysv4.3*)
4341  case $host_vendor in
4342  motorola)
4343    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]'
4344    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4345    ;;
4346  ncr)
4347    lt_cv_deplibs_check_method=pass_all
4348    ;;
4349  sequent)
4350    lt_cv_file_magic_cmd='/bin/file'
4351    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4352    ;;
4353  sni)
4354    lt_cv_file_magic_cmd='/bin/file'
4355    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4356    lt_cv_file_magic_test_file=/lib/libc.so
4357    ;;
4358  siemens)
4359    lt_cv_deplibs_check_method=pass_all
4360    ;;
4361  pc)
4362    lt_cv_deplibs_check_method=pass_all
4363    ;;
4364  esac
4365  ;;
4366
4367sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4368  lt_cv_deplibs_check_method=pass_all
4369  ;;
4370esac
4371
4372fi
4373{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4374echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4375file_magic_cmd=$lt_cv_file_magic_cmd
4376deplibs_check_method=$lt_cv_deplibs_check_method
4377test -z "$deplibs_check_method" && deplibs_check_method=unknown
4378
4379
4380
4381
4382# If no C compiler was specified, use CC.
4383LTCC=${LTCC-"$CC"}
4384
4385# If no C compiler flags were specified, use CFLAGS.
4386LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4387
4388# Allow CC to be a program name with arguments.
4389compiler=$CC
4390
4391
4392# Check whether --enable-libtool-lock was given.
4393if test "${enable_libtool_lock+set}" = set; then
4394  enableval=$enable_libtool_lock;
4395fi
4396
4397test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4398
4399# Some flags need to be propagated to the compiler or linker for good
4400# libtool support.
4401case $host in
4402ia64-*-hpux*)
4403  # Find out which ABI we are using.
4404  echo 'int i;' > conftest.$ac_ext
4405  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4406  (eval $ac_compile) 2>&5
4407  ac_status=$?
4408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409  (exit $ac_status); }; then
4410    case `/usr/bin/file conftest.$ac_objext` in
4411    *ELF-32*)
4412      HPUX_IA64_MODE="32"
4413      ;;
4414    *ELF-64*)
4415      HPUX_IA64_MODE="64"
4416      ;;
4417    esac
4418  fi
4419  rm -rf conftest*
4420  ;;
4421*-*-irix6*)
4422  # Find out which ABI we are using.
4423  echo '#line 4423 "configure"' > conftest.$ac_ext
4424  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4425  (eval $ac_compile) 2>&5
4426  ac_status=$?
4427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428  (exit $ac_status); }; then
4429   if test "$lt_cv_prog_gnu_ld" = yes; then
4430    case `/usr/bin/file conftest.$ac_objext` in
4431    *32-bit*)
4432      LD="${LD-ld} -melf32bsmip"
4433      ;;
4434    *N32*)
4435      LD="${LD-ld} -melf32bmipn32"
4436      ;;
4437    *64-bit*)
4438      LD="${LD-ld} -melf64bmip"
4439      ;;
4440    esac
4441   else
4442    case `/usr/bin/file conftest.$ac_objext` in
4443    *32-bit*)
4444      LD="${LD-ld} -32"
4445      ;;
4446    *N32*)
4447      LD="${LD-ld} -n32"
4448      ;;
4449    *64-bit*)
4450      LD="${LD-ld} -64"
4451      ;;
4452    esac
4453   fi
4454  fi
4455  rm -rf conftest*
4456  ;;
4457
4458x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4459s390*-*linux*|sparc*-*linux*)
4460  # Find out which ABI we are using.
4461  echo 'int i;' > conftest.$ac_ext
4462  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463  (eval $ac_compile) 2>&5
4464  ac_status=$?
4465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466  (exit $ac_status); }; then
4467    case `/usr/bin/file conftest.o` in
4468    *32-bit*)
4469      case $host in
4470        x86_64-*kfreebsd*-gnu)
4471          LD="${LD-ld} -m elf_i386_fbsd"
4472          ;;
4473        x86_64-*linux*)
4474          LD="${LD-ld} -m elf_i386"
4475          ;;
4476        ppc64-*linux*|powerpc64-*linux*)
4477          LD="${LD-ld} -m elf32ppclinux"
4478          ;;
4479        s390x-*linux*)
4480          LD="${LD-ld} -m elf_s390"
4481          ;;
4482        sparc64-*linux*)
4483          LD="${LD-ld} -m elf32_sparc"
4484          ;;
4485      esac
4486      ;;
4487    *64-bit*)
4488      case $host in
4489        x86_64-*kfreebsd*-gnu)
4490          LD="${LD-ld} -m elf_x86_64_fbsd"
4491          ;;
4492        x86_64-*linux*)
4493          LD="${LD-ld} -m elf_x86_64"
4494          ;;
4495        ppc*-*linux*|powerpc*-*linux*)
4496          LD="${LD-ld} -m elf64ppc"
4497          ;;
4498        s390*-*linux*)
4499          LD="${LD-ld} -m elf64_s390"
4500          ;;
4501        sparc*-*linux*)
4502          LD="${LD-ld} -m elf64_sparc"
4503          ;;
4504      esac
4505      ;;
4506    esac
4507  fi
4508  rm -rf conftest*
4509  ;;
4510
4511*-*-sco3.2v5*)
4512  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4513  SAVE_CFLAGS="$CFLAGS"
4514  CFLAGS="$CFLAGS -belf"
4515  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4516echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4517if test "${lt_cv_cc_needs_belf+set}" = set; then
4518  echo $ECHO_N "(cached) $ECHO_C" >&6
4519else
4520  ac_ext=c
4521ac_cpp='$CPP $CPPFLAGS'
4522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4524ac_compiler_gnu=$ac_cv_c_compiler_gnu
4525
4526     cat >conftest.$ac_ext <<_ACEOF
4527/* confdefs.h.  */
4528_ACEOF
4529cat confdefs.h >>conftest.$ac_ext
4530cat >>conftest.$ac_ext <<_ACEOF
4531/* end confdefs.h.  */
4532
4533int
4534main ()
4535{
4536
4537  ;
4538  return 0;
4539}
4540_ACEOF
4541rm -f conftest.$ac_objext conftest$ac_exeext
4542if { (ac_try="$ac_link"
4543case "(($ac_try" in
4544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545  *) ac_try_echo=$ac_try;;
4546esac
4547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548  (eval "$ac_link") 2>conftest.er1
4549  ac_status=$?
4550  grep -v '^ *+' conftest.er1 >conftest.err
4551  rm -f conftest.er1
4552  cat conftest.err >&5
4553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554  (exit $ac_status); } && {
4555	 test -z "$ac_c_werror_flag" ||
4556	 test ! -s conftest.err
4557       } && test -s conftest$ac_exeext &&
4558       $as_test_x conftest$ac_exeext; then
4559  lt_cv_cc_needs_belf=yes
4560else
4561  echo "$as_me: failed program was:" >&5
4562sed 's/^/| /' conftest.$ac_ext >&5
4563
4564	lt_cv_cc_needs_belf=no
4565fi
4566
4567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4568      conftest$ac_exeext conftest.$ac_ext
4569     ac_ext=c
4570ac_cpp='$CPP $CPPFLAGS'
4571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573ac_compiler_gnu=$ac_cv_c_compiler_gnu
4574
4575fi
4576{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4577echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4578  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4579    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4580    CFLAGS="$SAVE_CFLAGS"
4581  fi
4582  ;;
4583sparc*-*solaris*)
4584  # Find out which ABI we are using.
4585  echo 'int i;' > conftest.$ac_ext
4586  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4587  (eval $ac_compile) 2>&5
4588  ac_status=$?
4589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590  (exit $ac_status); }; then
4591    case `/usr/bin/file conftest.o` in
4592    *64-bit*)
4593      case $lt_cv_prog_gnu_ld in
4594      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4595      *)
4596        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4597	  LD="${LD-ld} -64"
4598	fi
4599	;;
4600      esac
4601      ;;
4602    esac
4603  fi
4604  rm -rf conftest*
4605  ;;
4606
4607*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4608  if test -n "$ac_tool_prefix"; then
4609  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4610set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4611{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4613if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4614  echo $ECHO_N "(cached) $ECHO_C" >&6
4615else
4616  if test -n "$DLLTOOL"; then
4617  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4618else
4619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620for as_dir in $PATH
4621do
4622  IFS=$as_save_IFS
4623  test -z "$as_dir" && as_dir=.
4624  for ac_exec_ext in '' $ac_executable_extensions; do
4625  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4626    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4627    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628    break 2
4629  fi
4630done
4631done
4632IFS=$as_save_IFS
4633
4634fi
4635fi
4636DLLTOOL=$ac_cv_prog_DLLTOOL
4637if test -n "$DLLTOOL"; then
4638  { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4639echo "${ECHO_T}$DLLTOOL" >&6; }
4640else
4641  { echo "$as_me:$LINENO: result: no" >&5
4642echo "${ECHO_T}no" >&6; }
4643fi
4644
4645
4646fi
4647if test -z "$ac_cv_prog_DLLTOOL"; then
4648  ac_ct_DLLTOOL=$DLLTOOL
4649  # Extract the first word of "dlltool", so it can be a program name with args.
4650set dummy dlltool; ac_word=$2
4651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4653if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4654  echo $ECHO_N "(cached) $ECHO_C" >&6
4655else
4656  if test -n "$ac_ct_DLLTOOL"; then
4657  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4658else
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662  IFS=$as_save_IFS
4663  test -z "$as_dir" && as_dir=.
4664  for ac_exec_ext in '' $ac_executable_extensions; do
4665  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4666    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4667    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668    break 2
4669  fi
4670done
4671done
4672IFS=$as_save_IFS
4673
4674fi
4675fi
4676ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4677if test -n "$ac_ct_DLLTOOL"; then
4678  { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4679echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4680else
4681  { echo "$as_me:$LINENO: result: no" >&5
4682echo "${ECHO_T}no" >&6; }
4683fi
4684
4685  if test "x$ac_ct_DLLTOOL" = x; then
4686    DLLTOOL="false"
4687  else
4688    case $cross_compiling:$ac_tool_warned in
4689yes:)
4690{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4691whose name does not start with the host triplet.  If you think this
4692configuration is useful to you, please write to autoconf@gnu.org." >&5
4693echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4694whose name does not start with the host triplet.  If you think this
4695configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4696ac_tool_warned=yes ;;
4697esac
4698    DLLTOOL=$ac_ct_DLLTOOL
4699  fi
4700else
4701  DLLTOOL="$ac_cv_prog_DLLTOOL"
4702fi
4703
4704  if test -n "$ac_tool_prefix"; then
4705  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4706set dummy ${ac_tool_prefix}as; ac_word=$2
4707{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4709if test "${ac_cv_prog_AS+set}" = set; then
4710  echo $ECHO_N "(cached) $ECHO_C" >&6
4711else
4712  if test -n "$AS"; then
4713  ac_cv_prog_AS="$AS" # Let the user override the test.
4714else
4715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716for as_dir in $PATH
4717do
4718  IFS=$as_save_IFS
4719  test -z "$as_dir" && as_dir=.
4720  for ac_exec_ext in '' $ac_executable_extensions; do
4721  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4722    ac_cv_prog_AS="${ac_tool_prefix}as"
4723    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724    break 2
4725  fi
4726done
4727done
4728IFS=$as_save_IFS
4729
4730fi
4731fi
4732AS=$ac_cv_prog_AS
4733if test -n "$AS"; then
4734  { echo "$as_me:$LINENO: result: $AS" >&5
4735echo "${ECHO_T}$AS" >&6; }
4736else
4737  { echo "$as_me:$LINENO: result: no" >&5
4738echo "${ECHO_T}no" >&6; }
4739fi
4740
4741
4742fi
4743if test -z "$ac_cv_prog_AS"; then
4744  ac_ct_AS=$AS
4745  # Extract the first word of "as", so it can be a program name with args.
4746set dummy as; ac_word=$2
4747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4749if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4750  echo $ECHO_N "(cached) $ECHO_C" >&6
4751else
4752  if test -n "$ac_ct_AS"; then
4753  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4754else
4755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756for as_dir in $PATH
4757do
4758  IFS=$as_save_IFS
4759  test -z "$as_dir" && as_dir=.
4760  for ac_exec_ext in '' $ac_executable_extensions; do
4761  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4762    ac_cv_prog_ac_ct_AS="as"
4763    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764    break 2
4765  fi
4766done
4767done
4768IFS=$as_save_IFS
4769
4770fi
4771fi
4772ac_ct_AS=$ac_cv_prog_ac_ct_AS
4773if test -n "$ac_ct_AS"; then
4774  { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4775echo "${ECHO_T}$ac_ct_AS" >&6; }
4776else
4777  { echo "$as_me:$LINENO: result: no" >&5
4778echo "${ECHO_T}no" >&6; }
4779fi
4780
4781  if test "x$ac_ct_AS" = x; then
4782    AS="false"
4783  else
4784    case $cross_compiling:$ac_tool_warned in
4785yes:)
4786{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4787whose name does not start with the host triplet.  If you think this
4788configuration is useful to you, please write to autoconf@gnu.org." >&5
4789echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4790whose name does not start with the host triplet.  If you think this
4791configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4792ac_tool_warned=yes ;;
4793esac
4794    AS=$ac_ct_AS
4795  fi
4796else
4797  AS="$ac_cv_prog_AS"
4798fi
4799
4800  if test -n "$ac_tool_prefix"; then
4801  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4802set dummy ${ac_tool_prefix}objdump; ac_word=$2
4803{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4805if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4806  echo $ECHO_N "(cached) $ECHO_C" >&6
4807else
4808  if test -n "$OBJDUMP"; then
4809  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4810else
4811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812for as_dir in $PATH
4813do
4814  IFS=$as_save_IFS
4815  test -z "$as_dir" && as_dir=.
4816  for ac_exec_ext in '' $ac_executable_extensions; do
4817  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4818    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4819    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4820    break 2
4821  fi
4822done
4823done
4824IFS=$as_save_IFS
4825
4826fi
4827fi
4828OBJDUMP=$ac_cv_prog_OBJDUMP
4829if test -n "$OBJDUMP"; then
4830  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4831echo "${ECHO_T}$OBJDUMP" >&6; }
4832else
4833  { echo "$as_me:$LINENO: result: no" >&5
4834echo "${ECHO_T}no" >&6; }
4835fi
4836
4837
4838fi
4839if test -z "$ac_cv_prog_OBJDUMP"; then
4840  ac_ct_OBJDUMP=$OBJDUMP
4841  # Extract the first word of "objdump", so it can be a program name with args.
4842set dummy objdump; ac_word=$2
4843{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4845if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4846  echo $ECHO_N "(cached) $ECHO_C" >&6
4847else
4848  if test -n "$ac_ct_OBJDUMP"; then
4849  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4850else
4851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852for as_dir in $PATH
4853do
4854  IFS=$as_save_IFS
4855  test -z "$as_dir" && as_dir=.
4856  for ac_exec_ext in '' $ac_executable_extensions; do
4857  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4859    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4860    break 2
4861  fi
4862done
4863done
4864IFS=$as_save_IFS
4865
4866fi
4867fi
4868ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4869if test -n "$ac_ct_OBJDUMP"; then
4870  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4871echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4872else
4873  { echo "$as_me:$LINENO: result: no" >&5
4874echo "${ECHO_T}no" >&6; }
4875fi
4876
4877  if test "x$ac_ct_OBJDUMP" = x; then
4878    OBJDUMP="false"
4879  else
4880    case $cross_compiling:$ac_tool_warned in
4881yes:)
4882{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4883whose name does not start with the host triplet.  If you think this
4884configuration is useful to you, please write to autoconf@gnu.org." >&5
4885echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4886whose name does not start with the host triplet.  If you think this
4887configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4888ac_tool_warned=yes ;;
4889esac
4890    OBJDUMP=$ac_ct_OBJDUMP
4891  fi
4892else
4893  OBJDUMP="$ac_cv_prog_OBJDUMP"
4894fi
4895
4896  ;;
4897
4898esac
4899
4900need_locks="$enable_libtool_lock"
4901
4902
4903ac_ext=c
4904ac_cpp='$CPP $CPPFLAGS'
4905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907ac_compiler_gnu=$ac_cv_c_compiler_gnu
4908{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4909echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4910# On Suns, sometimes $CPP names a directory.
4911if test -n "$CPP" && test -d "$CPP"; then
4912  CPP=
4913fi
4914if test -z "$CPP"; then
4915  if test "${ac_cv_prog_CPP+set}" = set; then
4916  echo $ECHO_N "(cached) $ECHO_C" >&6
4917else
4918      # Double quotes because CPP needs to be expanded
4919    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4920    do
4921      ac_preproc_ok=false
4922for ac_c_preproc_warn_flag in '' yes
4923do
4924  # Use a header file that comes with gcc, so configuring glibc
4925  # with a fresh cross-compiler works.
4926  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4927  # <limits.h> exists even on freestanding compilers.
4928  # On the NeXT, cc -E runs the code through the compiler's parser,
4929  # not just through cpp. "Syntax error" is here to catch this case.
4930  cat >conftest.$ac_ext <<_ACEOF
4931/* confdefs.h.  */
4932_ACEOF
4933cat confdefs.h >>conftest.$ac_ext
4934cat >>conftest.$ac_ext <<_ACEOF
4935/* end confdefs.h.  */
4936#ifdef __STDC__
4937# include <limits.h>
4938#else
4939# include <assert.h>
4940#endif
4941		     Syntax error
4942_ACEOF
4943if { (ac_try="$ac_cpp conftest.$ac_ext"
4944case "(($ac_try" in
4945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946  *) ac_try_echo=$ac_try;;
4947esac
4948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4949  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4950  ac_status=$?
4951  grep -v '^ *+' conftest.er1 >conftest.err
4952  rm -f conftest.er1
4953  cat conftest.err >&5
4954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955  (exit $ac_status); } >/dev/null && {
4956	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4957	 test ! -s conftest.err
4958       }; then
4959  :
4960else
4961  echo "$as_me: failed program was:" >&5
4962sed 's/^/| /' conftest.$ac_ext >&5
4963
4964  # Broken: fails on valid input.
4965continue
4966fi
4967
4968rm -f conftest.err conftest.$ac_ext
4969
4970  # OK, works on sane cases.  Now check whether nonexistent headers
4971  # can be detected and how.
4972  cat >conftest.$ac_ext <<_ACEOF
4973/* confdefs.h.  */
4974_ACEOF
4975cat confdefs.h >>conftest.$ac_ext
4976cat >>conftest.$ac_ext <<_ACEOF
4977/* end confdefs.h.  */
4978#include <ac_nonexistent.h>
4979_ACEOF
4980if { (ac_try="$ac_cpp conftest.$ac_ext"
4981case "(($ac_try" in
4982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983  *) ac_try_echo=$ac_try;;
4984esac
4985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4987  ac_status=$?
4988  grep -v '^ *+' conftest.er1 >conftest.err
4989  rm -f conftest.er1
4990  cat conftest.err >&5
4991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992  (exit $ac_status); } >/dev/null && {
4993	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4994	 test ! -s conftest.err
4995       }; then
4996  # Broken: success on invalid input.
4997continue
4998else
4999  echo "$as_me: failed program was:" >&5
5000sed 's/^/| /' conftest.$ac_ext >&5
5001
5002  # Passes both tests.
5003ac_preproc_ok=:
5004break
5005fi
5006
5007rm -f conftest.err conftest.$ac_ext
5008
5009done
5010# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5011rm -f conftest.err conftest.$ac_ext
5012if $ac_preproc_ok; then
5013  break
5014fi
5015
5016    done
5017    ac_cv_prog_CPP=$CPP
5018
5019fi
5020  CPP=$ac_cv_prog_CPP
5021else
5022  ac_cv_prog_CPP=$CPP
5023fi
5024{ echo "$as_me:$LINENO: result: $CPP" >&5
5025echo "${ECHO_T}$CPP" >&6; }
5026ac_preproc_ok=false
5027for ac_c_preproc_warn_flag in '' yes
5028do
5029  # Use a header file that comes with gcc, so configuring glibc
5030  # with a fresh cross-compiler works.
5031  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5032  # <limits.h> exists even on freestanding compilers.
5033  # On the NeXT, cc -E runs the code through the compiler's parser,
5034  # not just through cpp. "Syntax error" is here to catch this case.
5035  cat >conftest.$ac_ext <<_ACEOF
5036/* confdefs.h.  */
5037_ACEOF
5038cat confdefs.h >>conftest.$ac_ext
5039cat >>conftest.$ac_ext <<_ACEOF
5040/* end confdefs.h.  */
5041#ifdef __STDC__
5042# include <limits.h>
5043#else
5044# include <assert.h>
5045#endif
5046		     Syntax error
5047_ACEOF
5048if { (ac_try="$ac_cpp conftest.$ac_ext"
5049case "(($ac_try" in
5050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5051  *) ac_try_echo=$ac_try;;
5052esac
5053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5054  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5055  ac_status=$?
5056  grep -v '^ *+' conftest.er1 >conftest.err
5057  rm -f conftest.er1
5058  cat conftest.err >&5
5059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060  (exit $ac_status); } >/dev/null && {
5061	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5062	 test ! -s conftest.err
5063       }; then
5064  :
5065else
5066  echo "$as_me: failed program was:" >&5
5067sed 's/^/| /' conftest.$ac_ext >&5
5068
5069  # Broken: fails on valid input.
5070continue
5071fi
5072
5073rm -f conftest.err conftest.$ac_ext
5074
5075  # OK, works on sane cases.  Now check whether nonexistent headers
5076  # can be detected and how.
5077  cat >conftest.$ac_ext <<_ACEOF
5078/* confdefs.h.  */
5079_ACEOF
5080cat confdefs.h >>conftest.$ac_ext
5081cat >>conftest.$ac_ext <<_ACEOF
5082/* end confdefs.h.  */
5083#include <ac_nonexistent.h>
5084_ACEOF
5085if { (ac_try="$ac_cpp conftest.$ac_ext"
5086case "(($ac_try" in
5087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088  *) ac_try_echo=$ac_try;;
5089esac
5090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5092  ac_status=$?
5093  grep -v '^ *+' conftest.er1 >conftest.err
5094  rm -f conftest.er1
5095  cat conftest.err >&5
5096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097  (exit $ac_status); } >/dev/null && {
5098	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5099	 test ! -s conftest.err
5100       }; then
5101  # Broken: success on invalid input.
5102continue
5103else
5104  echo "$as_me: failed program was:" >&5
5105sed 's/^/| /' conftest.$ac_ext >&5
5106
5107  # Passes both tests.
5108ac_preproc_ok=:
5109break
5110fi
5111
5112rm -f conftest.err conftest.$ac_ext
5113
5114done
5115# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5116rm -f conftest.err conftest.$ac_ext
5117if $ac_preproc_ok; then
5118  :
5119else
5120  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5121See \`config.log' for more details." >&5
5122echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5123See \`config.log' for more details." >&2;}
5124   { (exit 1); exit 1; }; }
5125fi
5126
5127ac_ext=c
5128ac_cpp='$CPP $CPPFLAGS'
5129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131ac_compiler_gnu=$ac_cv_c_compiler_gnu
5132
5133
5134{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5135echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5136if test "${ac_cv_header_stdc+set}" = set; then
5137  echo $ECHO_N "(cached) $ECHO_C" >&6
5138else
5139  cat >conftest.$ac_ext <<_ACEOF
5140/* confdefs.h.  */
5141_ACEOF
5142cat confdefs.h >>conftest.$ac_ext
5143cat >>conftest.$ac_ext <<_ACEOF
5144/* end confdefs.h.  */
5145#include <stdlib.h>
5146#include <stdarg.h>
5147#include <string.h>
5148#include <float.h>
5149
5150int
5151main ()
5152{
5153
5154  ;
5155  return 0;
5156}
5157_ACEOF
5158rm -f conftest.$ac_objext
5159if { (ac_try="$ac_compile"
5160case "(($ac_try" in
5161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162  *) ac_try_echo=$ac_try;;
5163esac
5164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5165  (eval "$ac_compile") 2>conftest.er1
5166  ac_status=$?
5167  grep -v '^ *+' conftest.er1 >conftest.err
5168  rm -f conftest.er1
5169  cat conftest.err >&5
5170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171  (exit $ac_status); } && {
5172	 test -z "$ac_c_werror_flag" ||
5173	 test ! -s conftest.err
5174       } && test -s conftest.$ac_objext; then
5175  ac_cv_header_stdc=yes
5176else
5177  echo "$as_me: failed program was:" >&5
5178sed 's/^/| /' conftest.$ac_ext >&5
5179
5180	ac_cv_header_stdc=no
5181fi
5182
5183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5184
5185if test $ac_cv_header_stdc = yes; then
5186  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5187  cat >conftest.$ac_ext <<_ACEOF
5188/* confdefs.h.  */
5189_ACEOF
5190cat confdefs.h >>conftest.$ac_ext
5191cat >>conftest.$ac_ext <<_ACEOF
5192/* end confdefs.h.  */
5193#include <string.h>
5194
5195_ACEOF
5196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5197  $EGREP "memchr" >/dev/null 2>&1; then
5198  :
5199else
5200  ac_cv_header_stdc=no
5201fi
5202rm -f conftest*
5203
5204fi
5205
5206if test $ac_cv_header_stdc = yes; then
5207  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5208  cat >conftest.$ac_ext <<_ACEOF
5209/* confdefs.h.  */
5210_ACEOF
5211cat confdefs.h >>conftest.$ac_ext
5212cat >>conftest.$ac_ext <<_ACEOF
5213/* end confdefs.h.  */
5214#include <stdlib.h>
5215
5216_ACEOF
5217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5218  $EGREP "free" >/dev/null 2>&1; then
5219  :
5220else
5221  ac_cv_header_stdc=no
5222fi
5223rm -f conftest*
5224
5225fi
5226
5227if test $ac_cv_header_stdc = yes; then
5228  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5229  if test "$cross_compiling" = yes; then
5230  :
5231else
5232  cat >conftest.$ac_ext <<_ACEOF
5233/* confdefs.h.  */
5234_ACEOF
5235cat confdefs.h >>conftest.$ac_ext
5236cat >>conftest.$ac_ext <<_ACEOF
5237/* end confdefs.h.  */
5238#include <ctype.h>
5239#include <stdlib.h>
5240#if ((' ' & 0x0FF) == 0x020)
5241# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5242# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5243#else
5244# define ISLOWER(c) \
5245		   (('a' <= (c) && (c) <= 'i') \
5246		     || ('j' <= (c) && (c) <= 'r') \
5247		     || ('s' <= (c) && (c) <= 'z'))
5248# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5249#endif
5250
5251#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5252int
5253main ()
5254{
5255  int i;
5256  for (i = 0; i < 256; i++)
5257    if (XOR (islower (i), ISLOWER (i))
5258	|| toupper (i) != TOUPPER (i))
5259      return 2;
5260  return 0;
5261}
5262_ACEOF
5263rm -f conftest$ac_exeext
5264if { (ac_try="$ac_link"
5265case "(($ac_try" in
5266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267  *) ac_try_echo=$ac_try;;
5268esac
5269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270  (eval "$ac_link") 2>&5
5271  ac_status=$?
5272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5274  { (case "(($ac_try" in
5275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276  *) ac_try_echo=$ac_try;;
5277esac
5278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279  (eval "$ac_try") 2>&5
5280  ac_status=$?
5281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282  (exit $ac_status); }; }; then
5283  :
5284else
5285  echo "$as_me: program exited with status $ac_status" >&5
5286echo "$as_me: failed program was:" >&5
5287sed 's/^/| /' conftest.$ac_ext >&5
5288
5289( exit $ac_status )
5290ac_cv_header_stdc=no
5291fi
5292rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5293fi
5294
5295
5296fi
5297fi
5298{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5299echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5300if test $ac_cv_header_stdc = yes; then
5301
5302cat >>confdefs.h <<\_ACEOF
5303#define STDC_HEADERS 1
5304_ACEOF
5305
5306fi
5307
5308# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5319		  inttypes.h stdint.h unistd.h
5320do
5321as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5322{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5324if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5325  echo $ECHO_N "(cached) $ECHO_C" >&6
5326else
5327  cat >conftest.$ac_ext <<_ACEOF
5328/* confdefs.h.  */
5329_ACEOF
5330cat confdefs.h >>conftest.$ac_ext
5331cat >>conftest.$ac_ext <<_ACEOF
5332/* end confdefs.h.  */
5333$ac_includes_default
5334
5335#include <$ac_header>
5336_ACEOF
5337rm -f conftest.$ac_objext
5338if { (ac_try="$ac_compile"
5339case "(($ac_try" in
5340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341  *) ac_try_echo=$ac_try;;
5342esac
5343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344  (eval "$ac_compile") 2>conftest.er1
5345  ac_status=$?
5346  grep -v '^ *+' conftest.er1 >conftest.err
5347  rm -f conftest.er1
5348  cat conftest.err >&5
5349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350  (exit $ac_status); } && {
5351	 test -z "$ac_c_werror_flag" ||
5352	 test ! -s conftest.err
5353       } && test -s conftest.$ac_objext; then
5354  eval "$as_ac_Header=yes"
5355else
5356  echo "$as_me: failed program was:" >&5
5357sed 's/^/| /' conftest.$ac_ext >&5
5358
5359	eval "$as_ac_Header=no"
5360fi
5361
5362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363fi
5364ac_res=`eval echo '${'$as_ac_Header'}'`
5365	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5366echo "${ECHO_T}$ac_res" >&6; }
5367if test `eval echo '${'$as_ac_Header'}'` = yes; then
5368  cat >>confdefs.h <<_ACEOF
5369#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5370_ACEOF
5371
5372fi
5373
5374done
5375
5376
5377
5378for ac_header in dlfcn.h
5379do
5380as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5381if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5382  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5385  echo $ECHO_N "(cached) $ECHO_C" >&6
5386fi
5387ac_res=`eval echo '${'$as_ac_Header'}'`
5388	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5389echo "${ECHO_T}$ac_res" >&6; }
5390else
5391  # Is the header compilable?
5392{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5393echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5394cat >conftest.$ac_ext <<_ACEOF
5395/* confdefs.h.  */
5396_ACEOF
5397cat confdefs.h >>conftest.$ac_ext
5398cat >>conftest.$ac_ext <<_ACEOF
5399/* end confdefs.h.  */
5400$ac_includes_default
5401#include <$ac_header>
5402_ACEOF
5403rm -f conftest.$ac_objext
5404if { (ac_try="$ac_compile"
5405case "(($ac_try" in
5406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407  *) ac_try_echo=$ac_try;;
5408esac
5409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5410  (eval "$ac_compile") 2>conftest.er1
5411  ac_status=$?
5412  grep -v '^ *+' conftest.er1 >conftest.err
5413  rm -f conftest.er1
5414  cat conftest.err >&5
5415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416  (exit $ac_status); } && {
5417	 test -z "$ac_c_werror_flag" ||
5418	 test ! -s conftest.err
5419       } && test -s conftest.$ac_objext; then
5420  ac_header_compiler=yes
5421else
5422  echo "$as_me: failed program was:" >&5
5423sed 's/^/| /' conftest.$ac_ext >&5
5424
5425	ac_header_compiler=no
5426fi
5427
5428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5430echo "${ECHO_T}$ac_header_compiler" >&6; }
5431
5432# Is the header present?
5433{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5434echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5435cat >conftest.$ac_ext <<_ACEOF
5436/* confdefs.h.  */
5437_ACEOF
5438cat confdefs.h >>conftest.$ac_ext
5439cat >>conftest.$ac_ext <<_ACEOF
5440/* end confdefs.h.  */
5441#include <$ac_header>
5442_ACEOF
5443if { (ac_try="$ac_cpp conftest.$ac_ext"
5444case "(($ac_try" in
5445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446  *) ac_try_echo=$ac_try;;
5447esac
5448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5450  ac_status=$?
5451  grep -v '^ *+' conftest.er1 >conftest.err
5452  rm -f conftest.er1
5453  cat conftest.err >&5
5454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455  (exit $ac_status); } >/dev/null && {
5456	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5457	 test ! -s conftest.err
5458       }; then
5459  ac_header_preproc=yes
5460else
5461  echo "$as_me: failed program was:" >&5
5462sed 's/^/| /' conftest.$ac_ext >&5
5463
5464  ac_header_preproc=no
5465fi
5466
5467rm -f conftest.err conftest.$ac_ext
5468{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5469echo "${ECHO_T}$ac_header_preproc" >&6; }
5470
5471# So?  What about this header?
5472case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5473  yes:no: )
5474    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5475echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5476    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5477echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5478    ac_header_preproc=yes
5479    ;;
5480  no:yes:* )
5481    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5482echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5483    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5484echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5485    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5486echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5487    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5488echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5489    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5490echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5491    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5492echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5493    ( cat <<\_ASBOX
5494## ------------------------------- ##
5495## Report this to alexis@m2osw.com ##
5496## ------------------------------- ##
5497_ASBOX
5498     ) | sed "s/^/$as_me: WARNING:     /" >&2
5499    ;;
5500esac
5501{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5503if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5504  echo $ECHO_N "(cached) $ECHO_C" >&6
5505else
5506  eval "$as_ac_Header=\$ac_header_preproc"
5507fi
5508ac_res=`eval echo '${'$as_ac_Header'}'`
5509	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5510echo "${ECHO_T}$ac_res" >&6; }
5511
5512fi
5513if test `eval echo '${'$as_ac_Header'}'` = yes; then
5514  cat >>confdefs.h <<_ACEOF
5515#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5516_ACEOF
5517
5518fi
5519
5520done
5521
5522ac_ext=cpp
5523ac_cpp='$CXXCPP $CPPFLAGS'
5524ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5525ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5526ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5527if test -z "$CXX"; then
5528  if test -n "$CCC"; then
5529    CXX=$CCC
5530  else
5531    if test -n "$ac_tool_prefix"; then
5532  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5533  do
5534    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5535set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5536{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5538if test "${ac_cv_prog_CXX+set}" = set; then
5539  echo $ECHO_N "(cached) $ECHO_C" >&6
5540else
5541  if test -n "$CXX"; then
5542  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5543else
5544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545for as_dir in $PATH
5546do
5547  IFS=$as_save_IFS
5548  test -z "$as_dir" && as_dir=.
5549  for ac_exec_ext in '' $ac_executable_extensions; do
5550  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5552    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5553    break 2
5554  fi
5555done
5556done
5557IFS=$as_save_IFS
5558
5559fi
5560fi
5561CXX=$ac_cv_prog_CXX
5562if test -n "$CXX"; then
5563  { echo "$as_me:$LINENO: result: $CXX" >&5
5564echo "${ECHO_T}$CXX" >&6; }
5565else
5566  { echo "$as_me:$LINENO: result: no" >&5
5567echo "${ECHO_T}no" >&6; }
5568fi
5569
5570
5571    test -n "$CXX" && break
5572  done
5573fi
5574if test -z "$CXX"; then
5575  ac_ct_CXX=$CXX
5576  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5577do
5578  # Extract the first word of "$ac_prog", so it can be a program name with args.
5579set dummy $ac_prog; ac_word=$2
5580{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5582if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5583  echo $ECHO_N "(cached) $ECHO_C" >&6
5584else
5585  if test -n "$ac_ct_CXX"; then
5586  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5587else
5588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589for as_dir in $PATH
5590do
5591  IFS=$as_save_IFS
5592  test -z "$as_dir" && as_dir=.
5593  for ac_exec_ext in '' $ac_executable_extensions; do
5594  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5595    ac_cv_prog_ac_ct_CXX="$ac_prog"
5596    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5597    break 2
5598  fi
5599done
5600done
5601IFS=$as_save_IFS
5602
5603fi
5604fi
5605ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5606if test -n "$ac_ct_CXX"; then
5607  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5608echo "${ECHO_T}$ac_ct_CXX" >&6; }
5609else
5610  { echo "$as_me:$LINENO: result: no" >&5
5611echo "${ECHO_T}no" >&6; }
5612fi
5613
5614
5615  test -n "$ac_ct_CXX" && break
5616done
5617
5618  if test "x$ac_ct_CXX" = x; then
5619    CXX="g++"
5620  else
5621    case $cross_compiling:$ac_tool_warned in
5622yes:)
5623{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5624whose name does not start with the host triplet.  If you think this
5625configuration is useful to you, please write to autoconf@gnu.org." >&5
5626echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5627whose name does not start with the host triplet.  If you think this
5628configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5629ac_tool_warned=yes ;;
5630esac
5631    CXX=$ac_ct_CXX
5632  fi
5633fi
5634
5635  fi
5636fi
5637# Provide some information about the compiler.
5638echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5639ac_compiler=`set X $ac_compile; echo $2`
5640{ (ac_try="$ac_compiler --version >&5"
5641case "(($ac_try" in
5642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643  *) ac_try_echo=$ac_try;;
5644esac
5645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646  (eval "$ac_compiler --version >&5") 2>&5
5647  ac_status=$?
5648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649  (exit $ac_status); }
5650{ (ac_try="$ac_compiler -v >&5"
5651case "(($ac_try" in
5652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653  *) ac_try_echo=$ac_try;;
5654esac
5655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656  (eval "$ac_compiler -v >&5") 2>&5
5657  ac_status=$?
5658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659  (exit $ac_status); }
5660{ (ac_try="$ac_compiler -V >&5"
5661case "(($ac_try" in
5662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663  *) ac_try_echo=$ac_try;;
5664esac
5665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5666  (eval "$ac_compiler -V >&5") 2>&5
5667  ac_status=$?
5668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669  (exit $ac_status); }
5670
5671{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5672echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5673if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5674  echo $ECHO_N "(cached) $ECHO_C" >&6
5675else
5676  cat >conftest.$ac_ext <<_ACEOF
5677/* confdefs.h.  */
5678_ACEOF
5679cat confdefs.h >>conftest.$ac_ext
5680cat >>conftest.$ac_ext <<_ACEOF
5681/* end confdefs.h.  */
5682
5683int
5684main ()
5685{
5686#ifndef __GNUC__
5687       choke me
5688#endif
5689
5690  ;
5691  return 0;
5692}
5693_ACEOF
5694rm -f conftest.$ac_objext
5695if { (ac_try="$ac_compile"
5696case "(($ac_try" in
5697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698  *) ac_try_echo=$ac_try;;
5699esac
5700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5701  (eval "$ac_compile") 2>conftest.er1
5702  ac_status=$?
5703  grep -v '^ *+' conftest.er1 >conftest.err
5704  rm -f conftest.er1
5705  cat conftest.err >&5
5706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707  (exit $ac_status); } && {
5708	 test -z "$ac_cxx_werror_flag" ||
5709	 test ! -s conftest.err
5710       } && test -s conftest.$ac_objext; then
5711  ac_compiler_gnu=yes
5712else
5713  echo "$as_me: failed program was:" >&5
5714sed 's/^/| /' conftest.$ac_ext >&5
5715
5716	ac_compiler_gnu=no
5717fi
5718
5719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5721
5722fi
5723{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5724echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5725GXX=`test $ac_compiler_gnu = yes && echo yes`
5726ac_test_CXXFLAGS=${CXXFLAGS+set}
5727ac_save_CXXFLAGS=$CXXFLAGS
5728{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5729echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5730if test "${ac_cv_prog_cxx_g+set}" = set; then
5731  echo $ECHO_N "(cached) $ECHO_C" >&6
5732else
5733  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5734   ac_cxx_werror_flag=yes
5735   ac_cv_prog_cxx_g=no
5736   CXXFLAGS="-g"
5737   cat >conftest.$ac_ext <<_ACEOF
5738/* confdefs.h.  */
5739_ACEOF
5740cat confdefs.h >>conftest.$ac_ext
5741cat >>conftest.$ac_ext <<_ACEOF
5742/* end confdefs.h.  */
5743
5744int
5745main ()
5746{
5747
5748  ;
5749  return 0;
5750}
5751_ACEOF
5752rm -f conftest.$ac_objext
5753if { (ac_try="$ac_compile"
5754case "(($ac_try" in
5755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756  *) ac_try_echo=$ac_try;;
5757esac
5758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759  (eval "$ac_compile") 2>conftest.er1
5760  ac_status=$?
5761  grep -v '^ *+' conftest.er1 >conftest.err
5762  rm -f conftest.er1
5763  cat conftest.err >&5
5764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765  (exit $ac_status); } && {
5766	 test -z "$ac_cxx_werror_flag" ||
5767	 test ! -s conftest.err
5768       } && test -s conftest.$ac_objext; then
5769  ac_cv_prog_cxx_g=yes
5770else
5771  echo "$as_me: failed program was:" >&5
5772sed 's/^/| /' conftest.$ac_ext >&5
5773
5774	CXXFLAGS=""
5775      cat >conftest.$ac_ext <<_ACEOF
5776/* confdefs.h.  */
5777_ACEOF
5778cat confdefs.h >>conftest.$ac_ext
5779cat >>conftest.$ac_ext <<_ACEOF
5780/* end confdefs.h.  */
5781
5782int
5783main ()
5784{
5785
5786  ;
5787  return 0;
5788}
5789_ACEOF
5790rm -f conftest.$ac_objext
5791if { (ac_try="$ac_compile"
5792case "(($ac_try" in
5793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794  *) ac_try_echo=$ac_try;;
5795esac
5796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797  (eval "$ac_compile") 2>conftest.er1
5798  ac_status=$?
5799  grep -v '^ *+' conftest.er1 >conftest.err
5800  rm -f conftest.er1
5801  cat conftest.err >&5
5802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803  (exit $ac_status); } && {
5804	 test -z "$ac_cxx_werror_flag" ||
5805	 test ! -s conftest.err
5806       } && test -s conftest.$ac_objext; then
5807  :
5808else
5809  echo "$as_me: failed program was:" >&5
5810sed 's/^/| /' conftest.$ac_ext >&5
5811
5812	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5813	 CXXFLAGS="-g"
5814	 cat >conftest.$ac_ext <<_ACEOF
5815/* confdefs.h.  */
5816_ACEOF
5817cat confdefs.h >>conftest.$ac_ext
5818cat >>conftest.$ac_ext <<_ACEOF
5819/* end confdefs.h.  */
5820
5821int
5822main ()
5823{
5824
5825  ;
5826  return 0;
5827}
5828_ACEOF
5829rm -f conftest.$ac_objext
5830if { (ac_try="$ac_compile"
5831case "(($ac_try" in
5832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833  *) ac_try_echo=$ac_try;;
5834esac
5835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836  (eval "$ac_compile") 2>conftest.er1
5837  ac_status=$?
5838  grep -v '^ *+' conftest.er1 >conftest.err
5839  rm -f conftest.er1
5840  cat conftest.err >&5
5841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842  (exit $ac_status); } && {
5843	 test -z "$ac_cxx_werror_flag" ||
5844	 test ! -s conftest.err
5845       } && test -s conftest.$ac_objext; then
5846  ac_cv_prog_cxx_g=yes
5847else
5848  echo "$as_me: failed program was:" >&5
5849sed 's/^/| /' conftest.$ac_ext >&5
5850
5851
5852fi
5853
5854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855fi
5856
5857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858fi
5859
5860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5862fi
5863{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5864echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5865if test "$ac_test_CXXFLAGS" = set; then
5866  CXXFLAGS=$ac_save_CXXFLAGS
5867elif test $ac_cv_prog_cxx_g = yes; then
5868  if test "$GXX" = yes; then
5869    CXXFLAGS="-g -O2"
5870  else
5871    CXXFLAGS="-g"
5872  fi
5873else
5874  if test "$GXX" = yes; then
5875    CXXFLAGS="-O2"
5876  else
5877    CXXFLAGS=
5878  fi
5879fi
5880ac_ext=cpp
5881ac_cpp='$CXXCPP $CPPFLAGS'
5882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5885
5886depcc="$CXX"  am_compiler_list=
5887
5888{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5889echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5890if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5891  echo $ECHO_N "(cached) $ECHO_C" >&6
5892else
5893  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5894  # We make a subdir and do the tests there.  Otherwise we can end up
5895  # making bogus files that we don't know about and never remove.  For
5896  # instance it was reported that on HP-UX the gcc test will end up
5897  # making a dummy file named `D' -- because `-MD' means `put the output
5898  # in D'.
5899  mkdir conftest.dir
5900  # Copy depcomp to subdir because otherwise we won't find it if we're
5901  # using a relative directory.
5902  cp "$am_depcomp" conftest.dir
5903  cd conftest.dir
5904  # We will build objects and dependencies in a subdirectory because
5905  # it helps to detect inapplicable dependency modes.  For instance
5906  # both Tru64's cc and ICC support -MD to output dependencies as a
5907  # side effect of compilation, but ICC will put the dependencies in
5908  # the current directory while Tru64 will put them in the object
5909  # directory.
5910  mkdir sub
5911
5912  am_cv_CXX_dependencies_compiler_type=none
5913  if test "$am_compiler_list" = ""; then
5914     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5915  fi
5916  for depmode in $am_compiler_list; do
5917    # Setup a source with many dependencies, because some compilers
5918    # like to wrap large dependency lists on column 80 (with \), and
5919    # we should not choose a depcomp mode which is confused by this.
5920    #
5921    # We need to recreate these files for each test, as the compiler may
5922    # overwrite some of them when testing with obscure command lines.
5923    # This happens at least with the AIX C compiler.
5924    : > sub/conftest.c
5925    for i in 1 2 3 4 5 6; do
5926      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5927      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5928      # Solaris 8's {/usr,}/bin/sh.
5929      touch sub/conftst$i.h
5930    done
5931    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5932
5933    case $depmode in
5934    nosideeffect)
5935      # after this tag, mechanisms are not by side-effect, so they'll
5936      # only be used when explicitly requested
5937      if test "x$enable_dependency_tracking" = xyes; then
5938	continue
5939      else
5940	break
5941      fi
5942      ;;
5943    none) break ;;
5944    esac
5945    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5946    # mode.  It turns out that the SunPro C++ compiler does not properly
5947    # handle `-M -o', and we need to detect this.
5948    if depmode=$depmode \
5949       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5950       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5951       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5952         >/dev/null 2>conftest.err &&
5953       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5954       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5955       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5956      # icc doesn't choke on unknown options, it will just issue warnings
5957      # or remarks (even with -Werror).  So we grep stderr for any message
5958      # that says an option was ignored or not supported.
5959      # When given -MP, icc 7.0 and 7.1 complain thusly:
5960      #   icc: Command line warning: ignoring option '-M'; no argument required
5961      # The diagnosis changed in icc 8.0:
5962      #   icc: Command line remark: option '-MP' not supported
5963      if (grep 'ignoring option' conftest.err ||
5964          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5965        am_cv_CXX_dependencies_compiler_type=$depmode
5966        break
5967      fi
5968    fi
5969  done
5970
5971  cd ..
5972  rm -rf conftest.dir
5973else
5974  am_cv_CXX_dependencies_compiler_type=none
5975fi
5976
5977fi
5978{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5979echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5980CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5981
5982
5983
5984if
5985  test "x$enable_dependency_tracking" != xno \
5986  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5987  am__fastdepCXX_TRUE=
5988  am__fastdepCXX_FALSE='#'
5989else
5990  am__fastdepCXX_TRUE='#'
5991  am__fastdepCXX_FALSE=
5992fi
5993
5994
5995
5996
5997if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5998    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5999    (test "X$CXX" != "Xg++"))) ; then
6000  ac_ext=cpp
6001ac_cpp='$CXXCPP $CPPFLAGS'
6002ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6005{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6006echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6007if test -z "$CXXCPP"; then
6008  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6009  echo $ECHO_N "(cached) $ECHO_C" >&6
6010else
6011      # Double quotes because CXXCPP needs to be expanded
6012    for CXXCPP in "$CXX -E" "/lib/cpp"
6013    do
6014      ac_preproc_ok=false
6015for ac_cxx_preproc_warn_flag in '' yes
6016do
6017  # Use a header file that comes with gcc, so configuring glibc
6018  # with a fresh cross-compiler works.
6019  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6020  # <limits.h> exists even on freestanding compilers.
6021  # On the NeXT, cc -E runs the code through the compiler's parser,
6022  # not just through cpp. "Syntax error" is here to catch this case.
6023  cat >conftest.$ac_ext <<_ACEOF
6024/* confdefs.h.  */
6025_ACEOF
6026cat confdefs.h >>conftest.$ac_ext
6027cat >>conftest.$ac_ext <<_ACEOF
6028/* end confdefs.h.  */
6029#ifdef __STDC__
6030# include <limits.h>
6031#else
6032# include <assert.h>
6033#endif
6034		     Syntax error
6035_ACEOF
6036if { (ac_try="$ac_cpp conftest.$ac_ext"
6037case "(($ac_try" in
6038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039  *) ac_try_echo=$ac_try;;
6040esac
6041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6042  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6043  ac_status=$?
6044  grep -v '^ *+' conftest.er1 >conftest.err
6045  rm -f conftest.er1
6046  cat conftest.err >&5
6047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048  (exit $ac_status); } >/dev/null && {
6049	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6050	 test ! -s conftest.err
6051       }; then
6052  :
6053else
6054  echo "$as_me: failed program was:" >&5
6055sed 's/^/| /' conftest.$ac_ext >&5
6056
6057  # Broken: fails on valid input.
6058continue
6059fi
6060
6061rm -f conftest.err conftest.$ac_ext
6062
6063  # OK, works on sane cases.  Now check whether nonexistent headers
6064  # can be detected and how.
6065  cat >conftest.$ac_ext <<_ACEOF
6066/* confdefs.h.  */
6067_ACEOF
6068cat confdefs.h >>conftest.$ac_ext
6069cat >>conftest.$ac_ext <<_ACEOF
6070/* end confdefs.h.  */
6071#include <ac_nonexistent.h>
6072_ACEOF
6073if { (ac_try="$ac_cpp conftest.$ac_ext"
6074case "(($ac_try" in
6075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076  *) ac_try_echo=$ac_try;;
6077esac
6078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6079  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6080  ac_status=$?
6081  grep -v '^ *+' conftest.er1 >conftest.err
6082  rm -f conftest.er1
6083  cat conftest.err >&5
6084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085  (exit $ac_status); } >/dev/null && {
6086	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6087	 test ! -s conftest.err
6088       }; then
6089  # Broken: success on invalid input.
6090continue
6091else
6092  echo "$as_me: failed program was:" >&5
6093sed 's/^/| /' conftest.$ac_ext >&5
6094
6095  # Passes both tests.
6096ac_preproc_ok=:
6097break
6098fi
6099
6100rm -f conftest.err conftest.$ac_ext
6101
6102done
6103# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6104rm -f conftest.err conftest.$ac_ext
6105if $ac_preproc_ok; then
6106  break
6107fi
6108
6109    done
6110    ac_cv_prog_CXXCPP=$CXXCPP
6111
6112fi
6113  CXXCPP=$ac_cv_prog_CXXCPP
6114else
6115  ac_cv_prog_CXXCPP=$CXXCPP
6116fi
6117{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6118echo "${ECHO_T}$CXXCPP" >&6; }
6119ac_preproc_ok=false
6120for ac_cxx_preproc_warn_flag in '' yes
6121do
6122  # Use a header file that comes with gcc, so configuring glibc
6123  # with a fresh cross-compiler works.
6124  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6125  # <limits.h> exists even on freestanding compilers.
6126  # On the NeXT, cc -E runs the code through the compiler's parser,
6127  # not just through cpp. "Syntax error" is here to catch this case.
6128  cat >conftest.$ac_ext <<_ACEOF
6129/* confdefs.h.  */
6130_ACEOF
6131cat confdefs.h >>conftest.$ac_ext
6132cat >>conftest.$ac_ext <<_ACEOF
6133/* end confdefs.h.  */
6134#ifdef __STDC__
6135# include <limits.h>
6136#else
6137# include <assert.h>
6138#endif
6139		     Syntax error
6140_ACEOF
6141if { (ac_try="$ac_cpp conftest.$ac_ext"
6142case "(($ac_try" in
6143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6144  *) ac_try_echo=$ac_try;;
6145esac
6146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6147  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6148  ac_status=$?
6149  grep -v '^ *+' conftest.er1 >conftest.err
6150  rm -f conftest.er1
6151  cat conftest.err >&5
6152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153  (exit $ac_status); } >/dev/null && {
6154	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6155	 test ! -s conftest.err
6156       }; then
6157  :
6158else
6159  echo "$as_me: failed program was:" >&5
6160sed 's/^/| /' conftest.$ac_ext >&5
6161
6162  # Broken: fails on valid input.
6163continue
6164fi
6165
6166rm -f conftest.err conftest.$ac_ext
6167
6168  # OK, works on sane cases.  Now check whether nonexistent headers
6169  # can be detected and how.
6170  cat >conftest.$ac_ext <<_ACEOF
6171/* confdefs.h.  */
6172_ACEOF
6173cat confdefs.h >>conftest.$ac_ext
6174cat >>conftest.$ac_ext <<_ACEOF
6175/* end confdefs.h.  */
6176#include <ac_nonexistent.h>
6177_ACEOF
6178if { (ac_try="$ac_cpp conftest.$ac_ext"
6179case "(($ac_try" in
6180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181  *) ac_try_echo=$ac_try;;
6182esac
6183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6184  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6185  ac_status=$?
6186  grep -v '^ *+' conftest.er1 >conftest.err
6187  rm -f conftest.er1
6188  cat conftest.err >&5
6189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190  (exit $ac_status); } >/dev/null && {
6191	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6192	 test ! -s conftest.err
6193       }; then
6194  # Broken: success on invalid input.
6195continue
6196else
6197  echo "$as_me: failed program was:" >&5
6198sed 's/^/| /' conftest.$ac_ext >&5
6199
6200  # Passes both tests.
6201ac_preproc_ok=:
6202break
6203fi
6204
6205rm -f conftest.err conftest.$ac_ext
6206
6207done
6208# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6209rm -f conftest.err conftest.$ac_ext
6210if $ac_preproc_ok; then
6211  :
6212else
6213  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6214See \`config.log' for more details." >&5
6215echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6216See \`config.log' for more details." >&2;}
6217   { (exit 1); exit 1; }; }
6218fi
6219
6220ac_ext=cpp
6221ac_cpp='$CXXCPP $CPPFLAGS'
6222ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6223ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6224ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6225
6226fi
6227
6228
6229ac_ext=f
6230ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6231ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6232ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6233if test -n "$ac_tool_prefix"; then
6234  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
6235  do
6236    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6237set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6238{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6240if test "${ac_cv_prog_F77+set}" = set; then
6241  echo $ECHO_N "(cached) $ECHO_C" >&6
6242else
6243  if test -n "$F77"; then
6244  ac_cv_prog_F77="$F77" # Let the user override the test.
6245else
6246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247for as_dir in $PATH
6248do
6249  IFS=$as_save_IFS
6250  test -z "$as_dir" && as_dir=.
6251  for ac_exec_ext in '' $ac_executable_extensions; do
6252  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6253    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6254    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255    break 2
6256  fi
6257done
6258done
6259IFS=$as_save_IFS
6260
6261fi
6262fi
6263F77=$ac_cv_prog_F77
6264if test -n "$F77"; then
6265  { echo "$as_me:$LINENO: result: $F77" >&5
6266echo "${ECHO_T}$F77" >&6; }
6267else
6268  { echo "$as_me:$LINENO: result: no" >&5
6269echo "${ECHO_T}no" >&6; }
6270fi
6271
6272
6273    test -n "$F77" && break
6274  done
6275fi
6276if test -z "$F77"; then
6277  ac_ct_F77=$F77
6278  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
6279do
6280  # Extract the first word of "$ac_prog", so it can be a program name with args.
6281set dummy $ac_prog; ac_word=$2
6282{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6284if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6285  echo $ECHO_N "(cached) $ECHO_C" >&6
6286else
6287  if test -n "$ac_ct_F77"; then
6288  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6289else
6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291for as_dir in $PATH
6292do
6293  IFS=$as_save_IFS
6294  test -z "$as_dir" && as_dir=.
6295  for ac_exec_ext in '' $ac_executable_extensions; do
6296  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297    ac_cv_prog_ac_ct_F77="$ac_prog"
6298    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299    break 2
6300  fi
6301done
6302done
6303IFS=$as_save_IFS
6304
6305fi
6306fi
6307ac_ct_F77=$ac_cv_prog_ac_ct_F77
6308if test -n "$ac_ct_F77"; then
6309  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6310echo "${ECHO_T}$ac_ct_F77" >&6; }
6311else
6312  { echo "$as_me:$LINENO: result: no" >&5
6313echo "${ECHO_T}no" >&6; }
6314fi
6315
6316
6317  test -n "$ac_ct_F77" && break
6318done
6319
6320  if test "x$ac_ct_F77" = x; then
6321    F77=""
6322  else
6323    case $cross_compiling:$ac_tool_warned in
6324yes:)
6325{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6326whose name does not start with the host triplet.  If you think this
6327configuration is useful to you, please write to autoconf@gnu.org." >&5
6328echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6329whose name does not start with the host triplet.  If you think this
6330configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6331ac_tool_warned=yes ;;
6332esac
6333    F77=$ac_ct_F77
6334  fi
6335fi
6336
6337
6338# Provide some information about the compiler.
6339echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6340ac_compiler=`set X $ac_compile; echo $2`
6341{ (ac_try="$ac_compiler --version >&5"
6342case "(($ac_try" in
6343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344  *) ac_try_echo=$ac_try;;
6345esac
6346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6347  (eval "$ac_compiler --version >&5") 2>&5
6348  ac_status=$?
6349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350  (exit $ac_status); }
6351{ (ac_try="$ac_compiler -v >&5"
6352case "(($ac_try" in
6353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354  *) ac_try_echo=$ac_try;;
6355esac
6356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6357  (eval "$ac_compiler -v >&5") 2>&5
6358  ac_status=$?
6359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360  (exit $ac_status); }
6361{ (ac_try="$ac_compiler -V >&5"
6362case "(($ac_try" in
6363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364  *) ac_try_echo=$ac_try;;
6365esac
6366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6367  (eval "$ac_compiler -V >&5") 2>&5
6368  ac_status=$?
6369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370  (exit $ac_status); }
6371rm -f a.out
6372
6373# If we don't use `.F' as extension, the preprocessor is not run on the
6374# input file.  (Note that this only needs to work for GNU compilers.)
6375ac_save_ext=$ac_ext
6376ac_ext=F
6377{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6378echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6379if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6380  echo $ECHO_N "(cached) $ECHO_C" >&6
6381else
6382  cat >conftest.$ac_ext <<_ACEOF
6383      program main
6384#ifndef __GNUC__
6385       choke me
6386#endif
6387
6388      end
6389_ACEOF
6390rm -f conftest.$ac_objext
6391if { (ac_try="$ac_compile"
6392case "(($ac_try" in
6393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394  *) ac_try_echo=$ac_try;;
6395esac
6396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397  (eval "$ac_compile") 2>conftest.er1
6398  ac_status=$?
6399  grep -v '^ *+' conftest.er1 >conftest.err
6400  rm -f conftest.er1
6401  cat conftest.err >&5
6402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403  (exit $ac_status); } && {
6404	 test -z "$ac_f77_werror_flag" ||
6405	 test ! -s conftest.err
6406       } && test -s conftest.$ac_objext; then
6407  ac_compiler_gnu=yes
6408else
6409  echo "$as_me: failed program was:" >&5
6410sed 's/^/| /' conftest.$ac_ext >&5
6411
6412	ac_compiler_gnu=no
6413fi
6414
6415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6417
6418fi
6419{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6420echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6421ac_ext=$ac_save_ext
6422ac_test_FFLAGS=${FFLAGS+set}
6423ac_save_FFLAGS=$FFLAGS
6424FFLAGS=
6425{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6426echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6427if test "${ac_cv_prog_f77_g+set}" = set; then
6428  echo $ECHO_N "(cached) $ECHO_C" >&6
6429else
6430  FFLAGS=-g
6431cat >conftest.$ac_ext <<_ACEOF
6432      program main
6433
6434      end
6435_ACEOF
6436rm -f conftest.$ac_objext
6437if { (ac_try="$ac_compile"
6438case "(($ac_try" in
6439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440  *) ac_try_echo=$ac_try;;
6441esac
6442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443  (eval "$ac_compile") 2>conftest.er1
6444  ac_status=$?
6445  grep -v '^ *+' conftest.er1 >conftest.err
6446  rm -f conftest.er1
6447  cat conftest.err >&5
6448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449  (exit $ac_status); } && {
6450	 test -z "$ac_f77_werror_flag" ||
6451	 test ! -s conftest.err
6452       } && test -s conftest.$ac_objext; then
6453  ac_cv_prog_f77_g=yes
6454else
6455  echo "$as_me: failed program was:" >&5
6456sed 's/^/| /' conftest.$ac_ext >&5
6457
6458	ac_cv_prog_f77_g=no
6459fi
6460
6461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462
6463fi
6464{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6465echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6466if test "$ac_test_FFLAGS" = set; then
6467  FFLAGS=$ac_save_FFLAGS
6468elif test $ac_cv_prog_f77_g = yes; then
6469  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6470    FFLAGS="-g -O2"
6471  else
6472    FFLAGS="-g"
6473  fi
6474else
6475  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6476    FFLAGS="-O2"
6477  else
6478    FFLAGS=
6479  fi
6480fi
6481
6482G77=`test $ac_compiler_gnu = yes && echo yes`
6483ac_ext=c
6484ac_cpp='$CPP $CPPFLAGS'
6485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6487ac_compiler_gnu=$ac_cv_c_compiler_gnu
6488
6489
6490
6491# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6492# find the maximum length of command line arguments
6493{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6494echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6495if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6496  echo $ECHO_N "(cached) $ECHO_C" >&6
6497else
6498    i=0
6499  teststring="ABCD"
6500
6501  case $build_os in
6502  msdosdjgpp*)
6503    # On DJGPP, this test can blow up pretty badly due to problems in libc
6504    # (any single argument exceeding 2000 bytes causes a buffer overrun
6505    # during glob expansion).  Even if it were fixed, the result of this
6506    # check would be larger than it should be.
6507    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6508    ;;
6509
6510  gnu*)
6511    # Under GNU Hurd, this test is not required because there is
6512    # no limit to the length of command line arguments.
6513    # Libtool will interpret -1 as no limit whatsoever
6514    lt_cv_sys_max_cmd_len=-1;
6515    ;;
6516
6517  cygwin* | mingw*)
6518    # On Win9x/ME, this test blows up -- it succeeds, but takes
6519    # about 5 minutes as the teststring grows exponentially.
6520    # Worse, since 9x/ME are not pre-emptively multitasking,
6521    # you end up with a "frozen" computer, even though with patience
6522    # the test eventually succeeds (with a max line length of 256k).
6523    # Instead, let's just punt: use the minimum linelength reported by
6524    # all of the supported platforms: 8192 (on NT/2K/XP).
6525    lt_cv_sys_max_cmd_len=8192;
6526    ;;
6527
6528  amigaos*)
6529    # On AmigaOS with pdksh, this test takes hours, literally.
6530    # So we just punt and use a minimum line length of 8192.
6531    lt_cv_sys_max_cmd_len=8192;
6532    ;;
6533
6534  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6535    # This has been around since 386BSD, at least.  Likely further.
6536    if test -x /sbin/sysctl; then
6537      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6538    elif test -x /usr/sbin/sysctl; then
6539      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6540    else
6541      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6542    fi
6543    # And add a safety zone
6544    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6545    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6546    ;;
6547
6548  interix*)
6549    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6550    lt_cv_sys_max_cmd_len=196608
6551    ;;
6552
6553  osf*)
6554    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6555    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6556    # nice to cause kernel panics so lets avoid the loop below.
6557    # First set a reasonable default.
6558    lt_cv_sys_max_cmd_len=16384
6559    #
6560    if test -x /sbin/sysconfig; then
6561      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6562        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6563      esac
6564    fi
6565    ;;
6566  sco3.2v5*)
6567    lt_cv_sys_max_cmd_len=102400
6568    ;;
6569  sysv5* | sco5v6* | sysv4.2uw2*)
6570    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6571    if test -n "$kargmax"; then
6572      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6573    else
6574      lt_cv_sys_max_cmd_len=32768
6575    fi
6576    ;;
6577  *)
6578    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6579    if test -n "$lt_cv_sys_max_cmd_len"; then
6580      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6581      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6582    else
6583      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6584      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6585	       = "XX$teststring") >/dev/null 2>&1 &&
6586	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6587	      lt_cv_sys_max_cmd_len=$new_result &&
6588	      test $i != 17 # 1/2 MB should be enough
6589      do
6590        i=`expr $i + 1`
6591        teststring=$teststring$teststring
6592      done
6593      teststring=
6594      # Add a significant safety factor because C++ compilers can tack on massive
6595      # amounts of additional arguments before passing them to the linker.
6596      # It appears as though 1/2 is a usable value.
6597      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6598    fi
6599    ;;
6600  esac
6601
6602fi
6603
6604if test -n $lt_cv_sys_max_cmd_len ; then
6605  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6606echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6607else
6608  { echo "$as_me:$LINENO: result: none" >&5
6609echo "${ECHO_T}none" >&6; }
6610fi
6611
6612
6613
6614
6615
6616# Check for command to grab the raw symbol name followed by C symbol from nm.
6617{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6618echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6619if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6620  echo $ECHO_N "(cached) $ECHO_C" >&6
6621else
6622
6623# These are sane defaults that work on at least a few old systems.
6624# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6625
6626# Character class describing NM global symbol codes.
6627symcode='[BCDEGRST]'
6628
6629# Regexp to match symbols that can be accessed directly from C.
6630sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6631
6632# Transform an extracted symbol line into a proper C declaration
6633lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6634
6635# Transform an extracted symbol line into symbol name and symbol address
6636lt_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'"
6637
6638# Define system-specific variables.
6639case $host_os in
6640aix*)
6641  symcode='[BCDT]'
6642  ;;
6643cygwin* | mingw* | pw32*)
6644  symcode='[ABCDGISTW]'
6645  ;;
6646hpux*) # Its linker distinguishes data from code symbols
6647  if test "$host_cpu" = ia64; then
6648    symcode='[ABCDEGRST]'
6649  fi
6650  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6651  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'"
6652  ;;
6653linux* | k*bsd*-gnu)
6654  if test "$host_cpu" = ia64; then
6655    symcode='[ABCDGIRSTW]'
6656    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6657    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'"
6658  fi
6659  ;;
6660irix* | nonstopux*)
6661  symcode='[BCDEGRST]'
6662  ;;
6663osf*)
6664  symcode='[BCDEGQRST]'
6665  ;;
6666solaris*)
6667  symcode='[BDRT]'
6668  ;;
6669sco3.2v5*)
6670  symcode='[DT]'
6671  ;;
6672sysv4.2uw2*)
6673  symcode='[DT]'
6674  ;;
6675sysv5* | sco5v6* | unixware* | OpenUNIX*)
6676  symcode='[ABDT]'
6677  ;;
6678sysv4)
6679  symcode='[DFNSTU]'
6680  ;;
6681esac
6682
6683# Handle CRLF in mingw tool chain
6684opt_cr=
6685case $build_os in
6686mingw*)
6687  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6688  ;;
6689esac
6690
6691# If we're using GNU nm, then use its standard symbol codes.
6692case `$NM -V 2>&1` in
6693*GNU* | *'with BFD'*)
6694  symcode='[ABCDGIRSTW]' ;;
6695esac
6696
6697# Try without a prefix undercore, then with it.
6698for ac_symprfx in "" "_"; do
6699
6700  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6701  symxfrm="\\1 $ac_symprfx\\2 \\2"
6702
6703  # Write the raw and C identifiers.
6704  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6705
6706  # Check to see that the pipe works correctly.
6707  pipe_works=no
6708
6709  rm -f conftest*
6710  cat > conftest.$ac_ext <<EOF
6711#ifdef __cplusplus
6712extern "C" {
6713#endif
6714char nm_test_var;
6715void nm_test_func(){}
6716#ifdef __cplusplus
6717}
6718#endif
6719int main(){nm_test_var='a';nm_test_func();return(0);}
6720EOF
6721
6722  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6723  (eval $ac_compile) 2>&5
6724  ac_status=$?
6725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726  (exit $ac_status); }; then
6727    # Now try to grab the symbols.
6728    nlist=conftest.nm
6729    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6730  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6731  ac_status=$?
6732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733  (exit $ac_status); } && test -s "$nlist"; then
6734      # Try sorting and uniquifying the output.
6735      if sort "$nlist" | uniq > "$nlist"T; then
6736	mv -f "$nlist"T "$nlist"
6737      else
6738	rm -f "$nlist"T
6739      fi
6740
6741      # Make sure that we snagged all the symbols we need.
6742      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6743	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6744	  cat <<EOF > conftest.$ac_ext
6745#ifdef __cplusplus
6746extern "C" {
6747#endif
6748
6749EOF
6750	  # Now generate the symbol file.
6751	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6752
6753	  cat <<EOF >> conftest.$ac_ext
6754#if defined (__STDC__) && __STDC__
6755# define lt_ptr_t void *
6756#else
6757# define lt_ptr_t char *
6758# define const
6759#endif
6760
6761/* The mapping between symbol names and symbols. */
6762const struct {
6763  const char *name;
6764  lt_ptr_t address;
6765}
6766lt_preloaded_symbols[] =
6767{
6768EOF
6769	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6770	  cat <<\EOF >> conftest.$ac_ext
6771  {0, (lt_ptr_t) 0}
6772};
6773
6774#ifdef __cplusplus
6775}
6776#endif
6777EOF
6778	  # Now try linking the two files.
6779	  mv conftest.$ac_objext conftstm.$ac_objext
6780	  lt_save_LIBS="$LIBS"
6781	  lt_save_CFLAGS="$CFLAGS"
6782	  LIBS="conftstm.$ac_objext"
6783	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6784	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6785  (eval $ac_link) 2>&5
6786  ac_status=$?
6787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6789	    pipe_works=yes
6790	  fi
6791	  LIBS="$lt_save_LIBS"
6792	  CFLAGS="$lt_save_CFLAGS"
6793	else
6794	  echo "cannot find nm_test_func in $nlist" >&5
6795	fi
6796      else
6797	echo "cannot find nm_test_var in $nlist" >&5
6798      fi
6799    else
6800      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6801    fi
6802  else
6803    echo "$progname: failed program was:" >&5
6804    cat conftest.$ac_ext >&5
6805  fi
6806  rm -rf conftest* conftst*
6807
6808  # Do not use the global_symbol_pipe unless it works.
6809  if test "$pipe_works" = yes; then
6810    break
6811  else
6812    lt_cv_sys_global_symbol_pipe=
6813  fi
6814done
6815
6816fi
6817
6818if test -z "$lt_cv_sys_global_symbol_pipe"; then
6819  lt_cv_sys_global_symbol_to_cdecl=
6820fi
6821if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6822  { echo "$as_me:$LINENO: result: failed" >&5
6823echo "${ECHO_T}failed" >&6; }
6824else
6825  { echo "$as_me:$LINENO: result: ok" >&5
6826echo "${ECHO_T}ok" >&6; }
6827fi
6828
6829{ echo "$as_me:$LINENO: checking for objdir" >&5
6830echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6831if test "${lt_cv_objdir+set}" = set; then
6832  echo $ECHO_N "(cached) $ECHO_C" >&6
6833else
6834  rm -f .libs 2>/dev/null
6835mkdir .libs 2>/dev/null
6836if test -d .libs; then
6837  lt_cv_objdir=.libs
6838else
6839  # MS-DOS does not allow filenames that begin with a dot.
6840  lt_cv_objdir=_libs
6841fi
6842rmdir .libs 2>/dev/null
6843fi
6844{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6845echo "${ECHO_T}$lt_cv_objdir" >&6; }
6846objdir=$lt_cv_objdir
6847
6848
6849
6850
6851
6852case $host_os in
6853aix3*)
6854  # AIX sometimes has problems with the GCC collect2 program.  For some
6855  # reason, if we set the COLLECT_NAMES environment variable, the problems
6856  # vanish in a puff of smoke.
6857  if test "X${COLLECT_NAMES+set}" != Xset; then
6858    COLLECT_NAMES=
6859    export COLLECT_NAMES
6860  fi
6861  ;;
6862esac
6863
6864# Sed substitution that helps us do robust quoting.  It backslashifies
6865# metacharacters that are still active within double-quoted strings.
6866Xsed='sed -e 1s/^X//'
6867sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6868
6869# Same as above, but do not quote variable references.
6870double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6871
6872# Sed substitution to delay expansion of an escaped shell variable in a
6873# double_quote_subst'ed string.
6874delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6875
6876# Sed substitution to avoid accidental globbing in evaled expressions
6877no_glob_subst='s/\*/\\\*/g'
6878
6879# Constants:
6880rm="rm -f"
6881
6882# Global variables:
6883default_ofile=libtool
6884can_build_shared=yes
6885
6886# All known linkers require a `.a' archive for static linking (except MSVC,
6887# which needs '.lib').
6888libext=a
6889ltmain="$ac_aux_dir/ltmain.sh"
6890ofile="$default_ofile"
6891with_gnu_ld="$lt_cv_prog_gnu_ld"
6892
6893if test -n "$ac_tool_prefix"; then
6894  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6895set dummy ${ac_tool_prefix}ar; ac_word=$2
6896{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898if test "${ac_cv_prog_AR+set}" = set; then
6899  echo $ECHO_N "(cached) $ECHO_C" >&6
6900else
6901  if test -n "$AR"; then
6902  ac_cv_prog_AR="$AR" # Let the user override the test.
6903else
6904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905for as_dir in $PATH
6906do
6907  IFS=$as_save_IFS
6908  test -z "$as_dir" && as_dir=.
6909  for ac_exec_ext in '' $ac_executable_extensions; do
6910  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6911    ac_cv_prog_AR="${ac_tool_prefix}ar"
6912    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913    break 2
6914  fi
6915done
6916done
6917IFS=$as_save_IFS
6918
6919fi
6920fi
6921AR=$ac_cv_prog_AR
6922if test -n "$AR"; then
6923  { echo "$as_me:$LINENO: result: $AR" >&5
6924echo "${ECHO_T}$AR" >&6; }
6925else
6926  { echo "$as_me:$LINENO: result: no" >&5
6927echo "${ECHO_T}no" >&6; }
6928fi
6929
6930
6931fi
6932if test -z "$ac_cv_prog_AR"; then
6933  ac_ct_AR=$AR
6934  # Extract the first word of "ar", so it can be a program name with args.
6935set dummy ar; ac_word=$2
6936{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6938if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6939  echo $ECHO_N "(cached) $ECHO_C" >&6
6940else
6941  if test -n "$ac_ct_AR"; then
6942  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6943else
6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945for as_dir in $PATH
6946do
6947  IFS=$as_save_IFS
6948  test -z "$as_dir" && as_dir=.
6949  for ac_exec_ext in '' $ac_executable_extensions; do
6950  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6951    ac_cv_prog_ac_ct_AR="ar"
6952    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6953    break 2
6954  fi
6955done
6956done
6957IFS=$as_save_IFS
6958
6959fi
6960fi
6961ac_ct_AR=$ac_cv_prog_ac_ct_AR
6962if test -n "$ac_ct_AR"; then
6963  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6964echo "${ECHO_T}$ac_ct_AR" >&6; }
6965else
6966  { echo "$as_me:$LINENO: result: no" >&5
6967echo "${ECHO_T}no" >&6; }
6968fi
6969
6970  if test "x$ac_ct_AR" = x; then
6971    AR="false"
6972  else
6973    case $cross_compiling:$ac_tool_warned in
6974yes:)
6975{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6976whose name does not start with the host triplet.  If you think this
6977configuration is useful to you, please write to autoconf@gnu.org." >&5
6978echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6979whose name does not start with the host triplet.  If you think this
6980configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6981ac_tool_warned=yes ;;
6982esac
6983    AR=$ac_ct_AR
6984  fi
6985else
6986  AR="$ac_cv_prog_AR"
6987fi
6988
6989if test -n "$ac_tool_prefix"; then
6990  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6991set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6992{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6994if test "${ac_cv_prog_RANLIB+set}" = set; then
6995  echo $ECHO_N "(cached) $ECHO_C" >&6
6996else
6997  if test -n "$RANLIB"; then
6998  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6999else
7000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001for as_dir in $PATH
7002do
7003  IFS=$as_save_IFS
7004  test -z "$as_dir" && as_dir=.
7005  for ac_exec_ext in '' $ac_executable_extensions; do
7006  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7007    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7008    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7009    break 2
7010  fi
7011done
7012done
7013IFS=$as_save_IFS
7014
7015fi
7016fi
7017RANLIB=$ac_cv_prog_RANLIB
7018if test -n "$RANLIB"; then
7019  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7020echo "${ECHO_T}$RANLIB" >&6; }
7021else
7022  { echo "$as_me:$LINENO: result: no" >&5
7023echo "${ECHO_T}no" >&6; }
7024fi
7025
7026
7027fi
7028if test -z "$ac_cv_prog_RANLIB"; then
7029  ac_ct_RANLIB=$RANLIB
7030  # Extract the first word of "ranlib", so it can be a program name with args.
7031set dummy ranlib; ac_word=$2
7032{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7034if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7035  echo $ECHO_N "(cached) $ECHO_C" >&6
7036else
7037  if test -n "$ac_ct_RANLIB"; then
7038  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7039else
7040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041for as_dir in $PATH
7042do
7043  IFS=$as_save_IFS
7044  test -z "$as_dir" && as_dir=.
7045  for ac_exec_ext in '' $ac_executable_extensions; do
7046  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7047    ac_cv_prog_ac_ct_RANLIB="ranlib"
7048    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7049    break 2
7050  fi
7051done
7052done
7053IFS=$as_save_IFS
7054
7055fi
7056fi
7057ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7058if test -n "$ac_ct_RANLIB"; then
7059  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7060echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7061else
7062  { echo "$as_me:$LINENO: result: no" >&5
7063echo "${ECHO_T}no" >&6; }
7064fi
7065
7066  if test "x$ac_ct_RANLIB" = x; then
7067    RANLIB=":"
7068  else
7069    case $cross_compiling:$ac_tool_warned in
7070yes:)
7071{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7072whose name does not start with the host triplet.  If you think this
7073configuration is useful to you, please write to autoconf@gnu.org." >&5
7074echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7075whose name does not start with the host triplet.  If you think this
7076configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7077ac_tool_warned=yes ;;
7078esac
7079    RANLIB=$ac_ct_RANLIB
7080  fi
7081else
7082  RANLIB="$ac_cv_prog_RANLIB"
7083fi
7084
7085if test -n "$ac_tool_prefix"; then
7086  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7087set dummy ${ac_tool_prefix}strip; ac_word=$2
7088{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7090if test "${ac_cv_prog_STRIP+set}" = set; then
7091  echo $ECHO_N "(cached) $ECHO_C" >&6
7092else
7093  if test -n "$STRIP"; then
7094  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7095else
7096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097for as_dir in $PATH
7098do
7099  IFS=$as_save_IFS
7100  test -z "$as_dir" && as_dir=.
7101  for ac_exec_ext in '' $ac_executable_extensions; do
7102  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7103    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7104    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7105    break 2
7106  fi
7107done
7108done
7109IFS=$as_save_IFS
7110
7111fi
7112fi
7113STRIP=$ac_cv_prog_STRIP
7114if test -n "$STRIP"; then
7115  { echo "$as_me:$LINENO: result: $STRIP" >&5
7116echo "${ECHO_T}$STRIP" >&6; }
7117else
7118  { echo "$as_me:$LINENO: result: no" >&5
7119echo "${ECHO_T}no" >&6; }
7120fi
7121
7122
7123fi
7124if test -z "$ac_cv_prog_STRIP"; then
7125  ac_ct_STRIP=$STRIP
7126  # Extract the first word of "strip", so it can be a program name with args.
7127set dummy strip; ac_word=$2
7128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7130if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7131  echo $ECHO_N "(cached) $ECHO_C" >&6
7132else
7133  if test -n "$ac_ct_STRIP"; then
7134  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7135else
7136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137for as_dir in $PATH
7138do
7139  IFS=$as_save_IFS
7140  test -z "$as_dir" && as_dir=.
7141  for ac_exec_ext in '' $ac_executable_extensions; do
7142  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7143    ac_cv_prog_ac_ct_STRIP="strip"
7144    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7145    break 2
7146  fi
7147done
7148done
7149IFS=$as_save_IFS
7150
7151fi
7152fi
7153ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7154if test -n "$ac_ct_STRIP"; then
7155  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7156echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7157else
7158  { echo "$as_me:$LINENO: result: no" >&5
7159echo "${ECHO_T}no" >&6; }
7160fi
7161
7162  if test "x$ac_ct_STRIP" = x; then
7163    STRIP=":"
7164  else
7165    case $cross_compiling:$ac_tool_warned in
7166yes:)
7167{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7168whose name does not start with the host triplet.  If you think this
7169configuration is useful to you, please write to autoconf@gnu.org." >&5
7170echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7171whose name does not start with the host triplet.  If you think this
7172configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7173ac_tool_warned=yes ;;
7174esac
7175    STRIP=$ac_ct_STRIP
7176  fi
7177else
7178  STRIP="$ac_cv_prog_STRIP"
7179fi
7180
7181
7182old_CC="$CC"
7183old_CFLAGS="$CFLAGS"
7184
7185# Set sane defaults for various variables
7186test -z "$AR" && AR=ar
7187test -z "$AR_FLAGS" && AR_FLAGS=cru
7188test -z "$AS" && AS=as
7189test -z "$CC" && CC=cc
7190test -z "$LTCC" && LTCC=$CC
7191test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7192test -z "$DLLTOOL" && DLLTOOL=dlltool
7193test -z "$LD" && LD=ld
7194test -z "$LN_S" && LN_S="ln -s"
7195test -z "$MAGIC_CMD" && MAGIC_CMD=file
7196test -z "$NM" && NM=nm
7197test -z "$SED" && SED=sed
7198test -z "$OBJDUMP" && OBJDUMP=objdump
7199test -z "$RANLIB" && RANLIB=:
7200test -z "$STRIP" && STRIP=:
7201test -z "$ac_objext" && ac_objext=o
7202
7203# Determine commands to create old-style static archives.
7204old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7205old_postinstall_cmds='chmod 644 $oldlib'
7206old_postuninstall_cmds=
7207
7208if test -n "$RANLIB"; then
7209  case $host_os in
7210  openbsd*)
7211    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7212    ;;
7213  *)
7214    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7215    ;;
7216  esac
7217  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7218fi
7219
7220for cc_temp in $compiler""; do
7221  case $cc_temp in
7222    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7223    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7224    \-*) ;;
7225    *) break;;
7226  esac
7227done
7228cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7229
7230
7231# Only perform the check for file, if the check method requires it
7232case $deplibs_check_method in
7233file_magic*)
7234  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7235    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7236echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7237if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7238  echo $ECHO_N "(cached) $ECHO_C" >&6
7239else
7240  case $MAGIC_CMD in
7241[\\/*] |  ?:[\\/]*)
7242  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7243  ;;
7244*)
7245  lt_save_MAGIC_CMD="$MAGIC_CMD"
7246  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7247  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7248  for ac_dir in $ac_dummy; do
7249    IFS="$lt_save_ifs"
7250    test -z "$ac_dir" && ac_dir=.
7251    if test -f $ac_dir/${ac_tool_prefix}file; then
7252      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7253      if test -n "$file_magic_test_file"; then
7254	case $deplibs_check_method in
7255	"file_magic "*)
7256	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7257	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7258	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7259	    $EGREP "$file_magic_regex" > /dev/null; then
7260	    :
7261	  else
7262	    cat <<EOF 1>&2
7263
7264*** Warning: the command libtool uses to detect shared libraries,
7265*** $file_magic_cmd, produces output that libtool cannot recognize.
7266*** The result is that libtool may fail to recognize shared libraries
7267*** as such.  This will affect the creation of libtool libraries that
7268*** depend on shared libraries, but programs linked with such libtool
7269*** libraries will work regardless of this problem.  Nevertheless, you
7270*** may want to report the problem to your system manager and/or to
7271*** bug-libtool@gnu.org
7272
7273EOF
7274	  fi ;;
7275	esac
7276      fi
7277      break
7278    fi
7279  done
7280  IFS="$lt_save_ifs"
7281  MAGIC_CMD="$lt_save_MAGIC_CMD"
7282  ;;
7283esac
7284fi
7285
7286MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7287if test -n "$MAGIC_CMD"; then
7288  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7289echo "${ECHO_T}$MAGIC_CMD" >&6; }
7290else
7291  { echo "$as_me:$LINENO: result: no" >&5
7292echo "${ECHO_T}no" >&6; }
7293fi
7294
7295if test -z "$lt_cv_path_MAGIC_CMD"; then
7296  if test -n "$ac_tool_prefix"; then
7297    { echo "$as_me:$LINENO: checking for file" >&5
7298echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7299if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7300  echo $ECHO_N "(cached) $ECHO_C" >&6
7301else
7302  case $MAGIC_CMD in
7303[\\/*] |  ?:[\\/]*)
7304  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7305  ;;
7306*)
7307  lt_save_MAGIC_CMD="$MAGIC_CMD"
7308  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7309  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7310  for ac_dir in $ac_dummy; do
7311    IFS="$lt_save_ifs"
7312    test -z "$ac_dir" && ac_dir=.
7313    if test -f $ac_dir/file; then
7314      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7315      if test -n "$file_magic_test_file"; then
7316	case $deplibs_check_method in
7317	"file_magic "*)
7318	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7319	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7320	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7321	    $EGREP "$file_magic_regex" > /dev/null; then
7322	    :
7323	  else
7324	    cat <<EOF 1>&2
7325
7326*** Warning: the command libtool uses to detect shared libraries,
7327*** $file_magic_cmd, produces output that libtool cannot recognize.
7328*** The result is that libtool may fail to recognize shared libraries
7329*** as such.  This will affect the creation of libtool libraries that
7330*** depend on shared libraries, but programs linked with such libtool
7331*** libraries will work regardless of this problem.  Nevertheless, you
7332*** may want to report the problem to your system manager and/or to
7333*** bug-libtool@gnu.org
7334
7335EOF
7336	  fi ;;
7337	esac
7338      fi
7339      break
7340    fi
7341  done
7342  IFS="$lt_save_ifs"
7343  MAGIC_CMD="$lt_save_MAGIC_CMD"
7344  ;;
7345esac
7346fi
7347
7348MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7349if test -n "$MAGIC_CMD"; then
7350  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7351echo "${ECHO_T}$MAGIC_CMD" >&6; }
7352else
7353  { echo "$as_me:$LINENO: result: no" >&5
7354echo "${ECHO_T}no" >&6; }
7355fi
7356
7357  else
7358    MAGIC_CMD=:
7359  fi
7360fi
7361
7362  fi
7363  ;;
7364esac
7365
7366
7367  case $host_os in
7368    rhapsody* | darwin*)
7369    if test -n "$ac_tool_prefix"; then
7370  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7371set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7372{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7374if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7375  echo $ECHO_N "(cached) $ECHO_C" >&6
7376else
7377  if test -n "$DSYMUTIL"; then
7378  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7379else
7380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381for as_dir in $PATH
7382do
7383  IFS=$as_save_IFS
7384  test -z "$as_dir" && as_dir=.
7385  for ac_exec_ext in '' $ac_executable_extensions; do
7386  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7387    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7388    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7389    break 2
7390  fi
7391done
7392done
7393IFS=$as_save_IFS
7394
7395fi
7396fi
7397DSYMUTIL=$ac_cv_prog_DSYMUTIL
7398if test -n "$DSYMUTIL"; then
7399  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7400echo "${ECHO_T}$DSYMUTIL" >&6; }
7401else
7402  { echo "$as_me:$LINENO: result: no" >&5
7403echo "${ECHO_T}no" >&6; }
7404fi
7405
7406
7407fi
7408if test -z "$ac_cv_prog_DSYMUTIL"; then
7409  ac_ct_DSYMUTIL=$DSYMUTIL
7410  # Extract the first word of "dsymutil", so it can be a program name with args.
7411set dummy dsymutil; ac_word=$2
7412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7414if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7415  echo $ECHO_N "(cached) $ECHO_C" >&6
7416else
7417  if test -n "$ac_ct_DSYMUTIL"; then
7418  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7419else
7420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421for as_dir in $PATH
7422do
7423  IFS=$as_save_IFS
7424  test -z "$as_dir" && as_dir=.
7425  for ac_exec_ext in '' $ac_executable_extensions; do
7426  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7427    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7428    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7429    break 2
7430  fi
7431done
7432done
7433IFS=$as_save_IFS
7434
7435fi
7436fi
7437ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7438if test -n "$ac_ct_DSYMUTIL"; then
7439  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7440echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7441else
7442  { echo "$as_me:$LINENO: result: no" >&5
7443echo "${ECHO_T}no" >&6; }
7444fi
7445
7446  if test "x$ac_ct_DSYMUTIL" = x; then
7447    DSYMUTIL=":"
7448  else
7449    case $cross_compiling:$ac_tool_warned in
7450yes:)
7451{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7452whose name does not start with the host triplet.  If you think this
7453configuration is useful to you, please write to autoconf@gnu.org." >&5
7454echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7455whose name does not start with the host triplet.  If you think this
7456configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7457ac_tool_warned=yes ;;
7458esac
7459    DSYMUTIL=$ac_ct_DSYMUTIL
7460  fi
7461else
7462  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7463fi
7464
7465    if test -n "$ac_tool_prefix"; then
7466  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7467set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7470if test "${ac_cv_prog_NMEDIT+set}" = set; then
7471  echo $ECHO_N "(cached) $ECHO_C" >&6
7472else
7473  if test -n "$NMEDIT"; then
7474  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7475else
7476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477for as_dir in $PATH
7478do
7479  IFS=$as_save_IFS
7480  test -z "$as_dir" && as_dir=.
7481  for ac_exec_ext in '' $ac_executable_extensions; do
7482  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7483    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7484    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7485    break 2
7486  fi
7487done
7488done
7489IFS=$as_save_IFS
7490
7491fi
7492fi
7493NMEDIT=$ac_cv_prog_NMEDIT
7494if test -n "$NMEDIT"; then
7495  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7496echo "${ECHO_T}$NMEDIT" >&6; }
7497else
7498  { echo "$as_me:$LINENO: result: no" >&5
7499echo "${ECHO_T}no" >&6; }
7500fi
7501
7502
7503fi
7504if test -z "$ac_cv_prog_NMEDIT"; then
7505  ac_ct_NMEDIT=$NMEDIT
7506  # Extract the first word of "nmedit", so it can be a program name with args.
7507set dummy nmedit; ac_word=$2
7508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7510if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7511  echo $ECHO_N "(cached) $ECHO_C" >&6
7512else
7513  if test -n "$ac_ct_NMEDIT"; then
7514  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7515else
7516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517for as_dir in $PATH
7518do
7519  IFS=$as_save_IFS
7520  test -z "$as_dir" && as_dir=.
7521  for ac_exec_ext in '' $ac_executable_extensions; do
7522  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7523    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7524    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525    break 2
7526  fi
7527done
7528done
7529IFS=$as_save_IFS
7530
7531fi
7532fi
7533ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7534if test -n "$ac_ct_NMEDIT"; then
7535  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7536echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7537else
7538  { echo "$as_me:$LINENO: result: no" >&5
7539echo "${ECHO_T}no" >&6; }
7540fi
7541
7542  if test "x$ac_ct_NMEDIT" = x; then
7543    NMEDIT=":"
7544  else
7545    case $cross_compiling:$ac_tool_warned in
7546yes:)
7547{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7548whose name does not start with the host triplet.  If you think this
7549configuration is useful to you, please write to autoconf@gnu.org." >&5
7550echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7551whose name does not start with the host triplet.  If you think this
7552configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7553ac_tool_warned=yes ;;
7554esac
7555    NMEDIT=$ac_ct_NMEDIT
7556  fi
7557else
7558  NMEDIT="$ac_cv_prog_NMEDIT"
7559fi
7560
7561
7562    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7563echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7564if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7565  echo $ECHO_N "(cached) $ECHO_C" >&6
7566else
7567  lt_cv_apple_cc_single_mod=no
7568      if test -z "${LT_MULTI_MODULE}"; then
7569   # By default we will add the -single_module flag. You can override
7570   # by either setting the environment variable LT_MULTI_MODULE
7571   # non-empty at configure time, or by adding -multi_module to the
7572   # link flags.
7573   echo "int foo(void){return 1;}" > conftest.c
7574   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7575     -dynamiclib ${wl}-single_module conftest.c
7576   if test -f libconftest.dylib; then
7577     lt_cv_apple_cc_single_mod=yes
7578     rm -rf libconftest.dylib*
7579   fi
7580   rm conftest.c
7581      fi
7582fi
7583{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7584echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7585    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7586echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7587if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7588  echo $ECHO_N "(cached) $ECHO_C" >&6
7589else
7590  lt_cv_ld_exported_symbols_list=no
7591      save_LDFLAGS=$LDFLAGS
7592      echo "_main" > conftest.sym
7593      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7594      cat >conftest.$ac_ext <<_ACEOF
7595/* confdefs.h.  */
7596_ACEOF
7597cat confdefs.h >>conftest.$ac_ext
7598cat >>conftest.$ac_ext <<_ACEOF
7599/* end confdefs.h.  */
7600
7601int
7602main ()
7603{
7604
7605  ;
7606  return 0;
7607}
7608_ACEOF
7609rm -f conftest.$ac_objext conftest$ac_exeext
7610if { (ac_try="$ac_link"
7611case "(($ac_try" in
7612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7613  *) ac_try_echo=$ac_try;;
7614esac
7615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7616  (eval "$ac_link") 2>conftest.er1
7617  ac_status=$?
7618  grep -v '^ *+' conftest.er1 >conftest.err
7619  rm -f conftest.er1
7620  cat conftest.err >&5
7621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622  (exit $ac_status); } && {
7623	 test -z "$ac_c_werror_flag" ||
7624	 test ! -s conftest.err
7625       } && test -s conftest$ac_exeext &&
7626       $as_test_x conftest$ac_exeext; then
7627  lt_cv_ld_exported_symbols_list=yes
7628else
7629  echo "$as_me: failed program was:" >&5
7630sed 's/^/| /' conftest.$ac_ext >&5
7631
7632	lt_cv_ld_exported_symbols_list=no
7633fi
7634
7635rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7636      conftest$ac_exeext conftest.$ac_ext
7637   LDFLAGS="$save_LDFLAGS"
7638
7639fi
7640{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7641echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7642    case $host_os in
7643    rhapsody* | darwin1.[0123])
7644      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7645    darwin1.*)
7646     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7647    darwin*)
7648      # if running on 10.5 or later, the deployment target defaults
7649      # to the OS version, if on x86, and 10.4, the deployment
7650      # target defaults to 10.4. Don't you love it?
7651      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7652   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7653     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7654   10.[012]*)
7655     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7656   10.*)
7657     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7658      esac
7659    ;;
7660  esac
7661    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7662      _lt_dar_single_mod='$single_module'
7663    fi
7664    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7665      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7666    else
7667      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7668    fi
7669    if test "$DSYMUTIL" != ":"; then
7670      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7671    else
7672      _lt_dsymutil=
7673    fi
7674    ;;
7675  esac
7676
7677
7678enable_dlopen=no
7679enable_win32_dll=yes
7680
7681# Check whether --enable-libtool-lock was given.
7682if test "${enable_libtool_lock+set}" = set; then
7683  enableval=$enable_libtool_lock;
7684fi
7685
7686test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7687
7688
7689# Check whether --with-pic was given.
7690if test "${with_pic+set}" = set; then
7691  withval=$with_pic; pic_mode="$withval"
7692else
7693  pic_mode=default
7694fi
7695
7696test -z "$pic_mode" && pic_mode=default
7697
7698# Use C for the default configuration in the libtool script
7699tagname=
7700lt_save_CC="$CC"
7701ac_ext=c
7702ac_cpp='$CPP $CPPFLAGS'
7703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7705ac_compiler_gnu=$ac_cv_c_compiler_gnu
7706
7707
7708# Source file extension for C test sources.
7709ac_ext=c
7710
7711# Object file extension for compiled C test sources.
7712objext=o
7713objext=$objext
7714
7715# Code to be used in simple compile tests
7716lt_simple_compile_test_code="int some_variable = 0;"
7717
7718# Code to be used in simple link tests
7719lt_simple_link_test_code='int main(){return(0);}'
7720
7721
7722# If no C compiler was specified, use CC.
7723LTCC=${LTCC-"$CC"}
7724
7725# If no C compiler flags were specified, use CFLAGS.
7726LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7727
7728# Allow CC to be a program name with arguments.
7729compiler=$CC
7730
7731
7732# save warnings/boilerplate of simple test code
7733ac_outfile=conftest.$ac_objext
7734echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7735eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7736_lt_compiler_boilerplate=`cat conftest.err`
7737$rm conftest*
7738
7739ac_outfile=conftest.$ac_objext
7740echo "$lt_simple_link_test_code" >conftest.$ac_ext
7741eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7742_lt_linker_boilerplate=`cat conftest.err`
7743$rm -r conftest*
7744
7745
7746
7747lt_prog_compiler_no_builtin_flag=
7748
7749if test "$GCC" = yes; then
7750  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7751
7752
7753{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7754echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7755if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7756  echo $ECHO_N "(cached) $ECHO_C" >&6
7757else
7758  lt_cv_prog_compiler_rtti_exceptions=no
7759  ac_outfile=conftest.$ac_objext
7760   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7761   lt_compiler_flag="-fno-rtti -fno-exceptions"
7762   # Insert the option either (1) after the last *FLAGS variable, or
7763   # (2) before a word containing "conftest.", or (3) at the end.
7764   # Note that $ac_compile itself does not contain backslashes and begins
7765   # with a dollar sign (not a hyphen), so the echo should work correctly.
7766   # The option is referenced via a variable to avoid confusing sed.
7767   lt_compile=`echo "$ac_compile" | $SED \
7768   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7769   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7770   -e 's:$: $lt_compiler_flag:'`
7771   (eval echo "\"\$as_me:7771: $lt_compile\"" >&5)
7772   (eval "$lt_compile" 2>conftest.err)
7773   ac_status=$?
7774   cat conftest.err >&5
7775   echo "$as_me:7775: \$? = $ac_status" >&5
7776   if (exit $ac_status) && test -s "$ac_outfile"; then
7777     # The compiler can only warn and ignore the option if not recognized
7778     # So say no if there are warnings other than the usual output.
7779     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7780     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7781     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7782       lt_cv_prog_compiler_rtti_exceptions=yes
7783     fi
7784   fi
7785   $rm conftest*
7786
7787fi
7788{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7789echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7790
7791if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7792    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7793else
7794    :
7795fi
7796
7797fi
7798
7799lt_prog_compiler_wl=
7800lt_prog_compiler_pic=
7801lt_prog_compiler_static=
7802
7803{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7804echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7805
7806  if test "$GCC" = yes; then
7807    lt_prog_compiler_wl='-Wl,'
7808    lt_prog_compiler_static='-static'
7809
7810    case $host_os in
7811      aix*)
7812      # All AIX code is PIC.
7813      if test "$host_cpu" = ia64; then
7814	# AIX 5 now supports IA64 processor
7815	lt_prog_compiler_static='-Bstatic'
7816      fi
7817      ;;
7818
7819    amigaos*)
7820      # FIXME: we need at least 68020 code to build shared libraries, but
7821      # adding the `-m68020' flag to GCC prevents building anything better,
7822      # like `-m68040'.
7823      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7824      ;;
7825
7826    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7827      # PIC is the default for these OSes.
7828      ;;
7829
7830    mingw* | cygwin* | pw32* | os2*)
7831      # This hack is so that the source file can tell whether it is being
7832      # built for inclusion in a dll (and should export symbols for example).
7833      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7834      # (--disable-auto-import) libraries
7835      lt_prog_compiler_pic='-DDLL_EXPORT'
7836      ;;
7837
7838    darwin* | rhapsody*)
7839      # PIC is the default on this platform
7840      # Common symbols not allowed in MH_DYLIB files
7841      lt_prog_compiler_pic='-fno-common'
7842      ;;
7843
7844    interix[3-9]*)
7845      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7846      # Instead, we relocate shared libraries at runtime.
7847      ;;
7848
7849    msdosdjgpp*)
7850      # Just because we use GCC doesn't mean we suddenly get shared libraries
7851      # on systems that don't support them.
7852      lt_prog_compiler_can_build_shared=no
7853      enable_shared=no
7854      ;;
7855
7856    sysv4*MP*)
7857      if test -d /usr/nec; then
7858	lt_prog_compiler_pic=-Kconform_pic
7859      fi
7860      ;;
7861
7862    hpux*)
7863      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7864      # not for PA HP-UX.
7865      case $host_cpu in
7866      hppa*64*|ia64*)
7867	# +Z the default
7868	;;
7869      *)
7870	lt_prog_compiler_pic='-fPIC'
7871	;;
7872      esac
7873      ;;
7874
7875    *)
7876      lt_prog_compiler_pic='-fPIC'
7877      ;;
7878    esac
7879  else
7880    # PORTME Check for flag to pass linker flags through the system compiler.
7881    case $host_os in
7882    aix*)
7883      lt_prog_compiler_wl='-Wl,'
7884      if test "$host_cpu" = ia64; then
7885	# AIX 5 now supports IA64 processor
7886	lt_prog_compiler_static='-Bstatic'
7887      else
7888	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7889      fi
7890      ;;
7891      darwin*)
7892        # PIC is the default on this platform
7893        # Common symbols not allowed in MH_DYLIB files
7894       case $cc_basename in
7895         xlc*)
7896         lt_prog_compiler_pic='-qnocommon'
7897         lt_prog_compiler_wl='-Wl,'
7898         ;;
7899       esac
7900       ;;
7901
7902    mingw* | cygwin* | pw32* | os2*)
7903      # This hack is so that the source file can tell whether it is being
7904      # built for inclusion in a dll (and should export symbols for example).
7905      lt_prog_compiler_pic='-DDLL_EXPORT'
7906      ;;
7907
7908    hpux9* | hpux10* | hpux11*)
7909      lt_prog_compiler_wl='-Wl,'
7910      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7911      # not for PA HP-UX.
7912      case $host_cpu in
7913      hppa*64*|ia64*)
7914	# +Z the default
7915	;;
7916      *)
7917	lt_prog_compiler_pic='+Z'
7918	;;
7919      esac
7920      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7921      lt_prog_compiler_static='${wl}-a ${wl}archive'
7922      ;;
7923
7924    irix5* | irix6* | nonstopux*)
7925      lt_prog_compiler_wl='-Wl,'
7926      # PIC (with -KPIC) is the default.
7927      lt_prog_compiler_static='-non_shared'
7928      ;;
7929
7930    newsos6)
7931      lt_prog_compiler_pic='-KPIC'
7932      lt_prog_compiler_static='-Bstatic'
7933      ;;
7934
7935    linux* | k*bsd*-gnu)
7936      case $cc_basename in
7937      icc* | ecc*)
7938	lt_prog_compiler_wl='-Wl,'
7939	lt_prog_compiler_pic='-KPIC'
7940	lt_prog_compiler_static='-static'
7941        ;;
7942      pgcc* | pgf77* | pgf90* | pgf95*)
7943        # Portland Group compilers (*not* the Pentium gcc compiler,
7944	# which looks to be a dead project)
7945	lt_prog_compiler_wl='-Wl,'
7946	lt_prog_compiler_pic='-fpic'
7947	lt_prog_compiler_static='-Bstatic'
7948        ;;
7949      ccc*)
7950        lt_prog_compiler_wl='-Wl,'
7951        # All Alpha code is PIC.
7952        lt_prog_compiler_static='-non_shared'
7953        ;;
7954      *)
7955        case `$CC -V 2>&1 | sed 5q` in
7956	*Sun\ C*)
7957	  # Sun C 5.9
7958	  lt_prog_compiler_pic='-KPIC'
7959	  lt_prog_compiler_static='-Bstatic'
7960	  lt_prog_compiler_wl='-Wl,'
7961	  ;;
7962	*Sun\ F*)
7963	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7964	  lt_prog_compiler_pic='-KPIC'
7965	  lt_prog_compiler_static='-Bstatic'
7966	  lt_prog_compiler_wl=''
7967	  ;;
7968	esac
7969	;;
7970      esac
7971      ;;
7972
7973    osf3* | osf4* | osf5*)
7974      lt_prog_compiler_wl='-Wl,'
7975      # All OSF/1 code is PIC.
7976      lt_prog_compiler_static='-non_shared'
7977      ;;
7978
7979    rdos*)
7980      lt_prog_compiler_static='-non_shared'
7981      ;;
7982
7983    solaris*)
7984      lt_prog_compiler_pic='-KPIC'
7985      lt_prog_compiler_static='-Bstatic'
7986      case $cc_basename in
7987      f77* | f90* | f95*)
7988	lt_prog_compiler_wl='-Qoption ld ';;
7989      *)
7990	lt_prog_compiler_wl='-Wl,';;
7991      esac
7992      ;;
7993
7994    sunos4*)
7995      lt_prog_compiler_wl='-Qoption ld '
7996      lt_prog_compiler_pic='-PIC'
7997      lt_prog_compiler_static='-Bstatic'
7998      ;;
7999
8000    sysv4 | sysv4.2uw2* | sysv4.3*)
8001      lt_prog_compiler_wl='-Wl,'
8002      lt_prog_compiler_pic='-KPIC'
8003      lt_prog_compiler_static='-Bstatic'
8004      ;;
8005
8006    sysv4*MP*)
8007      if test -d /usr/nec ;then
8008	lt_prog_compiler_pic='-Kconform_pic'
8009	lt_prog_compiler_static='-Bstatic'
8010      fi
8011      ;;
8012
8013    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8014      lt_prog_compiler_wl='-Wl,'
8015      lt_prog_compiler_pic='-KPIC'
8016      lt_prog_compiler_static='-Bstatic'
8017      ;;
8018
8019    unicos*)
8020      lt_prog_compiler_wl='-Wl,'
8021      lt_prog_compiler_can_build_shared=no
8022      ;;
8023
8024    uts4*)
8025      lt_prog_compiler_pic='-pic'
8026      lt_prog_compiler_static='-Bstatic'
8027      ;;
8028
8029    *)
8030      lt_prog_compiler_can_build_shared=no
8031      ;;
8032    esac
8033  fi
8034
8035{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8036echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8037
8038#
8039# Check to make sure the PIC flag actually works.
8040#
8041if test -n "$lt_prog_compiler_pic"; then
8042
8043{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8044echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8045if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8046  echo $ECHO_N "(cached) $ECHO_C" >&6
8047else
8048  lt_cv_prog_compiler_pic_works=no
8049  ac_outfile=conftest.$ac_objext
8050   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8051   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8052   # Insert the option either (1) after the last *FLAGS variable, or
8053   # (2) before a word containing "conftest.", or (3) at the end.
8054   # Note that $ac_compile itself does not contain backslashes and begins
8055   # with a dollar sign (not a hyphen), so the echo should work correctly.
8056   # The option is referenced via a variable to avoid confusing sed.
8057   lt_compile=`echo "$ac_compile" | $SED \
8058   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8059   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8060   -e 's:$: $lt_compiler_flag:'`
8061   (eval echo "\"\$as_me:8061: $lt_compile\"" >&5)
8062   (eval "$lt_compile" 2>conftest.err)
8063   ac_status=$?
8064   cat conftest.err >&5
8065   echo "$as_me:8065: \$? = $ac_status" >&5
8066   if (exit $ac_status) && test -s "$ac_outfile"; then
8067     # The compiler can only warn and ignore the option if not recognized
8068     # So say no if there are warnings other than the usual output.
8069     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8070     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8071     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8072       lt_cv_prog_compiler_pic_works=yes
8073     fi
8074   fi
8075   $rm conftest*
8076
8077fi
8078{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8079echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8080
8081if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8082    case $lt_prog_compiler_pic in
8083     "" | " "*) ;;
8084     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8085     esac
8086else
8087    lt_prog_compiler_pic=
8088     lt_prog_compiler_can_build_shared=no
8089fi
8090
8091fi
8092case $host_os in
8093  # For platforms which do not support PIC, -DPIC is meaningless:
8094  *djgpp*)
8095    lt_prog_compiler_pic=
8096    ;;
8097  *)
8098    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8099    ;;
8100esac
8101
8102#
8103# Check to make sure the static flag actually works.
8104#
8105wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8106{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8107echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8108if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8109  echo $ECHO_N "(cached) $ECHO_C" >&6
8110else
8111  lt_cv_prog_compiler_static_works=no
8112   save_LDFLAGS="$LDFLAGS"
8113   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8114   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8115   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8116     # The linker can only warn and ignore the option if not recognized
8117     # So say no if there are warnings
8118     if test -s conftest.err; then
8119       # Append any errors to the config.log.
8120       cat conftest.err 1>&5
8121       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8122       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8123       if diff conftest.exp conftest.er2 >/dev/null; then
8124         lt_cv_prog_compiler_static_works=yes
8125       fi
8126     else
8127       lt_cv_prog_compiler_static_works=yes
8128     fi
8129   fi
8130   $rm -r conftest*
8131   LDFLAGS="$save_LDFLAGS"
8132
8133fi
8134{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8135echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8136
8137if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8138    :
8139else
8140    lt_prog_compiler_static=
8141fi
8142
8143
8144{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8145echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8146if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8147  echo $ECHO_N "(cached) $ECHO_C" >&6
8148else
8149  lt_cv_prog_compiler_c_o=no
8150   $rm -r conftest 2>/dev/null
8151   mkdir conftest
8152   cd conftest
8153   mkdir out
8154   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8155
8156   lt_compiler_flag="-o out/conftest2.$ac_objext"
8157   # Insert the option either (1) after the last *FLAGS variable, or
8158   # (2) before a word containing "conftest.", or (3) at the end.
8159   # Note that $ac_compile itself does not contain backslashes and begins
8160   # with a dollar sign (not a hyphen), so the echo should work correctly.
8161   lt_compile=`echo "$ac_compile" | $SED \
8162   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8163   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8164   -e 's:$: $lt_compiler_flag:'`
8165   (eval echo "\"\$as_me:8165: $lt_compile\"" >&5)
8166   (eval "$lt_compile" 2>out/conftest.err)
8167   ac_status=$?
8168   cat out/conftest.err >&5
8169   echo "$as_me:8169: \$? = $ac_status" >&5
8170   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8171   then
8172     # The compiler can only warn and ignore the option if not recognized
8173     # So say no if there are warnings
8174     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8175     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8176     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8177       lt_cv_prog_compiler_c_o=yes
8178     fi
8179   fi
8180   chmod u+w . 2>&5
8181   $rm conftest*
8182   # SGI C++ compiler will create directory out/ii_files/ for
8183   # template instantiation
8184   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8185   $rm out/* && rmdir out
8186   cd ..
8187   rmdir conftest
8188   $rm conftest*
8189
8190fi
8191{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8192echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8193
8194
8195hard_links="nottested"
8196if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8197  # do not overwrite the value of need_locks provided by the user
8198  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8199echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8200  hard_links=yes
8201  $rm conftest*
8202  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8203  touch conftest.a
8204  ln conftest.a conftest.b 2>&5 || hard_links=no
8205  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8206  { echo "$as_me:$LINENO: result: $hard_links" >&5
8207echo "${ECHO_T}$hard_links" >&6; }
8208  if test "$hard_links" = no; then
8209    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8210echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8211    need_locks=warn
8212  fi
8213else
8214  need_locks=no
8215fi
8216
8217{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8218echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8219
8220  runpath_var=
8221  allow_undefined_flag=
8222  enable_shared_with_static_runtimes=no
8223  archive_cmds=
8224  archive_expsym_cmds=
8225  old_archive_From_new_cmds=
8226  old_archive_from_expsyms_cmds=
8227  export_dynamic_flag_spec=
8228  whole_archive_flag_spec=
8229  thread_safe_flag_spec=
8230  hardcode_libdir_flag_spec=
8231  hardcode_libdir_flag_spec_ld=
8232  hardcode_libdir_separator=
8233  hardcode_direct=no
8234  hardcode_minus_L=no
8235  hardcode_shlibpath_var=unsupported
8236  link_all_deplibs=unknown
8237  hardcode_automatic=no
8238  module_cmds=
8239  module_expsym_cmds=
8240  always_export_symbols=no
8241  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8242  # include_expsyms should be a list of space-separated symbols to be *always*
8243  # included in the symbol list
8244  include_expsyms=
8245  # exclude_expsyms can be an extended regexp of symbols to exclude
8246  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8247  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8248  # as well as any symbol that contains `d'.
8249  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8250  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8251  # platforms (ab)use it in PIC code, but their linkers get confused if
8252  # the symbol is explicitly referenced.  Since portable code cannot
8253  # rely on this symbol name, it's probably fine to never include it in
8254  # preloaded symbol tables.
8255  # Exclude shared library initialization/finalization symbols.
8256  extract_expsyms_cmds=
8257  # Just being paranoid about ensuring that cc_basename is set.
8258  for cc_temp in $compiler""; do
8259  case $cc_temp in
8260    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8261    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8262    \-*) ;;
8263    *) break;;
8264  esac
8265done
8266cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8267
8268  case $host_os in
8269  cygwin* | mingw* | pw32*)
8270    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8271    # When not using gcc, we currently assume that we are using
8272    # Microsoft Visual C++.
8273    if test "$GCC" != yes; then
8274      with_gnu_ld=no
8275    fi
8276    ;;
8277  interix*)
8278    # we just hope/assume this is gcc and not c89 (= MSVC++)
8279    with_gnu_ld=yes
8280    ;;
8281  openbsd*)
8282    with_gnu_ld=no
8283    ;;
8284  esac
8285
8286  ld_shlibs=yes
8287  if test "$with_gnu_ld" = yes; then
8288    # If archive_cmds runs LD, not CC, wlarc should be empty
8289    wlarc='${wl}'
8290
8291    # Set some defaults for GNU ld with shared library support. These
8292    # are reset later if shared libraries are not supported. Putting them
8293    # here allows them to be overridden if necessary.
8294    runpath_var=LD_RUN_PATH
8295    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8296    export_dynamic_flag_spec='${wl}--export-dynamic'
8297    # ancient GNU ld didn't support --whole-archive et. al.
8298    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8299	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8300      else
8301  	whole_archive_flag_spec=
8302    fi
8303    supports_anon_versioning=no
8304    case `$LD -v 2>/dev/null` in
8305      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8306      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8307      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8308      *\ 2.11.*) ;; # other 2.11 versions
8309      *) supports_anon_versioning=yes ;;
8310    esac
8311
8312    # See if GNU ld supports shared libraries.
8313    case $host_os in
8314    aix[3-9]*)
8315      # On AIX/PPC, the GNU linker is very broken
8316      if test "$host_cpu" != ia64; then
8317	ld_shlibs=no
8318	cat <<EOF 1>&2
8319
8320*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8321*** to be unable to reliably create shared libraries on AIX.
8322*** Therefore, libtool is disabling shared libraries support.  If you
8323*** really care for shared libraries, you may want to modify your PATH
8324*** so that a non-GNU linker is found, and then restart.
8325
8326EOF
8327      fi
8328      ;;
8329
8330    amigaos*)
8331      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)'
8332      hardcode_libdir_flag_spec='-L$libdir'
8333      hardcode_minus_L=yes
8334
8335      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8336      # that the semantics of dynamic libraries on AmigaOS, at least up
8337      # to version 4, is to share data among multiple programs linked
8338      # with the same dynamic library.  Since this doesn't match the
8339      # behavior of shared libraries on other platforms, we can't use
8340      # them.
8341      ld_shlibs=no
8342      ;;
8343
8344    beos*)
8345      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8346	allow_undefined_flag=unsupported
8347	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8348	# support --undefined.  This deserves some investigation.  FIXME
8349	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8350      else
8351	ld_shlibs=no
8352      fi
8353      ;;
8354
8355    cygwin* | mingw* | pw32*)
8356      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8357      # as there is no search path for DLLs.
8358      hardcode_libdir_flag_spec='-L$libdir'
8359      allow_undefined_flag=unsupported
8360      always_export_symbols=no
8361      enable_shared_with_static_runtimes=yes
8362      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8363
8364      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8365        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8366	# If the export-symbols file already is a .def file (1st line
8367	# is EXPORTS), use it as is; otherwise, prepend...
8368	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8369	  cp $export_symbols $output_objdir/$soname.def;
8370	else
8371	  echo EXPORTS > $output_objdir/$soname.def;
8372	  cat $export_symbols >> $output_objdir/$soname.def;
8373	fi~
8374	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8375      else
8376	ld_shlibs=no
8377      fi
8378      ;;
8379
8380    interix[3-9]*)
8381      hardcode_direct=no
8382      hardcode_shlibpath_var=no
8383      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8384      export_dynamic_flag_spec='${wl}-E'
8385      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8386      # Instead, shared libraries are loaded at an image base (0x10000000 by
8387      # default) and relocated if they conflict, which is a slow very memory
8388      # consuming and fragmenting process.  To avoid this, we pick a random,
8389      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8390      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8391      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8392      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'
8393      ;;
8394
8395    gnu* | linux* | k*bsd*-gnu)
8396      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8397	tmp_addflag=
8398	case $cc_basename,$host_cpu in
8399	pgcc*)				# Portland Group C compiler
8400	  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'
8401	  tmp_addflag=' $pic_flag'
8402	  ;;
8403	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8404	  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'
8405	  tmp_addflag=' $pic_flag -Mnomain' ;;
8406	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8407	  tmp_addflag=' -i_dynamic' ;;
8408	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8409	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8410	ifc* | ifort*)			# Intel Fortran compiler
8411	  tmp_addflag=' -nofor_main' ;;
8412	esac
8413	case `$CC -V 2>&1 | sed 5q` in
8414	*Sun\ C*)			# Sun C 5.9
8415	  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'
8416	  tmp_sharedflag='-G' ;;
8417	*Sun\ F*)			# Sun Fortran 8.3
8418	  tmp_sharedflag='-G' ;;
8419	*)
8420	  tmp_sharedflag='-shared' ;;
8421	esac
8422	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8423
8424	if test $supports_anon_versioning = yes; then
8425	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8426  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8427  $echo "local: *; };" >> $output_objdir/$libname.ver~
8428	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8429	fi
8430	link_all_deplibs=no
8431      else
8432	ld_shlibs=no
8433      fi
8434      ;;
8435
8436    netbsd* | netbsdelf*-gnu)
8437      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8438	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8439	wlarc=
8440      else
8441	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8442	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8443      fi
8444      ;;
8445
8446    solaris*)
8447      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8448	ld_shlibs=no
8449	cat <<EOF 1>&2
8450
8451*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8452*** create shared libraries on Solaris systems.  Therefore, libtool
8453*** is disabling shared libraries support.  We urge you to upgrade GNU
8454*** binutils to release 2.9.1 or newer.  Another option is to modify
8455*** your PATH or compiler configuration so that the native linker is
8456*** used, and then restart.
8457
8458EOF
8459      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8460	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8461	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8462      else
8463	ld_shlibs=no
8464      fi
8465      ;;
8466
8467    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8468      case `$LD -v 2>&1` in
8469        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8470	ld_shlibs=no
8471	cat <<_LT_EOF 1>&2
8472
8473*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8474*** reliably create shared libraries on SCO systems.  Therefore, libtool
8475*** is disabling shared libraries support.  We urge you to upgrade GNU
8476*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8477*** your PATH or compiler configuration so that the native linker is
8478*** used, and then restart.
8479
8480_LT_EOF
8481	;;
8482	*)
8483	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8484	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8485	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8486	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8487	  else
8488	    ld_shlibs=no
8489	  fi
8490	;;
8491      esac
8492      ;;
8493
8494    sunos4*)
8495      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8496      wlarc=
8497      hardcode_direct=yes
8498      hardcode_shlibpath_var=no
8499      ;;
8500
8501    *)
8502      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8503	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8504	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8505      else
8506	ld_shlibs=no
8507      fi
8508      ;;
8509    esac
8510
8511    if test "$ld_shlibs" = no; then
8512      runpath_var=
8513      hardcode_libdir_flag_spec=
8514      export_dynamic_flag_spec=
8515      whole_archive_flag_spec=
8516    fi
8517  else
8518    # PORTME fill in a description of your system's linker (not GNU ld)
8519    case $host_os in
8520    aix3*)
8521      allow_undefined_flag=unsupported
8522      always_export_symbols=yes
8523      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'
8524      # Note: this linker hardcodes the directories in LIBPATH if there
8525      # are no directories specified by -L.
8526      hardcode_minus_L=yes
8527      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8528	# Neither direct hardcoding nor static linking is supported with a
8529	# broken collect2.
8530	hardcode_direct=unsupported
8531      fi
8532      ;;
8533
8534    aix[4-9]*)
8535      if test "$host_cpu" = ia64; then
8536	# On IA64, the linker does run time linking by default, so we don't
8537	# have to do anything special.
8538	aix_use_runtimelinking=no
8539	exp_sym_flag='-Bexport'
8540	no_entry_flag=""
8541      else
8542	# If we're using GNU nm, then we don't want the "-C" option.
8543	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8544	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8545	  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'
8546	else
8547	  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'
8548	fi
8549	aix_use_runtimelinking=no
8550
8551	# Test if we are trying to use run time linking or normal
8552	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8553	# need to do runtime linking.
8554	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8555	  for ld_flag in $LDFLAGS; do
8556  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8557  	    aix_use_runtimelinking=yes
8558  	    break
8559  	  fi
8560	  done
8561	  ;;
8562	esac
8563
8564	exp_sym_flag='-bexport'
8565	no_entry_flag='-bnoentry'
8566      fi
8567
8568      # When large executables or shared objects are built, AIX ld can
8569      # have problems creating the table of contents.  If linking a library
8570      # or program results in "error TOC overflow" add -mminimal-toc to
8571      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8572      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8573
8574      archive_cmds=''
8575      hardcode_direct=yes
8576      hardcode_libdir_separator=':'
8577      link_all_deplibs=yes
8578
8579      if test "$GCC" = yes; then
8580	case $host_os in aix4.[012]|aix4.[012].*)
8581	# We only want to do this on AIX 4.2 and lower, the check
8582	# below for broken collect2 doesn't work under 4.3+
8583	  collect2name=`${CC} -print-prog-name=collect2`
8584	  if test -f "$collect2name" && \
8585  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8586	  then
8587  	  # We have reworked collect2
8588  	  :
8589	  else
8590  	  # We have old collect2
8591  	  hardcode_direct=unsupported
8592  	  # It fails to find uninstalled libraries when the uninstalled
8593  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8594  	  # to unsupported forces relinking
8595  	  hardcode_minus_L=yes
8596  	  hardcode_libdir_flag_spec='-L$libdir'
8597  	  hardcode_libdir_separator=
8598	  fi
8599	  ;;
8600	esac
8601	shared_flag='-shared'
8602	if test "$aix_use_runtimelinking" = yes; then
8603	  shared_flag="$shared_flag "'${wl}-G'
8604	fi
8605      else
8606	# not using gcc
8607	if test "$host_cpu" = ia64; then
8608  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8609  	# chokes on -Wl,-G. The following line is correct:
8610	  shared_flag='-G'
8611	else
8612	  if test "$aix_use_runtimelinking" = yes; then
8613	    shared_flag='${wl}-G'
8614	  else
8615	    shared_flag='${wl}-bM:SRE'
8616	  fi
8617	fi
8618      fi
8619
8620      # It seems that -bexpall does not export symbols beginning with
8621      # underscore (_), so it is better to generate a list of symbols to export.
8622      always_export_symbols=yes
8623      if test "$aix_use_runtimelinking" = yes; then
8624	# Warning - without using the other runtime loading flags (-brtl),
8625	# -berok will link without error, but may produce a broken library.
8626	allow_undefined_flag='-berok'
8627       # Determine the default libpath from the value encoded in an empty executable.
8628       cat >conftest.$ac_ext <<_ACEOF
8629/* confdefs.h.  */
8630_ACEOF
8631cat confdefs.h >>conftest.$ac_ext
8632cat >>conftest.$ac_ext <<_ACEOF
8633/* end confdefs.h.  */
8634
8635int
8636main ()
8637{
8638
8639  ;
8640  return 0;
8641}
8642_ACEOF
8643rm -f conftest.$ac_objext conftest$ac_exeext
8644if { (ac_try="$ac_link"
8645case "(($ac_try" in
8646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647  *) ac_try_echo=$ac_try;;
8648esac
8649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8650  (eval "$ac_link") 2>conftest.er1
8651  ac_status=$?
8652  grep -v '^ *+' conftest.er1 >conftest.err
8653  rm -f conftest.er1
8654  cat conftest.err >&5
8655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656  (exit $ac_status); } && {
8657	 test -z "$ac_c_werror_flag" ||
8658	 test ! -s conftest.err
8659       } && test -s conftest$ac_exeext &&
8660       $as_test_x conftest$ac_exeext; then
8661
8662lt_aix_libpath_sed='
8663    /Import File Strings/,/^$/ {
8664	/^0/ {
8665	    s/^0  *\(.*\)$/\1/
8666	    p
8667	}
8668    }'
8669aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8670# Check for a 64-bit object if we didn't find anything.
8671if test -z "$aix_libpath"; then
8672  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8673fi
8674else
8675  echo "$as_me: failed program was:" >&5
8676sed 's/^/| /' conftest.$ac_ext >&5
8677
8678
8679fi
8680
8681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8682      conftest$ac_exeext conftest.$ac_ext
8683if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8684
8685       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8686	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"
8687       else
8688	if test "$host_cpu" = ia64; then
8689	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8690	  allow_undefined_flag="-z nodefs"
8691	  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"
8692	else
8693	 # Determine the default libpath from the value encoded in an empty executable.
8694	 cat >conftest.$ac_ext <<_ACEOF
8695/* confdefs.h.  */
8696_ACEOF
8697cat confdefs.h >>conftest.$ac_ext
8698cat >>conftest.$ac_ext <<_ACEOF
8699/* end confdefs.h.  */
8700
8701int
8702main ()
8703{
8704
8705  ;
8706  return 0;
8707}
8708_ACEOF
8709rm -f conftest.$ac_objext conftest$ac_exeext
8710if { (ac_try="$ac_link"
8711case "(($ac_try" in
8712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8713  *) ac_try_echo=$ac_try;;
8714esac
8715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8716  (eval "$ac_link") 2>conftest.er1
8717  ac_status=$?
8718  grep -v '^ *+' conftest.er1 >conftest.err
8719  rm -f conftest.er1
8720  cat conftest.err >&5
8721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722  (exit $ac_status); } && {
8723	 test -z "$ac_c_werror_flag" ||
8724	 test ! -s conftest.err
8725       } && test -s conftest$ac_exeext &&
8726       $as_test_x conftest$ac_exeext; then
8727
8728lt_aix_libpath_sed='
8729    /Import File Strings/,/^$/ {
8730	/^0/ {
8731	    s/^0  *\(.*\)$/\1/
8732	    p
8733	}
8734    }'
8735aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8736# Check for a 64-bit object if we didn't find anything.
8737if test -z "$aix_libpath"; then
8738  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8739fi
8740else
8741  echo "$as_me: failed program was:" >&5
8742sed 's/^/| /' conftest.$ac_ext >&5
8743
8744
8745fi
8746
8747rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8748      conftest$ac_exeext conftest.$ac_ext
8749if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8750
8751	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8752	  # Warning - without using the other run time loading flags,
8753	  # -berok will link without error, but may produce a broken library.
8754	  no_undefined_flag=' ${wl}-bernotok'
8755	  allow_undefined_flag=' ${wl}-berok'
8756	  # Exported symbols can be pulled into shared objects from archives
8757	  whole_archive_flag_spec='$convenience'
8758	  archive_cmds_need_lc=yes
8759	  # This is similar to how AIX traditionally builds its shared libraries.
8760	  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'
8761	fi
8762      fi
8763      ;;
8764
8765    amigaos*)
8766      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)'
8767      hardcode_libdir_flag_spec='-L$libdir'
8768      hardcode_minus_L=yes
8769      # see comment about different semantics on the GNU ld section
8770      ld_shlibs=no
8771      ;;
8772
8773    bsdi[45]*)
8774      export_dynamic_flag_spec=-rdynamic
8775      ;;
8776
8777    cygwin* | mingw* | pw32*)
8778      # When not using gcc, we currently assume that we are using
8779      # Microsoft Visual C++.
8780      # hardcode_libdir_flag_spec is actually meaningless, as there is
8781      # no search path for DLLs.
8782      hardcode_libdir_flag_spec=' '
8783      allow_undefined_flag=unsupported
8784      # Tell ltmain to make .lib files, not .a files.
8785      libext=lib
8786      # Tell ltmain to make .dll files, not .so files.
8787      shrext_cmds=".dll"
8788      # FIXME: Setting linknames here is a bad hack.
8789      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8790      # The linker will automatically build a .lib file if we build a DLL.
8791      old_archive_From_new_cmds='true'
8792      # FIXME: Should let the user specify the lib program.
8793      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8794      fix_srcfile_path='`cygpath -w "$srcfile"`'
8795      enable_shared_with_static_runtimes=yes
8796      ;;
8797
8798    darwin* | rhapsody*)
8799      case $host_os in
8800        rhapsody* | darwin1.[012])
8801         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8802         ;;
8803       *) # Darwin 1.3 on
8804         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8805           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8806         else
8807           case ${MACOSX_DEPLOYMENT_TARGET} in
8808             10.[012])
8809               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8810               ;;
8811             10.*)
8812               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8813               ;;
8814           esac
8815         fi
8816         ;;
8817      esac
8818      archive_cmds_need_lc=no
8819      hardcode_direct=no
8820      hardcode_automatic=yes
8821      hardcode_shlibpath_var=unsupported
8822      whole_archive_flag_spec=''
8823      link_all_deplibs=yes
8824    if test "$GCC" = yes ; then
8825    	output_verbose_link_cmd='echo'
8826        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8827        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8828        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}"
8829        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}"
8830    else
8831      case $cc_basename in
8832        xlc*)
8833         output_verbose_link_cmd='echo'
8834         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8835         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8836          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8837         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}'
8838          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}'
8839          ;;
8840       *)
8841         ld_shlibs=no
8842          ;;
8843      esac
8844    fi
8845      ;;
8846
8847    dgux*)
8848      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849      hardcode_libdir_flag_spec='-L$libdir'
8850      hardcode_shlibpath_var=no
8851      ;;
8852
8853    freebsd1*)
8854      ld_shlibs=no
8855      ;;
8856
8857    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8858    # support.  Future versions do this automatically, but an explicit c++rt0.o
8859    # does not break anything, and helps significantly (at the cost of a little
8860    # extra space).
8861    freebsd2.2*)
8862      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8863      hardcode_libdir_flag_spec='-R$libdir'
8864      hardcode_direct=yes
8865      hardcode_shlibpath_var=no
8866      ;;
8867
8868    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8869    freebsd2*)
8870      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8871      hardcode_direct=yes
8872      hardcode_minus_L=yes
8873      hardcode_shlibpath_var=no
8874      ;;
8875
8876    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8877    freebsd* | dragonfly*)
8878      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8879      hardcode_libdir_flag_spec='-R$libdir'
8880      hardcode_direct=yes
8881      hardcode_shlibpath_var=no
8882      ;;
8883
8884    hpux9*)
8885      if test "$GCC" = yes; then
8886	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'
8887      else
8888	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'
8889      fi
8890      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8891      hardcode_libdir_separator=:
8892      hardcode_direct=yes
8893
8894      # hardcode_minus_L: Not really in the search PATH,
8895      # but as the default location of the library.
8896      hardcode_minus_L=yes
8897      export_dynamic_flag_spec='${wl}-E'
8898      ;;
8899
8900    hpux10*)
8901      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8902	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8903      else
8904	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8905      fi
8906      if test "$with_gnu_ld" = no; then
8907	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8908	hardcode_libdir_separator=:
8909
8910	hardcode_direct=yes
8911	export_dynamic_flag_spec='${wl}-E'
8912
8913	# hardcode_minus_L: Not really in the search PATH,
8914	# but as the default location of the library.
8915	hardcode_minus_L=yes
8916      fi
8917      ;;
8918
8919    hpux11*)
8920      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8921	case $host_cpu in
8922	hppa*64*)
8923	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8924	  ;;
8925	ia64*)
8926	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8927	  ;;
8928	*)
8929	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8930	  ;;
8931	esac
8932      else
8933	case $host_cpu in
8934	hppa*64*)
8935	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8936	  ;;
8937	ia64*)
8938	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8939	  ;;
8940	*)
8941	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8942	  ;;
8943	esac
8944      fi
8945      if test "$with_gnu_ld" = no; then
8946	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8947	hardcode_libdir_separator=:
8948
8949	case $host_cpu in
8950	hppa*64*|ia64*)
8951	  hardcode_libdir_flag_spec_ld='+b $libdir'
8952	  hardcode_direct=no
8953	  hardcode_shlibpath_var=no
8954	  ;;
8955	*)
8956	  hardcode_direct=yes
8957	  export_dynamic_flag_spec='${wl}-E'
8958
8959	  # hardcode_minus_L: Not really in the search PATH,
8960	  # but as the default location of the library.
8961	  hardcode_minus_L=yes
8962	  ;;
8963	esac
8964      fi
8965      ;;
8966
8967    irix5* | irix6* | nonstopux*)
8968      if test "$GCC" = yes; then
8969	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'
8970      else
8971	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'
8972	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8973      fi
8974      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8975      hardcode_libdir_separator=:
8976      link_all_deplibs=yes
8977      ;;
8978
8979    netbsd* | netbsdelf*-gnu)
8980      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8981	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8982      else
8983	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8984      fi
8985      hardcode_libdir_flag_spec='-R$libdir'
8986      hardcode_direct=yes
8987      hardcode_shlibpath_var=no
8988      ;;
8989
8990    newsos6)
8991      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8992      hardcode_direct=yes
8993      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8994      hardcode_libdir_separator=:
8995      hardcode_shlibpath_var=no
8996      ;;
8997
8998    openbsd*)
8999      if test -f /usr/libexec/ld.so; then
9000	hardcode_direct=yes
9001	hardcode_shlibpath_var=no
9002	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9003	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9004	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9005	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9006	  export_dynamic_flag_spec='${wl}-E'
9007	else
9008	  case $host_os in
9009	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9010	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9011	     hardcode_libdir_flag_spec='-R$libdir'
9012	     ;;
9013	   *)
9014	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9015	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9016	     ;;
9017	  esac
9018        fi
9019      else
9020	ld_shlibs=no
9021      fi
9022      ;;
9023
9024    os2*)
9025      hardcode_libdir_flag_spec='-L$libdir'
9026      hardcode_minus_L=yes
9027      allow_undefined_flag=unsupported
9028      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'
9029      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9030      ;;
9031
9032    osf3*)
9033      if test "$GCC" = yes; then
9034	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9035	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'
9036      else
9037	allow_undefined_flag=' -expect_unresolved \*'
9038	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'
9039      fi
9040      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9041      hardcode_libdir_separator=:
9042      ;;
9043
9044    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9045      if test "$GCC" = yes; then
9046	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9047	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'
9048	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9049      else
9050	allow_undefined_flag=' -expect_unresolved \*'
9051	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'
9052	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9053	$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'
9054
9055	# Both c and cxx compiler support -rpath directly
9056	hardcode_libdir_flag_spec='-rpath $libdir'
9057      fi
9058      hardcode_libdir_separator=:
9059      ;;
9060
9061    solaris*)
9062      no_undefined_flag=' -z text'
9063      if test "$GCC" = yes; then
9064	wlarc='${wl}'
9065	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9066	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9067	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9068      else
9069	wlarc=''
9070	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9071	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9072  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9073      fi
9074      hardcode_libdir_flag_spec='-R$libdir'
9075      hardcode_shlibpath_var=no
9076      case $host_os in
9077      solaris2.[0-5] | solaris2.[0-5].*) ;;
9078      *)
9079	# The compiler driver will combine and reorder linker options,
9080	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9081	# but is careful enough not to reorder.
9082 	# Supported since Solaris 2.6 (maybe 2.5.1?)
9083	if test "$GCC" = yes; then
9084	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9085	else
9086	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9087	fi
9088	;;
9089      esac
9090      link_all_deplibs=yes
9091      ;;
9092
9093    sunos4*)
9094      if test "x$host_vendor" = xsequent; then
9095	# Use $CC to link under sequent, because it throws in some extra .o
9096	# files that make .init and .fini sections work.
9097	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9098      else
9099	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9100      fi
9101      hardcode_libdir_flag_spec='-L$libdir'
9102      hardcode_direct=yes
9103      hardcode_minus_L=yes
9104      hardcode_shlibpath_var=no
9105      ;;
9106
9107    sysv4)
9108      case $host_vendor in
9109	sni)
9110	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9111	  hardcode_direct=yes # is this really true???
9112	;;
9113	siemens)
9114	  ## LD is ld it makes a PLAMLIB
9115	  ## CC just makes a GrossModule.
9116	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9117	  reload_cmds='$CC -r -o $output$reload_objs'
9118	  hardcode_direct=no
9119        ;;
9120	motorola)
9121	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9122	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9123	;;
9124      esac
9125      runpath_var='LD_RUN_PATH'
9126      hardcode_shlibpath_var=no
9127      ;;
9128
9129    sysv4.3*)
9130      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9131      hardcode_shlibpath_var=no
9132      export_dynamic_flag_spec='-Bexport'
9133      ;;
9134
9135    sysv4*MP*)
9136      if test -d /usr/nec; then
9137	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9138	hardcode_shlibpath_var=no
9139	runpath_var=LD_RUN_PATH
9140	hardcode_runpath_var=yes
9141	ld_shlibs=yes
9142      fi
9143      ;;
9144
9145    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9146      no_undefined_flag='${wl}-z,text'
9147      archive_cmds_need_lc=no
9148      hardcode_shlibpath_var=no
9149      runpath_var='LD_RUN_PATH'
9150
9151      if test "$GCC" = yes; then
9152	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9153	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9154      else
9155	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9156	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9157      fi
9158      ;;
9159
9160    sysv5* | sco3.2v5* | sco5v6*)
9161      # Note: We can NOT use -z defs as we might desire, because we do not
9162      # link with -lc, and that would cause any symbols used from libc to
9163      # always be unresolved, which means just about no library would
9164      # ever link correctly.  If we're not using GNU ld we use -z text
9165      # though, which does catch some bad symbols but isn't as heavy-handed
9166      # as -z defs.
9167      no_undefined_flag='${wl}-z,text'
9168      allow_undefined_flag='${wl}-z,nodefs'
9169      archive_cmds_need_lc=no
9170      hardcode_shlibpath_var=no
9171      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9172      hardcode_libdir_separator=':'
9173      link_all_deplibs=yes
9174      export_dynamic_flag_spec='${wl}-Bexport'
9175      runpath_var='LD_RUN_PATH'
9176
9177      if test "$GCC" = yes; then
9178	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9179	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9180      else
9181	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9182	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9183      fi
9184      ;;
9185
9186    uts4*)
9187      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9188      hardcode_libdir_flag_spec='-L$libdir'
9189      hardcode_shlibpath_var=no
9190      ;;
9191
9192    *)
9193      ld_shlibs=no
9194      ;;
9195    esac
9196  fi
9197
9198{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9199echo "${ECHO_T}$ld_shlibs" >&6; }
9200test "$ld_shlibs" = no && can_build_shared=no
9201
9202#
9203# Do we need to explicitly link libc?
9204#
9205case "x$archive_cmds_need_lc" in
9206x|xyes)
9207  # Assume -lc should be added
9208  archive_cmds_need_lc=yes
9209
9210  if test "$enable_shared" = yes && test "$GCC" = yes; then
9211    case $archive_cmds in
9212    *'~'*)
9213      # FIXME: we may have to deal with multi-command sequences.
9214      ;;
9215    '$CC '*)
9216      # Test whether the compiler implicitly links with -lc since on some
9217      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9218      # to ld, don't add -lc before -lgcc.
9219      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9220echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9221      $rm conftest*
9222      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9223
9224      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9225  (eval $ac_compile) 2>&5
9226  ac_status=$?
9227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228  (exit $ac_status); } 2>conftest.err; then
9229        soname=conftest
9230        lib=conftest
9231        libobjs=conftest.$ac_objext
9232        deplibs=
9233        wl=$lt_prog_compiler_wl
9234	pic_flag=$lt_prog_compiler_pic
9235        compiler_flags=-v
9236        linker_flags=-v
9237        verstring=
9238        output_objdir=.
9239        libname=conftest
9240        lt_save_allow_undefined_flag=$allow_undefined_flag
9241        allow_undefined_flag=
9242        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9243  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9244  ac_status=$?
9245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246  (exit $ac_status); }
9247        then
9248	  archive_cmds_need_lc=no
9249        else
9250	  archive_cmds_need_lc=yes
9251        fi
9252        allow_undefined_flag=$lt_save_allow_undefined_flag
9253      else
9254        cat conftest.err 1>&5
9255      fi
9256      $rm conftest*
9257      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9258echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9259      ;;
9260    esac
9261  fi
9262  ;;
9263esac
9264
9265{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9266echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9267library_names_spec=
9268libname_spec='lib$name'
9269soname_spec=
9270shrext_cmds=".so"
9271postinstall_cmds=
9272postuninstall_cmds=
9273finish_cmds=
9274finish_eval=
9275shlibpath_var=
9276shlibpath_overrides_runpath=unknown
9277version_type=none
9278dynamic_linker="$host_os ld.so"
9279sys_lib_dlsearch_path_spec="/lib /usr/lib"
9280
9281if test "$GCC" = yes; then
9282  case $host_os in
9283    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9284    *) lt_awk_arg="/^libraries:/" ;;
9285  esac
9286  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9287  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9288    # if the path contains ";" then we assume it to be the separator
9289    # otherwise default to the standard path separator (i.e. ":") - it is
9290    # assumed that no part of a normal pathname contains ";" but that should
9291    # okay in the real world where ";" in dirpaths is itself problematic.
9292    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9293  else
9294    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9295  fi
9296  # Ok, now we have the path, separated by spaces, we can step through it
9297  # and add multilib dir if necessary.
9298  lt_tmp_lt_search_path_spec=
9299  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9300  for lt_sys_path in $lt_search_path_spec; do
9301    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9302      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9303    else
9304      test -d "$lt_sys_path" && \
9305	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9306    fi
9307  done
9308  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9309BEGIN {RS=" "; FS="/|\n";} {
9310  lt_foo="";
9311  lt_count=0;
9312  for (lt_i = NF; lt_i > 0; lt_i--) {
9313    if ($lt_i != "" && $lt_i != ".") {
9314      if ($lt_i == "..") {
9315        lt_count++;
9316      } else {
9317        if (lt_count == 0) {
9318          lt_foo="/" $lt_i lt_foo;
9319        } else {
9320          lt_count--;
9321        }
9322      }
9323    }
9324  }
9325  if (lt_foo != "") { lt_freq[lt_foo]++; }
9326  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9327}'`
9328  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9329else
9330  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9331fi
9332need_lib_prefix=unknown
9333hardcode_into_libs=no
9334
9335# when you set need_version to no, make sure it does not cause -set_version
9336# flags to be left without arguments
9337need_version=unknown
9338
9339case $host_os in
9340aix3*)
9341  version_type=linux
9342  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9343  shlibpath_var=LIBPATH
9344
9345  # AIX 3 has no versioning support, so we append a major version to the name.
9346  soname_spec='${libname}${release}${shared_ext}$major'
9347  ;;
9348
9349aix[4-9]*)
9350  version_type=linux
9351  need_lib_prefix=no
9352  need_version=no
9353  hardcode_into_libs=yes
9354  if test "$host_cpu" = ia64; then
9355    # AIX 5 supports IA64
9356    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9357    shlibpath_var=LD_LIBRARY_PATH
9358  else
9359    # With GCC up to 2.95.x, collect2 would create an import file
9360    # for dependence libraries.  The import file would start with
9361    # the line `#! .'.  This would cause the generated library to
9362    # depend on `.', always an invalid library.  This was fixed in
9363    # development snapshots of GCC prior to 3.0.
9364    case $host_os in
9365      aix4 | aix4.[01] | aix4.[01].*)
9366      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9367	   echo ' yes '
9368	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9369	:
9370      else
9371	can_build_shared=no
9372      fi
9373      ;;
9374    esac
9375    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9376    # soname into executable. Probably we can add versioning support to
9377    # collect2, so additional links can be useful in future.
9378    if test "$aix_use_runtimelinking" = yes; then
9379      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9380      # instead of lib<name>.a to let people know that these are not
9381      # typical AIX shared libraries.
9382      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383    else
9384      # We preserve .a as extension for shared libraries through AIX4.2
9385      # and later when we are not doing run time linking.
9386      library_names_spec='${libname}${release}.a $libname.a'
9387      soname_spec='${libname}${release}${shared_ext}$major'
9388    fi
9389    shlibpath_var=LIBPATH
9390  fi
9391  ;;
9392
9393amigaos*)
9394  library_names_spec='$libname.ixlibrary $libname.a'
9395  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9396  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'
9397  ;;
9398
9399beos*)
9400  library_names_spec='${libname}${shared_ext}'
9401  dynamic_linker="$host_os ld.so"
9402  shlibpath_var=LIBRARY_PATH
9403  ;;
9404
9405bsdi[45]*)
9406  version_type=linux
9407  need_version=no
9408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9409  soname_spec='${libname}${release}${shared_ext}$major'
9410  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9411  shlibpath_var=LD_LIBRARY_PATH
9412  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9413  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9414  # the default ld.so.conf also contains /usr/contrib/lib and
9415  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9416  # libtool to hard-code these into programs
9417  ;;
9418
9419cygwin* | mingw* | pw32*)
9420  version_type=windows
9421  shrext_cmds=".dll"
9422  need_version=no
9423  need_lib_prefix=no
9424
9425  case $GCC,$host_os in
9426  yes,cygwin* | yes,mingw* | yes,pw32*)
9427    library_names_spec='$libname.dll.a'
9428    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9429    postinstall_cmds='base_file=`basename \${file}`~
9430      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9431      dldir=$destdir/`dirname \$dlpath`~
9432      test -d \$dldir || mkdir -p \$dldir~
9433      $install_prog $dir/$dlname \$dldir/$dlname~
9434      chmod a+x \$dldir/$dlname'
9435    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9436      dlpath=$dir/\$dldll~
9437       $rm \$dlpath'
9438    shlibpath_overrides_runpath=yes
9439
9440    case $host_os in
9441    cygwin*)
9442      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9443      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9444      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9445      ;;
9446    mingw*)
9447      # MinGW DLLs use traditional 'lib' prefix
9448      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9449      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9450      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9451        # It is most probably a Windows format PATH printed by
9452        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9453        # path with ; separators, and with drive letters. We can handle the
9454        # drive letters (cygwin fileutils understands them), so leave them,
9455        # especially as we might pass files found there to a mingw objdump,
9456        # which wouldn't understand a cygwinified path. Ahh.
9457        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9458      else
9459        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9460      fi
9461      ;;
9462    pw32*)
9463      # pw32 DLLs use 'pw' prefix rather than 'lib'
9464      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9465      ;;
9466    esac
9467    ;;
9468
9469  *)
9470    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9471    ;;
9472  esac
9473  dynamic_linker='Win32 ld.exe'
9474  # FIXME: first we should search . and the directory the executable is in
9475  shlibpath_var=PATH
9476  ;;
9477
9478darwin* | rhapsody*)
9479  dynamic_linker="$host_os dyld"
9480  version_type=darwin
9481  need_lib_prefix=no
9482  need_version=no
9483  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9484  soname_spec='${libname}${release}${major}$shared_ext'
9485  shlibpath_overrides_runpath=yes
9486  shlibpath_var=DYLD_LIBRARY_PATH
9487  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9488
9489  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9490  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9491  ;;
9492
9493dgux*)
9494  version_type=linux
9495  need_lib_prefix=no
9496  need_version=no
9497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9498  soname_spec='${libname}${release}${shared_ext}$major'
9499  shlibpath_var=LD_LIBRARY_PATH
9500  ;;
9501
9502freebsd1*)
9503  dynamic_linker=no
9504  ;;
9505
9506freebsd* | dragonfly*)
9507  # DragonFly does not have aout.  When/if they implement a new
9508  # versioning mechanism, adjust this.
9509  if test -x /usr/bin/objformat; then
9510    objformat=`/usr/bin/objformat`
9511  else
9512    case $host_os in
9513    freebsd[123]*) objformat=aout ;;
9514    *) objformat=elf ;;
9515    esac
9516  fi
9517  version_type=freebsd-$objformat
9518  case $version_type in
9519    freebsd-elf*)
9520      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9521      need_version=no
9522      need_lib_prefix=no
9523      ;;
9524    freebsd-*)
9525      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9526      need_version=yes
9527      ;;
9528  esac
9529  shlibpath_var=LD_LIBRARY_PATH
9530  case $host_os in
9531  freebsd2*)
9532    shlibpath_overrides_runpath=yes
9533    ;;
9534  freebsd3.[01]* | freebsdelf3.[01]*)
9535    shlibpath_overrides_runpath=yes
9536    hardcode_into_libs=yes
9537    ;;
9538  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9539  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9540    shlibpath_overrides_runpath=no
9541    hardcode_into_libs=yes
9542    ;;
9543  *) # from 4.6 on, and DragonFly
9544    shlibpath_overrides_runpath=yes
9545    hardcode_into_libs=yes
9546    ;;
9547  esac
9548  ;;
9549
9550gnu*)
9551  version_type=linux
9552  need_lib_prefix=no
9553  need_version=no
9554  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9555  soname_spec='${libname}${release}${shared_ext}$major'
9556  shlibpath_var=LD_LIBRARY_PATH
9557  hardcode_into_libs=yes
9558  ;;
9559
9560hpux9* | hpux10* | hpux11*)
9561  # Give a soname corresponding to the major version so that dld.sl refuses to
9562  # link against other versions.
9563  version_type=sunos
9564  need_lib_prefix=no
9565  need_version=no
9566  case $host_cpu in
9567  ia64*)
9568    shrext_cmds='.so'
9569    hardcode_into_libs=yes
9570    dynamic_linker="$host_os dld.so"
9571    shlibpath_var=LD_LIBRARY_PATH
9572    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9573    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9574    soname_spec='${libname}${release}${shared_ext}$major'
9575    if test "X$HPUX_IA64_MODE" = X32; then
9576      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9577    else
9578      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9579    fi
9580    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9581    ;;
9582   hppa*64*)
9583     shrext_cmds='.sl'
9584     hardcode_into_libs=yes
9585     dynamic_linker="$host_os dld.sl"
9586     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9587     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9588     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9589     soname_spec='${libname}${release}${shared_ext}$major'
9590     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9591     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9592     ;;
9593   *)
9594    shrext_cmds='.sl'
9595    dynamic_linker="$host_os dld.sl"
9596    shlibpath_var=SHLIB_PATH
9597    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9598    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599    soname_spec='${libname}${release}${shared_ext}$major'
9600    ;;
9601  esac
9602  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9603  postinstall_cmds='chmod 555 $lib'
9604  ;;
9605
9606interix[3-9]*)
9607  version_type=linux
9608  need_lib_prefix=no
9609  need_version=no
9610  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9611  soname_spec='${libname}${release}${shared_ext}$major'
9612  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9613  shlibpath_var=LD_LIBRARY_PATH
9614  shlibpath_overrides_runpath=no
9615  hardcode_into_libs=yes
9616  ;;
9617
9618irix5* | irix6* | nonstopux*)
9619  case $host_os in
9620    nonstopux*) version_type=nonstopux ;;
9621    *)
9622	if test "$lt_cv_prog_gnu_ld" = yes; then
9623		version_type=linux
9624	else
9625		version_type=irix
9626	fi ;;
9627  esac
9628  need_lib_prefix=no
9629  need_version=no
9630  soname_spec='${libname}${release}${shared_ext}$major'
9631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9632  case $host_os in
9633  irix5* | nonstopux*)
9634    libsuff= shlibsuff=
9635    ;;
9636  *)
9637    case $LD in # libtool.m4 will add one of these switches to LD
9638    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9639      libsuff= shlibsuff= libmagic=32-bit;;
9640    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9641      libsuff=32 shlibsuff=N32 libmagic=N32;;
9642    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9643      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9644    *) libsuff= shlibsuff= libmagic=never-match;;
9645    esac
9646    ;;
9647  esac
9648  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9649  shlibpath_overrides_runpath=no
9650  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9651  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9652  hardcode_into_libs=yes
9653  ;;
9654
9655# No shared lib support for Linux oldld, aout, or coff.
9656linux*oldld* | linux*aout* | linux*coff*)
9657  dynamic_linker=no
9658  ;;
9659
9660# This must be Linux ELF.
9661linux* | k*bsd*-gnu)
9662  version_type=linux
9663  need_lib_prefix=no
9664  need_version=no
9665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9666  soname_spec='${libname}${release}${shared_ext}$major'
9667  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9668  shlibpath_var=LD_LIBRARY_PATH
9669  shlibpath_overrides_runpath=no
9670  # This implies no fast_install, which is unacceptable.
9671  # Some rework will be needed to allow for fast_install
9672  # before this can be enabled.
9673  hardcode_into_libs=yes
9674
9675  # Append ld.so.conf contents to the search path
9676  if test -f /etc/ld.so.conf; then
9677    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' ' '`
9678    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9679  fi
9680
9681  # We used to test for /lib/ld.so.1 and disable shared libraries on
9682  # powerpc, because MkLinux only supported shared libraries with the
9683  # GNU dynamic linker.  Since this was broken with cross compilers,
9684  # most powerpc-linux boxes support dynamic linking these days and
9685  # people can always --disable-shared, the test was removed, and we
9686  # assume the GNU/Linux dynamic linker is in use.
9687  dynamic_linker='GNU/Linux ld.so'
9688  ;;
9689
9690netbsdelf*-gnu)
9691  version_type=linux
9692  need_lib_prefix=no
9693  need_version=no
9694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9695  soname_spec='${libname}${release}${shared_ext}$major'
9696  shlibpath_var=LD_LIBRARY_PATH
9697  shlibpath_overrides_runpath=no
9698  hardcode_into_libs=yes
9699  dynamic_linker='NetBSD ld.elf_so'
9700  ;;
9701
9702netbsd*)
9703  version_type=sunos
9704  need_lib_prefix=no
9705  need_version=no
9706  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9707    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9708    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9709    dynamic_linker='NetBSD (a.out) ld.so'
9710  else
9711    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9712    soname_spec='${libname}${release}${shared_ext}$major'
9713    dynamic_linker='NetBSD ld.elf_so'
9714  fi
9715  shlibpath_var=LD_LIBRARY_PATH
9716  shlibpath_overrides_runpath=yes
9717  hardcode_into_libs=yes
9718  ;;
9719
9720newsos6)
9721  version_type=linux
9722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723  shlibpath_var=LD_LIBRARY_PATH
9724  shlibpath_overrides_runpath=yes
9725  ;;
9726
9727nto-qnx*)
9728  version_type=linux
9729  need_lib_prefix=no
9730  need_version=no
9731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9732  soname_spec='${libname}${release}${shared_ext}$major'
9733  shlibpath_var=LD_LIBRARY_PATH
9734  shlibpath_overrides_runpath=yes
9735  ;;
9736
9737openbsd*)
9738  version_type=sunos
9739  sys_lib_dlsearch_path_spec="/usr/lib"
9740  need_lib_prefix=no
9741  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9742  case $host_os in
9743    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9744    *)                         need_version=no  ;;
9745  esac
9746  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9747  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9748  shlibpath_var=LD_LIBRARY_PATH
9749  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9750    case $host_os in
9751      openbsd2.[89] | openbsd2.[89].*)
9752	shlibpath_overrides_runpath=no
9753	;;
9754      *)
9755	shlibpath_overrides_runpath=yes
9756	;;
9757      esac
9758  else
9759    shlibpath_overrides_runpath=yes
9760  fi
9761  ;;
9762
9763os2*)
9764  libname_spec='$name'
9765  shrext_cmds=".dll"
9766  need_lib_prefix=no
9767  library_names_spec='$libname${shared_ext} $libname.a'
9768  dynamic_linker='OS/2 ld.exe'
9769  shlibpath_var=LIBPATH
9770  ;;
9771
9772osf3* | osf4* | osf5*)
9773  version_type=osf
9774  need_lib_prefix=no
9775  need_version=no
9776  soname_spec='${libname}${release}${shared_ext}$major'
9777  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9778  shlibpath_var=LD_LIBRARY_PATH
9779  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9780  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9781  ;;
9782
9783rdos*)
9784  dynamic_linker=no
9785  ;;
9786
9787solaris*)
9788  version_type=linux
9789  need_lib_prefix=no
9790  need_version=no
9791  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9792  soname_spec='${libname}${release}${shared_ext}$major'
9793  shlibpath_var=LD_LIBRARY_PATH
9794  shlibpath_overrides_runpath=yes
9795  hardcode_into_libs=yes
9796  # ldd complains unless libraries are executable
9797  postinstall_cmds='chmod +x $lib'
9798  ;;
9799
9800sunos4*)
9801  version_type=sunos
9802  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9803  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9804  shlibpath_var=LD_LIBRARY_PATH
9805  shlibpath_overrides_runpath=yes
9806  if test "$with_gnu_ld" = yes; then
9807    need_lib_prefix=no
9808  fi
9809  need_version=yes
9810  ;;
9811
9812sysv4 | sysv4.3*)
9813  version_type=linux
9814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9815  soname_spec='${libname}${release}${shared_ext}$major'
9816  shlibpath_var=LD_LIBRARY_PATH
9817  case $host_vendor in
9818    sni)
9819      shlibpath_overrides_runpath=no
9820      need_lib_prefix=no
9821      export_dynamic_flag_spec='${wl}-Blargedynsym'
9822      runpath_var=LD_RUN_PATH
9823      ;;
9824    siemens)
9825      need_lib_prefix=no
9826      ;;
9827    motorola)
9828      need_lib_prefix=no
9829      need_version=no
9830      shlibpath_overrides_runpath=no
9831      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9832      ;;
9833  esac
9834  ;;
9835
9836sysv4*MP*)
9837  if test -d /usr/nec ;then
9838    version_type=linux
9839    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9840    soname_spec='$libname${shared_ext}.$major'
9841    shlibpath_var=LD_LIBRARY_PATH
9842  fi
9843  ;;
9844
9845sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9846  version_type=freebsd-elf
9847  need_lib_prefix=no
9848  need_version=no
9849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9850  soname_spec='${libname}${release}${shared_ext}$major'
9851  shlibpath_var=LD_LIBRARY_PATH
9852  hardcode_into_libs=yes
9853  if test "$with_gnu_ld" = yes; then
9854    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9855    shlibpath_overrides_runpath=no
9856  else
9857    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9858    shlibpath_overrides_runpath=yes
9859    case $host_os in
9860      sco3.2v5*)
9861        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9862	;;
9863    esac
9864  fi
9865  sys_lib_dlsearch_path_spec='/usr/lib'
9866  ;;
9867
9868uts4*)
9869  version_type=linux
9870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9871  soname_spec='${libname}${release}${shared_ext}$major'
9872  shlibpath_var=LD_LIBRARY_PATH
9873  ;;
9874
9875*)
9876  dynamic_linker=no
9877  ;;
9878esac
9879{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9880echo "${ECHO_T}$dynamic_linker" >&6; }
9881test "$dynamic_linker" = no && can_build_shared=no
9882
9883if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9884  echo $ECHO_N "(cached) $ECHO_C" >&6
9885else
9886  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9887fi
9888
9889sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9890if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9891  echo $ECHO_N "(cached) $ECHO_C" >&6
9892else
9893  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9894fi
9895
9896sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9897
9898variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9899if test "$GCC" = yes; then
9900  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9901fi
9902
9903{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9904echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9905hardcode_action=
9906if test -n "$hardcode_libdir_flag_spec" || \
9907   test -n "$runpath_var" || \
9908   test "X$hardcode_automatic" = "Xyes" ; then
9909
9910  # We can hardcode non-existant directories.
9911  if test "$hardcode_direct" != no &&
9912     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9913     # have to relink, otherwise we might link with an installed library
9914     # when we should be linking with a yet-to-be-installed one
9915     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9916     test "$hardcode_minus_L" != no; then
9917    # Linking always hardcodes the temporary library directory.
9918    hardcode_action=relink
9919  else
9920    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9921    hardcode_action=immediate
9922  fi
9923else
9924  # We cannot hardcode anything, or else we can only hardcode existing
9925  # directories.
9926  hardcode_action=unsupported
9927fi
9928{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9929echo "${ECHO_T}$hardcode_action" >&6; }
9930
9931if test "$hardcode_action" = relink; then
9932  # Fast installation is not supported
9933  enable_fast_install=no
9934elif test "$shlibpath_overrides_runpath" = yes ||
9935     test "$enable_shared" = no; then
9936  # Fast installation is not necessary
9937  enable_fast_install=needless
9938fi
9939
9940striplib=
9941old_striplib=
9942{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9943echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9944if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9945  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9946  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9947  { echo "$as_me:$LINENO: result: yes" >&5
9948echo "${ECHO_T}yes" >&6; }
9949else
9950# FIXME - insert some real tests, host_os isn't really good enough
9951  case $host_os in
9952   darwin*)
9953       if test -n "$STRIP" ; then
9954         striplib="$STRIP -x"
9955         old_striplib="$STRIP -S"
9956         { echo "$as_me:$LINENO: result: yes" >&5
9957echo "${ECHO_T}yes" >&6; }
9958       else
9959  { echo "$as_me:$LINENO: result: no" >&5
9960echo "${ECHO_T}no" >&6; }
9961fi
9962       ;;
9963   *)
9964  { echo "$as_me:$LINENO: result: no" >&5
9965echo "${ECHO_T}no" >&6; }
9966    ;;
9967  esac
9968fi
9969
9970if test "x$enable_dlopen" != xyes; then
9971  enable_dlopen=unknown
9972  enable_dlopen_self=unknown
9973  enable_dlopen_self_static=unknown
9974else
9975  lt_cv_dlopen=no
9976  lt_cv_dlopen_libs=
9977
9978  case $host_os in
9979  beos*)
9980    lt_cv_dlopen="load_add_on"
9981    lt_cv_dlopen_libs=
9982    lt_cv_dlopen_self=yes
9983    ;;
9984
9985  mingw* | pw32*)
9986    lt_cv_dlopen="LoadLibrary"
9987    lt_cv_dlopen_libs=
9988   ;;
9989
9990  cygwin*)
9991    lt_cv_dlopen="dlopen"
9992    lt_cv_dlopen_libs=
9993   ;;
9994
9995  darwin*)
9996  # if libdl is installed we need to link against it
9997    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9998echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9999if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10000  echo $ECHO_N "(cached) $ECHO_C" >&6
10001else
10002  ac_check_lib_save_LIBS=$LIBS
10003LIBS="-ldl  $LIBS"
10004cat >conftest.$ac_ext <<_ACEOF
10005/* confdefs.h.  */
10006_ACEOF
10007cat confdefs.h >>conftest.$ac_ext
10008cat >>conftest.$ac_ext <<_ACEOF
10009/* end confdefs.h.  */
10010
10011/* Override any GCC internal prototype to avoid an error.
10012   Use char because int might match the return type of a GCC
10013   builtin and then its argument prototype would still apply.  */
10014#ifdef __cplusplus
10015extern "C"
10016#endif
10017char dlopen ();
10018int
10019main ()
10020{
10021return dlopen ();
10022  ;
10023  return 0;
10024}
10025_ACEOF
10026rm -f conftest.$ac_objext conftest$ac_exeext
10027if { (ac_try="$ac_link"
10028case "(($ac_try" in
10029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030  *) ac_try_echo=$ac_try;;
10031esac
10032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033  (eval "$ac_link") 2>conftest.er1
10034  ac_status=$?
10035  grep -v '^ *+' conftest.er1 >conftest.err
10036  rm -f conftest.er1
10037  cat conftest.err >&5
10038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039  (exit $ac_status); } && {
10040	 test -z "$ac_c_werror_flag" ||
10041	 test ! -s conftest.err
10042       } && test -s conftest$ac_exeext &&
10043       $as_test_x conftest$ac_exeext; then
10044  ac_cv_lib_dl_dlopen=yes
10045else
10046  echo "$as_me: failed program was:" >&5
10047sed 's/^/| /' conftest.$ac_ext >&5
10048
10049	ac_cv_lib_dl_dlopen=no
10050fi
10051
10052rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10053      conftest$ac_exeext conftest.$ac_ext
10054LIBS=$ac_check_lib_save_LIBS
10055fi
10056{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10057echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10058if test $ac_cv_lib_dl_dlopen = yes; then
10059  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10060else
10061
10062    lt_cv_dlopen="dyld"
10063    lt_cv_dlopen_libs=
10064    lt_cv_dlopen_self=yes
10065
10066fi
10067
10068   ;;
10069
10070  *)
10071    { echo "$as_me:$LINENO: checking for shl_load" >&5
10072echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10073if test "${ac_cv_func_shl_load+set}" = set; then
10074  echo $ECHO_N "(cached) $ECHO_C" >&6
10075else
10076  cat >conftest.$ac_ext <<_ACEOF
10077/* confdefs.h.  */
10078_ACEOF
10079cat confdefs.h >>conftest.$ac_ext
10080cat >>conftest.$ac_ext <<_ACEOF
10081/* end confdefs.h.  */
10082/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10083   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10084#define shl_load innocuous_shl_load
10085
10086/* System header to define __stub macros and hopefully few prototypes,
10087    which can conflict with char shl_load (); below.
10088    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10089    <limits.h> exists even on freestanding compilers.  */
10090
10091#ifdef __STDC__
10092# include <limits.h>
10093#else
10094# include <assert.h>
10095#endif
10096
10097#undef shl_load
10098
10099/* Override any GCC internal prototype to avoid an error.
10100   Use char because int might match the return type of a GCC
10101   builtin and then its argument prototype would still apply.  */
10102#ifdef __cplusplus
10103extern "C"
10104#endif
10105char shl_load ();
10106/* The GNU C library defines this for functions which it implements
10107    to always fail with ENOSYS.  Some functions are actually named
10108    something starting with __ and the normal name is an alias.  */
10109#if defined __stub_shl_load || defined __stub___shl_load
10110choke me
10111#endif
10112
10113int
10114main ()
10115{
10116return shl_load ();
10117  ;
10118  return 0;
10119}
10120_ACEOF
10121rm -f conftest.$ac_objext conftest$ac_exeext
10122if { (ac_try="$ac_link"
10123case "(($ac_try" in
10124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125  *) ac_try_echo=$ac_try;;
10126esac
10127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128  (eval "$ac_link") 2>conftest.er1
10129  ac_status=$?
10130  grep -v '^ *+' conftest.er1 >conftest.err
10131  rm -f conftest.er1
10132  cat conftest.err >&5
10133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134  (exit $ac_status); } && {
10135	 test -z "$ac_c_werror_flag" ||
10136	 test ! -s conftest.err
10137       } && test -s conftest$ac_exeext &&
10138       $as_test_x conftest$ac_exeext; then
10139  ac_cv_func_shl_load=yes
10140else
10141  echo "$as_me: failed program was:" >&5
10142sed 's/^/| /' conftest.$ac_ext >&5
10143
10144	ac_cv_func_shl_load=no
10145fi
10146
10147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10148      conftest$ac_exeext conftest.$ac_ext
10149fi
10150{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10151echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10152if test $ac_cv_func_shl_load = yes; then
10153  lt_cv_dlopen="shl_load"
10154else
10155  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10156echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10157if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10158  echo $ECHO_N "(cached) $ECHO_C" >&6
10159else
10160  ac_check_lib_save_LIBS=$LIBS
10161LIBS="-ldld  $LIBS"
10162cat >conftest.$ac_ext <<_ACEOF
10163/* confdefs.h.  */
10164_ACEOF
10165cat confdefs.h >>conftest.$ac_ext
10166cat >>conftest.$ac_ext <<_ACEOF
10167/* end confdefs.h.  */
10168
10169/* Override any GCC internal prototype to avoid an error.
10170   Use char because int might match the return type of a GCC
10171   builtin and then its argument prototype would still apply.  */
10172#ifdef __cplusplus
10173extern "C"
10174#endif
10175char shl_load ();
10176int
10177main ()
10178{
10179return shl_load ();
10180  ;
10181  return 0;
10182}
10183_ACEOF
10184rm -f conftest.$ac_objext conftest$ac_exeext
10185if { (ac_try="$ac_link"
10186case "(($ac_try" in
10187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188  *) ac_try_echo=$ac_try;;
10189esac
10190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191  (eval "$ac_link") 2>conftest.er1
10192  ac_status=$?
10193  grep -v '^ *+' conftest.er1 >conftest.err
10194  rm -f conftest.er1
10195  cat conftest.err >&5
10196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197  (exit $ac_status); } && {
10198	 test -z "$ac_c_werror_flag" ||
10199	 test ! -s conftest.err
10200       } && test -s conftest$ac_exeext &&
10201       $as_test_x conftest$ac_exeext; then
10202  ac_cv_lib_dld_shl_load=yes
10203else
10204  echo "$as_me: failed program was:" >&5
10205sed 's/^/| /' conftest.$ac_ext >&5
10206
10207	ac_cv_lib_dld_shl_load=no
10208fi
10209
10210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10211      conftest$ac_exeext conftest.$ac_ext
10212LIBS=$ac_check_lib_save_LIBS
10213fi
10214{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10215echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10216if test $ac_cv_lib_dld_shl_load = yes; then
10217  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10218else
10219  { echo "$as_me:$LINENO: checking for dlopen" >&5
10220echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10221if test "${ac_cv_func_dlopen+set}" = set; then
10222  echo $ECHO_N "(cached) $ECHO_C" >&6
10223else
10224  cat >conftest.$ac_ext <<_ACEOF
10225/* confdefs.h.  */
10226_ACEOF
10227cat confdefs.h >>conftest.$ac_ext
10228cat >>conftest.$ac_ext <<_ACEOF
10229/* end confdefs.h.  */
10230/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10231   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10232#define dlopen innocuous_dlopen
10233
10234/* System header to define __stub macros and hopefully few prototypes,
10235    which can conflict with char dlopen (); below.
10236    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10237    <limits.h> exists even on freestanding compilers.  */
10238
10239#ifdef __STDC__
10240# include <limits.h>
10241#else
10242# include <assert.h>
10243#endif
10244
10245#undef dlopen
10246
10247/* Override any GCC internal prototype to avoid an error.
10248   Use char because int might match the return type of a GCC
10249   builtin and then its argument prototype would still apply.  */
10250#ifdef __cplusplus
10251extern "C"
10252#endif
10253char dlopen ();
10254/* The GNU C library defines this for functions which it implements
10255    to always fail with ENOSYS.  Some functions are actually named
10256    something starting with __ and the normal name is an alias.  */
10257#if defined __stub_dlopen || defined __stub___dlopen
10258choke me
10259#endif
10260
10261int
10262main ()
10263{
10264return dlopen ();
10265  ;
10266  return 0;
10267}
10268_ACEOF
10269rm -f conftest.$ac_objext conftest$ac_exeext
10270if { (ac_try="$ac_link"
10271case "(($ac_try" in
10272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273  *) ac_try_echo=$ac_try;;
10274esac
10275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276  (eval "$ac_link") 2>conftest.er1
10277  ac_status=$?
10278  grep -v '^ *+' conftest.er1 >conftest.err
10279  rm -f conftest.er1
10280  cat conftest.err >&5
10281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282  (exit $ac_status); } && {
10283	 test -z "$ac_c_werror_flag" ||
10284	 test ! -s conftest.err
10285       } && test -s conftest$ac_exeext &&
10286       $as_test_x conftest$ac_exeext; then
10287  ac_cv_func_dlopen=yes
10288else
10289  echo "$as_me: failed program was:" >&5
10290sed 's/^/| /' conftest.$ac_ext >&5
10291
10292	ac_cv_func_dlopen=no
10293fi
10294
10295rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10296      conftest$ac_exeext conftest.$ac_ext
10297fi
10298{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10299echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10300if test $ac_cv_func_dlopen = yes; then
10301  lt_cv_dlopen="dlopen"
10302else
10303  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10304echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10305if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10306  echo $ECHO_N "(cached) $ECHO_C" >&6
10307else
10308  ac_check_lib_save_LIBS=$LIBS
10309LIBS="-ldl  $LIBS"
10310cat >conftest.$ac_ext <<_ACEOF
10311/* confdefs.h.  */
10312_ACEOF
10313cat confdefs.h >>conftest.$ac_ext
10314cat >>conftest.$ac_ext <<_ACEOF
10315/* end confdefs.h.  */
10316
10317/* Override any GCC internal prototype to avoid an error.
10318   Use char because int might match the return type of a GCC
10319   builtin and then its argument prototype would still apply.  */
10320#ifdef __cplusplus
10321extern "C"
10322#endif
10323char dlopen ();
10324int
10325main ()
10326{
10327return dlopen ();
10328  ;
10329  return 0;
10330}
10331_ACEOF
10332rm -f conftest.$ac_objext conftest$ac_exeext
10333if { (ac_try="$ac_link"
10334case "(($ac_try" in
10335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336  *) ac_try_echo=$ac_try;;
10337esac
10338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339  (eval "$ac_link") 2>conftest.er1
10340  ac_status=$?
10341  grep -v '^ *+' conftest.er1 >conftest.err
10342  rm -f conftest.er1
10343  cat conftest.err >&5
10344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345  (exit $ac_status); } && {
10346	 test -z "$ac_c_werror_flag" ||
10347	 test ! -s conftest.err
10348       } && test -s conftest$ac_exeext &&
10349       $as_test_x conftest$ac_exeext; then
10350  ac_cv_lib_dl_dlopen=yes
10351else
10352  echo "$as_me: failed program was:" >&5
10353sed 's/^/| /' conftest.$ac_ext >&5
10354
10355	ac_cv_lib_dl_dlopen=no
10356fi
10357
10358rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10359      conftest$ac_exeext conftest.$ac_ext
10360LIBS=$ac_check_lib_save_LIBS
10361fi
10362{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10363echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10364if test $ac_cv_lib_dl_dlopen = yes; then
10365  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10366else
10367  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10368echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10369if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10370  echo $ECHO_N "(cached) $ECHO_C" >&6
10371else
10372  ac_check_lib_save_LIBS=$LIBS
10373LIBS="-lsvld  $LIBS"
10374cat >conftest.$ac_ext <<_ACEOF
10375/* confdefs.h.  */
10376_ACEOF
10377cat confdefs.h >>conftest.$ac_ext
10378cat >>conftest.$ac_ext <<_ACEOF
10379/* end confdefs.h.  */
10380
10381/* Override any GCC internal prototype to avoid an error.
10382   Use char because int might match the return type of a GCC
10383   builtin and then its argument prototype would still apply.  */
10384#ifdef __cplusplus
10385extern "C"
10386#endif
10387char dlopen ();
10388int
10389main ()
10390{
10391return dlopen ();
10392  ;
10393  return 0;
10394}
10395_ACEOF
10396rm -f conftest.$ac_objext conftest$ac_exeext
10397if { (ac_try="$ac_link"
10398case "(($ac_try" in
10399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400  *) ac_try_echo=$ac_try;;
10401esac
10402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403  (eval "$ac_link") 2>conftest.er1
10404  ac_status=$?
10405  grep -v '^ *+' conftest.er1 >conftest.err
10406  rm -f conftest.er1
10407  cat conftest.err >&5
10408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409  (exit $ac_status); } && {
10410	 test -z "$ac_c_werror_flag" ||
10411	 test ! -s conftest.err
10412       } && test -s conftest$ac_exeext &&
10413       $as_test_x conftest$ac_exeext; then
10414  ac_cv_lib_svld_dlopen=yes
10415else
10416  echo "$as_me: failed program was:" >&5
10417sed 's/^/| /' conftest.$ac_ext >&5
10418
10419	ac_cv_lib_svld_dlopen=no
10420fi
10421
10422rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10423      conftest$ac_exeext conftest.$ac_ext
10424LIBS=$ac_check_lib_save_LIBS
10425fi
10426{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10427echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10428if test $ac_cv_lib_svld_dlopen = yes; then
10429  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10430else
10431  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10432echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10433if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10434  echo $ECHO_N "(cached) $ECHO_C" >&6
10435else
10436  ac_check_lib_save_LIBS=$LIBS
10437LIBS="-ldld  $LIBS"
10438cat >conftest.$ac_ext <<_ACEOF
10439/* confdefs.h.  */
10440_ACEOF
10441cat confdefs.h >>conftest.$ac_ext
10442cat >>conftest.$ac_ext <<_ACEOF
10443/* end confdefs.h.  */
10444
10445/* Override any GCC internal prototype to avoid an error.
10446   Use char because int might match the return type of a GCC
10447   builtin and then its argument prototype would still apply.  */
10448#ifdef __cplusplus
10449extern "C"
10450#endif
10451char dld_link ();
10452int
10453main ()
10454{
10455return dld_link ();
10456  ;
10457  return 0;
10458}
10459_ACEOF
10460rm -f conftest.$ac_objext conftest$ac_exeext
10461if { (ac_try="$ac_link"
10462case "(($ac_try" in
10463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464  *) ac_try_echo=$ac_try;;
10465esac
10466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10467  (eval "$ac_link") 2>conftest.er1
10468  ac_status=$?
10469  grep -v '^ *+' conftest.er1 >conftest.err
10470  rm -f conftest.er1
10471  cat conftest.err >&5
10472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473  (exit $ac_status); } && {
10474	 test -z "$ac_c_werror_flag" ||
10475	 test ! -s conftest.err
10476       } && test -s conftest$ac_exeext &&
10477       $as_test_x conftest$ac_exeext; then
10478  ac_cv_lib_dld_dld_link=yes
10479else
10480  echo "$as_me: failed program was:" >&5
10481sed 's/^/| /' conftest.$ac_ext >&5
10482
10483	ac_cv_lib_dld_dld_link=no
10484fi
10485
10486rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10487      conftest$ac_exeext conftest.$ac_ext
10488LIBS=$ac_check_lib_save_LIBS
10489fi
10490{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10491echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10492if test $ac_cv_lib_dld_dld_link = yes; then
10493  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10494fi
10495
10496
10497fi
10498
10499
10500fi
10501
10502
10503fi
10504
10505
10506fi
10507
10508
10509fi
10510
10511    ;;
10512  esac
10513
10514  if test "x$lt_cv_dlopen" != xno; then
10515    enable_dlopen=yes
10516  else
10517    enable_dlopen=no
10518  fi
10519
10520  case $lt_cv_dlopen in
10521  dlopen)
10522    save_CPPFLAGS="$CPPFLAGS"
10523    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10524
10525    save_LDFLAGS="$LDFLAGS"
10526    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10527
10528    save_LIBS="$LIBS"
10529    LIBS="$lt_cv_dlopen_libs $LIBS"
10530
10531    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10532echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10533if test "${lt_cv_dlopen_self+set}" = set; then
10534  echo $ECHO_N "(cached) $ECHO_C" >&6
10535else
10536  	  if test "$cross_compiling" = yes; then :
10537  lt_cv_dlopen_self=cross
10538else
10539  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10540  lt_status=$lt_dlunknown
10541  cat > conftest.$ac_ext <<EOF
10542#line 10542 "configure"
10543#include "confdefs.h"
10544
10545#if HAVE_DLFCN_H
10546#include <dlfcn.h>
10547#endif
10548
10549#include <stdio.h>
10550
10551#ifdef RTLD_GLOBAL
10552#  define LT_DLGLOBAL		RTLD_GLOBAL
10553#else
10554#  ifdef DL_GLOBAL
10555#    define LT_DLGLOBAL		DL_GLOBAL
10556#  else
10557#    define LT_DLGLOBAL		0
10558#  endif
10559#endif
10560
10561/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10562   find out it does not work in some platform. */
10563#ifndef LT_DLLAZY_OR_NOW
10564#  ifdef RTLD_LAZY
10565#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10566#  else
10567#    ifdef DL_LAZY
10568#      define LT_DLLAZY_OR_NOW		DL_LAZY
10569#    else
10570#      ifdef RTLD_NOW
10571#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10572#      else
10573#        ifdef DL_NOW
10574#          define LT_DLLAZY_OR_NOW	DL_NOW
10575#        else
10576#          define LT_DLLAZY_OR_NOW	0
10577#        endif
10578#      endif
10579#    endif
10580#  endif
10581#endif
10582
10583#ifdef __cplusplus
10584extern "C" void exit (int);
10585#endif
10586
10587void fnord() { int i=42;}
10588int main ()
10589{
10590  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10591  int status = $lt_dlunknown;
10592
10593  if (self)
10594    {
10595      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10596      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10597      /* dlclose (self); */
10598    }
10599  else
10600    puts (dlerror ());
10601
10602    exit (status);
10603}
10604EOF
10605  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10606  (eval $ac_link) 2>&5
10607  ac_status=$?
10608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10610    (./conftest; exit; ) >&5 2>/dev/null
10611    lt_status=$?
10612    case x$lt_status in
10613      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10614      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10615      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10616    esac
10617  else :
10618    # compilation failed
10619    lt_cv_dlopen_self=no
10620  fi
10621fi
10622rm -fr conftest*
10623
10624
10625fi
10626{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10627echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10628
10629    if test "x$lt_cv_dlopen_self" = xyes; then
10630      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10631      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10632echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10633if test "${lt_cv_dlopen_self_static+set}" = set; then
10634  echo $ECHO_N "(cached) $ECHO_C" >&6
10635else
10636  	  if test "$cross_compiling" = yes; then :
10637  lt_cv_dlopen_self_static=cross
10638else
10639  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10640  lt_status=$lt_dlunknown
10641  cat > conftest.$ac_ext <<EOF
10642#line 10642 "configure"
10643#include "confdefs.h"
10644
10645#if HAVE_DLFCN_H
10646#include <dlfcn.h>
10647#endif
10648
10649#include <stdio.h>
10650
10651#ifdef RTLD_GLOBAL
10652#  define LT_DLGLOBAL		RTLD_GLOBAL
10653#else
10654#  ifdef DL_GLOBAL
10655#    define LT_DLGLOBAL		DL_GLOBAL
10656#  else
10657#    define LT_DLGLOBAL		0
10658#  endif
10659#endif
10660
10661/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10662   find out it does not work in some platform. */
10663#ifndef LT_DLLAZY_OR_NOW
10664#  ifdef RTLD_LAZY
10665#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10666#  else
10667#    ifdef DL_LAZY
10668#      define LT_DLLAZY_OR_NOW		DL_LAZY
10669#    else
10670#      ifdef RTLD_NOW
10671#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10672#      else
10673#        ifdef DL_NOW
10674#          define LT_DLLAZY_OR_NOW	DL_NOW
10675#        else
10676#          define LT_DLLAZY_OR_NOW	0
10677#        endif
10678#      endif
10679#    endif
10680#  endif
10681#endif
10682
10683#ifdef __cplusplus
10684extern "C" void exit (int);
10685#endif
10686
10687void fnord() { int i=42;}
10688int main ()
10689{
10690  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10691  int status = $lt_dlunknown;
10692
10693  if (self)
10694    {
10695      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10696      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10697      /* dlclose (self); */
10698    }
10699  else
10700    puts (dlerror ());
10701
10702    exit (status);
10703}
10704EOF
10705  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10706  (eval $ac_link) 2>&5
10707  ac_status=$?
10708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10710    (./conftest; exit; ) >&5 2>/dev/null
10711    lt_status=$?
10712    case x$lt_status in
10713      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10714      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10715      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10716    esac
10717  else :
10718    # compilation failed
10719    lt_cv_dlopen_self_static=no
10720  fi
10721fi
10722rm -fr conftest*
10723
10724
10725fi
10726{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10727echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10728    fi
10729
10730    CPPFLAGS="$save_CPPFLAGS"
10731    LDFLAGS="$save_LDFLAGS"
10732    LIBS="$save_LIBS"
10733    ;;
10734  esac
10735
10736  case $lt_cv_dlopen_self in
10737  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10738  *) enable_dlopen_self=unknown ;;
10739  esac
10740
10741  case $lt_cv_dlopen_self_static in
10742  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10743  *) enable_dlopen_self_static=unknown ;;
10744  esac
10745fi
10746
10747
10748# Report which library types will actually be built
10749{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10750echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10751{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10752echo "${ECHO_T}$can_build_shared" >&6; }
10753
10754{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10755echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10756test "$can_build_shared" = "no" && enable_shared=no
10757
10758# On AIX, shared libraries and static libraries use the same namespace, and
10759# are all built from PIC.
10760case $host_os in
10761aix3*)
10762  test "$enable_shared" = yes && enable_static=no
10763  if test -n "$RANLIB"; then
10764    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10765    postinstall_cmds='$RANLIB $lib'
10766  fi
10767  ;;
10768
10769aix[4-9]*)
10770  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10771    test "$enable_shared" = yes && enable_static=no
10772  fi
10773    ;;
10774esac
10775{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10776echo "${ECHO_T}$enable_shared" >&6; }
10777
10778{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10779echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10780# Make sure either enable_shared or enable_static is yes.
10781test "$enable_shared" = yes || enable_static=yes
10782{ echo "$as_me:$LINENO: result: $enable_static" >&5
10783echo "${ECHO_T}$enable_static" >&6; }
10784
10785# The else clause should only fire when bootstrapping the
10786# libtool distribution, otherwise you forgot to ship ltmain.sh
10787# with your package, and you will get complaints that there are
10788# no rules to generate ltmain.sh.
10789if test -f "$ltmain"; then
10790  # See if we are running on zsh, and set the options which allow our commands through
10791  # without removal of \ escapes.
10792  if test -n "${ZSH_VERSION+set}" ; then
10793    setopt NO_GLOB_SUBST
10794  fi
10795  # Now quote all the things that may contain metacharacters while being
10796  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10797  # variables and quote the copies for generation of the libtool script.
10798  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10799    SED SHELL STRIP \
10800    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10801    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10802    deplibs_check_method reload_flag reload_cmds need_locks \
10803    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10804    lt_cv_sys_global_symbol_to_c_name_address \
10805    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10806    old_postinstall_cmds old_postuninstall_cmds \
10807    compiler \
10808    CC \
10809    LD \
10810    lt_prog_compiler_wl \
10811    lt_prog_compiler_pic \
10812    lt_prog_compiler_static \
10813    lt_prog_compiler_no_builtin_flag \
10814    export_dynamic_flag_spec \
10815    thread_safe_flag_spec \
10816    whole_archive_flag_spec \
10817    enable_shared_with_static_runtimes \
10818    old_archive_cmds \
10819    old_archive_from_new_cmds \
10820    predep_objects \
10821    postdep_objects \
10822    predeps \
10823    postdeps \
10824    compiler_lib_search_path \
10825    compiler_lib_search_dirs \
10826    archive_cmds \
10827    archive_expsym_cmds \
10828    postinstall_cmds \
10829    postuninstall_cmds \
10830    old_archive_from_expsyms_cmds \
10831    allow_undefined_flag \
10832    no_undefined_flag \
10833    export_symbols_cmds \
10834    hardcode_libdir_flag_spec \
10835    hardcode_libdir_flag_spec_ld \
10836    hardcode_libdir_separator \
10837    hardcode_automatic \
10838    module_cmds \
10839    module_expsym_cmds \
10840    lt_cv_prog_compiler_c_o \
10841    fix_srcfile_path \
10842    exclude_expsyms \
10843    include_expsyms; do
10844
10845    case $var in
10846    old_archive_cmds | \
10847    old_archive_from_new_cmds | \
10848    archive_cmds | \
10849    archive_expsym_cmds | \
10850    module_cmds | \
10851    module_expsym_cmds | \
10852    old_archive_from_expsyms_cmds | \
10853    export_symbols_cmds | \
10854    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10855    postinstall_cmds | postuninstall_cmds | \
10856    old_postinstall_cmds | old_postuninstall_cmds | \
10857    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10858      # Double-quote double-evaled strings.
10859      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10860      ;;
10861    *)
10862      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10863      ;;
10864    esac
10865  done
10866
10867  case $lt_echo in
10868  *'\$0 --fallback-echo"')
10869    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10870    ;;
10871  esac
10872
10873cfgfile="${ofile}T"
10874  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10875  $rm -f "$cfgfile"
10876  { echo "$as_me:$LINENO: creating $ofile" >&5
10877echo "$as_me: creating $ofile" >&6;}
10878
10879  cat <<__EOF__ >> "$cfgfile"
10880#! $SHELL
10881
10882# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10883# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10884# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10885#
10886# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10887# Free Software Foundation, Inc.
10888#
10889# This file is part of GNU Libtool:
10890# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10891#
10892# This program is free software; you can redistribute it and/or modify
10893# it under the terms of the GNU General Public License as published by
10894# the Free Software Foundation; either version 2 of the License, or
10895# (at your option) any later version.
10896#
10897# This program is distributed in the hope that it will be useful, but
10898# WITHOUT ANY WARRANTY; without even the implied warranty of
10899# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10900# General Public License for more details.
10901#
10902# You should have received a copy of the GNU General Public License
10903# along with this program; if not, write to the Free Software
10904# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10905#
10906# As a special exception to the GNU General Public License, if you
10907# distribute this file as part of a program that contains a
10908# configuration script generated by Autoconf, you may include it under
10909# the same distribution terms that you use for the rest of that program.
10910
10911# A sed program that does not truncate output.
10912SED=$lt_SED
10913
10914# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10915Xsed="$SED -e 1s/^X//"
10916
10917# The HP-UX ksh and POSIX shell print the target directory to stdout
10918# if CDPATH is set.
10919(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10920
10921# The names of the tagged configurations supported by this script.
10922available_tags=
10923
10924# ### BEGIN LIBTOOL CONFIG
10925
10926# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10927
10928# Shell to use when invoking shell scripts.
10929SHELL=$lt_SHELL
10930
10931# Whether or not to build shared libraries.
10932build_libtool_libs=$enable_shared
10933
10934# Whether or not to build static libraries.
10935build_old_libs=$enable_static
10936
10937# Whether or not to add -lc for building shared libraries.
10938build_libtool_need_lc=$archive_cmds_need_lc
10939
10940# Whether or not to disallow shared libs when runtime libs are static
10941allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10942
10943# Whether or not to optimize for fast installation.
10944fast_install=$enable_fast_install
10945
10946# The host system.
10947host_alias=$host_alias
10948host=$host
10949host_os=$host_os
10950
10951# The build system.
10952build_alias=$build_alias
10953build=$build
10954build_os=$build_os
10955
10956# An echo program that does not interpret backslashes.
10957echo=$lt_echo
10958
10959# The archiver.
10960AR=$lt_AR
10961AR_FLAGS=$lt_AR_FLAGS
10962
10963# A C compiler.
10964LTCC=$lt_LTCC
10965
10966# LTCC compiler flags.
10967LTCFLAGS=$lt_LTCFLAGS
10968
10969# A language-specific compiler.
10970CC=$lt_compiler
10971
10972# Is the compiler the GNU C compiler?
10973with_gcc=$GCC
10974
10975# An ERE matcher.
10976EGREP=$lt_EGREP
10977
10978# The linker used to build libraries.
10979LD=$lt_LD
10980
10981# Whether we need hard or soft links.
10982LN_S=$lt_LN_S
10983
10984# A BSD-compatible nm program.
10985NM=$lt_NM
10986
10987# A symbol stripping program
10988STRIP=$lt_STRIP
10989
10990# Used to examine libraries when file_magic_cmd begins "file"
10991MAGIC_CMD=$MAGIC_CMD
10992
10993# Used on cygwin: DLL creation program.
10994DLLTOOL="$DLLTOOL"
10995
10996# Used on cygwin: object dumper.
10997OBJDUMP="$OBJDUMP"
10998
10999# Used on cygwin: assembler.
11000AS="$AS"
11001
11002# The name of the directory that contains temporary libtool files.
11003objdir=$objdir
11004
11005# How to create reloadable object files.
11006reload_flag=$lt_reload_flag
11007reload_cmds=$lt_reload_cmds
11008
11009# How to pass a linker flag through the compiler.
11010wl=$lt_lt_prog_compiler_wl
11011
11012# Object file suffix (normally "o").
11013objext="$ac_objext"
11014
11015# Old archive suffix (normally "a").
11016libext="$libext"
11017
11018# Shared library suffix (normally ".so").
11019shrext_cmds='$shrext_cmds'
11020
11021# Executable file suffix (normally "").
11022exeext="$exeext"
11023
11024# Additional compiler flags for building library objects.
11025pic_flag=$lt_lt_prog_compiler_pic
11026pic_mode=$pic_mode
11027
11028# What is the maximum length of a command?
11029max_cmd_len=$lt_cv_sys_max_cmd_len
11030
11031# Does compiler simultaneously support -c and -o options?
11032compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11033
11034# Must we lock files when doing compilation?
11035need_locks=$lt_need_locks
11036
11037# Do we need the lib prefix for modules?
11038need_lib_prefix=$need_lib_prefix
11039
11040# Do we need a version for libraries?
11041need_version=$need_version
11042
11043# Whether dlopen is supported.
11044dlopen_support=$enable_dlopen
11045
11046# Whether dlopen of programs is supported.
11047dlopen_self=$enable_dlopen_self
11048
11049# Whether dlopen of statically linked programs is supported.
11050dlopen_self_static=$enable_dlopen_self_static
11051
11052# Compiler flag to prevent dynamic linking.
11053link_static_flag=$lt_lt_prog_compiler_static
11054
11055# Compiler flag to turn off builtin functions.
11056no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11057
11058# Compiler flag to allow reflexive dlopens.
11059export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11060
11061# Compiler flag to generate shared objects directly from archives.
11062whole_archive_flag_spec=$lt_whole_archive_flag_spec
11063
11064# Compiler flag to generate thread-safe objects.
11065thread_safe_flag_spec=$lt_thread_safe_flag_spec
11066
11067# Library versioning type.
11068version_type=$version_type
11069
11070# Format of library name prefix.
11071libname_spec=$lt_libname_spec
11072
11073# List of archive names.  First name is the real one, the rest are links.
11074# The last name is the one that the linker finds with -lNAME.
11075library_names_spec=$lt_library_names_spec
11076
11077# The coded name of the library, if different from the real name.
11078soname_spec=$lt_soname_spec
11079
11080# Commands used to build and install an old-style archive.
11081RANLIB=$lt_RANLIB
11082old_archive_cmds=$lt_old_archive_cmds
11083old_postinstall_cmds=$lt_old_postinstall_cmds
11084old_postuninstall_cmds=$lt_old_postuninstall_cmds
11085
11086# Create an old-style archive from a shared archive.
11087old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11088
11089# Create a temporary old-style archive to link instead of a shared archive.
11090old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11091
11092# Commands used to build and install a shared archive.
11093archive_cmds=$lt_archive_cmds
11094archive_expsym_cmds=$lt_archive_expsym_cmds
11095postinstall_cmds=$lt_postinstall_cmds
11096postuninstall_cmds=$lt_postuninstall_cmds
11097
11098# Commands used to build a loadable module (assumed same as above if empty)
11099module_cmds=$lt_module_cmds
11100module_expsym_cmds=$lt_module_expsym_cmds
11101
11102# Commands to strip libraries.
11103old_striplib=$lt_old_striplib
11104striplib=$lt_striplib
11105
11106# Dependencies to place before the objects being linked to create a
11107# shared library.
11108predep_objects=$lt_predep_objects
11109
11110# Dependencies to place after the objects being linked to create a
11111# shared library.
11112postdep_objects=$lt_postdep_objects
11113
11114# Dependencies to place before the objects being linked to create a
11115# shared library.
11116predeps=$lt_predeps
11117
11118# Dependencies to place after the objects being linked to create a
11119# shared library.
11120postdeps=$lt_postdeps
11121
11122# The directories searched by this compiler when creating a shared
11123# library
11124compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11125
11126# The library search path used internally by the compiler when linking
11127# a shared library.
11128compiler_lib_search_path=$lt_compiler_lib_search_path
11129
11130# Method to check whether dependent libraries are shared objects.
11131deplibs_check_method=$lt_deplibs_check_method
11132
11133# Command to use when deplibs_check_method == file_magic.
11134file_magic_cmd=$lt_file_magic_cmd
11135
11136# Flag that allows shared libraries with undefined symbols to be built.
11137allow_undefined_flag=$lt_allow_undefined_flag
11138
11139# Flag that forces no undefined symbols.
11140no_undefined_flag=$lt_no_undefined_flag
11141
11142# Commands used to finish a libtool library installation in a directory.
11143finish_cmds=$lt_finish_cmds
11144
11145# Same as above, but a single script fragment to be evaled but not shown.
11146finish_eval=$lt_finish_eval
11147
11148# Take the output of nm and produce a listing of raw symbols and C names.
11149global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11150
11151# Transform the output of nm in a proper C declaration
11152global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11153
11154# Transform the output of nm in a C name address pair
11155global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11156
11157# This is the shared library runtime path variable.
11158runpath_var=$runpath_var
11159
11160# This is the shared library path variable.
11161shlibpath_var=$shlibpath_var
11162
11163# Is shlibpath searched before the hard-coded library search path?
11164shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11165
11166# How to hardcode a shared library path into an executable.
11167hardcode_action=$hardcode_action
11168
11169# Whether we should hardcode library paths into libraries.
11170hardcode_into_libs=$hardcode_into_libs
11171
11172# Flag to hardcode \$libdir into a binary during linking.
11173# This must work even if \$libdir does not exist.
11174hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11175
11176# If ld is used when linking, flag to hardcode \$libdir into
11177# a binary during linking. This must work even if \$libdir does
11178# not exist.
11179hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11180
11181# Whether we need a single -rpath flag with a separated argument.
11182hardcode_libdir_separator=$lt_hardcode_libdir_separator
11183
11184# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11185# resulting binary.
11186hardcode_direct=$hardcode_direct
11187
11188# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11189# resulting binary.
11190hardcode_minus_L=$hardcode_minus_L
11191
11192# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11193# the resulting binary.
11194hardcode_shlibpath_var=$hardcode_shlibpath_var
11195
11196# Set to yes if building a shared library automatically hardcodes DIR into the library
11197# and all subsequent libraries and executables linked against it.
11198hardcode_automatic=$hardcode_automatic
11199
11200# Variables whose values should be saved in libtool wrapper scripts and
11201# restored at relink time.
11202variables_saved_for_relink="$variables_saved_for_relink"
11203
11204# Whether libtool must link a program against all its dependency libraries.
11205link_all_deplibs=$link_all_deplibs
11206
11207# Compile-time system search path for libraries
11208sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11209
11210# Run-time system search path for libraries
11211sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11212
11213# Fix the shell variable \$srcfile for the compiler.
11214fix_srcfile_path=$lt_fix_srcfile_path
11215
11216# Set to yes if exported symbols are required.
11217always_export_symbols=$always_export_symbols
11218
11219# The commands to list exported symbols.
11220export_symbols_cmds=$lt_export_symbols_cmds
11221
11222# The commands to extract the exported symbol list from a shared archive.
11223extract_expsyms_cmds=$lt_extract_expsyms_cmds
11224
11225# Symbols that should not be listed in the preloaded symbols.
11226exclude_expsyms=$lt_exclude_expsyms
11227
11228# Symbols that must always be exported.
11229include_expsyms=$lt_include_expsyms
11230
11231# ### END LIBTOOL CONFIG
11232
11233__EOF__
11234
11235
11236  case $host_os in
11237  aix3*)
11238    cat <<\EOF >> "$cfgfile"
11239
11240# AIX sometimes has problems with the GCC collect2 program.  For some
11241# reason, if we set the COLLECT_NAMES environment variable, the problems
11242# vanish in a puff of smoke.
11243if test "X${COLLECT_NAMES+set}" != Xset; then
11244  COLLECT_NAMES=
11245  export COLLECT_NAMES
11246fi
11247EOF
11248    ;;
11249  esac
11250
11251  # We use sed instead of cat because bash on DJGPP gets confused if
11252  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11253  # text mode, it properly converts lines to CR/LF.  This bash problem
11254  # is reportedly fixed, but why not run on old versions too?
11255  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11256
11257  mv -f "$cfgfile" "$ofile" || \
11258    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11259  chmod +x "$ofile"
11260
11261else
11262  # If there is no Makefile yet, we rely on a make rule to execute
11263  # `config.status --recheck' to rerun these tests and create the
11264  # libtool script then.
11265  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11266  if test -f "$ltmain_in"; then
11267    test -f Makefile && make "$ltmain"
11268  fi
11269fi
11270
11271
11272ac_ext=c
11273ac_cpp='$CPP $CPPFLAGS'
11274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11276ac_compiler_gnu=$ac_cv_c_compiler_gnu
11277
11278CC="$lt_save_CC"
11279
11280
11281# Check whether --with-tags was given.
11282if test "${with_tags+set}" = set; then
11283  withval=$with_tags; tagnames="$withval"
11284fi
11285
11286
11287if test -f "$ltmain" && test -n "$tagnames"; then
11288  if test ! -f "${ofile}"; then
11289    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11290echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11291  fi
11292
11293  if test -z "$LTCC"; then
11294    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11295    if test -z "$LTCC"; then
11296      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11297echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11298    else
11299      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11300echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11301    fi
11302  fi
11303  if test -z "$LTCFLAGS"; then
11304    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11305  fi
11306
11307  # Extract list of available tagged configurations in $ofile.
11308  # Note that this assumes the entire list is on one line.
11309  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11310
11311  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11312  for tagname in $tagnames; do
11313    IFS="$lt_save_ifs"
11314    # Check whether tagname contains only valid characters
11315    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11316    "") ;;
11317    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11318echo "$as_me: error: invalid tag name: $tagname" >&2;}
11319   { (exit 1); exit 1; }; }
11320	;;
11321    esac
11322
11323    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11324    then
11325      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11326echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11327   { (exit 1); exit 1; }; }
11328    fi
11329
11330    # Update the list of available tags.
11331    if test -n "$tagname"; then
11332      echo appending configuration tag \"$tagname\" to $ofile
11333
11334      case $tagname in
11335      CXX)
11336	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11337	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11338	    (test "X$CXX" != "Xg++"))) ; then
11339	  ac_ext=cpp
11340ac_cpp='$CXXCPP $CPPFLAGS'
11341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11344
11345
11346
11347
11348archive_cmds_need_lc_CXX=no
11349allow_undefined_flag_CXX=
11350always_export_symbols_CXX=no
11351archive_expsym_cmds_CXX=
11352export_dynamic_flag_spec_CXX=
11353hardcode_direct_CXX=no
11354hardcode_libdir_flag_spec_CXX=
11355hardcode_libdir_flag_spec_ld_CXX=
11356hardcode_libdir_separator_CXX=
11357hardcode_minus_L_CXX=no
11358hardcode_shlibpath_var_CXX=unsupported
11359hardcode_automatic_CXX=no
11360module_cmds_CXX=
11361module_expsym_cmds_CXX=
11362link_all_deplibs_CXX=unknown
11363old_archive_cmds_CXX=$old_archive_cmds
11364no_undefined_flag_CXX=
11365whole_archive_flag_spec_CXX=
11366enable_shared_with_static_runtimes_CXX=no
11367
11368# Dependencies to place before and after the object being linked:
11369predep_objects_CXX=
11370postdep_objects_CXX=
11371predeps_CXX=
11372postdeps_CXX=
11373compiler_lib_search_path_CXX=
11374compiler_lib_search_dirs_CXX=
11375
11376# Source file extension for C++ test sources.
11377ac_ext=cpp
11378
11379# Object file extension for compiled C++ test sources.
11380objext=o
11381objext_CXX=$objext
11382
11383# Code to be used in simple compile tests
11384lt_simple_compile_test_code="int some_variable = 0;"
11385
11386# Code to be used in simple link tests
11387lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11388
11389# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11390
11391# If no C compiler was specified, use CC.
11392LTCC=${LTCC-"$CC"}
11393
11394# If no C compiler flags were specified, use CFLAGS.
11395LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11396
11397# Allow CC to be a program name with arguments.
11398compiler=$CC
11399
11400
11401# save warnings/boilerplate of simple test code
11402ac_outfile=conftest.$ac_objext
11403echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11404eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11405_lt_compiler_boilerplate=`cat conftest.err`
11406$rm conftest*
11407
11408ac_outfile=conftest.$ac_objext
11409echo "$lt_simple_link_test_code" >conftest.$ac_ext
11410eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11411_lt_linker_boilerplate=`cat conftest.err`
11412$rm -r conftest*
11413
11414
11415# Allow CC to be a program name with arguments.
11416lt_save_CC=$CC
11417lt_save_LD=$LD
11418lt_save_GCC=$GCC
11419GCC=$GXX
11420lt_save_with_gnu_ld=$with_gnu_ld
11421lt_save_path_LD=$lt_cv_path_LD
11422if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11423  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11424else
11425  $as_unset lt_cv_prog_gnu_ld
11426fi
11427if test -n "${lt_cv_path_LDCXX+set}"; then
11428  lt_cv_path_LD=$lt_cv_path_LDCXX
11429else
11430  $as_unset lt_cv_path_LD
11431fi
11432test -z "${LDCXX+set}" || LD=$LDCXX
11433CC=${CXX-"c++"}
11434compiler=$CC
11435compiler_CXX=$CC
11436for cc_temp in $compiler""; do
11437  case $cc_temp in
11438    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11439    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11440    \-*) ;;
11441    *) break;;
11442  esac
11443done
11444cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11445
11446
11447# We don't want -fno-exception wen compiling C++ code, so set the
11448# no_builtin_flag separately
11449if test "$GXX" = yes; then
11450  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11451else
11452  lt_prog_compiler_no_builtin_flag_CXX=
11453fi
11454
11455if test "$GXX" = yes; then
11456  # Set up default GNU C++ configuration
11457
11458
11459# Check whether --with-gnu-ld was given.
11460if test "${with_gnu_ld+set}" = set; then
11461  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11462else
11463  with_gnu_ld=no
11464fi
11465
11466ac_prog=ld
11467if test "$GCC" = yes; then
11468  # Check if gcc -print-prog-name=ld gives a path.
11469  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11470echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11471  case $host in
11472  *-*-mingw*)
11473    # gcc leaves a trailing carriage return which upsets mingw
11474    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11475  *)
11476    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11477  esac
11478  case $ac_prog in
11479    # Accept absolute paths.
11480    [\\/]* | ?:[\\/]*)
11481      re_direlt='/[^/][^/]*/\.\./'
11482      # Canonicalize the pathname of ld
11483      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11484      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11485	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11486      done
11487      test -z "$LD" && LD="$ac_prog"
11488      ;;
11489  "")
11490    # If it fails, then pretend we aren't using GCC.
11491    ac_prog=ld
11492    ;;
11493  *)
11494    # If it is relative, then search for the first ld in PATH.
11495    with_gnu_ld=unknown
11496    ;;
11497  esac
11498elif test "$with_gnu_ld" = yes; then
11499  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11500echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11501else
11502  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11503echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11504fi
11505if test "${lt_cv_path_LD+set}" = set; then
11506  echo $ECHO_N "(cached) $ECHO_C" >&6
11507else
11508  if test -z "$LD"; then
11509  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11510  for ac_dir in $PATH; do
11511    IFS="$lt_save_ifs"
11512    test -z "$ac_dir" && ac_dir=.
11513    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11514      lt_cv_path_LD="$ac_dir/$ac_prog"
11515      # Check to see if the program is GNU ld.  I'd rather use --version,
11516      # but apparently some variants of GNU ld only accept -v.
11517      # Break only if it was the GNU/non-GNU ld that we prefer.
11518      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11519      *GNU* | *'with BFD'*)
11520	test "$with_gnu_ld" != no && break
11521	;;
11522      *)
11523	test "$with_gnu_ld" != yes && break
11524	;;
11525      esac
11526    fi
11527  done
11528  IFS="$lt_save_ifs"
11529else
11530  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11531fi
11532fi
11533
11534LD="$lt_cv_path_LD"
11535if test -n "$LD"; then
11536  { echo "$as_me:$LINENO: result: $LD" >&5
11537echo "${ECHO_T}$LD" >&6; }
11538else
11539  { echo "$as_me:$LINENO: result: no" >&5
11540echo "${ECHO_T}no" >&6; }
11541fi
11542test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11543echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11544   { (exit 1); exit 1; }; }
11545{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11546echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11547if test "${lt_cv_prog_gnu_ld+set}" = set; then
11548  echo $ECHO_N "(cached) $ECHO_C" >&6
11549else
11550  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11551case `$LD -v 2>&1 </dev/null` in
11552*GNU* | *'with BFD'*)
11553  lt_cv_prog_gnu_ld=yes
11554  ;;
11555*)
11556  lt_cv_prog_gnu_ld=no
11557  ;;
11558esac
11559fi
11560{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11561echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11562with_gnu_ld=$lt_cv_prog_gnu_ld
11563
11564
11565
11566  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11567  # archiving commands below assume that GNU ld is being used.
11568  if test "$with_gnu_ld" = yes; then
11569    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11570    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'
11571
11572    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11573    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11574
11575    # If archive_cmds runs LD, not CC, wlarc should be empty
11576    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11577    #     investigate it a little bit more. (MM)
11578    wlarc='${wl}'
11579
11580    # ancient GNU ld didn't support --whole-archive et. al.
11581    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11582	grep 'no-whole-archive' > /dev/null; then
11583      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11584    else
11585      whole_archive_flag_spec_CXX=
11586    fi
11587  else
11588    with_gnu_ld=no
11589    wlarc=
11590
11591    # A generic and very simple default shared library creation
11592    # command for GNU C++ for the case where it uses the native
11593    # linker, instead of GNU ld.  If possible, this setting should
11594    # overridden to take advantage of the native linker features on
11595    # the platform it is being used on.
11596    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11597  fi
11598
11599  # Commands to make compiler produce verbose output that lists
11600  # what "hidden" libraries, object files and flags are used when
11601  # linking a shared library.
11602  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11603
11604else
11605  GXX=no
11606  with_gnu_ld=no
11607  wlarc=
11608fi
11609
11610# PORTME: fill in a description of your system's C++ link characteristics
11611{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11612echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11613ld_shlibs_CXX=yes
11614case $host_os in
11615  aix3*)
11616    # FIXME: insert proper C++ library support
11617    ld_shlibs_CXX=no
11618    ;;
11619  aix[4-9]*)
11620    if test "$host_cpu" = ia64; then
11621      # On IA64, the linker does run time linking by default, so we don't
11622      # have to do anything special.
11623      aix_use_runtimelinking=no
11624      exp_sym_flag='-Bexport'
11625      no_entry_flag=""
11626    else
11627      aix_use_runtimelinking=no
11628
11629      # Test if we are trying to use run time linking or normal
11630      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11631      # need to do runtime linking.
11632      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11633	for ld_flag in $LDFLAGS; do
11634	  case $ld_flag in
11635	  *-brtl*)
11636	    aix_use_runtimelinking=yes
11637	    break
11638	    ;;
11639	  esac
11640	done
11641	;;
11642      esac
11643
11644      exp_sym_flag='-bexport'
11645      no_entry_flag='-bnoentry'
11646    fi
11647
11648    # When large executables or shared objects are built, AIX ld can
11649    # have problems creating the table of contents.  If linking a library
11650    # or program results in "error TOC overflow" add -mminimal-toc to
11651    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11652    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11653
11654    archive_cmds_CXX=''
11655    hardcode_direct_CXX=yes
11656    hardcode_libdir_separator_CXX=':'
11657    link_all_deplibs_CXX=yes
11658
11659    if test "$GXX" = yes; then
11660      case $host_os in aix4.[012]|aix4.[012].*)
11661      # We only want to do this on AIX 4.2 and lower, the check
11662      # below for broken collect2 doesn't work under 4.3+
11663	collect2name=`${CC} -print-prog-name=collect2`
11664	if test -f "$collect2name" && \
11665	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11666	then
11667	  # We have reworked collect2
11668	  :
11669	else
11670	  # We have old collect2
11671	  hardcode_direct_CXX=unsupported
11672	  # It fails to find uninstalled libraries when the uninstalled
11673	  # path is not listed in the libpath.  Setting hardcode_minus_L
11674	  # to unsupported forces relinking
11675	  hardcode_minus_L_CXX=yes
11676	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11677	  hardcode_libdir_separator_CXX=
11678	fi
11679	;;
11680      esac
11681      shared_flag='-shared'
11682      if test "$aix_use_runtimelinking" = yes; then
11683	shared_flag="$shared_flag "'${wl}-G'
11684      fi
11685    else
11686      # not using gcc
11687      if test "$host_cpu" = ia64; then
11688	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11689	# chokes on -Wl,-G. The following line is correct:
11690	shared_flag='-G'
11691      else
11692	if test "$aix_use_runtimelinking" = yes; then
11693	  shared_flag='${wl}-G'
11694	else
11695	  shared_flag='${wl}-bM:SRE'
11696	fi
11697      fi
11698    fi
11699
11700    # It seems that -bexpall does not export symbols beginning with
11701    # underscore (_), so it is better to generate a list of symbols to export.
11702    always_export_symbols_CXX=yes
11703    if test "$aix_use_runtimelinking" = yes; then
11704      # Warning - without using the other runtime loading flags (-brtl),
11705      # -berok will link without error, but may produce a broken library.
11706      allow_undefined_flag_CXX='-berok'
11707      # Determine the default libpath from the value encoded in an empty executable.
11708      cat >conftest.$ac_ext <<_ACEOF
11709/* confdefs.h.  */
11710_ACEOF
11711cat confdefs.h >>conftest.$ac_ext
11712cat >>conftest.$ac_ext <<_ACEOF
11713/* end confdefs.h.  */
11714
11715int
11716main ()
11717{
11718
11719  ;
11720  return 0;
11721}
11722_ACEOF
11723rm -f conftest.$ac_objext conftest$ac_exeext
11724if { (ac_try="$ac_link"
11725case "(($ac_try" in
11726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11727  *) ac_try_echo=$ac_try;;
11728esac
11729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11730  (eval "$ac_link") 2>conftest.er1
11731  ac_status=$?
11732  grep -v '^ *+' conftest.er1 >conftest.err
11733  rm -f conftest.er1
11734  cat conftest.err >&5
11735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736  (exit $ac_status); } && {
11737	 test -z "$ac_cxx_werror_flag" ||
11738	 test ! -s conftest.err
11739       } && test -s conftest$ac_exeext &&
11740       $as_test_x conftest$ac_exeext; then
11741
11742lt_aix_libpath_sed='
11743    /Import File Strings/,/^$/ {
11744	/^0/ {
11745	    s/^0  *\(.*\)$/\1/
11746	    p
11747	}
11748    }'
11749aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11750# Check for a 64-bit object if we didn't find anything.
11751if test -z "$aix_libpath"; then
11752  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11753fi
11754else
11755  echo "$as_me: failed program was:" >&5
11756sed 's/^/| /' conftest.$ac_ext >&5
11757
11758
11759fi
11760
11761rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11762      conftest$ac_exeext conftest.$ac_ext
11763if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11764
11765      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11766
11767      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"
11768     else
11769      if test "$host_cpu" = ia64; then
11770	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11771	allow_undefined_flag_CXX="-z nodefs"
11772	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"
11773      else
11774	# Determine the default libpath from the value encoded in an empty executable.
11775	cat >conftest.$ac_ext <<_ACEOF
11776/* confdefs.h.  */
11777_ACEOF
11778cat confdefs.h >>conftest.$ac_ext
11779cat >>conftest.$ac_ext <<_ACEOF
11780/* end confdefs.h.  */
11781
11782int
11783main ()
11784{
11785
11786  ;
11787  return 0;
11788}
11789_ACEOF
11790rm -f conftest.$ac_objext conftest$ac_exeext
11791if { (ac_try="$ac_link"
11792case "(($ac_try" in
11793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794  *) ac_try_echo=$ac_try;;
11795esac
11796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797  (eval "$ac_link") 2>conftest.er1
11798  ac_status=$?
11799  grep -v '^ *+' conftest.er1 >conftest.err
11800  rm -f conftest.er1
11801  cat conftest.err >&5
11802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803  (exit $ac_status); } && {
11804	 test -z "$ac_cxx_werror_flag" ||
11805	 test ! -s conftest.err
11806       } && test -s conftest$ac_exeext &&
11807       $as_test_x conftest$ac_exeext; then
11808
11809lt_aix_libpath_sed='
11810    /Import File Strings/,/^$/ {
11811	/^0/ {
11812	    s/^0  *\(.*\)$/\1/
11813	    p
11814	}
11815    }'
11816aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11817# Check for a 64-bit object if we didn't find anything.
11818if test -z "$aix_libpath"; then
11819  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11820fi
11821else
11822  echo "$as_me: failed program was:" >&5
11823sed 's/^/| /' conftest.$ac_ext >&5
11824
11825
11826fi
11827
11828rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11829      conftest$ac_exeext conftest.$ac_ext
11830if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11831
11832	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11833	# Warning - without using the other run time loading flags,
11834	# -berok will link without error, but may produce a broken library.
11835	no_undefined_flag_CXX=' ${wl}-bernotok'
11836	allow_undefined_flag_CXX=' ${wl}-berok'
11837	# Exported symbols can be pulled into shared objects from archives
11838	whole_archive_flag_spec_CXX='$convenience'
11839	archive_cmds_need_lc_CXX=yes
11840	# This is similar to how AIX traditionally builds its shared libraries.
11841	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'
11842      fi
11843    fi
11844    ;;
11845
11846  beos*)
11847    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11848      allow_undefined_flag_CXX=unsupported
11849      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11850      # support --undefined.  This deserves some investigation.  FIXME
11851      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11852    else
11853      ld_shlibs_CXX=no
11854    fi
11855    ;;
11856
11857  chorus*)
11858    case $cc_basename in
11859      *)
11860	# FIXME: insert proper C++ library support
11861	ld_shlibs_CXX=no
11862	;;
11863    esac
11864    ;;
11865
11866  cygwin* | mingw* | pw32*)
11867    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11868    # as there is no search path for DLLs.
11869    hardcode_libdir_flag_spec_CXX='-L$libdir'
11870    allow_undefined_flag_CXX=unsupported
11871    always_export_symbols_CXX=no
11872    enable_shared_with_static_runtimes_CXX=yes
11873
11874    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11875      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'
11876      # If the export-symbols file already is a .def file (1st line
11877      # is EXPORTS), use it as is; otherwise, prepend...
11878      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11879	cp $export_symbols $output_objdir/$soname.def;
11880      else
11881	echo EXPORTS > $output_objdir/$soname.def;
11882	cat $export_symbols >> $output_objdir/$soname.def;
11883      fi~
11884      $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'
11885    else
11886      ld_shlibs_CXX=no
11887    fi
11888  ;;
11889      darwin* | rhapsody*)
11890      archive_cmds_need_lc_CXX=no
11891      hardcode_direct_CXX=no
11892      hardcode_automatic_CXX=yes
11893      hardcode_shlibpath_var_CXX=unsupported
11894      whole_archive_flag_spec_CXX=''
11895      link_all_deplibs_CXX=yes
11896      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11897      if test "$GXX" = yes ; then
11898      output_verbose_link_cmd='echo'
11899      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}"
11900      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11901      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}"
11902      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}"
11903      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11904        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}"
11905        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}"
11906      fi
11907      else
11908      case $cc_basename in
11909        xlc*)
11910         output_verbose_link_cmd='echo'
11911          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'
11912          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11913          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11914          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}'
11915          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}'
11916          ;;
11917       *)
11918         ld_shlibs_CXX=no
11919          ;;
11920      esac
11921      fi
11922        ;;
11923
11924  dgux*)
11925    case $cc_basename in
11926      ec++*)
11927	# FIXME: insert proper C++ library support
11928	ld_shlibs_CXX=no
11929	;;
11930      ghcx*)
11931	# Green Hills C++ Compiler
11932	# FIXME: insert proper C++ library support
11933	ld_shlibs_CXX=no
11934	;;
11935      *)
11936	# FIXME: insert proper C++ library support
11937	ld_shlibs_CXX=no
11938	;;
11939    esac
11940    ;;
11941  freebsd[12]*)
11942    # C++ shared libraries reported to be fairly broken before switch to ELF
11943    ld_shlibs_CXX=no
11944    ;;
11945  freebsd-elf*)
11946    archive_cmds_need_lc_CXX=no
11947    ;;
11948  freebsd* | dragonfly*)
11949    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11950    # conventions
11951    ld_shlibs_CXX=yes
11952    ;;
11953  gnu*)
11954    ;;
11955  hpux9*)
11956    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11957    hardcode_libdir_separator_CXX=:
11958    export_dynamic_flag_spec_CXX='${wl}-E'
11959    hardcode_direct_CXX=yes
11960    hardcode_minus_L_CXX=yes # Not in the search PATH,
11961				# but as the default
11962				# location of the library.
11963
11964    case $cc_basename in
11965    CC*)
11966      # FIXME: insert proper C++ library support
11967      ld_shlibs_CXX=no
11968      ;;
11969    aCC*)
11970      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'
11971      # Commands to make compiler produce verbose output that lists
11972      # what "hidden" libraries, object files and flags are used when
11973      # linking a shared library.
11974      #
11975      # There doesn't appear to be a way to prevent this compiler from
11976      # explicitly linking system object files so we need to strip them
11977      # from the output so that they don't get included in the library
11978      # dependencies.
11979      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'
11980      ;;
11981    *)
11982      if test "$GXX" = yes; then
11983        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'
11984      else
11985        # FIXME: insert proper C++ library support
11986        ld_shlibs_CXX=no
11987      fi
11988      ;;
11989    esac
11990    ;;
11991  hpux10*|hpux11*)
11992    if test $with_gnu_ld = no; then
11993      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11994      hardcode_libdir_separator_CXX=:
11995
11996      case $host_cpu in
11997      hppa*64*|ia64*) ;;
11998      *)
11999	export_dynamic_flag_spec_CXX='${wl}-E'
12000        ;;
12001      esac
12002    fi
12003    case $host_cpu in
12004    hppa*64*|ia64*)
12005      hardcode_direct_CXX=no
12006      hardcode_shlibpath_var_CXX=no
12007      ;;
12008    *)
12009      hardcode_direct_CXX=yes
12010      hardcode_minus_L_CXX=yes # Not in the search PATH,
12011					      # but as the default
12012					      # location of the library.
12013      ;;
12014    esac
12015
12016    case $cc_basename in
12017      CC*)
12018	# FIXME: insert proper C++ library support
12019	ld_shlibs_CXX=no
12020	;;
12021      aCC*)
12022	case $host_cpu in
12023	hppa*64*)
12024	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12025	  ;;
12026	ia64*)
12027	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12028	  ;;
12029	*)
12030	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12031	  ;;
12032	esac
12033	# Commands to make compiler produce verbose output that lists
12034	# what "hidden" libraries, object files and flags are used when
12035	# linking a shared library.
12036	#
12037	# There doesn't appear to be a way to prevent this compiler from
12038	# explicitly linking system object files so we need to strip them
12039	# from the output so that they don't get included in the library
12040	# dependencies.
12041	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'
12042	;;
12043      *)
12044	if test "$GXX" = yes; then
12045	  if test $with_gnu_ld = no; then
12046	    case $host_cpu in
12047	    hppa*64*)
12048	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12049	      ;;
12050	    ia64*)
12051	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12052	      ;;
12053	    *)
12054	      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'
12055	      ;;
12056	    esac
12057	  fi
12058	else
12059	  # FIXME: insert proper C++ library support
12060	  ld_shlibs_CXX=no
12061	fi
12062	;;
12063    esac
12064    ;;
12065  interix[3-9]*)
12066    hardcode_direct_CXX=no
12067    hardcode_shlibpath_var_CXX=no
12068    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12069    export_dynamic_flag_spec_CXX='${wl}-E'
12070    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12071    # Instead, shared libraries are loaded at an image base (0x10000000 by
12072    # default) and relocated if they conflict, which is a slow very memory
12073    # consuming and fragmenting process.  To avoid this, we pick a random,
12074    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12075    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12076    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'
12077    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'
12078    ;;
12079  irix5* | irix6*)
12080    case $cc_basename in
12081      CC*)
12082	# SGI C++
12083	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'
12084
12085	# Archives containing C++ object files must be created using
12086	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12087	# necessary to make sure instantiated templates are included
12088	# in the archive.
12089	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12090	;;
12091      *)
12092	if test "$GXX" = yes; then
12093	  if test "$with_gnu_ld" = no; then
12094	    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'
12095	  else
12096	    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'
12097	  fi
12098	fi
12099	link_all_deplibs_CXX=yes
12100	;;
12101    esac
12102    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12103    hardcode_libdir_separator_CXX=:
12104    ;;
12105  linux* | k*bsd*-gnu)
12106    case $cc_basename in
12107      KCC*)
12108	# Kuck and Associates, Inc. (KAI) C++ Compiler
12109
12110	# KCC will only create a shared library if the output file
12111	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12112	# to its proper name (with version) after linking.
12113	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'
12114	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'
12115	# Commands to make compiler produce verbose output that lists
12116	# what "hidden" libraries, object files and flags are used when
12117	# linking a shared library.
12118	#
12119	# There doesn't appear to be a way to prevent this compiler from
12120	# explicitly linking system object files so we need to strip them
12121	# from the output so that they don't get included in the library
12122	# dependencies.
12123	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'
12124
12125	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12126	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12127
12128	# Archives containing C++ object files must be created using
12129	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12130	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12131	;;
12132      icpc*)
12133	# Intel C++
12134	with_gnu_ld=yes
12135	# version 8.0 and above of icpc choke on multiply defined symbols
12136	# if we add $predep_objects and $postdep_objects, however 7.1 and
12137	# earlier do not add the objects themselves.
12138	case `$CC -V 2>&1` in
12139	*"Version 7."*)
12140  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12141  	  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'
12142	  ;;
12143	*)  # Version 8.0 or newer
12144	  tmp_idyn=
12145	  case $host_cpu in
12146	    ia64*) tmp_idyn=' -i_dynamic';;
12147	  esac
12148  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12149	  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'
12150	  ;;
12151	esac
12152	archive_cmds_need_lc_CXX=no
12153	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12154	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12155	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12156	;;
12157      pgCC* | pgcpp*)
12158        # Portland Group C++ compiler
12159	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12160  	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'
12161
12162	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12163	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12164	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'
12165        ;;
12166      cxx*)
12167	# Compaq C++
12168	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12169	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'
12170
12171	runpath_var=LD_RUN_PATH
12172	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12173	hardcode_libdir_separator_CXX=:
12174
12175	# Commands to make compiler produce verbose output that lists
12176	# what "hidden" libraries, object files and flags are used when
12177	# linking a shared library.
12178	#
12179	# There doesn't appear to be a way to prevent this compiler from
12180	# explicitly linking system object files so we need to strip them
12181	# from the output so that they don't get included in the library
12182	# dependencies.
12183	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'
12184	;;
12185      *)
12186	case `$CC -V 2>&1 | sed 5q` in
12187	*Sun\ C*)
12188	  # Sun C++ 5.9
12189	  no_undefined_flag_CXX=' -zdefs'
12190	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12191	  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'
12192	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12193	  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'
12194
12195	  # Not sure whether something based on
12196	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12197	  # would be better.
12198	  output_verbose_link_cmd='echo'
12199
12200	  # Archives containing C++ object files must be created using
12201	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12202	  # necessary to make sure instantiated templates are included
12203	  # in the archive.
12204	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12205	  ;;
12206	esac
12207	;;
12208    esac
12209    ;;
12210  lynxos*)
12211    # FIXME: insert proper C++ library support
12212    ld_shlibs_CXX=no
12213    ;;
12214  m88k*)
12215    # FIXME: insert proper C++ library support
12216    ld_shlibs_CXX=no
12217    ;;
12218  mvs*)
12219    case $cc_basename in
12220      cxx*)
12221	# FIXME: insert proper C++ library support
12222	ld_shlibs_CXX=no
12223	;;
12224      *)
12225	# FIXME: insert proper C++ library support
12226	ld_shlibs_CXX=no
12227	;;
12228    esac
12229    ;;
12230  netbsd* | netbsdelf*-gnu)
12231    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12232      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12233      wlarc=
12234      hardcode_libdir_flag_spec_CXX='-R$libdir'
12235      hardcode_direct_CXX=yes
12236      hardcode_shlibpath_var_CXX=no
12237    fi
12238    # Workaround some broken pre-1.5 toolchains
12239    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12240    ;;
12241  openbsd2*)
12242    # C++ shared libraries are fairly broken
12243    ld_shlibs_CXX=no
12244    ;;
12245  openbsd*)
12246    if test -f /usr/libexec/ld.so; then
12247      hardcode_direct_CXX=yes
12248      hardcode_shlibpath_var_CXX=no
12249      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12250      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12251      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12252	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12253	export_dynamic_flag_spec_CXX='${wl}-E'
12254	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12255      fi
12256      output_verbose_link_cmd='echo'
12257    else
12258      ld_shlibs_CXX=no
12259    fi
12260    ;;
12261  osf3*)
12262    case $cc_basename in
12263      KCC*)
12264	# Kuck and Associates, Inc. (KAI) C++ Compiler
12265
12266	# KCC will only create a shared library if the output file
12267	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12268	# to its proper name (with version) after linking.
12269	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'
12270
12271	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12272	hardcode_libdir_separator_CXX=:
12273
12274	# Archives containing C++ object files must be created using
12275	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12276	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12277
12278	;;
12279      RCC*)
12280	# Rational C++ 2.4.1
12281	# FIXME: insert proper C++ library support
12282	ld_shlibs_CXX=no
12283	;;
12284      cxx*)
12285	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12286	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'
12287
12288	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12289	hardcode_libdir_separator_CXX=:
12290
12291	# Commands to make compiler produce verbose output that lists
12292	# what "hidden" libraries, object files and flags are used when
12293	# linking a shared library.
12294	#
12295	# There doesn't appear to be a way to prevent this compiler from
12296	# explicitly linking system object files so we need to strip them
12297	# from the output so that they don't get included in the library
12298	# dependencies.
12299	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'
12300	;;
12301      *)
12302	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12303	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12304	  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'
12305
12306	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12307	  hardcode_libdir_separator_CXX=:
12308
12309	  # Commands to make compiler produce verbose output that lists
12310	  # what "hidden" libraries, object files and flags are used when
12311	  # linking a shared library.
12312	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12313
12314	else
12315	  # FIXME: insert proper C++ library support
12316	  ld_shlibs_CXX=no
12317	fi
12318	;;
12319    esac
12320    ;;
12321  osf4* | osf5*)
12322    case $cc_basename in
12323      KCC*)
12324	# Kuck and Associates, Inc. (KAI) C++ Compiler
12325
12326	# KCC will only create a shared library if the output file
12327	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12328	# to its proper name (with version) after linking.
12329	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'
12330
12331	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12332	hardcode_libdir_separator_CXX=:
12333
12334	# Archives containing C++ object files must be created using
12335	# the KAI C++ compiler.
12336	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12337	;;
12338      RCC*)
12339	# Rational C++ 2.4.1
12340	# FIXME: insert proper C++ library support
12341	ld_shlibs_CXX=no
12342	;;
12343      cxx*)
12344	allow_undefined_flag_CXX=' -expect_unresolved \*'
12345	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'
12346	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12347	  echo "-hidden">> $lib.exp~
12348	  $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~
12349	  $rm $lib.exp'
12350
12351	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12352	hardcode_libdir_separator_CXX=:
12353
12354	# Commands to make compiler produce verbose output that lists
12355	# what "hidden" libraries, object files and flags are used when
12356	# linking a shared library.
12357	#
12358	# There doesn't appear to be a way to prevent this compiler from
12359	# explicitly linking system object files so we need to strip them
12360	# from the output so that they don't get included in the library
12361	# dependencies.
12362	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'
12363	;;
12364      *)
12365	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12366	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12367	 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'
12368
12369	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12370	  hardcode_libdir_separator_CXX=:
12371
12372	  # Commands to make compiler produce verbose output that lists
12373	  # what "hidden" libraries, object files and flags are used when
12374	  # linking a shared library.
12375	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12376
12377	else
12378	  # FIXME: insert proper C++ library support
12379	  ld_shlibs_CXX=no
12380	fi
12381	;;
12382    esac
12383    ;;
12384  psos*)
12385    # FIXME: insert proper C++ library support
12386    ld_shlibs_CXX=no
12387    ;;
12388  sunos4*)
12389    case $cc_basename in
12390      CC*)
12391	# Sun C++ 4.x
12392	# FIXME: insert proper C++ library support
12393	ld_shlibs_CXX=no
12394	;;
12395      lcc*)
12396	# Lucid
12397	# FIXME: insert proper C++ library support
12398	ld_shlibs_CXX=no
12399	;;
12400      *)
12401	# FIXME: insert proper C++ library support
12402	ld_shlibs_CXX=no
12403	;;
12404    esac
12405    ;;
12406  solaris*)
12407    case $cc_basename in
12408      CC*)
12409	# Sun C++ 4.2, 5.x and Centerline C++
12410        archive_cmds_need_lc_CXX=yes
12411	no_undefined_flag_CXX=' -zdefs'
12412	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12413	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12414	$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'
12415
12416	hardcode_libdir_flag_spec_CXX='-R$libdir'
12417	hardcode_shlibpath_var_CXX=no
12418	case $host_os in
12419	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12420	  *)
12421	    # The compiler driver will combine and reorder linker options,
12422	    # but understands `-z linker_flag'.
12423	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12424	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12425	    ;;
12426	esac
12427	link_all_deplibs_CXX=yes
12428
12429	output_verbose_link_cmd='echo'
12430
12431	# Archives containing C++ object files must be created using
12432	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12433	# necessary to make sure instantiated templates are included
12434	# in the archive.
12435	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12436	;;
12437      gcx*)
12438	# Green Hills C++ Compiler
12439	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12440
12441	# The C++ compiler must be used to create the archive.
12442	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12443	;;
12444      *)
12445	# GNU C++ compiler with Solaris linker
12446	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12447	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12448	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12449	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12450	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12451		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12452
12453	    # Commands to make compiler produce verbose output that lists
12454	    # what "hidden" libraries, object files and flags are used when
12455	    # linking a shared library.
12456	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12457	  else
12458	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12459	    # platform.
12460	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12461	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12462		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12463
12464	    # Commands to make compiler produce verbose output that lists
12465	    # what "hidden" libraries, object files and flags are used when
12466	    # linking a shared library.
12467	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12468	  fi
12469
12470	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12471	  case $host_os in
12472	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12473	  *)
12474	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12475	    ;;
12476	  esac
12477	fi
12478	;;
12479    esac
12480    ;;
12481  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12482    no_undefined_flag_CXX='${wl}-z,text'
12483    archive_cmds_need_lc_CXX=no
12484    hardcode_shlibpath_var_CXX=no
12485    runpath_var='LD_RUN_PATH'
12486
12487    case $cc_basename in
12488      CC*)
12489	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12490	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12491	;;
12492      *)
12493	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12494	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12495	;;
12496    esac
12497    ;;
12498  sysv5* | sco3.2v5* | sco5v6*)
12499    # Note: We can NOT use -z defs as we might desire, because we do not
12500    # link with -lc, and that would cause any symbols used from libc to
12501    # always be unresolved, which means just about no library would
12502    # ever link correctly.  If we're not using GNU ld we use -z text
12503    # though, which does catch some bad symbols but isn't as heavy-handed
12504    # as -z defs.
12505    # For security reasons, it is highly recommended that you always
12506    # use absolute paths for naming shared libraries, and exclude the
12507    # DT_RUNPATH tag from executables and libraries.  But doing so
12508    # requires that you compile everything twice, which is a pain.
12509    # So that behaviour is only enabled if SCOABSPATH is set to a
12510    # non-empty value in the environment.  Most likely only useful for
12511    # creating official distributions of packages.
12512    # This is a hack until libtool officially supports absolute path
12513    # names for shared libraries.
12514    no_undefined_flag_CXX='${wl}-z,text'
12515    allow_undefined_flag_CXX='${wl}-z,nodefs'
12516    archive_cmds_need_lc_CXX=no
12517    hardcode_shlibpath_var_CXX=no
12518    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12519    hardcode_libdir_separator_CXX=':'
12520    link_all_deplibs_CXX=yes
12521    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12522    runpath_var='LD_RUN_PATH'
12523
12524    case $cc_basename in
12525      CC*)
12526	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12527	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12528	;;
12529      *)
12530	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12531	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12532	;;
12533    esac
12534    ;;
12535  tandem*)
12536    case $cc_basename in
12537      NCC*)
12538	# NonStop-UX NCC 3.20
12539	# FIXME: insert proper C++ library support
12540	ld_shlibs_CXX=no
12541	;;
12542      *)
12543	# FIXME: insert proper C++ library support
12544	ld_shlibs_CXX=no
12545	;;
12546    esac
12547    ;;
12548  vxworks*)
12549    # FIXME: insert proper C++ library support
12550    ld_shlibs_CXX=no
12551    ;;
12552  *)
12553    # FIXME: insert proper C++ library support
12554    ld_shlibs_CXX=no
12555    ;;
12556esac
12557{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12558echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12559test "$ld_shlibs_CXX" = no && can_build_shared=no
12560
12561GCC_CXX="$GXX"
12562LD_CXX="$LD"
12563
12564cat > conftest.$ac_ext <<EOF
12565class Foo
12566{
12567public:
12568  Foo (void) { a = 0; }
12569private:
12570  int a;
12571};
12572EOF
12573
12574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12575  (eval $ac_compile) 2>&5
12576  ac_status=$?
12577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578  (exit $ac_status); }; then
12579  # Parse the compiler output and extract the necessary
12580  # objects, libraries and library flags.
12581
12582  # Sentinel used to keep track of whether or not we are before
12583  # the conftest object file.
12584  pre_test_object_deps_done=no
12585
12586  # The `*' in the case matches for architectures that use `case' in
12587  # $output_verbose_cmd can trigger glob expansion during the loop
12588  # eval without this substitution.
12589  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12590
12591  for p in `eval $output_verbose_link_cmd`; do
12592    case $p in
12593
12594    -L* | -R* | -l*)
12595       # Some compilers place space between "-{L,R}" and the path.
12596       # Remove the space.
12597       if test $p = "-L" \
12598	  || test $p = "-R"; then
12599	 prev=$p
12600	 continue
12601       else
12602	 prev=
12603       fi
12604
12605       if test "$pre_test_object_deps_done" = no; then
12606	 case $p in
12607	 -L* | -R*)
12608	   # Internal compiler library paths should come after those
12609	   # provided the user.  The postdeps already come after the
12610	   # user supplied libs so there is no need to process them.
12611	   if test -z "$compiler_lib_search_path_CXX"; then
12612	     compiler_lib_search_path_CXX="${prev}${p}"
12613	   else
12614	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12615	   fi
12616	   ;;
12617	 # The "-l" case would never come before the object being
12618	 # linked, so don't bother handling this case.
12619	 esac
12620       else
12621	 if test -z "$postdeps_CXX"; then
12622	   postdeps_CXX="${prev}${p}"
12623	 else
12624	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12625	 fi
12626       fi
12627       ;;
12628
12629    *.$objext)
12630       # This assumes that the test object file only shows up
12631       # once in the compiler output.
12632       if test "$p" = "conftest.$objext"; then
12633	 pre_test_object_deps_done=yes
12634	 continue
12635       fi
12636
12637       if test "$pre_test_object_deps_done" = no; then
12638	 if test -z "$predep_objects_CXX"; then
12639	   predep_objects_CXX="$p"
12640	 else
12641	   predep_objects_CXX="$predep_objects_CXX $p"
12642	 fi
12643       else
12644	 if test -z "$postdep_objects_CXX"; then
12645	   postdep_objects_CXX="$p"
12646	 else
12647	   postdep_objects_CXX="$postdep_objects_CXX $p"
12648	 fi
12649       fi
12650       ;;
12651
12652    *) ;; # Ignore the rest.
12653
12654    esac
12655  done
12656
12657  # Clean up.
12658  rm -f a.out a.exe
12659else
12660  echo "libtool.m4: error: problem compiling CXX test program"
12661fi
12662
12663$rm -f confest.$objext
12664
12665compiler_lib_search_dirs_CXX=
12666if test -n "$compiler_lib_search_path_CXX"; then
12667  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12668fi
12669
12670# PORTME: override above test on systems where it is broken
12671case $host_os in
12672interix[3-9]*)
12673  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12674  # hack all around it, let's just trust "g++" to DTRT.
12675  predep_objects_CXX=
12676  postdep_objects_CXX=
12677  postdeps_CXX=
12678  ;;
12679
12680linux*)
12681  case `$CC -V 2>&1 | sed 5q` in
12682  *Sun\ C*)
12683    # Sun C++ 5.9
12684    #
12685    # The more standards-conforming stlport4 library is
12686    # incompatible with the Cstd library. Avoid specifying
12687    # it if it's in CXXFLAGS. Ignore libCrun as
12688    # -library=stlport4 depends on it.
12689    case " $CXX $CXXFLAGS " in
12690    *" -library=stlport4 "*)
12691      solaris_use_stlport4=yes
12692      ;;
12693    esac
12694    if test "$solaris_use_stlport4" != yes; then
12695      postdeps_CXX='-library=Cstd -library=Crun'
12696    fi
12697    ;;
12698  esac
12699  ;;
12700
12701solaris*)
12702  case $cc_basename in
12703  CC*)
12704    # The more standards-conforming stlport4 library is
12705    # incompatible with the Cstd library. Avoid specifying
12706    # it if it's in CXXFLAGS. Ignore libCrun as
12707    # -library=stlport4 depends on it.
12708    case " $CXX $CXXFLAGS " in
12709    *" -library=stlport4 "*)
12710      solaris_use_stlport4=yes
12711      ;;
12712    esac
12713
12714    # Adding this requires a known-good setup of shared libraries for
12715    # Sun compiler versions before 5.6, else PIC objects from an old
12716    # archive will be linked into the output, leading to subtle bugs.
12717    if test "$solaris_use_stlport4" != yes; then
12718      postdeps_CXX='-library=Cstd -library=Crun'
12719    fi
12720    ;;
12721  esac
12722  ;;
12723esac
12724
12725case " $postdeps_CXX " in
12726*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12727esac
12728
12729lt_prog_compiler_wl_CXX=
12730lt_prog_compiler_pic_CXX=
12731lt_prog_compiler_static_CXX=
12732
12733{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12734echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12735
12736  # C++ specific cases for pic, static, wl, etc.
12737  if test "$GXX" = yes; then
12738    lt_prog_compiler_wl_CXX='-Wl,'
12739    lt_prog_compiler_static_CXX='-static'
12740
12741    case $host_os in
12742    aix*)
12743      # All AIX code is PIC.
12744      if test "$host_cpu" = ia64; then
12745	# AIX 5 now supports IA64 processor
12746	lt_prog_compiler_static_CXX='-Bstatic'
12747      fi
12748      ;;
12749    amigaos*)
12750      # FIXME: we need at least 68020 code to build shared libraries, but
12751      # adding the `-m68020' flag to GCC prevents building anything better,
12752      # like `-m68040'.
12753      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12754      ;;
12755    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12756      # PIC is the default for these OSes.
12757      ;;
12758    mingw* | cygwin* | os2* | pw32*)
12759      # This hack is so that the source file can tell whether it is being
12760      # built for inclusion in a dll (and should export symbols for example).
12761      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12762      # (--disable-auto-import) libraries
12763      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12764      ;;
12765    darwin* | rhapsody*)
12766      # PIC is the default on this platform
12767      # Common symbols not allowed in MH_DYLIB files
12768      lt_prog_compiler_pic_CXX='-fno-common'
12769      ;;
12770    *djgpp*)
12771      # DJGPP does not support shared libraries at all
12772      lt_prog_compiler_pic_CXX=
12773      ;;
12774    interix[3-9]*)
12775      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12776      # Instead, we relocate shared libraries at runtime.
12777      ;;
12778    sysv4*MP*)
12779      if test -d /usr/nec; then
12780	lt_prog_compiler_pic_CXX=-Kconform_pic
12781      fi
12782      ;;
12783    hpux*)
12784      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12785      # not for PA HP-UX.
12786      case $host_cpu in
12787      hppa*64*|ia64*)
12788	;;
12789      *)
12790	lt_prog_compiler_pic_CXX='-fPIC'
12791	;;
12792      esac
12793      ;;
12794    *)
12795      lt_prog_compiler_pic_CXX='-fPIC'
12796      ;;
12797    esac
12798  else
12799    case $host_os in
12800      aix[4-9]*)
12801	# All AIX code is PIC.
12802	if test "$host_cpu" = ia64; then
12803	  # AIX 5 now supports IA64 processor
12804	  lt_prog_compiler_static_CXX='-Bstatic'
12805	else
12806	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12807	fi
12808	;;
12809      chorus*)
12810	case $cc_basename in
12811	cxch68*)
12812	  # Green Hills C++ Compiler
12813	  # _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"
12814	  ;;
12815	esac
12816	;;
12817       darwin*)
12818         # PIC is the default on this platform
12819         # Common symbols not allowed in MH_DYLIB files
12820         case $cc_basename in
12821           xlc*)
12822           lt_prog_compiler_pic_CXX='-qnocommon'
12823           lt_prog_compiler_wl_CXX='-Wl,'
12824           ;;
12825         esac
12826       ;;
12827      dgux*)
12828	case $cc_basename in
12829	  ec++*)
12830	    lt_prog_compiler_pic_CXX='-KPIC'
12831	    ;;
12832	  ghcx*)
12833	    # Green Hills C++ Compiler
12834	    lt_prog_compiler_pic_CXX='-pic'
12835	    ;;
12836	  *)
12837	    ;;
12838	esac
12839	;;
12840      freebsd* | dragonfly*)
12841	# FreeBSD uses GNU C++
12842	;;
12843      hpux9* | hpux10* | hpux11*)
12844	case $cc_basename in
12845	  CC*)
12846	    lt_prog_compiler_wl_CXX='-Wl,'
12847	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12848	    if test "$host_cpu" != ia64; then
12849	      lt_prog_compiler_pic_CXX='+Z'
12850	    fi
12851	    ;;
12852	  aCC*)
12853	    lt_prog_compiler_wl_CXX='-Wl,'
12854	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12855	    case $host_cpu in
12856	    hppa*64*|ia64*)
12857	      # +Z the default
12858	      ;;
12859	    *)
12860	      lt_prog_compiler_pic_CXX='+Z'
12861	      ;;
12862	    esac
12863	    ;;
12864	  *)
12865	    ;;
12866	esac
12867	;;
12868      interix*)
12869	# This is c89, which is MS Visual C++ (no shared libs)
12870	# Anyone wants to do a port?
12871	;;
12872      irix5* | irix6* | nonstopux*)
12873	case $cc_basename in
12874	  CC*)
12875	    lt_prog_compiler_wl_CXX='-Wl,'
12876	    lt_prog_compiler_static_CXX='-non_shared'
12877	    # CC pic flag -KPIC is the default.
12878	    ;;
12879	  *)
12880	    ;;
12881	esac
12882	;;
12883      linux* | k*bsd*-gnu)
12884	case $cc_basename in
12885	  KCC*)
12886	    # KAI C++ Compiler
12887	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12888	    lt_prog_compiler_pic_CXX='-fPIC'
12889	    ;;
12890	  icpc* | ecpc*)
12891	    # Intel C++
12892	    lt_prog_compiler_wl_CXX='-Wl,'
12893	    lt_prog_compiler_pic_CXX='-KPIC'
12894	    lt_prog_compiler_static_CXX='-static'
12895	    ;;
12896	  pgCC* | pgcpp*)
12897	    # Portland Group C++ compiler.
12898	    lt_prog_compiler_wl_CXX='-Wl,'
12899	    lt_prog_compiler_pic_CXX='-fpic'
12900	    lt_prog_compiler_static_CXX='-Bstatic'
12901	    ;;
12902	  cxx*)
12903	    # Compaq C++
12904	    # Make sure the PIC flag is empty.  It appears that all Alpha
12905	    # Linux and Compaq Tru64 Unix objects are PIC.
12906	    lt_prog_compiler_pic_CXX=
12907	    lt_prog_compiler_static_CXX='-non_shared'
12908	    ;;
12909	  *)
12910	    case `$CC -V 2>&1 | sed 5q` in
12911	    *Sun\ C*)
12912	      # Sun C++ 5.9
12913	      lt_prog_compiler_pic_CXX='-KPIC'
12914	      lt_prog_compiler_static_CXX='-Bstatic'
12915	      lt_prog_compiler_wl_CXX='-Qoption ld '
12916	      ;;
12917	    esac
12918	    ;;
12919	esac
12920	;;
12921      lynxos*)
12922	;;
12923      m88k*)
12924	;;
12925      mvs*)
12926	case $cc_basename in
12927	  cxx*)
12928	    lt_prog_compiler_pic_CXX='-W c,exportall'
12929	    ;;
12930	  *)
12931	    ;;
12932	esac
12933	;;
12934      netbsd* | netbsdelf*-gnu)
12935	;;
12936      osf3* | osf4* | osf5*)
12937	case $cc_basename in
12938	  KCC*)
12939	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12940	    ;;
12941	  RCC*)
12942	    # Rational C++ 2.4.1
12943	    lt_prog_compiler_pic_CXX='-pic'
12944	    ;;
12945	  cxx*)
12946	    # Digital/Compaq C++
12947	    lt_prog_compiler_wl_CXX='-Wl,'
12948	    # Make sure the PIC flag is empty.  It appears that all Alpha
12949	    # Linux and Compaq Tru64 Unix objects are PIC.
12950	    lt_prog_compiler_pic_CXX=
12951	    lt_prog_compiler_static_CXX='-non_shared'
12952	    ;;
12953	  *)
12954	    ;;
12955	esac
12956	;;
12957      psos*)
12958	;;
12959      solaris*)
12960	case $cc_basename in
12961	  CC*)
12962	    # Sun C++ 4.2, 5.x and Centerline C++
12963	    lt_prog_compiler_pic_CXX='-KPIC'
12964	    lt_prog_compiler_static_CXX='-Bstatic'
12965	    lt_prog_compiler_wl_CXX='-Qoption ld '
12966	    ;;
12967	  gcx*)
12968	    # Green Hills C++ Compiler
12969	    lt_prog_compiler_pic_CXX='-PIC'
12970	    ;;
12971	  *)
12972	    ;;
12973	esac
12974	;;
12975      sunos4*)
12976	case $cc_basename in
12977	  CC*)
12978	    # Sun C++ 4.x
12979	    lt_prog_compiler_pic_CXX='-pic'
12980	    lt_prog_compiler_static_CXX='-Bstatic'
12981	    ;;
12982	  lcc*)
12983	    # Lucid
12984	    lt_prog_compiler_pic_CXX='-pic'
12985	    ;;
12986	  *)
12987	    ;;
12988	esac
12989	;;
12990      tandem*)
12991	case $cc_basename in
12992	  NCC*)
12993	    # NonStop-UX NCC 3.20
12994	    lt_prog_compiler_pic_CXX='-KPIC'
12995	    ;;
12996	  *)
12997	    ;;
12998	esac
12999	;;
13000      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13001	case $cc_basename in
13002	  CC*)
13003	    lt_prog_compiler_wl_CXX='-Wl,'
13004	    lt_prog_compiler_pic_CXX='-KPIC'
13005	    lt_prog_compiler_static_CXX='-Bstatic'
13006	    ;;
13007	esac
13008	;;
13009      vxworks*)
13010	;;
13011      *)
13012	lt_prog_compiler_can_build_shared_CXX=no
13013	;;
13014    esac
13015  fi
13016
13017{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13018echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13019
13020#
13021# Check to make sure the PIC flag actually works.
13022#
13023if test -n "$lt_prog_compiler_pic_CXX"; then
13024
13025{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13026echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13027if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13028  echo $ECHO_N "(cached) $ECHO_C" >&6
13029else
13030  lt_cv_prog_compiler_pic_works_CXX=no
13031  ac_outfile=conftest.$ac_objext
13032   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13033   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13034   # Insert the option either (1) after the last *FLAGS variable, or
13035   # (2) before a word containing "conftest.", or (3) at the end.
13036   # Note that $ac_compile itself does not contain backslashes and begins
13037   # with a dollar sign (not a hyphen), so the echo should work correctly.
13038   # The option is referenced via a variable to avoid confusing sed.
13039   lt_compile=`echo "$ac_compile" | $SED \
13040   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13041   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13042   -e 's:$: $lt_compiler_flag:'`
13043   (eval echo "\"\$as_me:13043: $lt_compile\"" >&5)
13044   (eval "$lt_compile" 2>conftest.err)
13045   ac_status=$?
13046   cat conftest.err >&5
13047   echo "$as_me:13047: \$? = $ac_status" >&5
13048   if (exit $ac_status) && test -s "$ac_outfile"; then
13049     # The compiler can only warn and ignore the option if not recognized
13050     # So say no if there are warnings other than the usual output.
13051     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13052     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13053     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13054       lt_cv_prog_compiler_pic_works_CXX=yes
13055     fi
13056   fi
13057   $rm conftest*
13058
13059fi
13060{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13061echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13062
13063if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13064    case $lt_prog_compiler_pic_CXX in
13065     "" | " "*) ;;
13066     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13067     esac
13068else
13069    lt_prog_compiler_pic_CXX=
13070     lt_prog_compiler_can_build_shared_CXX=no
13071fi
13072
13073fi
13074case $host_os in
13075  # For platforms which do not support PIC, -DPIC is meaningless:
13076  *djgpp*)
13077    lt_prog_compiler_pic_CXX=
13078    ;;
13079  *)
13080    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13081    ;;
13082esac
13083
13084#
13085# Check to make sure the static flag actually works.
13086#
13087wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13088{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13089echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13090if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13091  echo $ECHO_N "(cached) $ECHO_C" >&6
13092else
13093  lt_cv_prog_compiler_static_works_CXX=no
13094   save_LDFLAGS="$LDFLAGS"
13095   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13096   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13097   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13098     # The linker can only warn and ignore the option if not recognized
13099     # So say no if there are warnings
13100     if test -s conftest.err; then
13101       # Append any errors to the config.log.
13102       cat conftest.err 1>&5
13103       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13104       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13105       if diff conftest.exp conftest.er2 >/dev/null; then
13106         lt_cv_prog_compiler_static_works_CXX=yes
13107       fi
13108     else
13109       lt_cv_prog_compiler_static_works_CXX=yes
13110     fi
13111   fi
13112   $rm -r conftest*
13113   LDFLAGS="$save_LDFLAGS"
13114
13115fi
13116{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13117echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13118
13119if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13120    :
13121else
13122    lt_prog_compiler_static_CXX=
13123fi
13124
13125
13126{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13127echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13128if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13129  echo $ECHO_N "(cached) $ECHO_C" >&6
13130else
13131  lt_cv_prog_compiler_c_o_CXX=no
13132   $rm -r conftest 2>/dev/null
13133   mkdir conftest
13134   cd conftest
13135   mkdir out
13136   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13137
13138   lt_compiler_flag="-o out/conftest2.$ac_objext"
13139   # Insert the option either (1) after the last *FLAGS variable, or
13140   # (2) before a word containing "conftest.", or (3) at the end.
13141   # Note that $ac_compile itself does not contain backslashes and begins
13142   # with a dollar sign (not a hyphen), so the echo should work correctly.
13143   lt_compile=`echo "$ac_compile" | $SED \
13144   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13145   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13146   -e 's:$: $lt_compiler_flag:'`
13147   (eval echo "\"\$as_me:13147: $lt_compile\"" >&5)
13148   (eval "$lt_compile" 2>out/conftest.err)
13149   ac_status=$?
13150   cat out/conftest.err >&5
13151   echo "$as_me:13151: \$? = $ac_status" >&5
13152   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13153   then
13154     # The compiler can only warn and ignore the option if not recognized
13155     # So say no if there are warnings
13156     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13157     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13158     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13159       lt_cv_prog_compiler_c_o_CXX=yes
13160     fi
13161   fi
13162   chmod u+w . 2>&5
13163   $rm conftest*
13164   # SGI C++ compiler will create directory out/ii_files/ for
13165   # template instantiation
13166   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13167   $rm out/* && rmdir out
13168   cd ..
13169   rmdir conftest
13170   $rm conftest*
13171
13172fi
13173{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13174echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13175
13176
13177hard_links="nottested"
13178if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13179  # do not overwrite the value of need_locks provided by the user
13180  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13181echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13182  hard_links=yes
13183  $rm conftest*
13184  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13185  touch conftest.a
13186  ln conftest.a conftest.b 2>&5 || hard_links=no
13187  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13188  { echo "$as_me:$LINENO: result: $hard_links" >&5
13189echo "${ECHO_T}$hard_links" >&6; }
13190  if test "$hard_links" = no; then
13191    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13192echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13193    need_locks=warn
13194  fi
13195else
13196  need_locks=no
13197fi
13198
13199{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13200echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13201
13202  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13203  case $host_os in
13204  aix[4-9]*)
13205    # If we're using GNU nm, then we don't want the "-C" option.
13206    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13207    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13208      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'
13209    else
13210      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'
13211    fi
13212    ;;
13213  pw32*)
13214    export_symbols_cmds_CXX="$ltdll_cmds"
13215  ;;
13216  cygwin* | mingw*)
13217    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'
13218  ;;
13219  linux* | k*bsd*-gnu)
13220    link_all_deplibs_CXX=no
13221  ;;
13222  *)
13223    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13224  ;;
13225  esac
13226  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13227
13228{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13229echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13230test "$ld_shlibs_CXX" = no && can_build_shared=no
13231
13232#
13233# Do we need to explicitly link libc?
13234#
13235case "x$archive_cmds_need_lc_CXX" in
13236x|xyes)
13237  # Assume -lc should be added
13238  archive_cmds_need_lc_CXX=yes
13239
13240  if test "$enable_shared" = yes && test "$GCC" = yes; then
13241    case $archive_cmds_CXX in
13242    *'~'*)
13243      # FIXME: we may have to deal with multi-command sequences.
13244      ;;
13245    '$CC '*)
13246      # Test whether the compiler implicitly links with -lc since on some
13247      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13248      # to ld, don't add -lc before -lgcc.
13249      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13250echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13251      $rm conftest*
13252      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13253
13254      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13255  (eval $ac_compile) 2>&5
13256  ac_status=$?
13257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258  (exit $ac_status); } 2>conftest.err; then
13259        soname=conftest
13260        lib=conftest
13261        libobjs=conftest.$ac_objext
13262        deplibs=
13263        wl=$lt_prog_compiler_wl_CXX
13264	pic_flag=$lt_prog_compiler_pic_CXX
13265        compiler_flags=-v
13266        linker_flags=-v
13267        verstring=
13268        output_objdir=.
13269        libname=conftest
13270        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13271        allow_undefined_flag_CXX=
13272        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13273  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13274  ac_status=$?
13275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276  (exit $ac_status); }
13277        then
13278	  archive_cmds_need_lc_CXX=no
13279        else
13280	  archive_cmds_need_lc_CXX=yes
13281        fi
13282        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13283      else
13284        cat conftest.err 1>&5
13285      fi
13286      $rm conftest*
13287      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13288echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13289      ;;
13290    esac
13291  fi
13292  ;;
13293esac
13294
13295{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13296echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13297library_names_spec=
13298libname_spec='lib$name'
13299soname_spec=
13300shrext_cmds=".so"
13301postinstall_cmds=
13302postuninstall_cmds=
13303finish_cmds=
13304finish_eval=
13305shlibpath_var=
13306shlibpath_overrides_runpath=unknown
13307version_type=none
13308dynamic_linker="$host_os ld.so"
13309sys_lib_dlsearch_path_spec="/lib /usr/lib"
13310
13311need_lib_prefix=unknown
13312hardcode_into_libs=no
13313
13314# when you set need_version to no, make sure it does not cause -set_version
13315# flags to be left without arguments
13316need_version=unknown
13317
13318case $host_os in
13319aix3*)
13320  version_type=linux
13321  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13322  shlibpath_var=LIBPATH
13323
13324  # AIX 3 has no versioning support, so we append a major version to the name.
13325  soname_spec='${libname}${release}${shared_ext}$major'
13326  ;;
13327
13328aix[4-9]*)
13329  version_type=linux
13330  need_lib_prefix=no
13331  need_version=no
13332  hardcode_into_libs=yes
13333  if test "$host_cpu" = ia64; then
13334    # AIX 5 supports IA64
13335    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13336    shlibpath_var=LD_LIBRARY_PATH
13337  else
13338    # With GCC up to 2.95.x, collect2 would create an import file
13339    # for dependence libraries.  The import file would start with
13340    # the line `#! .'.  This would cause the generated library to
13341    # depend on `.', always an invalid library.  This was fixed in
13342    # development snapshots of GCC prior to 3.0.
13343    case $host_os in
13344      aix4 | aix4.[01] | aix4.[01].*)
13345      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13346	   echo ' yes '
13347	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13348	:
13349      else
13350	can_build_shared=no
13351      fi
13352      ;;
13353    esac
13354    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13355    # soname into executable. Probably we can add versioning support to
13356    # collect2, so additional links can be useful in future.
13357    if test "$aix_use_runtimelinking" = yes; then
13358      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13359      # instead of lib<name>.a to let people know that these are not
13360      # typical AIX shared libraries.
13361      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13362    else
13363      # We preserve .a as extension for shared libraries through AIX4.2
13364      # and later when we are not doing run time linking.
13365      library_names_spec='${libname}${release}.a $libname.a'
13366      soname_spec='${libname}${release}${shared_ext}$major'
13367    fi
13368    shlibpath_var=LIBPATH
13369  fi
13370  ;;
13371
13372amigaos*)
13373  library_names_spec='$libname.ixlibrary $libname.a'
13374  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13375  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'
13376  ;;
13377
13378beos*)
13379  library_names_spec='${libname}${shared_ext}'
13380  dynamic_linker="$host_os ld.so"
13381  shlibpath_var=LIBRARY_PATH
13382  ;;
13383
13384bsdi[45]*)
13385  version_type=linux
13386  need_version=no
13387  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13388  soname_spec='${libname}${release}${shared_ext}$major'
13389  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13390  shlibpath_var=LD_LIBRARY_PATH
13391  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13392  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13393  # the default ld.so.conf also contains /usr/contrib/lib and
13394  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13395  # libtool to hard-code these into programs
13396  ;;
13397
13398cygwin* | mingw* | pw32*)
13399  version_type=windows
13400  shrext_cmds=".dll"
13401  need_version=no
13402  need_lib_prefix=no
13403
13404  case $GCC,$host_os in
13405  yes,cygwin* | yes,mingw* | yes,pw32*)
13406    library_names_spec='$libname.dll.a'
13407    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13408    postinstall_cmds='base_file=`basename \${file}`~
13409      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13410      dldir=$destdir/`dirname \$dlpath`~
13411      test -d \$dldir || mkdir -p \$dldir~
13412      $install_prog $dir/$dlname \$dldir/$dlname~
13413      chmod a+x \$dldir/$dlname'
13414    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13415      dlpath=$dir/\$dldll~
13416       $rm \$dlpath'
13417    shlibpath_overrides_runpath=yes
13418
13419    case $host_os in
13420    cygwin*)
13421      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13422      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13423      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13424      ;;
13425    mingw*)
13426      # MinGW DLLs use traditional 'lib' prefix
13427      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13428      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13429      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13430        # It is most probably a Windows format PATH printed by
13431        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13432        # path with ; separators, and with drive letters. We can handle the
13433        # drive letters (cygwin fileutils understands them), so leave them,
13434        # especially as we might pass files found there to a mingw objdump,
13435        # which wouldn't understand a cygwinified path. Ahh.
13436        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13437      else
13438        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13439      fi
13440      ;;
13441    pw32*)
13442      # pw32 DLLs use 'pw' prefix rather than 'lib'
13443      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13444      ;;
13445    esac
13446    ;;
13447
13448  *)
13449    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13450    ;;
13451  esac
13452  dynamic_linker='Win32 ld.exe'
13453  # FIXME: first we should search . and the directory the executable is in
13454  shlibpath_var=PATH
13455  ;;
13456
13457darwin* | rhapsody*)
13458  dynamic_linker="$host_os dyld"
13459  version_type=darwin
13460  need_lib_prefix=no
13461  need_version=no
13462  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13463  soname_spec='${libname}${release}${major}$shared_ext'
13464  shlibpath_overrides_runpath=yes
13465  shlibpath_var=DYLD_LIBRARY_PATH
13466  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13467
13468  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13469  ;;
13470
13471dgux*)
13472  version_type=linux
13473  need_lib_prefix=no
13474  need_version=no
13475  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13476  soname_spec='${libname}${release}${shared_ext}$major'
13477  shlibpath_var=LD_LIBRARY_PATH
13478  ;;
13479
13480freebsd1*)
13481  dynamic_linker=no
13482  ;;
13483
13484freebsd* | dragonfly*)
13485  # DragonFly does not have aout.  When/if they implement a new
13486  # versioning mechanism, adjust this.
13487  if test -x /usr/bin/objformat; then
13488    objformat=`/usr/bin/objformat`
13489  else
13490    case $host_os in
13491    freebsd[123]*) objformat=aout ;;
13492    *) objformat=elf ;;
13493    esac
13494  fi
13495  version_type=freebsd-$objformat
13496  case $version_type in
13497    freebsd-elf*)
13498      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13499      need_version=no
13500      need_lib_prefix=no
13501      ;;
13502    freebsd-*)
13503      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13504      need_version=yes
13505      ;;
13506  esac
13507  shlibpath_var=LD_LIBRARY_PATH
13508  case $host_os in
13509  freebsd2*)
13510    shlibpath_overrides_runpath=yes
13511    ;;
13512  freebsd3.[01]* | freebsdelf3.[01]*)
13513    shlibpath_overrides_runpath=yes
13514    hardcode_into_libs=yes
13515    ;;
13516  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13517  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13518    shlibpath_overrides_runpath=no
13519    hardcode_into_libs=yes
13520    ;;
13521  *) # from 4.6 on, and DragonFly
13522    shlibpath_overrides_runpath=yes
13523    hardcode_into_libs=yes
13524    ;;
13525  esac
13526  ;;
13527
13528gnu*)
13529  version_type=linux
13530  need_lib_prefix=no
13531  need_version=no
13532  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13533  soname_spec='${libname}${release}${shared_ext}$major'
13534  shlibpath_var=LD_LIBRARY_PATH
13535  hardcode_into_libs=yes
13536  ;;
13537
13538hpux9* | hpux10* | hpux11*)
13539  # Give a soname corresponding to the major version so that dld.sl refuses to
13540  # link against other versions.
13541  version_type=sunos
13542  need_lib_prefix=no
13543  need_version=no
13544  case $host_cpu in
13545  ia64*)
13546    shrext_cmds='.so'
13547    hardcode_into_libs=yes
13548    dynamic_linker="$host_os dld.so"
13549    shlibpath_var=LD_LIBRARY_PATH
13550    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13551    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13552    soname_spec='${libname}${release}${shared_ext}$major'
13553    if test "X$HPUX_IA64_MODE" = X32; then
13554      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13555    else
13556      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13557    fi
13558    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13559    ;;
13560   hppa*64*)
13561     shrext_cmds='.sl'
13562     hardcode_into_libs=yes
13563     dynamic_linker="$host_os dld.sl"
13564     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13565     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13566     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13567     soname_spec='${libname}${release}${shared_ext}$major'
13568     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13569     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13570     ;;
13571   *)
13572    shrext_cmds='.sl'
13573    dynamic_linker="$host_os dld.sl"
13574    shlibpath_var=SHLIB_PATH
13575    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13576    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13577    soname_spec='${libname}${release}${shared_ext}$major'
13578    ;;
13579  esac
13580  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13581  postinstall_cmds='chmod 555 $lib'
13582  ;;
13583
13584interix[3-9]*)
13585  version_type=linux
13586  need_lib_prefix=no
13587  need_version=no
13588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13589  soname_spec='${libname}${release}${shared_ext}$major'
13590  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13591  shlibpath_var=LD_LIBRARY_PATH
13592  shlibpath_overrides_runpath=no
13593  hardcode_into_libs=yes
13594  ;;
13595
13596irix5* | irix6* | nonstopux*)
13597  case $host_os in
13598    nonstopux*) version_type=nonstopux ;;
13599    *)
13600	if test "$lt_cv_prog_gnu_ld" = yes; then
13601		version_type=linux
13602	else
13603		version_type=irix
13604	fi ;;
13605  esac
13606  need_lib_prefix=no
13607  need_version=no
13608  soname_spec='${libname}${release}${shared_ext}$major'
13609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13610  case $host_os in
13611  irix5* | nonstopux*)
13612    libsuff= shlibsuff=
13613    ;;
13614  *)
13615    case $LD in # libtool.m4 will add one of these switches to LD
13616    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13617      libsuff= shlibsuff= libmagic=32-bit;;
13618    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13619      libsuff=32 shlibsuff=N32 libmagic=N32;;
13620    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13621      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13622    *) libsuff= shlibsuff= libmagic=never-match;;
13623    esac
13624    ;;
13625  esac
13626  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13627  shlibpath_overrides_runpath=no
13628  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13629  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13630  hardcode_into_libs=yes
13631  ;;
13632
13633# No shared lib support for Linux oldld, aout, or coff.
13634linux*oldld* | linux*aout* | linux*coff*)
13635  dynamic_linker=no
13636  ;;
13637
13638# This must be Linux ELF.
13639linux* | k*bsd*-gnu)
13640  version_type=linux
13641  need_lib_prefix=no
13642  need_version=no
13643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13644  soname_spec='${libname}${release}${shared_ext}$major'
13645  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13646  shlibpath_var=LD_LIBRARY_PATH
13647  shlibpath_overrides_runpath=no
13648  # This implies no fast_install, which is unacceptable.
13649  # Some rework will be needed to allow for fast_install
13650  # before this can be enabled.
13651  hardcode_into_libs=yes
13652
13653  # Append ld.so.conf contents to the search path
13654  if test -f /etc/ld.so.conf; then
13655    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' ' '`
13656    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13657  fi
13658
13659  # We used to test for /lib/ld.so.1 and disable shared libraries on
13660  # powerpc, because MkLinux only supported shared libraries with the
13661  # GNU dynamic linker.  Since this was broken with cross compilers,
13662  # most powerpc-linux boxes support dynamic linking these days and
13663  # people can always --disable-shared, the test was removed, and we
13664  # assume the GNU/Linux dynamic linker is in use.
13665  dynamic_linker='GNU/Linux ld.so'
13666  ;;
13667
13668netbsdelf*-gnu)
13669  version_type=linux
13670  need_lib_prefix=no
13671  need_version=no
13672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13673  soname_spec='${libname}${release}${shared_ext}$major'
13674  shlibpath_var=LD_LIBRARY_PATH
13675  shlibpath_overrides_runpath=no
13676  hardcode_into_libs=yes
13677  dynamic_linker='NetBSD ld.elf_so'
13678  ;;
13679
13680netbsd*)
13681  version_type=sunos
13682  need_lib_prefix=no
13683  need_version=no
13684  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13685    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13686    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13687    dynamic_linker='NetBSD (a.out) ld.so'
13688  else
13689    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13690    soname_spec='${libname}${release}${shared_ext}$major'
13691    dynamic_linker='NetBSD ld.elf_so'
13692  fi
13693  shlibpath_var=LD_LIBRARY_PATH
13694  shlibpath_overrides_runpath=yes
13695  hardcode_into_libs=yes
13696  ;;
13697
13698newsos6)
13699  version_type=linux
13700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13701  shlibpath_var=LD_LIBRARY_PATH
13702  shlibpath_overrides_runpath=yes
13703  ;;
13704
13705nto-qnx*)
13706  version_type=linux
13707  need_lib_prefix=no
13708  need_version=no
13709  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13710  soname_spec='${libname}${release}${shared_ext}$major'
13711  shlibpath_var=LD_LIBRARY_PATH
13712  shlibpath_overrides_runpath=yes
13713  ;;
13714
13715openbsd*)
13716  version_type=sunos
13717  sys_lib_dlsearch_path_spec="/usr/lib"
13718  need_lib_prefix=no
13719  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13720  case $host_os in
13721    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13722    *)                         need_version=no  ;;
13723  esac
13724  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13725  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13726  shlibpath_var=LD_LIBRARY_PATH
13727  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13728    case $host_os in
13729      openbsd2.[89] | openbsd2.[89].*)
13730	shlibpath_overrides_runpath=no
13731	;;
13732      *)
13733	shlibpath_overrides_runpath=yes
13734	;;
13735      esac
13736  else
13737    shlibpath_overrides_runpath=yes
13738  fi
13739  ;;
13740
13741os2*)
13742  libname_spec='$name'
13743  shrext_cmds=".dll"
13744  need_lib_prefix=no
13745  library_names_spec='$libname${shared_ext} $libname.a'
13746  dynamic_linker='OS/2 ld.exe'
13747  shlibpath_var=LIBPATH
13748  ;;
13749
13750osf3* | osf4* | osf5*)
13751  version_type=osf
13752  need_lib_prefix=no
13753  need_version=no
13754  soname_spec='${libname}${release}${shared_ext}$major'
13755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13756  shlibpath_var=LD_LIBRARY_PATH
13757  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13758  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13759  ;;
13760
13761rdos*)
13762  dynamic_linker=no
13763  ;;
13764
13765solaris*)
13766  version_type=linux
13767  need_lib_prefix=no
13768  need_version=no
13769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13770  soname_spec='${libname}${release}${shared_ext}$major'
13771  shlibpath_var=LD_LIBRARY_PATH
13772  shlibpath_overrides_runpath=yes
13773  hardcode_into_libs=yes
13774  # ldd complains unless libraries are executable
13775  postinstall_cmds='chmod +x $lib'
13776  ;;
13777
13778sunos4*)
13779  version_type=sunos
13780  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13781  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13782  shlibpath_var=LD_LIBRARY_PATH
13783  shlibpath_overrides_runpath=yes
13784  if test "$with_gnu_ld" = yes; then
13785    need_lib_prefix=no
13786  fi
13787  need_version=yes
13788  ;;
13789
13790sysv4 | sysv4.3*)
13791  version_type=linux
13792  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13793  soname_spec='${libname}${release}${shared_ext}$major'
13794  shlibpath_var=LD_LIBRARY_PATH
13795  case $host_vendor in
13796    sni)
13797      shlibpath_overrides_runpath=no
13798      need_lib_prefix=no
13799      export_dynamic_flag_spec='${wl}-Blargedynsym'
13800      runpath_var=LD_RUN_PATH
13801      ;;
13802    siemens)
13803      need_lib_prefix=no
13804      ;;
13805    motorola)
13806      need_lib_prefix=no
13807      need_version=no
13808      shlibpath_overrides_runpath=no
13809      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13810      ;;
13811  esac
13812  ;;
13813
13814sysv4*MP*)
13815  if test -d /usr/nec ;then
13816    version_type=linux
13817    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13818    soname_spec='$libname${shared_ext}.$major'
13819    shlibpath_var=LD_LIBRARY_PATH
13820  fi
13821  ;;
13822
13823sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13824  version_type=freebsd-elf
13825  need_lib_prefix=no
13826  need_version=no
13827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13828  soname_spec='${libname}${release}${shared_ext}$major'
13829  shlibpath_var=LD_LIBRARY_PATH
13830  hardcode_into_libs=yes
13831  if test "$with_gnu_ld" = yes; then
13832    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13833    shlibpath_overrides_runpath=no
13834  else
13835    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13836    shlibpath_overrides_runpath=yes
13837    case $host_os in
13838      sco3.2v5*)
13839        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13840	;;
13841    esac
13842  fi
13843  sys_lib_dlsearch_path_spec='/usr/lib'
13844  ;;
13845
13846uts4*)
13847  version_type=linux
13848  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13849  soname_spec='${libname}${release}${shared_ext}$major'
13850  shlibpath_var=LD_LIBRARY_PATH
13851  ;;
13852
13853*)
13854  dynamic_linker=no
13855  ;;
13856esac
13857{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13858echo "${ECHO_T}$dynamic_linker" >&6; }
13859test "$dynamic_linker" = no && can_build_shared=no
13860
13861if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13862  echo $ECHO_N "(cached) $ECHO_C" >&6
13863else
13864  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13865fi
13866
13867sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13868if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13869  echo $ECHO_N "(cached) $ECHO_C" >&6
13870else
13871  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13872fi
13873
13874sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13875
13876variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13877if test "$GCC" = yes; then
13878  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13879fi
13880
13881{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13882echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13883hardcode_action_CXX=
13884if test -n "$hardcode_libdir_flag_spec_CXX" || \
13885   test -n "$runpath_var_CXX" || \
13886   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13887
13888  # We can hardcode non-existant directories.
13889  if test "$hardcode_direct_CXX" != no &&
13890     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13891     # have to relink, otherwise we might link with an installed library
13892     # when we should be linking with a yet-to-be-installed one
13893     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13894     test "$hardcode_minus_L_CXX" != no; then
13895    # Linking always hardcodes the temporary library directory.
13896    hardcode_action_CXX=relink
13897  else
13898    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13899    hardcode_action_CXX=immediate
13900  fi
13901else
13902  # We cannot hardcode anything, or else we can only hardcode existing
13903  # directories.
13904  hardcode_action_CXX=unsupported
13905fi
13906{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13907echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13908
13909if test "$hardcode_action_CXX" = relink; then
13910  # Fast installation is not supported
13911  enable_fast_install=no
13912elif test "$shlibpath_overrides_runpath" = yes ||
13913     test "$enable_shared" = no; then
13914  # Fast installation is not necessary
13915  enable_fast_install=needless
13916fi
13917
13918
13919# The else clause should only fire when bootstrapping the
13920# libtool distribution, otherwise you forgot to ship ltmain.sh
13921# with your package, and you will get complaints that there are
13922# no rules to generate ltmain.sh.
13923if test -f "$ltmain"; then
13924  # See if we are running on zsh, and set the options which allow our commands through
13925  # without removal of \ escapes.
13926  if test -n "${ZSH_VERSION+set}" ; then
13927    setopt NO_GLOB_SUBST
13928  fi
13929  # Now quote all the things that may contain metacharacters while being
13930  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13931  # variables and quote the copies for generation of the libtool script.
13932  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13933    SED SHELL STRIP \
13934    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13935    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13936    deplibs_check_method reload_flag reload_cmds need_locks \
13937    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13938    lt_cv_sys_global_symbol_to_c_name_address \
13939    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13940    old_postinstall_cmds old_postuninstall_cmds \
13941    compiler_CXX \
13942    CC_CXX \
13943    LD_CXX \
13944    lt_prog_compiler_wl_CXX \
13945    lt_prog_compiler_pic_CXX \
13946    lt_prog_compiler_static_CXX \
13947    lt_prog_compiler_no_builtin_flag_CXX \
13948    export_dynamic_flag_spec_CXX \
13949    thread_safe_flag_spec_CXX \
13950    whole_archive_flag_spec_CXX \
13951    enable_shared_with_static_runtimes_CXX \
13952    old_archive_cmds_CXX \
13953    old_archive_from_new_cmds_CXX \
13954    predep_objects_CXX \
13955    postdep_objects_CXX \
13956    predeps_CXX \
13957    postdeps_CXX \
13958    compiler_lib_search_path_CXX \
13959    compiler_lib_search_dirs_CXX \
13960    archive_cmds_CXX \
13961    archive_expsym_cmds_CXX \
13962    postinstall_cmds_CXX \
13963    postuninstall_cmds_CXX \
13964    old_archive_from_expsyms_cmds_CXX \
13965    allow_undefined_flag_CXX \
13966    no_undefined_flag_CXX \
13967    export_symbols_cmds_CXX \
13968    hardcode_libdir_flag_spec_CXX \
13969    hardcode_libdir_flag_spec_ld_CXX \
13970    hardcode_libdir_separator_CXX \
13971    hardcode_automatic_CXX \
13972    module_cmds_CXX \
13973    module_expsym_cmds_CXX \
13974    lt_cv_prog_compiler_c_o_CXX \
13975    fix_srcfile_path_CXX \
13976    exclude_expsyms_CXX \
13977    include_expsyms_CXX; do
13978
13979    case $var in
13980    old_archive_cmds_CXX | \
13981    old_archive_from_new_cmds_CXX | \
13982    archive_cmds_CXX | \
13983    archive_expsym_cmds_CXX | \
13984    module_cmds_CXX | \
13985    module_expsym_cmds_CXX | \
13986    old_archive_from_expsyms_cmds_CXX | \
13987    export_symbols_cmds_CXX | \
13988    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13989    postinstall_cmds | postuninstall_cmds | \
13990    old_postinstall_cmds | old_postuninstall_cmds | \
13991    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13992      # Double-quote double-evaled strings.
13993      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13994      ;;
13995    *)
13996      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13997      ;;
13998    esac
13999  done
14000
14001  case $lt_echo in
14002  *'\$0 --fallback-echo"')
14003    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14004    ;;
14005  esac
14006
14007cfgfile="$ofile"
14008
14009  cat <<__EOF__ >> "$cfgfile"
14010# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14011
14012# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14013
14014# Shell to use when invoking shell scripts.
14015SHELL=$lt_SHELL
14016
14017# Whether or not to build shared libraries.
14018build_libtool_libs=$enable_shared
14019
14020# Whether or not to build static libraries.
14021build_old_libs=$enable_static
14022
14023# Whether or not to add -lc for building shared libraries.
14024build_libtool_need_lc=$archive_cmds_need_lc_CXX
14025
14026# Whether or not to disallow shared libs when runtime libs are static
14027allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14028
14029# Whether or not to optimize for fast installation.
14030fast_install=$enable_fast_install
14031
14032# The host system.
14033host_alias=$host_alias
14034host=$host
14035host_os=$host_os
14036
14037# The build system.
14038build_alias=$build_alias
14039build=$build
14040build_os=$build_os
14041
14042# An echo program that does not interpret backslashes.
14043echo=$lt_echo
14044
14045# The archiver.
14046AR=$lt_AR
14047AR_FLAGS=$lt_AR_FLAGS
14048
14049# A C compiler.
14050LTCC=$lt_LTCC
14051
14052# LTCC compiler flags.
14053LTCFLAGS=$lt_LTCFLAGS
14054
14055# A language-specific compiler.
14056CC=$lt_compiler_CXX
14057
14058# Is the compiler the GNU C compiler?
14059with_gcc=$GCC_CXX
14060
14061# An ERE matcher.
14062EGREP=$lt_EGREP
14063
14064# The linker used to build libraries.
14065LD=$lt_LD_CXX
14066
14067# Whether we need hard or soft links.
14068LN_S=$lt_LN_S
14069
14070# A BSD-compatible nm program.
14071NM=$lt_NM
14072
14073# A symbol stripping program
14074STRIP=$lt_STRIP
14075
14076# Used to examine libraries when file_magic_cmd begins "file"
14077MAGIC_CMD=$MAGIC_CMD
14078
14079# Used on cygwin: DLL creation program.
14080DLLTOOL="$DLLTOOL"
14081
14082# Used on cygwin: object dumper.
14083OBJDUMP="$OBJDUMP"
14084
14085# Used on cygwin: assembler.
14086AS="$AS"
14087
14088# The name of the directory that contains temporary libtool files.
14089objdir=$objdir
14090
14091# How to create reloadable object files.
14092reload_flag=$lt_reload_flag
14093reload_cmds=$lt_reload_cmds
14094
14095# How to pass a linker flag through the compiler.
14096wl=$lt_lt_prog_compiler_wl_CXX
14097
14098# Object file suffix (normally "o").
14099objext="$ac_objext"
14100
14101# Old archive suffix (normally "a").
14102libext="$libext"
14103
14104# Shared library suffix (normally ".so").
14105shrext_cmds='$shrext_cmds'
14106
14107# Executable file suffix (normally "").
14108exeext="$exeext"
14109
14110# Additional compiler flags for building library objects.
14111pic_flag=$lt_lt_prog_compiler_pic_CXX
14112pic_mode=$pic_mode
14113
14114# What is the maximum length of a command?
14115max_cmd_len=$lt_cv_sys_max_cmd_len
14116
14117# Does compiler simultaneously support -c and -o options?
14118compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14119
14120# Must we lock files when doing compilation?
14121need_locks=$lt_need_locks
14122
14123# Do we need the lib prefix for modules?
14124need_lib_prefix=$need_lib_prefix
14125
14126# Do we need a version for libraries?
14127need_version=$need_version
14128
14129# Whether dlopen is supported.
14130dlopen_support=$enable_dlopen
14131
14132# Whether dlopen of programs is supported.
14133dlopen_self=$enable_dlopen_self
14134
14135# Whether dlopen of statically linked programs is supported.
14136dlopen_self_static=$enable_dlopen_self_static
14137
14138# Compiler flag to prevent dynamic linking.
14139link_static_flag=$lt_lt_prog_compiler_static_CXX
14140
14141# Compiler flag to turn off builtin functions.
14142no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14143
14144# Compiler flag to allow reflexive dlopens.
14145export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14146
14147# Compiler flag to generate shared objects directly from archives.
14148whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14149
14150# Compiler flag to generate thread-safe objects.
14151thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14152
14153# Library versioning type.
14154version_type=$version_type
14155
14156# Format of library name prefix.
14157libname_spec=$lt_libname_spec
14158
14159# List of archive names.  First name is the real one, the rest are links.
14160# The last name is the one that the linker finds with -lNAME.
14161library_names_spec=$lt_library_names_spec
14162
14163# The coded name of the library, if different from the real name.
14164soname_spec=$lt_soname_spec
14165
14166# Commands used to build and install an old-style archive.
14167RANLIB=$lt_RANLIB
14168old_archive_cmds=$lt_old_archive_cmds_CXX
14169old_postinstall_cmds=$lt_old_postinstall_cmds
14170old_postuninstall_cmds=$lt_old_postuninstall_cmds
14171
14172# Create an old-style archive from a shared archive.
14173old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14174
14175# Create a temporary old-style archive to link instead of a shared archive.
14176old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14177
14178# Commands used to build and install a shared archive.
14179archive_cmds=$lt_archive_cmds_CXX
14180archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14181postinstall_cmds=$lt_postinstall_cmds
14182postuninstall_cmds=$lt_postuninstall_cmds
14183
14184# Commands used to build a loadable module (assumed same as above if empty)
14185module_cmds=$lt_module_cmds_CXX
14186module_expsym_cmds=$lt_module_expsym_cmds_CXX
14187
14188# Commands to strip libraries.
14189old_striplib=$lt_old_striplib
14190striplib=$lt_striplib
14191
14192# Dependencies to place before the objects being linked to create a
14193# shared library.
14194predep_objects=$lt_predep_objects_CXX
14195
14196# Dependencies to place after the objects being linked to create a
14197# shared library.
14198postdep_objects=$lt_postdep_objects_CXX
14199
14200# Dependencies to place before the objects being linked to create a
14201# shared library.
14202predeps=$lt_predeps_CXX
14203
14204# Dependencies to place after the objects being linked to create a
14205# shared library.
14206postdeps=$lt_postdeps_CXX
14207
14208# The directories searched by this compiler when creating a shared
14209# library
14210compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14211
14212# The library search path used internally by the compiler when linking
14213# a shared library.
14214compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14215
14216# Method to check whether dependent libraries are shared objects.
14217deplibs_check_method=$lt_deplibs_check_method
14218
14219# Command to use when deplibs_check_method == file_magic.
14220file_magic_cmd=$lt_file_magic_cmd
14221
14222# Flag that allows shared libraries with undefined symbols to be built.
14223allow_undefined_flag=$lt_allow_undefined_flag_CXX
14224
14225# Flag that forces no undefined symbols.
14226no_undefined_flag=$lt_no_undefined_flag_CXX
14227
14228# Commands used to finish a libtool library installation in a directory.
14229finish_cmds=$lt_finish_cmds
14230
14231# Same as above, but a single script fragment to be evaled but not shown.
14232finish_eval=$lt_finish_eval
14233
14234# Take the output of nm and produce a listing of raw symbols and C names.
14235global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14236
14237# Transform the output of nm in a proper C declaration
14238global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14239
14240# Transform the output of nm in a C name address pair
14241global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14242
14243# This is the shared library runtime path variable.
14244runpath_var=$runpath_var
14245
14246# This is the shared library path variable.
14247shlibpath_var=$shlibpath_var
14248
14249# Is shlibpath searched before the hard-coded library search path?
14250shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14251
14252# How to hardcode a shared library path into an executable.
14253hardcode_action=$hardcode_action_CXX
14254
14255# Whether we should hardcode library paths into libraries.
14256hardcode_into_libs=$hardcode_into_libs
14257
14258# Flag to hardcode \$libdir into a binary during linking.
14259# This must work even if \$libdir does not exist.
14260hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14261
14262# If ld is used when linking, flag to hardcode \$libdir into
14263# a binary during linking. This must work even if \$libdir does
14264# not exist.
14265hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14266
14267# Whether we need a single -rpath flag with a separated argument.
14268hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14269
14270# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14271# resulting binary.
14272hardcode_direct=$hardcode_direct_CXX
14273
14274# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14275# resulting binary.
14276hardcode_minus_L=$hardcode_minus_L_CXX
14277
14278# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14279# the resulting binary.
14280hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14281
14282# Set to yes if building a shared library automatically hardcodes DIR into the library
14283# and all subsequent libraries and executables linked against it.
14284hardcode_automatic=$hardcode_automatic_CXX
14285
14286# Variables whose values should be saved in libtool wrapper scripts and
14287# restored at relink time.
14288variables_saved_for_relink="$variables_saved_for_relink"
14289
14290# Whether libtool must link a program against all its dependency libraries.
14291link_all_deplibs=$link_all_deplibs_CXX
14292
14293# Compile-time system search path for libraries
14294sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14295
14296# Run-time system search path for libraries
14297sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14298
14299# Fix the shell variable \$srcfile for the compiler.
14300fix_srcfile_path=$lt_fix_srcfile_path
14301
14302# Set to yes if exported symbols are required.
14303always_export_symbols=$always_export_symbols_CXX
14304
14305# The commands to list exported symbols.
14306export_symbols_cmds=$lt_export_symbols_cmds_CXX
14307
14308# The commands to extract the exported symbol list from a shared archive.
14309extract_expsyms_cmds=$lt_extract_expsyms_cmds
14310
14311# Symbols that should not be listed in the preloaded symbols.
14312exclude_expsyms=$lt_exclude_expsyms_CXX
14313
14314# Symbols that must always be exported.
14315include_expsyms=$lt_include_expsyms_CXX
14316
14317# ### END LIBTOOL TAG CONFIG: $tagname
14318
14319__EOF__
14320
14321
14322else
14323  # If there is no Makefile yet, we rely on a make rule to execute
14324  # `config.status --recheck' to rerun these tests and create the
14325  # libtool script then.
14326  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14327  if test -f "$ltmain_in"; then
14328    test -f Makefile && make "$ltmain"
14329  fi
14330fi
14331
14332
14333ac_ext=c
14334ac_cpp='$CPP $CPPFLAGS'
14335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14337ac_compiler_gnu=$ac_cv_c_compiler_gnu
14338
14339CC=$lt_save_CC
14340LDCXX=$LD
14341LD=$lt_save_LD
14342GCC=$lt_save_GCC
14343with_gnu_ldcxx=$with_gnu_ld
14344with_gnu_ld=$lt_save_with_gnu_ld
14345lt_cv_path_LDCXX=$lt_cv_path_LD
14346lt_cv_path_LD=$lt_save_path_LD
14347lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14348lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14349
14350	else
14351	  tagname=""
14352	fi
14353	;;
14354
14355      F77)
14356	if test -n "$F77" && test "X$F77" != "Xno"; then
14357
14358ac_ext=f
14359ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14360ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14361ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14362
14363
14364archive_cmds_need_lc_F77=no
14365allow_undefined_flag_F77=
14366always_export_symbols_F77=no
14367archive_expsym_cmds_F77=
14368export_dynamic_flag_spec_F77=
14369hardcode_direct_F77=no
14370hardcode_libdir_flag_spec_F77=
14371hardcode_libdir_flag_spec_ld_F77=
14372hardcode_libdir_separator_F77=
14373hardcode_minus_L_F77=no
14374hardcode_automatic_F77=no
14375module_cmds_F77=
14376module_expsym_cmds_F77=
14377link_all_deplibs_F77=unknown
14378old_archive_cmds_F77=$old_archive_cmds
14379no_undefined_flag_F77=
14380whole_archive_flag_spec_F77=
14381enable_shared_with_static_runtimes_F77=no
14382
14383# Source file extension for f77 test sources.
14384ac_ext=f
14385
14386# Object file extension for compiled f77 test sources.
14387objext=o
14388objext_F77=$objext
14389
14390# Code to be used in simple compile tests
14391lt_simple_compile_test_code="\
14392      subroutine t
14393      return
14394      end
14395"
14396
14397# Code to be used in simple link tests
14398lt_simple_link_test_code="\
14399      program t
14400      end
14401"
14402
14403# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14404
14405# If no C compiler was specified, use CC.
14406LTCC=${LTCC-"$CC"}
14407
14408# If no C compiler flags were specified, use CFLAGS.
14409LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14410
14411# Allow CC to be a program name with arguments.
14412compiler=$CC
14413
14414
14415# save warnings/boilerplate of simple test code
14416ac_outfile=conftest.$ac_objext
14417echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14418eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14419_lt_compiler_boilerplate=`cat conftest.err`
14420$rm conftest*
14421
14422ac_outfile=conftest.$ac_objext
14423echo "$lt_simple_link_test_code" >conftest.$ac_ext
14424eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14425_lt_linker_boilerplate=`cat conftest.err`
14426$rm -r conftest*
14427
14428
14429# Allow CC to be a program name with arguments.
14430lt_save_CC="$CC"
14431CC=${F77-"f77"}
14432compiler=$CC
14433compiler_F77=$CC
14434for cc_temp in $compiler""; do
14435  case $cc_temp in
14436    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14437    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14438    \-*) ;;
14439    *) break;;
14440  esac
14441done
14442cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14443
14444
14445{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14446echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14447{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14448echo "${ECHO_T}$can_build_shared" >&6; }
14449
14450{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14451echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14452test "$can_build_shared" = "no" && enable_shared=no
14453
14454# On AIX, shared libraries and static libraries use the same namespace, and
14455# are all built from PIC.
14456case $host_os in
14457aix3*)
14458  test "$enable_shared" = yes && enable_static=no
14459  if test -n "$RANLIB"; then
14460    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14461    postinstall_cmds='$RANLIB $lib'
14462  fi
14463  ;;
14464aix[4-9]*)
14465  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14466    test "$enable_shared" = yes && enable_static=no
14467  fi
14468  ;;
14469esac
14470{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14471echo "${ECHO_T}$enable_shared" >&6; }
14472
14473{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14474echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14475# Make sure either enable_shared or enable_static is yes.
14476test "$enable_shared" = yes || enable_static=yes
14477{ echo "$as_me:$LINENO: result: $enable_static" >&5
14478echo "${ECHO_T}$enable_static" >&6; }
14479
14480GCC_F77="$G77"
14481LD_F77="$LD"
14482
14483lt_prog_compiler_wl_F77=
14484lt_prog_compiler_pic_F77=
14485lt_prog_compiler_static_F77=
14486
14487{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14488echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14489
14490  if test "$GCC" = yes; then
14491    lt_prog_compiler_wl_F77='-Wl,'
14492    lt_prog_compiler_static_F77='-static'
14493
14494    case $host_os in
14495      aix*)
14496      # All AIX code is PIC.
14497      if test "$host_cpu" = ia64; then
14498	# AIX 5 now supports IA64 processor
14499	lt_prog_compiler_static_F77='-Bstatic'
14500      fi
14501      ;;
14502
14503    amigaos*)
14504      # FIXME: we need at least 68020 code to build shared libraries, but
14505      # adding the `-m68020' flag to GCC prevents building anything better,
14506      # like `-m68040'.
14507      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14508      ;;
14509
14510    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14511      # PIC is the default for these OSes.
14512      ;;
14513
14514    mingw* | cygwin* | pw32* | os2*)
14515      # This hack is so that the source file can tell whether it is being
14516      # built for inclusion in a dll (and should export symbols for example).
14517      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14518      # (--disable-auto-import) libraries
14519      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14520      ;;
14521
14522    darwin* | rhapsody*)
14523      # PIC is the default on this platform
14524      # Common symbols not allowed in MH_DYLIB files
14525      lt_prog_compiler_pic_F77='-fno-common'
14526      ;;
14527
14528    interix[3-9]*)
14529      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14530      # Instead, we relocate shared libraries at runtime.
14531      ;;
14532
14533    msdosdjgpp*)
14534      # Just because we use GCC doesn't mean we suddenly get shared libraries
14535      # on systems that don't support them.
14536      lt_prog_compiler_can_build_shared_F77=no
14537      enable_shared=no
14538      ;;
14539
14540    sysv4*MP*)
14541      if test -d /usr/nec; then
14542	lt_prog_compiler_pic_F77=-Kconform_pic
14543      fi
14544      ;;
14545
14546    hpux*)
14547      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14548      # not for PA HP-UX.
14549      case $host_cpu in
14550      hppa*64*|ia64*)
14551	# +Z the default
14552	;;
14553      *)
14554	lt_prog_compiler_pic_F77='-fPIC'
14555	;;
14556      esac
14557      ;;
14558
14559    *)
14560      lt_prog_compiler_pic_F77='-fPIC'
14561      ;;
14562    esac
14563  else
14564    # PORTME Check for flag to pass linker flags through the system compiler.
14565    case $host_os in
14566    aix*)
14567      lt_prog_compiler_wl_F77='-Wl,'
14568      if test "$host_cpu" = ia64; then
14569	# AIX 5 now supports IA64 processor
14570	lt_prog_compiler_static_F77='-Bstatic'
14571      else
14572	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14573      fi
14574      ;;
14575      darwin*)
14576        # PIC is the default on this platform
14577        # Common symbols not allowed in MH_DYLIB files
14578       case $cc_basename in
14579         xlc*)
14580         lt_prog_compiler_pic_F77='-qnocommon'
14581         lt_prog_compiler_wl_F77='-Wl,'
14582         ;;
14583       esac
14584       ;;
14585
14586    mingw* | cygwin* | pw32* | os2*)
14587      # This hack is so that the source file can tell whether it is being
14588      # built for inclusion in a dll (and should export symbols for example).
14589      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14590      ;;
14591
14592    hpux9* | hpux10* | hpux11*)
14593      lt_prog_compiler_wl_F77='-Wl,'
14594      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14595      # not for PA HP-UX.
14596      case $host_cpu in
14597      hppa*64*|ia64*)
14598	# +Z the default
14599	;;
14600      *)
14601	lt_prog_compiler_pic_F77='+Z'
14602	;;
14603      esac
14604      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14605      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14606      ;;
14607
14608    irix5* | irix6* | nonstopux*)
14609      lt_prog_compiler_wl_F77='-Wl,'
14610      # PIC (with -KPIC) is the default.
14611      lt_prog_compiler_static_F77='-non_shared'
14612      ;;
14613
14614    newsos6)
14615      lt_prog_compiler_pic_F77='-KPIC'
14616      lt_prog_compiler_static_F77='-Bstatic'
14617      ;;
14618
14619    linux* | k*bsd*-gnu)
14620      case $cc_basename in
14621      icc* | ecc*)
14622	lt_prog_compiler_wl_F77='-Wl,'
14623	lt_prog_compiler_pic_F77='-KPIC'
14624	lt_prog_compiler_static_F77='-static'
14625        ;;
14626      pgcc* | pgf77* | pgf90* | pgf95*)
14627        # Portland Group compilers (*not* the Pentium gcc compiler,
14628	# which looks to be a dead project)
14629	lt_prog_compiler_wl_F77='-Wl,'
14630	lt_prog_compiler_pic_F77='-fpic'
14631	lt_prog_compiler_static_F77='-Bstatic'
14632        ;;
14633      ccc*)
14634        lt_prog_compiler_wl_F77='-Wl,'
14635        # All Alpha code is PIC.
14636        lt_prog_compiler_static_F77='-non_shared'
14637        ;;
14638      *)
14639        case `$CC -V 2>&1 | sed 5q` in
14640	*Sun\ C*)
14641	  # Sun C 5.9
14642	  lt_prog_compiler_pic_F77='-KPIC'
14643	  lt_prog_compiler_static_F77='-Bstatic'
14644	  lt_prog_compiler_wl_F77='-Wl,'
14645	  ;;
14646	*Sun\ F*)
14647	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14648	  lt_prog_compiler_pic_F77='-KPIC'
14649	  lt_prog_compiler_static_F77='-Bstatic'
14650	  lt_prog_compiler_wl_F77=''
14651	  ;;
14652	esac
14653	;;
14654      esac
14655      ;;
14656
14657    osf3* | osf4* | osf5*)
14658      lt_prog_compiler_wl_F77='-Wl,'
14659      # All OSF/1 code is PIC.
14660      lt_prog_compiler_static_F77='-non_shared'
14661      ;;
14662
14663    rdos*)
14664      lt_prog_compiler_static_F77='-non_shared'
14665      ;;
14666
14667    solaris*)
14668      lt_prog_compiler_pic_F77='-KPIC'
14669      lt_prog_compiler_static_F77='-Bstatic'
14670      case $cc_basename in
14671      f77* | f90* | f95*)
14672	lt_prog_compiler_wl_F77='-Qoption ld ';;
14673      *)
14674	lt_prog_compiler_wl_F77='-Wl,';;
14675      esac
14676      ;;
14677
14678    sunos4*)
14679      lt_prog_compiler_wl_F77='-Qoption ld '
14680      lt_prog_compiler_pic_F77='-PIC'
14681      lt_prog_compiler_static_F77='-Bstatic'
14682      ;;
14683
14684    sysv4 | sysv4.2uw2* | sysv4.3*)
14685      lt_prog_compiler_wl_F77='-Wl,'
14686      lt_prog_compiler_pic_F77='-KPIC'
14687      lt_prog_compiler_static_F77='-Bstatic'
14688      ;;
14689
14690    sysv4*MP*)
14691      if test -d /usr/nec ;then
14692	lt_prog_compiler_pic_F77='-Kconform_pic'
14693	lt_prog_compiler_static_F77='-Bstatic'
14694      fi
14695      ;;
14696
14697    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14698      lt_prog_compiler_wl_F77='-Wl,'
14699      lt_prog_compiler_pic_F77='-KPIC'
14700      lt_prog_compiler_static_F77='-Bstatic'
14701      ;;
14702
14703    unicos*)
14704      lt_prog_compiler_wl_F77='-Wl,'
14705      lt_prog_compiler_can_build_shared_F77=no
14706      ;;
14707
14708    uts4*)
14709      lt_prog_compiler_pic_F77='-pic'
14710      lt_prog_compiler_static_F77='-Bstatic'
14711      ;;
14712
14713    *)
14714      lt_prog_compiler_can_build_shared_F77=no
14715      ;;
14716    esac
14717  fi
14718
14719{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14720echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14721
14722#
14723# Check to make sure the PIC flag actually works.
14724#
14725if test -n "$lt_prog_compiler_pic_F77"; then
14726
14727{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14728echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14729if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14730  echo $ECHO_N "(cached) $ECHO_C" >&6
14731else
14732  lt_cv_prog_compiler_pic_works_F77=no
14733  ac_outfile=conftest.$ac_objext
14734   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14735   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14736   # Insert the option either (1) after the last *FLAGS variable, or
14737   # (2) before a word containing "conftest.", or (3) at the end.
14738   # Note that $ac_compile itself does not contain backslashes and begins
14739   # with a dollar sign (not a hyphen), so the echo should work correctly.
14740   # The option is referenced via a variable to avoid confusing sed.
14741   lt_compile=`echo "$ac_compile" | $SED \
14742   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14743   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14744   -e 's:$: $lt_compiler_flag:'`
14745   (eval echo "\"\$as_me:14745: $lt_compile\"" >&5)
14746   (eval "$lt_compile" 2>conftest.err)
14747   ac_status=$?
14748   cat conftest.err >&5
14749   echo "$as_me:14749: \$? = $ac_status" >&5
14750   if (exit $ac_status) && test -s "$ac_outfile"; then
14751     # The compiler can only warn and ignore the option if not recognized
14752     # So say no if there are warnings other than the usual output.
14753     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14754     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14755     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14756       lt_cv_prog_compiler_pic_works_F77=yes
14757     fi
14758   fi
14759   $rm conftest*
14760
14761fi
14762{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14763echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14764
14765if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14766    case $lt_prog_compiler_pic_F77 in
14767     "" | " "*) ;;
14768     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14769     esac
14770else
14771    lt_prog_compiler_pic_F77=
14772     lt_prog_compiler_can_build_shared_F77=no
14773fi
14774
14775fi
14776case $host_os in
14777  # For platforms which do not support PIC, -DPIC is meaningless:
14778  *djgpp*)
14779    lt_prog_compiler_pic_F77=
14780    ;;
14781  *)
14782    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14783    ;;
14784esac
14785
14786#
14787# Check to make sure the static flag actually works.
14788#
14789wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14790{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14791echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14792if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14793  echo $ECHO_N "(cached) $ECHO_C" >&6
14794else
14795  lt_cv_prog_compiler_static_works_F77=no
14796   save_LDFLAGS="$LDFLAGS"
14797   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14798   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14799   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14800     # The linker can only warn and ignore the option if not recognized
14801     # So say no if there are warnings
14802     if test -s conftest.err; then
14803       # Append any errors to the config.log.
14804       cat conftest.err 1>&5
14805       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14806       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14807       if diff conftest.exp conftest.er2 >/dev/null; then
14808         lt_cv_prog_compiler_static_works_F77=yes
14809       fi
14810     else
14811       lt_cv_prog_compiler_static_works_F77=yes
14812     fi
14813   fi
14814   $rm -r conftest*
14815   LDFLAGS="$save_LDFLAGS"
14816
14817fi
14818{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14819echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14820
14821if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14822    :
14823else
14824    lt_prog_compiler_static_F77=
14825fi
14826
14827
14828{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14829echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14830if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14831  echo $ECHO_N "(cached) $ECHO_C" >&6
14832else
14833  lt_cv_prog_compiler_c_o_F77=no
14834   $rm -r conftest 2>/dev/null
14835   mkdir conftest
14836   cd conftest
14837   mkdir out
14838   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14839
14840   lt_compiler_flag="-o out/conftest2.$ac_objext"
14841   # Insert the option either (1) after the last *FLAGS variable, or
14842   # (2) before a word containing "conftest.", or (3) at the end.
14843   # Note that $ac_compile itself does not contain backslashes and begins
14844   # with a dollar sign (not a hyphen), so the echo should work correctly.
14845   lt_compile=`echo "$ac_compile" | $SED \
14846   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14847   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14848   -e 's:$: $lt_compiler_flag:'`
14849   (eval echo "\"\$as_me:14849: $lt_compile\"" >&5)
14850   (eval "$lt_compile" 2>out/conftest.err)
14851   ac_status=$?
14852   cat out/conftest.err >&5
14853   echo "$as_me:14853: \$? = $ac_status" >&5
14854   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14855   then
14856     # The compiler can only warn and ignore the option if not recognized
14857     # So say no if there are warnings
14858     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14859     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14860     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14861       lt_cv_prog_compiler_c_o_F77=yes
14862     fi
14863   fi
14864   chmod u+w . 2>&5
14865   $rm conftest*
14866   # SGI C++ compiler will create directory out/ii_files/ for
14867   # template instantiation
14868   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14869   $rm out/* && rmdir out
14870   cd ..
14871   rmdir conftest
14872   $rm conftest*
14873
14874fi
14875{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14876echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14877
14878
14879hard_links="nottested"
14880if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14881  # do not overwrite the value of need_locks provided by the user
14882  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14883echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14884  hard_links=yes
14885  $rm conftest*
14886  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14887  touch conftest.a
14888  ln conftest.a conftest.b 2>&5 || hard_links=no
14889  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14890  { echo "$as_me:$LINENO: result: $hard_links" >&5
14891echo "${ECHO_T}$hard_links" >&6; }
14892  if test "$hard_links" = no; then
14893    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14894echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14895    need_locks=warn
14896  fi
14897else
14898  need_locks=no
14899fi
14900
14901{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14902echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14903
14904  runpath_var=
14905  allow_undefined_flag_F77=
14906  enable_shared_with_static_runtimes_F77=no
14907  archive_cmds_F77=
14908  archive_expsym_cmds_F77=
14909  old_archive_From_new_cmds_F77=
14910  old_archive_from_expsyms_cmds_F77=
14911  export_dynamic_flag_spec_F77=
14912  whole_archive_flag_spec_F77=
14913  thread_safe_flag_spec_F77=
14914  hardcode_libdir_flag_spec_F77=
14915  hardcode_libdir_flag_spec_ld_F77=
14916  hardcode_libdir_separator_F77=
14917  hardcode_direct_F77=no
14918  hardcode_minus_L_F77=no
14919  hardcode_shlibpath_var_F77=unsupported
14920  link_all_deplibs_F77=unknown
14921  hardcode_automatic_F77=no
14922  module_cmds_F77=
14923  module_expsym_cmds_F77=
14924  always_export_symbols_F77=no
14925  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14926  # include_expsyms should be a list of space-separated symbols to be *always*
14927  # included in the symbol list
14928  include_expsyms_F77=
14929  # exclude_expsyms can be an extended regexp of symbols to exclude
14930  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14931  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14932  # as well as any symbol that contains `d'.
14933  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14934  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14935  # platforms (ab)use it in PIC code, but their linkers get confused if
14936  # the symbol is explicitly referenced.  Since portable code cannot
14937  # rely on this symbol name, it's probably fine to never include it in
14938  # preloaded symbol tables.
14939  # Exclude shared library initialization/finalization symbols.
14940  extract_expsyms_cmds=
14941  # Just being paranoid about ensuring that cc_basename is set.
14942  for cc_temp in $compiler""; do
14943  case $cc_temp in
14944    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14945    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14946    \-*) ;;
14947    *) break;;
14948  esac
14949done
14950cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14951
14952  case $host_os in
14953  cygwin* | mingw* | pw32*)
14954    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14955    # When not using gcc, we currently assume that we are using
14956    # Microsoft Visual C++.
14957    if test "$GCC" != yes; then
14958      with_gnu_ld=no
14959    fi
14960    ;;
14961  interix*)
14962    # we just hope/assume this is gcc and not c89 (= MSVC++)
14963    with_gnu_ld=yes
14964    ;;
14965  openbsd*)
14966    with_gnu_ld=no
14967    ;;
14968  esac
14969
14970  ld_shlibs_F77=yes
14971  if test "$with_gnu_ld" = yes; then
14972    # If archive_cmds runs LD, not CC, wlarc should be empty
14973    wlarc='${wl}'
14974
14975    # Set some defaults for GNU ld with shared library support. These
14976    # are reset later if shared libraries are not supported. Putting them
14977    # here allows them to be overridden if necessary.
14978    runpath_var=LD_RUN_PATH
14979    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14980    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14981    # ancient GNU ld didn't support --whole-archive et. al.
14982    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14983	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14984      else
14985  	whole_archive_flag_spec_F77=
14986    fi
14987    supports_anon_versioning=no
14988    case `$LD -v 2>/dev/null` in
14989      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14990      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14991      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14992      *\ 2.11.*) ;; # other 2.11 versions
14993      *) supports_anon_versioning=yes ;;
14994    esac
14995
14996    # See if GNU ld supports shared libraries.
14997    case $host_os in
14998    aix[3-9]*)
14999      # On AIX/PPC, the GNU linker is very broken
15000      if test "$host_cpu" != ia64; then
15001	ld_shlibs_F77=no
15002	cat <<EOF 1>&2
15003
15004*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15005*** to be unable to reliably create shared libraries on AIX.
15006*** Therefore, libtool is disabling shared libraries support.  If you
15007*** really care for shared libraries, you may want to modify your PATH
15008*** so that a non-GNU linker is found, and then restart.
15009
15010EOF
15011      fi
15012      ;;
15013
15014    amigaos*)
15015      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)'
15016      hardcode_libdir_flag_spec_F77='-L$libdir'
15017      hardcode_minus_L_F77=yes
15018
15019      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15020      # that the semantics of dynamic libraries on AmigaOS, at least up
15021      # to version 4, is to share data among multiple programs linked
15022      # with the same dynamic library.  Since this doesn't match the
15023      # behavior of shared libraries on other platforms, we can't use
15024      # them.
15025      ld_shlibs_F77=no
15026      ;;
15027
15028    beos*)
15029      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15030	allow_undefined_flag_F77=unsupported
15031	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15032	# support --undefined.  This deserves some investigation.  FIXME
15033	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15034      else
15035	ld_shlibs_F77=no
15036      fi
15037      ;;
15038
15039    cygwin* | mingw* | pw32*)
15040      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15041      # as there is no search path for DLLs.
15042      hardcode_libdir_flag_spec_F77='-L$libdir'
15043      allow_undefined_flag_F77=unsupported
15044      always_export_symbols_F77=no
15045      enable_shared_with_static_runtimes_F77=yes
15046      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15047
15048      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15049        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15050	# If the export-symbols file already is a .def file (1st line
15051	# is EXPORTS), use it as is; otherwise, prepend...
15052	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15053	  cp $export_symbols $output_objdir/$soname.def;
15054	else
15055	  echo EXPORTS > $output_objdir/$soname.def;
15056	  cat $export_symbols >> $output_objdir/$soname.def;
15057	fi~
15058	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15059      else
15060	ld_shlibs_F77=no
15061      fi
15062      ;;
15063
15064    interix[3-9]*)
15065      hardcode_direct_F77=no
15066      hardcode_shlibpath_var_F77=no
15067      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15068      export_dynamic_flag_spec_F77='${wl}-E'
15069      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15070      # Instead, shared libraries are loaded at an image base (0x10000000 by
15071      # default) and relocated if they conflict, which is a slow very memory
15072      # consuming and fragmenting process.  To avoid this, we pick a random,
15073      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15074      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15075      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'
15076      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'
15077      ;;
15078
15079    gnu* | linux* | k*bsd*-gnu)
15080      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15081	tmp_addflag=
15082	case $cc_basename,$host_cpu in
15083	pgcc*)				# Portland Group C compiler
15084	  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'
15085	  tmp_addflag=' $pic_flag'
15086	  ;;
15087	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15088	  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'
15089	  tmp_addflag=' $pic_flag -Mnomain' ;;
15090	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15091	  tmp_addflag=' -i_dynamic' ;;
15092	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15093	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15094	ifc* | ifort*)			# Intel Fortran compiler
15095	  tmp_addflag=' -nofor_main' ;;
15096	esac
15097	case `$CC -V 2>&1 | sed 5q` in
15098	*Sun\ C*)			# Sun C 5.9
15099	  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'
15100	  tmp_sharedflag='-G' ;;
15101	*Sun\ F*)			# Sun Fortran 8.3
15102	  tmp_sharedflag='-G' ;;
15103	*)
15104	  tmp_sharedflag='-shared' ;;
15105	esac
15106	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15107
15108	if test $supports_anon_versioning = yes; then
15109	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15110  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15111  $echo "local: *; };" >> $output_objdir/$libname.ver~
15112	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15113	fi
15114	link_all_deplibs_F77=no
15115      else
15116	ld_shlibs_F77=no
15117      fi
15118      ;;
15119
15120    netbsd* | netbsdelf*-gnu)
15121      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15122	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15123	wlarc=
15124      else
15125	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15126	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15127      fi
15128      ;;
15129
15130    solaris*)
15131      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15132	ld_shlibs_F77=no
15133	cat <<EOF 1>&2
15134
15135*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15136*** create shared libraries on Solaris systems.  Therefore, libtool
15137*** is disabling shared libraries support.  We urge you to upgrade GNU
15138*** binutils to release 2.9.1 or newer.  Another option is to modify
15139*** your PATH or compiler configuration so that the native linker is
15140*** used, and then restart.
15141
15142EOF
15143      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15144	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15145	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15146      else
15147	ld_shlibs_F77=no
15148      fi
15149      ;;
15150
15151    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15152      case `$LD -v 2>&1` in
15153        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15154	ld_shlibs_F77=no
15155	cat <<_LT_EOF 1>&2
15156
15157*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15158*** reliably create shared libraries on SCO systems.  Therefore, libtool
15159*** is disabling shared libraries support.  We urge you to upgrade GNU
15160*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15161*** your PATH or compiler configuration so that the native linker is
15162*** used, and then restart.
15163
15164_LT_EOF
15165	;;
15166	*)
15167	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15168	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15169	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15170	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15171	  else
15172	    ld_shlibs_F77=no
15173	  fi
15174	;;
15175      esac
15176      ;;
15177
15178    sunos4*)
15179      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15180      wlarc=
15181      hardcode_direct_F77=yes
15182      hardcode_shlibpath_var_F77=no
15183      ;;
15184
15185    *)
15186      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15187	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15188	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15189      else
15190	ld_shlibs_F77=no
15191      fi
15192      ;;
15193    esac
15194
15195    if test "$ld_shlibs_F77" = no; then
15196      runpath_var=
15197      hardcode_libdir_flag_spec_F77=
15198      export_dynamic_flag_spec_F77=
15199      whole_archive_flag_spec_F77=
15200    fi
15201  else
15202    # PORTME fill in a description of your system's linker (not GNU ld)
15203    case $host_os in
15204    aix3*)
15205      allow_undefined_flag_F77=unsupported
15206      always_export_symbols_F77=yes
15207      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'
15208      # Note: this linker hardcodes the directories in LIBPATH if there
15209      # are no directories specified by -L.
15210      hardcode_minus_L_F77=yes
15211      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15212	# Neither direct hardcoding nor static linking is supported with a
15213	# broken collect2.
15214	hardcode_direct_F77=unsupported
15215      fi
15216      ;;
15217
15218    aix[4-9]*)
15219      if test "$host_cpu" = ia64; then
15220	# On IA64, the linker does run time linking by default, so we don't
15221	# have to do anything special.
15222	aix_use_runtimelinking=no
15223	exp_sym_flag='-Bexport'
15224	no_entry_flag=""
15225      else
15226	# If we're using GNU nm, then we don't want the "-C" option.
15227	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15228	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15229	  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'
15230	else
15231	  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'
15232	fi
15233	aix_use_runtimelinking=no
15234
15235	# Test if we are trying to use run time linking or normal
15236	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15237	# need to do runtime linking.
15238	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15239	  for ld_flag in $LDFLAGS; do
15240  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15241  	    aix_use_runtimelinking=yes
15242  	    break
15243  	  fi
15244	  done
15245	  ;;
15246	esac
15247
15248	exp_sym_flag='-bexport'
15249	no_entry_flag='-bnoentry'
15250      fi
15251
15252      # When large executables or shared objects are built, AIX ld can
15253      # have problems creating the table of contents.  If linking a library
15254      # or program results in "error TOC overflow" add -mminimal-toc to
15255      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15256      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15257
15258      archive_cmds_F77=''
15259      hardcode_direct_F77=yes
15260      hardcode_libdir_separator_F77=':'
15261      link_all_deplibs_F77=yes
15262
15263      if test "$GCC" = yes; then
15264	case $host_os in aix4.[012]|aix4.[012].*)
15265	# We only want to do this on AIX 4.2 and lower, the check
15266	# below for broken collect2 doesn't work under 4.3+
15267	  collect2name=`${CC} -print-prog-name=collect2`
15268	  if test -f "$collect2name" && \
15269  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15270	  then
15271  	  # We have reworked collect2
15272  	  :
15273	  else
15274  	  # We have old collect2
15275  	  hardcode_direct_F77=unsupported
15276  	  # It fails to find uninstalled libraries when the uninstalled
15277  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15278  	  # to unsupported forces relinking
15279  	  hardcode_minus_L_F77=yes
15280  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15281  	  hardcode_libdir_separator_F77=
15282	  fi
15283	  ;;
15284	esac
15285	shared_flag='-shared'
15286	if test "$aix_use_runtimelinking" = yes; then
15287	  shared_flag="$shared_flag "'${wl}-G'
15288	fi
15289      else
15290	# not using gcc
15291	if test "$host_cpu" = ia64; then
15292  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15293  	# chokes on -Wl,-G. The following line is correct:
15294	  shared_flag='-G'
15295	else
15296	  if test "$aix_use_runtimelinking" = yes; then
15297	    shared_flag='${wl}-G'
15298	  else
15299	    shared_flag='${wl}-bM:SRE'
15300	  fi
15301	fi
15302      fi
15303
15304      # It seems that -bexpall does not export symbols beginning with
15305      # underscore (_), so it is better to generate a list of symbols to export.
15306      always_export_symbols_F77=yes
15307      if test "$aix_use_runtimelinking" = yes; then
15308	# Warning - without using the other runtime loading flags (-brtl),
15309	# -berok will link without error, but may produce a broken library.
15310	allow_undefined_flag_F77='-berok'
15311       # Determine the default libpath from the value encoded in an empty executable.
15312       cat >conftest.$ac_ext <<_ACEOF
15313      program main
15314
15315      end
15316_ACEOF
15317rm -f conftest.$ac_objext conftest$ac_exeext
15318if { (ac_try="$ac_link"
15319case "(($ac_try" in
15320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15321  *) ac_try_echo=$ac_try;;
15322esac
15323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15324  (eval "$ac_link") 2>conftest.er1
15325  ac_status=$?
15326  grep -v '^ *+' conftest.er1 >conftest.err
15327  rm -f conftest.er1
15328  cat conftest.err >&5
15329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330  (exit $ac_status); } && {
15331	 test -z "$ac_f77_werror_flag" ||
15332	 test ! -s conftest.err
15333       } && test -s conftest$ac_exeext &&
15334       $as_test_x conftest$ac_exeext; then
15335
15336lt_aix_libpath_sed='
15337    /Import File Strings/,/^$/ {
15338	/^0/ {
15339	    s/^0  *\(.*\)$/\1/
15340	    p
15341	}
15342    }'
15343aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15344# Check for a 64-bit object if we didn't find anything.
15345if test -z "$aix_libpath"; then
15346  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15347fi
15348else
15349  echo "$as_me: failed program was:" >&5
15350sed 's/^/| /' conftest.$ac_ext >&5
15351
15352
15353fi
15354
15355rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15356      conftest$ac_exeext conftest.$ac_ext
15357if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15358
15359       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15360	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"
15361       else
15362	if test "$host_cpu" = ia64; then
15363	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15364	  allow_undefined_flag_F77="-z nodefs"
15365	  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"
15366	else
15367	 # Determine the default libpath from the value encoded in an empty executable.
15368	 cat >conftest.$ac_ext <<_ACEOF
15369      program main
15370
15371      end
15372_ACEOF
15373rm -f conftest.$ac_objext conftest$ac_exeext
15374if { (ac_try="$ac_link"
15375case "(($ac_try" in
15376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377  *) ac_try_echo=$ac_try;;
15378esac
15379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380  (eval "$ac_link") 2>conftest.er1
15381  ac_status=$?
15382  grep -v '^ *+' conftest.er1 >conftest.err
15383  rm -f conftest.er1
15384  cat conftest.err >&5
15385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386  (exit $ac_status); } && {
15387	 test -z "$ac_f77_werror_flag" ||
15388	 test ! -s conftest.err
15389       } && test -s conftest$ac_exeext &&
15390       $as_test_x conftest$ac_exeext; then
15391
15392lt_aix_libpath_sed='
15393    /Import File Strings/,/^$/ {
15394	/^0/ {
15395	    s/^0  *\(.*\)$/\1/
15396	    p
15397	}
15398    }'
15399aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15400# Check for a 64-bit object if we didn't find anything.
15401if test -z "$aix_libpath"; then
15402  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15403fi
15404else
15405  echo "$as_me: failed program was:" >&5
15406sed 's/^/| /' conftest.$ac_ext >&5
15407
15408
15409fi
15410
15411rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15412      conftest$ac_exeext conftest.$ac_ext
15413if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15414
15415	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15416	  # Warning - without using the other run time loading flags,
15417	  # -berok will link without error, but may produce a broken library.
15418	  no_undefined_flag_F77=' ${wl}-bernotok'
15419	  allow_undefined_flag_F77=' ${wl}-berok'
15420	  # Exported symbols can be pulled into shared objects from archives
15421	  whole_archive_flag_spec_F77='$convenience'
15422	  archive_cmds_need_lc_F77=yes
15423	  # This is similar to how AIX traditionally builds its shared libraries.
15424	  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'
15425	fi
15426      fi
15427      ;;
15428
15429    amigaos*)
15430      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)'
15431      hardcode_libdir_flag_spec_F77='-L$libdir'
15432      hardcode_minus_L_F77=yes
15433      # see comment about different semantics on the GNU ld section
15434      ld_shlibs_F77=no
15435      ;;
15436
15437    bsdi[45]*)
15438      export_dynamic_flag_spec_F77=-rdynamic
15439      ;;
15440
15441    cygwin* | mingw* | pw32*)
15442      # When not using gcc, we currently assume that we are using
15443      # Microsoft Visual C++.
15444      # hardcode_libdir_flag_spec is actually meaningless, as there is
15445      # no search path for DLLs.
15446      hardcode_libdir_flag_spec_F77=' '
15447      allow_undefined_flag_F77=unsupported
15448      # Tell ltmain to make .lib files, not .a files.
15449      libext=lib
15450      # Tell ltmain to make .dll files, not .so files.
15451      shrext_cmds=".dll"
15452      # FIXME: Setting linknames here is a bad hack.
15453      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15454      # The linker will automatically build a .lib file if we build a DLL.
15455      old_archive_From_new_cmds_F77='true'
15456      # FIXME: Should let the user specify the lib program.
15457      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15458      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15459      enable_shared_with_static_runtimes_F77=yes
15460      ;;
15461
15462    darwin* | rhapsody*)
15463      case $host_os in
15464        rhapsody* | darwin1.[012])
15465         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15466         ;;
15467       *) # Darwin 1.3 on
15468         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15469           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15470         else
15471           case ${MACOSX_DEPLOYMENT_TARGET} in
15472             10.[012])
15473               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15474               ;;
15475             10.*)
15476               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15477               ;;
15478           esac
15479         fi
15480         ;;
15481      esac
15482      archive_cmds_need_lc_F77=no
15483      hardcode_direct_F77=no
15484      hardcode_automatic_F77=yes
15485      hardcode_shlibpath_var_F77=unsupported
15486      whole_archive_flag_spec_F77=''
15487      link_all_deplibs_F77=yes
15488    if test "$GCC" = yes ; then
15489    	output_verbose_link_cmd='echo'
15490        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}"
15491        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15492        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}"
15493        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}"
15494    else
15495      case $cc_basename in
15496        xlc*)
15497         output_verbose_link_cmd='echo'
15498         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15499         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15500          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15501         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}'
15502          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}'
15503          ;;
15504       *)
15505         ld_shlibs_F77=no
15506          ;;
15507      esac
15508    fi
15509      ;;
15510
15511    dgux*)
15512      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15513      hardcode_libdir_flag_spec_F77='-L$libdir'
15514      hardcode_shlibpath_var_F77=no
15515      ;;
15516
15517    freebsd1*)
15518      ld_shlibs_F77=no
15519      ;;
15520
15521    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15522    # support.  Future versions do this automatically, but an explicit c++rt0.o
15523    # does not break anything, and helps significantly (at the cost of a little
15524    # extra space).
15525    freebsd2.2*)
15526      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15527      hardcode_libdir_flag_spec_F77='-R$libdir'
15528      hardcode_direct_F77=yes
15529      hardcode_shlibpath_var_F77=no
15530      ;;
15531
15532    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15533    freebsd2*)
15534      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15535      hardcode_direct_F77=yes
15536      hardcode_minus_L_F77=yes
15537      hardcode_shlibpath_var_F77=no
15538      ;;
15539
15540    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15541    freebsd* | dragonfly*)
15542      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15543      hardcode_libdir_flag_spec_F77='-R$libdir'
15544      hardcode_direct_F77=yes
15545      hardcode_shlibpath_var_F77=no
15546      ;;
15547
15548    hpux9*)
15549      if test "$GCC" = yes; then
15550	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'
15551      else
15552	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'
15553      fi
15554      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15555      hardcode_libdir_separator_F77=:
15556      hardcode_direct_F77=yes
15557
15558      # hardcode_minus_L: Not really in the search PATH,
15559      # but as the default location of the library.
15560      hardcode_minus_L_F77=yes
15561      export_dynamic_flag_spec_F77='${wl}-E'
15562      ;;
15563
15564    hpux10*)
15565      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15566	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15567      else
15568	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15569      fi
15570      if test "$with_gnu_ld" = no; then
15571	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15572	hardcode_libdir_separator_F77=:
15573
15574	hardcode_direct_F77=yes
15575	export_dynamic_flag_spec_F77='${wl}-E'
15576
15577	# hardcode_minus_L: Not really in the search PATH,
15578	# but as the default location of the library.
15579	hardcode_minus_L_F77=yes
15580      fi
15581      ;;
15582
15583    hpux11*)
15584      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15585	case $host_cpu in
15586	hppa*64*)
15587	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15588	  ;;
15589	ia64*)
15590	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15591	  ;;
15592	*)
15593	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15594	  ;;
15595	esac
15596      else
15597	case $host_cpu in
15598	hppa*64*)
15599	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15600	  ;;
15601	ia64*)
15602	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15603	  ;;
15604	*)
15605	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15606	  ;;
15607	esac
15608      fi
15609      if test "$with_gnu_ld" = no; then
15610	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15611	hardcode_libdir_separator_F77=:
15612
15613	case $host_cpu in
15614	hppa*64*|ia64*)
15615	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15616	  hardcode_direct_F77=no
15617	  hardcode_shlibpath_var_F77=no
15618	  ;;
15619	*)
15620	  hardcode_direct_F77=yes
15621	  export_dynamic_flag_spec_F77='${wl}-E'
15622
15623	  # hardcode_minus_L: Not really in the search PATH,
15624	  # but as the default location of the library.
15625	  hardcode_minus_L_F77=yes
15626	  ;;
15627	esac
15628      fi
15629      ;;
15630
15631    irix5* | irix6* | nonstopux*)
15632      if test "$GCC" = yes; then
15633	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'
15634      else
15635	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'
15636	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15637      fi
15638      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15639      hardcode_libdir_separator_F77=:
15640      link_all_deplibs_F77=yes
15641      ;;
15642
15643    netbsd* | netbsdelf*-gnu)
15644      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15645	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15646      else
15647	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15648      fi
15649      hardcode_libdir_flag_spec_F77='-R$libdir'
15650      hardcode_direct_F77=yes
15651      hardcode_shlibpath_var_F77=no
15652      ;;
15653
15654    newsos6)
15655      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15656      hardcode_direct_F77=yes
15657      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15658      hardcode_libdir_separator_F77=:
15659      hardcode_shlibpath_var_F77=no
15660      ;;
15661
15662    openbsd*)
15663      if test -f /usr/libexec/ld.so; then
15664	hardcode_direct_F77=yes
15665	hardcode_shlibpath_var_F77=no
15666	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15667	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15668	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15669	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15670	  export_dynamic_flag_spec_F77='${wl}-E'
15671	else
15672	  case $host_os in
15673	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15674	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15675	     hardcode_libdir_flag_spec_F77='-R$libdir'
15676	     ;;
15677	   *)
15678	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15679	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15680	     ;;
15681	  esac
15682        fi
15683      else
15684	ld_shlibs_F77=no
15685      fi
15686      ;;
15687
15688    os2*)
15689      hardcode_libdir_flag_spec_F77='-L$libdir'
15690      hardcode_minus_L_F77=yes
15691      allow_undefined_flag_F77=unsupported
15692      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'
15693      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15694      ;;
15695
15696    osf3*)
15697      if test "$GCC" = yes; then
15698	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15699	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'
15700      else
15701	allow_undefined_flag_F77=' -expect_unresolved \*'
15702	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'
15703      fi
15704      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15705      hardcode_libdir_separator_F77=:
15706      ;;
15707
15708    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15709      if test "$GCC" = yes; then
15710	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15711	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'
15712	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15713      else
15714	allow_undefined_flag_F77=' -expect_unresolved \*'
15715	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'
15716	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~
15717	$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'
15718
15719	# Both c and cxx compiler support -rpath directly
15720	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15721      fi
15722      hardcode_libdir_separator_F77=:
15723      ;;
15724
15725    solaris*)
15726      no_undefined_flag_F77=' -z text'
15727      if test "$GCC" = yes; then
15728	wlarc='${wl}'
15729	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15730	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15731	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15732      else
15733	wlarc=''
15734	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15735	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15736  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15737      fi
15738      hardcode_libdir_flag_spec_F77='-R$libdir'
15739      hardcode_shlibpath_var_F77=no
15740      case $host_os in
15741      solaris2.[0-5] | solaris2.[0-5].*) ;;
15742      *)
15743	# The compiler driver will combine and reorder linker options,
15744	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15745	# but is careful enough not to reorder.
15746 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15747	if test "$GCC" = yes; then
15748	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15749	else
15750	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15751	fi
15752	;;
15753      esac
15754      link_all_deplibs_F77=yes
15755      ;;
15756
15757    sunos4*)
15758      if test "x$host_vendor" = xsequent; then
15759	# Use $CC to link under sequent, because it throws in some extra .o
15760	# files that make .init and .fini sections work.
15761	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15762      else
15763	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15764      fi
15765      hardcode_libdir_flag_spec_F77='-L$libdir'
15766      hardcode_direct_F77=yes
15767      hardcode_minus_L_F77=yes
15768      hardcode_shlibpath_var_F77=no
15769      ;;
15770
15771    sysv4)
15772      case $host_vendor in
15773	sni)
15774	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15775	  hardcode_direct_F77=yes # is this really true???
15776	;;
15777	siemens)
15778	  ## LD is ld it makes a PLAMLIB
15779	  ## CC just makes a GrossModule.
15780	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15781	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15782	  hardcode_direct_F77=no
15783        ;;
15784	motorola)
15785	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15786	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15787	;;
15788      esac
15789      runpath_var='LD_RUN_PATH'
15790      hardcode_shlibpath_var_F77=no
15791      ;;
15792
15793    sysv4.3*)
15794      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15795      hardcode_shlibpath_var_F77=no
15796      export_dynamic_flag_spec_F77='-Bexport'
15797      ;;
15798
15799    sysv4*MP*)
15800      if test -d /usr/nec; then
15801	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15802	hardcode_shlibpath_var_F77=no
15803	runpath_var=LD_RUN_PATH
15804	hardcode_runpath_var=yes
15805	ld_shlibs_F77=yes
15806      fi
15807      ;;
15808
15809    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15810      no_undefined_flag_F77='${wl}-z,text'
15811      archive_cmds_need_lc_F77=no
15812      hardcode_shlibpath_var_F77=no
15813      runpath_var='LD_RUN_PATH'
15814
15815      if test "$GCC" = yes; then
15816	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15817	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15818      else
15819	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15820	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15821      fi
15822      ;;
15823
15824    sysv5* | sco3.2v5* | sco5v6*)
15825      # Note: We can NOT use -z defs as we might desire, because we do not
15826      # link with -lc, and that would cause any symbols used from libc to
15827      # always be unresolved, which means just about no library would
15828      # ever link correctly.  If we're not using GNU ld we use -z text
15829      # though, which does catch some bad symbols but isn't as heavy-handed
15830      # as -z defs.
15831      no_undefined_flag_F77='${wl}-z,text'
15832      allow_undefined_flag_F77='${wl}-z,nodefs'
15833      archive_cmds_need_lc_F77=no
15834      hardcode_shlibpath_var_F77=no
15835      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15836      hardcode_libdir_separator_F77=':'
15837      link_all_deplibs_F77=yes
15838      export_dynamic_flag_spec_F77='${wl}-Bexport'
15839      runpath_var='LD_RUN_PATH'
15840
15841      if test "$GCC" = yes; then
15842	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15843	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15844      else
15845	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15846	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15847      fi
15848      ;;
15849
15850    uts4*)
15851      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15852      hardcode_libdir_flag_spec_F77='-L$libdir'
15853      hardcode_shlibpath_var_F77=no
15854      ;;
15855
15856    *)
15857      ld_shlibs_F77=no
15858      ;;
15859    esac
15860  fi
15861
15862{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15863echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15864test "$ld_shlibs_F77" = no && can_build_shared=no
15865
15866#
15867# Do we need to explicitly link libc?
15868#
15869case "x$archive_cmds_need_lc_F77" in
15870x|xyes)
15871  # Assume -lc should be added
15872  archive_cmds_need_lc_F77=yes
15873
15874  if test "$enable_shared" = yes && test "$GCC" = yes; then
15875    case $archive_cmds_F77 in
15876    *'~'*)
15877      # FIXME: we may have to deal with multi-command sequences.
15878      ;;
15879    '$CC '*)
15880      # Test whether the compiler implicitly links with -lc since on some
15881      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15882      # to ld, don't add -lc before -lgcc.
15883      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15884echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15885      $rm conftest*
15886      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15887
15888      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15889  (eval $ac_compile) 2>&5
15890  ac_status=$?
15891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892  (exit $ac_status); } 2>conftest.err; then
15893        soname=conftest
15894        lib=conftest
15895        libobjs=conftest.$ac_objext
15896        deplibs=
15897        wl=$lt_prog_compiler_wl_F77
15898	pic_flag=$lt_prog_compiler_pic_F77
15899        compiler_flags=-v
15900        linker_flags=-v
15901        verstring=
15902        output_objdir=.
15903        libname=conftest
15904        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15905        allow_undefined_flag_F77=
15906        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15907  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15908  ac_status=$?
15909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910  (exit $ac_status); }
15911        then
15912	  archive_cmds_need_lc_F77=no
15913        else
15914	  archive_cmds_need_lc_F77=yes
15915        fi
15916        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15917      else
15918        cat conftest.err 1>&5
15919      fi
15920      $rm conftest*
15921      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15922echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15923      ;;
15924    esac
15925  fi
15926  ;;
15927esac
15928
15929{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15930echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15931library_names_spec=
15932libname_spec='lib$name'
15933soname_spec=
15934shrext_cmds=".so"
15935postinstall_cmds=
15936postuninstall_cmds=
15937finish_cmds=
15938finish_eval=
15939shlibpath_var=
15940shlibpath_overrides_runpath=unknown
15941version_type=none
15942dynamic_linker="$host_os ld.so"
15943sys_lib_dlsearch_path_spec="/lib /usr/lib"
15944
15945need_lib_prefix=unknown
15946hardcode_into_libs=no
15947
15948# when you set need_version to no, make sure it does not cause -set_version
15949# flags to be left without arguments
15950need_version=unknown
15951
15952case $host_os in
15953aix3*)
15954  version_type=linux
15955  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15956  shlibpath_var=LIBPATH
15957
15958  # AIX 3 has no versioning support, so we append a major version to the name.
15959  soname_spec='${libname}${release}${shared_ext}$major'
15960  ;;
15961
15962aix[4-9]*)
15963  version_type=linux
15964  need_lib_prefix=no
15965  need_version=no
15966  hardcode_into_libs=yes
15967  if test "$host_cpu" = ia64; then
15968    # AIX 5 supports IA64
15969    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15970    shlibpath_var=LD_LIBRARY_PATH
15971  else
15972    # With GCC up to 2.95.x, collect2 would create an import file
15973    # for dependence libraries.  The import file would start with
15974    # the line `#! .'.  This would cause the generated library to
15975    # depend on `.', always an invalid library.  This was fixed in
15976    # development snapshots of GCC prior to 3.0.
15977    case $host_os in
15978      aix4 | aix4.[01] | aix4.[01].*)
15979      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15980	   echo ' yes '
15981	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15982	:
15983      else
15984	can_build_shared=no
15985      fi
15986      ;;
15987    esac
15988    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15989    # soname into executable. Probably we can add versioning support to
15990    # collect2, so additional links can be useful in future.
15991    if test "$aix_use_runtimelinking" = yes; then
15992      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15993      # instead of lib<name>.a to let people know that these are not
15994      # typical AIX shared libraries.
15995      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15996    else
15997      # We preserve .a as extension for shared libraries through AIX4.2
15998      # and later when we are not doing run time linking.
15999      library_names_spec='${libname}${release}.a $libname.a'
16000      soname_spec='${libname}${release}${shared_ext}$major'
16001    fi
16002    shlibpath_var=LIBPATH
16003  fi
16004  ;;
16005
16006amigaos*)
16007  library_names_spec='$libname.ixlibrary $libname.a'
16008  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16009  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'
16010  ;;
16011
16012beos*)
16013  library_names_spec='${libname}${shared_ext}'
16014  dynamic_linker="$host_os ld.so"
16015  shlibpath_var=LIBRARY_PATH
16016  ;;
16017
16018bsdi[45]*)
16019  version_type=linux
16020  need_version=no
16021  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16022  soname_spec='${libname}${release}${shared_ext}$major'
16023  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16024  shlibpath_var=LD_LIBRARY_PATH
16025  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16026  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16027  # the default ld.so.conf also contains /usr/contrib/lib and
16028  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16029  # libtool to hard-code these into programs
16030  ;;
16031
16032cygwin* | mingw* | pw32*)
16033  version_type=windows
16034  shrext_cmds=".dll"
16035  need_version=no
16036  need_lib_prefix=no
16037
16038  case $GCC,$host_os in
16039  yes,cygwin* | yes,mingw* | yes,pw32*)
16040    library_names_spec='$libname.dll.a'
16041    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16042    postinstall_cmds='base_file=`basename \${file}`~
16043      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16044      dldir=$destdir/`dirname \$dlpath`~
16045      test -d \$dldir || mkdir -p \$dldir~
16046      $install_prog $dir/$dlname \$dldir/$dlname~
16047      chmod a+x \$dldir/$dlname'
16048    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16049      dlpath=$dir/\$dldll~
16050       $rm \$dlpath'
16051    shlibpath_overrides_runpath=yes
16052
16053    case $host_os in
16054    cygwin*)
16055      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16056      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16057      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16058      ;;
16059    mingw*)
16060      # MinGW DLLs use traditional 'lib' prefix
16061      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16062      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16063      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16064        # It is most probably a Windows format PATH printed by
16065        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16066        # path with ; separators, and with drive letters. We can handle the
16067        # drive letters (cygwin fileutils understands them), so leave them,
16068        # especially as we might pass files found there to a mingw objdump,
16069        # which wouldn't understand a cygwinified path. Ahh.
16070        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16071      else
16072        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16073      fi
16074      ;;
16075    pw32*)
16076      # pw32 DLLs use 'pw' prefix rather than 'lib'
16077      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16078      ;;
16079    esac
16080    ;;
16081
16082  *)
16083    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16084    ;;
16085  esac
16086  dynamic_linker='Win32 ld.exe'
16087  # FIXME: first we should search . and the directory the executable is in
16088  shlibpath_var=PATH
16089  ;;
16090
16091darwin* | rhapsody*)
16092  dynamic_linker="$host_os dyld"
16093  version_type=darwin
16094  need_lib_prefix=no
16095  need_version=no
16096  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16097  soname_spec='${libname}${release}${major}$shared_ext'
16098  shlibpath_overrides_runpath=yes
16099  shlibpath_var=DYLD_LIBRARY_PATH
16100  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16101
16102  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16103  ;;
16104
16105dgux*)
16106  version_type=linux
16107  need_lib_prefix=no
16108  need_version=no
16109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16110  soname_spec='${libname}${release}${shared_ext}$major'
16111  shlibpath_var=LD_LIBRARY_PATH
16112  ;;
16113
16114freebsd1*)
16115  dynamic_linker=no
16116  ;;
16117
16118freebsd* | dragonfly*)
16119  # DragonFly does not have aout.  When/if they implement a new
16120  # versioning mechanism, adjust this.
16121  if test -x /usr/bin/objformat; then
16122    objformat=`/usr/bin/objformat`
16123  else
16124    case $host_os in
16125    freebsd[123]*) objformat=aout ;;
16126    *) objformat=elf ;;
16127    esac
16128  fi
16129  version_type=freebsd-$objformat
16130  case $version_type in
16131    freebsd-elf*)
16132      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16133      need_version=no
16134      need_lib_prefix=no
16135      ;;
16136    freebsd-*)
16137      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16138      need_version=yes
16139      ;;
16140  esac
16141  shlibpath_var=LD_LIBRARY_PATH
16142  case $host_os in
16143  freebsd2*)
16144    shlibpath_overrides_runpath=yes
16145    ;;
16146  freebsd3.[01]* | freebsdelf3.[01]*)
16147    shlibpath_overrides_runpath=yes
16148    hardcode_into_libs=yes
16149    ;;
16150  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16151  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16152    shlibpath_overrides_runpath=no
16153    hardcode_into_libs=yes
16154    ;;
16155  *) # from 4.6 on, and DragonFly
16156    shlibpath_overrides_runpath=yes
16157    hardcode_into_libs=yes
16158    ;;
16159  esac
16160  ;;
16161
16162gnu*)
16163  version_type=linux
16164  need_lib_prefix=no
16165  need_version=no
16166  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16167  soname_spec='${libname}${release}${shared_ext}$major'
16168  shlibpath_var=LD_LIBRARY_PATH
16169  hardcode_into_libs=yes
16170  ;;
16171
16172hpux9* | hpux10* | hpux11*)
16173  # Give a soname corresponding to the major version so that dld.sl refuses to
16174  # link against other versions.
16175  version_type=sunos
16176  need_lib_prefix=no
16177  need_version=no
16178  case $host_cpu in
16179  ia64*)
16180    shrext_cmds='.so'
16181    hardcode_into_libs=yes
16182    dynamic_linker="$host_os dld.so"
16183    shlibpath_var=LD_LIBRARY_PATH
16184    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16185    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16186    soname_spec='${libname}${release}${shared_ext}$major'
16187    if test "X$HPUX_IA64_MODE" = X32; then
16188      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16189    else
16190      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16191    fi
16192    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16193    ;;
16194   hppa*64*)
16195     shrext_cmds='.sl'
16196     hardcode_into_libs=yes
16197     dynamic_linker="$host_os dld.sl"
16198     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16199     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16200     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16201     soname_spec='${libname}${release}${shared_ext}$major'
16202     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16203     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16204     ;;
16205   *)
16206    shrext_cmds='.sl'
16207    dynamic_linker="$host_os dld.sl"
16208    shlibpath_var=SHLIB_PATH
16209    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16210    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16211    soname_spec='${libname}${release}${shared_ext}$major'
16212    ;;
16213  esac
16214  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16215  postinstall_cmds='chmod 555 $lib'
16216  ;;
16217
16218interix[3-9]*)
16219  version_type=linux
16220  need_lib_prefix=no
16221  need_version=no
16222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16223  soname_spec='${libname}${release}${shared_ext}$major'
16224  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16225  shlibpath_var=LD_LIBRARY_PATH
16226  shlibpath_overrides_runpath=no
16227  hardcode_into_libs=yes
16228  ;;
16229
16230irix5* | irix6* | nonstopux*)
16231  case $host_os in
16232    nonstopux*) version_type=nonstopux ;;
16233    *)
16234	if test "$lt_cv_prog_gnu_ld" = yes; then
16235		version_type=linux
16236	else
16237		version_type=irix
16238	fi ;;
16239  esac
16240  need_lib_prefix=no
16241  need_version=no
16242  soname_spec='${libname}${release}${shared_ext}$major'
16243  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16244  case $host_os in
16245  irix5* | nonstopux*)
16246    libsuff= shlibsuff=
16247    ;;
16248  *)
16249    case $LD in # libtool.m4 will add one of these switches to LD
16250    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16251      libsuff= shlibsuff= libmagic=32-bit;;
16252    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16253      libsuff=32 shlibsuff=N32 libmagic=N32;;
16254    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16255      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16256    *) libsuff= shlibsuff= libmagic=never-match;;
16257    esac
16258    ;;
16259  esac
16260  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16261  shlibpath_overrides_runpath=no
16262  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16263  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16264  hardcode_into_libs=yes
16265  ;;
16266
16267# No shared lib support for Linux oldld, aout, or coff.
16268linux*oldld* | linux*aout* | linux*coff*)
16269  dynamic_linker=no
16270  ;;
16271
16272# This must be Linux ELF.
16273linux* | k*bsd*-gnu)
16274  version_type=linux
16275  need_lib_prefix=no
16276  need_version=no
16277  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16278  soname_spec='${libname}${release}${shared_ext}$major'
16279  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16280  shlibpath_var=LD_LIBRARY_PATH
16281  shlibpath_overrides_runpath=no
16282  # This implies no fast_install, which is unacceptable.
16283  # Some rework will be needed to allow for fast_install
16284  # before this can be enabled.
16285  hardcode_into_libs=yes
16286
16287  # Append ld.so.conf contents to the search path
16288  if test -f /etc/ld.so.conf; then
16289    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' ' '`
16290    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16291  fi
16292
16293  # We used to test for /lib/ld.so.1 and disable shared libraries on
16294  # powerpc, because MkLinux only supported shared libraries with the
16295  # GNU dynamic linker.  Since this was broken with cross compilers,
16296  # most powerpc-linux boxes support dynamic linking these days and
16297  # people can always --disable-shared, the test was removed, and we
16298  # assume the GNU/Linux dynamic linker is in use.
16299  dynamic_linker='GNU/Linux ld.so'
16300  ;;
16301
16302netbsdelf*-gnu)
16303  version_type=linux
16304  need_lib_prefix=no
16305  need_version=no
16306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16307  soname_spec='${libname}${release}${shared_ext}$major'
16308  shlibpath_var=LD_LIBRARY_PATH
16309  shlibpath_overrides_runpath=no
16310  hardcode_into_libs=yes
16311  dynamic_linker='NetBSD ld.elf_so'
16312  ;;
16313
16314netbsd*)
16315  version_type=sunos
16316  need_lib_prefix=no
16317  need_version=no
16318  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16319    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16320    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16321    dynamic_linker='NetBSD (a.out) ld.so'
16322  else
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    dynamic_linker='NetBSD ld.elf_so'
16326  fi
16327  shlibpath_var=LD_LIBRARY_PATH
16328  shlibpath_overrides_runpath=yes
16329  hardcode_into_libs=yes
16330  ;;
16331
16332newsos6)
16333  version_type=linux
16334  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16335  shlibpath_var=LD_LIBRARY_PATH
16336  shlibpath_overrides_runpath=yes
16337  ;;
16338
16339nto-qnx*)
16340  version_type=linux
16341  need_lib_prefix=no
16342  need_version=no
16343  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16344  soname_spec='${libname}${release}${shared_ext}$major'
16345  shlibpath_var=LD_LIBRARY_PATH
16346  shlibpath_overrides_runpath=yes
16347  ;;
16348
16349openbsd*)
16350  version_type=sunos
16351  sys_lib_dlsearch_path_spec="/usr/lib"
16352  need_lib_prefix=no
16353  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16354  case $host_os in
16355    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16356    *)                         need_version=no  ;;
16357  esac
16358  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16359  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16360  shlibpath_var=LD_LIBRARY_PATH
16361  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16362    case $host_os in
16363      openbsd2.[89] | openbsd2.[89].*)
16364	shlibpath_overrides_runpath=no
16365	;;
16366      *)
16367	shlibpath_overrides_runpath=yes
16368	;;
16369      esac
16370  else
16371    shlibpath_overrides_runpath=yes
16372  fi
16373  ;;
16374
16375os2*)
16376  libname_spec='$name'
16377  shrext_cmds=".dll"
16378  need_lib_prefix=no
16379  library_names_spec='$libname${shared_ext} $libname.a'
16380  dynamic_linker='OS/2 ld.exe'
16381  shlibpath_var=LIBPATH
16382  ;;
16383
16384osf3* | osf4* | osf5*)
16385  version_type=osf
16386  need_lib_prefix=no
16387  need_version=no
16388  soname_spec='${libname}${release}${shared_ext}$major'
16389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16390  shlibpath_var=LD_LIBRARY_PATH
16391  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16392  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16393  ;;
16394
16395rdos*)
16396  dynamic_linker=no
16397  ;;
16398
16399solaris*)
16400  version_type=linux
16401  need_lib_prefix=no
16402  need_version=no
16403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16404  soname_spec='${libname}${release}${shared_ext}$major'
16405  shlibpath_var=LD_LIBRARY_PATH
16406  shlibpath_overrides_runpath=yes
16407  hardcode_into_libs=yes
16408  # ldd complains unless libraries are executable
16409  postinstall_cmds='chmod +x $lib'
16410  ;;
16411
16412sunos4*)
16413  version_type=sunos
16414  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16415  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16416  shlibpath_var=LD_LIBRARY_PATH
16417  shlibpath_overrides_runpath=yes
16418  if test "$with_gnu_ld" = yes; then
16419    need_lib_prefix=no
16420  fi
16421  need_version=yes
16422  ;;
16423
16424sysv4 | sysv4.3*)
16425  version_type=linux
16426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16427  soname_spec='${libname}${release}${shared_ext}$major'
16428  shlibpath_var=LD_LIBRARY_PATH
16429  case $host_vendor in
16430    sni)
16431      shlibpath_overrides_runpath=no
16432      need_lib_prefix=no
16433      export_dynamic_flag_spec='${wl}-Blargedynsym'
16434      runpath_var=LD_RUN_PATH
16435      ;;
16436    siemens)
16437      need_lib_prefix=no
16438      ;;
16439    motorola)
16440      need_lib_prefix=no
16441      need_version=no
16442      shlibpath_overrides_runpath=no
16443      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16444      ;;
16445  esac
16446  ;;
16447
16448sysv4*MP*)
16449  if test -d /usr/nec ;then
16450    version_type=linux
16451    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16452    soname_spec='$libname${shared_ext}.$major'
16453    shlibpath_var=LD_LIBRARY_PATH
16454  fi
16455  ;;
16456
16457sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16458  version_type=freebsd-elf
16459  need_lib_prefix=no
16460  need_version=no
16461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16462  soname_spec='${libname}${release}${shared_ext}$major'
16463  shlibpath_var=LD_LIBRARY_PATH
16464  hardcode_into_libs=yes
16465  if test "$with_gnu_ld" = yes; then
16466    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16467    shlibpath_overrides_runpath=no
16468  else
16469    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16470    shlibpath_overrides_runpath=yes
16471    case $host_os in
16472      sco3.2v5*)
16473        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16474	;;
16475    esac
16476  fi
16477  sys_lib_dlsearch_path_spec='/usr/lib'
16478  ;;
16479
16480uts4*)
16481  version_type=linux
16482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16483  soname_spec='${libname}${release}${shared_ext}$major'
16484  shlibpath_var=LD_LIBRARY_PATH
16485  ;;
16486
16487*)
16488  dynamic_linker=no
16489  ;;
16490esac
16491{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16492echo "${ECHO_T}$dynamic_linker" >&6; }
16493test "$dynamic_linker" = no && can_build_shared=no
16494
16495if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16496  echo $ECHO_N "(cached) $ECHO_C" >&6
16497else
16498  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16499fi
16500
16501sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16502if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16503  echo $ECHO_N "(cached) $ECHO_C" >&6
16504else
16505  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16506fi
16507
16508sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16509
16510variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16511if test "$GCC" = yes; then
16512  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16513fi
16514
16515{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16516echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16517hardcode_action_F77=
16518if test -n "$hardcode_libdir_flag_spec_F77" || \
16519   test -n "$runpath_var_F77" || \
16520   test "X$hardcode_automatic_F77" = "Xyes" ; then
16521
16522  # We can hardcode non-existant directories.
16523  if test "$hardcode_direct_F77" != no &&
16524     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16525     # have to relink, otherwise we might link with an installed library
16526     # when we should be linking with a yet-to-be-installed one
16527     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16528     test "$hardcode_minus_L_F77" != no; then
16529    # Linking always hardcodes the temporary library directory.
16530    hardcode_action_F77=relink
16531  else
16532    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16533    hardcode_action_F77=immediate
16534  fi
16535else
16536  # We cannot hardcode anything, or else we can only hardcode existing
16537  # directories.
16538  hardcode_action_F77=unsupported
16539fi
16540{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16541echo "${ECHO_T}$hardcode_action_F77" >&6; }
16542
16543if test "$hardcode_action_F77" = relink; then
16544  # Fast installation is not supported
16545  enable_fast_install=no
16546elif test "$shlibpath_overrides_runpath" = yes ||
16547     test "$enable_shared" = no; then
16548  # Fast installation is not necessary
16549  enable_fast_install=needless
16550fi
16551
16552
16553# The else clause should only fire when bootstrapping the
16554# libtool distribution, otherwise you forgot to ship ltmain.sh
16555# with your package, and you will get complaints that there are
16556# no rules to generate ltmain.sh.
16557if test -f "$ltmain"; then
16558  # See if we are running on zsh, and set the options which allow our commands through
16559  # without removal of \ escapes.
16560  if test -n "${ZSH_VERSION+set}" ; then
16561    setopt NO_GLOB_SUBST
16562  fi
16563  # Now quote all the things that may contain metacharacters while being
16564  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16565  # variables and quote the copies for generation of the libtool script.
16566  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16567    SED SHELL STRIP \
16568    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16569    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16570    deplibs_check_method reload_flag reload_cmds need_locks \
16571    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16572    lt_cv_sys_global_symbol_to_c_name_address \
16573    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16574    old_postinstall_cmds old_postuninstall_cmds \
16575    compiler_F77 \
16576    CC_F77 \
16577    LD_F77 \
16578    lt_prog_compiler_wl_F77 \
16579    lt_prog_compiler_pic_F77 \
16580    lt_prog_compiler_static_F77 \
16581    lt_prog_compiler_no_builtin_flag_F77 \
16582    export_dynamic_flag_spec_F77 \
16583    thread_safe_flag_spec_F77 \
16584    whole_archive_flag_spec_F77 \
16585    enable_shared_with_static_runtimes_F77 \
16586    old_archive_cmds_F77 \
16587    old_archive_from_new_cmds_F77 \
16588    predep_objects_F77 \
16589    postdep_objects_F77 \
16590    predeps_F77 \
16591    postdeps_F77 \
16592    compiler_lib_search_path_F77 \
16593    compiler_lib_search_dirs_F77 \
16594    archive_cmds_F77 \
16595    archive_expsym_cmds_F77 \
16596    postinstall_cmds_F77 \
16597    postuninstall_cmds_F77 \
16598    old_archive_from_expsyms_cmds_F77 \
16599    allow_undefined_flag_F77 \
16600    no_undefined_flag_F77 \
16601    export_symbols_cmds_F77 \
16602    hardcode_libdir_flag_spec_F77 \
16603    hardcode_libdir_flag_spec_ld_F77 \
16604    hardcode_libdir_separator_F77 \
16605    hardcode_automatic_F77 \
16606    module_cmds_F77 \
16607    module_expsym_cmds_F77 \
16608    lt_cv_prog_compiler_c_o_F77 \
16609    fix_srcfile_path_F77 \
16610    exclude_expsyms_F77 \
16611    include_expsyms_F77; do
16612
16613    case $var in
16614    old_archive_cmds_F77 | \
16615    old_archive_from_new_cmds_F77 | \
16616    archive_cmds_F77 | \
16617    archive_expsym_cmds_F77 | \
16618    module_cmds_F77 | \
16619    module_expsym_cmds_F77 | \
16620    old_archive_from_expsyms_cmds_F77 | \
16621    export_symbols_cmds_F77 | \
16622    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16623    postinstall_cmds | postuninstall_cmds | \
16624    old_postinstall_cmds | old_postuninstall_cmds | \
16625    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16626      # Double-quote double-evaled strings.
16627      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16628      ;;
16629    *)
16630      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16631      ;;
16632    esac
16633  done
16634
16635  case $lt_echo in
16636  *'\$0 --fallback-echo"')
16637    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16638    ;;
16639  esac
16640
16641cfgfile="$ofile"
16642
16643  cat <<__EOF__ >> "$cfgfile"
16644# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16645
16646# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16647
16648# Shell to use when invoking shell scripts.
16649SHELL=$lt_SHELL
16650
16651# Whether or not to build shared libraries.
16652build_libtool_libs=$enable_shared
16653
16654# Whether or not to build static libraries.
16655build_old_libs=$enable_static
16656
16657# Whether or not to add -lc for building shared libraries.
16658build_libtool_need_lc=$archive_cmds_need_lc_F77
16659
16660# Whether or not to disallow shared libs when runtime libs are static
16661allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16662
16663# Whether or not to optimize for fast installation.
16664fast_install=$enable_fast_install
16665
16666# The host system.
16667host_alias=$host_alias
16668host=$host
16669host_os=$host_os
16670
16671# The build system.
16672build_alias=$build_alias
16673build=$build
16674build_os=$build_os
16675
16676# An echo program that does not interpret backslashes.
16677echo=$lt_echo
16678
16679# The archiver.
16680AR=$lt_AR
16681AR_FLAGS=$lt_AR_FLAGS
16682
16683# A C compiler.
16684LTCC=$lt_LTCC
16685
16686# LTCC compiler flags.
16687LTCFLAGS=$lt_LTCFLAGS
16688
16689# A language-specific compiler.
16690CC=$lt_compiler_F77
16691
16692# Is the compiler the GNU C compiler?
16693with_gcc=$GCC_F77
16694
16695# An ERE matcher.
16696EGREP=$lt_EGREP
16697
16698# The linker used to build libraries.
16699LD=$lt_LD_F77
16700
16701# Whether we need hard or soft links.
16702LN_S=$lt_LN_S
16703
16704# A BSD-compatible nm program.
16705NM=$lt_NM
16706
16707# A symbol stripping program
16708STRIP=$lt_STRIP
16709
16710# Used to examine libraries when file_magic_cmd begins "file"
16711MAGIC_CMD=$MAGIC_CMD
16712
16713# Used on cygwin: DLL creation program.
16714DLLTOOL="$DLLTOOL"
16715
16716# Used on cygwin: object dumper.
16717OBJDUMP="$OBJDUMP"
16718
16719# Used on cygwin: assembler.
16720AS="$AS"
16721
16722# The name of the directory that contains temporary libtool files.
16723objdir=$objdir
16724
16725# How to create reloadable object files.
16726reload_flag=$lt_reload_flag
16727reload_cmds=$lt_reload_cmds
16728
16729# How to pass a linker flag through the compiler.
16730wl=$lt_lt_prog_compiler_wl_F77
16731
16732# Object file suffix (normally "o").
16733objext="$ac_objext"
16734
16735# Old archive suffix (normally "a").
16736libext="$libext"
16737
16738# Shared library suffix (normally ".so").
16739shrext_cmds='$shrext_cmds'
16740
16741# Executable file suffix (normally "").
16742exeext="$exeext"
16743
16744# Additional compiler flags for building library objects.
16745pic_flag=$lt_lt_prog_compiler_pic_F77
16746pic_mode=$pic_mode
16747
16748# What is the maximum length of a command?
16749max_cmd_len=$lt_cv_sys_max_cmd_len
16750
16751# Does compiler simultaneously support -c and -o options?
16752compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16753
16754# Must we lock files when doing compilation?
16755need_locks=$lt_need_locks
16756
16757# Do we need the lib prefix for modules?
16758need_lib_prefix=$need_lib_prefix
16759
16760# Do we need a version for libraries?
16761need_version=$need_version
16762
16763# Whether dlopen is supported.
16764dlopen_support=$enable_dlopen
16765
16766# Whether dlopen of programs is supported.
16767dlopen_self=$enable_dlopen_self
16768
16769# Whether dlopen of statically linked programs is supported.
16770dlopen_self_static=$enable_dlopen_self_static
16771
16772# Compiler flag to prevent dynamic linking.
16773link_static_flag=$lt_lt_prog_compiler_static_F77
16774
16775# Compiler flag to turn off builtin functions.
16776no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16777
16778# Compiler flag to allow reflexive dlopens.
16779export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16780
16781# Compiler flag to generate shared objects directly from archives.
16782whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16783
16784# Compiler flag to generate thread-safe objects.
16785thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16786
16787# Library versioning type.
16788version_type=$version_type
16789
16790# Format of library name prefix.
16791libname_spec=$lt_libname_spec
16792
16793# List of archive names.  First name is the real one, the rest are links.
16794# The last name is the one that the linker finds with -lNAME.
16795library_names_spec=$lt_library_names_spec
16796
16797# The coded name of the library, if different from the real name.
16798soname_spec=$lt_soname_spec
16799
16800# Commands used to build and install an old-style archive.
16801RANLIB=$lt_RANLIB
16802old_archive_cmds=$lt_old_archive_cmds_F77
16803old_postinstall_cmds=$lt_old_postinstall_cmds
16804old_postuninstall_cmds=$lt_old_postuninstall_cmds
16805
16806# Create an old-style archive from a shared archive.
16807old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16808
16809# Create a temporary old-style archive to link instead of a shared archive.
16810old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16811
16812# Commands used to build and install a shared archive.
16813archive_cmds=$lt_archive_cmds_F77
16814archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16815postinstall_cmds=$lt_postinstall_cmds
16816postuninstall_cmds=$lt_postuninstall_cmds
16817
16818# Commands used to build a loadable module (assumed same as above if empty)
16819module_cmds=$lt_module_cmds_F77
16820module_expsym_cmds=$lt_module_expsym_cmds_F77
16821
16822# Commands to strip libraries.
16823old_striplib=$lt_old_striplib
16824striplib=$lt_striplib
16825
16826# Dependencies to place before the objects being linked to create a
16827# shared library.
16828predep_objects=$lt_predep_objects_F77
16829
16830# Dependencies to place after the objects being linked to create a
16831# shared library.
16832postdep_objects=$lt_postdep_objects_F77
16833
16834# Dependencies to place before the objects being linked to create a
16835# shared library.
16836predeps=$lt_predeps_F77
16837
16838# Dependencies to place after the objects being linked to create a
16839# shared library.
16840postdeps=$lt_postdeps_F77
16841
16842# The directories searched by this compiler when creating a shared
16843# library
16844compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16845
16846# The library search path used internally by the compiler when linking
16847# a shared library.
16848compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16849
16850# Method to check whether dependent libraries are shared objects.
16851deplibs_check_method=$lt_deplibs_check_method
16852
16853# Command to use when deplibs_check_method == file_magic.
16854file_magic_cmd=$lt_file_magic_cmd
16855
16856# Flag that allows shared libraries with undefined symbols to be built.
16857allow_undefined_flag=$lt_allow_undefined_flag_F77
16858
16859# Flag that forces no undefined symbols.
16860no_undefined_flag=$lt_no_undefined_flag_F77
16861
16862# Commands used to finish a libtool library installation in a directory.
16863finish_cmds=$lt_finish_cmds
16864
16865# Same as above, but a single script fragment to be evaled but not shown.
16866finish_eval=$lt_finish_eval
16867
16868# Take the output of nm and produce a listing of raw symbols and C names.
16869global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16870
16871# Transform the output of nm in a proper C declaration
16872global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16873
16874# Transform the output of nm in a C name address pair
16875global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16876
16877# This is the shared library runtime path variable.
16878runpath_var=$runpath_var
16879
16880# This is the shared library path variable.
16881shlibpath_var=$shlibpath_var
16882
16883# Is shlibpath searched before the hard-coded library search path?
16884shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16885
16886# How to hardcode a shared library path into an executable.
16887hardcode_action=$hardcode_action_F77
16888
16889# Whether we should hardcode library paths into libraries.
16890hardcode_into_libs=$hardcode_into_libs
16891
16892# Flag to hardcode \$libdir into a binary during linking.
16893# This must work even if \$libdir does not exist.
16894hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16895
16896# If ld is used when linking, flag to hardcode \$libdir into
16897# a binary during linking. This must work even if \$libdir does
16898# not exist.
16899hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16900
16901# Whether we need a single -rpath flag with a separated argument.
16902hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16903
16904# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16905# resulting binary.
16906hardcode_direct=$hardcode_direct_F77
16907
16908# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16909# resulting binary.
16910hardcode_minus_L=$hardcode_minus_L_F77
16911
16912# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16913# the resulting binary.
16914hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16915
16916# Set to yes if building a shared library automatically hardcodes DIR into the library
16917# and all subsequent libraries and executables linked against it.
16918hardcode_automatic=$hardcode_automatic_F77
16919
16920# Variables whose values should be saved in libtool wrapper scripts and
16921# restored at relink time.
16922variables_saved_for_relink="$variables_saved_for_relink"
16923
16924# Whether libtool must link a program against all its dependency libraries.
16925link_all_deplibs=$link_all_deplibs_F77
16926
16927# Compile-time system search path for libraries
16928sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16929
16930# Run-time system search path for libraries
16931sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16932
16933# Fix the shell variable \$srcfile for the compiler.
16934fix_srcfile_path=$lt_fix_srcfile_path
16935
16936# Set to yes if exported symbols are required.
16937always_export_symbols=$always_export_symbols_F77
16938
16939# The commands to list exported symbols.
16940export_symbols_cmds=$lt_export_symbols_cmds_F77
16941
16942# The commands to extract the exported symbol list from a shared archive.
16943extract_expsyms_cmds=$lt_extract_expsyms_cmds
16944
16945# Symbols that should not be listed in the preloaded symbols.
16946exclude_expsyms=$lt_exclude_expsyms_F77
16947
16948# Symbols that must always be exported.
16949include_expsyms=$lt_include_expsyms_F77
16950
16951# ### END LIBTOOL TAG CONFIG: $tagname
16952
16953__EOF__
16954
16955
16956else
16957  # If there is no Makefile yet, we rely on a make rule to execute
16958  # `config.status --recheck' to rerun these tests and create the
16959  # libtool script then.
16960  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16961  if test -f "$ltmain_in"; then
16962    test -f Makefile && make "$ltmain"
16963  fi
16964fi
16965
16966
16967ac_ext=c
16968ac_cpp='$CPP $CPPFLAGS'
16969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16971ac_compiler_gnu=$ac_cv_c_compiler_gnu
16972
16973CC="$lt_save_CC"
16974
16975	else
16976	  tagname=""
16977	fi
16978	;;
16979
16980      GCJ)
16981	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16982
16983
16984# Source file extension for Java test sources.
16985ac_ext=java
16986
16987# Object file extension for compiled Java test sources.
16988objext=o
16989objext_GCJ=$objext
16990
16991# Code to be used in simple compile tests
16992lt_simple_compile_test_code="class foo {}"
16993
16994# Code to be used in simple link tests
16995lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16996
16997# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16998
16999# If no C compiler was specified, use CC.
17000LTCC=${LTCC-"$CC"}
17001
17002# If no C compiler flags were specified, use CFLAGS.
17003LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17004
17005# Allow CC to be a program name with arguments.
17006compiler=$CC
17007
17008
17009# save warnings/boilerplate of simple test code
17010ac_outfile=conftest.$ac_objext
17011echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17012eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17013_lt_compiler_boilerplate=`cat conftest.err`
17014$rm conftest*
17015
17016ac_outfile=conftest.$ac_objext
17017echo "$lt_simple_link_test_code" >conftest.$ac_ext
17018eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17019_lt_linker_boilerplate=`cat conftest.err`
17020$rm -r conftest*
17021
17022
17023# Allow CC to be a program name with arguments.
17024lt_save_CC="$CC"
17025CC=${GCJ-"gcj"}
17026compiler=$CC
17027compiler_GCJ=$CC
17028for cc_temp in $compiler""; do
17029  case $cc_temp in
17030    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17031    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17032    \-*) ;;
17033    *) break;;
17034  esac
17035done
17036cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17037
17038
17039# GCJ did not exist at the time GCC didn't implicitly link libc in.
17040archive_cmds_need_lc_GCJ=no
17041
17042old_archive_cmds_GCJ=$old_archive_cmds
17043
17044
17045lt_prog_compiler_no_builtin_flag_GCJ=
17046
17047if test "$GCC" = yes; then
17048  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17049
17050
17051{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17052echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17053if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17054  echo $ECHO_N "(cached) $ECHO_C" >&6
17055else
17056  lt_cv_prog_compiler_rtti_exceptions=no
17057  ac_outfile=conftest.$ac_objext
17058   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17059   lt_compiler_flag="-fno-rtti -fno-exceptions"
17060   # Insert the option either (1) after the last *FLAGS variable, or
17061   # (2) before a word containing "conftest.", or (3) at the end.
17062   # Note that $ac_compile itself does not contain backslashes and begins
17063   # with a dollar sign (not a hyphen), so the echo should work correctly.
17064   # The option is referenced via a variable to avoid confusing sed.
17065   lt_compile=`echo "$ac_compile" | $SED \
17066   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17067   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17068   -e 's:$: $lt_compiler_flag:'`
17069   (eval echo "\"\$as_me:17069: $lt_compile\"" >&5)
17070   (eval "$lt_compile" 2>conftest.err)
17071   ac_status=$?
17072   cat conftest.err >&5
17073   echo "$as_me:17073: \$? = $ac_status" >&5
17074   if (exit $ac_status) && test -s "$ac_outfile"; then
17075     # The compiler can only warn and ignore the option if not recognized
17076     # So say no if there are warnings other than the usual output.
17077     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17078     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17079     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17080       lt_cv_prog_compiler_rtti_exceptions=yes
17081     fi
17082   fi
17083   $rm conftest*
17084
17085fi
17086{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17087echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17088
17089if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17090    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17091else
17092    :
17093fi
17094
17095fi
17096
17097lt_prog_compiler_wl_GCJ=
17098lt_prog_compiler_pic_GCJ=
17099lt_prog_compiler_static_GCJ=
17100
17101{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17102echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17103
17104  if test "$GCC" = yes; then
17105    lt_prog_compiler_wl_GCJ='-Wl,'
17106    lt_prog_compiler_static_GCJ='-static'
17107
17108    case $host_os in
17109      aix*)
17110      # All AIX code is PIC.
17111      if test "$host_cpu" = ia64; then
17112	# AIX 5 now supports IA64 processor
17113	lt_prog_compiler_static_GCJ='-Bstatic'
17114      fi
17115      ;;
17116
17117    amigaos*)
17118      # FIXME: we need at least 68020 code to build shared libraries, but
17119      # adding the `-m68020' flag to GCC prevents building anything better,
17120      # like `-m68040'.
17121      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17122      ;;
17123
17124    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17125      # PIC is the default for these OSes.
17126      ;;
17127
17128    mingw* | cygwin* | pw32* | os2*)
17129      # This hack is so that the source file can tell whether it is being
17130      # built for inclusion in a dll (and should export symbols for example).
17131      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17132      # (--disable-auto-import) libraries
17133
17134      ;;
17135
17136    darwin* | rhapsody*)
17137      # PIC is the default on this platform
17138      # Common symbols not allowed in MH_DYLIB files
17139      lt_prog_compiler_pic_GCJ='-fno-common'
17140      ;;
17141
17142    interix[3-9]*)
17143      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17144      # Instead, we relocate shared libraries at runtime.
17145      ;;
17146
17147    msdosdjgpp*)
17148      # Just because we use GCC doesn't mean we suddenly get shared libraries
17149      # on systems that don't support them.
17150      lt_prog_compiler_can_build_shared_GCJ=no
17151      enable_shared=no
17152      ;;
17153
17154    sysv4*MP*)
17155      if test -d /usr/nec; then
17156	lt_prog_compiler_pic_GCJ=-Kconform_pic
17157      fi
17158      ;;
17159
17160    hpux*)
17161      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17162      # not for PA HP-UX.
17163      case $host_cpu in
17164      hppa*64*|ia64*)
17165	# +Z the default
17166	;;
17167      *)
17168	lt_prog_compiler_pic_GCJ='-fPIC'
17169	;;
17170      esac
17171      ;;
17172
17173    *)
17174      lt_prog_compiler_pic_GCJ='-fPIC'
17175      ;;
17176    esac
17177  else
17178    # PORTME Check for flag to pass linker flags through the system compiler.
17179    case $host_os in
17180    aix*)
17181      lt_prog_compiler_wl_GCJ='-Wl,'
17182      if test "$host_cpu" = ia64; then
17183	# AIX 5 now supports IA64 processor
17184	lt_prog_compiler_static_GCJ='-Bstatic'
17185      else
17186	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17187      fi
17188      ;;
17189      darwin*)
17190        # PIC is the default on this platform
17191        # Common symbols not allowed in MH_DYLIB files
17192       case $cc_basename in
17193         xlc*)
17194         lt_prog_compiler_pic_GCJ='-qnocommon'
17195         lt_prog_compiler_wl_GCJ='-Wl,'
17196         ;;
17197       esac
17198       ;;
17199
17200    mingw* | cygwin* | pw32* | os2*)
17201      # This hack is so that the source file can tell whether it is being
17202      # built for inclusion in a dll (and should export symbols for example).
17203
17204      ;;
17205
17206    hpux9* | hpux10* | hpux11*)
17207      lt_prog_compiler_wl_GCJ='-Wl,'
17208      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17209      # not for PA HP-UX.
17210      case $host_cpu in
17211      hppa*64*|ia64*)
17212	# +Z the default
17213	;;
17214      *)
17215	lt_prog_compiler_pic_GCJ='+Z'
17216	;;
17217      esac
17218      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17219      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17220      ;;
17221
17222    irix5* | irix6* | nonstopux*)
17223      lt_prog_compiler_wl_GCJ='-Wl,'
17224      # PIC (with -KPIC) is the default.
17225      lt_prog_compiler_static_GCJ='-non_shared'
17226      ;;
17227
17228    newsos6)
17229      lt_prog_compiler_pic_GCJ='-KPIC'
17230      lt_prog_compiler_static_GCJ='-Bstatic'
17231      ;;
17232
17233    linux* | k*bsd*-gnu)
17234      case $cc_basename in
17235      icc* | ecc*)
17236	lt_prog_compiler_wl_GCJ='-Wl,'
17237	lt_prog_compiler_pic_GCJ='-KPIC'
17238	lt_prog_compiler_static_GCJ='-static'
17239        ;;
17240      pgcc* | pgf77* | pgf90* | pgf95*)
17241        # Portland Group compilers (*not* the Pentium gcc compiler,
17242	# which looks to be a dead project)
17243	lt_prog_compiler_wl_GCJ='-Wl,'
17244	lt_prog_compiler_pic_GCJ='-fpic'
17245	lt_prog_compiler_static_GCJ='-Bstatic'
17246        ;;
17247      ccc*)
17248        lt_prog_compiler_wl_GCJ='-Wl,'
17249        # All Alpha code is PIC.
17250        lt_prog_compiler_static_GCJ='-non_shared'
17251        ;;
17252      *)
17253        case `$CC -V 2>&1 | sed 5q` in
17254	*Sun\ C*)
17255	  # Sun C 5.9
17256	  lt_prog_compiler_pic_GCJ='-KPIC'
17257	  lt_prog_compiler_static_GCJ='-Bstatic'
17258	  lt_prog_compiler_wl_GCJ='-Wl,'
17259	  ;;
17260	*Sun\ F*)
17261	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17262	  lt_prog_compiler_pic_GCJ='-KPIC'
17263	  lt_prog_compiler_static_GCJ='-Bstatic'
17264	  lt_prog_compiler_wl_GCJ=''
17265	  ;;
17266	esac
17267	;;
17268      esac
17269      ;;
17270
17271    osf3* | osf4* | osf5*)
17272      lt_prog_compiler_wl_GCJ='-Wl,'
17273      # All OSF/1 code is PIC.
17274      lt_prog_compiler_static_GCJ='-non_shared'
17275      ;;
17276
17277    rdos*)
17278      lt_prog_compiler_static_GCJ='-non_shared'
17279      ;;
17280
17281    solaris*)
17282      lt_prog_compiler_pic_GCJ='-KPIC'
17283      lt_prog_compiler_static_GCJ='-Bstatic'
17284      case $cc_basename in
17285      f77* | f90* | f95*)
17286	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17287      *)
17288	lt_prog_compiler_wl_GCJ='-Wl,';;
17289      esac
17290      ;;
17291
17292    sunos4*)
17293      lt_prog_compiler_wl_GCJ='-Qoption ld '
17294      lt_prog_compiler_pic_GCJ='-PIC'
17295      lt_prog_compiler_static_GCJ='-Bstatic'
17296      ;;
17297
17298    sysv4 | sysv4.2uw2* | sysv4.3*)
17299      lt_prog_compiler_wl_GCJ='-Wl,'
17300      lt_prog_compiler_pic_GCJ='-KPIC'
17301      lt_prog_compiler_static_GCJ='-Bstatic'
17302      ;;
17303
17304    sysv4*MP*)
17305      if test -d /usr/nec ;then
17306	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17307	lt_prog_compiler_static_GCJ='-Bstatic'
17308      fi
17309      ;;
17310
17311    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17312      lt_prog_compiler_wl_GCJ='-Wl,'
17313      lt_prog_compiler_pic_GCJ='-KPIC'
17314      lt_prog_compiler_static_GCJ='-Bstatic'
17315      ;;
17316
17317    unicos*)
17318      lt_prog_compiler_wl_GCJ='-Wl,'
17319      lt_prog_compiler_can_build_shared_GCJ=no
17320      ;;
17321
17322    uts4*)
17323      lt_prog_compiler_pic_GCJ='-pic'
17324      lt_prog_compiler_static_GCJ='-Bstatic'
17325      ;;
17326
17327    *)
17328      lt_prog_compiler_can_build_shared_GCJ=no
17329      ;;
17330    esac
17331  fi
17332
17333{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17334echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17335
17336#
17337# Check to make sure the PIC flag actually works.
17338#
17339if test -n "$lt_prog_compiler_pic_GCJ"; then
17340
17341{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17342echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17343if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17344  echo $ECHO_N "(cached) $ECHO_C" >&6
17345else
17346  lt_cv_prog_compiler_pic_works_GCJ=no
17347  ac_outfile=conftest.$ac_objext
17348   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17349   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17350   # Insert the option either (1) after the last *FLAGS variable, or
17351   # (2) before a word containing "conftest.", or (3) at the end.
17352   # Note that $ac_compile itself does not contain backslashes and begins
17353   # with a dollar sign (not a hyphen), so the echo should work correctly.
17354   # The option is referenced via a variable to avoid confusing sed.
17355   lt_compile=`echo "$ac_compile" | $SED \
17356   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17357   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17358   -e 's:$: $lt_compiler_flag:'`
17359   (eval echo "\"\$as_me:17359: $lt_compile\"" >&5)
17360   (eval "$lt_compile" 2>conftest.err)
17361   ac_status=$?
17362   cat conftest.err >&5
17363   echo "$as_me:17363: \$? = $ac_status" >&5
17364   if (exit $ac_status) && test -s "$ac_outfile"; then
17365     # The compiler can only warn and ignore the option if not recognized
17366     # So say no if there are warnings other than the usual output.
17367     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17368     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17369     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17370       lt_cv_prog_compiler_pic_works_GCJ=yes
17371     fi
17372   fi
17373   $rm conftest*
17374
17375fi
17376{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17377echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17378
17379if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17380    case $lt_prog_compiler_pic_GCJ in
17381     "" | " "*) ;;
17382     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17383     esac
17384else
17385    lt_prog_compiler_pic_GCJ=
17386     lt_prog_compiler_can_build_shared_GCJ=no
17387fi
17388
17389fi
17390case $host_os in
17391  # For platforms which do not support PIC, -DPIC is meaningless:
17392  *djgpp*)
17393    lt_prog_compiler_pic_GCJ=
17394    ;;
17395  *)
17396    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17397    ;;
17398esac
17399
17400#
17401# Check to make sure the static flag actually works.
17402#
17403wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17404{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17405echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17406if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17407  echo $ECHO_N "(cached) $ECHO_C" >&6
17408else
17409  lt_cv_prog_compiler_static_works_GCJ=no
17410   save_LDFLAGS="$LDFLAGS"
17411   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17412   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17413   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17414     # The linker can only warn and ignore the option if not recognized
17415     # So say no if there are warnings
17416     if test -s conftest.err; then
17417       # Append any errors to the config.log.
17418       cat conftest.err 1>&5
17419       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17420       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17421       if diff conftest.exp conftest.er2 >/dev/null; then
17422         lt_cv_prog_compiler_static_works_GCJ=yes
17423       fi
17424     else
17425       lt_cv_prog_compiler_static_works_GCJ=yes
17426     fi
17427   fi
17428   $rm -r conftest*
17429   LDFLAGS="$save_LDFLAGS"
17430
17431fi
17432{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17433echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17434
17435if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17436    :
17437else
17438    lt_prog_compiler_static_GCJ=
17439fi
17440
17441
17442{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17443echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17444if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17445  echo $ECHO_N "(cached) $ECHO_C" >&6
17446else
17447  lt_cv_prog_compiler_c_o_GCJ=no
17448   $rm -r conftest 2>/dev/null
17449   mkdir conftest
17450   cd conftest
17451   mkdir out
17452   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17453
17454   lt_compiler_flag="-o out/conftest2.$ac_objext"
17455   # Insert the option either (1) after the last *FLAGS variable, or
17456   # (2) before a word containing "conftest.", or (3) at the end.
17457   # Note that $ac_compile itself does not contain backslashes and begins
17458   # with a dollar sign (not a hyphen), so the echo should work correctly.
17459   lt_compile=`echo "$ac_compile" | $SED \
17460   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17461   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17462   -e 's:$: $lt_compiler_flag:'`
17463   (eval echo "\"\$as_me:17463: $lt_compile\"" >&5)
17464   (eval "$lt_compile" 2>out/conftest.err)
17465   ac_status=$?
17466   cat out/conftest.err >&5
17467   echo "$as_me:17467: \$? = $ac_status" >&5
17468   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17469   then
17470     # The compiler can only warn and ignore the option if not recognized
17471     # So say no if there are warnings
17472     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17473     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17474     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17475       lt_cv_prog_compiler_c_o_GCJ=yes
17476     fi
17477   fi
17478   chmod u+w . 2>&5
17479   $rm conftest*
17480   # SGI C++ compiler will create directory out/ii_files/ for
17481   # template instantiation
17482   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17483   $rm out/* && rmdir out
17484   cd ..
17485   rmdir conftest
17486   $rm conftest*
17487
17488fi
17489{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17490echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17491
17492
17493hard_links="nottested"
17494if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17495  # do not overwrite the value of need_locks provided by the user
17496  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17497echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17498  hard_links=yes
17499  $rm conftest*
17500  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17501  touch conftest.a
17502  ln conftest.a conftest.b 2>&5 || hard_links=no
17503  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17504  { echo "$as_me:$LINENO: result: $hard_links" >&5
17505echo "${ECHO_T}$hard_links" >&6; }
17506  if test "$hard_links" = no; then
17507    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17508echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17509    need_locks=warn
17510  fi
17511else
17512  need_locks=no
17513fi
17514
17515{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17516echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17517
17518  runpath_var=
17519  allow_undefined_flag_GCJ=
17520  enable_shared_with_static_runtimes_GCJ=no
17521  archive_cmds_GCJ=
17522  archive_expsym_cmds_GCJ=
17523  old_archive_From_new_cmds_GCJ=
17524  old_archive_from_expsyms_cmds_GCJ=
17525  export_dynamic_flag_spec_GCJ=
17526  whole_archive_flag_spec_GCJ=
17527  thread_safe_flag_spec_GCJ=
17528  hardcode_libdir_flag_spec_GCJ=
17529  hardcode_libdir_flag_spec_ld_GCJ=
17530  hardcode_libdir_separator_GCJ=
17531  hardcode_direct_GCJ=no
17532  hardcode_minus_L_GCJ=no
17533  hardcode_shlibpath_var_GCJ=unsupported
17534  link_all_deplibs_GCJ=unknown
17535  hardcode_automatic_GCJ=no
17536  module_cmds_GCJ=
17537  module_expsym_cmds_GCJ=
17538  always_export_symbols_GCJ=no
17539  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17540  # include_expsyms should be a list of space-separated symbols to be *always*
17541  # included in the symbol list
17542  include_expsyms_GCJ=
17543  # exclude_expsyms can be an extended regexp of symbols to exclude
17544  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17545  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17546  # as well as any symbol that contains `d'.
17547  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17548  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17549  # platforms (ab)use it in PIC code, but their linkers get confused if
17550  # the symbol is explicitly referenced.  Since portable code cannot
17551  # rely on this symbol name, it's probably fine to never include it in
17552  # preloaded symbol tables.
17553  # Exclude shared library initialization/finalization symbols.
17554  extract_expsyms_cmds=
17555  # Just being paranoid about ensuring that cc_basename is set.
17556  for cc_temp in $compiler""; do
17557  case $cc_temp in
17558    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17559    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17560    \-*) ;;
17561    *) break;;
17562  esac
17563done
17564cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17565
17566  case $host_os in
17567  cygwin* | mingw* | pw32*)
17568    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17569    # When not using gcc, we currently assume that we are using
17570    # Microsoft Visual C++.
17571    if test "$GCC" != yes; then
17572      with_gnu_ld=no
17573    fi
17574    ;;
17575  interix*)
17576    # we just hope/assume this is gcc and not c89 (= MSVC++)
17577    with_gnu_ld=yes
17578    ;;
17579  openbsd*)
17580    with_gnu_ld=no
17581    ;;
17582  esac
17583
17584  ld_shlibs_GCJ=yes
17585  if test "$with_gnu_ld" = yes; then
17586    # If archive_cmds runs LD, not CC, wlarc should be empty
17587    wlarc='${wl}'
17588
17589    # Set some defaults for GNU ld with shared library support. These
17590    # are reset later if shared libraries are not supported. Putting them
17591    # here allows them to be overridden if necessary.
17592    runpath_var=LD_RUN_PATH
17593    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17594    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17595    # ancient GNU ld didn't support --whole-archive et. al.
17596    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17597	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17598      else
17599  	whole_archive_flag_spec_GCJ=
17600    fi
17601    supports_anon_versioning=no
17602    case `$LD -v 2>/dev/null` in
17603      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17604      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17605      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17606      *\ 2.11.*) ;; # other 2.11 versions
17607      *) supports_anon_versioning=yes ;;
17608    esac
17609
17610    # See if GNU ld supports shared libraries.
17611    case $host_os in
17612    aix[3-9]*)
17613      # On AIX/PPC, the GNU linker is very broken
17614      if test "$host_cpu" != ia64; then
17615	ld_shlibs_GCJ=no
17616	cat <<EOF 1>&2
17617
17618*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17619*** to be unable to reliably create shared libraries on AIX.
17620*** Therefore, libtool is disabling shared libraries support.  If you
17621*** really care for shared libraries, you may want to modify your PATH
17622*** so that a non-GNU linker is found, and then restart.
17623
17624EOF
17625      fi
17626      ;;
17627
17628    amigaos*)
17629      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)'
17630      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17631      hardcode_minus_L_GCJ=yes
17632
17633      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17634      # that the semantics of dynamic libraries on AmigaOS, at least up
17635      # to version 4, is to share data among multiple programs linked
17636      # with the same dynamic library.  Since this doesn't match the
17637      # behavior of shared libraries on other platforms, we can't use
17638      # them.
17639      ld_shlibs_GCJ=no
17640      ;;
17641
17642    beos*)
17643      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17644	allow_undefined_flag_GCJ=unsupported
17645	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17646	# support --undefined.  This deserves some investigation.  FIXME
17647	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17648      else
17649	ld_shlibs_GCJ=no
17650      fi
17651      ;;
17652
17653    cygwin* | mingw* | pw32*)
17654      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17655      # as there is no search path for DLLs.
17656      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17657      allow_undefined_flag_GCJ=unsupported
17658      always_export_symbols_GCJ=no
17659      enable_shared_with_static_runtimes_GCJ=yes
17660      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17661
17662      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17663        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17664	# If the export-symbols file already is a .def file (1st line
17665	# is EXPORTS), use it as is; otherwise, prepend...
17666	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17667	  cp $export_symbols $output_objdir/$soname.def;
17668	else
17669	  echo EXPORTS > $output_objdir/$soname.def;
17670	  cat $export_symbols >> $output_objdir/$soname.def;
17671	fi~
17672	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17673      else
17674	ld_shlibs_GCJ=no
17675      fi
17676      ;;
17677
17678    interix[3-9]*)
17679      hardcode_direct_GCJ=no
17680      hardcode_shlibpath_var_GCJ=no
17681      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17682      export_dynamic_flag_spec_GCJ='${wl}-E'
17683      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17684      # Instead, shared libraries are loaded at an image base (0x10000000 by
17685      # default) and relocated if they conflict, which is a slow very memory
17686      # consuming and fragmenting process.  To avoid this, we pick a random,
17687      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17688      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17689      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'
17690      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'
17691      ;;
17692
17693    gnu* | linux* | k*bsd*-gnu)
17694      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17695	tmp_addflag=
17696	case $cc_basename,$host_cpu in
17697	pgcc*)				# Portland Group C compiler
17698	  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'
17699	  tmp_addflag=' $pic_flag'
17700	  ;;
17701	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17702	  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'
17703	  tmp_addflag=' $pic_flag -Mnomain' ;;
17704	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17705	  tmp_addflag=' -i_dynamic' ;;
17706	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17707	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17708	ifc* | ifort*)			# Intel Fortran compiler
17709	  tmp_addflag=' -nofor_main' ;;
17710	esac
17711	case `$CC -V 2>&1 | sed 5q` in
17712	*Sun\ C*)			# Sun C 5.9
17713	  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'
17714	  tmp_sharedflag='-G' ;;
17715	*Sun\ F*)			# Sun Fortran 8.3
17716	  tmp_sharedflag='-G' ;;
17717	*)
17718	  tmp_sharedflag='-shared' ;;
17719	esac
17720	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17721
17722	if test $supports_anon_versioning = yes; then
17723	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17724  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17725  $echo "local: *; };" >> $output_objdir/$libname.ver~
17726	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17727	fi
17728	link_all_deplibs_GCJ=no
17729      else
17730	ld_shlibs_GCJ=no
17731      fi
17732      ;;
17733
17734    netbsd* | netbsdelf*-gnu)
17735      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17736	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17737	wlarc=
17738      else
17739	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17740	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17741      fi
17742      ;;
17743
17744    solaris*)
17745      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17746	ld_shlibs_GCJ=no
17747	cat <<EOF 1>&2
17748
17749*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17750*** create shared libraries on Solaris systems.  Therefore, libtool
17751*** is disabling shared libraries support.  We urge you to upgrade GNU
17752*** binutils to release 2.9.1 or newer.  Another option is to modify
17753*** your PATH or compiler configuration so that the native linker is
17754*** used, and then restart.
17755
17756EOF
17757      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17758	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17759	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17760      else
17761	ld_shlibs_GCJ=no
17762      fi
17763      ;;
17764
17765    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17766      case `$LD -v 2>&1` in
17767        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17768	ld_shlibs_GCJ=no
17769	cat <<_LT_EOF 1>&2
17770
17771*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17772*** reliably create shared libraries on SCO systems.  Therefore, libtool
17773*** is disabling shared libraries support.  We urge you to upgrade GNU
17774*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17775*** your PATH or compiler configuration so that the native linker is
17776*** used, and then restart.
17777
17778_LT_EOF
17779	;;
17780	*)
17781	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17782	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17783	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17784	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17785	  else
17786	    ld_shlibs_GCJ=no
17787	  fi
17788	;;
17789      esac
17790      ;;
17791
17792    sunos4*)
17793      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17794      wlarc=
17795      hardcode_direct_GCJ=yes
17796      hardcode_shlibpath_var_GCJ=no
17797      ;;
17798
17799    *)
17800      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17801	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17802	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17803      else
17804	ld_shlibs_GCJ=no
17805      fi
17806      ;;
17807    esac
17808
17809    if test "$ld_shlibs_GCJ" = no; then
17810      runpath_var=
17811      hardcode_libdir_flag_spec_GCJ=
17812      export_dynamic_flag_spec_GCJ=
17813      whole_archive_flag_spec_GCJ=
17814    fi
17815  else
17816    # PORTME fill in a description of your system's linker (not GNU ld)
17817    case $host_os in
17818    aix3*)
17819      allow_undefined_flag_GCJ=unsupported
17820      always_export_symbols_GCJ=yes
17821      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'
17822      # Note: this linker hardcodes the directories in LIBPATH if there
17823      # are no directories specified by -L.
17824      hardcode_minus_L_GCJ=yes
17825      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17826	# Neither direct hardcoding nor static linking is supported with a
17827	# broken collect2.
17828	hardcode_direct_GCJ=unsupported
17829      fi
17830      ;;
17831
17832    aix[4-9]*)
17833      if test "$host_cpu" = ia64; then
17834	# On IA64, the linker does run time linking by default, so we don't
17835	# have to do anything special.
17836	aix_use_runtimelinking=no
17837	exp_sym_flag='-Bexport'
17838	no_entry_flag=""
17839      else
17840	# If we're using GNU nm, then we don't want the "-C" option.
17841	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17842	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17843	  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'
17844	else
17845	  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'
17846	fi
17847	aix_use_runtimelinking=no
17848
17849	# Test if we are trying to use run time linking or normal
17850	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17851	# need to do runtime linking.
17852	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17853	  for ld_flag in $LDFLAGS; do
17854  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17855  	    aix_use_runtimelinking=yes
17856  	    break
17857  	  fi
17858	  done
17859	  ;;
17860	esac
17861
17862	exp_sym_flag='-bexport'
17863	no_entry_flag='-bnoentry'
17864      fi
17865
17866      # When large executables or shared objects are built, AIX ld can
17867      # have problems creating the table of contents.  If linking a library
17868      # or program results in "error TOC overflow" add -mminimal-toc to
17869      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17870      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17871
17872      archive_cmds_GCJ=''
17873      hardcode_direct_GCJ=yes
17874      hardcode_libdir_separator_GCJ=':'
17875      link_all_deplibs_GCJ=yes
17876
17877      if test "$GCC" = yes; then
17878	case $host_os in aix4.[012]|aix4.[012].*)
17879	# We only want to do this on AIX 4.2 and lower, the check
17880	# below for broken collect2 doesn't work under 4.3+
17881	  collect2name=`${CC} -print-prog-name=collect2`
17882	  if test -f "$collect2name" && \
17883  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17884	  then
17885  	  # We have reworked collect2
17886  	  :
17887	  else
17888  	  # We have old collect2
17889  	  hardcode_direct_GCJ=unsupported
17890  	  # It fails to find uninstalled libraries when the uninstalled
17891  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17892  	  # to unsupported forces relinking
17893  	  hardcode_minus_L_GCJ=yes
17894  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17895  	  hardcode_libdir_separator_GCJ=
17896	  fi
17897	  ;;
17898	esac
17899	shared_flag='-shared'
17900	if test "$aix_use_runtimelinking" = yes; then
17901	  shared_flag="$shared_flag "'${wl}-G'
17902	fi
17903      else
17904	# not using gcc
17905	if test "$host_cpu" = ia64; then
17906  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17907  	# chokes on -Wl,-G. The following line is correct:
17908	  shared_flag='-G'
17909	else
17910	  if test "$aix_use_runtimelinking" = yes; then
17911	    shared_flag='${wl}-G'
17912	  else
17913	    shared_flag='${wl}-bM:SRE'
17914	  fi
17915	fi
17916      fi
17917
17918      # It seems that -bexpall does not export symbols beginning with
17919      # underscore (_), so it is better to generate a list of symbols to export.
17920      always_export_symbols_GCJ=yes
17921      if test "$aix_use_runtimelinking" = yes; then
17922	# Warning - without using the other runtime loading flags (-brtl),
17923	# -berok will link without error, but may produce a broken library.
17924	allow_undefined_flag_GCJ='-berok'
17925       # Determine the default libpath from the value encoded in an empty executable.
17926       cat >conftest.$ac_ext <<_ACEOF
17927/* confdefs.h.  */
17928_ACEOF
17929cat confdefs.h >>conftest.$ac_ext
17930cat >>conftest.$ac_ext <<_ACEOF
17931/* end confdefs.h.  */
17932
17933int
17934main ()
17935{
17936
17937  ;
17938  return 0;
17939}
17940_ACEOF
17941rm -f conftest.$ac_objext conftest$ac_exeext
17942if { (ac_try="$ac_link"
17943case "(($ac_try" in
17944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17945  *) ac_try_echo=$ac_try;;
17946esac
17947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17948  (eval "$ac_link") 2>conftest.er1
17949  ac_status=$?
17950  grep -v '^ *+' conftest.er1 >conftest.err
17951  rm -f conftest.er1
17952  cat conftest.err >&5
17953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954  (exit $ac_status); } && {
17955	 test -z "$ac_c_werror_flag" ||
17956	 test ! -s conftest.err
17957       } && test -s conftest$ac_exeext &&
17958       $as_test_x conftest$ac_exeext; then
17959
17960lt_aix_libpath_sed='
17961    /Import File Strings/,/^$/ {
17962	/^0/ {
17963	    s/^0  *\(.*\)$/\1/
17964	    p
17965	}
17966    }'
17967aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17968# Check for a 64-bit object if we didn't find anything.
17969if test -z "$aix_libpath"; then
17970  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17971fi
17972else
17973  echo "$as_me: failed program was:" >&5
17974sed 's/^/| /' conftest.$ac_ext >&5
17975
17976
17977fi
17978
17979rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17980      conftest$ac_exeext conftest.$ac_ext
17981if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17982
17983       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17984	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"
17985       else
17986	if test "$host_cpu" = ia64; then
17987	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17988	  allow_undefined_flag_GCJ="-z nodefs"
17989	  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"
17990	else
17991	 # Determine the default libpath from the value encoded in an empty executable.
17992	 cat >conftest.$ac_ext <<_ACEOF
17993/* confdefs.h.  */
17994_ACEOF
17995cat confdefs.h >>conftest.$ac_ext
17996cat >>conftest.$ac_ext <<_ACEOF
17997/* end confdefs.h.  */
17998
17999int
18000main ()
18001{
18002
18003  ;
18004  return 0;
18005}
18006_ACEOF
18007rm -f conftest.$ac_objext conftest$ac_exeext
18008if { (ac_try="$ac_link"
18009case "(($ac_try" in
18010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18011  *) ac_try_echo=$ac_try;;
18012esac
18013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18014  (eval "$ac_link") 2>conftest.er1
18015  ac_status=$?
18016  grep -v '^ *+' conftest.er1 >conftest.err
18017  rm -f conftest.er1
18018  cat conftest.err >&5
18019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020  (exit $ac_status); } && {
18021	 test -z "$ac_c_werror_flag" ||
18022	 test ! -s conftest.err
18023       } && test -s conftest$ac_exeext &&
18024       $as_test_x conftest$ac_exeext; then
18025
18026lt_aix_libpath_sed='
18027    /Import File Strings/,/^$/ {
18028	/^0/ {
18029	    s/^0  *\(.*\)$/\1/
18030	    p
18031	}
18032    }'
18033aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18034# Check for a 64-bit object if we didn't find anything.
18035if test -z "$aix_libpath"; then
18036  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18037fi
18038else
18039  echo "$as_me: failed program was:" >&5
18040sed 's/^/| /' conftest.$ac_ext >&5
18041
18042
18043fi
18044
18045rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18046      conftest$ac_exeext conftest.$ac_ext
18047if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18048
18049	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18050	  # Warning - without using the other run time loading flags,
18051	  # -berok will link without error, but may produce a broken library.
18052	  no_undefined_flag_GCJ=' ${wl}-bernotok'
18053	  allow_undefined_flag_GCJ=' ${wl}-berok'
18054	  # Exported symbols can be pulled into shared objects from archives
18055	  whole_archive_flag_spec_GCJ='$convenience'
18056	  archive_cmds_need_lc_GCJ=yes
18057	  # This is similar to how AIX traditionally builds its shared libraries.
18058	  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'
18059	fi
18060      fi
18061      ;;
18062
18063    amigaos*)
18064      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)'
18065      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18066      hardcode_minus_L_GCJ=yes
18067      # see comment about different semantics on the GNU ld section
18068      ld_shlibs_GCJ=no
18069      ;;
18070
18071    bsdi[45]*)
18072      export_dynamic_flag_spec_GCJ=-rdynamic
18073      ;;
18074
18075    cygwin* | mingw* | pw32*)
18076      # When not using gcc, we currently assume that we are using
18077      # Microsoft Visual C++.
18078      # hardcode_libdir_flag_spec is actually meaningless, as there is
18079      # no search path for DLLs.
18080      hardcode_libdir_flag_spec_GCJ=' '
18081      allow_undefined_flag_GCJ=unsupported
18082      # Tell ltmain to make .lib files, not .a files.
18083      libext=lib
18084      # Tell ltmain to make .dll files, not .so files.
18085      shrext_cmds=".dll"
18086      # FIXME: Setting linknames here is a bad hack.
18087      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18088      # The linker will automatically build a .lib file if we build a DLL.
18089      old_archive_From_new_cmds_GCJ='true'
18090      # FIXME: Should let the user specify the lib program.
18091      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18092      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18093      enable_shared_with_static_runtimes_GCJ=yes
18094      ;;
18095
18096    darwin* | rhapsody*)
18097      case $host_os in
18098        rhapsody* | darwin1.[012])
18099         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18100         ;;
18101       *) # Darwin 1.3 on
18102         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18103           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18104         else
18105           case ${MACOSX_DEPLOYMENT_TARGET} in
18106             10.[012])
18107               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18108               ;;
18109             10.*)
18110               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18111               ;;
18112           esac
18113         fi
18114         ;;
18115      esac
18116      archive_cmds_need_lc_GCJ=no
18117      hardcode_direct_GCJ=no
18118      hardcode_automatic_GCJ=yes
18119      hardcode_shlibpath_var_GCJ=unsupported
18120      whole_archive_flag_spec_GCJ=''
18121      link_all_deplibs_GCJ=yes
18122    if test "$GCC" = yes ; then
18123    	output_verbose_link_cmd='echo'
18124        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}"
18125        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18126        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}"
18127        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}"
18128    else
18129      case $cc_basename in
18130        xlc*)
18131         output_verbose_link_cmd='echo'
18132         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18133         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18134          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18135         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}'
18136          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}'
18137          ;;
18138       *)
18139         ld_shlibs_GCJ=no
18140          ;;
18141      esac
18142    fi
18143      ;;
18144
18145    dgux*)
18146      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18147      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18148      hardcode_shlibpath_var_GCJ=no
18149      ;;
18150
18151    freebsd1*)
18152      ld_shlibs_GCJ=no
18153      ;;
18154
18155    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18156    # support.  Future versions do this automatically, but an explicit c++rt0.o
18157    # does not break anything, and helps significantly (at the cost of a little
18158    # extra space).
18159    freebsd2.2*)
18160      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18161      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18162      hardcode_direct_GCJ=yes
18163      hardcode_shlibpath_var_GCJ=no
18164      ;;
18165
18166    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18167    freebsd2*)
18168      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18169      hardcode_direct_GCJ=yes
18170      hardcode_minus_L_GCJ=yes
18171      hardcode_shlibpath_var_GCJ=no
18172      ;;
18173
18174    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18175    freebsd* | dragonfly*)
18176      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18177      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18178      hardcode_direct_GCJ=yes
18179      hardcode_shlibpath_var_GCJ=no
18180      ;;
18181
18182    hpux9*)
18183      if test "$GCC" = yes; then
18184	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'
18185      else
18186	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'
18187      fi
18188      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18189      hardcode_libdir_separator_GCJ=:
18190      hardcode_direct_GCJ=yes
18191
18192      # hardcode_minus_L: Not really in the search PATH,
18193      # but as the default location of the library.
18194      hardcode_minus_L_GCJ=yes
18195      export_dynamic_flag_spec_GCJ='${wl}-E'
18196      ;;
18197
18198    hpux10*)
18199      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18200	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18201      else
18202	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18203      fi
18204      if test "$with_gnu_ld" = no; then
18205	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18206	hardcode_libdir_separator_GCJ=:
18207
18208	hardcode_direct_GCJ=yes
18209	export_dynamic_flag_spec_GCJ='${wl}-E'
18210
18211	# hardcode_minus_L: Not really in the search PATH,
18212	# but as the default location of the library.
18213	hardcode_minus_L_GCJ=yes
18214      fi
18215      ;;
18216
18217    hpux11*)
18218      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18219	case $host_cpu in
18220	hppa*64*)
18221	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18222	  ;;
18223	ia64*)
18224	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18225	  ;;
18226	*)
18227	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18228	  ;;
18229	esac
18230      else
18231	case $host_cpu in
18232	hppa*64*)
18233	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18234	  ;;
18235	ia64*)
18236	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18237	  ;;
18238	*)
18239	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18240	  ;;
18241	esac
18242      fi
18243      if test "$with_gnu_ld" = no; then
18244	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18245	hardcode_libdir_separator_GCJ=:
18246
18247	case $host_cpu in
18248	hppa*64*|ia64*)
18249	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18250	  hardcode_direct_GCJ=no
18251	  hardcode_shlibpath_var_GCJ=no
18252	  ;;
18253	*)
18254	  hardcode_direct_GCJ=yes
18255	  export_dynamic_flag_spec_GCJ='${wl}-E'
18256
18257	  # hardcode_minus_L: Not really in the search PATH,
18258	  # but as the default location of the library.
18259	  hardcode_minus_L_GCJ=yes
18260	  ;;
18261	esac
18262      fi
18263      ;;
18264
18265    irix5* | irix6* | nonstopux*)
18266      if test "$GCC" = yes; then
18267	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'
18268      else
18269	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'
18270	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18271      fi
18272      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18273      hardcode_libdir_separator_GCJ=:
18274      link_all_deplibs_GCJ=yes
18275      ;;
18276
18277    netbsd* | netbsdelf*-gnu)
18278      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18279	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18280      else
18281	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18282      fi
18283      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18284      hardcode_direct_GCJ=yes
18285      hardcode_shlibpath_var_GCJ=no
18286      ;;
18287
18288    newsos6)
18289      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18290      hardcode_direct_GCJ=yes
18291      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18292      hardcode_libdir_separator_GCJ=:
18293      hardcode_shlibpath_var_GCJ=no
18294      ;;
18295
18296    openbsd*)
18297      if test -f /usr/libexec/ld.so; then
18298	hardcode_direct_GCJ=yes
18299	hardcode_shlibpath_var_GCJ=no
18300	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18301	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18302	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18303	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18304	  export_dynamic_flag_spec_GCJ='${wl}-E'
18305	else
18306	  case $host_os in
18307	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18308	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18309	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18310	     ;;
18311	   *)
18312	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18313	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18314	     ;;
18315	  esac
18316        fi
18317      else
18318	ld_shlibs_GCJ=no
18319      fi
18320      ;;
18321
18322    os2*)
18323      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18324      hardcode_minus_L_GCJ=yes
18325      allow_undefined_flag_GCJ=unsupported
18326      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'
18327      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18328      ;;
18329
18330    osf3*)
18331      if test "$GCC" = yes; then
18332	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18333	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'
18334      else
18335	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18336	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'
18337      fi
18338      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18339      hardcode_libdir_separator_GCJ=:
18340      ;;
18341
18342    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18343      if test "$GCC" = yes; then
18344	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18345	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'
18346	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18347      else
18348	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18349	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'
18350	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~
18351	$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'
18352
18353	# Both c and cxx compiler support -rpath directly
18354	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18355      fi
18356      hardcode_libdir_separator_GCJ=:
18357      ;;
18358
18359    solaris*)
18360      no_undefined_flag_GCJ=' -z text'
18361      if test "$GCC" = yes; then
18362	wlarc='${wl}'
18363	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18364	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18365	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18366      else
18367	wlarc=''
18368	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18369	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18370  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18371      fi
18372      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18373      hardcode_shlibpath_var_GCJ=no
18374      case $host_os in
18375      solaris2.[0-5] | solaris2.[0-5].*) ;;
18376      *)
18377	# The compiler driver will combine and reorder linker options,
18378	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18379	# but is careful enough not to reorder.
18380 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18381	if test "$GCC" = yes; then
18382	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18383	else
18384	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18385	fi
18386	;;
18387      esac
18388      link_all_deplibs_GCJ=yes
18389      ;;
18390
18391    sunos4*)
18392      if test "x$host_vendor" = xsequent; then
18393	# Use $CC to link under sequent, because it throws in some extra .o
18394	# files that make .init and .fini sections work.
18395	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18396      else
18397	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18398      fi
18399      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18400      hardcode_direct_GCJ=yes
18401      hardcode_minus_L_GCJ=yes
18402      hardcode_shlibpath_var_GCJ=no
18403      ;;
18404
18405    sysv4)
18406      case $host_vendor in
18407	sni)
18408	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18409	  hardcode_direct_GCJ=yes # is this really true???
18410	;;
18411	siemens)
18412	  ## LD is ld it makes a PLAMLIB
18413	  ## CC just makes a GrossModule.
18414	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18415	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18416	  hardcode_direct_GCJ=no
18417        ;;
18418	motorola)
18419	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18420	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18421	;;
18422      esac
18423      runpath_var='LD_RUN_PATH'
18424      hardcode_shlibpath_var_GCJ=no
18425      ;;
18426
18427    sysv4.3*)
18428      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18429      hardcode_shlibpath_var_GCJ=no
18430      export_dynamic_flag_spec_GCJ='-Bexport'
18431      ;;
18432
18433    sysv4*MP*)
18434      if test -d /usr/nec; then
18435	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18436	hardcode_shlibpath_var_GCJ=no
18437	runpath_var=LD_RUN_PATH
18438	hardcode_runpath_var=yes
18439	ld_shlibs_GCJ=yes
18440      fi
18441      ;;
18442
18443    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18444      no_undefined_flag_GCJ='${wl}-z,text'
18445      archive_cmds_need_lc_GCJ=no
18446      hardcode_shlibpath_var_GCJ=no
18447      runpath_var='LD_RUN_PATH'
18448
18449      if test "$GCC" = yes; then
18450	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18451	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18452      else
18453	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18454	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18455      fi
18456      ;;
18457
18458    sysv5* | sco3.2v5* | sco5v6*)
18459      # Note: We can NOT use -z defs as we might desire, because we do not
18460      # link with -lc, and that would cause any symbols used from libc to
18461      # always be unresolved, which means just about no library would
18462      # ever link correctly.  If we're not using GNU ld we use -z text
18463      # though, which does catch some bad symbols but isn't as heavy-handed
18464      # as -z defs.
18465      no_undefined_flag_GCJ='${wl}-z,text'
18466      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18467      archive_cmds_need_lc_GCJ=no
18468      hardcode_shlibpath_var_GCJ=no
18469      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18470      hardcode_libdir_separator_GCJ=':'
18471      link_all_deplibs_GCJ=yes
18472      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18473      runpath_var='LD_RUN_PATH'
18474
18475      if test "$GCC" = yes; then
18476	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18477	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18478      else
18479	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18480	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18481      fi
18482      ;;
18483
18484    uts4*)
18485      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18486      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18487      hardcode_shlibpath_var_GCJ=no
18488      ;;
18489
18490    *)
18491      ld_shlibs_GCJ=no
18492      ;;
18493    esac
18494  fi
18495
18496{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18497echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18498test "$ld_shlibs_GCJ" = no && can_build_shared=no
18499
18500#
18501# Do we need to explicitly link libc?
18502#
18503case "x$archive_cmds_need_lc_GCJ" in
18504x|xyes)
18505  # Assume -lc should be added
18506  archive_cmds_need_lc_GCJ=yes
18507
18508  if test "$enable_shared" = yes && test "$GCC" = yes; then
18509    case $archive_cmds_GCJ in
18510    *'~'*)
18511      # FIXME: we may have to deal with multi-command sequences.
18512      ;;
18513    '$CC '*)
18514      # Test whether the compiler implicitly links with -lc since on some
18515      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18516      # to ld, don't add -lc before -lgcc.
18517      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18518echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18519      $rm conftest*
18520      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18521
18522      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18523  (eval $ac_compile) 2>&5
18524  ac_status=$?
18525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526  (exit $ac_status); } 2>conftest.err; then
18527        soname=conftest
18528        lib=conftest
18529        libobjs=conftest.$ac_objext
18530        deplibs=
18531        wl=$lt_prog_compiler_wl_GCJ
18532	pic_flag=$lt_prog_compiler_pic_GCJ
18533        compiler_flags=-v
18534        linker_flags=-v
18535        verstring=
18536        output_objdir=.
18537        libname=conftest
18538        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18539        allow_undefined_flag_GCJ=
18540        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18541  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18542  ac_status=$?
18543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544  (exit $ac_status); }
18545        then
18546	  archive_cmds_need_lc_GCJ=no
18547        else
18548	  archive_cmds_need_lc_GCJ=yes
18549        fi
18550        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18551      else
18552        cat conftest.err 1>&5
18553      fi
18554      $rm conftest*
18555      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18556echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18557      ;;
18558    esac
18559  fi
18560  ;;
18561esac
18562
18563{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18564echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18565library_names_spec=
18566libname_spec='lib$name'
18567soname_spec=
18568shrext_cmds=".so"
18569postinstall_cmds=
18570postuninstall_cmds=
18571finish_cmds=
18572finish_eval=
18573shlibpath_var=
18574shlibpath_overrides_runpath=unknown
18575version_type=none
18576dynamic_linker="$host_os ld.so"
18577sys_lib_dlsearch_path_spec="/lib /usr/lib"
18578
18579need_lib_prefix=unknown
18580hardcode_into_libs=no
18581
18582# when you set need_version to no, make sure it does not cause -set_version
18583# flags to be left without arguments
18584need_version=unknown
18585
18586case $host_os in
18587aix3*)
18588  version_type=linux
18589  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18590  shlibpath_var=LIBPATH
18591
18592  # AIX 3 has no versioning support, so we append a major version to the name.
18593  soname_spec='${libname}${release}${shared_ext}$major'
18594  ;;
18595
18596aix[4-9]*)
18597  version_type=linux
18598  need_lib_prefix=no
18599  need_version=no
18600  hardcode_into_libs=yes
18601  if test "$host_cpu" = ia64; then
18602    # AIX 5 supports IA64
18603    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18604    shlibpath_var=LD_LIBRARY_PATH
18605  else
18606    # With GCC up to 2.95.x, collect2 would create an import file
18607    # for dependence libraries.  The import file would start with
18608    # the line `#! .'.  This would cause the generated library to
18609    # depend on `.', always an invalid library.  This was fixed in
18610    # development snapshots of GCC prior to 3.0.
18611    case $host_os in
18612      aix4 | aix4.[01] | aix4.[01].*)
18613      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18614	   echo ' yes '
18615	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18616	:
18617      else
18618	can_build_shared=no
18619      fi
18620      ;;
18621    esac
18622    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18623    # soname into executable. Probably we can add versioning support to
18624    # collect2, so additional links can be useful in future.
18625    if test "$aix_use_runtimelinking" = yes; then
18626      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18627      # instead of lib<name>.a to let people know that these are not
18628      # typical AIX shared libraries.
18629      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18630    else
18631      # We preserve .a as extension for shared libraries through AIX4.2
18632      # and later when we are not doing run time linking.
18633      library_names_spec='${libname}${release}.a $libname.a'
18634      soname_spec='${libname}${release}${shared_ext}$major'
18635    fi
18636    shlibpath_var=LIBPATH
18637  fi
18638  ;;
18639
18640amigaos*)
18641  library_names_spec='$libname.ixlibrary $libname.a'
18642  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18643  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'
18644  ;;
18645
18646beos*)
18647  library_names_spec='${libname}${shared_ext}'
18648  dynamic_linker="$host_os ld.so"
18649  shlibpath_var=LIBRARY_PATH
18650  ;;
18651
18652bsdi[45]*)
18653  version_type=linux
18654  need_version=no
18655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18656  soname_spec='${libname}${release}${shared_ext}$major'
18657  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18658  shlibpath_var=LD_LIBRARY_PATH
18659  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18660  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18661  # the default ld.so.conf also contains /usr/contrib/lib and
18662  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18663  # libtool to hard-code these into programs
18664  ;;
18665
18666cygwin* | mingw* | pw32*)
18667  version_type=windows
18668  shrext_cmds=".dll"
18669  need_version=no
18670  need_lib_prefix=no
18671
18672  case $GCC,$host_os in
18673  yes,cygwin* | yes,mingw* | yes,pw32*)
18674    library_names_spec='$libname.dll.a'
18675    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18676    postinstall_cmds='base_file=`basename \${file}`~
18677      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18678      dldir=$destdir/`dirname \$dlpath`~
18679      test -d \$dldir || mkdir -p \$dldir~
18680      $install_prog $dir/$dlname \$dldir/$dlname~
18681      chmod a+x \$dldir/$dlname'
18682    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18683      dlpath=$dir/\$dldll~
18684       $rm \$dlpath'
18685    shlibpath_overrides_runpath=yes
18686
18687    case $host_os in
18688    cygwin*)
18689      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18690      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18691      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18692      ;;
18693    mingw*)
18694      # MinGW DLLs use traditional 'lib' prefix
18695      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18696      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18697      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18698        # It is most probably a Windows format PATH printed by
18699        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18700        # path with ; separators, and with drive letters. We can handle the
18701        # drive letters (cygwin fileutils understands them), so leave them,
18702        # especially as we might pass files found there to a mingw objdump,
18703        # which wouldn't understand a cygwinified path. Ahh.
18704        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18705      else
18706        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18707      fi
18708      ;;
18709    pw32*)
18710      # pw32 DLLs use 'pw' prefix rather than 'lib'
18711      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18712      ;;
18713    esac
18714    ;;
18715
18716  *)
18717    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18718    ;;
18719  esac
18720  dynamic_linker='Win32 ld.exe'
18721  # FIXME: first we should search . and the directory the executable is in
18722  shlibpath_var=PATH
18723  ;;
18724
18725darwin* | rhapsody*)
18726  dynamic_linker="$host_os dyld"
18727  version_type=darwin
18728  need_lib_prefix=no
18729  need_version=no
18730  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18731  soname_spec='${libname}${release}${major}$shared_ext'
18732  shlibpath_overrides_runpath=yes
18733  shlibpath_var=DYLD_LIBRARY_PATH
18734  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18735
18736  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18737  ;;
18738
18739dgux*)
18740  version_type=linux
18741  need_lib_prefix=no
18742  need_version=no
18743  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18744  soname_spec='${libname}${release}${shared_ext}$major'
18745  shlibpath_var=LD_LIBRARY_PATH
18746  ;;
18747
18748freebsd1*)
18749  dynamic_linker=no
18750  ;;
18751
18752freebsd* | dragonfly*)
18753  # DragonFly does not have aout.  When/if they implement a new
18754  # versioning mechanism, adjust this.
18755  if test -x /usr/bin/objformat; then
18756    objformat=`/usr/bin/objformat`
18757  else
18758    case $host_os in
18759    freebsd[123]*) objformat=aout ;;
18760    *) objformat=elf ;;
18761    esac
18762  fi
18763  version_type=freebsd-$objformat
18764  case $version_type in
18765    freebsd-elf*)
18766      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18767      need_version=no
18768      need_lib_prefix=no
18769      ;;
18770    freebsd-*)
18771      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18772      need_version=yes
18773      ;;
18774  esac
18775  shlibpath_var=LD_LIBRARY_PATH
18776  case $host_os in
18777  freebsd2*)
18778    shlibpath_overrides_runpath=yes
18779    ;;
18780  freebsd3.[01]* | freebsdelf3.[01]*)
18781    shlibpath_overrides_runpath=yes
18782    hardcode_into_libs=yes
18783    ;;
18784  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18785  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18786    shlibpath_overrides_runpath=no
18787    hardcode_into_libs=yes
18788    ;;
18789  *) # from 4.6 on, and DragonFly
18790    shlibpath_overrides_runpath=yes
18791    hardcode_into_libs=yes
18792    ;;
18793  esac
18794  ;;
18795
18796gnu*)
18797  version_type=linux
18798  need_lib_prefix=no
18799  need_version=no
18800  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18801  soname_spec='${libname}${release}${shared_ext}$major'
18802  shlibpath_var=LD_LIBRARY_PATH
18803  hardcode_into_libs=yes
18804  ;;
18805
18806hpux9* | hpux10* | hpux11*)
18807  # Give a soname corresponding to the major version so that dld.sl refuses to
18808  # link against other versions.
18809  version_type=sunos
18810  need_lib_prefix=no
18811  need_version=no
18812  case $host_cpu in
18813  ia64*)
18814    shrext_cmds='.so'
18815    hardcode_into_libs=yes
18816    dynamic_linker="$host_os dld.so"
18817    shlibpath_var=LD_LIBRARY_PATH
18818    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18819    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18820    soname_spec='${libname}${release}${shared_ext}$major'
18821    if test "X$HPUX_IA64_MODE" = X32; then
18822      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18823    else
18824      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18825    fi
18826    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18827    ;;
18828   hppa*64*)
18829     shrext_cmds='.sl'
18830     hardcode_into_libs=yes
18831     dynamic_linker="$host_os dld.sl"
18832     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18833     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18834     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18835     soname_spec='${libname}${release}${shared_ext}$major'
18836     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18837     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18838     ;;
18839   *)
18840    shrext_cmds='.sl'
18841    dynamic_linker="$host_os dld.sl"
18842    shlibpath_var=SHLIB_PATH
18843    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18844    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18845    soname_spec='${libname}${release}${shared_ext}$major'
18846    ;;
18847  esac
18848  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18849  postinstall_cmds='chmod 555 $lib'
18850  ;;
18851
18852interix[3-9]*)
18853  version_type=linux
18854  need_lib_prefix=no
18855  need_version=no
18856  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18857  soname_spec='${libname}${release}${shared_ext}$major'
18858  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18859  shlibpath_var=LD_LIBRARY_PATH
18860  shlibpath_overrides_runpath=no
18861  hardcode_into_libs=yes
18862  ;;
18863
18864irix5* | irix6* | nonstopux*)
18865  case $host_os in
18866    nonstopux*) version_type=nonstopux ;;
18867    *)
18868	if test "$lt_cv_prog_gnu_ld" = yes; then
18869		version_type=linux
18870	else
18871		version_type=irix
18872	fi ;;
18873  esac
18874  need_lib_prefix=no
18875  need_version=no
18876  soname_spec='${libname}${release}${shared_ext}$major'
18877  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18878  case $host_os in
18879  irix5* | nonstopux*)
18880    libsuff= shlibsuff=
18881    ;;
18882  *)
18883    case $LD in # libtool.m4 will add one of these switches to LD
18884    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18885      libsuff= shlibsuff= libmagic=32-bit;;
18886    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18887      libsuff=32 shlibsuff=N32 libmagic=N32;;
18888    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18889      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18890    *) libsuff= shlibsuff= libmagic=never-match;;
18891    esac
18892    ;;
18893  esac
18894  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18895  shlibpath_overrides_runpath=no
18896  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18897  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18898  hardcode_into_libs=yes
18899  ;;
18900
18901# No shared lib support for Linux oldld, aout, or coff.
18902linux*oldld* | linux*aout* | linux*coff*)
18903  dynamic_linker=no
18904  ;;
18905
18906# This must be Linux ELF.
18907linux* | k*bsd*-gnu)
18908  version_type=linux
18909  need_lib_prefix=no
18910  need_version=no
18911  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18912  soname_spec='${libname}${release}${shared_ext}$major'
18913  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18914  shlibpath_var=LD_LIBRARY_PATH
18915  shlibpath_overrides_runpath=no
18916  # This implies no fast_install, which is unacceptable.
18917  # Some rework will be needed to allow for fast_install
18918  # before this can be enabled.
18919  hardcode_into_libs=yes
18920
18921  # Append ld.so.conf contents to the search path
18922  if test -f /etc/ld.so.conf; then
18923    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' ' '`
18924    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18925  fi
18926
18927  # We used to test for /lib/ld.so.1 and disable shared libraries on
18928  # powerpc, because MkLinux only supported shared libraries with the
18929  # GNU dynamic linker.  Since this was broken with cross compilers,
18930  # most powerpc-linux boxes support dynamic linking these days and
18931  # people can always --disable-shared, the test was removed, and we
18932  # assume the GNU/Linux dynamic linker is in use.
18933  dynamic_linker='GNU/Linux ld.so'
18934  ;;
18935
18936netbsdelf*-gnu)
18937  version_type=linux
18938  need_lib_prefix=no
18939  need_version=no
18940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18941  soname_spec='${libname}${release}${shared_ext}$major'
18942  shlibpath_var=LD_LIBRARY_PATH
18943  shlibpath_overrides_runpath=no
18944  hardcode_into_libs=yes
18945  dynamic_linker='NetBSD ld.elf_so'
18946  ;;
18947
18948netbsd*)
18949  version_type=sunos
18950  need_lib_prefix=no
18951  need_version=no
18952  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18953    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18954    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18955    dynamic_linker='NetBSD (a.out) ld.so'
18956  else
18957    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18958    soname_spec='${libname}${release}${shared_ext}$major'
18959    dynamic_linker='NetBSD ld.elf_so'
18960  fi
18961  shlibpath_var=LD_LIBRARY_PATH
18962  shlibpath_overrides_runpath=yes
18963  hardcode_into_libs=yes
18964  ;;
18965
18966newsos6)
18967  version_type=linux
18968  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18969  shlibpath_var=LD_LIBRARY_PATH
18970  shlibpath_overrides_runpath=yes
18971  ;;
18972
18973nto-qnx*)
18974  version_type=linux
18975  need_lib_prefix=no
18976  need_version=no
18977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18978  soname_spec='${libname}${release}${shared_ext}$major'
18979  shlibpath_var=LD_LIBRARY_PATH
18980  shlibpath_overrides_runpath=yes
18981  ;;
18982
18983openbsd*)
18984  version_type=sunos
18985  sys_lib_dlsearch_path_spec="/usr/lib"
18986  need_lib_prefix=no
18987  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18988  case $host_os in
18989    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18990    *)                         need_version=no  ;;
18991  esac
18992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18993  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18994  shlibpath_var=LD_LIBRARY_PATH
18995  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18996    case $host_os in
18997      openbsd2.[89] | openbsd2.[89].*)
18998	shlibpath_overrides_runpath=no
18999	;;
19000      *)
19001	shlibpath_overrides_runpath=yes
19002	;;
19003      esac
19004  else
19005    shlibpath_overrides_runpath=yes
19006  fi
19007  ;;
19008
19009os2*)
19010  libname_spec='$name'
19011  shrext_cmds=".dll"
19012  need_lib_prefix=no
19013  library_names_spec='$libname${shared_ext} $libname.a'
19014  dynamic_linker='OS/2 ld.exe'
19015  shlibpath_var=LIBPATH
19016  ;;
19017
19018osf3* | osf4* | osf5*)
19019  version_type=osf
19020  need_lib_prefix=no
19021  need_version=no
19022  soname_spec='${libname}${release}${shared_ext}$major'
19023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19024  shlibpath_var=LD_LIBRARY_PATH
19025  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19026  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19027  ;;
19028
19029rdos*)
19030  dynamic_linker=no
19031  ;;
19032
19033solaris*)
19034  version_type=linux
19035  need_lib_prefix=no
19036  need_version=no
19037  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19038  soname_spec='${libname}${release}${shared_ext}$major'
19039  shlibpath_var=LD_LIBRARY_PATH
19040  shlibpath_overrides_runpath=yes
19041  hardcode_into_libs=yes
19042  # ldd complains unless libraries are executable
19043  postinstall_cmds='chmod +x $lib'
19044  ;;
19045
19046sunos4*)
19047  version_type=sunos
19048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19049  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19050  shlibpath_var=LD_LIBRARY_PATH
19051  shlibpath_overrides_runpath=yes
19052  if test "$with_gnu_ld" = yes; then
19053    need_lib_prefix=no
19054  fi
19055  need_version=yes
19056  ;;
19057
19058sysv4 | sysv4.3*)
19059  version_type=linux
19060  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19061  soname_spec='${libname}${release}${shared_ext}$major'
19062  shlibpath_var=LD_LIBRARY_PATH
19063  case $host_vendor in
19064    sni)
19065      shlibpath_overrides_runpath=no
19066      need_lib_prefix=no
19067      export_dynamic_flag_spec='${wl}-Blargedynsym'
19068      runpath_var=LD_RUN_PATH
19069      ;;
19070    siemens)
19071      need_lib_prefix=no
19072      ;;
19073    motorola)
19074      need_lib_prefix=no
19075      need_version=no
19076      shlibpath_overrides_runpath=no
19077      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19078      ;;
19079  esac
19080  ;;
19081
19082sysv4*MP*)
19083  if test -d /usr/nec ;then
19084    version_type=linux
19085    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19086    soname_spec='$libname${shared_ext}.$major'
19087    shlibpath_var=LD_LIBRARY_PATH
19088  fi
19089  ;;
19090
19091sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19092  version_type=freebsd-elf
19093  need_lib_prefix=no
19094  need_version=no
19095  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19096  soname_spec='${libname}${release}${shared_ext}$major'
19097  shlibpath_var=LD_LIBRARY_PATH
19098  hardcode_into_libs=yes
19099  if test "$with_gnu_ld" = yes; then
19100    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19101    shlibpath_overrides_runpath=no
19102  else
19103    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19104    shlibpath_overrides_runpath=yes
19105    case $host_os in
19106      sco3.2v5*)
19107        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19108	;;
19109    esac
19110  fi
19111  sys_lib_dlsearch_path_spec='/usr/lib'
19112  ;;
19113
19114uts4*)
19115  version_type=linux
19116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19117  soname_spec='${libname}${release}${shared_ext}$major'
19118  shlibpath_var=LD_LIBRARY_PATH
19119  ;;
19120
19121*)
19122  dynamic_linker=no
19123  ;;
19124esac
19125{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19126echo "${ECHO_T}$dynamic_linker" >&6; }
19127test "$dynamic_linker" = no && can_build_shared=no
19128
19129if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19130  echo $ECHO_N "(cached) $ECHO_C" >&6
19131else
19132  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19133fi
19134
19135sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19136if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19137  echo $ECHO_N "(cached) $ECHO_C" >&6
19138else
19139  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19140fi
19141
19142sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19143
19144variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19145if test "$GCC" = yes; then
19146  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19147fi
19148
19149{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19150echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19151hardcode_action_GCJ=
19152if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19153   test -n "$runpath_var_GCJ" || \
19154   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19155
19156  # We can hardcode non-existant directories.
19157  if test "$hardcode_direct_GCJ" != no &&
19158     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19159     # have to relink, otherwise we might link with an installed library
19160     # when we should be linking with a yet-to-be-installed one
19161     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19162     test "$hardcode_minus_L_GCJ" != no; then
19163    # Linking always hardcodes the temporary library directory.
19164    hardcode_action_GCJ=relink
19165  else
19166    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19167    hardcode_action_GCJ=immediate
19168  fi
19169else
19170  # We cannot hardcode anything, or else we can only hardcode existing
19171  # directories.
19172  hardcode_action_GCJ=unsupported
19173fi
19174{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19175echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19176
19177if test "$hardcode_action_GCJ" = relink; then
19178  # Fast installation is not supported
19179  enable_fast_install=no
19180elif test "$shlibpath_overrides_runpath" = yes ||
19181     test "$enable_shared" = no; then
19182  # Fast installation is not necessary
19183  enable_fast_install=needless
19184fi
19185
19186
19187# The else clause should only fire when bootstrapping the
19188# libtool distribution, otherwise you forgot to ship ltmain.sh
19189# with your package, and you will get complaints that there are
19190# no rules to generate ltmain.sh.
19191if test -f "$ltmain"; then
19192  # See if we are running on zsh, and set the options which allow our commands through
19193  # without removal of \ escapes.
19194  if test -n "${ZSH_VERSION+set}" ; then
19195    setopt NO_GLOB_SUBST
19196  fi
19197  # Now quote all the things that may contain metacharacters while being
19198  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19199  # variables and quote the copies for generation of the libtool script.
19200  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19201    SED SHELL STRIP \
19202    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19203    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19204    deplibs_check_method reload_flag reload_cmds need_locks \
19205    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19206    lt_cv_sys_global_symbol_to_c_name_address \
19207    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19208    old_postinstall_cmds old_postuninstall_cmds \
19209    compiler_GCJ \
19210    CC_GCJ \
19211    LD_GCJ \
19212    lt_prog_compiler_wl_GCJ \
19213    lt_prog_compiler_pic_GCJ \
19214    lt_prog_compiler_static_GCJ \
19215    lt_prog_compiler_no_builtin_flag_GCJ \
19216    export_dynamic_flag_spec_GCJ \
19217    thread_safe_flag_spec_GCJ \
19218    whole_archive_flag_spec_GCJ \
19219    enable_shared_with_static_runtimes_GCJ \
19220    old_archive_cmds_GCJ \
19221    old_archive_from_new_cmds_GCJ \
19222    predep_objects_GCJ \
19223    postdep_objects_GCJ \
19224    predeps_GCJ \
19225    postdeps_GCJ \
19226    compiler_lib_search_path_GCJ \
19227    compiler_lib_search_dirs_GCJ \
19228    archive_cmds_GCJ \
19229    archive_expsym_cmds_GCJ \
19230    postinstall_cmds_GCJ \
19231    postuninstall_cmds_GCJ \
19232    old_archive_from_expsyms_cmds_GCJ \
19233    allow_undefined_flag_GCJ \
19234    no_undefined_flag_GCJ \
19235    export_symbols_cmds_GCJ \
19236    hardcode_libdir_flag_spec_GCJ \
19237    hardcode_libdir_flag_spec_ld_GCJ \
19238    hardcode_libdir_separator_GCJ \
19239    hardcode_automatic_GCJ \
19240    module_cmds_GCJ \
19241    module_expsym_cmds_GCJ \
19242    lt_cv_prog_compiler_c_o_GCJ \
19243    fix_srcfile_path_GCJ \
19244    exclude_expsyms_GCJ \
19245    include_expsyms_GCJ; do
19246
19247    case $var in
19248    old_archive_cmds_GCJ | \
19249    old_archive_from_new_cmds_GCJ | \
19250    archive_cmds_GCJ | \
19251    archive_expsym_cmds_GCJ | \
19252    module_cmds_GCJ | \
19253    module_expsym_cmds_GCJ | \
19254    old_archive_from_expsyms_cmds_GCJ | \
19255    export_symbols_cmds_GCJ | \
19256    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19257    postinstall_cmds | postuninstall_cmds | \
19258    old_postinstall_cmds | old_postuninstall_cmds | \
19259    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19260      # Double-quote double-evaled strings.
19261      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19262      ;;
19263    *)
19264      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19265      ;;
19266    esac
19267  done
19268
19269  case $lt_echo in
19270  *'\$0 --fallback-echo"')
19271    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19272    ;;
19273  esac
19274
19275cfgfile="$ofile"
19276
19277  cat <<__EOF__ >> "$cfgfile"
19278# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19279
19280# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19281
19282# Shell to use when invoking shell scripts.
19283SHELL=$lt_SHELL
19284
19285# Whether or not to build shared libraries.
19286build_libtool_libs=$enable_shared
19287
19288# Whether or not to build static libraries.
19289build_old_libs=$enable_static
19290
19291# Whether or not to add -lc for building shared libraries.
19292build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19293
19294# Whether or not to disallow shared libs when runtime libs are static
19295allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19296
19297# Whether or not to optimize for fast installation.
19298fast_install=$enable_fast_install
19299
19300# The host system.
19301host_alias=$host_alias
19302host=$host
19303host_os=$host_os
19304
19305# The build system.
19306build_alias=$build_alias
19307build=$build
19308build_os=$build_os
19309
19310# An echo program that does not interpret backslashes.
19311echo=$lt_echo
19312
19313# The archiver.
19314AR=$lt_AR
19315AR_FLAGS=$lt_AR_FLAGS
19316
19317# A C compiler.
19318LTCC=$lt_LTCC
19319
19320# LTCC compiler flags.
19321LTCFLAGS=$lt_LTCFLAGS
19322
19323# A language-specific compiler.
19324CC=$lt_compiler_GCJ
19325
19326# Is the compiler the GNU C compiler?
19327with_gcc=$GCC_GCJ
19328
19329# An ERE matcher.
19330EGREP=$lt_EGREP
19331
19332# The linker used to build libraries.
19333LD=$lt_LD_GCJ
19334
19335# Whether we need hard or soft links.
19336LN_S=$lt_LN_S
19337
19338# A BSD-compatible nm program.
19339NM=$lt_NM
19340
19341# A symbol stripping program
19342STRIP=$lt_STRIP
19343
19344# Used to examine libraries when file_magic_cmd begins "file"
19345MAGIC_CMD=$MAGIC_CMD
19346
19347# Used on cygwin: DLL creation program.
19348DLLTOOL="$DLLTOOL"
19349
19350# Used on cygwin: object dumper.
19351OBJDUMP="$OBJDUMP"
19352
19353# Used on cygwin: assembler.
19354AS="$AS"
19355
19356# The name of the directory that contains temporary libtool files.
19357objdir=$objdir
19358
19359# How to create reloadable object files.
19360reload_flag=$lt_reload_flag
19361reload_cmds=$lt_reload_cmds
19362
19363# How to pass a linker flag through the compiler.
19364wl=$lt_lt_prog_compiler_wl_GCJ
19365
19366# Object file suffix (normally "o").
19367objext="$ac_objext"
19368
19369# Old archive suffix (normally "a").
19370libext="$libext"
19371
19372# Shared library suffix (normally ".so").
19373shrext_cmds='$shrext_cmds'
19374
19375# Executable file suffix (normally "").
19376exeext="$exeext"
19377
19378# Additional compiler flags for building library objects.
19379pic_flag=$lt_lt_prog_compiler_pic_GCJ
19380pic_mode=$pic_mode
19381
19382# What is the maximum length of a command?
19383max_cmd_len=$lt_cv_sys_max_cmd_len
19384
19385# Does compiler simultaneously support -c and -o options?
19386compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19387
19388# Must we lock files when doing compilation?
19389need_locks=$lt_need_locks
19390
19391# Do we need the lib prefix for modules?
19392need_lib_prefix=$need_lib_prefix
19393
19394# Do we need a version for libraries?
19395need_version=$need_version
19396
19397# Whether dlopen is supported.
19398dlopen_support=$enable_dlopen
19399
19400# Whether dlopen of programs is supported.
19401dlopen_self=$enable_dlopen_self
19402
19403# Whether dlopen of statically linked programs is supported.
19404dlopen_self_static=$enable_dlopen_self_static
19405
19406# Compiler flag to prevent dynamic linking.
19407link_static_flag=$lt_lt_prog_compiler_static_GCJ
19408
19409# Compiler flag to turn off builtin functions.
19410no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19411
19412# Compiler flag to allow reflexive dlopens.
19413export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19414
19415# Compiler flag to generate shared objects directly from archives.
19416whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19417
19418# Compiler flag to generate thread-safe objects.
19419thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19420
19421# Library versioning type.
19422version_type=$version_type
19423
19424# Format of library name prefix.
19425libname_spec=$lt_libname_spec
19426
19427# List of archive names.  First name is the real one, the rest are links.
19428# The last name is the one that the linker finds with -lNAME.
19429library_names_spec=$lt_library_names_spec
19430
19431# The coded name of the library, if different from the real name.
19432soname_spec=$lt_soname_spec
19433
19434# Commands used to build and install an old-style archive.
19435RANLIB=$lt_RANLIB
19436old_archive_cmds=$lt_old_archive_cmds_GCJ
19437old_postinstall_cmds=$lt_old_postinstall_cmds
19438old_postuninstall_cmds=$lt_old_postuninstall_cmds
19439
19440# Create an old-style archive from a shared archive.
19441old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19442
19443# Create a temporary old-style archive to link instead of a shared archive.
19444old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19445
19446# Commands used to build and install a shared archive.
19447archive_cmds=$lt_archive_cmds_GCJ
19448archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19449postinstall_cmds=$lt_postinstall_cmds
19450postuninstall_cmds=$lt_postuninstall_cmds
19451
19452# Commands used to build a loadable module (assumed same as above if empty)
19453module_cmds=$lt_module_cmds_GCJ
19454module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19455
19456# Commands to strip libraries.
19457old_striplib=$lt_old_striplib
19458striplib=$lt_striplib
19459
19460# Dependencies to place before the objects being linked to create a
19461# shared library.
19462predep_objects=$lt_predep_objects_GCJ
19463
19464# Dependencies to place after the objects being linked to create a
19465# shared library.
19466postdep_objects=$lt_postdep_objects_GCJ
19467
19468# Dependencies to place before the objects being linked to create a
19469# shared library.
19470predeps=$lt_predeps_GCJ
19471
19472# Dependencies to place after the objects being linked to create a
19473# shared library.
19474postdeps=$lt_postdeps_GCJ
19475
19476# The directories searched by this compiler when creating a shared
19477# library
19478compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19479
19480# The library search path used internally by the compiler when linking
19481# a shared library.
19482compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19483
19484# Method to check whether dependent libraries are shared objects.
19485deplibs_check_method=$lt_deplibs_check_method
19486
19487# Command to use when deplibs_check_method == file_magic.
19488file_magic_cmd=$lt_file_magic_cmd
19489
19490# Flag that allows shared libraries with undefined symbols to be built.
19491allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19492
19493# Flag that forces no undefined symbols.
19494no_undefined_flag=$lt_no_undefined_flag_GCJ
19495
19496# Commands used to finish a libtool library installation in a directory.
19497finish_cmds=$lt_finish_cmds
19498
19499# Same as above, but a single script fragment to be evaled but not shown.
19500finish_eval=$lt_finish_eval
19501
19502# Take the output of nm and produce a listing of raw symbols and C names.
19503global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19504
19505# Transform the output of nm in a proper C declaration
19506global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19507
19508# Transform the output of nm in a C name address pair
19509global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19510
19511# This is the shared library runtime path variable.
19512runpath_var=$runpath_var
19513
19514# This is the shared library path variable.
19515shlibpath_var=$shlibpath_var
19516
19517# Is shlibpath searched before the hard-coded library search path?
19518shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19519
19520# How to hardcode a shared library path into an executable.
19521hardcode_action=$hardcode_action_GCJ
19522
19523# Whether we should hardcode library paths into libraries.
19524hardcode_into_libs=$hardcode_into_libs
19525
19526# Flag to hardcode \$libdir into a binary during linking.
19527# This must work even if \$libdir does not exist.
19528hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19529
19530# If ld is used when linking, flag to hardcode \$libdir into
19531# a binary during linking. This must work even if \$libdir does
19532# not exist.
19533hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19534
19535# Whether we need a single -rpath flag with a separated argument.
19536hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19537
19538# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19539# resulting binary.
19540hardcode_direct=$hardcode_direct_GCJ
19541
19542# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19543# resulting binary.
19544hardcode_minus_L=$hardcode_minus_L_GCJ
19545
19546# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19547# the resulting binary.
19548hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19549
19550# Set to yes if building a shared library automatically hardcodes DIR into the library
19551# and all subsequent libraries and executables linked against it.
19552hardcode_automatic=$hardcode_automatic_GCJ
19553
19554# Variables whose values should be saved in libtool wrapper scripts and
19555# restored at relink time.
19556variables_saved_for_relink="$variables_saved_for_relink"
19557
19558# Whether libtool must link a program against all its dependency libraries.
19559link_all_deplibs=$link_all_deplibs_GCJ
19560
19561# Compile-time system search path for libraries
19562sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19563
19564# Run-time system search path for libraries
19565sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19566
19567# Fix the shell variable \$srcfile for the compiler.
19568fix_srcfile_path=$lt_fix_srcfile_path
19569
19570# Set to yes if exported symbols are required.
19571always_export_symbols=$always_export_symbols_GCJ
19572
19573# The commands to list exported symbols.
19574export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19575
19576# The commands to extract the exported symbol list from a shared archive.
19577extract_expsyms_cmds=$lt_extract_expsyms_cmds
19578
19579# Symbols that should not be listed in the preloaded symbols.
19580exclude_expsyms=$lt_exclude_expsyms_GCJ
19581
19582# Symbols that must always be exported.
19583include_expsyms=$lt_include_expsyms_GCJ
19584
19585# ### END LIBTOOL TAG CONFIG: $tagname
19586
19587__EOF__
19588
19589
19590else
19591  # If there is no Makefile yet, we rely on a make rule to execute
19592  # `config.status --recheck' to rerun these tests and create the
19593  # libtool script then.
19594  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19595  if test -f "$ltmain_in"; then
19596    test -f Makefile && make "$ltmain"
19597  fi
19598fi
19599
19600
19601ac_ext=c
19602ac_cpp='$CPP $CPPFLAGS'
19603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19605ac_compiler_gnu=$ac_cv_c_compiler_gnu
19606
19607CC="$lt_save_CC"
19608
19609	else
19610	  tagname=""
19611	fi
19612	;;
19613
19614      RC)
19615
19616
19617# Source file extension for RC test sources.
19618ac_ext=rc
19619
19620# Object file extension for compiled RC test sources.
19621objext=o
19622objext_RC=$objext
19623
19624# Code to be used in simple compile tests
19625lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19626
19627# Code to be used in simple link tests
19628lt_simple_link_test_code="$lt_simple_compile_test_code"
19629
19630# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19631
19632# If no C compiler was specified, use CC.
19633LTCC=${LTCC-"$CC"}
19634
19635# If no C compiler flags were specified, use CFLAGS.
19636LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19637
19638# Allow CC to be a program name with arguments.
19639compiler=$CC
19640
19641
19642# save warnings/boilerplate of simple test code
19643ac_outfile=conftest.$ac_objext
19644echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19645eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19646_lt_compiler_boilerplate=`cat conftest.err`
19647$rm conftest*
19648
19649ac_outfile=conftest.$ac_objext
19650echo "$lt_simple_link_test_code" >conftest.$ac_ext
19651eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19652_lt_linker_boilerplate=`cat conftest.err`
19653$rm -r conftest*
19654
19655
19656# Allow CC to be a program name with arguments.
19657lt_save_CC="$CC"
19658CC=${RC-"windres"}
19659compiler=$CC
19660compiler_RC=$CC
19661for cc_temp in $compiler""; do
19662  case $cc_temp in
19663    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19664    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19665    \-*) ;;
19666    *) break;;
19667  esac
19668done
19669cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19670
19671lt_cv_prog_compiler_c_o_RC=yes
19672
19673# The else clause should only fire when bootstrapping the
19674# libtool distribution, otherwise you forgot to ship ltmain.sh
19675# with your package, and you will get complaints that there are
19676# no rules to generate ltmain.sh.
19677if test -f "$ltmain"; then
19678  # See if we are running on zsh, and set the options which allow our commands through
19679  # without removal of \ escapes.
19680  if test -n "${ZSH_VERSION+set}" ; then
19681    setopt NO_GLOB_SUBST
19682  fi
19683  # Now quote all the things that may contain metacharacters while being
19684  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19685  # variables and quote the copies for generation of the libtool script.
19686  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19687    SED SHELL STRIP \
19688    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19689    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19690    deplibs_check_method reload_flag reload_cmds need_locks \
19691    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19692    lt_cv_sys_global_symbol_to_c_name_address \
19693    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19694    old_postinstall_cmds old_postuninstall_cmds \
19695    compiler_RC \
19696    CC_RC \
19697    LD_RC \
19698    lt_prog_compiler_wl_RC \
19699    lt_prog_compiler_pic_RC \
19700    lt_prog_compiler_static_RC \
19701    lt_prog_compiler_no_builtin_flag_RC \
19702    export_dynamic_flag_spec_RC \
19703    thread_safe_flag_spec_RC \
19704    whole_archive_flag_spec_RC \
19705    enable_shared_with_static_runtimes_RC \
19706    old_archive_cmds_RC \
19707    old_archive_from_new_cmds_RC \
19708    predep_objects_RC \
19709    postdep_objects_RC \
19710    predeps_RC \
19711    postdeps_RC \
19712    compiler_lib_search_path_RC \
19713    compiler_lib_search_dirs_RC \
19714    archive_cmds_RC \
19715    archive_expsym_cmds_RC \
19716    postinstall_cmds_RC \
19717    postuninstall_cmds_RC \
19718    old_archive_from_expsyms_cmds_RC \
19719    allow_undefined_flag_RC \
19720    no_undefined_flag_RC \
19721    export_symbols_cmds_RC \
19722    hardcode_libdir_flag_spec_RC \
19723    hardcode_libdir_flag_spec_ld_RC \
19724    hardcode_libdir_separator_RC \
19725    hardcode_automatic_RC \
19726    module_cmds_RC \
19727    module_expsym_cmds_RC \
19728    lt_cv_prog_compiler_c_o_RC \
19729    fix_srcfile_path_RC \
19730    exclude_expsyms_RC \
19731    include_expsyms_RC; do
19732
19733    case $var in
19734    old_archive_cmds_RC | \
19735    old_archive_from_new_cmds_RC | \
19736    archive_cmds_RC | \
19737    archive_expsym_cmds_RC | \
19738    module_cmds_RC | \
19739    module_expsym_cmds_RC | \
19740    old_archive_from_expsyms_cmds_RC | \
19741    export_symbols_cmds_RC | \
19742    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19743    postinstall_cmds | postuninstall_cmds | \
19744    old_postinstall_cmds | old_postuninstall_cmds | \
19745    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19746      # Double-quote double-evaled strings.
19747      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19748      ;;
19749    *)
19750      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19751      ;;
19752    esac
19753  done
19754
19755  case $lt_echo in
19756  *'\$0 --fallback-echo"')
19757    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19758    ;;
19759  esac
19760
19761cfgfile="$ofile"
19762
19763  cat <<__EOF__ >> "$cfgfile"
19764# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19765
19766# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19767
19768# Shell to use when invoking shell scripts.
19769SHELL=$lt_SHELL
19770
19771# Whether or not to build shared libraries.
19772build_libtool_libs=$enable_shared
19773
19774# Whether or not to build static libraries.
19775build_old_libs=$enable_static
19776
19777# Whether or not to add -lc for building shared libraries.
19778build_libtool_need_lc=$archive_cmds_need_lc_RC
19779
19780# Whether or not to disallow shared libs when runtime libs are static
19781allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19782
19783# Whether or not to optimize for fast installation.
19784fast_install=$enable_fast_install
19785
19786# The host system.
19787host_alias=$host_alias
19788host=$host
19789host_os=$host_os
19790
19791# The build system.
19792build_alias=$build_alias
19793build=$build
19794build_os=$build_os
19795
19796# An echo program that does not interpret backslashes.
19797echo=$lt_echo
19798
19799# The archiver.
19800AR=$lt_AR
19801AR_FLAGS=$lt_AR_FLAGS
19802
19803# A C compiler.
19804LTCC=$lt_LTCC
19805
19806# LTCC compiler flags.
19807LTCFLAGS=$lt_LTCFLAGS
19808
19809# A language-specific compiler.
19810CC=$lt_compiler_RC
19811
19812# Is the compiler the GNU C compiler?
19813with_gcc=$GCC_RC
19814
19815# An ERE matcher.
19816EGREP=$lt_EGREP
19817
19818# The linker used to build libraries.
19819LD=$lt_LD_RC
19820
19821# Whether we need hard or soft links.
19822LN_S=$lt_LN_S
19823
19824# A BSD-compatible nm program.
19825NM=$lt_NM
19826
19827# A symbol stripping program
19828STRIP=$lt_STRIP
19829
19830# Used to examine libraries when file_magic_cmd begins "file"
19831MAGIC_CMD=$MAGIC_CMD
19832
19833# Used on cygwin: DLL creation program.
19834DLLTOOL="$DLLTOOL"
19835
19836# Used on cygwin: object dumper.
19837OBJDUMP="$OBJDUMP"
19838
19839# Used on cygwin: assembler.
19840AS="$AS"
19841
19842# The name of the directory that contains temporary libtool files.
19843objdir=$objdir
19844
19845# How to create reloadable object files.
19846reload_flag=$lt_reload_flag
19847reload_cmds=$lt_reload_cmds
19848
19849# How to pass a linker flag through the compiler.
19850wl=$lt_lt_prog_compiler_wl_RC
19851
19852# Object file suffix (normally "o").
19853objext="$ac_objext"
19854
19855# Old archive suffix (normally "a").
19856libext="$libext"
19857
19858# Shared library suffix (normally ".so").
19859shrext_cmds='$shrext_cmds'
19860
19861# Executable file suffix (normally "").
19862exeext="$exeext"
19863
19864# Additional compiler flags for building library objects.
19865pic_flag=$lt_lt_prog_compiler_pic_RC
19866pic_mode=$pic_mode
19867
19868# What is the maximum length of a command?
19869max_cmd_len=$lt_cv_sys_max_cmd_len
19870
19871# Does compiler simultaneously support -c and -o options?
19872compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19873
19874# Must we lock files when doing compilation?
19875need_locks=$lt_need_locks
19876
19877# Do we need the lib prefix for modules?
19878need_lib_prefix=$need_lib_prefix
19879
19880# Do we need a version for libraries?
19881need_version=$need_version
19882
19883# Whether dlopen is supported.
19884dlopen_support=$enable_dlopen
19885
19886# Whether dlopen of programs is supported.
19887dlopen_self=$enable_dlopen_self
19888
19889# Whether dlopen of statically linked programs is supported.
19890dlopen_self_static=$enable_dlopen_self_static
19891
19892# Compiler flag to prevent dynamic linking.
19893link_static_flag=$lt_lt_prog_compiler_static_RC
19894
19895# Compiler flag to turn off builtin functions.
19896no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19897
19898# Compiler flag to allow reflexive dlopens.
19899export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19900
19901# Compiler flag to generate shared objects directly from archives.
19902whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19903
19904# Compiler flag to generate thread-safe objects.
19905thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19906
19907# Library versioning type.
19908version_type=$version_type
19909
19910# Format of library name prefix.
19911libname_spec=$lt_libname_spec
19912
19913# List of archive names.  First name is the real one, the rest are links.
19914# The last name is the one that the linker finds with -lNAME.
19915library_names_spec=$lt_library_names_spec
19916
19917# The coded name of the library, if different from the real name.
19918soname_spec=$lt_soname_spec
19919
19920# Commands used to build and install an old-style archive.
19921RANLIB=$lt_RANLIB
19922old_archive_cmds=$lt_old_archive_cmds_RC
19923old_postinstall_cmds=$lt_old_postinstall_cmds
19924old_postuninstall_cmds=$lt_old_postuninstall_cmds
19925
19926# Create an old-style archive from a shared archive.
19927old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19928
19929# Create a temporary old-style archive to link instead of a shared archive.
19930old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19931
19932# Commands used to build and install a shared archive.
19933archive_cmds=$lt_archive_cmds_RC
19934archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19935postinstall_cmds=$lt_postinstall_cmds
19936postuninstall_cmds=$lt_postuninstall_cmds
19937
19938# Commands used to build a loadable module (assumed same as above if empty)
19939module_cmds=$lt_module_cmds_RC
19940module_expsym_cmds=$lt_module_expsym_cmds_RC
19941
19942# Commands to strip libraries.
19943old_striplib=$lt_old_striplib
19944striplib=$lt_striplib
19945
19946# Dependencies to place before the objects being linked to create a
19947# shared library.
19948predep_objects=$lt_predep_objects_RC
19949
19950# Dependencies to place after the objects being linked to create a
19951# shared library.
19952postdep_objects=$lt_postdep_objects_RC
19953
19954# Dependencies to place before the objects being linked to create a
19955# shared library.
19956predeps=$lt_predeps_RC
19957
19958# Dependencies to place after the objects being linked to create a
19959# shared library.
19960postdeps=$lt_postdeps_RC
19961
19962# The directories searched by this compiler when creating a shared
19963# library
19964compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19965
19966# The library search path used internally by the compiler when linking
19967# a shared library.
19968compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19969
19970# Method to check whether dependent libraries are shared objects.
19971deplibs_check_method=$lt_deplibs_check_method
19972
19973# Command to use when deplibs_check_method == file_magic.
19974file_magic_cmd=$lt_file_magic_cmd
19975
19976# Flag that allows shared libraries with undefined symbols to be built.
19977allow_undefined_flag=$lt_allow_undefined_flag_RC
19978
19979# Flag that forces no undefined symbols.
19980no_undefined_flag=$lt_no_undefined_flag_RC
19981
19982# Commands used to finish a libtool library installation in a directory.
19983finish_cmds=$lt_finish_cmds
19984
19985# Same as above, but a single script fragment to be evaled but not shown.
19986finish_eval=$lt_finish_eval
19987
19988# Take the output of nm and produce a listing of raw symbols and C names.
19989global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19990
19991# Transform the output of nm in a proper C declaration
19992global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19993
19994# Transform the output of nm in a C name address pair
19995global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19996
19997# This is the shared library runtime path variable.
19998runpath_var=$runpath_var
19999
20000# This is the shared library path variable.
20001shlibpath_var=$shlibpath_var
20002
20003# Is shlibpath searched before the hard-coded library search path?
20004shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20005
20006# How to hardcode a shared library path into an executable.
20007hardcode_action=$hardcode_action_RC
20008
20009# Whether we should hardcode library paths into libraries.
20010hardcode_into_libs=$hardcode_into_libs
20011
20012# Flag to hardcode \$libdir into a binary during linking.
20013# This must work even if \$libdir does not exist.
20014hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20015
20016# If ld is used when linking, flag to hardcode \$libdir into
20017# a binary during linking. This must work even if \$libdir does
20018# not exist.
20019hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20020
20021# Whether we need a single -rpath flag with a separated argument.
20022hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20023
20024# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20025# resulting binary.
20026hardcode_direct=$hardcode_direct_RC
20027
20028# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20029# resulting binary.
20030hardcode_minus_L=$hardcode_minus_L_RC
20031
20032# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20033# the resulting binary.
20034hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20035
20036# Set to yes if building a shared library automatically hardcodes DIR into the library
20037# and all subsequent libraries and executables linked against it.
20038hardcode_automatic=$hardcode_automatic_RC
20039
20040# Variables whose values should be saved in libtool wrapper scripts and
20041# restored at relink time.
20042variables_saved_for_relink="$variables_saved_for_relink"
20043
20044# Whether libtool must link a program against all its dependency libraries.
20045link_all_deplibs=$link_all_deplibs_RC
20046
20047# Compile-time system search path for libraries
20048sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20049
20050# Run-time system search path for libraries
20051sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20052
20053# Fix the shell variable \$srcfile for the compiler.
20054fix_srcfile_path=$lt_fix_srcfile_path
20055
20056# Set to yes if exported symbols are required.
20057always_export_symbols=$always_export_symbols_RC
20058
20059# The commands to list exported symbols.
20060export_symbols_cmds=$lt_export_symbols_cmds_RC
20061
20062# The commands to extract the exported symbol list from a shared archive.
20063extract_expsyms_cmds=$lt_extract_expsyms_cmds
20064
20065# Symbols that should not be listed in the preloaded symbols.
20066exclude_expsyms=$lt_exclude_expsyms_RC
20067
20068# Symbols that must always be exported.
20069include_expsyms=$lt_include_expsyms_RC
20070
20071# ### END LIBTOOL TAG CONFIG: $tagname
20072
20073__EOF__
20074
20075
20076else
20077  # If there is no Makefile yet, we rely on a make rule to execute
20078  # `config.status --recheck' to rerun these tests and create the
20079  # libtool script then.
20080  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20081  if test -f "$ltmain_in"; then
20082    test -f Makefile && make "$ltmain"
20083  fi
20084fi
20085
20086
20087ac_ext=c
20088ac_cpp='$CPP $CPPFLAGS'
20089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20091ac_compiler_gnu=$ac_cv_c_compiler_gnu
20092
20093CC="$lt_save_CC"
20094
20095	;;
20096
20097      *)
20098	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20099echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20100   { (exit 1); exit 1; }; }
20101	;;
20102      esac
20103
20104      # Append the new tag name to the list of available tags.
20105      if test -n "$tagname" ; then
20106      available_tags="$available_tags $tagname"
20107    fi
20108    fi
20109  done
20110  IFS="$lt_save_ifs"
20111
20112  # Now substitute the updated list of available tags.
20113  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20114    mv "${ofile}T" "$ofile"
20115    chmod +x "$ofile"
20116  else
20117    rm -f "${ofile}T"
20118    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20119echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20120   { (exit 1); exit 1; }; }
20121  fi
20122fi
20123
20124
20125
20126# This can be used to rebuild libtool when needed
20127LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20128
20129# Always use our own libtool.
20130LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20131
20132# Prevent multiple expansion
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151
20152
20153ac_ext=c
20154ac_cpp='$CPP $CPPFLAGS'
20155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20157ac_compiler_gnu=$ac_cv_c_compiler_gnu
20158if test -n "$ac_tool_prefix"; then
20159  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20160set dummy ${ac_tool_prefix}gcc; ac_word=$2
20161{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20163if test "${ac_cv_prog_CC+set}" = set; then
20164  echo $ECHO_N "(cached) $ECHO_C" >&6
20165else
20166  if test -n "$CC"; then
20167  ac_cv_prog_CC="$CC" # Let the user override the test.
20168else
20169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20170for as_dir in $PATH
20171do
20172  IFS=$as_save_IFS
20173  test -z "$as_dir" && as_dir=.
20174  for ac_exec_ext in '' $ac_executable_extensions; do
20175  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20176    ac_cv_prog_CC="${ac_tool_prefix}gcc"
20177    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20178    break 2
20179  fi
20180done
20181done
20182IFS=$as_save_IFS
20183
20184fi
20185fi
20186CC=$ac_cv_prog_CC
20187if test -n "$CC"; then
20188  { echo "$as_me:$LINENO: result: $CC" >&5
20189echo "${ECHO_T}$CC" >&6; }
20190else
20191  { echo "$as_me:$LINENO: result: no" >&5
20192echo "${ECHO_T}no" >&6; }
20193fi
20194
20195
20196fi
20197if test -z "$ac_cv_prog_CC"; then
20198  ac_ct_CC=$CC
20199  # Extract the first word of "gcc", so it can be a program name with args.
20200set dummy gcc; ac_word=$2
20201{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20203if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20204  echo $ECHO_N "(cached) $ECHO_C" >&6
20205else
20206  if test -n "$ac_ct_CC"; then
20207  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20208else
20209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20210for as_dir in $PATH
20211do
20212  IFS=$as_save_IFS
20213  test -z "$as_dir" && as_dir=.
20214  for ac_exec_ext in '' $ac_executable_extensions; do
20215  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20216    ac_cv_prog_ac_ct_CC="gcc"
20217    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20218    break 2
20219  fi
20220done
20221done
20222IFS=$as_save_IFS
20223
20224fi
20225fi
20226ac_ct_CC=$ac_cv_prog_ac_ct_CC
20227if test -n "$ac_ct_CC"; then
20228  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20229echo "${ECHO_T}$ac_ct_CC" >&6; }
20230else
20231  { echo "$as_me:$LINENO: result: no" >&5
20232echo "${ECHO_T}no" >&6; }
20233fi
20234
20235  if test "x$ac_ct_CC" = x; then
20236    CC=""
20237  else
20238    case $cross_compiling:$ac_tool_warned in
20239yes:)
20240{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20241whose name does not start with the host triplet.  If you think this
20242configuration is useful to you, please write to autoconf@gnu.org." >&5
20243echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20244whose name does not start with the host triplet.  If you think this
20245configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20246ac_tool_warned=yes ;;
20247esac
20248    CC=$ac_ct_CC
20249  fi
20250else
20251  CC="$ac_cv_prog_CC"
20252fi
20253
20254if test -z "$CC"; then
20255          if test -n "$ac_tool_prefix"; then
20256    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20257set dummy ${ac_tool_prefix}cc; ac_word=$2
20258{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20260if test "${ac_cv_prog_CC+set}" = set; then
20261  echo $ECHO_N "(cached) $ECHO_C" >&6
20262else
20263  if test -n "$CC"; then
20264  ac_cv_prog_CC="$CC" # Let the user override the test.
20265else
20266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20267for as_dir in $PATH
20268do
20269  IFS=$as_save_IFS
20270  test -z "$as_dir" && as_dir=.
20271  for ac_exec_ext in '' $ac_executable_extensions; do
20272  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20273    ac_cv_prog_CC="${ac_tool_prefix}cc"
20274    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20275    break 2
20276  fi
20277done
20278done
20279IFS=$as_save_IFS
20280
20281fi
20282fi
20283CC=$ac_cv_prog_CC
20284if test -n "$CC"; then
20285  { echo "$as_me:$LINENO: result: $CC" >&5
20286echo "${ECHO_T}$CC" >&6; }
20287else
20288  { echo "$as_me:$LINENO: result: no" >&5
20289echo "${ECHO_T}no" >&6; }
20290fi
20291
20292
20293  fi
20294fi
20295if test -z "$CC"; then
20296  # Extract the first word of "cc", so it can be a program name with args.
20297set dummy cc; ac_word=$2
20298{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20300if test "${ac_cv_prog_CC+set}" = set; then
20301  echo $ECHO_N "(cached) $ECHO_C" >&6
20302else
20303  if test -n "$CC"; then
20304  ac_cv_prog_CC="$CC" # Let the user override the test.
20305else
20306  ac_prog_rejected=no
20307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20308for as_dir in $PATH
20309do
20310  IFS=$as_save_IFS
20311  test -z "$as_dir" && as_dir=.
20312  for ac_exec_ext in '' $ac_executable_extensions; do
20313  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20314    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20315       ac_prog_rejected=yes
20316       continue
20317     fi
20318    ac_cv_prog_CC="cc"
20319    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20320    break 2
20321  fi
20322done
20323done
20324IFS=$as_save_IFS
20325
20326if test $ac_prog_rejected = yes; then
20327  # We found a bogon in the path, so make sure we never use it.
20328  set dummy $ac_cv_prog_CC
20329  shift
20330  if test $# != 0; then
20331    # We chose a different compiler from the bogus one.
20332    # However, it has the same basename, so the bogon will be chosen
20333    # first if we set CC to just the basename; use the full file name.
20334    shift
20335    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20336  fi
20337fi
20338fi
20339fi
20340CC=$ac_cv_prog_CC
20341if test -n "$CC"; then
20342  { echo "$as_me:$LINENO: result: $CC" >&5
20343echo "${ECHO_T}$CC" >&6; }
20344else
20345  { echo "$as_me:$LINENO: result: no" >&5
20346echo "${ECHO_T}no" >&6; }
20347fi
20348
20349
20350fi
20351if test -z "$CC"; then
20352  if test -n "$ac_tool_prefix"; then
20353  for ac_prog in cl.exe
20354  do
20355    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20356set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20357{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20359if test "${ac_cv_prog_CC+set}" = set; then
20360  echo $ECHO_N "(cached) $ECHO_C" >&6
20361else
20362  if test -n "$CC"; then
20363  ac_cv_prog_CC="$CC" # Let the user override the test.
20364else
20365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20366for as_dir in $PATH
20367do
20368  IFS=$as_save_IFS
20369  test -z "$as_dir" && as_dir=.
20370  for ac_exec_ext in '' $ac_executable_extensions; do
20371  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20372    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20373    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20374    break 2
20375  fi
20376done
20377done
20378IFS=$as_save_IFS
20379
20380fi
20381fi
20382CC=$ac_cv_prog_CC
20383if test -n "$CC"; then
20384  { echo "$as_me:$LINENO: result: $CC" >&5
20385echo "${ECHO_T}$CC" >&6; }
20386else
20387  { echo "$as_me:$LINENO: result: no" >&5
20388echo "${ECHO_T}no" >&6; }
20389fi
20390
20391
20392    test -n "$CC" && break
20393  done
20394fi
20395if test -z "$CC"; then
20396  ac_ct_CC=$CC
20397  for ac_prog in cl.exe
20398do
20399  # Extract the first word of "$ac_prog", so it can be a program name with args.
20400set dummy $ac_prog; ac_word=$2
20401{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20403if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20404  echo $ECHO_N "(cached) $ECHO_C" >&6
20405else
20406  if test -n "$ac_ct_CC"; then
20407  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20408else
20409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20410for as_dir in $PATH
20411do
20412  IFS=$as_save_IFS
20413  test -z "$as_dir" && as_dir=.
20414  for ac_exec_ext in '' $ac_executable_extensions; do
20415  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20416    ac_cv_prog_ac_ct_CC="$ac_prog"
20417    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20418    break 2
20419  fi
20420done
20421done
20422IFS=$as_save_IFS
20423
20424fi
20425fi
20426ac_ct_CC=$ac_cv_prog_ac_ct_CC
20427if test -n "$ac_ct_CC"; then
20428  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20429echo "${ECHO_T}$ac_ct_CC" >&6; }
20430else
20431  { echo "$as_me:$LINENO: result: no" >&5
20432echo "${ECHO_T}no" >&6; }
20433fi
20434
20435
20436  test -n "$ac_ct_CC" && break
20437done
20438
20439  if test "x$ac_ct_CC" = x; then
20440    CC=""
20441  else
20442    case $cross_compiling:$ac_tool_warned in
20443yes:)
20444{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20445whose name does not start with the host triplet.  If you think this
20446configuration is useful to you, please write to autoconf@gnu.org." >&5
20447echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20448whose name does not start with the host triplet.  If you think this
20449configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20450ac_tool_warned=yes ;;
20451esac
20452    CC=$ac_ct_CC
20453  fi
20454fi
20455
20456fi
20457
20458
20459test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20460See \`config.log' for more details." >&5
20461echo "$as_me: error: no acceptable C compiler found in \$PATH
20462See \`config.log' for more details." >&2;}
20463   { (exit 1); exit 1; }; }
20464
20465# Provide some information about the compiler.
20466echo "$as_me:$LINENO: checking for C compiler version" >&5
20467ac_compiler=`set X $ac_compile; echo $2`
20468{ (ac_try="$ac_compiler --version >&5"
20469case "(($ac_try" in
20470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471  *) ac_try_echo=$ac_try;;
20472esac
20473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20474  (eval "$ac_compiler --version >&5") 2>&5
20475  ac_status=$?
20476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477  (exit $ac_status); }
20478{ (ac_try="$ac_compiler -v >&5"
20479case "(($ac_try" in
20480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481  *) ac_try_echo=$ac_try;;
20482esac
20483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484  (eval "$ac_compiler -v >&5") 2>&5
20485  ac_status=$?
20486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487  (exit $ac_status); }
20488{ (ac_try="$ac_compiler -V >&5"
20489case "(($ac_try" in
20490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491  *) ac_try_echo=$ac_try;;
20492esac
20493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494  (eval "$ac_compiler -V >&5") 2>&5
20495  ac_status=$?
20496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497  (exit $ac_status); }
20498
20499{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20500echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20501if test "${ac_cv_c_compiler_gnu+set}" = set; then
20502  echo $ECHO_N "(cached) $ECHO_C" >&6
20503else
20504  cat >conftest.$ac_ext <<_ACEOF
20505/* confdefs.h.  */
20506_ACEOF
20507cat confdefs.h >>conftest.$ac_ext
20508cat >>conftest.$ac_ext <<_ACEOF
20509/* end confdefs.h.  */
20510
20511int
20512main ()
20513{
20514#ifndef __GNUC__
20515       choke me
20516#endif
20517
20518  ;
20519  return 0;
20520}
20521_ACEOF
20522rm -f conftest.$ac_objext
20523if { (ac_try="$ac_compile"
20524case "(($ac_try" in
20525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526  *) ac_try_echo=$ac_try;;
20527esac
20528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20529  (eval "$ac_compile") 2>conftest.er1
20530  ac_status=$?
20531  grep -v '^ *+' conftest.er1 >conftest.err
20532  rm -f conftest.er1
20533  cat conftest.err >&5
20534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535  (exit $ac_status); } && {
20536	 test -z "$ac_c_werror_flag" ||
20537	 test ! -s conftest.err
20538       } && test -s conftest.$ac_objext; then
20539  ac_compiler_gnu=yes
20540else
20541  echo "$as_me: failed program was:" >&5
20542sed 's/^/| /' conftest.$ac_ext >&5
20543
20544	ac_compiler_gnu=no
20545fi
20546
20547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20548ac_cv_c_compiler_gnu=$ac_compiler_gnu
20549
20550fi
20551{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20552echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20553GCC=`test $ac_compiler_gnu = yes && echo yes`
20554ac_test_CFLAGS=${CFLAGS+set}
20555ac_save_CFLAGS=$CFLAGS
20556{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20557echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20558if test "${ac_cv_prog_cc_g+set}" = set; then
20559  echo $ECHO_N "(cached) $ECHO_C" >&6
20560else
20561  ac_save_c_werror_flag=$ac_c_werror_flag
20562   ac_c_werror_flag=yes
20563   ac_cv_prog_cc_g=no
20564   CFLAGS="-g"
20565   cat >conftest.$ac_ext <<_ACEOF
20566/* confdefs.h.  */
20567_ACEOF
20568cat confdefs.h >>conftest.$ac_ext
20569cat >>conftest.$ac_ext <<_ACEOF
20570/* end confdefs.h.  */
20571
20572int
20573main ()
20574{
20575
20576  ;
20577  return 0;
20578}
20579_ACEOF
20580rm -f conftest.$ac_objext
20581if { (ac_try="$ac_compile"
20582case "(($ac_try" in
20583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584  *) ac_try_echo=$ac_try;;
20585esac
20586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587  (eval "$ac_compile") 2>conftest.er1
20588  ac_status=$?
20589  grep -v '^ *+' conftest.er1 >conftest.err
20590  rm -f conftest.er1
20591  cat conftest.err >&5
20592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593  (exit $ac_status); } && {
20594	 test -z "$ac_c_werror_flag" ||
20595	 test ! -s conftest.err
20596       } && test -s conftest.$ac_objext; then
20597  ac_cv_prog_cc_g=yes
20598else
20599  echo "$as_me: failed program was:" >&5
20600sed 's/^/| /' conftest.$ac_ext >&5
20601
20602	CFLAGS=""
20603      cat >conftest.$ac_ext <<_ACEOF
20604/* confdefs.h.  */
20605_ACEOF
20606cat confdefs.h >>conftest.$ac_ext
20607cat >>conftest.$ac_ext <<_ACEOF
20608/* end confdefs.h.  */
20609
20610int
20611main ()
20612{
20613
20614  ;
20615  return 0;
20616}
20617_ACEOF
20618rm -f conftest.$ac_objext
20619if { (ac_try="$ac_compile"
20620case "(($ac_try" in
20621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20622  *) ac_try_echo=$ac_try;;
20623esac
20624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20625  (eval "$ac_compile") 2>conftest.er1
20626  ac_status=$?
20627  grep -v '^ *+' conftest.er1 >conftest.err
20628  rm -f conftest.er1
20629  cat conftest.err >&5
20630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631  (exit $ac_status); } && {
20632	 test -z "$ac_c_werror_flag" ||
20633	 test ! -s conftest.err
20634       } && test -s conftest.$ac_objext; then
20635  :
20636else
20637  echo "$as_me: failed program was:" >&5
20638sed 's/^/| /' conftest.$ac_ext >&5
20639
20640	ac_c_werror_flag=$ac_save_c_werror_flag
20641	 CFLAGS="-g"
20642	 cat >conftest.$ac_ext <<_ACEOF
20643/* confdefs.h.  */
20644_ACEOF
20645cat confdefs.h >>conftest.$ac_ext
20646cat >>conftest.$ac_ext <<_ACEOF
20647/* end confdefs.h.  */
20648
20649int
20650main ()
20651{
20652
20653  ;
20654  return 0;
20655}
20656_ACEOF
20657rm -f conftest.$ac_objext
20658if { (ac_try="$ac_compile"
20659case "(($ac_try" in
20660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20661  *) ac_try_echo=$ac_try;;
20662esac
20663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20664  (eval "$ac_compile") 2>conftest.er1
20665  ac_status=$?
20666  grep -v '^ *+' conftest.er1 >conftest.err
20667  rm -f conftest.er1
20668  cat conftest.err >&5
20669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670  (exit $ac_status); } && {
20671	 test -z "$ac_c_werror_flag" ||
20672	 test ! -s conftest.err
20673       } && test -s conftest.$ac_objext; then
20674  ac_cv_prog_cc_g=yes
20675else
20676  echo "$as_me: failed program was:" >&5
20677sed 's/^/| /' conftest.$ac_ext >&5
20678
20679
20680fi
20681
20682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20683fi
20684
20685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20686fi
20687
20688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20689   ac_c_werror_flag=$ac_save_c_werror_flag
20690fi
20691{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20692echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20693if test "$ac_test_CFLAGS" = set; then
20694  CFLAGS=$ac_save_CFLAGS
20695elif test $ac_cv_prog_cc_g = yes; then
20696  if test "$GCC" = yes; then
20697    CFLAGS="-g -O2"
20698  else
20699    CFLAGS="-g"
20700  fi
20701else
20702  if test "$GCC" = yes; then
20703    CFLAGS="-O2"
20704  else
20705    CFLAGS=
20706  fi
20707fi
20708{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20709echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20710if test "${ac_cv_prog_cc_c89+set}" = set; then
20711  echo $ECHO_N "(cached) $ECHO_C" >&6
20712else
20713  ac_cv_prog_cc_c89=no
20714ac_save_CC=$CC
20715cat >conftest.$ac_ext <<_ACEOF
20716/* confdefs.h.  */
20717_ACEOF
20718cat confdefs.h >>conftest.$ac_ext
20719cat >>conftest.$ac_ext <<_ACEOF
20720/* end confdefs.h.  */
20721#include <stdarg.h>
20722#include <stdio.h>
20723#include <sys/types.h>
20724#include <sys/stat.h>
20725/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20726struct buf { int x; };
20727FILE * (*rcsopen) (struct buf *, struct stat *, int);
20728static char *e (p, i)
20729     char **p;
20730     int i;
20731{
20732  return p[i];
20733}
20734static char *f (char * (*g) (char **, int), char **p, ...)
20735{
20736  char *s;
20737  va_list v;
20738  va_start (v,p);
20739  s = g (p, va_arg (v,int));
20740  va_end (v);
20741  return s;
20742}
20743
20744/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20745   function prototypes and stuff, but not '\xHH' hex character constants.
20746   These don't provoke an error unfortunately, instead are silently treated
20747   as 'x'.  The following induces an error, until -std is added to get
20748   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20749   array size at least.  It's necessary to write '\x00'==0 to get something
20750   that's true only with -std.  */
20751int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20752
20753/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20754   inside strings and character constants.  */
20755#define FOO(x) 'x'
20756int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20757
20758int test (int i, double x);
20759struct s1 {int (*f) (int a);};
20760struct s2 {int (*f) (double a);};
20761int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20762int argc;
20763char **argv;
20764int
20765main ()
20766{
20767return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20768  ;
20769  return 0;
20770}
20771_ACEOF
20772for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20773	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20774do
20775  CC="$ac_save_CC $ac_arg"
20776  rm -f conftest.$ac_objext
20777if { (ac_try="$ac_compile"
20778case "(($ac_try" in
20779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780  *) ac_try_echo=$ac_try;;
20781esac
20782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20783  (eval "$ac_compile") 2>conftest.er1
20784  ac_status=$?
20785  grep -v '^ *+' conftest.er1 >conftest.err
20786  rm -f conftest.er1
20787  cat conftest.err >&5
20788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789  (exit $ac_status); } && {
20790	 test -z "$ac_c_werror_flag" ||
20791	 test ! -s conftest.err
20792       } && test -s conftest.$ac_objext; then
20793  ac_cv_prog_cc_c89=$ac_arg
20794else
20795  echo "$as_me: failed program was:" >&5
20796sed 's/^/| /' conftest.$ac_ext >&5
20797
20798
20799fi
20800
20801rm -f core conftest.err conftest.$ac_objext
20802  test "x$ac_cv_prog_cc_c89" != "xno" && break
20803done
20804rm -f conftest.$ac_ext
20805CC=$ac_save_CC
20806
20807fi
20808# AC_CACHE_VAL
20809case "x$ac_cv_prog_cc_c89" in
20810  x)
20811    { echo "$as_me:$LINENO: result: none needed" >&5
20812echo "${ECHO_T}none needed" >&6; } ;;
20813  xno)
20814    { echo "$as_me:$LINENO: result: unsupported" >&5
20815echo "${ECHO_T}unsupported" >&6; } ;;
20816  *)
20817    CC="$CC $ac_cv_prog_cc_c89"
20818    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20819echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20820esac
20821
20822
20823ac_ext=c
20824ac_cpp='$CPP $CPPFLAGS'
20825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20827ac_compiler_gnu=$ac_cv_c_compiler_gnu
20828
20829depcc="$CC"   am_compiler_list=
20830
20831{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20832echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20833if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20834  echo $ECHO_N "(cached) $ECHO_C" >&6
20835else
20836  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20837  # We make a subdir and do the tests there.  Otherwise we can end up
20838  # making bogus files that we don't know about and never remove.  For
20839  # instance it was reported that on HP-UX the gcc test will end up
20840  # making a dummy file named `D' -- because `-MD' means `put the output
20841  # in D'.
20842  mkdir conftest.dir
20843  # Copy depcomp to subdir because otherwise we won't find it if we're
20844  # using a relative directory.
20845  cp "$am_depcomp" conftest.dir
20846  cd conftest.dir
20847  # We will build objects and dependencies in a subdirectory because
20848  # it helps to detect inapplicable dependency modes.  For instance
20849  # both Tru64's cc and ICC support -MD to output dependencies as a
20850  # side effect of compilation, but ICC will put the dependencies in
20851  # the current directory while Tru64 will put them in the object
20852  # directory.
20853  mkdir sub
20854
20855  am_cv_CC_dependencies_compiler_type=none
20856  if test "$am_compiler_list" = ""; then
20857     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20858  fi
20859  for depmode in $am_compiler_list; do
20860    # Setup a source with many dependencies, because some compilers
20861    # like to wrap large dependency lists on column 80 (with \), and
20862    # we should not choose a depcomp mode which is confused by this.
20863    #
20864    # We need to recreate these files for each test, as the compiler may
20865    # overwrite some of them when testing with obscure command lines.
20866    # This happens at least with the AIX C compiler.
20867    : > sub/conftest.c
20868    for i in 1 2 3 4 5 6; do
20869      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20870      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20871      # Solaris 8's {/usr,}/bin/sh.
20872      touch sub/conftst$i.h
20873    done
20874    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20875
20876    case $depmode in
20877    nosideeffect)
20878      # after this tag, mechanisms are not by side-effect, so they'll
20879      # only be used when explicitly requested
20880      if test "x$enable_dependency_tracking" = xyes; then
20881	continue
20882      else
20883	break
20884      fi
20885      ;;
20886    none) break ;;
20887    esac
20888    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20889    # mode.  It turns out that the SunPro C++ compiler does not properly
20890    # handle `-M -o', and we need to detect this.
20891    if depmode=$depmode \
20892       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20893       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20894       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20895         >/dev/null 2>conftest.err &&
20896       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20897       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20898       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20899      # icc doesn't choke on unknown options, it will just issue warnings
20900      # or remarks (even with -Werror).  So we grep stderr for any message
20901      # that says an option was ignored or not supported.
20902      # When given -MP, icc 7.0 and 7.1 complain thusly:
20903      #   icc: Command line warning: ignoring option '-M'; no argument required
20904      # The diagnosis changed in icc 8.0:
20905      #   icc: Command line remark: option '-MP' not supported
20906      if (grep 'ignoring option' conftest.err ||
20907          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20908        am_cv_CC_dependencies_compiler_type=$depmode
20909        break
20910      fi
20911    fi
20912  done
20913
20914  cd ..
20915  rm -rf conftest.dir
20916else
20917  am_cv_CC_dependencies_compiler_type=none
20918fi
20919
20920fi
20921{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20922echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20923CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20924
20925
20926
20927if
20928  test "x$enable_dependency_tracking" != xno \
20929  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20930  am__fastdepCC_TRUE=
20931  am__fastdepCC_FALSE='#'
20932else
20933  am__fastdepCC_TRUE='#'
20934  am__fastdepCC_FALSE=
20935fi
20936
20937
20938ac_ext=cpp
20939ac_cpp='$CXXCPP $CPPFLAGS'
20940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20943if test -z "$CXX"; then
20944  if test -n "$CCC"; then
20945    CXX=$CCC
20946  else
20947    if test -n "$ac_tool_prefix"; then
20948  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
20949  do
20950    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20951set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20952{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20954if test "${ac_cv_prog_CXX+set}" = set; then
20955  echo $ECHO_N "(cached) $ECHO_C" >&6
20956else
20957  if test -n "$CXX"; then
20958  ac_cv_prog_CXX="$CXX" # Let the user override the test.
20959else
20960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20961for as_dir in $PATH
20962do
20963  IFS=$as_save_IFS
20964  test -z "$as_dir" && as_dir=.
20965  for ac_exec_ext in '' $ac_executable_extensions; do
20966  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20967    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
20968    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20969    break 2
20970  fi
20971done
20972done
20973IFS=$as_save_IFS
20974
20975fi
20976fi
20977CXX=$ac_cv_prog_CXX
20978if test -n "$CXX"; then
20979  { echo "$as_me:$LINENO: result: $CXX" >&5
20980echo "${ECHO_T}$CXX" >&6; }
20981else
20982  { echo "$as_me:$LINENO: result: no" >&5
20983echo "${ECHO_T}no" >&6; }
20984fi
20985
20986
20987    test -n "$CXX" && break
20988  done
20989fi
20990if test -z "$CXX"; then
20991  ac_ct_CXX=$CXX
20992  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
20993do
20994  # Extract the first word of "$ac_prog", so it can be a program name with args.
20995set dummy $ac_prog; ac_word=$2
20996{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20998if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
20999  echo $ECHO_N "(cached) $ECHO_C" >&6
21000else
21001  if test -n "$ac_ct_CXX"; then
21002  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
21003else
21004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21005for as_dir in $PATH
21006do
21007  IFS=$as_save_IFS
21008  test -z "$as_dir" && as_dir=.
21009  for ac_exec_ext in '' $ac_executable_extensions; do
21010  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21011    ac_cv_prog_ac_ct_CXX="$ac_prog"
21012    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21013    break 2
21014  fi
21015done
21016done
21017IFS=$as_save_IFS
21018
21019fi
21020fi
21021ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
21022if test -n "$ac_ct_CXX"; then
21023  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
21024echo "${ECHO_T}$ac_ct_CXX" >&6; }
21025else
21026  { echo "$as_me:$LINENO: result: no" >&5
21027echo "${ECHO_T}no" >&6; }
21028fi
21029
21030
21031  test -n "$ac_ct_CXX" && break
21032done
21033
21034  if test "x$ac_ct_CXX" = x; then
21035    CXX="g++"
21036  else
21037    case $cross_compiling:$ac_tool_warned in
21038yes:)
21039{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21040whose name does not start with the host triplet.  If you think this
21041configuration is useful to you, please write to autoconf@gnu.org." >&5
21042echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21043whose name does not start with the host triplet.  If you think this
21044configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21045ac_tool_warned=yes ;;
21046esac
21047    CXX=$ac_ct_CXX
21048  fi
21049fi
21050
21051  fi
21052fi
21053# Provide some information about the compiler.
21054echo "$as_me:$LINENO: checking for C++ compiler version" >&5
21055ac_compiler=`set X $ac_compile; echo $2`
21056{ (ac_try="$ac_compiler --version >&5"
21057case "(($ac_try" in
21058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21059  *) ac_try_echo=$ac_try;;
21060esac
21061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21062  (eval "$ac_compiler --version >&5") 2>&5
21063  ac_status=$?
21064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065  (exit $ac_status); }
21066{ (ac_try="$ac_compiler -v >&5"
21067case "(($ac_try" in
21068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21069  *) ac_try_echo=$ac_try;;
21070esac
21071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21072  (eval "$ac_compiler -v >&5") 2>&5
21073  ac_status=$?
21074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075  (exit $ac_status); }
21076{ (ac_try="$ac_compiler -V >&5"
21077case "(($ac_try" in
21078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21079  *) ac_try_echo=$ac_try;;
21080esac
21081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21082  (eval "$ac_compiler -V >&5") 2>&5
21083  ac_status=$?
21084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085  (exit $ac_status); }
21086
21087{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
21088echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
21089if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
21090  echo $ECHO_N "(cached) $ECHO_C" >&6
21091else
21092  cat >conftest.$ac_ext <<_ACEOF
21093/* confdefs.h.  */
21094_ACEOF
21095cat confdefs.h >>conftest.$ac_ext
21096cat >>conftest.$ac_ext <<_ACEOF
21097/* end confdefs.h.  */
21098
21099int
21100main ()
21101{
21102#ifndef __GNUC__
21103       choke me
21104#endif
21105
21106  ;
21107  return 0;
21108}
21109_ACEOF
21110rm -f conftest.$ac_objext
21111if { (ac_try="$ac_compile"
21112case "(($ac_try" in
21113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21114  *) ac_try_echo=$ac_try;;
21115esac
21116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21117  (eval "$ac_compile") 2>conftest.er1
21118  ac_status=$?
21119  grep -v '^ *+' conftest.er1 >conftest.err
21120  rm -f conftest.er1
21121  cat conftest.err >&5
21122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123  (exit $ac_status); } && {
21124	 test -z "$ac_cxx_werror_flag" ||
21125	 test ! -s conftest.err
21126       } && test -s conftest.$ac_objext; then
21127  ac_compiler_gnu=yes
21128else
21129  echo "$as_me: failed program was:" >&5
21130sed 's/^/| /' conftest.$ac_ext >&5
21131
21132	ac_compiler_gnu=no
21133fi
21134
21135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21136ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
21137
21138fi
21139{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
21140echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
21141GXX=`test $ac_compiler_gnu = yes && echo yes`
21142ac_test_CXXFLAGS=${CXXFLAGS+set}
21143ac_save_CXXFLAGS=$CXXFLAGS
21144{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
21145echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
21146if test "${ac_cv_prog_cxx_g+set}" = set; then
21147  echo $ECHO_N "(cached) $ECHO_C" >&6
21148else
21149  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
21150   ac_cxx_werror_flag=yes
21151   ac_cv_prog_cxx_g=no
21152   CXXFLAGS="-g"
21153   cat >conftest.$ac_ext <<_ACEOF
21154/* confdefs.h.  */
21155_ACEOF
21156cat confdefs.h >>conftest.$ac_ext
21157cat >>conftest.$ac_ext <<_ACEOF
21158/* end confdefs.h.  */
21159
21160int
21161main ()
21162{
21163
21164  ;
21165  return 0;
21166}
21167_ACEOF
21168rm -f conftest.$ac_objext
21169if { (ac_try="$ac_compile"
21170case "(($ac_try" in
21171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21172  *) ac_try_echo=$ac_try;;
21173esac
21174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21175  (eval "$ac_compile") 2>conftest.er1
21176  ac_status=$?
21177  grep -v '^ *+' conftest.er1 >conftest.err
21178  rm -f conftest.er1
21179  cat conftest.err >&5
21180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181  (exit $ac_status); } && {
21182	 test -z "$ac_cxx_werror_flag" ||
21183	 test ! -s conftest.err
21184       } && test -s conftest.$ac_objext; then
21185  ac_cv_prog_cxx_g=yes
21186else
21187  echo "$as_me: failed program was:" >&5
21188sed 's/^/| /' conftest.$ac_ext >&5
21189
21190	CXXFLAGS=""
21191      cat >conftest.$ac_ext <<_ACEOF
21192/* confdefs.h.  */
21193_ACEOF
21194cat confdefs.h >>conftest.$ac_ext
21195cat >>conftest.$ac_ext <<_ACEOF
21196/* end confdefs.h.  */
21197
21198int
21199main ()
21200{
21201
21202  ;
21203  return 0;
21204}
21205_ACEOF
21206rm -f conftest.$ac_objext
21207if { (ac_try="$ac_compile"
21208case "(($ac_try" in
21209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210  *) ac_try_echo=$ac_try;;
21211esac
21212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213  (eval "$ac_compile") 2>conftest.er1
21214  ac_status=$?
21215  grep -v '^ *+' conftest.er1 >conftest.err
21216  rm -f conftest.er1
21217  cat conftest.err >&5
21218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219  (exit $ac_status); } && {
21220	 test -z "$ac_cxx_werror_flag" ||
21221	 test ! -s conftest.err
21222       } && test -s conftest.$ac_objext; then
21223  :
21224else
21225  echo "$as_me: failed program was:" >&5
21226sed 's/^/| /' conftest.$ac_ext >&5
21227
21228	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
21229	 CXXFLAGS="-g"
21230	 cat >conftest.$ac_ext <<_ACEOF
21231/* confdefs.h.  */
21232_ACEOF
21233cat confdefs.h >>conftest.$ac_ext
21234cat >>conftest.$ac_ext <<_ACEOF
21235/* end confdefs.h.  */
21236
21237int
21238main ()
21239{
21240
21241  ;
21242  return 0;
21243}
21244_ACEOF
21245rm -f conftest.$ac_objext
21246if { (ac_try="$ac_compile"
21247case "(($ac_try" in
21248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21249  *) ac_try_echo=$ac_try;;
21250esac
21251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21252  (eval "$ac_compile") 2>conftest.er1
21253  ac_status=$?
21254  grep -v '^ *+' conftest.er1 >conftest.err
21255  rm -f conftest.er1
21256  cat conftest.err >&5
21257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258  (exit $ac_status); } && {
21259	 test -z "$ac_cxx_werror_flag" ||
21260	 test ! -s conftest.err
21261       } && test -s conftest.$ac_objext; then
21262  ac_cv_prog_cxx_g=yes
21263else
21264  echo "$as_me: failed program was:" >&5
21265sed 's/^/| /' conftest.$ac_ext >&5
21266
21267
21268fi
21269
21270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21271fi
21272
21273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21274fi
21275
21276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21277   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
21278fi
21279{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
21280echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
21281if test "$ac_test_CXXFLAGS" = set; then
21282  CXXFLAGS=$ac_save_CXXFLAGS
21283elif test $ac_cv_prog_cxx_g = yes; then
21284  if test "$GXX" = yes; then
21285    CXXFLAGS="-g -O2"
21286  else
21287    CXXFLAGS="-g"
21288  fi
21289else
21290  if test "$GXX" = yes; then
21291    CXXFLAGS="-O2"
21292  else
21293    CXXFLAGS=
21294  fi
21295fi
21296ac_ext=c
21297ac_cpp='$CPP $CPPFLAGS'
21298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21300ac_compiler_gnu=$ac_cv_c_compiler_gnu
21301
21302depcc="$CXX"  am_compiler_list=
21303
21304{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
21305echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
21306if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
21307  echo $ECHO_N "(cached) $ECHO_C" >&6
21308else
21309  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
21310  # We make a subdir and do the tests there.  Otherwise we can end up
21311  # making bogus files that we don't know about and never remove.  For
21312  # instance it was reported that on HP-UX the gcc test will end up
21313  # making a dummy file named `D' -- because `-MD' means `put the output
21314  # in D'.
21315  mkdir conftest.dir
21316  # Copy depcomp to subdir because otherwise we won't find it if we're
21317  # using a relative directory.
21318  cp "$am_depcomp" conftest.dir
21319  cd conftest.dir
21320  # We will build objects and dependencies in a subdirectory because
21321  # it helps to detect inapplicable dependency modes.  For instance
21322  # both Tru64's cc and ICC support -MD to output dependencies as a
21323  # side effect of compilation, but ICC will put the dependencies in
21324  # the current directory while Tru64 will put them in the object
21325  # directory.
21326  mkdir sub
21327
21328  am_cv_CXX_dependencies_compiler_type=none
21329  if test "$am_compiler_list" = ""; then
21330     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
21331  fi
21332  for depmode in $am_compiler_list; do
21333    # Setup a source with many dependencies, because some compilers
21334    # like to wrap large dependency lists on column 80 (with \), and
21335    # we should not choose a depcomp mode which is confused by this.
21336    #
21337    # We need to recreate these files for each test, as the compiler may
21338    # overwrite some of them when testing with obscure command lines.
21339    # This happens at least with the AIX C compiler.
21340    : > sub/conftest.c
21341    for i in 1 2 3 4 5 6; do
21342      echo '#include "conftst'$i'.h"' >> sub/conftest.c
21343      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
21344      # Solaris 8's {/usr,}/bin/sh.
21345      touch sub/conftst$i.h
21346    done
21347    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
21348
21349    case $depmode in
21350    nosideeffect)
21351      # after this tag, mechanisms are not by side-effect, so they'll
21352      # only be used when explicitly requested
21353      if test "x$enable_dependency_tracking" = xyes; then
21354	continue
21355      else
21356	break
21357      fi
21358      ;;
21359    none) break ;;
21360    esac
21361    # We check with `-c' and `-o' for the sake of the "dashmstdout"
21362    # mode.  It turns out that the SunPro C++ compiler does not properly
21363    # handle `-M -o', and we need to detect this.
21364    if depmode=$depmode \
21365       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
21366       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
21367       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
21368         >/dev/null 2>conftest.err &&
21369       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
21370       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
21371       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
21372      # icc doesn't choke on unknown options, it will just issue warnings
21373      # or remarks (even with -Werror).  So we grep stderr for any message
21374      # that says an option was ignored or not supported.
21375      # When given -MP, icc 7.0 and 7.1 complain thusly:
21376      #   icc: Command line warning: ignoring option '-M'; no argument required
21377      # The diagnosis changed in icc 8.0:
21378      #   icc: Command line remark: option '-MP' not supported
21379      if (grep 'ignoring option' conftest.err ||
21380          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
21381        am_cv_CXX_dependencies_compiler_type=$depmode
21382        break
21383      fi
21384    fi
21385  done
21386
21387  cd ..
21388  rm -rf conftest.dir
21389else
21390  am_cv_CXX_dependencies_compiler_type=none
21391fi
21392
21393fi
21394{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
21395echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
21396CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
21397
21398
21399
21400if
21401  test "x$enable_dependency_tracking" != xno \
21402  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
21403  am__fastdepCXX_TRUE=
21404  am__fastdepCXX_FALSE='#'
21405else
21406  am__fastdepCXX_TRUE='#'
21407  am__fastdepCXX_FALSE=
21408fi
21409
21410
21411{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
21412echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
21413set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
21414if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
21415  echo $ECHO_N "(cached) $ECHO_C" >&6
21416else
21417  cat >conftest.make <<\_ACEOF
21418SHELL = /bin/sh
21419all:
21420	@echo '@@@%%%=$(MAKE)=@@@%%%'
21421_ACEOF
21422# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21423case `${MAKE-make} -f conftest.make 2>/dev/null` in
21424  *@@@%%%=?*=@@@%%%*)
21425    eval ac_cv_prog_make_${ac_make}_set=yes;;
21426  *)
21427    eval ac_cv_prog_make_${ac_make}_set=no;;
21428esac
21429rm -f conftest.make
21430fi
21431if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
21432  { echo "$as_me:$LINENO: result: yes" >&5
21433echo "${ECHO_T}yes" >&6; }
21434  SET_MAKE=
21435else
21436  { echo "$as_me:$LINENO: result: no" >&5
21437echo "${ECHO_T}no" >&6; }
21438  SET_MAKE="MAKE=${MAKE-make}"
21439fi
21440
21441for ac_prog in 'bison -y' byacc
21442do
21443  # Extract the first word of "$ac_prog", so it can be a program name with args.
21444set dummy $ac_prog; ac_word=$2
21445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21447if test "${ac_cv_prog_YACC+set}" = set; then
21448  echo $ECHO_N "(cached) $ECHO_C" >&6
21449else
21450  if test -n "$YACC"; then
21451  ac_cv_prog_YACC="$YACC" # Let the user override the test.
21452else
21453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21454for as_dir in $PATH
21455do
21456  IFS=$as_save_IFS
21457  test -z "$as_dir" && as_dir=.
21458  for ac_exec_ext in '' $ac_executable_extensions; do
21459  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21460    ac_cv_prog_YACC="$ac_prog"
21461    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21462    break 2
21463  fi
21464done
21465done
21466IFS=$as_save_IFS
21467
21468fi
21469fi
21470YACC=$ac_cv_prog_YACC
21471if test -n "$YACC"; then
21472  { echo "$as_me:$LINENO: result: $YACC" >&5
21473echo "${ECHO_T}$YACC" >&6; }
21474else
21475  { echo "$as_me:$LINENO: result: no" >&5
21476echo "${ECHO_T}no" >&6; }
21477fi
21478
21479
21480  test -n "$YACC" && break
21481done
21482test -n "$YACC" || YACC="yacc"
21483
21484# Find a good install program.  We prefer a C program (faster),
21485# so one script is as good as another.  But avoid the broken or
21486# incompatible versions:
21487# SysV /etc/install, /usr/sbin/install
21488# SunOS /usr/etc/install
21489# IRIX /sbin/install
21490# AIX /bin/install
21491# AmigaOS /C/install, which installs bootblocks on floppy discs
21492# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
21493# AFS /usr/afsws/bin/install, which mishandles nonexistent args
21494# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
21495# OS/2's system install, which has a completely different semantic
21496# ./install, which can be erroneously created by make from ./install.sh.
21497{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
21498echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
21499if test -z "$INSTALL"; then
21500if test "${ac_cv_path_install+set}" = set; then
21501  echo $ECHO_N "(cached) $ECHO_C" >&6
21502else
21503  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21504for as_dir in $PATH
21505do
21506  IFS=$as_save_IFS
21507  test -z "$as_dir" && as_dir=.
21508  # Account for people who put trailing slashes in PATH elements.
21509case $as_dir/ in
21510  ./ | .// | /cC/* | \
21511  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
21512  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
21513  /usr/ucb/* ) ;;
21514  *)
21515    # OSF1 and SCO ODT 3.0 have their own names for install.
21516    # Don't use installbsd from OSF since it installs stuff as root
21517    # by default.
21518    for ac_prog in ginstall scoinst install; do
21519      for ac_exec_ext in '' $ac_executable_extensions; do
21520	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
21521	  if test $ac_prog = install &&
21522	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
21523	    # AIX install.  It has an incompatible calling convention.
21524	    :
21525	  elif test $ac_prog = install &&
21526	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
21527	    # program-specific install script used by HP pwplus--don't use.
21528	    :
21529	  else
21530	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
21531	    break 3
21532	  fi
21533	fi
21534      done
21535    done
21536    ;;
21537esac
21538done
21539IFS=$as_save_IFS
21540
21541
21542fi
21543  if test "${ac_cv_path_install+set}" = set; then
21544    INSTALL=$ac_cv_path_install
21545  else
21546    # As a last resort, use the slow shell script.  Don't cache a
21547    # value for INSTALL within a source directory, because that will
21548    # break other packages using the cache if that directory is
21549    # removed, or if the value is a relative name.
21550    INSTALL=$ac_install_sh
21551  fi
21552fi
21553{ echo "$as_me:$LINENO: result: $INSTALL" >&5
21554echo "${ECHO_T}$INSTALL" >&6; }
21555
21556# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
21557# It thinks the first close brace ends the variable substitution.
21558test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
21559
21560test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
21561
21562test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
21563
21564
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574
21575for ac_header in string.h stdarg.h stdio.h stdlib.h limits.h errno.h zlib.h math.h ctype.h iconv.h
21576do
21577as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21578if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21579  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21580echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21581if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21582  echo $ECHO_N "(cached) $ECHO_C" >&6
21583fi
21584ac_res=`eval echo '${'$as_ac_Header'}'`
21585	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21586echo "${ECHO_T}$ac_res" >&6; }
21587else
21588  # Is the header compilable?
21589{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21590echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21591cat >conftest.$ac_ext <<_ACEOF
21592/* confdefs.h.  */
21593_ACEOF
21594cat confdefs.h >>conftest.$ac_ext
21595cat >>conftest.$ac_ext <<_ACEOF
21596/* end confdefs.h.  */
21597$ac_includes_default
21598#include <$ac_header>
21599_ACEOF
21600rm -f conftest.$ac_objext
21601if { (ac_try="$ac_compile"
21602case "(($ac_try" in
21603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21604  *) ac_try_echo=$ac_try;;
21605esac
21606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21607  (eval "$ac_compile") 2>conftest.er1
21608  ac_status=$?
21609  grep -v '^ *+' conftest.er1 >conftest.err
21610  rm -f conftest.er1
21611  cat conftest.err >&5
21612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613  (exit $ac_status); } && {
21614	 test -z "$ac_c_werror_flag" ||
21615	 test ! -s conftest.err
21616       } && test -s conftest.$ac_objext; then
21617  ac_header_compiler=yes
21618else
21619  echo "$as_me: failed program was:" >&5
21620sed 's/^/| /' conftest.$ac_ext >&5
21621
21622	ac_header_compiler=no
21623fi
21624
21625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21626{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21627echo "${ECHO_T}$ac_header_compiler" >&6; }
21628
21629# Is the header present?
21630{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21631echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21632cat >conftest.$ac_ext <<_ACEOF
21633/* confdefs.h.  */
21634_ACEOF
21635cat confdefs.h >>conftest.$ac_ext
21636cat >>conftest.$ac_ext <<_ACEOF
21637/* end confdefs.h.  */
21638#include <$ac_header>
21639_ACEOF
21640if { (ac_try="$ac_cpp conftest.$ac_ext"
21641case "(($ac_try" in
21642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21643  *) ac_try_echo=$ac_try;;
21644esac
21645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21646  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21647  ac_status=$?
21648  grep -v '^ *+' conftest.er1 >conftest.err
21649  rm -f conftest.er1
21650  cat conftest.err >&5
21651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652  (exit $ac_status); } >/dev/null && {
21653	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21654	 test ! -s conftest.err
21655       }; then
21656  ac_header_preproc=yes
21657else
21658  echo "$as_me: failed program was:" >&5
21659sed 's/^/| /' conftest.$ac_ext >&5
21660
21661  ac_header_preproc=no
21662fi
21663
21664rm -f conftest.err conftest.$ac_ext
21665{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21666echo "${ECHO_T}$ac_header_preproc" >&6; }
21667
21668# So?  What about this header?
21669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21670  yes:no: )
21671    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21672echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21673    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21674echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21675    ac_header_preproc=yes
21676    ;;
21677  no:yes:* )
21678    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21679echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21680    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21681echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21682    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21683echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21684    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21685echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21686    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21687echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21688    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21689echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21690    ( cat <<\_ASBOX
21691## ------------------------------- ##
21692## Report this to alexis@m2osw.com ##
21693## ------------------------------- ##
21694_ASBOX
21695     ) | sed "s/^/$as_me: WARNING:     /" >&2
21696    ;;
21697esac
21698{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21701  echo $ECHO_N "(cached) $ECHO_C" >&6
21702else
21703  eval "$as_ac_Header=\$ac_header_preproc"
21704fi
21705ac_res=`eval echo '${'$as_ac_Header'}'`
21706	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21707echo "${ECHO_T}$ac_res" >&6; }
21708
21709fi
21710if test `eval echo '${'$as_ac_Header'}'` = yes; then
21711  cat >>confdefs.h <<_ACEOF
21712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21713_ACEOF
21714
21715fi
21716
21717done
21718
21719
21720
21721{ echo "$as_me:$LINENO: checking if building for some Win32 platform" >&5
21722echo $ECHO_N "checking if building for some Win32 platform... $ECHO_C" >&6; }
21723case "$host" in
21724  *mingw*|*cygwin*)
21725    platform_win32=yes
21726    NO_UNDEFINED=-no-undefined
21727    ;;
21728  *)
21729    platform_win32=no
21730    NO_UNDEFINED=
21731    ;;
21732esac
21733{ echo "$as_me:$LINENO: result: $platform_win32" >&5
21734echo "${ECHO_T}$platform_win32" >&6; }
21735
21736
21737if test x$platform_win32 = xyes; then
21738  PLATFORM_WIN32_TRUE=
21739  PLATFORM_WIN32_FALSE='#'
21740else
21741  PLATFORM_WIN32_TRUE='#'
21742  PLATFORM_WIN32_FALSE=
21743fi
21744
21745
21746
21747
21748ICONV_LIBS=""
21749
21750{ echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5
21751echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6; }
21752if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
21753  echo $ECHO_N "(cached) $ECHO_C" >&6
21754else
21755  ac_check_lib_save_LIBS=$LIBS
21756LIBS="-liconv  $LIBS"
21757cat >conftest.$ac_ext <<_ACEOF
21758/* confdefs.h.  */
21759_ACEOF
21760cat confdefs.h >>conftest.$ac_ext
21761cat >>conftest.$ac_ext <<_ACEOF
21762/* end confdefs.h.  */
21763
21764/* Override any GCC internal prototype to avoid an error.
21765   Use char because int might match the return type of a GCC
21766   builtin and then its argument prototype would still apply.  */
21767#ifdef __cplusplus
21768extern "C"
21769#endif
21770char libiconv_open ();
21771int
21772main ()
21773{
21774return libiconv_open ();
21775  ;
21776  return 0;
21777}
21778_ACEOF
21779rm -f conftest.$ac_objext conftest$ac_exeext
21780if { (ac_try="$ac_link"
21781case "(($ac_try" in
21782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783  *) ac_try_echo=$ac_try;;
21784esac
21785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786  (eval "$ac_link") 2>conftest.er1
21787  ac_status=$?
21788  grep -v '^ *+' conftest.er1 >conftest.err
21789  rm -f conftest.er1
21790  cat conftest.err >&5
21791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792  (exit $ac_status); } && {
21793	 test -z "$ac_c_werror_flag" ||
21794	 test ! -s conftest.err
21795       } && test -s conftest$ac_exeext &&
21796       $as_test_x conftest$ac_exeext; then
21797  ac_cv_lib_iconv_libiconv_open=yes
21798else
21799  echo "$as_me: failed program was:" >&5
21800sed 's/^/| /' conftest.$ac_ext >&5
21801
21802	ac_cv_lib_iconv_libiconv_open=no
21803fi
21804
21805rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21806      conftest$ac_exeext conftest.$ac_ext
21807LIBS=$ac_check_lib_save_LIBS
21808fi
21809{ echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv_open" >&5
21810echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6; }
21811if test $ac_cv_lib_iconv_libiconv_open = yes; then
21812  ICONV_LIBS="-liconv"
21813else
21814  { echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
21815echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6; }
21816if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
21817  echo $ECHO_N "(cached) $ECHO_C" >&6
21818else
21819  ac_check_lib_save_LIBS=$LIBS
21820LIBS="-liconv  $LIBS"
21821cat >conftest.$ac_ext <<_ACEOF
21822/* confdefs.h.  */
21823_ACEOF
21824cat confdefs.h >>conftest.$ac_ext
21825cat >>conftest.$ac_ext <<_ACEOF
21826/* end confdefs.h.  */
21827
21828/* Override any GCC internal prototype to avoid an error.
21829   Use char because int might match the return type of a GCC
21830   builtin and then its argument prototype would still apply.  */
21831#ifdef __cplusplus
21832extern "C"
21833#endif
21834char iconv_open ();
21835int
21836main ()
21837{
21838return iconv_open ();
21839  ;
21840  return 0;
21841}
21842_ACEOF
21843rm -f conftest.$ac_objext conftest$ac_exeext
21844if { (ac_try="$ac_link"
21845case "(($ac_try" in
21846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21847  *) ac_try_echo=$ac_try;;
21848esac
21849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21850  (eval "$ac_link") 2>conftest.er1
21851  ac_status=$?
21852  grep -v '^ *+' conftest.er1 >conftest.err
21853  rm -f conftest.er1
21854  cat conftest.err >&5
21855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856  (exit $ac_status); } && {
21857	 test -z "$ac_c_werror_flag" ||
21858	 test ! -s conftest.err
21859       } && test -s conftest$ac_exeext &&
21860       $as_test_x conftest$ac_exeext; then
21861  ac_cv_lib_iconv_iconv_open=yes
21862else
21863  echo "$as_me: failed program was:" >&5
21864sed 's/^/| /' conftest.$ac_ext >&5
21865
21866	ac_cv_lib_iconv_iconv_open=no
21867fi
21868
21869rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21870      conftest$ac_exeext conftest.$ac_ext
21871LIBS=$ac_check_lib_save_LIBS
21872fi
21873{ echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
21874echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6; }
21875if test $ac_cv_lib_iconv_iconv_open = yes; then
21876  ICONV_LIBS="-liconv"
21877else
21878  { echo "$as_me:$LINENO: checking for iconv_open in -lc" >&5
21879echo $ECHO_N "checking for iconv_open in -lc... $ECHO_C" >&6; }
21880if test "${ac_cv_lib_c_iconv_open+set}" = set; then
21881  echo $ECHO_N "(cached) $ECHO_C" >&6
21882else
21883  ac_check_lib_save_LIBS=$LIBS
21884LIBS="-lc  $LIBS"
21885cat >conftest.$ac_ext <<_ACEOF
21886/* confdefs.h.  */
21887_ACEOF
21888cat confdefs.h >>conftest.$ac_ext
21889cat >>conftest.$ac_ext <<_ACEOF
21890/* end confdefs.h.  */
21891
21892/* Override any GCC internal prototype to avoid an error.
21893   Use char because int might match the return type of a GCC
21894   builtin and then its argument prototype would still apply.  */
21895#ifdef __cplusplus
21896extern "C"
21897#endif
21898char iconv_open ();
21899int
21900main ()
21901{
21902return iconv_open ();
21903  ;
21904  return 0;
21905}
21906_ACEOF
21907rm -f conftest.$ac_objext conftest$ac_exeext
21908if { (ac_try="$ac_link"
21909case "(($ac_try" in
21910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911  *) ac_try_echo=$ac_try;;
21912esac
21913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914  (eval "$ac_link") 2>conftest.er1
21915  ac_status=$?
21916  grep -v '^ *+' conftest.er1 >conftest.err
21917  rm -f conftest.er1
21918  cat conftest.err >&5
21919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920  (exit $ac_status); } && {
21921	 test -z "$ac_c_werror_flag" ||
21922	 test ! -s conftest.err
21923       } && test -s conftest$ac_exeext &&
21924       $as_test_x conftest$ac_exeext; then
21925  ac_cv_lib_c_iconv_open=yes
21926else
21927  echo "$as_me: failed program was:" >&5
21928sed 's/^/| /' conftest.$ac_ext >&5
21929
21930	ac_cv_lib_c_iconv_open=no
21931fi
21932
21933rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21934      conftest$ac_exeext conftest.$ac_ext
21935LIBS=$ac_check_lib_save_LIBS
21936fi
21937{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_iconv_open" >&5
21938echo "${ECHO_T}$ac_cv_lib_c_iconv_open" >&6; }
21939if test $ac_cv_lib_c_iconv_open = yes; then
21940  ICONV_LIBS=""
21941else
21942  { { echo "$as_me:$LINENO: error: cannot find libiconv" >&5
21943echo "$as_me: error: cannot find libiconv" >&2;}
21944   { (exit 1); exit 1; }; }
21945fi
21946
21947fi
21948
21949fi
21950
21951
21952
21953JPEG_LIBS=""
21954
21955if test "${ac_cv_header_jpeglib_h+set}" = set; then
21956  { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21957echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
21958if test "${ac_cv_header_jpeglib_h+set}" = set; then
21959  echo $ECHO_N "(cached) $ECHO_C" >&6
21960fi
21961{ echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21962echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
21963else
21964  # Is the header compilable?
21965{ echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
21966echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6; }
21967cat >conftest.$ac_ext <<_ACEOF
21968/* confdefs.h.  */
21969_ACEOF
21970cat confdefs.h >>conftest.$ac_ext
21971cat >>conftest.$ac_ext <<_ACEOF
21972/* end confdefs.h.  */
21973$ac_includes_default
21974#include <jpeglib.h>
21975_ACEOF
21976rm -f conftest.$ac_objext
21977if { (ac_try="$ac_compile"
21978case "(($ac_try" in
21979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21980  *) ac_try_echo=$ac_try;;
21981esac
21982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21983  (eval "$ac_compile") 2>conftest.er1
21984  ac_status=$?
21985  grep -v '^ *+' conftest.er1 >conftest.err
21986  rm -f conftest.er1
21987  cat conftest.err >&5
21988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989  (exit $ac_status); } && {
21990	 test -z "$ac_c_werror_flag" ||
21991	 test ! -s conftest.err
21992       } && test -s conftest.$ac_objext; then
21993  ac_header_compiler=yes
21994else
21995  echo "$as_me: failed program was:" >&5
21996sed 's/^/| /' conftest.$ac_ext >&5
21997
21998	ac_header_compiler=no
21999fi
22000
22001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22002{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22003echo "${ECHO_T}$ac_header_compiler" >&6; }
22004
22005# Is the header present?
22006{ echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
22007echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6; }
22008cat >conftest.$ac_ext <<_ACEOF
22009/* confdefs.h.  */
22010_ACEOF
22011cat confdefs.h >>conftest.$ac_ext
22012cat >>conftest.$ac_ext <<_ACEOF
22013/* end confdefs.h.  */
22014#include <jpeglib.h>
22015_ACEOF
22016if { (ac_try="$ac_cpp conftest.$ac_ext"
22017case "(($ac_try" in
22018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019  *) ac_try_echo=$ac_try;;
22020esac
22021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22022  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22023  ac_status=$?
22024  grep -v '^ *+' conftest.er1 >conftest.err
22025  rm -f conftest.er1
22026  cat conftest.err >&5
22027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028  (exit $ac_status); } >/dev/null && {
22029	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22030	 test ! -s conftest.err
22031       }; then
22032  ac_header_preproc=yes
22033else
22034  echo "$as_me: failed program was:" >&5
22035sed 's/^/| /' conftest.$ac_ext >&5
22036
22037  ac_header_preproc=no
22038fi
22039
22040rm -f conftest.err conftest.$ac_ext
22041{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22042echo "${ECHO_T}$ac_header_preproc" >&6; }
22043
22044# So?  What about this header?
22045case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22046  yes:no: )
22047    { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22048echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22049    { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
22050echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
22051    ac_header_preproc=yes
22052    ;;
22053  no:yes:* )
22054    { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
22055echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
22056    { echo "$as_me:$LINENO: WARNING: jpeglib.h:     check for missing prerequisite headers?" >&5
22057echo "$as_me: WARNING: jpeglib.h:     check for missing prerequisite headers?" >&2;}
22058    { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
22059echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
22060    { echo "$as_me:$LINENO: WARNING: jpeglib.h:     section \"Present But Cannot Be Compiled\"" >&5
22061echo "$as_me: WARNING: jpeglib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22062    { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
22063echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
22064    { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
22065echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
22066    ( cat <<\_ASBOX
22067## ------------------------------- ##
22068## Report this to alexis@m2osw.com ##
22069## ------------------------------- ##
22070_ASBOX
22071     ) | sed "s/^/$as_me: WARNING:     /" >&2
22072    ;;
22073esac
22074{ echo "$as_me:$LINENO: checking for jpeglib.h" >&5
22075echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
22076if test "${ac_cv_header_jpeglib_h+set}" = set; then
22077  echo $ECHO_N "(cached) $ECHO_C" >&6
22078else
22079  ac_cv_header_jpeglib_h=$ac_header_preproc
22080fi
22081{ echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
22082echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
22083
22084fi
22085if test $ac_cv_header_jpeglib_h = yes; then
22086  :
22087else
22088  { { echo "$as_me:$LINENO: error: cannot find libjpeg headers" >&5
22089echo "$as_me: error: cannot find libjpeg headers" >&2;}
22090   { (exit 1); exit 1; }; }
22091fi
22092
22093
22094{ echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
22095echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6; }
22096if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
22097  echo $ECHO_N "(cached) $ECHO_C" >&6
22098else
22099  ac_check_lib_save_LIBS=$LIBS
22100LIBS="-ljpeg  $LIBS"
22101cat >conftest.$ac_ext <<_ACEOF
22102/* confdefs.h.  */
22103_ACEOF
22104cat confdefs.h >>conftest.$ac_ext
22105cat >>conftest.$ac_ext <<_ACEOF
22106/* end confdefs.h.  */
22107
22108/* Override any GCC internal prototype to avoid an error.
22109   Use char because int might match the return type of a GCC
22110   builtin and then its argument prototype would still apply.  */
22111#ifdef __cplusplus
22112extern "C"
22113#endif
22114char jpeg_start_decompress ();
22115int
22116main ()
22117{
22118return jpeg_start_decompress ();
22119  ;
22120  return 0;
22121}
22122_ACEOF
22123rm -f conftest.$ac_objext conftest$ac_exeext
22124if { (ac_try="$ac_link"
22125case "(($ac_try" in
22126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22127  *) ac_try_echo=$ac_try;;
22128esac
22129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22130  (eval "$ac_link") 2>conftest.er1
22131  ac_status=$?
22132  grep -v '^ *+' conftest.er1 >conftest.err
22133  rm -f conftest.er1
22134  cat conftest.err >&5
22135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136  (exit $ac_status); } && {
22137	 test -z "$ac_c_werror_flag" ||
22138	 test ! -s conftest.err
22139       } && test -s conftest$ac_exeext &&
22140       $as_test_x conftest$ac_exeext; then
22141  ac_cv_lib_jpeg_jpeg_start_decompress=yes
22142else
22143  echo "$as_me: failed program was:" >&5
22144sed 's/^/| /' conftest.$ac_ext >&5
22145
22146	ac_cv_lib_jpeg_jpeg_start_decompress=no
22147fi
22148
22149rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22150      conftest$ac_exeext conftest.$ac_ext
22151LIBS=$ac_check_lib_save_LIBS
22152fi
22153{ echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
22154echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6; }
22155if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
22156  JPEG_LIBS="-ljpeg"
22157else
22158  { { echo "$as_me:$LINENO: error: cannot find libjpeg" >&5
22159echo "$as_me: error: cannot find libjpeg" >&2;}
22160   { (exit 1); exit 1; }; }
22161fi
22162
22163
22164ZLIB_LIBS=""
22165
22166if test "${ac_cv_header_zlib_h+set}" = set; then
22167  { echo "$as_me:$LINENO: checking for zlib.h" >&5
22168echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
22169if test "${ac_cv_header_zlib_h+set}" = set; then
22170  echo $ECHO_N "(cached) $ECHO_C" >&6
22171fi
22172{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22173echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
22174else
22175  # Is the header compilable?
22176{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
22177echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
22178cat >conftest.$ac_ext <<_ACEOF
22179/* confdefs.h.  */
22180_ACEOF
22181cat confdefs.h >>conftest.$ac_ext
22182cat >>conftest.$ac_ext <<_ACEOF
22183/* end confdefs.h.  */
22184$ac_includes_default
22185#include <zlib.h>
22186_ACEOF
22187rm -f conftest.$ac_objext
22188if { (ac_try="$ac_compile"
22189case "(($ac_try" in
22190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191  *) ac_try_echo=$ac_try;;
22192esac
22193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22194  (eval "$ac_compile") 2>conftest.er1
22195  ac_status=$?
22196  grep -v '^ *+' conftest.er1 >conftest.err
22197  rm -f conftest.er1
22198  cat conftest.err >&5
22199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200  (exit $ac_status); } && {
22201	 test -z "$ac_c_werror_flag" ||
22202	 test ! -s conftest.err
22203       } && test -s conftest.$ac_objext; then
22204  ac_header_compiler=yes
22205else
22206  echo "$as_me: failed program was:" >&5
22207sed 's/^/| /' conftest.$ac_ext >&5
22208
22209	ac_header_compiler=no
22210fi
22211
22212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22213{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22214echo "${ECHO_T}$ac_header_compiler" >&6; }
22215
22216# Is the header present?
22217{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
22218echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
22219cat >conftest.$ac_ext <<_ACEOF
22220/* confdefs.h.  */
22221_ACEOF
22222cat confdefs.h >>conftest.$ac_ext
22223cat >>conftest.$ac_ext <<_ACEOF
22224/* end confdefs.h.  */
22225#include <zlib.h>
22226_ACEOF
22227if { (ac_try="$ac_cpp conftest.$ac_ext"
22228case "(($ac_try" in
22229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22230  *) ac_try_echo=$ac_try;;
22231esac
22232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22233  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22234  ac_status=$?
22235  grep -v '^ *+' conftest.er1 >conftest.err
22236  rm -f conftest.er1
22237  cat conftest.err >&5
22238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239  (exit $ac_status); } >/dev/null && {
22240	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22241	 test ! -s conftest.err
22242       }; then
22243  ac_header_preproc=yes
22244else
22245  echo "$as_me: failed program was:" >&5
22246sed 's/^/| /' conftest.$ac_ext >&5
22247
22248  ac_header_preproc=no
22249fi
22250
22251rm -f conftest.err conftest.$ac_ext
22252{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22253echo "${ECHO_T}$ac_header_preproc" >&6; }
22254
22255# So?  What about this header?
22256case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22257  yes:no: )
22258    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22259echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22260    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22261echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22262    ac_header_preproc=yes
22263    ;;
22264  no:yes:* )
22265    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22266echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
22267    { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
22268echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
22269    { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22270echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22271    { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
22272echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22273    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22274echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
22275    { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22276echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
22277    ( cat <<\_ASBOX
22278## ------------------------------- ##
22279## Report this to alexis@m2osw.com ##
22280## ------------------------------- ##
22281_ASBOX
22282     ) | sed "s/^/$as_me: WARNING:     /" >&2
22283    ;;
22284esac
22285{ echo "$as_me:$LINENO: checking for zlib.h" >&5
22286echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
22287if test "${ac_cv_header_zlib_h+set}" = set; then
22288  echo $ECHO_N "(cached) $ECHO_C" >&6
22289else
22290  ac_cv_header_zlib_h=$ac_header_preproc
22291fi
22292{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22293echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
22294
22295fi
22296if test $ac_cv_header_zlib_h = yes; then
22297  :
22298else
22299  { { echo "$as_me:$LINENO: error: cannot find zlib headers" >&5
22300echo "$as_me: error: cannot find zlib headers" >&2;}
22301   { (exit 1); exit 1; }; }
22302fi
22303
22304
22305{ echo "$as_me:$LINENO: checking for compress in -lz" >&5
22306echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
22307if test "${ac_cv_lib_z_compress+set}" = set; then
22308  echo $ECHO_N "(cached) $ECHO_C" >&6
22309else
22310  ac_check_lib_save_LIBS=$LIBS
22311LIBS="-lz  $LIBS"
22312cat >conftest.$ac_ext <<_ACEOF
22313/* confdefs.h.  */
22314_ACEOF
22315cat confdefs.h >>conftest.$ac_ext
22316cat >>conftest.$ac_ext <<_ACEOF
22317/* end confdefs.h.  */
22318
22319/* Override any GCC internal prototype to avoid an error.
22320   Use char because int might match the return type of a GCC
22321   builtin and then its argument prototype would still apply.  */
22322#ifdef __cplusplus
22323extern "C"
22324#endif
22325char compress ();
22326int
22327main ()
22328{
22329return compress ();
22330  ;
22331  return 0;
22332}
22333_ACEOF
22334rm -f conftest.$ac_objext conftest$ac_exeext
22335if { (ac_try="$ac_link"
22336case "(($ac_try" in
22337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338  *) ac_try_echo=$ac_try;;
22339esac
22340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22341  (eval "$ac_link") 2>conftest.er1
22342  ac_status=$?
22343  grep -v '^ *+' conftest.er1 >conftest.err
22344  rm -f conftest.er1
22345  cat conftest.err >&5
22346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347  (exit $ac_status); } && {
22348	 test -z "$ac_c_werror_flag" ||
22349	 test ! -s conftest.err
22350       } && test -s conftest$ac_exeext &&
22351       $as_test_x conftest$ac_exeext; then
22352  ac_cv_lib_z_compress=yes
22353else
22354  echo "$as_me: failed program was:" >&5
22355sed 's/^/| /' conftest.$ac_ext >&5
22356
22357	ac_cv_lib_z_compress=no
22358fi
22359
22360rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22361      conftest$ac_exeext conftest.$ac_ext
22362LIBS=$ac_check_lib_save_LIBS
22363fi
22364{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
22365echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
22366if test $ac_cv_lib_z_compress = yes; then
22367  ZLIB_LIBS="-lz"
22368else
22369  { { echo "$as_me:$LINENO: error: cannot find libzlib" >&5
22370echo "$as_me: error: cannot find libzlib" >&2;}
22371   { (exit 1); exit 1; }; }
22372fi
22373
22374
22375
22376FREETYPE_LIBS=""
22377FREETYPE_CFLAGS=""
22378
22379
22380# Extract the first word of "freetype-config", so it can be a program name with args.
22381set dummy freetype-config; ac_word=$2
22382{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22384if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
22385  echo $ECHO_N "(cached) $ECHO_C" >&6
22386else
22387  case $FREETYPE_CONFIG in
22388  [\\/]* | ?:[\\/]*)
22389  ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
22390  ;;
22391  *)
22392  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22393for as_dir in $PATH
22394do
22395  IFS=$as_save_IFS
22396  test -z "$as_dir" && as_dir=.
22397  for ac_exec_ext in '' $ac_executable_extensions; do
22398  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22399    ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22400    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22401    break 2
22402  fi
22403done
22404done
22405IFS=$as_save_IFS
22406
22407  test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="no"
22408  ;;
22409esac
22410fi
22411FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
22412if test -n "$FREETYPE_CONFIG"; then
22413  { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
22414echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
22415else
22416  { echo "$as_me:$LINENO: result: no" >&5
22417echo "${ECHO_T}no" >&6; }
22418fi
22419
22420
22421if test "x$FREETYPE_CONFIG" != "xno" ; then
22422  { echo "$as_me:$LINENO: checking for freetype libraries" >&5
22423echo $ECHO_N "checking for freetype libraries... $ECHO_C" >&6; }
22424  FREETYPE_LIBS=`pkg-config freetype2 --libs`
22425  FREETYPE_CFLAGS=`pkg-config freetype2 --cflags`
22426  { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
22427echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
22428fi
22429
22430
22431if test "x$FREETYPE_CONFIG" != "xno"; then
22432  HAVE_FREETYPE_TRUE=
22433  HAVE_FREETYPE_FALSE='#'
22434else
22435  HAVE_FREETYPE_TRUE='#'
22436  HAVE_FREETYPE_FALSE=
22437fi
22438
22439
22440
22441# Check whether --enable-internal-scripts was given.
22442if test "${enable_internal_scripts+set}" = set; then
22443  enableval=$enable_internal_scripts; case "$enable_internal_scripts" in
22444yes) internal_scripts=true ;;
22445no) internal_scripts=false ;;
22446*) { { echo "$as_me:$LINENO: error: bad value $internal_scripts for --enable-internal_scripts" >&5
22447echo "$as_me: error: bad value $internal_scripts for --enable-internal_scripts" >&2;}
22448   { (exit 1); exit 1; }; } ;;
22449esac
22450else
22451  internal_scripts=false
22452fi
22453
22454
22455
22456if $internal_scripts; then
22457  BUILD_WITH_INTERNAL_SCRIPTS_TRUE=
22458  BUILD_WITH_INTERNAL_SCRIPTS_FALSE='#'
22459else
22460  BUILD_WITH_INTERNAL_SCRIPTS_TRUE='#'
22461  BUILD_WITH_INTERNAL_SCRIPTS_FALSE=
22462fi
22463
22464
22465
22466# Check whether --enable-notes-to-html was given.
22467if test "${enable_notes_to_html+set}" = set; then
22468  enableval=$enable_notes_to_html; case "$enable_notes_to_html" in
22469yes) notes_to_html=true ;;
22470no) notes_to_html=false ;;
22471*) { { echo "$as_me:$LINENO: error: bad value $enable_notes_to_html for --enable-notes-to-html" >&5
22472echo "$as_me: error: bad value $enable_notes_to_html for --enable-notes-to-html" >&2;}
22473   { (exit 1); exit 1; }; } ;;
22474esac
22475else
22476  notes_to_html=false
22477fi
22478
22479
22480
22481if $notes_to_html; then
22482  BUILD_NOTES_TO_HTML_TRUE=
22483  BUILD_NOTES_TO_HTML_FALSE='#'
22484else
22485  BUILD_NOTES_TO_HTML_TRUE='#'
22486  BUILD_NOTES_TO_HTML_FALSE=
22487fi
22488
22489
22490
22491# Check whether --enable-cpp-to-c was given.
22492if test "${enable_cpp_to_c+set}" = set; then
22493  enableval=$enable_cpp_to_c; case "$enable_cpp_to_c" in
22494yes) cpp_to_c=true ;;
22495no) cpp_to_c=false ;;
22496*) { { echo "$as_me:$LINENO: error: bad value $enable_cpp_to_c for --enable-cpp-to-c" >&5
22497echo "$as_me: error: bad value $enable_cpp_to_c for --enable-cpp-to-c" >&2;}
22498   { (exit 1); exit 1; }; } ;;
22499esac
22500else
22501  cpp_to_c=false
22502fi
22503
22504
22505
22506if $cpp_to_c; then
22507  BUILD_CPP_TO_C_TRUE=
22508  BUILD_CPP_TO_C_FALSE='#'
22509else
22510  BUILD_CPP_TO_C_TRUE='#'
22511  BUILD_CPP_TO_C_FALSE=
22512fi
22513
22514
22515
22516
22517# Check whether --enable-asc-to-c was given.
22518if test "${enable_asc_to_c+set}" = set; then
22519  enableval=$enable_asc_to_c; case "$enable_asc_to_c" in
22520yes) asc_to_c=true ;;
22521no) asc_to_c=false ;;
22522*) { { echo "$as_me:$LINENO: error: bad value $enable_asc_to_c for --enable-asc-to-c" >&5
22523echo "$as_me: error: bad value $enable_asc_to_c for --enable-asc-to-c" >&2;}
22524   { (exit 1); exit 1; }; } ;;
22525esac
22526else
22527  asc_to_c=false
22528fi
22529
22530
22531
22532if $asc_to_c; then
22533  BUILD_ASC_TO_C_TRUE=
22534  BUILD_ASC_TO_C_FALSE='#'
22535else
22536  BUILD_ASC_TO_C_TRUE='#'
22537  BUILD_ASC_TO_C_FALSE=
22538fi
22539
22540
22541
22542
22543
22544# Check whether --enable-docs was given.
22545if test "${enable_docs+set}" = set; then
22546  enableval=$enable_docs; case "$enable_docs" in
22547yes) install_sswf_docs=true ;;
22548no) install_sswf_docs=false ;;
22549*) { { echo "$as_me:$LINENO: error: bad value $enable_docs for --enable-docs" >&5
22550echo "$as_me: error: bad value $enable_docs for --enable-docs" >&2;}
22551   { (exit 1); exit 1; }; } ;;
22552esac
22553else
22554  install_sswf_docs=true
22555fi
22556
22557
22558
22559if test -d $srcdir/doc/html && $install_sswf_docs; then
22560  INSTALL_SSWF_DOCS_TRUE=
22561  INSTALL_SSWF_DOCS_FALSE='#'
22562else
22563  INSTALL_SSWF_DOCS_TRUE='#'
22564  INSTALL_SSWF_DOCS_FALSE=
22565fi
22566
22567
22568
22569
22570# Check whether --with-pkgconfigdir was given.
22571if test "${with_pkgconfigdir+set}" = set; then
22572  withval=$with_pkgconfigdir; pkgconfigdir=${withval}
22573else
22574  pkgconfigdir='${libdir}/pkgconfig'
22575fi
22576
22577
22578{ echo "$as_me:$LINENO: pkgconfig directory is ${pkgconfigdir}" >&5
22579echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
22580
22581
22582
22583# Check whether --enable-rpm_docs was given.
22584if test "${enable_rpm_docs+set}" = set; then
22585  enableval=$enable_rpm_docs; case "$enable_rpm_docs" in
22586yes) rpm_docs=false ;;
22587no) rpm_docs=true ;;
22588*) { { echo "$as_me:$LINENO: error: bad value $enable_rpm_docs for --enable-rpm-docs" >&5
22589echo "$as_me: error: bad value $enable_rpm_docs for --enable-rpm-docs" >&2;}
22590   { (exit 1); exit 1; }; } ;;
22591esac
22592else
22593  rpm_docs=true
22594fi
22595
22596
22597
22598if $rpm_docs; then
22599  NOT_RPM_DOCS_TRUE=
22600  NOT_RPM_DOCS_FALSE='#'
22601else
22602  NOT_RPM_DOCS_TRUE='#'
22603  NOT_RPM_DOCS_FALSE=
22604fi
22605
22606
22607
22608# Check whether --enable-debug was given.
22609if test "${enable_debug+set}" = set; then
22610  enableval=$enable_debug; if test "x$enable_debug" = "xyes"; then
22611  cat >>confdefs.h <<\_ACEOF
22612#define DEBUG 1
22613_ACEOF
22614
22615fi
22616else
22617  cat >>confdefs.h <<\_ACEOF
22618#define DEBUG 1
22619_ACEOF
22620
22621fi
22622
22623
22624
22625# Check whether --enable-yydebug was given.
22626if test "${enable_yydebug+set}" = set; then
22627  enableval=$enable_yydebug; if test "x$enable_yydebug" = "xyes"; then
22628  cat >>confdefs.h <<\_ACEOF
22629#define YYDEBUG 1
22630_ACEOF
22631
22632fi
22633else
22634  cat >>confdefs.h <<\_ACEOF
22635#define YYDEBUG 1
22636_ACEOF
22637
22638fi
22639
22640
22641
22642
22643SAMPLES=`cd $ac_confdir; find samples ! -path '*/CVS/*' -type f -exec echo -n {} " " \\;`
22644
22645
22646MISC=`cd $ac_confdir; find misc ! -path '*/CVS/*' -type f -exec echo -n {} " " \\;`
22647
22648
22649TXTDOC=`if test -d $ac_confdir/doc; then cd $ac_confdir/doc && find . ! -path '*/CVS/*' -name '*.txt' -exec echo -n {} " " \\;; fi`
22650
22651
22652HTMLDOC=`if test -d $ac_confdir/doc/html; then cd $ac_confdir/doc && find html ! -path '*/CVS/*' -type f -exec echo -n {} " " \\;; fi`
22653
22654
22655MANDOC=`if test -d $ac_confdir/doc/man; then cd $ac_confdir/doc && find man ! -path '*/CVS/*' -type f -exec echo -n {} " " \\;; fi`
22656
22657
22658ASCHEADERS=`if test -d $ac_confdir/include/sswf/scripts/global; then cd $ac_confdir/include/sswf && find scripts ! -path '*/CVS/*' -type f -name '*.asc' -exec echo -n {} " " \\;; fi`
22659
22660
22661LIBSSWF_VERSION=3:0:0
22662
22663LIBSSWFC_VERSION=2:0:0
22664
22665LIBSSWFAS_VERSION=2:0:0
22666
22667LIBSSWFASAS_VERSION=2:0:0
22668
22669LIBSSWFASC_VERSION=1:0:0
22670
22671
22672
22673ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/lib/Makefile src/libas/Makefile src/libasas/Makefile src/libasc/Makefile src/misc/Makefile src/sswf/Makefile src/tools/Makefile include/Makefile include/sswf/Makefile libsswf.pc libsswf_c.pc libsswf_as.pc libsswf_asas.pc libsswf_asc.pc"
22674
22675cat >confcache <<\_ACEOF
22676# This file is a shell script that caches the results of configure
22677# tests run on this system so they can be shared between configure
22678# scripts and configure runs, see configure's option --config-cache.
22679# It is not useful on other systems.  If it contains results you don't
22680# want to keep, you may remove or edit it.
22681#
22682# config.status only pays attention to the cache file if you give it
22683# the --recheck option to rerun configure.
22684#
22685# `ac_cv_env_foo' variables (set or unset) will be overridden when
22686# loading this file, other *unset* `ac_cv_foo' will be assigned the
22687# following values.
22688
22689_ACEOF
22690
22691# The following way of writing the cache mishandles newlines in values,
22692# but we know of no workaround that is simple, portable, and efficient.
22693# So, we kill variables containing newlines.
22694# Ultrix sh set writes to stderr and can't be redirected directly,
22695# and sets the high bit in the cache file unless we assign to the vars.
22696(
22697  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22698    eval ac_val=\$$ac_var
22699    case $ac_val in #(
22700    *${as_nl}*)
22701      case $ac_var in #(
22702      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22703echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22704      esac
22705      case $ac_var in #(
22706      _ | IFS | as_nl) ;; #(
22707      *) $as_unset $ac_var ;;
22708      esac ;;
22709    esac
22710  done
22711
22712  (set) 2>&1 |
22713    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22714    *${as_nl}ac_space=\ *)
22715      # `set' does not quote correctly, so add quotes (double-quote
22716      # substitution turns \\\\ into \\, and sed turns \\ into \).
22717      sed -n \
22718	"s/'/'\\\\''/g;
22719	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22720      ;; #(
22721    *)
22722      # `set' quotes correctly as required by POSIX, so do not add quotes.
22723      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22724      ;;
22725    esac |
22726    sort
22727) |
22728  sed '
22729     /^ac_cv_env_/b end
22730     t clear
22731     :clear
22732     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22733     t end
22734     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22735     :end' >>confcache
22736if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22737  if test -w "$cache_file"; then
22738    test "x$cache_file" != "x/dev/null" &&
22739      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22740echo "$as_me: updating cache $cache_file" >&6;}
22741    cat confcache >$cache_file
22742  else
22743    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22744echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22745  fi
22746fi
22747rm -f confcache
22748
22749test "x$prefix" = xNONE && prefix=$ac_default_prefix
22750# Let make expand exec_prefix.
22751test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22752
22753# Transform confdefs.h into DEFS.
22754# Protect against shell expansion while executing Makefile rules.
22755# Protect against Makefile macro expansion.
22756#
22757# If the first sed substitution is executed (which looks for macros that
22758# take arguments), then branch to the quote section.  Otherwise,
22759# look for a macro that doesn't take arguments.
22760ac_script='
22761t clear
22762:clear
22763s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
22764t quote
22765s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
22766t quote
22767b any
22768:quote
22769s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
22770s/\[/\\&/g
22771s/\]/\\&/g
22772s/\$/$$/g
22773H
22774:any
22775${
22776	g
22777	s/^\n//
22778	s/\n/ /g
22779	p
22780}
22781'
22782DEFS=`sed -n "$ac_script" confdefs.h`
22783
22784
22785ac_libobjs=
22786ac_ltlibobjs=
22787for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22788  # 1. Remove the extension, and $U if already installed.
22789  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22790  ac_i=`echo "$ac_i" | sed "$ac_script"`
22791  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22792  #    will be set to the directory where LIBOBJS objects are built.
22793  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22794  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22795done
22796LIBOBJS=$ac_libobjs
22797
22798LTLIBOBJS=$ac_ltlibobjs
22799
22800
22801if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22802  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22803Usually this means the macro was only invoked conditionally." >&5
22804echo "$as_me: error: conditional \"AMDEP\" was never defined.
22805Usually this means the macro was only invoked conditionally." >&2;}
22806   { (exit 1); exit 1; }; }
22807fi
22808if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22809  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22810Usually this means the macro was only invoked conditionally." >&5
22811echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22812Usually this means the macro was only invoked conditionally." >&2;}
22813   { (exit 1); exit 1; }; }
22814fi
22815if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22816  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22817Usually this means the macro was only invoked conditionally." >&5
22818echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22819Usually this means the macro was only invoked conditionally." >&2;}
22820   { (exit 1); exit 1; }; }
22821fi
22822if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22823  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22824Usually this means the macro was only invoked conditionally." >&5
22825echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22826Usually this means the macro was only invoked conditionally." >&2;}
22827   { (exit 1); exit 1; }; }
22828fi
22829if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22830  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22831Usually this means the macro was only invoked conditionally." >&5
22832echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22833Usually this means the macro was only invoked conditionally." >&2;}
22834   { (exit 1); exit 1; }; }
22835fi
22836if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
22837  { { echo "$as_me:$LINENO: error: conditional \"PLATFORM_WIN32\" was never defined.
22838Usually this means the macro was only invoked conditionally." >&5
22839echo "$as_me: error: conditional \"PLATFORM_WIN32\" was never defined.
22840Usually this means the macro was only invoked conditionally." >&2;}
22841   { (exit 1); exit 1; }; }
22842fi
22843if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
22844  { { echo "$as_me:$LINENO: error: conditional \"HAVE_FREETYPE\" was never defined.
22845Usually this means the macro was only invoked conditionally." >&5
22846echo "$as_me: error: conditional \"HAVE_FREETYPE\" was never defined.
22847Usually this means the macro was only invoked conditionally." >&2;}
22848   { (exit 1); exit 1; }; }
22849fi
22850if test -z "${BUILD_WITH_INTERNAL_SCRIPTS_TRUE}" && test -z "${BUILD_WITH_INTERNAL_SCRIPTS_FALSE}"; then
22851  { { echo "$as_me:$LINENO: error: conditional \"BUILD_WITH_INTERNAL_SCRIPTS\" was never defined.
22852Usually this means the macro was only invoked conditionally." >&5
22853echo "$as_me: error: conditional \"BUILD_WITH_INTERNAL_SCRIPTS\" was never defined.
22854Usually this means the macro was only invoked conditionally." >&2;}
22855   { (exit 1); exit 1; }; }
22856fi
22857if test -z "${BUILD_NOTES_TO_HTML_TRUE}" && test -z "${BUILD_NOTES_TO_HTML_FALSE}"; then
22858  { { echo "$as_me:$LINENO: error: conditional \"BUILD_NOTES_TO_HTML\" was never defined.
22859Usually this means the macro was only invoked conditionally." >&5
22860echo "$as_me: error: conditional \"BUILD_NOTES_TO_HTML\" was never defined.
22861Usually this means the macro was only invoked conditionally." >&2;}
22862   { (exit 1); exit 1; }; }
22863fi
22864if test -z "${BUILD_CPP_TO_C_TRUE}" && test -z "${BUILD_CPP_TO_C_FALSE}"; then
22865  { { echo "$as_me:$LINENO: error: conditional \"BUILD_CPP_TO_C\" was never defined.
22866Usually this means the macro was only invoked conditionally." >&5
22867echo "$as_me: error: conditional \"BUILD_CPP_TO_C\" was never defined.
22868Usually this means the macro was only invoked conditionally." >&2;}
22869   { (exit 1); exit 1; }; }
22870fi
22871if test -z "${BUILD_ASC_TO_C_TRUE}" && test -z "${BUILD_ASC_TO_C_FALSE}"; then
22872  { { echo "$as_me:$LINENO: error: conditional \"BUILD_ASC_TO_C\" was never defined.
22873Usually this means the macro was only invoked conditionally." >&5
22874echo "$as_me: error: conditional \"BUILD_ASC_TO_C\" was never defined.
22875Usually this means the macro was only invoked conditionally." >&2;}
22876   { (exit 1); exit 1; }; }
22877fi
22878if test -z "${INSTALL_SSWF_DOCS_TRUE}" && test -z "${INSTALL_SSWF_DOCS_FALSE}"; then
22879  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_SSWF_DOCS\" was never defined.
22880Usually this means the macro was only invoked conditionally." >&5
22881echo "$as_me: error: conditional \"INSTALL_SSWF_DOCS\" was never defined.
22882Usually this means the macro was only invoked conditionally." >&2;}
22883   { (exit 1); exit 1; }; }
22884fi
22885if test -z "${NOT_RPM_DOCS_TRUE}" && test -z "${NOT_RPM_DOCS_FALSE}"; then
22886  { { echo "$as_me:$LINENO: error: conditional \"NOT_RPM_DOCS\" was never defined.
22887Usually this means the macro was only invoked conditionally." >&5
22888echo "$as_me: error: conditional \"NOT_RPM_DOCS\" was never defined.
22889Usually this means the macro was only invoked conditionally." >&2;}
22890   { (exit 1); exit 1; }; }
22891fi
22892
22893: ${CONFIG_STATUS=./config.status}
22894ac_clean_files_save=$ac_clean_files
22895ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22896{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22897echo "$as_me: creating $CONFIG_STATUS" >&6;}
22898cat >$CONFIG_STATUS <<_ACEOF
22899#! $SHELL
22900# Generated by $as_me.
22901# Run this file to recreate the current configuration.
22902# Compiler output produced by configure, useful for debugging
22903# configure, is in config.log if it exists.
22904
22905debug=false
22906ac_cs_recheck=false
22907ac_cs_silent=false
22908SHELL=\${CONFIG_SHELL-$SHELL}
22909_ACEOF
22910
22911cat >>$CONFIG_STATUS <<\_ACEOF
22912## --------------------- ##
22913## M4sh Initialization.  ##
22914## --------------------- ##
22915
22916# Be more Bourne compatible
22917DUALCASE=1; export DUALCASE # for MKS sh
22918if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22919  emulate sh
22920  NULLCMD=:
22921  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22922  # is contrary to our usage.  Disable this feature.
22923  alias -g '${1+"$@"}'='"$@"'
22924  setopt NO_GLOB_SUBST
22925else
22926  case `(set -o) 2>/dev/null` in
22927  *posix*) set -o posix ;;
22928esac
22929
22930fi
22931
22932
22933
22934
22935# PATH needs CR
22936# Avoid depending upon Character Ranges.
22937as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22938as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22939as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22940as_cr_digits='0123456789'
22941as_cr_alnum=$as_cr_Letters$as_cr_digits
22942
22943# The user is always right.
22944if test "${PATH_SEPARATOR+set}" != set; then
22945  echo "#! /bin/sh" >conf$$.sh
22946  echo  "exit 0"   >>conf$$.sh
22947  chmod +x conf$$.sh
22948  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22949    PATH_SEPARATOR=';'
22950  else
22951    PATH_SEPARATOR=:
22952  fi
22953  rm -f conf$$.sh
22954fi
22955
22956# Support unset when possible.
22957if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22958  as_unset=unset
22959else
22960  as_unset=false
22961fi
22962
22963
22964# IFS
22965# We need space, tab and new line, in precisely that order.  Quoting is
22966# there to prevent editors from complaining about space-tab.
22967# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22968# splitting by setting IFS to empty value.)
22969as_nl='
22970'
22971IFS=" ""	$as_nl"
22972
22973# Find who we are.  Look in the path if we contain no directory separator.
22974case $0 in
22975  *[\\/]* ) as_myself=$0 ;;
22976  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22977for as_dir in $PATH
22978do
22979  IFS=$as_save_IFS
22980  test -z "$as_dir" && as_dir=.
22981  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22982done
22983IFS=$as_save_IFS
22984
22985     ;;
22986esac
22987# We did not find ourselves, most probably we were run as `sh COMMAND'
22988# in which case we are not to be found in the path.
22989if test "x$as_myself" = x; then
22990  as_myself=$0
22991fi
22992if test ! -f "$as_myself"; then
22993  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22994  { (exit 1); exit 1; }
22995fi
22996
22997# Work around bugs in pre-3.0 UWIN ksh.
22998for as_var in ENV MAIL MAILPATH
22999do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23000done
23001PS1='$ '
23002PS2='> '
23003PS4='+ '
23004
23005# NLS nuisances.
23006for as_var in \
23007  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23008  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23009  LC_TELEPHONE LC_TIME
23010do
23011  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23012    eval $as_var=C; export $as_var
23013  else
23014    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23015  fi
23016done
23017
23018# Required to use basename.
23019if expr a : '\(a\)' >/dev/null 2>&1 &&
23020   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23021  as_expr=expr
23022else
23023  as_expr=false
23024fi
23025
23026if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23027  as_basename=basename
23028else
23029  as_basename=false
23030fi
23031
23032
23033# Name of the executable.
23034as_me=`$as_basename -- "$0" ||
23035$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23036	 X"$0" : 'X\(//\)$' \| \
23037	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23038echo X/"$0" |
23039    sed '/^.*\/\([^/][^/]*\)\/*$/{
23040	    s//\1/
23041	    q
23042	  }
23043	  /^X\/\(\/\/\)$/{
23044	    s//\1/
23045	    q
23046	  }
23047	  /^X\/\(\/\).*/{
23048	    s//\1/
23049	    q
23050	  }
23051	  s/.*/./; q'`
23052
23053# CDPATH.
23054$as_unset CDPATH
23055
23056
23057
23058  as_lineno_1=$LINENO
23059  as_lineno_2=$LINENO
23060  test "x$as_lineno_1" != "x$as_lineno_2" &&
23061  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23062
23063  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23064  # uniformly replaced by the line number.  The first 'sed' inserts a
23065  # line-number line after each line using $LINENO; the second 'sed'
23066  # does the real work.  The second script uses 'N' to pair each
23067  # line-number line with the line containing $LINENO, and appends
23068  # trailing '-' during substitution so that $LINENO is not a special
23069  # case at line end.
23070  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23071  # scripts with optimization help from Paolo Bonzini.  Blame Lee
23072  # E. McMahon (1931-1989) for sed's syntax.  :-)
23073  sed -n '
23074    p
23075    /[$]LINENO/=
23076  ' <$as_myself |
23077    sed '
23078      s/[$]LINENO.*/&-/
23079      t lineno
23080      b
23081      :lineno
23082      N
23083      :loop
23084      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23085      t loop
23086      s/-\n.*//
23087    ' >$as_me.lineno &&
23088  chmod +x "$as_me.lineno" ||
23089    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23090   { (exit 1); exit 1; }; }
23091
23092  # Don't try to exec as it changes $[0], causing all sort of problems
23093  # (the dirname of $[0] is not the place where we might find the
23094  # original and so on.  Autoconf is especially sensitive to this).
23095  . "./$as_me.lineno"
23096  # Exit status is that of the last command.
23097  exit
23098}
23099
23100
23101if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23102  as_dirname=dirname
23103else
23104  as_dirname=false
23105fi
23106
23107ECHO_C= ECHO_N= ECHO_T=
23108case `echo -n x` in
23109-n*)
23110  case `echo 'x\c'` in
23111  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
23112  *)   ECHO_C='\c';;
23113  esac;;
23114*)
23115  ECHO_N='-n';;
23116esac
23117
23118if expr a : '\(a\)' >/dev/null 2>&1 &&
23119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23120  as_expr=expr
23121else
23122  as_expr=false
23123fi
23124
23125rm -f conf$$ conf$$.exe conf$$.file
23126if test -d conf$$.dir; then
23127  rm -f conf$$.dir/conf$$.file
23128else
23129  rm -f conf$$.dir
23130  mkdir conf$$.dir
23131fi
23132echo >conf$$.file
23133if ln -s conf$$.file conf$$ 2>/dev/null; then
23134  as_ln_s='ln -s'
23135  # ... but there are two gotchas:
23136  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23137  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23138  # In both cases, we have to default to `cp -p'.
23139  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23140    as_ln_s='cp -p'
23141elif ln conf$$.file conf$$ 2>/dev/null; then
23142  as_ln_s=ln
23143else
23144  as_ln_s='cp -p'
23145fi
23146rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23147rmdir conf$$.dir 2>/dev/null
23148
23149if mkdir -p . 2>/dev/null; then
23150  as_mkdir_p=:
23151else
23152  test -d ./-p && rmdir ./-p
23153  as_mkdir_p=false
23154fi
23155
23156if test -x / >/dev/null 2>&1; then
23157  as_test_x='test -x'
23158else
23159  if ls -dL / >/dev/null 2>&1; then
23160    as_ls_L_option=L
23161  else
23162    as_ls_L_option=
23163  fi
23164  as_test_x='
23165    eval sh -c '\''
23166      if test -d "$1"; then
23167        test -d "$1/.";
23168      else
23169	case $1 in
23170        -*)set "./$1";;
23171	esac;
23172	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23173	???[sx]*):;;*)false;;esac;fi
23174    '\'' sh
23175  '
23176fi
23177as_executable_p=$as_test_x
23178
23179# Sed expression to map a string onto a valid CPP name.
23180as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23181
23182# Sed expression to map a string onto a valid variable name.
23183as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23184
23185
23186exec 6>&1
23187
23188# Save the log message, to keep $[0] and so on meaningful, and to
23189# report actual input values of CONFIG_FILES etc. instead of their
23190# values after options handling.
23191ac_log="
23192This file was extended by ScriptSWF $as_me 1.8.4, which was
23193generated by GNU Autoconf 2.61.  Invocation command line was
23194
23195  CONFIG_FILES    = $CONFIG_FILES
23196  CONFIG_HEADERS  = $CONFIG_HEADERS
23197  CONFIG_LINKS    = $CONFIG_LINKS
23198  CONFIG_COMMANDS = $CONFIG_COMMANDS
23199  $ $0 $@
23200
23201on `(hostname || uname -n) 2>/dev/null | sed 1q`
23202"
23203
23204_ACEOF
23205
23206cat >>$CONFIG_STATUS <<_ACEOF
23207# Files that config.status was made for.
23208config_files="$ac_config_files"
23209config_commands="$ac_config_commands"
23210
23211_ACEOF
23212
23213cat >>$CONFIG_STATUS <<\_ACEOF
23214ac_cs_usage="\
23215\`$as_me' instantiates files from templates according to the
23216current configuration.
23217
23218Usage: $0 [OPTIONS] [FILE]...
23219
23220  -h, --help       print this help, then exit
23221  -V, --version    print version number and configuration settings, then exit
23222  -q, --quiet      do not print progress messages
23223  -d, --debug      don't remove temporary files
23224      --recheck    update $as_me by reconfiguring in the same conditions
23225  --file=FILE[:TEMPLATE]
23226		   instantiate the configuration file FILE
23227
23228Configuration files:
23229$config_files
23230
23231Configuration commands:
23232$config_commands
23233
23234Report bugs to <bug-autoconf@gnu.org>."
23235
23236_ACEOF
23237cat >>$CONFIG_STATUS <<_ACEOF
23238ac_cs_version="\\
23239ScriptSWF config.status 1.8.4
23240configured by $0, generated by GNU Autoconf 2.61,
23241  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23242
23243Copyright (C) 2006 Free Software Foundation, Inc.
23244This config.status script is free software; the Free Software Foundation
23245gives unlimited permission to copy, distribute and modify it."
23246
23247ac_pwd='$ac_pwd'
23248srcdir='$srcdir'
23249INSTALL='$INSTALL'
23250_ACEOF
23251
23252cat >>$CONFIG_STATUS <<\_ACEOF
23253# If no file are specified by the user, then we need to provide default
23254# value.  By we need to know if files were specified by the user.
23255ac_need_defaults=:
23256while test $# != 0
23257do
23258  case $1 in
23259  --*=*)
23260    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23261    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23262    ac_shift=:
23263    ;;
23264  *)
23265    ac_option=$1
23266    ac_optarg=$2
23267    ac_shift=shift
23268    ;;
23269  esac
23270
23271  case $ac_option in
23272  # Handling of the options.
23273  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23274    ac_cs_recheck=: ;;
23275  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23276    echo "$ac_cs_version"; exit ;;
23277  --debug | --debu | --deb | --de | --d | -d )
23278    debug=: ;;
23279  --file | --fil | --fi | --f )
23280    $ac_shift
23281    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23282    ac_need_defaults=false;;
23283  --he | --h |  --help | --hel | -h )
23284    echo "$ac_cs_usage"; exit ;;
23285  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23286  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23287    ac_cs_silent=: ;;
23288
23289  # This is an error.
23290  -*) { echo "$as_me: error: unrecognized option: $1
23291Try \`$0 --help' for more information." >&2
23292   { (exit 1); exit 1; }; } ;;
23293
23294  *) ac_config_targets="$ac_config_targets $1"
23295     ac_need_defaults=false ;;
23296
23297  esac
23298  shift
23299done
23300
23301ac_configure_extra_args=
23302
23303if $ac_cs_silent; then
23304  exec 6>/dev/null
23305  ac_configure_extra_args="$ac_configure_extra_args --silent"
23306fi
23307
23308_ACEOF
23309cat >>$CONFIG_STATUS <<_ACEOF
23310if \$ac_cs_recheck; then
23311  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23312  CONFIG_SHELL=$SHELL
23313  export CONFIG_SHELL
23314  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23315fi
23316
23317_ACEOF
23318cat >>$CONFIG_STATUS <<\_ACEOF
23319exec 5>>config.log
23320{
23321  echo
23322  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23323## Running $as_me. ##
23324_ASBOX
23325  echo "$ac_log"
23326} >&5
23327
23328_ACEOF
23329cat >>$CONFIG_STATUS <<_ACEOF
23330#
23331# INIT-COMMANDS
23332#
23333AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23334
23335_ACEOF
23336
23337cat >>$CONFIG_STATUS <<\_ACEOF
23338
23339# Handling of arguments.
23340for ac_config_target in $ac_config_targets
23341do
23342  case $ac_config_target in
23343    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23344    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23345    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23346    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23347    "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
23348    "src/libas/Makefile") CONFIG_FILES="$CONFIG_FILES src/libas/Makefile" ;;
23349    "src/libasas/Makefile") CONFIG_FILES="$CONFIG_FILES src/libasas/Makefile" ;;
23350    "src/libasc/Makefile") CONFIG_FILES="$CONFIG_FILES src/libasc/Makefile" ;;
23351    "src/misc/Makefile") CONFIG_FILES="$CONFIG_FILES src/misc/Makefile" ;;
23352    "src/sswf/Makefile") CONFIG_FILES="$CONFIG_FILES src/sswf/Makefile" ;;
23353    "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
23354    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
23355    "include/sswf/Makefile") CONFIG_FILES="$CONFIG_FILES include/sswf/Makefile" ;;
23356    "libsswf.pc") CONFIG_FILES="$CONFIG_FILES libsswf.pc" ;;
23357    "libsswf_c.pc") CONFIG_FILES="$CONFIG_FILES libsswf_c.pc" ;;
23358    "libsswf_as.pc") CONFIG_FILES="$CONFIG_FILES libsswf_as.pc" ;;
23359    "libsswf_asas.pc") CONFIG_FILES="$CONFIG_FILES libsswf_asas.pc" ;;
23360    "libsswf_asc.pc") CONFIG_FILES="$CONFIG_FILES libsswf_asc.pc" ;;
23361
23362  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23363echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23364   { (exit 1); exit 1; }; };;
23365  esac
23366done
23367
23368
23369# If the user did not use the arguments to specify the items to instantiate,
23370# then the envvar interface is used.  Set only those that are not.
23371# We use the long form for the default assignment because of an extremely
23372# bizarre bug on SunOS 4.1.3.
23373if $ac_need_defaults; then
23374  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23375  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23376fi
23377
23378# Have a temporary directory for convenience.  Make it in the build tree
23379# simply because there is no reason against having it here, and in addition,
23380# creating and moving files from /tmp can sometimes cause problems.
23381# Hook for its removal unless debugging.
23382# Note that there is a small window in which the directory will not be cleaned:
23383# after its creation but before its name has been assigned to `$tmp'.
23384$debug ||
23385{
23386  tmp=
23387  trap 'exit_status=$?
23388  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23389' 0
23390  trap '{ (exit 1); exit 1; }' 1 2 13 15
23391}
23392# Create a (secure) tmp directory for tmp files.
23393
23394{
23395  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23396  test -n "$tmp" && test -d "$tmp"
23397}  ||
23398{
23399  tmp=./conf$$-$RANDOM
23400  (umask 077 && mkdir "$tmp")
23401} ||
23402{
23403   echo "$me: cannot create a temporary directory in ." >&2
23404   { (exit 1); exit 1; }
23405}
23406
23407#
23408# Set up the sed scripts for CONFIG_FILES section.
23409#
23410
23411# No need to generate the scripts if there are no CONFIG_FILES.
23412# This happens for instance when ./config.status config.h
23413if test -n "$CONFIG_FILES"; then
23414
23415_ACEOF
23416
23417
23418
23419ac_delim='%!_!# '
23420for ac_last_try in false false false false false :; do
23421  cat >conf$$subs.sed <<_ACEOF
23422SHELL!$SHELL$ac_delim
23423PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23424PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23425PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23426PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23427PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23428PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23429exec_prefix!$exec_prefix$ac_delim
23430prefix!$prefix$ac_delim
23431program_transform_name!$program_transform_name$ac_delim
23432bindir!$bindir$ac_delim
23433sbindir!$sbindir$ac_delim
23434libexecdir!$libexecdir$ac_delim
23435datarootdir!$datarootdir$ac_delim
23436datadir!$datadir$ac_delim
23437sysconfdir!$sysconfdir$ac_delim
23438sharedstatedir!$sharedstatedir$ac_delim
23439localstatedir!$localstatedir$ac_delim
23440includedir!$includedir$ac_delim
23441oldincludedir!$oldincludedir$ac_delim
23442docdir!$docdir$ac_delim
23443infodir!$infodir$ac_delim
23444htmldir!$htmldir$ac_delim
23445dvidir!$dvidir$ac_delim
23446pdfdir!$pdfdir$ac_delim
23447psdir!$psdir$ac_delim
23448libdir!$libdir$ac_delim
23449localedir!$localedir$ac_delim
23450mandir!$mandir$ac_delim
23451DEFS!$DEFS$ac_delim
23452ECHO_C!$ECHO_C$ac_delim
23453ECHO_N!$ECHO_N$ac_delim
23454ECHO_T!$ECHO_T$ac_delim
23455LIBS!$LIBS$ac_delim
23456build_alias!$build_alias$ac_delim
23457host_alias!$host_alias$ac_delim
23458target_alias!$target_alias$ac_delim
23459INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23460INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23461INSTALL_DATA!$INSTALL_DATA$ac_delim
23462CYGPATH_W!$CYGPATH_W$ac_delim
23463PACKAGE!$PACKAGE$ac_delim
23464VERSION!$VERSION$ac_delim
23465ACLOCAL!$ACLOCAL$ac_delim
23466AUTOCONF!$AUTOCONF$ac_delim
23467AUTOMAKE!$AUTOMAKE$ac_delim
23468AUTOHEADER!$AUTOHEADER$ac_delim
23469MAKEINFO!$MAKEINFO$ac_delim
23470install_sh!$install_sh$ac_delim
23471STRIP!$STRIP$ac_delim
23472INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23473mkdir_p!$mkdir_p$ac_delim
23474AWK!$AWK$ac_delim
23475SET_MAKE!$SET_MAKE$ac_delim
23476am__leading_dot!$am__leading_dot$ac_delim
23477AMTAR!$AMTAR$ac_delim
23478am__tar!$am__tar$ac_delim
23479am__untar!$am__untar$ac_delim
23480build!$build$ac_delim
23481build_cpu!$build_cpu$ac_delim
23482build_vendor!$build_vendor$ac_delim
23483build_os!$build_os$ac_delim
23484host!$host$ac_delim
23485host_cpu!$host_cpu$ac_delim
23486host_vendor!$host_vendor$ac_delim
23487host_os!$host_os$ac_delim
23488CC!$CC$ac_delim
23489CFLAGS!$CFLAGS$ac_delim
23490LDFLAGS!$LDFLAGS$ac_delim
23491CPPFLAGS!$CPPFLAGS$ac_delim
23492ac_ct_CC!$ac_ct_CC$ac_delim
23493EXEEXT!$EXEEXT$ac_delim
23494OBJEXT!$OBJEXT$ac_delim
23495DEPDIR!$DEPDIR$ac_delim
23496am__include!$am__include$ac_delim
23497am__quote!$am__quote$ac_delim
23498AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23499AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23500AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23501CCDEPMODE!$CCDEPMODE$ac_delim
23502am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23503am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23504SED!$SED$ac_delim
23505GREP!$GREP$ac_delim
23506EGREP!$EGREP$ac_delim
23507LN_S!$LN_S$ac_delim
23508ECHO!$ECHO$ac_delim
23509AR!$AR$ac_delim
23510RANLIB!$RANLIB$ac_delim
23511DSYMUTIL!$DSYMUTIL$ac_delim
23512NMEDIT!$NMEDIT$ac_delim
23513DLLTOOL!$DLLTOOL$ac_delim
23514AS!$AS$ac_delim
23515OBJDUMP!$OBJDUMP$ac_delim
23516CPP!$CPP$ac_delim
23517CXX!$CXX$ac_delim
23518CXXFLAGS!$CXXFLAGS$ac_delim
23519_ACEOF
23520
23521  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23522    break
23523  elif $ac_last_try; then
23524    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23525echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23526   { (exit 1); exit 1; }; }
23527  else
23528    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23529  fi
23530done
23531
23532ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23533if test -n "$ac_eof"; then
23534  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23535  ac_eof=`expr $ac_eof + 1`
23536fi
23537
23538cat >>$CONFIG_STATUS <<_ACEOF
23539cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23540/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23541_ACEOF
23542sed '
23543s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23544s/^/s,@/; s/!/@,|#_!!_#|/
23545:n
23546t n
23547s/'"$ac_delim"'$/,g/; t
23548s/$/\\/; p
23549N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23550' >>$CONFIG_STATUS <conf$$subs.sed
23551rm -f conf$$subs.sed
23552cat >>$CONFIG_STATUS <<_ACEOF
23553CEOF$ac_eof
23554_ACEOF
23555
23556
23557ac_delim='%!_!# '
23558for ac_last_try in false false false false false :; do
23559  cat >conf$$subs.sed <<_ACEOF
23560ac_ct_CXX!$ac_ct_CXX$ac_delim
23561CXXDEPMODE!$CXXDEPMODE$ac_delim
23562am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23563am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23564CXXCPP!$CXXCPP$ac_delim
23565F77!$F77$ac_delim
23566FFLAGS!$FFLAGS$ac_delim
23567ac_ct_F77!$ac_ct_F77$ac_delim
23568LIBTOOL!$LIBTOOL$ac_delim
23569YACC!$YACC$ac_delim
23570YFLAGS!$YFLAGS$ac_delim
23571PLATFORM_WIN32_TRUE!$PLATFORM_WIN32_TRUE$ac_delim
23572PLATFORM_WIN32_FALSE!$PLATFORM_WIN32_FALSE$ac_delim
23573NO_UNDEFINED!$NO_UNDEFINED$ac_delim
23574ICONV_LIBS!$ICONV_LIBS$ac_delim
23575JPEG_LIBS!$JPEG_LIBS$ac_delim
23576ZLIB_LIBS!$ZLIB_LIBS$ac_delim
23577FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
23578FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
23579FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
23580HAVE_FREETYPE_TRUE!$HAVE_FREETYPE_TRUE$ac_delim
23581HAVE_FREETYPE_FALSE!$HAVE_FREETYPE_FALSE$ac_delim
23582BUILD_WITH_INTERNAL_SCRIPTS_TRUE!$BUILD_WITH_INTERNAL_SCRIPTS_TRUE$ac_delim
23583BUILD_WITH_INTERNAL_SCRIPTS_FALSE!$BUILD_WITH_INTERNAL_SCRIPTS_FALSE$ac_delim
23584BUILD_NOTES_TO_HTML_TRUE!$BUILD_NOTES_TO_HTML_TRUE$ac_delim
23585BUILD_NOTES_TO_HTML_FALSE!$BUILD_NOTES_TO_HTML_FALSE$ac_delim
23586BUILD_CPP_TO_C_TRUE!$BUILD_CPP_TO_C_TRUE$ac_delim
23587BUILD_CPP_TO_C_FALSE!$BUILD_CPP_TO_C_FALSE$ac_delim
23588BUILD_ASC_TO_C_TRUE!$BUILD_ASC_TO_C_TRUE$ac_delim
23589BUILD_ASC_TO_C_FALSE!$BUILD_ASC_TO_C_FALSE$ac_delim
23590INSTALL_SSWF_DOCS_TRUE!$INSTALL_SSWF_DOCS_TRUE$ac_delim
23591INSTALL_SSWF_DOCS_FALSE!$INSTALL_SSWF_DOCS_FALSE$ac_delim
23592pkgconfigdir!$pkgconfigdir$ac_delim
23593NOT_RPM_DOCS_TRUE!$NOT_RPM_DOCS_TRUE$ac_delim
23594NOT_RPM_DOCS_FALSE!$NOT_RPM_DOCS_FALSE$ac_delim
23595SAMPLES!$SAMPLES$ac_delim
23596MISC!$MISC$ac_delim
23597TXTDOC!$TXTDOC$ac_delim
23598HTMLDOC!$HTMLDOC$ac_delim
23599MANDOC!$MANDOC$ac_delim
23600ASCHEADERS!$ASCHEADERS$ac_delim
23601LIBSSWF_VERSION!$LIBSSWF_VERSION$ac_delim
23602LIBSSWFC_VERSION!$LIBSSWFC_VERSION$ac_delim
23603LIBSSWFAS_VERSION!$LIBSSWFAS_VERSION$ac_delim
23604LIBSSWFASAS_VERSION!$LIBSSWFASAS_VERSION$ac_delim
23605LIBSSWFASC_VERSION!$LIBSSWFASC_VERSION$ac_delim
23606LIBOBJS!$LIBOBJS$ac_delim
23607LTLIBOBJS!$LTLIBOBJS$ac_delim
23608_ACEOF
23609
23610  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
23611    break
23612  elif $ac_last_try; then
23613    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23614echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23615   { (exit 1); exit 1; }; }
23616  else
23617    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23618  fi
23619done
23620
23621ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23622if test -n "$ac_eof"; then
23623  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23624  ac_eof=`expr $ac_eof + 1`
23625fi
23626
23627cat >>$CONFIG_STATUS <<_ACEOF
23628cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23629/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23630_ACEOF
23631sed '
23632s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23633s/^/s,@/; s/!/@,|#_!!_#|/
23634:n
23635t n
23636s/'"$ac_delim"'$/,g/; t
23637s/$/\\/; p
23638N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23639' >>$CONFIG_STATUS <conf$$subs.sed
23640rm -f conf$$subs.sed
23641cat >>$CONFIG_STATUS <<_ACEOF
23642:end
23643s/|#_!!_#|//g
23644CEOF$ac_eof
23645_ACEOF
23646
23647
23648# VPATH may cause trouble with some makes, so we remove $(srcdir),
23649# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23650# trailing colons and then remove the whole line if VPATH becomes empty
23651# (actually we leave an empty line to preserve line numbers).
23652if test "x$srcdir" = x.; then
23653  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23654s/:*\$(srcdir):*/:/
23655s/:*\${srcdir}:*/:/
23656s/:*@srcdir@:*/:/
23657s/^\([^=]*=[	 ]*\):*/\1/
23658s/:*$//
23659s/^[^=]*=[	 ]*$//
23660}'
23661fi
23662
23663cat >>$CONFIG_STATUS <<\_ACEOF
23664fi # test -n "$CONFIG_FILES"
23665
23666
23667for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
23668do
23669  case $ac_tag in
23670  :[FHLC]) ac_mode=$ac_tag; continue;;
23671  esac
23672  case $ac_mode$ac_tag in
23673  :[FHL]*:*);;
23674  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23675echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23676   { (exit 1); exit 1; }; };;
23677  :[FH]-) ac_tag=-:-;;
23678  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23679  esac
23680  ac_save_IFS=$IFS
23681  IFS=:
23682  set x $ac_tag
23683  IFS=$ac_save_IFS
23684  shift
23685  ac_file=$1
23686  shift
23687
23688  case $ac_mode in
23689  :L) ac_source=$1;;
23690  :[FH])
23691    ac_file_inputs=
23692    for ac_f
23693    do
23694      case $ac_f in
23695      -) ac_f="$tmp/stdin";;
23696      *) # Look for the file first in the build tree, then in the source tree
23697	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23698	 # because $ac_f cannot contain `:'.
23699	 test -f "$ac_f" ||
23700	   case $ac_f in
23701	   [\\/$]*) false;;
23702	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23703	   esac ||
23704	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23705echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23706   { (exit 1); exit 1; }; };;
23707      esac
23708      ac_file_inputs="$ac_file_inputs $ac_f"
23709    done
23710
23711    # Let's still pretend it is `configure' which instantiates (i.e., don't
23712    # use $as_me), people would be surprised to read:
23713    #    /* config.h.  Generated by config.status.  */
23714    configure_input="Generated from "`IFS=:
23715	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23716    if test x"$ac_file" != x-; then
23717      configure_input="$ac_file.  $configure_input"
23718      { echo "$as_me:$LINENO: creating $ac_file" >&5
23719echo "$as_me: creating $ac_file" >&6;}
23720    fi
23721
23722    case $ac_tag in
23723    *:-:* | *:-) cat >"$tmp/stdin";;
23724    esac
23725    ;;
23726  esac
23727
23728  ac_dir=`$as_dirname -- "$ac_file" ||
23729$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23730	 X"$ac_file" : 'X\(//\)[^/]' \| \
23731	 X"$ac_file" : 'X\(//\)$' \| \
23732	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23733echo X"$ac_file" |
23734    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23735	    s//\1/
23736	    q
23737	  }
23738	  /^X\(\/\/\)[^/].*/{
23739	    s//\1/
23740	    q
23741	  }
23742	  /^X\(\/\/\)$/{
23743	    s//\1/
23744	    q
23745	  }
23746	  /^X\(\/\).*/{
23747	    s//\1/
23748	    q
23749	  }
23750	  s/.*/./; q'`
23751  { as_dir="$ac_dir"
23752  case $as_dir in #(
23753  -*) as_dir=./$as_dir;;
23754  esac
23755  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23756    as_dirs=
23757    while :; do
23758      case $as_dir in #(
23759      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23760      *) as_qdir=$as_dir;;
23761      esac
23762      as_dirs="'$as_qdir' $as_dirs"
23763      as_dir=`$as_dirname -- "$as_dir" ||
23764$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23765	 X"$as_dir" : 'X\(//\)[^/]' \| \
23766	 X"$as_dir" : 'X\(//\)$' \| \
23767	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23768echo X"$as_dir" |
23769    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23770	    s//\1/
23771	    q
23772	  }
23773	  /^X\(\/\/\)[^/].*/{
23774	    s//\1/
23775	    q
23776	  }
23777	  /^X\(\/\/\)$/{
23778	    s//\1/
23779	    q
23780	  }
23781	  /^X\(\/\).*/{
23782	    s//\1/
23783	    q
23784	  }
23785	  s/.*/./; q'`
23786      test -d "$as_dir" && break
23787    done
23788    test -z "$as_dirs" || eval "mkdir $as_dirs"
23789  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23790echo "$as_me: error: cannot create directory $as_dir" >&2;}
23791   { (exit 1); exit 1; }; }; }
23792  ac_builddir=.
23793
23794case "$ac_dir" in
23795.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23796*)
23797  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23798  # A ".." for each directory in $ac_dir_suffix.
23799  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23800  case $ac_top_builddir_sub in
23801  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23802  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23803  esac ;;
23804esac
23805ac_abs_top_builddir=$ac_pwd
23806ac_abs_builddir=$ac_pwd$ac_dir_suffix
23807# for backward compatibility:
23808ac_top_builddir=$ac_top_build_prefix
23809
23810case $srcdir in
23811  .)  # We are building in place.
23812    ac_srcdir=.
23813    ac_top_srcdir=$ac_top_builddir_sub
23814    ac_abs_top_srcdir=$ac_pwd ;;
23815  [\\/]* | ?:[\\/]* )  # Absolute name.
23816    ac_srcdir=$srcdir$ac_dir_suffix;
23817    ac_top_srcdir=$srcdir
23818    ac_abs_top_srcdir=$srcdir ;;
23819  *) # Relative name.
23820    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23821    ac_top_srcdir=$ac_top_build_prefix$srcdir
23822    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23823esac
23824ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23825
23826
23827  case $ac_mode in
23828  :F)
23829  #
23830  # CONFIG_FILE
23831  #
23832
23833  case $INSTALL in
23834  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23835  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23836  esac
23837_ACEOF
23838
23839cat >>$CONFIG_STATUS <<\_ACEOF
23840# If the template does not know about datarootdir, expand it.
23841# FIXME: This hack should be removed a few years after 2.60.
23842ac_datarootdir_hack=; ac_datarootdir_seen=
23843
23844case `sed -n '/datarootdir/ {
23845  p
23846  q
23847}
23848/@datadir@/p
23849/@docdir@/p
23850/@infodir@/p
23851/@localedir@/p
23852/@mandir@/p
23853' $ac_file_inputs` in
23854*datarootdir*) ac_datarootdir_seen=yes;;
23855*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23856  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23857echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23858_ACEOF
23859cat >>$CONFIG_STATUS <<_ACEOF
23860  ac_datarootdir_hack='
23861  s&@datadir@&$datadir&g
23862  s&@docdir@&$docdir&g
23863  s&@infodir@&$infodir&g
23864  s&@localedir@&$localedir&g
23865  s&@mandir@&$mandir&g
23866    s&\\\${datarootdir}&$datarootdir&g' ;;
23867esac
23868_ACEOF
23869
23870# Neutralize VPATH when `$srcdir' = `.'.
23871# Shell code in configure.ac might set extrasub.
23872# FIXME: do we really want to maintain this feature?
23873cat >>$CONFIG_STATUS <<_ACEOF
23874  sed "$ac_vpsub
23875$extrasub
23876_ACEOF
23877cat >>$CONFIG_STATUS <<\_ACEOF
23878:t
23879/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23880s&@configure_input@&$configure_input&;t t
23881s&@top_builddir@&$ac_top_builddir_sub&;t t
23882s&@srcdir@&$ac_srcdir&;t t
23883s&@abs_srcdir@&$ac_abs_srcdir&;t t
23884s&@top_srcdir@&$ac_top_srcdir&;t t
23885s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23886s&@builddir@&$ac_builddir&;t t
23887s&@abs_builddir@&$ac_abs_builddir&;t t
23888s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23889s&@INSTALL@&$ac_INSTALL&;t t
23890$ac_datarootdir_hack
23891" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23892
23893test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23894  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23895  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23896  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23897which seems to be undefined.  Please make sure it is defined." >&5
23898echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23899which seems to be undefined.  Please make sure it is defined." >&2;}
23900
23901  rm -f "$tmp/stdin"
23902  case $ac_file in
23903  -) cat "$tmp/out"; rm -f "$tmp/out";;
23904  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23905  esac
23906 ;;
23907
23908
23909  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23910echo "$as_me: executing $ac_file commands" >&6;}
23911 ;;
23912  esac
23913
23914
23915  case $ac_file$ac_mode in
23916    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23917  # Strip MF so we end up with the name of the file.
23918  mf=`echo "$mf" | sed -e 's/:.*$//'`
23919  # Check whether this is an Automake generated Makefile or not.
23920  # We used to match only the files named `Makefile.in', but
23921  # some people rename them; so instead we look at the file content.
23922  # Grep'ing the first line is not enough: some people post-process
23923  # each Makefile.in and add a new line on top of each file to say so.
23924  # So let's grep whole file.
23925  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23926    dirpart=`$as_dirname -- "$mf" ||
23927$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23928	 X"$mf" : 'X\(//\)[^/]' \| \
23929	 X"$mf" : 'X\(//\)$' \| \
23930	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23931echo X"$mf" |
23932    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23933	    s//\1/
23934	    q
23935	  }
23936	  /^X\(\/\/\)[^/].*/{
23937	    s//\1/
23938	    q
23939	  }
23940	  /^X\(\/\/\)$/{
23941	    s//\1/
23942	    q
23943	  }
23944	  /^X\(\/\).*/{
23945	    s//\1/
23946	    q
23947	  }
23948	  s/.*/./; q'`
23949  else
23950    continue
23951  fi
23952  # Extract the definition of DEPDIR, am__include, and am__quote
23953  # from the Makefile without running `make'.
23954  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23955  test -z "$DEPDIR" && continue
23956  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23957  test -z "am__include" && continue
23958  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23959  # When using ansi2knr, U may be empty or an underscore; expand it
23960  U=`sed -n 's/^U = //p' < "$mf"`
23961  # Find all dependency output files, they are included files with
23962  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23963  # simplest approach to changing $(DEPDIR) to its actual value in the
23964  # expansion.
23965  for file in `sed -n "
23966    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23967       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23968    # Make sure the directory exists.
23969    test -f "$dirpart/$file" && continue
23970    fdir=`$as_dirname -- "$file" ||
23971$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23972	 X"$file" : 'X\(//\)[^/]' \| \
23973	 X"$file" : 'X\(//\)$' \| \
23974	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23975echo X"$file" |
23976    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23977	    s//\1/
23978	    q
23979	  }
23980	  /^X\(\/\/\)[^/].*/{
23981	    s//\1/
23982	    q
23983	  }
23984	  /^X\(\/\/\)$/{
23985	    s//\1/
23986	    q
23987	  }
23988	  /^X\(\/\).*/{
23989	    s//\1/
23990	    q
23991	  }
23992	  s/.*/./; q'`
23993    { as_dir=$dirpart/$fdir
23994  case $as_dir in #(
23995  -*) as_dir=./$as_dir;;
23996  esac
23997  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23998    as_dirs=
23999    while :; do
24000      case $as_dir in #(
24001      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24002      *) as_qdir=$as_dir;;
24003      esac
24004      as_dirs="'$as_qdir' $as_dirs"
24005      as_dir=`$as_dirname -- "$as_dir" ||
24006$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24007	 X"$as_dir" : 'X\(//\)[^/]' \| \
24008	 X"$as_dir" : 'X\(//\)$' \| \
24009	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24010echo X"$as_dir" |
24011    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24012	    s//\1/
24013	    q
24014	  }
24015	  /^X\(\/\/\)[^/].*/{
24016	    s//\1/
24017	    q
24018	  }
24019	  /^X\(\/\/\)$/{
24020	    s//\1/
24021	    q
24022	  }
24023	  /^X\(\/\).*/{
24024	    s//\1/
24025	    q
24026	  }
24027	  s/.*/./; q'`
24028      test -d "$as_dir" && break
24029    done
24030    test -z "$as_dirs" || eval "mkdir $as_dirs"
24031  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24032echo "$as_me: error: cannot create directory $as_dir" >&2;}
24033   { (exit 1); exit 1; }; }; }
24034    # echo "creating $dirpart/$file"
24035    echo '# dummy' > "$dirpart/$file"
24036  done
24037done
24038 ;;
24039
24040  esac
24041done # for ac_tag
24042
24043
24044{ (exit 0); exit 0; }
24045_ACEOF
24046chmod +x $CONFIG_STATUS
24047ac_clean_files=$ac_clean_files_save
24048
24049
24050# configure is writing to config.log, and then calls config.status.
24051# config.status does its own redirection, appending to config.log.
24052# Unfortunately, on DOS this fails, as config.log is still kept open
24053# by configure, so config.status won't be able to write to it; its
24054# output is simply discarded.  So we exec the FD to /dev/null,
24055# effectively closing config.log, so it can be properly (re)opened and
24056# appended to by config.status.  When coming back to configure, we
24057# need to make the FD available again.
24058if test "$no_create" != yes; then
24059  ac_cs_success=:
24060  ac_config_status_args=
24061  test "$silent" = yes &&
24062    ac_config_status_args="$ac_config_status_args --quiet"
24063  exec 5>/dev/null
24064  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24065  exec 5>>config.log
24066  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24067  # would make configure fail if this is the last instruction.
24068  $ac_cs_success || { (exit 1); exit 1; }
24069fi
24070
24071