1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for scanbuttond 0.2.3.
4#
5# Report bugs to <root84@users.soureforge.net>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252  # Remove one level of quotation (which was required for Make).
253  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254  ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259  # Discard the --no-reexec flag, and continue.
260  shift
261elif test "X$1" = X--fallback-echo; then
262  # Avoid inline document here, it may be left over
263  :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265  # Yippee, $echo works!
266  :
267else
268  # Restart under the correct shell.
269  exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273  # used as fallback echo
274  shift
275  cat <<EOF
276$*
277EOF
278  exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291       echo_test_string=`eval $cmd` &&
292       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293    then
294      break
295    fi
296  done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301   test "X$echo_testing_string" = "X$echo_test_string"; then
302  :
303else
304  # The Solaris, AIX, and Digital Unix default echo programs unquote
305  # backslashes.  This makes it impossible to quote backslashes using
306  #   echo "$something" | sed 's/\\/\\\\/g'
307  #
308  # So, first we look for a working echo in the user's PATH.
309
310  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311  for dir in $PATH /usr/ucb; do
312    IFS="$lt_save_ifs"
313    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316       test "X$echo_testing_string" = "X$echo_test_string"; then
317      echo="$dir/echo"
318      break
319    fi
320  done
321  IFS="$lt_save_ifs"
322
323  if test "X$echo" = Xecho; then
324    # We didn't find a better echo, so look for alternatives.
325    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327       test "X$echo_testing_string" = "X$echo_test_string"; then
328      # This shell has a builtin print -r that does the trick.
329      echo='print -r'
330    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331	 test "X$CONFIG_SHELL" != X/bin/ksh; then
332      # If we have ksh, try running configure again with it.
333      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334      export ORIGINAL_CONFIG_SHELL
335      CONFIG_SHELL=/bin/ksh
336      export CONFIG_SHELL
337      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338    else
339      # Try using printf.
340      echo='printf %s\n'
341      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343	 test "X$echo_testing_string" = "X$echo_test_string"; then
344	# Cool, printf works
345	:
346      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347	   test "X$echo_testing_string" = 'X\t' &&
348	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349	   test "X$echo_testing_string" = "X$echo_test_string"; then
350	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351	export CONFIG_SHELL
352	SHELL="$CONFIG_SHELL"
353	export SHELL
354	echo="$CONFIG_SHELL $0 --fallback-echo"
355      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356	   test "X$echo_testing_string" = 'X\t' &&
357	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358	   test "X$echo_testing_string" = "X$echo_test_string"; then
359	echo="$CONFIG_SHELL $0 --fallback-echo"
360      else
361	# maybe with a smaller string...
362	prev=:
363
364	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366	  then
367	    break
368	  fi
369	  prev="$cmd"
370	done
371
372	if test "$prev" != 'sed 50q "$0"'; then
373	  echo_test_string=`eval $prev`
374	  export echo_test_string
375	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376	else
377	  # Oops.  We lost completely, so just stick with echo.
378	  echo=echo
379	fi
380      fi
381    fi
382  fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete.  It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='scanbuttond'
425PACKAGE_TARNAME='scanbuttond'
426PACKAGE_VERSION='0.2.3'
427PACKAGE_STRING='scanbuttond 0.2.3'
428PACKAGE_BUGREPORT='root84@users.soureforge.net'
429
430# Factoring default headers for most tests.
431ac_includes_default="\
432#include <stdio.h>
433#if HAVE_SYS_TYPES_H
434# include <sys/types.h>
435#endif
436#if HAVE_SYS_STAT_H
437# include <sys/stat.h>
438#endif
439#if STDC_HEADERS
440# include <stdlib.h>
441# include <stddef.h>
442#else
443# if HAVE_STDLIB_H
444#  include <stdlib.h>
445# endif
446#endif
447#if HAVE_STRING_H
448# if !STDC_HEADERS && HAVE_MEMORY_H
449#  include <memory.h>
450# endif
451# include <string.h>
452#endif
453#if HAVE_STRINGS_H
454# include <strings.h>
455#endif
456#if HAVE_INTTYPES_H
457# include <inttypes.h>
458#else
459# if HAVE_STDINT_H
460#  include <stdint.h>
461# endif
462#endif
463#if HAVE_UNISTD_H
464# include <unistd.h>
465#endif"
466
467ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
468ac_subst_files=''
469
470# Initialize some variables set by options.
471ac_init_help=
472ac_init_version=false
473# The variables have the same names as the options, with
474# dashes changed to underlines.
475cache_file=/dev/null
476exec_prefix=NONE
477no_create=
478no_recursion=
479prefix=NONE
480program_prefix=NONE
481program_suffix=NONE
482program_transform_name=s,x,x,
483silent=
484site=
485srcdir=
486verbose=
487x_includes=NONE
488x_libraries=NONE
489
490# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them.
495bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share'
499sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include'
504oldincludedir='/usr/include'
505infodir='${prefix}/info'
506mandir='${prefix}/man'
507
508ac_prev=
509for ac_option
510do
511  # If the previous option needs an argument, assign it.
512  if test -n "$ac_prev"; then
513    eval "$ac_prev=\$ac_option"
514    ac_prev=
515    continue
516  fi
517
518  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520  # Accept the important Cygnus configure options, so we can diagnose typos.
521
522  case $ac_option in
523
524  -bindir | --bindir | --bindi | --bind | --bin | --bi)
525    ac_prev=bindir ;;
526  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527    bindir=$ac_optarg ;;
528
529  -build | --build | --buil | --bui | --bu)
530    ac_prev=build_alias ;;
531  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532    build_alias=$ac_optarg ;;
533
534  -cache-file | --cache-file | --cache-fil | --cache-fi \
535  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536    ac_prev=cache_file ;;
537  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539    cache_file=$ac_optarg ;;
540
541  --config-cache | -C)
542    cache_file=config.cache ;;
543
544  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545    ac_prev=datadir ;;
546  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547  | --da=*)
548    datadir=$ac_optarg ;;
549
550  -disable-* | --disable-*)
551    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552    # Reject names that are not valid shell variable names.
553    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555   { (exit 1); exit 1; }; }
556    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557    eval "enable_$ac_feature=no" ;;
558
559  -enable-* | --enable-*)
560    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561    # Reject names that are not valid shell variable names.
562    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564   { (exit 1); exit 1; }; }
565    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566    case $ac_option in
567      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568      *) ac_optarg=yes ;;
569    esac
570    eval "enable_$ac_feature='$ac_optarg'" ;;
571
572  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574  | --exec | --exe | --ex)
575    ac_prev=exec_prefix ;;
576  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578  | --exec=* | --exe=* | --ex=*)
579    exec_prefix=$ac_optarg ;;
580
581  -gas | --gas | --ga | --g)
582    # Obsolete; use --with-gas.
583    with_gas=yes ;;
584
585  -help | --help | --hel | --he | -h)
586    ac_init_help=long ;;
587  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588    ac_init_help=recursive ;;
589  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590    ac_init_help=short ;;
591
592  -host | --host | --hos | --ho)
593    ac_prev=host_alias ;;
594  -host=* | --host=* | --hos=* | --ho=*)
595    host_alias=$ac_optarg ;;
596
597  -includedir | --includedir | --includedi | --included | --include \
598  | --includ | --inclu | --incl | --inc)
599    ac_prev=includedir ;;
600  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601  | --includ=* | --inclu=* | --incl=* | --inc=*)
602    includedir=$ac_optarg ;;
603
604  -infodir | --infodir | --infodi | --infod | --info | --inf)
605    ac_prev=infodir ;;
606  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607    infodir=$ac_optarg ;;
608
609  -libdir | --libdir | --libdi | --libd)
610    ac_prev=libdir ;;
611  -libdir=* | --libdir=* | --libdi=* | --libd=*)
612    libdir=$ac_optarg ;;
613
614  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615  | --libexe | --libex | --libe)
616    ac_prev=libexecdir ;;
617  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618  | --libexe=* | --libex=* | --libe=*)
619    libexecdir=$ac_optarg ;;
620
621  -localstatedir | --localstatedir | --localstatedi | --localstated \
622  | --localstate | --localstat | --localsta | --localst \
623  | --locals | --local | --loca | --loc | --lo)
624    ac_prev=localstatedir ;;
625  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628    localstatedir=$ac_optarg ;;
629
630  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631    ac_prev=mandir ;;
632  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633    mandir=$ac_optarg ;;
634
635  -nfp | --nfp | --nf)
636    # Obsolete; use --without-fp.
637    with_fp=no ;;
638
639  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640  | --no-cr | --no-c | -n)
641    no_create=yes ;;
642
643  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645    no_recursion=yes ;;
646
647  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649  | --oldin | --oldi | --old | --ol | --o)
650    ac_prev=oldincludedir ;;
651  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654    oldincludedir=$ac_optarg ;;
655
656  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657    ac_prev=prefix ;;
658  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659    prefix=$ac_optarg ;;
660
661  -program-prefix | --program-prefix | --program-prefi | --program-pref \
662  | --program-pre | --program-pr | --program-p)
663    ac_prev=program_prefix ;;
664  -program-prefix=* | --program-prefix=* | --program-prefi=* \
665  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666    program_prefix=$ac_optarg ;;
667
668  -program-suffix | --program-suffix | --program-suffi | --program-suff \
669  | --program-suf | --program-su | --program-s)
670    ac_prev=program_suffix ;;
671  -program-suffix=* | --program-suffix=* | --program-suffi=* \
672  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673    program_suffix=$ac_optarg ;;
674
675  -program-transform-name | --program-transform-name \
676  | --program-transform-nam | --program-transform-na \
677  | --program-transform-n | --program-transform- \
678  | --program-transform | --program-transfor \
679  | --program-transfo | --program-transf \
680  | --program-trans | --program-tran \
681  | --progr-tra | --program-tr | --program-t)
682    ac_prev=program_transform_name ;;
683  -program-transform-name=* | --program-transform-name=* \
684  | --program-transform-nam=* | --program-transform-na=* \
685  | --program-transform-n=* | --program-transform-=* \
686  | --program-transform=* | --program-transfor=* \
687  | --program-transfo=* | --program-transf=* \
688  | --program-trans=* | --program-tran=* \
689  | --progr-tra=* | --program-tr=* | --program-t=*)
690    program_transform_name=$ac_optarg ;;
691
692  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693  | -silent | --silent | --silen | --sile | --sil)
694    silent=yes ;;
695
696  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697    ac_prev=sbindir ;;
698  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699  | --sbi=* | --sb=*)
700    sbindir=$ac_optarg ;;
701
702  -sharedstatedir | --sharedstatedir | --sharedstatedi \
703  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704  | --sharedst | --shareds | --shared | --share | --shar \
705  | --sha | --sh)
706    ac_prev=sharedstatedir ;;
707  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710  | --sha=* | --sh=*)
711    sharedstatedir=$ac_optarg ;;
712
713  -site | --site | --sit)
714    ac_prev=site ;;
715  -site=* | --site=* | --sit=*)
716    site=$ac_optarg ;;
717
718  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719    ac_prev=srcdir ;;
720  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721    srcdir=$ac_optarg ;;
722
723  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724  | --syscon | --sysco | --sysc | --sys | --sy)
725    ac_prev=sysconfdir ;;
726  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728    sysconfdir=$ac_optarg ;;
729
730  -target | --target | --targe | --targ | --tar | --ta | --t)
731    ac_prev=target_alias ;;
732  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733    target_alias=$ac_optarg ;;
734
735  -v | -verbose | --verbose | --verbos | --verbo | --verb)
736    verbose=yes ;;
737
738  -version | --version | --versio | --versi | --vers | -V)
739    ac_init_version=: ;;
740
741  -with-* | --with-*)
742    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743    # Reject names that are not valid shell variable names.
744    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745      { echo "$as_me: error: invalid package name: $ac_package" >&2
746   { (exit 1); exit 1; }; }
747    ac_package=`echo $ac_package| sed 's/-/_/g'`
748    case $ac_option in
749      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750      *) ac_optarg=yes ;;
751    esac
752    eval "with_$ac_package='$ac_optarg'" ;;
753
754  -without-* | --without-*)
755    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756    # Reject names that are not valid shell variable names.
757    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758      { echo "$as_me: error: invalid package name: $ac_package" >&2
759   { (exit 1); exit 1; }; }
760    ac_package=`echo $ac_package | sed 's/-/_/g'`
761    eval "with_$ac_package=no" ;;
762
763  --x)
764    # Obsolete; use --with-x.
765    with_x=yes ;;
766
767  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768  | --x-incl | --x-inc | --x-in | --x-i)
769    ac_prev=x_includes ;;
770  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772    x_includes=$ac_optarg ;;
773
774  -x-libraries | --x-libraries | --x-librarie | --x-librari \
775  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776    ac_prev=x_libraries ;;
777  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779    x_libraries=$ac_optarg ;;
780
781  -*) { echo "$as_me: error: unrecognized option: $ac_option
782Try \`$0 --help' for more information." >&2
783   { (exit 1); exit 1; }; }
784    ;;
785
786  *=*)
787    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788    # Reject names that are not valid shell variable names.
789    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791   { (exit 1); exit 1; }; }
792    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793    eval "$ac_envvar='$ac_optarg'"
794    export $ac_envvar ;;
795
796  *)
797    # FIXME: should be removed in autoconf 3.0.
798    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802    ;;
803
804  esac
805done
806
807if test -n "$ac_prev"; then
808  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809  { echo "$as_me: error: missing argument to $ac_option" >&2
810   { (exit 1); exit 1; }; }
811fi
812
813# Be sure to have absolute paths.
814for ac_var in exec_prefix prefix
815do
816  eval ac_val=$`echo $ac_var`
817  case $ac_val in
818    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820   { (exit 1); exit 1; }; };;
821  esac
822done
823
824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826	      localstatedir libdir includedir oldincludedir infodir mandir
827do
828  eval ac_val=$`echo $ac_var`
829  case $ac_val in
830    [\\/$]* | ?:[\\/]* ) ;;
831    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832   { (exit 1); exit 1; }; };;
833  esac
834done
835
836# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc.
838# FIXME: To remove some day.
839build=$build_alias
840host=$host_alias
841target=$target_alias
842
843# FIXME: To remove some day.
844if test "x$host_alias" != x; then
845  if test "x$build_alias" = x; then
846    cross_compiling=maybe
847    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848    If a cross compiler is detected then cross compile mode will be used." >&2
849  elif test "x$build_alias" != "x$host_alias"; then
850    cross_compiling=yes
851  fi
852fi
853
854ac_tool_prefix=
855test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857test "$silent" = yes && exec 6>/dev/null
858
859
860# Find the source files, if location was not specified.
861if test -z "$srcdir"; then
862  ac_srcdir_defaulted=yes
863  # Try the directory containing this script, then its parent.
864  ac_confdir=`(dirname "$0") 2>/dev/null ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866	 X"$0" : 'X\(//\)[^/]' \| \
867	 X"$0" : 'X\(//\)$' \| \
868	 X"$0" : 'X\(/\)' \| \
869	 .     : '\(.\)' 2>/dev/null ||
870echo X"$0" |
871    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873  	  /^X\(\/\/\)$/{ s//\1/; q; }
874  	  /^X\(\/\).*/{ s//\1/; q; }
875  	  s/.*/./; q'`
876  srcdir=$ac_confdir
877  if test ! -r $srcdir/$ac_unique_file; then
878    srcdir=..
879  fi
880else
881  ac_srcdir_defaulted=no
882fi
883if test ! -r $srcdir/$ac_unique_file; then
884  if test "$ac_srcdir_defaulted" = yes; then
885    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886   { (exit 1); exit 1; }; }
887  else
888    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889   { (exit 1); exit 1; }; }
890  fi
891fi
892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894   { (exit 1); exit 1; }; }
895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896ac_env_build_alias_set=${build_alias+set}
897ac_env_build_alias_value=$build_alias
898ac_cv_env_build_alias_set=${build_alias+set}
899ac_cv_env_build_alias_value=$build_alias
900ac_env_host_alias_set=${host_alias+set}
901ac_env_host_alias_value=$host_alias
902ac_cv_env_host_alias_set=${host_alias+set}
903ac_cv_env_host_alias_value=$host_alias
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CC_set=${CC+set}
909ac_env_CC_value=$CC
910ac_cv_env_CC_set=${CC+set}
911ac_cv_env_CC_value=$CC
912ac_env_CFLAGS_set=${CFLAGS+set}
913ac_env_CFLAGS_value=$CFLAGS
914ac_cv_env_CFLAGS_set=${CFLAGS+set}
915ac_cv_env_CFLAGS_value=$CFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924ac_env_CPP_set=${CPP+set}
925ac_env_CPP_value=$CPP
926ac_cv_env_CPP_set=${CPP+set}
927ac_cv_env_CPP_value=$CPP
928ac_env_CXX_set=${CXX+set}
929ac_env_CXX_value=$CXX
930ac_cv_env_CXX_set=${CXX+set}
931ac_cv_env_CXX_value=$CXX
932ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933ac_env_CXXFLAGS_value=$CXXFLAGS
934ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936ac_env_CXXCPP_set=${CXXCPP+set}
937ac_env_CXXCPP_value=$CXXCPP
938ac_cv_env_CXXCPP_set=${CXXCPP+set}
939ac_cv_env_CXXCPP_value=$CXXCPP
940ac_env_F77_set=${F77+set}
941ac_env_F77_value=$F77
942ac_cv_env_F77_set=${F77+set}
943ac_cv_env_F77_value=$F77
944ac_env_FFLAGS_set=${FFLAGS+set}
945ac_env_FFLAGS_value=$FFLAGS
946ac_cv_env_FFLAGS_set=${FFLAGS+set}
947ac_cv_env_FFLAGS_value=$FFLAGS
948
949#
950# Report the --help message.
951#
952if test "$ac_init_help" = "long"; then
953  # Omit some internal or obsolete options to make the list less imposing.
954  # This message is too long to be a string in the A/UX 3.1 sh.
955  cat <<_ACEOF
956\`configure' configures scanbuttond 0.2.3 to adapt to many kinds of systems.
957
958Usage: $0 [OPTION]... [VAR=VALUE]...
959
960To assign environment variables (e.g., CC, CFLAGS...), specify them as
961VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963Defaults for the options are specified in brackets.
964
965Configuration:
966  -h, --help              display this help and exit
967      --help=short        display options specific to this package
968      --help=recursive    display the short help of all the included packages
969  -V, --version           display version information and exit
970  -q, --quiet, --silent   do not print \`checking...' messages
971      --cache-file=FILE   cache test results in FILE [disabled]
972  -C, --config-cache      alias for \`--cache-file=config.cache'
973  -n, --no-create         do not create output files
974      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976_ACEOF
977
978  cat <<_ACEOF
979Installation directories:
980  --prefix=PREFIX         install architecture-independent files in PREFIX
981			  [$ac_default_prefix]
982  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983			  [PREFIX]
984
985By default, \`make install' will install all the files in
986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988for instance \`--prefix=\$HOME'.
989
990For better control, use the options below.
991
992Fine tuning of the installation directories:
993  --bindir=DIR           user executables [EPREFIX/bin]
994  --sbindir=DIR          system admin executables [EPREFIX/sbin]
995  --libexecdir=DIR       program executables [EPREFIX/libexec]
996  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000  --libdir=DIR           object code libraries [EPREFIX/lib]
1001  --includedir=DIR       C header files [PREFIX/include]
1002  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003  --infodir=DIR          info documentation [PREFIX/info]
1004  --mandir=DIR           man documentation [PREFIX/man]
1005_ACEOF
1006
1007  cat <<\_ACEOF
1008
1009Program names:
1010  --program-prefix=PREFIX            prepend PREFIX to installed program names
1011  --program-suffix=SUFFIX            append SUFFIX to installed program names
1012  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1013
1014System types:
1015  --build=BUILD     configure for building on BUILD [guessed]
1016  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1017_ACEOF
1018fi
1019
1020if test -n "$ac_init_help"; then
1021  case $ac_init_help in
1022     short | recursive ) echo "Configuration of scanbuttond 0.2.3:";;
1023   esac
1024  cat <<\_ACEOF
1025
1026Optional Features:
1027  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1028  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1029  --enable-static[=PKGS]
1030                          build static libraries [default=no]
1031  --disable-dependency-tracking  speeds up one-time build
1032  --enable-dependency-tracking   do not reject slow dependency extractors
1033  --enable-shared[=PKGS]
1034                          build shared libraries [default=yes]
1035  --enable-fast-install[=PKGS]
1036                          optimize for fast installation [default=yes]
1037  --disable-libtool-lock  avoid locking (might break parallel builds)
1038
1039Optional Packages:
1040  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1041  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1042  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1043  --with-pic              try to use only PIC/non-PIC objects [default=use
1044                          both]
1045  --with-tags[=TAGS]
1046                          include additional configurations [automatic]
1047
1048Some influential environment variables:
1049  CC          C compiler command
1050  CFLAGS      C compiler flags
1051  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1052              nonstandard directory <lib dir>
1053  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1054              headers in a nonstandard directory <include dir>
1055  CPP         C preprocessor
1056  CXX         C++ compiler command
1057  CXXFLAGS    C++ compiler flags
1058  CXXCPP      C++ preprocessor
1059  F77         Fortran 77 compiler command
1060  FFLAGS      Fortran 77 compiler flags
1061
1062Use these variables to override the choices made by `configure' or to help
1063it to find libraries and programs with nonstandard names/locations.
1064
1065Report bugs to <root84@users.soureforge.net>.
1066_ACEOF
1067fi
1068
1069if test "$ac_init_help" = "recursive"; then
1070  # If there are subdirs, report their specific --help.
1071  ac_popdir=`pwd`
1072  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1073    test -d $ac_dir || continue
1074    ac_builddir=.
1075
1076if test "$ac_dir" != .; then
1077  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1078  # A "../" for each directory in $ac_dir_suffix.
1079  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1080else
1081  ac_dir_suffix= ac_top_builddir=
1082fi
1083
1084case $srcdir in
1085  .)  # No --srcdir option.  We are building in place.
1086    ac_srcdir=.
1087    if test -z "$ac_top_builddir"; then
1088       ac_top_srcdir=.
1089    else
1090       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1091    fi ;;
1092  [\\/]* | ?:[\\/]* )  # Absolute path.
1093    ac_srcdir=$srcdir$ac_dir_suffix;
1094    ac_top_srcdir=$srcdir ;;
1095  *) # Relative path.
1096    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1097    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1098esac
1099
1100# Do not use `cd foo && pwd` to compute absolute paths, because
1101# the directories may not exist.
1102case `pwd` in
1103.) ac_abs_builddir="$ac_dir";;
1104*)
1105  case "$ac_dir" in
1106  .) ac_abs_builddir=`pwd`;;
1107  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1108  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1109  esac;;
1110esac
1111case $ac_abs_builddir in
1112.) ac_abs_top_builddir=${ac_top_builddir}.;;
1113*)
1114  case ${ac_top_builddir}. in
1115  .) ac_abs_top_builddir=$ac_abs_builddir;;
1116  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1117  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1118  esac;;
1119esac
1120case $ac_abs_builddir in
1121.) ac_abs_srcdir=$ac_srcdir;;
1122*)
1123  case $ac_srcdir in
1124  .) ac_abs_srcdir=$ac_abs_builddir;;
1125  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1126  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1127  esac;;
1128esac
1129case $ac_abs_builddir in
1130.) ac_abs_top_srcdir=$ac_top_srcdir;;
1131*)
1132  case $ac_top_srcdir in
1133  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1134  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1135  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1136  esac;;
1137esac
1138
1139    cd $ac_dir
1140    # Check for guested configure; otherwise get Cygnus style configure.
1141    if test -f $ac_srcdir/configure.gnu; then
1142      echo
1143      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1144    elif test -f $ac_srcdir/configure; then
1145      echo
1146      $SHELL $ac_srcdir/configure  --help=recursive
1147    elif test -f $ac_srcdir/configure.ac ||
1148	   test -f $ac_srcdir/configure.in; then
1149      echo
1150      $ac_configure --help
1151    else
1152      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1153    fi
1154    cd $ac_popdir
1155  done
1156fi
1157
1158test -n "$ac_init_help" && exit 0
1159if $ac_init_version; then
1160  cat <<\_ACEOF
1161scanbuttond configure 0.2.3
1162generated by GNU Autoconf 2.59
1163
1164Copyright (C) 2003 Free Software Foundation, Inc.
1165This configure script is free software; the Free Software Foundation
1166gives unlimited permission to copy, distribute and modify it.
1167_ACEOF
1168  exit 0
1169fi
1170exec 5>config.log
1171cat >&5 <<_ACEOF
1172This file contains any messages produced by compilers while
1173running configure, to aid debugging if configure makes a mistake.
1174
1175It was created by scanbuttond $as_me 0.2.3, which was
1176generated by GNU Autoconf 2.59.  Invocation command line was
1177
1178  $ $0 $@
1179
1180_ACEOF
1181{
1182cat <<_ASUNAME
1183## --------- ##
1184## Platform. ##
1185## --------- ##
1186
1187hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1188uname -m = `(uname -m) 2>/dev/null || echo unknown`
1189uname -r = `(uname -r) 2>/dev/null || echo unknown`
1190uname -s = `(uname -s) 2>/dev/null || echo unknown`
1191uname -v = `(uname -v) 2>/dev/null || echo unknown`
1192
1193/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1194/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1195
1196/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1197/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1198/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1199hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1200/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1201/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1202/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1203
1204_ASUNAME
1205
1206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1207for as_dir in $PATH
1208do
1209  IFS=$as_save_IFS
1210  test -z "$as_dir" && as_dir=.
1211  echo "PATH: $as_dir"
1212done
1213
1214} >&5
1215
1216cat >&5 <<_ACEOF
1217
1218
1219## ----------- ##
1220## Core tests. ##
1221## ----------- ##
1222
1223_ACEOF
1224
1225
1226# Keep a trace of the command line.
1227# Strip out --no-create and --no-recursion so they do not pile up.
1228# Strip out --silent because we don't want to record it for future runs.
1229# Also quote any args containing shell meta-characters.
1230# Make two passes to allow for proper duplicate-argument suppression.
1231ac_configure_args=
1232ac_configure_args0=
1233ac_configure_args1=
1234ac_sep=
1235ac_must_keep_next=false
1236for ac_pass in 1 2
1237do
1238  for ac_arg
1239  do
1240    case $ac_arg in
1241    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1242    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243    | -silent | --silent | --silen | --sile | --sil)
1244      continue ;;
1245    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1247    esac
1248    case $ac_pass in
1249    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1250    2)
1251      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1252      if test $ac_must_keep_next = true; then
1253	ac_must_keep_next=false # Got value, back to normal.
1254      else
1255	case $ac_arg in
1256	  *=* | --config-cache | -C | -disable-* | --disable-* \
1257	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1258	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1259	  | -with-* | --with-* | -without-* | --without-* | --x)
1260	    case "$ac_configure_args0 " in
1261	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1262	    esac
1263	    ;;
1264	  -* ) ac_must_keep_next=true ;;
1265	esac
1266      fi
1267      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1268      # Get rid of the leading space.
1269      ac_sep=" "
1270      ;;
1271    esac
1272  done
1273done
1274$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1275$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1276
1277# When interrupted or exit'd, cleanup temporary files, and complete
1278# config.log.  We remove comments because anyway the quotes in there
1279# would cause problems or look ugly.
1280# WARNING: Be sure not to use single quotes in there, as some shells,
1281# such as our DU 5.0 friend, will then `close' the trap.
1282trap 'exit_status=$?
1283  # Save into config.log some information that might help in debugging.
1284  {
1285    echo
1286
1287    cat <<\_ASBOX
1288## ---------------- ##
1289## Cache variables. ##
1290## ---------------- ##
1291_ASBOX
1292    echo
1293    # The following way of writing the cache mishandles newlines in values,
1294{
1295  (set) 2>&1 |
1296    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1297    *ac_space=\ *)
1298      sed -n \
1299	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1300	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1301      ;;
1302    *)
1303      sed -n \
1304	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1305      ;;
1306    esac;
1307}
1308    echo
1309
1310    cat <<\_ASBOX
1311## ----------------- ##
1312## Output variables. ##
1313## ----------------- ##
1314_ASBOX
1315    echo
1316    for ac_var in $ac_subst_vars
1317    do
1318      eval ac_val=$`echo $ac_var`
1319      echo "$ac_var='"'"'$ac_val'"'"'"
1320    done | sort
1321    echo
1322
1323    if test -n "$ac_subst_files"; then
1324      cat <<\_ASBOX
1325## ------------- ##
1326## Output files. ##
1327## ------------- ##
1328_ASBOX
1329      echo
1330      for ac_var in $ac_subst_files
1331      do
1332	eval ac_val=$`echo $ac_var`
1333	echo "$ac_var='"'"'$ac_val'"'"'"
1334      done | sort
1335      echo
1336    fi
1337
1338    if test -s confdefs.h; then
1339      cat <<\_ASBOX
1340## ----------- ##
1341## confdefs.h. ##
1342## ----------- ##
1343_ASBOX
1344      echo
1345      sed "/^$/d" confdefs.h | sort
1346      echo
1347    fi
1348    test "$ac_signal" != 0 &&
1349      echo "$as_me: caught signal $ac_signal"
1350    echo "$as_me: exit $exit_status"
1351  } >&5
1352  rm -f core *.core &&
1353  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1354    exit $exit_status
1355     ' 0
1356for ac_signal in 1 2 13 15; do
1357  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1358done
1359ac_signal=0
1360
1361# confdefs.h avoids OS command line length limits that DEFS can exceed.
1362rm -rf conftest* confdefs.h
1363# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1364echo >confdefs.h
1365
1366# Predefined preprocessor variables.
1367
1368cat >>confdefs.h <<_ACEOF
1369#define PACKAGE_NAME "$PACKAGE_NAME"
1370_ACEOF
1371
1372
1373cat >>confdefs.h <<_ACEOF
1374#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1375_ACEOF
1376
1377
1378cat >>confdefs.h <<_ACEOF
1379#define PACKAGE_VERSION "$PACKAGE_VERSION"
1380_ACEOF
1381
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_STRING "$PACKAGE_STRING"
1385_ACEOF
1386
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1390_ACEOF
1391
1392
1393# Let the site file select an alternate cache file if it wants to.
1394# Prefer explicitly selected file to automatically selected ones.
1395if test -z "$CONFIG_SITE"; then
1396  if test "x$prefix" != xNONE; then
1397    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1398  else
1399    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1400  fi
1401fi
1402for ac_site_file in $CONFIG_SITE; do
1403  if test -r "$ac_site_file"; then
1404    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1405echo "$as_me: loading site script $ac_site_file" >&6;}
1406    sed 's/^/| /' "$ac_site_file" >&5
1407    . "$ac_site_file"
1408  fi
1409done
1410
1411if test -r "$cache_file"; then
1412  # Some versions of bash will fail to source /dev/null (special
1413  # files actually), so we avoid doing that.
1414  if test -f "$cache_file"; then
1415    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1416echo "$as_me: loading cache $cache_file" >&6;}
1417    case $cache_file in
1418      [\\/]* | ?:[\\/]* ) . $cache_file;;
1419      *)                      . ./$cache_file;;
1420    esac
1421  fi
1422else
1423  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1424echo "$as_me: creating cache $cache_file" >&6;}
1425  >$cache_file
1426fi
1427
1428# Check that the precious variables saved in the cache have kept the same
1429# value.
1430ac_cache_corrupted=false
1431for ac_var in `(set) 2>&1 |
1432	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1433  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1434  eval ac_new_set=\$ac_env_${ac_var}_set
1435  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1436  eval ac_new_val="\$ac_env_${ac_var}_value"
1437  case $ac_old_set,$ac_new_set in
1438    set,)
1439      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1440echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1441      ac_cache_corrupted=: ;;
1442    ,set)
1443      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1444echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1445      ac_cache_corrupted=: ;;
1446    ,);;
1447    *)
1448      if test "x$ac_old_val" != "x$ac_new_val"; then
1449	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1450echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1451	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1452echo "$as_me:   former value:  $ac_old_val" >&2;}
1453	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1454echo "$as_me:   current value: $ac_new_val" >&2;}
1455	ac_cache_corrupted=:
1456      fi;;
1457  esac
1458  # Pass precious variables to config.status.
1459  if test "$ac_new_set" = set; then
1460    case $ac_new_val in
1461    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1462      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1463    *) ac_arg=$ac_var=$ac_new_val ;;
1464    esac
1465    case " $ac_configure_args " in
1466      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1467      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1468    esac
1469  fi
1470done
1471if $ac_cache_corrupted; then
1472  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1473echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1474  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1475echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1476   { (exit 1); exit 1; }; }
1477fi
1478
1479ac_ext=c
1480ac_cpp='$CPP $CPPFLAGS'
1481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1483ac_compiler_gnu=$ac_cv_c_compiler_gnu
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511          ac_config_headers="$ac_config_headers include/scanbuttond/config.h"
1512
1513am__api_version="1.9"
1514ac_aux_dir=
1515for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1516  if test -f $ac_dir/install-sh; then
1517    ac_aux_dir=$ac_dir
1518    ac_install_sh="$ac_aux_dir/install-sh -c"
1519    break
1520  elif test -f $ac_dir/install.sh; then
1521    ac_aux_dir=$ac_dir
1522    ac_install_sh="$ac_aux_dir/install.sh -c"
1523    break
1524  elif test -f $ac_dir/shtool; then
1525    ac_aux_dir=$ac_dir
1526    ac_install_sh="$ac_aux_dir/shtool install -c"
1527    break
1528  fi
1529done
1530if test -z "$ac_aux_dir"; then
1531  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1532echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1533   { (exit 1); exit 1; }; }
1534fi
1535ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1536ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1537ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1538
1539# Find a good install program.  We prefer a C program (faster),
1540# so one script is as good as another.  But avoid the broken or
1541# incompatible versions:
1542# SysV /etc/install, /usr/sbin/install
1543# SunOS /usr/etc/install
1544# IRIX /sbin/install
1545# AIX /bin/install
1546# AmigaOS /C/install, which installs bootblocks on floppy discs
1547# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1548# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1549# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1550# OS/2's system install, which has a completely different semantic
1551# ./install, which can be erroneously created by make from ./install.sh.
1552echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1553echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1554if test -z "$INSTALL"; then
1555if test "${ac_cv_path_install+set}" = set; then
1556  echo $ECHO_N "(cached) $ECHO_C" >&6
1557else
1558  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559for as_dir in $PATH
1560do
1561  IFS=$as_save_IFS
1562  test -z "$as_dir" && as_dir=.
1563  # Account for people who put trailing slashes in PATH elements.
1564case $as_dir/ in
1565  ./ | .// | /cC/* | \
1566  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1567  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1568  /usr/ucb/* ) ;;
1569  *)
1570    # OSF1 and SCO ODT 3.0 have their own names for install.
1571    # Don't use installbsd from OSF since it installs stuff as root
1572    # by default.
1573    for ac_prog in ginstall scoinst install; do
1574      for ac_exec_ext in '' $ac_executable_extensions; do
1575	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1576	  if test $ac_prog = install &&
1577	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1578	    # AIX install.  It has an incompatible calling convention.
1579	    :
1580	  elif test $ac_prog = install &&
1581	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1582	    # program-specific install script used by HP pwplus--don't use.
1583	    :
1584	  else
1585	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1586	    break 3
1587	  fi
1588	fi
1589      done
1590    done
1591    ;;
1592esac
1593done
1594
1595
1596fi
1597  if test "${ac_cv_path_install+set}" = set; then
1598    INSTALL=$ac_cv_path_install
1599  else
1600    # As a last resort, use the slow shell script.  We don't cache a
1601    # path for INSTALL within a source directory, because that will
1602    # break other packages using the cache if that directory is
1603    # removed, or if the path is relative.
1604    INSTALL=$ac_install_sh
1605  fi
1606fi
1607echo "$as_me:$LINENO: result: $INSTALL" >&5
1608echo "${ECHO_T}$INSTALL" >&6
1609
1610# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1611# It thinks the first close brace ends the variable substitution.
1612test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1613
1614test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1615
1616test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1617
1618echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1619echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1620# Just in case
1621sleep 1
1622echo timestamp > conftest.file
1623# Do `set' in a subshell so we don't clobber the current shell's
1624# arguments.  Must try -L first in case configure is actually a
1625# symlink; some systems play weird games with the mod time of symlinks
1626# (eg FreeBSD returns the mod time of the symlink's containing
1627# directory).
1628if (
1629   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1630   if test "$*" = "X"; then
1631      # -L didn't work.
1632      set X `ls -t $srcdir/configure conftest.file`
1633   fi
1634   rm -f conftest.file
1635   if test "$*" != "X $srcdir/configure conftest.file" \
1636      && test "$*" != "X conftest.file $srcdir/configure"; then
1637
1638      # If neither matched, then we have a broken ls.  This can happen
1639      # if, for instance, CONFIG_SHELL is bash and it inherits a
1640      # broken ls alias from the environment.  This has actually
1641      # happened.  Such a system could not be considered "sane".
1642      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1643alias in your environment" >&5
1644echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1645alias in your environment" >&2;}
1646   { (exit 1); exit 1; }; }
1647   fi
1648
1649   test "$2" = conftest.file
1650   )
1651then
1652   # Ok.
1653   :
1654else
1655   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1656Check your system clock" >&5
1657echo "$as_me: error: newly created file is older than distributed files!
1658Check your system clock" >&2;}
1659   { (exit 1); exit 1; }; }
1660fi
1661echo "$as_me:$LINENO: result: yes" >&5
1662echo "${ECHO_T}yes" >&6
1663test "$program_prefix" != NONE &&
1664  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1665# Use a double $ so make ignores it.
1666test "$program_suffix" != NONE &&
1667  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1668# Double any \ or $.  echo might interpret backslashes.
1669# By default was `s,x,x', remove it if useless.
1670cat <<\_ACEOF >conftest.sed
1671s/[\\$]/&&/g;s/;s,x,x,$//
1672_ACEOF
1673program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1674rm conftest.sed
1675
1676# expand $ac_aux_dir to an absolute path
1677am_aux_dir=`cd $ac_aux_dir && pwd`
1678
1679test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1680# Use eval to expand $SHELL
1681if eval "$MISSING --run true"; then
1682  am_missing_run="$MISSING --run "
1683else
1684  am_missing_run=
1685  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1686echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1687fi
1688
1689if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1690  # We used to keeping the `.' as first argument, in order to
1691  # allow $(mkdir_p) to be used without argument.  As in
1692  #   $(mkdir_p) $(somedir)
1693  # where $(somedir) is conditionally defined.  However this is wrong
1694  # for two reasons:
1695  #  1. if the package is installed by a user who cannot write `.'
1696  #     make install will fail,
1697  #  2. the above comment should most certainly read
1698  #     $(mkdir_p) $(DESTDIR)$(somedir)
1699  #     so it does not work when $(somedir) is undefined and
1700  #     $(DESTDIR) is not.
1701  #  To support the latter case, we have to write
1702  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1703  #  so the `.' trick is pointless.
1704  mkdir_p='mkdir -p --'
1705else
1706  # On NextStep and OpenStep, the `mkdir' command does not
1707  # recognize any option.  It will interpret all options as
1708  # directories to create, and then abort because `.' already
1709  # exists.
1710  for d in ./-p ./--version;
1711  do
1712    test -d $d && rmdir $d
1713  done
1714  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1715  if test -f "$ac_aux_dir/mkinstalldirs"; then
1716    mkdir_p='$(mkinstalldirs)'
1717  else
1718    mkdir_p='$(install_sh) -d'
1719  fi
1720fi
1721
1722for ac_prog in gawk mawk nawk awk
1723do
1724  # Extract the first word of "$ac_prog", so it can be a program name with args.
1725set dummy $ac_prog; ac_word=$2
1726echo "$as_me:$LINENO: checking for $ac_word" >&5
1727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1728if test "${ac_cv_prog_AWK+set}" = set; then
1729  echo $ECHO_N "(cached) $ECHO_C" >&6
1730else
1731  if test -n "$AWK"; then
1732  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1733else
1734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735for as_dir in $PATH
1736do
1737  IFS=$as_save_IFS
1738  test -z "$as_dir" && as_dir=.
1739  for ac_exec_ext in '' $ac_executable_extensions; do
1740  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1741    ac_cv_prog_AWK="$ac_prog"
1742    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743    break 2
1744  fi
1745done
1746done
1747
1748fi
1749fi
1750AWK=$ac_cv_prog_AWK
1751if test -n "$AWK"; then
1752  echo "$as_me:$LINENO: result: $AWK" >&5
1753echo "${ECHO_T}$AWK" >&6
1754else
1755  echo "$as_me:$LINENO: result: no" >&5
1756echo "${ECHO_T}no" >&6
1757fi
1758
1759  test -n "$AWK" && break
1760done
1761
1762echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1763echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1764set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1765if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1766  echo $ECHO_N "(cached) $ECHO_C" >&6
1767else
1768  cat >conftest.make <<\_ACEOF
1769all:
1770	@echo 'ac_maketemp="$(MAKE)"'
1771_ACEOF
1772# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1773eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1774if test -n "$ac_maketemp"; then
1775  eval ac_cv_prog_make_${ac_make}_set=yes
1776else
1777  eval ac_cv_prog_make_${ac_make}_set=no
1778fi
1779rm -f conftest.make
1780fi
1781if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1782  echo "$as_me:$LINENO: result: yes" >&5
1783echo "${ECHO_T}yes" >&6
1784  SET_MAKE=
1785else
1786  echo "$as_me:$LINENO: result: no" >&5
1787echo "${ECHO_T}no" >&6
1788  SET_MAKE="MAKE=${MAKE-make}"
1789fi
1790
1791rm -rf .tst 2>/dev/null
1792mkdir .tst 2>/dev/null
1793if test -d .tst; then
1794  am__leading_dot=.
1795else
1796  am__leading_dot=_
1797fi
1798rmdir .tst 2>/dev/null
1799
1800# test to see if srcdir already configured
1801if test "`cd $srcdir && pwd`" != "`pwd`" &&
1802   test -f $srcdir/config.status; then
1803  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1804echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1805   { (exit 1); exit 1; }; }
1806fi
1807
1808# test whether we have cygpath
1809if test -z "$CYGPATH_W"; then
1810  if (cygpath --version) >/dev/null 2>/dev/null; then
1811    CYGPATH_W='cygpath -w'
1812  else
1813    CYGPATH_W=echo
1814  fi
1815fi
1816
1817
1818# Define the identity of the package.
1819 PACKAGE='scanbuttond'
1820 VERSION='0.2.3'
1821
1822
1823cat >>confdefs.h <<_ACEOF
1824#define PACKAGE "$PACKAGE"
1825_ACEOF
1826
1827
1828cat >>confdefs.h <<_ACEOF
1829#define VERSION "$VERSION"
1830_ACEOF
1831
1832# Some tools Automake needs.
1833
1834ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1835
1836
1837AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1838
1839
1840AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1841
1842
1843AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1844
1845
1846MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1847
1848install_sh=${install_sh-"$am_aux_dir/install-sh"}
1849
1850# Installed binaries are usually stripped using `strip' when the user
1851# run `make install-strip'.  However `strip' might not be the right
1852# tool to use in cross-compilation environments, therefore Automake
1853# will honor the `STRIP' environment variable to overrule this program.
1854if test "$cross_compiling" != no; then
1855  if test -n "$ac_tool_prefix"; then
1856  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1857set dummy ${ac_tool_prefix}strip; ac_word=$2
1858echo "$as_me:$LINENO: checking for $ac_word" >&5
1859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860if test "${ac_cv_prog_STRIP+set}" = set; then
1861  echo $ECHO_N "(cached) $ECHO_C" >&6
1862else
1863  if test -n "$STRIP"; then
1864  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1865else
1866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867for as_dir in $PATH
1868do
1869  IFS=$as_save_IFS
1870  test -z "$as_dir" && as_dir=.
1871  for ac_exec_ext in '' $ac_executable_extensions; do
1872  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1874    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875    break 2
1876  fi
1877done
1878done
1879
1880fi
1881fi
1882STRIP=$ac_cv_prog_STRIP
1883if test -n "$STRIP"; then
1884  echo "$as_me:$LINENO: result: $STRIP" >&5
1885echo "${ECHO_T}$STRIP" >&6
1886else
1887  echo "$as_me:$LINENO: result: no" >&5
1888echo "${ECHO_T}no" >&6
1889fi
1890
1891fi
1892if test -z "$ac_cv_prog_STRIP"; then
1893  ac_ct_STRIP=$STRIP
1894  # Extract the first word of "strip", so it can be a program name with args.
1895set dummy strip; ac_word=$2
1896echo "$as_me:$LINENO: checking for $ac_word" >&5
1897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1899  echo $ECHO_N "(cached) $ECHO_C" >&6
1900else
1901  if test -n "$ac_ct_STRIP"; then
1902  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1903else
1904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905for as_dir in $PATH
1906do
1907  IFS=$as_save_IFS
1908  test -z "$as_dir" && as_dir=.
1909  for ac_exec_ext in '' $ac_executable_extensions; do
1910  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911    ac_cv_prog_ac_ct_STRIP="strip"
1912    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913    break 2
1914  fi
1915done
1916done
1917
1918  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1919fi
1920fi
1921ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1922if test -n "$ac_ct_STRIP"; then
1923  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1924echo "${ECHO_T}$ac_ct_STRIP" >&6
1925else
1926  echo "$as_me:$LINENO: result: no" >&5
1927echo "${ECHO_T}no" >&6
1928fi
1929
1930  STRIP=$ac_ct_STRIP
1931else
1932  STRIP="$ac_cv_prog_STRIP"
1933fi
1934
1935fi
1936INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1937
1938# We need awk for the "check" target.  The system "awk" is bad on
1939# some platforms.
1940# Always define AMTAR for backward compatibility.
1941
1942AMTAR=${AMTAR-"${am_missing_run}tar"}
1943
1944am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1945
1946
1947
1948
1949
1950
1951# Check whether --enable-static or --disable-static was given.
1952if test "${enable_static+set}" = set; then
1953  enableval="$enable_static"
1954  p=${PACKAGE-default}
1955    case $enableval in
1956    yes) enable_static=yes ;;
1957    no) enable_static=no ;;
1958    *)
1959     enable_static=no
1960      # Look at the argument we got.  We use all the common list separators.
1961      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1962      for pkg in $enableval; do
1963	IFS="$lt_save_ifs"
1964	if test "X$pkg" = "X$p"; then
1965	  enable_static=yes
1966	fi
1967      done
1968      IFS="$lt_save_ifs"
1969      ;;
1970    esac
1971else
1972  enable_static=no
1973fi;
1974
1975
1976
1977ac_ext=c
1978ac_cpp='$CPP $CPPFLAGS'
1979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1981ac_compiler_gnu=$ac_cv_c_compiler_gnu
1982
1983ac_ext=c
1984ac_cpp='$CPP $CPPFLAGS'
1985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1987ac_compiler_gnu=$ac_cv_c_compiler_gnu
1988if test -n "$ac_tool_prefix"; then
1989  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1990set dummy ${ac_tool_prefix}gcc; ac_word=$2
1991echo "$as_me:$LINENO: checking for $ac_word" >&5
1992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993if test "${ac_cv_prog_CC+set}" = set; then
1994  echo $ECHO_N "(cached) $ECHO_C" >&6
1995else
1996  if test -n "$CC"; then
1997  ac_cv_prog_CC="$CC" # Let the user override the test.
1998else
1999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000for as_dir in $PATH
2001do
2002  IFS=$as_save_IFS
2003  test -z "$as_dir" && as_dir=.
2004  for ac_exec_ext in '' $ac_executable_extensions; do
2005  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2007    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008    break 2
2009  fi
2010done
2011done
2012
2013fi
2014fi
2015CC=$ac_cv_prog_CC
2016if test -n "$CC"; then
2017  echo "$as_me:$LINENO: result: $CC" >&5
2018echo "${ECHO_T}$CC" >&6
2019else
2020  echo "$as_me:$LINENO: result: no" >&5
2021echo "${ECHO_T}no" >&6
2022fi
2023
2024fi
2025if test -z "$ac_cv_prog_CC"; then
2026  ac_ct_CC=$CC
2027  # Extract the first word of "gcc", so it can be a program name with args.
2028set dummy gcc; ac_word=$2
2029echo "$as_me:$LINENO: checking for $ac_word" >&5
2030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2032  echo $ECHO_N "(cached) $ECHO_C" >&6
2033else
2034  if test -n "$ac_ct_CC"; then
2035  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2036else
2037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038for as_dir in $PATH
2039do
2040  IFS=$as_save_IFS
2041  test -z "$as_dir" && as_dir=.
2042  for ac_exec_ext in '' $ac_executable_extensions; do
2043  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044    ac_cv_prog_ac_ct_CC="gcc"
2045    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046    break 2
2047  fi
2048done
2049done
2050
2051fi
2052fi
2053ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054if test -n "$ac_ct_CC"; then
2055  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056echo "${ECHO_T}$ac_ct_CC" >&6
2057else
2058  echo "$as_me:$LINENO: result: no" >&5
2059echo "${ECHO_T}no" >&6
2060fi
2061
2062  CC=$ac_ct_CC
2063else
2064  CC="$ac_cv_prog_CC"
2065fi
2066
2067if test -z "$CC"; then
2068  if test -n "$ac_tool_prefix"; then
2069  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2070set dummy ${ac_tool_prefix}cc; ac_word=$2
2071echo "$as_me:$LINENO: checking for $ac_word" >&5
2072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2073if test "${ac_cv_prog_CC+set}" = set; then
2074  echo $ECHO_N "(cached) $ECHO_C" >&6
2075else
2076  if test -n "$CC"; then
2077  ac_cv_prog_CC="$CC" # Let the user override the test.
2078else
2079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080for as_dir in $PATH
2081do
2082  IFS=$as_save_IFS
2083  test -z "$as_dir" && as_dir=.
2084  for ac_exec_ext in '' $ac_executable_extensions; do
2085  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2086    ac_cv_prog_CC="${ac_tool_prefix}cc"
2087    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088    break 2
2089  fi
2090done
2091done
2092
2093fi
2094fi
2095CC=$ac_cv_prog_CC
2096if test -n "$CC"; then
2097  echo "$as_me:$LINENO: result: $CC" >&5
2098echo "${ECHO_T}$CC" >&6
2099else
2100  echo "$as_me:$LINENO: result: no" >&5
2101echo "${ECHO_T}no" >&6
2102fi
2103
2104fi
2105if test -z "$ac_cv_prog_CC"; then
2106  ac_ct_CC=$CC
2107  # Extract the first word of "cc", so it can be a program name with args.
2108set dummy cc; ac_word=$2
2109echo "$as_me:$LINENO: checking for $ac_word" >&5
2110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2111if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2112  echo $ECHO_N "(cached) $ECHO_C" >&6
2113else
2114  if test -n "$ac_ct_CC"; then
2115  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2116else
2117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118for as_dir in $PATH
2119do
2120  IFS=$as_save_IFS
2121  test -z "$as_dir" && as_dir=.
2122  for ac_exec_ext in '' $ac_executable_extensions; do
2123  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2124    ac_cv_prog_ac_ct_CC="cc"
2125    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2126    break 2
2127  fi
2128done
2129done
2130
2131fi
2132fi
2133ac_ct_CC=$ac_cv_prog_ac_ct_CC
2134if test -n "$ac_ct_CC"; then
2135  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2136echo "${ECHO_T}$ac_ct_CC" >&6
2137else
2138  echo "$as_me:$LINENO: result: no" >&5
2139echo "${ECHO_T}no" >&6
2140fi
2141
2142  CC=$ac_ct_CC
2143else
2144  CC="$ac_cv_prog_CC"
2145fi
2146
2147fi
2148if test -z "$CC"; then
2149  # Extract the first word of "cc", so it can be a program name with args.
2150set dummy cc; ac_word=$2
2151echo "$as_me:$LINENO: checking for $ac_word" >&5
2152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2153if test "${ac_cv_prog_CC+set}" = set; then
2154  echo $ECHO_N "(cached) $ECHO_C" >&6
2155else
2156  if test -n "$CC"; then
2157  ac_cv_prog_CC="$CC" # Let the user override the test.
2158else
2159  ac_prog_rejected=no
2160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161for as_dir in $PATH
2162do
2163  IFS=$as_save_IFS
2164  test -z "$as_dir" && as_dir=.
2165  for ac_exec_ext in '' $ac_executable_extensions; do
2166  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2167    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2168       ac_prog_rejected=yes
2169       continue
2170     fi
2171    ac_cv_prog_CC="cc"
2172    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173    break 2
2174  fi
2175done
2176done
2177
2178if test $ac_prog_rejected = yes; then
2179  # We found a bogon in the path, so make sure we never use it.
2180  set dummy $ac_cv_prog_CC
2181  shift
2182  if test $# != 0; then
2183    # We chose a different compiler from the bogus one.
2184    # However, it has the same basename, so the bogon will be chosen
2185    # first if we set CC to just the basename; use the full file name.
2186    shift
2187    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2188  fi
2189fi
2190fi
2191fi
2192CC=$ac_cv_prog_CC
2193if test -n "$CC"; then
2194  echo "$as_me:$LINENO: result: $CC" >&5
2195echo "${ECHO_T}$CC" >&6
2196else
2197  echo "$as_me:$LINENO: result: no" >&5
2198echo "${ECHO_T}no" >&6
2199fi
2200
2201fi
2202if test -z "$CC"; then
2203  if test -n "$ac_tool_prefix"; then
2204  for ac_prog in cl
2205  do
2206    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2207set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2208echo "$as_me:$LINENO: checking for $ac_word" >&5
2209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2210if test "${ac_cv_prog_CC+set}" = set; then
2211  echo $ECHO_N "(cached) $ECHO_C" >&6
2212else
2213  if test -n "$CC"; then
2214  ac_cv_prog_CC="$CC" # Let the user override the test.
2215else
2216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217for as_dir in $PATH
2218do
2219  IFS=$as_save_IFS
2220  test -z "$as_dir" && as_dir=.
2221  for ac_exec_ext in '' $ac_executable_extensions; do
2222  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2223    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2224    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225    break 2
2226  fi
2227done
2228done
2229
2230fi
2231fi
2232CC=$ac_cv_prog_CC
2233if test -n "$CC"; then
2234  echo "$as_me:$LINENO: result: $CC" >&5
2235echo "${ECHO_T}$CC" >&6
2236else
2237  echo "$as_me:$LINENO: result: no" >&5
2238echo "${ECHO_T}no" >&6
2239fi
2240
2241    test -n "$CC" && break
2242  done
2243fi
2244if test -z "$CC"; then
2245  ac_ct_CC=$CC
2246  for ac_prog in cl
2247do
2248  # Extract the first word of "$ac_prog", so it can be a program name with args.
2249set dummy $ac_prog; ac_word=$2
2250echo "$as_me:$LINENO: checking for $ac_word" >&5
2251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2252if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2253  echo $ECHO_N "(cached) $ECHO_C" >&6
2254else
2255  if test -n "$ac_ct_CC"; then
2256  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2257else
2258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259for as_dir in $PATH
2260do
2261  IFS=$as_save_IFS
2262  test -z "$as_dir" && as_dir=.
2263  for ac_exec_ext in '' $ac_executable_extensions; do
2264  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2265    ac_cv_prog_ac_ct_CC="$ac_prog"
2266    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2267    break 2
2268  fi
2269done
2270done
2271
2272fi
2273fi
2274ac_ct_CC=$ac_cv_prog_ac_ct_CC
2275if test -n "$ac_ct_CC"; then
2276  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2277echo "${ECHO_T}$ac_ct_CC" >&6
2278else
2279  echo "$as_me:$LINENO: result: no" >&5
2280echo "${ECHO_T}no" >&6
2281fi
2282
2283  test -n "$ac_ct_CC" && break
2284done
2285
2286  CC=$ac_ct_CC
2287fi
2288
2289fi
2290
2291
2292test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2293See \`config.log' for more details." >&5
2294echo "$as_me: error: no acceptable C compiler found in \$PATH
2295See \`config.log' for more details." >&2;}
2296   { (exit 1); exit 1; }; }
2297
2298# Provide some information about the compiler.
2299echo "$as_me:$LINENO:" \
2300     "checking for C compiler version" >&5
2301ac_compiler=`set X $ac_compile; echo $2`
2302{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2303  (eval $ac_compiler --version </dev/null >&5) 2>&5
2304  ac_status=$?
2305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306  (exit $ac_status); }
2307{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2308  (eval $ac_compiler -v </dev/null >&5) 2>&5
2309  ac_status=$?
2310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311  (exit $ac_status); }
2312{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2313  (eval $ac_compiler -V </dev/null >&5) 2>&5
2314  ac_status=$?
2315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316  (exit $ac_status); }
2317
2318cat >conftest.$ac_ext <<_ACEOF
2319/* confdefs.h.  */
2320_ACEOF
2321cat confdefs.h >>conftest.$ac_ext
2322cat >>conftest.$ac_ext <<_ACEOF
2323/* end confdefs.h.  */
2324
2325int
2326main ()
2327{
2328
2329  ;
2330  return 0;
2331}
2332_ACEOF
2333ac_clean_files_save=$ac_clean_files
2334ac_clean_files="$ac_clean_files a.out a.exe b.out"
2335# Try to create an executable without -o first, disregard a.out.
2336# It will help us diagnose broken compilers, and finding out an intuition
2337# of exeext.
2338echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2339echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2340ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2341if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2342  (eval $ac_link_default) 2>&5
2343  ac_status=$?
2344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345  (exit $ac_status); }; then
2346  # Find the output, starting from the most likely.  This scheme is
2347# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2348# resort.
2349
2350# Be careful to initialize this variable, since it used to be cached.
2351# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2352ac_cv_exeext=
2353# b.out is created by i960 compilers.
2354for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2355do
2356  test -f "$ac_file" || continue
2357  case $ac_file in
2358    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2359	;;
2360    conftest.$ac_ext )
2361	# This is the source file.
2362	;;
2363    [ab].out )
2364	# We found the default executable, but exeext='' is most
2365	# certainly right.
2366	break;;
2367    *.* )
2368	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2369	# FIXME: I believe we export ac_cv_exeext for Libtool,
2370	# but it would be cool to find out if it's true.  Does anybody
2371	# maintain Libtool? --akim.
2372	export ac_cv_exeext
2373	break;;
2374    * )
2375	break;;
2376  esac
2377done
2378else
2379  echo "$as_me: failed program was:" >&5
2380sed 's/^/| /' conftest.$ac_ext >&5
2381
2382{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2383See \`config.log' for more details." >&5
2384echo "$as_me: error: C compiler cannot create executables
2385See \`config.log' for more details." >&2;}
2386   { (exit 77); exit 77; }; }
2387fi
2388
2389ac_exeext=$ac_cv_exeext
2390echo "$as_me:$LINENO: result: $ac_file" >&5
2391echo "${ECHO_T}$ac_file" >&6
2392
2393# Check the compiler produces executables we can run.  If not, either
2394# the compiler is broken, or we cross compile.
2395echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2396echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2397# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2398# If not cross compiling, check that we can run a simple program.
2399if test "$cross_compiling" != yes; then
2400  if { ac_try='./$ac_file'
2401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402  (eval $ac_try) 2>&5
2403  ac_status=$?
2404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405  (exit $ac_status); }; }; then
2406    cross_compiling=no
2407  else
2408    if test "$cross_compiling" = maybe; then
2409	cross_compiling=yes
2410    else
2411	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2412If you meant to cross compile, use \`--host'.
2413See \`config.log' for more details." >&5
2414echo "$as_me: error: cannot run C compiled programs.
2415If you meant to cross compile, use \`--host'.
2416See \`config.log' for more details." >&2;}
2417   { (exit 1); exit 1; }; }
2418    fi
2419  fi
2420fi
2421echo "$as_me:$LINENO: result: yes" >&5
2422echo "${ECHO_T}yes" >&6
2423
2424rm -f a.out a.exe conftest$ac_cv_exeext b.out
2425ac_clean_files=$ac_clean_files_save
2426# Check the compiler produces executables we can run.  If not, either
2427# the compiler is broken, or we cross compile.
2428echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2429echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2430echo "$as_me:$LINENO: result: $cross_compiling" >&5
2431echo "${ECHO_T}$cross_compiling" >&6
2432
2433echo "$as_me:$LINENO: checking for suffix of executables" >&5
2434echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2436  (eval $ac_link) 2>&5
2437  ac_status=$?
2438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439  (exit $ac_status); }; then
2440  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2441# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2442# work properly (i.e., refer to `conftest.exe'), while it won't with
2443# `rm'.
2444for ac_file in conftest.exe conftest conftest.*; do
2445  test -f "$ac_file" || continue
2446  case $ac_file in
2447    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2448    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2449	  export ac_cv_exeext
2450	  break;;
2451    * ) break;;
2452  esac
2453done
2454else
2455  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2456See \`config.log' for more details." >&5
2457echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2458See \`config.log' for more details." >&2;}
2459   { (exit 1); exit 1; }; }
2460fi
2461
2462rm -f conftest$ac_cv_exeext
2463echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2464echo "${ECHO_T}$ac_cv_exeext" >&6
2465
2466rm -f conftest.$ac_ext
2467EXEEXT=$ac_cv_exeext
2468ac_exeext=$EXEEXT
2469echo "$as_me:$LINENO: checking for suffix of object files" >&5
2470echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2471if test "${ac_cv_objext+set}" = set; then
2472  echo $ECHO_N "(cached) $ECHO_C" >&6
2473else
2474  cat >conftest.$ac_ext <<_ACEOF
2475/* confdefs.h.  */
2476_ACEOF
2477cat confdefs.h >>conftest.$ac_ext
2478cat >>conftest.$ac_ext <<_ACEOF
2479/* end confdefs.h.  */
2480
2481int
2482main ()
2483{
2484
2485  ;
2486  return 0;
2487}
2488_ACEOF
2489rm -f conftest.o conftest.obj
2490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491  (eval $ac_compile) 2>&5
2492  ac_status=$?
2493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494  (exit $ac_status); }; then
2495  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2496  case $ac_file in
2497    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2498    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2499       break;;
2500  esac
2501done
2502else
2503  echo "$as_me: failed program was:" >&5
2504sed 's/^/| /' conftest.$ac_ext >&5
2505
2506{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2507See \`config.log' for more details." >&5
2508echo "$as_me: error: cannot compute suffix of object files: cannot compile
2509See \`config.log' for more details." >&2;}
2510   { (exit 1); exit 1; }; }
2511fi
2512
2513rm -f conftest.$ac_cv_objext conftest.$ac_ext
2514fi
2515echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2516echo "${ECHO_T}$ac_cv_objext" >&6
2517OBJEXT=$ac_cv_objext
2518ac_objext=$OBJEXT
2519echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2520echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2521if test "${ac_cv_c_compiler_gnu+set}" = set; then
2522  echo $ECHO_N "(cached) $ECHO_C" >&6
2523else
2524  cat >conftest.$ac_ext <<_ACEOF
2525/* confdefs.h.  */
2526_ACEOF
2527cat confdefs.h >>conftest.$ac_ext
2528cat >>conftest.$ac_ext <<_ACEOF
2529/* end confdefs.h.  */
2530
2531int
2532main ()
2533{
2534#ifndef __GNUC__
2535       choke me
2536#endif
2537
2538  ;
2539  return 0;
2540}
2541_ACEOF
2542rm -f conftest.$ac_objext
2543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2544  (eval $ac_compile) 2>conftest.er1
2545  ac_status=$?
2546  grep -v '^ *+' conftest.er1 >conftest.err
2547  rm -f conftest.er1
2548  cat conftest.err >&5
2549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550  (exit $ac_status); } &&
2551	 { ac_try='test -z "$ac_c_werror_flag"
2552			 || test ! -s conftest.err'
2553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554  (eval $ac_try) 2>&5
2555  ac_status=$?
2556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557  (exit $ac_status); }; } &&
2558	 { ac_try='test -s conftest.$ac_objext'
2559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560  (eval $ac_try) 2>&5
2561  ac_status=$?
2562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563  (exit $ac_status); }; }; then
2564  ac_compiler_gnu=yes
2565else
2566  echo "$as_me: failed program was:" >&5
2567sed 's/^/| /' conftest.$ac_ext >&5
2568
2569ac_compiler_gnu=no
2570fi
2571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2572ac_cv_c_compiler_gnu=$ac_compiler_gnu
2573
2574fi
2575echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2576echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2577GCC=`test $ac_compiler_gnu = yes && echo yes`
2578ac_test_CFLAGS=${CFLAGS+set}
2579ac_save_CFLAGS=$CFLAGS
2580CFLAGS="-g"
2581echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2582echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2583if test "${ac_cv_prog_cc_g+set}" = set; then
2584  echo $ECHO_N "(cached) $ECHO_C" >&6
2585else
2586  cat >conftest.$ac_ext <<_ACEOF
2587/* confdefs.h.  */
2588_ACEOF
2589cat confdefs.h >>conftest.$ac_ext
2590cat >>conftest.$ac_ext <<_ACEOF
2591/* end confdefs.h.  */
2592
2593int
2594main ()
2595{
2596
2597  ;
2598  return 0;
2599}
2600_ACEOF
2601rm -f conftest.$ac_objext
2602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603  (eval $ac_compile) 2>conftest.er1
2604  ac_status=$?
2605  grep -v '^ *+' conftest.er1 >conftest.err
2606  rm -f conftest.er1
2607  cat conftest.err >&5
2608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609  (exit $ac_status); } &&
2610	 { ac_try='test -z "$ac_c_werror_flag"
2611			 || test ! -s conftest.err'
2612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613  (eval $ac_try) 2>&5
2614  ac_status=$?
2615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616  (exit $ac_status); }; } &&
2617	 { ac_try='test -s conftest.$ac_objext'
2618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619  (eval $ac_try) 2>&5
2620  ac_status=$?
2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622  (exit $ac_status); }; }; then
2623  ac_cv_prog_cc_g=yes
2624else
2625  echo "$as_me: failed program was:" >&5
2626sed 's/^/| /' conftest.$ac_ext >&5
2627
2628ac_cv_prog_cc_g=no
2629fi
2630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2631fi
2632echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2633echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2634if test "$ac_test_CFLAGS" = set; then
2635  CFLAGS=$ac_save_CFLAGS
2636elif test $ac_cv_prog_cc_g = yes; then
2637  if test "$GCC" = yes; then
2638    CFLAGS="-g -O2"
2639  else
2640    CFLAGS="-g"
2641  fi
2642else
2643  if test "$GCC" = yes; then
2644    CFLAGS="-O2"
2645  else
2646    CFLAGS=
2647  fi
2648fi
2649echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2650echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2651if test "${ac_cv_prog_cc_stdc+set}" = set; then
2652  echo $ECHO_N "(cached) $ECHO_C" >&6
2653else
2654  ac_cv_prog_cc_stdc=no
2655ac_save_CC=$CC
2656cat >conftest.$ac_ext <<_ACEOF
2657/* confdefs.h.  */
2658_ACEOF
2659cat confdefs.h >>conftest.$ac_ext
2660cat >>conftest.$ac_ext <<_ACEOF
2661/* end confdefs.h.  */
2662#include <stdarg.h>
2663#include <stdio.h>
2664#include <sys/types.h>
2665#include <sys/stat.h>
2666/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2667struct buf { int x; };
2668FILE * (*rcsopen) (struct buf *, struct stat *, int);
2669static char *e (p, i)
2670     char **p;
2671     int i;
2672{
2673  return p[i];
2674}
2675static char *f (char * (*g) (char **, int), char **p, ...)
2676{
2677  char *s;
2678  va_list v;
2679  va_start (v,p);
2680  s = g (p, va_arg (v,int));
2681  va_end (v);
2682  return s;
2683}
2684
2685/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2686   function prototypes and stuff, but not '\xHH' hex character constants.
2687   These don't provoke an error unfortunately, instead are silently treated
2688   as 'x'.  The following induces an error, until -std1 is added to get
2689   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2690   array size at least.  It's necessary to write '\x00'==0 to get something
2691   that's true only with -std1.  */
2692int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2693
2694int test (int i, double x);
2695struct s1 {int (*f) (int a);};
2696struct s2 {int (*f) (double a);};
2697int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2698int argc;
2699char **argv;
2700int
2701main ()
2702{
2703return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2704  ;
2705  return 0;
2706}
2707_ACEOF
2708# Don't try gcc -ansi; that turns off useful extensions and
2709# breaks some systems' header files.
2710# AIX			-qlanglvl=ansi
2711# Ultrix and OSF/1	-std1
2712# HP-UX 10.20 and later	-Ae
2713# HP-UX older versions	-Aa -D_HPUX_SOURCE
2714# SVR4			-Xc -D__EXTENSIONS__
2715for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2716do
2717  CC="$ac_save_CC $ac_arg"
2718  rm -f conftest.$ac_objext
2719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720  (eval $ac_compile) 2>conftest.er1
2721  ac_status=$?
2722  grep -v '^ *+' conftest.er1 >conftest.err
2723  rm -f conftest.er1
2724  cat conftest.err >&5
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); } &&
2727	 { ac_try='test -z "$ac_c_werror_flag"
2728			 || test ! -s conftest.err'
2729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730  (eval $ac_try) 2>&5
2731  ac_status=$?
2732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733  (exit $ac_status); }; } &&
2734	 { ac_try='test -s conftest.$ac_objext'
2735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736  (eval $ac_try) 2>&5
2737  ac_status=$?
2738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739  (exit $ac_status); }; }; then
2740  ac_cv_prog_cc_stdc=$ac_arg
2741break
2742else
2743  echo "$as_me: failed program was:" >&5
2744sed 's/^/| /' conftest.$ac_ext >&5
2745
2746fi
2747rm -f conftest.err conftest.$ac_objext
2748done
2749rm -f conftest.$ac_ext conftest.$ac_objext
2750CC=$ac_save_CC
2751
2752fi
2753
2754case "x$ac_cv_prog_cc_stdc" in
2755  x|xno)
2756    echo "$as_me:$LINENO: result: none needed" >&5
2757echo "${ECHO_T}none needed" >&6 ;;
2758  *)
2759    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2760echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2761    CC="$CC $ac_cv_prog_cc_stdc" ;;
2762esac
2763
2764# Some people use a C++ compiler to compile C.  Since we use `exit',
2765# in C++ we need to declare it.  In case someone uses the same compiler
2766# for both compiling C and C++ we need to have the C++ compiler decide
2767# the declaration of exit, since it's the most demanding environment.
2768cat >conftest.$ac_ext <<_ACEOF
2769#ifndef __cplusplus
2770  choke me
2771#endif
2772_ACEOF
2773rm -f conftest.$ac_objext
2774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2775  (eval $ac_compile) 2>conftest.er1
2776  ac_status=$?
2777  grep -v '^ *+' conftest.er1 >conftest.err
2778  rm -f conftest.er1
2779  cat conftest.err >&5
2780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781  (exit $ac_status); } &&
2782	 { ac_try='test -z "$ac_c_werror_flag"
2783			 || test ! -s conftest.err'
2784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785  (eval $ac_try) 2>&5
2786  ac_status=$?
2787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788  (exit $ac_status); }; } &&
2789	 { ac_try='test -s conftest.$ac_objext'
2790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791  (eval $ac_try) 2>&5
2792  ac_status=$?
2793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794  (exit $ac_status); }; }; then
2795  for ac_declaration in \
2796   '' \
2797   'extern "C" void std::exit (int) throw (); using std::exit;' \
2798   'extern "C" void std::exit (int); using std::exit;' \
2799   'extern "C" void exit (int) throw ();' \
2800   'extern "C" void exit (int);' \
2801   'void exit (int);'
2802do
2803  cat >conftest.$ac_ext <<_ACEOF
2804/* confdefs.h.  */
2805_ACEOF
2806cat confdefs.h >>conftest.$ac_ext
2807cat >>conftest.$ac_ext <<_ACEOF
2808/* end confdefs.h.  */
2809$ac_declaration
2810#include <stdlib.h>
2811int
2812main ()
2813{
2814exit (42);
2815  ;
2816  return 0;
2817}
2818_ACEOF
2819rm -f conftest.$ac_objext
2820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821  (eval $ac_compile) 2>conftest.er1
2822  ac_status=$?
2823  grep -v '^ *+' conftest.er1 >conftest.err
2824  rm -f conftest.er1
2825  cat conftest.err >&5
2826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827  (exit $ac_status); } &&
2828	 { ac_try='test -z "$ac_c_werror_flag"
2829			 || test ! -s conftest.err'
2830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831  (eval $ac_try) 2>&5
2832  ac_status=$?
2833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834  (exit $ac_status); }; } &&
2835	 { ac_try='test -s conftest.$ac_objext'
2836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837  (eval $ac_try) 2>&5
2838  ac_status=$?
2839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840  (exit $ac_status); }; }; then
2841  :
2842else
2843  echo "$as_me: failed program was:" >&5
2844sed 's/^/| /' conftest.$ac_ext >&5
2845
2846continue
2847fi
2848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2849  cat >conftest.$ac_ext <<_ACEOF
2850/* confdefs.h.  */
2851_ACEOF
2852cat confdefs.h >>conftest.$ac_ext
2853cat >>conftest.$ac_ext <<_ACEOF
2854/* end confdefs.h.  */
2855$ac_declaration
2856int
2857main ()
2858{
2859exit (42);
2860  ;
2861  return 0;
2862}
2863_ACEOF
2864rm -f conftest.$ac_objext
2865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2866  (eval $ac_compile) 2>conftest.er1
2867  ac_status=$?
2868  grep -v '^ *+' conftest.er1 >conftest.err
2869  rm -f conftest.er1
2870  cat conftest.err >&5
2871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872  (exit $ac_status); } &&
2873	 { ac_try='test -z "$ac_c_werror_flag"
2874			 || test ! -s conftest.err'
2875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876  (eval $ac_try) 2>&5
2877  ac_status=$?
2878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879  (exit $ac_status); }; } &&
2880	 { ac_try='test -s conftest.$ac_objext'
2881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882  (eval $ac_try) 2>&5
2883  ac_status=$?
2884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885  (exit $ac_status); }; }; then
2886  break
2887else
2888  echo "$as_me: failed program was:" >&5
2889sed 's/^/| /' conftest.$ac_ext >&5
2890
2891fi
2892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2893done
2894rm -f conftest*
2895if test -n "$ac_declaration"; then
2896  echo '#ifdef __cplusplus' >>confdefs.h
2897  echo $ac_declaration      >>confdefs.h
2898  echo '#endif'             >>confdefs.h
2899fi
2900
2901else
2902  echo "$as_me: failed program was:" >&5
2903sed 's/^/| /' conftest.$ac_ext >&5
2904
2905fi
2906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2907ac_ext=c
2908ac_cpp='$CPP $CPPFLAGS'
2909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2911ac_compiler_gnu=$ac_cv_c_compiler_gnu
2912DEPDIR="${am__leading_dot}deps"
2913
2914          ac_config_commands="$ac_config_commands depfiles"
2915
2916
2917am_make=${MAKE-make}
2918cat > confinc << 'END'
2919am__doit:
2920	@echo done
2921.PHONY: am__doit
2922END
2923# If we don't find an include directive, just comment out the code.
2924echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2925echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2926am__include="#"
2927am__quote=
2928_am_result=none
2929# First try GNU make style include.
2930echo "include confinc" > confmf
2931# We grep out `Entering directory' and `Leaving directory'
2932# messages which can occur if `w' ends up in MAKEFLAGS.
2933# In particular we don't look at `^make:' because GNU make might
2934# be invoked under some other name (usually "gmake"), in which
2935# case it prints its new name instead of `make'.
2936if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2937   am__include=include
2938   am__quote=
2939   _am_result=GNU
2940fi
2941# Now try BSD make style include.
2942if test "$am__include" = "#"; then
2943   echo '.include "confinc"' > confmf
2944   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2945      am__include=.include
2946      am__quote="\""
2947      _am_result=BSD
2948   fi
2949fi
2950
2951
2952echo "$as_me:$LINENO: result: $_am_result" >&5
2953echo "${ECHO_T}$_am_result" >&6
2954rm -f confinc confmf
2955
2956# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2957if test "${enable_dependency_tracking+set}" = set; then
2958  enableval="$enable_dependency_tracking"
2959
2960fi;
2961if test "x$enable_dependency_tracking" != xno; then
2962  am_depcomp="$ac_aux_dir/depcomp"
2963  AMDEPBACKSLASH='\'
2964fi
2965
2966
2967if test "x$enable_dependency_tracking" != xno; then
2968  AMDEP_TRUE=
2969  AMDEP_FALSE='#'
2970else
2971  AMDEP_TRUE='#'
2972  AMDEP_FALSE=
2973fi
2974
2975
2976
2977
2978depcc="$CC"   am_compiler_list=
2979
2980echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2981echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2982if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2983  echo $ECHO_N "(cached) $ECHO_C" >&6
2984else
2985  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2986  # We make a subdir and do the tests there.  Otherwise we can end up
2987  # making bogus files that we don't know about and never remove.  For
2988  # instance it was reported that on HP-UX the gcc test will end up
2989  # making a dummy file named `D' -- because `-MD' means `put the output
2990  # in D'.
2991  mkdir conftest.dir
2992  # Copy depcomp to subdir because otherwise we won't find it if we're
2993  # using a relative directory.
2994  cp "$am_depcomp" conftest.dir
2995  cd conftest.dir
2996  # We will build objects and dependencies in a subdirectory because
2997  # it helps to detect inapplicable dependency modes.  For instance
2998  # both Tru64's cc and ICC support -MD to output dependencies as a
2999  # side effect of compilation, but ICC will put the dependencies in
3000  # the current directory while Tru64 will put them in the object
3001  # directory.
3002  mkdir sub
3003
3004  am_cv_CC_dependencies_compiler_type=none
3005  if test "$am_compiler_list" = ""; then
3006     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3007  fi
3008  for depmode in $am_compiler_list; do
3009    # Setup a source with many dependencies, because some compilers
3010    # like to wrap large dependency lists on column 80 (with \), and
3011    # we should not choose a depcomp mode which is confused by this.
3012    #
3013    # We need to recreate these files for each test, as the compiler may
3014    # overwrite some of them when testing with obscure command lines.
3015    # This happens at least with the AIX C compiler.
3016    : > sub/conftest.c
3017    for i in 1 2 3 4 5 6; do
3018      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3019      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3020      # Solaris 8's {/usr,}/bin/sh.
3021      touch sub/conftst$i.h
3022    done
3023    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3024
3025    case $depmode in
3026    nosideeffect)
3027      # after this tag, mechanisms are not by side-effect, so they'll
3028      # only be used when explicitly requested
3029      if test "x$enable_dependency_tracking" = xyes; then
3030	continue
3031      else
3032	break
3033      fi
3034      ;;
3035    none) break ;;
3036    esac
3037    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3038    # mode.  It turns out that the SunPro C++ compiler does not properly
3039    # handle `-M -o', and we need to detect this.
3040    if depmode=$depmode \
3041       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3042       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3043       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3044         >/dev/null 2>conftest.err &&
3045       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3046       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3047       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3048      # icc doesn't choke on unknown options, it will just issue warnings
3049      # or remarks (even with -Werror).  So we grep stderr for any message
3050      # that says an option was ignored or not supported.
3051      # When given -MP, icc 7.0 and 7.1 complain thusly:
3052      #   icc: Command line warning: ignoring option '-M'; no argument required
3053      # The diagnosis changed in icc 8.0:
3054      #   icc: Command line remark: option '-MP' not supported
3055      if (grep 'ignoring option' conftest.err ||
3056          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3057        am_cv_CC_dependencies_compiler_type=$depmode
3058        break
3059      fi
3060    fi
3061  done
3062
3063  cd ..
3064  rm -rf conftest.dir
3065else
3066  am_cv_CC_dependencies_compiler_type=none
3067fi
3068
3069fi
3070echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3071echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3072CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3073
3074
3075
3076if
3077  test "x$enable_dependency_tracking" != xno \
3078  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3079  am__fastdepCC_TRUE=
3080  am__fastdepCC_FALSE='#'
3081else
3082  am__fastdepCC_TRUE='#'
3083  am__fastdepCC_FALSE=
3084fi
3085
3086
3087# Check whether --enable-shared or --disable-shared was given.
3088if test "${enable_shared+set}" = set; then
3089  enableval="$enable_shared"
3090  p=${PACKAGE-default}
3091    case $enableval in
3092    yes) enable_shared=yes ;;
3093    no) enable_shared=no ;;
3094    *)
3095      enable_shared=no
3096      # Look at the argument we got.  We use all the common list separators.
3097      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3098      for pkg in $enableval; do
3099	IFS="$lt_save_ifs"
3100	if test "X$pkg" = "X$p"; then
3101	  enable_shared=yes
3102	fi
3103      done
3104      IFS="$lt_save_ifs"
3105      ;;
3106    esac
3107else
3108  enable_shared=yes
3109fi;
3110
3111# Check whether --enable-fast-install or --disable-fast-install was given.
3112if test "${enable_fast_install+set}" = set; then
3113  enableval="$enable_fast_install"
3114  p=${PACKAGE-default}
3115    case $enableval in
3116    yes) enable_fast_install=yes ;;
3117    no) enable_fast_install=no ;;
3118    *)
3119      enable_fast_install=no
3120      # Look at the argument we got.  We use all the common list separators.
3121      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3122      for pkg in $enableval; do
3123	IFS="$lt_save_ifs"
3124	if test "X$pkg" = "X$p"; then
3125	  enable_fast_install=yes
3126	fi
3127      done
3128      IFS="$lt_save_ifs"
3129      ;;
3130    esac
3131else
3132  enable_fast_install=yes
3133fi;
3134
3135# Make sure we can run config.sub.
3136$ac_config_sub sun4 >/dev/null 2>&1 ||
3137  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3138echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3139   { (exit 1); exit 1; }; }
3140
3141echo "$as_me:$LINENO: checking build system type" >&5
3142echo $ECHO_N "checking build system type... $ECHO_C" >&6
3143if test "${ac_cv_build+set}" = set; then
3144  echo $ECHO_N "(cached) $ECHO_C" >&6
3145else
3146  ac_cv_build_alias=$build_alias
3147test -z "$ac_cv_build_alias" &&
3148  ac_cv_build_alias=`$ac_config_guess`
3149test -z "$ac_cv_build_alias" &&
3150  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3151echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3152   { (exit 1); exit 1; }; }
3153ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3154  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3155echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3156   { (exit 1); exit 1; }; }
3157
3158fi
3159echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3160echo "${ECHO_T}$ac_cv_build" >&6
3161build=$ac_cv_build
3162build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3163build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3164build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3165
3166
3167echo "$as_me:$LINENO: checking host system type" >&5
3168echo $ECHO_N "checking host system type... $ECHO_C" >&6
3169if test "${ac_cv_host+set}" = set; then
3170  echo $ECHO_N "(cached) $ECHO_C" >&6
3171else
3172  ac_cv_host_alias=$host_alias
3173test -z "$ac_cv_host_alias" &&
3174  ac_cv_host_alias=$ac_cv_build_alias
3175ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3176  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3177echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3178   { (exit 1); exit 1; }; }
3179
3180fi
3181echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3182echo "${ECHO_T}$ac_cv_host" >&6
3183host=$ac_cv_host
3184host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3185host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3186host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3187
3188
3189echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3190echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3191if test "${lt_cv_path_SED+set}" = set; then
3192  echo $ECHO_N "(cached) $ECHO_C" >&6
3193else
3194  # Loop through the user's path and test for sed and gsed.
3195# Then use that list of sed's as ones to test for truncation.
3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197for as_dir in $PATH
3198do
3199  IFS=$as_save_IFS
3200  test -z "$as_dir" && as_dir=.
3201  for lt_ac_prog in sed gsed; do
3202    for ac_exec_ext in '' $ac_executable_extensions; do
3203      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3204        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3205      fi
3206    done
3207  done
3208done
3209lt_ac_max=0
3210lt_ac_count=0
3211# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3212# along with /bin/sed that truncates output.
3213for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3214  test ! -f $lt_ac_sed && continue
3215  cat /dev/null > conftest.in
3216  lt_ac_count=0
3217  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3218  # Check for GNU sed and select it if it is found.
3219  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3220    lt_cv_path_SED=$lt_ac_sed
3221    break
3222  fi
3223  while true; do
3224    cat conftest.in conftest.in >conftest.tmp
3225    mv conftest.tmp conftest.in
3226    cp conftest.in conftest.nl
3227    echo >>conftest.nl
3228    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3229    cmp -s conftest.out conftest.nl || break
3230    # 10000 chars as input seems more than enough
3231    test $lt_ac_count -gt 10 && break
3232    lt_ac_count=`expr $lt_ac_count + 1`
3233    if test $lt_ac_count -gt $lt_ac_max; then
3234      lt_ac_max=$lt_ac_count
3235      lt_cv_path_SED=$lt_ac_sed
3236    fi
3237  done
3238done
3239
3240fi
3241
3242SED=$lt_cv_path_SED
3243echo "$as_me:$LINENO: result: $SED" >&5
3244echo "${ECHO_T}$SED" >&6
3245
3246echo "$as_me:$LINENO: checking for egrep" >&5
3247echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3248if test "${ac_cv_prog_egrep+set}" = set; then
3249  echo $ECHO_N "(cached) $ECHO_C" >&6
3250else
3251  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3252    then ac_cv_prog_egrep='grep -E'
3253    else ac_cv_prog_egrep='egrep'
3254    fi
3255fi
3256echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3257echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3258 EGREP=$ac_cv_prog_egrep
3259
3260
3261
3262# Check whether --with-gnu-ld or --without-gnu-ld was given.
3263if test "${with_gnu_ld+set}" = set; then
3264  withval="$with_gnu_ld"
3265  test "$withval" = no || with_gnu_ld=yes
3266else
3267  with_gnu_ld=no
3268fi;
3269ac_prog=ld
3270if test "$GCC" = yes; then
3271  # Check if gcc -print-prog-name=ld gives a path.
3272  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3273echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3274  case $host in
3275  *-*-mingw*)
3276    # gcc leaves a trailing carriage return which upsets mingw
3277    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3278  *)
3279    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3280  esac
3281  case $ac_prog in
3282    # Accept absolute paths.
3283    [\\/]* | ?:[\\/]*)
3284      re_direlt='/[^/][^/]*/\.\./'
3285      # Canonicalize the pathname of ld
3286      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3287      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3288	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3289      done
3290      test -z "$LD" && LD="$ac_prog"
3291      ;;
3292  "")
3293    # If it fails, then pretend we aren't using GCC.
3294    ac_prog=ld
3295    ;;
3296  *)
3297    # If it is relative, then search for the first ld in PATH.
3298    with_gnu_ld=unknown
3299    ;;
3300  esac
3301elif test "$with_gnu_ld" = yes; then
3302  echo "$as_me:$LINENO: checking for GNU ld" >&5
3303echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3304else
3305  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3306echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3307fi
3308if test "${lt_cv_path_LD+set}" = set; then
3309  echo $ECHO_N "(cached) $ECHO_C" >&6
3310else
3311  if test -z "$LD"; then
3312  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3313  for ac_dir in $PATH; do
3314    IFS="$lt_save_ifs"
3315    test -z "$ac_dir" && ac_dir=.
3316    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3317      lt_cv_path_LD="$ac_dir/$ac_prog"
3318      # Check to see if the program is GNU ld.  I'd rather use --version,
3319      # but apparently some variants of GNU ld only accept -v.
3320      # Break only if it was the GNU/non-GNU ld that we prefer.
3321      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3322      *GNU* | *'with BFD'*)
3323	test "$with_gnu_ld" != no && break
3324	;;
3325      *)
3326	test "$with_gnu_ld" != yes && break
3327	;;
3328      esac
3329    fi
3330  done
3331  IFS="$lt_save_ifs"
3332else
3333  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3334fi
3335fi
3336
3337LD="$lt_cv_path_LD"
3338if test -n "$LD"; then
3339  echo "$as_me:$LINENO: result: $LD" >&5
3340echo "${ECHO_T}$LD" >&6
3341else
3342  echo "$as_me:$LINENO: result: no" >&5
3343echo "${ECHO_T}no" >&6
3344fi
3345test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3346echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3347   { (exit 1); exit 1; }; }
3348echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3349echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3350if test "${lt_cv_prog_gnu_ld+set}" = set; then
3351  echo $ECHO_N "(cached) $ECHO_C" >&6
3352else
3353  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3354case `$LD -v 2>&1 </dev/null` in
3355*GNU* | *'with BFD'*)
3356  lt_cv_prog_gnu_ld=yes
3357  ;;
3358*)
3359  lt_cv_prog_gnu_ld=no
3360  ;;
3361esac
3362fi
3363echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3364echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3365with_gnu_ld=$lt_cv_prog_gnu_ld
3366
3367
3368echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3369echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3370if test "${lt_cv_ld_reload_flag+set}" = set; then
3371  echo $ECHO_N "(cached) $ECHO_C" >&6
3372else
3373  lt_cv_ld_reload_flag='-r'
3374fi
3375echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3376echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3377reload_flag=$lt_cv_ld_reload_flag
3378case $reload_flag in
3379"" | " "*) ;;
3380*) reload_flag=" $reload_flag" ;;
3381esac
3382reload_cmds='$LD$reload_flag -o $output$reload_objs'
3383case $host_os in
3384  darwin*)
3385    if test "$GCC" = yes; then
3386      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3387    else
3388      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3389    fi
3390    ;;
3391esac
3392
3393echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3394echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3395if test "${lt_cv_path_NM+set}" = set; then
3396  echo $ECHO_N "(cached) $ECHO_C" >&6
3397else
3398  if test -n "$NM"; then
3399  # Let the user override the test.
3400  lt_cv_path_NM="$NM"
3401else
3402  lt_nm_to_check="${ac_tool_prefix}nm"
3403  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3404    lt_nm_to_check="$lt_nm_to_check nm"
3405  fi
3406  for lt_tmp_nm in $lt_nm_to_check; do
3407    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3408    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3409      IFS="$lt_save_ifs"
3410      test -z "$ac_dir" && ac_dir=.
3411      tmp_nm="$ac_dir/$lt_tmp_nm"
3412      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3413	# Check to see if the nm accepts a BSD-compat flag.
3414	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3415	#   nm: unknown option "B" ignored
3416	# Tru64's nm complains that /dev/null is an invalid object file
3417	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3418	*/dev/null* | *'Invalid file or object type'*)
3419	  lt_cv_path_NM="$tmp_nm -B"
3420	  break
3421	  ;;
3422	*)
3423	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3424	  */dev/null*)
3425	    lt_cv_path_NM="$tmp_nm -p"
3426	    break
3427	    ;;
3428	  *)
3429	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3430	    continue # so that we can try to find one that supports BSD flags
3431	    ;;
3432	  esac
3433	  ;;
3434	esac
3435      fi
3436    done
3437    IFS="$lt_save_ifs"
3438  done
3439  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3440fi
3441fi
3442echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3443echo "${ECHO_T}$lt_cv_path_NM" >&6
3444NM="$lt_cv_path_NM"
3445
3446echo "$as_me:$LINENO: checking whether ln -s works" >&5
3447echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3448LN_S=$as_ln_s
3449if test "$LN_S" = "ln -s"; then
3450  echo "$as_me:$LINENO: result: yes" >&5
3451echo "${ECHO_T}yes" >&6
3452else
3453  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3454echo "${ECHO_T}no, using $LN_S" >&6
3455fi
3456
3457echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3458echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3459if test "${lt_cv_deplibs_check_method+set}" = set; then
3460  echo $ECHO_N "(cached) $ECHO_C" >&6
3461else
3462  lt_cv_file_magic_cmd='$MAGIC_CMD'
3463lt_cv_file_magic_test_file=
3464lt_cv_deplibs_check_method='unknown'
3465# Need to set the preceding variable on all platforms that support
3466# interlibrary dependencies.
3467# 'none' -- dependencies not supported.
3468# `unknown' -- same as none, but documents that we really don't know.
3469# 'pass_all' -- all dependencies passed with no checks.
3470# 'test_compile' -- check by making test program.
3471# 'file_magic [[regex]]' -- check by looking for files in library path
3472# which responds to the $file_magic_cmd with a given extended regex.
3473# If you have `file' or equivalent on your system and you're not sure
3474# whether `pass_all' will *always* work, you probably want this one.
3475
3476case $host_os in
3477aix4* | aix5*)
3478  lt_cv_deplibs_check_method=pass_all
3479  ;;
3480
3481beos*)
3482  lt_cv_deplibs_check_method=pass_all
3483  ;;
3484
3485bsdi[45]*)
3486  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3487  lt_cv_file_magic_cmd='/usr/bin/file -L'
3488  lt_cv_file_magic_test_file=/shlib/libc.so
3489  ;;
3490
3491cygwin*)
3492  # func_win32_libid is a shell function defined in ltmain.sh
3493  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3494  lt_cv_file_magic_cmd='func_win32_libid'
3495  ;;
3496
3497mingw* | pw32*)
3498  # Base MSYS/MinGW do not provide the 'file' command needed by
3499  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3500  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3501  lt_cv_file_magic_cmd='$OBJDUMP -f'
3502  ;;
3503
3504darwin* | rhapsody*)
3505  lt_cv_deplibs_check_method=pass_all
3506  ;;
3507
3508freebsd* | kfreebsd*-gnu | dragonfly*)
3509  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3510    case $host_cpu in
3511    i*86 )
3512      # Not sure whether the presence of OpenBSD here was a mistake.
3513      # Let's accept both of them until this is cleared up.
3514      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3515      lt_cv_file_magic_cmd=/usr/bin/file
3516      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3517      ;;
3518    esac
3519  else
3520    lt_cv_deplibs_check_method=pass_all
3521  fi
3522  ;;
3523
3524gnu*)
3525  lt_cv_deplibs_check_method=pass_all
3526  ;;
3527
3528hpux10.20* | hpux11*)
3529  lt_cv_file_magic_cmd=/usr/bin/file
3530  case $host_cpu in
3531  ia64*)
3532    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3533    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3534    ;;
3535  hppa*64*)
3536    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]'
3537    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3538    ;;
3539  *)
3540    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3541    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3542    ;;
3543  esac
3544  ;;
3545
3546interix3*)
3547  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3548  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3549  ;;
3550
3551irix5* | irix6* | nonstopux*)
3552  case $LD in
3553  *-32|*"-32 ") libmagic=32-bit;;
3554  *-n32|*"-n32 ") libmagic=N32;;
3555  *-64|*"-64 ") libmagic=64-bit;;
3556  *) libmagic=never-match;;
3557  esac
3558  lt_cv_deplibs_check_method=pass_all
3559  ;;
3560
3561# This must be Linux ELF.
3562linux*)
3563  lt_cv_deplibs_check_method=pass_all
3564  ;;
3565
3566netbsd*)
3567  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3568    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3569  else
3570    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3571  fi
3572  ;;
3573
3574newos6*)
3575  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3576  lt_cv_file_magic_cmd=/usr/bin/file
3577  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3578  ;;
3579
3580nto-qnx*)
3581  lt_cv_deplibs_check_method=unknown
3582  ;;
3583
3584openbsd*)
3585  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3586    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3587  else
3588    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3589  fi
3590  ;;
3591
3592osf3* | osf4* | osf5*)
3593  lt_cv_deplibs_check_method=pass_all
3594  ;;
3595
3596solaris*)
3597  lt_cv_deplibs_check_method=pass_all
3598  ;;
3599
3600sysv4 | sysv4.3*)
3601  case $host_vendor in
3602  motorola)
3603    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]'
3604    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3605    ;;
3606  ncr)
3607    lt_cv_deplibs_check_method=pass_all
3608    ;;
3609  sequent)
3610    lt_cv_file_magic_cmd='/bin/file'
3611    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3612    ;;
3613  sni)
3614    lt_cv_file_magic_cmd='/bin/file'
3615    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3616    lt_cv_file_magic_test_file=/lib/libc.so
3617    ;;
3618  siemens)
3619    lt_cv_deplibs_check_method=pass_all
3620    ;;
3621  pc)
3622    lt_cv_deplibs_check_method=pass_all
3623    ;;
3624  esac
3625  ;;
3626
3627sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3628  lt_cv_deplibs_check_method=pass_all
3629  ;;
3630esac
3631
3632fi
3633echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3634echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3635file_magic_cmd=$lt_cv_file_magic_cmd
3636deplibs_check_method=$lt_cv_deplibs_check_method
3637test -z "$deplibs_check_method" && deplibs_check_method=unknown
3638
3639
3640
3641
3642# If no C compiler was specified, use CC.
3643LTCC=${LTCC-"$CC"}
3644
3645# If no C compiler flags were specified, use CFLAGS.
3646LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3647
3648# Allow CC to be a program name with arguments.
3649compiler=$CC
3650
3651
3652# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3653if test "${enable_libtool_lock+set}" = set; then
3654  enableval="$enable_libtool_lock"
3655
3656fi;
3657test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3658
3659# Some flags need to be propagated to the compiler or linker for good
3660# libtool support.
3661case $host in
3662ia64-*-hpux*)
3663  # Find out which ABI we are using.
3664  echo 'int i;' > conftest.$ac_ext
3665  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3666  (eval $ac_compile) 2>&5
3667  ac_status=$?
3668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669  (exit $ac_status); }; then
3670    case `/usr/bin/file conftest.$ac_objext` in
3671    *ELF-32*)
3672      HPUX_IA64_MODE="32"
3673      ;;
3674    *ELF-64*)
3675      HPUX_IA64_MODE="64"
3676      ;;
3677    esac
3678  fi
3679  rm -rf conftest*
3680  ;;
3681*-*-irix6*)
3682  # Find out which ABI we are using.
3683  echo '#line 3683 "configure"' > conftest.$ac_ext
3684  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3685  (eval $ac_compile) 2>&5
3686  ac_status=$?
3687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688  (exit $ac_status); }; then
3689   if test "$lt_cv_prog_gnu_ld" = yes; then
3690    case `/usr/bin/file conftest.$ac_objext` in
3691    *32-bit*)
3692      LD="${LD-ld} -melf32bsmip"
3693      ;;
3694    *N32*)
3695      LD="${LD-ld} -melf32bmipn32"
3696      ;;
3697    *64-bit*)
3698      LD="${LD-ld} -melf64bmip"
3699      ;;
3700    esac
3701   else
3702    case `/usr/bin/file conftest.$ac_objext` in
3703    *32-bit*)
3704      LD="${LD-ld} -32"
3705      ;;
3706    *N32*)
3707      LD="${LD-ld} -n32"
3708      ;;
3709    *64-bit*)
3710      LD="${LD-ld} -64"
3711      ;;
3712    esac
3713   fi
3714  fi
3715  rm -rf conftest*
3716  ;;
3717
3718x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3719  # Find out which ABI we are using.
3720  echo 'int i;' > conftest.$ac_ext
3721  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3722  (eval $ac_compile) 2>&5
3723  ac_status=$?
3724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725  (exit $ac_status); }; then
3726    case `/usr/bin/file conftest.o` in
3727    *32-bit*)
3728      case $host in
3729        x86_64-*linux*)
3730          LD="${LD-ld} -m elf_i386"
3731          ;;
3732        ppc64-*linux*|powerpc64-*linux*)
3733          LD="${LD-ld} -m elf32ppclinux"
3734          ;;
3735        s390x-*linux*)
3736          LD="${LD-ld} -m elf_s390"
3737          ;;
3738        sparc64-*linux*)
3739          LD="${LD-ld} -m elf32_sparc"
3740          ;;
3741      esac
3742      ;;
3743    *64-bit*)
3744      case $host in
3745        x86_64-*linux*)
3746          LD="${LD-ld} -m elf_x86_64"
3747          ;;
3748        ppc*-*linux*|powerpc*-*linux*)
3749          LD="${LD-ld} -m elf64ppc"
3750          ;;
3751        s390*-*linux*)
3752          LD="${LD-ld} -m elf64_s390"
3753          ;;
3754        sparc*-*linux*)
3755          LD="${LD-ld} -m elf64_sparc"
3756          ;;
3757      esac
3758      ;;
3759    esac
3760  fi
3761  rm -rf conftest*
3762  ;;
3763
3764*-*-sco3.2v5*)
3765  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3766  SAVE_CFLAGS="$CFLAGS"
3767  CFLAGS="$CFLAGS -belf"
3768  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3769echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3770if test "${lt_cv_cc_needs_belf+set}" = set; then
3771  echo $ECHO_N "(cached) $ECHO_C" >&6
3772else
3773  ac_ext=c
3774ac_cpp='$CPP $CPPFLAGS'
3775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778
3779     cat >conftest.$ac_ext <<_ACEOF
3780/* confdefs.h.  */
3781_ACEOF
3782cat confdefs.h >>conftest.$ac_ext
3783cat >>conftest.$ac_ext <<_ACEOF
3784/* end confdefs.h.  */
3785
3786int
3787main ()
3788{
3789
3790  ;
3791  return 0;
3792}
3793_ACEOF
3794rm -f conftest.$ac_objext conftest$ac_exeext
3795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3796  (eval $ac_link) 2>conftest.er1
3797  ac_status=$?
3798  grep -v '^ *+' conftest.er1 >conftest.err
3799  rm -f conftest.er1
3800  cat conftest.err >&5
3801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802  (exit $ac_status); } &&
3803	 { ac_try='test -z "$ac_c_werror_flag"
3804			 || test ! -s conftest.err'
3805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806  (eval $ac_try) 2>&5
3807  ac_status=$?
3808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809  (exit $ac_status); }; } &&
3810	 { ac_try='test -s conftest$ac_exeext'
3811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812  (eval $ac_try) 2>&5
3813  ac_status=$?
3814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815  (exit $ac_status); }; }; then
3816  lt_cv_cc_needs_belf=yes
3817else
3818  echo "$as_me: failed program was:" >&5
3819sed 's/^/| /' conftest.$ac_ext >&5
3820
3821lt_cv_cc_needs_belf=no
3822fi
3823rm -f conftest.err conftest.$ac_objext \
3824      conftest$ac_exeext conftest.$ac_ext
3825     ac_ext=c
3826ac_cpp='$CPP $CPPFLAGS'
3827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3829ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830
3831fi
3832echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3833echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3834  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3835    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3836    CFLAGS="$SAVE_CFLAGS"
3837  fi
3838  ;;
3839sparc*-*solaris*)
3840  # Find out which ABI we are using.
3841  echo 'int i;' > conftest.$ac_ext
3842  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3843  (eval $ac_compile) 2>&5
3844  ac_status=$?
3845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846  (exit $ac_status); }; then
3847    case `/usr/bin/file conftest.o` in
3848    *64-bit*)
3849      case $lt_cv_prog_gnu_ld in
3850      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3851      *)    LD="${LD-ld} -64" ;;
3852      esac
3853      ;;
3854    esac
3855  fi
3856  rm -rf conftest*
3857  ;;
3858
3859
3860esac
3861
3862need_locks="$enable_libtool_lock"
3863
3864
3865ac_ext=c
3866ac_cpp='$CPP $CPPFLAGS'
3867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3871echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3872# On Suns, sometimes $CPP names a directory.
3873if test -n "$CPP" && test -d "$CPP"; then
3874  CPP=
3875fi
3876if test -z "$CPP"; then
3877  if test "${ac_cv_prog_CPP+set}" = set; then
3878  echo $ECHO_N "(cached) $ECHO_C" >&6
3879else
3880      # Double quotes because CPP needs to be expanded
3881    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3882    do
3883      ac_preproc_ok=false
3884for ac_c_preproc_warn_flag in '' yes
3885do
3886  # Use a header file that comes with gcc, so configuring glibc
3887  # with a fresh cross-compiler works.
3888  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3889  # <limits.h> exists even on freestanding compilers.
3890  # On the NeXT, cc -E runs the code through the compiler's parser,
3891  # not just through cpp. "Syntax error" is here to catch this case.
3892  cat >conftest.$ac_ext <<_ACEOF
3893/* confdefs.h.  */
3894_ACEOF
3895cat confdefs.h >>conftest.$ac_ext
3896cat >>conftest.$ac_ext <<_ACEOF
3897/* end confdefs.h.  */
3898#ifdef __STDC__
3899# include <limits.h>
3900#else
3901# include <assert.h>
3902#endif
3903		     Syntax error
3904_ACEOF
3905if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3906  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3907  ac_status=$?
3908  grep -v '^ *+' conftest.er1 >conftest.err
3909  rm -f conftest.er1
3910  cat conftest.err >&5
3911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912  (exit $ac_status); } >/dev/null; then
3913  if test -s conftest.err; then
3914    ac_cpp_err=$ac_c_preproc_warn_flag
3915    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3916  else
3917    ac_cpp_err=
3918  fi
3919else
3920  ac_cpp_err=yes
3921fi
3922if test -z "$ac_cpp_err"; then
3923  :
3924else
3925  echo "$as_me: failed program was:" >&5
3926sed 's/^/| /' conftest.$ac_ext >&5
3927
3928  # Broken: fails on valid input.
3929continue
3930fi
3931rm -f conftest.err conftest.$ac_ext
3932
3933  # OK, works on sane cases.  Now check whether non-existent headers
3934  # can be detected and how.
3935  cat >conftest.$ac_ext <<_ACEOF
3936/* confdefs.h.  */
3937_ACEOF
3938cat confdefs.h >>conftest.$ac_ext
3939cat >>conftest.$ac_ext <<_ACEOF
3940/* end confdefs.h.  */
3941#include <ac_nonexistent.h>
3942_ACEOF
3943if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3944  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3945  ac_status=$?
3946  grep -v '^ *+' conftest.er1 >conftest.err
3947  rm -f conftest.er1
3948  cat conftest.err >&5
3949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950  (exit $ac_status); } >/dev/null; then
3951  if test -s conftest.err; then
3952    ac_cpp_err=$ac_c_preproc_warn_flag
3953    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3954  else
3955    ac_cpp_err=
3956  fi
3957else
3958  ac_cpp_err=yes
3959fi
3960if test -z "$ac_cpp_err"; then
3961  # Broken: success on invalid input.
3962continue
3963else
3964  echo "$as_me: failed program was:" >&5
3965sed 's/^/| /' conftest.$ac_ext >&5
3966
3967  # Passes both tests.
3968ac_preproc_ok=:
3969break
3970fi
3971rm -f conftest.err conftest.$ac_ext
3972
3973done
3974# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3975rm -f conftest.err conftest.$ac_ext
3976if $ac_preproc_ok; then
3977  break
3978fi
3979
3980    done
3981    ac_cv_prog_CPP=$CPP
3982
3983fi
3984  CPP=$ac_cv_prog_CPP
3985else
3986  ac_cv_prog_CPP=$CPP
3987fi
3988echo "$as_me:$LINENO: result: $CPP" >&5
3989echo "${ECHO_T}$CPP" >&6
3990ac_preproc_ok=false
3991for ac_c_preproc_warn_flag in '' yes
3992do
3993  # Use a header file that comes with gcc, so configuring glibc
3994  # with a fresh cross-compiler works.
3995  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3996  # <limits.h> exists even on freestanding compilers.
3997  # On the NeXT, cc -E runs the code through the compiler's parser,
3998  # not just through cpp. "Syntax error" is here to catch this case.
3999  cat >conftest.$ac_ext <<_ACEOF
4000/* confdefs.h.  */
4001_ACEOF
4002cat confdefs.h >>conftest.$ac_ext
4003cat >>conftest.$ac_ext <<_ACEOF
4004/* end confdefs.h.  */
4005#ifdef __STDC__
4006# include <limits.h>
4007#else
4008# include <assert.h>
4009#endif
4010		     Syntax error
4011_ACEOF
4012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4013  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4014  ac_status=$?
4015  grep -v '^ *+' conftest.er1 >conftest.err
4016  rm -f conftest.er1
4017  cat conftest.err >&5
4018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019  (exit $ac_status); } >/dev/null; then
4020  if test -s conftest.err; then
4021    ac_cpp_err=$ac_c_preproc_warn_flag
4022    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4023  else
4024    ac_cpp_err=
4025  fi
4026else
4027  ac_cpp_err=yes
4028fi
4029if test -z "$ac_cpp_err"; then
4030  :
4031else
4032  echo "$as_me: failed program was:" >&5
4033sed 's/^/| /' conftest.$ac_ext >&5
4034
4035  # Broken: fails on valid input.
4036continue
4037fi
4038rm -f conftest.err conftest.$ac_ext
4039
4040  # OK, works on sane cases.  Now check whether non-existent headers
4041  # can be detected and how.
4042  cat >conftest.$ac_ext <<_ACEOF
4043/* confdefs.h.  */
4044_ACEOF
4045cat confdefs.h >>conftest.$ac_ext
4046cat >>conftest.$ac_ext <<_ACEOF
4047/* end confdefs.h.  */
4048#include <ac_nonexistent.h>
4049_ACEOF
4050if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4051  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4052  ac_status=$?
4053  grep -v '^ *+' conftest.er1 >conftest.err
4054  rm -f conftest.er1
4055  cat conftest.err >&5
4056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057  (exit $ac_status); } >/dev/null; then
4058  if test -s conftest.err; then
4059    ac_cpp_err=$ac_c_preproc_warn_flag
4060    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4061  else
4062    ac_cpp_err=
4063  fi
4064else
4065  ac_cpp_err=yes
4066fi
4067if test -z "$ac_cpp_err"; then
4068  # Broken: success on invalid input.
4069continue
4070else
4071  echo "$as_me: failed program was:" >&5
4072sed 's/^/| /' conftest.$ac_ext >&5
4073
4074  # Passes both tests.
4075ac_preproc_ok=:
4076break
4077fi
4078rm -f conftest.err conftest.$ac_ext
4079
4080done
4081# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4082rm -f conftest.err conftest.$ac_ext
4083if $ac_preproc_ok; then
4084  :
4085else
4086  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4087See \`config.log' for more details." >&5
4088echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4089See \`config.log' for more details." >&2;}
4090   { (exit 1); exit 1; }; }
4091fi
4092
4093ac_ext=c
4094ac_cpp='$CPP $CPPFLAGS'
4095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097ac_compiler_gnu=$ac_cv_c_compiler_gnu
4098
4099
4100echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4101echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4102if test "${ac_cv_header_stdc+set}" = set; then
4103  echo $ECHO_N "(cached) $ECHO_C" >&6
4104else
4105  cat >conftest.$ac_ext <<_ACEOF
4106/* confdefs.h.  */
4107_ACEOF
4108cat confdefs.h >>conftest.$ac_ext
4109cat >>conftest.$ac_ext <<_ACEOF
4110/* end confdefs.h.  */
4111#include <stdlib.h>
4112#include <stdarg.h>
4113#include <string.h>
4114#include <float.h>
4115
4116int
4117main ()
4118{
4119
4120  ;
4121  return 0;
4122}
4123_ACEOF
4124rm -f conftest.$ac_objext
4125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4126  (eval $ac_compile) 2>conftest.er1
4127  ac_status=$?
4128  grep -v '^ *+' conftest.er1 >conftest.err
4129  rm -f conftest.er1
4130  cat conftest.err >&5
4131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132  (exit $ac_status); } &&
4133	 { ac_try='test -z "$ac_c_werror_flag"
4134			 || test ! -s conftest.err'
4135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136  (eval $ac_try) 2>&5
4137  ac_status=$?
4138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139  (exit $ac_status); }; } &&
4140	 { ac_try='test -s conftest.$ac_objext'
4141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142  (eval $ac_try) 2>&5
4143  ac_status=$?
4144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145  (exit $ac_status); }; }; then
4146  ac_cv_header_stdc=yes
4147else
4148  echo "$as_me: failed program was:" >&5
4149sed 's/^/| /' conftest.$ac_ext >&5
4150
4151ac_cv_header_stdc=no
4152fi
4153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4154
4155if test $ac_cv_header_stdc = yes; then
4156  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4157  cat >conftest.$ac_ext <<_ACEOF
4158/* confdefs.h.  */
4159_ACEOF
4160cat confdefs.h >>conftest.$ac_ext
4161cat >>conftest.$ac_ext <<_ACEOF
4162/* end confdefs.h.  */
4163#include <string.h>
4164
4165_ACEOF
4166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4167  $EGREP "memchr" >/dev/null 2>&1; then
4168  :
4169else
4170  ac_cv_header_stdc=no
4171fi
4172rm -f conftest*
4173
4174fi
4175
4176if test $ac_cv_header_stdc = yes; then
4177  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4178  cat >conftest.$ac_ext <<_ACEOF
4179/* confdefs.h.  */
4180_ACEOF
4181cat confdefs.h >>conftest.$ac_ext
4182cat >>conftest.$ac_ext <<_ACEOF
4183/* end confdefs.h.  */
4184#include <stdlib.h>
4185
4186_ACEOF
4187if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4188  $EGREP "free" >/dev/null 2>&1; then
4189  :
4190else
4191  ac_cv_header_stdc=no
4192fi
4193rm -f conftest*
4194
4195fi
4196
4197if test $ac_cv_header_stdc = yes; then
4198  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4199  if test "$cross_compiling" = yes; then
4200  :
4201else
4202  cat >conftest.$ac_ext <<_ACEOF
4203/* confdefs.h.  */
4204_ACEOF
4205cat confdefs.h >>conftest.$ac_ext
4206cat >>conftest.$ac_ext <<_ACEOF
4207/* end confdefs.h.  */
4208#include <ctype.h>
4209#if ((' ' & 0x0FF) == 0x020)
4210# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4211# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4212#else
4213# define ISLOWER(c) \
4214		   (('a' <= (c) && (c) <= 'i') \
4215		     || ('j' <= (c) && (c) <= 'r') \
4216		     || ('s' <= (c) && (c) <= 'z'))
4217# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4218#endif
4219
4220#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4221int
4222main ()
4223{
4224  int i;
4225  for (i = 0; i < 256; i++)
4226    if (XOR (islower (i), ISLOWER (i))
4227	|| toupper (i) != TOUPPER (i))
4228      exit(2);
4229  exit (0);
4230}
4231_ACEOF
4232rm -f conftest$ac_exeext
4233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4234  (eval $ac_link) 2>&5
4235  ac_status=$?
4236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239  (eval $ac_try) 2>&5
4240  ac_status=$?
4241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242  (exit $ac_status); }; }; then
4243  :
4244else
4245  echo "$as_me: program exited with status $ac_status" >&5
4246echo "$as_me: failed program was:" >&5
4247sed 's/^/| /' conftest.$ac_ext >&5
4248
4249( exit $ac_status )
4250ac_cv_header_stdc=no
4251fi
4252rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4253fi
4254fi
4255fi
4256echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4257echo "${ECHO_T}$ac_cv_header_stdc" >&6
4258if test $ac_cv_header_stdc = yes; then
4259
4260cat >>confdefs.h <<\_ACEOF
4261#define STDC_HEADERS 1
4262_ACEOF
4263
4264fi
4265
4266# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4277		  inttypes.h stdint.h unistd.h
4278do
4279as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4280echo "$as_me:$LINENO: checking for $ac_header" >&5
4281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4282if eval "test \"\${$as_ac_Header+set}\" = set"; then
4283  echo $ECHO_N "(cached) $ECHO_C" >&6
4284else
4285  cat >conftest.$ac_ext <<_ACEOF
4286/* confdefs.h.  */
4287_ACEOF
4288cat confdefs.h >>conftest.$ac_ext
4289cat >>conftest.$ac_ext <<_ACEOF
4290/* end confdefs.h.  */
4291$ac_includes_default
4292
4293#include <$ac_header>
4294_ACEOF
4295rm -f conftest.$ac_objext
4296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4297  (eval $ac_compile) 2>conftest.er1
4298  ac_status=$?
4299  grep -v '^ *+' conftest.er1 >conftest.err
4300  rm -f conftest.er1
4301  cat conftest.err >&5
4302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303  (exit $ac_status); } &&
4304	 { ac_try='test -z "$ac_c_werror_flag"
4305			 || test ! -s conftest.err'
4306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307  (eval $ac_try) 2>&5
4308  ac_status=$?
4309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310  (exit $ac_status); }; } &&
4311	 { ac_try='test -s conftest.$ac_objext'
4312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313  (eval $ac_try) 2>&5
4314  ac_status=$?
4315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316  (exit $ac_status); }; }; then
4317  eval "$as_ac_Header=yes"
4318else
4319  echo "$as_me: failed program was:" >&5
4320sed 's/^/| /' conftest.$ac_ext >&5
4321
4322eval "$as_ac_Header=no"
4323fi
4324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4325fi
4326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4327echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4328if test `eval echo '${'$as_ac_Header'}'` = yes; then
4329  cat >>confdefs.h <<_ACEOF
4330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4331_ACEOF
4332
4333fi
4334
4335done
4336
4337
4338
4339for ac_header in dlfcn.h
4340do
4341as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4342if eval "test \"\${$as_ac_Header+set}\" = set"; then
4343  echo "$as_me:$LINENO: checking for $ac_header" >&5
4344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4345if eval "test \"\${$as_ac_Header+set}\" = set"; then
4346  echo $ECHO_N "(cached) $ECHO_C" >&6
4347fi
4348echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4349echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4350else
4351  # Is the header compilable?
4352echo "$as_me:$LINENO: checking $ac_header usability" >&5
4353echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4354cat >conftest.$ac_ext <<_ACEOF
4355/* confdefs.h.  */
4356_ACEOF
4357cat confdefs.h >>conftest.$ac_ext
4358cat >>conftest.$ac_ext <<_ACEOF
4359/* end confdefs.h.  */
4360$ac_includes_default
4361#include <$ac_header>
4362_ACEOF
4363rm -f conftest.$ac_objext
4364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4365  (eval $ac_compile) 2>conftest.er1
4366  ac_status=$?
4367  grep -v '^ *+' conftest.er1 >conftest.err
4368  rm -f conftest.er1
4369  cat conftest.err >&5
4370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371  (exit $ac_status); } &&
4372	 { ac_try='test -z "$ac_c_werror_flag"
4373			 || test ! -s conftest.err'
4374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375  (eval $ac_try) 2>&5
4376  ac_status=$?
4377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378  (exit $ac_status); }; } &&
4379	 { ac_try='test -s conftest.$ac_objext'
4380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381  (eval $ac_try) 2>&5
4382  ac_status=$?
4383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384  (exit $ac_status); }; }; then
4385  ac_header_compiler=yes
4386else
4387  echo "$as_me: failed program was:" >&5
4388sed 's/^/| /' conftest.$ac_ext >&5
4389
4390ac_header_compiler=no
4391fi
4392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4393echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4394echo "${ECHO_T}$ac_header_compiler" >&6
4395
4396# Is the header present?
4397echo "$as_me:$LINENO: checking $ac_header presence" >&5
4398echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4399cat >conftest.$ac_ext <<_ACEOF
4400/* confdefs.h.  */
4401_ACEOF
4402cat confdefs.h >>conftest.$ac_ext
4403cat >>conftest.$ac_ext <<_ACEOF
4404/* end confdefs.h.  */
4405#include <$ac_header>
4406_ACEOF
4407if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4408  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4409  ac_status=$?
4410  grep -v '^ *+' conftest.er1 >conftest.err
4411  rm -f conftest.er1
4412  cat conftest.err >&5
4413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414  (exit $ac_status); } >/dev/null; then
4415  if test -s conftest.err; then
4416    ac_cpp_err=$ac_c_preproc_warn_flag
4417    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4418  else
4419    ac_cpp_err=
4420  fi
4421else
4422  ac_cpp_err=yes
4423fi
4424if test -z "$ac_cpp_err"; then
4425  ac_header_preproc=yes
4426else
4427  echo "$as_me: failed program was:" >&5
4428sed 's/^/| /' conftest.$ac_ext >&5
4429
4430  ac_header_preproc=no
4431fi
4432rm -f conftest.err conftest.$ac_ext
4433echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4434echo "${ECHO_T}$ac_header_preproc" >&6
4435
4436# So?  What about this header?
4437case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4438  yes:no: )
4439    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4440echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4441    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4442echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4443    ac_header_preproc=yes
4444    ;;
4445  no:yes:* )
4446    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4447echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4448    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4449echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4450    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4451echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4452    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4453echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4454    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4455echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4456    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4457echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4458    (
4459      cat <<\_ASBOX
4460## ------------------------------------------ ##
4461## Report this to root84@users.soureforge.net ##
4462## ------------------------------------------ ##
4463_ASBOX
4464    ) |
4465      sed "s/^/$as_me: WARNING:     /" >&2
4466    ;;
4467esac
4468echo "$as_me:$LINENO: checking for $ac_header" >&5
4469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4470if eval "test \"\${$as_ac_Header+set}\" = set"; then
4471  echo $ECHO_N "(cached) $ECHO_C" >&6
4472else
4473  eval "$as_ac_Header=\$ac_header_preproc"
4474fi
4475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4476echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4477
4478fi
4479if test `eval echo '${'$as_ac_Header'}'` = yes; then
4480  cat >>confdefs.h <<_ACEOF
4481#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4482_ACEOF
4483
4484fi
4485
4486done
4487
4488ac_ext=cc
4489ac_cpp='$CXXCPP $CPPFLAGS'
4490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4493if test -n "$ac_tool_prefix"; then
4494  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4495  do
4496    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4497set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4498echo "$as_me:$LINENO: checking for $ac_word" >&5
4499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4500if test "${ac_cv_prog_CXX+set}" = set; then
4501  echo $ECHO_N "(cached) $ECHO_C" >&6
4502else
4503  if test -n "$CXX"; then
4504  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4505else
4506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507for as_dir in $PATH
4508do
4509  IFS=$as_save_IFS
4510  test -z "$as_dir" && as_dir=.
4511  for ac_exec_ext in '' $ac_executable_extensions; do
4512  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4514    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515    break 2
4516  fi
4517done
4518done
4519
4520fi
4521fi
4522CXX=$ac_cv_prog_CXX
4523if test -n "$CXX"; then
4524  echo "$as_me:$LINENO: result: $CXX" >&5
4525echo "${ECHO_T}$CXX" >&6
4526else
4527  echo "$as_me:$LINENO: result: no" >&5
4528echo "${ECHO_T}no" >&6
4529fi
4530
4531    test -n "$CXX" && break
4532  done
4533fi
4534if test -z "$CXX"; then
4535  ac_ct_CXX=$CXX
4536  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4537do
4538  # Extract the first word of "$ac_prog", so it can be a program name with args.
4539set dummy $ac_prog; ac_word=$2
4540echo "$as_me:$LINENO: checking for $ac_word" >&5
4541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4542if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4543  echo $ECHO_N "(cached) $ECHO_C" >&6
4544else
4545  if test -n "$ac_ct_CXX"; then
4546  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4547else
4548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549for as_dir in $PATH
4550do
4551  IFS=$as_save_IFS
4552  test -z "$as_dir" && as_dir=.
4553  for ac_exec_ext in '' $ac_executable_extensions; do
4554  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555    ac_cv_prog_ac_ct_CXX="$ac_prog"
4556    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557    break 2
4558  fi
4559done
4560done
4561
4562fi
4563fi
4564ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4565if test -n "$ac_ct_CXX"; then
4566  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4567echo "${ECHO_T}$ac_ct_CXX" >&6
4568else
4569  echo "$as_me:$LINENO: result: no" >&5
4570echo "${ECHO_T}no" >&6
4571fi
4572
4573  test -n "$ac_ct_CXX" && break
4574done
4575test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4576
4577  CXX=$ac_ct_CXX
4578fi
4579
4580
4581# Provide some information about the compiler.
4582echo "$as_me:$LINENO:" \
4583     "checking for C++ compiler version" >&5
4584ac_compiler=`set X $ac_compile; echo $2`
4585{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4586  (eval $ac_compiler --version </dev/null >&5) 2>&5
4587  ac_status=$?
4588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589  (exit $ac_status); }
4590{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4591  (eval $ac_compiler -v </dev/null >&5) 2>&5
4592  ac_status=$?
4593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594  (exit $ac_status); }
4595{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4596  (eval $ac_compiler -V </dev/null >&5) 2>&5
4597  ac_status=$?
4598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599  (exit $ac_status); }
4600
4601echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4602echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4603if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4604  echo $ECHO_N "(cached) $ECHO_C" >&6
4605else
4606  cat >conftest.$ac_ext <<_ACEOF
4607/* confdefs.h.  */
4608_ACEOF
4609cat confdefs.h >>conftest.$ac_ext
4610cat >>conftest.$ac_ext <<_ACEOF
4611/* end confdefs.h.  */
4612
4613int
4614main ()
4615{
4616#ifndef __GNUC__
4617       choke me
4618#endif
4619
4620  ;
4621  return 0;
4622}
4623_ACEOF
4624rm -f conftest.$ac_objext
4625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626  (eval $ac_compile) 2>conftest.er1
4627  ac_status=$?
4628  grep -v '^ *+' conftest.er1 >conftest.err
4629  rm -f conftest.er1
4630  cat conftest.err >&5
4631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632  (exit $ac_status); } &&
4633	 { ac_try='test -z "$ac_cxx_werror_flag"
4634			 || test ! -s conftest.err'
4635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636  (eval $ac_try) 2>&5
4637  ac_status=$?
4638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639  (exit $ac_status); }; } &&
4640	 { ac_try='test -s conftest.$ac_objext'
4641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642  (eval $ac_try) 2>&5
4643  ac_status=$?
4644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645  (exit $ac_status); }; }; then
4646  ac_compiler_gnu=yes
4647else
4648  echo "$as_me: failed program was:" >&5
4649sed 's/^/| /' conftest.$ac_ext >&5
4650
4651ac_compiler_gnu=no
4652fi
4653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4654ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4655
4656fi
4657echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4658echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4659GXX=`test $ac_compiler_gnu = yes && echo yes`
4660ac_test_CXXFLAGS=${CXXFLAGS+set}
4661ac_save_CXXFLAGS=$CXXFLAGS
4662CXXFLAGS="-g"
4663echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4664echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4665if test "${ac_cv_prog_cxx_g+set}" = set; then
4666  echo $ECHO_N "(cached) $ECHO_C" >&6
4667else
4668  cat >conftest.$ac_ext <<_ACEOF
4669/* confdefs.h.  */
4670_ACEOF
4671cat confdefs.h >>conftest.$ac_ext
4672cat >>conftest.$ac_ext <<_ACEOF
4673/* end confdefs.h.  */
4674
4675int
4676main ()
4677{
4678
4679  ;
4680  return 0;
4681}
4682_ACEOF
4683rm -f conftest.$ac_objext
4684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4685  (eval $ac_compile) 2>conftest.er1
4686  ac_status=$?
4687  grep -v '^ *+' conftest.er1 >conftest.err
4688  rm -f conftest.er1
4689  cat conftest.err >&5
4690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691  (exit $ac_status); } &&
4692	 { ac_try='test -z "$ac_cxx_werror_flag"
4693			 || test ! -s conftest.err'
4694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695  (eval $ac_try) 2>&5
4696  ac_status=$?
4697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698  (exit $ac_status); }; } &&
4699	 { ac_try='test -s conftest.$ac_objext'
4700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701  (eval $ac_try) 2>&5
4702  ac_status=$?
4703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704  (exit $ac_status); }; }; then
4705  ac_cv_prog_cxx_g=yes
4706else
4707  echo "$as_me: failed program was:" >&5
4708sed 's/^/| /' conftest.$ac_ext >&5
4709
4710ac_cv_prog_cxx_g=no
4711fi
4712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4713fi
4714echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4715echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4716if test "$ac_test_CXXFLAGS" = set; then
4717  CXXFLAGS=$ac_save_CXXFLAGS
4718elif test $ac_cv_prog_cxx_g = yes; then
4719  if test "$GXX" = yes; then
4720    CXXFLAGS="-g -O2"
4721  else
4722    CXXFLAGS="-g"
4723  fi
4724else
4725  if test "$GXX" = yes; then
4726    CXXFLAGS="-O2"
4727  else
4728    CXXFLAGS=
4729  fi
4730fi
4731for ac_declaration in \
4732   '' \
4733   'extern "C" void std::exit (int) throw (); using std::exit;' \
4734   'extern "C" void std::exit (int); using std::exit;' \
4735   'extern "C" void exit (int) throw ();' \
4736   'extern "C" void exit (int);' \
4737   'void exit (int);'
4738do
4739  cat >conftest.$ac_ext <<_ACEOF
4740/* confdefs.h.  */
4741_ACEOF
4742cat confdefs.h >>conftest.$ac_ext
4743cat >>conftest.$ac_ext <<_ACEOF
4744/* end confdefs.h.  */
4745$ac_declaration
4746#include <stdlib.h>
4747int
4748main ()
4749{
4750exit (42);
4751  ;
4752  return 0;
4753}
4754_ACEOF
4755rm -f conftest.$ac_objext
4756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4757  (eval $ac_compile) 2>conftest.er1
4758  ac_status=$?
4759  grep -v '^ *+' conftest.er1 >conftest.err
4760  rm -f conftest.er1
4761  cat conftest.err >&5
4762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763  (exit $ac_status); } &&
4764	 { ac_try='test -z "$ac_cxx_werror_flag"
4765			 || test ! -s conftest.err'
4766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767  (eval $ac_try) 2>&5
4768  ac_status=$?
4769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770  (exit $ac_status); }; } &&
4771	 { ac_try='test -s conftest.$ac_objext'
4772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773  (eval $ac_try) 2>&5
4774  ac_status=$?
4775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776  (exit $ac_status); }; }; then
4777  :
4778else
4779  echo "$as_me: failed program was:" >&5
4780sed 's/^/| /' conftest.$ac_ext >&5
4781
4782continue
4783fi
4784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4785  cat >conftest.$ac_ext <<_ACEOF
4786/* confdefs.h.  */
4787_ACEOF
4788cat confdefs.h >>conftest.$ac_ext
4789cat >>conftest.$ac_ext <<_ACEOF
4790/* end confdefs.h.  */
4791$ac_declaration
4792int
4793main ()
4794{
4795exit (42);
4796  ;
4797  return 0;
4798}
4799_ACEOF
4800rm -f conftest.$ac_objext
4801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802  (eval $ac_compile) 2>conftest.er1
4803  ac_status=$?
4804  grep -v '^ *+' conftest.er1 >conftest.err
4805  rm -f conftest.er1
4806  cat conftest.err >&5
4807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808  (exit $ac_status); } &&
4809	 { ac_try='test -z "$ac_cxx_werror_flag"
4810			 || test ! -s conftest.err'
4811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812  (eval $ac_try) 2>&5
4813  ac_status=$?
4814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815  (exit $ac_status); }; } &&
4816	 { ac_try='test -s conftest.$ac_objext'
4817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818  (eval $ac_try) 2>&5
4819  ac_status=$?
4820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821  (exit $ac_status); }; }; then
4822  break
4823else
4824  echo "$as_me: failed program was:" >&5
4825sed 's/^/| /' conftest.$ac_ext >&5
4826
4827fi
4828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4829done
4830rm -f conftest*
4831if test -n "$ac_declaration"; then
4832  echo '#ifdef __cplusplus' >>confdefs.h
4833  echo $ac_declaration      >>confdefs.h
4834  echo '#endif'             >>confdefs.h
4835fi
4836
4837ac_ext=cc
4838ac_cpp='$CXXCPP $CPPFLAGS'
4839ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4840ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4841ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4842
4843depcc="$CXX"  am_compiler_list=
4844
4845echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4846echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4847if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4848  echo $ECHO_N "(cached) $ECHO_C" >&6
4849else
4850  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4851  # We make a subdir and do the tests there.  Otherwise we can end up
4852  # making bogus files that we don't know about and never remove.  For
4853  # instance it was reported that on HP-UX the gcc test will end up
4854  # making a dummy file named `D' -- because `-MD' means `put the output
4855  # in D'.
4856  mkdir conftest.dir
4857  # Copy depcomp to subdir because otherwise we won't find it if we're
4858  # using a relative directory.
4859  cp "$am_depcomp" conftest.dir
4860  cd conftest.dir
4861  # We will build objects and dependencies in a subdirectory because
4862  # it helps to detect inapplicable dependency modes.  For instance
4863  # both Tru64's cc and ICC support -MD to output dependencies as a
4864  # side effect of compilation, but ICC will put the dependencies in
4865  # the current directory while Tru64 will put them in the object
4866  # directory.
4867  mkdir sub
4868
4869  am_cv_CXX_dependencies_compiler_type=none
4870  if test "$am_compiler_list" = ""; then
4871     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4872  fi
4873  for depmode in $am_compiler_list; do
4874    # Setup a source with many dependencies, because some compilers
4875    # like to wrap large dependency lists on column 80 (with \), and
4876    # we should not choose a depcomp mode which is confused by this.
4877    #
4878    # We need to recreate these files for each test, as the compiler may
4879    # overwrite some of them when testing with obscure command lines.
4880    # This happens at least with the AIX C compiler.
4881    : > sub/conftest.c
4882    for i in 1 2 3 4 5 6; do
4883      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4884      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4885      # Solaris 8's {/usr,}/bin/sh.
4886      touch sub/conftst$i.h
4887    done
4888    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4889
4890    case $depmode in
4891    nosideeffect)
4892      # after this tag, mechanisms are not by side-effect, so they'll
4893      # only be used when explicitly requested
4894      if test "x$enable_dependency_tracking" = xyes; then
4895	continue
4896      else
4897	break
4898      fi
4899      ;;
4900    none) break ;;
4901    esac
4902    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4903    # mode.  It turns out that the SunPro C++ compiler does not properly
4904    # handle `-M -o', and we need to detect this.
4905    if depmode=$depmode \
4906       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4907       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4908       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4909         >/dev/null 2>conftest.err &&
4910       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4911       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4912       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4913      # icc doesn't choke on unknown options, it will just issue warnings
4914      # or remarks (even with -Werror).  So we grep stderr for any message
4915      # that says an option was ignored or not supported.
4916      # When given -MP, icc 7.0 and 7.1 complain thusly:
4917      #   icc: Command line warning: ignoring option '-M'; no argument required
4918      # The diagnosis changed in icc 8.0:
4919      #   icc: Command line remark: option '-MP' not supported
4920      if (grep 'ignoring option' conftest.err ||
4921          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4922        am_cv_CXX_dependencies_compiler_type=$depmode
4923        break
4924      fi
4925    fi
4926  done
4927
4928  cd ..
4929  rm -rf conftest.dir
4930else
4931  am_cv_CXX_dependencies_compiler_type=none
4932fi
4933
4934fi
4935echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4936echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4937CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4938
4939
4940
4941if
4942  test "x$enable_dependency_tracking" != xno \
4943  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4944  am__fastdepCXX_TRUE=
4945  am__fastdepCXX_FALSE='#'
4946else
4947  am__fastdepCXX_TRUE='#'
4948  am__fastdepCXX_FALSE=
4949fi
4950
4951
4952
4953
4954if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4955    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4956    (test "X$CXX" != "Xg++"))) ; then
4957  ac_ext=cc
4958ac_cpp='$CXXCPP $CPPFLAGS'
4959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4962echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4963echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4964if test -z "$CXXCPP"; then
4965  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4966  echo $ECHO_N "(cached) $ECHO_C" >&6
4967else
4968      # Double quotes because CXXCPP needs to be expanded
4969    for CXXCPP in "$CXX -E" "/lib/cpp"
4970    do
4971      ac_preproc_ok=false
4972for ac_cxx_preproc_warn_flag in '' yes
4973do
4974  # Use a header file that comes with gcc, so configuring glibc
4975  # with a fresh cross-compiler works.
4976  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4977  # <limits.h> exists even on freestanding compilers.
4978  # On the NeXT, cc -E runs the code through the compiler's parser,
4979  # not just through cpp. "Syntax error" is here to catch this case.
4980  cat >conftest.$ac_ext <<_ACEOF
4981/* confdefs.h.  */
4982_ACEOF
4983cat confdefs.h >>conftest.$ac_ext
4984cat >>conftest.$ac_ext <<_ACEOF
4985/* end confdefs.h.  */
4986#ifdef __STDC__
4987# include <limits.h>
4988#else
4989# include <assert.h>
4990#endif
4991		     Syntax error
4992_ACEOF
4993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4994  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4995  ac_status=$?
4996  grep -v '^ *+' conftest.er1 >conftest.err
4997  rm -f conftest.er1
4998  cat conftest.err >&5
4999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000  (exit $ac_status); } >/dev/null; then
5001  if test -s conftest.err; then
5002    ac_cpp_err=$ac_cxx_preproc_warn_flag
5003    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5004  else
5005    ac_cpp_err=
5006  fi
5007else
5008  ac_cpp_err=yes
5009fi
5010if test -z "$ac_cpp_err"; then
5011  :
5012else
5013  echo "$as_me: failed program was:" >&5
5014sed 's/^/| /' conftest.$ac_ext >&5
5015
5016  # Broken: fails on valid input.
5017continue
5018fi
5019rm -f conftest.err conftest.$ac_ext
5020
5021  # OK, works on sane cases.  Now check whether non-existent headers
5022  # can be detected and how.
5023  cat >conftest.$ac_ext <<_ACEOF
5024/* confdefs.h.  */
5025_ACEOF
5026cat confdefs.h >>conftest.$ac_ext
5027cat >>conftest.$ac_ext <<_ACEOF
5028/* end confdefs.h.  */
5029#include <ac_nonexistent.h>
5030_ACEOF
5031if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5032  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5033  ac_status=$?
5034  grep -v '^ *+' conftest.er1 >conftest.err
5035  rm -f conftest.er1
5036  cat conftest.err >&5
5037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038  (exit $ac_status); } >/dev/null; then
5039  if test -s conftest.err; then
5040    ac_cpp_err=$ac_cxx_preproc_warn_flag
5041    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5042  else
5043    ac_cpp_err=
5044  fi
5045else
5046  ac_cpp_err=yes
5047fi
5048if test -z "$ac_cpp_err"; then
5049  # Broken: success on invalid input.
5050continue
5051else
5052  echo "$as_me: failed program was:" >&5
5053sed 's/^/| /' conftest.$ac_ext >&5
5054
5055  # Passes both tests.
5056ac_preproc_ok=:
5057break
5058fi
5059rm -f conftest.err conftest.$ac_ext
5060
5061done
5062# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5063rm -f conftest.err conftest.$ac_ext
5064if $ac_preproc_ok; then
5065  break
5066fi
5067
5068    done
5069    ac_cv_prog_CXXCPP=$CXXCPP
5070
5071fi
5072  CXXCPP=$ac_cv_prog_CXXCPP
5073else
5074  ac_cv_prog_CXXCPP=$CXXCPP
5075fi
5076echo "$as_me:$LINENO: result: $CXXCPP" >&5
5077echo "${ECHO_T}$CXXCPP" >&6
5078ac_preproc_ok=false
5079for ac_cxx_preproc_warn_flag in '' yes
5080do
5081  # Use a header file that comes with gcc, so configuring glibc
5082  # with a fresh cross-compiler works.
5083  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084  # <limits.h> exists even on freestanding compilers.
5085  # On the NeXT, cc -E runs the code through the compiler's parser,
5086  # not just through cpp. "Syntax error" is here to catch this case.
5087  cat >conftest.$ac_ext <<_ACEOF
5088/* confdefs.h.  */
5089_ACEOF
5090cat confdefs.h >>conftest.$ac_ext
5091cat >>conftest.$ac_ext <<_ACEOF
5092/* end confdefs.h.  */
5093#ifdef __STDC__
5094# include <limits.h>
5095#else
5096# include <assert.h>
5097#endif
5098		     Syntax error
5099_ACEOF
5100if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5101  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5102  ac_status=$?
5103  grep -v '^ *+' conftest.er1 >conftest.err
5104  rm -f conftest.er1
5105  cat conftest.err >&5
5106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107  (exit $ac_status); } >/dev/null; then
5108  if test -s conftest.err; then
5109    ac_cpp_err=$ac_cxx_preproc_warn_flag
5110    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5111  else
5112    ac_cpp_err=
5113  fi
5114else
5115  ac_cpp_err=yes
5116fi
5117if test -z "$ac_cpp_err"; then
5118  :
5119else
5120  echo "$as_me: failed program was:" >&5
5121sed 's/^/| /' conftest.$ac_ext >&5
5122
5123  # Broken: fails on valid input.
5124continue
5125fi
5126rm -f conftest.err conftest.$ac_ext
5127
5128  # OK, works on sane cases.  Now check whether non-existent headers
5129  # can be detected and how.
5130  cat >conftest.$ac_ext <<_ACEOF
5131/* confdefs.h.  */
5132_ACEOF
5133cat confdefs.h >>conftest.$ac_ext
5134cat >>conftest.$ac_ext <<_ACEOF
5135/* end confdefs.h.  */
5136#include <ac_nonexistent.h>
5137_ACEOF
5138if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5139  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5140  ac_status=$?
5141  grep -v '^ *+' conftest.er1 >conftest.err
5142  rm -f conftest.er1
5143  cat conftest.err >&5
5144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145  (exit $ac_status); } >/dev/null; then
5146  if test -s conftest.err; then
5147    ac_cpp_err=$ac_cxx_preproc_warn_flag
5148    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5149  else
5150    ac_cpp_err=
5151  fi
5152else
5153  ac_cpp_err=yes
5154fi
5155if test -z "$ac_cpp_err"; then
5156  # Broken: success on invalid input.
5157continue
5158else
5159  echo "$as_me: failed program was:" >&5
5160sed 's/^/| /' conftest.$ac_ext >&5
5161
5162  # Passes both tests.
5163ac_preproc_ok=:
5164break
5165fi
5166rm -f conftest.err conftest.$ac_ext
5167
5168done
5169# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5170rm -f conftest.err conftest.$ac_ext
5171if $ac_preproc_ok; then
5172  :
5173else
5174  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5175See \`config.log' for more details." >&5
5176echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5177See \`config.log' for more details." >&2;}
5178   { (exit 1); exit 1; }; }
5179fi
5180
5181ac_ext=cc
5182ac_cpp='$CXXCPP $CPPFLAGS'
5183ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5184ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5185ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5186
5187fi
5188
5189
5190ac_ext=f
5191ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5192ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5193ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5194if test -n "$ac_tool_prefix"; then
5195  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5196  do
5197    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5198set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5199echo "$as_me:$LINENO: checking for $ac_word" >&5
5200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5201if test "${ac_cv_prog_F77+set}" = set; then
5202  echo $ECHO_N "(cached) $ECHO_C" >&6
5203else
5204  if test -n "$F77"; then
5205  ac_cv_prog_F77="$F77" # Let the user override the test.
5206else
5207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208for as_dir in $PATH
5209do
5210  IFS=$as_save_IFS
5211  test -z "$as_dir" && as_dir=.
5212  for ac_exec_ext in '' $ac_executable_extensions; do
5213  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5215    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5216    break 2
5217  fi
5218done
5219done
5220
5221fi
5222fi
5223F77=$ac_cv_prog_F77
5224if test -n "$F77"; then
5225  echo "$as_me:$LINENO: result: $F77" >&5
5226echo "${ECHO_T}$F77" >&6
5227else
5228  echo "$as_me:$LINENO: result: no" >&5
5229echo "${ECHO_T}no" >&6
5230fi
5231
5232    test -n "$F77" && break
5233  done
5234fi
5235if test -z "$F77"; then
5236  ac_ct_F77=$F77
5237  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5238do
5239  # Extract the first word of "$ac_prog", so it can be a program name with args.
5240set dummy $ac_prog; ac_word=$2
5241echo "$as_me:$LINENO: checking for $ac_word" >&5
5242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5243if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5244  echo $ECHO_N "(cached) $ECHO_C" >&6
5245else
5246  if test -n "$ac_ct_F77"; then
5247  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5248else
5249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250for as_dir in $PATH
5251do
5252  IFS=$as_save_IFS
5253  test -z "$as_dir" && as_dir=.
5254  for ac_exec_ext in '' $ac_executable_extensions; do
5255  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5256    ac_cv_prog_ac_ct_F77="$ac_prog"
5257    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258    break 2
5259  fi
5260done
5261done
5262
5263fi
5264fi
5265ac_ct_F77=$ac_cv_prog_ac_ct_F77
5266if test -n "$ac_ct_F77"; then
5267  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5268echo "${ECHO_T}$ac_ct_F77" >&6
5269else
5270  echo "$as_me:$LINENO: result: no" >&5
5271echo "${ECHO_T}no" >&6
5272fi
5273
5274  test -n "$ac_ct_F77" && break
5275done
5276
5277  F77=$ac_ct_F77
5278fi
5279
5280
5281# Provide some information about the compiler.
5282echo "$as_me:5282:" \
5283     "checking for Fortran 77 compiler version" >&5
5284ac_compiler=`set X $ac_compile; echo $2`
5285{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5286  (eval $ac_compiler --version </dev/null >&5) 2>&5
5287  ac_status=$?
5288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289  (exit $ac_status); }
5290{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5291  (eval $ac_compiler -v </dev/null >&5) 2>&5
5292  ac_status=$?
5293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294  (exit $ac_status); }
5295{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5296  (eval $ac_compiler -V </dev/null >&5) 2>&5
5297  ac_status=$?
5298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299  (exit $ac_status); }
5300rm -f a.out
5301
5302# If we don't use `.F' as extension, the preprocessor is not run on the
5303# input file.  (Note that this only needs to work for GNU compilers.)
5304ac_save_ext=$ac_ext
5305ac_ext=F
5306echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5307echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5308if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5309  echo $ECHO_N "(cached) $ECHO_C" >&6
5310else
5311  cat >conftest.$ac_ext <<_ACEOF
5312      program main
5313#ifndef __GNUC__
5314       choke me
5315#endif
5316
5317      end
5318_ACEOF
5319rm -f conftest.$ac_objext
5320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5321  (eval $ac_compile) 2>conftest.er1
5322  ac_status=$?
5323  grep -v '^ *+' conftest.er1 >conftest.err
5324  rm -f conftest.er1
5325  cat conftest.err >&5
5326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327  (exit $ac_status); } &&
5328	 { ac_try='test -z "$ac_f77_werror_flag"
5329			 || test ! -s conftest.err'
5330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331  (eval $ac_try) 2>&5
5332  ac_status=$?
5333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334  (exit $ac_status); }; } &&
5335	 { ac_try='test -s conftest.$ac_objext'
5336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337  (eval $ac_try) 2>&5
5338  ac_status=$?
5339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340  (exit $ac_status); }; }; then
5341  ac_compiler_gnu=yes
5342else
5343  echo "$as_me: failed program was:" >&5
5344sed 's/^/| /' conftest.$ac_ext >&5
5345
5346ac_compiler_gnu=no
5347fi
5348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5349ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5350
5351fi
5352echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5353echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5354ac_ext=$ac_save_ext
5355ac_test_FFLAGS=${FFLAGS+set}
5356ac_save_FFLAGS=$FFLAGS
5357FFLAGS=
5358echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5359echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5360if test "${ac_cv_prog_f77_g+set}" = set; then
5361  echo $ECHO_N "(cached) $ECHO_C" >&6
5362else
5363  FFLAGS=-g
5364cat >conftest.$ac_ext <<_ACEOF
5365      program main
5366
5367      end
5368_ACEOF
5369rm -f conftest.$ac_objext
5370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5371  (eval $ac_compile) 2>conftest.er1
5372  ac_status=$?
5373  grep -v '^ *+' conftest.er1 >conftest.err
5374  rm -f conftest.er1
5375  cat conftest.err >&5
5376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377  (exit $ac_status); } &&
5378	 { ac_try='test -z "$ac_f77_werror_flag"
5379			 || test ! -s conftest.err'
5380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381  (eval $ac_try) 2>&5
5382  ac_status=$?
5383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384  (exit $ac_status); }; } &&
5385	 { ac_try='test -s conftest.$ac_objext'
5386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387  (eval $ac_try) 2>&5
5388  ac_status=$?
5389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390  (exit $ac_status); }; }; then
5391  ac_cv_prog_f77_g=yes
5392else
5393  echo "$as_me: failed program was:" >&5
5394sed 's/^/| /' conftest.$ac_ext >&5
5395
5396ac_cv_prog_f77_g=no
5397fi
5398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5399
5400fi
5401echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5402echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5403if test "$ac_test_FFLAGS" = set; then
5404  FFLAGS=$ac_save_FFLAGS
5405elif test $ac_cv_prog_f77_g = yes; then
5406  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5407    FFLAGS="-g -O2"
5408  else
5409    FFLAGS="-g"
5410  fi
5411else
5412  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5413    FFLAGS="-O2"
5414  else
5415    FFLAGS=
5416  fi
5417fi
5418
5419G77=`test $ac_compiler_gnu = yes && echo yes`
5420ac_ext=c
5421ac_cpp='$CPP $CPPFLAGS'
5422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5424ac_compiler_gnu=$ac_cv_c_compiler_gnu
5425
5426
5427
5428# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5429
5430# find the maximum length of command line arguments
5431echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5432echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5433if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5434  echo $ECHO_N "(cached) $ECHO_C" >&6
5435else
5436    i=0
5437  teststring="ABCD"
5438
5439  case $build_os in
5440  msdosdjgpp*)
5441    # On DJGPP, this test can blow up pretty badly due to problems in libc
5442    # (any single argument exceeding 2000 bytes causes a buffer overrun
5443    # during glob expansion).  Even if it were fixed, the result of this
5444    # check would be larger than it should be.
5445    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5446    ;;
5447
5448  gnu*)
5449    # Under GNU Hurd, this test is not required because there is
5450    # no limit to the length of command line arguments.
5451    # Libtool will interpret -1 as no limit whatsoever
5452    lt_cv_sys_max_cmd_len=-1;
5453    ;;
5454
5455  cygwin* | mingw*)
5456    # On Win9x/ME, this test blows up -- it succeeds, but takes
5457    # about 5 minutes as the teststring grows exponentially.
5458    # Worse, since 9x/ME are not pre-emptively multitasking,
5459    # you end up with a "frozen" computer, even though with patience
5460    # the test eventually succeeds (with a max line length of 256k).
5461    # Instead, let's just punt: use the minimum linelength reported by
5462    # all of the supported platforms: 8192 (on NT/2K/XP).
5463    lt_cv_sys_max_cmd_len=8192;
5464    ;;
5465
5466  amigaos*)
5467    # On AmigaOS with pdksh, this test takes hours, literally.
5468    # So we just punt and use a minimum line length of 8192.
5469    lt_cv_sys_max_cmd_len=8192;
5470    ;;
5471
5472  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5473    # This has been around since 386BSD, at least.  Likely further.
5474    if test -x /sbin/sysctl; then
5475      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5476    elif test -x /usr/sbin/sysctl; then
5477      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5478    else
5479      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5480    fi
5481    # And add a safety zone
5482    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5483    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5484    ;;
5485
5486  interix*)
5487    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5488    lt_cv_sys_max_cmd_len=196608
5489    ;;
5490
5491  osf*)
5492    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5493    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5494    # nice to cause kernel panics so lets avoid the loop below.
5495    # First set a reasonable default.
5496    lt_cv_sys_max_cmd_len=16384
5497    #
5498    if test -x /sbin/sysconfig; then
5499      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5500        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5501      esac
5502    fi
5503    ;;
5504  sco3.2v5*)
5505    lt_cv_sys_max_cmd_len=102400
5506    ;;
5507  sysv5* | sco5v6* | sysv4.2uw2*)
5508    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5509    if test -n "$kargmax"; then
5510      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5511    else
5512      lt_cv_sys_max_cmd_len=32768
5513    fi
5514    ;;
5515  *)
5516    # If test is not a shell built-in, we'll probably end up computing a
5517    # maximum length that is only half of the actual maximum length, but
5518    # we can't tell.
5519    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5520    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5521	       = "XX$teststring") >/dev/null 2>&1 &&
5522	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5523	    lt_cv_sys_max_cmd_len=$new_result &&
5524	    test $i != 17 # 1/2 MB should be enough
5525    do
5526      i=`expr $i + 1`
5527      teststring=$teststring$teststring
5528    done
5529    teststring=
5530    # Add a significant safety factor because C++ compilers can tack on massive
5531    # amounts of additional arguments before passing them to the linker.
5532    # It appears as though 1/2 is a usable value.
5533    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5534    ;;
5535  esac
5536
5537fi
5538
5539if test -n $lt_cv_sys_max_cmd_len ; then
5540  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5541echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5542else
5543  echo "$as_me:$LINENO: result: none" >&5
5544echo "${ECHO_T}none" >&6
5545fi
5546
5547
5548
5549
5550# Check for command to grab the raw symbol name followed by C symbol from nm.
5551echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5552echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5553if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5554  echo $ECHO_N "(cached) $ECHO_C" >&6
5555else
5556
5557# These are sane defaults that work on at least a few old systems.
5558# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5559
5560# Character class describing NM global symbol codes.
5561symcode='[BCDEGRST]'
5562
5563# Regexp to match symbols that can be accessed directly from C.
5564sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5565
5566# Transform an extracted symbol line into a proper C declaration
5567lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5568
5569# Transform an extracted symbol line into symbol name and symbol address
5570lt_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'"
5571
5572# Define system-specific variables.
5573case $host_os in
5574aix*)
5575  symcode='[BCDT]'
5576  ;;
5577cygwin* | mingw* | pw32*)
5578  symcode='[ABCDGISTW]'
5579  ;;
5580hpux*) # Its linker distinguishes data from code symbols
5581  if test "$host_cpu" = ia64; then
5582    symcode='[ABCDEGRST]'
5583  fi
5584  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5585  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'"
5586  ;;
5587linux*)
5588  if test "$host_cpu" = ia64; then
5589    symcode='[ABCDGIRSTW]'
5590    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5591    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'"
5592  fi
5593  ;;
5594irix* | nonstopux*)
5595  symcode='[BCDEGRST]'
5596  ;;
5597osf*)
5598  symcode='[BCDEGQRST]'
5599  ;;
5600solaris*)
5601  symcode='[BDRT]'
5602  ;;
5603sco3.2v5*)
5604  symcode='[DT]'
5605  ;;
5606sysv4.2uw2*)
5607  symcode='[DT]'
5608  ;;
5609sysv5* | sco5v6* | unixware* | OpenUNIX*)
5610  symcode='[ABDT]'
5611  ;;
5612sysv4)
5613  symcode='[DFNSTU]'
5614  ;;
5615esac
5616
5617# Handle CRLF in mingw tool chain
5618opt_cr=
5619case $build_os in
5620mingw*)
5621  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5622  ;;
5623esac
5624
5625# If we're using GNU nm, then use its standard symbol codes.
5626case `$NM -V 2>&1` in
5627*GNU* | *'with BFD'*)
5628  symcode='[ABCDGIRSTW]' ;;
5629esac
5630
5631# Try without a prefix undercore, then with it.
5632for ac_symprfx in "" "_"; do
5633
5634  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5635  symxfrm="\\1 $ac_symprfx\\2 \\2"
5636
5637  # Write the raw and C identifiers.
5638  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5639
5640  # Check to see that the pipe works correctly.
5641  pipe_works=no
5642
5643  rm -f conftest*
5644  cat > conftest.$ac_ext <<EOF
5645#ifdef __cplusplus
5646extern "C" {
5647#endif
5648char nm_test_var;
5649void nm_test_func(){}
5650#ifdef __cplusplus
5651}
5652#endif
5653int main(){nm_test_var='a';nm_test_func();return(0);}
5654EOF
5655
5656  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5657  (eval $ac_compile) 2>&5
5658  ac_status=$?
5659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660  (exit $ac_status); }; then
5661    # Now try to grab the symbols.
5662    nlist=conftest.nm
5663    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5664  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5665  ac_status=$?
5666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667  (exit $ac_status); } && test -s "$nlist"; then
5668      # Try sorting and uniquifying the output.
5669      if sort "$nlist" | uniq > "$nlist"T; then
5670	mv -f "$nlist"T "$nlist"
5671      else
5672	rm -f "$nlist"T
5673      fi
5674
5675      # Make sure that we snagged all the symbols we need.
5676      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5677	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5678	  cat <<EOF > conftest.$ac_ext
5679#ifdef __cplusplus
5680extern "C" {
5681#endif
5682
5683EOF
5684	  # Now generate the symbol file.
5685	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5686
5687	  cat <<EOF >> conftest.$ac_ext
5688#if defined (__STDC__) && __STDC__
5689# define lt_ptr_t void *
5690#else
5691# define lt_ptr_t char *
5692# define const
5693#endif
5694
5695/* The mapping between symbol names and symbols. */
5696const struct {
5697  const char *name;
5698  lt_ptr_t address;
5699}
5700lt_preloaded_symbols[] =
5701{
5702EOF
5703	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5704	  cat <<\EOF >> conftest.$ac_ext
5705  {0, (lt_ptr_t) 0}
5706};
5707
5708#ifdef __cplusplus
5709}
5710#endif
5711EOF
5712	  # Now try linking the two files.
5713	  mv conftest.$ac_objext conftstm.$ac_objext
5714	  lt_save_LIBS="$LIBS"
5715	  lt_save_CFLAGS="$CFLAGS"
5716	  LIBS="conftstm.$ac_objext"
5717	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5718	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5719  (eval $ac_link) 2>&5
5720  ac_status=$?
5721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5723	    pipe_works=yes
5724	  fi
5725	  LIBS="$lt_save_LIBS"
5726	  CFLAGS="$lt_save_CFLAGS"
5727	else
5728	  echo "cannot find nm_test_func in $nlist" >&5
5729	fi
5730      else
5731	echo "cannot find nm_test_var in $nlist" >&5
5732      fi
5733    else
5734      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5735    fi
5736  else
5737    echo "$progname: failed program was:" >&5
5738    cat conftest.$ac_ext >&5
5739  fi
5740  rm -f conftest* conftst*
5741
5742  # Do not use the global_symbol_pipe unless it works.
5743  if test "$pipe_works" = yes; then
5744    break
5745  else
5746    lt_cv_sys_global_symbol_pipe=
5747  fi
5748done
5749
5750fi
5751
5752if test -z "$lt_cv_sys_global_symbol_pipe"; then
5753  lt_cv_sys_global_symbol_to_cdecl=
5754fi
5755if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5756  echo "$as_me:$LINENO: result: failed" >&5
5757echo "${ECHO_T}failed" >&6
5758else
5759  echo "$as_me:$LINENO: result: ok" >&5
5760echo "${ECHO_T}ok" >&6
5761fi
5762
5763echo "$as_me:$LINENO: checking for objdir" >&5
5764echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5765if test "${lt_cv_objdir+set}" = set; then
5766  echo $ECHO_N "(cached) $ECHO_C" >&6
5767else
5768  rm -f .libs 2>/dev/null
5769mkdir .libs 2>/dev/null
5770if test -d .libs; then
5771  lt_cv_objdir=.libs
5772else
5773  # MS-DOS does not allow filenames that begin with a dot.
5774  lt_cv_objdir=_libs
5775fi
5776rmdir .libs 2>/dev/null
5777fi
5778echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5779echo "${ECHO_T}$lt_cv_objdir" >&6
5780objdir=$lt_cv_objdir
5781
5782
5783
5784
5785
5786case $host_os in
5787aix3*)
5788  # AIX sometimes has problems with the GCC collect2 program.  For some
5789  # reason, if we set the COLLECT_NAMES environment variable, the problems
5790  # vanish in a puff of smoke.
5791  if test "X${COLLECT_NAMES+set}" != Xset; then
5792    COLLECT_NAMES=
5793    export COLLECT_NAMES
5794  fi
5795  ;;
5796esac
5797
5798# Sed substitution that helps us do robust quoting.  It backslashifies
5799# metacharacters that are still active within double-quoted strings.
5800Xsed='sed -e 1s/^X//'
5801sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5802
5803# Same as above, but do not quote variable references.
5804double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5805
5806# Sed substitution to delay expansion of an escaped shell variable in a
5807# double_quote_subst'ed string.
5808delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5809
5810# Sed substitution to avoid accidental globbing in evaled expressions
5811no_glob_subst='s/\*/\\\*/g'
5812
5813# Constants:
5814rm="rm -f"
5815
5816# Global variables:
5817default_ofile=libtool
5818can_build_shared=yes
5819
5820# All known linkers require a `.a' archive for static linking (except MSVC,
5821# which needs '.lib').
5822libext=a
5823ltmain="$ac_aux_dir/ltmain.sh"
5824ofile="$default_ofile"
5825with_gnu_ld="$lt_cv_prog_gnu_ld"
5826
5827if test -n "$ac_tool_prefix"; then
5828  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5829set dummy ${ac_tool_prefix}ar; ac_word=$2
5830echo "$as_me:$LINENO: checking for $ac_word" >&5
5831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5832if test "${ac_cv_prog_AR+set}" = set; then
5833  echo $ECHO_N "(cached) $ECHO_C" >&6
5834else
5835  if test -n "$AR"; then
5836  ac_cv_prog_AR="$AR" # Let the user override the test.
5837else
5838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839for as_dir in $PATH
5840do
5841  IFS=$as_save_IFS
5842  test -z "$as_dir" && as_dir=.
5843  for ac_exec_ext in '' $ac_executable_extensions; do
5844  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5845    ac_cv_prog_AR="${ac_tool_prefix}ar"
5846    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5847    break 2
5848  fi
5849done
5850done
5851
5852fi
5853fi
5854AR=$ac_cv_prog_AR
5855if test -n "$AR"; then
5856  echo "$as_me:$LINENO: result: $AR" >&5
5857echo "${ECHO_T}$AR" >&6
5858else
5859  echo "$as_me:$LINENO: result: no" >&5
5860echo "${ECHO_T}no" >&6
5861fi
5862
5863fi
5864if test -z "$ac_cv_prog_AR"; then
5865  ac_ct_AR=$AR
5866  # Extract the first word of "ar", so it can be a program name with args.
5867set dummy ar; ac_word=$2
5868echo "$as_me:$LINENO: checking for $ac_word" >&5
5869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5870if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5871  echo $ECHO_N "(cached) $ECHO_C" >&6
5872else
5873  if test -n "$ac_ct_AR"; then
5874  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5875else
5876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877for as_dir in $PATH
5878do
5879  IFS=$as_save_IFS
5880  test -z "$as_dir" && as_dir=.
5881  for ac_exec_ext in '' $ac_executable_extensions; do
5882  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5883    ac_cv_prog_ac_ct_AR="ar"
5884    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885    break 2
5886  fi
5887done
5888done
5889
5890  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5891fi
5892fi
5893ac_ct_AR=$ac_cv_prog_ac_ct_AR
5894if test -n "$ac_ct_AR"; then
5895  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5896echo "${ECHO_T}$ac_ct_AR" >&6
5897else
5898  echo "$as_me:$LINENO: result: no" >&5
5899echo "${ECHO_T}no" >&6
5900fi
5901
5902  AR=$ac_ct_AR
5903else
5904  AR="$ac_cv_prog_AR"
5905fi
5906
5907if test -n "$ac_tool_prefix"; then
5908  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5909set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5910echo "$as_me:$LINENO: checking for $ac_word" >&5
5911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5912if test "${ac_cv_prog_RANLIB+set}" = set; then
5913  echo $ECHO_N "(cached) $ECHO_C" >&6
5914else
5915  if test -n "$RANLIB"; then
5916  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5917else
5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921  IFS=$as_save_IFS
5922  test -z "$as_dir" && as_dir=.
5923  for ac_exec_ext in '' $ac_executable_extensions; do
5924  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5926    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5927    break 2
5928  fi
5929done
5930done
5931
5932fi
5933fi
5934RANLIB=$ac_cv_prog_RANLIB
5935if test -n "$RANLIB"; then
5936  echo "$as_me:$LINENO: result: $RANLIB" >&5
5937echo "${ECHO_T}$RANLIB" >&6
5938else
5939  echo "$as_me:$LINENO: result: no" >&5
5940echo "${ECHO_T}no" >&6
5941fi
5942
5943fi
5944if test -z "$ac_cv_prog_RANLIB"; then
5945  ac_ct_RANLIB=$RANLIB
5946  # Extract the first word of "ranlib", so it can be a program name with args.
5947set dummy ranlib; ac_word=$2
5948echo "$as_me:$LINENO: checking for $ac_word" >&5
5949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5950if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5951  echo $ECHO_N "(cached) $ECHO_C" >&6
5952else
5953  if test -n "$ac_ct_RANLIB"; then
5954  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5955else
5956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957for as_dir in $PATH
5958do
5959  IFS=$as_save_IFS
5960  test -z "$as_dir" && as_dir=.
5961  for ac_exec_ext in '' $ac_executable_extensions; do
5962  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5963    ac_cv_prog_ac_ct_RANLIB="ranlib"
5964    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5965    break 2
5966  fi
5967done
5968done
5969
5970  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5971fi
5972fi
5973ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5974if test -n "$ac_ct_RANLIB"; then
5975  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5976echo "${ECHO_T}$ac_ct_RANLIB" >&6
5977else
5978  echo "$as_me:$LINENO: result: no" >&5
5979echo "${ECHO_T}no" >&6
5980fi
5981
5982  RANLIB=$ac_ct_RANLIB
5983else
5984  RANLIB="$ac_cv_prog_RANLIB"
5985fi
5986
5987if test -n "$ac_tool_prefix"; then
5988  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5989set dummy ${ac_tool_prefix}strip; ac_word=$2
5990echo "$as_me:$LINENO: checking for $ac_word" >&5
5991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5992if test "${ac_cv_prog_STRIP+set}" = set; then
5993  echo $ECHO_N "(cached) $ECHO_C" >&6
5994else
5995  if test -n "$STRIP"; then
5996  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5997else
5998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999for as_dir in $PATH
6000do
6001  IFS=$as_save_IFS
6002  test -z "$as_dir" && as_dir=.
6003  for ac_exec_ext in '' $ac_executable_extensions; do
6004  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6005    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6006    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007    break 2
6008  fi
6009done
6010done
6011
6012fi
6013fi
6014STRIP=$ac_cv_prog_STRIP
6015if test -n "$STRIP"; then
6016  echo "$as_me:$LINENO: result: $STRIP" >&5
6017echo "${ECHO_T}$STRIP" >&6
6018else
6019  echo "$as_me:$LINENO: result: no" >&5
6020echo "${ECHO_T}no" >&6
6021fi
6022
6023fi
6024if test -z "$ac_cv_prog_STRIP"; then
6025  ac_ct_STRIP=$STRIP
6026  # Extract the first word of "strip", so it can be a program name with args.
6027set dummy strip; ac_word=$2
6028echo "$as_me:$LINENO: checking for $ac_word" >&5
6029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6030if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6031  echo $ECHO_N "(cached) $ECHO_C" >&6
6032else
6033  if test -n "$ac_ct_STRIP"; then
6034  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6035else
6036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037for as_dir in $PATH
6038do
6039  IFS=$as_save_IFS
6040  test -z "$as_dir" && as_dir=.
6041  for ac_exec_ext in '' $ac_executable_extensions; do
6042  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6043    ac_cv_prog_ac_ct_STRIP="strip"
6044    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6045    break 2
6046  fi
6047done
6048done
6049
6050  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6051fi
6052fi
6053ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6054if test -n "$ac_ct_STRIP"; then
6055  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6056echo "${ECHO_T}$ac_ct_STRIP" >&6
6057else
6058  echo "$as_me:$LINENO: result: no" >&5
6059echo "${ECHO_T}no" >&6
6060fi
6061
6062  STRIP=$ac_ct_STRIP
6063else
6064  STRIP="$ac_cv_prog_STRIP"
6065fi
6066
6067
6068old_CC="$CC"
6069old_CFLAGS="$CFLAGS"
6070
6071# Set sane defaults for various variables
6072test -z "$AR" && AR=ar
6073test -z "$AR_FLAGS" && AR_FLAGS=cru
6074test -z "$AS" && AS=as
6075test -z "$CC" && CC=cc
6076test -z "$LTCC" && LTCC=$CC
6077test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6078test -z "$DLLTOOL" && DLLTOOL=dlltool
6079test -z "$LD" && LD=ld
6080test -z "$LN_S" && LN_S="ln -s"
6081test -z "$MAGIC_CMD" && MAGIC_CMD=file
6082test -z "$NM" && NM=nm
6083test -z "$SED" && SED=sed
6084test -z "$OBJDUMP" && OBJDUMP=objdump
6085test -z "$RANLIB" && RANLIB=:
6086test -z "$STRIP" && STRIP=:
6087test -z "$ac_objext" && ac_objext=o
6088
6089# Determine commands to create old-style static archives.
6090old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6091old_postinstall_cmds='chmod 644 $oldlib'
6092old_postuninstall_cmds=
6093
6094if test -n "$RANLIB"; then
6095  case $host_os in
6096  openbsd*)
6097    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6098    ;;
6099  *)
6100    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6101    ;;
6102  esac
6103  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6104fi
6105
6106for cc_temp in $compiler""; do
6107  case $cc_temp in
6108    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6109    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6110    \-*) ;;
6111    *) break;;
6112  esac
6113done
6114cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6115
6116
6117# Only perform the check for file, if the check method requires it
6118case $deplibs_check_method in
6119file_magic*)
6120  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6121    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6122echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6123if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6124  echo $ECHO_N "(cached) $ECHO_C" >&6
6125else
6126  case $MAGIC_CMD in
6127[\\/*] |  ?:[\\/]*)
6128  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6129  ;;
6130*)
6131  lt_save_MAGIC_CMD="$MAGIC_CMD"
6132  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6133  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6134  for ac_dir in $ac_dummy; do
6135    IFS="$lt_save_ifs"
6136    test -z "$ac_dir" && ac_dir=.
6137    if test -f $ac_dir/${ac_tool_prefix}file; then
6138      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6139      if test -n "$file_magic_test_file"; then
6140	case $deplibs_check_method in
6141	"file_magic "*)
6142	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6143	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6144	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6145	    $EGREP "$file_magic_regex" > /dev/null; then
6146	    :
6147	  else
6148	    cat <<EOF 1>&2
6149
6150*** Warning: the command libtool uses to detect shared libraries,
6151*** $file_magic_cmd, produces output that libtool cannot recognize.
6152*** The result is that libtool may fail to recognize shared libraries
6153*** as such.  This will affect the creation of libtool libraries that
6154*** depend on shared libraries, but programs linked with such libtool
6155*** libraries will work regardless of this problem.  Nevertheless, you
6156*** may want to report the problem to your system manager and/or to
6157*** bug-libtool@gnu.org
6158
6159EOF
6160	  fi ;;
6161	esac
6162      fi
6163      break
6164    fi
6165  done
6166  IFS="$lt_save_ifs"
6167  MAGIC_CMD="$lt_save_MAGIC_CMD"
6168  ;;
6169esac
6170fi
6171
6172MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6173if test -n "$MAGIC_CMD"; then
6174  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6175echo "${ECHO_T}$MAGIC_CMD" >&6
6176else
6177  echo "$as_me:$LINENO: result: no" >&5
6178echo "${ECHO_T}no" >&6
6179fi
6180
6181if test -z "$lt_cv_path_MAGIC_CMD"; then
6182  if test -n "$ac_tool_prefix"; then
6183    echo "$as_me:$LINENO: checking for file" >&5
6184echo $ECHO_N "checking for file... $ECHO_C" >&6
6185if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6186  echo $ECHO_N "(cached) $ECHO_C" >&6
6187else
6188  case $MAGIC_CMD in
6189[\\/*] |  ?:[\\/]*)
6190  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6191  ;;
6192*)
6193  lt_save_MAGIC_CMD="$MAGIC_CMD"
6194  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6195  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6196  for ac_dir in $ac_dummy; do
6197    IFS="$lt_save_ifs"
6198    test -z "$ac_dir" && ac_dir=.
6199    if test -f $ac_dir/file; then
6200      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6201      if test -n "$file_magic_test_file"; then
6202	case $deplibs_check_method in
6203	"file_magic "*)
6204	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6205	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6206	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6207	    $EGREP "$file_magic_regex" > /dev/null; then
6208	    :
6209	  else
6210	    cat <<EOF 1>&2
6211
6212*** Warning: the command libtool uses to detect shared libraries,
6213*** $file_magic_cmd, produces output that libtool cannot recognize.
6214*** The result is that libtool may fail to recognize shared libraries
6215*** as such.  This will affect the creation of libtool libraries that
6216*** depend on shared libraries, but programs linked with such libtool
6217*** libraries will work regardless of this problem.  Nevertheless, you
6218*** may want to report the problem to your system manager and/or to
6219*** bug-libtool@gnu.org
6220
6221EOF
6222	  fi ;;
6223	esac
6224      fi
6225      break
6226    fi
6227  done
6228  IFS="$lt_save_ifs"
6229  MAGIC_CMD="$lt_save_MAGIC_CMD"
6230  ;;
6231esac
6232fi
6233
6234MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6235if test -n "$MAGIC_CMD"; then
6236  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6237echo "${ECHO_T}$MAGIC_CMD" >&6
6238else
6239  echo "$as_me:$LINENO: result: no" >&5
6240echo "${ECHO_T}no" >&6
6241fi
6242
6243  else
6244    MAGIC_CMD=:
6245  fi
6246fi
6247
6248  fi
6249  ;;
6250esac
6251
6252enable_dlopen=no
6253enable_win32_dll=no
6254
6255# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6256if test "${enable_libtool_lock+set}" = set; then
6257  enableval="$enable_libtool_lock"
6258
6259fi;
6260test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6261
6262
6263# Check whether --with-pic or --without-pic was given.
6264if test "${with_pic+set}" = set; then
6265  withval="$with_pic"
6266  pic_mode="$withval"
6267else
6268  pic_mode=default
6269fi;
6270test -z "$pic_mode" && pic_mode=default
6271
6272# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
6273#
6274# Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
6275#        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
6276#        calls AC_LIBTOOL_CONFIG and creates libtool.
6277#
6278echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
6279echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6
6280if test "x$ltmain" = "x" ; then
6281  echo "$as_me:$LINENO: result: no" >&5
6282echo "${ECHO_T}no" >&6
6283  { { echo "$as_me:$LINENO: error:
6284
6285*** [Gentoo] sanity check failed! ***
6286*** \$ltmain is not defined, please check the patch for consistency! ***
6287" >&5
6288echo "$as_me: error:
6289
6290*** [Gentoo] sanity check failed! ***
6291*** \$ltmain is not defined, please check the patch for consistency! ***
6292" >&2;}
6293   { (exit 1); exit 1; }; }
6294fi
6295gentoo_lt_version="1.5.22"
6296gentoo_ltmain_version=`sed -n '/^[ 	]*VERSION=/{s/^[ 	]*VERSION=//;p;q;}' "$ltmain"`
6297if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
6298  echo "$as_me:$LINENO: result: no" >&5
6299echo "${ECHO_T}no" >&6
6300  { { echo "$as_me:$LINENO: error:
6301
6302*** [Gentoo] sanity check failed! ***
6303*** libtool.m4 and ltmain.sh have a version mismatch! ***
6304*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6305
6306Please run:
6307
6308  libtoolize --copy --force
6309
6310if appropriate, please contact the maintainer of this
6311package (or your distribution) for help.
6312" >&5
6313echo "$as_me: error:
6314
6315*** [Gentoo] sanity check failed! ***
6316*** libtool.m4 and ltmain.sh have a version mismatch! ***
6317*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6318
6319Please run:
6320
6321  libtoolize --copy --force
6322
6323if appropriate, please contact the maintainer of this
6324package (or your distribution) for help.
6325" >&2;}
6326   { (exit 1); exit 1; }; }
6327else
6328  echo "$as_me:$LINENO: result: yes" >&5
6329echo "${ECHO_T}yes" >&6
6330fi
6331
6332
6333# Use C for the default configuration in the libtool script
6334tagname=
6335lt_save_CC="$CC"
6336ac_ext=c
6337ac_cpp='$CPP $CPPFLAGS'
6338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6340ac_compiler_gnu=$ac_cv_c_compiler_gnu
6341
6342
6343# Source file extension for C test sources.
6344ac_ext=c
6345
6346# Object file extension for compiled C test sources.
6347objext=o
6348objext=$objext
6349
6350# Code to be used in simple compile tests
6351lt_simple_compile_test_code="int some_variable = 0;\n"
6352
6353# Code to be used in simple link tests
6354lt_simple_link_test_code='int main(){return(0);}\n'
6355
6356
6357# If no C compiler was specified, use CC.
6358LTCC=${LTCC-"$CC"}
6359
6360# If no C compiler flags were specified, use CFLAGS.
6361LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6362
6363# Allow CC to be a program name with arguments.
6364compiler=$CC
6365
6366
6367# save warnings/boilerplate of simple test code
6368ac_outfile=conftest.$ac_objext
6369printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6370eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6371_lt_compiler_boilerplate=`cat conftest.err`
6372$rm conftest*
6373
6374ac_outfile=conftest.$ac_objext
6375printf "$lt_simple_link_test_code" >conftest.$ac_ext
6376eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6377_lt_linker_boilerplate=`cat conftest.err`
6378$rm conftest*
6379
6380
6381
6382lt_prog_compiler_no_builtin_flag=
6383
6384if test "$GCC" = yes; then
6385  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6386
6387
6388echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6389echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6390if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6391  echo $ECHO_N "(cached) $ECHO_C" >&6
6392else
6393  lt_cv_prog_compiler_rtti_exceptions=no
6394  ac_outfile=conftest.$ac_objext
6395   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6396   lt_compiler_flag="-fno-rtti -fno-exceptions"
6397   # Insert the option either (1) after the last *FLAGS variable, or
6398   # (2) before a word containing "conftest.", or (3) at the end.
6399   # Note that $ac_compile itself does not contain backslashes and begins
6400   # with a dollar sign (not a hyphen), so the echo should work correctly.
6401   # The option is referenced via a variable to avoid confusing sed.
6402   lt_compile=`echo "$ac_compile" | $SED \
6403   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6404   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6405   -e 's:$: $lt_compiler_flag:'`
6406   (eval echo "\"\$as_me:6406: $lt_compile\"" >&5)
6407   (eval "$lt_compile" 2>conftest.err)
6408   ac_status=$?
6409   cat conftest.err >&5
6410   echo "$as_me:6410: \$? = $ac_status" >&5
6411   if (exit $ac_status) && test -s "$ac_outfile"; then
6412     # The compiler can only warn and ignore the option if not recognized
6413     # So say no if there are warnings other than the usual output.
6414     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6415     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6416     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6417       lt_cv_prog_compiler_rtti_exceptions=yes
6418     fi
6419   fi
6420   $rm conftest*
6421
6422fi
6423echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6424echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6425
6426if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6427    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6428else
6429    :
6430fi
6431
6432fi
6433
6434lt_prog_compiler_wl=
6435lt_prog_compiler_pic=
6436lt_prog_compiler_static=
6437
6438echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6439echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6440
6441  if test "$GCC" = yes; then
6442    lt_prog_compiler_wl='-Wl,'
6443    lt_prog_compiler_static='-static'
6444
6445    case $host_os in
6446      aix*)
6447      # All AIX code is PIC.
6448      if test "$host_cpu" = ia64; then
6449	# AIX 5 now supports IA64 processor
6450	lt_prog_compiler_static='-Bstatic'
6451      fi
6452      ;;
6453
6454    amigaos*)
6455      # FIXME: we need at least 68020 code to build shared libraries, but
6456      # adding the `-m68020' flag to GCC prevents building anything better,
6457      # like `-m68040'.
6458      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6459      ;;
6460
6461    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6462      # PIC is the default for these OSes.
6463      ;;
6464
6465    mingw* | pw32* | os2*)
6466      # This hack is so that the source file can tell whether it is being
6467      # built for inclusion in a dll (and should export symbols for example).
6468      lt_prog_compiler_pic='-DDLL_EXPORT'
6469      ;;
6470
6471    darwin* | rhapsody*)
6472      # PIC is the default on this platform
6473      # Common symbols not allowed in MH_DYLIB files
6474      lt_prog_compiler_pic='-fno-common'
6475      ;;
6476
6477    interix3*)
6478      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6479      # Instead, we relocate shared libraries at runtime.
6480      ;;
6481
6482    msdosdjgpp*)
6483      # Just because we use GCC doesn't mean we suddenly get shared libraries
6484      # on systems that don't support them.
6485      lt_prog_compiler_can_build_shared=no
6486      enable_shared=no
6487      ;;
6488
6489    sysv4*MP*)
6490      if test -d /usr/nec; then
6491	lt_prog_compiler_pic=-Kconform_pic
6492      fi
6493      ;;
6494
6495    hpux*)
6496      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6497      # not for PA HP-UX.
6498      case $host_cpu in
6499      hppa*64*|ia64*)
6500	# +Z the default
6501	;;
6502      *)
6503	lt_prog_compiler_pic='-fPIC'
6504	;;
6505      esac
6506      ;;
6507
6508    *)
6509      lt_prog_compiler_pic='-fPIC'
6510      ;;
6511    esac
6512  else
6513    # PORTME Check for flag to pass linker flags through the system compiler.
6514    case $host_os in
6515    aix*)
6516      lt_prog_compiler_wl='-Wl,'
6517      if test "$host_cpu" = ia64; then
6518	# AIX 5 now supports IA64 processor
6519	lt_prog_compiler_static='-Bstatic'
6520      else
6521	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6522      fi
6523      ;;
6524      darwin*)
6525        # PIC is the default on this platform
6526        # Common symbols not allowed in MH_DYLIB files
6527       case $cc_basename in
6528         xlc*)
6529         lt_prog_compiler_pic='-qnocommon'
6530         lt_prog_compiler_wl='-Wl,'
6531         ;;
6532       esac
6533       ;;
6534
6535    mingw* | pw32* | os2*)
6536      # This hack is so that the source file can tell whether it is being
6537      # built for inclusion in a dll (and should export symbols for example).
6538      lt_prog_compiler_pic='-DDLL_EXPORT'
6539      ;;
6540
6541    hpux9* | hpux10* | hpux11*)
6542      lt_prog_compiler_wl='-Wl,'
6543      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6544      # not for PA HP-UX.
6545      case $host_cpu in
6546      hppa*64*|ia64*)
6547	# +Z the default
6548	;;
6549      *)
6550	lt_prog_compiler_pic='+Z'
6551	;;
6552      esac
6553      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6554      lt_prog_compiler_static='${wl}-a ${wl}archive'
6555      ;;
6556
6557    irix5* | irix6* | nonstopux*)
6558      lt_prog_compiler_wl='-Wl,'
6559      # PIC (with -KPIC) is the default.
6560      lt_prog_compiler_static='-non_shared'
6561      ;;
6562
6563    newsos6)
6564      lt_prog_compiler_pic='-KPIC'
6565      lt_prog_compiler_static='-Bstatic'
6566      ;;
6567
6568    linux*)
6569      case $cc_basename in
6570      icc* | ecc*)
6571	lt_prog_compiler_wl='-Wl,'
6572	lt_prog_compiler_pic='-KPIC'
6573	lt_prog_compiler_static='-static'
6574        ;;
6575      pgcc* | pgf77* | pgf90* | pgf95*)
6576        # Portland Group compilers (*not* the Pentium gcc compiler,
6577	# which looks to be a dead project)
6578	lt_prog_compiler_wl='-Wl,'
6579	lt_prog_compiler_pic='-fpic'
6580	lt_prog_compiler_static='-Bstatic'
6581        ;;
6582      ccc*)
6583        lt_prog_compiler_wl='-Wl,'
6584        # All Alpha code is PIC.
6585        lt_prog_compiler_static='-non_shared'
6586        ;;
6587      esac
6588      ;;
6589
6590    osf3* | osf4* | osf5*)
6591      lt_prog_compiler_wl='-Wl,'
6592      # All OSF/1 code is PIC.
6593      lt_prog_compiler_static='-non_shared'
6594      ;;
6595
6596    solaris*)
6597      lt_prog_compiler_pic='-KPIC'
6598      lt_prog_compiler_static='-Bstatic'
6599      case $cc_basename in
6600      f77* | f90* | f95*)
6601	lt_prog_compiler_wl='-Qoption ld ';;
6602      *)
6603	lt_prog_compiler_wl='-Wl,';;
6604      esac
6605      ;;
6606
6607    sunos4*)
6608      lt_prog_compiler_wl='-Qoption ld '
6609      lt_prog_compiler_pic='-PIC'
6610      lt_prog_compiler_static='-Bstatic'
6611      ;;
6612
6613    sysv4 | sysv4.2uw2* | sysv4.3*)
6614      lt_prog_compiler_wl='-Wl,'
6615      lt_prog_compiler_pic='-KPIC'
6616      lt_prog_compiler_static='-Bstatic'
6617      ;;
6618
6619    sysv4*MP*)
6620      if test -d /usr/nec ;then
6621	lt_prog_compiler_pic='-Kconform_pic'
6622	lt_prog_compiler_static='-Bstatic'
6623      fi
6624      ;;
6625
6626    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6627      lt_prog_compiler_wl='-Wl,'
6628      lt_prog_compiler_pic='-KPIC'
6629      lt_prog_compiler_static='-Bstatic'
6630      ;;
6631
6632    unicos*)
6633      lt_prog_compiler_wl='-Wl,'
6634      lt_prog_compiler_can_build_shared=no
6635      ;;
6636
6637    uts4*)
6638      lt_prog_compiler_pic='-pic'
6639      lt_prog_compiler_static='-Bstatic'
6640      ;;
6641
6642    *)
6643      lt_prog_compiler_can_build_shared=no
6644      ;;
6645    esac
6646  fi
6647
6648echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6649echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6650
6651#
6652# Check to make sure the PIC flag actually works.
6653#
6654if test -n "$lt_prog_compiler_pic"; then
6655
6656echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6657echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6658if test "${lt_prog_compiler_pic_works+set}" = set; then
6659  echo $ECHO_N "(cached) $ECHO_C" >&6
6660else
6661  lt_prog_compiler_pic_works=no
6662  ac_outfile=conftest.$ac_objext
6663   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6664   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6665   # Insert the option either (1) after the last *FLAGS variable, or
6666   # (2) before a word containing "conftest.", or (3) at the end.
6667   # Note that $ac_compile itself does not contain backslashes and begins
6668   # with a dollar sign (not a hyphen), so the echo should work correctly.
6669   # The option is referenced via a variable to avoid confusing sed.
6670   lt_compile=`echo "$ac_compile" | $SED \
6671   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6672   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6673   -e 's:$: $lt_compiler_flag:'`
6674   (eval echo "\"\$as_me:6674: $lt_compile\"" >&5)
6675   (eval "$lt_compile" 2>conftest.err)
6676   ac_status=$?
6677   cat conftest.err >&5
6678   echo "$as_me:6678: \$? = $ac_status" >&5
6679   if (exit $ac_status) && test -s "$ac_outfile"; then
6680     # The compiler can only warn and ignore the option if not recognized
6681     # So say no if there are warnings other than the usual output.
6682     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6683     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6684     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6685       lt_prog_compiler_pic_works=yes
6686     fi
6687   fi
6688   $rm conftest*
6689
6690fi
6691echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6692echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6693
6694if test x"$lt_prog_compiler_pic_works" = xyes; then
6695    case $lt_prog_compiler_pic in
6696     "" | " "*) ;;
6697     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6698     esac
6699else
6700    lt_prog_compiler_pic=
6701     lt_prog_compiler_can_build_shared=no
6702fi
6703
6704fi
6705case $host_os in
6706  # For platforms which do not support PIC, -DPIC is meaningless:
6707  *djgpp*)
6708    lt_prog_compiler_pic=
6709    ;;
6710  *)
6711    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6712    ;;
6713esac
6714
6715#
6716# Check to make sure the static flag actually works.
6717#
6718wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6719echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6720echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6721if test "${lt_prog_compiler_static_works+set}" = set; then
6722  echo $ECHO_N "(cached) $ECHO_C" >&6
6723else
6724  lt_prog_compiler_static_works=no
6725   save_LDFLAGS="$LDFLAGS"
6726   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6727   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6728   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6729     # The linker can only warn and ignore the option if not recognized
6730     # So say no if there are warnings
6731     if test -s conftest.err; then
6732       # Append any errors to the config.log.
6733       cat conftest.err 1>&5
6734       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6735       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6736       if diff conftest.exp conftest.er2 >/dev/null; then
6737         lt_prog_compiler_static_works=yes
6738       fi
6739     else
6740       lt_prog_compiler_static_works=yes
6741     fi
6742   fi
6743   $rm conftest*
6744   LDFLAGS="$save_LDFLAGS"
6745
6746fi
6747echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6748echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6749
6750if test x"$lt_prog_compiler_static_works" = xyes; then
6751    :
6752else
6753    lt_prog_compiler_static=
6754fi
6755
6756
6757echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6758echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6759if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6760  echo $ECHO_N "(cached) $ECHO_C" >&6
6761else
6762  lt_cv_prog_compiler_c_o=no
6763   $rm -r conftest 2>/dev/null
6764   mkdir conftest
6765   cd conftest
6766   mkdir out
6767   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6768
6769   lt_compiler_flag="-o out/conftest2.$ac_objext"
6770   # Insert the option either (1) after the last *FLAGS variable, or
6771   # (2) before a word containing "conftest.", or (3) at the end.
6772   # Note that $ac_compile itself does not contain backslashes and begins
6773   # with a dollar sign (not a hyphen), so the echo should work correctly.
6774   lt_compile=`echo "$ac_compile" | $SED \
6775   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6776   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6777   -e 's:$: $lt_compiler_flag:'`
6778   (eval echo "\"\$as_me:6778: $lt_compile\"" >&5)
6779   (eval "$lt_compile" 2>out/conftest.err)
6780   ac_status=$?
6781   cat out/conftest.err >&5
6782   echo "$as_me:6782: \$? = $ac_status" >&5
6783   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6784   then
6785     # The compiler can only warn and ignore the option if not recognized
6786     # So say no if there are warnings
6787     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6788     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6789     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6790       lt_cv_prog_compiler_c_o=yes
6791     fi
6792   fi
6793   chmod u+w . 2>&5
6794   $rm conftest*
6795   # SGI C++ compiler will create directory out/ii_files/ for
6796   # template instantiation
6797   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6798   $rm out/* && rmdir out
6799   cd ..
6800   rmdir conftest
6801   $rm conftest*
6802
6803fi
6804echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6805echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6806
6807
6808hard_links="nottested"
6809if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6810  # do not overwrite the value of need_locks provided by the user
6811  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6812echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6813  hard_links=yes
6814  $rm conftest*
6815  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6816  touch conftest.a
6817  ln conftest.a conftest.b 2>&5 || hard_links=no
6818  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6819  echo "$as_me:$LINENO: result: $hard_links" >&5
6820echo "${ECHO_T}$hard_links" >&6
6821  if test "$hard_links" = no; then
6822    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6823echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6824    need_locks=warn
6825  fi
6826else
6827  need_locks=no
6828fi
6829
6830echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6831echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6832
6833  runpath_var=
6834  allow_undefined_flag=
6835  enable_shared_with_static_runtimes=no
6836  archive_cmds=
6837  archive_expsym_cmds=
6838  old_archive_From_new_cmds=
6839  old_archive_from_expsyms_cmds=
6840  export_dynamic_flag_spec=
6841  whole_archive_flag_spec=
6842  thread_safe_flag_spec=
6843  hardcode_libdir_flag_spec=
6844  hardcode_libdir_flag_spec_ld=
6845  hardcode_libdir_separator=
6846  hardcode_direct=no
6847  hardcode_minus_L=no
6848  hardcode_shlibpath_var=unsupported
6849  link_all_deplibs=unknown
6850  hardcode_automatic=no
6851  module_cmds=
6852  module_expsym_cmds=
6853  always_export_symbols=no
6854  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6855  # include_expsyms should be a list of space-separated symbols to be *always*
6856  # included in the symbol list
6857  include_expsyms=
6858  # exclude_expsyms can be an extended regexp of symbols to exclude
6859  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6860  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6861  # as well as any symbol that contains `d'.
6862  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6863  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6864  # platforms (ab)use it in PIC code, but their linkers get confused if
6865  # the symbol is explicitly referenced.  Since portable code cannot
6866  # rely on this symbol name, it's probably fine to never include it in
6867  # preloaded symbol tables.
6868  extract_expsyms_cmds=
6869  # Just being paranoid about ensuring that cc_basename is set.
6870  for cc_temp in $compiler""; do
6871  case $cc_temp in
6872    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6873    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6874    \-*) ;;
6875    *) break;;
6876  esac
6877done
6878cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6879
6880  case $host_os in
6881  cygwin* | mingw* | pw32*)
6882    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6883    # When not using gcc, we currently assume that we are using
6884    # Microsoft Visual C++.
6885    if test "$GCC" != yes; then
6886      with_gnu_ld=no
6887    fi
6888    ;;
6889  interix*)
6890    # we just hope/assume this is gcc and not c89 (= MSVC++)
6891    with_gnu_ld=yes
6892    ;;
6893  openbsd*)
6894    with_gnu_ld=no
6895    ;;
6896  esac
6897
6898  ld_shlibs=yes
6899  if test "$with_gnu_ld" = yes; then
6900    # If archive_cmds runs LD, not CC, wlarc should be empty
6901    wlarc='${wl}'
6902
6903    # Set some defaults for GNU ld with shared library support. These
6904    # are reset later if shared libraries are not supported. Putting them
6905    # here allows them to be overridden if necessary.
6906    runpath_var=LD_RUN_PATH
6907    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6908    export_dynamic_flag_spec='${wl}--export-dynamic'
6909    # ancient GNU ld didn't support --whole-archive et. al.
6910    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6911	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6912      else
6913  	whole_archive_flag_spec=
6914    fi
6915    supports_anon_versioning=no
6916    case `$LD -v 2>/dev/null` in
6917      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6918      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6919      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6920      *\ 2.11.*) ;; # other 2.11 versions
6921      *) supports_anon_versioning=yes ;;
6922    esac
6923
6924    # See if GNU ld supports shared libraries.
6925    case $host_os in
6926    aix3* | aix4* | aix5*)
6927      # On AIX/PPC, the GNU linker is very broken
6928      if test "$host_cpu" != ia64; then
6929	ld_shlibs=no
6930	cat <<EOF 1>&2
6931
6932*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6933*** to be unable to reliably create shared libraries on AIX.
6934*** Therefore, libtool is disabling shared libraries support.  If you
6935*** really care for shared libraries, you may want to modify your PATH
6936*** so that a non-GNU linker is found, and then restart.
6937
6938EOF
6939      fi
6940      ;;
6941
6942    amigaos*)
6943      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)'
6944      hardcode_libdir_flag_spec='-L$libdir'
6945      hardcode_minus_L=yes
6946
6947      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6948      # that the semantics of dynamic libraries on AmigaOS, at least up
6949      # to version 4, is to share data among multiple programs linked
6950      # with the same dynamic library.  Since this doesn't match the
6951      # behavior of shared libraries on other platforms, we can't use
6952      # them.
6953      ld_shlibs=no
6954      ;;
6955
6956    beos*)
6957      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6958	allow_undefined_flag=unsupported
6959	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6960	# support --undefined.  This deserves some investigation.  FIXME
6961	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6962      else
6963	ld_shlibs=no
6964      fi
6965      ;;
6966
6967    cygwin* | mingw* | pw32*)
6968      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6969      # as there is no search path for DLLs.
6970      hardcode_libdir_flag_spec='-L$libdir'
6971      allow_undefined_flag=unsupported
6972      always_export_symbols=no
6973      enable_shared_with_static_runtimes=yes
6974      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6975
6976      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6977        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6978	# If the export-symbols file already is a .def file (1st line
6979	# is EXPORTS), use it as is; otherwise, prepend...
6980	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6981	  cp $export_symbols $output_objdir/$soname.def;
6982	else
6983	  echo EXPORTS > $output_objdir/$soname.def;
6984	  cat $export_symbols >> $output_objdir/$soname.def;
6985	fi~
6986	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6987      else
6988	ld_shlibs=no
6989      fi
6990      ;;
6991
6992    interix3*)
6993      hardcode_direct=no
6994      hardcode_shlibpath_var=no
6995      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6996      export_dynamic_flag_spec='${wl}-E'
6997      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6998      # Instead, shared libraries are loaded at an image base (0x10000000 by
6999      # default) and relocated if they conflict, which is a slow very memory
7000      # consuming and fragmenting process.  To avoid this, we pick a random,
7001      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7002      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7003      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7004      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'
7005      ;;
7006
7007    linux*)
7008      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7009	tmp_addflag=
7010	case $cc_basename,$host_cpu in
7011	pgcc*)				# Portland Group C compiler
7012	  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'
7013	  tmp_addflag=' $pic_flag'
7014	  ;;
7015	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7016	  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'
7017	  tmp_addflag=' $pic_flag -Mnomain' ;;
7018	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7019	  tmp_addflag=' -i_dynamic' ;;
7020	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7021	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7022	ifc* | ifort*)			# Intel Fortran compiler
7023	  tmp_addflag=' -nofor_main' ;;
7024	esac
7025	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7026
7027	if test $supports_anon_versioning = yes; then
7028	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7029  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7030  $echo "local: *; };" >> $output_objdir/$libname.ver~
7031	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7032	fi
7033      else
7034	ld_shlibs=no
7035      fi
7036      ;;
7037
7038    netbsd*)
7039      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7040	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7041	wlarc=
7042      else
7043	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7044	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7045      fi
7046      ;;
7047
7048    solaris*)
7049      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7050	ld_shlibs=no
7051	cat <<EOF 1>&2
7052
7053*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7054*** create shared libraries on Solaris systems.  Therefore, libtool
7055*** is disabling shared libraries support.  We urge you to upgrade GNU
7056*** binutils to release 2.9.1 or newer.  Another option is to modify
7057*** your PATH or compiler configuration so that the native linker is
7058*** used, and then restart.
7059
7060EOF
7061      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7062	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7063	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7064      else
7065	ld_shlibs=no
7066      fi
7067      ;;
7068
7069    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7070      case `$LD -v 2>&1` in
7071        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7072	ld_shlibs=no
7073	cat <<_LT_EOF 1>&2
7074
7075*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7076*** reliably create shared libraries on SCO systems.  Therefore, libtool
7077*** is disabling shared libraries support.  We urge you to upgrade GNU
7078*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7079*** your PATH or compiler configuration so that the native linker is
7080*** used, and then restart.
7081
7082_LT_EOF
7083	;;
7084	*)
7085	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7086	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7087	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7088	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7089	  else
7090	    ld_shlibs=no
7091	  fi
7092	;;
7093      esac
7094      ;;
7095
7096    sunos4*)
7097      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7098      wlarc=
7099      hardcode_direct=yes
7100      hardcode_shlibpath_var=no
7101      ;;
7102
7103    *)
7104      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7105	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7106	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7107      else
7108	ld_shlibs=no
7109      fi
7110      ;;
7111    esac
7112
7113    if test "$ld_shlibs" = no; then
7114      runpath_var=
7115      hardcode_libdir_flag_spec=
7116      export_dynamic_flag_spec=
7117      whole_archive_flag_spec=
7118    fi
7119  else
7120    # PORTME fill in a description of your system's linker (not GNU ld)
7121    case $host_os in
7122    aix3*)
7123      allow_undefined_flag=unsupported
7124      always_export_symbols=yes
7125      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'
7126      # Note: this linker hardcodes the directories in LIBPATH if there
7127      # are no directories specified by -L.
7128      hardcode_minus_L=yes
7129      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7130	# Neither direct hardcoding nor static linking is supported with a
7131	# broken collect2.
7132	hardcode_direct=unsupported
7133      fi
7134      ;;
7135
7136    aix4* | aix5*)
7137      if test "$host_cpu" = ia64; then
7138	# On IA64, the linker does run time linking by default, so we don't
7139	# have to do anything special.
7140	aix_use_runtimelinking=no
7141	exp_sym_flag='-Bexport'
7142	no_entry_flag=""
7143      else
7144	# If we're using GNU nm, then we don't want the "-C" option.
7145	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7146	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7147	  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'
7148	else
7149	  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'
7150	fi
7151	aix_use_runtimelinking=no
7152
7153	# Test if we are trying to use run time linking or normal
7154	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7155	# need to do runtime linking.
7156	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7157	  for ld_flag in $LDFLAGS; do
7158  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7159  	    aix_use_runtimelinking=yes
7160  	    break
7161  	  fi
7162	  done
7163	  ;;
7164	esac
7165
7166	exp_sym_flag='-bexport'
7167	no_entry_flag='-bnoentry'
7168      fi
7169
7170      # When large executables or shared objects are built, AIX ld can
7171      # have problems creating the table of contents.  If linking a library
7172      # or program results in "error TOC overflow" add -mminimal-toc to
7173      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7174      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7175
7176      archive_cmds=''
7177      hardcode_direct=yes
7178      hardcode_libdir_separator=':'
7179      link_all_deplibs=yes
7180
7181      if test "$GCC" = yes; then
7182	case $host_os in aix4.[012]|aix4.[012].*)
7183	# We only want to do this on AIX 4.2 and lower, the check
7184	# below for broken collect2 doesn't work under 4.3+
7185	  collect2name=`${CC} -print-prog-name=collect2`
7186	  if test -f "$collect2name" && \
7187  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7188	  then
7189  	  # We have reworked collect2
7190  	  hardcode_direct=yes
7191	  else
7192  	  # We have old collect2
7193  	  hardcode_direct=unsupported
7194  	  # It fails to find uninstalled libraries when the uninstalled
7195  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7196  	  # to unsupported forces relinking
7197  	  hardcode_minus_L=yes
7198  	  hardcode_libdir_flag_spec='-L$libdir'
7199  	  hardcode_libdir_separator=
7200	  fi
7201	  ;;
7202	esac
7203	shared_flag='-shared'
7204	if test "$aix_use_runtimelinking" = yes; then
7205	  shared_flag="$shared_flag "'${wl}-G'
7206	fi
7207      else
7208	# not using gcc
7209	if test "$host_cpu" = ia64; then
7210  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7211  	# chokes on -Wl,-G. The following line is correct:
7212	  shared_flag='-G'
7213	else
7214	  if test "$aix_use_runtimelinking" = yes; then
7215	    shared_flag='${wl}-G'
7216	  else
7217	    shared_flag='${wl}-bM:SRE'
7218	  fi
7219	fi
7220      fi
7221
7222      # It seems that -bexpall does not export symbols beginning with
7223      # underscore (_), so it is better to generate a list of symbols to export.
7224      always_export_symbols=yes
7225      if test "$aix_use_runtimelinking" = yes; then
7226	# Warning - without using the other runtime loading flags (-brtl),
7227	# -berok will link without error, but may produce a broken library.
7228	allow_undefined_flag='-berok'
7229       # Determine the default libpath from the value encoded in an empty executable.
7230       cat >conftest.$ac_ext <<_ACEOF
7231/* confdefs.h.  */
7232_ACEOF
7233cat confdefs.h >>conftest.$ac_ext
7234cat >>conftest.$ac_ext <<_ACEOF
7235/* end confdefs.h.  */
7236
7237int
7238main ()
7239{
7240
7241  ;
7242  return 0;
7243}
7244_ACEOF
7245rm -f conftest.$ac_objext conftest$ac_exeext
7246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7247  (eval $ac_link) 2>conftest.er1
7248  ac_status=$?
7249  grep -v '^ *+' conftest.er1 >conftest.err
7250  rm -f conftest.er1
7251  cat conftest.err >&5
7252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253  (exit $ac_status); } &&
7254	 { ac_try='test -z "$ac_c_werror_flag"
7255			 || test ! -s conftest.err'
7256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257  (eval $ac_try) 2>&5
7258  ac_status=$?
7259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260  (exit $ac_status); }; } &&
7261	 { ac_try='test -s conftest$ac_exeext'
7262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263  (eval $ac_try) 2>&5
7264  ac_status=$?
7265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266  (exit $ac_status); }; }; then
7267
7268aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7269}'`
7270# Check for a 64-bit object if we didn't find anything.
7271if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7272}'`; fi
7273else
7274  echo "$as_me: failed program was:" >&5
7275sed 's/^/| /' conftest.$ac_ext >&5
7276
7277fi
7278rm -f conftest.err conftest.$ac_objext \
7279      conftest$ac_exeext conftest.$ac_ext
7280if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7281
7282       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7283	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"
7284       else
7285	if test "$host_cpu" = ia64; then
7286	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7287	  allow_undefined_flag="-z nodefs"
7288	  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"
7289	else
7290	 # Determine the default libpath from the value encoded in an empty executable.
7291	 cat >conftest.$ac_ext <<_ACEOF
7292/* confdefs.h.  */
7293_ACEOF
7294cat confdefs.h >>conftest.$ac_ext
7295cat >>conftest.$ac_ext <<_ACEOF
7296/* end confdefs.h.  */
7297
7298int
7299main ()
7300{
7301
7302  ;
7303  return 0;
7304}
7305_ACEOF
7306rm -f conftest.$ac_objext conftest$ac_exeext
7307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7308  (eval $ac_link) 2>conftest.er1
7309  ac_status=$?
7310  grep -v '^ *+' conftest.er1 >conftest.err
7311  rm -f conftest.er1
7312  cat conftest.err >&5
7313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314  (exit $ac_status); } &&
7315	 { ac_try='test -z "$ac_c_werror_flag"
7316			 || test ! -s conftest.err'
7317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318  (eval $ac_try) 2>&5
7319  ac_status=$?
7320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321  (exit $ac_status); }; } &&
7322	 { ac_try='test -s conftest$ac_exeext'
7323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324  (eval $ac_try) 2>&5
7325  ac_status=$?
7326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327  (exit $ac_status); }; }; then
7328
7329aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7330}'`
7331# Check for a 64-bit object if we didn't find anything.
7332if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7333}'`; fi
7334else
7335  echo "$as_me: failed program was:" >&5
7336sed 's/^/| /' conftest.$ac_ext >&5
7337
7338fi
7339rm -f conftest.err conftest.$ac_objext \
7340      conftest$ac_exeext conftest.$ac_ext
7341if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7342
7343	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7344	  # Warning - without using the other run time loading flags,
7345	  # -berok will link without error, but may produce a broken library.
7346	  no_undefined_flag=' ${wl}-bernotok'
7347	  allow_undefined_flag=' ${wl}-berok'
7348	  # Exported symbols can be pulled into shared objects from archives
7349	  whole_archive_flag_spec='$convenience'
7350	  archive_cmds_need_lc=yes
7351	  # This is similar to how AIX traditionally builds its shared libraries.
7352	  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'
7353	fi
7354      fi
7355      ;;
7356
7357    amigaos*)
7358      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)'
7359      hardcode_libdir_flag_spec='-L$libdir'
7360      hardcode_minus_L=yes
7361      # see comment about different semantics on the GNU ld section
7362      ld_shlibs=no
7363      ;;
7364
7365    bsdi[45]*)
7366      export_dynamic_flag_spec=-rdynamic
7367      ;;
7368
7369    cygwin* | mingw* | pw32*)
7370      # When not using gcc, we currently assume that we are using
7371      # Microsoft Visual C++.
7372      # hardcode_libdir_flag_spec is actually meaningless, as there is
7373      # no search path for DLLs.
7374      hardcode_libdir_flag_spec=' '
7375      allow_undefined_flag=unsupported
7376      # Tell ltmain to make .lib files, not .a files.
7377      libext=lib
7378      # Tell ltmain to make .dll files, not .so files.
7379      shrext_cmds=".dll"
7380      # FIXME: Setting linknames here is a bad hack.
7381      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7382      # The linker will automatically build a .lib file if we build a DLL.
7383      old_archive_From_new_cmds='true'
7384      # FIXME: Should let the user specify the lib program.
7385      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7386      fix_srcfile_path='`cygpath -w "$srcfile"`'
7387      enable_shared_with_static_runtimes=yes
7388      ;;
7389
7390    darwin* | rhapsody*)
7391      case $host_os in
7392        rhapsody* | darwin1.[012])
7393         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7394         ;;
7395       *) # Darwin 1.3 on
7396         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7397           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7398         else
7399           case ${MACOSX_DEPLOYMENT_TARGET} in
7400             10.[012])
7401               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7402               ;;
7403             10.*)
7404               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7405               ;;
7406           esac
7407         fi
7408         ;;
7409      esac
7410      archive_cmds_need_lc=no
7411      hardcode_direct=no
7412      hardcode_automatic=yes
7413      hardcode_shlibpath_var=unsupported
7414      whole_archive_flag_spec=''
7415      link_all_deplibs=yes
7416    if test "$GCC" = yes ; then
7417    	output_verbose_link_cmd='echo'
7418        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7419      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7420      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7421      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7422      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}'
7423    else
7424      case $cc_basename in
7425        xlc*)
7426         output_verbose_link_cmd='echo'
7427         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7428         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7429          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7430         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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7431          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}'
7432          ;;
7433       *)
7434         ld_shlibs=no
7435          ;;
7436      esac
7437    fi
7438      ;;
7439
7440    dgux*)
7441      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7442      hardcode_libdir_flag_spec='-L$libdir'
7443      hardcode_shlibpath_var=no
7444      ;;
7445
7446    freebsd1*)
7447      ld_shlibs=no
7448      ;;
7449
7450    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7451    # support.  Future versions do this automatically, but an explicit c++rt0.o
7452    # does not break anything, and helps significantly (at the cost of a little
7453    # extra space).
7454    freebsd2.2*)
7455      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7456      hardcode_libdir_flag_spec='-R$libdir'
7457      hardcode_direct=yes
7458      hardcode_shlibpath_var=no
7459      ;;
7460
7461    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7462    freebsd2*)
7463      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7464      hardcode_direct=yes
7465      hardcode_minus_L=yes
7466      hardcode_shlibpath_var=no
7467      ;;
7468
7469    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7470    freebsd* | kfreebsd*-gnu | dragonfly*)
7471      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7472      hardcode_libdir_flag_spec='-R$libdir'
7473      hardcode_direct=yes
7474      hardcode_shlibpath_var=no
7475      ;;
7476
7477    hpux9*)
7478      if test "$GCC" = yes; then
7479	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'
7480      else
7481	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'
7482      fi
7483      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7484      hardcode_libdir_separator=:
7485      hardcode_direct=yes
7486
7487      # hardcode_minus_L: Not really in the search PATH,
7488      # but as the default location of the library.
7489      hardcode_minus_L=yes
7490      export_dynamic_flag_spec='${wl}-E'
7491      ;;
7492
7493    hpux10*)
7494      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7495	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7496      else
7497	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7498      fi
7499      if test "$with_gnu_ld" = no; then
7500	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7501	hardcode_libdir_separator=:
7502
7503	hardcode_direct=yes
7504	export_dynamic_flag_spec='${wl}-E'
7505
7506	# hardcode_minus_L: Not really in the search PATH,
7507	# but as the default location of the library.
7508	hardcode_minus_L=yes
7509      fi
7510      ;;
7511
7512    hpux11*)
7513      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7514	case $host_cpu in
7515	hppa*64*)
7516	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7517	  ;;
7518	ia64*)
7519	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7520	  ;;
7521	*)
7522	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7523	  ;;
7524	esac
7525      else
7526	case $host_cpu in
7527	hppa*64*)
7528	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7529	  ;;
7530	ia64*)
7531	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7532	  ;;
7533	*)
7534	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7535	  ;;
7536	esac
7537      fi
7538      if test "$with_gnu_ld" = no; then
7539	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7540	hardcode_libdir_separator=:
7541
7542	case $host_cpu in
7543	hppa*64*|ia64*)
7544	  hardcode_libdir_flag_spec_ld='+b $libdir'
7545	  hardcode_direct=no
7546	  hardcode_shlibpath_var=no
7547	  ;;
7548	*)
7549	  hardcode_direct=yes
7550	  export_dynamic_flag_spec='${wl}-E'
7551
7552	  # hardcode_minus_L: Not really in the search PATH,
7553	  # but as the default location of the library.
7554	  hardcode_minus_L=yes
7555	  ;;
7556	esac
7557      fi
7558      ;;
7559
7560    irix5* | irix6* | nonstopux*)
7561      if test "$GCC" = yes; then
7562	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'
7563      else
7564	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'
7565	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7566      fi
7567      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7568      hardcode_libdir_separator=:
7569      link_all_deplibs=yes
7570      ;;
7571
7572    netbsd*)
7573      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7574	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7575      else
7576	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7577      fi
7578      hardcode_libdir_flag_spec='-R$libdir'
7579      hardcode_direct=yes
7580      hardcode_shlibpath_var=no
7581      ;;
7582
7583    newsos6)
7584      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7585      hardcode_direct=yes
7586      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7587      hardcode_libdir_separator=:
7588      hardcode_shlibpath_var=no
7589      ;;
7590
7591    openbsd*)
7592      hardcode_direct=yes
7593      hardcode_shlibpath_var=no
7594      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7595	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7596	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7597	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7598	export_dynamic_flag_spec='${wl}-E'
7599      else
7600       case $host_os in
7601	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7602	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7603	   hardcode_libdir_flag_spec='-R$libdir'
7604	   ;;
7605	 *)
7606	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7607	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7608	   ;;
7609       esac
7610      fi
7611      ;;
7612
7613    os2*)
7614      hardcode_libdir_flag_spec='-L$libdir'
7615      hardcode_minus_L=yes
7616      allow_undefined_flag=unsupported
7617      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'
7618      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7619      ;;
7620
7621    osf3*)
7622      if test "$GCC" = yes; then
7623	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7624	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'
7625      else
7626	allow_undefined_flag=' -expect_unresolved \*'
7627	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'
7628      fi
7629      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7630      hardcode_libdir_separator=:
7631      ;;
7632
7633    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7634      if test "$GCC" = yes; then
7635	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7636	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'
7637	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7638      else
7639	allow_undefined_flag=' -expect_unresolved \*'
7640	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'
7641	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7642	$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'
7643
7644	# Both c and cxx compiler support -rpath directly
7645	hardcode_libdir_flag_spec='-rpath $libdir'
7646      fi
7647      hardcode_libdir_separator=:
7648      ;;
7649
7650    solaris*)
7651      no_undefined_flag=' -z text'
7652      if test "$GCC" = yes; then
7653	wlarc='${wl}'
7654	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7655	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7656	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7657      else
7658	wlarc=''
7659	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7660	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7661  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7662      fi
7663      hardcode_libdir_flag_spec='-R$libdir'
7664      hardcode_shlibpath_var=no
7665      case $host_os in
7666      solaris2.[0-5] | solaris2.[0-5].*) ;;
7667      *)
7668 	# The compiler driver will combine linker options so we
7669 	# cannot just pass the convience library names through
7670 	# without $wl, iff we do not link with $LD.
7671 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7672 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7673 	case $wlarc in
7674 	'')
7675 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7676 	*)
7677 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7678 	esac ;;
7679      esac
7680      link_all_deplibs=yes
7681      ;;
7682
7683    sunos4*)
7684      if test "x$host_vendor" = xsequent; then
7685	# Use $CC to link under sequent, because it throws in some extra .o
7686	# files that make .init and .fini sections work.
7687	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7688      else
7689	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7690      fi
7691      hardcode_libdir_flag_spec='-L$libdir'
7692      hardcode_direct=yes
7693      hardcode_minus_L=yes
7694      hardcode_shlibpath_var=no
7695      ;;
7696
7697    sysv4)
7698      case $host_vendor in
7699	sni)
7700	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7701	  hardcode_direct=yes # is this really true???
7702	;;
7703	siemens)
7704	  ## LD is ld it makes a PLAMLIB
7705	  ## CC just makes a GrossModule.
7706	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7707	  reload_cmds='$CC -r -o $output$reload_objs'
7708	  hardcode_direct=no
7709        ;;
7710	motorola)
7711	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7712	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7713	;;
7714      esac
7715      runpath_var='LD_RUN_PATH'
7716      hardcode_shlibpath_var=no
7717      ;;
7718
7719    sysv4.3*)
7720      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7721      hardcode_shlibpath_var=no
7722      export_dynamic_flag_spec='-Bexport'
7723      ;;
7724
7725    sysv4*MP*)
7726      if test -d /usr/nec; then
7727	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7728	hardcode_shlibpath_var=no
7729	runpath_var=LD_RUN_PATH
7730	hardcode_runpath_var=yes
7731	ld_shlibs=yes
7732      fi
7733      ;;
7734
7735    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7736      no_undefined_flag='${wl}-z,text'
7737      archive_cmds_need_lc=no
7738      hardcode_shlibpath_var=no
7739      runpath_var='LD_RUN_PATH'
7740
7741      if test "$GCC" = yes; then
7742	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7743	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7744      else
7745	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7746	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7747      fi
7748      ;;
7749
7750    sysv5* | sco3.2v5* | sco5v6*)
7751      # Note: We can NOT use -z defs as we might desire, because we do not
7752      # link with -lc, and that would cause any symbols used from libc to
7753      # always be unresolved, which means just about no library would
7754      # ever link correctly.  If we're not using GNU ld we use -z text
7755      # though, which does catch some bad symbols but isn't as heavy-handed
7756      # as -z defs.
7757      no_undefined_flag='${wl}-z,text'
7758      allow_undefined_flag='${wl}-z,nodefs'
7759      archive_cmds_need_lc=no
7760      hardcode_shlibpath_var=no
7761      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7762      hardcode_libdir_separator=':'
7763      link_all_deplibs=yes
7764      export_dynamic_flag_spec='${wl}-Bexport'
7765      runpath_var='LD_RUN_PATH'
7766
7767      if test "$GCC" = yes; then
7768	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7769	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7770      else
7771	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7772	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7773      fi
7774      ;;
7775
7776    uts4*)
7777      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7778      hardcode_libdir_flag_spec='-L$libdir'
7779      hardcode_shlibpath_var=no
7780      ;;
7781
7782    *)
7783      ld_shlibs=no
7784      ;;
7785    esac
7786  fi
7787
7788echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7789echo "${ECHO_T}$ld_shlibs" >&6
7790test "$ld_shlibs" = no && can_build_shared=no
7791
7792#
7793# Do we need to explicitly link libc?
7794#
7795case "x$archive_cmds_need_lc" in
7796x|xyes)
7797  # Assume -lc should be added
7798  archive_cmds_need_lc=yes
7799
7800  if test "$enable_shared" = yes && test "$GCC" = yes; then
7801    case $archive_cmds in
7802    *'~'*)
7803      # FIXME: we may have to deal with multi-command sequences.
7804      ;;
7805    '$CC '*)
7806      # Test whether the compiler implicitly links with -lc since on some
7807      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7808      # to ld, don't add -lc before -lgcc.
7809      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7810echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7811      $rm conftest*
7812      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7813
7814      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7815  (eval $ac_compile) 2>&5
7816  ac_status=$?
7817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818  (exit $ac_status); } 2>conftest.err; then
7819        soname=conftest
7820        lib=conftest
7821        libobjs=conftest.$ac_objext
7822        deplibs=
7823        wl=$lt_prog_compiler_wl
7824	pic_flag=$lt_prog_compiler_pic
7825        compiler_flags=-v
7826        linker_flags=-v
7827        verstring=
7828        output_objdir=.
7829        libname=conftest
7830        lt_save_allow_undefined_flag=$allow_undefined_flag
7831        allow_undefined_flag=
7832        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7833  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7834  ac_status=$?
7835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836  (exit $ac_status); }
7837        then
7838	  archive_cmds_need_lc=no
7839        else
7840	  archive_cmds_need_lc=yes
7841        fi
7842        allow_undefined_flag=$lt_save_allow_undefined_flag
7843      else
7844        cat conftest.err 1>&5
7845      fi
7846      $rm conftest*
7847      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7848echo "${ECHO_T}$archive_cmds_need_lc" >&6
7849      ;;
7850    esac
7851  fi
7852  ;;
7853esac
7854
7855echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7856echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7857library_names_spec=
7858libname_spec='lib$name'
7859soname_spec=
7860shrext_cmds=".so"
7861postinstall_cmds=
7862postuninstall_cmds=
7863finish_cmds=
7864finish_eval=
7865shlibpath_var=
7866shlibpath_overrides_runpath=unknown
7867version_type=none
7868dynamic_linker="$host_os ld.so"
7869sys_lib_dlsearch_path_spec="/lib /usr/lib"
7870if test "$GCC" = yes; then
7871  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7872  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7873    # if the path contains ";" then we assume it to be the separator
7874    # otherwise default to the standard path separator (i.e. ":") - it is
7875    # assumed that no part of a normal pathname contains ";" but that should
7876    # okay in the real world where ";" in dirpaths is itself problematic.
7877    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7878  else
7879    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7880  fi
7881else
7882  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7883fi
7884need_lib_prefix=unknown
7885hardcode_into_libs=no
7886
7887# when you set need_version to no, make sure it does not cause -set_version
7888# flags to be left without arguments
7889need_version=unknown
7890
7891case $host_os in
7892aix3*)
7893  version_type=linux
7894  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7895  shlibpath_var=LIBPATH
7896
7897  # AIX 3 has no versioning support, so we append a major version to the name.
7898  soname_spec='${libname}${release}${shared_ext}$major'
7899  ;;
7900
7901aix4* | aix5*)
7902  version_type=linux
7903  need_lib_prefix=no
7904  need_version=no
7905  hardcode_into_libs=yes
7906  if test "$host_cpu" = ia64; then
7907    # AIX 5 supports IA64
7908    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7909    shlibpath_var=LD_LIBRARY_PATH
7910  else
7911    # With GCC up to 2.95.x, collect2 would create an import file
7912    # for dependence libraries.  The import file would start with
7913    # the line `#! .'.  This would cause the generated library to
7914    # depend on `.', always an invalid library.  This was fixed in
7915    # development snapshots of GCC prior to 3.0.
7916    case $host_os in
7917      aix4 | aix4.[01] | aix4.[01].*)
7918      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7919	   echo ' yes '
7920	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7921	:
7922      else
7923	can_build_shared=no
7924      fi
7925      ;;
7926    esac
7927    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7928    # soname into executable. Probably we can add versioning support to
7929    # collect2, so additional links can be useful in future.
7930    if test "$aix_use_runtimelinking" = yes; then
7931      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7932      # instead of lib<name>.a to let people know that these are not
7933      # typical AIX shared libraries.
7934      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7935    else
7936      # We preserve .a as extension for shared libraries through AIX4.2
7937      # and later when we are not doing run time linking.
7938      library_names_spec='${libname}${release}.a $libname.a'
7939      soname_spec='${libname}${release}${shared_ext}$major'
7940    fi
7941    shlibpath_var=LIBPATH
7942  fi
7943  ;;
7944
7945amigaos*)
7946  library_names_spec='$libname.ixlibrary $libname.a'
7947  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7948  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'
7949  ;;
7950
7951beos*)
7952  library_names_spec='${libname}${shared_ext}'
7953  dynamic_linker="$host_os ld.so"
7954  shlibpath_var=LIBRARY_PATH
7955  ;;
7956
7957bsdi[45]*)
7958  version_type=linux
7959  need_version=no
7960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7961  soname_spec='${libname}${release}${shared_ext}$major'
7962  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7963  shlibpath_var=LD_LIBRARY_PATH
7964  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7965  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7966  # the default ld.so.conf also contains /usr/contrib/lib and
7967  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7968  # libtool to hard-code these into programs
7969  ;;
7970
7971cygwin* | mingw* | pw32*)
7972  version_type=windows
7973  shrext_cmds=".dll"
7974  need_version=no
7975  need_lib_prefix=no
7976
7977  case $GCC,$host_os in
7978  yes,cygwin* | yes,mingw* | yes,pw32*)
7979    library_names_spec='$libname.dll.a'
7980    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7981    postinstall_cmds='base_file=`basename \${file}`~
7982      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7983      dldir=$destdir/`dirname \$dlpath`~
7984      test -d \$dldir || mkdir -p \$dldir~
7985      $install_prog $dir/$dlname \$dldir/$dlname~
7986      chmod a+x \$dldir/$dlname'
7987    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7988      dlpath=$dir/\$dldll~
7989       $rm \$dlpath'
7990    shlibpath_overrides_runpath=yes
7991
7992    case $host_os in
7993    cygwin*)
7994      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7995      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7996      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7997      ;;
7998    mingw*)
7999      # MinGW DLLs use traditional 'lib' prefix
8000      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8001      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8002      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8003        # It is most probably a Windows format PATH printed by
8004        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8005        # path with ; separators, and with drive letters. We can handle the
8006        # drive letters (cygwin fileutils understands them), so leave them,
8007        # especially as we might pass files found there to a mingw objdump,
8008        # which wouldn't understand a cygwinified path. Ahh.
8009        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8010      else
8011        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8012      fi
8013      ;;
8014    pw32*)
8015      # pw32 DLLs use 'pw' prefix rather than 'lib'
8016      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8017      ;;
8018    esac
8019    ;;
8020
8021  linux*)
8022    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8023      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8024      supports_anon_versioning=no
8025      case `$LD -v 2>/dev/null` in
8026        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8027        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8028        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8029        *\ 2.11.*) ;; # other 2.11 versions
8030        *) supports_anon_versioning=yes ;;
8031      esac
8032      if test $supports_anon_versioning = yes; then
8033        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8034cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8035$echo "local: *; };" >> $output_objdir/$libname.ver~
8036        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8037      else
8038        $archive_expsym_cmds="$archive_cmds"
8039      fi
8040    else
8041      ld_shlibs=no
8042    fi
8043    ;;
8044
8045  *)
8046    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8047    ;;
8048  esac
8049  dynamic_linker='Win32 ld.exe'
8050  # FIXME: first we should search . and the directory the executable is in
8051  shlibpath_var=PATH
8052  ;;
8053
8054darwin* | rhapsody*)
8055  dynamic_linker="$host_os dyld"
8056  version_type=darwin
8057  need_lib_prefix=no
8058  need_version=no
8059  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8060  soname_spec='${libname}${release}${major}$shared_ext'
8061  shlibpath_overrides_runpath=yes
8062  shlibpath_var=DYLD_LIBRARY_PATH
8063  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8064  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8065  if test "$GCC" = yes; then
8066    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8067  else
8068    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8069  fi
8070  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8071  ;;
8072
8073dgux*)
8074  version_type=linux
8075  need_lib_prefix=no
8076  need_version=no
8077  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8078  soname_spec='${libname}${release}${shared_ext}$major'
8079  shlibpath_var=LD_LIBRARY_PATH
8080  ;;
8081
8082freebsd1*)
8083  dynamic_linker=no
8084  ;;
8085
8086kfreebsd*-gnu)
8087  version_type=linux
8088  need_lib_prefix=no
8089  need_version=no
8090  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8091  soname_spec='${libname}${release}${shared_ext}$major'
8092  shlibpath_var=LD_LIBRARY_PATH
8093  shlibpath_overrides_runpath=no
8094  hardcode_into_libs=yes
8095  dynamic_linker='GNU ld.so'
8096  ;;
8097
8098freebsd* | dragonfly*)
8099  # DragonFly does not have aout.  When/if they implement a new
8100  # versioning mechanism, adjust this.
8101  if test -x /usr/bin/objformat; then
8102    objformat=`/usr/bin/objformat`
8103  else
8104    case $host_os in
8105    freebsd[123]*) objformat=aout ;;
8106    *) objformat=elf ;;
8107    esac
8108  fi
8109  # Handle Gentoo/FreeBSD as it was Linux
8110  case $host_vendor in
8111    gentoo)
8112      version_type=linux ;;
8113    *)
8114      version_type=freebsd-$objformat ;;
8115  esac
8116
8117  case $version_type in
8118    freebsd-elf*)
8119      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8120      need_version=no
8121      need_lib_prefix=no
8122      ;;
8123    freebsd-*)
8124      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8125      need_version=yes
8126      ;;
8127    linux)
8128      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8129      soname_spec='${libname}${release}${shared_ext}$major'
8130      need_lib_prefix=no
8131      need_version=no
8132      ;;
8133  esac
8134  shlibpath_var=LD_LIBRARY_PATH
8135  case $host_os in
8136  freebsd2*)
8137    shlibpath_overrides_runpath=yes
8138    ;;
8139  freebsd3.[01]* | freebsdelf3.[01]*)
8140    shlibpath_overrides_runpath=yes
8141    hardcode_into_libs=yes
8142    ;;
8143  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8144  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8145    shlibpath_overrides_runpath=no
8146    hardcode_into_libs=yes
8147    ;;
8148  freebsd*) # from 4.6 on
8149    shlibpath_overrides_runpath=yes
8150    hardcode_into_libs=yes
8151    ;;
8152  esac
8153  ;;
8154
8155gnu*)
8156  version_type=linux
8157  need_lib_prefix=no
8158  need_version=no
8159  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8160  soname_spec='${libname}${release}${shared_ext}$major'
8161  shlibpath_var=LD_LIBRARY_PATH
8162  hardcode_into_libs=yes
8163  ;;
8164
8165hpux9* | hpux10* | hpux11*)
8166  # Give a soname corresponding to the major version so that dld.sl refuses to
8167  # link against other versions.
8168  version_type=sunos
8169  need_lib_prefix=no
8170  need_version=no
8171  case $host_cpu in
8172  ia64*)
8173    shrext_cmds='.so'
8174    hardcode_into_libs=yes
8175    dynamic_linker="$host_os dld.so"
8176    shlibpath_var=LD_LIBRARY_PATH
8177    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8178    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8179    soname_spec='${libname}${release}${shared_ext}$major'
8180    if test "X$HPUX_IA64_MODE" = X32; then
8181      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8182    else
8183      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8184    fi
8185    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8186    ;;
8187   hppa*64*)
8188     shrext_cmds='.sl'
8189     hardcode_into_libs=yes
8190     dynamic_linker="$host_os dld.sl"
8191     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8192     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8193     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8194     soname_spec='${libname}${release}${shared_ext}$major'
8195     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8196     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8197     ;;
8198   *)
8199    shrext_cmds='.sl'
8200    dynamic_linker="$host_os dld.sl"
8201    shlibpath_var=SHLIB_PATH
8202    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8203    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8204    soname_spec='${libname}${release}${shared_ext}$major'
8205    ;;
8206  esac
8207  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8208  postinstall_cmds='chmod 555 $lib'
8209  ;;
8210
8211interix3*)
8212  version_type=linux
8213  need_lib_prefix=no
8214  need_version=no
8215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8216  soname_spec='${libname}${release}${shared_ext}$major'
8217  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8218  shlibpath_var=LD_LIBRARY_PATH
8219  shlibpath_overrides_runpath=no
8220  hardcode_into_libs=yes
8221  ;;
8222
8223irix5* | irix6* | nonstopux*)
8224  case $host_os in
8225    nonstopux*) version_type=nonstopux ;;
8226    *)
8227	if test "$lt_cv_prog_gnu_ld" = yes; then
8228		version_type=linux
8229	else
8230		version_type=irix
8231	fi ;;
8232  esac
8233  need_lib_prefix=no
8234  need_version=no
8235  soname_spec='${libname}${release}${shared_ext}$major'
8236  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8237  case $host_os in
8238  irix5* | nonstopux*)
8239    libsuff= shlibsuff=
8240    ;;
8241  *)
8242    case $LD in # libtool.m4 will add one of these switches to LD
8243    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8244      libsuff= shlibsuff= libmagic=32-bit;;
8245    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8246      libsuff=32 shlibsuff=N32 libmagic=N32;;
8247    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8248      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8249    *) libsuff= shlibsuff= libmagic=never-match;;
8250    esac
8251    ;;
8252  esac
8253  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8254  shlibpath_overrides_runpath=no
8255  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8256  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8257  hardcode_into_libs=yes
8258  ;;
8259
8260# No shared lib support for Linux oldld, aout, or coff.
8261linux*oldld* | linux*aout* | linux*coff*)
8262  dynamic_linker=no
8263  ;;
8264
8265# This must be Linux ELF.
8266linux*)
8267  version_type=linux
8268  need_lib_prefix=no
8269  need_version=no
8270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8271  soname_spec='${libname}${release}${shared_ext}$major'
8272  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8273  shlibpath_var=LD_LIBRARY_PATH
8274  shlibpath_overrides_runpath=no
8275  # This implies no fast_install, which is unacceptable.
8276  # Some rework will be needed to allow for fast_install
8277  # before this can be enabled.
8278  hardcode_into_libs=yes
8279
8280  # Append ld.so.conf contents to the search path
8281  if test -f /etc/ld.so.conf; then
8282    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8283    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8284  fi
8285
8286  # We used to test for /lib/ld.so.1 and disable shared libraries on
8287  # powerpc, because MkLinux only supported shared libraries with the
8288  # GNU dynamic linker.  Since this was broken with cross compilers,
8289  # most powerpc-linux boxes support dynamic linking these days and
8290  # people can always --disable-shared, the test was removed, and we
8291  # assume the GNU/Linux dynamic linker is in use.
8292  dynamic_linker='GNU/Linux ld.so'
8293  ;;
8294
8295knetbsd*-gnu)
8296  version_type=linux
8297  need_lib_prefix=no
8298  need_version=no
8299  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8300  soname_spec='${libname}${release}${shared_ext}$major'
8301  shlibpath_var=LD_LIBRARY_PATH
8302  shlibpath_overrides_runpath=no
8303  hardcode_into_libs=yes
8304  dynamic_linker='GNU ld.so'
8305  ;;
8306
8307netbsd*)
8308  version_type=sunos
8309  need_lib_prefix=no
8310  need_version=no
8311  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8312    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8313    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8314    dynamic_linker='NetBSD (a.out) ld.so'
8315  else
8316    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8317    soname_spec='${libname}${release}${shared_ext}$major'
8318    dynamic_linker='NetBSD ld.elf_so'
8319  fi
8320  shlibpath_var=LD_LIBRARY_PATH
8321  shlibpath_overrides_runpath=yes
8322  hardcode_into_libs=yes
8323  ;;
8324
8325newsos6)
8326  version_type=linux
8327  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8328  shlibpath_var=LD_LIBRARY_PATH
8329  shlibpath_overrides_runpath=yes
8330  ;;
8331
8332nto-qnx*)
8333  version_type=linux
8334  need_lib_prefix=no
8335  need_version=no
8336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8337  soname_spec='${libname}${release}${shared_ext}$major'
8338  shlibpath_var=LD_LIBRARY_PATH
8339  shlibpath_overrides_runpath=yes
8340  ;;
8341
8342openbsd*)
8343  version_type=sunos
8344  sys_lib_dlsearch_path_spec="/usr/lib"
8345  need_lib_prefix=no
8346  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8347  case $host_os in
8348    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8349    *)                         need_version=no  ;;
8350  esac
8351  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8352  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8353  shlibpath_var=LD_LIBRARY_PATH
8354  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8355    case $host_os in
8356      openbsd2.[89] | openbsd2.[89].*)
8357	shlibpath_overrides_runpath=no
8358	;;
8359      *)
8360	shlibpath_overrides_runpath=yes
8361	;;
8362      esac
8363  else
8364    shlibpath_overrides_runpath=yes
8365  fi
8366  ;;
8367
8368os2*)
8369  libname_spec='$name'
8370  shrext_cmds=".dll"
8371  need_lib_prefix=no
8372  library_names_spec='$libname${shared_ext} $libname.a'
8373  dynamic_linker='OS/2 ld.exe'
8374  shlibpath_var=LIBPATH
8375  ;;
8376
8377osf3* | osf4* | osf5*)
8378  version_type=osf
8379  need_lib_prefix=no
8380  need_version=no
8381  soname_spec='${libname}${release}${shared_ext}$major'
8382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8383  shlibpath_var=LD_LIBRARY_PATH
8384  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8385  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8386  ;;
8387
8388solaris*)
8389  version_type=linux
8390  need_lib_prefix=no
8391  need_version=no
8392  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8393  soname_spec='${libname}${release}${shared_ext}$major'
8394  shlibpath_var=LD_LIBRARY_PATH
8395  shlibpath_overrides_runpath=yes
8396  hardcode_into_libs=yes
8397  # ldd complains unless libraries are executable
8398  postinstall_cmds='chmod +x $lib'
8399  ;;
8400
8401sunos4*)
8402  version_type=sunos
8403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8404  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8405  shlibpath_var=LD_LIBRARY_PATH
8406  shlibpath_overrides_runpath=yes
8407  if test "$with_gnu_ld" = yes; then
8408    need_lib_prefix=no
8409  fi
8410  need_version=yes
8411  ;;
8412
8413sysv4 | sysv4.3*)
8414  version_type=linux
8415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8416  soname_spec='${libname}${release}${shared_ext}$major'
8417  shlibpath_var=LD_LIBRARY_PATH
8418  case $host_vendor in
8419    sni)
8420      shlibpath_overrides_runpath=no
8421      need_lib_prefix=no
8422      export_dynamic_flag_spec='${wl}-Blargedynsym'
8423      runpath_var=LD_RUN_PATH
8424      ;;
8425    siemens)
8426      need_lib_prefix=no
8427      ;;
8428    motorola)
8429      need_lib_prefix=no
8430      need_version=no
8431      shlibpath_overrides_runpath=no
8432      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8433      ;;
8434  esac
8435  ;;
8436
8437sysv4*MP*)
8438  if test -d /usr/nec ;then
8439    version_type=linux
8440    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8441    soname_spec='$libname${shared_ext}.$major'
8442    shlibpath_var=LD_LIBRARY_PATH
8443  fi
8444  ;;
8445
8446sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8447  version_type=freebsd-elf
8448  need_lib_prefix=no
8449  need_version=no
8450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8451  soname_spec='${libname}${release}${shared_ext}$major'
8452  shlibpath_var=LD_LIBRARY_PATH
8453  hardcode_into_libs=yes
8454  if test "$with_gnu_ld" = yes; then
8455    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8456    shlibpath_overrides_runpath=no
8457  else
8458    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8459    shlibpath_overrides_runpath=yes
8460    case $host_os in
8461      sco3.2v5*)
8462        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8463	;;
8464    esac
8465  fi
8466  sys_lib_dlsearch_path_spec='/usr/lib'
8467  ;;
8468
8469uts4*)
8470  version_type=linux
8471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8472  soname_spec='${libname}${release}${shared_ext}$major'
8473  shlibpath_var=LD_LIBRARY_PATH
8474  ;;
8475
8476*)
8477  dynamic_linker=no
8478  ;;
8479esac
8480echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8481echo "${ECHO_T}$dynamic_linker" >&6
8482test "$dynamic_linker" = no && can_build_shared=no
8483
8484variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8485if test "$GCC" = yes; then
8486  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8487fi
8488
8489echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8490echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8491hardcode_action=
8492if test -n "$hardcode_libdir_flag_spec" || \
8493   test -n "$runpath_var" || \
8494   test "X$hardcode_automatic" = "Xyes" ; then
8495
8496  # We can hardcode non-existant directories.
8497  if test "$hardcode_direct" != no &&
8498     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8499     # have to relink, otherwise we might link with an installed library
8500     # when we should be linking with a yet-to-be-installed one
8501     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8502     test "$hardcode_minus_L" != no; then
8503    # Linking always hardcodes the temporary library directory.
8504    hardcode_action=relink
8505  else
8506    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8507    hardcode_action=immediate
8508  fi
8509else
8510  # We cannot hardcode anything, or else we can only hardcode existing
8511  # directories.
8512  hardcode_action=unsupported
8513fi
8514echo "$as_me:$LINENO: result: $hardcode_action" >&5
8515echo "${ECHO_T}$hardcode_action" >&6
8516
8517if test "$hardcode_action" = relink; then
8518  # Fast installation is not supported
8519  enable_fast_install=no
8520elif test "$shlibpath_overrides_runpath" = yes ||
8521     test "$enable_shared" = no; then
8522  # Fast installation is not necessary
8523  enable_fast_install=needless
8524fi
8525
8526striplib=
8527old_striplib=
8528echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8529echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8530if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8531  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8532  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8533  echo "$as_me:$LINENO: result: yes" >&5
8534echo "${ECHO_T}yes" >&6
8535else
8536# FIXME - insert some real tests, host_os isn't really good enough
8537  case $host_os in
8538   darwin*)
8539       if test -n "$STRIP" ; then
8540         striplib="$STRIP -x"
8541         echo "$as_me:$LINENO: result: yes" >&5
8542echo "${ECHO_T}yes" >&6
8543       else
8544  echo "$as_me:$LINENO: result: no" >&5
8545echo "${ECHO_T}no" >&6
8546fi
8547       ;;
8548   *)
8549  echo "$as_me:$LINENO: result: no" >&5
8550echo "${ECHO_T}no" >&6
8551    ;;
8552  esac
8553fi
8554
8555if test "x$enable_dlopen" != xyes; then
8556  enable_dlopen=unknown
8557  enable_dlopen_self=unknown
8558  enable_dlopen_self_static=unknown
8559else
8560  lt_cv_dlopen=no
8561  lt_cv_dlopen_libs=
8562
8563  case $host_os in
8564  beos*)
8565    lt_cv_dlopen="load_add_on"
8566    lt_cv_dlopen_libs=
8567    lt_cv_dlopen_self=yes
8568    ;;
8569
8570  mingw* | pw32*)
8571    lt_cv_dlopen="LoadLibrary"
8572    lt_cv_dlopen_libs=
8573   ;;
8574
8575  cygwin*)
8576    lt_cv_dlopen="dlopen"
8577    lt_cv_dlopen_libs=
8578   ;;
8579
8580  darwin*)
8581  # if libdl is installed we need to link against it
8582    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8583echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8584if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8585  echo $ECHO_N "(cached) $ECHO_C" >&6
8586else
8587  ac_check_lib_save_LIBS=$LIBS
8588LIBS="-ldl  $LIBS"
8589cat >conftest.$ac_ext <<_ACEOF
8590/* confdefs.h.  */
8591_ACEOF
8592cat confdefs.h >>conftest.$ac_ext
8593cat >>conftest.$ac_ext <<_ACEOF
8594/* end confdefs.h.  */
8595
8596/* Override any gcc2 internal prototype to avoid an error.  */
8597#ifdef __cplusplus
8598extern "C"
8599#endif
8600/* We use char because int might match the return type of a gcc2
8601   builtin and then its argument prototype would still apply.  */
8602char dlopen ();
8603int
8604main ()
8605{
8606dlopen ();
8607  ;
8608  return 0;
8609}
8610_ACEOF
8611rm -f conftest.$ac_objext conftest$ac_exeext
8612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8613  (eval $ac_link) 2>conftest.er1
8614  ac_status=$?
8615  grep -v '^ *+' conftest.er1 >conftest.err
8616  rm -f conftest.er1
8617  cat conftest.err >&5
8618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619  (exit $ac_status); } &&
8620	 { ac_try='test -z "$ac_c_werror_flag"
8621			 || test ! -s conftest.err'
8622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623  (eval $ac_try) 2>&5
8624  ac_status=$?
8625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626  (exit $ac_status); }; } &&
8627	 { ac_try='test -s conftest$ac_exeext'
8628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629  (eval $ac_try) 2>&5
8630  ac_status=$?
8631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632  (exit $ac_status); }; }; then
8633  ac_cv_lib_dl_dlopen=yes
8634else
8635  echo "$as_me: failed program was:" >&5
8636sed 's/^/| /' conftest.$ac_ext >&5
8637
8638ac_cv_lib_dl_dlopen=no
8639fi
8640rm -f conftest.err conftest.$ac_objext \
8641      conftest$ac_exeext conftest.$ac_ext
8642LIBS=$ac_check_lib_save_LIBS
8643fi
8644echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8645echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8646if test $ac_cv_lib_dl_dlopen = yes; then
8647  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8648else
8649
8650    lt_cv_dlopen="dyld"
8651    lt_cv_dlopen_libs=
8652    lt_cv_dlopen_self=yes
8653
8654fi
8655
8656   ;;
8657
8658  *)
8659    echo "$as_me:$LINENO: checking for shl_load" >&5
8660echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8661if test "${ac_cv_func_shl_load+set}" = set; then
8662  echo $ECHO_N "(cached) $ECHO_C" >&6
8663else
8664  cat >conftest.$ac_ext <<_ACEOF
8665/* confdefs.h.  */
8666_ACEOF
8667cat confdefs.h >>conftest.$ac_ext
8668cat >>conftest.$ac_ext <<_ACEOF
8669/* end confdefs.h.  */
8670/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8671   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8672#define shl_load innocuous_shl_load
8673
8674/* System header to define __stub macros and hopefully few prototypes,
8675    which can conflict with char shl_load (); below.
8676    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8677    <limits.h> exists even on freestanding compilers.  */
8678
8679#ifdef __STDC__
8680# include <limits.h>
8681#else
8682# include <assert.h>
8683#endif
8684
8685#undef shl_load
8686
8687/* Override any gcc2 internal prototype to avoid an error.  */
8688#ifdef __cplusplus
8689extern "C"
8690{
8691#endif
8692/* We use char because int might match the return type of a gcc2
8693   builtin and then its argument prototype would still apply.  */
8694char shl_load ();
8695/* The GNU C library defines this for functions which it implements
8696    to always fail with ENOSYS.  Some functions are actually named
8697    something starting with __ and the normal name is an alias.  */
8698#if defined (__stub_shl_load) || defined (__stub___shl_load)
8699choke me
8700#else
8701char (*f) () = shl_load;
8702#endif
8703#ifdef __cplusplus
8704}
8705#endif
8706
8707int
8708main ()
8709{
8710return f != shl_load;
8711  ;
8712  return 0;
8713}
8714_ACEOF
8715rm -f conftest.$ac_objext conftest$ac_exeext
8716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8717  (eval $ac_link) 2>conftest.er1
8718  ac_status=$?
8719  grep -v '^ *+' conftest.er1 >conftest.err
8720  rm -f conftest.er1
8721  cat conftest.err >&5
8722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723  (exit $ac_status); } &&
8724	 { ac_try='test -z "$ac_c_werror_flag"
8725			 || test ! -s conftest.err'
8726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727  (eval $ac_try) 2>&5
8728  ac_status=$?
8729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730  (exit $ac_status); }; } &&
8731	 { ac_try='test -s conftest$ac_exeext'
8732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733  (eval $ac_try) 2>&5
8734  ac_status=$?
8735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736  (exit $ac_status); }; }; then
8737  ac_cv_func_shl_load=yes
8738else
8739  echo "$as_me: failed program was:" >&5
8740sed 's/^/| /' conftest.$ac_ext >&5
8741
8742ac_cv_func_shl_load=no
8743fi
8744rm -f conftest.err conftest.$ac_objext \
8745      conftest$ac_exeext conftest.$ac_ext
8746fi
8747echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8748echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8749if test $ac_cv_func_shl_load = yes; then
8750  lt_cv_dlopen="shl_load"
8751else
8752  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8753echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8754if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8755  echo $ECHO_N "(cached) $ECHO_C" >&6
8756else
8757  ac_check_lib_save_LIBS=$LIBS
8758LIBS="-ldld  $LIBS"
8759cat >conftest.$ac_ext <<_ACEOF
8760/* confdefs.h.  */
8761_ACEOF
8762cat confdefs.h >>conftest.$ac_ext
8763cat >>conftest.$ac_ext <<_ACEOF
8764/* end confdefs.h.  */
8765
8766/* Override any gcc2 internal prototype to avoid an error.  */
8767#ifdef __cplusplus
8768extern "C"
8769#endif
8770/* We use char because int might match the return type of a gcc2
8771   builtin and then its argument prototype would still apply.  */
8772char shl_load ();
8773int
8774main ()
8775{
8776shl_load ();
8777  ;
8778  return 0;
8779}
8780_ACEOF
8781rm -f conftest.$ac_objext conftest$ac_exeext
8782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8783  (eval $ac_link) 2>conftest.er1
8784  ac_status=$?
8785  grep -v '^ *+' conftest.er1 >conftest.err
8786  rm -f conftest.er1
8787  cat conftest.err >&5
8788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789  (exit $ac_status); } &&
8790	 { ac_try='test -z "$ac_c_werror_flag"
8791			 || test ! -s conftest.err'
8792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793  (eval $ac_try) 2>&5
8794  ac_status=$?
8795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796  (exit $ac_status); }; } &&
8797	 { ac_try='test -s conftest$ac_exeext'
8798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799  (eval $ac_try) 2>&5
8800  ac_status=$?
8801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802  (exit $ac_status); }; }; then
8803  ac_cv_lib_dld_shl_load=yes
8804else
8805  echo "$as_me: failed program was:" >&5
8806sed 's/^/| /' conftest.$ac_ext >&5
8807
8808ac_cv_lib_dld_shl_load=no
8809fi
8810rm -f conftest.err conftest.$ac_objext \
8811      conftest$ac_exeext conftest.$ac_ext
8812LIBS=$ac_check_lib_save_LIBS
8813fi
8814echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8815echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8816if test $ac_cv_lib_dld_shl_load = yes; then
8817  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8818else
8819  echo "$as_me:$LINENO: checking for dlopen" >&5
8820echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8821if test "${ac_cv_func_dlopen+set}" = set; then
8822  echo $ECHO_N "(cached) $ECHO_C" >&6
8823else
8824  cat >conftest.$ac_ext <<_ACEOF
8825/* confdefs.h.  */
8826_ACEOF
8827cat confdefs.h >>conftest.$ac_ext
8828cat >>conftest.$ac_ext <<_ACEOF
8829/* end confdefs.h.  */
8830/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8831   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8832#define dlopen innocuous_dlopen
8833
8834/* System header to define __stub macros and hopefully few prototypes,
8835    which can conflict with char dlopen (); below.
8836    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8837    <limits.h> exists even on freestanding compilers.  */
8838
8839#ifdef __STDC__
8840# include <limits.h>
8841#else
8842# include <assert.h>
8843#endif
8844
8845#undef dlopen
8846
8847/* Override any gcc2 internal prototype to avoid an error.  */
8848#ifdef __cplusplus
8849extern "C"
8850{
8851#endif
8852/* We use char because int might match the return type of a gcc2
8853   builtin and then its argument prototype would still apply.  */
8854char dlopen ();
8855/* The GNU C library defines this for functions which it implements
8856    to always fail with ENOSYS.  Some functions are actually named
8857    something starting with __ and the normal name is an alias.  */
8858#if defined (__stub_dlopen) || defined (__stub___dlopen)
8859choke me
8860#else
8861char (*f) () = dlopen;
8862#endif
8863#ifdef __cplusplus
8864}
8865#endif
8866
8867int
8868main ()
8869{
8870return f != dlopen;
8871  ;
8872  return 0;
8873}
8874_ACEOF
8875rm -f conftest.$ac_objext conftest$ac_exeext
8876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8877  (eval $ac_link) 2>conftest.er1
8878  ac_status=$?
8879  grep -v '^ *+' conftest.er1 >conftest.err
8880  rm -f conftest.er1
8881  cat conftest.err >&5
8882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883  (exit $ac_status); } &&
8884	 { ac_try='test -z "$ac_c_werror_flag"
8885			 || test ! -s conftest.err'
8886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887  (eval $ac_try) 2>&5
8888  ac_status=$?
8889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890  (exit $ac_status); }; } &&
8891	 { ac_try='test -s conftest$ac_exeext'
8892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893  (eval $ac_try) 2>&5
8894  ac_status=$?
8895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896  (exit $ac_status); }; }; then
8897  ac_cv_func_dlopen=yes
8898else
8899  echo "$as_me: failed program was:" >&5
8900sed 's/^/| /' conftest.$ac_ext >&5
8901
8902ac_cv_func_dlopen=no
8903fi
8904rm -f conftest.err conftest.$ac_objext \
8905      conftest$ac_exeext conftest.$ac_ext
8906fi
8907echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8908echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8909if test $ac_cv_func_dlopen = yes; then
8910  lt_cv_dlopen="dlopen"
8911else
8912  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8913echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8914if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8915  echo $ECHO_N "(cached) $ECHO_C" >&6
8916else
8917  ac_check_lib_save_LIBS=$LIBS
8918LIBS="-ldl  $LIBS"
8919cat >conftest.$ac_ext <<_ACEOF
8920/* confdefs.h.  */
8921_ACEOF
8922cat confdefs.h >>conftest.$ac_ext
8923cat >>conftest.$ac_ext <<_ACEOF
8924/* end confdefs.h.  */
8925
8926/* Override any gcc2 internal prototype to avoid an error.  */
8927#ifdef __cplusplus
8928extern "C"
8929#endif
8930/* We use char because int might match the return type of a gcc2
8931   builtin and then its argument prototype would still apply.  */
8932char dlopen ();
8933int
8934main ()
8935{
8936dlopen ();
8937  ;
8938  return 0;
8939}
8940_ACEOF
8941rm -f conftest.$ac_objext conftest$ac_exeext
8942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8943  (eval $ac_link) 2>conftest.er1
8944  ac_status=$?
8945  grep -v '^ *+' conftest.er1 >conftest.err
8946  rm -f conftest.er1
8947  cat conftest.err >&5
8948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949  (exit $ac_status); } &&
8950	 { ac_try='test -z "$ac_c_werror_flag"
8951			 || test ! -s conftest.err'
8952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953  (eval $ac_try) 2>&5
8954  ac_status=$?
8955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956  (exit $ac_status); }; } &&
8957	 { ac_try='test -s conftest$ac_exeext'
8958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959  (eval $ac_try) 2>&5
8960  ac_status=$?
8961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962  (exit $ac_status); }; }; then
8963  ac_cv_lib_dl_dlopen=yes
8964else
8965  echo "$as_me: failed program was:" >&5
8966sed 's/^/| /' conftest.$ac_ext >&5
8967
8968ac_cv_lib_dl_dlopen=no
8969fi
8970rm -f conftest.err conftest.$ac_objext \
8971      conftest$ac_exeext conftest.$ac_ext
8972LIBS=$ac_check_lib_save_LIBS
8973fi
8974echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8975echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8976if test $ac_cv_lib_dl_dlopen = yes; then
8977  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8978else
8979  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8980echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8981if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8982  echo $ECHO_N "(cached) $ECHO_C" >&6
8983else
8984  ac_check_lib_save_LIBS=$LIBS
8985LIBS="-lsvld  $LIBS"
8986cat >conftest.$ac_ext <<_ACEOF
8987/* confdefs.h.  */
8988_ACEOF
8989cat confdefs.h >>conftest.$ac_ext
8990cat >>conftest.$ac_ext <<_ACEOF
8991/* end confdefs.h.  */
8992
8993/* Override any gcc2 internal prototype to avoid an error.  */
8994#ifdef __cplusplus
8995extern "C"
8996#endif
8997/* We use char because int might match the return type of a gcc2
8998   builtin and then its argument prototype would still apply.  */
8999char dlopen ();
9000int
9001main ()
9002{
9003dlopen ();
9004  ;
9005  return 0;
9006}
9007_ACEOF
9008rm -f conftest.$ac_objext conftest$ac_exeext
9009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9010  (eval $ac_link) 2>conftest.er1
9011  ac_status=$?
9012  grep -v '^ *+' conftest.er1 >conftest.err
9013  rm -f conftest.er1
9014  cat conftest.err >&5
9015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016  (exit $ac_status); } &&
9017	 { ac_try='test -z "$ac_c_werror_flag"
9018			 || test ! -s conftest.err'
9019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020  (eval $ac_try) 2>&5
9021  ac_status=$?
9022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023  (exit $ac_status); }; } &&
9024	 { ac_try='test -s conftest$ac_exeext'
9025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026  (eval $ac_try) 2>&5
9027  ac_status=$?
9028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029  (exit $ac_status); }; }; then
9030  ac_cv_lib_svld_dlopen=yes
9031else
9032  echo "$as_me: failed program was:" >&5
9033sed 's/^/| /' conftest.$ac_ext >&5
9034
9035ac_cv_lib_svld_dlopen=no
9036fi
9037rm -f conftest.err conftest.$ac_objext \
9038      conftest$ac_exeext conftest.$ac_ext
9039LIBS=$ac_check_lib_save_LIBS
9040fi
9041echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9042echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9043if test $ac_cv_lib_svld_dlopen = yes; then
9044  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9045else
9046  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9047echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9048if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9049  echo $ECHO_N "(cached) $ECHO_C" >&6
9050else
9051  ac_check_lib_save_LIBS=$LIBS
9052LIBS="-ldld  $LIBS"
9053cat >conftest.$ac_ext <<_ACEOF
9054/* confdefs.h.  */
9055_ACEOF
9056cat confdefs.h >>conftest.$ac_ext
9057cat >>conftest.$ac_ext <<_ACEOF
9058/* end confdefs.h.  */
9059
9060/* Override any gcc2 internal prototype to avoid an error.  */
9061#ifdef __cplusplus
9062extern "C"
9063#endif
9064/* We use char because int might match the return type of a gcc2
9065   builtin and then its argument prototype would still apply.  */
9066char dld_link ();
9067int
9068main ()
9069{
9070dld_link ();
9071  ;
9072  return 0;
9073}
9074_ACEOF
9075rm -f conftest.$ac_objext conftest$ac_exeext
9076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9077  (eval $ac_link) 2>conftest.er1
9078  ac_status=$?
9079  grep -v '^ *+' conftest.er1 >conftest.err
9080  rm -f conftest.er1
9081  cat conftest.err >&5
9082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083  (exit $ac_status); } &&
9084	 { ac_try='test -z "$ac_c_werror_flag"
9085			 || test ! -s conftest.err'
9086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9087  (eval $ac_try) 2>&5
9088  ac_status=$?
9089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090  (exit $ac_status); }; } &&
9091	 { ac_try='test -s conftest$ac_exeext'
9092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093  (eval $ac_try) 2>&5
9094  ac_status=$?
9095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096  (exit $ac_status); }; }; then
9097  ac_cv_lib_dld_dld_link=yes
9098else
9099  echo "$as_me: failed program was:" >&5
9100sed 's/^/| /' conftest.$ac_ext >&5
9101
9102ac_cv_lib_dld_dld_link=no
9103fi
9104rm -f conftest.err conftest.$ac_objext \
9105      conftest$ac_exeext conftest.$ac_ext
9106LIBS=$ac_check_lib_save_LIBS
9107fi
9108echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9109echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9110if test $ac_cv_lib_dld_dld_link = yes; then
9111  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9112fi
9113
9114
9115fi
9116
9117
9118fi
9119
9120
9121fi
9122
9123
9124fi
9125
9126
9127fi
9128
9129    ;;
9130  esac
9131
9132  if test "x$lt_cv_dlopen" != xno; then
9133    enable_dlopen=yes
9134  else
9135    enable_dlopen=no
9136  fi
9137
9138  case $lt_cv_dlopen in
9139  dlopen)
9140    save_CPPFLAGS="$CPPFLAGS"
9141    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9142
9143    save_LDFLAGS="$LDFLAGS"
9144    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9145
9146    save_LIBS="$LIBS"
9147    LIBS="$lt_cv_dlopen_libs $LIBS"
9148
9149    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9150echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9151if test "${lt_cv_dlopen_self+set}" = set; then
9152  echo $ECHO_N "(cached) $ECHO_C" >&6
9153else
9154  	  if test "$cross_compiling" = yes; then :
9155  lt_cv_dlopen_self=cross
9156else
9157  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9158  lt_status=$lt_dlunknown
9159  cat > conftest.$ac_ext <<EOF
9160#line 9160 "configure"
9161#include "confdefs.h"
9162
9163#if HAVE_DLFCN_H
9164#include <dlfcn.h>
9165#endif
9166
9167#include <stdio.h>
9168
9169#ifdef RTLD_GLOBAL
9170#  define LT_DLGLOBAL		RTLD_GLOBAL
9171#else
9172#  ifdef DL_GLOBAL
9173#    define LT_DLGLOBAL		DL_GLOBAL
9174#  else
9175#    define LT_DLGLOBAL		0
9176#  endif
9177#endif
9178
9179/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9180   find out it does not work in some platform. */
9181#ifndef LT_DLLAZY_OR_NOW
9182#  ifdef RTLD_LAZY
9183#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9184#  else
9185#    ifdef DL_LAZY
9186#      define LT_DLLAZY_OR_NOW		DL_LAZY
9187#    else
9188#      ifdef RTLD_NOW
9189#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9190#      else
9191#        ifdef DL_NOW
9192#          define LT_DLLAZY_OR_NOW	DL_NOW
9193#        else
9194#          define LT_DLLAZY_OR_NOW	0
9195#        endif
9196#      endif
9197#    endif
9198#  endif
9199#endif
9200
9201#ifdef __cplusplus
9202extern "C" void exit (int);
9203#endif
9204
9205void fnord() { int i=42;}
9206int main ()
9207{
9208  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9209  int status = $lt_dlunknown;
9210
9211  if (self)
9212    {
9213      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9214      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9215      /* dlclose (self); */
9216    }
9217  else
9218    puts (dlerror ());
9219
9220    exit (status);
9221}
9222EOF
9223  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9224  (eval $ac_link) 2>&5
9225  ac_status=$?
9226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9228    (./conftest; exit; ) >&5 2>/dev/null
9229    lt_status=$?
9230    case x$lt_status in
9231      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9232      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9233      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9234    esac
9235  else :
9236    # compilation failed
9237    lt_cv_dlopen_self=no
9238  fi
9239fi
9240rm -fr conftest*
9241
9242
9243fi
9244echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9245echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9246
9247    if test "x$lt_cv_dlopen_self" = xyes; then
9248      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9249      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9250echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9251if test "${lt_cv_dlopen_self_static+set}" = set; then
9252  echo $ECHO_N "(cached) $ECHO_C" >&6
9253else
9254  	  if test "$cross_compiling" = yes; then :
9255  lt_cv_dlopen_self_static=cross
9256else
9257  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9258  lt_status=$lt_dlunknown
9259  cat > conftest.$ac_ext <<EOF
9260#line 9260 "configure"
9261#include "confdefs.h"
9262
9263#if HAVE_DLFCN_H
9264#include <dlfcn.h>
9265#endif
9266
9267#include <stdio.h>
9268
9269#ifdef RTLD_GLOBAL
9270#  define LT_DLGLOBAL		RTLD_GLOBAL
9271#else
9272#  ifdef DL_GLOBAL
9273#    define LT_DLGLOBAL		DL_GLOBAL
9274#  else
9275#    define LT_DLGLOBAL		0
9276#  endif
9277#endif
9278
9279/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9280   find out it does not work in some platform. */
9281#ifndef LT_DLLAZY_OR_NOW
9282#  ifdef RTLD_LAZY
9283#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9284#  else
9285#    ifdef DL_LAZY
9286#      define LT_DLLAZY_OR_NOW		DL_LAZY
9287#    else
9288#      ifdef RTLD_NOW
9289#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9290#      else
9291#        ifdef DL_NOW
9292#          define LT_DLLAZY_OR_NOW	DL_NOW
9293#        else
9294#          define LT_DLLAZY_OR_NOW	0
9295#        endif
9296#      endif
9297#    endif
9298#  endif
9299#endif
9300
9301#ifdef __cplusplus
9302extern "C" void exit (int);
9303#endif
9304
9305void fnord() { int i=42;}
9306int main ()
9307{
9308  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9309  int status = $lt_dlunknown;
9310
9311  if (self)
9312    {
9313      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9314      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9315      /* dlclose (self); */
9316    }
9317  else
9318    puts (dlerror ());
9319
9320    exit (status);
9321}
9322EOF
9323  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9324  (eval $ac_link) 2>&5
9325  ac_status=$?
9326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9328    (./conftest; exit; ) >&5 2>/dev/null
9329    lt_status=$?
9330    case x$lt_status in
9331      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9332      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9333      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9334    esac
9335  else :
9336    # compilation failed
9337    lt_cv_dlopen_self_static=no
9338  fi
9339fi
9340rm -fr conftest*
9341
9342
9343fi
9344echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9345echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9346    fi
9347
9348    CPPFLAGS="$save_CPPFLAGS"
9349    LDFLAGS="$save_LDFLAGS"
9350    LIBS="$save_LIBS"
9351    ;;
9352  esac
9353
9354  case $lt_cv_dlopen_self in
9355  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9356  *) enable_dlopen_self=unknown ;;
9357  esac
9358
9359  case $lt_cv_dlopen_self_static in
9360  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9361  *) enable_dlopen_self_static=unknown ;;
9362  esac
9363fi
9364
9365
9366# Report which library types will actually be built
9367echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9368echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9369echo "$as_me:$LINENO: result: $can_build_shared" >&5
9370echo "${ECHO_T}$can_build_shared" >&6
9371
9372echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9373echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9374test "$can_build_shared" = "no" && enable_shared=no
9375
9376# On AIX, shared libraries and static libraries use the same namespace, and
9377# are all built from PIC.
9378case $host_os in
9379aix3*)
9380  test "$enable_shared" = yes && enable_static=no
9381  if test -n "$RANLIB"; then
9382    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9383    postinstall_cmds='$RANLIB $lib'
9384  fi
9385  ;;
9386
9387aix4* | aix5*)
9388  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9389    test "$enable_shared" = yes && enable_static=no
9390  fi
9391    ;;
9392esac
9393echo "$as_me:$LINENO: result: $enable_shared" >&5
9394echo "${ECHO_T}$enable_shared" >&6
9395
9396echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9397echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9398# Make sure either enable_shared or enable_static is yes.
9399test "$enable_shared" = yes || enable_static=yes
9400echo "$as_me:$LINENO: result: $enable_static" >&5
9401echo "${ECHO_T}$enable_static" >&6
9402
9403# The else clause should only fire when bootstrapping the
9404# libtool distribution, otherwise you forgot to ship ltmain.sh
9405# with your package, and you will get complaints that there are
9406# no rules to generate ltmain.sh.
9407if test -f "$ltmain"; then
9408  # See if we are running on zsh, and set the options which allow our commands through
9409  # without removal of \ escapes.
9410  if test -n "${ZSH_VERSION+set}" ; then
9411    setopt NO_GLOB_SUBST
9412  fi
9413  # Now quote all the things that may contain metacharacters while being
9414  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9415  # variables and quote the copies for generation of the libtool script.
9416  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9417    SED SHELL STRIP \
9418    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9419    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9420    deplibs_check_method reload_flag reload_cmds need_locks \
9421    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9422    lt_cv_sys_global_symbol_to_c_name_address \
9423    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9424    old_postinstall_cmds old_postuninstall_cmds \
9425    compiler \
9426    CC \
9427    LD \
9428    lt_prog_compiler_wl \
9429    lt_prog_compiler_pic \
9430    lt_prog_compiler_static \
9431    lt_prog_compiler_no_builtin_flag \
9432    export_dynamic_flag_spec \
9433    thread_safe_flag_spec \
9434    whole_archive_flag_spec \
9435    enable_shared_with_static_runtimes \
9436    old_archive_cmds \
9437    old_archive_from_new_cmds \
9438    predep_objects \
9439    postdep_objects \
9440    predeps \
9441    postdeps \
9442    compiler_lib_search_path \
9443    archive_cmds \
9444    archive_expsym_cmds \
9445    postinstall_cmds \
9446    postuninstall_cmds \
9447    old_archive_from_expsyms_cmds \
9448    allow_undefined_flag \
9449    no_undefined_flag \
9450    export_symbols_cmds \
9451    hardcode_libdir_flag_spec \
9452    hardcode_libdir_flag_spec_ld \
9453    hardcode_libdir_separator \
9454    hardcode_automatic \
9455    module_cmds \
9456    module_expsym_cmds \
9457    lt_cv_prog_compiler_c_o \
9458    exclude_expsyms \
9459    include_expsyms; do
9460
9461    case $var in
9462    old_archive_cmds | \
9463    old_archive_from_new_cmds | \
9464    archive_cmds | \
9465    archive_expsym_cmds | \
9466    module_cmds | \
9467    module_expsym_cmds | \
9468    old_archive_from_expsyms_cmds | \
9469    export_symbols_cmds | \
9470    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9471    postinstall_cmds | postuninstall_cmds | \
9472    old_postinstall_cmds | old_postuninstall_cmds | \
9473    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9474      # Double-quote double-evaled strings.
9475      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9476      ;;
9477    *)
9478      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9479      ;;
9480    esac
9481  done
9482
9483  case $lt_echo in
9484  *'\$0 --fallback-echo"')
9485    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9486    ;;
9487  esac
9488
9489cfgfile="${ofile}T"
9490  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9491  $rm -f "$cfgfile"
9492  { echo "$as_me:$LINENO: creating $ofile" >&5
9493echo "$as_me: creating $ofile" >&6;}
9494
9495  cat <<__EOF__ >> "$cfgfile"
9496#! $SHELL
9497
9498# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9499# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9500# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9501#
9502# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9503# Free Software Foundation, Inc.
9504#
9505# This file is part of GNU Libtool:
9506# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9507#
9508# This program is free software; you can redistribute it and/or modify
9509# it under the terms of the GNU General Public License as published by
9510# the Free Software Foundation; either version 2 of the License, or
9511# (at your option) any later version.
9512#
9513# This program is distributed in the hope that it will be useful, but
9514# WITHOUT ANY WARRANTY; without even the implied warranty of
9515# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9516# General Public License for more details.
9517#
9518# You should have received a copy of the GNU General Public License
9519# along with this program; if not, write to the Free Software
9520# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9521#
9522# As a special exception to the GNU General Public License, if you
9523# distribute this file as part of a program that contains a
9524# configuration script generated by Autoconf, you may include it under
9525# the same distribution terms that you use for the rest of that program.
9526
9527# A sed program that does not truncate output.
9528SED=$lt_SED
9529
9530# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9531Xsed="$SED -e 1s/^X//"
9532
9533# The HP-UX ksh and POSIX shell print the target directory to stdout
9534# if CDPATH is set.
9535(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9536
9537# The names of the tagged configurations supported by this script.
9538available_tags=
9539
9540# ### BEGIN LIBTOOL CONFIG
9541
9542# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9543
9544# Shell to use when invoking shell scripts.
9545SHELL=$lt_SHELL
9546
9547# Whether or not to build shared libraries.
9548build_libtool_libs=$enable_shared
9549
9550# Whether or not to build static libraries.
9551build_old_libs=$enable_static
9552
9553# Whether or not to add -lc for building shared libraries.
9554build_libtool_need_lc=$archive_cmds_need_lc
9555
9556# Whether or not to disallow shared libs when runtime libs are static
9557allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9558
9559# Whether or not to optimize for fast installation.
9560fast_install=$enable_fast_install
9561
9562# The host system.
9563host_alias=$host_alias
9564host=$host
9565host_os=$host_os
9566
9567# The build system.
9568build_alias=$build_alias
9569build=$build
9570build_os=$build_os
9571
9572# An echo program that does not interpret backslashes.
9573echo=$lt_echo
9574
9575# The archiver.
9576AR=$lt_AR
9577AR_FLAGS=$lt_AR_FLAGS
9578
9579# A C compiler.
9580LTCC=$lt_LTCC
9581
9582# LTCC compiler flags.
9583LTCFLAGS=$lt_LTCFLAGS
9584
9585# A language-specific compiler.
9586CC=$lt_compiler
9587
9588# Is the compiler the GNU C compiler?
9589with_gcc=$GCC
9590
9591# An ERE matcher.
9592EGREP=$lt_EGREP
9593
9594# The linker used to build libraries.
9595LD=$lt_LD
9596
9597# Whether we need hard or soft links.
9598LN_S=$lt_LN_S
9599
9600# A BSD-compatible nm program.
9601NM=$lt_NM
9602
9603# A symbol stripping program
9604STRIP=$lt_STRIP
9605
9606# Used to examine libraries when file_magic_cmd begins "file"
9607MAGIC_CMD=$MAGIC_CMD
9608
9609# Used on cygwin: DLL creation program.
9610DLLTOOL="$DLLTOOL"
9611
9612# Used on cygwin: object dumper.
9613OBJDUMP="$OBJDUMP"
9614
9615# Used on cygwin: assembler.
9616AS="$AS"
9617
9618# The name of the directory that contains temporary libtool files.
9619objdir=$objdir
9620
9621# How to create reloadable object files.
9622reload_flag=$lt_reload_flag
9623reload_cmds=$lt_reload_cmds
9624
9625# How to pass a linker flag through the compiler.
9626wl=$lt_lt_prog_compiler_wl
9627
9628# Object file suffix (normally "o").
9629objext="$ac_objext"
9630
9631# Old archive suffix (normally "a").
9632libext="$libext"
9633
9634# Shared library suffix (normally ".so").
9635shrext_cmds='$shrext_cmds'
9636
9637# Executable file suffix (normally "").
9638exeext="$exeext"
9639
9640# Additional compiler flags for building library objects.
9641pic_flag=$lt_lt_prog_compiler_pic
9642pic_mode=$pic_mode
9643
9644# What is the maximum length of a command?
9645max_cmd_len=$lt_cv_sys_max_cmd_len
9646
9647# Does compiler simultaneously support -c and -o options?
9648compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9649
9650# Must we lock files when doing compilation?
9651need_locks=$lt_need_locks
9652
9653# Do we need the lib prefix for modules?
9654need_lib_prefix=$need_lib_prefix
9655
9656# Do we need a version for libraries?
9657need_version=$need_version
9658
9659# Whether dlopen is supported.
9660dlopen_support=$enable_dlopen
9661
9662# Whether dlopen of programs is supported.
9663dlopen_self=$enable_dlopen_self
9664
9665# Whether dlopen of statically linked programs is supported.
9666dlopen_self_static=$enable_dlopen_self_static
9667
9668# Compiler flag to prevent dynamic linking.
9669link_static_flag=$lt_lt_prog_compiler_static
9670
9671# Compiler flag to turn off builtin functions.
9672no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9673
9674# Compiler flag to allow reflexive dlopens.
9675export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9676
9677# Compiler flag to generate shared objects directly from archives.
9678whole_archive_flag_spec=$lt_whole_archive_flag_spec
9679
9680# Compiler flag to generate thread-safe objects.
9681thread_safe_flag_spec=$lt_thread_safe_flag_spec
9682
9683# Library versioning type.
9684version_type=$version_type
9685
9686# Format of library name prefix.
9687libname_spec=$lt_libname_spec
9688
9689# List of archive names.  First name is the real one, the rest are links.
9690# The last name is the one that the linker finds with -lNAME.
9691library_names_spec=$lt_library_names_spec
9692
9693# The coded name of the library, if different from the real name.
9694soname_spec=$lt_soname_spec
9695
9696# Commands used to build and install an old-style archive.
9697RANLIB=$lt_RANLIB
9698old_archive_cmds=$lt_old_archive_cmds
9699old_postinstall_cmds=$lt_old_postinstall_cmds
9700old_postuninstall_cmds=$lt_old_postuninstall_cmds
9701
9702# Create an old-style archive from a shared archive.
9703old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9704
9705# Create a temporary old-style archive to link instead of a shared archive.
9706old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9707
9708# Commands used to build and install a shared archive.
9709archive_cmds=$lt_archive_cmds
9710archive_expsym_cmds=$lt_archive_expsym_cmds
9711postinstall_cmds=$lt_postinstall_cmds
9712postuninstall_cmds=$lt_postuninstall_cmds
9713
9714# Commands used to build a loadable module (assumed same as above if empty)
9715module_cmds=$lt_module_cmds
9716module_expsym_cmds=$lt_module_expsym_cmds
9717
9718# Commands to strip libraries.
9719old_striplib=$lt_old_striplib
9720striplib=$lt_striplib
9721
9722# Dependencies to place before the objects being linked to create a
9723# shared library.
9724predep_objects=$lt_predep_objects
9725
9726# Dependencies to place after the objects being linked to create a
9727# shared library.
9728postdep_objects=$lt_postdep_objects
9729
9730# Dependencies to place before the objects being linked to create a
9731# shared library.
9732predeps=$lt_predeps
9733
9734# Dependencies to place after the objects being linked to create a
9735# shared library.
9736postdeps=$lt_postdeps
9737
9738# The library search path used internally by the compiler when linking
9739# a shared library.
9740compiler_lib_search_path=$lt_compiler_lib_search_path
9741
9742# Method to check whether dependent libraries are shared objects.
9743deplibs_check_method=$lt_deplibs_check_method
9744
9745# Command to use when deplibs_check_method == file_magic.
9746file_magic_cmd=$lt_file_magic_cmd
9747
9748# Flag that allows shared libraries with undefined symbols to be built.
9749allow_undefined_flag=$lt_allow_undefined_flag
9750
9751# Flag that forces no undefined symbols.
9752no_undefined_flag=$lt_no_undefined_flag
9753
9754# Commands used to finish a libtool library installation in a directory.
9755finish_cmds=$lt_finish_cmds
9756
9757# Same as above, but a single script fragment to be evaled but not shown.
9758finish_eval=$lt_finish_eval
9759
9760# Take the output of nm and produce a listing of raw symbols and C names.
9761global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9762
9763# Transform the output of nm in a proper C declaration
9764global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9765
9766# Transform the output of nm in a C name address pair
9767global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9768
9769# This is the shared library runtime path variable.
9770runpath_var=$runpath_var
9771
9772# This is the shared library path variable.
9773shlibpath_var=$shlibpath_var
9774
9775# Is shlibpath searched before the hard-coded library search path?
9776shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9777
9778# How to hardcode a shared library path into an executable.
9779hardcode_action=$hardcode_action
9780
9781# Whether we should hardcode library paths into libraries.
9782hardcode_into_libs=$hardcode_into_libs
9783
9784# Flag to hardcode \$libdir into a binary during linking.
9785# This must work even if \$libdir does not exist.
9786hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9787
9788# If ld is used when linking, flag to hardcode \$libdir into
9789# a binary during linking. This must work even if \$libdir does
9790# not exist.
9791hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9792
9793# Whether we need a single -rpath flag with a separated argument.
9794hardcode_libdir_separator=$lt_hardcode_libdir_separator
9795
9796# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9797# resulting binary.
9798hardcode_direct=$hardcode_direct
9799
9800# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9801# resulting binary.
9802hardcode_minus_L=$hardcode_minus_L
9803
9804# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9805# the resulting binary.
9806hardcode_shlibpath_var=$hardcode_shlibpath_var
9807
9808# Set to yes if building a shared library automatically hardcodes DIR into the library
9809# and all subsequent libraries and executables linked against it.
9810hardcode_automatic=$hardcode_automatic
9811
9812# Variables whose values should be saved in libtool wrapper scripts and
9813# restored at relink time.
9814variables_saved_for_relink="$variables_saved_for_relink"
9815
9816# Whether libtool must link a program against all its dependency libraries.
9817link_all_deplibs=$link_all_deplibs
9818
9819# Compile-time system search path for libraries
9820sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9821
9822# Run-time system search path for libraries
9823sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9824
9825# Fix the shell variable \$srcfile for the compiler.
9826fix_srcfile_path="$fix_srcfile_path"
9827
9828# Set to yes if exported symbols are required.
9829always_export_symbols=$always_export_symbols
9830
9831# The commands to list exported symbols.
9832export_symbols_cmds=$lt_export_symbols_cmds
9833
9834# The commands to extract the exported symbol list from a shared archive.
9835extract_expsyms_cmds=$lt_extract_expsyms_cmds
9836
9837# Symbols that should not be listed in the preloaded symbols.
9838exclude_expsyms=$lt_exclude_expsyms
9839
9840# Symbols that must always be exported.
9841include_expsyms=$lt_include_expsyms
9842
9843# ### END LIBTOOL CONFIG
9844
9845__EOF__
9846
9847
9848  case $host_os in
9849  aix3*)
9850    cat <<\EOF >> "$cfgfile"
9851
9852# AIX sometimes has problems with the GCC collect2 program.  For some
9853# reason, if we set the COLLECT_NAMES environment variable, the problems
9854# vanish in a puff of smoke.
9855if test "X${COLLECT_NAMES+set}" != Xset; then
9856  COLLECT_NAMES=
9857  export COLLECT_NAMES
9858fi
9859EOF
9860    ;;
9861  esac
9862
9863  # We use sed instead of cat because bash on DJGPP gets confused if
9864  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9865  # text mode, it properly converts lines to CR/LF.  This bash problem
9866  # is reportedly fixed, but why not run on old versions too?
9867  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9868
9869  mv -f "$cfgfile" "$ofile" || \
9870    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9871  chmod +x "$ofile"
9872
9873else
9874  # If there is no Makefile yet, we rely on a make rule to execute
9875  # `config.status --recheck' to rerun these tests and create the
9876  # libtool script then.
9877  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9878  if test -f "$ltmain_in"; then
9879    test -f Makefile && make "$ltmain"
9880  fi
9881fi
9882
9883
9884ac_ext=c
9885ac_cpp='$CPP $CPPFLAGS'
9886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9888ac_compiler_gnu=$ac_cv_c_compiler_gnu
9889
9890CC="$lt_save_CC"
9891
9892
9893# Check whether --with-tags or --without-tags was given.
9894if test "${with_tags+set}" = set; then
9895  withval="$with_tags"
9896  tagnames="$withval"
9897fi;
9898
9899if test -f "$ltmain" && test -n "$tagnames"; then
9900  if test ! -f "${ofile}"; then
9901    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9902echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9903  fi
9904
9905  if test -z "$LTCC"; then
9906    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9907    if test -z "$LTCC"; then
9908      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9909echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9910    else
9911      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9912echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9913    fi
9914  fi
9915  if test -z "$LTCFLAGS"; then
9916    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9917  fi
9918
9919  # Extract list of available tagged configurations in $ofile.
9920  # Note that this assumes the entire list is on one line.
9921  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9922
9923  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9924  for tagname in $tagnames; do
9925    IFS="$lt_save_ifs"
9926    # Check whether tagname contains only valid characters
9927    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9928    "") ;;
9929    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9930echo "$as_me: error: invalid tag name: $tagname" >&2;}
9931   { (exit 1); exit 1; }; }
9932	;;
9933    esac
9934
9935    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9936    then
9937      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9938echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9939   { (exit 1); exit 1; }; }
9940    fi
9941
9942    # Update the list of available tags.
9943    if test -n "$tagname"; then
9944      echo appending configuration tag \"$tagname\" to $ofile
9945
9946      case $tagname in
9947      CXX)
9948	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9949	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9950	    (test "X$CXX" != "Xg++"))) ; then
9951	  ac_ext=cc
9952ac_cpp='$CXXCPP $CPPFLAGS'
9953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9956
9957
9958
9959
9960archive_cmds_need_lc_CXX=no
9961allow_undefined_flag_CXX=
9962always_export_symbols_CXX=no
9963archive_expsym_cmds_CXX=
9964export_dynamic_flag_spec_CXX=
9965hardcode_direct_CXX=no
9966hardcode_libdir_flag_spec_CXX=
9967hardcode_libdir_flag_spec_ld_CXX=
9968hardcode_libdir_separator_CXX=
9969hardcode_minus_L_CXX=no
9970hardcode_shlibpath_var_CXX=unsupported
9971hardcode_automatic_CXX=no
9972module_cmds_CXX=
9973module_expsym_cmds_CXX=
9974link_all_deplibs_CXX=unknown
9975old_archive_cmds_CXX=$old_archive_cmds
9976no_undefined_flag_CXX=
9977whole_archive_flag_spec_CXX=
9978enable_shared_with_static_runtimes_CXX=no
9979
9980# Dependencies to place before and after the object being linked:
9981predep_objects_CXX=
9982postdep_objects_CXX=
9983predeps_CXX=
9984postdeps_CXX=
9985compiler_lib_search_path_CXX=
9986
9987# Source file extension for C++ test sources.
9988ac_ext=cpp
9989
9990# Object file extension for compiled C++ test sources.
9991objext=o
9992objext_CXX=$objext
9993
9994# Code to be used in simple compile tests
9995lt_simple_compile_test_code="int some_variable = 0;\n"
9996
9997# Code to be used in simple link tests
9998lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9999
10000# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10001
10002# If no C compiler was specified, use CC.
10003LTCC=${LTCC-"$CC"}
10004
10005# If no C compiler flags were specified, use CFLAGS.
10006LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10007
10008# Allow CC to be a program name with arguments.
10009compiler=$CC
10010
10011
10012# save warnings/boilerplate of simple test code
10013ac_outfile=conftest.$ac_objext
10014printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10015eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10016_lt_compiler_boilerplate=`cat conftest.err`
10017$rm conftest*
10018
10019ac_outfile=conftest.$ac_objext
10020printf "$lt_simple_link_test_code" >conftest.$ac_ext
10021eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10022_lt_linker_boilerplate=`cat conftest.err`
10023$rm conftest*
10024
10025
10026# Allow CC to be a program name with arguments.
10027lt_save_CC=$CC
10028lt_save_LD=$LD
10029lt_save_GCC=$GCC
10030GCC=$GXX
10031lt_save_with_gnu_ld=$with_gnu_ld
10032lt_save_path_LD=$lt_cv_path_LD
10033if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10034  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10035else
10036  $as_unset lt_cv_prog_gnu_ld
10037fi
10038if test -n "${lt_cv_path_LDCXX+set}"; then
10039  lt_cv_path_LD=$lt_cv_path_LDCXX
10040else
10041  $as_unset lt_cv_path_LD
10042fi
10043test -z "${LDCXX+set}" || LD=$LDCXX
10044CC=${CXX-"c++"}
10045compiler=$CC
10046compiler_CXX=$CC
10047for cc_temp in $compiler""; do
10048  case $cc_temp in
10049    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10050    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10051    \-*) ;;
10052    *) break;;
10053  esac
10054done
10055cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10056
10057
10058# We don't want -fno-exception wen compiling C++ code, so set the
10059# no_builtin_flag separately
10060if test "$GXX" = yes; then
10061  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10062else
10063  lt_prog_compiler_no_builtin_flag_CXX=
10064fi
10065
10066if test "$GXX" = yes; then
10067  # Set up default GNU C++ configuration
10068
10069
10070# Check whether --with-gnu-ld or --without-gnu-ld was given.
10071if test "${with_gnu_ld+set}" = set; then
10072  withval="$with_gnu_ld"
10073  test "$withval" = no || with_gnu_ld=yes
10074else
10075  with_gnu_ld=no
10076fi;
10077ac_prog=ld
10078if test "$GCC" = yes; then
10079  # Check if gcc -print-prog-name=ld gives a path.
10080  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10081echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10082  case $host in
10083  *-*-mingw*)
10084    # gcc leaves a trailing carriage return which upsets mingw
10085    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10086  *)
10087    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10088  esac
10089  case $ac_prog in
10090    # Accept absolute paths.
10091    [\\/]* | ?:[\\/]*)
10092      re_direlt='/[^/][^/]*/\.\./'
10093      # Canonicalize the pathname of ld
10094      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10095      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10096	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10097      done
10098      test -z "$LD" && LD="$ac_prog"
10099      ;;
10100  "")
10101    # If it fails, then pretend we aren't using GCC.
10102    ac_prog=ld
10103    ;;
10104  *)
10105    # If it is relative, then search for the first ld in PATH.
10106    with_gnu_ld=unknown
10107    ;;
10108  esac
10109elif test "$with_gnu_ld" = yes; then
10110  echo "$as_me:$LINENO: checking for GNU ld" >&5
10111echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10112else
10113  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10114echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10115fi
10116if test "${lt_cv_path_LD+set}" = set; then
10117  echo $ECHO_N "(cached) $ECHO_C" >&6
10118else
10119  if test -z "$LD"; then
10120  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10121  for ac_dir in $PATH; do
10122    IFS="$lt_save_ifs"
10123    test -z "$ac_dir" && ac_dir=.
10124    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10125      lt_cv_path_LD="$ac_dir/$ac_prog"
10126      # Check to see if the program is GNU ld.  I'd rather use --version,
10127      # but apparently some variants of GNU ld only accept -v.
10128      # Break only if it was the GNU/non-GNU ld that we prefer.
10129      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10130      *GNU* | *'with BFD'*)
10131	test "$with_gnu_ld" != no && break
10132	;;
10133      *)
10134	test "$with_gnu_ld" != yes && break
10135	;;
10136      esac
10137    fi
10138  done
10139  IFS="$lt_save_ifs"
10140else
10141  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10142fi
10143fi
10144
10145LD="$lt_cv_path_LD"
10146if test -n "$LD"; then
10147  echo "$as_me:$LINENO: result: $LD" >&5
10148echo "${ECHO_T}$LD" >&6
10149else
10150  echo "$as_me:$LINENO: result: no" >&5
10151echo "${ECHO_T}no" >&6
10152fi
10153test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10154echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10155   { (exit 1); exit 1; }; }
10156echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10157echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10158if test "${lt_cv_prog_gnu_ld+set}" = set; then
10159  echo $ECHO_N "(cached) $ECHO_C" >&6
10160else
10161  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10162case `$LD -v 2>&1 </dev/null` in
10163*GNU* | *'with BFD'*)
10164  lt_cv_prog_gnu_ld=yes
10165  ;;
10166*)
10167  lt_cv_prog_gnu_ld=no
10168  ;;
10169esac
10170fi
10171echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10172echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10173with_gnu_ld=$lt_cv_prog_gnu_ld
10174
10175
10176
10177  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10178  # archiving commands below assume that GNU ld is being used.
10179  if test "$with_gnu_ld" = yes; then
10180    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10181    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'
10182
10183    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10184    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10185
10186    # If archive_cmds runs LD, not CC, wlarc should be empty
10187    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10188    #     investigate it a little bit more. (MM)
10189    wlarc='${wl}'
10190
10191    # ancient GNU ld didn't support --whole-archive et. al.
10192    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10193	grep 'no-whole-archive' > /dev/null; then
10194      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10195    else
10196      whole_archive_flag_spec_CXX=
10197    fi
10198  else
10199    with_gnu_ld=no
10200    wlarc=
10201
10202    # A generic and very simple default shared library creation
10203    # command for GNU C++ for the case where it uses the native
10204    # linker, instead of GNU ld.  If possible, this setting should
10205    # overridden to take advantage of the native linker features on
10206    # the platform it is being used on.
10207    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10208  fi
10209
10210  # Commands to make compiler produce verbose output that lists
10211  # what "hidden" libraries, object files and flags are used when
10212  # linking a shared library.
10213  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10214
10215else
10216  GXX=no
10217  with_gnu_ld=no
10218  wlarc=
10219fi
10220
10221# PORTME: fill in a description of your system's C++ link characteristics
10222echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10223echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10224ld_shlibs_CXX=yes
10225case $host_os in
10226  aix3*)
10227    # FIXME: insert proper C++ library support
10228    ld_shlibs_CXX=no
10229    ;;
10230  aix4* | aix5*)
10231    if test "$host_cpu" = ia64; then
10232      # On IA64, the linker does run time linking by default, so we don't
10233      # have to do anything special.
10234      aix_use_runtimelinking=no
10235      exp_sym_flag='-Bexport'
10236      no_entry_flag=""
10237    else
10238      aix_use_runtimelinking=no
10239
10240      # Test if we are trying to use run time linking or normal
10241      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10242      # need to do runtime linking.
10243      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10244	for ld_flag in $LDFLAGS; do
10245	  case $ld_flag in
10246	  *-brtl*)
10247	    aix_use_runtimelinking=yes
10248	    break
10249	    ;;
10250	  esac
10251	done
10252	;;
10253      esac
10254
10255      exp_sym_flag='-bexport'
10256      no_entry_flag='-bnoentry'
10257    fi
10258
10259    # When large executables or shared objects are built, AIX ld can
10260    # have problems creating the table of contents.  If linking a library
10261    # or program results in "error TOC overflow" add -mminimal-toc to
10262    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10263    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10264
10265    archive_cmds_CXX=''
10266    hardcode_direct_CXX=yes
10267    hardcode_libdir_separator_CXX=':'
10268    link_all_deplibs_CXX=yes
10269
10270    if test "$GXX" = yes; then
10271      case $host_os in aix4.[012]|aix4.[012].*)
10272      # We only want to do this on AIX 4.2 and lower, the check
10273      # below for broken collect2 doesn't work under 4.3+
10274	collect2name=`${CC} -print-prog-name=collect2`
10275	if test -f "$collect2name" && \
10276	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10277	then
10278	  # We have reworked collect2
10279	  hardcode_direct_CXX=yes
10280	else
10281	  # We have old collect2
10282	  hardcode_direct_CXX=unsupported
10283	  # It fails to find uninstalled libraries when the uninstalled
10284	  # path is not listed in the libpath.  Setting hardcode_minus_L
10285	  # to unsupported forces relinking
10286	  hardcode_minus_L_CXX=yes
10287	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10288	  hardcode_libdir_separator_CXX=
10289	fi
10290	;;
10291      esac
10292      shared_flag='-shared'
10293      if test "$aix_use_runtimelinking" = yes; then
10294	shared_flag="$shared_flag "'${wl}-G'
10295      fi
10296    else
10297      # not using gcc
10298      if test "$host_cpu" = ia64; then
10299	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10300	# chokes on -Wl,-G. The following line is correct:
10301	shared_flag='-G'
10302      else
10303	if test "$aix_use_runtimelinking" = yes; then
10304	  shared_flag='${wl}-G'
10305	else
10306	  shared_flag='${wl}-bM:SRE'
10307	fi
10308      fi
10309    fi
10310
10311    # It seems that -bexpall does not export symbols beginning with
10312    # underscore (_), so it is better to generate a list of symbols to export.
10313    always_export_symbols_CXX=yes
10314    if test "$aix_use_runtimelinking" = yes; then
10315      # Warning - without using the other runtime loading flags (-brtl),
10316      # -berok will link without error, but may produce a broken library.
10317      allow_undefined_flag_CXX='-berok'
10318      # Determine the default libpath from the value encoded in an empty executable.
10319      cat >conftest.$ac_ext <<_ACEOF
10320/* confdefs.h.  */
10321_ACEOF
10322cat confdefs.h >>conftest.$ac_ext
10323cat >>conftest.$ac_ext <<_ACEOF
10324/* end confdefs.h.  */
10325
10326int
10327main ()
10328{
10329
10330  ;
10331  return 0;
10332}
10333_ACEOF
10334rm -f conftest.$ac_objext conftest$ac_exeext
10335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10336  (eval $ac_link) 2>conftest.er1
10337  ac_status=$?
10338  grep -v '^ *+' conftest.er1 >conftest.err
10339  rm -f conftest.er1
10340  cat conftest.err >&5
10341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342  (exit $ac_status); } &&
10343	 { ac_try='test -z "$ac_cxx_werror_flag"
10344			 || test ! -s conftest.err'
10345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10346  (eval $ac_try) 2>&5
10347  ac_status=$?
10348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349  (exit $ac_status); }; } &&
10350	 { ac_try='test -s conftest$ac_exeext'
10351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10352  (eval $ac_try) 2>&5
10353  ac_status=$?
10354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355  (exit $ac_status); }; }; then
10356
10357aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10358}'`
10359# Check for a 64-bit object if we didn't find anything.
10360if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10361}'`; fi
10362else
10363  echo "$as_me: failed program was:" >&5
10364sed 's/^/| /' conftest.$ac_ext >&5
10365
10366fi
10367rm -f conftest.err conftest.$ac_objext \
10368      conftest$ac_exeext conftest.$ac_ext
10369if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10370
10371      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10372
10373      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"
10374     else
10375      if test "$host_cpu" = ia64; then
10376	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10377	allow_undefined_flag_CXX="-z nodefs"
10378	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"
10379      else
10380	# Determine the default libpath from the value encoded in an empty executable.
10381	cat >conftest.$ac_ext <<_ACEOF
10382/* confdefs.h.  */
10383_ACEOF
10384cat confdefs.h >>conftest.$ac_ext
10385cat >>conftest.$ac_ext <<_ACEOF
10386/* end confdefs.h.  */
10387
10388int
10389main ()
10390{
10391
10392  ;
10393  return 0;
10394}
10395_ACEOF
10396rm -f conftest.$ac_objext conftest$ac_exeext
10397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10398  (eval $ac_link) 2>conftest.er1
10399  ac_status=$?
10400  grep -v '^ *+' conftest.er1 >conftest.err
10401  rm -f conftest.er1
10402  cat conftest.err >&5
10403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404  (exit $ac_status); } &&
10405	 { ac_try='test -z "$ac_cxx_werror_flag"
10406			 || test ! -s conftest.err'
10407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408  (eval $ac_try) 2>&5
10409  ac_status=$?
10410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411  (exit $ac_status); }; } &&
10412	 { ac_try='test -s conftest$ac_exeext'
10413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414  (eval $ac_try) 2>&5
10415  ac_status=$?
10416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417  (exit $ac_status); }; }; then
10418
10419aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10420}'`
10421# Check for a 64-bit object if we didn't find anything.
10422if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10423}'`; fi
10424else
10425  echo "$as_me: failed program was:" >&5
10426sed 's/^/| /' conftest.$ac_ext >&5
10427
10428fi
10429rm -f conftest.err conftest.$ac_objext \
10430      conftest$ac_exeext conftest.$ac_ext
10431if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10432
10433	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10434	# Warning - without using the other run time loading flags,
10435	# -berok will link without error, but may produce a broken library.
10436	no_undefined_flag_CXX=' ${wl}-bernotok'
10437	allow_undefined_flag_CXX=' ${wl}-berok'
10438	# Exported symbols can be pulled into shared objects from archives
10439	whole_archive_flag_spec_CXX='$convenience'
10440	archive_cmds_need_lc_CXX=yes
10441	# This is similar to how AIX traditionally builds its shared libraries.
10442	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'
10443      fi
10444    fi
10445    ;;
10446
10447  beos*)
10448    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10449      allow_undefined_flag_CXX=unsupported
10450      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10451      # support --undefined.  This deserves some investigation.  FIXME
10452      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10453    else
10454      ld_shlibs_CXX=no
10455    fi
10456    ;;
10457
10458  chorus*)
10459    case $cc_basename in
10460      *)
10461	# FIXME: insert proper C++ library support
10462	ld_shlibs_CXX=no
10463	;;
10464    esac
10465    ;;
10466
10467  cygwin* | mingw* | pw32*)
10468    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10469    # as there is no search path for DLLs.
10470    hardcode_libdir_flag_spec_CXX='-L$libdir'
10471    allow_undefined_flag_CXX=unsupported
10472    always_export_symbols_CXX=no
10473    enable_shared_with_static_runtimes_CXX=yes
10474
10475    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10476      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'
10477      # If the export-symbols file already is a .def file (1st line
10478      # is EXPORTS), use it as is; otherwise, prepend...
10479      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10480	cp $export_symbols $output_objdir/$soname.def;
10481      else
10482	echo EXPORTS > $output_objdir/$soname.def;
10483	cat $export_symbols >> $output_objdir/$soname.def;
10484      fi~
10485      $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'
10486    else
10487      ld_shlibs_CXX=no
10488    fi
10489  ;;
10490      darwin* | rhapsody*)
10491        case $host_os in
10492        rhapsody* | darwin1.[012])
10493         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10494         ;;
10495       *) # Darwin 1.3 on
10496         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10497           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10498         else
10499           case ${MACOSX_DEPLOYMENT_TARGET} in
10500             10.[012])
10501               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10502               ;;
10503             10.*)
10504               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10505               ;;
10506           esac
10507         fi
10508         ;;
10509        esac
10510      archive_cmds_need_lc_CXX=no
10511      hardcode_direct_CXX=no
10512      hardcode_automatic_CXX=yes
10513      hardcode_shlibpath_var_CXX=unsupported
10514      whole_archive_flag_spec_CXX=''
10515      link_all_deplibs_CXX=yes
10516
10517    if test "$GXX" = yes ; then
10518      lt_int_apple_cc_single_mod=no
10519      output_verbose_link_cmd='echo'
10520      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10521       lt_int_apple_cc_single_mod=yes
10522      fi
10523      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10524       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10525      else
10526          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'
10527        fi
10528        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10529        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10530          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10531            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10532          else
10533            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10534          fi
10535            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}'
10536      else
10537      case $cc_basename in
10538        xlc*)
10539         output_verbose_link_cmd='echo'
10540          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10541          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10542          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10543          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10544          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}'
10545          ;;
10546       *)
10547         ld_shlibs_CXX=no
10548          ;;
10549      esac
10550      fi
10551        ;;
10552
10553  dgux*)
10554    case $cc_basename in
10555      ec++*)
10556	# FIXME: insert proper C++ library support
10557	ld_shlibs_CXX=no
10558	;;
10559      ghcx*)
10560	# Green Hills C++ Compiler
10561	# FIXME: insert proper C++ library support
10562	ld_shlibs_CXX=no
10563	;;
10564      *)
10565	# FIXME: insert proper C++ library support
10566	ld_shlibs_CXX=no
10567	;;
10568    esac
10569    ;;
10570  freebsd[12]*)
10571    # C++ shared libraries reported to be fairly broken before switch to ELF
10572    ld_shlibs_CXX=no
10573    ;;
10574  freebsd-elf*)
10575    archive_cmds_need_lc_CXX=no
10576    ;;
10577  freebsd* | kfreebsd*-gnu | dragonfly*)
10578    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10579    # conventions
10580    ld_shlibs_CXX=yes
10581    ;;
10582  gnu*)
10583    ;;
10584  hpux9*)
10585    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10586    hardcode_libdir_separator_CXX=:
10587    export_dynamic_flag_spec_CXX='${wl}-E'
10588    hardcode_direct_CXX=yes
10589    hardcode_minus_L_CXX=yes # Not in the search PATH,
10590				# but as the default
10591				# location of the library.
10592
10593    case $cc_basename in
10594    CC*)
10595      # FIXME: insert proper C++ library support
10596      ld_shlibs_CXX=no
10597      ;;
10598    aCC*)
10599      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'
10600      # Commands to make compiler produce verbose output that lists
10601      # what "hidden" libraries, object files and flags are used when
10602      # linking a shared library.
10603      #
10604      # There doesn't appear to be a way to prevent this compiler from
10605      # explicitly linking system object files so we need to strip them
10606      # from the output so that they don't get included in the library
10607      # dependencies.
10608      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'
10609      ;;
10610    *)
10611      if test "$GXX" = yes; then
10612        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'
10613      else
10614        # FIXME: insert proper C++ library support
10615        ld_shlibs_CXX=no
10616      fi
10617      ;;
10618    esac
10619    ;;
10620  hpux10*|hpux11*)
10621    if test $with_gnu_ld = no; then
10622      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10623      hardcode_libdir_separator_CXX=:
10624
10625      case $host_cpu in
10626      hppa*64*|ia64*)
10627	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10628        ;;
10629      *)
10630	export_dynamic_flag_spec_CXX='${wl}-E'
10631        ;;
10632      esac
10633    fi
10634    case $host_cpu in
10635    hppa*64*|ia64*)
10636      hardcode_direct_CXX=no
10637      hardcode_shlibpath_var_CXX=no
10638      ;;
10639    *)
10640      hardcode_direct_CXX=yes
10641      hardcode_minus_L_CXX=yes # Not in the search PATH,
10642					      # but as the default
10643					      # location of the library.
10644      ;;
10645    esac
10646
10647    case $cc_basename in
10648      CC*)
10649	# FIXME: insert proper C++ library support
10650	ld_shlibs_CXX=no
10651	;;
10652      aCC*)
10653	case $host_cpu in
10654	hppa*64*)
10655	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10656	  ;;
10657	ia64*)
10658	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10659	  ;;
10660	*)
10661	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10662	  ;;
10663	esac
10664	# Commands to make compiler produce verbose output that lists
10665	# what "hidden" libraries, object files and flags are used when
10666	# linking a shared library.
10667	#
10668	# There doesn't appear to be a way to prevent this compiler from
10669	# explicitly linking system object files so we need to strip them
10670	# from the output so that they don't get included in the library
10671	# dependencies.
10672	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'
10673	;;
10674      *)
10675	if test "$GXX" = yes; then
10676	  if test $with_gnu_ld = no; then
10677	    case $host_cpu in
10678	    hppa*64*)
10679	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10680	      ;;
10681	    ia64*)
10682	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10683	      ;;
10684	    *)
10685	      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'
10686	      ;;
10687	    esac
10688	  fi
10689	else
10690	  # FIXME: insert proper C++ library support
10691	  ld_shlibs_CXX=no
10692	fi
10693	;;
10694    esac
10695    ;;
10696  interix3*)
10697    hardcode_direct_CXX=no
10698    hardcode_shlibpath_var_CXX=no
10699    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10700    export_dynamic_flag_spec_CXX='${wl}-E'
10701    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10702    # Instead, shared libraries are loaded at an image base (0x10000000 by
10703    # default) and relocated if they conflict, which is a slow very memory
10704    # consuming and fragmenting process.  To avoid this, we pick a random,
10705    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10706    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10707    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'
10708    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'
10709    ;;
10710  irix5* | irix6*)
10711    case $cc_basename in
10712      CC*)
10713	# SGI C++
10714	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'
10715
10716	# Archives containing C++ object files must be created using
10717	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10718	# necessary to make sure instantiated templates are included
10719	# in the archive.
10720	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10721	;;
10722      *)
10723	if test "$GXX" = yes; then
10724	  if test "$with_gnu_ld" = no; then
10725	    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'
10726	  else
10727	    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'
10728	  fi
10729	fi
10730	link_all_deplibs_CXX=yes
10731	;;
10732    esac
10733    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10734    hardcode_libdir_separator_CXX=:
10735    ;;
10736  linux*)
10737    case $cc_basename in
10738      KCC*)
10739	# Kuck and Associates, Inc. (KAI) C++ Compiler
10740
10741	# KCC will only create a shared library if the output file
10742	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10743	# to its proper name (with version) after linking.
10744	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'
10745	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'
10746	# Commands to make compiler produce verbose output that lists
10747	# what "hidden" libraries, object files and flags are used when
10748	# linking a shared library.
10749	#
10750	# There doesn't appear to be a way to prevent this compiler from
10751	# explicitly linking system object files so we need to strip them
10752	# from the output so that they don't get included in the library
10753	# dependencies.
10754	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'
10755
10756	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10757	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10758
10759	# Archives containing C++ object files must be created using
10760	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10761	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10762	;;
10763      icpc*)
10764	# Intel C++
10765	with_gnu_ld=yes
10766	# version 8.0 and above of icpc choke on multiply defined symbols
10767	# if we add $predep_objects and $postdep_objects, however 7.1 and
10768	# earlier do not add the objects themselves.
10769	case `$CC -V 2>&1` in
10770	*"Version 7."*)
10771  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10772  	  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'
10773	  ;;
10774	*)  # Version 8.0 or newer
10775	  tmp_idyn=
10776	  case $host_cpu in
10777	    ia64*) tmp_idyn=' -i_dynamic';;
10778	  esac
10779  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10780	  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'
10781	  ;;
10782	esac
10783	archive_cmds_need_lc_CXX=no
10784	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10785	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10786	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10787	;;
10788      pgCC*)
10789        # Portland Group C++ compiler
10790	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10791  	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'
10792
10793	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10794	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10795	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'
10796        ;;
10797      cxx*)
10798	# Compaq C++
10799	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10800	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'
10801
10802	runpath_var=LD_RUN_PATH
10803	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10804	hardcode_libdir_separator_CXX=:
10805
10806	# Commands to make compiler produce verbose output that lists
10807	# what "hidden" libraries, object files and flags are used when
10808	# linking a shared library.
10809	#
10810	# There doesn't appear to be a way to prevent this compiler from
10811	# explicitly linking system object files so we need to strip them
10812	# from the output so that they don't get included in the library
10813	# dependencies.
10814	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'
10815	;;
10816    esac
10817    ;;
10818  lynxos*)
10819    # FIXME: insert proper C++ library support
10820    ld_shlibs_CXX=no
10821    ;;
10822  m88k*)
10823    # FIXME: insert proper C++ library support
10824    ld_shlibs_CXX=no
10825    ;;
10826  mvs*)
10827    case $cc_basename in
10828      cxx*)
10829	# FIXME: insert proper C++ library support
10830	ld_shlibs_CXX=no
10831	;;
10832      *)
10833	# FIXME: insert proper C++ library support
10834	ld_shlibs_CXX=no
10835	;;
10836    esac
10837    ;;
10838  netbsd*)
10839    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10840      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10841      wlarc=
10842      hardcode_libdir_flag_spec_CXX='-R$libdir'
10843      hardcode_direct_CXX=yes
10844      hardcode_shlibpath_var_CXX=no
10845    fi
10846    # Workaround some broken pre-1.5 toolchains
10847    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10848    ;;
10849  openbsd2*)
10850    # C++ shared libraries are fairly broken
10851    ld_shlibs_CXX=no
10852    ;;
10853  openbsd*)
10854    hardcode_direct_CXX=yes
10855    hardcode_shlibpath_var_CXX=no
10856    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10857    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10858    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10859      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10860      export_dynamic_flag_spec_CXX='${wl}-E'
10861      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10862    fi
10863    output_verbose_link_cmd='echo'
10864    ;;
10865  osf3*)
10866    case $cc_basename in
10867      KCC*)
10868	# Kuck and Associates, Inc. (KAI) C++ Compiler
10869
10870	# KCC will only create a shared library if the output file
10871	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10872	# to its proper name (with version) after linking.
10873	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'
10874
10875	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10876	hardcode_libdir_separator_CXX=:
10877
10878	# Archives containing C++ object files must be created using
10879	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10880	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10881
10882	;;
10883      RCC*)
10884	# Rational C++ 2.4.1
10885	# FIXME: insert proper C++ library support
10886	ld_shlibs_CXX=no
10887	;;
10888      cxx*)
10889	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10890	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'
10891
10892	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10893	hardcode_libdir_separator_CXX=:
10894
10895	# Commands to make compiler produce verbose output that lists
10896	# what "hidden" libraries, object files and flags are used when
10897	# linking a shared library.
10898	#
10899	# There doesn't appear to be a way to prevent this compiler from
10900	# explicitly linking system object files so we need to strip them
10901	# from the output so that they don't get included in the library
10902	# dependencies.
10903	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'
10904	;;
10905      *)
10906	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10907	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10908	  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'
10909
10910	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10911	  hardcode_libdir_separator_CXX=:
10912
10913	  # Commands to make compiler produce verbose output that lists
10914	  # what "hidden" libraries, object files and flags are used when
10915	  # linking a shared library.
10916	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10917
10918	else
10919	  # FIXME: insert proper C++ library support
10920	  ld_shlibs_CXX=no
10921	fi
10922	;;
10923    esac
10924    ;;
10925  osf4* | osf5*)
10926    case $cc_basename in
10927      KCC*)
10928	# Kuck and Associates, Inc. (KAI) C++ Compiler
10929
10930	# KCC will only create a shared library if the output file
10931	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10932	# to its proper name (with version) after linking.
10933	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'
10934
10935	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10936	hardcode_libdir_separator_CXX=:
10937
10938	# Archives containing C++ object files must be created using
10939	# the KAI C++ compiler.
10940	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10941	;;
10942      RCC*)
10943	# Rational C++ 2.4.1
10944	# FIXME: insert proper C++ library support
10945	ld_shlibs_CXX=no
10946	;;
10947      cxx*)
10948	allow_undefined_flag_CXX=' -expect_unresolved \*'
10949	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'
10950	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10951	  echo "-hidden">> $lib.exp~
10952	  $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~
10953	  $rm $lib.exp'
10954
10955	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10956	hardcode_libdir_separator_CXX=:
10957
10958	# Commands to make compiler produce verbose output that lists
10959	# what "hidden" libraries, object files and flags are used when
10960	# linking a shared library.
10961	#
10962	# There doesn't appear to be a way to prevent this compiler from
10963	# explicitly linking system object files so we need to strip them
10964	# from the output so that they don't get included in the library
10965	# dependencies.
10966	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'
10967	;;
10968      *)
10969	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10970	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10971	 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'
10972
10973	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10974	  hardcode_libdir_separator_CXX=:
10975
10976	  # Commands to make compiler produce verbose output that lists
10977	  # what "hidden" libraries, object files and flags are used when
10978	  # linking a shared library.
10979	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10980
10981	else
10982	  # FIXME: insert proper C++ library support
10983	  ld_shlibs_CXX=no
10984	fi
10985	;;
10986    esac
10987    ;;
10988  psos*)
10989    # FIXME: insert proper C++ library support
10990    ld_shlibs_CXX=no
10991    ;;
10992  sunos4*)
10993    case $cc_basename in
10994      CC*)
10995	# Sun C++ 4.x
10996	# FIXME: insert proper C++ library support
10997	ld_shlibs_CXX=no
10998	;;
10999      lcc*)
11000	# Lucid
11001	# FIXME: insert proper C++ library support
11002	ld_shlibs_CXX=no
11003	;;
11004      *)
11005	# FIXME: insert proper C++ library support
11006	ld_shlibs_CXX=no
11007	;;
11008    esac
11009    ;;
11010  solaris*)
11011    case $cc_basename in
11012      CC*)
11013	# Sun C++ 4.2, 5.x and Centerline C++
11014        archive_cmds_need_lc_CXX=yes
11015	no_undefined_flag_CXX=' -zdefs'
11016	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11017	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11018	$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'
11019
11020	hardcode_libdir_flag_spec_CXX='-R$libdir'
11021	hardcode_shlibpath_var_CXX=no
11022	case $host_os in
11023	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11024	  *)
11025	    # The C++ compiler is used as linker so we must use $wl
11026	    # flag to pass the commands to the underlying system
11027	    # linker. We must also pass each convience library through
11028	    # to the system linker between allextract/defaultextract.
11029	    # The C++ compiler will combine linker options so we
11030	    # cannot just pass the convience library names through
11031	    # without $wl.
11032	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11033	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11034	    ;;
11035	esac
11036	link_all_deplibs_CXX=yes
11037
11038	output_verbose_link_cmd='echo'
11039
11040	# Archives containing C++ object files must be created using
11041	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11042	# necessary to make sure instantiated templates are included
11043	# in the archive.
11044	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11045	;;
11046      gcx*)
11047	# Green Hills C++ Compiler
11048	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11049
11050	# The C++ compiler must be used to create the archive.
11051	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11052	;;
11053      *)
11054	# GNU C++ compiler with Solaris linker
11055	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11056	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11057	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11058	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11059	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11060		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11061
11062	    # Commands to make compiler produce verbose output that lists
11063	    # what "hidden" libraries, object files and flags are used when
11064	    # linking a shared library.
11065	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11066	  else
11067	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11068	    # platform.
11069	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11070	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11071		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11072
11073	    # Commands to make compiler produce verbose output that lists
11074	    # what "hidden" libraries, object files and flags are used when
11075	    # linking a shared library.
11076	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11077	  fi
11078
11079	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11080	fi
11081	;;
11082    esac
11083    ;;
11084  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11085    no_undefined_flag_CXX='${wl}-z,text'
11086    archive_cmds_need_lc_CXX=no
11087    hardcode_shlibpath_var_CXX=no
11088    runpath_var='LD_RUN_PATH'
11089
11090    case $cc_basename in
11091      CC*)
11092	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11093	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11094	;;
11095      *)
11096	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11097	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11098	;;
11099    esac
11100    ;;
11101  sysv5* | sco3.2v5* | sco5v6*)
11102    # Note: We can NOT use -z defs as we might desire, because we do not
11103    # link with -lc, and that would cause any symbols used from libc to
11104    # always be unresolved, which means just about no library would
11105    # ever link correctly.  If we're not using GNU ld we use -z text
11106    # though, which does catch some bad symbols but isn't as heavy-handed
11107    # as -z defs.
11108    # For security reasons, it is highly recommended that you always
11109    # use absolute paths for naming shared libraries, and exclude the
11110    # DT_RUNPATH tag from executables and libraries.  But doing so
11111    # requires that you compile everything twice, which is a pain.
11112    # So that behaviour is only enabled if SCOABSPATH is set to a
11113    # non-empty value in the environment.  Most likely only useful for
11114    # creating official distributions of packages.
11115    # This is a hack until libtool officially supports absolute path
11116    # names for shared libraries.
11117    no_undefined_flag_CXX='${wl}-z,text'
11118    allow_undefined_flag_CXX='${wl}-z,nodefs'
11119    archive_cmds_need_lc_CXX=no
11120    hardcode_shlibpath_var_CXX=no
11121    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11122    hardcode_libdir_separator_CXX=':'
11123    link_all_deplibs_CXX=yes
11124    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11125    runpath_var='LD_RUN_PATH'
11126
11127    case $cc_basename in
11128      CC*)
11129	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11130	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11131	;;
11132      *)
11133	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11134	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11135	;;
11136    esac
11137    ;;
11138  tandem*)
11139    case $cc_basename in
11140      NCC*)
11141	# NonStop-UX NCC 3.20
11142	# FIXME: insert proper C++ library support
11143	ld_shlibs_CXX=no
11144	;;
11145      *)
11146	# FIXME: insert proper C++ library support
11147	ld_shlibs_CXX=no
11148	;;
11149    esac
11150    ;;
11151  vxworks*)
11152    # FIXME: insert proper C++ library support
11153    ld_shlibs_CXX=no
11154    ;;
11155  *)
11156    # FIXME: insert proper C++ library support
11157    ld_shlibs_CXX=no
11158    ;;
11159esac
11160echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11161echo "${ECHO_T}$ld_shlibs_CXX" >&6
11162test "$ld_shlibs_CXX" = no && can_build_shared=no
11163
11164GCC_CXX="$GXX"
11165LD_CXX="$LD"
11166
11167
11168cat > conftest.$ac_ext <<EOF
11169class Foo
11170{
11171public:
11172  Foo (void) { a = 0; }
11173private:
11174  int a;
11175};
11176EOF
11177
11178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11179  (eval $ac_compile) 2>&5
11180  ac_status=$?
11181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182  (exit $ac_status); }; then
11183  # Parse the compiler output and extract the necessary
11184  # objects, libraries and library flags.
11185
11186  # Sentinel used to keep track of whether or not we are before
11187  # the conftest object file.
11188  pre_test_object_deps_done=no
11189
11190  # The `*' in the case matches for architectures that use `case' in
11191  # $output_verbose_cmd can trigger glob expansion during the loop
11192  # eval without this substitution.
11193  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11194
11195  for p in `eval $output_verbose_link_cmd`; do
11196    case $p in
11197
11198    -L* | -R* | -l*)
11199       # Some compilers place space between "-{L,R}" and the path.
11200       # Remove the space.
11201       if test $p = "-L" \
11202	  || test $p = "-R"; then
11203	 prev=$p
11204	 continue
11205       else
11206	 prev=
11207       fi
11208
11209       if test "$pre_test_object_deps_done" = no; then
11210	 case $p in
11211	 -L* | -R*)
11212	   # Internal compiler library paths should come after those
11213	   # provided the user.  The postdeps already come after the
11214	   # user supplied libs so there is no need to process them.
11215	   if test -z "$compiler_lib_search_path_CXX"; then
11216	     compiler_lib_search_path_CXX="${prev}${p}"
11217	   else
11218	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11219	   fi
11220	   ;;
11221	 # The "-l" case would never come before the object being
11222	 # linked, so don't bother handling this case.
11223	 esac
11224       else
11225	 if test -z "$postdeps_CXX"; then
11226	   postdeps_CXX="${prev}${p}"
11227	 else
11228	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11229	 fi
11230       fi
11231       ;;
11232
11233    *.$objext)
11234       # This assumes that the test object file only shows up
11235       # once in the compiler output.
11236       if test "$p" = "conftest.$objext"; then
11237	 pre_test_object_deps_done=yes
11238	 continue
11239       fi
11240
11241       if test "$pre_test_object_deps_done" = no; then
11242	 if test -z "$predep_objects_CXX"; then
11243	   predep_objects_CXX="$p"
11244	 else
11245	   predep_objects_CXX="$predep_objects_CXX $p"
11246	 fi
11247       else
11248	 if test -z "$postdep_objects_CXX"; then
11249	   postdep_objects_CXX="$p"
11250	 else
11251	   postdep_objects_CXX="$postdep_objects_CXX $p"
11252	 fi
11253       fi
11254       ;;
11255
11256    *) ;; # Ignore the rest.
11257
11258    esac
11259  done
11260
11261  # Clean up.
11262  rm -f a.out a.exe
11263else
11264  echo "libtool.m4: error: problem compiling CXX test program"
11265fi
11266
11267$rm -f confest.$objext
11268
11269# PORTME: override above test on systems where it is broken
11270case $host_os in
11271interix3*)
11272  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11273  # hack all around it, let's just trust "g++" to DTRT.
11274  predep_objects_CXX=
11275  postdep_objects_CXX=
11276  postdeps_CXX=
11277  ;;
11278
11279solaris*)
11280  case $cc_basename in
11281  CC*)
11282    # Adding this requires a known-good setup of shared libraries for
11283    # Sun compiler versions before 5.6, else PIC objects from an old
11284    # archive will be linked into the output, leading to subtle bugs.
11285    postdeps_CXX='-lCstd -lCrun'
11286    ;;
11287  esac
11288  ;;
11289esac
11290
11291
11292case " $postdeps_CXX " in
11293*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11294esac
11295
11296lt_prog_compiler_wl_CXX=
11297lt_prog_compiler_pic_CXX=
11298lt_prog_compiler_static_CXX=
11299
11300echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11301echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11302
11303  # C++ specific cases for pic, static, wl, etc.
11304  if test "$GXX" = yes; then
11305    lt_prog_compiler_wl_CXX='-Wl,'
11306    lt_prog_compiler_static_CXX='-static'
11307
11308    case $host_os in
11309    aix*)
11310      # All AIX code is PIC.
11311      if test "$host_cpu" = ia64; then
11312	# AIX 5 now supports IA64 processor
11313	lt_prog_compiler_static_CXX='-Bstatic'
11314      fi
11315      ;;
11316    amigaos*)
11317      # FIXME: we need at least 68020 code to build shared libraries, but
11318      # adding the `-m68020' flag to GCC prevents building anything better,
11319      # like `-m68040'.
11320      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11321      ;;
11322    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11323      # PIC is the default for these OSes.
11324      ;;
11325    mingw* | os2* | pw32*)
11326      # This hack is so that the source file can tell whether it is being
11327      # built for inclusion in a dll (and should export symbols for example).
11328      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11329      ;;
11330    darwin* | rhapsody*)
11331      # PIC is the default on this platform
11332      # Common symbols not allowed in MH_DYLIB files
11333      lt_prog_compiler_pic_CXX='-fno-common'
11334      ;;
11335    *djgpp*)
11336      # DJGPP does not support shared libraries at all
11337      lt_prog_compiler_pic_CXX=
11338      ;;
11339    interix3*)
11340      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11341      # Instead, we relocate shared libraries at runtime.
11342      ;;
11343    sysv4*MP*)
11344      if test -d /usr/nec; then
11345	lt_prog_compiler_pic_CXX=-Kconform_pic
11346      fi
11347      ;;
11348    hpux*)
11349      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11350      # not for PA HP-UX.
11351      case $host_cpu in
11352      hppa*64*|ia64*)
11353	;;
11354      *)
11355	lt_prog_compiler_pic_CXX='-fPIC'
11356	;;
11357      esac
11358      ;;
11359    *)
11360      lt_prog_compiler_pic_CXX='-fPIC'
11361      ;;
11362    esac
11363  else
11364    case $host_os in
11365      aix4* | aix5*)
11366	# All AIX code is PIC.
11367	if test "$host_cpu" = ia64; then
11368	  # AIX 5 now supports IA64 processor
11369	  lt_prog_compiler_static_CXX='-Bstatic'
11370	else
11371	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11372	fi
11373	;;
11374      chorus*)
11375	case $cc_basename in
11376	cxch68*)
11377	  # Green Hills C++ Compiler
11378	  # _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"
11379	  ;;
11380	esac
11381	;;
11382       darwin*)
11383         # PIC is the default on this platform
11384         # Common symbols not allowed in MH_DYLIB files
11385         case $cc_basename in
11386           xlc*)
11387           lt_prog_compiler_pic_CXX='-qnocommon'
11388           lt_prog_compiler_wl_CXX='-Wl,'
11389           ;;
11390         esac
11391       ;;
11392      dgux*)
11393	case $cc_basename in
11394	  ec++*)
11395	    lt_prog_compiler_pic_CXX='-KPIC'
11396	    ;;
11397	  ghcx*)
11398	    # Green Hills C++ Compiler
11399	    lt_prog_compiler_pic_CXX='-pic'
11400	    ;;
11401	  *)
11402	    ;;
11403	esac
11404	;;
11405      freebsd* | kfreebsd*-gnu | dragonfly*)
11406	# FreeBSD uses GNU C++
11407	;;
11408      hpux9* | hpux10* | hpux11*)
11409	case $cc_basename in
11410	  CC*)
11411	    lt_prog_compiler_wl_CXX='-Wl,'
11412	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11413	    if test "$host_cpu" != ia64; then
11414	      lt_prog_compiler_pic_CXX='+Z'
11415	    fi
11416	    ;;
11417	  aCC*)
11418	    lt_prog_compiler_wl_CXX='-Wl,'
11419	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11420	    case $host_cpu in
11421	    hppa*64*|ia64*)
11422	      # +Z the default
11423	      ;;
11424	    *)
11425	      lt_prog_compiler_pic_CXX='+Z'
11426	      ;;
11427	    esac
11428	    ;;
11429	  *)
11430	    ;;
11431	esac
11432	;;
11433      interix*)
11434	# This is c89, which is MS Visual C++ (no shared libs)
11435	# Anyone wants to do a port?
11436	;;
11437      irix5* | irix6* | nonstopux*)
11438	case $cc_basename in
11439	  CC*)
11440	    lt_prog_compiler_wl_CXX='-Wl,'
11441	    lt_prog_compiler_static_CXX='-non_shared'
11442	    # CC pic flag -KPIC is the default.
11443	    ;;
11444	  *)
11445	    ;;
11446	esac
11447	;;
11448      linux*)
11449	case $cc_basename in
11450	  KCC*)
11451	    # KAI C++ Compiler
11452	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11453	    lt_prog_compiler_pic_CXX='-fPIC'
11454	    ;;
11455	  icpc* | ecpc*)
11456	    # Intel C++
11457	    lt_prog_compiler_wl_CXX='-Wl,'
11458	    lt_prog_compiler_pic_CXX='-KPIC'
11459	    lt_prog_compiler_static_CXX='-static'
11460	    ;;
11461	  pgCC*)
11462	    # Portland Group C++ compiler.
11463	    lt_prog_compiler_wl_CXX='-Wl,'
11464	    lt_prog_compiler_pic_CXX='-fpic'
11465	    lt_prog_compiler_static_CXX='-Bstatic'
11466	    ;;
11467	  cxx*)
11468	    # Compaq C++
11469	    # Make sure the PIC flag is empty.  It appears that all Alpha
11470	    # Linux and Compaq Tru64 Unix objects are PIC.
11471	    lt_prog_compiler_pic_CXX=
11472	    lt_prog_compiler_static_CXX='-non_shared'
11473	    ;;
11474	  *)
11475	    ;;
11476	esac
11477	;;
11478      lynxos*)
11479	;;
11480      m88k*)
11481	;;
11482      mvs*)
11483	case $cc_basename in
11484	  cxx*)
11485	    lt_prog_compiler_pic_CXX='-W c,exportall'
11486	    ;;
11487	  *)
11488	    ;;
11489	esac
11490	;;
11491      netbsd*)
11492	;;
11493      osf3* | osf4* | osf5*)
11494	case $cc_basename in
11495	  KCC*)
11496	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11497	    ;;
11498	  RCC*)
11499	    # Rational C++ 2.4.1
11500	    lt_prog_compiler_pic_CXX='-pic'
11501	    ;;
11502	  cxx*)
11503	    # Digital/Compaq C++
11504	    lt_prog_compiler_wl_CXX='-Wl,'
11505	    # Make sure the PIC flag is empty.  It appears that all Alpha
11506	    # Linux and Compaq Tru64 Unix objects are PIC.
11507	    lt_prog_compiler_pic_CXX=
11508	    lt_prog_compiler_static_CXX='-non_shared'
11509	    ;;
11510	  *)
11511	    ;;
11512	esac
11513	;;
11514      psos*)
11515	;;
11516      solaris*)
11517	case $cc_basename in
11518	  CC*)
11519	    # Sun C++ 4.2, 5.x and Centerline C++
11520	    lt_prog_compiler_pic_CXX='-KPIC'
11521	    lt_prog_compiler_static_CXX='-Bstatic'
11522	    lt_prog_compiler_wl_CXX='-Qoption ld '
11523	    ;;
11524	  gcx*)
11525	    # Green Hills C++ Compiler
11526	    lt_prog_compiler_pic_CXX='-PIC'
11527	    ;;
11528	  *)
11529	    ;;
11530	esac
11531	;;
11532      sunos4*)
11533	case $cc_basename in
11534	  CC*)
11535	    # Sun C++ 4.x
11536	    lt_prog_compiler_pic_CXX='-pic'
11537	    lt_prog_compiler_static_CXX='-Bstatic'
11538	    ;;
11539	  lcc*)
11540	    # Lucid
11541	    lt_prog_compiler_pic_CXX='-pic'
11542	    ;;
11543	  *)
11544	    ;;
11545	esac
11546	;;
11547      tandem*)
11548	case $cc_basename in
11549	  NCC*)
11550	    # NonStop-UX NCC 3.20
11551	    lt_prog_compiler_pic_CXX='-KPIC'
11552	    ;;
11553	  *)
11554	    ;;
11555	esac
11556	;;
11557      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11558	case $cc_basename in
11559	  CC*)
11560	    lt_prog_compiler_wl_CXX='-Wl,'
11561	    lt_prog_compiler_pic_CXX='-KPIC'
11562	    lt_prog_compiler_static_CXX='-Bstatic'
11563	    ;;
11564	esac
11565	;;
11566      vxworks*)
11567	;;
11568      *)
11569	lt_prog_compiler_can_build_shared_CXX=no
11570	;;
11571    esac
11572  fi
11573
11574echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11575echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11576
11577#
11578# Check to make sure the PIC flag actually works.
11579#
11580if test -n "$lt_prog_compiler_pic_CXX"; then
11581
11582echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11583echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11584if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11585  echo $ECHO_N "(cached) $ECHO_C" >&6
11586else
11587  lt_prog_compiler_pic_works_CXX=no
11588  ac_outfile=conftest.$ac_objext
11589   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11590   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11591   # Insert the option either (1) after the last *FLAGS variable, or
11592   # (2) before a word containing "conftest.", or (3) at the end.
11593   # Note that $ac_compile itself does not contain backslashes and begins
11594   # with a dollar sign (not a hyphen), so the echo should work correctly.
11595   # The option is referenced via a variable to avoid confusing sed.
11596   lt_compile=`echo "$ac_compile" | $SED \
11597   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11598   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11599   -e 's:$: $lt_compiler_flag:'`
11600   (eval echo "\"\$as_me:11600: $lt_compile\"" >&5)
11601   (eval "$lt_compile" 2>conftest.err)
11602   ac_status=$?
11603   cat conftest.err >&5
11604   echo "$as_me:11604: \$? = $ac_status" >&5
11605   if (exit $ac_status) && test -s "$ac_outfile"; then
11606     # The compiler can only warn and ignore the option if not recognized
11607     # So say no if there are warnings other than the usual output.
11608     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11609     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11610     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11611       lt_prog_compiler_pic_works_CXX=yes
11612     fi
11613   fi
11614   $rm conftest*
11615
11616fi
11617echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11618echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11619
11620if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11621    case $lt_prog_compiler_pic_CXX in
11622     "" | " "*) ;;
11623     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11624     esac
11625else
11626    lt_prog_compiler_pic_CXX=
11627     lt_prog_compiler_can_build_shared_CXX=no
11628fi
11629
11630fi
11631case $host_os in
11632  # For platforms which do not support PIC, -DPIC is meaningless:
11633  *djgpp*)
11634    lt_prog_compiler_pic_CXX=
11635    ;;
11636  *)
11637    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11638    ;;
11639esac
11640
11641#
11642# Check to make sure the static flag actually works.
11643#
11644wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11645echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11646echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11647if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11648  echo $ECHO_N "(cached) $ECHO_C" >&6
11649else
11650  lt_prog_compiler_static_works_CXX=no
11651   save_LDFLAGS="$LDFLAGS"
11652   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11653   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11654   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11655     # The linker can only warn and ignore the option if not recognized
11656     # So say no if there are warnings
11657     if test -s conftest.err; then
11658       # Append any errors to the config.log.
11659       cat conftest.err 1>&5
11660       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11661       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11662       if diff conftest.exp conftest.er2 >/dev/null; then
11663         lt_prog_compiler_static_works_CXX=yes
11664       fi
11665     else
11666       lt_prog_compiler_static_works_CXX=yes
11667     fi
11668   fi
11669   $rm conftest*
11670   LDFLAGS="$save_LDFLAGS"
11671
11672fi
11673echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11674echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11675
11676if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11677    :
11678else
11679    lt_prog_compiler_static_CXX=
11680fi
11681
11682
11683echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11684echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11685if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11686  echo $ECHO_N "(cached) $ECHO_C" >&6
11687else
11688  lt_cv_prog_compiler_c_o_CXX=no
11689   $rm -r conftest 2>/dev/null
11690   mkdir conftest
11691   cd conftest
11692   mkdir out
11693   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11694
11695   lt_compiler_flag="-o out/conftest2.$ac_objext"
11696   # Insert the option either (1) after the last *FLAGS variable, or
11697   # (2) before a word containing "conftest.", or (3) at the end.
11698   # Note that $ac_compile itself does not contain backslashes and begins
11699   # with a dollar sign (not a hyphen), so the echo should work correctly.
11700   lt_compile=`echo "$ac_compile" | $SED \
11701   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11702   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11703   -e 's:$: $lt_compiler_flag:'`
11704   (eval echo "\"\$as_me:11704: $lt_compile\"" >&5)
11705   (eval "$lt_compile" 2>out/conftest.err)
11706   ac_status=$?
11707   cat out/conftest.err >&5
11708   echo "$as_me:11708: \$? = $ac_status" >&5
11709   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11710   then
11711     # The compiler can only warn and ignore the option if not recognized
11712     # So say no if there are warnings
11713     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11714     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11715     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11716       lt_cv_prog_compiler_c_o_CXX=yes
11717     fi
11718   fi
11719   chmod u+w . 2>&5
11720   $rm conftest*
11721   # SGI C++ compiler will create directory out/ii_files/ for
11722   # template instantiation
11723   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11724   $rm out/* && rmdir out
11725   cd ..
11726   rmdir conftest
11727   $rm conftest*
11728
11729fi
11730echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11731echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11732
11733
11734hard_links="nottested"
11735if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11736  # do not overwrite the value of need_locks provided by the user
11737  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11738echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11739  hard_links=yes
11740  $rm conftest*
11741  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11742  touch conftest.a
11743  ln conftest.a conftest.b 2>&5 || hard_links=no
11744  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11745  echo "$as_me:$LINENO: result: $hard_links" >&5
11746echo "${ECHO_T}$hard_links" >&6
11747  if test "$hard_links" = no; then
11748    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11749echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11750    need_locks=warn
11751  fi
11752else
11753  need_locks=no
11754fi
11755
11756echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11757echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11758
11759  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11760  case $host_os in
11761  aix4* | aix5*)
11762    # If we're using GNU nm, then we don't want the "-C" option.
11763    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11764    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11765      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'
11766    else
11767      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'
11768    fi
11769    ;;
11770  pw32*)
11771    export_symbols_cmds_CXX="$ltdll_cmds"
11772  ;;
11773  cygwin* | mingw*)
11774    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'
11775  ;;
11776  *)
11777    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11778  ;;
11779  esac
11780
11781echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11782echo "${ECHO_T}$ld_shlibs_CXX" >&6
11783test "$ld_shlibs_CXX" = no && can_build_shared=no
11784
11785#
11786# Do we need to explicitly link libc?
11787#
11788case "x$archive_cmds_need_lc_CXX" in
11789x|xyes)
11790  # Assume -lc should be added
11791  archive_cmds_need_lc_CXX=yes
11792
11793  if test "$enable_shared" = yes && test "$GCC" = yes; then
11794    case $archive_cmds_CXX in
11795    *'~'*)
11796      # FIXME: we may have to deal with multi-command sequences.
11797      ;;
11798    '$CC '*)
11799      # Test whether the compiler implicitly links with -lc since on some
11800      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11801      # to ld, don't add -lc before -lgcc.
11802      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11803echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11804      $rm conftest*
11805      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11806
11807      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11808  (eval $ac_compile) 2>&5
11809  ac_status=$?
11810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811  (exit $ac_status); } 2>conftest.err; then
11812        soname=conftest
11813        lib=conftest
11814        libobjs=conftest.$ac_objext
11815        deplibs=
11816        wl=$lt_prog_compiler_wl_CXX
11817	pic_flag=$lt_prog_compiler_pic_CXX
11818        compiler_flags=-v
11819        linker_flags=-v
11820        verstring=
11821        output_objdir=.
11822        libname=conftest
11823        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11824        allow_undefined_flag_CXX=
11825        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11826  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11827  ac_status=$?
11828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829  (exit $ac_status); }
11830        then
11831	  archive_cmds_need_lc_CXX=no
11832        else
11833	  archive_cmds_need_lc_CXX=yes
11834        fi
11835        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11836      else
11837        cat conftest.err 1>&5
11838      fi
11839      $rm conftest*
11840      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11841echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11842      ;;
11843    esac
11844  fi
11845  ;;
11846esac
11847
11848echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11849echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11850library_names_spec=
11851libname_spec='lib$name'
11852soname_spec=
11853shrext_cmds=".so"
11854postinstall_cmds=
11855postuninstall_cmds=
11856finish_cmds=
11857finish_eval=
11858shlibpath_var=
11859shlibpath_overrides_runpath=unknown
11860version_type=none
11861dynamic_linker="$host_os ld.so"
11862sys_lib_dlsearch_path_spec="/lib /usr/lib"
11863if test "$GCC" = yes; then
11864  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11865  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11866    # if the path contains ";" then we assume it to be the separator
11867    # otherwise default to the standard path separator (i.e. ":") - it is
11868    # assumed that no part of a normal pathname contains ";" but that should
11869    # okay in the real world where ";" in dirpaths is itself problematic.
11870    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11871  else
11872    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11873  fi
11874else
11875  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11876fi
11877need_lib_prefix=unknown
11878hardcode_into_libs=no
11879
11880# when you set need_version to no, make sure it does not cause -set_version
11881# flags to be left without arguments
11882need_version=unknown
11883
11884case $host_os in
11885aix3*)
11886  version_type=linux
11887  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11888  shlibpath_var=LIBPATH
11889
11890  # AIX 3 has no versioning support, so we append a major version to the name.
11891  soname_spec='${libname}${release}${shared_ext}$major'
11892  ;;
11893
11894aix4* | aix5*)
11895  version_type=linux
11896  need_lib_prefix=no
11897  need_version=no
11898  hardcode_into_libs=yes
11899  if test "$host_cpu" = ia64; then
11900    # AIX 5 supports IA64
11901    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11902    shlibpath_var=LD_LIBRARY_PATH
11903  else
11904    # With GCC up to 2.95.x, collect2 would create an import file
11905    # for dependence libraries.  The import file would start with
11906    # the line `#! .'.  This would cause the generated library to
11907    # depend on `.', always an invalid library.  This was fixed in
11908    # development snapshots of GCC prior to 3.0.
11909    case $host_os in
11910      aix4 | aix4.[01] | aix4.[01].*)
11911      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11912	   echo ' yes '
11913	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11914	:
11915      else
11916	can_build_shared=no
11917      fi
11918      ;;
11919    esac
11920    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11921    # soname into executable. Probably we can add versioning support to
11922    # collect2, so additional links can be useful in future.
11923    if test "$aix_use_runtimelinking" = yes; then
11924      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11925      # instead of lib<name>.a to let people know that these are not
11926      # typical AIX shared libraries.
11927      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11928    else
11929      # We preserve .a as extension for shared libraries through AIX4.2
11930      # and later when we are not doing run time linking.
11931      library_names_spec='${libname}${release}.a $libname.a'
11932      soname_spec='${libname}${release}${shared_ext}$major'
11933    fi
11934    shlibpath_var=LIBPATH
11935  fi
11936  ;;
11937
11938amigaos*)
11939  library_names_spec='$libname.ixlibrary $libname.a'
11940  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11941  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'
11942  ;;
11943
11944beos*)
11945  library_names_spec='${libname}${shared_ext}'
11946  dynamic_linker="$host_os ld.so"
11947  shlibpath_var=LIBRARY_PATH
11948  ;;
11949
11950bsdi[45]*)
11951  version_type=linux
11952  need_version=no
11953  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11954  soname_spec='${libname}${release}${shared_ext}$major'
11955  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11956  shlibpath_var=LD_LIBRARY_PATH
11957  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11958  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11959  # the default ld.so.conf also contains /usr/contrib/lib and
11960  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11961  # libtool to hard-code these into programs
11962  ;;
11963
11964cygwin* | mingw* | pw32*)
11965  version_type=windows
11966  shrext_cmds=".dll"
11967  need_version=no
11968  need_lib_prefix=no
11969
11970  case $GCC,$host_os in
11971  yes,cygwin* | yes,mingw* | yes,pw32*)
11972    library_names_spec='$libname.dll.a'
11973    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11974    postinstall_cmds='base_file=`basename \${file}`~
11975      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11976      dldir=$destdir/`dirname \$dlpath`~
11977      test -d \$dldir || mkdir -p \$dldir~
11978      $install_prog $dir/$dlname \$dldir/$dlname~
11979      chmod a+x \$dldir/$dlname'
11980    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11981      dlpath=$dir/\$dldll~
11982       $rm \$dlpath'
11983    shlibpath_overrides_runpath=yes
11984
11985    case $host_os in
11986    cygwin*)
11987      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11988      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11989      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11990      ;;
11991    mingw*)
11992      # MinGW DLLs use traditional 'lib' prefix
11993      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11994      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11995      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11996        # It is most probably a Windows format PATH printed by
11997        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11998        # path with ; separators, and with drive letters. We can handle the
11999        # drive letters (cygwin fileutils understands them), so leave them,
12000        # especially as we might pass files found there to a mingw objdump,
12001        # which wouldn't understand a cygwinified path. Ahh.
12002        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12003      else
12004        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12005      fi
12006      ;;
12007    pw32*)
12008      # pw32 DLLs use 'pw' prefix rather than 'lib'
12009      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12010      ;;
12011    esac
12012    ;;
12013
12014  linux*)
12015    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12016      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12017      supports_anon_versioning=no
12018      case `$LD -v 2>/dev/null` in
12019        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12020        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12021        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12022        *\ 2.11.*) ;; # other 2.11 versions
12023        *) supports_anon_versioning=yes ;;
12024      esac
12025      if test $supports_anon_versioning = yes; then
12026        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12027cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12028$echo "local: *; };" >> $output_objdir/$libname.ver~
12029        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12030      else
12031        $archive_expsym_cmds="$archive_cmds"
12032      fi
12033    else
12034      ld_shlibs=no
12035    fi
12036    ;;
12037
12038  *)
12039    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12040    ;;
12041  esac
12042  dynamic_linker='Win32 ld.exe'
12043  # FIXME: first we should search . and the directory the executable is in
12044  shlibpath_var=PATH
12045  ;;
12046
12047darwin* | rhapsody*)
12048  dynamic_linker="$host_os dyld"
12049  version_type=darwin
12050  need_lib_prefix=no
12051  need_version=no
12052  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12053  soname_spec='${libname}${release}${major}$shared_ext'
12054  shlibpath_overrides_runpath=yes
12055  shlibpath_var=DYLD_LIBRARY_PATH
12056  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12057  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12058  if test "$GCC" = yes; then
12059    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12060  else
12061    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12062  fi
12063  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12064  ;;
12065
12066dgux*)
12067  version_type=linux
12068  need_lib_prefix=no
12069  need_version=no
12070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12071  soname_spec='${libname}${release}${shared_ext}$major'
12072  shlibpath_var=LD_LIBRARY_PATH
12073  ;;
12074
12075freebsd1*)
12076  dynamic_linker=no
12077  ;;
12078
12079kfreebsd*-gnu)
12080  version_type=linux
12081  need_lib_prefix=no
12082  need_version=no
12083  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12084  soname_spec='${libname}${release}${shared_ext}$major'
12085  shlibpath_var=LD_LIBRARY_PATH
12086  shlibpath_overrides_runpath=no
12087  hardcode_into_libs=yes
12088  dynamic_linker='GNU ld.so'
12089  ;;
12090
12091freebsd* | dragonfly*)
12092  # DragonFly does not have aout.  When/if they implement a new
12093  # versioning mechanism, adjust this.
12094  if test -x /usr/bin/objformat; then
12095    objformat=`/usr/bin/objformat`
12096  else
12097    case $host_os in
12098    freebsd[123]*) objformat=aout ;;
12099    *) objformat=elf ;;
12100    esac
12101  fi
12102  # Handle Gentoo/FreeBSD as it was Linux
12103  case $host_vendor in
12104    gentoo)
12105      version_type=linux ;;
12106    *)
12107      version_type=freebsd-$objformat ;;
12108  esac
12109
12110  case $version_type in
12111    freebsd-elf*)
12112      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12113      need_version=no
12114      need_lib_prefix=no
12115      ;;
12116    freebsd-*)
12117      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12118      need_version=yes
12119      ;;
12120    linux)
12121      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12122      soname_spec='${libname}${release}${shared_ext}$major'
12123      need_lib_prefix=no
12124      need_version=no
12125      ;;
12126  esac
12127  shlibpath_var=LD_LIBRARY_PATH
12128  case $host_os in
12129  freebsd2*)
12130    shlibpath_overrides_runpath=yes
12131    ;;
12132  freebsd3.[01]* | freebsdelf3.[01]*)
12133    shlibpath_overrides_runpath=yes
12134    hardcode_into_libs=yes
12135    ;;
12136  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12137  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12138    shlibpath_overrides_runpath=no
12139    hardcode_into_libs=yes
12140    ;;
12141  freebsd*) # from 4.6 on
12142    shlibpath_overrides_runpath=yes
12143    hardcode_into_libs=yes
12144    ;;
12145  esac
12146  ;;
12147
12148gnu*)
12149  version_type=linux
12150  need_lib_prefix=no
12151  need_version=no
12152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12153  soname_spec='${libname}${release}${shared_ext}$major'
12154  shlibpath_var=LD_LIBRARY_PATH
12155  hardcode_into_libs=yes
12156  ;;
12157
12158hpux9* | hpux10* | hpux11*)
12159  # Give a soname corresponding to the major version so that dld.sl refuses to
12160  # link against other versions.
12161  version_type=sunos
12162  need_lib_prefix=no
12163  need_version=no
12164  case $host_cpu in
12165  ia64*)
12166    shrext_cmds='.so'
12167    hardcode_into_libs=yes
12168    dynamic_linker="$host_os dld.so"
12169    shlibpath_var=LD_LIBRARY_PATH
12170    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12171    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12172    soname_spec='${libname}${release}${shared_ext}$major'
12173    if test "X$HPUX_IA64_MODE" = X32; then
12174      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12175    else
12176      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12177    fi
12178    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12179    ;;
12180   hppa*64*)
12181     shrext_cmds='.sl'
12182     hardcode_into_libs=yes
12183     dynamic_linker="$host_os dld.sl"
12184     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12185     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12186     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12187     soname_spec='${libname}${release}${shared_ext}$major'
12188     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12189     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12190     ;;
12191   *)
12192    shrext_cmds='.sl'
12193    dynamic_linker="$host_os dld.sl"
12194    shlibpath_var=SHLIB_PATH
12195    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12196    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12197    soname_spec='${libname}${release}${shared_ext}$major'
12198    ;;
12199  esac
12200  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12201  postinstall_cmds='chmod 555 $lib'
12202  ;;
12203
12204interix3*)
12205  version_type=linux
12206  need_lib_prefix=no
12207  need_version=no
12208  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12209  soname_spec='${libname}${release}${shared_ext}$major'
12210  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12211  shlibpath_var=LD_LIBRARY_PATH
12212  shlibpath_overrides_runpath=no
12213  hardcode_into_libs=yes
12214  ;;
12215
12216irix5* | irix6* | nonstopux*)
12217  case $host_os in
12218    nonstopux*) version_type=nonstopux ;;
12219    *)
12220	if test "$lt_cv_prog_gnu_ld" = yes; then
12221		version_type=linux
12222	else
12223		version_type=irix
12224	fi ;;
12225  esac
12226  need_lib_prefix=no
12227  need_version=no
12228  soname_spec='${libname}${release}${shared_ext}$major'
12229  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12230  case $host_os in
12231  irix5* | nonstopux*)
12232    libsuff= shlibsuff=
12233    ;;
12234  *)
12235    case $LD in # libtool.m4 will add one of these switches to LD
12236    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12237      libsuff= shlibsuff= libmagic=32-bit;;
12238    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12239      libsuff=32 shlibsuff=N32 libmagic=N32;;
12240    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12241      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12242    *) libsuff= shlibsuff= libmagic=never-match;;
12243    esac
12244    ;;
12245  esac
12246  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12247  shlibpath_overrides_runpath=no
12248  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12249  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12250  hardcode_into_libs=yes
12251  ;;
12252
12253# No shared lib support for Linux oldld, aout, or coff.
12254linux*oldld* | linux*aout* | linux*coff*)
12255  dynamic_linker=no
12256  ;;
12257
12258# This must be Linux ELF.
12259linux*)
12260  version_type=linux
12261  need_lib_prefix=no
12262  need_version=no
12263  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12264  soname_spec='${libname}${release}${shared_ext}$major'
12265  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12266  shlibpath_var=LD_LIBRARY_PATH
12267  shlibpath_overrides_runpath=no
12268  # This implies no fast_install, which is unacceptable.
12269  # Some rework will be needed to allow for fast_install
12270  # before this can be enabled.
12271  hardcode_into_libs=yes
12272
12273  # Append ld.so.conf contents to the search path
12274  if test -f /etc/ld.so.conf; then
12275    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12276    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12277  fi
12278
12279  # We used to test for /lib/ld.so.1 and disable shared libraries on
12280  # powerpc, because MkLinux only supported shared libraries with the
12281  # GNU dynamic linker.  Since this was broken with cross compilers,
12282  # most powerpc-linux boxes support dynamic linking these days and
12283  # people can always --disable-shared, the test was removed, and we
12284  # assume the GNU/Linux dynamic linker is in use.
12285  dynamic_linker='GNU/Linux ld.so'
12286  ;;
12287
12288knetbsd*-gnu)
12289  version_type=linux
12290  need_lib_prefix=no
12291  need_version=no
12292  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12293  soname_spec='${libname}${release}${shared_ext}$major'
12294  shlibpath_var=LD_LIBRARY_PATH
12295  shlibpath_overrides_runpath=no
12296  hardcode_into_libs=yes
12297  dynamic_linker='GNU ld.so'
12298  ;;
12299
12300netbsd*)
12301  version_type=sunos
12302  need_lib_prefix=no
12303  need_version=no
12304  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12305    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12306    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12307    dynamic_linker='NetBSD (a.out) ld.so'
12308  else
12309    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12310    soname_spec='${libname}${release}${shared_ext}$major'
12311    dynamic_linker='NetBSD ld.elf_so'
12312  fi
12313  shlibpath_var=LD_LIBRARY_PATH
12314  shlibpath_overrides_runpath=yes
12315  hardcode_into_libs=yes
12316  ;;
12317
12318newsos6)
12319  version_type=linux
12320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12321  shlibpath_var=LD_LIBRARY_PATH
12322  shlibpath_overrides_runpath=yes
12323  ;;
12324
12325nto-qnx*)
12326  version_type=linux
12327  need_lib_prefix=no
12328  need_version=no
12329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12330  soname_spec='${libname}${release}${shared_ext}$major'
12331  shlibpath_var=LD_LIBRARY_PATH
12332  shlibpath_overrides_runpath=yes
12333  ;;
12334
12335openbsd*)
12336  version_type=sunos
12337  sys_lib_dlsearch_path_spec="/usr/lib"
12338  need_lib_prefix=no
12339  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12340  case $host_os in
12341    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12342    *)                         need_version=no  ;;
12343  esac
12344  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12345  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12346  shlibpath_var=LD_LIBRARY_PATH
12347  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12348    case $host_os in
12349      openbsd2.[89] | openbsd2.[89].*)
12350	shlibpath_overrides_runpath=no
12351	;;
12352      *)
12353	shlibpath_overrides_runpath=yes
12354	;;
12355      esac
12356  else
12357    shlibpath_overrides_runpath=yes
12358  fi
12359  ;;
12360
12361os2*)
12362  libname_spec='$name'
12363  shrext_cmds=".dll"
12364  need_lib_prefix=no
12365  library_names_spec='$libname${shared_ext} $libname.a'
12366  dynamic_linker='OS/2 ld.exe'
12367  shlibpath_var=LIBPATH
12368  ;;
12369
12370osf3* | osf4* | osf5*)
12371  version_type=osf
12372  need_lib_prefix=no
12373  need_version=no
12374  soname_spec='${libname}${release}${shared_ext}$major'
12375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12376  shlibpath_var=LD_LIBRARY_PATH
12377  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12378  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12379  ;;
12380
12381solaris*)
12382  version_type=linux
12383  need_lib_prefix=no
12384  need_version=no
12385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12386  soname_spec='${libname}${release}${shared_ext}$major'
12387  shlibpath_var=LD_LIBRARY_PATH
12388  shlibpath_overrides_runpath=yes
12389  hardcode_into_libs=yes
12390  # ldd complains unless libraries are executable
12391  postinstall_cmds='chmod +x $lib'
12392  ;;
12393
12394sunos4*)
12395  version_type=sunos
12396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12397  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12398  shlibpath_var=LD_LIBRARY_PATH
12399  shlibpath_overrides_runpath=yes
12400  if test "$with_gnu_ld" = yes; then
12401    need_lib_prefix=no
12402  fi
12403  need_version=yes
12404  ;;
12405
12406sysv4 | sysv4.3*)
12407  version_type=linux
12408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12409  soname_spec='${libname}${release}${shared_ext}$major'
12410  shlibpath_var=LD_LIBRARY_PATH
12411  case $host_vendor in
12412    sni)
12413      shlibpath_overrides_runpath=no
12414      need_lib_prefix=no
12415      export_dynamic_flag_spec='${wl}-Blargedynsym'
12416      runpath_var=LD_RUN_PATH
12417      ;;
12418    siemens)
12419      need_lib_prefix=no
12420      ;;
12421    motorola)
12422      need_lib_prefix=no
12423      need_version=no
12424      shlibpath_overrides_runpath=no
12425      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12426      ;;
12427  esac
12428  ;;
12429
12430sysv4*MP*)
12431  if test -d /usr/nec ;then
12432    version_type=linux
12433    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12434    soname_spec='$libname${shared_ext}.$major'
12435    shlibpath_var=LD_LIBRARY_PATH
12436  fi
12437  ;;
12438
12439sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12440  version_type=freebsd-elf
12441  need_lib_prefix=no
12442  need_version=no
12443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12444  soname_spec='${libname}${release}${shared_ext}$major'
12445  shlibpath_var=LD_LIBRARY_PATH
12446  hardcode_into_libs=yes
12447  if test "$with_gnu_ld" = yes; then
12448    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12449    shlibpath_overrides_runpath=no
12450  else
12451    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12452    shlibpath_overrides_runpath=yes
12453    case $host_os in
12454      sco3.2v5*)
12455        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12456	;;
12457    esac
12458  fi
12459  sys_lib_dlsearch_path_spec='/usr/lib'
12460  ;;
12461
12462uts4*)
12463  version_type=linux
12464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12465  soname_spec='${libname}${release}${shared_ext}$major'
12466  shlibpath_var=LD_LIBRARY_PATH
12467  ;;
12468
12469*)
12470  dynamic_linker=no
12471  ;;
12472esac
12473echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12474echo "${ECHO_T}$dynamic_linker" >&6
12475test "$dynamic_linker" = no && can_build_shared=no
12476
12477variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12478if test "$GCC" = yes; then
12479  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12480fi
12481
12482echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12483echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12484hardcode_action_CXX=
12485if test -n "$hardcode_libdir_flag_spec_CXX" || \
12486   test -n "$runpath_var_CXX" || \
12487   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12488
12489  # We can hardcode non-existant directories.
12490  if test "$hardcode_direct_CXX" != no &&
12491     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12492     # have to relink, otherwise we might link with an installed library
12493     # when we should be linking with a yet-to-be-installed one
12494     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12495     test "$hardcode_minus_L_CXX" != no; then
12496    # Linking always hardcodes the temporary library directory.
12497    hardcode_action_CXX=relink
12498  else
12499    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12500    hardcode_action_CXX=immediate
12501  fi
12502else
12503  # We cannot hardcode anything, or else we can only hardcode existing
12504  # directories.
12505  hardcode_action_CXX=unsupported
12506fi
12507echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12508echo "${ECHO_T}$hardcode_action_CXX" >&6
12509
12510if test "$hardcode_action_CXX" = relink; then
12511  # Fast installation is not supported
12512  enable_fast_install=no
12513elif test "$shlibpath_overrides_runpath" = yes ||
12514     test "$enable_shared" = no; then
12515  # Fast installation is not necessary
12516  enable_fast_install=needless
12517fi
12518
12519
12520# The else clause should only fire when bootstrapping the
12521# libtool distribution, otherwise you forgot to ship ltmain.sh
12522# with your package, and you will get complaints that there are
12523# no rules to generate ltmain.sh.
12524if test -f "$ltmain"; then
12525  # See if we are running on zsh, and set the options which allow our commands through
12526  # without removal of \ escapes.
12527  if test -n "${ZSH_VERSION+set}" ; then
12528    setopt NO_GLOB_SUBST
12529  fi
12530  # Now quote all the things that may contain metacharacters while being
12531  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12532  # variables and quote the copies for generation of the libtool script.
12533  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12534    SED SHELL STRIP \
12535    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12536    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12537    deplibs_check_method reload_flag reload_cmds need_locks \
12538    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12539    lt_cv_sys_global_symbol_to_c_name_address \
12540    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12541    old_postinstall_cmds old_postuninstall_cmds \
12542    compiler_CXX \
12543    CC_CXX \
12544    LD_CXX \
12545    lt_prog_compiler_wl_CXX \
12546    lt_prog_compiler_pic_CXX \
12547    lt_prog_compiler_static_CXX \
12548    lt_prog_compiler_no_builtin_flag_CXX \
12549    export_dynamic_flag_spec_CXX \
12550    thread_safe_flag_spec_CXX \
12551    whole_archive_flag_spec_CXX \
12552    enable_shared_with_static_runtimes_CXX \
12553    old_archive_cmds_CXX \
12554    old_archive_from_new_cmds_CXX \
12555    predep_objects_CXX \
12556    postdep_objects_CXX \
12557    predeps_CXX \
12558    postdeps_CXX \
12559    compiler_lib_search_path_CXX \
12560    archive_cmds_CXX \
12561    archive_expsym_cmds_CXX \
12562    postinstall_cmds_CXX \
12563    postuninstall_cmds_CXX \
12564    old_archive_from_expsyms_cmds_CXX \
12565    allow_undefined_flag_CXX \
12566    no_undefined_flag_CXX \
12567    export_symbols_cmds_CXX \
12568    hardcode_libdir_flag_spec_CXX \
12569    hardcode_libdir_flag_spec_ld_CXX \
12570    hardcode_libdir_separator_CXX \
12571    hardcode_automatic_CXX \
12572    module_cmds_CXX \
12573    module_expsym_cmds_CXX \
12574    lt_cv_prog_compiler_c_o_CXX \
12575    exclude_expsyms_CXX \
12576    include_expsyms_CXX; do
12577
12578    case $var in
12579    old_archive_cmds_CXX | \
12580    old_archive_from_new_cmds_CXX | \
12581    archive_cmds_CXX | \
12582    archive_expsym_cmds_CXX | \
12583    module_cmds_CXX | \
12584    module_expsym_cmds_CXX | \
12585    old_archive_from_expsyms_cmds_CXX | \
12586    export_symbols_cmds_CXX | \
12587    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12588    postinstall_cmds | postuninstall_cmds | \
12589    old_postinstall_cmds | old_postuninstall_cmds | \
12590    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12591      # Double-quote double-evaled strings.
12592      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12593      ;;
12594    *)
12595      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12596      ;;
12597    esac
12598  done
12599
12600  case $lt_echo in
12601  *'\$0 --fallback-echo"')
12602    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12603    ;;
12604  esac
12605
12606cfgfile="$ofile"
12607
12608  cat <<__EOF__ >> "$cfgfile"
12609# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12610
12611# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12612
12613# Shell to use when invoking shell scripts.
12614SHELL=$lt_SHELL
12615
12616# Whether or not to build shared libraries.
12617build_libtool_libs=$enable_shared
12618
12619# Whether or not to build static libraries.
12620build_old_libs=$enable_static
12621
12622# Whether or not to add -lc for building shared libraries.
12623build_libtool_need_lc=$archive_cmds_need_lc_CXX
12624
12625# Whether or not to disallow shared libs when runtime libs are static
12626allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12627
12628# Whether or not to optimize for fast installation.
12629fast_install=$enable_fast_install
12630
12631# The host system.
12632host_alias=$host_alias
12633host=$host
12634host_os=$host_os
12635
12636# The build system.
12637build_alias=$build_alias
12638build=$build
12639build_os=$build_os
12640
12641# An echo program that does not interpret backslashes.
12642echo=$lt_echo
12643
12644# The archiver.
12645AR=$lt_AR
12646AR_FLAGS=$lt_AR_FLAGS
12647
12648# A C compiler.
12649LTCC=$lt_LTCC
12650
12651# LTCC compiler flags.
12652LTCFLAGS=$lt_LTCFLAGS
12653
12654# A language-specific compiler.
12655CC=$lt_compiler_CXX
12656
12657# Is the compiler the GNU C compiler?
12658with_gcc=$GCC_CXX
12659
12660# An ERE matcher.
12661EGREP=$lt_EGREP
12662
12663# The linker used to build libraries.
12664LD=$lt_LD_CXX
12665
12666# Whether we need hard or soft links.
12667LN_S=$lt_LN_S
12668
12669# A BSD-compatible nm program.
12670NM=$lt_NM
12671
12672# A symbol stripping program
12673STRIP=$lt_STRIP
12674
12675# Used to examine libraries when file_magic_cmd begins "file"
12676MAGIC_CMD=$MAGIC_CMD
12677
12678# Used on cygwin: DLL creation program.
12679DLLTOOL="$DLLTOOL"
12680
12681# Used on cygwin: object dumper.
12682OBJDUMP="$OBJDUMP"
12683
12684# Used on cygwin: assembler.
12685AS="$AS"
12686
12687# The name of the directory that contains temporary libtool files.
12688objdir=$objdir
12689
12690# How to create reloadable object files.
12691reload_flag=$lt_reload_flag
12692reload_cmds=$lt_reload_cmds
12693
12694# How to pass a linker flag through the compiler.
12695wl=$lt_lt_prog_compiler_wl_CXX
12696
12697# Object file suffix (normally "o").
12698objext="$ac_objext"
12699
12700# Old archive suffix (normally "a").
12701libext="$libext"
12702
12703# Shared library suffix (normally ".so").
12704shrext_cmds='$shrext_cmds'
12705
12706# Executable file suffix (normally "").
12707exeext="$exeext"
12708
12709# Additional compiler flags for building library objects.
12710pic_flag=$lt_lt_prog_compiler_pic_CXX
12711pic_mode=$pic_mode
12712
12713# What is the maximum length of a command?
12714max_cmd_len=$lt_cv_sys_max_cmd_len
12715
12716# Does compiler simultaneously support -c and -o options?
12717compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12718
12719# Must we lock files when doing compilation?
12720need_locks=$lt_need_locks
12721
12722# Do we need the lib prefix for modules?
12723need_lib_prefix=$need_lib_prefix
12724
12725# Do we need a version for libraries?
12726need_version=$need_version
12727
12728# Whether dlopen is supported.
12729dlopen_support=$enable_dlopen
12730
12731# Whether dlopen of programs is supported.
12732dlopen_self=$enable_dlopen_self
12733
12734# Whether dlopen of statically linked programs is supported.
12735dlopen_self_static=$enable_dlopen_self_static
12736
12737# Compiler flag to prevent dynamic linking.
12738link_static_flag=$lt_lt_prog_compiler_static_CXX
12739
12740# Compiler flag to turn off builtin functions.
12741no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12742
12743# Compiler flag to allow reflexive dlopens.
12744export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12745
12746# Compiler flag to generate shared objects directly from archives.
12747whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12748
12749# Compiler flag to generate thread-safe objects.
12750thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12751
12752# Library versioning type.
12753version_type=$version_type
12754
12755# Format of library name prefix.
12756libname_spec=$lt_libname_spec
12757
12758# List of archive names.  First name is the real one, the rest are links.
12759# The last name is the one that the linker finds with -lNAME.
12760library_names_spec=$lt_library_names_spec
12761
12762# The coded name of the library, if different from the real name.
12763soname_spec=$lt_soname_spec
12764
12765# Commands used to build and install an old-style archive.
12766RANLIB=$lt_RANLIB
12767old_archive_cmds=$lt_old_archive_cmds_CXX
12768old_postinstall_cmds=$lt_old_postinstall_cmds
12769old_postuninstall_cmds=$lt_old_postuninstall_cmds
12770
12771# Create an old-style archive from a shared archive.
12772old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12773
12774# Create a temporary old-style archive to link instead of a shared archive.
12775old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12776
12777# Commands used to build and install a shared archive.
12778archive_cmds=$lt_archive_cmds_CXX
12779archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12780postinstall_cmds=$lt_postinstall_cmds
12781postuninstall_cmds=$lt_postuninstall_cmds
12782
12783# Commands used to build a loadable module (assumed same as above if empty)
12784module_cmds=$lt_module_cmds_CXX
12785module_expsym_cmds=$lt_module_expsym_cmds_CXX
12786
12787# Commands to strip libraries.
12788old_striplib=$lt_old_striplib
12789striplib=$lt_striplib
12790
12791# Dependencies to place before the objects being linked to create a
12792# shared library.
12793predep_objects=$lt_predep_objects_CXX
12794
12795# Dependencies to place after the objects being linked to create a
12796# shared library.
12797postdep_objects=$lt_postdep_objects_CXX
12798
12799# Dependencies to place before the objects being linked to create a
12800# shared library.
12801predeps=$lt_predeps_CXX
12802
12803# Dependencies to place after the objects being linked to create a
12804# shared library.
12805postdeps=$lt_postdeps_CXX
12806
12807# The library search path used internally by the compiler when linking
12808# a shared library.
12809compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12810
12811# Method to check whether dependent libraries are shared objects.
12812deplibs_check_method=$lt_deplibs_check_method
12813
12814# Command to use when deplibs_check_method == file_magic.
12815file_magic_cmd=$lt_file_magic_cmd
12816
12817# Flag that allows shared libraries with undefined symbols to be built.
12818allow_undefined_flag=$lt_allow_undefined_flag_CXX
12819
12820# Flag that forces no undefined symbols.
12821no_undefined_flag=$lt_no_undefined_flag_CXX
12822
12823# Commands used to finish a libtool library installation in a directory.
12824finish_cmds=$lt_finish_cmds
12825
12826# Same as above, but a single script fragment to be evaled but not shown.
12827finish_eval=$lt_finish_eval
12828
12829# Take the output of nm and produce a listing of raw symbols and C names.
12830global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12831
12832# Transform the output of nm in a proper C declaration
12833global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12834
12835# Transform the output of nm in a C name address pair
12836global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12837
12838# This is the shared library runtime path variable.
12839runpath_var=$runpath_var
12840
12841# This is the shared library path variable.
12842shlibpath_var=$shlibpath_var
12843
12844# Is shlibpath searched before the hard-coded library search path?
12845shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12846
12847# How to hardcode a shared library path into an executable.
12848hardcode_action=$hardcode_action_CXX
12849
12850# Whether we should hardcode library paths into libraries.
12851hardcode_into_libs=$hardcode_into_libs
12852
12853# Flag to hardcode \$libdir into a binary during linking.
12854# This must work even if \$libdir does not exist.
12855hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12856
12857# If ld is used when linking, flag to hardcode \$libdir into
12858# a binary during linking. This must work even if \$libdir does
12859# not exist.
12860hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12861
12862# Whether we need a single -rpath flag with a separated argument.
12863hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12864
12865# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12866# resulting binary.
12867hardcode_direct=$hardcode_direct_CXX
12868
12869# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12870# resulting binary.
12871hardcode_minus_L=$hardcode_minus_L_CXX
12872
12873# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12874# the resulting binary.
12875hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12876
12877# Set to yes if building a shared library automatically hardcodes DIR into the library
12878# and all subsequent libraries and executables linked against it.
12879hardcode_automatic=$hardcode_automatic_CXX
12880
12881# Variables whose values should be saved in libtool wrapper scripts and
12882# restored at relink time.
12883variables_saved_for_relink="$variables_saved_for_relink"
12884
12885# Whether libtool must link a program against all its dependency libraries.
12886link_all_deplibs=$link_all_deplibs_CXX
12887
12888# Compile-time system search path for libraries
12889sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12890
12891# Run-time system search path for libraries
12892sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12893
12894# Fix the shell variable \$srcfile for the compiler.
12895fix_srcfile_path="$fix_srcfile_path_CXX"
12896
12897# Set to yes if exported symbols are required.
12898always_export_symbols=$always_export_symbols_CXX
12899
12900# The commands to list exported symbols.
12901export_symbols_cmds=$lt_export_symbols_cmds_CXX
12902
12903# The commands to extract the exported symbol list from a shared archive.
12904extract_expsyms_cmds=$lt_extract_expsyms_cmds
12905
12906# Symbols that should not be listed in the preloaded symbols.
12907exclude_expsyms=$lt_exclude_expsyms_CXX
12908
12909# Symbols that must always be exported.
12910include_expsyms=$lt_include_expsyms_CXX
12911
12912# ### END LIBTOOL TAG CONFIG: $tagname
12913
12914__EOF__
12915
12916
12917else
12918  # If there is no Makefile yet, we rely on a make rule to execute
12919  # `config.status --recheck' to rerun these tests and create the
12920  # libtool script then.
12921  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12922  if test -f "$ltmain_in"; then
12923    test -f Makefile && make "$ltmain"
12924  fi
12925fi
12926
12927
12928ac_ext=c
12929ac_cpp='$CPP $CPPFLAGS'
12930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12932ac_compiler_gnu=$ac_cv_c_compiler_gnu
12933
12934CC=$lt_save_CC
12935LDCXX=$LD
12936LD=$lt_save_LD
12937GCC=$lt_save_GCC
12938with_gnu_ldcxx=$with_gnu_ld
12939with_gnu_ld=$lt_save_with_gnu_ld
12940lt_cv_path_LDCXX=$lt_cv_path_LD
12941lt_cv_path_LD=$lt_save_path_LD
12942lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12943lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12944
12945	else
12946	  tagname=""
12947	fi
12948	;;
12949
12950      F77)
12951	if test -n "$F77" && test "X$F77" != "Xno"; then
12952
12953ac_ext=f
12954ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12955ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12956ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12957
12958
12959archive_cmds_need_lc_F77=no
12960allow_undefined_flag_F77=
12961always_export_symbols_F77=no
12962archive_expsym_cmds_F77=
12963export_dynamic_flag_spec_F77=
12964hardcode_direct_F77=no
12965hardcode_libdir_flag_spec_F77=
12966hardcode_libdir_flag_spec_ld_F77=
12967hardcode_libdir_separator_F77=
12968hardcode_minus_L_F77=no
12969hardcode_automatic_F77=no
12970module_cmds_F77=
12971module_expsym_cmds_F77=
12972link_all_deplibs_F77=unknown
12973old_archive_cmds_F77=$old_archive_cmds
12974no_undefined_flag_F77=
12975whole_archive_flag_spec_F77=
12976enable_shared_with_static_runtimes_F77=no
12977
12978# Source file extension for f77 test sources.
12979ac_ext=f
12980
12981# Object file extension for compiled f77 test sources.
12982objext=o
12983objext_F77=$objext
12984
12985# Code to be used in simple compile tests
12986lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12987
12988# Code to be used in simple link tests
12989lt_simple_link_test_code="      program t\n      end\n"
12990
12991# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12992
12993# If no C compiler was specified, use CC.
12994LTCC=${LTCC-"$CC"}
12995
12996# If no C compiler flags were specified, use CFLAGS.
12997LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12998
12999# Allow CC to be a program name with arguments.
13000compiler=$CC
13001
13002
13003# save warnings/boilerplate of simple test code
13004ac_outfile=conftest.$ac_objext
13005printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13006eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13007_lt_compiler_boilerplate=`cat conftest.err`
13008$rm conftest*
13009
13010ac_outfile=conftest.$ac_objext
13011printf "$lt_simple_link_test_code" >conftest.$ac_ext
13012eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13013_lt_linker_boilerplate=`cat conftest.err`
13014$rm conftest*
13015
13016
13017# Allow CC to be a program name with arguments.
13018lt_save_CC="$CC"
13019CC=${F77-"f77"}
13020compiler=$CC
13021compiler_F77=$CC
13022for cc_temp in $compiler""; do
13023  case $cc_temp in
13024    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13025    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13026    \-*) ;;
13027    *) break;;
13028  esac
13029done
13030cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13031
13032
13033echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13034echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13035echo "$as_me:$LINENO: result: $can_build_shared" >&5
13036echo "${ECHO_T}$can_build_shared" >&6
13037
13038echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13039echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13040test "$can_build_shared" = "no" && enable_shared=no
13041
13042# On AIX, shared libraries and static libraries use the same namespace, and
13043# are all built from PIC.
13044case $host_os in
13045aix3*)
13046  test "$enable_shared" = yes && enable_static=no
13047  if test -n "$RANLIB"; then
13048    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13049    postinstall_cmds='$RANLIB $lib'
13050  fi
13051  ;;
13052aix4* | aix5*)
13053  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13054    test "$enable_shared" = yes && enable_static=no
13055  fi
13056  ;;
13057esac
13058echo "$as_me:$LINENO: result: $enable_shared" >&5
13059echo "${ECHO_T}$enable_shared" >&6
13060
13061echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13062echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13063# Make sure either enable_shared or enable_static is yes.
13064test "$enable_shared" = yes || enable_static=yes
13065echo "$as_me:$LINENO: result: $enable_static" >&5
13066echo "${ECHO_T}$enable_static" >&6
13067
13068GCC_F77="$G77"
13069LD_F77="$LD"
13070
13071lt_prog_compiler_wl_F77=
13072lt_prog_compiler_pic_F77=
13073lt_prog_compiler_static_F77=
13074
13075echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13076echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13077
13078  if test "$GCC" = yes; then
13079    lt_prog_compiler_wl_F77='-Wl,'
13080    lt_prog_compiler_static_F77='-static'
13081
13082    case $host_os in
13083      aix*)
13084      # All AIX code is PIC.
13085      if test "$host_cpu" = ia64; then
13086	# AIX 5 now supports IA64 processor
13087	lt_prog_compiler_static_F77='-Bstatic'
13088      fi
13089      ;;
13090
13091    amigaos*)
13092      # FIXME: we need at least 68020 code to build shared libraries, but
13093      # adding the `-m68020' flag to GCC prevents building anything better,
13094      # like `-m68040'.
13095      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13096      ;;
13097
13098    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13099      # PIC is the default for these OSes.
13100      ;;
13101
13102    mingw* | pw32* | os2*)
13103      # This hack is so that the source file can tell whether it is being
13104      # built for inclusion in a dll (and should export symbols for example).
13105      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13106      ;;
13107
13108    darwin* | rhapsody*)
13109      # PIC is the default on this platform
13110      # Common symbols not allowed in MH_DYLIB files
13111      lt_prog_compiler_pic_F77='-fno-common'
13112      ;;
13113
13114    interix3*)
13115      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13116      # Instead, we relocate shared libraries at runtime.
13117      ;;
13118
13119    msdosdjgpp*)
13120      # Just because we use GCC doesn't mean we suddenly get shared libraries
13121      # on systems that don't support them.
13122      lt_prog_compiler_can_build_shared_F77=no
13123      enable_shared=no
13124      ;;
13125
13126    sysv4*MP*)
13127      if test -d /usr/nec; then
13128	lt_prog_compiler_pic_F77=-Kconform_pic
13129      fi
13130      ;;
13131
13132    hpux*)
13133      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13134      # not for PA HP-UX.
13135      case $host_cpu in
13136      hppa*64*|ia64*)
13137	# +Z the default
13138	;;
13139      *)
13140	lt_prog_compiler_pic_F77='-fPIC'
13141	;;
13142      esac
13143      ;;
13144
13145    *)
13146      lt_prog_compiler_pic_F77='-fPIC'
13147      ;;
13148    esac
13149  else
13150    # PORTME Check for flag to pass linker flags through the system compiler.
13151    case $host_os in
13152    aix*)
13153      lt_prog_compiler_wl_F77='-Wl,'
13154      if test "$host_cpu" = ia64; then
13155	# AIX 5 now supports IA64 processor
13156	lt_prog_compiler_static_F77='-Bstatic'
13157      else
13158	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13159      fi
13160      ;;
13161      darwin*)
13162        # PIC is the default on this platform
13163        # Common symbols not allowed in MH_DYLIB files
13164       case $cc_basename in
13165         xlc*)
13166         lt_prog_compiler_pic_F77='-qnocommon'
13167         lt_prog_compiler_wl_F77='-Wl,'
13168         ;;
13169       esac
13170       ;;
13171
13172    mingw* | pw32* | os2*)
13173      # This hack is so that the source file can tell whether it is being
13174      # built for inclusion in a dll (and should export symbols for example).
13175      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13176      ;;
13177
13178    hpux9* | hpux10* | hpux11*)
13179      lt_prog_compiler_wl_F77='-Wl,'
13180      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13181      # not for PA HP-UX.
13182      case $host_cpu in
13183      hppa*64*|ia64*)
13184	# +Z the default
13185	;;
13186      *)
13187	lt_prog_compiler_pic_F77='+Z'
13188	;;
13189      esac
13190      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13191      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13192      ;;
13193
13194    irix5* | irix6* | nonstopux*)
13195      lt_prog_compiler_wl_F77='-Wl,'
13196      # PIC (with -KPIC) is the default.
13197      lt_prog_compiler_static_F77='-non_shared'
13198      ;;
13199
13200    newsos6)
13201      lt_prog_compiler_pic_F77='-KPIC'
13202      lt_prog_compiler_static_F77='-Bstatic'
13203      ;;
13204
13205    linux*)
13206      case $cc_basename in
13207      icc* | ecc*)
13208	lt_prog_compiler_wl_F77='-Wl,'
13209	lt_prog_compiler_pic_F77='-KPIC'
13210	lt_prog_compiler_static_F77='-static'
13211        ;;
13212      pgcc* | pgf77* | pgf90* | pgf95*)
13213        # Portland Group compilers (*not* the Pentium gcc compiler,
13214	# which looks to be a dead project)
13215	lt_prog_compiler_wl_F77='-Wl,'
13216	lt_prog_compiler_pic_F77='-fpic'
13217	lt_prog_compiler_static_F77='-Bstatic'
13218        ;;
13219      ccc*)
13220        lt_prog_compiler_wl_F77='-Wl,'
13221        # All Alpha code is PIC.
13222        lt_prog_compiler_static_F77='-non_shared'
13223        ;;
13224      esac
13225      ;;
13226
13227    osf3* | osf4* | osf5*)
13228      lt_prog_compiler_wl_F77='-Wl,'
13229      # All OSF/1 code is PIC.
13230      lt_prog_compiler_static_F77='-non_shared'
13231      ;;
13232
13233    solaris*)
13234      lt_prog_compiler_pic_F77='-KPIC'
13235      lt_prog_compiler_static_F77='-Bstatic'
13236      case $cc_basename in
13237      f77* | f90* | f95*)
13238	lt_prog_compiler_wl_F77='-Qoption ld ';;
13239      *)
13240	lt_prog_compiler_wl_F77='-Wl,';;
13241      esac
13242      ;;
13243
13244    sunos4*)
13245      lt_prog_compiler_wl_F77='-Qoption ld '
13246      lt_prog_compiler_pic_F77='-PIC'
13247      lt_prog_compiler_static_F77='-Bstatic'
13248      ;;
13249
13250    sysv4 | sysv4.2uw2* | sysv4.3*)
13251      lt_prog_compiler_wl_F77='-Wl,'
13252      lt_prog_compiler_pic_F77='-KPIC'
13253      lt_prog_compiler_static_F77='-Bstatic'
13254      ;;
13255
13256    sysv4*MP*)
13257      if test -d /usr/nec ;then
13258	lt_prog_compiler_pic_F77='-Kconform_pic'
13259	lt_prog_compiler_static_F77='-Bstatic'
13260      fi
13261      ;;
13262
13263    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13264      lt_prog_compiler_wl_F77='-Wl,'
13265      lt_prog_compiler_pic_F77='-KPIC'
13266      lt_prog_compiler_static_F77='-Bstatic'
13267      ;;
13268
13269    unicos*)
13270      lt_prog_compiler_wl_F77='-Wl,'
13271      lt_prog_compiler_can_build_shared_F77=no
13272      ;;
13273
13274    uts4*)
13275      lt_prog_compiler_pic_F77='-pic'
13276      lt_prog_compiler_static_F77='-Bstatic'
13277      ;;
13278
13279    *)
13280      lt_prog_compiler_can_build_shared_F77=no
13281      ;;
13282    esac
13283  fi
13284
13285echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13286echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13287
13288#
13289# Check to make sure the PIC flag actually works.
13290#
13291if test -n "$lt_prog_compiler_pic_F77"; then
13292
13293echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13294echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13295if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13296  echo $ECHO_N "(cached) $ECHO_C" >&6
13297else
13298  lt_prog_compiler_pic_works_F77=no
13299  ac_outfile=conftest.$ac_objext
13300   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13301   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13302   # Insert the option either (1) after the last *FLAGS variable, or
13303   # (2) before a word containing "conftest.", or (3) at the end.
13304   # Note that $ac_compile itself does not contain backslashes and begins
13305   # with a dollar sign (not a hyphen), so the echo should work correctly.
13306   # The option is referenced via a variable to avoid confusing sed.
13307   lt_compile=`echo "$ac_compile" | $SED \
13308   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13309   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13310   -e 's:$: $lt_compiler_flag:'`
13311   (eval echo "\"\$as_me:13311: $lt_compile\"" >&5)
13312   (eval "$lt_compile" 2>conftest.err)
13313   ac_status=$?
13314   cat conftest.err >&5
13315   echo "$as_me:13315: \$? = $ac_status" >&5
13316   if (exit $ac_status) && test -s "$ac_outfile"; then
13317     # The compiler can only warn and ignore the option if not recognized
13318     # So say no if there are warnings other than the usual output.
13319     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13320     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13321     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13322       lt_prog_compiler_pic_works_F77=yes
13323     fi
13324   fi
13325   $rm conftest*
13326
13327fi
13328echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13329echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13330
13331if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13332    case $lt_prog_compiler_pic_F77 in
13333     "" | " "*) ;;
13334     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13335     esac
13336else
13337    lt_prog_compiler_pic_F77=
13338     lt_prog_compiler_can_build_shared_F77=no
13339fi
13340
13341fi
13342case $host_os in
13343  # For platforms which do not support PIC, -DPIC is meaningless:
13344  *djgpp*)
13345    lt_prog_compiler_pic_F77=
13346    ;;
13347  *)
13348    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13349    ;;
13350esac
13351
13352#
13353# Check to make sure the static flag actually works.
13354#
13355wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13356echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13357echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13358if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13359  echo $ECHO_N "(cached) $ECHO_C" >&6
13360else
13361  lt_prog_compiler_static_works_F77=no
13362   save_LDFLAGS="$LDFLAGS"
13363   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13364   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13365   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13366     # The linker can only warn and ignore the option if not recognized
13367     # So say no if there are warnings
13368     if test -s conftest.err; then
13369       # Append any errors to the config.log.
13370       cat conftest.err 1>&5
13371       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13372       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13373       if diff conftest.exp conftest.er2 >/dev/null; then
13374         lt_prog_compiler_static_works_F77=yes
13375       fi
13376     else
13377       lt_prog_compiler_static_works_F77=yes
13378     fi
13379   fi
13380   $rm conftest*
13381   LDFLAGS="$save_LDFLAGS"
13382
13383fi
13384echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13385echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13386
13387if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13388    :
13389else
13390    lt_prog_compiler_static_F77=
13391fi
13392
13393
13394echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13395echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13396if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13397  echo $ECHO_N "(cached) $ECHO_C" >&6
13398else
13399  lt_cv_prog_compiler_c_o_F77=no
13400   $rm -r conftest 2>/dev/null
13401   mkdir conftest
13402   cd conftest
13403   mkdir out
13404   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13405
13406   lt_compiler_flag="-o out/conftest2.$ac_objext"
13407   # Insert the option either (1) after the last *FLAGS variable, or
13408   # (2) before a word containing "conftest.", or (3) at the end.
13409   # Note that $ac_compile itself does not contain backslashes and begins
13410   # with a dollar sign (not a hyphen), so the echo should work correctly.
13411   lt_compile=`echo "$ac_compile" | $SED \
13412   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13413   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13414   -e 's:$: $lt_compiler_flag:'`
13415   (eval echo "\"\$as_me:13415: $lt_compile\"" >&5)
13416   (eval "$lt_compile" 2>out/conftest.err)
13417   ac_status=$?
13418   cat out/conftest.err >&5
13419   echo "$as_me:13419: \$? = $ac_status" >&5
13420   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13421   then
13422     # The compiler can only warn and ignore the option if not recognized
13423     # So say no if there are warnings
13424     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13425     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13426     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13427       lt_cv_prog_compiler_c_o_F77=yes
13428     fi
13429   fi
13430   chmod u+w . 2>&5
13431   $rm conftest*
13432   # SGI C++ compiler will create directory out/ii_files/ for
13433   # template instantiation
13434   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13435   $rm out/* && rmdir out
13436   cd ..
13437   rmdir conftest
13438   $rm conftest*
13439
13440fi
13441echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13442echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13443
13444
13445hard_links="nottested"
13446if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13447  # do not overwrite the value of need_locks provided by the user
13448  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13449echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13450  hard_links=yes
13451  $rm conftest*
13452  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13453  touch conftest.a
13454  ln conftest.a conftest.b 2>&5 || hard_links=no
13455  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13456  echo "$as_me:$LINENO: result: $hard_links" >&5
13457echo "${ECHO_T}$hard_links" >&6
13458  if test "$hard_links" = no; then
13459    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13460echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13461    need_locks=warn
13462  fi
13463else
13464  need_locks=no
13465fi
13466
13467echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13468echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13469
13470  runpath_var=
13471  allow_undefined_flag_F77=
13472  enable_shared_with_static_runtimes_F77=no
13473  archive_cmds_F77=
13474  archive_expsym_cmds_F77=
13475  old_archive_From_new_cmds_F77=
13476  old_archive_from_expsyms_cmds_F77=
13477  export_dynamic_flag_spec_F77=
13478  whole_archive_flag_spec_F77=
13479  thread_safe_flag_spec_F77=
13480  hardcode_libdir_flag_spec_F77=
13481  hardcode_libdir_flag_spec_ld_F77=
13482  hardcode_libdir_separator_F77=
13483  hardcode_direct_F77=no
13484  hardcode_minus_L_F77=no
13485  hardcode_shlibpath_var_F77=unsupported
13486  link_all_deplibs_F77=unknown
13487  hardcode_automatic_F77=no
13488  module_cmds_F77=
13489  module_expsym_cmds_F77=
13490  always_export_symbols_F77=no
13491  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13492  # include_expsyms should be a list of space-separated symbols to be *always*
13493  # included in the symbol list
13494  include_expsyms_F77=
13495  # exclude_expsyms can be an extended regexp of symbols to exclude
13496  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13497  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13498  # as well as any symbol that contains `d'.
13499  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13500  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13501  # platforms (ab)use it in PIC code, but their linkers get confused if
13502  # the symbol is explicitly referenced.  Since portable code cannot
13503  # rely on this symbol name, it's probably fine to never include it in
13504  # preloaded symbol tables.
13505  extract_expsyms_cmds=
13506  # Just being paranoid about ensuring that cc_basename is set.
13507  for cc_temp in $compiler""; do
13508  case $cc_temp in
13509    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13510    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13511    \-*) ;;
13512    *) break;;
13513  esac
13514done
13515cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13516
13517  case $host_os in
13518  cygwin* | mingw* | pw32*)
13519    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13520    # When not using gcc, we currently assume that we are using
13521    # Microsoft Visual C++.
13522    if test "$GCC" != yes; then
13523      with_gnu_ld=no
13524    fi
13525    ;;
13526  interix*)
13527    # we just hope/assume this is gcc and not c89 (= MSVC++)
13528    with_gnu_ld=yes
13529    ;;
13530  openbsd*)
13531    with_gnu_ld=no
13532    ;;
13533  esac
13534
13535  ld_shlibs_F77=yes
13536  if test "$with_gnu_ld" = yes; then
13537    # If archive_cmds runs LD, not CC, wlarc should be empty
13538    wlarc='${wl}'
13539
13540    # Set some defaults for GNU ld with shared library support. These
13541    # are reset later if shared libraries are not supported. Putting them
13542    # here allows them to be overridden if necessary.
13543    runpath_var=LD_RUN_PATH
13544    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13545    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13546    # ancient GNU ld didn't support --whole-archive et. al.
13547    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13548	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13549      else
13550  	whole_archive_flag_spec_F77=
13551    fi
13552    supports_anon_versioning=no
13553    case `$LD -v 2>/dev/null` in
13554      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13555      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13556      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13557      *\ 2.11.*) ;; # other 2.11 versions
13558      *) supports_anon_versioning=yes ;;
13559    esac
13560
13561    # See if GNU ld supports shared libraries.
13562    case $host_os in
13563    aix3* | aix4* | aix5*)
13564      # On AIX/PPC, the GNU linker is very broken
13565      if test "$host_cpu" != ia64; then
13566	ld_shlibs_F77=no
13567	cat <<EOF 1>&2
13568
13569*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13570*** to be unable to reliably create shared libraries on AIX.
13571*** Therefore, libtool is disabling shared libraries support.  If you
13572*** really care for shared libraries, you may want to modify your PATH
13573*** so that a non-GNU linker is found, and then restart.
13574
13575EOF
13576      fi
13577      ;;
13578
13579    amigaos*)
13580      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)'
13581      hardcode_libdir_flag_spec_F77='-L$libdir'
13582      hardcode_minus_L_F77=yes
13583
13584      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13585      # that the semantics of dynamic libraries on AmigaOS, at least up
13586      # to version 4, is to share data among multiple programs linked
13587      # with the same dynamic library.  Since this doesn't match the
13588      # behavior of shared libraries on other platforms, we can't use
13589      # them.
13590      ld_shlibs_F77=no
13591      ;;
13592
13593    beos*)
13594      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13595	allow_undefined_flag_F77=unsupported
13596	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13597	# support --undefined.  This deserves some investigation.  FIXME
13598	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13599      else
13600	ld_shlibs_F77=no
13601      fi
13602      ;;
13603
13604    cygwin* | mingw* | pw32*)
13605      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13606      # as there is no search path for DLLs.
13607      hardcode_libdir_flag_spec_F77='-L$libdir'
13608      allow_undefined_flag_F77=unsupported
13609      always_export_symbols_F77=no
13610      enable_shared_with_static_runtimes_F77=yes
13611      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13612
13613      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13614        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13615	# If the export-symbols file already is a .def file (1st line
13616	# is EXPORTS), use it as is; otherwise, prepend...
13617	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13618	  cp $export_symbols $output_objdir/$soname.def;
13619	else
13620	  echo EXPORTS > $output_objdir/$soname.def;
13621	  cat $export_symbols >> $output_objdir/$soname.def;
13622	fi~
13623	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13624      else
13625	ld_shlibs_F77=no
13626      fi
13627      ;;
13628
13629    interix3*)
13630      hardcode_direct_F77=no
13631      hardcode_shlibpath_var_F77=no
13632      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13633      export_dynamic_flag_spec_F77='${wl}-E'
13634      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13635      # Instead, shared libraries are loaded at an image base (0x10000000 by
13636      # default) and relocated if they conflict, which is a slow very memory
13637      # consuming and fragmenting process.  To avoid this, we pick a random,
13638      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13639      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13640      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'
13641      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'
13642      ;;
13643
13644    linux*)
13645      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13646	tmp_addflag=
13647	case $cc_basename,$host_cpu in
13648	pgcc*)				# Portland Group C compiler
13649	  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'
13650	  tmp_addflag=' $pic_flag'
13651	  ;;
13652	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13653	  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'
13654	  tmp_addflag=' $pic_flag -Mnomain' ;;
13655	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13656	  tmp_addflag=' -i_dynamic' ;;
13657	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13658	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13659	ifc* | ifort*)			# Intel Fortran compiler
13660	  tmp_addflag=' -nofor_main' ;;
13661	esac
13662	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13663
13664	if test $supports_anon_versioning = yes; then
13665	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13666  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13667  $echo "local: *; };" >> $output_objdir/$libname.ver~
13668	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13669	fi
13670      else
13671	ld_shlibs_F77=no
13672      fi
13673      ;;
13674
13675    netbsd*)
13676      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13677	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13678	wlarc=
13679      else
13680	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13681	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13682      fi
13683      ;;
13684
13685    solaris*)
13686      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13687	ld_shlibs_F77=no
13688	cat <<EOF 1>&2
13689
13690*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13691*** create shared libraries on Solaris systems.  Therefore, libtool
13692*** is disabling shared libraries support.  We urge you to upgrade GNU
13693*** binutils to release 2.9.1 or newer.  Another option is to modify
13694*** your PATH or compiler configuration so that the native linker is
13695*** used, and then restart.
13696
13697EOF
13698      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13699	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13700	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13701      else
13702	ld_shlibs_F77=no
13703      fi
13704      ;;
13705
13706    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13707      case `$LD -v 2>&1` in
13708        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13709	ld_shlibs_F77=no
13710	cat <<_LT_EOF 1>&2
13711
13712*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13713*** reliably create shared libraries on SCO systems.  Therefore, libtool
13714*** is disabling shared libraries support.  We urge you to upgrade GNU
13715*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13716*** your PATH or compiler configuration so that the native linker is
13717*** used, and then restart.
13718
13719_LT_EOF
13720	;;
13721	*)
13722	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13723	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13724	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13725	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13726	  else
13727	    ld_shlibs_F77=no
13728	  fi
13729	;;
13730      esac
13731      ;;
13732
13733    sunos4*)
13734      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13735      wlarc=
13736      hardcode_direct_F77=yes
13737      hardcode_shlibpath_var_F77=no
13738      ;;
13739
13740    *)
13741      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13742	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13743	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13744      else
13745	ld_shlibs_F77=no
13746      fi
13747      ;;
13748    esac
13749
13750    if test "$ld_shlibs_F77" = no; then
13751      runpath_var=
13752      hardcode_libdir_flag_spec_F77=
13753      export_dynamic_flag_spec_F77=
13754      whole_archive_flag_spec_F77=
13755    fi
13756  else
13757    # PORTME fill in a description of your system's linker (not GNU ld)
13758    case $host_os in
13759    aix3*)
13760      allow_undefined_flag_F77=unsupported
13761      always_export_symbols_F77=yes
13762      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'
13763      # Note: this linker hardcodes the directories in LIBPATH if there
13764      # are no directories specified by -L.
13765      hardcode_minus_L_F77=yes
13766      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13767	# Neither direct hardcoding nor static linking is supported with a
13768	# broken collect2.
13769	hardcode_direct_F77=unsupported
13770      fi
13771      ;;
13772
13773    aix4* | aix5*)
13774      if test "$host_cpu" = ia64; then
13775	# On IA64, the linker does run time linking by default, so we don't
13776	# have to do anything special.
13777	aix_use_runtimelinking=no
13778	exp_sym_flag='-Bexport'
13779	no_entry_flag=""
13780      else
13781	# If we're using GNU nm, then we don't want the "-C" option.
13782	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13783	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13784	  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'
13785	else
13786	  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'
13787	fi
13788	aix_use_runtimelinking=no
13789
13790	# Test if we are trying to use run time linking or normal
13791	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13792	# need to do runtime linking.
13793	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13794	  for ld_flag in $LDFLAGS; do
13795  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13796  	    aix_use_runtimelinking=yes
13797  	    break
13798  	  fi
13799	  done
13800	  ;;
13801	esac
13802
13803	exp_sym_flag='-bexport'
13804	no_entry_flag='-bnoentry'
13805      fi
13806
13807      # When large executables or shared objects are built, AIX ld can
13808      # have problems creating the table of contents.  If linking a library
13809      # or program results in "error TOC overflow" add -mminimal-toc to
13810      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13811      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13812
13813      archive_cmds_F77=''
13814      hardcode_direct_F77=yes
13815      hardcode_libdir_separator_F77=':'
13816      link_all_deplibs_F77=yes
13817
13818      if test "$GCC" = yes; then
13819	case $host_os in aix4.[012]|aix4.[012].*)
13820	# We only want to do this on AIX 4.2 and lower, the check
13821	# below for broken collect2 doesn't work under 4.3+
13822	  collect2name=`${CC} -print-prog-name=collect2`
13823	  if test -f "$collect2name" && \
13824  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13825	  then
13826  	  # We have reworked collect2
13827  	  hardcode_direct_F77=yes
13828	  else
13829  	  # We have old collect2
13830  	  hardcode_direct_F77=unsupported
13831  	  # It fails to find uninstalled libraries when the uninstalled
13832  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13833  	  # to unsupported forces relinking
13834  	  hardcode_minus_L_F77=yes
13835  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13836  	  hardcode_libdir_separator_F77=
13837	  fi
13838	  ;;
13839	esac
13840	shared_flag='-shared'
13841	if test "$aix_use_runtimelinking" = yes; then
13842	  shared_flag="$shared_flag "'${wl}-G'
13843	fi
13844      else
13845	# not using gcc
13846	if test "$host_cpu" = ia64; then
13847  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13848  	# chokes on -Wl,-G. The following line is correct:
13849	  shared_flag='-G'
13850	else
13851	  if test "$aix_use_runtimelinking" = yes; then
13852	    shared_flag='${wl}-G'
13853	  else
13854	    shared_flag='${wl}-bM:SRE'
13855	  fi
13856	fi
13857      fi
13858
13859      # It seems that -bexpall does not export symbols beginning with
13860      # underscore (_), so it is better to generate a list of symbols to export.
13861      always_export_symbols_F77=yes
13862      if test "$aix_use_runtimelinking" = yes; then
13863	# Warning - without using the other runtime loading flags (-brtl),
13864	# -berok will link without error, but may produce a broken library.
13865	allow_undefined_flag_F77='-berok'
13866       # Determine the default libpath from the value encoded in an empty executable.
13867       cat >conftest.$ac_ext <<_ACEOF
13868      program main
13869
13870      end
13871_ACEOF
13872rm -f conftest.$ac_objext conftest$ac_exeext
13873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13874  (eval $ac_link) 2>conftest.er1
13875  ac_status=$?
13876  grep -v '^ *+' conftest.er1 >conftest.err
13877  rm -f conftest.er1
13878  cat conftest.err >&5
13879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880  (exit $ac_status); } &&
13881	 { ac_try='test -z "$ac_f77_werror_flag"
13882			 || test ! -s conftest.err'
13883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884  (eval $ac_try) 2>&5
13885  ac_status=$?
13886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887  (exit $ac_status); }; } &&
13888	 { ac_try='test -s conftest$ac_exeext'
13889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890  (eval $ac_try) 2>&5
13891  ac_status=$?
13892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893  (exit $ac_status); }; }; then
13894
13895aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13896}'`
13897# Check for a 64-bit object if we didn't find anything.
13898if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13899}'`; fi
13900else
13901  echo "$as_me: failed program was:" >&5
13902sed 's/^/| /' conftest.$ac_ext >&5
13903
13904fi
13905rm -f conftest.err conftest.$ac_objext \
13906      conftest$ac_exeext conftest.$ac_ext
13907if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13908
13909       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13910	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"
13911       else
13912	if test "$host_cpu" = ia64; then
13913	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13914	  allow_undefined_flag_F77="-z nodefs"
13915	  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"
13916	else
13917	 # Determine the default libpath from the value encoded in an empty executable.
13918	 cat >conftest.$ac_ext <<_ACEOF
13919      program main
13920
13921      end
13922_ACEOF
13923rm -f conftest.$ac_objext conftest$ac_exeext
13924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13925  (eval $ac_link) 2>conftest.er1
13926  ac_status=$?
13927  grep -v '^ *+' conftest.er1 >conftest.err
13928  rm -f conftest.er1
13929  cat conftest.err >&5
13930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931  (exit $ac_status); } &&
13932	 { ac_try='test -z "$ac_f77_werror_flag"
13933			 || test ! -s conftest.err'
13934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935  (eval $ac_try) 2>&5
13936  ac_status=$?
13937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938  (exit $ac_status); }; } &&
13939	 { ac_try='test -s conftest$ac_exeext'
13940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941  (eval $ac_try) 2>&5
13942  ac_status=$?
13943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944  (exit $ac_status); }; }; then
13945
13946aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13947}'`
13948# Check for a 64-bit object if we didn't find anything.
13949if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13950}'`; fi
13951else
13952  echo "$as_me: failed program was:" >&5
13953sed 's/^/| /' conftest.$ac_ext >&5
13954
13955fi
13956rm -f conftest.err conftest.$ac_objext \
13957      conftest$ac_exeext conftest.$ac_ext
13958if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13959
13960	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13961	  # Warning - without using the other run time loading flags,
13962	  # -berok will link without error, but may produce a broken library.
13963	  no_undefined_flag_F77=' ${wl}-bernotok'
13964	  allow_undefined_flag_F77=' ${wl}-berok'
13965	  # Exported symbols can be pulled into shared objects from archives
13966	  whole_archive_flag_spec_F77='$convenience'
13967	  archive_cmds_need_lc_F77=yes
13968	  # This is similar to how AIX traditionally builds its shared libraries.
13969	  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'
13970	fi
13971      fi
13972      ;;
13973
13974    amigaos*)
13975      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)'
13976      hardcode_libdir_flag_spec_F77='-L$libdir'
13977      hardcode_minus_L_F77=yes
13978      # see comment about different semantics on the GNU ld section
13979      ld_shlibs_F77=no
13980      ;;
13981
13982    bsdi[45]*)
13983      export_dynamic_flag_spec_F77=-rdynamic
13984      ;;
13985
13986    cygwin* | mingw* | pw32*)
13987      # When not using gcc, we currently assume that we are using
13988      # Microsoft Visual C++.
13989      # hardcode_libdir_flag_spec is actually meaningless, as there is
13990      # no search path for DLLs.
13991      hardcode_libdir_flag_spec_F77=' '
13992      allow_undefined_flag_F77=unsupported
13993      # Tell ltmain to make .lib files, not .a files.
13994      libext=lib
13995      # Tell ltmain to make .dll files, not .so files.
13996      shrext_cmds=".dll"
13997      # FIXME: Setting linknames here is a bad hack.
13998      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13999      # The linker will automatically build a .lib file if we build a DLL.
14000      old_archive_From_new_cmds_F77='true'
14001      # FIXME: Should let the user specify the lib program.
14002      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14003      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14004      enable_shared_with_static_runtimes_F77=yes
14005      ;;
14006
14007    darwin* | rhapsody*)
14008      case $host_os in
14009        rhapsody* | darwin1.[012])
14010         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14011         ;;
14012       *) # Darwin 1.3 on
14013         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14014           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14015         else
14016           case ${MACOSX_DEPLOYMENT_TARGET} in
14017             10.[012])
14018               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14019               ;;
14020             10.*)
14021               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14022               ;;
14023           esac
14024         fi
14025         ;;
14026      esac
14027      archive_cmds_need_lc_F77=no
14028      hardcode_direct_F77=no
14029      hardcode_automatic_F77=yes
14030      hardcode_shlibpath_var_F77=unsupported
14031      whole_archive_flag_spec_F77=''
14032      link_all_deplibs_F77=yes
14033    if test "$GCC" = yes ; then
14034    	output_verbose_link_cmd='echo'
14035        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14036      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14037      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14038      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14039      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}'
14040    else
14041      case $cc_basename in
14042        xlc*)
14043         output_verbose_link_cmd='echo'
14044         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14045         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14046          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14047         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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14048          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}'
14049          ;;
14050       *)
14051         ld_shlibs_F77=no
14052          ;;
14053      esac
14054    fi
14055      ;;
14056
14057    dgux*)
14058      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14059      hardcode_libdir_flag_spec_F77='-L$libdir'
14060      hardcode_shlibpath_var_F77=no
14061      ;;
14062
14063    freebsd1*)
14064      ld_shlibs_F77=no
14065      ;;
14066
14067    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14068    # support.  Future versions do this automatically, but an explicit c++rt0.o
14069    # does not break anything, and helps significantly (at the cost of a little
14070    # extra space).
14071    freebsd2.2*)
14072      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14073      hardcode_libdir_flag_spec_F77='-R$libdir'
14074      hardcode_direct_F77=yes
14075      hardcode_shlibpath_var_F77=no
14076      ;;
14077
14078    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14079    freebsd2*)
14080      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14081      hardcode_direct_F77=yes
14082      hardcode_minus_L_F77=yes
14083      hardcode_shlibpath_var_F77=no
14084      ;;
14085
14086    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14087    freebsd* | kfreebsd*-gnu | dragonfly*)
14088      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14089      hardcode_libdir_flag_spec_F77='-R$libdir'
14090      hardcode_direct_F77=yes
14091      hardcode_shlibpath_var_F77=no
14092      ;;
14093
14094    hpux9*)
14095      if test "$GCC" = yes; then
14096	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'
14097      else
14098	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'
14099      fi
14100      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14101      hardcode_libdir_separator_F77=:
14102      hardcode_direct_F77=yes
14103
14104      # hardcode_minus_L: Not really in the search PATH,
14105      # but as the default location of the library.
14106      hardcode_minus_L_F77=yes
14107      export_dynamic_flag_spec_F77='${wl}-E'
14108      ;;
14109
14110    hpux10*)
14111      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14112	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14113      else
14114	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14115      fi
14116      if test "$with_gnu_ld" = no; then
14117	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14118	hardcode_libdir_separator_F77=:
14119
14120	hardcode_direct_F77=yes
14121	export_dynamic_flag_spec_F77='${wl}-E'
14122
14123	# hardcode_minus_L: Not really in the search PATH,
14124	# but as the default location of the library.
14125	hardcode_minus_L_F77=yes
14126      fi
14127      ;;
14128
14129    hpux11*)
14130      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14131	case $host_cpu in
14132	hppa*64*)
14133	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14134	  ;;
14135	ia64*)
14136	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14137	  ;;
14138	*)
14139	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14140	  ;;
14141	esac
14142      else
14143	case $host_cpu in
14144	hppa*64*)
14145	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14146	  ;;
14147	ia64*)
14148	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14149	  ;;
14150	*)
14151	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14152	  ;;
14153	esac
14154      fi
14155      if test "$with_gnu_ld" = no; then
14156	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14157	hardcode_libdir_separator_F77=:
14158
14159	case $host_cpu in
14160	hppa*64*|ia64*)
14161	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14162	  hardcode_direct_F77=no
14163	  hardcode_shlibpath_var_F77=no
14164	  ;;
14165	*)
14166	  hardcode_direct_F77=yes
14167	  export_dynamic_flag_spec_F77='${wl}-E'
14168
14169	  # hardcode_minus_L: Not really in the search PATH,
14170	  # but as the default location of the library.
14171	  hardcode_minus_L_F77=yes
14172	  ;;
14173	esac
14174      fi
14175      ;;
14176
14177    irix5* | irix6* | nonstopux*)
14178      if test "$GCC" = yes; then
14179	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'
14180      else
14181	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'
14182	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14183      fi
14184      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14185      hardcode_libdir_separator_F77=:
14186      link_all_deplibs_F77=yes
14187      ;;
14188
14189    netbsd*)
14190      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14191	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14192      else
14193	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14194      fi
14195      hardcode_libdir_flag_spec_F77='-R$libdir'
14196      hardcode_direct_F77=yes
14197      hardcode_shlibpath_var_F77=no
14198      ;;
14199
14200    newsos6)
14201      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14202      hardcode_direct_F77=yes
14203      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14204      hardcode_libdir_separator_F77=:
14205      hardcode_shlibpath_var_F77=no
14206      ;;
14207
14208    openbsd*)
14209      hardcode_direct_F77=yes
14210      hardcode_shlibpath_var_F77=no
14211      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14212	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14213	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14214	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14215	export_dynamic_flag_spec_F77='${wl}-E'
14216      else
14217       case $host_os in
14218	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14219	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14220	   hardcode_libdir_flag_spec_F77='-R$libdir'
14221	   ;;
14222	 *)
14223	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14224	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14225	   ;;
14226       esac
14227      fi
14228      ;;
14229
14230    os2*)
14231      hardcode_libdir_flag_spec_F77='-L$libdir'
14232      hardcode_minus_L_F77=yes
14233      allow_undefined_flag_F77=unsupported
14234      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'
14235      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14236      ;;
14237
14238    osf3*)
14239      if test "$GCC" = yes; then
14240	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14241	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'
14242      else
14243	allow_undefined_flag_F77=' -expect_unresolved \*'
14244	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'
14245      fi
14246      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14247      hardcode_libdir_separator_F77=:
14248      ;;
14249
14250    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14251      if test "$GCC" = yes; then
14252	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14253	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'
14254	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14255      else
14256	allow_undefined_flag_F77=' -expect_unresolved \*'
14257	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'
14258	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~
14259	$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'
14260
14261	# Both c and cxx compiler support -rpath directly
14262	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14263      fi
14264      hardcode_libdir_separator_F77=:
14265      ;;
14266
14267    solaris*)
14268      no_undefined_flag_F77=' -z text'
14269      if test "$GCC" = yes; then
14270	wlarc='${wl}'
14271	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14272	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14273	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14274      else
14275	wlarc=''
14276	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14277	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14278  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14279      fi
14280      hardcode_libdir_flag_spec_F77='-R$libdir'
14281      hardcode_shlibpath_var_F77=no
14282      case $host_os in
14283      solaris2.[0-5] | solaris2.[0-5].*) ;;
14284      *)
14285 	# The compiler driver will combine linker options so we
14286 	# cannot just pass the convience library names through
14287 	# without $wl, iff we do not link with $LD.
14288 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14289 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14290 	case $wlarc in
14291 	'')
14292 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14293 	*)
14294 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14295 	esac ;;
14296      esac
14297      link_all_deplibs_F77=yes
14298      ;;
14299
14300    sunos4*)
14301      if test "x$host_vendor" = xsequent; then
14302	# Use $CC to link under sequent, because it throws in some extra .o
14303	# files that make .init and .fini sections work.
14304	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14305      else
14306	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14307      fi
14308      hardcode_libdir_flag_spec_F77='-L$libdir'
14309      hardcode_direct_F77=yes
14310      hardcode_minus_L_F77=yes
14311      hardcode_shlibpath_var_F77=no
14312      ;;
14313
14314    sysv4)
14315      case $host_vendor in
14316	sni)
14317	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14318	  hardcode_direct_F77=yes # is this really true???
14319	;;
14320	siemens)
14321	  ## LD is ld it makes a PLAMLIB
14322	  ## CC just makes a GrossModule.
14323	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14324	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14325	  hardcode_direct_F77=no
14326        ;;
14327	motorola)
14328	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14329	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14330	;;
14331      esac
14332      runpath_var='LD_RUN_PATH'
14333      hardcode_shlibpath_var_F77=no
14334      ;;
14335
14336    sysv4.3*)
14337      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14338      hardcode_shlibpath_var_F77=no
14339      export_dynamic_flag_spec_F77='-Bexport'
14340      ;;
14341
14342    sysv4*MP*)
14343      if test -d /usr/nec; then
14344	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14345	hardcode_shlibpath_var_F77=no
14346	runpath_var=LD_RUN_PATH
14347	hardcode_runpath_var=yes
14348	ld_shlibs_F77=yes
14349      fi
14350      ;;
14351
14352    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14353      no_undefined_flag_F77='${wl}-z,text'
14354      archive_cmds_need_lc_F77=no
14355      hardcode_shlibpath_var_F77=no
14356      runpath_var='LD_RUN_PATH'
14357
14358      if test "$GCC" = yes; then
14359	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14360	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14361      else
14362	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14363	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14364      fi
14365      ;;
14366
14367    sysv5* | sco3.2v5* | sco5v6*)
14368      # Note: We can NOT use -z defs as we might desire, because we do not
14369      # link with -lc, and that would cause any symbols used from libc to
14370      # always be unresolved, which means just about no library would
14371      # ever link correctly.  If we're not using GNU ld we use -z text
14372      # though, which does catch some bad symbols but isn't as heavy-handed
14373      # as -z defs.
14374      no_undefined_flag_F77='${wl}-z,text'
14375      allow_undefined_flag_F77='${wl}-z,nodefs'
14376      archive_cmds_need_lc_F77=no
14377      hardcode_shlibpath_var_F77=no
14378      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14379      hardcode_libdir_separator_F77=':'
14380      link_all_deplibs_F77=yes
14381      export_dynamic_flag_spec_F77='${wl}-Bexport'
14382      runpath_var='LD_RUN_PATH'
14383
14384      if test "$GCC" = yes; then
14385	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14386	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14387      else
14388	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14389	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14390      fi
14391      ;;
14392
14393    uts4*)
14394      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14395      hardcode_libdir_flag_spec_F77='-L$libdir'
14396      hardcode_shlibpath_var_F77=no
14397      ;;
14398
14399    *)
14400      ld_shlibs_F77=no
14401      ;;
14402    esac
14403  fi
14404
14405echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14406echo "${ECHO_T}$ld_shlibs_F77" >&6
14407test "$ld_shlibs_F77" = no && can_build_shared=no
14408
14409#
14410# Do we need to explicitly link libc?
14411#
14412case "x$archive_cmds_need_lc_F77" in
14413x|xyes)
14414  # Assume -lc should be added
14415  archive_cmds_need_lc_F77=yes
14416
14417  if test "$enable_shared" = yes && test "$GCC" = yes; then
14418    case $archive_cmds_F77 in
14419    *'~'*)
14420      # FIXME: we may have to deal with multi-command sequences.
14421      ;;
14422    '$CC '*)
14423      # Test whether the compiler implicitly links with -lc since on some
14424      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14425      # to ld, don't add -lc before -lgcc.
14426      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14427echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14428      $rm conftest*
14429      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14430
14431      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14432  (eval $ac_compile) 2>&5
14433  ac_status=$?
14434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435  (exit $ac_status); } 2>conftest.err; then
14436        soname=conftest
14437        lib=conftest
14438        libobjs=conftest.$ac_objext
14439        deplibs=
14440        wl=$lt_prog_compiler_wl_F77
14441	pic_flag=$lt_prog_compiler_pic_F77
14442        compiler_flags=-v
14443        linker_flags=-v
14444        verstring=
14445        output_objdir=.
14446        libname=conftest
14447        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14448        allow_undefined_flag_F77=
14449        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14450  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14451  ac_status=$?
14452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453  (exit $ac_status); }
14454        then
14455	  archive_cmds_need_lc_F77=no
14456        else
14457	  archive_cmds_need_lc_F77=yes
14458        fi
14459        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14460      else
14461        cat conftest.err 1>&5
14462      fi
14463      $rm conftest*
14464      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14465echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14466      ;;
14467    esac
14468  fi
14469  ;;
14470esac
14471
14472echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14473echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14474library_names_spec=
14475libname_spec='lib$name'
14476soname_spec=
14477shrext_cmds=".so"
14478postinstall_cmds=
14479postuninstall_cmds=
14480finish_cmds=
14481finish_eval=
14482shlibpath_var=
14483shlibpath_overrides_runpath=unknown
14484version_type=none
14485dynamic_linker="$host_os ld.so"
14486sys_lib_dlsearch_path_spec="/lib /usr/lib"
14487if test "$GCC" = yes; then
14488  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14489  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14490    # if the path contains ";" then we assume it to be the separator
14491    # otherwise default to the standard path separator (i.e. ":") - it is
14492    # assumed that no part of a normal pathname contains ";" but that should
14493    # okay in the real world where ";" in dirpaths is itself problematic.
14494    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14495  else
14496    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14497  fi
14498else
14499  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14500fi
14501need_lib_prefix=unknown
14502hardcode_into_libs=no
14503
14504# when you set need_version to no, make sure it does not cause -set_version
14505# flags to be left without arguments
14506need_version=unknown
14507
14508case $host_os in
14509aix3*)
14510  version_type=linux
14511  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14512  shlibpath_var=LIBPATH
14513
14514  # AIX 3 has no versioning support, so we append a major version to the name.
14515  soname_spec='${libname}${release}${shared_ext}$major'
14516  ;;
14517
14518aix4* | aix5*)
14519  version_type=linux
14520  need_lib_prefix=no
14521  need_version=no
14522  hardcode_into_libs=yes
14523  if test "$host_cpu" = ia64; then
14524    # AIX 5 supports IA64
14525    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14526    shlibpath_var=LD_LIBRARY_PATH
14527  else
14528    # With GCC up to 2.95.x, collect2 would create an import file
14529    # for dependence libraries.  The import file would start with
14530    # the line `#! .'.  This would cause the generated library to
14531    # depend on `.', always an invalid library.  This was fixed in
14532    # development snapshots of GCC prior to 3.0.
14533    case $host_os in
14534      aix4 | aix4.[01] | aix4.[01].*)
14535      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14536	   echo ' yes '
14537	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14538	:
14539      else
14540	can_build_shared=no
14541      fi
14542      ;;
14543    esac
14544    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14545    # soname into executable. Probably we can add versioning support to
14546    # collect2, so additional links can be useful in future.
14547    if test "$aix_use_runtimelinking" = yes; then
14548      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14549      # instead of lib<name>.a to let people know that these are not
14550      # typical AIX shared libraries.
14551      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14552    else
14553      # We preserve .a as extension for shared libraries through AIX4.2
14554      # and later when we are not doing run time linking.
14555      library_names_spec='${libname}${release}.a $libname.a'
14556      soname_spec='${libname}${release}${shared_ext}$major'
14557    fi
14558    shlibpath_var=LIBPATH
14559  fi
14560  ;;
14561
14562amigaos*)
14563  library_names_spec='$libname.ixlibrary $libname.a'
14564  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14565  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'
14566  ;;
14567
14568beos*)
14569  library_names_spec='${libname}${shared_ext}'
14570  dynamic_linker="$host_os ld.so"
14571  shlibpath_var=LIBRARY_PATH
14572  ;;
14573
14574bsdi[45]*)
14575  version_type=linux
14576  need_version=no
14577  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14578  soname_spec='${libname}${release}${shared_ext}$major'
14579  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14580  shlibpath_var=LD_LIBRARY_PATH
14581  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14582  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14583  # the default ld.so.conf also contains /usr/contrib/lib and
14584  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14585  # libtool to hard-code these into programs
14586  ;;
14587
14588cygwin* | mingw* | pw32*)
14589  version_type=windows
14590  shrext_cmds=".dll"
14591  need_version=no
14592  need_lib_prefix=no
14593
14594  case $GCC,$host_os in
14595  yes,cygwin* | yes,mingw* | yes,pw32*)
14596    library_names_spec='$libname.dll.a'
14597    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14598    postinstall_cmds='base_file=`basename \${file}`~
14599      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14600      dldir=$destdir/`dirname \$dlpath`~
14601      test -d \$dldir || mkdir -p \$dldir~
14602      $install_prog $dir/$dlname \$dldir/$dlname~
14603      chmod a+x \$dldir/$dlname'
14604    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14605      dlpath=$dir/\$dldll~
14606       $rm \$dlpath'
14607    shlibpath_overrides_runpath=yes
14608
14609    case $host_os in
14610    cygwin*)
14611      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14612      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14613      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14614      ;;
14615    mingw*)
14616      # MinGW DLLs use traditional 'lib' prefix
14617      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14618      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14619      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14620        # It is most probably a Windows format PATH printed by
14621        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14622        # path with ; separators, and with drive letters. We can handle the
14623        # drive letters (cygwin fileutils understands them), so leave them,
14624        # especially as we might pass files found there to a mingw objdump,
14625        # which wouldn't understand a cygwinified path. Ahh.
14626        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14627      else
14628        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14629      fi
14630      ;;
14631    pw32*)
14632      # pw32 DLLs use 'pw' prefix rather than 'lib'
14633      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14634      ;;
14635    esac
14636    ;;
14637
14638  linux*)
14639    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14640      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14641      supports_anon_versioning=no
14642      case `$LD -v 2>/dev/null` in
14643        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14644        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14645        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14646        *\ 2.11.*) ;; # other 2.11 versions
14647        *) supports_anon_versioning=yes ;;
14648      esac
14649      if test $supports_anon_versioning = yes; then
14650        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14651cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14652$echo "local: *; };" >> $output_objdir/$libname.ver~
14653        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14654      else
14655        $archive_expsym_cmds="$archive_cmds"
14656      fi
14657    else
14658      ld_shlibs=no
14659    fi
14660    ;;
14661
14662  *)
14663    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14664    ;;
14665  esac
14666  dynamic_linker='Win32 ld.exe'
14667  # FIXME: first we should search . and the directory the executable is in
14668  shlibpath_var=PATH
14669  ;;
14670
14671darwin* | rhapsody*)
14672  dynamic_linker="$host_os dyld"
14673  version_type=darwin
14674  need_lib_prefix=no
14675  need_version=no
14676  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14677  soname_spec='${libname}${release}${major}$shared_ext'
14678  shlibpath_overrides_runpath=yes
14679  shlibpath_var=DYLD_LIBRARY_PATH
14680  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14681  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14682  if test "$GCC" = yes; then
14683    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14684  else
14685    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14686  fi
14687  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14688  ;;
14689
14690dgux*)
14691  version_type=linux
14692  need_lib_prefix=no
14693  need_version=no
14694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14695  soname_spec='${libname}${release}${shared_ext}$major'
14696  shlibpath_var=LD_LIBRARY_PATH
14697  ;;
14698
14699freebsd1*)
14700  dynamic_linker=no
14701  ;;
14702
14703kfreebsd*-gnu)
14704  version_type=linux
14705  need_lib_prefix=no
14706  need_version=no
14707  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14708  soname_spec='${libname}${release}${shared_ext}$major'
14709  shlibpath_var=LD_LIBRARY_PATH
14710  shlibpath_overrides_runpath=no
14711  hardcode_into_libs=yes
14712  dynamic_linker='GNU ld.so'
14713  ;;
14714
14715freebsd* | dragonfly*)
14716  # DragonFly does not have aout.  When/if they implement a new
14717  # versioning mechanism, adjust this.
14718  if test -x /usr/bin/objformat; then
14719    objformat=`/usr/bin/objformat`
14720  else
14721    case $host_os in
14722    freebsd[123]*) objformat=aout ;;
14723    *) objformat=elf ;;
14724    esac
14725  fi
14726  # Handle Gentoo/FreeBSD as it was Linux
14727  case $host_vendor in
14728    gentoo)
14729      version_type=linux ;;
14730    *)
14731      version_type=freebsd-$objformat ;;
14732  esac
14733
14734  case $version_type in
14735    freebsd-elf*)
14736      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14737      need_version=no
14738      need_lib_prefix=no
14739      ;;
14740    freebsd-*)
14741      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14742      need_version=yes
14743      ;;
14744    linux)
14745      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14746      soname_spec='${libname}${release}${shared_ext}$major'
14747      need_lib_prefix=no
14748      need_version=no
14749      ;;
14750  esac
14751  shlibpath_var=LD_LIBRARY_PATH
14752  case $host_os in
14753  freebsd2*)
14754    shlibpath_overrides_runpath=yes
14755    ;;
14756  freebsd3.[01]* | freebsdelf3.[01]*)
14757    shlibpath_overrides_runpath=yes
14758    hardcode_into_libs=yes
14759    ;;
14760  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14761  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14762    shlibpath_overrides_runpath=no
14763    hardcode_into_libs=yes
14764    ;;
14765  freebsd*) # from 4.6 on
14766    shlibpath_overrides_runpath=yes
14767    hardcode_into_libs=yes
14768    ;;
14769  esac
14770  ;;
14771
14772gnu*)
14773  version_type=linux
14774  need_lib_prefix=no
14775  need_version=no
14776  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14777  soname_spec='${libname}${release}${shared_ext}$major'
14778  shlibpath_var=LD_LIBRARY_PATH
14779  hardcode_into_libs=yes
14780  ;;
14781
14782hpux9* | hpux10* | hpux11*)
14783  # Give a soname corresponding to the major version so that dld.sl refuses to
14784  # link against other versions.
14785  version_type=sunos
14786  need_lib_prefix=no
14787  need_version=no
14788  case $host_cpu in
14789  ia64*)
14790    shrext_cmds='.so'
14791    hardcode_into_libs=yes
14792    dynamic_linker="$host_os dld.so"
14793    shlibpath_var=LD_LIBRARY_PATH
14794    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14795    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14796    soname_spec='${libname}${release}${shared_ext}$major'
14797    if test "X$HPUX_IA64_MODE" = X32; then
14798      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14799    else
14800      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14801    fi
14802    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14803    ;;
14804   hppa*64*)
14805     shrext_cmds='.sl'
14806     hardcode_into_libs=yes
14807     dynamic_linker="$host_os dld.sl"
14808     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14809     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14810     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14811     soname_spec='${libname}${release}${shared_ext}$major'
14812     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14813     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14814     ;;
14815   *)
14816    shrext_cmds='.sl'
14817    dynamic_linker="$host_os dld.sl"
14818    shlibpath_var=SHLIB_PATH
14819    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14820    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14821    soname_spec='${libname}${release}${shared_ext}$major'
14822    ;;
14823  esac
14824  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14825  postinstall_cmds='chmod 555 $lib'
14826  ;;
14827
14828interix3*)
14829  version_type=linux
14830  need_lib_prefix=no
14831  need_version=no
14832  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14833  soname_spec='${libname}${release}${shared_ext}$major'
14834  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14835  shlibpath_var=LD_LIBRARY_PATH
14836  shlibpath_overrides_runpath=no
14837  hardcode_into_libs=yes
14838  ;;
14839
14840irix5* | irix6* | nonstopux*)
14841  case $host_os in
14842    nonstopux*) version_type=nonstopux ;;
14843    *)
14844	if test "$lt_cv_prog_gnu_ld" = yes; then
14845		version_type=linux
14846	else
14847		version_type=irix
14848	fi ;;
14849  esac
14850  need_lib_prefix=no
14851  need_version=no
14852  soname_spec='${libname}${release}${shared_ext}$major'
14853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14854  case $host_os in
14855  irix5* | nonstopux*)
14856    libsuff= shlibsuff=
14857    ;;
14858  *)
14859    case $LD in # libtool.m4 will add one of these switches to LD
14860    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14861      libsuff= shlibsuff= libmagic=32-bit;;
14862    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14863      libsuff=32 shlibsuff=N32 libmagic=N32;;
14864    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14865      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14866    *) libsuff= shlibsuff= libmagic=never-match;;
14867    esac
14868    ;;
14869  esac
14870  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14871  shlibpath_overrides_runpath=no
14872  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14873  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14874  hardcode_into_libs=yes
14875  ;;
14876
14877# No shared lib support for Linux oldld, aout, or coff.
14878linux*oldld* | linux*aout* | linux*coff*)
14879  dynamic_linker=no
14880  ;;
14881
14882# This must be Linux ELF.
14883linux*)
14884  version_type=linux
14885  need_lib_prefix=no
14886  need_version=no
14887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14888  soname_spec='${libname}${release}${shared_ext}$major'
14889  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14890  shlibpath_var=LD_LIBRARY_PATH
14891  shlibpath_overrides_runpath=no
14892  # This implies no fast_install, which is unacceptable.
14893  # Some rework will be needed to allow for fast_install
14894  # before this can be enabled.
14895  hardcode_into_libs=yes
14896
14897  # Append ld.so.conf contents to the search path
14898  if test -f /etc/ld.so.conf; then
14899    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14900    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14901  fi
14902
14903  # We used to test for /lib/ld.so.1 and disable shared libraries on
14904  # powerpc, because MkLinux only supported shared libraries with the
14905  # GNU dynamic linker.  Since this was broken with cross compilers,
14906  # most powerpc-linux boxes support dynamic linking these days and
14907  # people can always --disable-shared, the test was removed, and we
14908  # assume the GNU/Linux dynamic linker is in use.
14909  dynamic_linker='GNU/Linux ld.so'
14910  ;;
14911
14912knetbsd*-gnu)
14913  version_type=linux
14914  need_lib_prefix=no
14915  need_version=no
14916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14917  soname_spec='${libname}${release}${shared_ext}$major'
14918  shlibpath_var=LD_LIBRARY_PATH
14919  shlibpath_overrides_runpath=no
14920  hardcode_into_libs=yes
14921  dynamic_linker='GNU ld.so'
14922  ;;
14923
14924netbsd*)
14925  version_type=sunos
14926  need_lib_prefix=no
14927  need_version=no
14928  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14929    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14930    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14931    dynamic_linker='NetBSD (a.out) ld.so'
14932  else
14933    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14934    soname_spec='${libname}${release}${shared_ext}$major'
14935    dynamic_linker='NetBSD ld.elf_so'
14936  fi
14937  shlibpath_var=LD_LIBRARY_PATH
14938  shlibpath_overrides_runpath=yes
14939  hardcode_into_libs=yes
14940  ;;
14941
14942newsos6)
14943  version_type=linux
14944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945  shlibpath_var=LD_LIBRARY_PATH
14946  shlibpath_overrides_runpath=yes
14947  ;;
14948
14949nto-qnx*)
14950  version_type=linux
14951  need_lib_prefix=no
14952  need_version=no
14953  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14954  soname_spec='${libname}${release}${shared_ext}$major'
14955  shlibpath_var=LD_LIBRARY_PATH
14956  shlibpath_overrides_runpath=yes
14957  ;;
14958
14959openbsd*)
14960  version_type=sunos
14961  sys_lib_dlsearch_path_spec="/usr/lib"
14962  need_lib_prefix=no
14963  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14964  case $host_os in
14965    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14966    *)                         need_version=no  ;;
14967  esac
14968  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14969  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14970  shlibpath_var=LD_LIBRARY_PATH
14971  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14972    case $host_os in
14973      openbsd2.[89] | openbsd2.[89].*)
14974	shlibpath_overrides_runpath=no
14975	;;
14976      *)
14977	shlibpath_overrides_runpath=yes
14978	;;
14979      esac
14980  else
14981    shlibpath_overrides_runpath=yes
14982  fi
14983  ;;
14984
14985os2*)
14986  libname_spec='$name'
14987  shrext_cmds=".dll"
14988  need_lib_prefix=no
14989  library_names_spec='$libname${shared_ext} $libname.a'
14990  dynamic_linker='OS/2 ld.exe'
14991  shlibpath_var=LIBPATH
14992  ;;
14993
14994osf3* | osf4* | osf5*)
14995  version_type=osf
14996  need_lib_prefix=no
14997  need_version=no
14998  soname_spec='${libname}${release}${shared_ext}$major'
14999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15000  shlibpath_var=LD_LIBRARY_PATH
15001  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15002  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15003  ;;
15004
15005solaris*)
15006  version_type=linux
15007  need_lib_prefix=no
15008  need_version=no
15009  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15010  soname_spec='${libname}${release}${shared_ext}$major'
15011  shlibpath_var=LD_LIBRARY_PATH
15012  shlibpath_overrides_runpath=yes
15013  hardcode_into_libs=yes
15014  # ldd complains unless libraries are executable
15015  postinstall_cmds='chmod +x $lib'
15016  ;;
15017
15018sunos4*)
15019  version_type=sunos
15020  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15021  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15022  shlibpath_var=LD_LIBRARY_PATH
15023  shlibpath_overrides_runpath=yes
15024  if test "$with_gnu_ld" = yes; then
15025    need_lib_prefix=no
15026  fi
15027  need_version=yes
15028  ;;
15029
15030sysv4 | sysv4.3*)
15031  version_type=linux
15032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15033  soname_spec='${libname}${release}${shared_ext}$major'
15034  shlibpath_var=LD_LIBRARY_PATH
15035  case $host_vendor in
15036    sni)
15037      shlibpath_overrides_runpath=no
15038      need_lib_prefix=no
15039      export_dynamic_flag_spec='${wl}-Blargedynsym'
15040      runpath_var=LD_RUN_PATH
15041      ;;
15042    siemens)
15043      need_lib_prefix=no
15044      ;;
15045    motorola)
15046      need_lib_prefix=no
15047      need_version=no
15048      shlibpath_overrides_runpath=no
15049      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15050      ;;
15051  esac
15052  ;;
15053
15054sysv4*MP*)
15055  if test -d /usr/nec ;then
15056    version_type=linux
15057    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15058    soname_spec='$libname${shared_ext}.$major'
15059    shlibpath_var=LD_LIBRARY_PATH
15060  fi
15061  ;;
15062
15063sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15064  version_type=freebsd-elf
15065  need_lib_prefix=no
15066  need_version=no
15067  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15068  soname_spec='${libname}${release}${shared_ext}$major'
15069  shlibpath_var=LD_LIBRARY_PATH
15070  hardcode_into_libs=yes
15071  if test "$with_gnu_ld" = yes; then
15072    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15073    shlibpath_overrides_runpath=no
15074  else
15075    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15076    shlibpath_overrides_runpath=yes
15077    case $host_os in
15078      sco3.2v5*)
15079        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15080	;;
15081    esac
15082  fi
15083  sys_lib_dlsearch_path_spec='/usr/lib'
15084  ;;
15085
15086uts4*)
15087  version_type=linux
15088  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15089  soname_spec='${libname}${release}${shared_ext}$major'
15090  shlibpath_var=LD_LIBRARY_PATH
15091  ;;
15092
15093*)
15094  dynamic_linker=no
15095  ;;
15096esac
15097echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15098echo "${ECHO_T}$dynamic_linker" >&6
15099test "$dynamic_linker" = no && can_build_shared=no
15100
15101variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15102if test "$GCC" = yes; then
15103  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15104fi
15105
15106echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15107echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15108hardcode_action_F77=
15109if test -n "$hardcode_libdir_flag_spec_F77" || \
15110   test -n "$runpath_var_F77" || \
15111   test "X$hardcode_automatic_F77" = "Xyes" ; then
15112
15113  # We can hardcode non-existant directories.
15114  if test "$hardcode_direct_F77" != no &&
15115     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15116     # have to relink, otherwise we might link with an installed library
15117     # when we should be linking with a yet-to-be-installed one
15118     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15119     test "$hardcode_minus_L_F77" != no; then
15120    # Linking always hardcodes the temporary library directory.
15121    hardcode_action_F77=relink
15122  else
15123    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15124    hardcode_action_F77=immediate
15125  fi
15126else
15127  # We cannot hardcode anything, or else we can only hardcode existing
15128  # directories.
15129  hardcode_action_F77=unsupported
15130fi
15131echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15132echo "${ECHO_T}$hardcode_action_F77" >&6
15133
15134if test "$hardcode_action_F77" = relink; then
15135  # Fast installation is not supported
15136  enable_fast_install=no
15137elif test "$shlibpath_overrides_runpath" = yes ||
15138     test "$enable_shared" = no; then
15139  # Fast installation is not necessary
15140  enable_fast_install=needless
15141fi
15142
15143
15144# The else clause should only fire when bootstrapping the
15145# libtool distribution, otherwise you forgot to ship ltmain.sh
15146# with your package, and you will get complaints that there are
15147# no rules to generate ltmain.sh.
15148if test -f "$ltmain"; then
15149  # See if we are running on zsh, and set the options which allow our commands through
15150  # without removal of \ escapes.
15151  if test -n "${ZSH_VERSION+set}" ; then
15152    setopt NO_GLOB_SUBST
15153  fi
15154  # Now quote all the things that may contain metacharacters while being
15155  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15156  # variables and quote the copies for generation of the libtool script.
15157  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15158    SED SHELL STRIP \
15159    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15160    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15161    deplibs_check_method reload_flag reload_cmds need_locks \
15162    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15163    lt_cv_sys_global_symbol_to_c_name_address \
15164    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15165    old_postinstall_cmds old_postuninstall_cmds \
15166    compiler_F77 \
15167    CC_F77 \
15168    LD_F77 \
15169    lt_prog_compiler_wl_F77 \
15170    lt_prog_compiler_pic_F77 \
15171    lt_prog_compiler_static_F77 \
15172    lt_prog_compiler_no_builtin_flag_F77 \
15173    export_dynamic_flag_spec_F77 \
15174    thread_safe_flag_spec_F77 \
15175    whole_archive_flag_spec_F77 \
15176    enable_shared_with_static_runtimes_F77 \
15177    old_archive_cmds_F77 \
15178    old_archive_from_new_cmds_F77 \
15179    predep_objects_F77 \
15180    postdep_objects_F77 \
15181    predeps_F77 \
15182    postdeps_F77 \
15183    compiler_lib_search_path_F77 \
15184    archive_cmds_F77 \
15185    archive_expsym_cmds_F77 \
15186    postinstall_cmds_F77 \
15187    postuninstall_cmds_F77 \
15188    old_archive_from_expsyms_cmds_F77 \
15189    allow_undefined_flag_F77 \
15190    no_undefined_flag_F77 \
15191    export_symbols_cmds_F77 \
15192    hardcode_libdir_flag_spec_F77 \
15193    hardcode_libdir_flag_spec_ld_F77 \
15194    hardcode_libdir_separator_F77 \
15195    hardcode_automatic_F77 \
15196    module_cmds_F77 \
15197    module_expsym_cmds_F77 \
15198    lt_cv_prog_compiler_c_o_F77 \
15199    exclude_expsyms_F77 \
15200    include_expsyms_F77; do
15201
15202    case $var in
15203    old_archive_cmds_F77 | \
15204    old_archive_from_new_cmds_F77 | \
15205    archive_cmds_F77 | \
15206    archive_expsym_cmds_F77 | \
15207    module_cmds_F77 | \
15208    module_expsym_cmds_F77 | \
15209    old_archive_from_expsyms_cmds_F77 | \
15210    export_symbols_cmds_F77 | \
15211    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15212    postinstall_cmds | postuninstall_cmds | \
15213    old_postinstall_cmds | old_postuninstall_cmds | \
15214    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15215      # Double-quote double-evaled strings.
15216      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15217      ;;
15218    *)
15219      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15220      ;;
15221    esac
15222  done
15223
15224  case $lt_echo in
15225  *'\$0 --fallback-echo"')
15226    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15227    ;;
15228  esac
15229
15230cfgfile="$ofile"
15231
15232  cat <<__EOF__ >> "$cfgfile"
15233# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15234
15235# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15236
15237# Shell to use when invoking shell scripts.
15238SHELL=$lt_SHELL
15239
15240# Whether or not to build shared libraries.
15241build_libtool_libs=$enable_shared
15242
15243# Whether or not to build static libraries.
15244build_old_libs=$enable_static
15245
15246# Whether or not to add -lc for building shared libraries.
15247build_libtool_need_lc=$archive_cmds_need_lc_F77
15248
15249# Whether or not to disallow shared libs when runtime libs are static
15250allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15251
15252# Whether or not to optimize for fast installation.
15253fast_install=$enable_fast_install
15254
15255# The host system.
15256host_alias=$host_alias
15257host=$host
15258host_os=$host_os
15259
15260# The build system.
15261build_alias=$build_alias
15262build=$build
15263build_os=$build_os
15264
15265# An echo program that does not interpret backslashes.
15266echo=$lt_echo
15267
15268# The archiver.
15269AR=$lt_AR
15270AR_FLAGS=$lt_AR_FLAGS
15271
15272# A C compiler.
15273LTCC=$lt_LTCC
15274
15275# LTCC compiler flags.
15276LTCFLAGS=$lt_LTCFLAGS
15277
15278# A language-specific compiler.
15279CC=$lt_compiler_F77
15280
15281# Is the compiler the GNU C compiler?
15282with_gcc=$GCC_F77
15283
15284# An ERE matcher.
15285EGREP=$lt_EGREP
15286
15287# The linker used to build libraries.
15288LD=$lt_LD_F77
15289
15290# Whether we need hard or soft links.
15291LN_S=$lt_LN_S
15292
15293# A BSD-compatible nm program.
15294NM=$lt_NM
15295
15296# A symbol stripping program
15297STRIP=$lt_STRIP
15298
15299# Used to examine libraries when file_magic_cmd begins "file"
15300MAGIC_CMD=$MAGIC_CMD
15301
15302# Used on cygwin: DLL creation program.
15303DLLTOOL="$DLLTOOL"
15304
15305# Used on cygwin: object dumper.
15306OBJDUMP="$OBJDUMP"
15307
15308# Used on cygwin: assembler.
15309AS="$AS"
15310
15311# The name of the directory that contains temporary libtool files.
15312objdir=$objdir
15313
15314# How to create reloadable object files.
15315reload_flag=$lt_reload_flag
15316reload_cmds=$lt_reload_cmds
15317
15318# How to pass a linker flag through the compiler.
15319wl=$lt_lt_prog_compiler_wl_F77
15320
15321# Object file suffix (normally "o").
15322objext="$ac_objext"
15323
15324# Old archive suffix (normally "a").
15325libext="$libext"
15326
15327# Shared library suffix (normally ".so").
15328shrext_cmds='$shrext_cmds'
15329
15330# Executable file suffix (normally "").
15331exeext="$exeext"
15332
15333# Additional compiler flags for building library objects.
15334pic_flag=$lt_lt_prog_compiler_pic_F77
15335pic_mode=$pic_mode
15336
15337# What is the maximum length of a command?
15338max_cmd_len=$lt_cv_sys_max_cmd_len
15339
15340# Does compiler simultaneously support -c and -o options?
15341compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15342
15343# Must we lock files when doing compilation?
15344need_locks=$lt_need_locks
15345
15346# Do we need the lib prefix for modules?
15347need_lib_prefix=$need_lib_prefix
15348
15349# Do we need a version for libraries?
15350need_version=$need_version
15351
15352# Whether dlopen is supported.
15353dlopen_support=$enable_dlopen
15354
15355# Whether dlopen of programs is supported.
15356dlopen_self=$enable_dlopen_self
15357
15358# Whether dlopen of statically linked programs is supported.
15359dlopen_self_static=$enable_dlopen_self_static
15360
15361# Compiler flag to prevent dynamic linking.
15362link_static_flag=$lt_lt_prog_compiler_static_F77
15363
15364# Compiler flag to turn off builtin functions.
15365no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15366
15367# Compiler flag to allow reflexive dlopens.
15368export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15369
15370# Compiler flag to generate shared objects directly from archives.
15371whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15372
15373# Compiler flag to generate thread-safe objects.
15374thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15375
15376# Library versioning type.
15377version_type=$version_type
15378
15379# Format of library name prefix.
15380libname_spec=$lt_libname_spec
15381
15382# List of archive names.  First name is the real one, the rest are links.
15383# The last name is the one that the linker finds with -lNAME.
15384library_names_spec=$lt_library_names_spec
15385
15386# The coded name of the library, if different from the real name.
15387soname_spec=$lt_soname_spec
15388
15389# Commands used to build and install an old-style archive.
15390RANLIB=$lt_RANLIB
15391old_archive_cmds=$lt_old_archive_cmds_F77
15392old_postinstall_cmds=$lt_old_postinstall_cmds
15393old_postuninstall_cmds=$lt_old_postuninstall_cmds
15394
15395# Create an old-style archive from a shared archive.
15396old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15397
15398# Create a temporary old-style archive to link instead of a shared archive.
15399old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15400
15401# Commands used to build and install a shared archive.
15402archive_cmds=$lt_archive_cmds_F77
15403archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15404postinstall_cmds=$lt_postinstall_cmds
15405postuninstall_cmds=$lt_postuninstall_cmds
15406
15407# Commands used to build a loadable module (assumed same as above if empty)
15408module_cmds=$lt_module_cmds_F77
15409module_expsym_cmds=$lt_module_expsym_cmds_F77
15410
15411# Commands to strip libraries.
15412old_striplib=$lt_old_striplib
15413striplib=$lt_striplib
15414
15415# Dependencies to place before the objects being linked to create a
15416# shared library.
15417predep_objects=$lt_predep_objects_F77
15418
15419# Dependencies to place after the objects being linked to create a
15420# shared library.
15421postdep_objects=$lt_postdep_objects_F77
15422
15423# Dependencies to place before the objects being linked to create a
15424# shared library.
15425predeps=$lt_predeps_F77
15426
15427# Dependencies to place after the objects being linked to create a
15428# shared library.
15429postdeps=$lt_postdeps_F77
15430
15431# The library search path used internally by the compiler when linking
15432# a shared library.
15433compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15434
15435# Method to check whether dependent libraries are shared objects.
15436deplibs_check_method=$lt_deplibs_check_method
15437
15438# Command to use when deplibs_check_method == file_magic.
15439file_magic_cmd=$lt_file_magic_cmd
15440
15441# Flag that allows shared libraries with undefined symbols to be built.
15442allow_undefined_flag=$lt_allow_undefined_flag_F77
15443
15444# Flag that forces no undefined symbols.
15445no_undefined_flag=$lt_no_undefined_flag_F77
15446
15447# Commands used to finish a libtool library installation in a directory.
15448finish_cmds=$lt_finish_cmds
15449
15450# Same as above, but a single script fragment to be evaled but not shown.
15451finish_eval=$lt_finish_eval
15452
15453# Take the output of nm and produce a listing of raw symbols and C names.
15454global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15455
15456# Transform the output of nm in a proper C declaration
15457global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15458
15459# Transform the output of nm in a C name address pair
15460global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15461
15462# This is the shared library runtime path variable.
15463runpath_var=$runpath_var
15464
15465# This is the shared library path variable.
15466shlibpath_var=$shlibpath_var
15467
15468# Is shlibpath searched before the hard-coded library search path?
15469shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15470
15471# How to hardcode a shared library path into an executable.
15472hardcode_action=$hardcode_action_F77
15473
15474# Whether we should hardcode library paths into libraries.
15475hardcode_into_libs=$hardcode_into_libs
15476
15477# Flag to hardcode \$libdir into a binary during linking.
15478# This must work even if \$libdir does not exist.
15479hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15480
15481# If ld is used when linking, flag to hardcode \$libdir into
15482# a binary during linking. This must work even if \$libdir does
15483# not exist.
15484hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15485
15486# Whether we need a single -rpath flag with a separated argument.
15487hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15488
15489# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15490# resulting binary.
15491hardcode_direct=$hardcode_direct_F77
15492
15493# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15494# resulting binary.
15495hardcode_minus_L=$hardcode_minus_L_F77
15496
15497# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15498# the resulting binary.
15499hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15500
15501# Set to yes if building a shared library automatically hardcodes DIR into the library
15502# and all subsequent libraries and executables linked against it.
15503hardcode_automatic=$hardcode_automatic_F77
15504
15505# Variables whose values should be saved in libtool wrapper scripts and
15506# restored at relink time.
15507variables_saved_for_relink="$variables_saved_for_relink"
15508
15509# Whether libtool must link a program against all its dependency libraries.
15510link_all_deplibs=$link_all_deplibs_F77
15511
15512# Compile-time system search path for libraries
15513sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15514
15515# Run-time system search path for libraries
15516sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15517
15518# Fix the shell variable \$srcfile for the compiler.
15519fix_srcfile_path="$fix_srcfile_path_F77"
15520
15521# Set to yes if exported symbols are required.
15522always_export_symbols=$always_export_symbols_F77
15523
15524# The commands to list exported symbols.
15525export_symbols_cmds=$lt_export_symbols_cmds_F77
15526
15527# The commands to extract the exported symbol list from a shared archive.
15528extract_expsyms_cmds=$lt_extract_expsyms_cmds
15529
15530# Symbols that should not be listed in the preloaded symbols.
15531exclude_expsyms=$lt_exclude_expsyms_F77
15532
15533# Symbols that must always be exported.
15534include_expsyms=$lt_include_expsyms_F77
15535
15536# ### END LIBTOOL TAG CONFIG: $tagname
15537
15538__EOF__
15539
15540
15541else
15542  # If there is no Makefile yet, we rely on a make rule to execute
15543  # `config.status --recheck' to rerun these tests and create the
15544  # libtool script then.
15545  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15546  if test -f "$ltmain_in"; then
15547    test -f Makefile && make "$ltmain"
15548  fi
15549fi
15550
15551
15552ac_ext=c
15553ac_cpp='$CPP $CPPFLAGS'
15554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15556ac_compiler_gnu=$ac_cv_c_compiler_gnu
15557
15558CC="$lt_save_CC"
15559
15560	else
15561	  tagname=""
15562	fi
15563	;;
15564
15565      GCJ)
15566	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15567
15568
15569
15570# Source file extension for Java test sources.
15571ac_ext=java
15572
15573# Object file extension for compiled Java test sources.
15574objext=o
15575objext_GCJ=$objext
15576
15577# Code to be used in simple compile tests
15578lt_simple_compile_test_code="class foo {}\n"
15579
15580# Code to be used in simple link tests
15581lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15582
15583# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15584
15585# If no C compiler was specified, use CC.
15586LTCC=${LTCC-"$CC"}
15587
15588# If no C compiler flags were specified, use CFLAGS.
15589LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15590
15591# Allow CC to be a program name with arguments.
15592compiler=$CC
15593
15594
15595# save warnings/boilerplate of simple test code
15596ac_outfile=conftest.$ac_objext
15597printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15598eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15599_lt_compiler_boilerplate=`cat conftest.err`
15600$rm conftest*
15601
15602ac_outfile=conftest.$ac_objext
15603printf "$lt_simple_link_test_code" >conftest.$ac_ext
15604eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15605_lt_linker_boilerplate=`cat conftest.err`
15606$rm conftest*
15607
15608
15609# Allow CC to be a program name with arguments.
15610lt_save_CC="$CC"
15611CC=${GCJ-"gcj"}
15612compiler=$CC
15613compiler_GCJ=$CC
15614for cc_temp in $compiler""; do
15615  case $cc_temp in
15616    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15617    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15618    \-*) ;;
15619    *) break;;
15620  esac
15621done
15622cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15623
15624
15625# GCJ did not exist at the time GCC didn't implicitly link libc in.
15626archive_cmds_need_lc_GCJ=no
15627
15628old_archive_cmds_GCJ=$old_archive_cmds
15629
15630
15631lt_prog_compiler_no_builtin_flag_GCJ=
15632
15633if test "$GCC" = yes; then
15634  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15635
15636
15637echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15638echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15639if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15640  echo $ECHO_N "(cached) $ECHO_C" >&6
15641else
15642  lt_cv_prog_compiler_rtti_exceptions=no
15643  ac_outfile=conftest.$ac_objext
15644   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15645   lt_compiler_flag="-fno-rtti -fno-exceptions"
15646   # Insert the option either (1) after the last *FLAGS variable, or
15647   # (2) before a word containing "conftest.", or (3) at the end.
15648   # Note that $ac_compile itself does not contain backslashes and begins
15649   # with a dollar sign (not a hyphen), so the echo should work correctly.
15650   # The option is referenced via a variable to avoid confusing sed.
15651   lt_compile=`echo "$ac_compile" | $SED \
15652   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15653   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15654   -e 's:$: $lt_compiler_flag:'`
15655   (eval echo "\"\$as_me:15655: $lt_compile\"" >&5)
15656   (eval "$lt_compile" 2>conftest.err)
15657   ac_status=$?
15658   cat conftest.err >&5
15659   echo "$as_me:15659: \$? = $ac_status" >&5
15660   if (exit $ac_status) && test -s "$ac_outfile"; then
15661     # The compiler can only warn and ignore the option if not recognized
15662     # So say no if there are warnings other than the usual output.
15663     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15664     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15665     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15666       lt_cv_prog_compiler_rtti_exceptions=yes
15667     fi
15668   fi
15669   $rm conftest*
15670
15671fi
15672echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15673echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15674
15675if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15676    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15677else
15678    :
15679fi
15680
15681fi
15682
15683lt_prog_compiler_wl_GCJ=
15684lt_prog_compiler_pic_GCJ=
15685lt_prog_compiler_static_GCJ=
15686
15687echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15688echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15689
15690  if test "$GCC" = yes; then
15691    lt_prog_compiler_wl_GCJ='-Wl,'
15692    lt_prog_compiler_static_GCJ='-static'
15693
15694    case $host_os in
15695      aix*)
15696      # All AIX code is PIC.
15697      if test "$host_cpu" = ia64; then
15698	# AIX 5 now supports IA64 processor
15699	lt_prog_compiler_static_GCJ='-Bstatic'
15700      fi
15701      ;;
15702
15703    amigaos*)
15704      # FIXME: we need at least 68020 code to build shared libraries, but
15705      # adding the `-m68020' flag to GCC prevents building anything better,
15706      # like `-m68040'.
15707      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15708      ;;
15709
15710    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15711      # PIC is the default for these OSes.
15712      ;;
15713
15714    mingw* | pw32* | os2*)
15715      # This hack is so that the source file can tell whether it is being
15716      # built for inclusion in a dll (and should export symbols for example).
15717      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15718      ;;
15719
15720    darwin* | rhapsody*)
15721      # PIC is the default on this platform
15722      # Common symbols not allowed in MH_DYLIB files
15723      lt_prog_compiler_pic_GCJ='-fno-common'
15724      ;;
15725
15726    interix3*)
15727      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15728      # Instead, we relocate shared libraries at runtime.
15729      ;;
15730
15731    msdosdjgpp*)
15732      # Just because we use GCC doesn't mean we suddenly get shared libraries
15733      # on systems that don't support them.
15734      lt_prog_compiler_can_build_shared_GCJ=no
15735      enable_shared=no
15736      ;;
15737
15738    sysv4*MP*)
15739      if test -d /usr/nec; then
15740	lt_prog_compiler_pic_GCJ=-Kconform_pic
15741      fi
15742      ;;
15743
15744    hpux*)
15745      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15746      # not for PA HP-UX.
15747      case $host_cpu in
15748      hppa*64*|ia64*)
15749	# +Z the default
15750	;;
15751      *)
15752	lt_prog_compiler_pic_GCJ='-fPIC'
15753	;;
15754      esac
15755      ;;
15756
15757    *)
15758      lt_prog_compiler_pic_GCJ='-fPIC'
15759      ;;
15760    esac
15761  else
15762    # PORTME Check for flag to pass linker flags through the system compiler.
15763    case $host_os in
15764    aix*)
15765      lt_prog_compiler_wl_GCJ='-Wl,'
15766      if test "$host_cpu" = ia64; then
15767	# AIX 5 now supports IA64 processor
15768	lt_prog_compiler_static_GCJ='-Bstatic'
15769      else
15770	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15771      fi
15772      ;;
15773      darwin*)
15774        # PIC is the default on this platform
15775        # Common symbols not allowed in MH_DYLIB files
15776       case $cc_basename in
15777         xlc*)
15778         lt_prog_compiler_pic_GCJ='-qnocommon'
15779         lt_prog_compiler_wl_GCJ='-Wl,'
15780         ;;
15781       esac
15782       ;;
15783
15784    mingw* | pw32* | os2*)
15785      # This hack is so that the source file can tell whether it is being
15786      # built for inclusion in a dll (and should export symbols for example).
15787      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15788      ;;
15789
15790    hpux9* | hpux10* | hpux11*)
15791      lt_prog_compiler_wl_GCJ='-Wl,'
15792      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15793      # not for PA HP-UX.
15794      case $host_cpu in
15795      hppa*64*|ia64*)
15796	# +Z the default
15797	;;
15798      *)
15799	lt_prog_compiler_pic_GCJ='+Z'
15800	;;
15801      esac
15802      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15803      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15804      ;;
15805
15806    irix5* | irix6* | nonstopux*)
15807      lt_prog_compiler_wl_GCJ='-Wl,'
15808      # PIC (with -KPIC) is the default.
15809      lt_prog_compiler_static_GCJ='-non_shared'
15810      ;;
15811
15812    newsos6)
15813      lt_prog_compiler_pic_GCJ='-KPIC'
15814      lt_prog_compiler_static_GCJ='-Bstatic'
15815      ;;
15816
15817    linux*)
15818      case $cc_basename in
15819      icc* | ecc*)
15820	lt_prog_compiler_wl_GCJ='-Wl,'
15821	lt_prog_compiler_pic_GCJ='-KPIC'
15822	lt_prog_compiler_static_GCJ='-static'
15823        ;;
15824      pgcc* | pgf77* | pgf90* | pgf95*)
15825        # Portland Group compilers (*not* the Pentium gcc compiler,
15826	# which looks to be a dead project)
15827	lt_prog_compiler_wl_GCJ='-Wl,'
15828	lt_prog_compiler_pic_GCJ='-fpic'
15829	lt_prog_compiler_static_GCJ='-Bstatic'
15830        ;;
15831      ccc*)
15832        lt_prog_compiler_wl_GCJ='-Wl,'
15833        # All Alpha code is PIC.
15834        lt_prog_compiler_static_GCJ='-non_shared'
15835        ;;
15836      esac
15837      ;;
15838
15839    osf3* | osf4* | osf5*)
15840      lt_prog_compiler_wl_GCJ='-Wl,'
15841      # All OSF/1 code is PIC.
15842      lt_prog_compiler_static_GCJ='-non_shared'
15843      ;;
15844
15845    solaris*)
15846      lt_prog_compiler_pic_GCJ='-KPIC'
15847      lt_prog_compiler_static_GCJ='-Bstatic'
15848      case $cc_basename in
15849      f77* | f90* | f95*)
15850	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15851      *)
15852	lt_prog_compiler_wl_GCJ='-Wl,';;
15853      esac
15854      ;;
15855
15856    sunos4*)
15857      lt_prog_compiler_wl_GCJ='-Qoption ld '
15858      lt_prog_compiler_pic_GCJ='-PIC'
15859      lt_prog_compiler_static_GCJ='-Bstatic'
15860      ;;
15861
15862    sysv4 | sysv4.2uw2* | sysv4.3*)
15863      lt_prog_compiler_wl_GCJ='-Wl,'
15864      lt_prog_compiler_pic_GCJ='-KPIC'
15865      lt_prog_compiler_static_GCJ='-Bstatic'
15866      ;;
15867
15868    sysv4*MP*)
15869      if test -d /usr/nec ;then
15870	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15871	lt_prog_compiler_static_GCJ='-Bstatic'
15872      fi
15873      ;;
15874
15875    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15876      lt_prog_compiler_wl_GCJ='-Wl,'
15877      lt_prog_compiler_pic_GCJ='-KPIC'
15878      lt_prog_compiler_static_GCJ='-Bstatic'
15879      ;;
15880
15881    unicos*)
15882      lt_prog_compiler_wl_GCJ='-Wl,'
15883      lt_prog_compiler_can_build_shared_GCJ=no
15884      ;;
15885
15886    uts4*)
15887      lt_prog_compiler_pic_GCJ='-pic'
15888      lt_prog_compiler_static_GCJ='-Bstatic'
15889      ;;
15890
15891    *)
15892      lt_prog_compiler_can_build_shared_GCJ=no
15893      ;;
15894    esac
15895  fi
15896
15897echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15898echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15899
15900#
15901# Check to make sure the PIC flag actually works.
15902#
15903if test -n "$lt_prog_compiler_pic_GCJ"; then
15904
15905echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15906echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15907if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15908  echo $ECHO_N "(cached) $ECHO_C" >&6
15909else
15910  lt_prog_compiler_pic_works_GCJ=no
15911  ac_outfile=conftest.$ac_objext
15912   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15913   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15914   # Insert the option either (1) after the last *FLAGS variable, or
15915   # (2) before a word containing "conftest.", or (3) at the end.
15916   # Note that $ac_compile itself does not contain backslashes and begins
15917   # with a dollar sign (not a hyphen), so the echo should work correctly.
15918   # The option is referenced via a variable to avoid confusing sed.
15919   lt_compile=`echo "$ac_compile" | $SED \
15920   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15921   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15922   -e 's:$: $lt_compiler_flag:'`
15923   (eval echo "\"\$as_me:15923: $lt_compile\"" >&5)
15924   (eval "$lt_compile" 2>conftest.err)
15925   ac_status=$?
15926   cat conftest.err >&5
15927   echo "$as_me:15927: \$? = $ac_status" >&5
15928   if (exit $ac_status) && test -s "$ac_outfile"; then
15929     # The compiler can only warn and ignore the option if not recognized
15930     # So say no if there are warnings other than the usual output.
15931     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15932     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15933     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15934       lt_prog_compiler_pic_works_GCJ=yes
15935     fi
15936   fi
15937   $rm conftest*
15938
15939fi
15940echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15941echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15942
15943if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15944    case $lt_prog_compiler_pic_GCJ in
15945     "" | " "*) ;;
15946     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15947     esac
15948else
15949    lt_prog_compiler_pic_GCJ=
15950     lt_prog_compiler_can_build_shared_GCJ=no
15951fi
15952
15953fi
15954case $host_os in
15955  # For platforms which do not support PIC, -DPIC is meaningless:
15956  *djgpp*)
15957    lt_prog_compiler_pic_GCJ=
15958    ;;
15959  *)
15960    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15961    ;;
15962esac
15963
15964#
15965# Check to make sure the static flag actually works.
15966#
15967wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15968echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15969echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15970if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15971  echo $ECHO_N "(cached) $ECHO_C" >&6
15972else
15973  lt_prog_compiler_static_works_GCJ=no
15974   save_LDFLAGS="$LDFLAGS"
15975   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15976   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15977   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15978     # The linker can only warn and ignore the option if not recognized
15979     # So say no if there are warnings
15980     if test -s conftest.err; then
15981       # Append any errors to the config.log.
15982       cat conftest.err 1>&5
15983       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15984       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15985       if diff conftest.exp conftest.er2 >/dev/null; then
15986         lt_prog_compiler_static_works_GCJ=yes
15987       fi
15988     else
15989       lt_prog_compiler_static_works_GCJ=yes
15990     fi
15991   fi
15992   $rm conftest*
15993   LDFLAGS="$save_LDFLAGS"
15994
15995fi
15996echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15997echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15998
15999if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16000    :
16001else
16002    lt_prog_compiler_static_GCJ=
16003fi
16004
16005
16006echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16007echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16008if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16009  echo $ECHO_N "(cached) $ECHO_C" >&6
16010else
16011  lt_cv_prog_compiler_c_o_GCJ=no
16012   $rm -r conftest 2>/dev/null
16013   mkdir conftest
16014   cd conftest
16015   mkdir out
16016   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16017
16018   lt_compiler_flag="-o out/conftest2.$ac_objext"
16019   # Insert the option either (1) after the last *FLAGS variable, or
16020   # (2) before a word containing "conftest.", or (3) at the end.
16021   # Note that $ac_compile itself does not contain backslashes and begins
16022   # with a dollar sign (not a hyphen), so the echo should work correctly.
16023   lt_compile=`echo "$ac_compile" | $SED \
16024   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16025   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16026   -e 's:$: $lt_compiler_flag:'`
16027   (eval echo "\"\$as_me:16027: $lt_compile\"" >&5)
16028   (eval "$lt_compile" 2>out/conftest.err)
16029   ac_status=$?
16030   cat out/conftest.err >&5
16031   echo "$as_me:16031: \$? = $ac_status" >&5
16032   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16033   then
16034     # The compiler can only warn and ignore the option if not recognized
16035     # So say no if there are warnings
16036     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16037     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16038     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16039       lt_cv_prog_compiler_c_o_GCJ=yes
16040     fi
16041   fi
16042   chmod u+w . 2>&5
16043   $rm conftest*
16044   # SGI C++ compiler will create directory out/ii_files/ for
16045   # template instantiation
16046   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16047   $rm out/* && rmdir out
16048   cd ..
16049   rmdir conftest
16050   $rm conftest*
16051
16052fi
16053echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16054echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16055
16056
16057hard_links="nottested"
16058if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16059  # do not overwrite the value of need_locks provided by the user
16060  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16061echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16062  hard_links=yes
16063  $rm conftest*
16064  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16065  touch conftest.a
16066  ln conftest.a conftest.b 2>&5 || hard_links=no
16067  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16068  echo "$as_me:$LINENO: result: $hard_links" >&5
16069echo "${ECHO_T}$hard_links" >&6
16070  if test "$hard_links" = no; then
16071    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16072echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16073    need_locks=warn
16074  fi
16075else
16076  need_locks=no
16077fi
16078
16079echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16080echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16081
16082  runpath_var=
16083  allow_undefined_flag_GCJ=
16084  enable_shared_with_static_runtimes_GCJ=no
16085  archive_cmds_GCJ=
16086  archive_expsym_cmds_GCJ=
16087  old_archive_From_new_cmds_GCJ=
16088  old_archive_from_expsyms_cmds_GCJ=
16089  export_dynamic_flag_spec_GCJ=
16090  whole_archive_flag_spec_GCJ=
16091  thread_safe_flag_spec_GCJ=
16092  hardcode_libdir_flag_spec_GCJ=
16093  hardcode_libdir_flag_spec_ld_GCJ=
16094  hardcode_libdir_separator_GCJ=
16095  hardcode_direct_GCJ=no
16096  hardcode_minus_L_GCJ=no
16097  hardcode_shlibpath_var_GCJ=unsupported
16098  link_all_deplibs_GCJ=unknown
16099  hardcode_automatic_GCJ=no
16100  module_cmds_GCJ=
16101  module_expsym_cmds_GCJ=
16102  always_export_symbols_GCJ=no
16103  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16104  # include_expsyms should be a list of space-separated symbols to be *always*
16105  # included in the symbol list
16106  include_expsyms_GCJ=
16107  # exclude_expsyms can be an extended regexp of symbols to exclude
16108  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16109  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16110  # as well as any symbol that contains `d'.
16111  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16112  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16113  # platforms (ab)use it in PIC code, but their linkers get confused if
16114  # the symbol is explicitly referenced.  Since portable code cannot
16115  # rely on this symbol name, it's probably fine to never include it in
16116  # preloaded symbol tables.
16117  extract_expsyms_cmds=
16118  # Just being paranoid about ensuring that cc_basename is set.
16119  for cc_temp in $compiler""; do
16120  case $cc_temp in
16121    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16122    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16123    \-*) ;;
16124    *) break;;
16125  esac
16126done
16127cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16128
16129  case $host_os in
16130  cygwin* | mingw* | pw32*)
16131    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16132    # When not using gcc, we currently assume that we are using
16133    # Microsoft Visual C++.
16134    if test "$GCC" != yes; then
16135      with_gnu_ld=no
16136    fi
16137    ;;
16138  interix*)
16139    # we just hope/assume this is gcc and not c89 (= MSVC++)
16140    with_gnu_ld=yes
16141    ;;
16142  openbsd*)
16143    with_gnu_ld=no
16144    ;;
16145  esac
16146
16147  ld_shlibs_GCJ=yes
16148  if test "$with_gnu_ld" = yes; then
16149    # If archive_cmds runs LD, not CC, wlarc should be empty
16150    wlarc='${wl}'
16151
16152    # Set some defaults for GNU ld with shared library support. These
16153    # are reset later if shared libraries are not supported. Putting them
16154    # here allows them to be overridden if necessary.
16155    runpath_var=LD_RUN_PATH
16156    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16157    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16158    # ancient GNU ld didn't support --whole-archive et. al.
16159    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16160	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16161      else
16162  	whole_archive_flag_spec_GCJ=
16163    fi
16164    supports_anon_versioning=no
16165    case `$LD -v 2>/dev/null` in
16166      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16167      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16168      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16169      *\ 2.11.*) ;; # other 2.11 versions
16170      *) supports_anon_versioning=yes ;;
16171    esac
16172
16173    # See if GNU ld supports shared libraries.
16174    case $host_os in
16175    aix3* | aix4* | aix5*)
16176      # On AIX/PPC, the GNU linker is very broken
16177      if test "$host_cpu" != ia64; then
16178	ld_shlibs_GCJ=no
16179	cat <<EOF 1>&2
16180
16181*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16182*** to be unable to reliably create shared libraries on AIX.
16183*** Therefore, libtool is disabling shared libraries support.  If you
16184*** really care for shared libraries, you may want to modify your PATH
16185*** so that a non-GNU linker is found, and then restart.
16186
16187EOF
16188      fi
16189      ;;
16190
16191    amigaos*)
16192      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)'
16193      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16194      hardcode_minus_L_GCJ=yes
16195
16196      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16197      # that the semantics of dynamic libraries on AmigaOS, at least up
16198      # to version 4, is to share data among multiple programs linked
16199      # with the same dynamic library.  Since this doesn't match the
16200      # behavior of shared libraries on other platforms, we can't use
16201      # them.
16202      ld_shlibs_GCJ=no
16203      ;;
16204
16205    beos*)
16206      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16207	allow_undefined_flag_GCJ=unsupported
16208	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16209	# support --undefined.  This deserves some investigation.  FIXME
16210	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16211      else
16212	ld_shlibs_GCJ=no
16213      fi
16214      ;;
16215
16216    cygwin* | mingw* | pw32*)
16217      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16218      # as there is no search path for DLLs.
16219      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16220      allow_undefined_flag_GCJ=unsupported
16221      always_export_symbols_GCJ=no
16222      enable_shared_with_static_runtimes_GCJ=yes
16223      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16224
16225      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16226        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16227	# If the export-symbols file already is a .def file (1st line
16228	# is EXPORTS), use it as is; otherwise, prepend...
16229	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16230	  cp $export_symbols $output_objdir/$soname.def;
16231	else
16232	  echo EXPORTS > $output_objdir/$soname.def;
16233	  cat $export_symbols >> $output_objdir/$soname.def;
16234	fi~
16235	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16236      else
16237	ld_shlibs_GCJ=no
16238      fi
16239      ;;
16240
16241    interix3*)
16242      hardcode_direct_GCJ=no
16243      hardcode_shlibpath_var_GCJ=no
16244      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16245      export_dynamic_flag_spec_GCJ='${wl}-E'
16246      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16247      # Instead, shared libraries are loaded at an image base (0x10000000 by
16248      # default) and relocated if they conflict, which is a slow very memory
16249      # consuming and fragmenting process.  To avoid this, we pick a random,
16250      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16251      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16252      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'
16253      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'
16254      ;;
16255
16256    linux*)
16257      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16258	tmp_addflag=
16259	case $cc_basename,$host_cpu in
16260	pgcc*)				# Portland Group C compiler
16261	  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'
16262	  tmp_addflag=' $pic_flag'
16263	  ;;
16264	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16265	  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'
16266	  tmp_addflag=' $pic_flag -Mnomain' ;;
16267	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16268	  tmp_addflag=' -i_dynamic' ;;
16269	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16270	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16271	ifc* | ifort*)			# Intel Fortran compiler
16272	  tmp_addflag=' -nofor_main' ;;
16273	esac
16274	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16275
16276	if test $supports_anon_versioning = yes; then
16277	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16278  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16279  $echo "local: *; };" >> $output_objdir/$libname.ver~
16280	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16281	fi
16282      else
16283	ld_shlibs_GCJ=no
16284      fi
16285      ;;
16286
16287    netbsd*)
16288      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16289	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16290	wlarc=
16291      else
16292	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16293	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16294      fi
16295      ;;
16296
16297    solaris*)
16298      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16299	ld_shlibs_GCJ=no
16300	cat <<EOF 1>&2
16301
16302*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16303*** create shared libraries on Solaris systems.  Therefore, libtool
16304*** is disabling shared libraries support.  We urge you to upgrade GNU
16305*** binutils to release 2.9.1 or newer.  Another option is to modify
16306*** your PATH or compiler configuration so that the native linker is
16307*** used, and then restart.
16308
16309EOF
16310      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16311	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16312	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16313      else
16314	ld_shlibs_GCJ=no
16315      fi
16316      ;;
16317
16318    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16319      case `$LD -v 2>&1` in
16320        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16321	ld_shlibs_GCJ=no
16322	cat <<_LT_EOF 1>&2
16323
16324*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16325*** reliably create shared libraries on SCO systems.  Therefore, libtool
16326*** is disabling shared libraries support.  We urge you to upgrade GNU
16327*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16328*** your PATH or compiler configuration so that the native linker is
16329*** used, and then restart.
16330
16331_LT_EOF
16332	;;
16333	*)
16334	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16335	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16336	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16337	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16338	  else
16339	    ld_shlibs_GCJ=no
16340	  fi
16341	;;
16342      esac
16343      ;;
16344
16345    sunos4*)
16346      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16347      wlarc=
16348      hardcode_direct_GCJ=yes
16349      hardcode_shlibpath_var_GCJ=no
16350      ;;
16351
16352    *)
16353      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16354	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16355	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16356      else
16357	ld_shlibs_GCJ=no
16358      fi
16359      ;;
16360    esac
16361
16362    if test "$ld_shlibs_GCJ" = no; then
16363      runpath_var=
16364      hardcode_libdir_flag_spec_GCJ=
16365      export_dynamic_flag_spec_GCJ=
16366      whole_archive_flag_spec_GCJ=
16367    fi
16368  else
16369    # PORTME fill in a description of your system's linker (not GNU ld)
16370    case $host_os in
16371    aix3*)
16372      allow_undefined_flag_GCJ=unsupported
16373      always_export_symbols_GCJ=yes
16374      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'
16375      # Note: this linker hardcodes the directories in LIBPATH if there
16376      # are no directories specified by -L.
16377      hardcode_minus_L_GCJ=yes
16378      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16379	# Neither direct hardcoding nor static linking is supported with a
16380	# broken collect2.
16381	hardcode_direct_GCJ=unsupported
16382      fi
16383      ;;
16384
16385    aix4* | aix5*)
16386      if test "$host_cpu" = ia64; then
16387	# On IA64, the linker does run time linking by default, so we don't
16388	# have to do anything special.
16389	aix_use_runtimelinking=no
16390	exp_sym_flag='-Bexport'
16391	no_entry_flag=""
16392      else
16393	# If we're using GNU nm, then we don't want the "-C" option.
16394	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16395	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16396	  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'
16397	else
16398	  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'
16399	fi
16400	aix_use_runtimelinking=no
16401
16402	# Test if we are trying to use run time linking or normal
16403	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16404	# need to do runtime linking.
16405	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16406	  for ld_flag in $LDFLAGS; do
16407  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16408  	    aix_use_runtimelinking=yes
16409  	    break
16410  	  fi
16411	  done
16412	  ;;
16413	esac
16414
16415	exp_sym_flag='-bexport'
16416	no_entry_flag='-bnoentry'
16417      fi
16418
16419      # When large executables or shared objects are built, AIX ld can
16420      # have problems creating the table of contents.  If linking a library
16421      # or program results in "error TOC overflow" add -mminimal-toc to
16422      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16423      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16424
16425      archive_cmds_GCJ=''
16426      hardcode_direct_GCJ=yes
16427      hardcode_libdir_separator_GCJ=':'
16428      link_all_deplibs_GCJ=yes
16429
16430      if test "$GCC" = yes; then
16431	case $host_os in aix4.[012]|aix4.[012].*)
16432	# We only want to do this on AIX 4.2 and lower, the check
16433	# below for broken collect2 doesn't work under 4.3+
16434	  collect2name=`${CC} -print-prog-name=collect2`
16435	  if test -f "$collect2name" && \
16436  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16437	  then
16438  	  # We have reworked collect2
16439  	  hardcode_direct_GCJ=yes
16440	  else
16441  	  # We have old collect2
16442  	  hardcode_direct_GCJ=unsupported
16443  	  # It fails to find uninstalled libraries when the uninstalled
16444  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16445  	  # to unsupported forces relinking
16446  	  hardcode_minus_L_GCJ=yes
16447  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16448  	  hardcode_libdir_separator_GCJ=
16449	  fi
16450	  ;;
16451	esac
16452	shared_flag='-shared'
16453	if test "$aix_use_runtimelinking" = yes; then
16454	  shared_flag="$shared_flag "'${wl}-G'
16455	fi
16456      else
16457	# not using gcc
16458	if test "$host_cpu" = ia64; then
16459  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16460  	# chokes on -Wl,-G. The following line is correct:
16461	  shared_flag='-G'
16462	else
16463	  if test "$aix_use_runtimelinking" = yes; then
16464	    shared_flag='${wl}-G'
16465	  else
16466	    shared_flag='${wl}-bM:SRE'
16467	  fi
16468	fi
16469      fi
16470
16471      # It seems that -bexpall does not export symbols beginning with
16472      # underscore (_), so it is better to generate a list of symbols to export.
16473      always_export_symbols_GCJ=yes
16474      if test "$aix_use_runtimelinking" = yes; then
16475	# Warning - without using the other runtime loading flags (-brtl),
16476	# -berok will link without error, but may produce a broken library.
16477	allow_undefined_flag_GCJ='-berok'
16478       # Determine the default libpath from the value encoded in an empty executable.
16479       cat >conftest.$ac_ext <<_ACEOF
16480/* confdefs.h.  */
16481_ACEOF
16482cat confdefs.h >>conftest.$ac_ext
16483cat >>conftest.$ac_ext <<_ACEOF
16484/* end confdefs.h.  */
16485
16486int
16487main ()
16488{
16489
16490  ;
16491  return 0;
16492}
16493_ACEOF
16494rm -f conftest.$ac_objext conftest$ac_exeext
16495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16496  (eval $ac_link) 2>conftest.er1
16497  ac_status=$?
16498  grep -v '^ *+' conftest.er1 >conftest.err
16499  rm -f conftest.er1
16500  cat conftest.err >&5
16501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502  (exit $ac_status); } &&
16503	 { ac_try='test -z "$ac_c_werror_flag"
16504			 || test ! -s conftest.err'
16505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16506  (eval $ac_try) 2>&5
16507  ac_status=$?
16508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509  (exit $ac_status); }; } &&
16510	 { ac_try='test -s conftest$ac_exeext'
16511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16512  (eval $ac_try) 2>&5
16513  ac_status=$?
16514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515  (exit $ac_status); }; }; then
16516
16517aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16518}'`
16519# Check for a 64-bit object if we didn't find anything.
16520if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16521}'`; fi
16522else
16523  echo "$as_me: failed program was:" >&5
16524sed 's/^/| /' conftest.$ac_ext >&5
16525
16526fi
16527rm -f conftest.err conftest.$ac_objext \
16528      conftest$ac_exeext conftest.$ac_ext
16529if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16530
16531       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16532	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"
16533       else
16534	if test "$host_cpu" = ia64; then
16535	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16536	  allow_undefined_flag_GCJ="-z nodefs"
16537	  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"
16538	else
16539	 # Determine the default libpath from the value encoded in an empty executable.
16540	 cat >conftest.$ac_ext <<_ACEOF
16541/* confdefs.h.  */
16542_ACEOF
16543cat confdefs.h >>conftest.$ac_ext
16544cat >>conftest.$ac_ext <<_ACEOF
16545/* end confdefs.h.  */
16546
16547int
16548main ()
16549{
16550
16551  ;
16552  return 0;
16553}
16554_ACEOF
16555rm -f conftest.$ac_objext conftest$ac_exeext
16556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16557  (eval $ac_link) 2>conftest.er1
16558  ac_status=$?
16559  grep -v '^ *+' conftest.er1 >conftest.err
16560  rm -f conftest.er1
16561  cat conftest.err >&5
16562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563  (exit $ac_status); } &&
16564	 { ac_try='test -z "$ac_c_werror_flag"
16565			 || test ! -s conftest.err'
16566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567  (eval $ac_try) 2>&5
16568  ac_status=$?
16569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570  (exit $ac_status); }; } &&
16571	 { ac_try='test -s conftest$ac_exeext'
16572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16573  (eval $ac_try) 2>&5
16574  ac_status=$?
16575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576  (exit $ac_status); }; }; then
16577
16578aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16579}'`
16580# Check for a 64-bit object if we didn't find anything.
16581if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16582}'`; fi
16583else
16584  echo "$as_me: failed program was:" >&5
16585sed 's/^/| /' conftest.$ac_ext >&5
16586
16587fi
16588rm -f conftest.err conftest.$ac_objext \
16589      conftest$ac_exeext conftest.$ac_ext
16590if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16591
16592	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16593	  # Warning - without using the other run time loading flags,
16594	  # -berok will link without error, but may produce a broken library.
16595	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16596	  allow_undefined_flag_GCJ=' ${wl}-berok'
16597	  # Exported symbols can be pulled into shared objects from archives
16598	  whole_archive_flag_spec_GCJ='$convenience'
16599	  archive_cmds_need_lc_GCJ=yes
16600	  # This is similar to how AIX traditionally builds its shared libraries.
16601	  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'
16602	fi
16603      fi
16604      ;;
16605
16606    amigaos*)
16607      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)'
16608      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16609      hardcode_minus_L_GCJ=yes
16610      # see comment about different semantics on the GNU ld section
16611      ld_shlibs_GCJ=no
16612      ;;
16613
16614    bsdi[45]*)
16615      export_dynamic_flag_spec_GCJ=-rdynamic
16616      ;;
16617
16618    cygwin* | mingw* | pw32*)
16619      # When not using gcc, we currently assume that we are using
16620      # Microsoft Visual C++.
16621      # hardcode_libdir_flag_spec is actually meaningless, as there is
16622      # no search path for DLLs.
16623      hardcode_libdir_flag_spec_GCJ=' '
16624      allow_undefined_flag_GCJ=unsupported
16625      # Tell ltmain to make .lib files, not .a files.
16626      libext=lib
16627      # Tell ltmain to make .dll files, not .so files.
16628      shrext_cmds=".dll"
16629      # FIXME: Setting linknames here is a bad hack.
16630      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16631      # The linker will automatically build a .lib file if we build a DLL.
16632      old_archive_From_new_cmds_GCJ='true'
16633      # FIXME: Should let the user specify the lib program.
16634      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16635      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16636      enable_shared_with_static_runtimes_GCJ=yes
16637      ;;
16638
16639    darwin* | rhapsody*)
16640      case $host_os in
16641        rhapsody* | darwin1.[012])
16642         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16643         ;;
16644       *) # Darwin 1.3 on
16645         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16646           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16647         else
16648           case ${MACOSX_DEPLOYMENT_TARGET} in
16649             10.[012])
16650               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16651               ;;
16652             10.*)
16653               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16654               ;;
16655           esac
16656         fi
16657         ;;
16658      esac
16659      archive_cmds_need_lc_GCJ=no
16660      hardcode_direct_GCJ=no
16661      hardcode_automatic_GCJ=yes
16662      hardcode_shlibpath_var_GCJ=unsupported
16663      whole_archive_flag_spec_GCJ=''
16664      link_all_deplibs_GCJ=yes
16665    if test "$GCC" = yes ; then
16666    	output_verbose_link_cmd='echo'
16667        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16668      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16669      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16670      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16671      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}'
16672    else
16673      case $cc_basename in
16674        xlc*)
16675         output_verbose_link_cmd='echo'
16676         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16677         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16678          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16679         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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16680          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}'
16681          ;;
16682       *)
16683         ld_shlibs_GCJ=no
16684          ;;
16685      esac
16686    fi
16687      ;;
16688
16689    dgux*)
16690      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16691      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16692      hardcode_shlibpath_var_GCJ=no
16693      ;;
16694
16695    freebsd1*)
16696      ld_shlibs_GCJ=no
16697      ;;
16698
16699    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16700    # support.  Future versions do this automatically, but an explicit c++rt0.o
16701    # does not break anything, and helps significantly (at the cost of a little
16702    # extra space).
16703    freebsd2.2*)
16704      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16705      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16706      hardcode_direct_GCJ=yes
16707      hardcode_shlibpath_var_GCJ=no
16708      ;;
16709
16710    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16711    freebsd2*)
16712      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16713      hardcode_direct_GCJ=yes
16714      hardcode_minus_L_GCJ=yes
16715      hardcode_shlibpath_var_GCJ=no
16716      ;;
16717
16718    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16719    freebsd* | kfreebsd*-gnu | dragonfly*)
16720      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16721      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16722      hardcode_direct_GCJ=yes
16723      hardcode_shlibpath_var_GCJ=no
16724      ;;
16725
16726    hpux9*)
16727      if test "$GCC" = yes; then
16728	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'
16729      else
16730	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'
16731      fi
16732      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16733      hardcode_libdir_separator_GCJ=:
16734      hardcode_direct_GCJ=yes
16735
16736      # hardcode_minus_L: Not really in the search PATH,
16737      # but as the default location of the library.
16738      hardcode_minus_L_GCJ=yes
16739      export_dynamic_flag_spec_GCJ='${wl}-E'
16740      ;;
16741
16742    hpux10*)
16743      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16744	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16745      else
16746	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16747      fi
16748      if test "$with_gnu_ld" = no; then
16749	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16750	hardcode_libdir_separator_GCJ=:
16751
16752	hardcode_direct_GCJ=yes
16753	export_dynamic_flag_spec_GCJ='${wl}-E'
16754
16755	# hardcode_minus_L: Not really in the search PATH,
16756	# but as the default location of the library.
16757	hardcode_minus_L_GCJ=yes
16758      fi
16759      ;;
16760
16761    hpux11*)
16762      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16763	case $host_cpu in
16764	hppa*64*)
16765	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16766	  ;;
16767	ia64*)
16768	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16769	  ;;
16770	*)
16771	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16772	  ;;
16773	esac
16774      else
16775	case $host_cpu in
16776	hppa*64*)
16777	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16778	  ;;
16779	ia64*)
16780	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16781	  ;;
16782	*)
16783	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16784	  ;;
16785	esac
16786      fi
16787      if test "$with_gnu_ld" = no; then
16788	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16789	hardcode_libdir_separator_GCJ=:
16790
16791	case $host_cpu in
16792	hppa*64*|ia64*)
16793	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16794	  hardcode_direct_GCJ=no
16795	  hardcode_shlibpath_var_GCJ=no
16796	  ;;
16797	*)
16798	  hardcode_direct_GCJ=yes
16799	  export_dynamic_flag_spec_GCJ='${wl}-E'
16800
16801	  # hardcode_minus_L: Not really in the search PATH,
16802	  # but as the default location of the library.
16803	  hardcode_minus_L_GCJ=yes
16804	  ;;
16805	esac
16806      fi
16807      ;;
16808
16809    irix5* | irix6* | nonstopux*)
16810      if test "$GCC" = yes; then
16811	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'
16812      else
16813	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'
16814	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16815      fi
16816      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16817      hardcode_libdir_separator_GCJ=:
16818      link_all_deplibs_GCJ=yes
16819      ;;
16820
16821    netbsd*)
16822      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16823	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16824      else
16825	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16826      fi
16827      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16828      hardcode_direct_GCJ=yes
16829      hardcode_shlibpath_var_GCJ=no
16830      ;;
16831
16832    newsos6)
16833      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16834      hardcode_direct_GCJ=yes
16835      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16836      hardcode_libdir_separator_GCJ=:
16837      hardcode_shlibpath_var_GCJ=no
16838      ;;
16839
16840    openbsd*)
16841      hardcode_direct_GCJ=yes
16842      hardcode_shlibpath_var_GCJ=no
16843      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16844	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16845	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16846	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16847	export_dynamic_flag_spec_GCJ='${wl}-E'
16848      else
16849       case $host_os in
16850	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16851	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16852	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16853	   ;;
16854	 *)
16855	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16856	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16857	   ;;
16858       esac
16859      fi
16860      ;;
16861
16862    os2*)
16863      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16864      hardcode_minus_L_GCJ=yes
16865      allow_undefined_flag_GCJ=unsupported
16866      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'
16867      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16868      ;;
16869
16870    osf3*)
16871      if test "$GCC" = yes; then
16872	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16873	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'
16874      else
16875	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16876	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'
16877      fi
16878      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16879      hardcode_libdir_separator_GCJ=:
16880      ;;
16881
16882    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16883      if test "$GCC" = yes; then
16884	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16885	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'
16886	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16887      else
16888	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16889	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'
16890	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~
16891	$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'
16892
16893	# Both c and cxx compiler support -rpath directly
16894	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16895      fi
16896      hardcode_libdir_separator_GCJ=:
16897      ;;
16898
16899    solaris*)
16900      no_undefined_flag_GCJ=' -z text'
16901      if test "$GCC" = yes; then
16902	wlarc='${wl}'
16903	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16904	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16905	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16906      else
16907	wlarc=''
16908	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16909	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16910  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16911      fi
16912      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16913      hardcode_shlibpath_var_GCJ=no
16914      case $host_os in
16915      solaris2.[0-5] | solaris2.[0-5].*) ;;
16916      *)
16917 	# The compiler driver will combine linker options so we
16918 	# cannot just pass the convience library names through
16919 	# without $wl, iff we do not link with $LD.
16920 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16921 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16922 	case $wlarc in
16923 	'')
16924 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16925 	*)
16926 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16927 	esac ;;
16928      esac
16929      link_all_deplibs_GCJ=yes
16930      ;;
16931
16932    sunos4*)
16933      if test "x$host_vendor" = xsequent; then
16934	# Use $CC to link under sequent, because it throws in some extra .o
16935	# files that make .init and .fini sections work.
16936	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16937      else
16938	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16939      fi
16940      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16941      hardcode_direct_GCJ=yes
16942      hardcode_minus_L_GCJ=yes
16943      hardcode_shlibpath_var_GCJ=no
16944      ;;
16945
16946    sysv4)
16947      case $host_vendor in
16948	sni)
16949	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16950	  hardcode_direct_GCJ=yes # is this really true???
16951	;;
16952	siemens)
16953	  ## LD is ld it makes a PLAMLIB
16954	  ## CC just makes a GrossModule.
16955	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16956	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16957	  hardcode_direct_GCJ=no
16958        ;;
16959	motorola)
16960	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16961	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16962	;;
16963      esac
16964      runpath_var='LD_RUN_PATH'
16965      hardcode_shlibpath_var_GCJ=no
16966      ;;
16967
16968    sysv4.3*)
16969      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16970      hardcode_shlibpath_var_GCJ=no
16971      export_dynamic_flag_spec_GCJ='-Bexport'
16972      ;;
16973
16974    sysv4*MP*)
16975      if test -d /usr/nec; then
16976	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16977	hardcode_shlibpath_var_GCJ=no
16978	runpath_var=LD_RUN_PATH
16979	hardcode_runpath_var=yes
16980	ld_shlibs_GCJ=yes
16981      fi
16982      ;;
16983
16984    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16985      no_undefined_flag_GCJ='${wl}-z,text'
16986      archive_cmds_need_lc_GCJ=no
16987      hardcode_shlibpath_var_GCJ=no
16988      runpath_var='LD_RUN_PATH'
16989
16990      if test "$GCC" = yes; then
16991	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16992	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16993      else
16994	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16995	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16996      fi
16997      ;;
16998
16999    sysv5* | sco3.2v5* | sco5v6*)
17000      # Note: We can NOT use -z defs as we might desire, because we do not
17001      # link with -lc, and that would cause any symbols used from libc to
17002      # always be unresolved, which means just about no library would
17003      # ever link correctly.  If we're not using GNU ld we use -z text
17004      # though, which does catch some bad symbols but isn't as heavy-handed
17005      # as -z defs.
17006      no_undefined_flag_GCJ='${wl}-z,text'
17007      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17008      archive_cmds_need_lc_GCJ=no
17009      hardcode_shlibpath_var_GCJ=no
17010      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17011      hardcode_libdir_separator_GCJ=':'
17012      link_all_deplibs_GCJ=yes
17013      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17014      runpath_var='LD_RUN_PATH'
17015
17016      if test "$GCC" = yes; then
17017	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17018	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17019      else
17020	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17021	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17022      fi
17023      ;;
17024
17025    uts4*)
17026      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17027      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17028      hardcode_shlibpath_var_GCJ=no
17029      ;;
17030
17031    *)
17032      ld_shlibs_GCJ=no
17033      ;;
17034    esac
17035  fi
17036
17037echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17038echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17039test "$ld_shlibs_GCJ" = no && can_build_shared=no
17040
17041#
17042# Do we need to explicitly link libc?
17043#
17044case "x$archive_cmds_need_lc_GCJ" in
17045x|xyes)
17046  # Assume -lc should be added
17047  archive_cmds_need_lc_GCJ=yes
17048
17049  if test "$enable_shared" = yes && test "$GCC" = yes; then
17050    case $archive_cmds_GCJ in
17051    *'~'*)
17052      # FIXME: we may have to deal with multi-command sequences.
17053      ;;
17054    '$CC '*)
17055      # Test whether the compiler implicitly links with -lc since on some
17056      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17057      # to ld, don't add -lc before -lgcc.
17058      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17059echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17060      $rm conftest*
17061      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17062
17063      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17064  (eval $ac_compile) 2>&5
17065  ac_status=$?
17066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067  (exit $ac_status); } 2>conftest.err; then
17068        soname=conftest
17069        lib=conftest
17070        libobjs=conftest.$ac_objext
17071        deplibs=
17072        wl=$lt_prog_compiler_wl_GCJ
17073	pic_flag=$lt_prog_compiler_pic_GCJ
17074        compiler_flags=-v
17075        linker_flags=-v
17076        verstring=
17077        output_objdir=.
17078        libname=conftest
17079        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17080        allow_undefined_flag_GCJ=
17081        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17082  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17083  ac_status=$?
17084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085  (exit $ac_status); }
17086        then
17087	  archive_cmds_need_lc_GCJ=no
17088        else
17089	  archive_cmds_need_lc_GCJ=yes
17090        fi
17091        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17092      else
17093        cat conftest.err 1>&5
17094      fi
17095      $rm conftest*
17096      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17097echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17098      ;;
17099    esac
17100  fi
17101  ;;
17102esac
17103
17104echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17105echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17106library_names_spec=
17107libname_spec='lib$name'
17108soname_spec=
17109shrext_cmds=".so"
17110postinstall_cmds=
17111postuninstall_cmds=
17112finish_cmds=
17113finish_eval=
17114shlibpath_var=
17115shlibpath_overrides_runpath=unknown
17116version_type=none
17117dynamic_linker="$host_os ld.so"
17118sys_lib_dlsearch_path_spec="/lib /usr/lib"
17119if test "$GCC" = yes; then
17120  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17121  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17122    # if the path contains ";" then we assume it to be the separator
17123    # otherwise default to the standard path separator (i.e. ":") - it is
17124    # assumed that no part of a normal pathname contains ";" but that should
17125    # okay in the real world where ";" in dirpaths is itself problematic.
17126    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17127  else
17128    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17129  fi
17130else
17131  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17132fi
17133need_lib_prefix=unknown
17134hardcode_into_libs=no
17135
17136# when you set need_version to no, make sure it does not cause -set_version
17137# flags to be left without arguments
17138need_version=unknown
17139
17140case $host_os in
17141aix3*)
17142  version_type=linux
17143  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17144  shlibpath_var=LIBPATH
17145
17146  # AIX 3 has no versioning support, so we append a major version to the name.
17147  soname_spec='${libname}${release}${shared_ext}$major'
17148  ;;
17149
17150aix4* | aix5*)
17151  version_type=linux
17152  need_lib_prefix=no
17153  need_version=no
17154  hardcode_into_libs=yes
17155  if test "$host_cpu" = ia64; then
17156    # AIX 5 supports IA64
17157    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17158    shlibpath_var=LD_LIBRARY_PATH
17159  else
17160    # With GCC up to 2.95.x, collect2 would create an import file
17161    # for dependence libraries.  The import file would start with
17162    # the line `#! .'.  This would cause the generated library to
17163    # depend on `.', always an invalid library.  This was fixed in
17164    # development snapshots of GCC prior to 3.0.
17165    case $host_os in
17166      aix4 | aix4.[01] | aix4.[01].*)
17167      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17168	   echo ' yes '
17169	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17170	:
17171      else
17172	can_build_shared=no
17173      fi
17174      ;;
17175    esac
17176    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17177    # soname into executable. Probably we can add versioning support to
17178    # collect2, so additional links can be useful in future.
17179    if test "$aix_use_runtimelinking" = yes; then
17180      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17181      # instead of lib<name>.a to let people know that these are not
17182      # typical AIX shared libraries.
17183      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17184    else
17185      # We preserve .a as extension for shared libraries through AIX4.2
17186      # and later when we are not doing run time linking.
17187      library_names_spec='${libname}${release}.a $libname.a'
17188      soname_spec='${libname}${release}${shared_ext}$major'
17189    fi
17190    shlibpath_var=LIBPATH
17191  fi
17192  ;;
17193
17194amigaos*)
17195  library_names_spec='$libname.ixlibrary $libname.a'
17196  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17197  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'
17198  ;;
17199
17200beos*)
17201  library_names_spec='${libname}${shared_ext}'
17202  dynamic_linker="$host_os ld.so"
17203  shlibpath_var=LIBRARY_PATH
17204  ;;
17205
17206bsdi[45]*)
17207  version_type=linux
17208  need_version=no
17209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17210  soname_spec='${libname}${release}${shared_ext}$major'
17211  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17212  shlibpath_var=LD_LIBRARY_PATH
17213  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17214  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17215  # the default ld.so.conf also contains /usr/contrib/lib and
17216  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17217  # libtool to hard-code these into programs
17218  ;;
17219
17220cygwin* | mingw* | pw32*)
17221  version_type=windows
17222  shrext_cmds=".dll"
17223  need_version=no
17224  need_lib_prefix=no
17225
17226  case $GCC,$host_os in
17227  yes,cygwin* | yes,mingw* | yes,pw32*)
17228    library_names_spec='$libname.dll.a'
17229    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17230    postinstall_cmds='base_file=`basename \${file}`~
17231      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17232      dldir=$destdir/`dirname \$dlpath`~
17233      test -d \$dldir || mkdir -p \$dldir~
17234      $install_prog $dir/$dlname \$dldir/$dlname~
17235      chmod a+x \$dldir/$dlname'
17236    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17237      dlpath=$dir/\$dldll~
17238       $rm \$dlpath'
17239    shlibpath_overrides_runpath=yes
17240
17241    case $host_os in
17242    cygwin*)
17243      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17244      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17245      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17246      ;;
17247    mingw*)
17248      # MinGW DLLs use traditional 'lib' prefix
17249      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17250      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17251      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17252        # It is most probably a Windows format PATH printed by
17253        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17254        # path with ; separators, and with drive letters. We can handle the
17255        # drive letters (cygwin fileutils understands them), so leave them,
17256        # especially as we might pass files found there to a mingw objdump,
17257        # which wouldn't understand a cygwinified path. Ahh.
17258        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17259      else
17260        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17261      fi
17262      ;;
17263    pw32*)
17264      # pw32 DLLs use 'pw' prefix rather than 'lib'
17265      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17266      ;;
17267    esac
17268    ;;
17269
17270  linux*)
17271    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17272      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17273      supports_anon_versioning=no
17274      case `$LD -v 2>/dev/null` in
17275        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17276        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17277        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17278        *\ 2.11.*) ;; # other 2.11 versions
17279        *) supports_anon_versioning=yes ;;
17280      esac
17281      if test $supports_anon_versioning = yes; then
17282        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17283cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17284$echo "local: *; };" >> $output_objdir/$libname.ver~
17285        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17286      else
17287        $archive_expsym_cmds="$archive_cmds"
17288      fi
17289    else
17290      ld_shlibs=no
17291    fi
17292    ;;
17293
17294  *)
17295    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17296    ;;
17297  esac
17298  dynamic_linker='Win32 ld.exe'
17299  # FIXME: first we should search . and the directory the executable is in
17300  shlibpath_var=PATH
17301  ;;
17302
17303darwin* | rhapsody*)
17304  dynamic_linker="$host_os dyld"
17305  version_type=darwin
17306  need_lib_prefix=no
17307  need_version=no
17308  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17309  soname_spec='${libname}${release}${major}$shared_ext'
17310  shlibpath_overrides_runpath=yes
17311  shlibpath_var=DYLD_LIBRARY_PATH
17312  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17313  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17314  if test "$GCC" = yes; then
17315    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17316  else
17317    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17318  fi
17319  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17320  ;;
17321
17322dgux*)
17323  version_type=linux
17324  need_lib_prefix=no
17325  need_version=no
17326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17327  soname_spec='${libname}${release}${shared_ext}$major'
17328  shlibpath_var=LD_LIBRARY_PATH
17329  ;;
17330
17331freebsd1*)
17332  dynamic_linker=no
17333  ;;
17334
17335kfreebsd*-gnu)
17336  version_type=linux
17337  need_lib_prefix=no
17338  need_version=no
17339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17340  soname_spec='${libname}${release}${shared_ext}$major'
17341  shlibpath_var=LD_LIBRARY_PATH
17342  shlibpath_overrides_runpath=no
17343  hardcode_into_libs=yes
17344  dynamic_linker='GNU ld.so'
17345  ;;
17346
17347freebsd* | dragonfly*)
17348  # DragonFly does not have aout.  When/if they implement a new
17349  # versioning mechanism, adjust this.
17350  if test -x /usr/bin/objformat; then
17351    objformat=`/usr/bin/objformat`
17352  else
17353    case $host_os in
17354    freebsd[123]*) objformat=aout ;;
17355    *) objformat=elf ;;
17356    esac
17357  fi
17358  # Handle Gentoo/FreeBSD as it was Linux
17359  case $host_vendor in
17360    gentoo)
17361      version_type=linux ;;
17362    *)
17363      version_type=freebsd-$objformat ;;
17364  esac
17365
17366  case $version_type in
17367    freebsd-elf*)
17368      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17369      need_version=no
17370      need_lib_prefix=no
17371      ;;
17372    freebsd-*)
17373      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17374      need_version=yes
17375      ;;
17376    linux)
17377      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17378      soname_spec='${libname}${release}${shared_ext}$major'
17379      need_lib_prefix=no
17380      need_version=no
17381      ;;
17382  esac
17383  shlibpath_var=LD_LIBRARY_PATH
17384  case $host_os in
17385  freebsd2*)
17386    shlibpath_overrides_runpath=yes
17387    ;;
17388  freebsd3.[01]* | freebsdelf3.[01]*)
17389    shlibpath_overrides_runpath=yes
17390    hardcode_into_libs=yes
17391    ;;
17392  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17393  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17394    shlibpath_overrides_runpath=no
17395    hardcode_into_libs=yes
17396    ;;
17397  freebsd*) # from 4.6 on
17398    shlibpath_overrides_runpath=yes
17399    hardcode_into_libs=yes
17400    ;;
17401  esac
17402  ;;
17403
17404gnu*)
17405  version_type=linux
17406  need_lib_prefix=no
17407  need_version=no
17408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17409  soname_spec='${libname}${release}${shared_ext}$major'
17410  shlibpath_var=LD_LIBRARY_PATH
17411  hardcode_into_libs=yes
17412  ;;
17413
17414hpux9* | hpux10* | hpux11*)
17415  # Give a soname corresponding to the major version so that dld.sl refuses to
17416  # link against other versions.
17417  version_type=sunos
17418  need_lib_prefix=no
17419  need_version=no
17420  case $host_cpu in
17421  ia64*)
17422    shrext_cmds='.so'
17423    hardcode_into_libs=yes
17424    dynamic_linker="$host_os dld.so"
17425    shlibpath_var=LD_LIBRARY_PATH
17426    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17427    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17428    soname_spec='${libname}${release}${shared_ext}$major'
17429    if test "X$HPUX_IA64_MODE" = X32; then
17430      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17431    else
17432      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17433    fi
17434    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17435    ;;
17436   hppa*64*)
17437     shrext_cmds='.sl'
17438     hardcode_into_libs=yes
17439     dynamic_linker="$host_os dld.sl"
17440     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17441     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17443     soname_spec='${libname}${release}${shared_ext}$major'
17444     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17445     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17446     ;;
17447   *)
17448    shrext_cmds='.sl'
17449    dynamic_linker="$host_os dld.sl"
17450    shlibpath_var=SHLIB_PATH
17451    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17452    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17453    soname_spec='${libname}${release}${shared_ext}$major'
17454    ;;
17455  esac
17456  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17457  postinstall_cmds='chmod 555 $lib'
17458  ;;
17459
17460interix3*)
17461  version_type=linux
17462  need_lib_prefix=no
17463  need_version=no
17464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17465  soname_spec='${libname}${release}${shared_ext}$major'
17466  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17467  shlibpath_var=LD_LIBRARY_PATH
17468  shlibpath_overrides_runpath=no
17469  hardcode_into_libs=yes
17470  ;;
17471
17472irix5* | irix6* | nonstopux*)
17473  case $host_os in
17474    nonstopux*) version_type=nonstopux ;;
17475    *)
17476	if test "$lt_cv_prog_gnu_ld" = yes; then
17477		version_type=linux
17478	else
17479		version_type=irix
17480	fi ;;
17481  esac
17482  need_lib_prefix=no
17483  need_version=no
17484  soname_spec='${libname}${release}${shared_ext}$major'
17485  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17486  case $host_os in
17487  irix5* | nonstopux*)
17488    libsuff= shlibsuff=
17489    ;;
17490  *)
17491    case $LD in # libtool.m4 will add one of these switches to LD
17492    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17493      libsuff= shlibsuff= libmagic=32-bit;;
17494    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17495      libsuff=32 shlibsuff=N32 libmagic=N32;;
17496    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17497      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17498    *) libsuff= shlibsuff= libmagic=never-match;;
17499    esac
17500    ;;
17501  esac
17502  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17503  shlibpath_overrides_runpath=no
17504  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17505  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17506  hardcode_into_libs=yes
17507  ;;
17508
17509# No shared lib support for Linux oldld, aout, or coff.
17510linux*oldld* | linux*aout* | linux*coff*)
17511  dynamic_linker=no
17512  ;;
17513
17514# This must be Linux ELF.
17515linux*)
17516  version_type=linux
17517  need_lib_prefix=no
17518  need_version=no
17519  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17520  soname_spec='${libname}${release}${shared_ext}$major'
17521  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17522  shlibpath_var=LD_LIBRARY_PATH
17523  shlibpath_overrides_runpath=no
17524  # This implies no fast_install, which is unacceptable.
17525  # Some rework will be needed to allow for fast_install
17526  # before this can be enabled.
17527  hardcode_into_libs=yes
17528
17529  # Append ld.so.conf contents to the search path
17530  if test -f /etc/ld.so.conf; then
17531    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17532    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17533  fi
17534
17535  # We used to test for /lib/ld.so.1 and disable shared libraries on
17536  # powerpc, because MkLinux only supported shared libraries with the
17537  # GNU dynamic linker.  Since this was broken with cross compilers,
17538  # most powerpc-linux boxes support dynamic linking these days and
17539  # people can always --disable-shared, the test was removed, and we
17540  # assume the GNU/Linux dynamic linker is in use.
17541  dynamic_linker='GNU/Linux ld.so'
17542  ;;
17543
17544knetbsd*-gnu)
17545  version_type=linux
17546  need_lib_prefix=no
17547  need_version=no
17548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17549  soname_spec='${libname}${release}${shared_ext}$major'
17550  shlibpath_var=LD_LIBRARY_PATH
17551  shlibpath_overrides_runpath=no
17552  hardcode_into_libs=yes
17553  dynamic_linker='GNU ld.so'
17554  ;;
17555
17556netbsd*)
17557  version_type=sunos
17558  need_lib_prefix=no
17559  need_version=no
17560  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17561    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17562    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17563    dynamic_linker='NetBSD (a.out) ld.so'
17564  else
17565    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17566    soname_spec='${libname}${release}${shared_ext}$major'
17567    dynamic_linker='NetBSD ld.elf_so'
17568  fi
17569  shlibpath_var=LD_LIBRARY_PATH
17570  shlibpath_overrides_runpath=yes
17571  hardcode_into_libs=yes
17572  ;;
17573
17574newsos6)
17575  version_type=linux
17576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17577  shlibpath_var=LD_LIBRARY_PATH
17578  shlibpath_overrides_runpath=yes
17579  ;;
17580
17581nto-qnx*)
17582  version_type=linux
17583  need_lib_prefix=no
17584  need_version=no
17585  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17586  soname_spec='${libname}${release}${shared_ext}$major'
17587  shlibpath_var=LD_LIBRARY_PATH
17588  shlibpath_overrides_runpath=yes
17589  ;;
17590
17591openbsd*)
17592  version_type=sunos
17593  sys_lib_dlsearch_path_spec="/usr/lib"
17594  need_lib_prefix=no
17595  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17596  case $host_os in
17597    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17598    *)                         need_version=no  ;;
17599  esac
17600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17601  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17602  shlibpath_var=LD_LIBRARY_PATH
17603  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17604    case $host_os in
17605      openbsd2.[89] | openbsd2.[89].*)
17606	shlibpath_overrides_runpath=no
17607	;;
17608      *)
17609	shlibpath_overrides_runpath=yes
17610	;;
17611      esac
17612  else
17613    shlibpath_overrides_runpath=yes
17614  fi
17615  ;;
17616
17617os2*)
17618  libname_spec='$name'
17619  shrext_cmds=".dll"
17620  need_lib_prefix=no
17621  library_names_spec='$libname${shared_ext} $libname.a'
17622  dynamic_linker='OS/2 ld.exe'
17623  shlibpath_var=LIBPATH
17624  ;;
17625
17626osf3* | osf4* | osf5*)
17627  version_type=osf
17628  need_lib_prefix=no
17629  need_version=no
17630  soname_spec='${libname}${release}${shared_ext}$major'
17631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17632  shlibpath_var=LD_LIBRARY_PATH
17633  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17634  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17635  ;;
17636
17637solaris*)
17638  version_type=linux
17639  need_lib_prefix=no
17640  need_version=no
17641  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17642  soname_spec='${libname}${release}${shared_ext}$major'
17643  shlibpath_var=LD_LIBRARY_PATH
17644  shlibpath_overrides_runpath=yes
17645  hardcode_into_libs=yes
17646  # ldd complains unless libraries are executable
17647  postinstall_cmds='chmod +x $lib'
17648  ;;
17649
17650sunos4*)
17651  version_type=sunos
17652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17653  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17654  shlibpath_var=LD_LIBRARY_PATH
17655  shlibpath_overrides_runpath=yes
17656  if test "$with_gnu_ld" = yes; then
17657    need_lib_prefix=no
17658  fi
17659  need_version=yes
17660  ;;
17661
17662sysv4 | sysv4.3*)
17663  version_type=linux
17664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17665  soname_spec='${libname}${release}${shared_ext}$major'
17666  shlibpath_var=LD_LIBRARY_PATH
17667  case $host_vendor in
17668    sni)
17669      shlibpath_overrides_runpath=no
17670      need_lib_prefix=no
17671      export_dynamic_flag_spec='${wl}-Blargedynsym'
17672      runpath_var=LD_RUN_PATH
17673      ;;
17674    siemens)
17675      need_lib_prefix=no
17676      ;;
17677    motorola)
17678      need_lib_prefix=no
17679      need_version=no
17680      shlibpath_overrides_runpath=no
17681      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17682      ;;
17683  esac
17684  ;;
17685
17686sysv4*MP*)
17687  if test -d /usr/nec ;then
17688    version_type=linux
17689    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17690    soname_spec='$libname${shared_ext}.$major'
17691    shlibpath_var=LD_LIBRARY_PATH
17692  fi
17693  ;;
17694
17695sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17696  version_type=freebsd-elf
17697  need_lib_prefix=no
17698  need_version=no
17699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17700  soname_spec='${libname}${release}${shared_ext}$major'
17701  shlibpath_var=LD_LIBRARY_PATH
17702  hardcode_into_libs=yes
17703  if test "$with_gnu_ld" = yes; then
17704    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17705    shlibpath_overrides_runpath=no
17706  else
17707    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17708    shlibpath_overrides_runpath=yes
17709    case $host_os in
17710      sco3.2v5*)
17711        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17712	;;
17713    esac
17714  fi
17715  sys_lib_dlsearch_path_spec='/usr/lib'
17716  ;;
17717
17718uts4*)
17719  version_type=linux
17720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17721  soname_spec='${libname}${release}${shared_ext}$major'
17722  shlibpath_var=LD_LIBRARY_PATH
17723  ;;
17724
17725*)
17726  dynamic_linker=no
17727  ;;
17728esac
17729echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17730echo "${ECHO_T}$dynamic_linker" >&6
17731test "$dynamic_linker" = no && can_build_shared=no
17732
17733variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17734if test "$GCC" = yes; then
17735  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17736fi
17737
17738echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17739echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17740hardcode_action_GCJ=
17741if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17742   test -n "$runpath_var_GCJ" || \
17743   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17744
17745  # We can hardcode non-existant directories.
17746  if test "$hardcode_direct_GCJ" != no &&
17747     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17748     # have to relink, otherwise we might link with an installed library
17749     # when we should be linking with a yet-to-be-installed one
17750     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17751     test "$hardcode_minus_L_GCJ" != no; then
17752    # Linking always hardcodes the temporary library directory.
17753    hardcode_action_GCJ=relink
17754  else
17755    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17756    hardcode_action_GCJ=immediate
17757  fi
17758else
17759  # We cannot hardcode anything, or else we can only hardcode existing
17760  # directories.
17761  hardcode_action_GCJ=unsupported
17762fi
17763echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17764echo "${ECHO_T}$hardcode_action_GCJ" >&6
17765
17766if test "$hardcode_action_GCJ" = relink; then
17767  # Fast installation is not supported
17768  enable_fast_install=no
17769elif test "$shlibpath_overrides_runpath" = yes ||
17770     test "$enable_shared" = no; then
17771  # Fast installation is not necessary
17772  enable_fast_install=needless
17773fi
17774
17775
17776# The else clause should only fire when bootstrapping the
17777# libtool distribution, otherwise you forgot to ship ltmain.sh
17778# with your package, and you will get complaints that there are
17779# no rules to generate ltmain.sh.
17780if test -f "$ltmain"; then
17781  # See if we are running on zsh, and set the options which allow our commands through
17782  # without removal of \ escapes.
17783  if test -n "${ZSH_VERSION+set}" ; then
17784    setopt NO_GLOB_SUBST
17785  fi
17786  # Now quote all the things that may contain metacharacters while being
17787  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17788  # variables and quote the copies for generation of the libtool script.
17789  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17790    SED SHELL STRIP \
17791    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17792    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17793    deplibs_check_method reload_flag reload_cmds need_locks \
17794    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17795    lt_cv_sys_global_symbol_to_c_name_address \
17796    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17797    old_postinstall_cmds old_postuninstall_cmds \
17798    compiler_GCJ \
17799    CC_GCJ \
17800    LD_GCJ \
17801    lt_prog_compiler_wl_GCJ \
17802    lt_prog_compiler_pic_GCJ \
17803    lt_prog_compiler_static_GCJ \
17804    lt_prog_compiler_no_builtin_flag_GCJ \
17805    export_dynamic_flag_spec_GCJ \
17806    thread_safe_flag_spec_GCJ \
17807    whole_archive_flag_spec_GCJ \
17808    enable_shared_with_static_runtimes_GCJ \
17809    old_archive_cmds_GCJ \
17810    old_archive_from_new_cmds_GCJ \
17811    predep_objects_GCJ \
17812    postdep_objects_GCJ \
17813    predeps_GCJ \
17814    postdeps_GCJ \
17815    compiler_lib_search_path_GCJ \
17816    archive_cmds_GCJ \
17817    archive_expsym_cmds_GCJ \
17818    postinstall_cmds_GCJ \
17819    postuninstall_cmds_GCJ \
17820    old_archive_from_expsyms_cmds_GCJ \
17821    allow_undefined_flag_GCJ \
17822    no_undefined_flag_GCJ \
17823    export_symbols_cmds_GCJ \
17824    hardcode_libdir_flag_spec_GCJ \
17825    hardcode_libdir_flag_spec_ld_GCJ \
17826    hardcode_libdir_separator_GCJ \
17827    hardcode_automatic_GCJ \
17828    module_cmds_GCJ \
17829    module_expsym_cmds_GCJ \
17830    lt_cv_prog_compiler_c_o_GCJ \
17831    exclude_expsyms_GCJ \
17832    include_expsyms_GCJ; do
17833
17834    case $var in
17835    old_archive_cmds_GCJ | \
17836    old_archive_from_new_cmds_GCJ | \
17837    archive_cmds_GCJ | \
17838    archive_expsym_cmds_GCJ | \
17839    module_cmds_GCJ | \
17840    module_expsym_cmds_GCJ | \
17841    old_archive_from_expsyms_cmds_GCJ | \
17842    export_symbols_cmds_GCJ | \
17843    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17844    postinstall_cmds | postuninstall_cmds | \
17845    old_postinstall_cmds | old_postuninstall_cmds | \
17846    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17847      # Double-quote double-evaled strings.
17848      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17849      ;;
17850    *)
17851      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17852      ;;
17853    esac
17854  done
17855
17856  case $lt_echo in
17857  *'\$0 --fallback-echo"')
17858    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17859    ;;
17860  esac
17861
17862cfgfile="$ofile"
17863
17864  cat <<__EOF__ >> "$cfgfile"
17865# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17866
17867# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17868
17869# Shell to use when invoking shell scripts.
17870SHELL=$lt_SHELL
17871
17872# Whether or not to build shared libraries.
17873build_libtool_libs=$enable_shared
17874
17875# Whether or not to build static libraries.
17876build_old_libs=$enable_static
17877
17878# Whether or not to add -lc for building shared libraries.
17879build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17880
17881# Whether or not to disallow shared libs when runtime libs are static
17882allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17883
17884# Whether or not to optimize for fast installation.
17885fast_install=$enable_fast_install
17886
17887# The host system.
17888host_alias=$host_alias
17889host=$host
17890host_os=$host_os
17891
17892# The build system.
17893build_alias=$build_alias
17894build=$build
17895build_os=$build_os
17896
17897# An echo program that does not interpret backslashes.
17898echo=$lt_echo
17899
17900# The archiver.
17901AR=$lt_AR
17902AR_FLAGS=$lt_AR_FLAGS
17903
17904# A C compiler.
17905LTCC=$lt_LTCC
17906
17907# LTCC compiler flags.
17908LTCFLAGS=$lt_LTCFLAGS
17909
17910# A language-specific compiler.
17911CC=$lt_compiler_GCJ
17912
17913# Is the compiler the GNU C compiler?
17914with_gcc=$GCC_GCJ
17915
17916# An ERE matcher.
17917EGREP=$lt_EGREP
17918
17919# The linker used to build libraries.
17920LD=$lt_LD_GCJ
17921
17922# Whether we need hard or soft links.
17923LN_S=$lt_LN_S
17924
17925# A BSD-compatible nm program.
17926NM=$lt_NM
17927
17928# A symbol stripping program
17929STRIP=$lt_STRIP
17930
17931# Used to examine libraries when file_magic_cmd begins "file"
17932MAGIC_CMD=$MAGIC_CMD
17933
17934# Used on cygwin: DLL creation program.
17935DLLTOOL="$DLLTOOL"
17936
17937# Used on cygwin: object dumper.
17938OBJDUMP="$OBJDUMP"
17939
17940# Used on cygwin: assembler.
17941AS="$AS"
17942
17943# The name of the directory that contains temporary libtool files.
17944objdir=$objdir
17945
17946# How to create reloadable object files.
17947reload_flag=$lt_reload_flag
17948reload_cmds=$lt_reload_cmds
17949
17950# How to pass a linker flag through the compiler.
17951wl=$lt_lt_prog_compiler_wl_GCJ
17952
17953# Object file suffix (normally "o").
17954objext="$ac_objext"
17955
17956# Old archive suffix (normally "a").
17957libext="$libext"
17958
17959# Shared library suffix (normally ".so").
17960shrext_cmds='$shrext_cmds'
17961
17962# Executable file suffix (normally "").
17963exeext="$exeext"
17964
17965# Additional compiler flags for building library objects.
17966pic_flag=$lt_lt_prog_compiler_pic_GCJ
17967pic_mode=$pic_mode
17968
17969# What is the maximum length of a command?
17970max_cmd_len=$lt_cv_sys_max_cmd_len
17971
17972# Does compiler simultaneously support -c and -o options?
17973compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17974
17975# Must we lock files when doing compilation?
17976need_locks=$lt_need_locks
17977
17978# Do we need the lib prefix for modules?
17979need_lib_prefix=$need_lib_prefix
17980
17981# Do we need a version for libraries?
17982need_version=$need_version
17983
17984# Whether dlopen is supported.
17985dlopen_support=$enable_dlopen
17986
17987# Whether dlopen of programs is supported.
17988dlopen_self=$enable_dlopen_self
17989
17990# Whether dlopen of statically linked programs is supported.
17991dlopen_self_static=$enable_dlopen_self_static
17992
17993# Compiler flag to prevent dynamic linking.
17994link_static_flag=$lt_lt_prog_compiler_static_GCJ
17995
17996# Compiler flag to turn off builtin functions.
17997no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17998
17999# Compiler flag to allow reflexive dlopens.
18000export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18001
18002# Compiler flag to generate shared objects directly from archives.
18003whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18004
18005# Compiler flag to generate thread-safe objects.
18006thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18007
18008# Library versioning type.
18009version_type=$version_type
18010
18011# Format of library name prefix.
18012libname_spec=$lt_libname_spec
18013
18014# List of archive names.  First name is the real one, the rest are links.
18015# The last name is the one that the linker finds with -lNAME.
18016library_names_spec=$lt_library_names_spec
18017
18018# The coded name of the library, if different from the real name.
18019soname_spec=$lt_soname_spec
18020
18021# Commands used to build and install an old-style archive.
18022RANLIB=$lt_RANLIB
18023old_archive_cmds=$lt_old_archive_cmds_GCJ
18024old_postinstall_cmds=$lt_old_postinstall_cmds
18025old_postuninstall_cmds=$lt_old_postuninstall_cmds
18026
18027# Create an old-style archive from a shared archive.
18028old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18029
18030# Create a temporary old-style archive to link instead of a shared archive.
18031old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18032
18033# Commands used to build and install a shared archive.
18034archive_cmds=$lt_archive_cmds_GCJ
18035archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18036postinstall_cmds=$lt_postinstall_cmds
18037postuninstall_cmds=$lt_postuninstall_cmds
18038
18039# Commands used to build a loadable module (assumed same as above if empty)
18040module_cmds=$lt_module_cmds_GCJ
18041module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18042
18043# Commands to strip libraries.
18044old_striplib=$lt_old_striplib
18045striplib=$lt_striplib
18046
18047# Dependencies to place before the objects being linked to create a
18048# shared library.
18049predep_objects=$lt_predep_objects_GCJ
18050
18051# Dependencies to place after the objects being linked to create a
18052# shared library.
18053postdep_objects=$lt_postdep_objects_GCJ
18054
18055# Dependencies to place before the objects being linked to create a
18056# shared library.
18057predeps=$lt_predeps_GCJ
18058
18059# Dependencies to place after the objects being linked to create a
18060# shared library.
18061postdeps=$lt_postdeps_GCJ
18062
18063# The library search path used internally by the compiler when linking
18064# a shared library.
18065compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18066
18067# Method to check whether dependent libraries are shared objects.
18068deplibs_check_method=$lt_deplibs_check_method
18069
18070# Command to use when deplibs_check_method == file_magic.
18071file_magic_cmd=$lt_file_magic_cmd
18072
18073# Flag that allows shared libraries with undefined symbols to be built.
18074allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18075
18076# Flag that forces no undefined symbols.
18077no_undefined_flag=$lt_no_undefined_flag_GCJ
18078
18079# Commands used to finish a libtool library installation in a directory.
18080finish_cmds=$lt_finish_cmds
18081
18082# Same as above, but a single script fragment to be evaled but not shown.
18083finish_eval=$lt_finish_eval
18084
18085# Take the output of nm and produce a listing of raw symbols and C names.
18086global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18087
18088# Transform the output of nm in a proper C declaration
18089global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18090
18091# Transform the output of nm in a C name address pair
18092global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18093
18094# This is the shared library runtime path variable.
18095runpath_var=$runpath_var
18096
18097# This is the shared library path variable.
18098shlibpath_var=$shlibpath_var
18099
18100# Is shlibpath searched before the hard-coded library search path?
18101shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18102
18103# How to hardcode a shared library path into an executable.
18104hardcode_action=$hardcode_action_GCJ
18105
18106# Whether we should hardcode library paths into libraries.
18107hardcode_into_libs=$hardcode_into_libs
18108
18109# Flag to hardcode \$libdir into a binary during linking.
18110# This must work even if \$libdir does not exist.
18111hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18112
18113# If ld is used when linking, flag to hardcode \$libdir into
18114# a binary during linking. This must work even if \$libdir does
18115# not exist.
18116hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18117
18118# Whether we need a single -rpath flag with a separated argument.
18119hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18120
18121# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18122# resulting binary.
18123hardcode_direct=$hardcode_direct_GCJ
18124
18125# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18126# resulting binary.
18127hardcode_minus_L=$hardcode_minus_L_GCJ
18128
18129# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18130# the resulting binary.
18131hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18132
18133# Set to yes if building a shared library automatically hardcodes DIR into the library
18134# and all subsequent libraries and executables linked against it.
18135hardcode_automatic=$hardcode_automatic_GCJ
18136
18137# Variables whose values should be saved in libtool wrapper scripts and
18138# restored at relink time.
18139variables_saved_for_relink="$variables_saved_for_relink"
18140
18141# Whether libtool must link a program against all its dependency libraries.
18142link_all_deplibs=$link_all_deplibs_GCJ
18143
18144# Compile-time system search path for libraries
18145sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18146
18147# Run-time system search path for libraries
18148sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18149
18150# Fix the shell variable \$srcfile for the compiler.
18151fix_srcfile_path="$fix_srcfile_path_GCJ"
18152
18153# Set to yes if exported symbols are required.
18154always_export_symbols=$always_export_symbols_GCJ
18155
18156# The commands to list exported symbols.
18157export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18158
18159# The commands to extract the exported symbol list from a shared archive.
18160extract_expsyms_cmds=$lt_extract_expsyms_cmds
18161
18162# Symbols that should not be listed in the preloaded symbols.
18163exclude_expsyms=$lt_exclude_expsyms_GCJ
18164
18165# Symbols that must always be exported.
18166include_expsyms=$lt_include_expsyms_GCJ
18167
18168# ### END LIBTOOL TAG CONFIG: $tagname
18169
18170__EOF__
18171
18172
18173else
18174  # If there is no Makefile yet, we rely on a make rule to execute
18175  # `config.status --recheck' to rerun these tests and create the
18176  # libtool script then.
18177  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18178  if test -f "$ltmain_in"; then
18179    test -f Makefile && make "$ltmain"
18180  fi
18181fi
18182
18183
18184ac_ext=c
18185ac_cpp='$CPP $CPPFLAGS'
18186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18188ac_compiler_gnu=$ac_cv_c_compiler_gnu
18189
18190CC="$lt_save_CC"
18191
18192	else
18193	  tagname=""
18194	fi
18195	;;
18196
18197      RC)
18198
18199
18200
18201# Source file extension for RC test sources.
18202ac_ext=rc
18203
18204# Object file extension for compiled RC test sources.
18205objext=o
18206objext_RC=$objext
18207
18208# Code to be used in simple compile tests
18209lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18210
18211# Code to be used in simple link tests
18212lt_simple_link_test_code="$lt_simple_compile_test_code"
18213
18214# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18215
18216# If no C compiler was specified, use CC.
18217LTCC=${LTCC-"$CC"}
18218
18219# If no C compiler flags were specified, use CFLAGS.
18220LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18221
18222# Allow CC to be a program name with arguments.
18223compiler=$CC
18224
18225
18226# save warnings/boilerplate of simple test code
18227ac_outfile=conftest.$ac_objext
18228printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18229eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18230_lt_compiler_boilerplate=`cat conftest.err`
18231$rm conftest*
18232
18233ac_outfile=conftest.$ac_objext
18234printf "$lt_simple_link_test_code" >conftest.$ac_ext
18235eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18236_lt_linker_boilerplate=`cat conftest.err`
18237$rm conftest*
18238
18239
18240# Allow CC to be a program name with arguments.
18241lt_save_CC="$CC"
18242CC=${RC-"windres"}
18243compiler=$CC
18244compiler_RC=$CC
18245for cc_temp in $compiler""; do
18246  case $cc_temp in
18247    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18248    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18249    \-*) ;;
18250    *) break;;
18251  esac
18252done
18253cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18254
18255lt_cv_prog_compiler_c_o_RC=yes
18256
18257# The else clause should only fire when bootstrapping the
18258# libtool distribution, otherwise you forgot to ship ltmain.sh
18259# with your package, and you will get complaints that there are
18260# no rules to generate ltmain.sh.
18261if test -f "$ltmain"; then
18262  # See if we are running on zsh, and set the options which allow our commands through
18263  # without removal of \ escapes.
18264  if test -n "${ZSH_VERSION+set}" ; then
18265    setopt NO_GLOB_SUBST
18266  fi
18267  # Now quote all the things that may contain metacharacters while being
18268  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18269  # variables and quote the copies for generation of the libtool script.
18270  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18271    SED SHELL STRIP \
18272    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18273    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18274    deplibs_check_method reload_flag reload_cmds need_locks \
18275    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18276    lt_cv_sys_global_symbol_to_c_name_address \
18277    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18278    old_postinstall_cmds old_postuninstall_cmds \
18279    compiler_RC \
18280    CC_RC \
18281    LD_RC \
18282    lt_prog_compiler_wl_RC \
18283    lt_prog_compiler_pic_RC \
18284    lt_prog_compiler_static_RC \
18285    lt_prog_compiler_no_builtin_flag_RC \
18286    export_dynamic_flag_spec_RC \
18287    thread_safe_flag_spec_RC \
18288    whole_archive_flag_spec_RC \
18289    enable_shared_with_static_runtimes_RC \
18290    old_archive_cmds_RC \
18291    old_archive_from_new_cmds_RC \
18292    predep_objects_RC \
18293    postdep_objects_RC \
18294    predeps_RC \
18295    postdeps_RC \
18296    compiler_lib_search_path_RC \
18297    archive_cmds_RC \
18298    archive_expsym_cmds_RC \
18299    postinstall_cmds_RC \
18300    postuninstall_cmds_RC \
18301    old_archive_from_expsyms_cmds_RC \
18302    allow_undefined_flag_RC \
18303    no_undefined_flag_RC \
18304    export_symbols_cmds_RC \
18305    hardcode_libdir_flag_spec_RC \
18306    hardcode_libdir_flag_spec_ld_RC \
18307    hardcode_libdir_separator_RC \
18308    hardcode_automatic_RC \
18309    module_cmds_RC \
18310    module_expsym_cmds_RC \
18311    lt_cv_prog_compiler_c_o_RC \
18312    exclude_expsyms_RC \
18313    include_expsyms_RC; do
18314
18315    case $var in
18316    old_archive_cmds_RC | \
18317    old_archive_from_new_cmds_RC | \
18318    archive_cmds_RC | \
18319    archive_expsym_cmds_RC | \
18320    module_cmds_RC | \
18321    module_expsym_cmds_RC | \
18322    old_archive_from_expsyms_cmds_RC | \
18323    export_symbols_cmds_RC | \
18324    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18325    postinstall_cmds | postuninstall_cmds | \
18326    old_postinstall_cmds | old_postuninstall_cmds | \
18327    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18328      # Double-quote double-evaled strings.
18329      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18330      ;;
18331    *)
18332      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18333      ;;
18334    esac
18335  done
18336
18337  case $lt_echo in
18338  *'\$0 --fallback-echo"')
18339    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18340    ;;
18341  esac
18342
18343cfgfile="$ofile"
18344
18345  cat <<__EOF__ >> "$cfgfile"
18346# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18347
18348# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18349
18350# Shell to use when invoking shell scripts.
18351SHELL=$lt_SHELL
18352
18353# Whether or not to build shared libraries.
18354build_libtool_libs=$enable_shared
18355
18356# Whether or not to build static libraries.
18357build_old_libs=$enable_static
18358
18359# Whether or not to add -lc for building shared libraries.
18360build_libtool_need_lc=$archive_cmds_need_lc_RC
18361
18362# Whether or not to disallow shared libs when runtime libs are static
18363allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18364
18365# Whether or not to optimize for fast installation.
18366fast_install=$enable_fast_install
18367
18368# The host system.
18369host_alias=$host_alias
18370host=$host
18371host_os=$host_os
18372
18373# The build system.
18374build_alias=$build_alias
18375build=$build
18376build_os=$build_os
18377
18378# An echo program that does not interpret backslashes.
18379echo=$lt_echo
18380
18381# The archiver.
18382AR=$lt_AR
18383AR_FLAGS=$lt_AR_FLAGS
18384
18385# A C compiler.
18386LTCC=$lt_LTCC
18387
18388# LTCC compiler flags.
18389LTCFLAGS=$lt_LTCFLAGS
18390
18391# A language-specific compiler.
18392CC=$lt_compiler_RC
18393
18394# Is the compiler the GNU C compiler?
18395with_gcc=$GCC_RC
18396
18397# An ERE matcher.
18398EGREP=$lt_EGREP
18399
18400# The linker used to build libraries.
18401LD=$lt_LD_RC
18402
18403# Whether we need hard or soft links.
18404LN_S=$lt_LN_S
18405
18406# A BSD-compatible nm program.
18407NM=$lt_NM
18408
18409# A symbol stripping program
18410STRIP=$lt_STRIP
18411
18412# Used to examine libraries when file_magic_cmd begins "file"
18413MAGIC_CMD=$MAGIC_CMD
18414
18415# Used on cygwin: DLL creation program.
18416DLLTOOL="$DLLTOOL"
18417
18418# Used on cygwin: object dumper.
18419OBJDUMP="$OBJDUMP"
18420
18421# Used on cygwin: assembler.
18422AS="$AS"
18423
18424# The name of the directory that contains temporary libtool files.
18425objdir=$objdir
18426
18427# How to create reloadable object files.
18428reload_flag=$lt_reload_flag
18429reload_cmds=$lt_reload_cmds
18430
18431# How to pass a linker flag through the compiler.
18432wl=$lt_lt_prog_compiler_wl_RC
18433
18434# Object file suffix (normally "o").
18435objext="$ac_objext"
18436
18437# Old archive suffix (normally "a").
18438libext="$libext"
18439
18440# Shared library suffix (normally ".so").
18441shrext_cmds='$shrext_cmds'
18442
18443# Executable file suffix (normally "").
18444exeext="$exeext"
18445
18446# Additional compiler flags for building library objects.
18447pic_flag=$lt_lt_prog_compiler_pic_RC
18448pic_mode=$pic_mode
18449
18450# What is the maximum length of a command?
18451max_cmd_len=$lt_cv_sys_max_cmd_len
18452
18453# Does compiler simultaneously support -c and -o options?
18454compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18455
18456# Must we lock files when doing compilation?
18457need_locks=$lt_need_locks
18458
18459# Do we need the lib prefix for modules?
18460need_lib_prefix=$need_lib_prefix
18461
18462# Do we need a version for libraries?
18463need_version=$need_version
18464
18465# Whether dlopen is supported.
18466dlopen_support=$enable_dlopen
18467
18468# Whether dlopen of programs is supported.
18469dlopen_self=$enable_dlopen_self
18470
18471# Whether dlopen of statically linked programs is supported.
18472dlopen_self_static=$enable_dlopen_self_static
18473
18474# Compiler flag to prevent dynamic linking.
18475link_static_flag=$lt_lt_prog_compiler_static_RC
18476
18477# Compiler flag to turn off builtin functions.
18478no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18479
18480# Compiler flag to allow reflexive dlopens.
18481export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18482
18483# Compiler flag to generate shared objects directly from archives.
18484whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18485
18486# Compiler flag to generate thread-safe objects.
18487thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18488
18489# Library versioning type.
18490version_type=$version_type
18491
18492# Format of library name prefix.
18493libname_spec=$lt_libname_spec
18494
18495# List of archive names.  First name is the real one, the rest are links.
18496# The last name is the one that the linker finds with -lNAME.
18497library_names_spec=$lt_library_names_spec
18498
18499# The coded name of the library, if different from the real name.
18500soname_spec=$lt_soname_spec
18501
18502# Commands used to build and install an old-style archive.
18503RANLIB=$lt_RANLIB
18504old_archive_cmds=$lt_old_archive_cmds_RC
18505old_postinstall_cmds=$lt_old_postinstall_cmds
18506old_postuninstall_cmds=$lt_old_postuninstall_cmds
18507
18508# Create an old-style archive from a shared archive.
18509old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18510
18511# Create a temporary old-style archive to link instead of a shared archive.
18512old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18513
18514# Commands used to build and install a shared archive.
18515archive_cmds=$lt_archive_cmds_RC
18516archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18517postinstall_cmds=$lt_postinstall_cmds
18518postuninstall_cmds=$lt_postuninstall_cmds
18519
18520# Commands used to build a loadable module (assumed same as above if empty)
18521module_cmds=$lt_module_cmds_RC
18522module_expsym_cmds=$lt_module_expsym_cmds_RC
18523
18524# Commands to strip libraries.
18525old_striplib=$lt_old_striplib
18526striplib=$lt_striplib
18527
18528# Dependencies to place before the objects being linked to create a
18529# shared library.
18530predep_objects=$lt_predep_objects_RC
18531
18532# Dependencies to place after the objects being linked to create a
18533# shared library.
18534postdep_objects=$lt_postdep_objects_RC
18535
18536# Dependencies to place before the objects being linked to create a
18537# shared library.
18538predeps=$lt_predeps_RC
18539
18540# Dependencies to place after the objects being linked to create a
18541# shared library.
18542postdeps=$lt_postdeps_RC
18543
18544# The library search path used internally by the compiler when linking
18545# a shared library.
18546compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18547
18548# Method to check whether dependent libraries are shared objects.
18549deplibs_check_method=$lt_deplibs_check_method
18550
18551# Command to use when deplibs_check_method == file_magic.
18552file_magic_cmd=$lt_file_magic_cmd
18553
18554# Flag that allows shared libraries with undefined symbols to be built.
18555allow_undefined_flag=$lt_allow_undefined_flag_RC
18556
18557# Flag that forces no undefined symbols.
18558no_undefined_flag=$lt_no_undefined_flag_RC
18559
18560# Commands used to finish a libtool library installation in a directory.
18561finish_cmds=$lt_finish_cmds
18562
18563# Same as above, but a single script fragment to be evaled but not shown.
18564finish_eval=$lt_finish_eval
18565
18566# Take the output of nm and produce a listing of raw symbols and C names.
18567global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18568
18569# Transform the output of nm in a proper C declaration
18570global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18571
18572# Transform the output of nm in a C name address pair
18573global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18574
18575# This is the shared library runtime path variable.
18576runpath_var=$runpath_var
18577
18578# This is the shared library path variable.
18579shlibpath_var=$shlibpath_var
18580
18581# Is shlibpath searched before the hard-coded library search path?
18582shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18583
18584# How to hardcode a shared library path into an executable.
18585hardcode_action=$hardcode_action_RC
18586
18587# Whether we should hardcode library paths into libraries.
18588hardcode_into_libs=$hardcode_into_libs
18589
18590# Flag to hardcode \$libdir into a binary during linking.
18591# This must work even if \$libdir does not exist.
18592hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18593
18594# If ld is used when linking, flag to hardcode \$libdir into
18595# a binary during linking. This must work even if \$libdir does
18596# not exist.
18597hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18598
18599# Whether we need a single -rpath flag with a separated argument.
18600hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18601
18602# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18603# resulting binary.
18604hardcode_direct=$hardcode_direct_RC
18605
18606# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18607# resulting binary.
18608hardcode_minus_L=$hardcode_minus_L_RC
18609
18610# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18611# the resulting binary.
18612hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18613
18614# Set to yes if building a shared library automatically hardcodes DIR into the library
18615# and all subsequent libraries and executables linked against it.
18616hardcode_automatic=$hardcode_automatic_RC
18617
18618# Variables whose values should be saved in libtool wrapper scripts and
18619# restored at relink time.
18620variables_saved_for_relink="$variables_saved_for_relink"
18621
18622# Whether libtool must link a program against all its dependency libraries.
18623link_all_deplibs=$link_all_deplibs_RC
18624
18625# Compile-time system search path for libraries
18626sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18627
18628# Run-time system search path for libraries
18629sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18630
18631# Fix the shell variable \$srcfile for the compiler.
18632fix_srcfile_path="$fix_srcfile_path_RC"
18633
18634# Set to yes if exported symbols are required.
18635always_export_symbols=$always_export_symbols_RC
18636
18637# The commands to list exported symbols.
18638export_symbols_cmds=$lt_export_symbols_cmds_RC
18639
18640# The commands to extract the exported symbol list from a shared archive.
18641extract_expsyms_cmds=$lt_extract_expsyms_cmds
18642
18643# Symbols that should not be listed in the preloaded symbols.
18644exclude_expsyms=$lt_exclude_expsyms_RC
18645
18646# Symbols that must always be exported.
18647include_expsyms=$lt_include_expsyms_RC
18648
18649# ### END LIBTOOL TAG CONFIG: $tagname
18650
18651__EOF__
18652
18653
18654else
18655  # If there is no Makefile yet, we rely on a make rule to execute
18656  # `config.status --recheck' to rerun these tests and create the
18657  # libtool script then.
18658  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18659  if test -f "$ltmain_in"; then
18660    test -f Makefile && make "$ltmain"
18661  fi
18662fi
18663
18664
18665ac_ext=c
18666ac_cpp='$CPP $CPPFLAGS'
18667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18669ac_compiler_gnu=$ac_cv_c_compiler_gnu
18670
18671CC="$lt_save_CC"
18672
18673	;;
18674
18675      *)
18676	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18677echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18678   { (exit 1); exit 1; }; }
18679	;;
18680      esac
18681
18682      # Append the new tag name to the list of available tags.
18683      if test -n "$tagname" ; then
18684      available_tags="$available_tags $tagname"
18685    fi
18686    fi
18687  done
18688  IFS="$lt_save_ifs"
18689
18690  # Now substitute the updated list of available tags.
18691  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18692    mv "${ofile}T" "$ofile"
18693    chmod +x "$ofile"
18694  else
18695    rm -f "${ofile}T"
18696    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18697echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18698   { (exit 1); exit 1; }; }
18699  fi
18700fi
18701
18702
18703
18704# This can be used to rebuild libtool when needed
18705LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18706
18707# Always use our own libtool.
18708LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18709
18710# Prevent multiple expansion
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738for ac_header in errno.h string.h syslog.h unistd.h dlfcn.h usb.h
18739do
18740as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18741if eval "test \"\${$as_ac_Header+set}\" = set"; then
18742  echo "$as_me:$LINENO: checking for $ac_header" >&5
18743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18744if eval "test \"\${$as_ac_Header+set}\" = set"; then
18745  echo $ECHO_N "(cached) $ECHO_C" >&6
18746fi
18747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18748echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18749else
18750  # Is the header compilable?
18751echo "$as_me:$LINENO: checking $ac_header usability" >&5
18752echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18753cat >conftest.$ac_ext <<_ACEOF
18754/* confdefs.h.  */
18755_ACEOF
18756cat confdefs.h >>conftest.$ac_ext
18757cat >>conftest.$ac_ext <<_ACEOF
18758/* end confdefs.h.  */
18759$ac_includes_default
18760#include <$ac_header>
18761_ACEOF
18762rm -f conftest.$ac_objext
18763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18764  (eval $ac_compile) 2>conftest.er1
18765  ac_status=$?
18766  grep -v '^ *+' conftest.er1 >conftest.err
18767  rm -f conftest.er1
18768  cat conftest.err >&5
18769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770  (exit $ac_status); } &&
18771	 { ac_try='test -z "$ac_c_werror_flag"
18772			 || test ! -s conftest.err'
18773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18774  (eval $ac_try) 2>&5
18775  ac_status=$?
18776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777  (exit $ac_status); }; } &&
18778	 { ac_try='test -s conftest.$ac_objext'
18779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18780  (eval $ac_try) 2>&5
18781  ac_status=$?
18782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783  (exit $ac_status); }; }; then
18784  ac_header_compiler=yes
18785else
18786  echo "$as_me: failed program was:" >&5
18787sed 's/^/| /' conftest.$ac_ext >&5
18788
18789ac_header_compiler=no
18790fi
18791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18792echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18793echo "${ECHO_T}$ac_header_compiler" >&6
18794
18795# Is the header present?
18796echo "$as_me:$LINENO: checking $ac_header presence" >&5
18797echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18798cat >conftest.$ac_ext <<_ACEOF
18799/* confdefs.h.  */
18800_ACEOF
18801cat confdefs.h >>conftest.$ac_ext
18802cat >>conftest.$ac_ext <<_ACEOF
18803/* end confdefs.h.  */
18804#include <$ac_header>
18805_ACEOF
18806if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18807  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18808  ac_status=$?
18809  grep -v '^ *+' conftest.er1 >conftest.err
18810  rm -f conftest.er1
18811  cat conftest.err >&5
18812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813  (exit $ac_status); } >/dev/null; then
18814  if test -s conftest.err; then
18815    ac_cpp_err=$ac_c_preproc_warn_flag
18816    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18817  else
18818    ac_cpp_err=
18819  fi
18820else
18821  ac_cpp_err=yes
18822fi
18823if test -z "$ac_cpp_err"; then
18824  ac_header_preproc=yes
18825else
18826  echo "$as_me: failed program was:" >&5
18827sed 's/^/| /' conftest.$ac_ext >&5
18828
18829  ac_header_preproc=no
18830fi
18831rm -f conftest.err conftest.$ac_ext
18832echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18833echo "${ECHO_T}$ac_header_preproc" >&6
18834
18835# So?  What about this header?
18836case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18837  yes:no: )
18838    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18839echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18840    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18841echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18842    ac_header_preproc=yes
18843    ;;
18844  no:yes:* )
18845    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18846echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18847    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18848echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18849    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18850echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18851    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18852echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18853    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18854echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18855    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18856echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18857    (
18858      cat <<\_ASBOX
18859## ------------------------------------------ ##
18860## Report this to root84@users.soureforge.net ##
18861## ------------------------------------------ ##
18862_ASBOX
18863    ) |
18864      sed "s/^/$as_me: WARNING:     /" >&2
18865    ;;
18866esac
18867echo "$as_me:$LINENO: checking for $ac_header" >&5
18868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18869if eval "test \"\${$as_ac_Header+set}\" = set"; then
18870  echo $ECHO_N "(cached) $ECHO_C" >&6
18871else
18872  eval "$as_ac_Header=\$ac_header_preproc"
18873fi
18874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18875echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18876
18877fi
18878if test `eval echo '${'$as_ac_Header'}'` = yes; then
18879  cat >>confdefs.h <<_ACEOF
18880#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18881_ACEOF
18882
18883fi
18884
18885done
18886
18887
18888CFLAGS="${CFLAGS} -DCFG_DIR=\$(pkgsysconfdir) -DLIB_DIR=\$(libdir)"
18889
18890                                                  ac_config_files="$ac_config_files Makefile contrib/Makefile interface/Makefile backends/Makefile scripts/Makefile"
18891cat >confcache <<\_ACEOF
18892# This file is a shell script that caches the results of configure
18893# tests run on this system so they can be shared between configure
18894# scripts and configure runs, see configure's option --config-cache.
18895# It is not useful on other systems.  If it contains results you don't
18896# want to keep, you may remove or edit it.
18897#
18898# config.status only pays attention to the cache file if you give it
18899# the --recheck option to rerun configure.
18900#
18901# `ac_cv_env_foo' variables (set or unset) will be overridden when
18902# loading this file, other *unset* `ac_cv_foo' will be assigned the
18903# following values.
18904
18905_ACEOF
18906
18907# The following way of writing the cache mishandles newlines in values,
18908# but we know of no workaround that is simple, portable, and efficient.
18909# So, don't put newlines in cache variables' values.
18910# Ultrix sh set writes to stderr and can't be redirected directly,
18911# and sets the high bit in the cache file unless we assign to the vars.
18912{
18913  (set) 2>&1 |
18914    case `(ac_space=' '; set | grep ac_space) 2>&1` in
18915    *ac_space=\ *)
18916      # `set' does not quote correctly, so add quotes (double-quote
18917      # substitution turns \\\\ into \\, and sed turns \\ into \).
18918      sed -n \
18919	"s/'/'\\\\''/g;
18920	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18921      ;;
18922    *)
18923      # `set' quotes correctly as required by POSIX, so do not add quotes.
18924      sed -n \
18925	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18926      ;;
18927    esac;
18928} |
18929  sed '
18930     t clear
18931     : clear
18932     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18933     t end
18934     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18935     : end' >>confcache
18936if diff $cache_file confcache >/dev/null 2>&1; then :; else
18937  if test -w $cache_file; then
18938    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18939    cat confcache >$cache_file
18940  else
18941    echo "not updating unwritable cache $cache_file"
18942  fi
18943fi
18944rm -f confcache
18945
18946test "x$prefix" = xNONE && prefix=$ac_default_prefix
18947# Let make expand exec_prefix.
18948test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18949
18950# VPATH may cause trouble with some makes, so we remove $(srcdir),
18951# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18952# trailing colons and then remove the whole line if VPATH becomes empty
18953# (actually we leave an empty line to preserve line numbers).
18954if test "x$srcdir" = x.; then
18955  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
18956s/:*\$(srcdir):*/:/;
18957s/:*\${srcdir}:*/:/;
18958s/:*@srcdir@:*/:/;
18959s/^\([^=]*=[	 ]*\):*/\1/;
18960s/:*$//;
18961s/^[^=]*=[	 ]*$//;
18962}'
18963fi
18964
18965DEFS=-DHAVE_CONFIG_H
18966
18967ac_libobjs=
18968ac_ltlibobjs=
18969for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18970  # 1. Remove the extension, and $U if already installed.
18971  ac_i=`echo "$ac_i" |
18972	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18973  # 2. Add them.
18974  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18975  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18976done
18977LIBOBJS=$ac_libobjs
18978
18979LTLIBOBJS=$ac_ltlibobjs
18980
18981
18982if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18983  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18984Usually this means the macro was only invoked conditionally." >&5
18985echo "$as_me: error: conditional \"AMDEP\" was never defined.
18986Usually this means the macro was only invoked conditionally." >&2;}
18987   { (exit 1); exit 1; }; }
18988fi
18989if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18990  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18991Usually this means the macro was only invoked conditionally." >&5
18992echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18993Usually this means the macro was only invoked conditionally." >&2;}
18994   { (exit 1); exit 1; }; }
18995fi
18996if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18997  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
18998Usually this means the macro was only invoked conditionally." >&5
18999echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19000Usually this means the macro was only invoked conditionally." >&2;}
19001   { (exit 1); exit 1; }; }
19002fi
19003
19004: ${CONFIG_STATUS=./config.status}
19005ac_clean_files_save=$ac_clean_files
19006ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19007{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19008echo "$as_me: creating $CONFIG_STATUS" >&6;}
19009cat >$CONFIG_STATUS <<_ACEOF
19010#! $SHELL
19011# Generated by $as_me.
19012# Run this file to recreate the current configuration.
19013# Compiler output produced by configure, useful for debugging
19014# configure, is in config.log if it exists.
19015
19016debug=false
19017ac_cs_recheck=false
19018ac_cs_silent=false
19019SHELL=\${CONFIG_SHELL-$SHELL}
19020_ACEOF
19021
19022cat >>$CONFIG_STATUS <<\_ACEOF
19023## --------------------- ##
19024## M4sh Initialization.  ##
19025## --------------------- ##
19026
19027# Be Bourne compatible
19028if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19029  emulate sh
19030  NULLCMD=:
19031  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19032  # is contrary to our usage.  Disable this feature.
19033  alias -g '${1+"$@"}'='"$@"'
19034elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19035  set -o posix
19036fi
19037DUALCASE=1; export DUALCASE # for MKS sh
19038
19039# Support unset when possible.
19040if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19041  as_unset=unset
19042else
19043  as_unset=false
19044fi
19045
19046
19047# Work around bugs in pre-3.0 UWIN ksh.
19048$as_unset ENV MAIL MAILPATH
19049PS1='$ '
19050PS2='> '
19051PS4='+ '
19052
19053# NLS nuisances.
19054for as_var in \
19055  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19056  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19057  LC_TELEPHONE LC_TIME
19058do
19059  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19060    eval $as_var=C; export $as_var
19061  else
19062    $as_unset $as_var
19063  fi
19064done
19065
19066# Required to use basename.
19067if expr a : '\(a\)' >/dev/null 2>&1; then
19068  as_expr=expr
19069else
19070  as_expr=false
19071fi
19072
19073if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19074  as_basename=basename
19075else
19076  as_basename=false
19077fi
19078
19079
19080# Name of the executable.
19081as_me=`$as_basename "$0" ||
19082$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19083	 X"$0" : 'X\(//\)$' \| \
19084	 X"$0" : 'X\(/\)$' \| \
19085	 .     : '\(.\)' 2>/dev/null ||
19086echo X/"$0" |
19087    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19088  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
19089  	  /^X\/\(\/\).*/{ s//\1/; q; }
19090  	  s/.*/./; q'`
19091
19092
19093# PATH needs CR, and LINENO needs CR and PATH.
19094# Avoid depending upon Character Ranges.
19095as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19096as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19097as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19098as_cr_digits='0123456789'
19099as_cr_alnum=$as_cr_Letters$as_cr_digits
19100
19101# The user is always right.
19102if test "${PATH_SEPARATOR+set}" != set; then
19103  echo "#! /bin/sh" >conf$$.sh
19104  echo  "exit 0"   >>conf$$.sh
19105  chmod +x conf$$.sh
19106  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19107    PATH_SEPARATOR=';'
19108  else
19109    PATH_SEPARATOR=:
19110  fi
19111  rm -f conf$$.sh
19112fi
19113
19114
19115  as_lineno_1=$LINENO
19116  as_lineno_2=$LINENO
19117  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19118  test "x$as_lineno_1" != "x$as_lineno_2" &&
19119  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19120  # Find who we are.  Look in the path if we contain no path at all
19121  # relative or not.
19122  case $0 in
19123    *[\\/]* ) as_myself=$0 ;;
19124    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19125for as_dir in $PATH
19126do
19127  IFS=$as_save_IFS
19128  test -z "$as_dir" && as_dir=.
19129  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19130done
19131
19132       ;;
19133  esac
19134  # We did not find ourselves, most probably we were run as `sh COMMAND'
19135  # in which case we are not to be found in the path.
19136  if test "x$as_myself" = x; then
19137    as_myself=$0
19138  fi
19139  if test ! -f "$as_myself"; then
19140    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19141echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19142   { (exit 1); exit 1; }; }
19143  fi
19144  case $CONFIG_SHELL in
19145  '')
19146    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19147for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19148do
19149  IFS=$as_save_IFS
19150  test -z "$as_dir" && as_dir=.
19151  for as_base in sh bash ksh sh5; do
19152	 case $as_dir in
19153	 /*)
19154	   if ("$as_dir/$as_base" -c '
19155  as_lineno_1=$LINENO
19156  as_lineno_2=$LINENO
19157  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19158  test "x$as_lineno_1" != "x$as_lineno_2" &&
19159  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19160	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19161	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19162	     CONFIG_SHELL=$as_dir/$as_base
19163	     export CONFIG_SHELL
19164	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19165	   fi;;
19166	 esac
19167       done
19168done
19169;;
19170  esac
19171
19172  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19173  # uniformly replaced by the line number.  The first 'sed' inserts a
19174  # line-number line before each line; the second 'sed' does the real
19175  # work.  The second script uses 'N' to pair each line-number line
19176  # with the numbered line, and appends trailing '-' during
19177  # substitution so that $LINENO is not a special case at line end.
19178  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19179  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19180  sed '=' <$as_myself |
19181    sed '
19182      N
19183      s,$,-,
19184      : loop
19185      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19186      t loop
19187      s,-$,,
19188      s,^['$as_cr_digits']*\n,,
19189    ' >$as_me.lineno &&
19190  chmod +x $as_me.lineno ||
19191    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19192echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19193   { (exit 1); exit 1; }; }
19194
19195  # Don't try to exec as it changes $[0], causing all sort of problems
19196  # (the dirname of $[0] is not the place where we might find the
19197  # original and so on.  Autoconf is especially sensible to this).
19198  . ./$as_me.lineno
19199  # Exit status is that of the last command.
19200  exit
19201}
19202
19203
19204case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19205  *c*,-n*) ECHO_N= ECHO_C='
19206' ECHO_T='	' ;;
19207  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19208  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19209esac
19210
19211if expr a : '\(a\)' >/dev/null 2>&1; then
19212  as_expr=expr
19213else
19214  as_expr=false
19215fi
19216
19217rm -f conf$$ conf$$.exe conf$$.file
19218echo >conf$$.file
19219if ln -s conf$$.file conf$$ 2>/dev/null; then
19220  # We could just check for DJGPP; but this test a) works b) is more generic
19221  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19222  if test -f conf$$.exe; then
19223    # Don't use ln at all; we don't have any links
19224    as_ln_s='cp -p'
19225  else
19226    as_ln_s='ln -s'
19227  fi
19228elif ln conf$$.file conf$$ 2>/dev/null; then
19229  as_ln_s=ln
19230else
19231  as_ln_s='cp -p'
19232fi
19233rm -f conf$$ conf$$.exe conf$$.file
19234
19235if mkdir -p . 2>/dev/null; then
19236  as_mkdir_p=:
19237else
19238  test -d ./-p && rmdir ./-p
19239  as_mkdir_p=false
19240fi
19241
19242as_executable_p="test -f"
19243
19244# Sed expression to map a string onto a valid CPP name.
19245as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19246
19247# Sed expression to map a string onto a valid variable name.
19248as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19249
19250
19251# IFS
19252# We need space, tab and new line, in precisely that order.
19253as_nl='
19254'
19255IFS=" 	$as_nl"
19256
19257# CDPATH.
19258$as_unset CDPATH
19259
19260exec 6>&1
19261
19262# Open the log real soon, to keep \$[0] and so on meaningful, and to
19263# report actual input values of CONFIG_FILES etc. instead of their
19264# values after options handling.  Logging --version etc. is OK.
19265exec 5>>config.log
19266{
19267  echo
19268  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19269## Running $as_me. ##
19270_ASBOX
19271} >&5
19272cat >&5 <<_CSEOF
19273
19274This file was extended by scanbuttond $as_me 0.2.3, which was
19275generated by GNU Autoconf 2.59.  Invocation command line was
19276
19277  CONFIG_FILES    = $CONFIG_FILES
19278  CONFIG_HEADERS  = $CONFIG_HEADERS
19279  CONFIG_LINKS    = $CONFIG_LINKS
19280  CONFIG_COMMANDS = $CONFIG_COMMANDS
19281  $ $0 $@
19282
19283_CSEOF
19284echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19285echo >&5
19286_ACEOF
19287
19288# Files that config.status was made for.
19289if test -n "$ac_config_files"; then
19290  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19291fi
19292
19293if test -n "$ac_config_headers"; then
19294  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19295fi
19296
19297if test -n "$ac_config_links"; then
19298  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19299fi
19300
19301if test -n "$ac_config_commands"; then
19302  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19303fi
19304
19305cat >>$CONFIG_STATUS <<\_ACEOF
19306
19307ac_cs_usage="\
19308\`$as_me' instantiates files from templates according to the
19309current configuration.
19310
19311Usage: $0 [OPTIONS] [FILE]...
19312
19313  -h, --help       print this help, then exit
19314  -V, --version    print version number, then exit
19315  -q, --quiet      do not print progress messages
19316  -d, --debug      don't remove temporary files
19317      --recheck    update $as_me by reconfiguring in the same conditions
19318  --file=FILE[:TEMPLATE]
19319		   instantiate the configuration file FILE
19320  --header=FILE[:TEMPLATE]
19321		   instantiate the configuration header FILE
19322
19323Configuration files:
19324$config_files
19325
19326Configuration headers:
19327$config_headers
19328
19329Configuration commands:
19330$config_commands
19331
19332Report bugs to <bug-autoconf@gnu.org>."
19333_ACEOF
19334
19335cat >>$CONFIG_STATUS <<_ACEOF
19336ac_cs_version="\\
19337scanbuttond config.status 0.2.3
19338configured by $0, generated by GNU Autoconf 2.59,
19339  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19340
19341Copyright (C) 2003 Free Software Foundation, Inc.
19342This config.status script is free software; the Free Software Foundation
19343gives unlimited permission to copy, distribute and modify it."
19344srcdir=$srcdir
19345INSTALL="$INSTALL"
19346_ACEOF
19347
19348cat >>$CONFIG_STATUS <<\_ACEOF
19349# If no file are specified by the user, then we need to provide default
19350# value.  By we need to know if files were specified by the user.
19351ac_need_defaults=:
19352while test $# != 0
19353do
19354  case $1 in
19355  --*=*)
19356    ac_option=`expr "x$1" : 'x\([^=]*\)='`
19357    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19358    ac_shift=:
19359    ;;
19360  -*)
19361    ac_option=$1
19362    ac_optarg=$2
19363    ac_shift=shift
19364    ;;
19365  *) # This is not an option, so the user has probably given explicit
19366     # arguments.
19367     ac_option=$1
19368     ac_need_defaults=false;;
19369  esac
19370
19371  case $ac_option in
19372  # Handling of the options.
19373_ACEOF
19374cat >>$CONFIG_STATUS <<\_ACEOF
19375  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19376    ac_cs_recheck=: ;;
19377  --version | --vers* | -V )
19378    echo "$ac_cs_version"; exit 0 ;;
19379  --he | --h)
19380    # Conflict between --help and --header
19381    { { echo "$as_me:$LINENO: error: ambiguous option: $1
19382Try \`$0 --help' for more information." >&5
19383echo "$as_me: error: ambiguous option: $1
19384Try \`$0 --help' for more information." >&2;}
19385   { (exit 1); exit 1; }; };;
19386  --help | --hel | -h )
19387    echo "$ac_cs_usage"; exit 0 ;;
19388  --debug | --d* | -d )
19389    debug=: ;;
19390  --file | --fil | --fi | --f )
19391    $ac_shift
19392    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19393    ac_need_defaults=false;;
19394  --header | --heade | --head | --hea )
19395    $ac_shift
19396    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19397    ac_need_defaults=false;;
19398  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19399  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19400    ac_cs_silent=: ;;
19401
19402  # This is an error.
19403  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19404Try \`$0 --help' for more information." >&5
19405echo "$as_me: error: unrecognized option: $1
19406Try \`$0 --help' for more information." >&2;}
19407   { (exit 1); exit 1; }; } ;;
19408
19409  *) ac_config_targets="$ac_config_targets $1" ;;
19410
19411  esac
19412  shift
19413done
19414
19415ac_configure_extra_args=
19416
19417if $ac_cs_silent; then
19418  exec 6>/dev/null
19419  ac_configure_extra_args="$ac_configure_extra_args --silent"
19420fi
19421
19422_ACEOF
19423cat >>$CONFIG_STATUS <<_ACEOF
19424if \$ac_cs_recheck; then
19425  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19426  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19427fi
19428
19429_ACEOF
19430
19431cat >>$CONFIG_STATUS <<_ACEOF
19432#
19433# INIT-COMMANDS section.
19434#
19435
19436AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19437
19438_ACEOF
19439
19440
19441
19442cat >>$CONFIG_STATUS <<\_ACEOF
19443for ac_config_target in $ac_config_targets
19444do
19445  case "$ac_config_target" in
19446  # Handling of arguments.
19447  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19448  "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
19449  "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
19450  "backends/Makefile" ) CONFIG_FILES="$CONFIG_FILES backends/Makefile" ;;
19451  "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19452  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19453  "include/scanbuttond/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/scanbuttond/config.h" ;;
19454  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19455echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19456   { (exit 1); exit 1; }; };;
19457  esac
19458done
19459
19460# If the user did not use the arguments to specify the items to instantiate,
19461# then the envvar interface is used.  Set only those that are not.
19462# We use the long form for the default assignment because of an extremely
19463# bizarre bug on SunOS 4.1.3.
19464if $ac_need_defaults; then
19465  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19466  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19467  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19468fi
19469
19470# Have a temporary directory for convenience.  Make it in the build tree
19471# simply because there is no reason to put it here, and in addition,
19472# creating and moving files from /tmp can sometimes cause problems.
19473# Create a temporary directory, and hook for its removal unless debugging.
19474$debug ||
19475{
19476  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19477  trap '{ (exit 1); exit 1; }' 1 2 13 15
19478}
19479
19480# Create a (secure) tmp directory for tmp files.
19481
19482{
19483  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19484  test -n "$tmp" && test -d "$tmp"
19485}  ||
19486{
19487  tmp=./confstat$$-$RANDOM
19488  (umask 077 && mkdir $tmp)
19489} ||
19490{
19491   echo "$me: cannot create a temporary directory in ." >&2
19492   { (exit 1); exit 1; }
19493}
19494
19495_ACEOF
19496
19497cat >>$CONFIG_STATUS <<_ACEOF
19498
19499#
19500# CONFIG_FILES section.
19501#
19502
19503# No need to generate the scripts if there are no CONFIG_FILES.
19504# This happens for instance when ./config.status config.h
19505if test -n "\$CONFIG_FILES"; then
19506  # Protect against being on the right side of a sed subst in config.status.
19507  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19508   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19509s,@SHELL@,$SHELL,;t t
19510s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19511s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19512s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19513s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19514s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19515s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19516s,@exec_prefix@,$exec_prefix,;t t
19517s,@prefix@,$prefix,;t t
19518s,@program_transform_name@,$program_transform_name,;t t
19519s,@bindir@,$bindir,;t t
19520s,@sbindir@,$sbindir,;t t
19521s,@libexecdir@,$libexecdir,;t t
19522s,@datadir@,$datadir,;t t
19523s,@sysconfdir@,$sysconfdir,;t t
19524s,@sharedstatedir@,$sharedstatedir,;t t
19525s,@localstatedir@,$localstatedir,;t t
19526s,@libdir@,$libdir,;t t
19527s,@includedir@,$includedir,;t t
19528s,@oldincludedir@,$oldincludedir,;t t
19529s,@infodir@,$infodir,;t t
19530s,@mandir@,$mandir,;t t
19531s,@build_alias@,$build_alias,;t t
19532s,@host_alias@,$host_alias,;t t
19533s,@target_alias@,$target_alias,;t t
19534s,@DEFS@,$DEFS,;t t
19535s,@ECHO_C@,$ECHO_C,;t t
19536s,@ECHO_N@,$ECHO_N,;t t
19537s,@ECHO_T@,$ECHO_T,;t t
19538s,@LIBS@,$LIBS,;t t
19539s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19540s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19541s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19542s,@CYGPATH_W@,$CYGPATH_W,;t t
19543s,@PACKAGE@,$PACKAGE,;t t
19544s,@VERSION@,$VERSION,;t t
19545s,@ACLOCAL@,$ACLOCAL,;t t
19546s,@AUTOCONF@,$AUTOCONF,;t t
19547s,@AUTOMAKE@,$AUTOMAKE,;t t
19548s,@AUTOHEADER@,$AUTOHEADER,;t t
19549s,@MAKEINFO@,$MAKEINFO,;t t
19550s,@install_sh@,$install_sh,;t t
19551s,@STRIP@,$STRIP,;t t
19552s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19553s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19554s,@mkdir_p@,$mkdir_p,;t t
19555s,@AWK@,$AWK,;t t
19556s,@SET_MAKE@,$SET_MAKE,;t t
19557s,@am__leading_dot@,$am__leading_dot,;t t
19558s,@AMTAR@,$AMTAR,;t t
19559s,@am__tar@,$am__tar,;t t
19560s,@am__untar@,$am__untar,;t t
19561s,@CC@,$CC,;t t
19562s,@CFLAGS@,$CFLAGS,;t t
19563s,@LDFLAGS@,$LDFLAGS,;t t
19564s,@CPPFLAGS@,$CPPFLAGS,;t t
19565s,@ac_ct_CC@,$ac_ct_CC,;t t
19566s,@EXEEXT@,$EXEEXT,;t t
19567s,@OBJEXT@,$OBJEXT,;t t
19568s,@DEPDIR@,$DEPDIR,;t t
19569s,@am__include@,$am__include,;t t
19570s,@am__quote@,$am__quote,;t t
19571s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19572s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19573s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19574s,@CCDEPMODE@,$CCDEPMODE,;t t
19575s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19576s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19577s,@build@,$build,;t t
19578s,@build_cpu@,$build_cpu,;t t
19579s,@build_vendor@,$build_vendor,;t t
19580s,@build_os@,$build_os,;t t
19581s,@host@,$host,;t t
19582s,@host_cpu@,$host_cpu,;t t
19583s,@host_vendor@,$host_vendor,;t t
19584s,@host_os@,$host_os,;t t
19585s,@EGREP@,$EGREP,;t t
19586s,@LN_S@,$LN_S,;t t
19587s,@ECHO@,$ECHO,;t t
19588s,@AR@,$AR,;t t
19589s,@ac_ct_AR@,$ac_ct_AR,;t t
19590s,@RANLIB@,$RANLIB,;t t
19591s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19592s,@CPP@,$CPP,;t t
19593s,@CXX@,$CXX,;t t
19594s,@CXXFLAGS@,$CXXFLAGS,;t t
19595s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19596s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19597s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19598s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19599s,@CXXCPP@,$CXXCPP,;t t
19600s,@F77@,$F77,;t t
19601s,@FFLAGS@,$FFLAGS,;t t
19602s,@ac_ct_F77@,$ac_ct_F77,;t t
19603s,@LIBTOOL@,$LIBTOOL,;t t
19604s,@LIBOBJS@,$LIBOBJS,;t t
19605s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19606CEOF
19607
19608_ACEOF
19609
19610  cat >>$CONFIG_STATUS <<\_ACEOF
19611  # Split the substitutions into bite-sized pieces for seds with
19612  # small command number limits, like on Digital OSF/1 and HP-UX.
19613  ac_max_sed_lines=48
19614  ac_sed_frag=1 # Number of current file.
19615  ac_beg=1 # First line for current file.
19616  ac_end=$ac_max_sed_lines # Line after last line for current file.
19617  ac_more_lines=:
19618  ac_sed_cmds=
19619  while $ac_more_lines; do
19620    if test $ac_beg -gt 1; then
19621      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19622    else
19623      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19624    fi
19625    if test ! -s $tmp/subs.frag; then
19626      ac_more_lines=false
19627    else
19628      # The purpose of the label and of the branching condition is to
19629      # speed up the sed processing (if there are no `@' at all, there
19630      # is no need to browse any of the substitutions).
19631      # These are the two extra sed commands mentioned above.
19632      (echo ':t
19633  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19634      if test -z "$ac_sed_cmds"; then
19635	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19636      else
19637	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19638      fi
19639      ac_sed_frag=`expr $ac_sed_frag + 1`
19640      ac_beg=$ac_end
19641      ac_end=`expr $ac_end + $ac_max_sed_lines`
19642    fi
19643  done
19644  if test -z "$ac_sed_cmds"; then
19645    ac_sed_cmds=cat
19646  fi
19647fi # test -n "$CONFIG_FILES"
19648
19649_ACEOF
19650cat >>$CONFIG_STATUS <<\_ACEOF
19651for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19652  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19653  case $ac_file in
19654  - | *:- | *:-:* ) # input from stdin
19655	cat >$tmp/stdin
19656	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19657	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19658  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19659	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19660  * )   ac_file_in=$ac_file.in ;;
19661  esac
19662
19663  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19664  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19665$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19666	 X"$ac_file" : 'X\(//\)[^/]' \| \
19667	 X"$ac_file" : 'X\(//\)$' \| \
19668	 X"$ac_file" : 'X\(/\)' \| \
19669	 .     : '\(.\)' 2>/dev/null ||
19670echo X"$ac_file" |
19671    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19672  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19673  	  /^X\(\/\/\)$/{ s//\1/; q; }
19674  	  /^X\(\/\).*/{ s//\1/; q; }
19675  	  s/.*/./; q'`
19676  { if $as_mkdir_p; then
19677    mkdir -p "$ac_dir"
19678  else
19679    as_dir="$ac_dir"
19680    as_dirs=
19681    while test ! -d "$as_dir"; do
19682      as_dirs="$as_dir $as_dirs"
19683      as_dir=`(dirname "$as_dir") 2>/dev/null ||
19684$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19685	 X"$as_dir" : 'X\(//\)[^/]' \| \
19686	 X"$as_dir" : 'X\(//\)$' \| \
19687	 X"$as_dir" : 'X\(/\)' \| \
19688	 .     : '\(.\)' 2>/dev/null ||
19689echo X"$as_dir" |
19690    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19691  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19692  	  /^X\(\/\/\)$/{ s//\1/; q; }
19693  	  /^X\(\/\).*/{ s//\1/; q; }
19694  	  s/.*/./; q'`
19695    done
19696    test ! -n "$as_dirs" || mkdir $as_dirs
19697  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19698echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19699   { (exit 1); exit 1; }; }; }
19700
19701  ac_builddir=.
19702
19703if test "$ac_dir" != .; then
19704  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19705  # A "../" for each directory in $ac_dir_suffix.
19706  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19707else
19708  ac_dir_suffix= ac_top_builddir=
19709fi
19710
19711case $srcdir in
19712  .)  # No --srcdir option.  We are building in place.
19713    ac_srcdir=.
19714    if test -z "$ac_top_builddir"; then
19715       ac_top_srcdir=.
19716    else
19717       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19718    fi ;;
19719  [\\/]* | ?:[\\/]* )  # Absolute path.
19720    ac_srcdir=$srcdir$ac_dir_suffix;
19721    ac_top_srcdir=$srcdir ;;
19722  *) # Relative path.
19723    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19724    ac_top_srcdir=$ac_top_builddir$srcdir ;;
19725esac
19726
19727# Do not use `cd foo && pwd` to compute absolute paths, because
19728# the directories may not exist.
19729case `pwd` in
19730.) ac_abs_builddir="$ac_dir";;
19731*)
19732  case "$ac_dir" in
19733  .) ac_abs_builddir=`pwd`;;
19734  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19735  *) ac_abs_builddir=`pwd`/"$ac_dir";;
19736  esac;;
19737esac
19738case $ac_abs_builddir in
19739.) ac_abs_top_builddir=${ac_top_builddir}.;;
19740*)
19741  case ${ac_top_builddir}. in
19742  .) ac_abs_top_builddir=$ac_abs_builddir;;
19743  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19744  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19745  esac;;
19746esac
19747case $ac_abs_builddir in
19748.) ac_abs_srcdir=$ac_srcdir;;
19749*)
19750  case $ac_srcdir in
19751  .) ac_abs_srcdir=$ac_abs_builddir;;
19752  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19753  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19754  esac;;
19755esac
19756case $ac_abs_builddir in
19757.) ac_abs_top_srcdir=$ac_top_srcdir;;
19758*)
19759  case $ac_top_srcdir in
19760  .) ac_abs_top_srcdir=$ac_abs_builddir;;
19761  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19762  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19763  esac;;
19764esac
19765
19766
19767  case $INSTALL in
19768  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19769  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19770  esac
19771
19772  if test x"$ac_file" != x-; then
19773    { echo "$as_me:$LINENO: creating $ac_file" >&5
19774echo "$as_me: creating $ac_file" >&6;}
19775    rm -f "$ac_file"
19776  fi
19777  # Let's still pretend it is `configure' which instantiates (i.e., don't
19778  # use $as_me), people would be surprised to read:
19779  #    /* config.h.  Generated by config.status.  */
19780  if test x"$ac_file" = x-; then
19781    configure_input=
19782  else
19783    configure_input="$ac_file.  "
19784  fi
19785  configure_input=$configure_input"Generated from `echo $ac_file_in |
19786				     sed 's,.*/,,'` by configure."
19787
19788  # First look for the input files in the build tree, otherwise in the
19789  # src tree.
19790  ac_file_inputs=`IFS=:
19791    for f in $ac_file_in; do
19792      case $f in
19793      -) echo $tmp/stdin ;;
19794      [\\/$]*)
19795	 # Absolute (can't be DOS-style, as IFS=:)
19796	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19797echo "$as_me: error: cannot find input file: $f" >&2;}
19798   { (exit 1); exit 1; }; }
19799	 echo "$f";;
19800      *) # Relative
19801	 if test -f "$f"; then
19802	   # Build tree
19803	   echo "$f"
19804	 elif test -f "$srcdir/$f"; then
19805	   # Source tree
19806	   echo "$srcdir/$f"
19807	 else
19808	   # /dev/null tree
19809	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19810echo "$as_me: error: cannot find input file: $f" >&2;}
19811   { (exit 1); exit 1; }; }
19812	 fi;;
19813      esac
19814    done` || { (exit 1); exit 1; }
19815_ACEOF
19816cat >>$CONFIG_STATUS <<_ACEOF
19817  sed "$ac_vpsub
19818$extrasub
19819_ACEOF
19820cat >>$CONFIG_STATUS <<\_ACEOF
19821:t
19822/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19823s,@configure_input@,$configure_input,;t t
19824s,@srcdir@,$ac_srcdir,;t t
19825s,@abs_srcdir@,$ac_abs_srcdir,;t t
19826s,@top_srcdir@,$ac_top_srcdir,;t t
19827s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19828s,@builddir@,$ac_builddir,;t t
19829s,@abs_builddir@,$ac_abs_builddir,;t t
19830s,@top_builddir@,$ac_top_builddir,;t t
19831s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19832s,@INSTALL@,$ac_INSTALL,;t t
19833" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19834  rm -f $tmp/stdin
19835  if test x"$ac_file" != x-; then
19836    mv $tmp/out $ac_file
19837  else
19838    cat $tmp/out
19839    rm -f $tmp/out
19840  fi
19841
19842done
19843_ACEOF
19844cat >>$CONFIG_STATUS <<\_ACEOF
19845
19846#
19847# CONFIG_HEADER section.
19848#
19849
19850# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19851# NAME is the cpp macro being defined and VALUE is the value it is being given.
19852#
19853# ac_d sets the value in "#define NAME VALUE" lines.
19854ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
19855ac_dB='[	 ].*$,\1#\2'
19856ac_dC=' '
19857ac_dD=',;t'
19858# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19859ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
19860ac_uB='$,\1#\2define\3'
19861ac_uC=' '
19862ac_uD=',;t'
19863
19864for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19865  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19866  case $ac_file in
19867  - | *:- | *:-:* ) # input from stdin
19868	cat >$tmp/stdin
19869	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19870	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19871  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19872	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19873  * )   ac_file_in=$ac_file.in ;;
19874  esac
19875
19876  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19877echo "$as_me: creating $ac_file" >&6;}
19878
19879  # First look for the input files in the build tree, otherwise in the
19880  # src tree.
19881  ac_file_inputs=`IFS=:
19882    for f in $ac_file_in; do
19883      case $f in
19884      -) echo $tmp/stdin ;;
19885      [\\/$]*)
19886	 # Absolute (can't be DOS-style, as IFS=:)
19887	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19888echo "$as_me: error: cannot find input file: $f" >&2;}
19889   { (exit 1); exit 1; }; }
19890	 # Do quote $f, to prevent DOS paths from being IFS'd.
19891	 echo "$f";;
19892      *) # Relative
19893	 if test -f "$f"; then
19894	   # Build tree
19895	   echo "$f"
19896	 elif test -f "$srcdir/$f"; then
19897	   # Source tree
19898	   echo "$srcdir/$f"
19899	 else
19900	   # /dev/null tree
19901	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19902echo "$as_me: error: cannot find input file: $f" >&2;}
19903   { (exit 1); exit 1; }; }
19904	 fi;;
19905      esac
19906    done` || { (exit 1); exit 1; }
19907  # Remove the trailing spaces.
19908  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
19909
19910_ACEOF
19911
19912# Transform confdefs.h into two sed scripts, `conftest.defines' and
19913# `conftest.undefs', that substitutes the proper values into
19914# config.h.in to produce config.h.  The first handles `#define'
19915# templates, and the second `#undef' templates.
19916# And first: Protect against being on the right side of a sed subst in
19917# config.status.  Protect against being in an unquoted here document
19918# in config.status.
19919rm -f conftest.defines conftest.undefs
19920# Using a here document instead of a string reduces the quoting nightmare.
19921# Putting comments in sed scripts is not portable.
19922#
19923# `end' is used to avoid that the second main sed command (meant for
19924# 0-ary CPP macros) applies to n-ary macro definitions.
19925# See the Autoconf documentation for `clear'.
19926cat >confdef2sed.sed <<\_ACEOF
19927s/[\\&,]/\\&/g
19928s,[\\$`],\\&,g
19929t clear
19930: clear
19931s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19932t end
19933s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19934: end
19935_ACEOF
19936# If some macros were called several times there might be several times
19937# the same #defines, which is useless.  Nevertheless, we may not want to
19938# sort them, since we want the *last* AC-DEFINE to be honored.
19939uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19940sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19941rm -f confdef2sed.sed
19942
19943# This sed command replaces #undef with comments.  This is necessary, for
19944# example, in the case of _POSIX_SOURCE, which is predefined and required
19945# on some systems where configure will not decide to define it.
19946cat >>conftest.undefs <<\_ACEOF
19947s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19948_ACEOF
19949
19950# Break up conftest.defines because some shells have a limit on the size
19951# of here documents, and old seds have small limits too (100 cmds).
19952echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19953echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19954echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19955echo '  :' >>$CONFIG_STATUS
19956rm -f conftest.tail
19957while grep . conftest.defines >/dev/null
19958do
19959  # Write a limited-size here document to $tmp/defines.sed.
19960  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19961  # Speed up: don't consider the non `#define' lines.
19962  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
19963  # Work around the forget-to-reset-the-flag bug.
19964  echo 't clr' >>$CONFIG_STATUS
19965  echo ': clr' >>$CONFIG_STATUS
19966  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19967  echo 'CEOF
19968  sed -f $tmp/defines.sed $tmp/in >$tmp/out
19969  rm -f $tmp/in
19970  mv $tmp/out $tmp/in
19971' >>$CONFIG_STATUS
19972  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19973  rm -f conftest.defines
19974  mv conftest.tail conftest.defines
19975done
19976rm -f conftest.defines
19977echo '  fi # grep' >>$CONFIG_STATUS
19978echo >>$CONFIG_STATUS
19979
19980# Break up conftest.undefs because some shells have a limit on the size
19981# of here documents, and old seds have small limits too (100 cmds).
19982echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19983rm -f conftest.tail
19984while grep . conftest.undefs >/dev/null
19985do
19986  # Write a limited-size here document to $tmp/undefs.sed.
19987  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19988  # Speed up: don't consider the non `#undef'
19989  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
19990  # Work around the forget-to-reset-the-flag bug.
19991  echo 't clr' >>$CONFIG_STATUS
19992  echo ': clr' >>$CONFIG_STATUS
19993  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19994  echo 'CEOF
19995  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19996  rm -f $tmp/in
19997  mv $tmp/out $tmp/in
19998' >>$CONFIG_STATUS
19999  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20000  rm -f conftest.undefs
20001  mv conftest.tail conftest.undefs
20002done
20003rm -f conftest.undefs
20004
20005cat >>$CONFIG_STATUS <<\_ACEOF
20006  # Let's still pretend it is `configure' which instantiates (i.e., don't
20007  # use $as_me), people would be surprised to read:
20008  #    /* config.h.  Generated by config.status.  */
20009  if test x"$ac_file" = x-; then
20010    echo "/* Generated by configure.  */" >$tmp/config.h
20011  else
20012    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20013  fi
20014  cat $tmp/in >>$tmp/config.h
20015  rm -f $tmp/in
20016  if test x"$ac_file" != x-; then
20017    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20018      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20019echo "$as_me: $ac_file is unchanged" >&6;}
20020    else
20021      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20022$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20023	 X"$ac_file" : 'X\(//\)[^/]' \| \
20024	 X"$ac_file" : 'X\(//\)$' \| \
20025	 X"$ac_file" : 'X\(/\)' \| \
20026	 .     : '\(.\)' 2>/dev/null ||
20027echo X"$ac_file" |
20028    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20029  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20030  	  /^X\(\/\/\)$/{ s//\1/; q; }
20031  	  /^X\(\/\).*/{ s//\1/; q; }
20032  	  s/.*/./; q'`
20033      { if $as_mkdir_p; then
20034    mkdir -p "$ac_dir"
20035  else
20036    as_dir="$ac_dir"
20037    as_dirs=
20038    while test ! -d "$as_dir"; do
20039      as_dirs="$as_dir $as_dirs"
20040      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20041$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20042	 X"$as_dir" : 'X\(//\)[^/]' \| \
20043	 X"$as_dir" : 'X\(//\)$' \| \
20044	 X"$as_dir" : 'X\(/\)' \| \
20045	 .     : '\(.\)' 2>/dev/null ||
20046echo X"$as_dir" |
20047    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20048  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20049  	  /^X\(\/\/\)$/{ s//\1/; q; }
20050  	  /^X\(\/\).*/{ s//\1/; q; }
20051  	  s/.*/./; q'`
20052    done
20053    test ! -n "$as_dirs" || mkdir $as_dirs
20054  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20055echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20056   { (exit 1); exit 1; }; }; }
20057
20058      rm -f $ac_file
20059      mv $tmp/config.h $ac_file
20060    fi
20061  else
20062    cat $tmp/config.h
20063    rm -f $tmp/config.h
20064  fi
20065# Compute $ac_file's index in $config_headers.
20066_am_stamp_count=1
20067for _am_header in $config_headers :; do
20068  case $_am_header in
20069    $ac_file | $ac_file:* )
20070      break ;;
20071    * )
20072      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20073  esac
20074done
20075echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20076$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20077	 X$ac_file : 'X\(//\)[^/]' \| \
20078	 X$ac_file : 'X\(//\)$' \| \
20079	 X$ac_file : 'X\(/\)' \| \
20080	 .     : '\(.\)' 2>/dev/null ||
20081echo X$ac_file |
20082    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20083  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20084  	  /^X\(\/\/\)$/{ s//\1/; q; }
20085  	  /^X\(\/\).*/{ s//\1/; q; }
20086  	  s/.*/./; q'`/stamp-h$_am_stamp_count
20087done
20088_ACEOF
20089cat >>$CONFIG_STATUS <<\_ACEOF
20090
20091#
20092# CONFIG_COMMANDS section.
20093#
20094for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20095  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20096  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20097  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20098$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20099	 X"$ac_dest" : 'X\(//\)[^/]' \| \
20100	 X"$ac_dest" : 'X\(//\)$' \| \
20101	 X"$ac_dest" : 'X\(/\)' \| \
20102	 .     : '\(.\)' 2>/dev/null ||
20103echo X"$ac_dest" |
20104    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20105  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20106  	  /^X\(\/\/\)$/{ s//\1/; q; }
20107  	  /^X\(\/\).*/{ s//\1/; q; }
20108  	  s/.*/./; q'`
20109  { if $as_mkdir_p; then
20110    mkdir -p "$ac_dir"
20111  else
20112    as_dir="$ac_dir"
20113    as_dirs=
20114    while test ! -d "$as_dir"; do
20115      as_dirs="$as_dir $as_dirs"
20116      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20117$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20118	 X"$as_dir" : 'X\(//\)[^/]' \| \
20119	 X"$as_dir" : 'X\(//\)$' \| \
20120	 X"$as_dir" : 'X\(/\)' \| \
20121	 .     : '\(.\)' 2>/dev/null ||
20122echo X"$as_dir" |
20123    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20124  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20125  	  /^X\(\/\/\)$/{ s//\1/; q; }
20126  	  /^X\(\/\).*/{ s//\1/; q; }
20127  	  s/.*/./; q'`
20128    done
20129    test ! -n "$as_dirs" || mkdir $as_dirs
20130  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20131echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20132   { (exit 1); exit 1; }; }; }
20133
20134  ac_builddir=.
20135
20136if test "$ac_dir" != .; then
20137  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20138  # A "../" for each directory in $ac_dir_suffix.
20139  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20140else
20141  ac_dir_suffix= ac_top_builddir=
20142fi
20143
20144case $srcdir in
20145  .)  # No --srcdir option.  We are building in place.
20146    ac_srcdir=.
20147    if test -z "$ac_top_builddir"; then
20148       ac_top_srcdir=.
20149    else
20150       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20151    fi ;;
20152  [\\/]* | ?:[\\/]* )  # Absolute path.
20153    ac_srcdir=$srcdir$ac_dir_suffix;
20154    ac_top_srcdir=$srcdir ;;
20155  *) # Relative path.
20156    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20157    ac_top_srcdir=$ac_top_builddir$srcdir ;;
20158esac
20159
20160# Do not use `cd foo && pwd` to compute absolute paths, because
20161# the directories may not exist.
20162case `pwd` in
20163.) ac_abs_builddir="$ac_dir";;
20164*)
20165  case "$ac_dir" in
20166  .) ac_abs_builddir=`pwd`;;
20167  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20168  *) ac_abs_builddir=`pwd`/"$ac_dir";;
20169  esac;;
20170esac
20171case $ac_abs_builddir in
20172.) ac_abs_top_builddir=${ac_top_builddir}.;;
20173*)
20174  case ${ac_top_builddir}. in
20175  .) ac_abs_top_builddir=$ac_abs_builddir;;
20176  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20177  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20178  esac;;
20179esac
20180case $ac_abs_builddir in
20181.) ac_abs_srcdir=$ac_srcdir;;
20182*)
20183  case $ac_srcdir in
20184  .) ac_abs_srcdir=$ac_abs_builddir;;
20185  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20186  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20187  esac;;
20188esac
20189case $ac_abs_builddir in
20190.) ac_abs_top_srcdir=$ac_top_srcdir;;
20191*)
20192  case $ac_top_srcdir in
20193  .) ac_abs_top_srcdir=$ac_abs_builddir;;
20194  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20195  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20196  esac;;
20197esac
20198
20199
20200  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20201echo "$as_me: executing $ac_dest commands" >&6;}
20202  case $ac_dest in
20203    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20204  # Strip MF so we end up with the name of the file.
20205  mf=`echo "$mf" | sed -e 's/:.*$//'`
20206  # Check whether this is an Automake generated Makefile or not.
20207  # We used to match only the files named `Makefile.in', but
20208  # some people rename them; so instead we look at the file content.
20209  # Grep'ing the first line is not enough: some people post-process
20210  # each Makefile.in and add a new line on top of each file to say so.
20211  # So let's grep whole file.
20212  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20213    dirpart=`(dirname "$mf") 2>/dev/null ||
20214$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20215	 X"$mf" : 'X\(//\)[^/]' \| \
20216	 X"$mf" : 'X\(//\)$' \| \
20217	 X"$mf" : 'X\(/\)' \| \
20218	 .     : '\(.\)' 2>/dev/null ||
20219echo X"$mf" |
20220    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20221  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20222  	  /^X\(\/\/\)$/{ s//\1/; q; }
20223  	  /^X\(\/\).*/{ s//\1/; q; }
20224  	  s/.*/./; q'`
20225  else
20226    continue
20227  fi
20228  # Extract the definition of DEPDIR, am__include, and am__quote
20229  # from the Makefile without running `make'.
20230  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20231  test -z "$DEPDIR" && continue
20232  am__include=`sed -n 's/^am__include = //p' < "$mf"`
20233  test -z "am__include" && continue
20234  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20235  # When using ansi2knr, U may be empty or an underscore; expand it
20236  U=`sed -n 's/^U = //p' < "$mf"`
20237  # Find all dependency output files, they are included files with
20238  # $(DEPDIR) in their names.  We invoke sed twice because it is the
20239  # simplest approach to changing $(DEPDIR) to its actual value in the
20240  # expansion.
20241  for file in `sed -n "
20242    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20243       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20244    # Make sure the directory exists.
20245    test -f "$dirpart/$file" && continue
20246    fdir=`(dirname "$file") 2>/dev/null ||
20247$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20248	 X"$file" : 'X\(//\)[^/]' \| \
20249	 X"$file" : 'X\(//\)$' \| \
20250	 X"$file" : 'X\(/\)' \| \
20251	 .     : '\(.\)' 2>/dev/null ||
20252echo X"$file" |
20253    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20254  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20255  	  /^X\(\/\/\)$/{ s//\1/; q; }
20256  	  /^X\(\/\).*/{ s//\1/; q; }
20257  	  s/.*/./; q'`
20258    { if $as_mkdir_p; then
20259    mkdir -p $dirpart/$fdir
20260  else
20261    as_dir=$dirpart/$fdir
20262    as_dirs=
20263    while test ! -d "$as_dir"; do
20264      as_dirs="$as_dir $as_dirs"
20265      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20266$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20267	 X"$as_dir" : 'X\(//\)[^/]' \| \
20268	 X"$as_dir" : 'X\(//\)$' \| \
20269	 X"$as_dir" : 'X\(/\)' \| \
20270	 .     : '\(.\)' 2>/dev/null ||
20271echo X"$as_dir" |
20272    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20273  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20274  	  /^X\(\/\/\)$/{ s//\1/; q; }
20275  	  /^X\(\/\).*/{ s//\1/; q; }
20276  	  s/.*/./; q'`
20277    done
20278    test ! -n "$as_dirs" || mkdir $as_dirs
20279  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20280echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20281   { (exit 1); exit 1; }; }; }
20282
20283    # echo "creating $dirpart/$file"
20284    echo '# dummy' > "$dirpart/$file"
20285  done
20286done
20287 ;;
20288  esac
20289done
20290_ACEOF
20291
20292cat >>$CONFIG_STATUS <<\_ACEOF
20293
20294{ (exit 0); exit 0; }
20295_ACEOF
20296chmod +x $CONFIG_STATUS
20297ac_clean_files=$ac_clean_files_save
20298
20299
20300# configure is writing to config.log, and then calls config.status.
20301# config.status does its own redirection, appending to config.log.
20302# Unfortunately, on DOS this fails, as config.log is still kept open
20303# by configure, so config.status won't be able to write to it; its
20304# output is simply discarded.  So we exec the FD to /dev/null,
20305# effectively closing config.log, so it can be properly (re)opened and
20306# appended to by config.status.  When coming back to configure, we
20307# need to make the FD available again.
20308if test "$no_create" != yes; then
20309  ac_cs_success=:
20310  ac_config_status_args=
20311  test "$silent" = yes &&
20312    ac_config_status_args="$ac_config_status_args --quiet"
20313  exec 5>/dev/null
20314  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20315  exec 5>>config.log
20316  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20317  # would make configure fail if this is the last instruction.
20318  $ac_cs_success || { (exit 1); exit 1; }
20319fi
20320
20321