1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for libtranslate 0.99.
4#
5# Report bugs to <jylefort@brutele.be>.
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='libtranslate'
425PACKAGE_TARNAME='libtranslate'
426PACKAGE_VERSION='0.99'
427PACKAGE_STRING='libtranslate 0.99'
428PACKAGE_BUGREPORT='jylefort@brutele.be'
429
430ac_unique_file="src/translate.h"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445#  include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450#  include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461#  include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_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 WARN_CFLAGS 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 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 GETTEXT_PACKAGE USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS INTLTOOL_DESKTOP_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_KEYS_RULE INTLTOOL_PROP_RULE INTLTOOL_OAF_RULE INTLTOOL_PONG_RULE INTLTOOL_SERVER_RULE INTLTOOL_SHEET_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_UI_RULE INTLTOOL_XAM_RULE INTLTOOL_KBD_RULE INTLTOOL_XML_RULE INTLTOOL_XML_NOMERGE_RULE INTLTOOL_CAVES_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_THEME_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL ICONV MSGMERGE PKG_CONFIG GLIB_CFLAGS GLIB_LIBS HTML_DIR ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_USE_LIBTOOL_FALSE SOUP_CFLAGS SOUP_LIBS LIBXML_CFLAGS LIBXML_LIBS TALKFILTERS_CFLAGS TALKFILTERS_LIBS WITH_GENERIC_TRUE WITH_GENERIC_FALSE WITH_TALKFILTERS_TRUE WITH_TALKFILTERS_FALSE WITH_REGRESSION_TESTS_TRUE WITH_REGRESSION_TESTS_FALSE LIBOBJS LTLIBOBJS'
469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512  # If the previous option needs an argument, assign it.
513  if test -n "$ac_prev"; then
514    eval "$ac_prev=\$ac_option"
515    ac_prev=
516    continue
517  fi
518
519  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521  # Accept the important Cygnus configure options, so we can diagnose typos.
522
523  case $ac_option in
524
525  -bindir | --bindir | --bindi | --bind | --bin | --bi)
526    ac_prev=bindir ;;
527  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528    bindir=$ac_optarg ;;
529
530  -build | --build | --buil | --bui | --bu)
531    ac_prev=build_alias ;;
532  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533    build_alias=$ac_optarg ;;
534
535  -cache-file | --cache-file | --cache-fil | --cache-fi \
536  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537    ac_prev=cache_file ;;
538  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540    cache_file=$ac_optarg ;;
541
542  --config-cache | -C)
543    cache_file=config.cache ;;
544
545  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546    ac_prev=datadir ;;
547  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548  | --da=*)
549    datadir=$ac_optarg ;;
550
551  -disable-* | --disable-*)
552    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553    # Reject names that are not valid shell variable names.
554    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556   { (exit 1); exit 1; }; }
557    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558    eval "enable_$ac_feature=no" ;;
559
560  -enable-* | --enable-*)
561    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562    # Reject names that are not valid shell variable names.
563    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565   { (exit 1); exit 1; }; }
566    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567    case $ac_option in
568      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569      *) ac_optarg=yes ;;
570    esac
571    eval "enable_$ac_feature='$ac_optarg'" ;;
572
573  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575  | --exec | --exe | --ex)
576    ac_prev=exec_prefix ;;
577  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579  | --exec=* | --exe=* | --ex=*)
580    exec_prefix=$ac_optarg ;;
581
582  -gas | --gas | --ga | --g)
583    # Obsolete; use --with-gas.
584    with_gas=yes ;;
585
586  -help | --help | --hel | --he | -h)
587    ac_init_help=long ;;
588  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589    ac_init_help=recursive ;;
590  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591    ac_init_help=short ;;
592
593  -host | --host | --hos | --ho)
594    ac_prev=host_alias ;;
595  -host=* | --host=* | --hos=* | --ho=*)
596    host_alias=$ac_optarg ;;
597
598  -includedir | --includedir | --includedi | --included | --include \
599  | --includ | --inclu | --incl | --inc)
600    ac_prev=includedir ;;
601  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602  | --includ=* | --inclu=* | --incl=* | --inc=*)
603    includedir=$ac_optarg ;;
604
605  -infodir | --infodir | --infodi | --infod | --info | --inf)
606    ac_prev=infodir ;;
607  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608    infodir=$ac_optarg ;;
609
610  -libdir | --libdir | --libdi | --libd)
611    ac_prev=libdir ;;
612  -libdir=* | --libdir=* | --libdi=* | --libd=*)
613    libdir=$ac_optarg ;;
614
615  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616  | --libexe | --libex | --libe)
617    ac_prev=libexecdir ;;
618  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619  | --libexe=* | --libex=* | --libe=*)
620    libexecdir=$ac_optarg ;;
621
622  -localstatedir | --localstatedir | --localstatedi | --localstated \
623  | --localstate | --localstat | --localsta | --localst \
624  | --locals | --local | --loca | --loc | --lo)
625    ac_prev=localstatedir ;;
626  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629    localstatedir=$ac_optarg ;;
630
631  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632    ac_prev=mandir ;;
633  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634    mandir=$ac_optarg ;;
635
636  -nfp | --nfp | --nf)
637    # Obsolete; use --without-fp.
638    with_fp=no ;;
639
640  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641  | --no-cr | --no-c | -n)
642    no_create=yes ;;
643
644  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646    no_recursion=yes ;;
647
648  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650  | --oldin | --oldi | --old | --ol | --o)
651    ac_prev=oldincludedir ;;
652  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655    oldincludedir=$ac_optarg ;;
656
657  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658    ac_prev=prefix ;;
659  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660    prefix=$ac_optarg ;;
661
662  -program-prefix | --program-prefix | --program-prefi | --program-pref \
663  | --program-pre | --program-pr | --program-p)
664    ac_prev=program_prefix ;;
665  -program-prefix=* | --program-prefix=* | --program-prefi=* \
666  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667    program_prefix=$ac_optarg ;;
668
669  -program-suffix | --program-suffix | --program-suffi | --program-suff \
670  | --program-suf | --program-su | --program-s)
671    ac_prev=program_suffix ;;
672  -program-suffix=* | --program-suffix=* | --program-suffi=* \
673  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674    program_suffix=$ac_optarg ;;
675
676  -program-transform-name | --program-transform-name \
677  | --program-transform-nam | --program-transform-na \
678  | --program-transform-n | --program-transform- \
679  | --program-transform | --program-transfor \
680  | --program-transfo | --program-transf \
681  | --program-trans | --program-tran \
682  | --progr-tra | --program-tr | --program-t)
683    ac_prev=program_transform_name ;;
684  -program-transform-name=* | --program-transform-name=* \
685  | --program-transform-nam=* | --program-transform-na=* \
686  | --program-transform-n=* | --program-transform-=* \
687  | --program-transform=* | --program-transfor=* \
688  | --program-transfo=* | --program-transf=* \
689  | --program-trans=* | --program-tran=* \
690  | --progr-tra=* | --program-tr=* | --program-t=*)
691    program_transform_name=$ac_optarg ;;
692
693  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694  | -silent | --silent | --silen | --sile | --sil)
695    silent=yes ;;
696
697  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698    ac_prev=sbindir ;;
699  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700  | --sbi=* | --sb=*)
701    sbindir=$ac_optarg ;;
702
703  -sharedstatedir | --sharedstatedir | --sharedstatedi \
704  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705  | --sharedst | --shareds | --shared | --share | --shar \
706  | --sha | --sh)
707    ac_prev=sharedstatedir ;;
708  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711  | --sha=* | --sh=*)
712    sharedstatedir=$ac_optarg ;;
713
714  -site | --site | --sit)
715    ac_prev=site ;;
716  -site=* | --site=* | --sit=*)
717    site=$ac_optarg ;;
718
719  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720    ac_prev=srcdir ;;
721  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722    srcdir=$ac_optarg ;;
723
724  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725  | --syscon | --sysco | --sysc | --sys | --sy)
726    ac_prev=sysconfdir ;;
727  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729    sysconfdir=$ac_optarg ;;
730
731  -target | --target | --targe | --targ | --tar | --ta | --t)
732    ac_prev=target_alias ;;
733  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734    target_alias=$ac_optarg ;;
735
736  -v | -verbose | --verbose | --verbos | --verbo | --verb)
737    verbose=yes ;;
738
739  -version | --version | --versio | --versi | --vers | -V)
740    ac_init_version=: ;;
741
742  -with-* | --with-*)
743    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744    # Reject names that are not valid shell variable names.
745    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746      { echo "$as_me: error: invalid package name: $ac_package" >&2
747   { (exit 1); exit 1; }; }
748    ac_package=`echo $ac_package| sed 's/-/_/g'`
749    case $ac_option in
750      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751      *) ac_optarg=yes ;;
752    esac
753    eval "with_$ac_package='$ac_optarg'" ;;
754
755  -without-* | --without-*)
756    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757    # Reject names that are not valid shell variable names.
758    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759      { echo "$as_me: error: invalid package name: $ac_package" >&2
760   { (exit 1); exit 1; }; }
761    ac_package=`echo $ac_package | sed 's/-/_/g'`
762    eval "with_$ac_package=no" ;;
763
764  --x)
765    # Obsolete; use --with-x.
766    with_x=yes ;;
767
768  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769  | --x-incl | --x-inc | --x-in | --x-i)
770    ac_prev=x_includes ;;
771  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773    x_includes=$ac_optarg ;;
774
775  -x-libraries | --x-libraries | --x-librarie | --x-librari \
776  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777    ac_prev=x_libraries ;;
778  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780    x_libraries=$ac_optarg ;;
781
782  -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784   { (exit 1); exit 1; }; }
785    ;;
786
787  *=*)
788    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789    # Reject names that are not valid shell variable names.
790    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792   { (exit 1); exit 1; }; }
793    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794    eval "$ac_envvar='$ac_optarg'"
795    export $ac_envvar ;;
796
797  *)
798    # FIXME: should be removed in autoconf 3.0.
799    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803    ;;
804
805  esac
806done
807
808if test -n "$ac_prev"; then
809  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810  { echo "$as_me: error: missing argument to $ac_option" >&2
811   { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817  eval ac_val=$`echo $ac_var`
818  case $ac_val in
819    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821   { (exit 1); exit 1; }; };;
822  esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827	      localstatedir libdir includedir oldincludedir infodir mandir
828do
829  eval ac_val=$`echo $ac_var`
830  case $ac_val in
831    [\\/$]* | ?:[\\/]* ) ;;
832    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833   { (exit 1); exit 1; }; };;
834  esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846  if test "x$build_alias" = x; then
847    cross_compiling=maybe
848    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849    If a cross compiler is detected then cross compile mode will be used." >&2
850  elif test "x$build_alias" != "x$host_alias"; then
851    cross_compiling=yes
852  fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863  ac_srcdir_defaulted=yes
864  # Try the directory containing this script, then its parent.
865  ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867	 X"$0" : 'X\(//\)[^/]' \| \
868	 X"$0" : 'X\(//\)$' \| \
869	 X"$0" : 'X\(/\)' \| \
870	 .     : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874  	  /^X\(\/\/\)$/{ s//\1/; q; }
875  	  /^X\(\/\).*/{ s//\1/; q; }
876  	  s/.*/./; q'`
877  srcdir=$ac_confdir
878  if test ! -r $srcdir/$ac_unique_file; then
879    srcdir=..
880  fi
881else
882  ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885  if test "$ac_srcdir_defaulted" = yes; then
886    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887   { (exit 1); exit 1; }; }
888  else
889    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890   { (exit 1); exit 1; }; }
891  fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895   { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954  # Omit some internal or obsolete options to make the list less imposing.
955  # This message is too long to be a string in the A/UX 3.1 sh.
956  cat <<_ACEOF
957\`configure' configures libtranslate 0.99 to adapt to many kinds of systems.
958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967  -h, --help              display this help and exit
968      --help=short        display options specific to this package
969      --help=recursive    display the short help of all the included packages
970  -V, --version           display version information and exit
971  -q, --quiet, --silent   do not print \`checking...' messages
972      --cache-file=FILE   cache test results in FILE [disabled]
973  -C, --config-cache      alias for \`--cache-file=config.cache'
974  -n, --no-create         do not create output files
975      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979  cat <<_ACEOF
980Installation directories:
981  --prefix=PREFIX         install architecture-independent files in PREFIX
982			  [$ac_default_prefix]
983  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984			  [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994  --bindir=DIR           user executables [EPREFIX/bin]
995  --sbindir=DIR          system admin executables [EPREFIX/sbin]
996  --libexecdir=DIR       program executables [EPREFIX/libexec]
997  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001  --libdir=DIR           object code libraries [EPREFIX/lib]
1002  --includedir=DIR       C header files [PREFIX/include]
1003  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004  --infodir=DIR          info documentation [PREFIX/info]
1005  --mandir=DIR           man documentation [PREFIX/man]
1006_ACEOF
1007
1008  cat <<\_ACEOF
1009
1010Program names:
1011  --program-prefix=PREFIX            prepend PREFIX to installed program names
1012  --program-suffix=SUFFIX            append SUFFIX to installed program names
1013  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1014
1015System types:
1016  --build=BUILD     configure for building on BUILD [guessed]
1017  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1018_ACEOF
1019fi
1020
1021if test -n "$ac_init_help"; then
1022  case $ac_init_help in
1023     short | recursive ) echo "Configuration of libtranslate 0.99:";;
1024   esac
1025  cat <<\_ACEOF
1026
1027Optional Features:
1028  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030  --disable-generic       do not build the generic module
1031  --disable-talkfilters   do not build the talkfilters module
1032  --enable-compile-warnings=no|yes|error
1033                          enable compiler warnings [no]
1034  --enable-regression-tests
1035                          build and run regression tests
1036  --enable-maintainer-mode  enable make rules and dependencies not useful
1037			  (and sometimes confusing) to the casual installer
1038  --enable-shared[=PKGS]
1039                          build shared libraries [default=yes]
1040  --enable-static[=PKGS]
1041                          build static libraries [default=yes]
1042  --enable-fast-install[=PKGS]
1043                          optimize for fast installation [default=yes]
1044  --disable-dependency-tracking  speeds up one-time build
1045  --enable-dependency-tracking   do not reject slow dependency extractors
1046  --disable-libtool-lock  avoid locking (might break parallel builds)
1047  --disable-largefile     omit support for large files
1048  --enable-gtk-doc        use gtk-doc to build documentation default=no
1049
1050Optional Packages:
1051  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1052  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1053  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1054  --with-pic              try to use only PIC/non-PIC objects [default=use
1055                          both]
1056  --with-tags[=TAGS]
1057                          include additional configurations [automatic]
1058  --with-html-dir=PATH    path to installed docs
1059
1060Some influential environment variables:
1061  CC          C compiler command
1062  CFLAGS      C compiler flags
1063  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1064              nonstandard directory <lib dir>
1065  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066              headers in a nonstandard directory <include dir>
1067  CPP         C preprocessor
1068  CXX         C++ compiler command
1069  CXXFLAGS    C++ compiler flags
1070  CXXCPP      C++ preprocessor
1071  F77         Fortran 77 compiler command
1072  FFLAGS      Fortran 77 compiler flags
1073
1074Use these variables to override the choices made by `configure' or to help
1075it to find libraries and programs with nonstandard names/locations.
1076
1077Report bugs to <jylefort@brutele.be>.
1078_ACEOF
1079fi
1080
1081if test "$ac_init_help" = "recursive"; then
1082  # If there are subdirs, report their specific --help.
1083  ac_popdir=`pwd`
1084  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1085    test -d $ac_dir || continue
1086    ac_builddir=.
1087
1088if test "$ac_dir" != .; then
1089  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1090  # A "../" for each directory in $ac_dir_suffix.
1091  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1092else
1093  ac_dir_suffix= ac_top_builddir=
1094fi
1095
1096case $srcdir in
1097  .)  # No --srcdir option.  We are building in place.
1098    ac_srcdir=.
1099    if test -z "$ac_top_builddir"; then
1100       ac_top_srcdir=.
1101    else
1102       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1103    fi ;;
1104  [\\/]* | ?:[\\/]* )  # Absolute path.
1105    ac_srcdir=$srcdir$ac_dir_suffix;
1106    ac_top_srcdir=$srcdir ;;
1107  *) # Relative path.
1108    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1109    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1110esac
1111
1112# Do not use `cd foo && pwd` to compute absolute paths, because
1113# the directories may not exist.
1114case `pwd` in
1115.) ac_abs_builddir="$ac_dir";;
1116*)
1117  case "$ac_dir" in
1118  .) ac_abs_builddir=`pwd`;;
1119  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1120  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1121  esac;;
1122esac
1123case $ac_abs_builddir in
1124.) ac_abs_top_builddir=${ac_top_builddir}.;;
1125*)
1126  case ${ac_top_builddir}. in
1127  .) ac_abs_top_builddir=$ac_abs_builddir;;
1128  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1130  esac;;
1131esac
1132case $ac_abs_builddir in
1133.) ac_abs_srcdir=$ac_srcdir;;
1134*)
1135  case $ac_srcdir in
1136  .) ac_abs_srcdir=$ac_abs_builddir;;
1137  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1139  esac;;
1140esac
1141case $ac_abs_builddir in
1142.) ac_abs_top_srcdir=$ac_top_srcdir;;
1143*)
1144  case $ac_top_srcdir in
1145  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1146  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1148  esac;;
1149esac
1150
1151    cd $ac_dir
1152    # Check for guested configure; otherwise get Cygnus style configure.
1153    if test -f $ac_srcdir/configure.gnu; then
1154      echo
1155      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1156    elif test -f $ac_srcdir/configure; then
1157      echo
1158      $SHELL $ac_srcdir/configure  --help=recursive
1159    elif test -f $ac_srcdir/configure.ac ||
1160	   test -f $ac_srcdir/configure.in; then
1161      echo
1162      $ac_configure --help
1163    else
1164      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165    fi
1166    cd $ac_popdir
1167  done
1168fi
1169
1170test -n "$ac_init_help" && exit 0
1171if $ac_init_version; then
1172  cat <<\_ACEOF
1173libtranslate configure 0.99
1174generated by GNU Autoconf 2.59
1175
1176Copyright (C) 2003 Free Software Foundation, Inc.
1177This configure script is free software; the Free Software Foundation
1178gives unlimited permission to copy, distribute and modify it.
1179_ACEOF
1180  exit 0
1181fi
1182exec 5>config.log
1183cat >&5 <<_ACEOF
1184This file contains any messages produced by compilers while
1185running configure, to aid debugging if configure makes a mistake.
1186
1187It was created by libtranslate $as_me 0.99, which was
1188generated by GNU Autoconf 2.59.  Invocation command line was
1189
1190  $ $0 $@
1191
1192_ACEOF
1193{
1194cat <<_ASUNAME
1195## --------- ##
1196## Platform. ##
1197## --------- ##
1198
1199hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1200uname -m = `(uname -m) 2>/dev/null || echo unknown`
1201uname -r = `(uname -r) 2>/dev/null || echo unknown`
1202uname -s = `(uname -s) 2>/dev/null || echo unknown`
1203uname -v = `(uname -v) 2>/dev/null || echo unknown`
1204
1205/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1206/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1207
1208/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1209/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1210/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1211hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1212/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1213/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1214/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1215
1216_ASUNAME
1217
1218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1219for as_dir in $PATH
1220do
1221  IFS=$as_save_IFS
1222  test -z "$as_dir" && as_dir=.
1223  echo "PATH: $as_dir"
1224done
1225
1226} >&5
1227
1228cat >&5 <<_ACEOF
1229
1230
1231## ----------- ##
1232## Core tests. ##
1233## ----------- ##
1234
1235_ACEOF
1236
1237
1238# Keep a trace of the command line.
1239# Strip out --no-create and --no-recursion so they do not pile up.
1240# Strip out --silent because we don't want to record it for future runs.
1241# Also quote any args containing shell meta-characters.
1242# Make two passes to allow for proper duplicate-argument suppression.
1243ac_configure_args=
1244ac_configure_args0=
1245ac_configure_args1=
1246ac_sep=
1247ac_must_keep_next=false
1248for ac_pass in 1 2
1249do
1250  for ac_arg
1251  do
1252    case $ac_arg in
1253    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1254    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255    | -silent | --silent | --silen | --sile | --sil)
1256      continue ;;
1257    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1259    esac
1260    case $ac_pass in
1261    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1262    2)
1263      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1264      if test $ac_must_keep_next = true; then
1265	ac_must_keep_next=false # Got value, back to normal.
1266      else
1267	case $ac_arg in
1268	  *=* | --config-cache | -C | -disable-* | --disable-* \
1269	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1270	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1271	  | -with-* | --with-* | -without-* | --without-* | --x)
1272	    case "$ac_configure_args0 " in
1273	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1274	    esac
1275	    ;;
1276	  -* ) ac_must_keep_next=true ;;
1277	esac
1278      fi
1279      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1280      # Get rid of the leading space.
1281      ac_sep=" "
1282      ;;
1283    esac
1284  done
1285done
1286$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1287$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1288
1289# When interrupted or exit'd, cleanup temporary files, and complete
1290# config.log.  We remove comments because anyway the quotes in there
1291# would cause problems or look ugly.
1292# WARNING: Be sure not to use single quotes in there, as some shells,
1293# such as our DU 5.0 friend, will then `close' the trap.
1294trap 'exit_status=$?
1295  # Save into config.log some information that might help in debugging.
1296  {
1297    echo
1298
1299    cat <<\_ASBOX
1300## ---------------- ##
1301## Cache variables. ##
1302## ---------------- ##
1303_ASBOX
1304    echo
1305    # The following way of writing the cache mishandles newlines in values,
1306{
1307  (set) 2>&1 |
1308    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1309    *ac_space=\ *)
1310      sed -n \
1311	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1312	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1313      ;;
1314    *)
1315      sed -n \
1316	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1317      ;;
1318    esac;
1319}
1320    echo
1321
1322    cat <<\_ASBOX
1323## ----------------- ##
1324## Output variables. ##
1325## ----------------- ##
1326_ASBOX
1327    echo
1328    for ac_var in $ac_subst_vars
1329    do
1330      eval ac_val=$`echo $ac_var`
1331      echo "$ac_var='"'"'$ac_val'"'"'"
1332    done | sort
1333    echo
1334
1335    if test -n "$ac_subst_files"; then
1336      cat <<\_ASBOX
1337## ------------- ##
1338## Output files. ##
1339## ------------- ##
1340_ASBOX
1341      echo
1342      for ac_var in $ac_subst_files
1343      do
1344	eval ac_val=$`echo $ac_var`
1345	echo "$ac_var='"'"'$ac_val'"'"'"
1346      done | sort
1347      echo
1348    fi
1349
1350    if test -s confdefs.h; then
1351      cat <<\_ASBOX
1352## ----------- ##
1353## confdefs.h. ##
1354## ----------- ##
1355_ASBOX
1356      echo
1357      sed "/^$/d" confdefs.h | sort
1358      echo
1359    fi
1360    test "$ac_signal" != 0 &&
1361      echo "$as_me: caught signal $ac_signal"
1362    echo "$as_me: exit $exit_status"
1363  } >&5
1364  rm -f core *.core &&
1365  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1366    exit $exit_status
1367     ' 0
1368for ac_signal in 1 2 13 15; do
1369  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1370done
1371ac_signal=0
1372
1373# confdefs.h avoids OS command line length limits that DEFS can exceed.
1374rm -rf conftest* confdefs.h
1375# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1376echo >confdefs.h
1377
1378# Predefined preprocessor variables.
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_NAME "$PACKAGE_NAME"
1382_ACEOF
1383
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1387_ACEOF
1388
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_VERSION "$PACKAGE_VERSION"
1392_ACEOF
1393
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_STRING "$PACKAGE_STRING"
1397_ACEOF
1398
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1402_ACEOF
1403
1404
1405# Let the site file select an alternate cache file if it wants to.
1406# Prefer explicitly selected file to automatically selected ones.
1407if test -z "$CONFIG_SITE"; then
1408  if test "x$prefix" != xNONE; then
1409    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1410  else
1411    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1412  fi
1413fi
1414for ac_site_file in $CONFIG_SITE; do
1415  if test -r "$ac_site_file"; then
1416    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1417echo "$as_me: loading site script $ac_site_file" >&6;}
1418    sed 's/^/| /' "$ac_site_file" >&5
1419    . "$ac_site_file"
1420  fi
1421done
1422
1423if test -r "$cache_file"; then
1424  # Some versions of bash will fail to source /dev/null (special
1425  # files actually), so we avoid doing that.
1426  if test -f "$cache_file"; then
1427    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1428echo "$as_me: loading cache $cache_file" >&6;}
1429    case $cache_file in
1430      [\\/]* | ?:[\\/]* ) . $cache_file;;
1431      *)                      . ./$cache_file;;
1432    esac
1433  fi
1434else
1435  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1436echo "$as_me: creating cache $cache_file" >&6;}
1437  >$cache_file
1438fi
1439
1440# Check that the precious variables saved in the cache have kept the same
1441# value.
1442ac_cache_corrupted=false
1443for ac_var in `(set) 2>&1 |
1444	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1445  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1446  eval ac_new_set=\$ac_env_${ac_var}_set
1447  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1448  eval ac_new_val="\$ac_env_${ac_var}_value"
1449  case $ac_old_set,$ac_new_set in
1450    set,)
1451      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1452echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1453      ac_cache_corrupted=: ;;
1454    ,set)
1455      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1456echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1457      ac_cache_corrupted=: ;;
1458    ,);;
1459    *)
1460      if test "x$ac_old_val" != "x$ac_new_val"; then
1461	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1462echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1463	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1464echo "$as_me:   former value:  $ac_old_val" >&2;}
1465	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1466echo "$as_me:   current value: $ac_new_val" >&2;}
1467	ac_cache_corrupted=:
1468      fi;;
1469  esac
1470  # Pass precious variables to config.status.
1471  if test "$ac_new_set" = set; then
1472    case $ac_new_val in
1473    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1474      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1475    *) ac_arg=$ac_var=$ac_new_val ;;
1476    esac
1477    case " $ac_configure_args " in
1478      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1479      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1480    esac
1481  fi
1482done
1483if $ac_cache_corrupted; then
1484  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1485echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1486  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1487echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1488   { (exit 1); exit 1; }; }
1489fi
1490
1491ac_ext=c
1492ac_cpp='$CPP $CPPFLAGS'
1493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1495ac_compiler_gnu=$ac_cv_c_compiler_gnu
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527### command line arguments
1528
1529# Check whether --enable-generic or --disable-generic was given.
1530if test "${enable_generic+set}" = set; then
1531  enableval="$enable_generic"
1532  case "$enableval" in
1533	yes|no) enable_generic=$enableval ;;
1534	*) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-generic" >&5
1535echo "$as_me: error: bad value $enableval for --enable-generic" >&2;}
1536   { (exit 1); exit 1; }; } ;;
1537esac
1538else
1539  enable_generic=yes
1540fi;
1541# Check whether --enable-talkfilters or --disable-talkfilters was given.
1542if test "${enable_talkfilters+set}" = set; then
1543  enableval="$enable_talkfilters"
1544  case "$enableval" in
1545	yes|no) enable_talkfilters=$enableval ;;
1546	*) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-talkfilters" >&5
1547echo "$as_me: error: bad value $enableval for --enable-talkfilters" >&2;}
1548   { (exit 1); exit 1; }; } ;;
1549esac
1550else
1551  enable_talkfilters=yes
1552fi;
1553
1554# Check whether --enable-compile-warnings or --disable-compile-warnings was given.
1555if test "${enable_compile_warnings+set}" = set; then
1556  enableval="$enable_compile_warnings"
1557  case "$enableval" in
1558	yes|no|error) enable_compile_warnings=$enableval ;;
1559	*) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-compile-warnings" >&5
1560echo "$as_me: error: bad value $enableval for --enable-compile-warnings" >&2;}
1561   { (exit 1); exit 1; }; } ;;
1562esac
1563else
1564  enable_compile_warnings=no
1565fi;
1566
1567if test $enable_compile_warnings = no; then
1568	WARN_CFLAGS=
1569else
1570	# some flags are specific to GCC
1571	WARN_CFLAGS="-Wall \
1572-Wformat-y2k \
1573-Wformat-security \
1574-Wno-unused-parameter \
1575-Wfloat-equal \
1576-Wdeclaration-after-statement \
1577-Wendif-labels \
1578-Wpointer-arith \
1579-Wcast-align \
1580-Waggregate-return \
1581-Wmissing-noreturn \
1582-Wmissing-format-attribute \
1583-Wpacked \
1584-Wredundant-decls \
1585-Wnested-externs \
1586-Winline"
1587	test $enable_compile_warnings = error && WARN_CFLAGS="$WARN_CFLAGS -Werror"
1588fi
1589
1590
1591# Check whether --enable-regression-tests or --disable-regression-tests was given.
1592if test "${enable_regression_tests+set}" = set; then
1593  enableval="$enable_regression_tests"
1594  case "$enableval" in
1595	yes|no) enable_regression_tests=$enableval ;;
1596	*) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-regression-tests" >&5
1597echo "$as_me: error: bad value $enableval for --enable-regression-tests" >&2;}
1598   { (exit 1); exit 1; }; } ;;
1599esac
1600else
1601  enable_regression_tests=no
1602fi;
1603
1604### initialization
1605
1606am__api_version="1.9"
1607ac_aux_dir=
1608for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1609  if test -f $ac_dir/install-sh; then
1610    ac_aux_dir=$ac_dir
1611    ac_install_sh="$ac_aux_dir/install-sh -c"
1612    break
1613  elif test -f $ac_dir/install.sh; then
1614    ac_aux_dir=$ac_dir
1615    ac_install_sh="$ac_aux_dir/install.sh -c"
1616    break
1617  elif test -f $ac_dir/shtool; then
1618    ac_aux_dir=$ac_dir
1619    ac_install_sh="$ac_aux_dir/shtool install -c"
1620    break
1621  fi
1622done
1623if test -z "$ac_aux_dir"; then
1624  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1625echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1626   { (exit 1); exit 1; }; }
1627fi
1628ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1629ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1630ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1631
1632# Find a good install program.  We prefer a C program (faster),
1633# so one script is as good as another.  But avoid the broken or
1634# incompatible versions:
1635# SysV /etc/install, /usr/sbin/install
1636# SunOS /usr/etc/install
1637# IRIX /sbin/install
1638# AIX /bin/install
1639# AmigaOS /C/install, which installs bootblocks on floppy discs
1640# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1641# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1642# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1643# OS/2's system install, which has a completely different semantic
1644# ./install, which can be erroneously created by make from ./install.sh.
1645echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1646echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1647if test -z "$INSTALL"; then
1648if test "${ac_cv_path_install+set}" = set; then
1649  echo $ECHO_N "(cached) $ECHO_C" >&6
1650else
1651  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652for as_dir in $PATH
1653do
1654  IFS=$as_save_IFS
1655  test -z "$as_dir" && as_dir=.
1656  # Account for people who put trailing slashes in PATH elements.
1657case $as_dir/ in
1658  ./ | .// | /cC/* | \
1659  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1660  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1661  /usr/ucb/* ) ;;
1662  *)
1663    # OSF1 and SCO ODT 3.0 have their own names for install.
1664    # Don't use installbsd from OSF since it installs stuff as root
1665    # by default.
1666    for ac_prog in ginstall scoinst install; do
1667      for ac_exec_ext in '' $ac_executable_extensions; do
1668	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1669	  if test $ac_prog = install &&
1670	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1671	    # AIX install.  It has an incompatible calling convention.
1672	    :
1673	  elif test $ac_prog = install &&
1674	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1675	    # program-specific install script used by HP pwplus--don't use.
1676	    :
1677	  else
1678	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1679	    break 3
1680	  fi
1681	fi
1682      done
1683    done
1684    ;;
1685esac
1686done
1687
1688
1689fi
1690  if test "${ac_cv_path_install+set}" = set; then
1691    INSTALL=$ac_cv_path_install
1692  else
1693    # As a last resort, use the slow shell script.  We don't cache a
1694    # path for INSTALL within a source directory, because that will
1695    # break other packages using the cache if that directory is
1696    # removed, or if the path is relative.
1697    INSTALL=$ac_install_sh
1698  fi
1699fi
1700echo "$as_me:$LINENO: result: $INSTALL" >&5
1701echo "${ECHO_T}$INSTALL" >&6
1702
1703# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1704# It thinks the first close brace ends the variable substitution.
1705test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1706
1707test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1708
1709test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1710
1711echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1712echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1713# Just in case
1714sleep 1
1715echo timestamp > conftest.file
1716# Do `set' in a subshell so we don't clobber the current shell's
1717# arguments.  Must try -L first in case configure is actually a
1718# symlink; some systems play weird games with the mod time of symlinks
1719# (eg FreeBSD returns the mod time of the symlink's containing
1720# directory).
1721if (
1722   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1723   if test "$*" = "X"; then
1724      # -L didn't work.
1725      set X `ls -t $srcdir/configure conftest.file`
1726   fi
1727   rm -f conftest.file
1728   if test "$*" != "X $srcdir/configure conftest.file" \
1729      && test "$*" != "X conftest.file $srcdir/configure"; then
1730
1731      # If neither matched, then we have a broken ls.  This can happen
1732      # if, for instance, CONFIG_SHELL is bash and it inherits a
1733      # broken ls alias from the environment.  This has actually
1734      # happened.  Such a system could not be considered "sane".
1735      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1736alias in your environment" >&5
1737echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1738alias in your environment" >&2;}
1739   { (exit 1); exit 1; }; }
1740   fi
1741
1742   test "$2" = conftest.file
1743   )
1744then
1745   # Ok.
1746   :
1747else
1748   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1749Check your system clock" >&5
1750echo "$as_me: error: newly created file is older than distributed files!
1751Check your system clock" >&2;}
1752   { (exit 1); exit 1; }; }
1753fi
1754echo "$as_me:$LINENO: result: yes" >&5
1755echo "${ECHO_T}yes" >&6
1756test "$program_prefix" != NONE &&
1757  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1758# Use a double $ so make ignores it.
1759test "$program_suffix" != NONE &&
1760  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1761# Double any \ or $.  echo might interpret backslashes.
1762# By default was `s,x,x', remove it if useless.
1763cat <<\_ACEOF >conftest.sed
1764s/[\\$]/&&/g;s/;s,x,x,$//
1765_ACEOF
1766program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1767rm conftest.sed
1768
1769# expand $ac_aux_dir to an absolute path
1770am_aux_dir=`cd $ac_aux_dir && pwd`
1771
1772test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1773# Use eval to expand $SHELL
1774if eval "$MISSING --run true"; then
1775  am_missing_run="$MISSING --run "
1776else
1777  am_missing_run=
1778  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1779echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1780fi
1781
1782if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1783  # We used to keeping the `.' as first argument, in order to
1784  # allow $(mkdir_p) to be used without argument.  As in
1785  #   $(mkdir_p) $(somedir)
1786  # where $(somedir) is conditionally defined.  However this is wrong
1787  # for two reasons:
1788  #  1. if the package is installed by a user who cannot write `.'
1789  #     make install will fail,
1790  #  2. the above comment should most certainly read
1791  #     $(mkdir_p) $(DESTDIR)$(somedir)
1792  #     so it does not work when $(somedir) is undefined and
1793  #     $(DESTDIR) is not.
1794  #  To support the latter case, we have to write
1795  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1796  #  so the `.' trick is pointless.
1797  mkdir_p='mkdir -p --'
1798else
1799  # On NextStep and OpenStep, the `mkdir' command does not
1800  # recognize any option.  It will interpret all options as
1801  # directories to create, and then abort because `.' already
1802  # exists.
1803  for d in ./-p ./--version;
1804  do
1805    test -d $d && rmdir $d
1806  done
1807  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1808  if test -f "$ac_aux_dir/mkinstalldirs"; then
1809    mkdir_p='$(mkinstalldirs)'
1810  else
1811    mkdir_p='$(install_sh) -d'
1812  fi
1813fi
1814
1815for ac_prog in gawk mawk nawk awk
1816do
1817  # Extract the first word of "$ac_prog", so it can be a program name with args.
1818set dummy $ac_prog; ac_word=$2
1819echo "$as_me:$LINENO: checking for $ac_word" >&5
1820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821if test "${ac_cv_prog_AWK+set}" = set; then
1822  echo $ECHO_N "(cached) $ECHO_C" >&6
1823else
1824  if test -n "$AWK"; then
1825  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1826else
1827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828for as_dir in $PATH
1829do
1830  IFS=$as_save_IFS
1831  test -z "$as_dir" && as_dir=.
1832  for ac_exec_ext in '' $ac_executable_extensions; do
1833  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834    ac_cv_prog_AWK="$ac_prog"
1835    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836    break 2
1837  fi
1838done
1839done
1840
1841fi
1842fi
1843AWK=$ac_cv_prog_AWK
1844if test -n "$AWK"; then
1845  echo "$as_me:$LINENO: result: $AWK" >&5
1846echo "${ECHO_T}$AWK" >&6
1847else
1848  echo "$as_me:$LINENO: result: no" >&5
1849echo "${ECHO_T}no" >&6
1850fi
1851
1852  test -n "$AWK" && break
1853done
1854
1855echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1856echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1857set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1858if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1859  echo $ECHO_N "(cached) $ECHO_C" >&6
1860else
1861  cat >conftest.make <<\_ACEOF
1862all:
1863	@echo 'ac_maketemp="$(MAKE)"'
1864_ACEOF
1865# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1866eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1867if test -n "$ac_maketemp"; then
1868  eval ac_cv_prog_make_${ac_make}_set=yes
1869else
1870  eval ac_cv_prog_make_${ac_make}_set=no
1871fi
1872rm -f conftest.make
1873fi
1874if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1875  echo "$as_me:$LINENO: result: yes" >&5
1876echo "${ECHO_T}yes" >&6
1877  SET_MAKE=
1878else
1879  echo "$as_me:$LINENO: result: no" >&5
1880echo "${ECHO_T}no" >&6
1881  SET_MAKE="MAKE=${MAKE-make}"
1882fi
1883
1884rm -rf .tst 2>/dev/null
1885mkdir .tst 2>/dev/null
1886if test -d .tst; then
1887  am__leading_dot=.
1888else
1889  am__leading_dot=_
1890fi
1891rmdir .tst 2>/dev/null
1892
1893# test to see if srcdir already configured
1894if test "`cd $srcdir && pwd`" != "`pwd`" &&
1895   test -f $srcdir/config.status; then
1896  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1897echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1898   { (exit 1); exit 1; }; }
1899fi
1900
1901# test whether we have cygpath
1902if test -z "$CYGPATH_W"; then
1903  if (cygpath --version) >/dev/null 2>/dev/null; then
1904    CYGPATH_W='cygpath -w'
1905  else
1906    CYGPATH_W=echo
1907  fi
1908fi
1909
1910
1911# Define the identity of the package.
1912 PACKAGE='libtranslate'
1913 VERSION='0.99'
1914
1915
1916cat >>confdefs.h <<_ACEOF
1917#define PACKAGE "$PACKAGE"
1918_ACEOF
1919
1920
1921cat >>confdefs.h <<_ACEOF
1922#define VERSION "$VERSION"
1923_ACEOF
1924
1925# Some tools Automake needs.
1926
1927ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1928
1929
1930AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1931
1932
1933AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1934
1935
1936AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1937
1938
1939MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1940
1941install_sh=${install_sh-"$am_aux_dir/install-sh"}
1942
1943# Installed binaries are usually stripped using `strip' when the user
1944# run `make install-strip'.  However `strip' might not be the right
1945# tool to use in cross-compilation environments, therefore Automake
1946# will honor the `STRIP' environment variable to overrule this program.
1947if test "$cross_compiling" != no; then
1948  if test -n "$ac_tool_prefix"; then
1949  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1950set dummy ${ac_tool_prefix}strip; ac_word=$2
1951echo "$as_me:$LINENO: checking for $ac_word" >&5
1952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953if test "${ac_cv_prog_STRIP+set}" = set; then
1954  echo $ECHO_N "(cached) $ECHO_C" >&6
1955else
1956  if test -n "$STRIP"; then
1957  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1958else
1959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960for as_dir in $PATH
1961do
1962  IFS=$as_save_IFS
1963  test -z "$as_dir" && as_dir=.
1964  for ac_exec_ext in '' $ac_executable_extensions; do
1965  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1967    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1968    break 2
1969  fi
1970done
1971done
1972
1973fi
1974fi
1975STRIP=$ac_cv_prog_STRIP
1976if test -n "$STRIP"; then
1977  echo "$as_me:$LINENO: result: $STRIP" >&5
1978echo "${ECHO_T}$STRIP" >&6
1979else
1980  echo "$as_me:$LINENO: result: no" >&5
1981echo "${ECHO_T}no" >&6
1982fi
1983
1984fi
1985if test -z "$ac_cv_prog_STRIP"; then
1986  ac_ct_STRIP=$STRIP
1987  # Extract the first word of "strip", so it can be a program name with args.
1988set dummy strip; ac_word=$2
1989echo "$as_me:$LINENO: checking for $ac_word" >&5
1990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1992  echo $ECHO_N "(cached) $ECHO_C" >&6
1993else
1994  if test -n "$ac_ct_STRIP"; then
1995  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1996else
1997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998for as_dir in $PATH
1999do
2000  IFS=$as_save_IFS
2001  test -z "$as_dir" && as_dir=.
2002  for ac_exec_ext in '' $ac_executable_extensions; do
2003  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004    ac_cv_prog_ac_ct_STRIP="strip"
2005    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006    break 2
2007  fi
2008done
2009done
2010
2011  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2012fi
2013fi
2014ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2015if test -n "$ac_ct_STRIP"; then
2016  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2017echo "${ECHO_T}$ac_ct_STRIP" >&6
2018else
2019  echo "$as_me:$LINENO: result: no" >&5
2020echo "${ECHO_T}no" >&6
2021fi
2022
2023  STRIP=$ac_ct_STRIP
2024else
2025  STRIP="$ac_cv_prog_STRIP"
2026fi
2027
2028fi
2029INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2030
2031# We need awk for the "check" target.  The system "awk" is bad on
2032# some platforms.
2033# Always define AMTAR for backward compatibility.
2034
2035AMTAR=${AMTAR-"${am_missing_run}tar"}
2036
2037am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2038
2039
2040
2041
2042
2043echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2044echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2045    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2046if test "${enable_maintainer_mode+set}" = set; then
2047  enableval="$enable_maintainer_mode"
2048  USE_MAINTAINER_MODE=$enableval
2049else
2050  USE_MAINTAINER_MODE=no
2051fi;
2052  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2053echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2054
2055
2056if test $USE_MAINTAINER_MODE = yes; then
2057  MAINTAINER_MODE_TRUE=
2058  MAINTAINER_MODE_FALSE='#'
2059else
2060  MAINTAINER_MODE_TRUE='#'
2061  MAINTAINER_MODE_FALSE=
2062fi
2063
2064  MAINT=$MAINTAINER_MODE_TRUE
2065
2066
2067          ac_config_headers="$ac_config_headers config.h"
2068
2069# Check whether --enable-shared or --disable-shared was given.
2070if test "${enable_shared+set}" = set; then
2071  enableval="$enable_shared"
2072  p=${PACKAGE-default}
2073    case $enableval in
2074    yes) enable_shared=yes ;;
2075    no) enable_shared=no ;;
2076    *)
2077      enable_shared=no
2078      # Look at the argument we got.  We use all the common list separators.
2079      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2080      for pkg in $enableval; do
2081	IFS="$lt_save_ifs"
2082	if test "X$pkg" = "X$p"; then
2083	  enable_shared=yes
2084	fi
2085      done
2086      IFS="$lt_save_ifs"
2087      ;;
2088    esac
2089else
2090  enable_shared=yes
2091fi;
2092
2093# Check whether --enable-static or --disable-static was given.
2094if test "${enable_static+set}" = set; then
2095  enableval="$enable_static"
2096  p=${PACKAGE-default}
2097    case $enableval in
2098    yes) enable_static=yes ;;
2099    no) enable_static=no ;;
2100    *)
2101     enable_static=no
2102      # Look at the argument we got.  We use all the common list separators.
2103      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2104      for pkg in $enableval; do
2105	IFS="$lt_save_ifs"
2106	if test "X$pkg" = "X$p"; then
2107	  enable_static=yes
2108	fi
2109      done
2110      IFS="$lt_save_ifs"
2111      ;;
2112    esac
2113else
2114  enable_static=yes
2115fi;
2116
2117# Check whether --enable-fast-install or --disable-fast-install was given.
2118if test "${enable_fast_install+set}" = set; then
2119  enableval="$enable_fast_install"
2120  p=${PACKAGE-default}
2121    case $enableval in
2122    yes) enable_fast_install=yes ;;
2123    no) enable_fast_install=no ;;
2124    *)
2125      enable_fast_install=no
2126      # Look at the argument we got.  We use all the common list separators.
2127      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2128      for pkg in $enableval; do
2129	IFS="$lt_save_ifs"
2130	if test "X$pkg" = "X$p"; then
2131	  enable_fast_install=yes
2132	fi
2133      done
2134      IFS="$lt_save_ifs"
2135      ;;
2136    esac
2137else
2138  enable_fast_install=yes
2139fi;
2140
2141# Make sure we can run config.sub.
2142$ac_config_sub sun4 >/dev/null 2>&1 ||
2143  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2144echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2145   { (exit 1); exit 1; }; }
2146
2147echo "$as_me:$LINENO: checking build system type" >&5
2148echo $ECHO_N "checking build system type... $ECHO_C" >&6
2149if test "${ac_cv_build+set}" = set; then
2150  echo $ECHO_N "(cached) $ECHO_C" >&6
2151else
2152  ac_cv_build_alias=$build_alias
2153test -z "$ac_cv_build_alias" &&
2154  ac_cv_build_alias=`$ac_config_guess`
2155test -z "$ac_cv_build_alias" &&
2156  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2157echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2158   { (exit 1); exit 1; }; }
2159ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2160  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2161echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2162   { (exit 1); exit 1; }; }
2163
2164fi
2165echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2166echo "${ECHO_T}$ac_cv_build" >&6
2167build=$ac_cv_build
2168build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2169build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2170build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2171
2172
2173echo "$as_me:$LINENO: checking host system type" >&5
2174echo $ECHO_N "checking host system type... $ECHO_C" >&6
2175if test "${ac_cv_host+set}" = set; then
2176  echo $ECHO_N "(cached) $ECHO_C" >&6
2177else
2178  ac_cv_host_alias=$host_alias
2179test -z "$ac_cv_host_alias" &&
2180  ac_cv_host_alias=$ac_cv_build_alias
2181ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2182  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2183echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2184   { (exit 1); exit 1; }; }
2185
2186fi
2187echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2188echo "${ECHO_T}$ac_cv_host" >&6
2189host=$ac_cv_host
2190host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2191host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2192host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2193
2194
2195DEPDIR="${am__leading_dot}deps"
2196
2197          ac_config_commands="$ac_config_commands depfiles"
2198
2199
2200am_make=${MAKE-make}
2201cat > confinc << 'END'
2202am__doit:
2203	@echo done
2204.PHONY: am__doit
2205END
2206# If we don't find an include directive, just comment out the code.
2207echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2208echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2209am__include="#"
2210am__quote=
2211_am_result=none
2212# First try GNU make style include.
2213echo "include confinc" > confmf
2214# We grep out `Entering directory' and `Leaving directory'
2215# messages which can occur if `w' ends up in MAKEFLAGS.
2216# In particular we don't look at `^make:' because GNU make might
2217# be invoked under some other name (usually "gmake"), in which
2218# case it prints its new name instead of `make'.
2219if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2220   am__include=include
2221   am__quote=
2222   _am_result=GNU
2223fi
2224# Now try BSD make style include.
2225if test "$am__include" = "#"; then
2226   echo '.include "confinc"' > confmf
2227   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2228      am__include=.include
2229      am__quote="\""
2230      _am_result=BSD
2231   fi
2232fi
2233
2234
2235echo "$as_me:$LINENO: result: $_am_result" >&5
2236echo "${ECHO_T}$_am_result" >&6
2237rm -f confinc confmf
2238
2239# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2240if test "${enable_dependency_tracking+set}" = set; then
2241  enableval="$enable_dependency_tracking"
2242
2243fi;
2244if test "x$enable_dependency_tracking" != xno; then
2245  am_depcomp="$ac_aux_dir/depcomp"
2246  AMDEPBACKSLASH='\'
2247fi
2248
2249
2250if test "x$enable_dependency_tracking" != xno; then
2251  AMDEP_TRUE=
2252  AMDEP_FALSE='#'
2253else
2254  AMDEP_TRUE='#'
2255  AMDEP_FALSE=
2256fi
2257
2258
2259
2260ac_ext=c
2261ac_cpp='$CPP $CPPFLAGS'
2262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2264ac_compiler_gnu=$ac_cv_c_compiler_gnu
2265if test -n "$ac_tool_prefix"; then
2266  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2267set dummy ${ac_tool_prefix}gcc; ac_word=$2
2268echo "$as_me:$LINENO: checking for $ac_word" >&5
2269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2270if test "${ac_cv_prog_CC+set}" = set; then
2271  echo $ECHO_N "(cached) $ECHO_C" >&6
2272else
2273  if test -n "$CC"; then
2274  ac_cv_prog_CC="$CC" # Let the user override the test.
2275else
2276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277for as_dir in $PATH
2278do
2279  IFS=$as_save_IFS
2280  test -z "$as_dir" && as_dir=.
2281  for ac_exec_ext in '' $ac_executable_extensions; do
2282  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2283    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2284    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285    break 2
2286  fi
2287done
2288done
2289
2290fi
2291fi
2292CC=$ac_cv_prog_CC
2293if test -n "$CC"; then
2294  echo "$as_me:$LINENO: result: $CC" >&5
2295echo "${ECHO_T}$CC" >&6
2296else
2297  echo "$as_me:$LINENO: result: no" >&5
2298echo "${ECHO_T}no" >&6
2299fi
2300
2301fi
2302if test -z "$ac_cv_prog_CC"; then
2303  ac_ct_CC=$CC
2304  # Extract the first word of "gcc", so it can be a program name with args.
2305set dummy gcc; ac_word=$2
2306echo "$as_me:$LINENO: checking for $ac_word" >&5
2307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2308if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2309  echo $ECHO_N "(cached) $ECHO_C" >&6
2310else
2311  if test -n "$ac_ct_CC"; then
2312  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2313else
2314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315for as_dir in $PATH
2316do
2317  IFS=$as_save_IFS
2318  test -z "$as_dir" && as_dir=.
2319  for ac_exec_ext in '' $ac_executable_extensions; do
2320  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2321    ac_cv_prog_ac_ct_CC="gcc"
2322    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323    break 2
2324  fi
2325done
2326done
2327
2328fi
2329fi
2330ac_ct_CC=$ac_cv_prog_ac_ct_CC
2331if test -n "$ac_ct_CC"; then
2332  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2333echo "${ECHO_T}$ac_ct_CC" >&6
2334else
2335  echo "$as_me:$LINENO: result: no" >&5
2336echo "${ECHO_T}no" >&6
2337fi
2338
2339  CC=$ac_ct_CC
2340else
2341  CC="$ac_cv_prog_CC"
2342fi
2343
2344if test -z "$CC"; then
2345  if test -n "$ac_tool_prefix"; then
2346  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2347set dummy ${ac_tool_prefix}cc; ac_word=$2
2348echo "$as_me:$LINENO: checking for $ac_word" >&5
2349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2350if test "${ac_cv_prog_CC+set}" = set; then
2351  echo $ECHO_N "(cached) $ECHO_C" >&6
2352else
2353  if test -n "$CC"; then
2354  ac_cv_prog_CC="$CC" # Let the user override the test.
2355else
2356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357for as_dir in $PATH
2358do
2359  IFS=$as_save_IFS
2360  test -z "$as_dir" && as_dir=.
2361  for ac_exec_ext in '' $ac_executable_extensions; do
2362  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2363    ac_cv_prog_CC="${ac_tool_prefix}cc"
2364    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365    break 2
2366  fi
2367done
2368done
2369
2370fi
2371fi
2372CC=$ac_cv_prog_CC
2373if test -n "$CC"; then
2374  echo "$as_me:$LINENO: result: $CC" >&5
2375echo "${ECHO_T}$CC" >&6
2376else
2377  echo "$as_me:$LINENO: result: no" >&5
2378echo "${ECHO_T}no" >&6
2379fi
2380
2381fi
2382if test -z "$ac_cv_prog_CC"; then
2383  ac_ct_CC=$CC
2384  # Extract the first word of "cc", so it can be a program name with args.
2385set dummy cc; ac_word=$2
2386echo "$as_me:$LINENO: checking for $ac_word" >&5
2387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2388if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2389  echo $ECHO_N "(cached) $ECHO_C" >&6
2390else
2391  if test -n "$ac_ct_CC"; then
2392  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2393else
2394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395for as_dir in $PATH
2396do
2397  IFS=$as_save_IFS
2398  test -z "$as_dir" && as_dir=.
2399  for ac_exec_ext in '' $ac_executable_extensions; do
2400  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2401    ac_cv_prog_ac_ct_CC="cc"
2402    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403    break 2
2404  fi
2405done
2406done
2407
2408fi
2409fi
2410ac_ct_CC=$ac_cv_prog_ac_ct_CC
2411if test -n "$ac_ct_CC"; then
2412  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2413echo "${ECHO_T}$ac_ct_CC" >&6
2414else
2415  echo "$as_me:$LINENO: result: no" >&5
2416echo "${ECHO_T}no" >&6
2417fi
2418
2419  CC=$ac_ct_CC
2420else
2421  CC="$ac_cv_prog_CC"
2422fi
2423
2424fi
2425if test -z "$CC"; then
2426  # Extract the first word of "cc", so it can be a program name with args.
2427set dummy cc; ac_word=$2
2428echo "$as_me:$LINENO: checking for $ac_word" >&5
2429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2430if test "${ac_cv_prog_CC+set}" = set; then
2431  echo $ECHO_N "(cached) $ECHO_C" >&6
2432else
2433  if test -n "$CC"; then
2434  ac_cv_prog_CC="$CC" # Let the user override the test.
2435else
2436  ac_prog_rejected=no
2437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438for as_dir in $PATH
2439do
2440  IFS=$as_save_IFS
2441  test -z "$as_dir" && as_dir=.
2442  for ac_exec_ext in '' $ac_executable_extensions; do
2443  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2445       ac_prog_rejected=yes
2446       continue
2447     fi
2448    ac_cv_prog_CC="cc"
2449    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450    break 2
2451  fi
2452done
2453done
2454
2455if test $ac_prog_rejected = yes; then
2456  # We found a bogon in the path, so make sure we never use it.
2457  set dummy $ac_cv_prog_CC
2458  shift
2459  if test $# != 0; then
2460    # We chose a different compiler from the bogus one.
2461    # However, it has the same basename, so the bogon will be chosen
2462    # first if we set CC to just the basename; use the full file name.
2463    shift
2464    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2465  fi
2466fi
2467fi
2468fi
2469CC=$ac_cv_prog_CC
2470if test -n "$CC"; then
2471  echo "$as_me:$LINENO: result: $CC" >&5
2472echo "${ECHO_T}$CC" >&6
2473else
2474  echo "$as_me:$LINENO: result: no" >&5
2475echo "${ECHO_T}no" >&6
2476fi
2477
2478fi
2479if test -z "$CC"; then
2480  if test -n "$ac_tool_prefix"; then
2481  for ac_prog in cl
2482  do
2483    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2484set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2485echo "$as_me:$LINENO: checking for $ac_word" >&5
2486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2487if test "${ac_cv_prog_CC+set}" = set; then
2488  echo $ECHO_N "(cached) $ECHO_C" >&6
2489else
2490  if test -n "$CC"; then
2491  ac_cv_prog_CC="$CC" # Let the user override the test.
2492else
2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494for as_dir in $PATH
2495do
2496  IFS=$as_save_IFS
2497  test -z "$as_dir" && as_dir=.
2498  for ac_exec_ext in '' $ac_executable_extensions; do
2499  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2500    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2501    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502    break 2
2503  fi
2504done
2505done
2506
2507fi
2508fi
2509CC=$ac_cv_prog_CC
2510if test -n "$CC"; then
2511  echo "$as_me:$LINENO: result: $CC" >&5
2512echo "${ECHO_T}$CC" >&6
2513else
2514  echo "$as_me:$LINENO: result: no" >&5
2515echo "${ECHO_T}no" >&6
2516fi
2517
2518    test -n "$CC" && break
2519  done
2520fi
2521if test -z "$CC"; then
2522  ac_ct_CC=$CC
2523  for ac_prog in cl
2524do
2525  # Extract the first word of "$ac_prog", so it can be a program name with args.
2526set dummy $ac_prog; ac_word=$2
2527echo "$as_me:$LINENO: checking for $ac_word" >&5
2528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2529if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2530  echo $ECHO_N "(cached) $ECHO_C" >&6
2531else
2532  if test -n "$ac_ct_CC"; then
2533  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2534else
2535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536for as_dir in $PATH
2537do
2538  IFS=$as_save_IFS
2539  test -z "$as_dir" && as_dir=.
2540  for ac_exec_ext in '' $ac_executable_extensions; do
2541  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2542    ac_cv_prog_ac_ct_CC="$ac_prog"
2543    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544    break 2
2545  fi
2546done
2547done
2548
2549fi
2550fi
2551ac_ct_CC=$ac_cv_prog_ac_ct_CC
2552if test -n "$ac_ct_CC"; then
2553  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2554echo "${ECHO_T}$ac_ct_CC" >&6
2555else
2556  echo "$as_me:$LINENO: result: no" >&5
2557echo "${ECHO_T}no" >&6
2558fi
2559
2560  test -n "$ac_ct_CC" && break
2561done
2562
2563  CC=$ac_ct_CC
2564fi
2565
2566fi
2567
2568
2569test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2570See \`config.log' for more details." >&5
2571echo "$as_me: error: no acceptable C compiler found in \$PATH
2572See \`config.log' for more details." >&2;}
2573   { (exit 1); exit 1; }; }
2574
2575# Provide some information about the compiler.
2576echo "$as_me:$LINENO:" \
2577     "checking for C compiler version" >&5
2578ac_compiler=`set X $ac_compile; echo $2`
2579{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2580  (eval $ac_compiler --version </dev/null >&5) 2>&5
2581  ac_status=$?
2582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583  (exit $ac_status); }
2584{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2585  (eval $ac_compiler -v </dev/null >&5) 2>&5
2586  ac_status=$?
2587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588  (exit $ac_status); }
2589{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2590  (eval $ac_compiler -V </dev/null >&5) 2>&5
2591  ac_status=$?
2592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593  (exit $ac_status); }
2594
2595cat >conftest.$ac_ext <<_ACEOF
2596/* confdefs.h.  */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h.  */
2601
2602int
2603main ()
2604{
2605
2606  ;
2607  return 0;
2608}
2609_ACEOF
2610ac_clean_files_save=$ac_clean_files
2611ac_clean_files="$ac_clean_files a.out a.exe b.out"
2612# Try to create an executable without -o first, disregard a.out.
2613# It will help us diagnose broken compilers, and finding out an intuition
2614# of exeext.
2615echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2616echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2617ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2618if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2619  (eval $ac_link_default) 2>&5
2620  ac_status=$?
2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622  (exit $ac_status); }; then
2623  # Find the output, starting from the most likely.  This scheme is
2624# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2625# resort.
2626
2627# Be careful to initialize this variable, since it used to be cached.
2628# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2629ac_cv_exeext=
2630# b.out is created by i960 compilers.
2631for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2632do
2633  test -f "$ac_file" || continue
2634  case $ac_file in
2635    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2636	;;
2637    conftest.$ac_ext )
2638	# This is the source file.
2639	;;
2640    [ab].out )
2641	# We found the default executable, but exeext='' is most
2642	# certainly right.
2643	break;;
2644    *.* )
2645	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2646	# FIXME: I believe we export ac_cv_exeext for Libtool,
2647	# but it would be cool to find out if it's true.  Does anybody
2648	# maintain Libtool? --akim.
2649	export ac_cv_exeext
2650	break;;
2651    * )
2652	break;;
2653  esac
2654done
2655else
2656  echo "$as_me: failed program was:" >&5
2657sed 's/^/| /' conftest.$ac_ext >&5
2658
2659{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2660See \`config.log' for more details." >&5
2661echo "$as_me: error: C compiler cannot create executables
2662See \`config.log' for more details." >&2;}
2663   { (exit 77); exit 77; }; }
2664fi
2665
2666ac_exeext=$ac_cv_exeext
2667echo "$as_me:$LINENO: result: $ac_file" >&5
2668echo "${ECHO_T}$ac_file" >&6
2669
2670# Check the compiler produces executables we can run.  If not, either
2671# the compiler is broken, or we cross compile.
2672echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2673echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2674# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2675# If not cross compiling, check that we can run a simple program.
2676if test "$cross_compiling" != yes; then
2677  if { ac_try='./$ac_file'
2678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679  (eval $ac_try) 2>&5
2680  ac_status=$?
2681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682  (exit $ac_status); }; }; then
2683    cross_compiling=no
2684  else
2685    if test "$cross_compiling" = maybe; then
2686	cross_compiling=yes
2687    else
2688	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2689If you meant to cross compile, use \`--host'.
2690See \`config.log' for more details." >&5
2691echo "$as_me: error: cannot run C compiled programs.
2692If you meant to cross compile, use \`--host'.
2693See \`config.log' for more details." >&2;}
2694   { (exit 1); exit 1; }; }
2695    fi
2696  fi
2697fi
2698echo "$as_me:$LINENO: result: yes" >&5
2699echo "${ECHO_T}yes" >&6
2700
2701rm -f a.out a.exe conftest$ac_cv_exeext b.out
2702ac_clean_files=$ac_clean_files_save
2703# Check the compiler produces executables we can run.  If not, either
2704# the compiler is broken, or we cross compile.
2705echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2706echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2707echo "$as_me:$LINENO: result: $cross_compiling" >&5
2708echo "${ECHO_T}$cross_compiling" >&6
2709
2710echo "$as_me:$LINENO: checking for suffix of executables" >&5
2711echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2713  (eval $ac_link) 2>&5
2714  ac_status=$?
2715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716  (exit $ac_status); }; then
2717  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2718# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2719# work properly (i.e., refer to `conftest.exe'), while it won't with
2720# `rm'.
2721for ac_file in conftest.exe conftest conftest.*; do
2722  test -f "$ac_file" || continue
2723  case $ac_file in
2724    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2725    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2726	  export ac_cv_exeext
2727	  break;;
2728    * ) break;;
2729  esac
2730done
2731else
2732  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2733See \`config.log' for more details." >&5
2734echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2735See \`config.log' for more details." >&2;}
2736   { (exit 1); exit 1; }; }
2737fi
2738
2739rm -f conftest$ac_cv_exeext
2740echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2741echo "${ECHO_T}$ac_cv_exeext" >&6
2742
2743rm -f conftest.$ac_ext
2744EXEEXT=$ac_cv_exeext
2745ac_exeext=$EXEEXT
2746echo "$as_me:$LINENO: checking for suffix of object files" >&5
2747echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2748if test "${ac_cv_objext+set}" = set; then
2749  echo $ECHO_N "(cached) $ECHO_C" >&6
2750else
2751  cat >conftest.$ac_ext <<_ACEOF
2752/* confdefs.h.  */
2753_ACEOF
2754cat confdefs.h >>conftest.$ac_ext
2755cat >>conftest.$ac_ext <<_ACEOF
2756/* end confdefs.h.  */
2757
2758int
2759main ()
2760{
2761
2762  ;
2763  return 0;
2764}
2765_ACEOF
2766rm -f conftest.o conftest.obj
2767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768  (eval $ac_compile) 2>&5
2769  ac_status=$?
2770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771  (exit $ac_status); }; then
2772  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2773  case $ac_file in
2774    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2775    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2776       break;;
2777  esac
2778done
2779else
2780  echo "$as_me: failed program was:" >&5
2781sed 's/^/| /' conftest.$ac_ext >&5
2782
2783{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2784See \`config.log' for more details." >&5
2785echo "$as_me: error: cannot compute suffix of object files: cannot compile
2786See \`config.log' for more details." >&2;}
2787   { (exit 1); exit 1; }; }
2788fi
2789
2790rm -f conftest.$ac_cv_objext conftest.$ac_ext
2791fi
2792echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2793echo "${ECHO_T}$ac_cv_objext" >&6
2794OBJEXT=$ac_cv_objext
2795ac_objext=$OBJEXT
2796echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2797echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2798if test "${ac_cv_c_compiler_gnu+set}" = set; then
2799  echo $ECHO_N "(cached) $ECHO_C" >&6
2800else
2801  cat >conftest.$ac_ext <<_ACEOF
2802/* confdefs.h.  */
2803_ACEOF
2804cat confdefs.h >>conftest.$ac_ext
2805cat >>conftest.$ac_ext <<_ACEOF
2806/* end confdefs.h.  */
2807
2808int
2809main ()
2810{
2811#ifndef __GNUC__
2812       choke me
2813#endif
2814
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  ac_compiler_gnu=yes
2842else
2843  echo "$as_me: failed program was:" >&5
2844sed 's/^/| /' conftest.$ac_ext >&5
2845
2846ac_compiler_gnu=no
2847fi
2848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2849ac_cv_c_compiler_gnu=$ac_compiler_gnu
2850
2851fi
2852echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2853echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2854GCC=`test $ac_compiler_gnu = yes && echo yes`
2855ac_test_CFLAGS=${CFLAGS+set}
2856ac_save_CFLAGS=$CFLAGS
2857CFLAGS="-g"
2858echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2859echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2860if test "${ac_cv_prog_cc_g+set}" = set; then
2861  echo $ECHO_N "(cached) $ECHO_C" >&6
2862else
2863  cat >conftest.$ac_ext <<_ACEOF
2864/* confdefs.h.  */
2865_ACEOF
2866cat confdefs.h >>conftest.$ac_ext
2867cat >>conftest.$ac_ext <<_ACEOF
2868/* end confdefs.h.  */
2869
2870int
2871main ()
2872{
2873
2874  ;
2875  return 0;
2876}
2877_ACEOF
2878rm -f conftest.$ac_objext
2879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880  (eval $ac_compile) 2>conftest.er1
2881  ac_status=$?
2882  grep -v '^ *+' conftest.er1 >conftest.err
2883  rm -f conftest.er1
2884  cat conftest.err >&5
2885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886  (exit $ac_status); } &&
2887	 { ac_try='test -z "$ac_c_werror_flag"
2888			 || test ! -s conftest.err'
2889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890  (eval $ac_try) 2>&5
2891  ac_status=$?
2892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893  (exit $ac_status); }; } &&
2894	 { ac_try='test -s conftest.$ac_objext'
2895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896  (eval $ac_try) 2>&5
2897  ac_status=$?
2898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899  (exit $ac_status); }; }; then
2900  ac_cv_prog_cc_g=yes
2901else
2902  echo "$as_me: failed program was:" >&5
2903sed 's/^/| /' conftest.$ac_ext >&5
2904
2905ac_cv_prog_cc_g=no
2906fi
2907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2908fi
2909echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2910echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2911if test "$ac_test_CFLAGS" = set; then
2912  CFLAGS=$ac_save_CFLAGS
2913elif test $ac_cv_prog_cc_g = yes; then
2914  if test "$GCC" = yes; then
2915    CFLAGS="-g -O2"
2916  else
2917    CFLAGS="-g"
2918  fi
2919else
2920  if test "$GCC" = yes; then
2921    CFLAGS="-O2"
2922  else
2923    CFLAGS=
2924  fi
2925fi
2926echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2927echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2928if test "${ac_cv_prog_cc_stdc+set}" = set; then
2929  echo $ECHO_N "(cached) $ECHO_C" >&6
2930else
2931  ac_cv_prog_cc_stdc=no
2932ac_save_CC=$CC
2933cat >conftest.$ac_ext <<_ACEOF
2934/* confdefs.h.  */
2935_ACEOF
2936cat confdefs.h >>conftest.$ac_ext
2937cat >>conftest.$ac_ext <<_ACEOF
2938/* end confdefs.h.  */
2939#include <stdarg.h>
2940#include <stdio.h>
2941#include <sys/types.h>
2942#include <sys/stat.h>
2943/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2944struct buf { int x; };
2945FILE * (*rcsopen) (struct buf *, struct stat *, int);
2946static char *e (p, i)
2947     char **p;
2948     int i;
2949{
2950  return p[i];
2951}
2952static char *f (char * (*g) (char **, int), char **p, ...)
2953{
2954  char *s;
2955  va_list v;
2956  va_start (v,p);
2957  s = g (p, va_arg (v,int));
2958  va_end (v);
2959  return s;
2960}
2961
2962/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2963   function prototypes and stuff, but not '\xHH' hex character constants.
2964   These don't provoke an error unfortunately, instead are silently treated
2965   as 'x'.  The following induces an error, until -std1 is added to get
2966   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2967   array size at least.  It's necessary to write '\x00'==0 to get something
2968   that's true only with -std1.  */
2969int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2970
2971int test (int i, double x);
2972struct s1 {int (*f) (int a);};
2973struct s2 {int (*f) (double a);};
2974int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2975int argc;
2976char **argv;
2977int
2978main ()
2979{
2980return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2981  ;
2982  return 0;
2983}
2984_ACEOF
2985# Don't try gcc -ansi; that turns off useful extensions and
2986# breaks some systems' header files.
2987# AIX			-qlanglvl=ansi
2988# Ultrix and OSF/1	-std1
2989# HP-UX 10.20 and later	-Ae
2990# HP-UX older versions	-Aa -D_HPUX_SOURCE
2991# SVR4			-Xc -D__EXTENSIONS__
2992for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2993do
2994  CC="$ac_save_CC $ac_arg"
2995  rm -f conftest.$ac_objext
2996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2997  (eval $ac_compile) 2>conftest.er1
2998  ac_status=$?
2999  grep -v '^ *+' conftest.er1 >conftest.err
3000  rm -f conftest.er1
3001  cat conftest.err >&5
3002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003  (exit $ac_status); } &&
3004	 { ac_try='test -z "$ac_c_werror_flag"
3005			 || test ! -s conftest.err'
3006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007  (eval $ac_try) 2>&5
3008  ac_status=$?
3009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010  (exit $ac_status); }; } &&
3011	 { ac_try='test -s conftest.$ac_objext'
3012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013  (eval $ac_try) 2>&5
3014  ac_status=$?
3015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016  (exit $ac_status); }; }; then
3017  ac_cv_prog_cc_stdc=$ac_arg
3018break
3019else
3020  echo "$as_me: failed program was:" >&5
3021sed 's/^/| /' conftest.$ac_ext >&5
3022
3023fi
3024rm -f conftest.err conftest.$ac_objext
3025done
3026rm -f conftest.$ac_ext conftest.$ac_objext
3027CC=$ac_save_CC
3028
3029fi
3030
3031case "x$ac_cv_prog_cc_stdc" in
3032  x|xno)
3033    echo "$as_me:$LINENO: result: none needed" >&5
3034echo "${ECHO_T}none needed" >&6 ;;
3035  *)
3036    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3037echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3038    CC="$CC $ac_cv_prog_cc_stdc" ;;
3039esac
3040
3041# Some people use a C++ compiler to compile C.  Since we use `exit',
3042# in C++ we need to declare it.  In case someone uses the same compiler
3043# for both compiling C and C++ we need to have the C++ compiler decide
3044# the declaration of exit, since it's the most demanding environment.
3045cat >conftest.$ac_ext <<_ACEOF
3046#ifndef __cplusplus
3047  choke me
3048#endif
3049_ACEOF
3050rm -f conftest.$ac_objext
3051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3052  (eval $ac_compile) 2>conftest.er1
3053  ac_status=$?
3054  grep -v '^ *+' conftest.er1 >conftest.err
3055  rm -f conftest.er1
3056  cat conftest.err >&5
3057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058  (exit $ac_status); } &&
3059	 { ac_try='test -z "$ac_c_werror_flag"
3060			 || test ! -s conftest.err'
3061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062  (eval $ac_try) 2>&5
3063  ac_status=$?
3064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065  (exit $ac_status); }; } &&
3066	 { ac_try='test -s conftest.$ac_objext'
3067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068  (eval $ac_try) 2>&5
3069  ac_status=$?
3070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071  (exit $ac_status); }; }; then
3072  for ac_declaration in \
3073   '' \
3074   'extern "C" void std::exit (int) throw (); using std::exit;' \
3075   'extern "C" void std::exit (int); using std::exit;' \
3076   'extern "C" void exit (int) throw ();' \
3077   'extern "C" void exit (int);' \
3078   'void exit (int);'
3079do
3080  cat >conftest.$ac_ext <<_ACEOF
3081/* confdefs.h.  */
3082_ACEOF
3083cat confdefs.h >>conftest.$ac_ext
3084cat >>conftest.$ac_ext <<_ACEOF
3085/* end confdefs.h.  */
3086$ac_declaration
3087#include <stdlib.h>
3088int
3089main ()
3090{
3091exit (42);
3092  ;
3093  return 0;
3094}
3095_ACEOF
3096rm -f conftest.$ac_objext
3097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3098  (eval $ac_compile) 2>conftest.er1
3099  ac_status=$?
3100  grep -v '^ *+' conftest.er1 >conftest.err
3101  rm -f conftest.er1
3102  cat conftest.err >&5
3103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104  (exit $ac_status); } &&
3105	 { ac_try='test -z "$ac_c_werror_flag"
3106			 || test ! -s conftest.err'
3107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108  (eval $ac_try) 2>&5
3109  ac_status=$?
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); }; } &&
3112	 { ac_try='test -s conftest.$ac_objext'
3113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114  (eval $ac_try) 2>&5
3115  ac_status=$?
3116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117  (exit $ac_status); }; }; then
3118  :
3119else
3120  echo "$as_me: failed program was:" >&5
3121sed 's/^/| /' conftest.$ac_ext >&5
3122
3123continue
3124fi
3125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3126  cat >conftest.$ac_ext <<_ACEOF
3127/* confdefs.h.  */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
3131/* end confdefs.h.  */
3132$ac_declaration
3133int
3134main ()
3135{
3136exit (42);
3137  ;
3138  return 0;
3139}
3140_ACEOF
3141rm -f conftest.$ac_objext
3142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3143  (eval $ac_compile) 2>conftest.er1
3144  ac_status=$?
3145  grep -v '^ *+' conftest.er1 >conftest.err
3146  rm -f conftest.er1
3147  cat conftest.err >&5
3148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149  (exit $ac_status); } &&
3150	 { ac_try='test -z "$ac_c_werror_flag"
3151			 || test ! -s conftest.err'
3152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153  (eval $ac_try) 2>&5
3154  ac_status=$?
3155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156  (exit $ac_status); }; } &&
3157	 { ac_try='test -s conftest.$ac_objext'
3158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159  (eval $ac_try) 2>&5
3160  ac_status=$?
3161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162  (exit $ac_status); }; }; then
3163  break
3164else
3165  echo "$as_me: failed program was:" >&5
3166sed 's/^/| /' conftest.$ac_ext >&5
3167
3168fi
3169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3170done
3171rm -f conftest*
3172if test -n "$ac_declaration"; then
3173  echo '#ifdef __cplusplus' >>confdefs.h
3174  echo $ac_declaration      >>confdefs.h
3175  echo '#endif'             >>confdefs.h
3176fi
3177
3178else
3179  echo "$as_me: failed program was:" >&5
3180sed 's/^/| /' conftest.$ac_ext >&5
3181
3182fi
3183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3184ac_ext=c
3185ac_cpp='$CPP $CPPFLAGS'
3186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189
3190depcc="$CC"   am_compiler_list=
3191
3192echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3193echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3194if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3195  echo $ECHO_N "(cached) $ECHO_C" >&6
3196else
3197  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3198  # We make a subdir and do the tests there.  Otherwise we can end up
3199  # making bogus files that we don't know about and never remove.  For
3200  # instance it was reported that on HP-UX the gcc test will end up
3201  # making a dummy file named `D' -- because `-MD' means `put the output
3202  # in D'.
3203  mkdir conftest.dir
3204  # Copy depcomp to subdir because otherwise we won't find it if we're
3205  # using a relative directory.
3206  cp "$am_depcomp" conftest.dir
3207  cd conftest.dir
3208  # We will build objects and dependencies in a subdirectory because
3209  # it helps to detect inapplicable dependency modes.  For instance
3210  # both Tru64's cc and ICC support -MD to output dependencies as a
3211  # side effect of compilation, but ICC will put the dependencies in
3212  # the current directory while Tru64 will put them in the object
3213  # directory.
3214  mkdir sub
3215
3216  am_cv_CC_dependencies_compiler_type=none
3217  if test "$am_compiler_list" = ""; then
3218     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3219  fi
3220  for depmode in $am_compiler_list; do
3221    # Setup a source with many dependencies, because some compilers
3222    # like to wrap large dependency lists on column 80 (with \), and
3223    # we should not choose a depcomp mode which is confused by this.
3224    #
3225    # We need to recreate these files for each test, as the compiler may
3226    # overwrite some of them when testing with obscure command lines.
3227    # This happens at least with the AIX C compiler.
3228    : > sub/conftest.c
3229    for i in 1 2 3 4 5 6; do
3230      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3231      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3232      # Solaris 8's {/usr,}/bin/sh.
3233      touch sub/conftst$i.h
3234    done
3235    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3236
3237    case $depmode in
3238    nosideeffect)
3239      # after this tag, mechanisms are not by side-effect, so they'll
3240      # only be used when explicitly requested
3241      if test "x$enable_dependency_tracking" = xyes; then
3242	continue
3243      else
3244	break
3245      fi
3246      ;;
3247    none) break ;;
3248    esac
3249    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3250    # mode.  It turns out that the SunPro C++ compiler does not properly
3251    # handle `-M -o', and we need to detect this.
3252    if depmode=$depmode \
3253       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3254       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3255       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3256         >/dev/null 2>conftest.err &&
3257       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3258       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3259       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3260      # icc doesn't choke on unknown options, it will just issue warnings
3261      # or remarks (even with -Werror).  So we grep stderr for any message
3262      # that says an option was ignored or not supported.
3263      # When given -MP, icc 7.0 and 7.1 complain thusly:
3264      #   icc: Command line warning: ignoring option '-M'; no argument required
3265      # The diagnosis changed in icc 8.0:
3266      #   icc: Command line remark: option '-MP' not supported
3267      if (grep 'ignoring option' conftest.err ||
3268          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3269        am_cv_CC_dependencies_compiler_type=$depmode
3270        break
3271      fi
3272    fi
3273  done
3274
3275  cd ..
3276  rm -rf conftest.dir
3277else
3278  am_cv_CC_dependencies_compiler_type=none
3279fi
3280
3281fi
3282echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3283echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3284CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3285
3286
3287
3288if
3289  test "x$enable_dependency_tracking" != xno \
3290  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3291  am__fastdepCC_TRUE=
3292  am__fastdepCC_FALSE='#'
3293else
3294  am__fastdepCC_TRUE='#'
3295  am__fastdepCC_FALSE=
3296fi
3297
3298
3299echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3300echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3301if test "${lt_cv_path_SED+set}" = set; then
3302  echo $ECHO_N "(cached) $ECHO_C" >&6
3303else
3304  # Loop through the user's path and test for sed and gsed.
3305# Then use that list of sed's as ones to test for truncation.
3306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307for as_dir in $PATH
3308do
3309  IFS=$as_save_IFS
3310  test -z "$as_dir" && as_dir=.
3311  for lt_ac_prog in sed gsed; do
3312    for ac_exec_ext in '' $ac_executable_extensions; do
3313      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3314        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3315      fi
3316    done
3317  done
3318done
3319lt_ac_max=0
3320lt_ac_count=0
3321# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3322# along with /bin/sed that truncates output.
3323for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3324  test ! -f $lt_ac_sed && break
3325  cat /dev/null > conftest.in
3326  lt_ac_count=0
3327  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3328  # Check for GNU sed and select it if it is found.
3329  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3330    lt_cv_path_SED=$lt_ac_sed
3331    break
3332  fi
3333  while true; do
3334    cat conftest.in conftest.in >conftest.tmp
3335    mv conftest.tmp conftest.in
3336    cp conftest.in conftest.nl
3337    echo >>conftest.nl
3338    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3339    cmp -s conftest.out conftest.nl || break
3340    # 10000 chars as input seems more than enough
3341    test $lt_ac_count -gt 10 && break
3342    lt_ac_count=`expr $lt_ac_count + 1`
3343    if test $lt_ac_count -gt $lt_ac_max; then
3344      lt_ac_max=$lt_ac_count
3345      lt_cv_path_SED=$lt_ac_sed
3346    fi
3347  done
3348done
3349
3350fi
3351
3352SED=$lt_cv_path_SED
3353echo "$as_me:$LINENO: result: $SED" >&5
3354echo "${ECHO_T}$SED" >&6
3355
3356echo "$as_me:$LINENO: checking for egrep" >&5
3357echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3358if test "${ac_cv_prog_egrep+set}" = set; then
3359  echo $ECHO_N "(cached) $ECHO_C" >&6
3360else
3361  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3362    then ac_cv_prog_egrep='grep -E'
3363    else ac_cv_prog_egrep='egrep'
3364    fi
3365fi
3366echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3367echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3368 EGREP=$ac_cv_prog_egrep
3369
3370
3371
3372# Check whether --with-gnu-ld or --without-gnu-ld was given.
3373if test "${with_gnu_ld+set}" = set; then
3374  withval="$with_gnu_ld"
3375  test "$withval" = no || with_gnu_ld=yes
3376else
3377  with_gnu_ld=no
3378fi;
3379ac_prog=ld
3380if test "$GCC" = yes; then
3381  # Check if gcc -print-prog-name=ld gives a path.
3382  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3383echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3384  case $host in
3385  *-*-mingw*)
3386    # gcc leaves a trailing carriage return which upsets mingw
3387    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3388  *)
3389    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3390  esac
3391  case $ac_prog in
3392    # Accept absolute paths.
3393    [\\/]* | ?:[\\/]*)
3394      re_direlt='/[^/][^/]*/\.\./'
3395      # Canonicalize the pathname of ld
3396      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3397      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3398	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3399      done
3400      test -z "$LD" && LD="$ac_prog"
3401      ;;
3402  "")
3403    # If it fails, then pretend we aren't using GCC.
3404    ac_prog=ld
3405    ;;
3406  *)
3407    # If it is relative, then search for the first ld in PATH.
3408    with_gnu_ld=unknown
3409    ;;
3410  esac
3411elif test "$with_gnu_ld" = yes; then
3412  echo "$as_me:$LINENO: checking for GNU ld" >&5
3413echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3414else
3415  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3416echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3417fi
3418if test "${lt_cv_path_LD+set}" = set; then
3419  echo $ECHO_N "(cached) $ECHO_C" >&6
3420else
3421  if test -z "$LD"; then
3422  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3423  for ac_dir in $PATH; do
3424    IFS="$lt_save_ifs"
3425    test -z "$ac_dir" && ac_dir=.
3426    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3427      lt_cv_path_LD="$ac_dir/$ac_prog"
3428      # Check to see if the program is GNU ld.  I'd rather use --version,
3429      # but apparently some GNU ld's only accept -v.
3430      # Break only if it was the GNU/non-GNU ld that we prefer.
3431      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3432      *GNU* | *'with BFD'*)
3433	test "$with_gnu_ld" != no && break
3434	;;
3435      *)
3436	test "$with_gnu_ld" != yes && break
3437	;;
3438      esac
3439    fi
3440  done
3441  IFS="$lt_save_ifs"
3442else
3443  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3444fi
3445fi
3446
3447LD="$lt_cv_path_LD"
3448if test -n "$LD"; then
3449  echo "$as_me:$LINENO: result: $LD" >&5
3450echo "${ECHO_T}$LD" >&6
3451else
3452  echo "$as_me:$LINENO: result: no" >&5
3453echo "${ECHO_T}no" >&6
3454fi
3455test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3456echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3457   { (exit 1); exit 1; }; }
3458echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3459echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3460if test "${lt_cv_prog_gnu_ld+set}" = set; then
3461  echo $ECHO_N "(cached) $ECHO_C" >&6
3462else
3463  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3464case `$LD -v 2>&1 </dev/null` in
3465*GNU* | *'with BFD'*)
3466  lt_cv_prog_gnu_ld=yes
3467  ;;
3468*)
3469  lt_cv_prog_gnu_ld=no
3470  ;;
3471esac
3472fi
3473echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3474echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3475with_gnu_ld=$lt_cv_prog_gnu_ld
3476
3477
3478echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3479echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3480if test "${lt_cv_ld_reload_flag+set}" = set; then
3481  echo $ECHO_N "(cached) $ECHO_C" >&6
3482else
3483  lt_cv_ld_reload_flag='-r'
3484fi
3485echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3486echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3487reload_flag=$lt_cv_ld_reload_flag
3488case $reload_flag in
3489"" | " "*) ;;
3490*) reload_flag=" $reload_flag" ;;
3491esac
3492reload_cmds='$LD$reload_flag -o $output$reload_objs'
3493case $host_os in
3494  darwin*)
3495    if test "$GCC" = yes; then
3496      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3497    else
3498      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3499    fi
3500    ;;
3501esac
3502
3503echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3504echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3505if test "${lt_cv_path_NM+set}" = set; then
3506  echo $ECHO_N "(cached) $ECHO_C" >&6
3507else
3508  if test -n "$NM"; then
3509  # Let the user override the test.
3510  lt_cv_path_NM="$NM"
3511else
3512  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3513  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3514    IFS="$lt_save_ifs"
3515    test -z "$ac_dir" && ac_dir=.
3516    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3517    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3518      # Check to see if the nm accepts a BSD-compat flag.
3519      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3520      #   nm: unknown option "B" ignored
3521      # Tru64's nm complains that /dev/null is an invalid object file
3522      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3523      */dev/null* | *'Invalid file or object type'*)
3524	lt_cv_path_NM="$tmp_nm -B"
3525	break
3526        ;;
3527      *)
3528	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3529	*/dev/null*)
3530	  lt_cv_path_NM="$tmp_nm -p"
3531	  break
3532	  ;;
3533	*)
3534	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3535	  continue # so that we can try to find one that supports BSD flags
3536	  ;;
3537	esac
3538      esac
3539    fi
3540  done
3541  IFS="$lt_save_ifs"
3542  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3543fi
3544fi
3545echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3546echo "${ECHO_T}$lt_cv_path_NM" >&6
3547NM="$lt_cv_path_NM"
3548
3549echo "$as_me:$LINENO: checking whether ln -s works" >&5
3550echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3551LN_S=$as_ln_s
3552if test "$LN_S" = "ln -s"; then
3553  echo "$as_me:$LINENO: result: yes" >&5
3554echo "${ECHO_T}yes" >&6
3555else
3556  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3557echo "${ECHO_T}no, using $LN_S" >&6
3558fi
3559
3560echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3561echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3562if test "${lt_cv_deplibs_check_method+set}" = set; then
3563  echo $ECHO_N "(cached) $ECHO_C" >&6
3564else
3565  lt_cv_file_magic_cmd='$MAGIC_CMD'
3566lt_cv_file_magic_test_file=
3567lt_cv_deplibs_check_method='unknown'
3568# Need to set the preceding variable on all platforms that support
3569# interlibrary dependencies.
3570# 'none' -- dependencies not supported.
3571# `unknown' -- same as none, but documents that we really don't know.
3572# 'pass_all' -- all dependencies passed with no checks.
3573# 'test_compile' -- check by making test program.
3574# 'file_magic [[regex]]' -- check by looking for files in library path
3575# which responds to the $file_magic_cmd with a given extended regex.
3576# If you have `file' or equivalent on your system and you're not sure
3577# whether `pass_all' will *always* work, you probably want this one.
3578
3579case $host_os in
3580aix4* | aix5*)
3581  lt_cv_deplibs_check_method=pass_all
3582  ;;
3583
3584beos*)
3585  lt_cv_deplibs_check_method=pass_all
3586  ;;
3587
3588bsdi[45]*)
3589  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3590  lt_cv_file_magic_cmd='/usr/bin/file -L'
3591  lt_cv_file_magic_test_file=/shlib/libc.so
3592  ;;
3593
3594cygwin*)
3595  # func_win32_libid is a shell function defined in ltmain.sh
3596  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3597  lt_cv_file_magic_cmd='func_win32_libid'
3598  ;;
3599
3600mingw* | pw32*)
3601  # Base MSYS/MinGW do not provide the 'file' command needed by
3602  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3603  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3604  lt_cv_file_magic_cmd='$OBJDUMP -f'
3605  ;;
3606
3607darwin* | rhapsody*)
3608  lt_cv_deplibs_check_method=pass_all
3609  ;;
3610
3611freebsd* | kfreebsd*-gnu)
3612  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3613    case $host_cpu in
3614    i*86 )
3615      # Not sure whether the presence of OpenBSD here was a mistake.
3616      # Let's accept both of them until this is cleared up.
3617      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3618      lt_cv_file_magic_cmd=/usr/bin/file
3619      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3620      ;;
3621    esac
3622  else
3623    lt_cv_deplibs_check_method=pass_all
3624  fi
3625  ;;
3626
3627gnu*)
3628  lt_cv_deplibs_check_method=pass_all
3629  ;;
3630
3631hpux10.20* | hpux11*)
3632  lt_cv_file_magic_cmd=/usr/bin/file
3633  case "$host_cpu" in
3634  ia64*)
3635    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3636    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3637    ;;
3638  hppa*64*)
3639    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]'
3640    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3641    ;;
3642  *)
3643    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3644    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3645    ;;
3646  esac
3647  ;;
3648
3649irix5* | irix6* | nonstopux*)
3650  case $LD in
3651  *-32|*"-32 ") libmagic=32-bit;;
3652  *-n32|*"-n32 ") libmagic=N32;;
3653  *-64|*"-64 ") libmagic=64-bit;;
3654  *) libmagic=never-match;;
3655  esac
3656  lt_cv_deplibs_check_method=pass_all
3657  ;;
3658
3659# This must be Linux ELF.
3660linux*)
3661  lt_cv_deplibs_check_method=pass_all
3662  ;;
3663
3664netbsd*)
3665  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3666    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3667  else
3668    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3669  fi
3670  ;;
3671
3672newos6*)
3673  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3674  lt_cv_file_magic_cmd=/usr/bin/file
3675  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3676  ;;
3677
3678nto-qnx*)
3679  lt_cv_deplibs_check_method=unknown
3680  ;;
3681
3682openbsd*)
3683  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3684    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3685  else
3686    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3687  fi
3688  ;;
3689
3690osf3* | osf4* | osf5*)
3691  lt_cv_deplibs_check_method=pass_all
3692  ;;
3693
3694sco3.2v5*)
3695  lt_cv_deplibs_check_method=pass_all
3696  ;;
3697
3698solaris*)
3699  lt_cv_deplibs_check_method=pass_all
3700  ;;
3701
3702sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3703  case $host_vendor in
3704  motorola)
3705    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]'
3706    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3707    ;;
3708  ncr)
3709    lt_cv_deplibs_check_method=pass_all
3710    ;;
3711  sequent)
3712    lt_cv_file_magic_cmd='/bin/file'
3713    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3714    ;;
3715  sni)
3716    lt_cv_file_magic_cmd='/bin/file'
3717    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3718    lt_cv_file_magic_test_file=/lib/libc.so
3719    ;;
3720  siemens)
3721    lt_cv_deplibs_check_method=pass_all
3722    ;;
3723  esac
3724  ;;
3725
3726sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3727  lt_cv_deplibs_check_method=pass_all
3728  ;;
3729esac
3730
3731fi
3732echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3733echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3734file_magic_cmd=$lt_cv_file_magic_cmd
3735deplibs_check_method=$lt_cv_deplibs_check_method
3736test -z "$deplibs_check_method" && deplibs_check_method=unknown
3737
3738
3739
3740
3741# If no C compiler was specified, use CC.
3742LTCC=${LTCC-"$CC"}
3743
3744# Allow CC to be a program name with arguments.
3745compiler=$CC
3746
3747
3748# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3749if test "${enable_libtool_lock+set}" = set; then
3750  enableval="$enable_libtool_lock"
3751
3752fi;
3753test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3754
3755# Some flags need to be propagated to the compiler or linker for good
3756# libtool support.
3757case $host in
3758ia64-*-hpux*)
3759  # Find out which ABI we are using.
3760  echo 'int i;' > conftest.$ac_ext
3761  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3762  (eval $ac_compile) 2>&5
3763  ac_status=$?
3764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765  (exit $ac_status); }; then
3766    case `/usr/bin/file conftest.$ac_objext` in
3767    *ELF-32*)
3768      HPUX_IA64_MODE="32"
3769      ;;
3770    *ELF-64*)
3771      HPUX_IA64_MODE="64"
3772      ;;
3773    esac
3774  fi
3775  rm -rf conftest*
3776  ;;
3777*-*-irix6*)
3778  # Find out which ABI we are using.
3779  echo '#line 3779 "configure"' > conftest.$ac_ext
3780  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3781  (eval $ac_compile) 2>&5
3782  ac_status=$?
3783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784  (exit $ac_status); }; then
3785   if test "$lt_cv_prog_gnu_ld" = yes; then
3786    case `/usr/bin/file conftest.$ac_objext` in
3787    *32-bit*)
3788      LD="${LD-ld} -melf32bsmip"
3789      ;;
3790    *N32*)
3791      LD="${LD-ld} -melf32bmipn32"
3792      ;;
3793    *64-bit*)
3794      LD="${LD-ld} -melf64bmip"
3795      ;;
3796    esac
3797   else
3798    case `/usr/bin/file conftest.$ac_objext` in
3799    *32-bit*)
3800      LD="${LD-ld} -32"
3801      ;;
3802    *N32*)
3803      LD="${LD-ld} -n32"
3804      ;;
3805    *64-bit*)
3806      LD="${LD-ld} -64"
3807      ;;
3808    esac
3809   fi
3810  fi
3811  rm -rf conftest*
3812  ;;
3813
3814x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3815  # Find out which ABI we are using.
3816  echo 'int i;' > conftest.$ac_ext
3817  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3818  (eval $ac_compile) 2>&5
3819  ac_status=$?
3820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821  (exit $ac_status); }; then
3822    case "`/usr/bin/file conftest.o`" in
3823    *32-bit*)
3824      case $host in
3825        x86_64-*linux*)
3826          LD="${LD-ld} -m elf_i386"
3827          ;;
3828        ppc64-*linux*|powerpc64-*linux*)
3829          LD="${LD-ld} -m elf32ppclinux"
3830          ;;
3831        s390x-*linux*)
3832          LD="${LD-ld} -m elf_s390"
3833          ;;
3834        sparc64-*linux*)
3835          LD="${LD-ld} -m elf32_sparc"
3836          ;;
3837      esac
3838      ;;
3839    *64-bit*)
3840      case $host in
3841        x86_64-*linux*)
3842          LD="${LD-ld} -m elf_x86_64"
3843          ;;
3844        ppc*-*linux*|powerpc*-*linux*)
3845          LD="${LD-ld} -m elf64ppc"
3846          ;;
3847        s390*-*linux*)
3848          LD="${LD-ld} -m elf64_s390"
3849          ;;
3850        sparc*-*linux*)
3851          LD="${LD-ld} -m elf64_sparc"
3852          ;;
3853      esac
3854      ;;
3855    esac
3856  fi
3857  rm -rf conftest*
3858  ;;
3859
3860*-*-sco3.2v5*)
3861  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3862  SAVE_CFLAGS="$CFLAGS"
3863  CFLAGS="$CFLAGS -belf"
3864  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3865echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3866if test "${lt_cv_cc_needs_belf+set}" = set; then
3867  echo $ECHO_N "(cached) $ECHO_C" >&6
3868else
3869  ac_ext=c
3870ac_cpp='$CPP $CPPFLAGS'
3871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3873ac_compiler_gnu=$ac_cv_c_compiler_gnu
3874
3875     cat >conftest.$ac_ext <<_ACEOF
3876/* confdefs.h.  */
3877_ACEOF
3878cat confdefs.h >>conftest.$ac_ext
3879cat >>conftest.$ac_ext <<_ACEOF
3880/* end confdefs.h.  */
3881
3882int
3883main ()
3884{
3885
3886  ;
3887  return 0;
3888}
3889_ACEOF
3890rm -f conftest.$ac_objext conftest$ac_exeext
3891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3892  (eval $ac_link) 2>conftest.er1
3893  ac_status=$?
3894  grep -v '^ *+' conftest.er1 >conftest.err
3895  rm -f conftest.er1
3896  cat conftest.err >&5
3897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898  (exit $ac_status); } &&
3899	 { ac_try='test -z "$ac_c_werror_flag"
3900			 || test ! -s conftest.err'
3901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902  (eval $ac_try) 2>&5
3903  ac_status=$?
3904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905  (exit $ac_status); }; } &&
3906	 { ac_try='test -s conftest$ac_exeext'
3907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908  (eval $ac_try) 2>&5
3909  ac_status=$?
3910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911  (exit $ac_status); }; }; then
3912  lt_cv_cc_needs_belf=yes
3913else
3914  echo "$as_me: failed program was:" >&5
3915sed 's/^/| /' conftest.$ac_ext >&5
3916
3917lt_cv_cc_needs_belf=no
3918fi
3919rm -f conftest.err conftest.$ac_objext \
3920      conftest$ac_exeext conftest.$ac_ext
3921     ac_ext=c
3922ac_cpp='$CPP $CPPFLAGS'
3923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925ac_compiler_gnu=$ac_cv_c_compiler_gnu
3926
3927fi
3928echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3929echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3930  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3931    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3932    CFLAGS="$SAVE_CFLAGS"
3933  fi
3934  ;;
3935
3936esac
3937
3938need_locks="$enable_libtool_lock"
3939
3940
3941ac_ext=c
3942ac_cpp='$CPP $CPPFLAGS'
3943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3945ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3947echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3948# On Suns, sometimes $CPP names a directory.
3949if test -n "$CPP" && test -d "$CPP"; then
3950  CPP=
3951fi
3952if test -z "$CPP"; then
3953  if test "${ac_cv_prog_CPP+set}" = set; then
3954  echo $ECHO_N "(cached) $ECHO_C" >&6
3955else
3956      # Double quotes because CPP needs to be expanded
3957    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3958    do
3959      ac_preproc_ok=false
3960for ac_c_preproc_warn_flag in '' yes
3961do
3962  # Use a header file that comes with gcc, so configuring glibc
3963  # with a fresh cross-compiler works.
3964  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3965  # <limits.h> exists even on freestanding compilers.
3966  # On the NeXT, cc -E runs the code through the compiler's parser,
3967  # not just through cpp. "Syntax error" is here to catch this case.
3968  cat >conftest.$ac_ext <<_ACEOF
3969/* confdefs.h.  */
3970_ACEOF
3971cat confdefs.h >>conftest.$ac_ext
3972cat >>conftest.$ac_ext <<_ACEOF
3973/* end confdefs.h.  */
3974#ifdef __STDC__
3975# include <limits.h>
3976#else
3977# include <assert.h>
3978#endif
3979		     Syntax error
3980_ACEOF
3981if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3982  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3983  ac_status=$?
3984  grep -v '^ *+' conftest.er1 >conftest.err
3985  rm -f conftest.er1
3986  cat conftest.err >&5
3987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988  (exit $ac_status); } >/dev/null; then
3989  if test -s conftest.err; then
3990    ac_cpp_err=$ac_c_preproc_warn_flag
3991    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3992  else
3993    ac_cpp_err=
3994  fi
3995else
3996  ac_cpp_err=yes
3997fi
3998if test -z "$ac_cpp_err"; then
3999  :
4000else
4001  echo "$as_me: failed program was:" >&5
4002sed 's/^/| /' conftest.$ac_ext >&5
4003
4004  # Broken: fails on valid input.
4005continue
4006fi
4007rm -f conftest.err conftest.$ac_ext
4008
4009  # OK, works on sane cases.  Now check whether non-existent headers
4010  # can be detected and how.
4011  cat >conftest.$ac_ext <<_ACEOF
4012/* confdefs.h.  */
4013_ACEOF
4014cat confdefs.h >>conftest.$ac_ext
4015cat >>conftest.$ac_ext <<_ACEOF
4016/* end confdefs.h.  */
4017#include <ac_nonexistent.h>
4018_ACEOF
4019if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4020  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4021  ac_status=$?
4022  grep -v '^ *+' conftest.er1 >conftest.err
4023  rm -f conftest.er1
4024  cat conftest.err >&5
4025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026  (exit $ac_status); } >/dev/null; then
4027  if test -s conftest.err; then
4028    ac_cpp_err=$ac_c_preproc_warn_flag
4029    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4030  else
4031    ac_cpp_err=
4032  fi
4033else
4034  ac_cpp_err=yes
4035fi
4036if test -z "$ac_cpp_err"; then
4037  # Broken: success on invalid input.
4038continue
4039else
4040  echo "$as_me: failed program was:" >&5
4041sed 's/^/| /' conftest.$ac_ext >&5
4042
4043  # Passes both tests.
4044ac_preproc_ok=:
4045break
4046fi
4047rm -f conftest.err conftest.$ac_ext
4048
4049done
4050# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4051rm -f conftest.err conftest.$ac_ext
4052if $ac_preproc_ok; then
4053  break
4054fi
4055
4056    done
4057    ac_cv_prog_CPP=$CPP
4058
4059fi
4060  CPP=$ac_cv_prog_CPP
4061else
4062  ac_cv_prog_CPP=$CPP
4063fi
4064echo "$as_me:$LINENO: result: $CPP" >&5
4065echo "${ECHO_T}$CPP" >&6
4066ac_preproc_ok=false
4067for ac_c_preproc_warn_flag in '' yes
4068do
4069  # Use a header file that comes with gcc, so configuring glibc
4070  # with a fresh cross-compiler works.
4071  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4072  # <limits.h> exists even on freestanding compilers.
4073  # On the NeXT, cc -E runs the code through the compiler's parser,
4074  # not just through cpp. "Syntax error" is here to catch this case.
4075  cat >conftest.$ac_ext <<_ACEOF
4076/* confdefs.h.  */
4077_ACEOF
4078cat confdefs.h >>conftest.$ac_ext
4079cat >>conftest.$ac_ext <<_ACEOF
4080/* end confdefs.h.  */
4081#ifdef __STDC__
4082# include <limits.h>
4083#else
4084# include <assert.h>
4085#endif
4086		     Syntax error
4087_ACEOF
4088if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4089  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4090  ac_status=$?
4091  grep -v '^ *+' conftest.er1 >conftest.err
4092  rm -f conftest.er1
4093  cat conftest.err >&5
4094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095  (exit $ac_status); } >/dev/null; then
4096  if test -s conftest.err; then
4097    ac_cpp_err=$ac_c_preproc_warn_flag
4098    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4099  else
4100    ac_cpp_err=
4101  fi
4102else
4103  ac_cpp_err=yes
4104fi
4105if test -z "$ac_cpp_err"; then
4106  :
4107else
4108  echo "$as_me: failed program was:" >&5
4109sed 's/^/| /' conftest.$ac_ext >&5
4110
4111  # Broken: fails on valid input.
4112continue
4113fi
4114rm -f conftest.err conftest.$ac_ext
4115
4116  # OK, works on sane cases.  Now check whether non-existent headers
4117  # can be detected and how.
4118  cat >conftest.$ac_ext <<_ACEOF
4119/* confdefs.h.  */
4120_ACEOF
4121cat confdefs.h >>conftest.$ac_ext
4122cat >>conftest.$ac_ext <<_ACEOF
4123/* end confdefs.h.  */
4124#include <ac_nonexistent.h>
4125_ACEOF
4126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4127  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4128  ac_status=$?
4129  grep -v '^ *+' conftest.er1 >conftest.err
4130  rm -f conftest.er1
4131  cat conftest.err >&5
4132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133  (exit $ac_status); } >/dev/null; then
4134  if test -s conftest.err; then
4135    ac_cpp_err=$ac_c_preproc_warn_flag
4136    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4137  else
4138    ac_cpp_err=
4139  fi
4140else
4141  ac_cpp_err=yes
4142fi
4143if test -z "$ac_cpp_err"; then
4144  # Broken: success on invalid input.
4145continue
4146else
4147  echo "$as_me: failed program was:" >&5
4148sed 's/^/| /' conftest.$ac_ext >&5
4149
4150  # Passes both tests.
4151ac_preproc_ok=:
4152break
4153fi
4154rm -f conftest.err conftest.$ac_ext
4155
4156done
4157# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4158rm -f conftest.err conftest.$ac_ext
4159if $ac_preproc_ok; then
4160  :
4161else
4162  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4163See \`config.log' for more details." >&5
4164echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4165See \`config.log' for more details." >&2;}
4166   { (exit 1); exit 1; }; }
4167fi
4168
4169ac_ext=c
4170ac_cpp='$CPP $CPPFLAGS'
4171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4173ac_compiler_gnu=$ac_cv_c_compiler_gnu
4174
4175
4176echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4177echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4178if test "${ac_cv_header_stdc+set}" = set; then
4179  echo $ECHO_N "(cached) $ECHO_C" >&6
4180else
4181  cat >conftest.$ac_ext <<_ACEOF
4182/* confdefs.h.  */
4183_ACEOF
4184cat confdefs.h >>conftest.$ac_ext
4185cat >>conftest.$ac_ext <<_ACEOF
4186/* end confdefs.h.  */
4187#include <stdlib.h>
4188#include <stdarg.h>
4189#include <string.h>
4190#include <float.h>
4191
4192int
4193main ()
4194{
4195
4196  ;
4197  return 0;
4198}
4199_ACEOF
4200rm -f conftest.$ac_objext
4201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4202  (eval $ac_compile) 2>conftest.er1
4203  ac_status=$?
4204  grep -v '^ *+' conftest.er1 >conftest.err
4205  rm -f conftest.er1
4206  cat conftest.err >&5
4207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208  (exit $ac_status); } &&
4209	 { ac_try='test -z "$ac_c_werror_flag"
4210			 || test ! -s conftest.err'
4211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212  (eval $ac_try) 2>&5
4213  ac_status=$?
4214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215  (exit $ac_status); }; } &&
4216	 { ac_try='test -s conftest.$ac_objext'
4217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218  (eval $ac_try) 2>&5
4219  ac_status=$?
4220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221  (exit $ac_status); }; }; then
4222  ac_cv_header_stdc=yes
4223else
4224  echo "$as_me: failed program was:" >&5
4225sed 's/^/| /' conftest.$ac_ext >&5
4226
4227ac_cv_header_stdc=no
4228fi
4229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4230
4231if test $ac_cv_header_stdc = yes; then
4232  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4233  cat >conftest.$ac_ext <<_ACEOF
4234/* confdefs.h.  */
4235_ACEOF
4236cat confdefs.h >>conftest.$ac_ext
4237cat >>conftest.$ac_ext <<_ACEOF
4238/* end confdefs.h.  */
4239#include <string.h>
4240
4241_ACEOF
4242if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4243  $EGREP "memchr" >/dev/null 2>&1; then
4244  :
4245else
4246  ac_cv_header_stdc=no
4247fi
4248rm -f conftest*
4249
4250fi
4251
4252if test $ac_cv_header_stdc = yes; then
4253  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4254  cat >conftest.$ac_ext <<_ACEOF
4255/* confdefs.h.  */
4256_ACEOF
4257cat confdefs.h >>conftest.$ac_ext
4258cat >>conftest.$ac_ext <<_ACEOF
4259/* end confdefs.h.  */
4260#include <stdlib.h>
4261
4262_ACEOF
4263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4264  $EGREP "free" >/dev/null 2>&1; then
4265  :
4266else
4267  ac_cv_header_stdc=no
4268fi
4269rm -f conftest*
4270
4271fi
4272
4273if test $ac_cv_header_stdc = yes; then
4274  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4275  if test "$cross_compiling" = yes; then
4276  :
4277else
4278  cat >conftest.$ac_ext <<_ACEOF
4279/* confdefs.h.  */
4280_ACEOF
4281cat confdefs.h >>conftest.$ac_ext
4282cat >>conftest.$ac_ext <<_ACEOF
4283/* end confdefs.h.  */
4284#include <ctype.h>
4285#if ((' ' & 0x0FF) == 0x020)
4286# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4287# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4288#else
4289# define ISLOWER(c) \
4290		   (('a' <= (c) && (c) <= 'i') \
4291		     || ('j' <= (c) && (c) <= 'r') \
4292		     || ('s' <= (c) && (c) <= 'z'))
4293# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4294#endif
4295
4296#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4297int
4298main ()
4299{
4300  int i;
4301  for (i = 0; i < 256; i++)
4302    if (XOR (islower (i), ISLOWER (i))
4303	|| toupper (i) != TOUPPER (i))
4304      exit(2);
4305  exit (0);
4306}
4307_ACEOF
4308rm -f conftest$ac_exeext
4309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4310  (eval $ac_link) 2>&5
4311  ac_status=$?
4312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315  (eval $ac_try) 2>&5
4316  ac_status=$?
4317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318  (exit $ac_status); }; }; then
4319  :
4320else
4321  echo "$as_me: program exited with status $ac_status" >&5
4322echo "$as_me: failed program was:" >&5
4323sed 's/^/| /' conftest.$ac_ext >&5
4324
4325( exit $ac_status )
4326ac_cv_header_stdc=no
4327fi
4328rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4329fi
4330fi
4331fi
4332echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4333echo "${ECHO_T}$ac_cv_header_stdc" >&6
4334if test $ac_cv_header_stdc = yes; then
4335
4336cat >>confdefs.h <<\_ACEOF
4337#define STDC_HEADERS 1
4338_ACEOF
4339
4340fi
4341
4342# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4353		  inttypes.h stdint.h unistd.h
4354do
4355as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4356echo "$as_me:$LINENO: checking for $ac_header" >&5
4357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4358if eval "test \"\${$as_ac_Header+set}\" = set"; then
4359  echo $ECHO_N "(cached) $ECHO_C" >&6
4360else
4361  cat >conftest.$ac_ext <<_ACEOF
4362/* confdefs.h.  */
4363_ACEOF
4364cat confdefs.h >>conftest.$ac_ext
4365cat >>conftest.$ac_ext <<_ACEOF
4366/* end confdefs.h.  */
4367$ac_includes_default
4368
4369#include <$ac_header>
4370_ACEOF
4371rm -f conftest.$ac_objext
4372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373  (eval $ac_compile) 2>conftest.er1
4374  ac_status=$?
4375  grep -v '^ *+' conftest.er1 >conftest.err
4376  rm -f conftest.er1
4377  cat conftest.err >&5
4378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379  (exit $ac_status); } &&
4380	 { ac_try='test -z "$ac_c_werror_flag"
4381			 || test ! -s conftest.err'
4382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383  (eval $ac_try) 2>&5
4384  ac_status=$?
4385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386  (exit $ac_status); }; } &&
4387	 { ac_try='test -s conftest.$ac_objext'
4388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389  (eval $ac_try) 2>&5
4390  ac_status=$?
4391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392  (exit $ac_status); }; }; then
4393  eval "$as_ac_Header=yes"
4394else
4395  echo "$as_me: failed program was:" >&5
4396sed 's/^/| /' conftest.$ac_ext >&5
4397
4398eval "$as_ac_Header=no"
4399fi
4400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4401fi
4402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4403echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4404if test `eval echo '${'$as_ac_Header'}'` = yes; then
4405  cat >>confdefs.h <<_ACEOF
4406#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4407_ACEOF
4408
4409fi
4410
4411done
4412
4413
4414
4415for ac_header in dlfcn.h
4416do
4417as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4418if eval "test \"\${$as_ac_Header+set}\" = set"; then
4419  echo "$as_me:$LINENO: checking for $ac_header" >&5
4420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4421if eval "test \"\${$as_ac_Header+set}\" = set"; then
4422  echo $ECHO_N "(cached) $ECHO_C" >&6
4423fi
4424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4425echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4426else
4427  # Is the header compilable?
4428echo "$as_me:$LINENO: checking $ac_header usability" >&5
4429echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4430cat >conftest.$ac_ext <<_ACEOF
4431/* confdefs.h.  */
4432_ACEOF
4433cat confdefs.h >>conftest.$ac_ext
4434cat >>conftest.$ac_ext <<_ACEOF
4435/* end confdefs.h.  */
4436$ac_includes_default
4437#include <$ac_header>
4438_ACEOF
4439rm -f conftest.$ac_objext
4440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4441  (eval $ac_compile) 2>conftest.er1
4442  ac_status=$?
4443  grep -v '^ *+' conftest.er1 >conftest.err
4444  rm -f conftest.er1
4445  cat conftest.err >&5
4446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447  (exit $ac_status); } &&
4448	 { ac_try='test -z "$ac_c_werror_flag"
4449			 || test ! -s conftest.err'
4450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451  (eval $ac_try) 2>&5
4452  ac_status=$?
4453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454  (exit $ac_status); }; } &&
4455	 { ac_try='test -s conftest.$ac_objext'
4456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457  (eval $ac_try) 2>&5
4458  ac_status=$?
4459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460  (exit $ac_status); }; }; then
4461  ac_header_compiler=yes
4462else
4463  echo "$as_me: failed program was:" >&5
4464sed 's/^/| /' conftest.$ac_ext >&5
4465
4466ac_header_compiler=no
4467fi
4468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4469echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4470echo "${ECHO_T}$ac_header_compiler" >&6
4471
4472# Is the header present?
4473echo "$as_me:$LINENO: checking $ac_header presence" >&5
4474echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4475cat >conftest.$ac_ext <<_ACEOF
4476/* confdefs.h.  */
4477_ACEOF
4478cat confdefs.h >>conftest.$ac_ext
4479cat >>conftest.$ac_ext <<_ACEOF
4480/* end confdefs.h.  */
4481#include <$ac_header>
4482_ACEOF
4483if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4484  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4485  ac_status=$?
4486  grep -v '^ *+' conftest.er1 >conftest.err
4487  rm -f conftest.er1
4488  cat conftest.err >&5
4489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490  (exit $ac_status); } >/dev/null; then
4491  if test -s conftest.err; then
4492    ac_cpp_err=$ac_c_preproc_warn_flag
4493    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4494  else
4495    ac_cpp_err=
4496  fi
4497else
4498  ac_cpp_err=yes
4499fi
4500if test -z "$ac_cpp_err"; then
4501  ac_header_preproc=yes
4502else
4503  echo "$as_me: failed program was:" >&5
4504sed 's/^/| /' conftest.$ac_ext >&5
4505
4506  ac_header_preproc=no
4507fi
4508rm -f conftest.err conftest.$ac_ext
4509echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4510echo "${ECHO_T}$ac_header_preproc" >&6
4511
4512# So?  What about this header?
4513case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4514  yes:no: )
4515    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4516echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4517    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4518echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4519    ac_header_preproc=yes
4520    ;;
4521  no:yes:* )
4522    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4523echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4524    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4525echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4526    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4527echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4528    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4529echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4530    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4531echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4532    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4533echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4534    (
4535      cat <<\_ASBOX
4536## ---------------------------------- ##
4537## Report this to jylefort@brutele.be ##
4538## ---------------------------------- ##
4539_ASBOX
4540    ) |
4541      sed "s/^/$as_me: WARNING:     /" >&2
4542    ;;
4543esac
4544echo "$as_me:$LINENO: checking for $ac_header" >&5
4545echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4546if eval "test \"\${$as_ac_Header+set}\" = set"; then
4547  echo $ECHO_N "(cached) $ECHO_C" >&6
4548else
4549  eval "$as_ac_Header=\$ac_header_preproc"
4550fi
4551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4552echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4553
4554fi
4555if test `eval echo '${'$as_ac_Header'}'` = yes; then
4556  cat >>confdefs.h <<_ACEOF
4557#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4558_ACEOF
4559
4560fi
4561
4562done
4563
4564ac_ext=cc
4565ac_cpp='$CXXCPP $CPPFLAGS'
4566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4569if test -n "$ac_tool_prefix"; then
4570  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4571  do
4572    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4573set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4574echo "$as_me:$LINENO: checking for $ac_word" >&5
4575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4576if test "${ac_cv_prog_CXX+set}" = set; then
4577  echo $ECHO_N "(cached) $ECHO_C" >&6
4578else
4579  if test -n "$CXX"; then
4580  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4581else
4582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583for as_dir in $PATH
4584do
4585  IFS=$as_save_IFS
4586  test -z "$as_dir" && as_dir=.
4587  for ac_exec_ext in '' $ac_executable_extensions; do
4588  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4589    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4590    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4591    break 2
4592  fi
4593done
4594done
4595
4596fi
4597fi
4598CXX=$ac_cv_prog_CXX
4599if test -n "$CXX"; then
4600  echo "$as_me:$LINENO: result: $CXX" >&5
4601echo "${ECHO_T}$CXX" >&6
4602else
4603  echo "$as_me:$LINENO: result: no" >&5
4604echo "${ECHO_T}no" >&6
4605fi
4606
4607    test -n "$CXX" && break
4608  done
4609fi
4610if test -z "$CXX"; then
4611  ac_ct_CXX=$CXX
4612  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4613do
4614  # Extract the first word of "$ac_prog", so it can be a program name with args.
4615set dummy $ac_prog; ac_word=$2
4616echo "$as_me:$LINENO: checking for $ac_word" >&5
4617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4618if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4619  echo $ECHO_N "(cached) $ECHO_C" >&6
4620else
4621  if test -n "$ac_ct_CXX"; then
4622  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4623else
4624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625for as_dir in $PATH
4626do
4627  IFS=$as_save_IFS
4628  test -z "$as_dir" && as_dir=.
4629  for ac_exec_ext in '' $ac_executable_extensions; do
4630  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4631    ac_cv_prog_ac_ct_CXX="$ac_prog"
4632    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4633    break 2
4634  fi
4635done
4636done
4637
4638fi
4639fi
4640ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4641if test -n "$ac_ct_CXX"; then
4642  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4643echo "${ECHO_T}$ac_ct_CXX" >&6
4644else
4645  echo "$as_me:$LINENO: result: no" >&5
4646echo "${ECHO_T}no" >&6
4647fi
4648
4649  test -n "$ac_ct_CXX" && break
4650done
4651test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4652
4653  CXX=$ac_ct_CXX
4654fi
4655
4656
4657# Provide some information about the compiler.
4658echo "$as_me:$LINENO:" \
4659     "checking for C++ compiler version" >&5
4660ac_compiler=`set X $ac_compile; echo $2`
4661{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4662  (eval $ac_compiler --version </dev/null >&5) 2>&5
4663  ac_status=$?
4664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665  (exit $ac_status); }
4666{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4667  (eval $ac_compiler -v </dev/null >&5) 2>&5
4668  ac_status=$?
4669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670  (exit $ac_status); }
4671{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4672  (eval $ac_compiler -V </dev/null >&5) 2>&5
4673  ac_status=$?
4674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675  (exit $ac_status); }
4676
4677echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4678echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4679if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4680  echo $ECHO_N "(cached) $ECHO_C" >&6
4681else
4682  cat >conftest.$ac_ext <<_ACEOF
4683/* confdefs.h.  */
4684_ACEOF
4685cat confdefs.h >>conftest.$ac_ext
4686cat >>conftest.$ac_ext <<_ACEOF
4687/* end confdefs.h.  */
4688
4689int
4690main ()
4691{
4692#ifndef __GNUC__
4693       choke me
4694#endif
4695
4696  ;
4697  return 0;
4698}
4699_ACEOF
4700rm -f conftest.$ac_objext
4701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4702  (eval $ac_compile) 2>conftest.er1
4703  ac_status=$?
4704  grep -v '^ *+' conftest.er1 >conftest.err
4705  rm -f conftest.er1
4706  cat conftest.err >&5
4707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708  (exit $ac_status); } &&
4709	 { ac_try='test -z "$ac_cxx_werror_flag"
4710			 || test ! -s conftest.err'
4711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712  (eval $ac_try) 2>&5
4713  ac_status=$?
4714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715  (exit $ac_status); }; } &&
4716	 { ac_try='test -s conftest.$ac_objext'
4717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718  (eval $ac_try) 2>&5
4719  ac_status=$?
4720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721  (exit $ac_status); }; }; then
4722  ac_compiler_gnu=yes
4723else
4724  echo "$as_me: failed program was:" >&5
4725sed 's/^/| /' conftest.$ac_ext >&5
4726
4727ac_compiler_gnu=no
4728fi
4729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4730ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4731
4732fi
4733echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4734echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4735GXX=`test $ac_compiler_gnu = yes && echo yes`
4736ac_test_CXXFLAGS=${CXXFLAGS+set}
4737ac_save_CXXFLAGS=$CXXFLAGS
4738CXXFLAGS="-g"
4739echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4740echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4741if test "${ac_cv_prog_cxx_g+set}" = set; then
4742  echo $ECHO_N "(cached) $ECHO_C" >&6
4743else
4744  cat >conftest.$ac_ext <<_ACEOF
4745/* confdefs.h.  */
4746_ACEOF
4747cat confdefs.h >>conftest.$ac_ext
4748cat >>conftest.$ac_ext <<_ACEOF
4749/* end confdefs.h.  */
4750
4751int
4752main ()
4753{
4754
4755  ;
4756  return 0;
4757}
4758_ACEOF
4759rm -f conftest.$ac_objext
4760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4761  (eval $ac_compile) 2>conftest.er1
4762  ac_status=$?
4763  grep -v '^ *+' conftest.er1 >conftest.err
4764  rm -f conftest.er1
4765  cat conftest.err >&5
4766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767  (exit $ac_status); } &&
4768	 { ac_try='test -z "$ac_cxx_werror_flag"
4769			 || test ! -s conftest.err'
4770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771  (eval $ac_try) 2>&5
4772  ac_status=$?
4773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774  (exit $ac_status); }; } &&
4775	 { ac_try='test -s conftest.$ac_objext'
4776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777  (eval $ac_try) 2>&5
4778  ac_status=$?
4779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780  (exit $ac_status); }; }; then
4781  ac_cv_prog_cxx_g=yes
4782else
4783  echo "$as_me: failed program was:" >&5
4784sed 's/^/| /' conftest.$ac_ext >&5
4785
4786ac_cv_prog_cxx_g=no
4787fi
4788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4789fi
4790echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4791echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4792if test "$ac_test_CXXFLAGS" = set; then
4793  CXXFLAGS=$ac_save_CXXFLAGS
4794elif test $ac_cv_prog_cxx_g = yes; then
4795  if test "$GXX" = yes; then
4796    CXXFLAGS="-g -O2"
4797  else
4798    CXXFLAGS="-g"
4799  fi
4800else
4801  if test "$GXX" = yes; then
4802    CXXFLAGS="-O2"
4803  else
4804    CXXFLAGS=
4805  fi
4806fi
4807for ac_declaration in \
4808   '' \
4809   'extern "C" void std::exit (int) throw (); using std::exit;' \
4810   'extern "C" void std::exit (int); using std::exit;' \
4811   'extern "C" void exit (int) throw ();' \
4812   'extern "C" void exit (int);' \
4813   'void exit (int);'
4814do
4815  cat >conftest.$ac_ext <<_ACEOF
4816/* confdefs.h.  */
4817_ACEOF
4818cat confdefs.h >>conftest.$ac_ext
4819cat >>conftest.$ac_ext <<_ACEOF
4820/* end confdefs.h.  */
4821$ac_declaration
4822#include <stdlib.h>
4823int
4824main ()
4825{
4826exit (42);
4827  ;
4828  return 0;
4829}
4830_ACEOF
4831rm -f conftest.$ac_objext
4832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833  (eval $ac_compile) 2>conftest.er1
4834  ac_status=$?
4835  grep -v '^ *+' conftest.er1 >conftest.err
4836  rm -f conftest.er1
4837  cat conftest.err >&5
4838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839  (exit $ac_status); } &&
4840	 { ac_try='test -z "$ac_cxx_werror_flag"
4841			 || test ! -s conftest.err'
4842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843  (eval $ac_try) 2>&5
4844  ac_status=$?
4845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846  (exit $ac_status); }; } &&
4847	 { ac_try='test -s conftest.$ac_objext'
4848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849  (eval $ac_try) 2>&5
4850  ac_status=$?
4851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852  (exit $ac_status); }; }; then
4853  :
4854else
4855  echo "$as_me: failed program was:" >&5
4856sed 's/^/| /' conftest.$ac_ext >&5
4857
4858continue
4859fi
4860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4861  cat >conftest.$ac_ext <<_ACEOF
4862/* confdefs.h.  */
4863_ACEOF
4864cat confdefs.h >>conftest.$ac_ext
4865cat >>conftest.$ac_ext <<_ACEOF
4866/* end confdefs.h.  */
4867$ac_declaration
4868int
4869main ()
4870{
4871exit (42);
4872  ;
4873  return 0;
4874}
4875_ACEOF
4876rm -f conftest.$ac_objext
4877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4878  (eval $ac_compile) 2>conftest.er1
4879  ac_status=$?
4880  grep -v '^ *+' conftest.er1 >conftest.err
4881  rm -f conftest.er1
4882  cat conftest.err >&5
4883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884  (exit $ac_status); } &&
4885	 { ac_try='test -z "$ac_cxx_werror_flag"
4886			 || test ! -s conftest.err'
4887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888  (eval $ac_try) 2>&5
4889  ac_status=$?
4890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891  (exit $ac_status); }; } &&
4892	 { ac_try='test -s conftest.$ac_objext'
4893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894  (eval $ac_try) 2>&5
4895  ac_status=$?
4896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897  (exit $ac_status); }; }; then
4898  break
4899else
4900  echo "$as_me: failed program was:" >&5
4901sed 's/^/| /' conftest.$ac_ext >&5
4902
4903fi
4904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4905done
4906rm -f conftest*
4907if test -n "$ac_declaration"; then
4908  echo '#ifdef __cplusplus' >>confdefs.h
4909  echo $ac_declaration      >>confdefs.h
4910  echo '#endif'             >>confdefs.h
4911fi
4912
4913ac_ext=cc
4914ac_cpp='$CXXCPP $CPPFLAGS'
4915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4918
4919depcc="$CXX"  am_compiler_list=
4920
4921echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4922echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4923if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4924  echo $ECHO_N "(cached) $ECHO_C" >&6
4925else
4926  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4927  # We make a subdir and do the tests there.  Otherwise we can end up
4928  # making bogus files that we don't know about and never remove.  For
4929  # instance it was reported that on HP-UX the gcc test will end up
4930  # making a dummy file named `D' -- because `-MD' means `put the output
4931  # in D'.
4932  mkdir conftest.dir
4933  # Copy depcomp to subdir because otherwise we won't find it if we're
4934  # using a relative directory.
4935  cp "$am_depcomp" conftest.dir
4936  cd conftest.dir
4937  # We will build objects and dependencies in a subdirectory because
4938  # it helps to detect inapplicable dependency modes.  For instance
4939  # both Tru64's cc and ICC support -MD to output dependencies as a
4940  # side effect of compilation, but ICC will put the dependencies in
4941  # the current directory while Tru64 will put them in the object
4942  # directory.
4943  mkdir sub
4944
4945  am_cv_CXX_dependencies_compiler_type=none
4946  if test "$am_compiler_list" = ""; then
4947     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4948  fi
4949  for depmode in $am_compiler_list; do
4950    # Setup a source with many dependencies, because some compilers
4951    # like to wrap large dependency lists on column 80 (with \), and
4952    # we should not choose a depcomp mode which is confused by this.
4953    #
4954    # We need to recreate these files for each test, as the compiler may
4955    # overwrite some of them when testing with obscure command lines.
4956    # This happens at least with the AIX C compiler.
4957    : > sub/conftest.c
4958    for i in 1 2 3 4 5 6; do
4959      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4960      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4961      # Solaris 8's {/usr,}/bin/sh.
4962      touch sub/conftst$i.h
4963    done
4964    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4965
4966    case $depmode in
4967    nosideeffect)
4968      # after this tag, mechanisms are not by side-effect, so they'll
4969      # only be used when explicitly requested
4970      if test "x$enable_dependency_tracking" = xyes; then
4971	continue
4972      else
4973	break
4974      fi
4975      ;;
4976    none) break ;;
4977    esac
4978    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4979    # mode.  It turns out that the SunPro C++ compiler does not properly
4980    # handle `-M -o', and we need to detect this.
4981    if depmode=$depmode \
4982       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4983       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4984       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4985         >/dev/null 2>conftest.err &&
4986       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4987       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4988       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4989      # icc doesn't choke on unknown options, it will just issue warnings
4990      # or remarks (even with -Werror).  So we grep stderr for any message
4991      # that says an option was ignored or not supported.
4992      # When given -MP, icc 7.0 and 7.1 complain thusly:
4993      #   icc: Command line warning: ignoring option '-M'; no argument required
4994      # The diagnosis changed in icc 8.0:
4995      #   icc: Command line remark: option '-MP' not supported
4996      if (grep 'ignoring option' conftest.err ||
4997          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4998        am_cv_CXX_dependencies_compiler_type=$depmode
4999        break
5000      fi
5001    fi
5002  done
5003
5004  cd ..
5005  rm -rf conftest.dir
5006else
5007  am_cv_CXX_dependencies_compiler_type=none
5008fi
5009
5010fi
5011echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5012echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5013CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5014
5015
5016
5017if
5018  test "x$enable_dependency_tracking" != xno \
5019  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5020  am__fastdepCXX_TRUE=
5021  am__fastdepCXX_FALSE='#'
5022else
5023  am__fastdepCXX_TRUE='#'
5024  am__fastdepCXX_FALSE=
5025fi
5026
5027
5028
5029
5030if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5031    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5032    (test "X$CXX" != "Xg++"))) ; then
5033  ac_ext=cc
5034ac_cpp='$CXXCPP $CPPFLAGS'
5035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5038echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5039echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5040if test -z "$CXXCPP"; then
5041  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5042  echo $ECHO_N "(cached) $ECHO_C" >&6
5043else
5044      # Double quotes because CXXCPP needs to be expanded
5045    for CXXCPP in "$CXX -E" "/lib/cpp"
5046    do
5047      ac_preproc_ok=false
5048for ac_cxx_preproc_warn_flag in '' yes
5049do
5050  # Use a header file that comes with gcc, so configuring glibc
5051  # with a fresh cross-compiler works.
5052  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5053  # <limits.h> exists even on freestanding compilers.
5054  # On the NeXT, cc -E runs the code through the compiler's parser,
5055  # not just through cpp. "Syntax error" is here to catch this case.
5056  cat >conftest.$ac_ext <<_ACEOF
5057/* confdefs.h.  */
5058_ACEOF
5059cat confdefs.h >>conftest.$ac_ext
5060cat >>conftest.$ac_ext <<_ACEOF
5061/* end confdefs.h.  */
5062#ifdef __STDC__
5063# include <limits.h>
5064#else
5065# include <assert.h>
5066#endif
5067		     Syntax error
5068_ACEOF
5069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5070  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5071  ac_status=$?
5072  grep -v '^ *+' conftest.er1 >conftest.err
5073  rm -f conftest.er1
5074  cat conftest.err >&5
5075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076  (exit $ac_status); } >/dev/null; then
5077  if test -s conftest.err; then
5078    ac_cpp_err=$ac_cxx_preproc_warn_flag
5079    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5080  else
5081    ac_cpp_err=
5082  fi
5083else
5084  ac_cpp_err=yes
5085fi
5086if test -z "$ac_cpp_err"; then
5087  :
5088else
5089  echo "$as_me: failed program was:" >&5
5090sed 's/^/| /' conftest.$ac_ext >&5
5091
5092  # Broken: fails on valid input.
5093continue
5094fi
5095rm -f conftest.err conftest.$ac_ext
5096
5097  # OK, works on sane cases.  Now check whether non-existent headers
5098  # can be detected and how.
5099  cat >conftest.$ac_ext <<_ACEOF
5100/* confdefs.h.  */
5101_ACEOF
5102cat confdefs.h >>conftest.$ac_ext
5103cat >>conftest.$ac_ext <<_ACEOF
5104/* end confdefs.h.  */
5105#include <ac_nonexistent.h>
5106_ACEOF
5107if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5108  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5109  ac_status=$?
5110  grep -v '^ *+' conftest.er1 >conftest.err
5111  rm -f conftest.er1
5112  cat conftest.err >&5
5113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114  (exit $ac_status); } >/dev/null; then
5115  if test -s conftest.err; then
5116    ac_cpp_err=$ac_cxx_preproc_warn_flag
5117    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5118  else
5119    ac_cpp_err=
5120  fi
5121else
5122  ac_cpp_err=yes
5123fi
5124if test -z "$ac_cpp_err"; then
5125  # Broken: success on invalid input.
5126continue
5127else
5128  echo "$as_me: failed program was:" >&5
5129sed 's/^/| /' conftest.$ac_ext >&5
5130
5131  # Passes both tests.
5132ac_preproc_ok=:
5133break
5134fi
5135rm -f conftest.err conftest.$ac_ext
5136
5137done
5138# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5139rm -f conftest.err conftest.$ac_ext
5140if $ac_preproc_ok; then
5141  break
5142fi
5143
5144    done
5145    ac_cv_prog_CXXCPP=$CXXCPP
5146
5147fi
5148  CXXCPP=$ac_cv_prog_CXXCPP
5149else
5150  ac_cv_prog_CXXCPP=$CXXCPP
5151fi
5152echo "$as_me:$LINENO: result: $CXXCPP" >&5
5153echo "${ECHO_T}$CXXCPP" >&6
5154ac_preproc_ok=false
5155for ac_cxx_preproc_warn_flag in '' yes
5156do
5157  # Use a header file that comes with gcc, so configuring glibc
5158  # with a fresh cross-compiler works.
5159  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5160  # <limits.h> exists even on freestanding compilers.
5161  # On the NeXT, cc -E runs the code through the compiler's parser,
5162  # not just through cpp. "Syntax error" is here to catch this case.
5163  cat >conftest.$ac_ext <<_ACEOF
5164/* confdefs.h.  */
5165_ACEOF
5166cat confdefs.h >>conftest.$ac_ext
5167cat >>conftest.$ac_ext <<_ACEOF
5168/* end confdefs.h.  */
5169#ifdef __STDC__
5170# include <limits.h>
5171#else
5172# include <assert.h>
5173#endif
5174		     Syntax error
5175_ACEOF
5176if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5177  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5178  ac_status=$?
5179  grep -v '^ *+' conftest.er1 >conftest.err
5180  rm -f conftest.er1
5181  cat conftest.err >&5
5182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183  (exit $ac_status); } >/dev/null; then
5184  if test -s conftest.err; then
5185    ac_cpp_err=$ac_cxx_preproc_warn_flag
5186    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5187  else
5188    ac_cpp_err=
5189  fi
5190else
5191  ac_cpp_err=yes
5192fi
5193if test -z "$ac_cpp_err"; then
5194  :
5195else
5196  echo "$as_me: failed program was:" >&5
5197sed 's/^/| /' conftest.$ac_ext >&5
5198
5199  # Broken: fails on valid input.
5200continue
5201fi
5202rm -f conftest.err conftest.$ac_ext
5203
5204  # OK, works on sane cases.  Now check whether non-existent headers
5205  # can be detected and how.
5206  cat >conftest.$ac_ext <<_ACEOF
5207/* confdefs.h.  */
5208_ACEOF
5209cat confdefs.h >>conftest.$ac_ext
5210cat >>conftest.$ac_ext <<_ACEOF
5211/* end confdefs.h.  */
5212#include <ac_nonexistent.h>
5213_ACEOF
5214if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5215  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5216  ac_status=$?
5217  grep -v '^ *+' conftest.er1 >conftest.err
5218  rm -f conftest.er1
5219  cat conftest.err >&5
5220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221  (exit $ac_status); } >/dev/null; then
5222  if test -s conftest.err; then
5223    ac_cpp_err=$ac_cxx_preproc_warn_flag
5224    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5225  else
5226    ac_cpp_err=
5227  fi
5228else
5229  ac_cpp_err=yes
5230fi
5231if test -z "$ac_cpp_err"; then
5232  # Broken: success on invalid input.
5233continue
5234else
5235  echo "$as_me: failed program was:" >&5
5236sed 's/^/| /' conftest.$ac_ext >&5
5237
5238  # Passes both tests.
5239ac_preproc_ok=:
5240break
5241fi
5242rm -f conftest.err conftest.$ac_ext
5243
5244done
5245# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5246rm -f conftest.err conftest.$ac_ext
5247if $ac_preproc_ok; then
5248  :
5249else
5250  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5251See \`config.log' for more details." >&5
5252echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5253See \`config.log' for more details." >&2;}
5254   { (exit 1); exit 1; }; }
5255fi
5256
5257ac_ext=cc
5258ac_cpp='$CXXCPP $CPPFLAGS'
5259ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5260ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5261ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5262
5263fi
5264
5265
5266ac_ext=f
5267ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5268ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5269ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5270if test -n "$ac_tool_prefix"; then
5271  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5272  do
5273    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5274set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5275echo "$as_me:$LINENO: checking for $ac_word" >&5
5276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5277if test "${ac_cv_prog_F77+set}" = set; then
5278  echo $ECHO_N "(cached) $ECHO_C" >&6
5279else
5280  if test -n "$F77"; then
5281  ac_cv_prog_F77="$F77" # Let the user override the test.
5282else
5283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284for as_dir in $PATH
5285do
5286  IFS=$as_save_IFS
5287  test -z "$as_dir" && as_dir=.
5288  for ac_exec_ext in '' $ac_executable_extensions; do
5289  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5290    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5291    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292    break 2
5293  fi
5294done
5295done
5296
5297fi
5298fi
5299F77=$ac_cv_prog_F77
5300if test -n "$F77"; then
5301  echo "$as_me:$LINENO: result: $F77" >&5
5302echo "${ECHO_T}$F77" >&6
5303else
5304  echo "$as_me:$LINENO: result: no" >&5
5305echo "${ECHO_T}no" >&6
5306fi
5307
5308    test -n "$F77" && break
5309  done
5310fi
5311if test -z "$F77"; then
5312  ac_ct_F77=$F77
5313  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5314do
5315  # Extract the first word of "$ac_prog", so it can be a program name with args.
5316set dummy $ac_prog; ac_word=$2
5317echo "$as_me:$LINENO: checking for $ac_word" >&5
5318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5319if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5320  echo $ECHO_N "(cached) $ECHO_C" >&6
5321else
5322  if test -n "$ac_ct_F77"; then
5323  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5324else
5325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326for as_dir in $PATH
5327do
5328  IFS=$as_save_IFS
5329  test -z "$as_dir" && as_dir=.
5330  for ac_exec_ext in '' $ac_executable_extensions; do
5331  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5332    ac_cv_prog_ac_ct_F77="$ac_prog"
5333    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5334    break 2
5335  fi
5336done
5337done
5338
5339fi
5340fi
5341ac_ct_F77=$ac_cv_prog_ac_ct_F77
5342if test -n "$ac_ct_F77"; then
5343  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5344echo "${ECHO_T}$ac_ct_F77" >&6
5345else
5346  echo "$as_me:$LINENO: result: no" >&5
5347echo "${ECHO_T}no" >&6
5348fi
5349
5350  test -n "$ac_ct_F77" && break
5351done
5352
5353  F77=$ac_ct_F77
5354fi
5355
5356
5357# Provide some information about the compiler.
5358echo "$as_me:5358:" \
5359     "checking for Fortran 77 compiler version" >&5
5360ac_compiler=`set X $ac_compile; echo $2`
5361{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5362  (eval $ac_compiler --version </dev/null >&5) 2>&5
5363  ac_status=$?
5364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365  (exit $ac_status); }
5366{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5367  (eval $ac_compiler -v </dev/null >&5) 2>&5
5368  ac_status=$?
5369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370  (exit $ac_status); }
5371{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5372  (eval $ac_compiler -V </dev/null >&5) 2>&5
5373  ac_status=$?
5374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375  (exit $ac_status); }
5376rm -f a.out
5377
5378# If we don't use `.F' as extension, the preprocessor is not run on the
5379# input file.  (Note that this only needs to work for GNU compilers.)
5380ac_save_ext=$ac_ext
5381ac_ext=F
5382echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5383echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5384if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5385  echo $ECHO_N "(cached) $ECHO_C" >&6
5386else
5387  cat >conftest.$ac_ext <<_ACEOF
5388      program main
5389#ifndef __GNUC__
5390       choke me
5391#endif
5392
5393      end
5394_ACEOF
5395rm -f conftest.$ac_objext
5396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5397  (eval $ac_compile) 2>conftest.er1
5398  ac_status=$?
5399  grep -v '^ *+' conftest.er1 >conftest.err
5400  rm -f conftest.er1
5401  cat conftest.err >&5
5402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403  (exit $ac_status); } &&
5404	 { ac_try='test -z "$ac_f77_werror_flag"
5405			 || test ! -s conftest.err'
5406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407  (eval $ac_try) 2>&5
5408  ac_status=$?
5409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410  (exit $ac_status); }; } &&
5411	 { ac_try='test -s conftest.$ac_objext'
5412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413  (eval $ac_try) 2>&5
5414  ac_status=$?
5415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416  (exit $ac_status); }; }; then
5417  ac_compiler_gnu=yes
5418else
5419  echo "$as_me: failed program was:" >&5
5420sed 's/^/| /' conftest.$ac_ext >&5
5421
5422ac_compiler_gnu=no
5423fi
5424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5425ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5426
5427fi
5428echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5429echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5430ac_ext=$ac_save_ext
5431ac_test_FFLAGS=${FFLAGS+set}
5432ac_save_FFLAGS=$FFLAGS
5433FFLAGS=
5434echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5435echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5436if test "${ac_cv_prog_f77_g+set}" = set; then
5437  echo $ECHO_N "(cached) $ECHO_C" >&6
5438else
5439  FFLAGS=-g
5440cat >conftest.$ac_ext <<_ACEOF
5441      program main
5442
5443      end
5444_ACEOF
5445rm -f conftest.$ac_objext
5446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5447  (eval $ac_compile) 2>conftest.er1
5448  ac_status=$?
5449  grep -v '^ *+' conftest.er1 >conftest.err
5450  rm -f conftest.er1
5451  cat conftest.err >&5
5452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453  (exit $ac_status); } &&
5454	 { ac_try='test -z "$ac_f77_werror_flag"
5455			 || test ! -s conftest.err'
5456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457  (eval $ac_try) 2>&5
5458  ac_status=$?
5459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460  (exit $ac_status); }; } &&
5461	 { ac_try='test -s conftest.$ac_objext'
5462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463  (eval $ac_try) 2>&5
5464  ac_status=$?
5465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466  (exit $ac_status); }; }; then
5467  ac_cv_prog_f77_g=yes
5468else
5469  echo "$as_me: failed program was:" >&5
5470sed 's/^/| /' conftest.$ac_ext >&5
5471
5472ac_cv_prog_f77_g=no
5473fi
5474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5475
5476fi
5477echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5478echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5479if test "$ac_test_FFLAGS" = set; then
5480  FFLAGS=$ac_save_FFLAGS
5481elif test $ac_cv_prog_f77_g = yes; then
5482  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5483    FFLAGS="-g -O2"
5484  else
5485    FFLAGS="-g"
5486  fi
5487else
5488  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5489    FFLAGS="-O2"
5490  else
5491    FFLAGS=
5492  fi
5493fi
5494
5495G77=`test $ac_compiler_gnu = yes && echo yes`
5496ac_ext=c
5497ac_cpp='$CPP $CPPFLAGS'
5498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5500ac_compiler_gnu=$ac_cv_c_compiler_gnu
5501
5502
5503
5504# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5505
5506# find the maximum length of command line arguments
5507echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5508echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5509if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5510  echo $ECHO_N "(cached) $ECHO_C" >&6
5511else
5512    i=0
5513  teststring="ABCD"
5514
5515  case $build_os in
5516  msdosdjgpp*)
5517    # On DJGPP, this test can blow up pretty badly due to problems in libc
5518    # (any single argument exceeding 2000 bytes causes a buffer overrun
5519    # during glob expansion).  Even if it were fixed, the result of this
5520    # check would be larger than it should be.
5521    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5522    ;;
5523
5524  gnu*)
5525    # Under GNU Hurd, this test is not required because there is
5526    # no limit to the length of command line arguments.
5527    # Libtool will interpret -1 as no limit whatsoever
5528    lt_cv_sys_max_cmd_len=-1;
5529    ;;
5530
5531  cygwin* | mingw*)
5532    # On Win9x/ME, this test blows up -- it succeeds, but takes
5533    # about 5 minutes as the teststring grows exponentially.
5534    # Worse, since 9x/ME are not pre-emptively multitasking,
5535    # you end up with a "frozen" computer, even though with patience
5536    # the test eventually succeeds (with a max line length of 256k).
5537    # Instead, let's just punt: use the minimum linelength reported by
5538    # all of the supported platforms: 8192 (on NT/2K/XP).
5539    lt_cv_sys_max_cmd_len=8192;
5540    ;;
5541
5542  amigaos*)
5543    # On AmigaOS with pdksh, this test takes hours, literally.
5544    # So we just punt and use a minimum line length of 8192.
5545    lt_cv_sys_max_cmd_len=8192;
5546    ;;
5547
5548  netbsd* | freebsd* | openbsd* | darwin* )
5549    # This has been around since 386BSD, at least.  Likely further.
5550    if test -x /sbin/sysctl; then
5551      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5552    elif test -x /usr/sbin/sysctl; then
5553      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5554    else
5555      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5556    fi
5557    # And add a safety zone
5558    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5559    ;;
5560
5561 *)
5562    # If test is not a shell built-in, we'll probably end up computing a
5563    # maximum length that is only half of the actual maximum length, but
5564    # we can't tell.
5565    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5566    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5567	       = "XX$teststring") >/dev/null 2>&1 &&
5568	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5569	    lt_cv_sys_max_cmd_len=$new_result &&
5570	    test $i != 17 # 1/2 MB should be enough
5571    do
5572      i=`expr $i + 1`
5573      teststring=$teststring$teststring
5574    done
5575    teststring=
5576    # Add a significant safety factor because C++ compilers can tack on massive
5577    # amounts of additional arguments before passing them to the linker.
5578    # It appears as though 1/2 is a usable value.
5579    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5580    ;;
5581  esac
5582
5583fi
5584
5585if test -n $lt_cv_sys_max_cmd_len ; then
5586  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5587echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5588else
5589  echo "$as_me:$LINENO: result: none" >&5
5590echo "${ECHO_T}none" >&6
5591fi
5592
5593
5594
5595
5596# Check for command to grab the raw symbol name followed by C symbol from nm.
5597echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5598echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5599if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5600  echo $ECHO_N "(cached) $ECHO_C" >&6
5601else
5602
5603# These are sane defaults that work on at least a few old systems.
5604# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5605
5606# Character class describing NM global symbol codes.
5607symcode='[BCDEGRST]'
5608
5609# Regexp to match symbols that can be accessed directly from C.
5610sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5611
5612# Transform the above into a raw symbol and a C symbol.
5613symxfrm='\1 \2\3 \3'
5614
5615# Transform an extracted symbol line into a proper C declaration
5616lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5617
5618# Transform an extracted symbol line into symbol name and symbol address
5619lt_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'"
5620
5621# Define system-specific variables.
5622case $host_os in
5623aix*)
5624  symcode='[BCDT]'
5625  ;;
5626cygwin* | mingw* | pw32*)
5627  symcode='[ABCDGISTW]'
5628  ;;
5629hpux*) # Its linker distinguishes data from code symbols
5630  if test "$host_cpu" = ia64; then
5631    symcode='[ABCDEGRST]'
5632  fi
5633  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5634  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'"
5635  ;;
5636linux*)
5637  if test "$host_cpu" = ia64; then
5638    symcode='[ABCDGIRSTW]'
5639    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5640    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'"
5641  fi
5642  ;;
5643irix* | nonstopux*)
5644  symcode='[BCDEGRST]'
5645  ;;
5646osf*)
5647  symcode='[BCDEGQRST]'
5648  ;;
5649solaris* | sysv5*)
5650  symcode='[BDRT]'
5651  ;;
5652sysv4)
5653  symcode='[DFNSTU]'
5654  ;;
5655esac
5656
5657# Handle CRLF in mingw tool chain
5658opt_cr=
5659case $build_os in
5660mingw*)
5661  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5662  ;;
5663esac
5664
5665# If we're using GNU nm, then use its standard symbol codes.
5666case `$NM -V 2>&1` in
5667*GNU* | *'with BFD'*)
5668  symcode='[ABCDGIRSTW]' ;;
5669esac
5670
5671# Try without a prefix undercore, then with it.
5672for ac_symprfx in "" "_"; do
5673
5674  # Write the raw and C identifiers.
5675  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5676
5677  # Check to see that the pipe works correctly.
5678  pipe_works=no
5679
5680  rm -f conftest*
5681  cat > conftest.$ac_ext <<EOF
5682#ifdef __cplusplus
5683extern "C" {
5684#endif
5685char nm_test_var;
5686void nm_test_func(){}
5687#ifdef __cplusplus
5688}
5689#endif
5690int main(){nm_test_var='a';nm_test_func();return(0);}
5691EOF
5692
5693  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5694  (eval $ac_compile) 2>&5
5695  ac_status=$?
5696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697  (exit $ac_status); }; then
5698    # Now try to grab the symbols.
5699    nlist=conftest.nm
5700    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5701  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5702  ac_status=$?
5703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704  (exit $ac_status); } && test -s "$nlist"; then
5705      # Try sorting and uniquifying the output.
5706      if sort "$nlist" | uniq > "$nlist"T; then
5707	mv -f "$nlist"T "$nlist"
5708      else
5709	rm -f "$nlist"T
5710      fi
5711
5712      # Make sure that we snagged all the symbols we need.
5713      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5714	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5715	  cat <<EOF > conftest.$ac_ext
5716#ifdef __cplusplus
5717extern "C" {
5718#endif
5719
5720EOF
5721	  # Now generate the symbol file.
5722	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5723
5724	  cat <<EOF >> conftest.$ac_ext
5725#if defined (__STDC__) && __STDC__
5726# define lt_ptr_t void *
5727#else
5728# define lt_ptr_t char *
5729# define const
5730#endif
5731
5732/* The mapping between symbol names and symbols. */
5733const struct {
5734  const char *name;
5735  lt_ptr_t address;
5736}
5737lt_preloaded_symbols[] =
5738{
5739EOF
5740	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5741	  cat <<\EOF >> conftest.$ac_ext
5742  {0, (lt_ptr_t) 0}
5743};
5744
5745#ifdef __cplusplus
5746}
5747#endif
5748EOF
5749	  # Now try linking the two files.
5750	  mv conftest.$ac_objext conftstm.$ac_objext
5751	  lt_save_LIBS="$LIBS"
5752	  lt_save_CFLAGS="$CFLAGS"
5753	  LIBS="conftstm.$ac_objext"
5754	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5755	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5756  (eval $ac_link) 2>&5
5757  ac_status=$?
5758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5760	    pipe_works=yes
5761	  fi
5762	  LIBS="$lt_save_LIBS"
5763	  CFLAGS="$lt_save_CFLAGS"
5764	else
5765	  echo "cannot find nm_test_func in $nlist" >&5
5766	fi
5767      else
5768	echo "cannot find nm_test_var in $nlist" >&5
5769      fi
5770    else
5771      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5772    fi
5773  else
5774    echo "$progname: failed program was:" >&5
5775    cat conftest.$ac_ext >&5
5776  fi
5777  rm -f conftest* conftst*
5778
5779  # Do not use the global_symbol_pipe unless it works.
5780  if test "$pipe_works" = yes; then
5781    break
5782  else
5783    lt_cv_sys_global_symbol_pipe=
5784  fi
5785done
5786
5787fi
5788
5789if test -z "$lt_cv_sys_global_symbol_pipe"; then
5790  lt_cv_sys_global_symbol_to_cdecl=
5791fi
5792if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5793  echo "$as_me:$LINENO: result: failed" >&5
5794echo "${ECHO_T}failed" >&6
5795else
5796  echo "$as_me:$LINENO: result: ok" >&5
5797echo "${ECHO_T}ok" >&6
5798fi
5799
5800echo "$as_me:$LINENO: checking for objdir" >&5
5801echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5802if test "${lt_cv_objdir+set}" = set; then
5803  echo $ECHO_N "(cached) $ECHO_C" >&6
5804else
5805  rm -f .libs 2>/dev/null
5806mkdir .libs 2>/dev/null
5807if test -d .libs; then
5808  lt_cv_objdir=.libs
5809else
5810  # MS-DOS does not allow filenames that begin with a dot.
5811  lt_cv_objdir=_libs
5812fi
5813rmdir .libs 2>/dev/null
5814fi
5815echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5816echo "${ECHO_T}$lt_cv_objdir" >&6
5817objdir=$lt_cv_objdir
5818
5819
5820
5821
5822
5823case $host_os in
5824aix3*)
5825  # AIX sometimes has problems with the GCC collect2 program.  For some
5826  # reason, if we set the COLLECT_NAMES environment variable, the problems
5827  # vanish in a puff of smoke.
5828  if test "X${COLLECT_NAMES+set}" != Xset; then
5829    COLLECT_NAMES=
5830    export COLLECT_NAMES
5831  fi
5832  ;;
5833esac
5834
5835# Sed substitution that helps us do robust quoting.  It backslashifies
5836# metacharacters that are still active within double-quoted strings.
5837Xsed='sed -e s/^X//'
5838sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5839
5840# Same as above, but do not quote variable references.
5841double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5842
5843# Sed substitution to delay expansion of an escaped shell variable in a
5844# double_quote_subst'ed string.
5845delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5846
5847# Sed substitution to avoid accidental globbing in evaled expressions
5848no_glob_subst='s/\*/\\\*/g'
5849
5850# Constants:
5851rm="rm -f"
5852
5853# Global variables:
5854default_ofile=libtool
5855can_build_shared=yes
5856
5857# All known linkers require a `.a' archive for static linking (except M$VC,
5858# which needs '.lib').
5859libext=a
5860ltmain="$ac_aux_dir/ltmain.sh"
5861ofile="$default_ofile"
5862with_gnu_ld="$lt_cv_prog_gnu_ld"
5863
5864if test -n "$ac_tool_prefix"; then
5865  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5866set dummy ${ac_tool_prefix}ar; ac_word=$2
5867echo "$as_me:$LINENO: checking for $ac_word" >&5
5868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5869if test "${ac_cv_prog_AR+set}" = set; then
5870  echo $ECHO_N "(cached) $ECHO_C" >&6
5871else
5872  if test -n "$AR"; then
5873  ac_cv_prog_AR="$AR" # Let the user override the test.
5874else
5875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876for as_dir in $PATH
5877do
5878  IFS=$as_save_IFS
5879  test -z "$as_dir" && as_dir=.
5880  for ac_exec_ext in '' $ac_executable_extensions; do
5881  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5882    ac_cv_prog_AR="${ac_tool_prefix}ar"
5883    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5884    break 2
5885  fi
5886done
5887done
5888
5889fi
5890fi
5891AR=$ac_cv_prog_AR
5892if test -n "$AR"; then
5893  echo "$as_me:$LINENO: result: $AR" >&5
5894echo "${ECHO_T}$AR" >&6
5895else
5896  echo "$as_me:$LINENO: result: no" >&5
5897echo "${ECHO_T}no" >&6
5898fi
5899
5900fi
5901if test -z "$ac_cv_prog_AR"; then
5902  ac_ct_AR=$AR
5903  # Extract the first word of "ar", so it can be a program name with args.
5904set dummy ar; ac_word=$2
5905echo "$as_me:$LINENO: checking for $ac_word" >&5
5906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5907if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5908  echo $ECHO_N "(cached) $ECHO_C" >&6
5909else
5910  if test -n "$ac_ct_AR"; then
5911  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5912else
5913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914for as_dir in $PATH
5915do
5916  IFS=$as_save_IFS
5917  test -z "$as_dir" && as_dir=.
5918  for ac_exec_ext in '' $ac_executable_extensions; do
5919  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5920    ac_cv_prog_ac_ct_AR="ar"
5921    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922    break 2
5923  fi
5924done
5925done
5926
5927  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5928fi
5929fi
5930ac_ct_AR=$ac_cv_prog_ac_ct_AR
5931if test -n "$ac_ct_AR"; then
5932  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5933echo "${ECHO_T}$ac_ct_AR" >&6
5934else
5935  echo "$as_me:$LINENO: result: no" >&5
5936echo "${ECHO_T}no" >&6
5937fi
5938
5939  AR=$ac_ct_AR
5940else
5941  AR="$ac_cv_prog_AR"
5942fi
5943
5944if test -n "$ac_tool_prefix"; then
5945  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5946set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5947echo "$as_me:$LINENO: checking for $ac_word" >&5
5948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5949if test "${ac_cv_prog_RANLIB+set}" = set; then
5950  echo $ECHO_N "(cached) $ECHO_C" >&6
5951else
5952  if test -n "$RANLIB"; then
5953  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5954else
5955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956for as_dir in $PATH
5957do
5958  IFS=$as_save_IFS
5959  test -z "$as_dir" && as_dir=.
5960  for ac_exec_ext in '' $ac_executable_extensions; do
5961  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5962    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5963    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964    break 2
5965  fi
5966done
5967done
5968
5969fi
5970fi
5971RANLIB=$ac_cv_prog_RANLIB
5972if test -n "$RANLIB"; then
5973  echo "$as_me:$LINENO: result: $RANLIB" >&5
5974echo "${ECHO_T}$RANLIB" >&6
5975else
5976  echo "$as_me:$LINENO: result: no" >&5
5977echo "${ECHO_T}no" >&6
5978fi
5979
5980fi
5981if test -z "$ac_cv_prog_RANLIB"; then
5982  ac_ct_RANLIB=$RANLIB
5983  # Extract the first word of "ranlib", so it can be a program name with args.
5984set dummy ranlib; ac_word=$2
5985echo "$as_me:$LINENO: checking for $ac_word" >&5
5986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5987if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5988  echo $ECHO_N "(cached) $ECHO_C" >&6
5989else
5990  if test -n "$ac_ct_RANLIB"; then
5991  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5992else
5993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994for as_dir in $PATH
5995do
5996  IFS=$as_save_IFS
5997  test -z "$as_dir" && as_dir=.
5998  for ac_exec_ext in '' $ac_executable_extensions; do
5999  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000    ac_cv_prog_ac_ct_RANLIB="ranlib"
6001    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6002    break 2
6003  fi
6004done
6005done
6006
6007  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6008fi
6009fi
6010ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6011if test -n "$ac_ct_RANLIB"; then
6012  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6013echo "${ECHO_T}$ac_ct_RANLIB" >&6
6014else
6015  echo "$as_me:$LINENO: result: no" >&5
6016echo "${ECHO_T}no" >&6
6017fi
6018
6019  RANLIB=$ac_ct_RANLIB
6020else
6021  RANLIB="$ac_cv_prog_RANLIB"
6022fi
6023
6024if test -n "$ac_tool_prefix"; then
6025  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6026set dummy ${ac_tool_prefix}strip; ac_word=$2
6027echo "$as_me:$LINENO: checking for $ac_word" >&5
6028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6029if test "${ac_cv_prog_STRIP+set}" = set; then
6030  echo $ECHO_N "(cached) $ECHO_C" >&6
6031else
6032  if test -n "$STRIP"; then
6033  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6034else
6035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036for as_dir in $PATH
6037do
6038  IFS=$as_save_IFS
6039  test -z "$as_dir" && as_dir=.
6040  for ac_exec_ext in '' $ac_executable_extensions; do
6041  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6042    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6043    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6044    break 2
6045  fi
6046done
6047done
6048
6049fi
6050fi
6051STRIP=$ac_cv_prog_STRIP
6052if test -n "$STRIP"; then
6053  echo "$as_me:$LINENO: result: $STRIP" >&5
6054echo "${ECHO_T}$STRIP" >&6
6055else
6056  echo "$as_me:$LINENO: result: no" >&5
6057echo "${ECHO_T}no" >&6
6058fi
6059
6060fi
6061if test -z "$ac_cv_prog_STRIP"; then
6062  ac_ct_STRIP=$STRIP
6063  # Extract the first word of "strip", so it can be a program name with args.
6064set dummy strip; ac_word=$2
6065echo "$as_me:$LINENO: checking for $ac_word" >&5
6066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6067if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6068  echo $ECHO_N "(cached) $ECHO_C" >&6
6069else
6070  if test -n "$ac_ct_STRIP"; then
6071  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6072else
6073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074for as_dir in $PATH
6075do
6076  IFS=$as_save_IFS
6077  test -z "$as_dir" && as_dir=.
6078  for ac_exec_ext in '' $ac_executable_extensions; do
6079  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6080    ac_cv_prog_ac_ct_STRIP="strip"
6081    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6082    break 2
6083  fi
6084done
6085done
6086
6087  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6088fi
6089fi
6090ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6091if test -n "$ac_ct_STRIP"; then
6092  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6093echo "${ECHO_T}$ac_ct_STRIP" >&6
6094else
6095  echo "$as_me:$LINENO: result: no" >&5
6096echo "${ECHO_T}no" >&6
6097fi
6098
6099  STRIP=$ac_ct_STRIP
6100else
6101  STRIP="$ac_cv_prog_STRIP"
6102fi
6103
6104
6105old_CC="$CC"
6106old_CFLAGS="$CFLAGS"
6107
6108# Set sane defaults for various variables
6109test -z "$AR" && AR=ar
6110test -z "$AR_FLAGS" && AR_FLAGS=cru
6111test -z "$AS" && AS=as
6112test -z "$CC" && CC=cc
6113test -z "$LTCC" && LTCC=$CC
6114test -z "$DLLTOOL" && DLLTOOL=dlltool
6115test -z "$LD" && LD=ld
6116test -z "$LN_S" && LN_S="ln -s"
6117test -z "$MAGIC_CMD" && MAGIC_CMD=file
6118test -z "$NM" && NM=nm
6119test -z "$SED" && SED=sed
6120test -z "$OBJDUMP" && OBJDUMP=objdump
6121test -z "$RANLIB" && RANLIB=:
6122test -z "$STRIP" && STRIP=:
6123test -z "$ac_objext" && ac_objext=o
6124
6125# Determine commands to create old-style static archives.
6126old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6127old_postinstall_cmds='chmod 644 $oldlib'
6128old_postuninstall_cmds=
6129
6130if test -n "$RANLIB"; then
6131  case $host_os in
6132  openbsd*)
6133    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6134    ;;
6135  *)
6136    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6137    ;;
6138  esac
6139  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6140fi
6141
6142cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6143
6144# Only perform the check for file, if the check method requires it
6145case $deplibs_check_method in
6146file_magic*)
6147  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6148    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6149echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6150if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6151  echo $ECHO_N "(cached) $ECHO_C" >&6
6152else
6153  case $MAGIC_CMD in
6154[\\/*] |  ?:[\\/]*)
6155  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6156  ;;
6157*)
6158  lt_save_MAGIC_CMD="$MAGIC_CMD"
6159  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6160  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6161  for ac_dir in $ac_dummy; do
6162    IFS="$lt_save_ifs"
6163    test -z "$ac_dir" && ac_dir=.
6164    if test -f $ac_dir/${ac_tool_prefix}file; then
6165      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6166      if test -n "$file_magic_test_file"; then
6167	case $deplibs_check_method in
6168	"file_magic "*)
6169	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6170	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6171	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6172	    $EGREP "$file_magic_regex" > /dev/null; then
6173	    :
6174	  else
6175	    cat <<EOF 1>&2
6176
6177*** Warning: the command libtool uses to detect shared libraries,
6178*** $file_magic_cmd, produces output that libtool cannot recognize.
6179*** The result is that libtool may fail to recognize shared libraries
6180*** as such.  This will affect the creation of libtool libraries that
6181*** depend on shared libraries, but programs linked with such libtool
6182*** libraries will work regardless of this problem.  Nevertheless, you
6183*** may want to report the problem to your system manager and/or to
6184*** bug-libtool@gnu.org
6185
6186EOF
6187	  fi ;;
6188	esac
6189      fi
6190      break
6191    fi
6192  done
6193  IFS="$lt_save_ifs"
6194  MAGIC_CMD="$lt_save_MAGIC_CMD"
6195  ;;
6196esac
6197fi
6198
6199MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6200if test -n "$MAGIC_CMD"; then
6201  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6202echo "${ECHO_T}$MAGIC_CMD" >&6
6203else
6204  echo "$as_me:$LINENO: result: no" >&5
6205echo "${ECHO_T}no" >&6
6206fi
6207
6208if test -z "$lt_cv_path_MAGIC_CMD"; then
6209  if test -n "$ac_tool_prefix"; then
6210    echo "$as_me:$LINENO: checking for file" >&5
6211echo $ECHO_N "checking for file... $ECHO_C" >&6
6212if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6213  echo $ECHO_N "(cached) $ECHO_C" >&6
6214else
6215  case $MAGIC_CMD in
6216[\\/*] |  ?:[\\/]*)
6217  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6218  ;;
6219*)
6220  lt_save_MAGIC_CMD="$MAGIC_CMD"
6221  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6222  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6223  for ac_dir in $ac_dummy; do
6224    IFS="$lt_save_ifs"
6225    test -z "$ac_dir" && ac_dir=.
6226    if test -f $ac_dir/file; then
6227      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6228      if test -n "$file_magic_test_file"; then
6229	case $deplibs_check_method in
6230	"file_magic "*)
6231	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6232	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6233	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6234	    $EGREP "$file_magic_regex" > /dev/null; then
6235	    :
6236	  else
6237	    cat <<EOF 1>&2
6238
6239*** Warning: the command libtool uses to detect shared libraries,
6240*** $file_magic_cmd, produces output that libtool cannot recognize.
6241*** The result is that libtool may fail to recognize shared libraries
6242*** as such.  This will affect the creation of libtool libraries that
6243*** depend on shared libraries, but programs linked with such libtool
6244*** libraries will work regardless of this problem.  Nevertheless, you
6245*** may want to report the problem to your system manager and/or to
6246*** bug-libtool@gnu.org
6247
6248EOF
6249	  fi ;;
6250	esac
6251      fi
6252      break
6253    fi
6254  done
6255  IFS="$lt_save_ifs"
6256  MAGIC_CMD="$lt_save_MAGIC_CMD"
6257  ;;
6258esac
6259fi
6260
6261MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6262if test -n "$MAGIC_CMD"; then
6263  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6264echo "${ECHO_T}$MAGIC_CMD" >&6
6265else
6266  echo "$as_me:$LINENO: result: no" >&5
6267echo "${ECHO_T}no" >&6
6268fi
6269
6270  else
6271    MAGIC_CMD=:
6272  fi
6273fi
6274
6275  fi
6276  ;;
6277esac
6278
6279enable_dlopen=no
6280enable_win32_dll=no
6281
6282# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6283if test "${enable_libtool_lock+set}" = set; then
6284  enableval="$enable_libtool_lock"
6285
6286fi;
6287test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6288
6289
6290# Check whether --with-pic or --without-pic was given.
6291if test "${with_pic+set}" = set; then
6292  withval="$with_pic"
6293  pic_mode="$withval"
6294else
6295  pic_mode=default
6296fi;
6297test -z "$pic_mode" && pic_mode=default
6298
6299# Use C for the default configuration in the libtool script
6300tagname=
6301lt_save_CC="$CC"
6302ac_ext=c
6303ac_cpp='$CPP $CPPFLAGS'
6304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6306ac_compiler_gnu=$ac_cv_c_compiler_gnu
6307
6308
6309# Source file extension for C test sources.
6310ac_ext=c
6311
6312# Object file extension for compiled C test sources.
6313objext=o
6314objext=$objext
6315
6316# Code to be used in simple compile tests
6317lt_simple_compile_test_code="int some_variable = 0;\n"
6318
6319# Code to be used in simple link tests
6320lt_simple_link_test_code='int main(){return(0);}\n'
6321
6322
6323# If no C compiler was specified, use CC.
6324LTCC=${LTCC-"$CC"}
6325
6326# Allow CC to be a program name with arguments.
6327compiler=$CC
6328
6329
6330#
6331# Check for any special shared library compilation flags.
6332#
6333lt_prog_cc_shlib=
6334if test "$GCC" = no; then
6335  case $host_os in
6336  sco3.2v5*)
6337    lt_prog_cc_shlib='-belf'
6338    ;;
6339  esac
6340fi
6341if test -n "$lt_prog_cc_shlib"; then
6342  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6343echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6344  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6345  else
6346    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6347echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6348    lt_cv_prog_cc_can_build_shared=no
6349  fi
6350fi
6351
6352
6353#
6354# Check to make sure the static flag actually works.
6355#
6356echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6357echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6358if test "${lt_prog_compiler_static_works+set}" = set; then
6359  echo $ECHO_N "(cached) $ECHO_C" >&6
6360else
6361  lt_prog_compiler_static_works=no
6362   save_LDFLAGS="$LDFLAGS"
6363   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6364   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6365   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6366     # The compiler can only warn and ignore the option if not recognized
6367     # So say no if there are warnings
6368     if test -s conftest.err; then
6369       # Append any errors to the config.log.
6370       cat conftest.err 1>&5
6371     else
6372       lt_prog_compiler_static_works=yes
6373     fi
6374   fi
6375   $rm conftest*
6376   LDFLAGS="$save_LDFLAGS"
6377
6378fi
6379echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6380echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6381
6382if test x"$lt_prog_compiler_static_works" = xyes; then
6383    :
6384else
6385    lt_prog_compiler_static=
6386fi
6387
6388
6389
6390
6391lt_prog_compiler_no_builtin_flag=
6392
6393if test "$GCC" = yes; then
6394  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6395
6396
6397echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6398echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6399if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6400  echo $ECHO_N "(cached) $ECHO_C" >&6
6401else
6402  lt_cv_prog_compiler_rtti_exceptions=no
6403  ac_outfile=conftest.$ac_objext
6404   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6405   lt_compiler_flag="-fno-rtti -fno-exceptions"
6406   # Insert the option either (1) after the last *FLAGS variable, or
6407   # (2) before a word containing "conftest.", or (3) at the end.
6408   # Note that $ac_compile itself does not contain backslashes and begins
6409   # with a dollar sign (not a hyphen), so the echo should work correctly.
6410   # The option is referenced via a variable to avoid confusing sed.
6411   lt_compile=`echo "$ac_compile" | $SED \
6412   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6413   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6414   -e 's:$: $lt_compiler_flag:'`
6415   (eval echo "\"\$as_me:6415: $lt_compile\"" >&5)
6416   (eval "$lt_compile" 2>conftest.err)
6417   ac_status=$?
6418   cat conftest.err >&5
6419   echo "$as_me:6419: \$? = $ac_status" >&5
6420   if (exit $ac_status) && test -s "$ac_outfile"; then
6421     # The compiler can only warn and ignore the option if not recognized
6422     # So say no if there are warnings
6423     if test ! -s conftest.err; then
6424       lt_cv_prog_compiler_rtti_exceptions=yes
6425     fi
6426   fi
6427   $rm conftest*
6428
6429fi
6430echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6431echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6432
6433if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6434    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6435else
6436    :
6437fi
6438
6439fi
6440
6441lt_prog_compiler_wl=
6442lt_prog_compiler_pic=
6443lt_prog_compiler_static=
6444
6445echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6446echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6447
6448  if test "$GCC" = yes; then
6449    lt_prog_compiler_wl='-Wl,'
6450    lt_prog_compiler_static='-static'
6451
6452    case $host_os in
6453      aix*)
6454      # All AIX code is PIC.
6455      if test "$host_cpu" = ia64; then
6456	# AIX 5 now supports IA64 processor
6457	lt_prog_compiler_static='-Bstatic'
6458      fi
6459      ;;
6460
6461    amigaos*)
6462      # FIXME: we need at least 68020 code to build shared libraries, but
6463      # adding the `-m68020' flag to GCC prevents building anything better,
6464      # like `-m68040'.
6465      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6466      ;;
6467
6468    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6469      # PIC is the default for these OSes.
6470      ;;
6471
6472    mingw* | pw32* | os2*)
6473      # This hack is so that the source file can tell whether it is being
6474      # built for inclusion in a dll (and should export symbols for example).
6475      lt_prog_compiler_pic='-DDLL_EXPORT'
6476      ;;
6477
6478    darwin* | rhapsody*)
6479      # PIC is the default on this platform
6480      # Common symbols not allowed in MH_DYLIB files
6481      lt_prog_compiler_pic='-fno-common'
6482      ;;
6483
6484    msdosdjgpp*)
6485      # Just because we use GCC doesn't mean we suddenly get shared libraries
6486      # on systems that don't support them.
6487      lt_prog_compiler_can_build_shared=no
6488      enable_shared=no
6489      ;;
6490
6491    sysv4*MP*)
6492      if test -d /usr/nec; then
6493	lt_prog_compiler_pic=-Kconform_pic
6494      fi
6495      ;;
6496
6497    hpux*)
6498      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6499      # not for PA HP-UX.
6500      case "$host_cpu" in
6501      hppa*64*|ia64*)
6502	# +Z the default
6503	;;
6504      *)
6505	lt_prog_compiler_pic='-fPIC'
6506	;;
6507      esac
6508      ;;
6509
6510    *)
6511      lt_prog_compiler_pic='-fPIC'
6512      ;;
6513    esac
6514  else
6515    # PORTME Check for flag to pass linker flags through the system compiler.
6516    case $host_os in
6517    aix*)
6518      lt_prog_compiler_wl='-Wl,'
6519      if test "$host_cpu" = ia64; then
6520	# AIX 5 now supports IA64 processor
6521	lt_prog_compiler_static='-Bstatic'
6522      else
6523	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6524      fi
6525      ;;
6526      darwin*)
6527        # PIC is the default on this platform
6528        # Common symbols not allowed in MH_DYLIB files
6529       case "$cc_basename" in
6530         xlc*)
6531         lt_prog_compiler_pic='-qnocommon'
6532         lt_prog_compiler_wl='-Wl,'
6533         ;;
6534       esac
6535       ;;
6536
6537    mingw* | pw32* | os2*)
6538      # This hack is so that the source file can tell whether it is being
6539      # built for inclusion in a dll (and should export symbols for example).
6540      lt_prog_compiler_pic='-DDLL_EXPORT'
6541      ;;
6542
6543    hpux9* | hpux10* | hpux11*)
6544      lt_prog_compiler_wl='-Wl,'
6545      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6546      # not for PA HP-UX.
6547      case "$host_cpu" in
6548      hppa*64*|ia64*)
6549	# +Z the default
6550	;;
6551      *)
6552	lt_prog_compiler_pic='+Z'
6553	;;
6554      esac
6555      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6556      lt_prog_compiler_static='${wl}-a ${wl}archive'
6557      ;;
6558
6559    irix5* | irix6* | nonstopux*)
6560      lt_prog_compiler_wl='-Wl,'
6561      # PIC (with -KPIC) is the default.
6562      lt_prog_compiler_static='-non_shared'
6563      ;;
6564
6565    newsos6)
6566      lt_prog_compiler_pic='-KPIC'
6567      lt_prog_compiler_static='-Bstatic'
6568      ;;
6569
6570    linux*)
6571      case $CC in
6572      icc* | ecc*)
6573	lt_prog_compiler_wl='-Wl,'
6574	lt_prog_compiler_pic='-KPIC'
6575	lt_prog_compiler_static='-static'
6576        ;;
6577      ccc*)
6578        lt_prog_compiler_wl='-Wl,'
6579        # All Alpha code is PIC.
6580        lt_prog_compiler_static='-non_shared'
6581        ;;
6582      esac
6583      ;;
6584
6585    osf3* | osf4* | osf5*)
6586      lt_prog_compiler_wl='-Wl,'
6587      # All OSF/1 code is PIC.
6588      lt_prog_compiler_static='-non_shared'
6589      ;;
6590
6591    sco3.2v5*)
6592      lt_prog_compiler_pic='-Kpic'
6593      lt_prog_compiler_static='-dn'
6594      ;;
6595
6596    solaris*)
6597      lt_prog_compiler_wl='-Wl,'
6598      lt_prog_compiler_pic='-KPIC'
6599      lt_prog_compiler_static='-Bstatic'
6600      ;;
6601
6602    sunos4*)
6603      lt_prog_compiler_wl='-Qoption ld '
6604      lt_prog_compiler_pic='-PIC'
6605      lt_prog_compiler_static='-Bstatic'
6606      ;;
6607
6608    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6609      lt_prog_compiler_wl='-Wl,'
6610      lt_prog_compiler_pic='-KPIC'
6611      lt_prog_compiler_static='-Bstatic'
6612      ;;
6613
6614    sysv4*MP*)
6615      if test -d /usr/nec ;then
6616	lt_prog_compiler_pic='-Kconform_pic'
6617	lt_prog_compiler_static='-Bstatic'
6618      fi
6619      ;;
6620
6621    uts4*)
6622      lt_prog_compiler_pic='-pic'
6623      lt_prog_compiler_static='-Bstatic'
6624      ;;
6625
6626    *)
6627      lt_prog_compiler_can_build_shared=no
6628      ;;
6629    esac
6630  fi
6631
6632echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6633echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6634
6635#
6636# Check to make sure the PIC flag actually works.
6637#
6638if test -n "$lt_prog_compiler_pic"; then
6639
6640echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6641echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6642if test "${lt_prog_compiler_pic_works+set}" = set; then
6643  echo $ECHO_N "(cached) $ECHO_C" >&6
6644else
6645  lt_prog_compiler_pic_works=no
6646  ac_outfile=conftest.$ac_objext
6647   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6648   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6649   # Insert the option either (1) after the last *FLAGS variable, or
6650   # (2) before a word containing "conftest.", or (3) at the end.
6651   # Note that $ac_compile itself does not contain backslashes and begins
6652   # with a dollar sign (not a hyphen), so the echo should work correctly.
6653   # The option is referenced via a variable to avoid confusing sed.
6654   lt_compile=`echo "$ac_compile" | $SED \
6655   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6656   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6657   -e 's:$: $lt_compiler_flag:'`
6658   (eval echo "\"\$as_me:6658: $lt_compile\"" >&5)
6659   (eval "$lt_compile" 2>conftest.err)
6660   ac_status=$?
6661   cat conftest.err >&5
6662   echo "$as_me:6662: \$? = $ac_status" >&5
6663   if (exit $ac_status) && test -s "$ac_outfile"; then
6664     # The compiler can only warn and ignore the option if not recognized
6665     # So say no if there are warnings
6666     if test ! -s conftest.err; then
6667       lt_prog_compiler_pic_works=yes
6668     fi
6669   fi
6670   $rm conftest*
6671
6672fi
6673echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6674echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6675
6676if test x"$lt_prog_compiler_pic_works" = xyes; then
6677    case $lt_prog_compiler_pic in
6678     "" | " "*) ;;
6679     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6680     esac
6681else
6682    lt_prog_compiler_pic=
6683     lt_prog_compiler_can_build_shared=no
6684fi
6685
6686fi
6687case "$host_os" in
6688  # For platforms which do not support PIC, -DPIC is meaningless:
6689  *djgpp*)
6690    lt_prog_compiler_pic=
6691    ;;
6692  *)
6693    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6694    ;;
6695esac
6696
6697echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6698echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6699if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6700  echo $ECHO_N "(cached) $ECHO_C" >&6
6701else
6702  lt_cv_prog_compiler_c_o=no
6703   $rm -r conftest 2>/dev/null
6704   mkdir conftest
6705   cd conftest
6706   mkdir out
6707   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6708
6709   lt_compiler_flag="-o out/conftest2.$ac_objext"
6710   # Insert the option either (1) after the last *FLAGS variable, or
6711   # (2) before a word containing "conftest.", or (3) at the end.
6712   # Note that $ac_compile itself does not contain backslashes and begins
6713   # with a dollar sign (not a hyphen), so the echo should work correctly.
6714   lt_compile=`echo "$ac_compile" | $SED \
6715   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6716   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6717   -e 's:$: $lt_compiler_flag:'`
6718   (eval echo "\"\$as_me:6718: $lt_compile\"" >&5)
6719   (eval "$lt_compile" 2>out/conftest.err)
6720   ac_status=$?
6721   cat out/conftest.err >&5
6722   echo "$as_me:6722: \$? = $ac_status" >&5
6723   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6724   then
6725     # The compiler can only warn and ignore the option if not recognized
6726     # So say no if there are warnings
6727     if test ! -s out/conftest.err; then
6728       lt_cv_prog_compiler_c_o=yes
6729     fi
6730   fi
6731   chmod u+w .
6732   $rm conftest*
6733   # SGI C++ compiler will create directory out/ii_files/ for
6734   # template instantiation
6735   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6736   $rm out/* && rmdir out
6737   cd ..
6738   rmdir conftest
6739   $rm conftest*
6740
6741fi
6742echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6743echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6744
6745
6746hard_links="nottested"
6747if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6748  # do not overwrite the value of need_locks provided by the user
6749  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6750echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6751  hard_links=yes
6752  $rm conftest*
6753  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6754  touch conftest.a
6755  ln conftest.a conftest.b 2>&5 || hard_links=no
6756  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6757  echo "$as_me:$LINENO: result: $hard_links" >&5
6758echo "${ECHO_T}$hard_links" >&6
6759  if test "$hard_links" = no; then
6760    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6761echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6762    need_locks=warn
6763  fi
6764else
6765  need_locks=no
6766fi
6767
6768echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6769echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6770
6771  runpath_var=
6772  allow_undefined_flag=
6773  enable_shared_with_static_runtimes=no
6774  archive_cmds=
6775  archive_expsym_cmds=
6776  old_archive_From_new_cmds=
6777  old_archive_from_expsyms_cmds=
6778  export_dynamic_flag_spec=
6779  whole_archive_flag_spec=
6780  thread_safe_flag_spec=
6781  hardcode_libdir_flag_spec=
6782  hardcode_libdir_flag_spec_ld=
6783  hardcode_libdir_separator=
6784  hardcode_direct=no
6785  hardcode_minus_L=no
6786  hardcode_shlibpath_var=unsupported
6787  link_all_deplibs=unknown
6788  hardcode_automatic=no
6789  module_cmds=
6790  module_expsym_cmds=
6791  always_export_symbols=no
6792  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6793  # include_expsyms should be a list of space-separated symbols to be *always*
6794  # included in the symbol list
6795  include_expsyms=
6796  # exclude_expsyms can be an extended regexp of symbols to exclude
6797  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6798  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6799  # as well as any symbol that contains `d'.
6800  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6801  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6802  # platforms (ab)use it in PIC code, but their linkers get confused if
6803  # the symbol is explicitly referenced.  Since portable code cannot
6804  # rely on this symbol name, it's probably fine to never include it in
6805  # preloaded symbol tables.
6806  extract_expsyms_cmds=
6807
6808  case $host_os in
6809  cygwin* | mingw* | pw32*)
6810    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6811    # When not using gcc, we currently assume that we are using
6812    # Microsoft Visual C++.
6813    if test "$GCC" != yes; then
6814      with_gnu_ld=no
6815    fi
6816    ;;
6817  openbsd*)
6818    with_gnu_ld=no
6819    ;;
6820  esac
6821
6822  ld_shlibs=yes
6823  if test "$with_gnu_ld" = yes; then
6824    # If archive_cmds runs LD, not CC, wlarc should be empty
6825    wlarc='${wl}'
6826
6827    # See if GNU ld supports shared libraries.
6828    case $host_os in
6829    aix3* | aix4* | aix5*)
6830      # On AIX/PPC, the GNU linker is very broken
6831      if test "$host_cpu" != ia64; then
6832	ld_shlibs=no
6833	cat <<EOF 1>&2
6834
6835*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6836*** to be unable to reliably create shared libraries on AIX.
6837*** Therefore, libtool is disabling shared libraries support.  If you
6838*** really care for shared libraries, you may want to modify your PATH
6839*** so that a non-GNU linker is found, and then restart.
6840
6841EOF
6842      fi
6843      ;;
6844
6845    amigaos*)
6846      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)'
6847      hardcode_libdir_flag_spec='-L$libdir'
6848      hardcode_minus_L=yes
6849
6850      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6851      # that the semantics of dynamic libraries on AmigaOS, at least up
6852      # to version 4, is to share data among multiple programs linked
6853      # with the same dynamic library.  Since this doesn't match the
6854      # behavior of shared libraries on other platforms, we can't use
6855      # them.
6856      ld_shlibs=no
6857      ;;
6858
6859    beos*)
6860      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6861	allow_undefined_flag=unsupported
6862	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6863	# support --undefined.  This deserves some investigation.  FIXME
6864	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6865      else
6866	ld_shlibs=no
6867      fi
6868      ;;
6869
6870    cygwin* | mingw* | pw32*)
6871      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6872      # as there is no search path for DLLs.
6873      hardcode_libdir_flag_spec='-L$libdir'
6874      allow_undefined_flag=unsupported
6875      always_export_symbols=no
6876      enable_shared_with_static_runtimes=yes
6877      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6878
6879      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6880        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6881	# If the export-symbols file already is a .def file (1st line
6882	# is EXPORTS), use it as is; otherwise, prepend...
6883	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6884	  cp $export_symbols $output_objdir/$soname.def;
6885	else
6886	  echo EXPORTS > $output_objdir/$soname.def;
6887	  cat $export_symbols >> $output_objdir/$soname.def;
6888	fi~
6889	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6890      else
6891	ld_shlibs=no
6892      fi
6893      ;;
6894
6895    netbsd*)
6896      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6897	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6898	wlarc=
6899      else
6900	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6901	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6902      fi
6903      ;;
6904
6905    solaris* | sysv5*)
6906      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6907	ld_shlibs=no
6908	cat <<EOF 1>&2
6909
6910*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6911*** create shared libraries on Solaris systems.  Therefore, libtool
6912*** is disabling shared libraries support.  We urge you to upgrade GNU
6913*** binutils to release 2.9.1 or newer.  Another option is to modify
6914*** your PATH or compiler configuration so that the native linker is
6915*** used, and then restart.
6916
6917EOF
6918      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6919	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6920	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6921      else
6922	ld_shlibs=no
6923      fi
6924      ;;
6925
6926    sunos4*)
6927      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6928      wlarc=
6929      hardcode_direct=yes
6930      hardcode_shlibpath_var=no
6931      ;;
6932
6933  linux*)
6934    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6935        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6936	archive_cmds="$tmp_archive_cmds"
6937      supports_anon_versioning=no
6938      case `$LD -v 2>/dev/null` in
6939        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6940        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6941        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6942        *\ 2.11.*) ;; # other 2.11 versions
6943        *) supports_anon_versioning=yes ;;
6944      esac
6945      if test $supports_anon_versioning = yes; then
6946        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6947cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6948$echo "local: *; };" >> $output_objdir/$libname.ver~
6949        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6950      else
6951        archive_expsym_cmds="$tmp_archive_cmds"
6952      fi
6953    else
6954      ld_shlibs=no
6955    fi
6956    ;;
6957
6958    *)
6959      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6960	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6961	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6962      else
6963	ld_shlibs=no
6964      fi
6965      ;;
6966    esac
6967
6968    if test "$ld_shlibs" = yes; then
6969      runpath_var=LD_RUN_PATH
6970      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6971      export_dynamic_flag_spec='${wl}--export-dynamic'
6972      # ancient GNU ld didn't support --whole-archive et. al.
6973      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6974 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6975      else
6976  	whole_archive_flag_spec=
6977      fi
6978    fi
6979  else
6980    # PORTME fill in a description of your system's linker (not GNU ld)
6981    case $host_os in
6982    aix3*)
6983      allow_undefined_flag=unsupported
6984      always_export_symbols=yes
6985      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'
6986      # Note: this linker hardcodes the directories in LIBPATH if there
6987      # are no directories specified by -L.
6988      hardcode_minus_L=yes
6989      if test "$GCC" = yes && test -z "$link_static_flag"; then
6990	# Neither direct hardcoding nor static linking is supported with a
6991	# broken collect2.
6992	hardcode_direct=unsupported
6993      fi
6994      ;;
6995
6996    aix4* | aix5*)
6997      if test "$host_cpu" = ia64; then
6998	# On IA64, the linker does run time linking by default, so we don't
6999	# have to do anything special.
7000	aix_use_runtimelinking=no
7001	exp_sym_flag='-Bexport'
7002	no_entry_flag=""
7003      else
7004	# If we're using GNU nm, then we don't want the "-C" option.
7005	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7006	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7007	  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'
7008	else
7009	  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'
7010	fi
7011	aix_use_runtimelinking=no
7012
7013	# Test if we are trying to use run time linking or normal
7014	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7015	# need to do runtime linking.
7016	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7017	  for ld_flag in $LDFLAGS; do
7018  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7019  	    aix_use_runtimelinking=yes
7020  	    break
7021  	  fi
7022	  done
7023	esac
7024
7025	exp_sym_flag='-bexport'
7026	no_entry_flag='-bnoentry'
7027      fi
7028
7029      # When large executables or shared objects are built, AIX ld can
7030      # have problems creating the table of contents.  If linking a library
7031      # or program results in "error TOC overflow" add -mminimal-toc to
7032      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7033      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7034
7035      archive_cmds=''
7036      hardcode_direct=yes
7037      hardcode_libdir_separator=':'
7038      link_all_deplibs=yes
7039
7040      if test "$GCC" = yes; then
7041	case $host_os in aix4.012|aix4.012.*)
7042	# We only want to do this on AIX 4.2 and lower, the check
7043	# below for broken collect2 doesn't work under 4.3+
7044	  collect2name=`${CC} -print-prog-name=collect2`
7045	  if test -f "$collect2name" && \
7046  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7047	  then
7048  	  # We have reworked collect2
7049  	  hardcode_direct=yes
7050	  else
7051  	  # We have old collect2
7052  	  hardcode_direct=unsupported
7053  	  # It fails to find uninstalled libraries when the uninstalled
7054  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7055  	  # to unsupported forces relinking
7056  	  hardcode_minus_L=yes
7057  	  hardcode_libdir_flag_spec='-L$libdir'
7058  	  hardcode_libdir_separator=
7059	  fi
7060	esac
7061	shared_flag='-shared'
7062      else
7063	# not using gcc
7064	if test "$host_cpu" = ia64; then
7065  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7066  	# chokes on -Wl,-G. The following line is correct:
7067	  shared_flag='-G'
7068	else
7069  	if test "$aix_use_runtimelinking" = yes; then
7070	    shared_flag='${wl}-G'
7071	  else
7072	    shared_flag='${wl}-bM:SRE'
7073  	fi
7074	fi
7075      fi
7076
7077      # It seems that -bexpall does not export symbols beginning with
7078      # underscore (_), so it is better to generate a list of symbols to export.
7079      always_export_symbols=yes
7080      if test "$aix_use_runtimelinking" = yes; then
7081	# Warning - without using the other runtime loading flags (-brtl),
7082	# -berok will link without error, but may produce a broken library.
7083	allow_undefined_flag='-berok'
7084       # Determine the default libpath from the value encoded in an empty executable.
7085       cat >conftest.$ac_ext <<_ACEOF
7086/* confdefs.h.  */
7087_ACEOF
7088cat confdefs.h >>conftest.$ac_ext
7089cat >>conftest.$ac_ext <<_ACEOF
7090/* end confdefs.h.  */
7091
7092int
7093main ()
7094{
7095
7096  ;
7097  return 0;
7098}
7099_ACEOF
7100rm -f conftest.$ac_objext conftest$ac_exeext
7101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7102  (eval $ac_link) 2>conftest.er1
7103  ac_status=$?
7104  grep -v '^ *+' conftest.er1 >conftest.err
7105  rm -f conftest.er1
7106  cat conftest.err >&5
7107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108  (exit $ac_status); } &&
7109	 { ac_try='test -z "$ac_c_werror_flag"
7110			 || test ! -s conftest.err'
7111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7112  (eval $ac_try) 2>&5
7113  ac_status=$?
7114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115  (exit $ac_status); }; } &&
7116	 { ac_try='test -s conftest$ac_exeext'
7117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118  (eval $ac_try) 2>&5
7119  ac_status=$?
7120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121  (exit $ac_status); }; }; then
7122
7123aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7124}'`
7125# Check for a 64-bit object if we didn't find anything.
7126if 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; }
7127}'`; fi
7128else
7129  echo "$as_me: failed program was:" >&5
7130sed 's/^/| /' conftest.$ac_ext >&5
7131
7132fi
7133rm -f conftest.err conftest.$ac_objext \
7134      conftest$ac_exeext conftest.$ac_ext
7135if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7136
7137       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7138	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7139       else
7140	if test "$host_cpu" = ia64; then
7141	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7142	  allow_undefined_flag="-z nodefs"
7143	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7144	else
7145	 # Determine the default libpath from the value encoded in an empty executable.
7146	 cat >conftest.$ac_ext <<_ACEOF
7147/* confdefs.h.  */
7148_ACEOF
7149cat confdefs.h >>conftest.$ac_ext
7150cat >>conftest.$ac_ext <<_ACEOF
7151/* end confdefs.h.  */
7152
7153int
7154main ()
7155{
7156
7157  ;
7158  return 0;
7159}
7160_ACEOF
7161rm -f conftest.$ac_objext conftest$ac_exeext
7162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7163  (eval $ac_link) 2>conftest.er1
7164  ac_status=$?
7165  grep -v '^ *+' conftest.er1 >conftest.err
7166  rm -f conftest.er1
7167  cat conftest.err >&5
7168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169  (exit $ac_status); } &&
7170	 { ac_try='test -z "$ac_c_werror_flag"
7171			 || test ! -s conftest.err'
7172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173  (eval $ac_try) 2>&5
7174  ac_status=$?
7175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176  (exit $ac_status); }; } &&
7177	 { ac_try='test -s conftest$ac_exeext'
7178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7179  (eval $ac_try) 2>&5
7180  ac_status=$?
7181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182  (exit $ac_status); }; }; then
7183
7184aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7185}'`
7186# Check for a 64-bit object if we didn't find anything.
7187if 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; }
7188}'`; fi
7189else
7190  echo "$as_me: failed program was:" >&5
7191sed 's/^/| /' conftest.$ac_ext >&5
7192
7193fi
7194rm -f conftest.err conftest.$ac_objext \
7195      conftest$ac_exeext conftest.$ac_ext
7196if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7197
7198	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7199	  # Warning - without using the other run time loading flags,
7200	  # -berok will link without error, but may produce a broken library.
7201	  no_undefined_flag=' ${wl}-bernotok'
7202	  allow_undefined_flag=' ${wl}-berok'
7203	  # -bexpall does not export symbols beginning with underscore (_)
7204	  always_export_symbols=yes
7205	  # Exported symbols can be pulled into shared objects from archives
7206	  whole_archive_flag_spec=' '
7207	  archive_cmds_need_lc=yes
7208	  # This is similar to how AIX traditionally builds it's shared libraries.
7209	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7210	fi
7211      fi
7212      ;;
7213
7214    amigaos*)
7215      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)'
7216      hardcode_libdir_flag_spec='-L$libdir'
7217      hardcode_minus_L=yes
7218      # see comment about different semantics on the GNU ld section
7219      ld_shlibs=no
7220      ;;
7221
7222    bsdi[45]*)
7223      export_dynamic_flag_spec=-rdynamic
7224      ;;
7225
7226    cygwin* | mingw* | pw32*)
7227      # When not using gcc, we currently assume that we are using
7228      # Microsoft Visual C++.
7229      # hardcode_libdir_flag_spec is actually meaningless, as there is
7230      # no search path for DLLs.
7231      hardcode_libdir_flag_spec=' '
7232      allow_undefined_flag=unsupported
7233      # Tell ltmain to make .lib files, not .a files.
7234      libext=lib
7235      # Tell ltmain to make .dll files, not .so files.
7236      shrext_cmds=".dll"
7237      # FIXME: Setting linknames here is a bad hack.
7238      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7239      # The linker will automatically build a .lib file if we build a DLL.
7240      old_archive_From_new_cmds='true'
7241      # FIXME: Should let the user specify the lib program.
7242      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7243      fix_srcfile_path='`cygpath -w "$srcfile"`'
7244      enable_shared_with_static_runtimes=yes
7245      ;;
7246
7247    darwin* | rhapsody*)
7248      case "$host_os" in
7249        rhapsody* | darwin1.[012])
7250         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7251         ;;
7252       *) # Darwin 1.3 on
7253         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7254           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7255         else
7256           case ${MACOSX_DEPLOYMENT_TARGET} in
7257             10.[012])
7258               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7259               ;;
7260             10.*)
7261               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7262               ;;
7263           esac
7264         fi
7265         ;;
7266      esac
7267      archive_cmds_need_lc=no
7268      hardcode_direct=no
7269      hardcode_automatic=yes
7270      hardcode_shlibpath_var=unsupported
7271      whole_archive_flag_spec=''
7272      link_all_deplibs=yes
7273    if test "$GCC" = yes ; then
7274    	output_verbose_link_cmd='echo'
7275        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7276      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7277      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7278      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}'
7279      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}'
7280    else
7281      case "$cc_basename" in
7282        xlc*)
7283         output_verbose_link_cmd='echo'
7284         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7285         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7286          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7287         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}'
7288          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}'
7289          ;;
7290       *)
7291         ld_shlibs=no
7292          ;;
7293      esac
7294    fi
7295      ;;
7296
7297    dgux*)
7298      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7299      hardcode_libdir_flag_spec='-L$libdir'
7300      hardcode_shlibpath_var=no
7301      ;;
7302
7303    freebsd1*)
7304      ld_shlibs=no
7305      ;;
7306
7307    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7308    # support.  Future versions do this automatically, but an explicit c++rt0.o
7309    # does not break anything, and helps significantly (at the cost of a little
7310    # extra space).
7311    freebsd2.2*)
7312      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7313      hardcode_libdir_flag_spec='-R$libdir'
7314      hardcode_direct=yes
7315      hardcode_shlibpath_var=no
7316      ;;
7317
7318    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7319    freebsd2*)
7320      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7321      hardcode_direct=yes
7322      hardcode_minus_L=yes
7323      hardcode_shlibpath_var=no
7324      ;;
7325
7326    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7327    freebsd* | kfreebsd*-gnu)
7328      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7329      hardcode_libdir_flag_spec='-R$libdir'
7330      hardcode_direct=yes
7331      hardcode_shlibpath_var=no
7332      ;;
7333
7334    hpux9*)
7335      if test "$GCC" = yes; then
7336	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'
7337      else
7338	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'
7339      fi
7340      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7341      hardcode_libdir_separator=:
7342      hardcode_direct=yes
7343
7344      # hardcode_minus_L: Not really in the search PATH,
7345      # but as the default location of the library.
7346      hardcode_minus_L=yes
7347      export_dynamic_flag_spec='${wl}-E'
7348      ;;
7349
7350    hpux10* | hpux11*)
7351      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7352	case "$host_cpu" in
7353	hppa*64*|ia64*)
7354	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7355	  ;;
7356	*)
7357	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7358	  ;;
7359	esac
7360      else
7361	case "$host_cpu" in
7362	hppa*64*|ia64*)
7363	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7364	  ;;
7365	*)
7366	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7367	  ;;
7368	esac
7369      fi
7370      if test "$with_gnu_ld" = no; then
7371	case "$host_cpu" in
7372	hppa*64*)
7373	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7374	  hardcode_libdir_flag_spec_ld='+b $libdir'
7375	  hardcode_libdir_separator=:
7376	  hardcode_direct=no
7377	  hardcode_shlibpath_var=no
7378	  ;;
7379	ia64*)
7380	  hardcode_libdir_flag_spec='-L$libdir'
7381	  hardcode_direct=no
7382	  hardcode_shlibpath_var=no
7383
7384	  # hardcode_minus_L: Not really in the search PATH,
7385	  # but as the default location of the library.
7386	  hardcode_minus_L=yes
7387	  ;;
7388	*)
7389	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7390	  hardcode_libdir_separator=:
7391	  hardcode_direct=yes
7392	  export_dynamic_flag_spec='${wl}-E'
7393
7394	  # hardcode_minus_L: Not really in the search PATH,
7395	  # but as the default location of the library.
7396	  hardcode_minus_L=yes
7397	  ;;
7398	esac
7399      fi
7400      ;;
7401
7402    irix5* | irix6* | nonstopux*)
7403      if test "$GCC" = yes; then
7404	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'
7405      else
7406	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'
7407	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7408      fi
7409      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7410      hardcode_libdir_separator=:
7411      link_all_deplibs=yes
7412      ;;
7413
7414    netbsd*)
7415      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7416	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7417      else
7418	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7419      fi
7420      hardcode_libdir_flag_spec='-R$libdir'
7421      hardcode_direct=yes
7422      hardcode_shlibpath_var=no
7423      ;;
7424
7425    newsos6)
7426      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7427      hardcode_direct=yes
7428      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7429      hardcode_libdir_separator=:
7430      hardcode_shlibpath_var=no
7431      ;;
7432
7433    openbsd*)
7434      hardcode_direct=yes
7435      hardcode_shlibpath_var=no
7436      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7437	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7438	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7439	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7440	export_dynamic_flag_spec='${wl}-E'
7441      else
7442       case $host_os in
7443	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7444	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7445	   hardcode_libdir_flag_spec='-R$libdir'
7446	   ;;
7447	 *)
7448	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7449	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7450	   ;;
7451       esac
7452      fi
7453      ;;
7454
7455    os2*)
7456      hardcode_libdir_flag_spec='-L$libdir'
7457      hardcode_minus_L=yes
7458      allow_undefined_flag=unsupported
7459      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'
7460      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7461      ;;
7462
7463    osf3*)
7464      if test "$GCC" = yes; then
7465	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7466	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'
7467      else
7468	allow_undefined_flag=' -expect_unresolved \*'
7469	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'
7470      fi
7471      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7472      hardcode_libdir_separator=:
7473      ;;
7474
7475    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7476      if test "$GCC" = yes; then
7477	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7478	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'
7479	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7480      else
7481	allow_undefined_flag=' -expect_unresolved \*'
7482	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'
7483	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7484	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7485
7486	# Both c and cxx compiler support -rpath directly
7487	hardcode_libdir_flag_spec='-rpath $libdir'
7488      fi
7489      hardcode_libdir_separator=:
7490      ;;
7491
7492    sco3.2v5*)
7493      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7494      hardcode_shlibpath_var=no
7495      export_dynamic_flag_spec='${wl}-Bexport'
7496      runpath_var=LD_RUN_PATH
7497      hardcode_runpath_var=yes
7498      ;;
7499
7500    solaris*)
7501      no_undefined_flag=' -z text'
7502      if test "$GCC" = yes; then
7503	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7504	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7505	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7506      else
7507	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7508	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7509  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7510      fi
7511      hardcode_libdir_flag_spec='-R$libdir'
7512      hardcode_shlibpath_var=no
7513      case $host_os in
7514      solaris2.[0-5] | solaris2.[0-5].*) ;;
7515      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7516	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7517      esac
7518      link_all_deplibs=yes
7519      ;;
7520
7521    sunos4*)
7522      if test "x$host_vendor" = xsequent; then
7523	# Use $CC to link under sequent, because it throws in some extra .o
7524	# files that make .init and .fini sections work.
7525	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7526      else
7527	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7528      fi
7529      hardcode_libdir_flag_spec='-L$libdir'
7530      hardcode_direct=yes
7531      hardcode_minus_L=yes
7532      hardcode_shlibpath_var=no
7533      ;;
7534
7535    sysv4)
7536      case $host_vendor in
7537	sni)
7538	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7539	  hardcode_direct=yes # is this really true???
7540	;;
7541	siemens)
7542	  ## LD is ld it makes a PLAMLIB
7543	  ## CC just makes a GrossModule.
7544	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7545	  reload_cmds='$CC -r -o $output$reload_objs'
7546	  hardcode_direct=no
7547        ;;
7548	motorola)
7549	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7550	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7551	;;
7552      esac
7553      runpath_var='LD_RUN_PATH'
7554      hardcode_shlibpath_var=no
7555      ;;
7556
7557    sysv4.3*)
7558      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7559      hardcode_shlibpath_var=no
7560      export_dynamic_flag_spec='-Bexport'
7561      ;;
7562
7563    sysv4*MP*)
7564      if test -d /usr/nec; then
7565	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7566	hardcode_shlibpath_var=no
7567	runpath_var=LD_RUN_PATH
7568	hardcode_runpath_var=yes
7569	ld_shlibs=yes
7570      fi
7571      ;;
7572
7573    sysv4.2uw2*)
7574      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7575      hardcode_direct=yes
7576      hardcode_minus_L=no
7577      hardcode_shlibpath_var=no
7578      hardcode_runpath_var=yes
7579      runpath_var=LD_RUN_PATH
7580      ;;
7581
7582   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7583      no_undefined_flag='${wl}-z ${wl}text'
7584      if test "$GCC" = yes; then
7585	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7586      else
7587	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7588      fi
7589      runpath_var='LD_RUN_PATH'
7590      hardcode_shlibpath_var=no
7591      ;;
7592
7593    sysv5*)
7594      no_undefined_flag=' -z text'
7595      # $CC -shared without GNU ld will not create a library from C++
7596      # object files and a static libstdc++, better avoid it by now
7597      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7598      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7599  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7600      hardcode_libdir_flag_spec=
7601      hardcode_shlibpath_var=no
7602      runpath_var='LD_RUN_PATH'
7603      ;;
7604
7605    uts4*)
7606      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7607      hardcode_libdir_flag_spec='-L$libdir'
7608      hardcode_shlibpath_var=no
7609      ;;
7610
7611    *)
7612      ld_shlibs=no
7613      ;;
7614    esac
7615  fi
7616
7617echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7618echo "${ECHO_T}$ld_shlibs" >&6
7619test "$ld_shlibs" = no && can_build_shared=no
7620
7621variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7622if test "$GCC" = yes; then
7623  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7624fi
7625
7626#
7627# Do we need to explicitly link libc?
7628#
7629case "x$archive_cmds_need_lc" in
7630x|xyes)
7631  # Assume -lc should be added
7632  archive_cmds_need_lc=yes
7633
7634  if test "$enable_shared" = yes && test "$GCC" = yes; then
7635    case $archive_cmds in
7636    *'~'*)
7637      # FIXME: we may have to deal with multi-command sequences.
7638      ;;
7639    '$CC '*)
7640      # Test whether the compiler implicitly links with -lc since on some
7641      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7642      # to ld, don't add -lc before -lgcc.
7643      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7644echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7645      $rm conftest*
7646      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7647
7648      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7649  (eval $ac_compile) 2>&5
7650  ac_status=$?
7651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652  (exit $ac_status); } 2>conftest.err; then
7653        soname=conftest
7654        lib=conftest
7655        libobjs=conftest.$ac_objext
7656        deplibs=
7657        wl=$lt_prog_compiler_wl
7658        compiler_flags=-v
7659        linker_flags=-v
7660        verstring=
7661        output_objdir=.
7662        libname=conftest
7663        lt_save_allow_undefined_flag=$allow_undefined_flag
7664        allow_undefined_flag=
7665        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7666  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7667  ac_status=$?
7668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669  (exit $ac_status); }
7670        then
7671	  archive_cmds_need_lc=no
7672        else
7673	  archive_cmds_need_lc=yes
7674        fi
7675        allow_undefined_flag=$lt_save_allow_undefined_flag
7676      else
7677        cat conftest.err 1>&5
7678      fi
7679      $rm conftest*
7680      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7681echo "${ECHO_T}$archive_cmds_need_lc" >&6
7682      ;;
7683    esac
7684  fi
7685  ;;
7686esac
7687
7688echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7689echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7690library_names_spec=
7691libname_spec='lib$name'
7692soname_spec=
7693shrext_cmds=".so"
7694postinstall_cmds=
7695postuninstall_cmds=
7696finish_cmds=
7697finish_eval=
7698shlibpath_var=
7699shlibpath_overrides_runpath=unknown
7700version_type=none
7701dynamic_linker="$host_os ld.so"
7702sys_lib_dlsearch_path_spec="/lib /usr/lib"
7703if test "$GCC" = yes; then
7704  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7705  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7706    # if the path contains ";" then we assume it to be the separator
7707    # otherwise default to the standard path separator (i.e. ":") - it is
7708    # assumed that no part of a normal pathname contains ";" but that should
7709    # okay in the real world where ";" in dirpaths is itself problematic.
7710    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7711  else
7712    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7713  fi
7714else
7715  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7716fi
7717need_lib_prefix=unknown
7718hardcode_into_libs=no
7719
7720# when you set need_version to no, make sure it does not cause -set_version
7721# flags to be left without arguments
7722need_version=unknown
7723
7724case $host_os in
7725aix3*)
7726  version_type=linux
7727  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7728  shlibpath_var=LIBPATH
7729
7730  # AIX 3 has no versioning support, so we append a major version to the name.
7731  soname_spec='${libname}${release}${shared_ext}$major'
7732  ;;
7733
7734aix4* | aix5*)
7735  version_type=linux
7736  need_lib_prefix=no
7737  need_version=no
7738  hardcode_into_libs=yes
7739  if test "$host_cpu" = ia64; then
7740    # AIX 5 supports IA64
7741    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7742    shlibpath_var=LD_LIBRARY_PATH
7743  else
7744    # With GCC up to 2.95.x, collect2 would create an import file
7745    # for dependence libraries.  The import file would start with
7746    # the line `#! .'.  This would cause the generated library to
7747    # depend on `.', always an invalid library.  This was fixed in
7748    # development snapshots of GCC prior to 3.0.
7749    case $host_os in
7750      aix4 | aix4.[01] | aix4.[01].*)
7751      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7752	   echo ' yes '
7753	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7754	:
7755      else
7756	can_build_shared=no
7757      fi
7758      ;;
7759    esac
7760    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7761    # soname into executable. Probably we can add versioning support to
7762    # collect2, so additional links can be useful in future.
7763    if test "$aix_use_runtimelinking" = yes; then
7764      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7765      # instead of lib<name>.a to let people know that these are not
7766      # typical AIX shared libraries.
7767      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7768    else
7769      # We preserve .a as extension for shared libraries through AIX4.2
7770      # and later when we are not doing run time linking.
7771      library_names_spec='${libname}${release}.a $libname.a'
7772      soname_spec='${libname}${release}${shared_ext}$major'
7773    fi
7774    shlibpath_var=LIBPATH
7775  fi
7776  ;;
7777
7778amigaos*)
7779  library_names_spec='$libname.ixlibrary $libname.a'
7780  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7781  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'
7782  ;;
7783
7784beos*)
7785  library_names_spec='${libname}${shared_ext}'
7786  dynamic_linker="$host_os ld.so"
7787  shlibpath_var=LIBRARY_PATH
7788  ;;
7789
7790bsdi[45]*)
7791  version_type=linux
7792  need_version=no
7793  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7794  soname_spec='${libname}${release}${shared_ext}$major'
7795  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7796  shlibpath_var=LD_LIBRARY_PATH
7797  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7798  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7799  # the default ld.so.conf also contains /usr/contrib/lib and
7800  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7801  # libtool to hard-code these into programs
7802  ;;
7803
7804cygwin* | mingw* | pw32*)
7805  version_type=windows
7806  shrext_cmds=".dll"
7807  need_version=no
7808  need_lib_prefix=no
7809
7810  case $GCC,$host_os in
7811  yes,cygwin* | yes,mingw* | yes,pw32*)
7812    library_names_spec='$libname.dll.a'
7813    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7814    postinstall_cmds='base_file=`basename \${file}`~
7815      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7816      dldir=$destdir/`dirname \$dlpath`~
7817      test -d \$dldir || mkdir -p \$dldir~
7818      $install_prog $dir/$dlname \$dldir/$dlname'
7819    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7820      dlpath=$dir/\$dldll~
7821       $rm \$dlpath'
7822    shlibpath_overrides_runpath=yes
7823
7824    case $host_os in
7825    cygwin*)
7826      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7827      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7828      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7829      ;;
7830    mingw*)
7831      # MinGW DLLs use traditional 'lib' prefix
7832      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7833      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7834      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7835        # It is most probably a Windows format PATH printed by
7836        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7837        # path with ; separators, and with drive letters. We can handle the
7838        # drive letters (cygwin fileutils understands them), so leave them,
7839        # especially as we might pass files found there to a mingw objdump,
7840        # which wouldn't understand a cygwinified path. Ahh.
7841        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7842      else
7843        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7844      fi
7845      ;;
7846    pw32*)
7847      # pw32 DLLs use 'pw' prefix rather than 'lib'
7848      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7849      ;;
7850    esac
7851    ;;
7852
7853  *)
7854    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7855    ;;
7856  esac
7857  dynamic_linker='Win32 ld.exe'
7858  # FIXME: first we should search . and the directory the executable is in
7859  shlibpath_var=PATH
7860  ;;
7861
7862darwin* | rhapsody*)
7863  dynamic_linker="$host_os dyld"
7864  version_type=darwin
7865  need_lib_prefix=no
7866  need_version=no
7867  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7868  soname_spec='${libname}${release}${major}$shared_ext'
7869  shlibpath_overrides_runpath=yes
7870  shlibpath_var=DYLD_LIBRARY_PATH
7871  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7872  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7873  if test "$GCC" = yes; then
7874    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"`
7875  else
7876    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7877  fi
7878  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7879  ;;
7880
7881dgux*)
7882  version_type=linux
7883  need_lib_prefix=no
7884  need_version=no
7885  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7886  soname_spec='${libname}${release}${shared_ext}$major'
7887  shlibpath_var=LD_LIBRARY_PATH
7888  ;;
7889
7890freebsd1*)
7891  dynamic_linker=no
7892  ;;
7893
7894kfreebsd*-gnu)
7895  version_type=linux
7896  need_lib_prefix=no
7897  need_version=no
7898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7899  soname_spec='${libname}${release}${shared_ext}$major'
7900  shlibpath_var=LD_LIBRARY_PATH
7901  shlibpath_overrides_runpath=no
7902  hardcode_into_libs=yes
7903  dynamic_linker='GNU ld.so'
7904  ;;
7905
7906freebsd*)
7907  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7908  version_type=freebsd-$objformat
7909  case $version_type in
7910    freebsd-elf*)
7911      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7912      need_version=no
7913      need_lib_prefix=no
7914      ;;
7915    freebsd-*)
7916      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7917      need_version=yes
7918      ;;
7919  esac
7920  shlibpath_var=LD_LIBRARY_PATH
7921  case $host_os in
7922  freebsd2*)
7923    shlibpath_overrides_runpath=yes
7924    ;;
7925  freebsd3.01* | freebsdelf3.01*)
7926    shlibpath_overrides_runpath=yes
7927    hardcode_into_libs=yes
7928    ;;
7929  *) # from 3.2 on
7930    shlibpath_overrides_runpath=no
7931    hardcode_into_libs=yes
7932    ;;
7933  esac
7934  ;;
7935
7936gnu*)
7937  version_type=linux
7938  need_lib_prefix=no
7939  need_version=no
7940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7941  soname_spec='${libname}${release}${shared_ext}$major'
7942  shlibpath_var=LD_LIBRARY_PATH
7943  hardcode_into_libs=yes
7944  ;;
7945
7946hpux9* | hpux10* | hpux11*)
7947  # Give a soname corresponding to the major version so that dld.sl refuses to
7948  # link against other versions.
7949  version_type=sunos
7950  need_lib_prefix=no
7951  need_version=no
7952  case "$host_cpu" in
7953  ia64*)
7954    shrext_cmds='.so'
7955    hardcode_into_libs=yes
7956    dynamic_linker="$host_os dld.so"
7957    shlibpath_var=LD_LIBRARY_PATH
7958    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7959    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7960    soname_spec='${libname}${release}${shared_ext}$major'
7961    if test "X$HPUX_IA64_MODE" = X32; then
7962      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7963    else
7964      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7965    fi
7966    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7967    ;;
7968   hppa*64*)
7969     shrext_cmds='.sl'
7970     hardcode_into_libs=yes
7971     dynamic_linker="$host_os dld.sl"
7972     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7973     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7974     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7975     soname_spec='${libname}${release}${shared_ext}$major'
7976     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7977     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7978     ;;
7979   *)
7980    shrext_cmds='.sl'
7981    dynamic_linker="$host_os dld.sl"
7982    shlibpath_var=SHLIB_PATH
7983    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7984    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7985    soname_spec='${libname}${release}${shared_ext}$major'
7986    ;;
7987  esac
7988  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7989  postinstall_cmds='chmod 555 $lib'
7990  ;;
7991
7992irix5* | irix6* | nonstopux*)
7993  case $host_os in
7994    nonstopux*) version_type=nonstopux ;;
7995    *)
7996	if test "$lt_cv_prog_gnu_ld" = yes; then
7997		version_type=linux
7998	else
7999		version_type=irix
8000	fi ;;
8001  esac
8002  need_lib_prefix=no
8003  need_version=no
8004  soname_spec='${libname}${release}${shared_ext}$major'
8005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8006  case $host_os in
8007  irix5* | nonstopux*)
8008    libsuff= shlibsuff=
8009    ;;
8010  *)
8011    case $LD in # libtool.m4 will add one of these switches to LD
8012    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8013      libsuff= shlibsuff= libmagic=32-bit;;
8014    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8015      libsuff=32 shlibsuff=N32 libmagic=N32;;
8016    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8017      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8018    *) libsuff= shlibsuff= libmagic=never-match;;
8019    esac
8020    ;;
8021  esac
8022  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8023  shlibpath_overrides_runpath=no
8024  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8025  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8026  hardcode_into_libs=yes
8027  ;;
8028
8029# No shared lib support for Linux oldld, aout, or coff.
8030linux*oldld* | linux*aout* | linux*coff*)
8031  dynamic_linker=no
8032  ;;
8033
8034# This must be Linux ELF.
8035linux*)
8036  version_type=linux
8037  need_lib_prefix=no
8038  need_version=no
8039  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8040  soname_spec='${libname}${release}${shared_ext}$major'
8041  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8042  shlibpath_var=LD_LIBRARY_PATH
8043  shlibpath_overrides_runpath=no
8044  # This implies no fast_install, which is unacceptable.
8045  # Some rework will be needed to allow for fast_install
8046  # before this can be enabled.
8047  hardcode_into_libs=yes
8048
8049  # Append ld.so.conf contents to the search path
8050  if test -f /etc/ld.so.conf; then
8051    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8052    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8053  fi
8054
8055  # We used to test for /lib/ld.so.1 and disable shared libraries on
8056  # powerpc, because MkLinux only supported shared libraries with the
8057  # GNU dynamic linker.  Since this was broken with cross compilers,
8058  # most powerpc-linux boxes support dynamic linking these days and
8059  # people can always --disable-shared, the test was removed, and we
8060  # assume the GNU/Linux dynamic linker is in use.
8061  dynamic_linker='GNU/Linux ld.so'
8062  ;;
8063
8064knetbsd*-gnu)
8065  version_type=linux
8066  need_lib_prefix=no
8067  need_version=no
8068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8069  soname_spec='${libname}${release}${shared_ext}$major'
8070  shlibpath_var=LD_LIBRARY_PATH
8071  shlibpath_overrides_runpath=no
8072  hardcode_into_libs=yes
8073  dynamic_linker='GNU ld.so'
8074  ;;
8075
8076netbsd*)
8077  version_type=sunos
8078  need_lib_prefix=no
8079  need_version=no
8080  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8081    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8082    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8083    dynamic_linker='NetBSD (a.out) ld.so'
8084  else
8085    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8086    soname_spec='${libname}${release}${shared_ext}$major'
8087    dynamic_linker='NetBSD ld.elf_so'
8088  fi
8089  shlibpath_var=LD_LIBRARY_PATH
8090  shlibpath_overrides_runpath=yes
8091  hardcode_into_libs=yes
8092  ;;
8093
8094newsos6)
8095  version_type=linux
8096  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8097  shlibpath_var=LD_LIBRARY_PATH
8098  shlibpath_overrides_runpath=yes
8099  ;;
8100
8101nto-qnx*)
8102  version_type=linux
8103  need_lib_prefix=no
8104  need_version=no
8105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8106  soname_spec='${libname}${release}${shared_ext}$major'
8107  shlibpath_var=LD_LIBRARY_PATH
8108  shlibpath_overrides_runpath=yes
8109  ;;
8110
8111openbsd*)
8112  version_type=sunos
8113  need_lib_prefix=no
8114  need_version=no
8115  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8116  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8117  shlibpath_var=LD_LIBRARY_PATH
8118  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8119    case $host_os in
8120      openbsd2.[89] | openbsd2.[89].*)
8121	shlibpath_overrides_runpath=no
8122	;;
8123      *)
8124	shlibpath_overrides_runpath=yes
8125	;;
8126      esac
8127  else
8128    shlibpath_overrides_runpath=yes
8129  fi
8130  ;;
8131
8132os2*)
8133  libname_spec='$name'
8134  shrext_cmds=".dll"
8135  need_lib_prefix=no
8136  library_names_spec='$libname${shared_ext} $libname.a'
8137  dynamic_linker='OS/2 ld.exe'
8138  shlibpath_var=LIBPATH
8139  ;;
8140
8141osf3* | osf4* | osf5*)
8142  version_type=osf
8143  need_lib_prefix=no
8144  need_version=no
8145  soname_spec='${libname}${release}${shared_ext}$major'
8146  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8147  shlibpath_var=LD_LIBRARY_PATH
8148  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8149  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8150  ;;
8151
8152sco3.2v5*)
8153  version_type=osf
8154  soname_spec='${libname}${release}${shared_ext}$major'
8155  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8156  shlibpath_var=LD_LIBRARY_PATH
8157  ;;
8158
8159solaris*)
8160  version_type=linux
8161  need_lib_prefix=no
8162  need_version=no
8163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8164  soname_spec='${libname}${release}${shared_ext}$major'
8165  shlibpath_var=LD_LIBRARY_PATH
8166  shlibpath_overrides_runpath=yes
8167  hardcode_into_libs=yes
8168  # ldd complains unless libraries are executable
8169  postinstall_cmds='chmod +x $lib'
8170  ;;
8171
8172sunos4*)
8173  version_type=sunos
8174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8175  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8176  shlibpath_var=LD_LIBRARY_PATH
8177  shlibpath_overrides_runpath=yes
8178  if test "$with_gnu_ld" = yes; then
8179    need_lib_prefix=no
8180  fi
8181  need_version=yes
8182  ;;
8183
8184sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8185  version_type=linux
8186  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8187  soname_spec='${libname}${release}${shared_ext}$major'
8188  shlibpath_var=LD_LIBRARY_PATH
8189  case $host_vendor in
8190    sni)
8191      shlibpath_overrides_runpath=no
8192      need_lib_prefix=no
8193      export_dynamic_flag_spec='${wl}-Blargedynsym'
8194      runpath_var=LD_RUN_PATH
8195      ;;
8196    siemens)
8197      need_lib_prefix=no
8198      ;;
8199    motorola)
8200      need_lib_prefix=no
8201      need_version=no
8202      shlibpath_overrides_runpath=no
8203      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8204      ;;
8205  esac
8206  ;;
8207
8208sysv4*MP*)
8209  if test -d /usr/nec ;then
8210    version_type=linux
8211    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8212    soname_spec='$libname${shared_ext}.$major'
8213    shlibpath_var=LD_LIBRARY_PATH
8214  fi
8215  ;;
8216
8217uts4*)
8218  version_type=linux
8219  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8220  soname_spec='${libname}${release}${shared_ext}$major'
8221  shlibpath_var=LD_LIBRARY_PATH
8222  ;;
8223
8224*)
8225  dynamic_linker=no
8226  ;;
8227esac
8228echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8229echo "${ECHO_T}$dynamic_linker" >&6
8230test "$dynamic_linker" = no && can_build_shared=no
8231
8232echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8233echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8234hardcode_action=
8235if test -n "$hardcode_libdir_flag_spec" || \
8236   test -n "$runpath_var" || \
8237   test "X$hardcode_automatic" = "Xyes" ; then
8238
8239  # We can hardcode non-existant directories.
8240  if test "$hardcode_direct" != no &&
8241     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8242     # have to relink, otherwise we might link with an installed library
8243     # when we should be linking with a yet-to-be-installed one
8244     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8245     test "$hardcode_minus_L" != no; then
8246    # Linking always hardcodes the temporary library directory.
8247    hardcode_action=relink
8248  else
8249    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8250    hardcode_action=immediate
8251  fi
8252else
8253  # We cannot hardcode anything, or else we can only hardcode existing
8254  # directories.
8255  hardcode_action=unsupported
8256fi
8257echo "$as_me:$LINENO: result: $hardcode_action" >&5
8258echo "${ECHO_T}$hardcode_action" >&6
8259
8260if test "$hardcode_action" = relink; then
8261  # Fast installation is not supported
8262  enable_fast_install=no
8263elif test "$shlibpath_overrides_runpath" = yes ||
8264     test "$enable_shared" = no; then
8265  # Fast installation is not necessary
8266  enable_fast_install=needless
8267fi
8268
8269striplib=
8270old_striplib=
8271echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8272echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8273if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8274  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8275  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8276  echo "$as_me:$LINENO: result: yes" >&5
8277echo "${ECHO_T}yes" >&6
8278else
8279# FIXME - insert some real tests, host_os isn't really good enough
8280  case $host_os in
8281   darwin*)
8282       if test -n "$STRIP" ; then
8283         striplib="$STRIP -x"
8284         echo "$as_me:$LINENO: result: yes" >&5
8285echo "${ECHO_T}yes" >&6
8286       else
8287  echo "$as_me:$LINENO: result: no" >&5
8288echo "${ECHO_T}no" >&6
8289fi
8290       ;;
8291   *)
8292  echo "$as_me:$LINENO: result: no" >&5
8293echo "${ECHO_T}no" >&6
8294    ;;
8295  esac
8296fi
8297
8298if test "x$enable_dlopen" != xyes; then
8299  enable_dlopen=unknown
8300  enable_dlopen_self=unknown
8301  enable_dlopen_self_static=unknown
8302else
8303  lt_cv_dlopen=no
8304  lt_cv_dlopen_libs=
8305
8306  case $host_os in
8307  beos*)
8308    lt_cv_dlopen="load_add_on"
8309    lt_cv_dlopen_libs=
8310    lt_cv_dlopen_self=yes
8311    ;;
8312
8313  mingw* | pw32*)
8314    lt_cv_dlopen="LoadLibrary"
8315    lt_cv_dlopen_libs=
8316   ;;
8317
8318  cygwin*)
8319    lt_cv_dlopen="dlopen"
8320    lt_cv_dlopen_libs=
8321   ;;
8322
8323  darwin*)
8324  # if libdl is installed we need to link against it
8325    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8326echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8327if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8328  echo $ECHO_N "(cached) $ECHO_C" >&6
8329else
8330  ac_check_lib_save_LIBS=$LIBS
8331LIBS="-ldl  $LIBS"
8332cat >conftest.$ac_ext <<_ACEOF
8333/* confdefs.h.  */
8334_ACEOF
8335cat confdefs.h >>conftest.$ac_ext
8336cat >>conftest.$ac_ext <<_ACEOF
8337/* end confdefs.h.  */
8338
8339/* Override any gcc2 internal prototype to avoid an error.  */
8340#ifdef __cplusplus
8341extern "C"
8342#endif
8343/* We use char because int might match the return type of a gcc2
8344   builtin and then its argument prototype would still apply.  */
8345char dlopen ();
8346int
8347main ()
8348{
8349dlopen ();
8350  ;
8351  return 0;
8352}
8353_ACEOF
8354rm -f conftest.$ac_objext conftest$ac_exeext
8355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8356  (eval $ac_link) 2>conftest.er1
8357  ac_status=$?
8358  grep -v '^ *+' conftest.er1 >conftest.err
8359  rm -f conftest.er1
8360  cat conftest.err >&5
8361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362  (exit $ac_status); } &&
8363	 { ac_try='test -z "$ac_c_werror_flag"
8364			 || test ! -s conftest.err'
8365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366  (eval $ac_try) 2>&5
8367  ac_status=$?
8368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369  (exit $ac_status); }; } &&
8370	 { ac_try='test -s conftest$ac_exeext'
8371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372  (eval $ac_try) 2>&5
8373  ac_status=$?
8374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375  (exit $ac_status); }; }; then
8376  ac_cv_lib_dl_dlopen=yes
8377else
8378  echo "$as_me: failed program was:" >&5
8379sed 's/^/| /' conftest.$ac_ext >&5
8380
8381ac_cv_lib_dl_dlopen=no
8382fi
8383rm -f conftest.err conftest.$ac_objext \
8384      conftest$ac_exeext conftest.$ac_ext
8385LIBS=$ac_check_lib_save_LIBS
8386fi
8387echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8388echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8389if test $ac_cv_lib_dl_dlopen = yes; then
8390  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8391else
8392
8393    lt_cv_dlopen="dyld"
8394    lt_cv_dlopen_libs=
8395    lt_cv_dlopen_self=yes
8396
8397fi
8398
8399   ;;
8400
8401  *)
8402    echo "$as_me:$LINENO: checking for shl_load" >&5
8403echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8404if test "${ac_cv_func_shl_load+set}" = set; then
8405  echo $ECHO_N "(cached) $ECHO_C" >&6
8406else
8407  cat >conftest.$ac_ext <<_ACEOF
8408/* confdefs.h.  */
8409_ACEOF
8410cat confdefs.h >>conftest.$ac_ext
8411cat >>conftest.$ac_ext <<_ACEOF
8412/* end confdefs.h.  */
8413/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8414   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8415#define shl_load innocuous_shl_load
8416
8417/* System header to define __stub macros and hopefully few prototypes,
8418    which can conflict with char shl_load (); below.
8419    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8420    <limits.h> exists even on freestanding compilers.  */
8421
8422#ifdef __STDC__
8423# include <limits.h>
8424#else
8425# include <assert.h>
8426#endif
8427
8428#undef shl_load
8429
8430/* Override any gcc2 internal prototype to avoid an error.  */
8431#ifdef __cplusplus
8432extern "C"
8433{
8434#endif
8435/* We use char because int might match the return type of a gcc2
8436   builtin and then its argument prototype would still apply.  */
8437char shl_load ();
8438/* The GNU C library defines this for functions which it implements
8439    to always fail with ENOSYS.  Some functions are actually named
8440    something starting with __ and the normal name is an alias.  */
8441#if defined (__stub_shl_load) || defined (__stub___shl_load)
8442choke me
8443#else
8444char (*f) () = shl_load;
8445#endif
8446#ifdef __cplusplus
8447}
8448#endif
8449
8450int
8451main ()
8452{
8453return f != shl_load;
8454  ;
8455  return 0;
8456}
8457_ACEOF
8458rm -f conftest.$ac_objext conftest$ac_exeext
8459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8460  (eval $ac_link) 2>conftest.er1
8461  ac_status=$?
8462  grep -v '^ *+' conftest.er1 >conftest.err
8463  rm -f conftest.er1
8464  cat conftest.err >&5
8465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466  (exit $ac_status); } &&
8467	 { ac_try='test -z "$ac_c_werror_flag"
8468			 || test ! -s conftest.err'
8469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470  (eval $ac_try) 2>&5
8471  ac_status=$?
8472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473  (exit $ac_status); }; } &&
8474	 { ac_try='test -s conftest$ac_exeext'
8475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476  (eval $ac_try) 2>&5
8477  ac_status=$?
8478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479  (exit $ac_status); }; }; then
8480  ac_cv_func_shl_load=yes
8481else
8482  echo "$as_me: failed program was:" >&5
8483sed 's/^/| /' conftest.$ac_ext >&5
8484
8485ac_cv_func_shl_load=no
8486fi
8487rm -f conftest.err conftest.$ac_objext \
8488      conftest$ac_exeext conftest.$ac_ext
8489fi
8490echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8491echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8492if test $ac_cv_func_shl_load = yes; then
8493  lt_cv_dlopen="shl_load"
8494else
8495  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8496echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8497if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8498  echo $ECHO_N "(cached) $ECHO_C" >&6
8499else
8500  ac_check_lib_save_LIBS=$LIBS
8501LIBS="-ldld  $LIBS"
8502cat >conftest.$ac_ext <<_ACEOF
8503/* confdefs.h.  */
8504_ACEOF
8505cat confdefs.h >>conftest.$ac_ext
8506cat >>conftest.$ac_ext <<_ACEOF
8507/* end confdefs.h.  */
8508
8509/* Override any gcc2 internal prototype to avoid an error.  */
8510#ifdef __cplusplus
8511extern "C"
8512#endif
8513/* We use char because int might match the return type of a gcc2
8514   builtin and then its argument prototype would still apply.  */
8515char shl_load ();
8516int
8517main ()
8518{
8519shl_load ();
8520  ;
8521  return 0;
8522}
8523_ACEOF
8524rm -f conftest.$ac_objext conftest$ac_exeext
8525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8526  (eval $ac_link) 2>conftest.er1
8527  ac_status=$?
8528  grep -v '^ *+' conftest.er1 >conftest.err
8529  rm -f conftest.er1
8530  cat conftest.err >&5
8531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532  (exit $ac_status); } &&
8533	 { ac_try='test -z "$ac_c_werror_flag"
8534			 || test ! -s conftest.err'
8535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536  (eval $ac_try) 2>&5
8537  ac_status=$?
8538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539  (exit $ac_status); }; } &&
8540	 { ac_try='test -s conftest$ac_exeext'
8541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542  (eval $ac_try) 2>&5
8543  ac_status=$?
8544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545  (exit $ac_status); }; }; then
8546  ac_cv_lib_dld_shl_load=yes
8547else
8548  echo "$as_me: failed program was:" >&5
8549sed 's/^/| /' conftest.$ac_ext >&5
8550
8551ac_cv_lib_dld_shl_load=no
8552fi
8553rm -f conftest.err conftest.$ac_objext \
8554      conftest$ac_exeext conftest.$ac_ext
8555LIBS=$ac_check_lib_save_LIBS
8556fi
8557echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8558echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8559if test $ac_cv_lib_dld_shl_load = yes; then
8560  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8561else
8562  echo "$as_me:$LINENO: checking for dlopen" >&5
8563echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8564if test "${ac_cv_func_dlopen+set}" = set; then
8565  echo $ECHO_N "(cached) $ECHO_C" >&6
8566else
8567  cat >conftest.$ac_ext <<_ACEOF
8568/* confdefs.h.  */
8569_ACEOF
8570cat confdefs.h >>conftest.$ac_ext
8571cat >>conftest.$ac_ext <<_ACEOF
8572/* end confdefs.h.  */
8573/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8574   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8575#define dlopen innocuous_dlopen
8576
8577/* System header to define __stub macros and hopefully few prototypes,
8578    which can conflict with char dlopen (); below.
8579    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8580    <limits.h> exists even on freestanding compilers.  */
8581
8582#ifdef __STDC__
8583# include <limits.h>
8584#else
8585# include <assert.h>
8586#endif
8587
8588#undef dlopen
8589
8590/* Override any gcc2 internal prototype to avoid an error.  */
8591#ifdef __cplusplus
8592extern "C"
8593{
8594#endif
8595/* We use char because int might match the return type of a gcc2
8596   builtin and then its argument prototype would still apply.  */
8597char dlopen ();
8598/* The GNU C library defines this for functions which it implements
8599    to always fail with ENOSYS.  Some functions are actually named
8600    something starting with __ and the normal name is an alias.  */
8601#if defined (__stub_dlopen) || defined (__stub___dlopen)
8602choke me
8603#else
8604char (*f) () = dlopen;
8605#endif
8606#ifdef __cplusplus
8607}
8608#endif
8609
8610int
8611main ()
8612{
8613return f != dlopen;
8614  ;
8615  return 0;
8616}
8617_ACEOF
8618rm -f conftest.$ac_objext conftest$ac_exeext
8619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8620  (eval $ac_link) 2>conftest.er1
8621  ac_status=$?
8622  grep -v '^ *+' conftest.er1 >conftest.err
8623  rm -f conftest.er1
8624  cat conftest.err >&5
8625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626  (exit $ac_status); } &&
8627	 { ac_try='test -z "$ac_c_werror_flag"
8628			 || test ! -s conftest.err'
8629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630  (eval $ac_try) 2>&5
8631  ac_status=$?
8632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633  (exit $ac_status); }; } &&
8634	 { ac_try='test -s conftest$ac_exeext'
8635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636  (eval $ac_try) 2>&5
8637  ac_status=$?
8638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639  (exit $ac_status); }; }; then
8640  ac_cv_func_dlopen=yes
8641else
8642  echo "$as_me: failed program was:" >&5
8643sed 's/^/| /' conftest.$ac_ext >&5
8644
8645ac_cv_func_dlopen=no
8646fi
8647rm -f conftest.err conftest.$ac_objext \
8648      conftest$ac_exeext conftest.$ac_ext
8649fi
8650echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8651echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8652if test $ac_cv_func_dlopen = yes; then
8653  lt_cv_dlopen="dlopen"
8654else
8655  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8656echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8657if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8658  echo $ECHO_N "(cached) $ECHO_C" >&6
8659else
8660  ac_check_lib_save_LIBS=$LIBS
8661LIBS="-ldl  $LIBS"
8662cat >conftest.$ac_ext <<_ACEOF
8663/* confdefs.h.  */
8664_ACEOF
8665cat confdefs.h >>conftest.$ac_ext
8666cat >>conftest.$ac_ext <<_ACEOF
8667/* end confdefs.h.  */
8668
8669/* Override any gcc2 internal prototype to avoid an error.  */
8670#ifdef __cplusplus
8671extern "C"
8672#endif
8673/* We use char because int might match the return type of a gcc2
8674   builtin and then its argument prototype would still apply.  */
8675char dlopen ();
8676int
8677main ()
8678{
8679dlopen ();
8680  ;
8681  return 0;
8682}
8683_ACEOF
8684rm -f conftest.$ac_objext conftest$ac_exeext
8685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8686  (eval $ac_link) 2>conftest.er1
8687  ac_status=$?
8688  grep -v '^ *+' conftest.er1 >conftest.err
8689  rm -f conftest.er1
8690  cat conftest.err >&5
8691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692  (exit $ac_status); } &&
8693	 { ac_try='test -z "$ac_c_werror_flag"
8694			 || test ! -s conftest.err'
8695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696  (eval $ac_try) 2>&5
8697  ac_status=$?
8698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699  (exit $ac_status); }; } &&
8700	 { ac_try='test -s conftest$ac_exeext'
8701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702  (eval $ac_try) 2>&5
8703  ac_status=$?
8704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705  (exit $ac_status); }; }; then
8706  ac_cv_lib_dl_dlopen=yes
8707else
8708  echo "$as_me: failed program was:" >&5
8709sed 's/^/| /' conftest.$ac_ext >&5
8710
8711ac_cv_lib_dl_dlopen=no
8712fi
8713rm -f conftest.err conftest.$ac_objext \
8714      conftest$ac_exeext conftest.$ac_ext
8715LIBS=$ac_check_lib_save_LIBS
8716fi
8717echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8718echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8719if test $ac_cv_lib_dl_dlopen = yes; then
8720  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8721else
8722  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8723echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8724if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8725  echo $ECHO_N "(cached) $ECHO_C" >&6
8726else
8727  ac_check_lib_save_LIBS=$LIBS
8728LIBS="-lsvld  $LIBS"
8729cat >conftest.$ac_ext <<_ACEOF
8730/* confdefs.h.  */
8731_ACEOF
8732cat confdefs.h >>conftest.$ac_ext
8733cat >>conftest.$ac_ext <<_ACEOF
8734/* end confdefs.h.  */
8735
8736/* Override any gcc2 internal prototype to avoid an error.  */
8737#ifdef __cplusplus
8738extern "C"
8739#endif
8740/* We use char because int might match the return type of a gcc2
8741   builtin and then its argument prototype would still apply.  */
8742char dlopen ();
8743int
8744main ()
8745{
8746dlopen ();
8747  ;
8748  return 0;
8749}
8750_ACEOF
8751rm -f conftest.$ac_objext conftest$ac_exeext
8752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753  (eval $ac_link) 2>conftest.er1
8754  ac_status=$?
8755  grep -v '^ *+' conftest.er1 >conftest.err
8756  rm -f conftest.er1
8757  cat conftest.err >&5
8758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759  (exit $ac_status); } &&
8760	 { ac_try='test -z "$ac_c_werror_flag"
8761			 || test ! -s conftest.err'
8762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763  (eval $ac_try) 2>&5
8764  ac_status=$?
8765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766  (exit $ac_status); }; } &&
8767	 { ac_try='test -s conftest$ac_exeext'
8768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769  (eval $ac_try) 2>&5
8770  ac_status=$?
8771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772  (exit $ac_status); }; }; then
8773  ac_cv_lib_svld_dlopen=yes
8774else
8775  echo "$as_me: failed program was:" >&5
8776sed 's/^/| /' conftest.$ac_ext >&5
8777
8778ac_cv_lib_svld_dlopen=no
8779fi
8780rm -f conftest.err conftest.$ac_objext \
8781      conftest$ac_exeext conftest.$ac_ext
8782LIBS=$ac_check_lib_save_LIBS
8783fi
8784echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8785echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8786if test $ac_cv_lib_svld_dlopen = yes; then
8787  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8788else
8789  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8790echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8791if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8792  echo $ECHO_N "(cached) $ECHO_C" >&6
8793else
8794  ac_check_lib_save_LIBS=$LIBS
8795LIBS="-ldld  $LIBS"
8796cat >conftest.$ac_ext <<_ACEOF
8797/* confdefs.h.  */
8798_ACEOF
8799cat confdefs.h >>conftest.$ac_ext
8800cat >>conftest.$ac_ext <<_ACEOF
8801/* end confdefs.h.  */
8802
8803/* Override any gcc2 internal prototype to avoid an error.  */
8804#ifdef __cplusplus
8805extern "C"
8806#endif
8807/* We use char because int might match the return type of a gcc2
8808   builtin and then its argument prototype would still apply.  */
8809char dld_link ();
8810int
8811main ()
8812{
8813dld_link ();
8814  ;
8815  return 0;
8816}
8817_ACEOF
8818rm -f conftest.$ac_objext conftest$ac_exeext
8819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8820  (eval $ac_link) 2>conftest.er1
8821  ac_status=$?
8822  grep -v '^ *+' conftest.er1 >conftest.err
8823  rm -f conftest.er1
8824  cat conftest.err >&5
8825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826  (exit $ac_status); } &&
8827	 { ac_try='test -z "$ac_c_werror_flag"
8828			 || test ! -s conftest.err'
8829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830  (eval $ac_try) 2>&5
8831  ac_status=$?
8832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833  (exit $ac_status); }; } &&
8834	 { ac_try='test -s conftest$ac_exeext'
8835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836  (eval $ac_try) 2>&5
8837  ac_status=$?
8838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839  (exit $ac_status); }; }; then
8840  ac_cv_lib_dld_dld_link=yes
8841else
8842  echo "$as_me: failed program was:" >&5
8843sed 's/^/| /' conftest.$ac_ext >&5
8844
8845ac_cv_lib_dld_dld_link=no
8846fi
8847rm -f conftest.err conftest.$ac_objext \
8848      conftest$ac_exeext conftest.$ac_ext
8849LIBS=$ac_check_lib_save_LIBS
8850fi
8851echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8852echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8853if test $ac_cv_lib_dld_dld_link = yes; then
8854  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8855fi
8856
8857
8858fi
8859
8860
8861fi
8862
8863
8864fi
8865
8866
8867fi
8868
8869
8870fi
8871
8872    ;;
8873  esac
8874
8875  if test "x$lt_cv_dlopen" != xno; then
8876    enable_dlopen=yes
8877  else
8878    enable_dlopen=no
8879  fi
8880
8881  case $lt_cv_dlopen in
8882  dlopen)
8883    save_CPPFLAGS="$CPPFLAGS"
8884    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8885
8886    save_LDFLAGS="$LDFLAGS"
8887    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8888
8889    save_LIBS="$LIBS"
8890    LIBS="$lt_cv_dlopen_libs $LIBS"
8891
8892    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8893echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8894if test "${lt_cv_dlopen_self+set}" = set; then
8895  echo $ECHO_N "(cached) $ECHO_C" >&6
8896else
8897  	  if test "$cross_compiling" = yes; then :
8898  lt_cv_dlopen_self=cross
8899else
8900  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8901  lt_status=$lt_dlunknown
8902  cat > conftest.$ac_ext <<EOF
8903#line 8903 "configure"
8904#include "confdefs.h"
8905
8906#if HAVE_DLFCN_H
8907#include <dlfcn.h>
8908#endif
8909
8910#include <stdio.h>
8911
8912#ifdef RTLD_GLOBAL
8913#  define LT_DLGLOBAL		RTLD_GLOBAL
8914#else
8915#  ifdef DL_GLOBAL
8916#    define LT_DLGLOBAL		DL_GLOBAL
8917#  else
8918#    define LT_DLGLOBAL		0
8919#  endif
8920#endif
8921
8922/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8923   find out it does not work in some platform. */
8924#ifndef LT_DLLAZY_OR_NOW
8925#  ifdef RTLD_LAZY
8926#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8927#  else
8928#    ifdef DL_LAZY
8929#      define LT_DLLAZY_OR_NOW		DL_LAZY
8930#    else
8931#      ifdef RTLD_NOW
8932#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8933#      else
8934#        ifdef DL_NOW
8935#          define LT_DLLAZY_OR_NOW	DL_NOW
8936#        else
8937#          define LT_DLLAZY_OR_NOW	0
8938#        endif
8939#      endif
8940#    endif
8941#  endif
8942#endif
8943
8944#ifdef __cplusplus
8945extern "C" void exit (int);
8946#endif
8947
8948void fnord() { int i=42;}
8949int main ()
8950{
8951  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8952  int status = $lt_dlunknown;
8953
8954  if (self)
8955    {
8956      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8957      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8958      /* dlclose (self); */
8959    }
8960
8961    exit (status);
8962}
8963EOF
8964  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8965  (eval $ac_link) 2>&5
8966  ac_status=$?
8967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8969    (./conftest; exit; ) 2>/dev/null
8970    lt_status=$?
8971    case x$lt_status in
8972      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8973      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8974      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8975    esac
8976  else :
8977    # compilation failed
8978    lt_cv_dlopen_self=no
8979  fi
8980fi
8981rm -fr conftest*
8982
8983
8984fi
8985echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8986echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8987
8988    if test "x$lt_cv_dlopen_self" = xyes; then
8989      LDFLAGS="$LDFLAGS $link_static_flag"
8990      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8991echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8992if test "${lt_cv_dlopen_self_static+set}" = set; then
8993  echo $ECHO_N "(cached) $ECHO_C" >&6
8994else
8995  	  if test "$cross_compiling" = yes; then :
8996  lt_cv_dlopen_self_static=cross
8997else
8998  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8999  lt_status=$lt_dlunknown
9000  cat > conftest.$ac_ext <<EOF
9001#line 9001 "configure"
9002#include "confdefs.h"
9003
9004#if HAVE_DLFCN_H
9005#include <dlfcn.h>
9006#endif
9007
9008#include <stdio.h>
9009
9010#ifdef RTLD_GLOBAL
9011#  define LT_DLGLOBAL		RTLD_GLOBAL
9012#else
9013#  ifdef DL_GLOBAL
9014#    define LT_DLGLOBAL		DL_GLOBAL
9015#  else
9016#    define LT_DLGLOBAL		0
9017#  endif
9018#endif
9019
9020/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9021   find out it does not work in some platform. */
9022#ifndef LT_DLLAZY_OR_NOW
9023#  ifdef RTLD_LAZY
9024#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9025#  else
9026#    ifdef DL_LAZY
9027#      define LT_DLLAZY_OR_NOW		DL_LAZY
9028#    else
9029#      ifdef RTLD_NOW
9030#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9031#      else
9032#        ifdef DL_NOW
9033#          define LT_DLLAZY_OR_NOW	DL_NOW
9034#        else
9035#          define LT_DLLAZY_OR_NOW	0
9036#        endif
9037#      endif
9038#    endif
9039#  endif
9040#endif
9041
9042#ifdef __cplusplus
9043extern "C" void exit (int);
9044#endif
9045
9046void fnord() { int i=42;}
9047int main ()
9048{
9049  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9050  int status = $lt_dlunknown;
9051
9052  if (self)
9053    {
9054      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9055      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9056      /* dlclose (self); */
9057    }
9058
9059    exit (status);
9060}
9061EOF
9062  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9063  (eval $ac_link) 2>&5
9064  ac_status=$?
9065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9067    (./conftest; exit; ) 2>/dev/null
9068    lt_status=$?
9069    case x$lt_status in
9070      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9071      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9072      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9073    esac
9074  else :
9075    # compilation failed
9076    lt_cv_dlopen_self_static=no
9077  fi
9078fi
9079rm -fr conftest*
9080
9081
9082fi
9083echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9084echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9085    fi
9086
9087    CPPFLAGS="$save_CPPFLAGS"
9088    LDFLAGS="$save_LDFLAGS"
9089    LIBS="$save_LIBS"
9090    ;;
9091  esac
9092
9093  case $lt_cv_dlopen_self in
9094  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9095  *) enable_dlopen_self=unknown ;;
9096  esac
9097
9098  case $lt_cv_dlopen_self_static in
9099  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9100  *) enable_dlopen_self_static=unknown ;;
9101  esac
9102fi
9103
9104
9105# Report which librarie types wil actually be built
9106echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9107echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9108echo "$as_me:$LINENO: result: $can_build_shared" >&5
9109echo "${ECHO_T}$can_build_shared" >&6
9110
9111echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9112echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9113test "$can_build_shared" = "no" && enable_shared=no
9114
9115# On AIX, shared libraries and static libraries use the same namespace, and
9116# are all built from PIC.
9117case "$host_os" in
9118aix3*)
9119  test "$enable_shared" = yes && enable_static=no
9120  if test -n "$RANLIB"; then
9121    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9122    postinstall_cmds='$RANLIB $lib'
9123  fi
9124  ;;
9125
9126aix4* | aix5*)
9127  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9128    test "$enable_shared" = yes && enable_static=no
9129  fi
9130    ;;
9131esac
9132echo "$as_me:$LINENO: result: $enable_shared" >&5
9133echo "${ECHO_T}$enable_shared" >&6
9134
9135echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9136echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9137# Make sure either enable_shared or enable_static is yes.
9138test "$enable_shared" = yes || enable_static=yes
9139echo "$as_me:$LINENO: result: $enable_static" >&5
9140echo "${ECHO_T}$enable_static" >&6
9141
9142# The else clause should only fire when bootstrapping the
9143# libtool distribution, otherwise you forgot to ship ltmain.sh
9144# with your package, and you will get complaints that there are
9145# no rules to generate ltmain.sh.
9146if test -f "$ltmain"; then
9147  # See if we are running on zsh, and set the options which allow our commands through
9148  # without removal of \ escapes.
9149  if test -n "${ZSH_VERSION+set}" ; then
9150    setopt NO_GLOB_SUBST
9151  fi
9152  # Now quote all the things that may contain metacharacters while being
9153  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9154  # variables and quote the copies for generation of the libtool script.
9155  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9156    SED SHELL STRIP \
9157    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9158    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9159    deplibs_check_method reload_flag reload_cmds need_locks \
9160    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9161    lt_cv_sys_global_symbol_to_c_name_address \
9162    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9163    old_postinstall_cmds old_postuninstall_cmds \
9164    compiler \
9165    CC \
9166    LD \
9167    lt_prog_compiler_wl \
9168    lt_prog_compiler_pic \
9169    lt_prog_compiler_static \
9170    lt_prog_compiler_no_builtin_flag \
9171    export_dynamic_flag_spec \
9172    thread_safe_flag_spec \
9173    whole_archive_flag_spec \
9174    enable_shared_with_static_runtimes \
9175    old_archive_cmds \
9176    old_archive_from_new_cmds \
9177    predep_objects \
9178    postdep_objects \
9179    predeps \
9180    postdeps \
9181    compiler_lib_search_path \
9182    archive_cmds \
9183    archive_expsym_cmds \
9184    postinstall_cmds \
9185    postuninstall_cmds \
9186    old_archive_from_expsyms_cmds \
9187    allow_undefined_flag \
9188    no_undefined_flag \
9189    export_symbols_cmds \
9190    hardcode_libdir_flag_spec \
9191    hardcode_libdir_flag_spec_ld \
9192    hardcode_libdir_separator \
9193    hardcode_automatic \
9194    module_cmds \
9195    module_expsym_cmds \
9196    lt_cv_prog_compiler_c_o \
9197    exclude_expsyms \
9198    include_expsyms; do
9199
9200    case $var in
9201    old_archive_cmds | \
9202    old_archive_from_new_cmds | \
9203    archive_cmds | \
9204    archive_expsym_cmds | \
9205    module_cmds | \
9206    module_expsym_cmds | \
9207    old_archive_from_expsyms_cmds | \
9208    export_symbols_cmds | \
9209    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9210    postinstall_cmds | postuninstall_cmds | \
9211    old_postinstall_cmds | old_postuninstall_cmds | \
9212    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9213      # Double-quote double-evaled strings.
9214      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9215      ;;
9216    *)
9217      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9218      ;;
9219    esac
9220  done
9221
9222  case $lt_echo in
9223  *'\$0 --fallback-echo"')
9224    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9225    ;;
9226  esac
9227
9228cfgfile="${ofile}T"
9229  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9230  $rm -f "$cfgfile"
9231  { echo "$as_me:$LINENO: creating $ofile" >&5
9232echo "$as_me: creating $ofile" >&6;}
9233
9234  cat <<__EOF__ >> "$cfgfile"
9235#! $SHELL
9236
9237# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9238# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9239# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9240#
9241# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9242# Free Software Foundation, Inc.
9243#
9244# This file is part of GNU Libtool:
9245# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9246#
9247# This program is free software; you can redistribute it and/or modify
9248# it under the terms of the GNU General Public License as published by
9249# the Free Software Foundation; either version 2 of the License, or
9250# (at your option) any later version.
9251#
9252# This program is distributed in the hope that it will be useful, but
9253# WITHOUT ANY WARRANTY; without even the implied warranty of
9254# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9255# General Public License for more details.
9256#
9257# You should have received a copy of the GNU General Public License
9258# along with this program; if not, write to the Free Software
9259# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9260#
9261# As a special exception to the GNU General Public License, if you
9262# distribute this file as part of a program that contains a
9263# configuration script generated by Autoconf, you may include it under
9264# the same distribution terms that you use for the rest of that program.
9265
9266# A sed program that does not truncate output.
9267SED=$lt_SED
9268
9269# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9270Xsed="$SED -e s/^X//"
9271
9272# The HP-UX ksh and POSIX shell print the target directory to stdout
9273# if CDPATH is set.
9274(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9275
9276# The names of the tagged configurations supported by this script.
9277available_tags=
9278
9279# ### BEGIN LIBTOOL CONFIG
9280
9281# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9282
9283# Shell to use when invoking shell scripts.
9284SHELL=$lt_SHELL
9285
9286# Whether or not to build shared libraries.
9287build_libtool_libs=$enable_shared
9288
9289# Whether or not to build static libraries.
9290build_old_libs=$enable_static
9291
9292# Whether or not to add -lc for building shared libraries.
9293build_libtool_need_lc=$archive_cmds_need_lc
9294
9295# Whether or not to disallow shared libs when runtime libs are static
9296allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9297
9298# Whether or not to optimize for fast installation.
9299fast_install=$enable_fast_install
9300
9301# The host system.
9302host_alias=$host_alias
9303host=$host
9304
9305# An echo program that does not interpret backslashes.
9306echo=$lt_echo
9307
9308# The archiver.
9309AR=$lt_AR
9310AR_FLAGS=$lt_AR_FLAGS
9311
9312# A C compiler.
9313LTCC=$lt_LTCC
9314
9315# A language-specific compiler.
9316CC=$lt_compiler
9317
9318# Is the compiler the GNU C compiler?
9319with_gcc=$GCC
9320
9321# An ERE matcher.
9322EGREP=$lt_EGREP
9323
9324# The linker used to build libraries.
9325LD=$lt_LD
9326
9327# Whether we need hard or soft links.
9328LN_S=$lt_LN_S
9329
9330# A BSD-compatible nm program.
9331NM=$lt_NM
9332
9333# A symbol stripping program
9334STRIP=$lt_STRIP
9335
9336# Used to examine libraries when file_magic_cmd begins "file"
9337MAGIC_CMD=$MAGIC_CMD
9338
9339# Used on cygwin: DLL creation program.
9340DLLTOOL="$DLLTOOL"
9341
9342# Used on cygwin: object dumper.
9343OBJDUMP="$OBJDUMP"
9344
9345# Used on cygwin: assembler.
9346AS="$AS"
9347
9348# The name of the directory that contains temporary libtool files.
9349objdir=$objdir
9350
9351# How to create reloadable object files.
9352reload_flag=$lt_reload_flag
9353reload_cmds=$lt_reload_cmds
9354
9355# How to pass a linker flag through the compiler.
9356wl=$lt_lt_prog_compiler_wl
9357
9358# Object file suffix (normally "o").
9359objext="$ac_objext"
9360
9361# Old archive suffix (normally "a").
9362libext="$libext"
9363
9364# Shared library suffix (normally ".so").
9365shrext_cmds='$shrext_cmds'
9366
9367# Executable file suffix (normally "").
9368exeext="$exeext"
9369
9370# Additional compiler flags for building library objects.
9371pic_flag=$lt_lt_prog_compiler_pic
9372pic_mode=$pic_mode
9373
9374# What is the maximum length of a command?
9375max_cmd_len=$lt_cv_sys_max_cmd_len
9376
9377# Does compiler simultaneously support -c and -o options?
9378compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9379
9380# Must we lock files when doing compilation ?
9381need_locks=$lt_need_locks
9382
9383# Do we need the lib prefix for modules?
9384need_lib_prefix=$need_lib_prefix
9385
9386# Do we need a version for libraries?
9387need_version=$need_version
9388
9389# Whether dlopen is supported.
9390dlopen_support=$enable_dlopen
9391
9392# Whether dlopen of programs is supported.
9393dlopen_self=$enable_dlopen_self
9394
9395# Whether dlopen of statically linked programs is supported.
9396dlopen_self_static=$enable_dlopen_self_static
9397
9398# Compiler flag to prevent dynamic linking.
9399link_static_flag=$lt_lt_prog_compiler_static
9400
9401# Compiler flag to turn off builtin functions.
9402no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9403
9404# Compiler flag to allow reflexive dlopens.
9405export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9406
9407# Compiler flag to generate shared objects directly from archives.
9408whole_archive_flag_spec=$lt_whole_archive_flag_spec
9409
9410# Compiler flag to generate thread-safe objects.
9411thread_safe_flag_spec=$lt_thread_safe_flag_spec
9412
9413# Library versioning type.
9414version_type=$version_type
9415
9416# Format of library name prefix.
9417libname_spec=$lt_libname_spec
9418
9419# List of archive names.  First name is the real one, the rest are links.
9420# The last name is the one that the linker finds with -lNAME.
9421library_names_spec=$lt_library_names_spec
9422
9423# The coded name of the library, if different from the real name.
9424soname_spec=$lt_soname_spec
9425
9426# Commands used to build and install an old-style archive.
9427RANLIB=$lt_RANLIB
9428old_archive_cmds=$lt_old_archive_cmds
9429old_postinstall_cmds=$lt_old_postinstall_cmds
9430old_postuninstall_cmds=$lt_old_postuninstall_cmds
9431
9432# Create an old-style archive from a shared archive.
9433old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9434
9435# Create a temporary old-style archive to link instead of a shared archive.
9436old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9437
9438# Commands used to build and install a shared archive.
9439archive_cmds=$lt_archive_cmds
9440archive_expsym_cmds=$lt_archive_expsym_cmds
9441postinstall_cmds=$lt_postinstall_cmds
9442postuninstall_cmds=$lt_postuninstall_cmds
9443
9444# Commands used to build a loadable module (assumed same as above if empty)
9445module_cmds=$lt_module_cmds
9446module_expsym_cmds=$lt_module_expsym_cmds
9447
9448# Commands to strip libraries.
9449old_striplib=$lt_old_striplib
9450striplib=$lt_striplib
9451
9452# Dependencies to place before the objects being linked to create a
9453# shared library.
9454predep_objects=$lt_predep_objects
9455
9456# Dependencies to place after the objects being linked to create a
9457# shared library.
9458postdep_objects=$lt_postdep_objects
9459
9460# Dependencies to place before the objects being linked to create a
9461# shared library.
9462predeps=$lt_predeps
9463
9464# Dependencies to place after the objects being linked to create a
9465# shared library.
9466postdeps=$lt_postdeps
9467
9468# The library search path used internally by the compiler when linking
9469# a shared library.
9470compiler_lib_search_path=$lt_compiler_lib_search_path
9471
9472# Method to check whether dependent libraries are shared objects.
9473deplibs_check_method=$lt_deplibs_check_method
9474
9475# Command to use when deplibs_check_method == file_magic.
9476file_magic_cmd=$lt_file_magic_cmd
9477
9478# Flag that allows shared libraries with undefined symbols to be built.
9479allow_undefined_flag=$lt_allow_undefined_flag
9480
9481# Flag that forces no undefined symbols.
9482no_undefined_flag=$lt_no_undefined_flag
9483
9484# Commands used to finish a libtool library installation in a directory.
9485finish_cmds=$lt_finish_cmds
9486
9487# Same as above, but a single script fragment to be evaled but not shown.
9488finish_eval=$lt_finish_eval
9489
9490# Take the output of nm and produce a listing of raw symbols and C names.
9491global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9492
9493# Transform the output of nm in a proper C declaration
9494global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9495
9496# Transform the output of nm in a C name address pair
9497global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9498
9499# This is the shared library runtime path variable.
9500runpath_var=$runpath_var
9501
9502# This is the shared library path variable.
9503shlibpath_var=$shlibpath_var
9504
9505# Is shlibpath searched before the hard-coded library search path?
9506shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9507
9508# How to hardcode a shared library path into an executable.
9509hardcode_action=$hardcode_action
9510
9511# Whether we should hardcode library paths into libraries.
9512hardcode_into_libs=$hardcode_into_libs
9513
9514# Flag to hardcode \$libdir into a binary during linking.
9515# This must work even if \$libdir does not exist.
9516hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9517
9518# If ld is used when linking, flag to hardcode \$libdir into
9519# a binary during linking. This must work even if \$libdir does
9520# not exist.
9521hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9522
9523# Whether we need a single -rpath flag with a separated argument.
9524hardcode_libdir_separator=$lt_hardcode_libdir_separator
9525
9526# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9527# resulting binary.
9528hardcode_direct=$hardcode_direct
9529
9530# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9531# resulting binary.
9532hardcode_minus_L=$hardcode_minus_L
9533
9534# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9535# the resulting binary.
9536hardcode_shlibpath_var=$hardcode_shlibpath_var
9537
9538# Set to yes if building a shared library automatically hardcodes DIR into the library
9539# and all subsequent libraries and executables linked against it.
9540hardcode_automatic=$hardcode_automatic
9541
9542# Variables whose values should be saved in libtool wrapper scripts and
9543# restored at relink time.
9544variables_saved_for_relink="$variables_saved_for_relink"
9545
9546# Whether libtool must link a program against all its dependency libraries.
9547link_all_deplibs=$link_all_deplibs
9548
9549# Compile-time system search path for libraries
9550sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9551
9552# Run-time system search path for libraries
9553sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9554
9555# Fix the shell variable \$srcfile for the compiler.
9556fix_srcfile_path="$fix_srcfile_path"
9557
9558# Set to yes if exported symbols are required.
9559always_export_symbols=$always_export_symbols
9560
9561# The commands to list exported symbols.
9562export_symbols_cmds=$lt_export_symbols_cmds
9563
9564# The commands to extract the exported symbol list from a shared archive.
9565extract_expsyms_cmds=$lt_extract_expsyms_cmds
9566
9567# Symbols that should not be listed in the preloaded symbols.
9568exclude_expsyms=$lt_exclude_expsyms
9569
9570# Symbols that must always be exported.
9571include_expsyms=$lt_include_expsyms
9572
9573# ### END LIBTOOL CONFIG
9574
9575__EOF__
9576
9577
9578  case $host_os in
9579  aix3*)
9580    cat <<\EOF >> "$cfgfile"
9581
9582# AIX sometimes has problems with the GCC collect2 program.  For some
9583# reason, if we set the COLLECT_NAMES environment variable, the problems
9584# vanish in a puff of smoke.
9585if test "X${COLLECT_NAMES+set}" != Xset; then
9586  COLLECT_NAMES=
9587  export COLLECT_NAMES
9588fi
9589EOF
9590    ;;
9591  esac
9592
9593  # We use sed instead of cat because bash on DJGPP gets confused if
9594  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9595  # text mode, it properly converts lines to CR/LF.  This bash problem
9596  # is reportedly fixed, but why not run on old versions too?
9597  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9598
9599  mv -f "$cfgfile" "$ofile" || \
9600    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9601  chmod +x "$ofile"
9602
9603else
9604  # If there is no Makefile yet, we rely on a make rule to execute
9605  # `config.status --recheck' to rerun these tests and create the
9606  # libtool script then.
9607  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9608  if test -f "$ltmain_in"; then
9609    test -f Makefile && make "$ltmain"
9610  fi
9611fi
9612
9613
9614ac_ext=c
9615ac_cpp='$CPP $CPPFLAGS'
9616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9618ac_compiler_gnu=$ac_cv_c_compiler_gnu
9619
9620CC="$lt_save_CC"
9621
9622
9623# Check whether --with-tags or --without-tags was given.
9624if test "${with_tags+set}" = set; then
9625  withval="$with_tags"
9626  tagnames="$withval"
9627fi;
9628
9629if test -f "$ltmain" && test -n "$tagnames"; then
9630  if test ! -f "${ofile}"; then
9631    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9632echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9633  fi
9634
9635  if test -z "$LTCC"; then
9636    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9637    if test -z "$LTCC"; then
9638      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9639echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9640    else
9641      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9642echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9643    fi
9644  fi
9645
9646  # Extract list of available tagged configurations in $ofile.
9647  # Note that this assumes the entire list is on one line.
9648  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9649
9650  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9651  for tagname in $tagnames; do
9652    IFS="$lt_save_ifs"
9653    # Check whether tagname contains only valid characters
9654    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9655    "") ;;
9656    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9657echo "$as_me: error: invalid tag name: $tagname" >&2;}
9658   { (exit 1); exit 1; }; }
9659	;;
9660    esac
9661
9662    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9663    then
9664      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9665echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9666   { (exit 1); exit 1; }; }
9667    fi
9668
9669    # Update the list of available tags.
9670    if test -n "$tagname"; then
9671      echo appending configuration tag \"$tagname\" to $ofile
9672
9673      case $tagname in
9674      CXX)
9675	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9676	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9677	    (test "X$CXX" != "Xg++"))) ; then
9678	  ac_ext=cc
9679ac_cpp='$CXXCPP $CPPFLAGS'
9680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9683
9684
9685
9686
9687archive_cmds_need_lc_CXX=no
9688allow_undefined_flag_CXX=
9689always_export_symbols_CXX=no
9690archive_expsym_cmds_CXX=
9691export_dynamic_flag_spec_CXX=
9692hardcode_direct_CXX=no
9693hardcode_libdir_flag_spec_CXX=
9694hardcode_libdir_flag_spec_ld_CXX=
9695hardcode_libdir_separator_CXX=
9696hardcode_minus_L_CXX=no
9697hardcode_automatic_CXX=no
9698module_cmds_CXX=
9699module_expsym_cmds_CXX=
9700link_all_deplibs_CXX=unknown
9701old_archive_cmds_CXX=$old_archive_cmds
9702no_undefined_flag_CXX=
9703whole_archive_flag_spec_CXX=
9704enable_shared_with_static_runtimes_CXX=no
9705
9706# Dependencies to place before and after the object being linked:
9707predep_objects_CXX=
9708postdep_objects_CXX=
9709predeps_CXX=
9710postdeps_CXX=
9711compiler_lib_search_path_CXX=
9712
9713# Source file extension for C++ test sources.
9714ac_ext=cc
9715
9716# Object file extension for compiled C++ test sources.
9717objext=o
9718objext_CXX=$objext
9719
9720# Code to be used in simple compile tests
9721lt_simple_compile_test_code="int some_variable = 0;\n"
9722
9723# Code to be used in simple link tests
9724lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9725
9726# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9727
9728# If no C compiler was specified, use CC.
9729LTCC=${LTCC-"$CC"}
9730
9731# Allow CC to be a program name with arguments.
9732compiler=$CC
9733
9734
9735# Allow CC to be a program name with arguments.
9736lt_save_CC=$CC
9737lt_save_LD=$LD
9738lt_save_GCC=$GCC
9739GCC=$GXX
9740lt_save_with_gnu_ld=$with_gnu_ld
9741lt_save_path_LD=$lt_cv_path_LD
9742if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9743  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9744else
9745  unset lt_cv_prog_gnu_ld
9746fi
9747if test -n "${lt_cv_path_LDCXX+set}"; then
9748  lt_cv_path_LD=$lt_cv_path_LDCXX
9749else
9750  unset lt_cv_path_LD
9751fi
9752test -z "${LDCXX+set}" || LD=$LDCXX
9753CC=${CXX-"c++"}
9754compiler=$CC
9755compiler_CXX=$CC
9756cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9757
9758# We don't want -fno-exception wen compiling C++ code, so set the
9759# no_builtin_flag separately
9760if test "$GXX" = yes; then
9761  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9762else
9763  lt_prog_compiler_no_builtin_flag_CXX=
9764fi
9765
9766if test "$GXX" = yes; then
9767  # Set up default GNU C++ configuration
9768
9769
9770# Check whether --with-gnu-ld or --without-gnu-ld was given.
9771if test "${with_gnu_ld+set}" = set; then
9772  withval="$with_gnu_ld"
9773  test "$withval" = no || with_gnu_ld=yes
9774else
9775  with_gnu_ld=no
9776fi;
9777ac_prog=ld
9778if test "$GCC" = yes; then
9779  # Check if gcc -print-prog-name=ld gives a path.
9780  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9781echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9782  case $host in
9783  *-*-mingw*)
9784    # gcc leaves a trailing carriage return which upsets mingw
9785    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9786  *)
9787    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9788  esac
9789  case $ac_prog in
9790    # Accept absolute paths.
9791    [\\/]* | ?:[\\/]*)
9792      re_direlt='/[^/][^/]*/\.\./'
9793      # Canonicalize the pathname of ld
9794      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9795      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9796	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9797      done
9798      test -z "$LD" && LD="$ac_prog"
9799      ;;
9800  "")
9801    # If it fails, then pretend we aren't using GCC.
9802    ac_prog=ld
9803    ;;
9804  *)
9805    # If it is relative, then search for the first ld in PATH.
9806    with_gnu_ld=unknown
9807    ;;
9808  esac
9809elif test "$with_gnu_ld" = yes; then
9810  echo "$as_me:$LINENO: checking for GNU ld" >&5
9811echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9812else
9813  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9814echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9815fi
9816if test "${lt_cv_path_LD+set}" = set; then
9817  echo $ECHO_N "(cached) $ECHO_C" >&6
9818else
9819  if test -z "$LD"; then
9820  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9821  for ac_dir in $PATH; do
9822    IFS="$lt_save_ifs"
9823    test -z "$ac_dir" && ac_dir=.
9824    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9825      lt_cv_path_LD="$ac_dir/$ac_prog"
9826      # Check to see if the program is GNU ld.  I'd rather use --version,
9827      # but apparently some GNU ld's only accept -v.
9828      # Break only if it was the GNU/non-GNU ld that we prefer.
9829      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9830      *GNU* | *'with BFD'*)
9831	test "$with_gnu_ld" != no && break
9832	;;
9833      *)
9834	test "$with_gnu_ld" != yes && break
9835	;;
9836      esac
9837    fi
9838  done
9839  IFS="$lt_save_ifs"
9840else
9841  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9842fi
9843fi
9844
9845LD="$lt_cv_path_LD"
9846if test -n "$LD"; then
9847  echo "$as_me:$LINENO: result: $LD" >&5
9848echo "${ECHO_T}$LD" >&6
9849else
9850  echo "$as_me:$LINENO: result: no" >&5
9851echo "${ECHO_T}no" >&6
9852fi
9853test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9854echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9855   { (exit 1); exit 1; }; }
9856echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9857echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9858if test "${lt_cv_prog_gnu_ld+set}" = set; then
9859  echo $ECHO_N "(cached) $ECHO_C" >&6
9860else
9861  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9862case `$LD -v 2>&1 </dev/null` in
9863*GNU* | *'with BFD'*)
9864  lt_cv_prog_gnu_ld=yes
9865  ;;
9866*)
9867  lt_cv_prog_gnu_ld=no
9868  ;;
9869esac
9870fi
9871echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9872echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9873with_gnu_ld=$lt_cv_prog_gnu_ld
9874
9875
9876
9877  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9878  # archiving commands below assume that GNU ld is being used.
9879  if test "$with_gnu_ld" = yes; then
9880    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9881    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'
9882
9883    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9884    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9885
9886    # If archive_cmds runs LD, not CC, wlarc should be empty
9887    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9888    #     investigate it a little bit more. (MM)
9889    wlarc='${wl}'
9890
9891    # ancient GNU ld didn't support --whole-archive et. al.
9892    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9893	grep 'no-whole-archive' > /dev/null; then
9894      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9895    else
9896      whole_archive_flag_spec_CXX=
9897    fi
9898  else
9899    with_gnu_ld=no
9900    wlarc=
9901
9902    # A generic and very simple default shared library creation
9903    # command for GNU C++ for the case where it uses the native
9904    # linker, instead of GNU ld.  If possible, this setting should
9905    # overridden to take advantage of the native linker features on
9906    # the platform it is being used on.
9907    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9908  fi
9909
9910  # Commands to make compiler produce verbose output that lists
9911  # what "hidden" libraries, object files and flags are used when
9912  # linking a shared library.
9913  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9914
9915else
9916  GXX=no
9917  with_gnu_ld=no
9918  wlarc=
9919fi
9920
9921# PORTME: fill in a description of your system's C++ link characteristics
9922echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9923echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9924ld_shlibs_CXX=yes
9925case $host_os in
9926  aix3*)
9927    # FIXME: insert proper C++ library support
9928    ld_shlibs_CXX=no
9929    ;;
9930  aix4* | aix5*)
9931    if test "$host_cpu" = ia64; then
9932      # On IA64, the linker does run time linking by default, so we don't
9933      # have to do anything special.
9934      aix_use_runtimelinking=no
9935      exp_sym_flag='-Bexport'
9936      no_entry_flag=""
9937    else
9938      aix_use_runtimelinking=no
9939
9940      # Test if we are trying to use run time linking or normal
9941      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9942      # need to do runtime linking.
9943      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9944	for ld_flag in $LDFLAGS; do
9945	  case $ld_flag in
9946	  *-brtl*)
9947	    aix_use_runtimelinking=yes
9948	    break
9949	    ;;
9950	  esac
9951	done
9952      esac
9953
9954      exp_sym_flag='-bexport'
9955      no_entry_flag='-bnoentry'
9956    fi
9957
9958    # When large executables or shared objects are built, AIX ld can
9959    # have problems creating the table of contents.  If linking a library
9960    # or program results in "error TOC overflow" add -mminimal-toc to
9961    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9962    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9963
9964    archive_cmds_CXX=''
9965    hardcode_direct_CXX=yes
9966    hardcode_libdir_separator_CXX=':'
9967    link_all_deplibs_CXX=yes
9968
9969    if test "$GXX" = yes; then
9970      case $host_os in aix4.012|aix4.012.*)
9971      # We only want to do this on AIX 4.2 and lower, the check
9972      # below for broken collect2 doesn't work under 4.3+
9973	collect2name=`${CC} -print-prog-name=collect2`
9974	if test -f "$collect2name" && \
9975	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9976	then
9977	  # We have reworked collect2
9978	  hardcode_direct_CXX=yes
9979	else
9980	  # We have old collect2
9981	  hardcode_direct_CXX=unsupported
9982	  # It fails to find uninstalled libraries when the uninstalled
9983	  # path is not listed in the libpath.  Setting hardcode_minus_L
9984	  # to unsupported forces relinking
9985	  hardcode_minus_L_CXX=yes
9986	  hardcode_libdir_flag_spec_CXX='-L$libdir'
9987	  hardcode_libdir_separator_CXX=
9988	fi
9989      esac
9990      shared_flag='-shared'
9991    else
9992      # not using gcc
9993      if test "$host_cpu" = ia64; then
9994	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9995	# chokes on -Wl,-G. The following line is correct:
9996	shared_flag='-G'
9997      else
9998	if test "$aix_use_runtimelinking" = yes; then
9999	  shared_flag='${wl}-G'
10000	else
10001	  shared_flag='${wl}-bM:SRE'
10002	fi
10003      fi
10004    fi
10005
10006    # It seems that -bexpall does not export symbols beginning with
10007    # underscore (_), so it is better to generate a list of symbols to export.
10008    always_export_symbols_CXX=yes
10009    if test "$aix_use_runtimelinking" = yes; then
10010      # Warning - without using the other runtime loading flags (-brtl),
10011      # -berok will link without error, but may produce a broken library.
10012      allow_undefined_flag_CXX='-berok'
10013      # Determine the default libpath from the value encoded in an empty executable.
10014      cat >conftest.$ac_ext <<_ACEOF
10015/* confdefs.h.  */
10016_ACEOF
10017cat confdefs.h >>conftest.$ac_ext
10018cat >>conftest.$ac_ext <<_ACEOF
10019/* end confdefs.h.  */
10020
10021int
10022main ()
10023{
10024
10025  ;
10026  return 0;
10027}
10028_ACEOF
10029rm -f conftest.$ac_objext conftest$ac_exeext
10030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10031  (eval $ac_link) 2>conftest.er1
10032  ac_status=$?
10033  grep -v '^ *+' conftest.er1 >conftest.err
10034  rm -f conftest.er1
10035  cat conftest.err >&5
10036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037  (exit $ac_status); } &&
10038	 { ac_try='test -z "$ac_cxx_werror_flag"
10039			 || test ! -s conftest.err'
10040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041  (eval $ac_try) 2>&5
10042  ac_status=$?
10043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044  (exit $ac_status); }; } &&
10045	 { ac_try='test -s conftest$ac_exeext'
10046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047  (eval $ac_try) 2>&5
10048  ac_status=$?
10049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050  (exit $ac_status); }; }; then
10051
10052aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10053}'`
10054# Check for a 64-bit object if we didn't find anything.
10055if 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; }
10056}'`; fi
10057else
10058  echo "$as_me: failed program was:" >&5
10059sed 's/^/| /' conftest.$ac_ext >&5
10060
10061fi
10062rm -f conftest.err conftest.$ac_objext \
10063      conftest$ac_exeext conftest.$ac_ext
10064if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10065
10066      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10067
10068      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10069     else
10070      if test "$host_cpu" = ia64; then
10071	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10072	allow_undefined_flag_CXX="-z nodefs"
10073	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10074      else
10075	# Determine the default libpath from the value encoded in an empty executable.
10076	cat >conftest.$ac_ext <<_ACEOF
10077/* confdefs.h.  */
10078_ACEOF
10079cat confdefs.h >>conftest.$ac_ext
10080cat >>conftest.$ac_ext <<_ACEOF
10081/* end confdefs.h.  */
10082
10083int
10084main ()
10085{
10086
10087  ;
10088  return 0;
10089}
10090_ACEOF
10091rm -f conftest.$ac_objext conftest$ac_exeext
10092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10093  (eval $ac_link) 2>conftest.er1
10094  ac_status=$?
10095  grep -v '^ *+' conftest.er1 >conftest.err
10096  rm -f conftest.er1
10097  cat conftest.err >&5
10098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099  (exit $ac_status); } &&
10100	 { ac_try='test -z "$ac_cxx_werror_flag"
10101			 || test ! -s conftest.err'
10102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103  (eval $ac_try) 2>&5
10104  ac_status=$?
10105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106  (exit $ac_status); }; } &&
10107	 { ac_try='test -s conftest$ac_exeext'
10108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109  (eval $ac_try) 2>&5
10110  ac_status=$?
10111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112  (exit $ac_status); }; }; then
10113
10114aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10115}'`
10116# Check for a 64-bit object if we didn't find anything.
10117if 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; }
10118}'`; fi
10119else
10120  echo "$as_me: failed program was:" >&5
10121sed 's/^/| /' conftest.$ac_ext >&5
10122
10123fi
10124rm -f conftest.err conftest.$ac_objext \
10125      conftest$ac_exeext conftest.$ac_ext
10126if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10127
10128	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10129	# Warning - without using the other run time loading flags,
10130	# -berok will link without error, but may produce a broken library.
10131	no_undefined_flag_CXX=' ${wl}-bernotok'
10132	allow_undefined_flag_CXX=' ${wl}-berok'
10133	# -bexpall does not export symbols beginning with underscore (_)
10134	always_export_symbols_CXX=yes
10135	# Exported symbols can be pulled into shared objects from archives
10136	whole_archive_flag_spec_CXX=' '
10137	archive_cmds_need_lc_CXX=yes
10138	# This is similar to how AIX traditionally builds it's shared libraries.
10139	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10140      fi
10141    fi
10142    ;;
10143  chorus*)
10144    case $cc_basename in
10145      *)
10146	# FIXME: insert proper C++ library support
10147	ld_shlibs_CXX=no
10148	;;
10149    esac
10150    ;;
10151
10152
10153  cygwin* | mingw* | pw32*)
10154    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10155    # as there is no search path for DLLs.
10156    hardcode_libdir_flag_spec_CXX='-L$libdir'
10157    allow_undefined_flag_CXX=unsupported
10158    always_export_symbols_CXX=no
10159    enable_shared_with_static_runtimes_CXX=yes
10160
10161    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10162      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10163      # If the export-symbols file already is a .def file (1st line
10164      # is EXPORTS), use it as is; otherwise, prepend...
10165      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10166	cp $export_symbols $output_objdir/$soname.def;
10167      else
10168	echo EXPORTS > $output_objdir/$soname.def;
10169	cat $export_symbols >> $output_objdir/$soname.def;
10170      fi~
10171      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10172    else
10173      ld_shlibs_CXX=no
10174    fi
10175  ;;
10176      darwin* | rhapsody*)
10177        case "$host_os" in
10178        rhapsody* | darwin1.[012])
10179         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10180         ;;
10181       *) # Darwin 1.3 on
10182         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10183           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10184         else
10185           case ${MACOSX_DEPLOYMENT_TARGET} in
10186             10.[012])
10187               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10188               ;;
10189             10.*)
10190               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10191               ;;
10192           esac
10193         fi
10194         ;;
10195        esac
10196      archive_cmds_need_lc_CXX=no
10197      hardcode_direct_CXX=no
10198      hardcode_automatic_CXX=yes
10199      hardcode_shlibpath_var_CXX=unsupported
10200      whole_archive_flag_spec_CXX=''
10201      link_all_deplibs_CXX=yes
10202
10203    if test "$GXX" = yes ; then
10204      lt_int_apple_cc_single_mod=no
10205      output_verbose_link_cmd='echo'
10206      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10207       lt_int_apple_cc_single_mod=yes
10208      fi
10209      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10210       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10211      else
10212          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'
10213        fi
10214        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10215        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10216          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10217            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}'
10218          else
10219            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}'
10220          fi
10221            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}'
10222      else
10223      case "$cc_basename" in
10224        xlc*)
10225         output_verbose_link_cmd='echo'
10226          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'
10227          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10228          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10229          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}'
10230          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}'
10231          ;;
10232       *)
10233         ld_shlibs_CXX=no
10234          ;;
10235      esac
10236      fi
10237        ;;
10238
10239  dgux*)
10240    case $cc_basename in
10241      ec++)
10242	# FIXME: insert proper C++ library support
10243	ld_shlibs_CXX=no
10244	;;
10245      ghcx)
10246	# Green Hills C++ Compiler
10247	# FIXME: insert proper C++ library support
10248	ld_shlibs_CXX=no
10249	;;
10250      *)
10251	# FIXME: insert proper C++ library support
10252	ld_shlibs_CXX=no
10253	;;
10254    esac
10255    ;;
10256  freebsd12*)
10257    # C++ shared libraries reported to be fairly broken before switch to ELF
10258    ld_shlibs_CXX=no
10259    ;;
10260  freebsd-elf*)
10261    archive_cmds_need_lc_CXX=no
10262    ;;
10263  freebsd* | kfreebsd*-gnu)
10264    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10265    # conventions
10266    ld_shlibs_CXX=yes
10267    ;;
10268  gnu*)
10269    ;;
10270  hpux9*)
10271    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10272    hardcode_libdir_separator_CXX=:
10273    export_dynamic_flag_spec_CXX='${wl}-E'
10274    hardcode_direct_CXX=yes
10275    hardcode_minus_L_CXX=yes # Not in the search PATH,
10276				# but as the default
10277				# location of the library.
10278
10279    case $cc_basename in
10280    CC)
10281      # FIXME: insert proper C++ library support
10282      ld_shlibs_CXX=no
10283      ;;
10284    aCC)
10285      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'
10286      # Commands to make compiler produce verbose output that lists
10287      # what "hidden" libraries, object files and flags are used when
10288      # linking a shared library.
10289      #
10290      # There doesn't appear to be a way to prevent this compiler from
10291      # explicitly linking system object files so we need to strip them
10292      # from the output so that they don't get included in the library
10293      # dependencies.
10294      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'
10295      ;;
10296    *)
10297      if test "$GXX" = yes; then
10298        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'
10299      else
10300        # FIXME: insert proper C++ library support
10301        ld_shlibs_CXX=no
10302      fi
10303      ;;
10304    esac
10305    ;;
10306  hpux10*|hpux11*)
10307    if test $with_gnu_ld = no; then
10308      case "$host_cpu" in
10309      hppa*64*)
10310	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10311	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10312	hardcode_libdir_separator_CXX=:
10313        ;;
10314      ia64*)
10315	hardcode_libdir_flag_spec_CXX='-L$libdir'
10316        ;;
10317      *)
10318	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10319	hardcode_libdir_separator_CXX=:
10320	export_dynamic_flag_spec_CXX='${wl}-E'
10321        ;;
10322      esac
10323    fi
10324    case "$host_cpu" in
10325    hppa*64*)
10326      hardcode_direct_CXX=no
10327      hardcode_shlibpath_var_CXX=no
10328      ;;
10329    ia64*)
10330      hardcode_direct_CXX=no
10331      hardcode_shlibpath_var_CXX=no
10332      hardcode_minus_L_CXX=yes # Not in the search PATH,
10333					      # but as the default
10334					      # location of the library.
10335      ;;
10336    *)
10337      hardcode_direct_CXX=yes
10338      hardcode_minus_L_CXX=yes # Not in the search PATH,
10339					      # but as the default
10340					      # location of the library.
10341      ;;
10342    esac
10343
10344    case $cc_basename in
10345      CC)
10346	# FIXME: insert proper C++ library support
10347	ld_shlibs_CXX=no
10348	;;
10349      aCC)
10350	case "$host_cpu" in
10351	hppa*64*|ia64*)
10352	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10353	  ;;
10354	*)
10355	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10356	  ;;
10357	esac
10358	# Commands to make compiler produce verbose output that lists
10359	# what "hidden" libraries, object files and flags are used when
10360	# linking a shared library.
10361	#
10362	# There doesn't appear to be a way to prevent this compiler from
10363	# explicitly linking system object files so we need to strip them
10364	# from the output so that they don't get included in the library
10365	# dependencies.
10366	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'
10367	;;
10368      *)
10369	if test "$GXX" = yes; then
10370	  if test $with_gnu_ld = no; then
10371	    case "$host_cpu" in
10372	    ia64*|hppa*64*)
10373	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10374	      ;;
10375	    *)
10376	      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'
10377	      ;;
10378	    esac
10379	  fi
10380	else
10381	  # FIXME: insert proper C++ library support
10382	  ld_shlibs_CXX=no
10383	fi
10384	;;
10385    esac
10386    ;;
10387  irix5* | irix6*)
10388    case $cc_basename in
10389      CC)
10390	# SGI C++
10391	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 ${objdir}/so_locations -o $lib'
10392
10393	# Archives containing C++ object files must be created using
10394	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10395	# necessary to make sure instantiated templates are included
10396	# in the archive.
10397	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10398	;;
10399      *)
10400	if test "$GXX" = yes; then
10401	  if test "$with_gnu_ld" = no; then
10402	    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}${objdir}/so_locations -o $lib'
10403	  else
10404	    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'
10405	  fi
10406	fi
10407	link_all_deplibs_CXX=yes
10408	;;
10409    esac
10410    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10411    hardcode_libdir_separator_CXX=:
10412    ;;
10413  linux*)
10414    case $cc_basename in
10415      KCC)
10416	# Kuck and Associates, Inc. (KAI) C++ Compiler
10417
10418	# KCC will only create a shared library if the output file
10419	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10420	# to its proper name (with version) after linking.
10421	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'
10422	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'
10423	# Commands to make compiler produce verbose output that lists
10424	# what "hidden" libraries, object files and flags are used when
10425	# linking a shared library.
10426	#
10427	# There doesn't appear to be a way to prevent this compiler from
10428	# explicitly linking system object files so we need to strip them
10429	# from the output so that they don't get included in the library
10430	# dependencies.
10431	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'
10432
10433	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10434	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10435
10436	# Archives containing C++ object files must be created using
10437	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10438	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10439	;;
10440      icpc)
10441	# Intel C++
10442	with_gnu_ld=yes
10443	# version 8.0 and above of icpc choke on multiply defined symbols
10444	# if we add $predep_objects and $postdep_objects, however 7.1 and
10445	# earlier do not add the objects themselves.
10446	case `$CC -V 2>&1` in
10447	*"Version 7."*)
10448  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10449  	  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'
10450	  ;;
10451	*)  # Version 8.0 or newer
10452  	  archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10453  	archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10454	  ;;
10455	esac
10456	archive_cmds_need_lc_CXX=no
10457	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10458	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10459	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10460	;;
10461      cxx)
10462	# Compaq C++
10463	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10464	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'
10465
10466	runpath_var=LD_RUN_PATH
10467	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10468	hardcode_libdir_separator_CXX=:
10469
10470	# Commands to make compiler produce verbose output that lists
10471	# what "hidden" libraries, object files and flags are used when
10472	# linking a shared library.
10473	#
10474	# There doesn't appear to be a way to prevent this compiler from
10475	# explicitly linking system object files so we need to strip them
10476	# from the output so that they don't get included in the library
10477	# dependencies.
10478	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'
10479	;;
10480    esac
10481    ;;
10482  lynxos*)
10483    # FIXME: insert proper C++ library support
10484    ld_shlibs_CXX=no
10485    ;;
10486  m88k*)
10487    # FIXME: insert proper C++ library support
10488    ld_shlibs_CXX=no
10489    ;;
10490  mvs*)
10491    case $cc_basename in
10492      cxx)
10493	# FIXME: insert proper C++ library support
10494	ld_shlibs_CXX=no
10495	;;
10496      *)
10497	# FIXME: insert proper C++ library support
10498	ld_shlibs_CXX=no
10499	;;
10500    esac
10501    ;;
10502  netbsd*)
10503    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10504      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10505      wlarc=
10506      hardcode_libdir_flag_spec_CXX='-R$libdir'
10507      hardcode_direct_CXX=yes
10508      hardcode_shlibpath_var_CXX=no
10509    fi
10510    # Workaround some broken pre-1.5 toolchains
10511    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10512    ;;
10513  openbsd2*)
10514    # C++ shared libraries are fairly broken
10515    ld_shlibs_CXX=no
10516    ;;
10517  openbsd*)
10518    hardcode_direct_CXX=yes
10519    hardcode_shlibpath_var_CXX=no
10520    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10521    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10522    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10523      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10524      export_dynamic_flag_spec_CXX='${wl}-E'
10525      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10526    fi
10527    output_verbose_link_cmd='echo'
10528    ;;
10529  osf3*)
10530    case $cc_basename in
10531      KCC)
10532	# Kuck and Associates, Inc. (KAI) C++ Compiler
10533
10534	# KCC will only create a shared library if the output file
10535	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10536	# to its proper name (with version) after linking.
10537	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'
10538
10539	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10540	hardcode_libdir_separator_CXX=:
10541
10542	# Archives containing C++ object files must be created using
10543	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10544	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10545
10546	;;
10547      RCC)
10548	# Rational C++ 2.4.1
10549	# FIXME: insert proper C++ library support
10550	ld_shlibs_CXX=no
10551	;;
10552      cxx)
10553	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10554	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 ${objdir}/so_locations -o $lib'
10555
10556	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10557	hardcode_libdir_separator_CXX=:
10558
10559	# Commands to make compiler produce verbose output that lists
10560	# what "hidden" libraries, object files and flags are used when
10561	# linking a shared library.
10562	#
10563	# There doesn't appear to be a way to prevent this compiler from
10564	# explicitly linking system object files so we need to strip them
10565	# from the output so that they don't get included in the library
10566	# dependencies.
10567	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'
10568	;;
10569      *)
10570	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10571	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10572	  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}${objdir}/so_locations -o $lib'
10573
10574	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10575	  hardcode_libdir_separator_CXX=:
10576
10577	  # Commands to make compiler produce verbose output that lists
10578	  # what "hidden" libraries, object files and flags are used when
10579	  # linking a shared library.
10580	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10581
10582	else
10583	  # FIXME: insert proper C++ library support
10584	  ld_shlibs_CXX=no
10585	fi
10586	;;
10587    esac
10588    ;;
10589  osf4* | osf5*)
10590    case $cc_basename in
10591      KCC)
10592	# Kuck and Associates, Inc. (KAI) C++ Compiler
10593
10594	# KCC will only create a shared library if the output file
10595	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10596	# to its proper name (with version) after linking.
10597	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'
10598
10599	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10600	hardcode_libdir_separator_CXX=:
10601
10602	# Archives containing C++ object files must be created using
10603	# the KAI C++ compiler.
10604	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10605	;;
10606      RCC)
10607	# Rational C++ 2.4.1
10608	# FIXME: insert proper C++ library support
10609	ld_shlibs_CXX=no
10610	;;
10611      cxx)
10612	allow_undefined_flag_CXX=' -expect_unresolved \*'
10613	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 ${objdir}/so_locations -o $lib'
10614	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10615	  echo "-hidden">> $lib.exp~
10616	  $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 $objdir/so_locations -o $lib~
10617	  $rm $lib.exp'
10618
10619	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10620	hardcode_libdir_separator_CXX=:
10621
10622	# Commands to make compiler produce verbose output that lists
10623	# what "hidden" libraries, object files and flags are used when
10624	# linking a shared library.
10625	#
10626	# There doesn't appear to be a way to prevent this compiler from
10627	# explicitly linking system object files so we need to strip them
10628	# from the output so that they don't get included in the library
10629	# dependencies.
10630	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'
10631	;;
10632      *)
10633	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10634	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10635	 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}${objdir}/so_locations -o $lib'
10636
10637	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10638	  hardcode_libdir_separator_CXX=:
10639
10640	  # Commands to make compiler produce verbose output that lists
10641	  # what "hidden" libraries, object files and flags are used when
10642	  # linking a shared library.
10643	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10644
10645	else
10646	  # FIXME: insert proper C++ library support
10647	  ld_shlibs_CXX=no
10648	fi
10649	;;
10650    esac
10651    ;;
10652  psos*)
10653    # FIXME: insert proper C++ library support
10654    ld_shlibs_CXX=no
10655    ;;
10656  sco*)
10657    archive_cmds_need_lc_CXX=no
10658    case $cc_basename in
10659      CC)
10660	# FIXME: insert proper C++ library support
10661	ld_shlibs_CXX=no
10662	;;
10663      *)
10664	# FIXME: insert proper C++ library support
10665	ld_shlibs_CXX=no
10666	;;
10667    esac
10668    ;;
10669  sunos4*)
10670    case $cc_basename in
10671      CC)
10672	# Sun C++ 4.x
10673	# FIXME: insert proper C++ library support
10674	ld_shlibs_CXX=no
10675	;;
10676      lcc)
10677	# Lucid
10678	# FIXME: insert proper C++ library support
10679	ld_shlibs_CXX=no
10680	;;
10681      *)
10682	# FIXME: insert proper C++ library support
10683	ld_shlibs_CXX=no
10684	;;
10685    esac
10686    ;;
10687  solaris*)
10688    case $cc_basename in
10689      CC)
10690	# Sun C++ 4.2, 5.x and Centerline C++
10691	no_undefined_flag_CXX=' -zdefs'
10692	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10693	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10694	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10695
10696	hardcode_libdir_flag_spec_CXX='-R$libdir'
10697	hardcode_shlibpath_var_CXX=no
10698	case $host_os in
10699	  solaris2.0-5 | solaris2.0-5.*) ;;
10700	  *)
10701	    # The C++ compiler is used as linker so we must use $wl
10702	    # flag to pass the commands to the underlying system
10703	    # linker.
10704	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10705	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10706	    ;;
10707	esac
10708	link_all_deplibs_CXX=yes
10709
10710	# Commands to make compiler produce verbose output that lists
10711	# what "hidden" libraries, object files and flags are used when
10712	# linking a shared library.
10713	#
10714	# There doesn't appear to be a way to prevent this compiler from
10715	# explicitly linking system object files so we need to strip them
10716	# from the output so that they don't get included in the library
10717	# dependencies.
10718	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10719
10720	# Archives containing C++ object files must be created using
10721	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10722	# necessary to make sure instantiated templates are included
10723	# in the archive.
10724	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10725	;;
10726      gcx)
10727	# Green Hills C++ Compiler
10728	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10729
10730	# The C++ compiler must be used to create the archive.
10731	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10732	;;
10733      *)
10734	# GNU C++ compiler with Solaris linker
10735	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10736	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10737	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10738	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10739	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10740		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10741
10742	    # Commands to make compiler produce verbose output that lists
10743	    # what "hidden" libraries, object files and flags are used when
10744	    # linking a shared library.
10745	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10746	  else
10747	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10748	    # platform.
10749	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10750	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10751		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10752
10753	    # Commands to make compiler produce verbose output that lists
10754	    # what "hidden" libraries, object files and flags are used when
10755	    # linking a shared library.
10756	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10757	  fi
10758
10759	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10760	fi
10761	;;
10762    esac
10763    ;;
10764  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10765    archive_cmds_need_lc_CXX=no
10766    ;;
10767  tandem*)
10768    case $cc_basename in
10769      NCC)
10770	# NonStop-UX NCC 3.20
10771	# FIXME: insert proper C++ library support
10772	ld_shlibs_CXX=no
10773	;;
10774      *)
10775	# FIXME: insert proper C++ library support
10776	ld_shlibs_CXX=no
10777	;;
10778    esac
10779    ;;
10780  vxworks*)
10781    # FIXME: insert proper C++ library support
10782    ld_shlibs_CXX=no
10783    ;;
10784  *)
10785    # FIXME: insert proper C++ library support
10786    ld_shlibs_CXX=no
10787    ;;
10788esac
10789echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10790echo "${ECHO_T}$ld_shlibs_CXX" >&6
10791test "$ld_shlibs_CXX" = no && can_build_shared=no
10792
10793GCC_CXX="$GXX"
10794LD_CXX="$LD"
10795
10796
10797cat > conftest.$ac_ext <<EOF
10798class Foo
10799{
10800public:
10801  Foo (void) { a = 0; }
10802private:
10803  int a;
10804};
10805EOF
10806
10807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10808  (eval $ac_compile) 2>&5
10809  ac_status=$?
10810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811  (exit $ac_status); }; then
10812  # Parse the compiler output and extract the necessary
10813  # objects, libraries and library flags.
10814
10815  # Sentinel used to keep track of whether or not we are before
10816  # the conftest object file.
10817  pre_test_object_deps_done=no
10818
10819  # The `*' in the case matches for architectures that use `case' in
10820  # $output_verbose_cmd can trigger glob expansion during the loop
10821  # eval without this substitution.
10822  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10823
10824  for p in `eval $output_verbose_link_cmd`; do
10825    case $p in
10826
10827    -L* | -R* | -l*)
10828       # Some compilers place space between "-{L,R}" and the path.
10829       # Remove the space.
10830       if test $p = "-L" \
10831	  || test $p = "-R"; then
10832	 prev=$p
10833	 continue
10834       else
10835	 prev=
10836       fi
10837
10838       if test "$pre_test_object_deps_done" = no; then
10839	 case $p in
10840	 -L* | -R*)
10841	   # Internal compiler library paths should come after those
10842	   # provided the user.  The postdeps already come after the
10843	   # user supplied libs so there is no need to process them.
10844	   if test -z "$compiler_lib_search_path_CXX"; then
10845	     compiler_lib_search_path_CXX="${prev}${p}"
10846	   else
10847	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10848	   fi
10849	   ;;
10850	 # The "-l" case would never come before the object being
10851	 # linked, so don't bother handling this case.
10852	 esac
10853       else
10854	 if test -z "$postdeps_CXX"; then
10855	   postdeps_CXX="${prev}${p}"
10856	 else
10857	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10858	 fi
10859       fi
10860       ;;
10861
10862    *.$objext)
10863       # This assumes that the test object file only shows up
10864       # once in the compiler output.
10865       if test "$p" = "conftest.$objext"; then
10866	 pre_test_object_deps_done=yes
10867	 continue
10868       fi
10869
10870       if test "$pre_test_object_deps_done" = no; then
10871	 if test -z "$predep_objects_CXX"; then
10872	   predep_objects_CXX="$p"
10873	 else
10874	   predep_objects_CXX="$predep_objects_CXX $p"
10875	 fi
10876       else
10877	 if test -z "$postdep_objects_CXX"; then
10878	   postdep_objects_CXX="$p"
10879	 else
10880	   postdep_objects_CXX="$postdep_objects_CXX $p"
10881	 fi
10882       fi
10883       ;;
10884
10885    *) ;; # Ignore the rest.
10886
10887    esac
10888  done
10889
10890  # Clean up.
10891  rm -f a.out a.exe
10892else
10893  echo "libtool.m4: error: problem compiling CXX test program"
10894fi
10895
10896$rm -f confest.$objext
10897
10898case " $postdeps_CXX " in
10899*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10900esac
10901
10902lt_prog_compiler_wl_CXX=
10903lt_prog_compiler_pic_CXX=
10904lt_prog_compiler_static_CXX=
10905
10906echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10907echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10908
10909  # C++ specific cases for pic, static, wl, etc.
10910  if test "$GXX" = yes; then
10911    lt_prog_compiler_wl_CXX='-Wl,'
10912    lt_prog_compiler_static_CXX='-static'
10913
10914    case $host_os in
10915    aix*)
10916      # All AIX code is PIC.
10917      if test "$host_cpu" = ia64; then
10918	# AIX 5 now supports IA64 processor
10919	lt_prog_compiler_static_CXX='-Bstatic'
10920      fi
10921      ;;
10922    amigaos*)
10923      # FIXME: we need at least 68020 code to build shared libraries, but
10924      # adding the `-m68020' flag to GCC prevents building anything better,
10925      # like `-m68040'.
10926      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10927      ;;
10928    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10929      # PIC is the default for these OSes.
10930      ;;
10931    mingw* | os2* | pw32*)
10932      # This hack is so that the source file can tell whether it is being
10933      # built for inclusion in a dll (and should export symbols for example).
10934      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10935      ;;
10936    darwin* | rhapsody*)
10937      # PIC is the default on this platform
10938      # Common symbols not allowed in MH_DYLIB files
10939      lt_prog_compiler_pic_CXX='-fno-common'
10940      ;;
10941    *djgpp*)
10942      # DJGPP does not support shared libraries at all
10943      lt_prog_compiler_pic_CXX=
10944      ;;
10945    sysv4*MP*)
10946      if test -d /usr/nec; then
10947	lt_prog_compiler_pic_CXX=-Kconform_pic
10948      fi
10949      ;;
10950    hpux*)
10951      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10952      # not for PA HP-UX.
10953      case "$host_cpu" in
10954      hppa*64*|ia64*)
10955	;;
10956      *)
10957	lt_prog_compiler_pic_CXX='-fPIC'
10958	;;
10959      esac
10960      ;;
10961    *)
10962      lt_prog_compiler_pic_CXX='-fPIC'
10963      ;;
10964    esac
10965  else
10966    case $host_os in
10967      aix4* | aix5*)
10968	# All AIX code is PIC.
10969	if test "$host_cpu" = ia64; then
10970	  # AIX 5 now supports IA64 processor
10971	  lt_prog_compiler_static_CXX='-Bstatic'
10972	else
10973	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10974	fi
10975	;;
10976      chorus*)
10977	case $cc_basename in
10978	cxch68)
10979	  # Green Hills C++ Compiler
10980	  # _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"
10981	  ;;
10982	esac
10983	;;
10984       darwin*)
10985         # PIC is the default on this platform
10986         # Common symbols not allowed in MH_DYLIB files
10987         case "$cc_basename" in
10988           xlc*)
10989           lt_prog_compiler_pic_CXX='-qnocommon'
10990           lt_prog_compiler_wl_CXX='-Wl,'
10991           ;;
10992         esac
10993       ;;
10994      dgux*)
10995	case $cc_basename in
10996	  ec++)
10997	    lt_prog_compiler_pic_CXX='-KPIC'
10998	    ;;
10999	  ghcx)
11000	    # Green Hills C++ Compiler
11001	    lt_prog_compiler_pic_CXX='-pic'
11002	    ;;
11003	  *)
11004	    ;;
11005	esac
11006	;;
11007      freebsd* | kfreebsd*-gnu)
11008	# FreeBSD uses GNU C++
11009	;;
11010      hpux9* | hpux10* | hpux11*)
11011	case $cc_basename in
11012	  CC)
11013	    lt_prog_compiler_wl_CXX='-Wl,'
11014	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11015	    if test "$host_cpu" != ia64; then
11016	      lt_prog_compiler_pic_CXX='+Z'
11017	    fi
11018	    ;;
11019	  aCC)
11020	    lt_prog_compiler_wl_CXX='-Wl,'
11021	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11022	    case "$host_cpu" in
11023	    hppa*64*|ia64*)
11024	      # +Z the default
11025	      ;;
11026	    *)
11027	      lt_prog_compiler_pic_CXX='+Z'
11028	      ;;
11029	    esac
11030	    ;;
11031	  *)
11032	    ;;
11033	esac
11034	;;
11035      irix5* | irix6* | nonstopux*)
11036	case $cc_basename in
11037	  CC)
11038	    lt_prog_compiler_wl_CXX='-Wl,'
11039	    lt_prog_compiler_static_CXX='-non_shared'
11040	    # CC pic flag -KPIC is the default.
11041	    ;;
11042	  *)
11043	    ;;
11044	esac
11045	;;
11046      linux*)
11047	case $cc_basename in
11048	  KCC)
11049	    # KAI C++ Compiler
11050	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11051	    lt_prog_compiler_pic_CXX='-fPIC'
11052	    ;;
11053	  icpc)
11054	    # Intel C++
11055	    lt_prog_compiler_wl_CXX='-Wl,'
11056	    lt_prog_compiler_pic_CXX='-KPIC'
11057	    lt_prog_compiler_static_CXX='-static'
11058	    ;;
11059	  cxx)
11060	    # Compaq C++
11061	    # Make sure the PIC flag is empty.  It appears that all Alpha
11062	    # Linux and Compaq Tru64 Unix objects are PIC.
11063	    lt_prog_compiler_pic_CXX=
11064	    lt_prog_compiler_static_CXX='-non_shared'
11065	    ;;
11066	  *)
11067	    ;;
11068	esac
11069	;;
11070      lynxos*)
11071	;;
11072      m88k*)
11073	;;
11074      mvs*)
11075	case $cc_basename in
11076	  cxx)
11077	    lt_prog_compiler_pic_CXX='-W c,exportall'
11078	    ;;
11079	  *)
11080	    ;;
11081	esac
11082	;;
11083      netbsd*)
11084	;;
11085      osf3* | osf4* | osf5*)
11086	case $cc_basename in
11087	  KCC)
11088	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11089	    ;;
11090	  RCC)
11091	    # Rational C++ 2.4.1
11092	    lt_prog_compiler_pic_CXX='-pic'
11093	    ;;
11094	  cxx)
11095	    # Digital/Compaq C++
11096	    lt_prog_compiler_wl_CXX='-Wl,'
11097	    # Make sure the PIC flag is empty.  It appears that all Alpha
11098	    # Linux and Compaq Tru64 Unix objects are PIC.
11099	    lt_prog_compiler_pic_CXX=
11100	    lt_prog_compiler_static_CXX='-non_shared'
11101	    ;;
11102	  *)
11103	    ;;
11104	esac
11105	;;
11106      psos*)
11107	;;
11108      sco*)
11109	case $cc_basename in
11110	  CC)
11111	    lt_prog_compiler_pic_CXX='-fPIC'
11112	    ;;
11113	  *)
11114	    ;;
11115	esac
11116	;;
11117      solaris*)
11118	case $cc_basename in
11119	  CC)
11120	    # Sun C++ 4.2, 5.x and Centerline C++
11121	    lt_prog_compiler_pic_CXX='-KPIC'
11122	    lt_prog_compiler_static_CXX='-Bstatic'
11123	    lt_prog_compiler_wl_CXX='-Qoption ld '
11124	    ;;
11125	  gcx)
11126	    # Green Hills C++ Compiler
11127	    lt_prog_compiler_pic_CXX='-PIC'
11128	    ;;
11129	  *)
11130	    ;;
11131	esac
11132	;;
11133      sunos4*)
11134	case $cc_basename in
11135	  CC)
11136	    # Sun C++ 4.x
11137	    lt_prog_compiler_pic_CXX='-pic'
11138	    lt_prog_compiler_static_CXX='-Bstatic'
11139	    ;;
11140	  lcc)
11141	    # Lucid
11142	    lt_prog_compiler_pic_CXX='-pic'
11143	    ;;
11144	  *)
11145	    ;;
11146	esac
11147	;;
11148      tandem*)
11149	case $cc_basename in
11150	  NCC)
11151	    # NonStop-UX NCC 3.20
11152	    lt_prog_compiler_pic_CXX='-KPIC'
11153	    ;;
11154	  *)
11155	    ;;
11156	esac
11157	;;
11158      unixware*)
11159	;;
11160      vxworks*)
11161	;;
11162      *)
11163	lt_prog_compiler_can_build_shared_CXX=no
11164	;;
11165    esac
11166  fi
11167
11168echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11169echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11170
11171#
11172# Check to make sure the PIC flag actually works.
11173#
11174if test -n "$lt_prog_compiler_pic_CXX"; then
11175
11176echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11177echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11178if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11179  echo $ECHO_N "(cached) $ECHO_C" >&6
11180else
11181  lt_prog_compiler_pic_works_CXX=no
11182  ac_outfile=conftest.$ac_objext
11183   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11184   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11185   # Insert the option either (1) after the last *FLAGS variable, or
11186   # (2) before a word containing "conftest.", or (3) at the end.
11187   # Note that $ac_compile itself does not contain backslashes and begins
11188   # with a dollar sign (not a hyphen), so the echo should work correctly.
11189   # The option is referenced via a variable to avoid confusing sed.
11190   lt_compile=`echo "$ac_compile" | $SED \
11191   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11192   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11193   -e 's:$: $lt_compiler_flag:'`
11194   (eval echo "\"\$as_me:11194: $lt_compile\"" >&5)
11195   (eval "$lt_compile" 2>conftest.err)
11196   ac_status=$?
11197   cat conftest.err >&5
11198   echo "$as_me:11198: \$? = $ac_status" >&5
11199   if (exit $ac_status) && test -s "$ac_outfile"; then
11200     # The compiler can only warn and ignore the option if not recognized
11201     # So say no if there are warnings
11202     if test ! -s conftest.err; then
11203       lt_prog_compiler_pic_works_CXX=yes
11204     fi
11205   fi
11206   $rm conftest*
11207
11208fi
11209echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11210echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11211
11212if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11213    case $lt_prog_compiler_pic_CXX in
11214     "" | " "*) ;;
11215     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11216     esac
11217else
11218    lt_prog_compiler_pic_CXX=
11219     lt_prog_compiler_can_build_shared_CXX=no
11220fi
11221
11222fi
11223case "$host_os" in
11224  # For platforms which do not support PIC, -DPIC is meaningless:
11225  *djgpp*)
11226    lt_prog_compiler_pic_CXX=
11227    ;;
11228  *)
11229    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11230    ;;
11231esac
11232
11233echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11234echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11235if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11236  echo $ECHO_N "(cached) $ECHO_C" >&6
11237else
11238  lt_cv_prog_compiler_c_o_CXX=no
11239   $rm -r conftest 2>/dev/null
11240   mkdir conftest
11241   cd conftest
11242   mkdir out
11243   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11244
11245   lt_compiler_flag="-o out/conftest2.$ac_objext"
11246   # Insert the option either (1) after the last *FLAGS variable, or
11247   # (2) before a word containing "conftest.", or (3) at the end.
11248   # Note that $ac_compile itself does not contain backslashes and begins
11249   # with a dollar sign (not a hyphen), so the echo should work correctly.
11250   lt_compile=`echo "$ac_compile" | $SED \
11251   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11252   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11253   -e 's:$: $lt_compiler_flag:'`
11254   (eval echo "\"\$as_me:11254: $lt_compile\"" >&5)
11255   (eval "$lt_compile" 2>out/conftest.err)
11256   ac_status=$?
11257   cat out/conftest.err >&5
11258   echo "$as_me:11258: \$? = $ac_status" >&5
11259   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11260   then
11261     # The compiler can only warn and ignore the option if not recognized
11262     # So say no if there are warnings
11263     if test ! -s out/conftest.err; then
11264       lt_cv_prog_compiler_c_o_CXX=yes
11265     fi
11266   fi
11267   chmod u+w .
11268   $rm conftest*
11269   # SGI C++ compiler will create directory out/ii_files/ for
11270   # template instantiation
11271   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11272   $rm out/* && rmdir out
11273   cd ..
11274   rmdir conftest
11275   $rm conftest*
11276
11277fi
11278echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11279echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11280
11281
11282hard_links="nottested"
11283if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11284  # do not overwrite the value of need_locks provided by the user
11285  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11286echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11287  hard_links=yes
11288  $rm conftest*
11289  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11290  touch conftest.a
11291  ln conftest.a conftest.b 2>&5 || hard_links=no
11292  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11293  echo "$as_me:$LINENO: result: $hard_links" >&5
11294echo "${ECHO_T}$hard_links" >&6
11295  if test "$hard_links" = no; then
11296    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11297echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11298    need_locks=warn
11299  fi
11300else
11301  need_locks=no
11302fi
11303
11304echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11305echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11306
11307  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11308  case $host_os in
11309  aix4* | aix5*)
11310    # If we're using GNU nm, then we don't want the "-C" option.
11311    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11312    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11313      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'
11314    else
11315      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'
11316    fi
11317    ;;
11318  pw32*)
11319    export_symbols_cmds_CXX="$ltdll_cmds"
11320  ;;
11321  cygwin* | mingw*)
11322    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11323  ;;
11324  *)
11325    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11326  ;;
11327  esac
11328
11329echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11330echo "${ECHO_T}$ld_shlibs_CXX" >&6
11331test "$ld_shlibs_CXX" = no && can_build_shared=no
11332
11333variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11334if test "$GCC" = yes; then
11335  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11336fi
11337
11338#
11339# Do we need to explicitly link libc?
11340#
11341case "x$archive_cmds_need_lc_CXX" in
11342x|xyes)
11343  # Assume -lc should be added
11344  archive_cmds_need_lc_CXX=yes
11345
11346  if test "$enable_shared" = yes && test "$GCC" = yes; then
11347    case $archive_cmds_CXX in
11348    *'~'*)
11349      # FIXME: we may have to deal with multi-command sequences.
11350      ;;
11351    '$CC '*)
11352      # Test whether the compiler implicitly links with -lc since on some
11353      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11354      # to ld, don't add -lc before -lgcc.
11355      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11356echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11357      $rm conftest*
11358      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11359
11360      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11361  (eval $ac_compile) 2>&5
11362  ac_status=$?
11363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364  (exit $ac_status); } 2>conftest.err; then
11365        soname=conftest
11366        lib=conftest
11367        libobjs=conftest.$ac_objext
11368        deplibs=
11369        wl=$lt_prog_compiler_wl_CXX
11370        compiler_flags=-v
11371        linker_flags=-v
11372        verstring=
11373        output_objdir=.
11374        libname=conftest
11375        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11376        allow_undefined_flag_CXX=
11377        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11378  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11379  ac_status=$?
11380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381  (exit $ac_status); }
11382        then
11383	  archive_cmds_need_lc_CXX=no
11384        else
11385	  archive_cmds_need_lc_CXX=yes
11386        fi
11387        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11388      else
11389        cat conftest.err 1>&5
11390      fi
11391      $rm conftest*
11392      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11393echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11394      ;;
11395    esac
11396  fi
11397  ;;
11398esac
11399
11400echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11401echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11402library_names_spec=
11403libname_spec='lib$name'
11404soname_spec=
11405shrext_cmds=".so"
11406postinstall_cmds=
11407postuninstall_cmds=
11408finish_cmds=
11409finish_eval=
11410shlibpath_var=
11411shlibpath_overrides_runpath=unknown
11412version_type=none
11413dynamic_linker="$host_os ld.so"
11414sys_lib_dlsearch_path_spec="/lib /usr/lib"
11415if test "$GCC" = yes; then
11416  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11417  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11418    # if the path contains ";" then we assume it to be the separator
11419    # otherwise default to the standard path separator (i.e. ":") - it is
11420    # assumed that no part of a normal pathname contains ";" but that should
11421    # okay in the real world where ";" in dirpaths is itself problematic.
11422    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11423  else
11424    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11425  fi
11426else
11427  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11428fi
11429need_lib_prefix=unknown
11430hardcode_into_libs=no
11431
11432# when you set need_version to no, make sure it does not cause -set_version
11433# flags to be left without arguments
11434need_version=unknown
11435
11436case $host_os in
11437aix3*)
11438  version_type=linux
11439  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11440  shlibpath_var=LIBPATH
11441
11442  # AIX 3 has no versioning support, so we append a major version to the name.
11443  soname_spec='${libname}${release}${shared_ext}$major'
11444  ;;
11445
11446aix4* | aix5*)
11447  version_type=linux
11448  need_lib_prefix=no
11449  need_version=no
11450  hardcode_into_libs=yes
11451  if test "$host_cpu" = ia64; then
11452    # AIX 5 supports IA64
11453    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11454    shlibpath_var=LD_LIBRARY_PATH
11455  else
11456    # With GCC up to 2.95.x, collect2 would create an import file
11457    # for dependence libraries.  The import file would start with
11458    # the line `#! .'.  This would cause the generated library to
11459    # depend on `.', always an invalid library.  This was fixed in
11460    # development snapshots of GCC prior to 3.0.
11461    case $host_os in
11462      aix4 | aix4.[01] | aix4.[01].*)
11463      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11464	   echo ' yes '
11465	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11466	:
11467      else
11468	can_build_shared=no
11469      fi
11470      ;;
11471    esac
11472    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11473    # soname into executable. Probably we can add versioning support to
11474    # collect2, so additional links can be useful in future.
11475    if test "$aix_use_runtimelinking" = yes; then
11476      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11477      # instead of lib<name>.a to let people know that these are not
11478      # typical AIX shared libraries.
11479      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11480    else
11481      # We preserve .a as extension for shared libraries through AIX4.2
11482      # and later when we are not doing run time linking.
11483      library_names_spec='${libname}${release}.a $libname.a'
11484      soname_spec='${libname}${release}${shared_ext}$major'
11485    fi
11486    shlibpath_var=LIBPATH
11487  fi
11488  ;;
11489
11490amigaos*)
11491  library_names_spec='$libname.ixlibrary $libname.a'
11492  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11493  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'
11494  ;;
11495
11496beos*)
11497  library_names_spec='${libname}${shared_ext}'
11498  dynamic_linker="$host_os ld.so"
11499  shlibpath_var=LIBRARY_PATH
11500  ;;
11501
11502bsdi[45]*)
11503  version_type=linux
11504  need_version=no
11505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11506  soname_spec='${libname}${release}${shared_ext}$major'
11507  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11508  shlibpath_var=LD_LIBRARY_PATH
11509  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11510  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11511  # the default ld.so.conf also contains /usr/contrib/lib and
11512  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11513  # libtool to hard-code these into programs
11514  ;;
11515
11516cygwin* | mingw* | pw32*)
11517  version_type=windows
11518  shrext_cmds=".dll"
11519  need_version=no
11520  need_lib_prefix=no
11521
11522  case $GCC,$host_os in
11523  yes,cygwin* | yes,mingw* | yes,pw32*)
11524    library_names_spec='$libname.dll.a'
11525    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11526    postinstall_cmds='base_file=`basename \${file}`~
11527      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11528      dldir=$destdir/`dirname \$dlpath`~
11529      test -d \$dldir || mkdir -p \$dldir~
11530      $install_prog $dir/$dlname \$dldir/$dlname'
11531    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11532      dlpath=$dir/\$dldll~
11533       $rm \$dlpath'
11534    shlibpath_overrides_runpath=yes
11535
11536    case $host_os in
11537    cygwin*)
11538      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11539      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11540      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11541      ;;
11542    mingw*)
11543      # MinGW DLLs use traditional 'lib' prefix
11544      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11545      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11546      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11547        # It is most probably a Windows format PATH printed by
11548        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11549        # path with ; separators, and with drive letters. We can handle the
11550        # drive letters (cygwin fileutils understands them), so leave them,
11551        # especially as we might pass files found there to a mingw objdump,
11552        # which wouldn't understand a cygwinified path. Ahh.
11553        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11554      else
11555        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11556      fi
11557      ;;
11558    pw32*)
11559      # pw32 DLLs use 'pw' prefix rather than 'lib'
11560      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11561      ;;
11562    esac
11563    ;;
11564
11565  *)
11566    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11567    ;;
11568  esac
11569  dynamic_linker='Win32 ld.exe'
11570  # FIXME: first we should search . and the directory the executable is in
11571  shlibpath_var=PATH
11572  ;;
11573
11574darwin* | rhapsody*)
11575  dynamic_linker="$host_os dyld"
11576  version_type=darwin
11577  need_lib_prefix=no
11578  need_version=no
11579  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11580  soname_spec='${libname}${release}${major}$shared_ext'
11581  shlibpath_overrides_runpath=yes
11582  shlibpath_var=DYLD_LIBRARY_PATH
11583  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11584  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11585  if test "$GCC" = yes; then
11586    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"`
11587  else
11588    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11589  fi
11590  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11591  ;;
11592
11593dgux*)
11594  version_type=linux
11595  need_lib_prefix=no
11596  need_version=no
11597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11598  soname_spec='${libname}${release}${shared_ext}$major'
11599  shlibpath_var=LD_LIBRARY_PATH
11600  ;;
11601
11602freebsd1*)
11603  dynamic_linker=no
11604  ;;
11605
11606kfreebsd*-gnu)
11607  version_type=linux
11608  need_lib_prefix=no
11609  need_version=no
11610  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11611  soname_spec='${libname}${release}${shared_ext}$major'
11612  shlibpath_var=LD_LIBRARY_PATH
11613  shlibpath_overrides_runpath=no
11614  hardcode_into_libs=yes
11615  dynamic_linker='GNU ld.so'
11616  ;;
11617
11618freebsd*)
11619  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11620  version_type=freebsd-$objformat
11621  case $version_type in
11622    freebsd-elf*)
11623      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11624      need_version=no
11625      need_lib_prefix=no
11626      ;;
11627    freebsd-*)
11628      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11629      need_version=yes
11630      ;;
11631  esac
11632  shlibpath_var=LD_LIBRARY_PATH
11633  case $host_os in
11634  freebsd2*)
11635    shlibpath_overrides_runpath=yes
11636    ;;
11637  freebsd3.01* | freebsdelf3.01*)
11638    shlibpath_overrides_runpath=yes
11639    hardcode_into_libs=yes
11640    ;;
11641  *) # from 3.2 on
11642    shlibpath_overrides_runpath=no
11643    hardcode_into_libs=yes
11644    ;;
11645  esac
11646  ;;
11647
11648gnu*)
11649  version_type=linux
11650  need_lib_prefix=no
11651  need_version=no
11652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11653  soname_spec='${libname}${release}${shared_ext}$major'
11654  shlibpath_var=LD_LIBRARY_PATH
11655  hardcode_into_libs=yes
11656  ;;
11657
11658hpux9* | hpux10* | hpux11*)
11659  # Give a soname corresponding to the major version so that dld.sl refuses to
11660  # link against other versions.
11661  version_type=sunos
11662  need_lib_prefix=no
11663  need_version=no
11664  case "$host_cpu" in
11665  ia64*)
11666    shrext_cmds='.so'
11667    hardcode_into_libs=yes
11668    dynamic_linker="$host_os dld.so"
11669    shlibpath_var=LD_LIBRARY_PATH
11670    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11671    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11672    soname_spec='${libname}${release}${shared_ext}$major'
11673    if test "X$HPUX_IA64_MODE" = X32; then
11674      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11675    else
11676      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11677    fi
11678    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11679    ;;
11680   hppa*64*)
11681     shrext_cmds='.sl'
11682     hardcode_into_libs=yes
11683     dynamic_linker="$host_os dld.sl"
11684     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11685     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11686     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11687     soname_spec='${libname}${release}${shared_ext}$major'
11688     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11689     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11690     ;;
11691   *)
11692    shrext_cmds='.sl'
11693    dynamic_linker="$host_os dld.sl"
11694    shlibpath_var=SHLIB_PATH
11695    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11696    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11697    soname_spec='${libname}${release}${shared_ext}$major'
11698    ;;
11699  esac
11700  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11701  postinstall_cmds='chmod 555 $lib'
11702  ;;
11703
11704irix5* | irix6* | nonstopux*)
11705  case $host_os in
11706    nonstopux*) version_type=nonstopux ;;
11707    *)
11708	if test "$lt_cv_prog_gnu_ld" = yes; then
11709		version_type=linux
11710	else
11711		version_type=irix
11712	fi ;;
11713  esac
11714  need_lib_prefix=no
11715  need_version=no
11716  soname_spec='${libname}${release}${shared_ext}$major'
11717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11718  case $host_os in
11719  irix5* | nonstopux*)
11720    libsuff= shlibsuff=
11721    ;;
11722  *)
11723    case $LD in # libtool.m4 will add one of these switches to LD
11724    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11725      libsuff= shlibsuff= libmagic=32-bit;;
11726    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11727      libsuff=32 shlibsuff=N32 libmagic=N32;;
11728    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11729      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11730    *) libsuff= shlibsuff= libmagic=never-match;;
11731    esac
11732    ;;
11733  esac
11734  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11735  shlibpath_overrides_runpath=no
11736  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11737  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11738  hardcode_into_libs=yes
11739  ;;
11740
11741# No shared lib support for Linux oldld, aout, or coff.
11742linux*oldld* | linux*aout* | linux*coff*)
11743  dynamic_linker=no
11744  ;;
11745
11746# This must be Linux ELF.
11747linux*)
11748  version_type=linux
11749  need_lib_prefix=no
11750  need_version=no
11751  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11752  soname_spec='${libname}${release}${shared_ext}$major'
11753  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11754  shlibpath_var=LD_LIBRARY_PATH
11755  shlibpath_overrides_runpath=no
11756  # This implies no fast_install, which is unacceptable.
11757  # Some rework will be needed to allow for fast_install
11758  # before this can be enabled.
11759  hardcode_into_libs=yes
11760
11761  # Append ld.so.conf contents to the search path
11762  if test -f /etc/ld.so.conf; then
11763    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11764    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11765  fi
11766
11767  # We used to test for /lib/ld.so.1 and disable shared libraries on
11768  # powerpc, because MkLinux only supported shared libraries with the
11769  # GNU dynamic linker.  Since this was broken with cross compilers,
11770  # most powerpc-linux boxes support dynamic linking these days and
11771  # people can always --disable-shared, the test was removed, and we
11772  # assume the GNU/Linux dynamic linker is in use.
11773  dynamic_linker='GNU/Linux ld.so'
11774  ;;
11775
11776knetbsd*-gnu)
11777  version_type=linux
11778  need_lib_prefix=no
11779  need_version=no
11780  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11781  soname_spec='${libname}${release}${shared_ext}$major'
11782  shlibpath_var=LD_LIBRARY_PATH
11783  shlibpath_overrides_runpath=no
11784  hardcode_into_libs=yes
11785  dynamic_linker='GNU ld.so'
11786  ;;
11787
11788netbsd*)
11789  version_type=sunos
11790  need_lib_prefix=no
11791  need_version=no
11792  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11793    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11794    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11795    dynamic_linker='NetBSD (a.out) ld.so'
11796  else
11797    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11798    soname_spec='${libname}${release}${shared_ext}$major'
11799    dynamic_linker='NetBSD ld.elf_so'
11800  fi
11801  shlibpath_var=LD_LIBRARY_PATH
11802  shlibpath_overrides_runpath=yes
11803  hardcode_into_libs=yes
11804  ;;
11805
11806newsos6)
11807  version_type=linux
11808  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11809  shlibpath_var=LD_LIBRARY_PATH
11810  shlibpath_overrides_runpath=yes
11811  ;;
11812
11813nto-qnx*)
11814  version_type=linux
11815  need_lib_prefix=no
11816  need_version=no
11817  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11818  soname_spec='${libname}${release}${shared_ext}$major'
11819  shlibpath_var=LD_LIBRARY_PATH
11820  shlibpath_overrides_runpath=yes
11821  ;;
11822
11823openbsd*)
11824  version_type=sunos
11825  need_lib_prefix=no
11826  need_version=no
11827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11828  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11829  shlibpath_var=LD_LIBRARY_PATH
11830  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11831    case $host_os in
11832      openbsd2.[89] | openbsd2.[89].*)
11833	shlibpath_overrides_runpath=no
11834	;;
11835      *)
11836	shlibpath_overrides_runpath=yes
11837	;;
11838      esac
11839  else
11840    shlibpath_overrides_runpath=yes
11841  fi
11842  ;;
11843
11844os2*)
11845  libname_spec='$name'
11846  shrext_cmds=".dll"
11847  need_lib_prefix=no
11848  library_names_spec='$libname${shared_ext} $libname.a'
11849  dynamic_linker='OS/2 ld.exe'
11850  shlibpath_var=LIBPATH
11851  ;;
11852
11853osf3* | osf4* | osf5*)
11854  version_type=osf
11855  need_lib_prefix=no
11856  need_version=no
11857  soname_spec='${libname}${release}${shared_ext}$major'
11858  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11859  shlibpath_var=LD_LIBRARY_PATH
11860  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11861  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11862  ;;
11863
11864sco3.2v5*)
11865  version_type=osf
11866  soname_spec='${libname}${release}${shared_ext}$major'
11867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11868  shlibpath_var=LD_LIBRARY_PATH
11869  ;;
11870
11871solaris*)
11872  version_type=linux
11873  need_lib_prefix=no
11874  need_version=no
11875  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11876  soname_spec='${libname}${release}${shared_ext}$major'
11877  shlibpath_var=LD_LIBRARY_PATH
11878  shlibpath_overrides_runpath=yes
11879  hardcode_into_libs=yes
11880  # ldd complains unless libraries are executable
11881  postinstall_cmds='chmod +x $lib'
11882  ;;
11883
11884sunos4*)
11885  version_type=sunos
11886  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11887  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11888  shlibpath_var=LD_LIBRARY_PATH
11889  shlibpath_overrides_runpath=yes
11890  if test "$with_gnu_ld" = yes; then
11891    need_lib_prefix=no
11892  fi
11893  need_version=yes
11894  ;;
11895
11896sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11897  version_type=linux
11898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11899  soname_spec='${libname}${release}${shared_ext}$major'
11900  shlibpath_var=LD_LIBRARY_PATH
11901  case $host_vendor in
11902    sni)
11903      shlibpath_overrides_runpath=no
11904      need_lib_prefix=no
11905      export_dynamic_flag_spec='${wl}-Blargedynsym'
11906      runpath_var=LD_RUN_PATH
11907      ;;
11908    siemens)
11909      need_lib_prefix=no
11910      ;;
11911    motorola)
11912      need_lib_prefix=no
11913      need_version=no
11914      shlibpath_overrides_runpath=no
11915      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11916      ;;
11917  esac
11918  ;;
11919
11920sysv4*MP*)
11921  if test -d /usr/nec ;then
11922    version_type=linux
11923    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11924    soname_spec='$libname${shared_ext}.$major'
11925    shlibpath_var=LD_LIBRARY_PATH
11926  fi
11927  ;;
11928
11929uts4*)
11930  version_type=linux
11931  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11932  soname_spec='${libname}${release}${shared_ext}$major'
11933  shlibpath_var=LD_LIBRARY_PATH
11934  ;;
11935
11936*)
11937  dynamic_linker=no
11938  ;;
11939esac
11940echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11941echo "${ECHO_T}$dynamic_linker" >&6
11942test "$dynamic_linker" = no && can_build_shared=no
11943
11944echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11945echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11946hardcode_action_CXX=
11947if test -n "$hardcode_libdir_flag_spec_CXX" || \
11948   test -n "$runpath_var_CXX" || \
11949   test "X$hardcode_automatic_CXX" = "Xyes" ; then
11950
11951  # We can hardcode non-existant directories.
11952  if test "$hardcode_direct_CXX" != no &&
11953     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11954     # have to relink, otherwise we might link with an installed library
11955     # when we should be linking with a yet-to-be-installed one
11956     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11957     test "$hardcode_minus_L_CXX" != no; then
11958    # Linking always hardcodes the temporary library directory.
11959    hardcode_action_CXX=relink
11960  else
11961    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11962    hardcode_action_CXX=immediate
11963  fi
11964else
11965  # We cannot hardcode anything, or else we can only hardcode existing
11966  # directories.
11967  hardcode_action_CXX=unsupported
11968fi
11969echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11970echo "${ECHO_T}$hardcode_action_CXX" >&6
11971
11972if test "$hardcode_action_CXX" = relink; then
11973  # Fast installation is not supported
11974  enable_fast_install=no
11975elif test "$shlibpath_overrides_runpath" = yes ||
11976     test "$enable_shared" = no; then
11977  # Fast installation is not necessary
11978  enable_fast_install=needless
11979fi
11980
11981striplib=
11982old_striplib=
11983echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11984echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11985if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11986  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11987  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11988  echo "$as_me:$LINENO: result: yes" >&5
11989echo "${ECHO_T}yes" >&6
11990else
11991# FIXME - insert some real tests, host_os isn't really good enough
11992  case $host_os in
11993   darwin*)
11994       if test -n "$STRIP" ; then
11995         striplib="$STRIP -x"
11996         echo "$as_me:$LINENO: result: yes" >&5
11997echo "${ECHO_T}yes" >&6
11998       else
11999  echo "$as_me:$LINENO: result: no" >&5
12000echo "${ECHO_T}no" >&6
12001fi
12002       ;;
12003   *)
12004  echo "$as_me:$LINENO: result: no" >&5
12005echo "${ECHO_T}no" >&6
12006    ;;
12007  esac
12008fi
12009
12010if test "x$enable_dlopen" != xyes; then
12011  enable_dlopen=unknown
12012  enable_dlopen_self=unknown
12013  enable_dlopen_self_static=unknown
12014else
12015  lt_cv_dlopen=no
12016  lt_cv_dlopen_libs=
12017
12018  case $host_os in
12019  beos*)
12020    lt_cv_dlopen="load_add_on"
12021    lt_cv_dlopen_libs=
12022    lt_cv_dlopen_self=yes
12023    ;;
12024
12025  mingw* | pw32*)
12026    lt_cv_dlopen="LoadLibrary"
12027    lt_cv_dlopen_libs=
12028   ;;
12029
12030  cygwin*)
12031    lt_cv_dlopen="dlopen"
12032    lt_cv_dlopen_libs=
12033   ;;
12034
12035  darwin*)
12036  # if libdl is installed we need to link against it
12037    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12038echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12039if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12040  echo $ECHO_N "(cached) $ECHO_C" >&6
12041else
12042  ac_check_lib_save_LIBS=$LIBS
12043LIBS="-ldl  $LIBS"
12044cat >conftest.$ac_ext <<_ACEOF
12045/* confdefs.h.  */
12046_ACEOF
12047cat confdefs.h >>conftest.$ac_ext
12048cat >>conftest.$ac_ext <<_ACEOF
12049/* end confdefs.h.  */
12050
12051/* Override any gcc2 internal prototype to avoid an error.  */
12052#ifdef __cplusplus
12053extern "C"
12054#endif
12055/* We use char because int might match the return type of a gcc2
12056   builtin and then its argument prototype would still apply.  */
12057char dlopen ();
12058int
12059main ()
12060{
12061dlopen ();
12062  ;
12063  return 0;
12064}
12065_ACEOF
12066rm -f conftest.$ac_objext conftest$ac_exeext
12067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12068  (eval $ac_link) 2>conftest.er1
12069  ac_status=$?
12070  grep -v '^ *+' conftest.er1 >conftest.err
12071  rm -f conftest.er1
12072  cat conftest.err >&5
12073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074  (exit $ac_status); } &&
12075	 { ac_try='test -z "$ac_cxx_werror_flag"
12076			 || test ! -s conftest.err'
12077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078  (eval $ac_try) 2>&5
12079  ac_status=$?
12080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081  (exit $ac_status); }; } &&
12082	 { ac_try='test -s conftest$ac_exeext'
12083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084  (eval $ac_try) 2>&5
12085  ac_status=$?
12086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087  (exit $ac_status); }; }; then
12088  ac_cv_lib_dl_dlopen=yes
12089else
12090  echo "$as_me: failed program was:" >&5
12091sed 's/^/| /' conftest.$ac_ext >&5
12092
12093ac_cv_lib_dl_dlopen=no
12094fi
12095rm -f conftest.err conftest.$ac_objext \
12096      conftest$ac_exeext conftest.$ac_ext
12097LIBS=$ac_check_lib_save_LIBS
12098fi
12099echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12100echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12101if test $ac_cv_lib_dl_dlopen = yes; then
12102  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12103else
12104
12105    lt_cv_dlopen="dyld"
12106    lt_cv_dlopen_libs=
12107    lt_cv_dlopen_self=yes
12108
12109fi
12110
12111   ;;
12112
12113  *)
12114    echo "$as_me:$LINENO: checking for shl_load" >&5
12115echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12116if test "${ac_cv_func_shl_load+set}" = set; then
12117  echo $ECHO_N "(cached) $ECHO_C" >&6
12118else
12119  cat >conftest.$ac_ext <<_ACEOF
12120/* confdefs.h.  */
12121_ACEOF
12122cat confdefs.h >>conftest.$ac_ext
12123cat >>conftest.$ac_ext <<_ACEOF
12124/* end confdefs.h.  */
12125/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12126   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12127#define shl_load innocuous_shl_load
12128
12129/* System header to define __stub macros and hopefully few prototypes,
12130    which can conflict with char shl_load (); below.
12131    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12132    <limits.h> exists even on freestanding compilers.  */
12133
12134#ifdef __STDC__
12135# include <limits.h>
12136#else
12137# include <assert.h>
12138#endif
12139
12140#undef shl_load
12141
12142/* Override any gcc2 internal prototype to avoid an error.  */
12143#ifdef __cplusplus
12144extern "C"
12145{
12146#endif
12147/* We use char because int might match the return type of a gcc2
12148   builtin and then its argument prototype would still apply.  */
12149char shl_load ();
12150/* The GNU C library defines this for functions which it implements
12151    to always fail with ENOSYS.  Some functions are actually named
12152    something starting with __ and the normal name is an alias.  */
12153#if defined (__stub_shl_load) || defined (__stub___shl_load)
12154choke me
12155#else
12156char (*f) () = shl_load;
12157#endif
12158#ifdef __cplusplus
12159}
12160#endif
12161
12162int
12163main ()
12164{
12165return f != shl_load;
12166  ;
12167  return 0;
12168}
12169_ACEOF
12170rm -f conftest.$ac_objext conftest$ac_exeext
12171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12172  (eval $ac_link) 2>conftest.er1
12173  ac_status=$?
12174  grep -v '^ *+' conftest.er1 >conftest.err
12175  rm -f conftest.er1
12176  cat conftest.err >&5
12177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178  (exit $ac_status); } &&
12179	 { ac_try='test -z "$ac_cxx_werror_flag"
12180			 || test ! -s conftest.err'
12181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182  (eval $ac_try) 2>&5
12183  ac_status=$?
12184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185  (exit $ac_status); }; } &&
12186	 { ac_try='test -s conftest$ac_exeext'
12187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188  (eval $ac_try) 2>&5
12189  ac_status=$?
12190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191  (exit $ac_status); }; }; then
12192  ac_cv_func_shl_load=yes
12193else
12194  echo "$as_me: failed program was:" >&5
12195sed 's/^/| /' conftest.$ac_ext >&5
12196
12197ac_cv_func_shl_load=no
12198fi
12199rm -f conftest.err conftest.$ac_objext \
12200      conftest$ac_exeext conftest.$ac_ext
12201fi
12202echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12203echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12204if test $ac_cv_func_shl_load = yes; then
12205  lt_cv_dlopen="shl_load"
12206else
12207  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12208echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12209if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12210  echo $ECHO_N "(cached) $ECHO_C" >&6
12211else
12212  ac_check_lib_save_LIBS=$LIBS
12213LIBS="-ldld  $LIBS"
12214cat >conftest.$ac_ext <<_ACEOF
12215/* confdefs.h.  */
12216_ACEOF
12217cat confdefs.h >>conftest.$ac_ext
12218cat >>conftest.$ac_ext <<_ACEOF
12219/* end confdefs.h.  */
12220
12221/* Override any gcc2 internal prototype to avoid an error.  */
12222#ifdef __cplusplus
12223extern "C"
12224#endif
12225/* We use char because int might match the return type of a gcc2
12226   builtin and then its argument prototype would still apply.  */
12227char shl_load ();
12228int
12229main ()
12230{
12231shl_load ();
12232  ;
12233  return 0;
12234}
12235_ACEOF
12236rm -f conftest.$ac_objext conftest$ac_exeext
12237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12238  (eval $ac_link) 2>conftest.er1
12239  ac_status=$?
12240  grep -v '^ *+' conftest.er1 >conftest.err
12241  rm -f conftest.er1
12242  cat conftest.err >&5
12243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244  (exit $ac_status); } &&
12245	 { ac_try='test -z "$ac_cxx_werror_flag"
12246			 || test ! -s conftest.err'
12247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248  (eval $ac_try) 2>&5
12249  ac_status=$?
12250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251  (exit $ac_status); }; } &&
12252	 { ac_try='test -s conftest$ac_exeext'
12253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254  (eval $ac_try) 2>&5
12255  ac_status=$?
12256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257  (exit $ac_status); }; }; then
12258  ac_cv_lib_dld_shl_load=yes
12259else
12260  echo "$as_me: failed program was:" >&5
12261sed 's/^/| /' conftest.$ac_ext >&5
12262
12263ac_cv_lib_dld_shl_load=no
12264fi
12265rm -f conftest.err conftest.$ac_objext \
12266      conftest$ac_exeext conftest.$ac_ext
12267LIBS=$ac_check_lib_save_LIBS
12268fi
12269echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12270echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12271if test $ac_cv_lib_dld_shl_load = yes; then
12272  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12273else
12274  echo "$as_me:$LINENO: checking for dlopen" >&5
12275echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12276if test "${ac_cv_func_dlopen+set}" = set; then
12277  echo $ECHO_N "(cached) $ECHO_C" >&6
12278else
12279  cat >conftest.$ac_ext <<_ACEOF
12280/* confdefs.h.  */
12281_ACEOF
12282cat confdefs.h >>conftest.$ac_ext
12283cat >>conftest.$ac_ext <<_ACEOF
12284/* end confdefs.h.  */
12285/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12286   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12287#define dlopen innocuous_dlopen
12288
12289/* System header to define __stub macros and hopefully few prototypes,
12290    which can conflict with char dlopen (); below.
12291    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12292    <limits.h> exists even on freestanding compilers.  */
12293
12294#ifdef __STDC__
12295# include <limits.h>
12296#else
12297# include <assert.h>
12298#endif
12299
12300#undef dlopen
12301
12302/* Override any gcc2 internal prototype to avoid an error.  */
12303#ifdef __cplusplus
12304extern "C"
12305{
12306#endif
12307/* We use char because int might match the return type of a gcc2
12308   builtin and then its argument prototype would still apply.  */
12309char dlopen ();
12310/* The GNU C library defines this for functions which it implements
12311    to always fail with ENOSYS.  Some functions are actually named
12312    something starting with __ and the normal name is an alias.  */
12313#if defined (__stub_dlopen) || defined (__stub___dlopen)
12314choke me
12315#else
12316char (*f) () = dlopen;
12317#endif
12318#ifdef __cplusplus
12319}
12320#endif
12321
12322int
12323main ()
12324{
12325return f != dlopen;
12326  ;
12327  return 0;
12328}
12329_ACEOF
12330rm -f conftest.$ac_objext conftest$ac_exeext
12331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12332  (eval $ac_link) 2>conftest.er1
12333  ac_status=$?
12334  grep -v '^ *+' conftest.er1 >conftest.err
12335  rm -f conftest.er1
12336  cat conftest.err >&5
12337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338  (exit $ac_status); } &&
12339	 { ac_try='test -z "$ac_cxx_werror_flag"
12340			 || test ! -s conftest.err'
12341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342  (eval $ac_try) 2>&5
12343  ac_status=$?
12344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345  (exit $ac_status); }; } &&
12346	 { ac_try='test -s conftest$ac_exeext'
12347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348  (eval $ac_try) 2>&5
12349  ac_status=$?
12350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351  (exit $ac_status); }; }; then
12352  ac_cv_func_dlopen=yes
12353else
12354  echo "$as_me: failed program was:" >&5
12355sed 's/^/| /' conftest.$ac_ext >&5
12356
12357ac_cv_func_dlopen=no
12358fi
12359rm -f conftest.err conftest.$ac_objext \
12360      conftest$ac_exeext conftest.$ac_ext
12361fi
12362echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12363echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12364if test $ac_cv_func_dlopen = yes; then
12365  lt_cv_dlopen="dlopen"
12366else
12367  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12368echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12369if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12370  echo $ECHO_N "(cached) $ECHO_C" >&6
12371else
12372  ac_check_lib_save_LIBS=$LIBS
12373LIBS="-ldl  $LIBS"
12374cat >conftest.$ac_ext <<_ACEOF
12375/* confdefs.h.  */
12376_ACEOF
12377cat confdefs.h >>conftest.$ac_ext
12378cat >>conftest.$ac_ext <<_ACEOF
12379/* end confdefs.h.  */
12380
12381/* Override any gcc2 internal prototype to avoid an error.  */
12382#ifdef __cplusplus
12383extern "C"
12384#endif
12385/* We use char because int might match the return type of a gcc2
12386   builtin and then its argument prototype would still apply.  */
12387char dlopen ();
12388int
12389main ()
12390{
12391dlopen ();
12392  ;
12393  return 0;
12394}
12395_ACEOF
12396rm -f conftest.$ac_objext conftest$ac_exeext
12397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12398  (eval $ac_link) 2>conftest.er1
12399  ac_status=$?
12400  grep -v '^ *+' conftest.er1 >conftest.err
12401  rm -f conftest.er1
12402  cat conftest.err >&5
12403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404  (exit $ac_status); } &&
12405	 { ac_try='test -z "$ac_cxx_werror_flag"
12406			 || test ! -s conftest.err'
12407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408  (eval $ac_try) 2>&5
12409  ac_status=$?
12410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411  (exit $ac_status); }; } &&
12412	 { ac_try='test -s conftest$ac_exeext'
12413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414  (eval $ac_try) 2>&5
12415  ac_status=$?
12416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417  (exit $ac_status); }; }; then
12418  ac_cv_lib_dl_dlopen=yes
12419else
12420  echo "$as_me: failed program was:" >&5
12421sed 's/^/| /' conftest.$ac_ext >&5
12422
12423ac_cv_lib_dl_dlopen=no
12424fi
12425rm -f conftest.err conftest.$ac_objext \
12426      conftest$ac_exeext conftest.$ac_ext
12427LIBS=$ac_check_lib_save_LIBS
12428fi
12429echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12430echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12431if test $ac_cv_lib_dl_dlopen = yes; then
12432  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12433else
12434  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12435echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12436if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12437  echo $ECHO_N "(cached) $ECHO_C" >&6
12438else
12439  ac_check_lib_save_LIBS=$LIBS
12440LIBS="-lsvld  $LIBS"
12441cat >conftest.$ac_ext <<_ACEOF
12442/* confdefs.h.  */
12443_ACEOF
12444cat confdefs.h >>conftest.$ac_ext
12445cat >>conftest.$ac_ext <<_ACEOF
12446/* end confdefs.h.  */
12447
12448/* Override any gcc2 internal prototype to avoid an error.  */
12449#ifdef __cplusplus
12450extern "C"
12451#endif
12452/* We use char because int might match the return type of a gcc2
12453   builtin and then its argument prototype would still apply.  */
12454char dlopen ();
12455int
12456main ()
12457{
12458dlopen ();
12459  ;
12460  return 0;
12461}
12462_ACEOF
12463rm -f conftest.$ac_objext conftest$ac_exeext
12464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12465  (eval $ac_link) 2>conftest.er1
12466  ac_status=$?
12467  grep -v '^ *+' conftest.er1 >conftest.err
12468  rm -f conftest.er1
12469  cat conftest.err >&5
12470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471  (exit $ac_status); } &&
12472	 { ac_try='test -z "$ac_cxx_werror_flag"
12473			 || test ! -s conftest.err'
12474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475  (eval $ac_try) 2>&5
12476  ac_status=$?
12477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478  (exit $ac_status); }; } &&
12479	 { ac_try='test -s conftest$ac_exeext'
12480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481  (eval $ac_try) 2>&5
12482  ac_status=$?
12483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484  (exit $ac_status); }; }; then
12485  ac_cv_lib_svld_dlopen=yes
12486else
12487  echo "$as_me: failed program was:" >&5
12488sed 's/^/| /' conftest.$ac_ext >&5
12489
12490ac_cv_lib_svld_dlopen=no
12491fi
12492rm -f conftest.err conftest.$ac_objext \
12493      conftest$ac_exeext conftest.$ac_ext
12494LIBS=$ac_check_lib_save_LIBS
12495fi
12496echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12497echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12498if test $ac_cv_lib_svld_dlopen = yes; then
12499  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12500else
12501  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12502echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12503if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12504  echo $ECHO_N "(cached) $ECHO_C" >&6
12505else
12506  ac_check_lib_save_LIBS=$LIBS
12507LIBS="-ldld  $LIBS"
12508cat >conftest.$ac_ext <<_ACEOF
12509/* confdefs.h.  */
12510_ACEOF
12511cat confdefs.h >>conftest.$ac_ext
12512cat >>conftest.$ac_ext <<_ACEOF
12513/* end confdefs.h.  */
12514
12515/* Override any gcc2 internal prototype to avoid an error.  */
12516#ifdef __cplusplus
12517extern "C"
12518#endif
12519/* We use char because int might match the return type of a gcc2
12520   builtin and then its argument prototype would still apply.  */
12521char dld_link ();
12522int
12523main ()
12524{
12525dld_link ();
12526  ;
12527  return 0;
12528}
12529_ACEOF
12530rm -f conftest.$ac_objext conftest$ac_exeext
12531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12532  (eval $ac_link) 2>conftest.er1
12533  ac_status=$?
12534  grep -v '^ *+' conftest.er1 >conftest.err
12535  rm -f conftest.er1
12536  cat conftest.err >&5
12537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538  (exit $ac_status); } &&
12539	 { ac_try='test -z "$ac_cxx_werror_flag"
12540			 || test ! -s conftest.err'
12541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542  (eval $ac_try) 2>&5
12543  ac_status=$?
12544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545  (exit $ac_status); }; } &&
12546	 { ac_try='test -s conftest$ac_exeext'
12547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548  (eval $ac_try) 2>&5
12549  ac_status=$?
12550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551  (exit $ac_status); }; }; then
12552  ac_cv_lib_dld_dld_link=yes
12553else
12554  echo "$as_me: failed program was:" >&5
12555sed 's/^/| /' conftest.$ac_ext >&5
12556
12557ac_cv_lib_dld_dld_link=no
12558fi
12559rm -f conftest.err conftest.$ac_objext \
12560      conftest$ac_exeext conftest.$ac_ext
12561LIBS=$ac_check_lib_save_LIBS
12562fi
12563echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12564echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12565if test $ac_cv_lib_dld_dld_link = yes; then
12566  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12567fi
12568
12569
12570fi
12571
12572
12573fi
12574
12575
12576fi
12577
12578
12579fi
12580
12581
12582fi
12583
12584    ;;
12585  esac
12586
12587  if test "x$lt_cv_dlopen" != xno; then
12588    enable_dlopen=yes
12589  else
12590    enable_dlopen=no
12591  fi
12592
12593  case $lt_cv_dlopen in
12594  dlopen)
12595    save_CPPFLAGS="$CPPFLAGS"
12596    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12597
12598    save_LDFLAGS="$LDFLAGS"
12599    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12600
12601    save_LIBS="$LIBS"
12602    LIBS="$lt_cv_dlopen_libs $LIBS"
12603
12604    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12605echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12606if test "${lt_cv_dlopen_self+set}" = set; then
12607  echo $ECHO_N "(cached) $ECHO_C" >&6
12608else
12609  	  if test "$cross_compiling" = yes; then :
12610  lt_cv_dlopen_self=cross
12611else
12612  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12613  lt_status=$lt_dlunknown
12614  cat > conftest.$ac_ext <<EOF
12615#line 12615 "configure"
12616#include "confdefs.h"
12617
12618#if HAVE_DLFCN_H
12619#include <dlfcn.h>
12620#endif
12621
12622#include <stdio.h>
12623
12624#ifdef RTLD_GLOBAL
12625#  define LT_DLGLOBAL		RTLD_GLOBAL
12626#else
12627#  ifdef DL_GLOBAL
12628#    define LT_DLGLOBAL		DL_GLOBAL
12629#  else
12630#    define LT_DLGLOBAL		0
12631#  endif
12632#endif
12633
12634/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12635   find out it does not work in some platform. */
12636#ifndef LT_DLLAZY_OR_NOW
12637#  ifdef RTLD_LAZY
12638#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12639#  else
12640#    ifdef DL_LAZY
12641#      define LT_DLLAZY_OR_NOW		DL_LAZY
12642#    else
12643#      ifdef RTLD_NOW
12644#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12645#      else
12646#        ifdef DL_NOW
12647#          define LT_DLLAZY_OR_NOW	DL_NOW
12648#        else
12649#          define LT_DLLAZY_OR_NOW	0
12650#        endif
12651#      endif
12652#    endif
12653#  endif
12654#endif
12655
12656#ifdef __cplusplus
12657extern "C" void exit (int);
12658#endif
12659
12660void fnord() { int i=42;}
12661int main ()
12662{
12663  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12664  int status = $lt_dlunknown;
12665
12666  if (self)
12667    {
12668      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12669      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12670      /* dlclose (self); */
12671    }
12672
12673    exit (status);
12674}
12675EOF
12676  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12677  (eval $ac_link) 2>&5
12678  ac_status=$?
12679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12681    (./conftest; exit; ) 2>/dev/null
12682    lt_status=$?
12683    case x$lt_status in
12684      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12685      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12686      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12687    esac
12688  else :
12689    # compilation failed
12690    lt_cv_dlopen_self=no
12691  fi
12692fi
12693rm -fr conftest*
12694
12695
12696fi
12697echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12698echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12699
12700    if test "x$lt_cv_dlopen_self" = xyes; then
12701      LDFLAGS="$LDFLAGS $link_static_flag"
12702      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12703echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12704if test "${lt_cv_dlopen_self_static+set}" = set; then
12705  echo $ECHO_N "(cached) $ECHO_C" >&6
12706else
12707  	  if test "$cross_compiling" = yes; then :
12708  lt_cv_dlopen_self_static=cross
12709else
12710  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12711  lt_status=$lt_dlunknown
12712  cat > conftest.$ac_ext <<EOF
12713#line 12713 "configure"
12714#include "confdefs.h"
12715
12716#if HAVE_DLFCN_H
12717#include <dlfcn.h>
12718#endif
12719
12720#include <stdio.h>
12721
12722#ifdef RTLD_GLOBAL
12723#  define LT_DLGLOBAL		RTLD_GLOBAL
12724#else
12725#  ifdef DL_GLOBAL
12726#    define LT_DLGLOBAL		DL_GLOBAL
12727#  else
12728#    define LT_DLGLOBAL		0
12729#  endif
12730#endif
12731
12732/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12733   find out it does not work in some platform. */
12734#ifndef LT_DLLAZY_OR_NOW
12735#  ifdef RTLD_LAZY
12736#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12737#  else
12738#    ifdef DL_LAZY
12739#      define LT_DLLAZY_OR_NOW		DL_LAZY
12740#    else
12741#      ifdef RTLD_NOW
12742#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12743#      else
12744#        ifdef DL_NOW
12745#          define LT_DLLAZY_OR_NOW	DL_NOW
12746#        else
12747#          define LT_DLLAZY_OR_NOW	0
12748#        endif
12749#      endif
12750#    endif
12751#  endif
12752#endif
12753
12754#ifdef __cplusplus
12755extern "C" void exit (int);
12756#endif
12757
12758void fnord() { int i=42;}
12759int main ()
12760{
12761  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12762  int status = $lt_dlunknown;
12763
12764  if (self)
12765    {
12766      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12767      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12768      /* dlclose (self); */
12769    }
12770
12771    exit (status);
12772}
12773EOF
12774  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12775  (eval $ac_link) 2>&5
12776  ac_status=$?
12777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12779    (./conftest; exit; ) 2>/dev/null
12780    lt_status=$?
12781    case x$lt_status in
12782      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12783      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12784      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12785    esac
12786  else :
12787    # compilation failed
12788    lt_cv_dlopen_self_static=no
12789  fi
12790fi
12791rm -fr conftest*
12792
12793
12794fi
12795echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12796echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12797    fi
12798
12799    CPPFLAGS="$save_CPPFLAGS"
12800    LDFLAGS="$save_LDFLAGS"
12801    LIBS="$save_LIBS"
12802    ;;
12803  esac
12804
12805  case $lt_cv_dlopen_self in
12806  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12807  *) enable_dlopen_self=unknown ;;
12808  esac
12809
12810  case $lt_cv_dlopen_self_static in
12811  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12812  *) enable_dlopen_self_static=unknown ;;
12813  esac
12814fi
12815
12816
12817# The else clause should only fire when bootstrapping the
12818# libtool distribution, otherwise you forgot to ship ltmain.sh
12819# with your package, and you will get complaints that there are
12820# no rules to generate ltmain.sh.
12821if test -f "$ltmain"; then
12822  # See if we are running on zsh, and set the options which allow our commands through
12823  # without removal of \ escapes.
12824  if test -n "${ZSH_VERSION+set}" ; then
12825    setopt NO_GLOB_SUBST
12826  fi
12827  # Now quote all the things that may contain metacharacters while being
12828  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12829  # variables and quote the copies for generation of the libtool script.
12830  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12831    SED SHELL STRIP \
12832    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12833    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12834    deplibs_check_method reload_flag reload_cmds need_locks \
12835    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12836    lt_cv_sys_global_symbol_to_c_name_address \
12837    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12838    old_postinstall_cmds old_postuninstall_cmds \
12839    compiler_CXX \
12840    CC_CXX \
12841    LD_CXX \
12842    lt_prog_compiler_wl_CXX \
12843    lt_prog_compiler_pic_CXX \
12844    lt_prog_compiler_static_CXX \
12845    lt_prog_compiler_no_builtin_flag_CXX \
12846    export_dynamic_flag_spec_CXX \
12847    thread_safe_flag_spec_CXX \
12848    whole_archive_flag_spec_CXX \
12849    enable_shared_with_static_runtimes_CXX \
12850    old_archive_cmds_CXX \
12851    old_archive_from_new_cmds_CXX \
12852    predep_objects_CXX \
12853    postdep_objects_CXX \
12854    predeps_CXX \
12855    postdeps_CXX \
12856    compiler_lib_search_path_CXX \
12857    archive_cmds_CXX \
12858    archive_expsym_cmds_CXX \
12859    postinstall_cmds_CXX \
12860    postuninstall_cmds_CXX \
12861    old_archive_from_expsyms_cmds_CXX \
12862    allow_undefined_flag_CXX \
12863    no_undefined_flag_CXX \
12864    export_symbols_cmds_CXX \
12865    hardcode_libdir_flag_spec_CXX \
12866    hardcode_libdir_flag_spec_ld_CXX \
12867    hardcode_libdir_separator_CXX \
12868    hardcode_automatic_CXX \
12869    module_cmds_CXX \
12870    module_expsym_cmds_CXX \
12871    lt_cv_prog_compiler_c_o_CXX \
12872    exclude_expsyms_CXX \
12873    include_expsyms_CXX; do
12874
12875    case $var in
12876    old_archive_cmds_CXX | \
12877    old_archive_from_new_cmds_CXX | \
12878    archive_cmds_CXX | \
12879    archive_expsym_cmds_CXX | \
12880    module_cmds_CXX | \
12881    module_expsym_cmds_CXX | \
12882    old_archive_from_expsyms_cmds_CXX | \
12883    export_symbols_cmds_CXX | \
12884    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12885    postinstall_cmds | postuninstall_cmds | \
12886    old_postinstall_cmds | old_postuninstall_cmds | \
12887    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12888      # Double-quote double-evaled strings.
12889      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12890      ;;
12891    *)
12892      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12893      ;;
12894    esac
12895  done
12896
12897  case $lt_echo in
12898  *'\$0 --fallback-echo"')
12899    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12900    ;;
12901  esac
12902
12903cfgfile="$ofile"
12904
12905  cat <<__EOF__ >> "$cfgfile"
12906# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12907
12908# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12909
12910# Shell to use when invoking shell scripts.
12911SHELL=$lt_SHELL
12912
12913# Whether or not to build shared libraries.
12914build_libtool_libs=$enable_shared
12915
12916# Whether or not to build static libraries.
12917build_old_libs=$enable_static
12918
12919# Whether or not to add -lc for building shared libraries.
12920build_libtool_need_lc=$archive_cmds_need_lc_CXX
12921
12922# Whether or not to disallow shared libs when runtime libs are static
12923allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12924
12925# Whether or not to optimize for fast installation.
12926fast_install=$enable_fast_install
12927
12928# The host system.
12929host_alias=$host_alias
12930host=$host
12931
12932# An echo program that does not interpret backslashes.
12933echo=$lt_echo
12934
12935# The archiver.
12936AR=$lt_AR
12937AR_FLAGS=$lt_AR_FLAGS
12938
12939# A C compiler.
12940LTCC=$lt_LTCC
12941
12942# A language-specific compiler.
12943CC=$lt_compiler_CXX
12944
12945# Is the compiler the GNU C compiler?
12946with_gcc=$GCC_CXX
12947
12948# An ERE matcher.
12949EGREP=$lt_EGREP
12950
12951# The linker used to build libraries.
12952LD=$lt_LD_CXX
12953
12954# Whether we need hard or soft links.
12955LN_S=$lt_LN_S
12956
12957# A BSD-compatible nm program.
12958NM=$lt_NM
12959
12960# A symbol stripping program
12961STRIP=$lt_STRIP
12962
12963# Used to examine libraries when file_magic_cmd begins "file"
12964MAGIC_CMD=$MAGIC_CMD
12965
12966# Used on cygwin: DLL creation program.
12967DLLTOOL="$DLLTOOL"
12968
12969# Used on cygwin: object dumper.
12970OBJDUMP="$OBJDUMP"
12971
12972# Used on cygwin: assembler.
12973AS="$AS"
12974
12975# The name of the directory that contains temporary libtool files.
12976objdir=$objdir
12977
12978# How to create reloadable object files.
12979reload_flag=$lt_reload_flag
12980reload_cmds=$lt_reload_cmds
12981
12982# How to pass a linker flag through the compiler.
12983wl=$lt_lt_prog_compiler_wl_CXX
12984
12985# Object file suffix (normally "o").
12986objext="$ac_objext"
12987
12988# Old archive suffix (normally "a").
12989libext="$libext"
12990
12991# Shared library suffix (normally ".so").
12992shrext_cmds='$shrext_cmds'
12993
12994# Executable file suffix (normally "").
12995exeext="$exeext"
12996
12997# Additional compiler flags for building library objects.
12998pic_flag=$lt_lt_prog_compiler_pic_CXX
12999pic_mode=$pic_mode
13000
13001# What is the maximum length of a command?
13002max_cmd_len=$lt_cv_sys_max_cmd_len
13003
13004# Does compiler simultaneously support -c and -o options?
13005compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13006
13007# Must we lock files when doing compilation ?
13008need_locks=$lt_need_locks
13009
13010# Do we need the lib prefix for modules?
13011need_lib_prefix=$need_lib_prefix
13012
13013# Do we need a version for libraries?
13014need_version=$need_version
13015
13016# Whether dlopen is supported.
13017dlopen_support=$enable_dlopen
13018
13019# Whether dlopen of programs is supported.
13020dlopen_self=$enable_dlopen_self
13021
13022# Whether dlopen of statically linked programs is supported.
13023dlopen_self_static=$enable_dlopen_self_static
13024
13025# Compiler flag to prevent dynamic linking.
13026link_static_flag=$lt_lt_prog_compiler_static_CXX
13027
13028# Compiler flag to turn off builtin functions.
13029no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13030
13031# Compiler flag to allow reflexive dlopens.
13032export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13033
13034# Compiler flag to generate shared objects directly from archives.
13035whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13036
13037# Compiler flag to generate thread-safe objects.
13038thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13039
13040# Library versioning type.
13041version_type=$version_type
13042
13043# Format of library name prefix.
13044libname_spec=$lt_libname_spec
13045
13046# List of archive names.  First name is the real one, the rest are links.
13047# The last name is the one that the linker finds with -lNAME.
13048library_names_spec=$lt_library_names_spec
13049
13050# The coded name of the library, if different from the real name.
13051soname_spec=$lt_soname_spec
13052
13053# Commands used to build and install an old-style archive.
13054RANLIB=$lt_RANLIB
13055old_archive_cmds=$lt_old_archive_cmds_CXX
13056old_postinstall_cmds=$lt_old_postinstall_cmds
13057old_postuninstall_cmds=$lt_old_postuninstall_cmds
13058
13059# Create an old-style archive from a shared archive.
13060old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13061
13062# Create a temporary old-style archive to link instead of a shared archive.
13063old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13064
13065# Commands used to build and install a shared archive.
13066archive_cmds=$lt_archive_cmds_CXX
13067archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13068postinstall_cmds=$lt_postinstall_cmds
13069postuninstall_cmds=$lt_postuninstall_cmds
13070
13071# Commands used to build a loadable module (assumed same as above if empty)
13072module_cmds=$lt_module_cmds_CXX
13073module_expsym_cmds=$lt_module_expsym_cmds_CXX
13074
13075# Commands to strip libraries.
13076old_striplib=$lt_old_striplib
13077striplib=$lt_striplib
13078
13079# Dependencies to place before the objects being linked to create a
13080# shared library.
13081predep_objects=$lt_predep_objects_CXX
13082
13083# Dependencies to place after the objects being linked to create a
13084# shared library.
13085postdep_objects=$lt_postdep_objects_CXX
13086
13087# Dependencies to place before the objects being linked to create a
13088# shared library.
13089predeps=$lt_predeps_CXX
13090
13091# Dependencies to place after the objects being linked to create a
13092# shared library.
13093postdeps=$lt_postdeps_CXX
13094
13095# The library search path used internally by the compiler when linking
13096# a shared library.
13097compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13098
13099# Method to check whether dependent libraries are shared objects.
13100deplibs_check_method=$lt_deplibs_check_method
13101
13102# Command to use when deplibs_check_method == file_magic.
13103file_magic_cmd=$lt_file_magic_cmd
13104
13105# Flag that allows shared libraries with undefined symbols to be built.
13106allow_undefined_flag=$lt_allow_undefined_flag_CXX
13107
13108# Flag that forces no undefined symbols.
13109no_undefined_flag=$lt_no_undefined_flag_CXX
13110
13111# Commands used to finish a libtool library installation in a directory.
13112finish_cmds=$lt_finish_cmds
13113
13114# Same as above, but a single script fragment to be evaled but not shown.
13115finish_eval=$lt_finish_eval
13116
13117# Take the output of nm and produce a listing of raw symbols and C names.
13118global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13119
13120# Transform the output of nm in a proper C declaration
13121global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13122
13123# Transform the output of nm in a C name address pair
13124global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13125
13126# This is the shared library runtime path variable.
13127runpath_var=$runpath_var
13128
13129# This is the shared library path variable.
13130shlibpath_var=$shlibpath_var
13131
13132# Is shlibpath searched before the hard-coded library search path?
13133shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13134
13135# How to hardcode a shared library path into an executable.
13136hardcode_action=$hardcode_action_CXX
13137
13138# Whether we should hardcode library paths into libraries.
13139hardcode_into_libs=$hardcode_into_libs
13140
13141# Flag to hardcode \$libdir into a binary during linking.
13142# This must work even if \$libdir does not exist.
13143hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13144
13145# If ld is used when linking, flag to hardcode \$libdir into
13146# a binary during linking. This must work even if \$libdir does
13147# not exist.
13148hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13149
13150# Whether we need a single -rpath flag with a separated argument.
13151hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13152
13153# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13154# resulting binary.
13155hardcode_direct=$hardcode_direct_CXX
13156
13157# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13158# resulting binary.
13159hardcode_minus_L=$hardcode_minus_L_CXX
13160
13161# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13162# the resulting binary.
13163hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13164
13165# Set to yes if building a shared library automatically hardcodes DIR into the library
13166# and all subsequent libraries and executables linked against it.
13167hardcode_automatic=$hardcode_automatic_CXX
13168
13169# Variables whose values should be saved in libtool wrapper scripts and
13170# restored at relink time.
13171variables_saved_for_relink="$variables_saved_for_relink"
13172
13173# Whether libtool must link a program against all its dependency libraries.
13174link_all_deplibs=$link_all_deplibs_CXX
13175
13176# Compile-time system search path for libraries
13177sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13178
13179# Run-time system search path for libraries
13180sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13181
13182# Fix the shell variable \$srcfile for the compiler.
13183fix_srcfile_path="$fix_srcfile_path_CXX"
13184
13185# Set to yes if exported symbols are required.
13186always_export_symbols=$always_export_symbols_CXX
13187
13188# The commands to list exported symbols.
13189export_symbols_cmds=$lt_export_symbols_cmds_CXX
13190
13191# The commands to extract the exported symbol list from a shared archive.
13192extract_expsyms_cmds=$lt_extract_expsyms_cmds
13193
13194# Symbols that should not be listed in the preloaded symbols.
13195exclude_expsyms=$lt_exclude_expsyms_CXX
13196
13197# Symbols that must always be exported.
13198include_expsyms=$lt_include_expsyms_CXX
13199
13200# ### END LIBTOOL TAG CONFIG: $tagname
13201
13202__EOF__
13203
13204
13205else
13206  # If there is no Makefile yet, we rely on a make rule to execute
13207  # `config.status --recheck' to rerun these tests and create the
13208  # libtool script then.
13209  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13210  if test -f "$ltmain_in"; then
13211    test -f Makefile && make "$ltmain"
13212  fi
13213fi
13214
13215
13216ac_ext=c
13217ac_cpp='$CPP $CPPFLAGS'
13218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13220ac_compiler_gnu=$ac_cv_c_compiler_gnu
13221
13222CC=$lt_save_CC
13223LDCXX=$LD
13224LD=$lt_save_LD
13225GCC=$lt_save_GCC
13226with_gnu_ldcxx=$with_gnu_ld
13227with_gnu_ld=$lt_save_with_gnu_ld
13228lt_cv_path_LDCXX=$lt_cv_path_LD
13229lt_cv_path_LD=$lt_save_path_LD
13230lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13231lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13232
13233	else
13234	  tagname=""
13235	fi
13236	;;
13237
13238      F77)
13239	if test -n "$F77" && test "X$F77" != "Xno"; then
13240
13241ac_ext=f
13242ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13243ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13244ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13245
13246
13247archive_cmds_need_lc_F77=no
13248allow_undefined_flag_F77=
13249always_export_symbols_F77=no
13250archive_expsym_cmds_F77=
13251export_dynamic_flag_spec_F77=
13252hardcode_direct_F77=no
13253hardcode_libdir_flag_spec_F77=
13254hardcode_libdir_flag_spec_ld_F77=
13255hardcode_libdir_separator_F77=
13256hardcode_minus_L_F77=no
13257hardcode_automatic_F77=no
13258module_cmds_F77=
13259module_expsym_cmds_F77=
13260link_all_deplibs_F77=unknown
13261old_archive_cmds_F77=$old_archive_cmds
13262no_undefined_flag_F77=
13263whole_archive_flag_spec_F77=
13264enable_shared_with_static_runtimes_F77=no
13265
13266# Source file extension for f77 test sources.
13267ac_ext=f
13268
13269# Object file extension for compiled f77 test sources.
13270objext=o
13271objext_F77=$objext
13272
13273# Code to be used in simple compile tests
13274lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13275
13276# Code to be used in simple link tests
13277lt_simple_link_test_code="      program t\n      end\n"
13278
13279# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13280
13281# If no C compiler was specified, use CC.
13282LTCC=${LTCC-"$CC"}
13283
13284# Allow CC to be a program name with arguments.
13285compiler=$CC
13286
13287
13288# Allow CC to be a program name with arguments.
13289lt_save_CC="$CC"
13290CC=${F77-"f77"}
13291compiler=$CC
13292compiler_F77=$CC
13293cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13294
13295echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13296echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13297echo "$as_me:$LINENO: result: $can_build_shared" >&5
13298echo "${ECHO_T}$can_build_shared" >&6
13299
13300echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13301echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13302test "$can_build_shared" = "no" && enable_shared=no
13303
13304# On AIX, shared libraries and static libraries use the same namespace, and
13305# are all built from PIC.
13306case "$host_os" in
13307aix3*)
13308  test "$enable_shared" = yes && enable_static=no
13309  if test -n "$RANLIB"; then
13310    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13311    postinstall_cmds='$RANLIB $lib'
13312  fi
13313  ;;
13314aix4* | aix5*)
13315  test "$enable_shared" = yes && enable_static=no
13316  ;;
13317esac
13318echo "$as_me:$LINENO: result: $enable_shared" >&5
13319echo "${ECHO_T}$enable_shared" >&6
13320
13321echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13322echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13323# Make sure either enable_shared or enable_static is yes.
13324test "$enable_shared" = yes || enable_static=yes
13325echo "$as_me:$LINENO: result: $enable_static" >&5
13326echo "${ECHO_T}$enable_static" >&6
13327
13328test "$ld_shlibs_F77" = no && can_build_shared=no
13329
13330GCC_F77="$G77"
13331LD_F77="$LD"
13332
13333lt_prog_compiler_wl_F77=
13334lt_prog_compiler_pic_F77=
13335lt_prog_compiler_static_F77=
13336
13337echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13338echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13339
13340  if test "$GCC" = yes; then
13341    lt_prog_compiler_wl_F77='-Wl,'
13342    lt_prog_compiler_static_F77='-static'
13343
13344    case $host_os in
13345      aix*)
13346      # All AIX code is PIC.
13347      if test "$host_cpu" = ia64; then
13348	# AIX 5 now supports IA64 processor
13349	lt_prog_compiler_static_F77='-Bstatic'
13350      fi
13351      ;;
13352
13353    amigaos*)
13354      # FIXME: we need at least 68020 code to build shared libraries, but
13355      # adding the `-m68020' flag to GCC prevents building anything better,
13356      # like `-m68040'.
13357      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13358      ;;
13359
13360    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13361      # PIC is the default for these OSes.
13362      ;;
13363
13364    mingw* | pw32* | os2*)
13365      # This hack is so that the source file can tell whether it is being
13366      # built for inclusion in a dll (and should export symbols for example).
13367      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13368      ;;
13369
13370    darwin* | rhapsody*)
13371      # PIC is the default on this platform
13372      # Common symbols not allowed in MH_DYLIB files
13373      lt_prog_compiler_pic_F77='-fno-common'
13374      ;;
13375
13376    msdosdjgpp*)
13377      # Just because we use GCC doesn't mean we suddenly get shared libraries
13378      # on systems that don't support them.
13379      lt_prog_compiler_can_build_shared_F77=no
13380      enable_shared=no
13381      ;;
13382
13383    sysv4*MP*)
13384      if test -d /usr/nec; then
13385	lt_prog_compiler_pic_F77=-Kconform_pic
13386      fi
13387      ;;
13388
13389    hpux*)
13390      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13391      # not for PA HP-UX.
13392      case "$host_cpu" in
13393      hppa*64*|ia64*)
13394	# +Z the default
13395	;;
13396      *)
13397	lt_prog_compiler_pic_F77='-fPIC'
13398	;;
13399      esac
13400      ;;
13401
13402    *)
13403      lt_prog_compiler_pic_F77='-fPIC'
13404      ;;
13405    esac
13406  else
13407    # PORTME Check for flag to pass linker flags through the system compiler.
13408    case $host_os in
13409    aix*)
13410      lt_prog_compiler_wl_F77='-Wl,'
13411      if test "$host_cpu" = ia64; then
13412	# AIX 5 now supports IA64 processor
13413	lt_prog_compiler_static_F77='-Bstatic'
13414      else
13415	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13416      fi
13417      ;;
13418      darwin*)
13419        # PIC is the default on this platform
13420        # Common symbols not allowed in MH_DYLIB files
13421       case "$cc_basename" in
13422         xlc*)
13423         lt_prog_compiler_pic_F77='-qnocommon'
13424         lt_prog_compiler_wl_F77='-Wl,'
13425         ;;
13426       esac
13427       ;;
13428
13429    mingw* | pw32* | os2*)
13430      # This hack is so that the source file can tell whether it is being
13431      # built for inclusion in a dll (and should export symbols for example).
13432      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13433      ;;
13434
13435    hpux9* | hpux10* | hpux11*)
13436      lt_prog_compiler_wl_F77='-Wl,'
13437      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13438      # not for PA HP-UX.
13439      case "$host_cpu" in
13440      hppa*64*|ia64*)
13441	# +Z the default
13442	;;
13443      *)
13444	lt_prog_compiler_pic_F77='+Z'
13445	;;
13446      esac
13447      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13448      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13449      ;;
13450
13451    irix5* | irix6* | nonstopux*)
13452      lt_prog_compiler_wl_F77='-Wl,'
13453      # PIC (with -KPIC) is the default.
13454      lt_prog_compiler_static_F77='-non_shared'
13455      ;;
13456
13457    newsos6)
13458      lt_prog_compiler_pic_F77='-KPIC'
13459      lt_prog_compiler_static_F77='-Bstatic'
13460      ;;
13461
13462    linux*)
13463      case $CC in
13464      icc* | ecc*)
13465	lt_prog_compiler_wl_F77='-Wl,'
13466	lt_prog_compiler_pic_F77='-KPIC'
13467	lt_prog_compiler_static_F77='-static'
13468        ;;
13469      ccc*)
13470        lt_prog_compiler_wl_F77='-Wl,'
13471        # All Alpha code is PIC.
13472        lt_prog_compiler_static_F77='-non_shared'
13473        ;;
13474      esac
13475      ;;
13476
13477    osf3* | osf4* | osf5*)
13478      lt_prog_compiler_wl_F77='-Wl,'
13479      # All OSF/1 code is PIC.
13480      lt_prog_compiler_static_F77='-non_shared'
13481      ;;
13482
13483    sco3.2v5*)
13484      lt_prog_compiler_pic_F77='-Kpic'
13485      lt_prog_compiler_static_F77='-dn'
13486      ;;
13487
13488    solaris*)
13489      lt_prog_compiler_wl_F77='-Wl,'
13490      lt_prog_compiler_pic_F77='-KPIC'
13491      lt_prog_compiler_static_F77='-Bstatic'
13492      ;;
13493
13494    sunos4*)
13495      lt_prog_compiler_wl_F77='-Qoption ld '
13496      lt_prog_compiler_pic_F77='-PIC'
13497      lt_prog_compiler_static_F77='-Bstatic'
13498      ;;
13499
13500    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13501      lt_prog_compiler_wl_F77='-Wl,'
13502      lt_prog_compiler_pic_F77='-KPIC'
13503      lt_prog_compiler_static_F77='-Bstatic'
13504      ;;
13505
13506    sysv4*MP*)
13507      if test -d /usr/nec ;then
13508	lt_prog_compiler_pic_F77='-Kconform_pic'
13509	lt_prog_compiler_static_F77='-Bstatic'
13510      fi
13511      ;;
13512
13513    uts4*)
13514      lt_prog_compiler_pic_F77='-pic'
13515      lt_prog_compiler_static_F77='-Bstatic'
13516      ;;
13517
13518    *)
13519      lt_prog_compiler_can_build_shared_F77=no
13520      ;;
13521    esac
13522  fi
13523
13524echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13525echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13526
13527#
13528# Check to make sure the PIC flag actually works.
13529#
13530if test -n "$lt_prog_compiler_pic_F77"; then
13531
13532echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13533echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13534if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13535  echo $ECHO_N "(cached) $ECHO_C" >&6
13536else
13537  lt_prog_compiler_pic_works_F77=no
13538  ac_outfile=conftest.$ac_objext
13539   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13540   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13541   # Insert the option either (1) after the last *FLAGS variable, or
13542   # (2) before a word containing "conftest.", or (3) at the end.
13543   # Note that $ac_compile itself does not contain backslashes and begins
13544   # with a dollar sign (not a hyphen), so the echo should work correctly.
13545   # The option is referenced via a variable to avoid confusing sed.
13546   lt_compile=`echo "$ac_compile" | $SED \
13547   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13548   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13549   -e 's:$: $lt_compiler_flag:'`
13550   (eval echo "\"\$as_me:13550: $lt_compile\"" >&5)
13551   (eval "$lt_compile" 2>conftest.err)
13552   ac_status=$?
13553   cat conftest.err >&5
13554   echo "$as_me:13554: \$? = $ac_status" >&5
13555   if (exit $ac_status) && test -s "$ac_outfile"; then
13556     # The compiler can only warn and ignore the option if not recognized
13557     # So say no if there are warnings
13558     if test ! -s conftest.err; then
13559       lt_prog_compiler_pic_works_F77=yes
13560     fi
13561   fi
13562   $rm conftest*
13563
13564fi
13565echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13566echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13567
13568if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13569    case $lt_prog_compiler_pic_F77 in
13570     "" | " "*) ;;
13571     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13572     esac
13573else
13574    lt_prog_compiler_pic_F77=
13575     lt_prog_compiler_can_build_shared_F77=no
13576fi
13577
13578fi
13579case "$host_os" in
13580  # For platforms which do not support PIC, -DPIC is meaningless:
13581  *djgpp*)
13582    lt_prog_compiler_pic_F77=
13583    ;;
13584  *)
13585    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13586    ;;
13587esac
13588
13589echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13590echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13591if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13592  echo $ECHO_N "(cached) $ECHO_C" >&6
13593else
13594  lt_cv_prog_compiler_c_o_F77=no
13595   $rm -r conftest 2>/dev/null
13596   mkdir conftest
13597   cd conftest
13598   mkdir out
13599   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13600
13601   lt_compiler_flag="-o out/conftest2.$ac_objext"
13602   # Insert the option either (1) after the last *FLAGS variable, or
13603   # (2) before a word containing "conftest.", or (3) at the end.
13604   # Note that $ac_compile itself does not contain backslashes and begins
13605   # with a dollar sign (not a hyphen), so the echo should work correctly.
13606   lt_compile=`echo "$ac_compile" | $SED \
13607   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13608   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13609   -e 's:$: $lt_compiler_flag:'`
13610   (eval echo "\"\$as_me:13610: $lt_compile\"" >&5)
13611   (eval "$lt_compile" 2>out/conftest.err)
13612   ac_status=$?
13613   cat out/conftest.err >&5
13614   echo "$as_me:13614: \$? = $ac_status" >&5
13615   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13616   then
13617     # The compiler can only warn and ignore the option if not recognized
13618     # So say no if there are warnings
13619     if test ! -s out/conftest.err; then
13620       lt_cv_prog_compiler_c_o_F77=yes
13621     fi
13622   fi
13623   chmod u+w .
13624   $rm conftest*
13625   # SGI C++ compiler will create directory out/ii_files/ for
13626   # template instantiation
13627   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13628   $rm out/* && rmdir out
13629   cd ..
13630   rmdir conftest
13631   $rm conftest*
13632
13633fi
13634echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13635echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13636
13637
13638hard_links="nottested"
13639if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13640  # do not overwrite the value of need_locks provided by the user
13641  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13642echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13643  hard_links=yes
13644  $rm conftest*
13645  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13646  touch conftest.a
13647  ln conftest.a conftest.b 2>&5 || hard_links=no
13648  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13649  echo "$as_me:$LINENO: result: $hard_links" >&5
13650echo "${ECHO_T}$hard_links" >&6
13651  if test "$hard_links" = no; then
13652    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13653echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13654    need_locks=warn
13655  fi
13656else
13657  need_locks=no
13658fi
13659
13660echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13661echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13662
13663  runpath_var=
13664  allow_undefined_flag_F77=
13665  enable_shared_with_static_runtimes_F77=no
13666  archive_cmds_F77=
13667  archive_expsym_cmds_F77=
13668  old_archive_From_new_cmds_F77=
13669  old_archive_from_expsyms_cmds_F77=
13670  export_dynamic_flag_spec_F77=
13671  whole_archive_flag_spec_F77=
13672  thread_safe_flag_spec_F77=
13673  hardcode_libdir_flag_spec_F77=
13674  hardcode_libdir_flag_spec_ld_F77=
13675  hardcode_libdir_separator_F77=
13676  hardcode_direct_F77=no
13677  hardcode_minus_L_F77=no
13678  hardcode_shlibpath_var_F77=unsupported
13679  link_all_deplibs_F77=unknown
13680  hardcode_automatic_F77=no
13681  module_cmds_F77=
13682  module_expsym_cmds_F77=
13683  always_export_symbols_F77=no
13684  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13685  # include_expsyms should be a list of space-separated symbols to be *always*
13686  # included in the symbol list
13687  include_expsyms_F77=
13688  # exclude_expsyms can be an extended regexp of symbols to exclude
13689  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13690  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13691  # as well as any symbol that contains `d'.
13692  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13693  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13694  # platforms (ab)use it in PIC code, but their linkers get confused if
13695  # the symbol is explicitly referenced.  Since portable code cannot
13696  # rely on this symbol name, it's probably fine to never include it in
13697  # preloaded symbol tables.
13698  extract_expsyms_cmds=
13699
13700  case $host_os in
13701  cygwin* | mingw* | pw32*)
13702    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13703    # When not using gcc, we currently assume that we are using
13704    # Microsoft Visual C++.
13705    if test "$GCC" != yes; then
13706      with_gnu_ld=no
13707    fi
13708    ;;
13709  openbsd*)
13710    with_gnu_ld=no
13711    ;;
13712  esac
13713
13714  ld_shlibs_F77=yes
13715  if test "$with_gnu_ld" = yes; then
13716    # If archive_cmds runs LD, not CC, wlarc should be empty
13717    wlarc='${wl}'
13718
13719    # See if GNU ld supports shared libraries.
13720    case $host_os in
13721    aix3* | aix4* | aix5*)
13722      # On AIX/PPC, the GNU linker is very broken
13723      if test "$host_cpu" != ia64; then
13724	ld_shlibs_F77=no
13725	cat <<EOF 1>&2
13726
13727*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13728*** to be unable to reliably create shared libraries on AIX.
13729*** Therefore, libtool is disabling shared libraries support.  If you
13730*** really care for shared libraries, you may want to modify your PATH
13731*** so that a non-GNU linker is found, and then restart.
13732
13733EOF
13734      fi
13735      ;;
13736
13737    amigaos*)
13738      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)'
13739      hardcode_libdir_flag_spec_F77='-L$libdir'
13740      hardcode_minus_L_F77=yes
13741
13742      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13743      # that the semantics of dynamic libraries on AmigaOS, at least up
13744      # to version 4, is to share data among multiple programs linked
13745      # with the same dynamic library.  Since this doesn't match the
13746      # behavior of shared libraries on other platforms, we can't use
13747      # them.
13748      ld_shlibs_F77=no
13749      ;;
13750
13751    beos*)
13752      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13753	allow_undefined_flag_F77=unsupported
13754	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13755	# support --undefined.  This deserves some investigation.  FIXME
13756	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13757      else
13758	ld_shlibs_F77=no
13759      fi
13760      ;;
13761
13762    cygwin* | mingw* | pw32*)
13763      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13764      # as there is no search path for DLLs.
13765      hardcode_libdir_flag_spec_F77='-L$libdir'
13766      allow_undefined_flag_F77=unsupported
13767      always_export_symbols_F77=no
13768      enable_shared_with_static_runtimes_F77=yes
13769      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13770
13771      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13772        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13773	# If the export-symbols file already is a .def file (1st line
13774	# is EXPORTS), use it as is; otherwise, prepend...
13775	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13776	  cp $export_symbols $output_objdir/$soname.def;
13777	else
13778	  echo EXPORTS > $output_objdir/$soname.def;
13779	  cat $export_symbols >> $output_objdir/$soname.def;
13780	fi~
13781	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13782      else
13783	ld_shlibs=no
13784      fi
13785      ;;
13786
13787    netbsd*)
13788      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13789	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13790	wlarc=
13791      else
13792	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13793	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13794      fi
13795      ;;
13796
13797    solaris* | sysv5*)
13798      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13799	ld_shlibs_F77=no
13800	cat <<EOF 1>&2
13801
13802*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13803*** create shared libraries on Solaris systems.  Therefore, libtool
13804*** is disabling shared libraries support.  We urge you to upgrade GNU
13805*** binutils to release 2.9.1 or newer.  Another option is to modify
13806*** your PATH or compiler configuration so that the native linker is
13807*** used, and then restart.
13808
13809EOF
13810      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13811	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13812	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13813      else
13814	ld_shlibs_F77=no
13815      fi
13816      ;;
13817
13818    sunos4*)
13819      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13820      wlarc=
13821      hardcode_direct_F77=yes
13822      hardcode_shlibpath_var_F77=no
13823      ;;
13824
13825  linux*)
13826    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13827        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13828	archive_cmds_F77="$tmp_archive_cmds"
13829      supports_anon_versioning=no
13830      case `$LD -v 2>/dev/null` in
13831        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13832        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13833        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13834        *\ 2.11.*) ;; # other 2.11 versions
13835        *) supports_anon_versioning=yes ;;
13836      esac
13837      if test $supports_anon_versioning = yes; then
13838        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13839cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13840$echo "local: *; };" >> $output_objdir/$libname.ver~
13841        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13842      else
13843        archive_expsym_cmds_F77="$tmp_archive_cmds"
13844      fi
13845    else
13846      ld_shlibs_F77=no
13847    fi
13848    ;;
13849
13850    *)
13851      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13852	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13853	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13854      else
13855	ld_shlibs_F77=no
13856      fi
13857      ;;
13858    esac
13859
13860    if test "$ld_shlibs_F77" = yes; then
13861      runpath_var=LD_RUN_PATH
13862      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13863      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13864      # ancient GNU ld didn't support --whole-archive et. al.
13865      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13866 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13867      else
13868  	whole_archive_flag_spec_F77=
13869      fi
13870    fi
13871  else
13872    # PORTME fill in a description of your system's linker (not GNU ld)
13873    case $host_os in
13874    aix3*)
13875      allow_undefined_flag_F77=unsupported
13876      always_export_symbols_F77=yes
13877      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'
13878      # Note: this linker hardcodes the directories in LIBPATH if there
13879      # are no directories specified by -L.
13880      hardcode_minus_L_F77=yes
13881      if test "$GCC" = yes && test -z "$link_static_flag"; then
13882	# Neither direct hardcoding nor static linking is supported with a
13883	# broken collect2.
13884	hardcode_direct_F77=unsupported
13885      fi
13886      ;;
13887
13888    aix4* | aix5*)
13889      if test "$host_cpu" = ia64; then
13890	# On IA64, the linker does run time linking by default, so we don't
13891	# have to do anything special.
13892	aix_use_runtimelinking=no
13893	exp_sym_flag='-Bexport'
13894	no_entry_flag=""
13895      else
13896	# If we're using GNU nm, then we don't want the "-C" option.
13897	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13898	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13899	  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'
13900	else
13901	  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'
13902	fi
13903	aix_use_runtimelinking=no
13904
13905	# Test if we are trying to use run time linking or normal
13906	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13907	# need to do runtime linking.
13908	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13909	  for ld_flag in $LDFLAGS; do
13910  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13911  	    aix_use_runtimelinking=yes
13912  	    break
13913  	  fi
13914	  done
13915	esac
13916
13917	exp_sym_flag='-bexport'
13918	no_entry_flag='-bnoentry'
13919      fi
13920
13921      # When large executables or shared objects are built, AIX ld can
13922      # have problems creating the table of contents.  If linking a library
13923      # or program results in "error TOC overflow" add -mminimal-toc to
13924      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13925      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13926
13927      archive_cmds_F77=''
13928      hardcode_direct_F77=yes
13929      hardcode_libdir_separator_F77=':'
13930      link_all_deplibs_F77=yes
13931
13932      if test "$GCC" = yes; then
13933	case $host_os in aix4.012|aix4.012.*)
13934	# We only want to do this on AIX 4.2 and lower, the check
13935	# below for broken collect2 doesn't work under 4.3+
13936	  collect2name=`${CC} -print-prog-name=collect2`
13937	  if test -f "$collect2name" && \
13938  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13939	  then
13940  	  # We have reworked collect2
13941  	  hardcode_direct_F77=yes
13942	  else
13943  	  # We have old collect2
13944  	  hardcode_direct_F77=unsupported
13945  	  # It fails to find uninstalled libraries when the uninstalled
13946  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13947  	  # to unsupported forces relinking
13948  	  hardcode_minus_L_F77=yes
13949  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13950  	  hardcode_libdir_separator_F77=
13951	  fi
13952	esac
13953	shared_flag='-shared'
13954      else
13955	# not using gcc
13956	if test "$host_cpu" = ia64; then
13957  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13958  	# chokes on -Wl,-G. The following line is correct:
13959	  shared_flag='-G'
13960	else
13961  	if test "$aix_use_runtimelinking" = yes; then
13962	    shared_flag='${wl}-G'
13963	  else
13964	    shared_flag='${wl}-bM:SRE'
13965  	fi
13966	fi
13967      fi
13968
13969      # It seems that -bexpall does not export symbols beginning with
13970      # underscore (_), so it is better to generate a list of symbols to export.
13971      always_export_symbols_F77=yes
13972      if test "$aix_use_runtimelinking" = yes; then
13973	# Warning - without using the other runtime loading flags (-brtl),
13974	# -berok will link without error, but may produce a broken library.
13975	allow_undefined_flag_F77='-berok'
13976       # Determine the default libpath from the value encoded in an empty executable.
13977       cat >conftest.$ac_ext <<_ACEOF
13978      program main
13979
13980      end
13981_ACEOF
13982rm -f conftest.$ac_objext conftest$ac_exeext
13983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13984  (eval $ac_link) 2>conftest.er1
13985  ac_status=$?
13986  grep -v '^ *+' conftest.er1 >conftest.err
13987  rm -f conftest.er1
13988  cat conftest.err >&5
13989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990  (exit $ac_status); } &&
13991	 { ac_try='test -z "$ac_f77_werror_flag"
13992			 || test ! -s conftest.err'
13993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994  (eval $ac_try) 2>&5
13995  ac_status=$?
13996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997  (exit $ac_status); }; } &&
13998	 { ac_try='test -s conftest$ac_exeext'
13999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000  (eval $ac_try) 2>&5
14001  ac_status=$?
14002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003  (exit $ac_status); }; }; then
14004
14005aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14006}'`
14007# Check for a 64-bit object if we didn't find anything.
14008if 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; }
14009}'`; fi
14010else
14011  echo "$as_me: failed program was:" >&5
14012sed 's/^/| /' conftest.$ac_ext >&5
14013
14014fi
14015rm -f conftest.err conftest.$ac_objext \
14016      conftest$ac_exeext conftest.$ac_ext
14017if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14018
14019       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14020	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14021       else
14022	if test "$host_cpu" = ia64; then
14023	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14024	  allow_undefined_flag_F77="-z nodefs"
14025	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14026	else
14027	 # Determine the default libpath from the value encoded in an empty executable.
14028	 cat >conftest.$ac_ext <<_ACEOF
14029      program main
14030
14031      end
14032_ACEOF
14033rm -f conftest.$ac_objext conftest$ac_exeext
14034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14035  (eval $ac_link) 2>conftest.er1
14036  ac_status=$?
14037  grep -v '^ *+' conftest.er1 >conftest.err
14038  rm -f conftest.er1
14039  cat conftest.err >&5
14040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041  (exit $ac_status); } &&
14042	 { ac_try='test -z "$ac_f77_werror_flag"
14043			 || test ! -s conftest.err'
14044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14045  (eval $ac_try) 2>&5
14046  ac_status=$?
14047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048  (exit $ac_status); }; } &&
14049	 { ac_try='test -s conftest$ac_exeext'
14050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051  (eval $ac_try) 2>&5
14052  ac_status=$?
14053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054  (exit $ac_status); }; }; then
14055
14056aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14057}'`
14058# Check for a 64-bit object if we didn't find anything.
14059if 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; }
14060}'`; fi
14061else
14062  echo "$as_me: failed program was:" >&5
14063sed 's/^/| /' conftest.$ac_ext >&5
14064
14065fi
14066rm -f conftest.err conftest.$ac_objext \
14067      conftest$ac_exeext conftest.$ac_ext
14068if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14069
14070	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14071	  # Warning - without using the other run time loading flags,
14072	  # -berok will link without error, but may produce a broken library.
14073	  no_undefined_flag_F77=' ${wl}-bernotok'
14074	  allow_undefined_flag_F77=' ${wl}-berok'
14075	  # -bexpall does not export symbols beginning with underscore (_)
14076	  always_export_symbols_F77=yes
14077	  # Exported symbols can be pulled into shared objects from archives
14078	  whole_archive_flag_spec_F77=' '
14079	  archive_cmds_need_lc_F77=yes
14080	  # This is similar to how AIX traditionally builds it's shared libraries.
14081	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14082	fi
14083      fi
14084      ;;
14085
14086    amigaos*)
14087      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)'
14088      hardcode_libdir_flag_spec_F77='-L$libdir'
14089      hardcode_minus_L_F77=yes
14090      # see comment about different semantics on the GNU ld section
14091      ld_shlibs_F77=no
14092      ;;
14093
14094    bsdi[45]*)
14095      export_dynamic_flag_spec_F77=-rdynamic
14096      ;;
14097
14098    cygwin* | mingw* | pw32*)
14099      # When not using gcc, we currently assume that we are using
14100      # Microsoft Visual C++.
14101      # hardcode_libdir_flag_spec is actually meaningless, as there is
14102      # no search path for DLLs.
14103      hardcode_libdir_flag_spec_F77=' '
14104      allow_undefined_flag_F77=unsupported
14105      # Tell ltmain to make .lib files, not .a files.
14106      libext=lib
14107      # Tell ltmain to make .dll files, not .so files.
14108      shrext_cmds=".dll"
14109      # FIXME: Setting linknames here is a bad hack.
14110      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14111      # The linker will automatically build a .lib file if we build a DLL.
14112      old_archive_From_new_cmds_F77='true'
14113      # FIXME: Should let the user specify the lib program.
14114      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14115      fix_srcfile_path='`cygpath -w "$srcfile"`'
14116      enable_shared_with_static_runtimes_F77=yes
14117      ;;
14118
14119    darwin* | rhapsody*)
14120      case "$host_os" in
14121        rhapsody* | darwin1.[012])
14122         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14123         ;;
14124       *) # Darwin 1.3 on
14125         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14126           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14127         else
14128           case ${MACOSX_DEPLOYMENT_TARGET} in
14129             10.[012])
14130               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14131               ;;
14132             10.*)
14133               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14134               ;;
14135           esac
14136         fi
14137         ;;
14138      esac
14139      archive_cmds_need_lc_F77=no
14140      hardcode_direct_F77=no
14141      hardcode_automatic_F77=yes
14142      hardcode_shlibpath_var_F77=unsupported
14143      whole_archive_flag_spec_F77=''
14144      link_all_deplibs_F77=yes
14145    if test "$GCC" = yes ; then
14146    	output_verbose_link_cmd='echo'
14147        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14148      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14149      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14150      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}'
14151      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}'
14152    else
14153      case "$cc_basename" in
14154        xlc*)
14155         output_verbose_link_cmd='echo'
14156         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14157         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14158          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14159         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}'
14160          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}'
14161          ;;
14162       *)
14163         ld_shlibs_F77=no
14164          ;;
14165      esac
14166    fi
14167      ;;
14168
14169    dgux*)
14170      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14171      hardcode_libdir_flag_spec_F77='-L$libdir'
14172      hardcode_shlibpath_var_F77=no
14173      ;;
14174
14175    freebsd1*)
14176      ld_shlibs_F77=no
14177      ;;
14178
14179    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14180    # support.  Future versions do this automatically, but an explicit c++rt0.o
14181    # does not break anything, and helps significantly (at the cost of a little
14182    # extra space).
14183    freebsd2.2*)
14184      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14185      hardcode_libdir_flag_spec_F77='-R$libdir'
14186      hardcode_direct_F77=yes
14187      hardcode_shlibpath_var_F77=no
14188      ;;
14189
14190    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14191    freebsd2*)
14192      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14193      hardcode_direct_F77=yes
14194      hardcode_minus_L_F77=yes
14195      hardcode_shlibpath_var_F77=no
14196      ;;
14197
14198    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14199    freebsd* | kfreebsd*-gnu)
14200      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14201      hardcode_libdir_flag_spec_F77='-R$libdir'
14202      hardcode_direct_F77=yes
14203      hardcode_shlibpath_var_F77=no
14204      ;;
14205
14206    hpux9*)
14207      if test "$GCC" = yes; then
14208	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'
14209      else
14210	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'
14211      fi
14212      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14213      hardcode_libdir_separator_F77=:
14214      hardcode_direct_F77=yes
14215
14216      # hardcode_minus_L: Not really in the search PATH,
14217      # but as the default location of the library.
14218      hardcode_minus_L_F77=yes
14219      export_dynamic_flag_spec_F77='${wl}-E'
14220      ;;
14221
14222    hpux10* | hpux11*)
14223      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14224	case "$host_cpu" in
14225	hppa*64*|ia64*)
14226	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14227	  ;;
14228	*)
14229	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14230	  ;;
14231	esac
14232      else
14233	case "$host_cpu" in
14234	hppa*64*|ia64*)
14235	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14236	  ;;
14237	*)
14238	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14239	  ;;
14240	esac
14241      fi
14242      if test "$with_gnu_ld" = no; then
14243	case "$host_cpu" in
14244	hppa*64*)
14245	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14246	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14247	  hardcode_libdir_separator_F77=:
14248	  hardcode_direct_F77=no
14249	  hardcode_shlibpath_var_F77=no
14250	  ;;
14251	ia64*)
14252	  hardcode_libdir_flag_spec_F77='-L$libdir'
14253	  hardcode_direct_F77=no
14254	  hardcode_shlibpath_var_F77=no
14255
14256	  # hardcode_minus_L: Not really in the search PATH,
14257	  # but as the default location of the library.
14258	  hardcode_minus_L_F77=yes
14259	  ;;
14260	*)
14261	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14262	  hardcode_libdir_separator_F77=:
14263	  hardcode_direct_F77=yes
14264	  export_dynamic_flag_spec_F77='${wl}-E'
14265
14266	  # hardcode_minus_L: Not really in the search PATH,
14267	  # but as the default location of the library.
14268	  hardcode_minus_L_F77=yes
14269	  ;;
14270	esac
14271      fi
14272      ;;
14273
14274    irix5* | irix6* | nonstopux*)
14275      if test "$GCC" = yes; then
14276	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'
14277      else
14278	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'
14279	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14280      fi
14281      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14282      hardcode_libdir_separator_F77=:
14283      link_all_deplibs_F77=yes
14284      ;;
14285
14286    netbsd*)
14287      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14288	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14289      else
14290	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14291      fi
14292      hardcode_libdir_flag_spec_F77='-R$libdir'
14293      hardcode_direct_F77=yes
14294      hardcode_shlibpath_var_F77=no
14295      ;;
14296
14297    newsos6)
14298      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14299      hardcode_direct_F77=yes
14300      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14301      hardcode_libdir_separator_F77=:
14302      hardcode_shlibpath_var_F77=no
14303      ;;
14304
14305    openbsd*)
14306      hardcode_direct_F77=yes
14307      hardcode_shlibpath_var_F77=no
14308      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14309	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14310	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14311	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14312	export_dynamic_flag_spec_F77='${wl}-E'
14313      else
14314       case $host_os in
14315	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14316	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14317	   hardcode_libdir_flag_spec_F77='-R$libdir'
14318	   ;;
14319	 *)
14320	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14321	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14322	   ;;
14323       esac
14324      fi
14325      ;;
14326
14327    os2*)
14328      hardcode_libdir_flag_spec_F77='-L$libdir'
14329      hardcode_minus_L_F77=yes
14330      allow_undefined_flag_F77=unsupported
14331      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'
14332      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14333      ;;
14334
14335    osf3*)
14336      if test "$GCC" = yes; then
14337	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14338	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'
14339      else
14340	allow_undefined_flag_F77=' -expect_unresolved \*'
14341	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'
14342      fi
14343      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14344      hardcode_libdir_separator_F77=:
14345      ;;
14346
14347    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14348      if test "$GCC" = yes; then
14349	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14350	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'
14351	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14352      else
14353	allow_undefined_flag_F77=' -expect_unresolved \*'
14354	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'
14355	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~
14356	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14357
14358	# Both c and cxx compiler support -rpath directly
14359	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14360      fi
14361      hardcode_libdir_separator_F77=:
14362      ;;
14363
14364    sco3.2v5*)
14365      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14366      hardcode_shlibpath_var_F77=no
14367      export_dynamic_flag_spec_F77='${wl}-Bexport'
14368      runpath_var=LD_RUN_PATH
14369      hardcode_runpath_var=yes
14370      ;;
14371
14372    solaris*)
14373      no_undefined_flag_F77=' -z text'
14374      if test "$GCC" = yes; then
14375	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14376	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14377	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14378      else
14379	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14380	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14381  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14382      fi
14383      hardcode_libdir_flag_spec_F77='-R$libdir'
14384      hardcode_shlibpath_var_F77=no
14385      case $host_os in
14386      solaris2.[0-5] | solaris2.[0-5].*) ;;
14387      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14388	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14389      esac
14390      link_all_deplibs_F77=yes
14391      ;;
14392
14393    sunos4*)
14394      if test "x$host_vendor" = xsequent; then
14395	# Use $CC to link under sequent, because it throws in some extra .o
14396	# files that make .init and .fini sections work.
14397	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14398      else
14399	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14400      fi
14401      hardcode_libdir_flag_spec_F77='-L$libdir'
14402      hardcode_direct_F77=yes
14403      hardcode_minus_L_F77=yes
14404      hardcode_shlibpath_var_F77=no
14405      ;;
14406
14407    sysv4)
14408      case $host_vendor in
14409	sni)
14410	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14411	  hardcode_direct_F77=yes # is this really true???
14412	;;
14413	siemens)
14414	  ## LD is ld it makes a PLAMLIB
14415	  ## CC just makes a GrossModule.
14416	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14417	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14418	  hardcode_direct_F77=no
14419        ;;
14420	motorola)
14421	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14422	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14423	;;
14424      esac
14425      runpath_var='LD_RUN_PATH'
14426      hardcode_shlibpath_var_F77=no
14427      ;;
14428
14429    sysv4.3*)
14430      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14431      hardcode_shlibpath_var_F77=no
14432      export_dynamic_flag_spec_F77='-Bexport'
14433      ;;
14434
14435    sysv4*MP*)
14436      if test -d /usr/nec; then
14437	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14438	hardcode_shlibpath_var_F77=no
14439	runpath_var=LD_RUN_PATH
14440	hardcode_runpath_var=yes
14441	ld_shlibs_F77=yes
14442      fi
14443      ;;
14444
14445    sysv4.2uw2*)
14446      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14447      hardcode_direct_F77=yes
14448      hardcode_minus_L_F77=no
14449      hardcode_shlibpath_var_F77=no
14450      hardcode_runpath_var=yes
14451      runpath_var=LD_RUN_PATH
14452      ;;
14453
14454   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14455      no_undefined_flag_F77='${wl}-z ${wl}text'
14456      if test "$GCC" = yes; then
14457	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14458      else
14459	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14460      fi
14461      runpath_var='LD_RUN_PATH'
14462      hardcode_shlibpath_var_F77=no
14463      ;;
14464
14465    sysv5*)
14466      no_undefined_flag_F77=' -z text'
14467      # $CC -shared without GNU ld will not create a library from C++
14468      # object files and a static libstdc++, better avoid it by now
14469      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14470      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14471  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14472      hardcode_libdir_flag_spec_F77=
14473      hardcode_shlibpath_var_F77=no
14474      runpath_var='LD_RUN_PATH'
14475      ;;
14476
14477    uts4*)
14478      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14479      hardcode_libdir_flag_spec_F77='-L$libdir'
14480      hardcode_shlibpath_var_F77=no
14481      ;;
14482
14483    *)
14484      ld_shlibs_F77=no
14485      ;;
14486    esac
14487  fi
14488
14489echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14490echo "${ECHO_T}$ld_shlibs_F77" >&6
14491test "$ld_shlibs_F77" = no && can_build_shared=no
14492
14493variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14494if test "$GCC" = yes; then
14495  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14496fi
14497
14498#
14499# Do we need to explicitly link libc?
14500#
14501case "x$archive_cmds_need_lc_F77" in
14502x|xyes)
14503  # Assume -lc should be added
14504  archive_cmds_need_lc_F77=yes
14505
14506  if test "$enable_shared" = yes && test "$GCC" = yes; then
14507    case $archive_cmds_F77 in
14508    *'~'*)
14509      # FIXME: we may have to deal with multi-command sequences.
14510      ;;
14511    '$CC '*)
14512      # Test whether the compiler implicitly links with -lc since on some
14513      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14514      # to ld, don't add -lc before -lgcc.
14515      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14516echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14517      $rm conftest*
14518      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14519
14520      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14521  (eval $ac_compile) 2>&5
14522  ac_status=$?
14523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524  (exit $ac_status); } 2>conftest.err; then
14525        soname=conftest
14526        lib=conftest
14527        libobjs=conftest.$ac_objext
14528        deplibs=
14529        wl=$lt_prog_compiler_wl_F77
14530        compiler_flags=-v
14531        linker_flags=-v
14532        verstring=
14533        output_objdir=.
14534        libname=conftest
14535        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14536        allow_undefined_flag_F77=
14537        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14538  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14539  ac_status=$?
14540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541  (exit $ac_status); }
14542        then
14543	  archive_cmds_need_lc_F77=no
14544        else
14545	  archive_cmds_need_lc_F77=yes
14546        fi
14547        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14548      else
14549        cat conftest.err 1>&5
14550      fi
14551      $rm conftest*
14552      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14553echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14554      ;;
14555    esac
14556  fi
14557  ;;
14558esac
14559
14560echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14561echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14562library_names_spec=
14563libname_spec='lib$name'
14564soname_spec=
14565shrext_cmds=".so"
14566postinstall_cmds=
14567postuninstall_cmds=
14568finish_cmds=
14569finish_eval=
14570shlibpath_var=
14571shlibpath_overrides_runpath=unknown
14572version_type=none
14573dynamic_linker="$host_os ld.so"
14574sys_lib_dlsearch_path_spec="/lib /usr/lib"
14575if test "$GCC" = yes; then
14576  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14577  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14578    # if the path contains ";" then we assume it to be the separator
14579    # otherwise default to the standard path separator (i.e. ":") - it is
14580    # assumed that no part of a normal pathname contains ";" but that should
14581    # okay in the real world where ";" in dirpaths is itself problematic.
14582    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14583  else
14584    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14585  fi
14586else
14587  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14588fi
14589need_lib_prefix=unknown
14590hardcode_into_libs=no
14591
14592# when you set need_version to no, make sure it does not cause -set_version
14593# flags to be left without arguments
14594need_version=unknown
14595
14596case $host_os in
14597aix3*)
14598  version_type=linux
14599  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14600  shlibpath_var=LIBPATH
14601
14602  # AIX 3 has no versioning support, so we append a major version to the name.
14603  soname_spec='${libname}${release}${shared_ext}$major'
14604  ;;
14605
14606aix4* | aix5*)
14607  version_type=linux
14608  need_lib_prefix=no
14609  need_version=no
14610  hardcode_into_libs=yes
14611  if test "$host_cpu" = ia64; then
14612    # AIX 5 supports IA64
14613    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14614    shlibpath_var=LD_LIBRARY_PATH
14615  else
14616    # With GCC up to 2.95.x, collect2 would create an import file
14617    # for dependence libraries.  The import file would start with
14618    # the line `#! .'.  This would cause the generated library to
14619    # depend on `.', always an invalid library.  This was fixed in
14620    # development snapshots of GCC prior to 3.0.
14621    case $host_os in
14622      aix4 | aix4.[01] | aix4.[01].*)
14623      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14624	   echo ' yes '
14625	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14626	:
14627      else
14628	can_build_shared=no
14629      fi
14630      ;;
14631    esac
14632    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14633    # soname into executable. Probably we can add versioning support to
14634    # collect2, so additional links can be useful in future.
14635    if test "$aix_use_runtimelinking" = yes; then
14636      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14637      # instead of lib<name>.a to let people know that these are not
14638      # typical AIX shared libraries.
14639      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14640    else
14641      # We preserve .a as extension for shared libraries through AIX4.2
14642      # and later when we are not doing run time linking.
14643      library_names_spec='${libname}${release}.a $libname.a'
14644      soname_spec='${libname}${release}${shared_ext}$major'
14645    fi
14646    shlibpath_var=LIBPATH
14647  fi
14648  ;;
14649
14650amigaos*)
14651  library_names_spec='$libname.ixlibrary $libname.a'
14652  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14653  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'
14654  ;;
14655
14656beos*)
14657  library_names_spec='${libname}${shared_ext}'
14658  dynamic_linker="$host_os ld.so"
14659  shlibpath_var=LIBRARY_PATH
14660  ;;
14661
14662bsdi[45]*)
14663  version_type=linux
14664  need_version=no
14665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666  soname_spec='${libname}${release}${shared_ext}$major'
14667  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14668  shlibpath_var=LD_LIBRARY_PATH
14669  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14670  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14671  # the default ld.so.conf also contains /usr/contrib/lib and
14672  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14673  # libtool to hard-code these into programs
14674  ;;
14675
14676cygwin* | mingw* | pw32*)
14677  version_type=windows
14678  shrext_cmds=".dll"
14679  need_version=no
14680  need_lib_prefix=no
14681
14682  case $GCC,$host_os in
14683  yes,cygwin* | yes,mingw* | yes,pw32*)
14684    library_names_spec='$libname.dll.a'
14685    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14686    postinstall_cmds='base_file=`basename \${file}`~
14687      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14688      dldir=$destdir/`dirname \$dlpath`~
14689      test -d \$dldir || mkdir -p \$dldir~
14690      $install_prog $dir/$dlname \$dldir/$dlname'
14691    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14692      dlpath=$dir/\$dldll~
14693       $rm \$dlpath'
14694    shlibpath_overrides_runpath=yes
14695
14696    case $host_os in
14697    cygwin*)
14698      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14699      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14700      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14701      ;;
14702    mingw*)
14703      # MinGW DLLs use traditional 'lib' prefix
14704      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14705      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14706      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14707        # It is most probably a Windows format PATH printed by
14708        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14709        # path with ; separators, and with drive letters. We can handle the
14710        # drive letters (cygwin fileutils understands them), so leave them,
14711        # especially as we might pass files found there to a mingw objdump,
14712        # which wouldn't understand a cygwinified path. Ahh.
14713        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14714      else
14715        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14716      fi
14717      ;;
14718    pw32*)
14719      # pw32 DLLs use 'pw' prefix rather than 'lib'
14720      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14721      ;;
14722    esac
14723    ;;
14724
14725  *)
14726    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14727    ;;
14728  esac
14729  dynamic_linker='Win32 ld.exe'
14730  # FIXME: first we should search . and the directory the executable is in
14731  shlibpath_var=PATH
14732  ;;
14733
14734darwin* | rhapsody*)
14735  dynamic_linker="$host_os dyld"
14736  version_type=darwin
14737  need_lib_prefix=no
14738  need_version=no
14739  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14740  soname_spec='${libname}${release}${major}$shared_ext'
14741  shlibpath_overrides_runpath=yes
14742  shlibpath_var=DYLD_LIBRARY_PATH
14743  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14744  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14745  if test "$GCC" = yes; then
14746    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"`
14747  else
14748    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14749  fi
14750  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14751  ;;
14752
14753dgux*)
14754  version_type=linux
14755  need_lib_prefix=no
14756  need_version=no
14757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14758  soname_spec='${libname}${release}${shared_ext}$major'
14759  shlibpath_var=LD_LIBRARY_PATH
14760  ;;
14761
14762freebsd1*)
14763  dynamic_linker=no
14764  ;;
14765
14766kfreebsd*-gnu)
14767  version_type=linux
14768  need_lib_prefix=no
14769  need_version=no
14770  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14771  soname_spec='${libname}${release}${shared_ext}$major'
14772  shlibpath_var=LD_LIBRARY_PATH
14773  shlibpath_overrides_runpath=no
14774  hardcode_into_libs=yes
14775  dynamic_linker='GNU ld.so'
14776  ;;
14777
14778freebsd*)
14779  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14780  version_type=freebsd-$objformat
14781  case $version_type in
14782    freebsd-elf*)
14783      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14784      need_version=no
14785      need_lib_prefix=no
14786      ;;
14787    freebsd-*)
14788      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14789      need_version=yes
14790      ;;
14791  esac
14792  shlibpath_var=LD_LIBRARY_PATH
14793  case $host_os in
14794  freebsd2*)
14795    shlibpath_overrides_runpath=yes
14796    ;;
14797  freebsd3.01* | freebsdelf3.01*)
14798    shlibpath_overrides_runpath=yes
14799    hardcode_into_libs=yes
14800    ;;
14801  *) # from 3.2 on
14802    shlibpath_overrides_runpath=no
14803    hardcode_into_libs=yes
14804    ;;
14805  esac
14806  ;;
14807
14808gnu*)
14809  version_type=linux
14810  need_lib_prefix=no
14811  need_version=no
14812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14813  soname_spec='${libname}${release}${shared_ext}$major'
14814  shlibpath_var=LD_LIBRARY_PATH
14815  hardcode_into_libs=yes
14816  ;;
14817
14818hpux9* | hpux10* | hpux11*)
14819  # Give a soname corresponding to the major version so that dld.sl refuses to
14820  # link against other versions.
14821  version_type=sunos
14822  need_lib_prefix=no
14823  need_version=no
14824  case "$host_cpu" in
14825  ia64*)
14826    shrext_cmds='.so'
14827    hardcode_into_libs=yes
14828    dynamic_linker="$host_os dld.so"
14829    shlibpath_var=LD_LIBRARY_PATH
14830    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14831    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14832    soname_spec='${libname}${release}${shared_ext}$major'
14833    if test "X$HPUX_IA64_MODE" = X32; then
14834      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14835    else
14836      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14837    fi
14838    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14839    ;;
14840   hppa*64*)
14841     shrext_cmds='.sl'
14842     hardcode_into_libs=yes
14843     dynamic_linker="$host_os dld.sl"
14844     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14845     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14846     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14847     soname_spec='${libname}${release}${shared_ext}$major'
14848     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14849     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14850     ;;
14851   *)
14852    shrext_cmds='.sl'
14853    dynamic_linker="$host_os dld.sl"
14854    shlibpath_var=SHLIB_PATH
14855    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14856    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14857    soname_spec='${libname}${release}${shared_ext}$major'
14858    ;;
14859  esac
14860  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14861  postinstall_cmds='chmod 555 $lib'
14862  ;;
14863
14864irix5* | irix6* | nonstopux*)
14865  case $host_os in
14866    nonstopux*) version_type=nonstopux ;;
14867    *)
14868	if test "$lt_cv_prog_gnu_ld" = yes; then
14869		version_type=linux
14870	else
14871		version_type=irix
14872	fi ;;
14873  esac
14874  need_lib_prefix=no
14875  need_version=no
14876  soname_spec='${libname}${release}${shared_ext}$major'
14877  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14878  case $host_os in
14879  irix5* | nonstopux*)
14880    libsuff= shlibsuff=
14881    ;;
14882  *)
14883    case $LD in # libtool.m4 will add one of these switches to LD
14884    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14885      libsuff= shlibsuff= libmagic=32-bit;;
14886    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14887      libsuff=32 shlibsuff=N32 libmagic=N32;;
14888    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14889      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14890    *) libsuff= shlibsuff= libmagic=never-match;;
14891    esac
14892    ;;
14893  esac
14894  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14895  shlibpath_overrides_runpath=no
14896  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14897  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14898  hardcode_into_libs=yes
14899  ;;
14900
14901# No shared lib support for Linux oldld, aout, or coff.
14902linux*oldld* | linux*aout* | linux*coff*)
14903  dynamic_linker=no
14904  ;;
14905
14906# This must be Linux ELF.
14907linux*)
14908  version_type=linux
14909  need_lib_prefix=no
14910  need_version=no
14911  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14912  soname_spec='${libname}${release}${shared_ext}$major'
14913  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14914  shlibpath_var=LD_LIBRARY_PATH
14915  shlibpath_overrides_runpath=no
14916  # This implies no fast_install, which is unacceptable.
14917  # Some rework will be needed to allow for fast_install
14918  # before this can be enabled.
14919  hardcode_into_libs=yes
14920
14921  # Append ld.so.conf contents to the search path
14922  if test -f /etc/ld.so.conf; then
14923    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14924    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14925  fi
14926
14927  # We used to test for /lib/ld.so.1 and disable shared libraries on
14928  # powerpc, because MkLinux only supported shared libraries with the
14929  # GNU dynamic linker.  Since this was broken with cross compilers,
14930  # most powerpc-linux boxes support dynamic linking these days and
14931  # people can always --disable-shared, the test was removed, and we
14932  # assume the GNU/Linux dynamic linker is in use.
14933  dynamic_linker='GNU/Linux ld.so'
14934  ;;
14935
14936knetbsd*-gnu)
14937  version_type=linux
14938  need_lib_prefix=no
14939  need_version=no
14940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14941  soname_spec='${libname}${release}${shared_ext}$major'
14942  shlibpath_var=LD_LIBRARY_PATH
14943  shlibpath_overrides_runpath=no
14944  hardcode_into_libs=yes
14945  dynamic_linker='GNU ld.so'
14946  ;;
14947
14948netbsd*)
14949  version_type=sunos
14950  need_lib_prefix=no
14951  need_version=no
14952  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14953    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14954    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14955    dynamic_linker='NetBSD (a.out) ld.so'
14956  else
14957    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14958    soname_spec='${libname}${release}${shared_ext}$major'
14959    dynamic_linker='NetBSD ld.elf_so'
14960  fi
14961  shlibpath_var=LD_LIBRARY_PATH
14962  shlibpath_overrides_runpath=yes
14963  hardcode_into_libs=yes
14964  ;;
14965
14966newsos6)
14967  version_type=linux
14968  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14969  shlibpath_var=LD_LIBRARY_PATH
14970  shlibpath_overrides_runpath=yes
14971  ;;
14972
14973nto-qnx*)
14974  version_type=linux
14975  need_lib_prefix=no
14976  need_version=no
14977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14978  soname_spec='${libname}${release}${shared_ext}$major'
14979  shlibpath_var=LD_LIBRARY_PATH
14980  shlibpath_overrides_runpath=yes
14981  ;;
14982
14983openbsd*)
14984  version_type=sunos
14985  need_lib_prefix=no
14986  need_version=no
14987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14988  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14989  shlibpath_var=LD_LIBRARY_PATH
14990  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14991    case $host_os in
14992      openbsd2.[89] | openbsd2.[89].*)
14993	shlibpath_overrides_runpath=no
14994	;;
14995      *)
14996	shlibpath_overrides_runpath=yes
14997	;;
14998      esac
14999  else
15000    shlibpath_overrides_runpath=yes
15001  fi
15002  ;;
15003
15004os2*)
15005  libname_spec='$name'
15006  shrext_cmds=".dll"
15007  need_lib_prefix=no
15008  library_names_spec='$libname${shared_ext} $libname.a'
15009  dynamic_linker='OS/2 ld.exe'
15010  shlibpath_var=LIBPATH
15011  ;;
15012
15013osf3* | osf4* | osf5*)
15014  version_type=osf
15015  need_lib_prefix=no
15016  need_version=no
15017  soname_spec='${libname}${release}${shared_ext}$major'
15018  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15019  shlibpath_var=LD_LIBRARY_PATH
15020  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15021  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15022  ;;
15023
15024sco3.2v5*)
15025  version_type=osf
15026  soname_spec='${libname}${release}${shared_ext}$major'
15027  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15028  shlibpath_var=LD_LIBRARY_PATH
15029  ;;
15030
15031solaris*)
15032  version_type=linux
15033  need_lib_prefix=no
15034  need_version=no
15035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15036  soname_spec='${libname}${release}${shared_ext}$major'
15037  shlibpath_var=LD_LIBRARY_PATH
15038  shlibpath_overrides_runpath=yes
15039  hardcode_into_libs=yes
15040  # ldd complains unless libraries are executable
15041  postinstall_cmds='chmod +x $lib'
15042  ;;
15043
15044sunos4*)
15045  version_type=sunos
15046  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15047  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15048  shlibpath_var=LD_LIBRARY_PATH
15049  shlibpath_overrides_runpath=yes
15050  if test "$with_gnu_ld" = yes; then
15051    need_lib_prefix=no
15052  fi
15053  need_version=yes
15054  ;;
15055
15056sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15057  version_type=linux
15058  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15059  soname_spec='${libname}${release}${shared_ext}$major'
15060  shlibpath_var=LD_LIBRARY_PATH
15061  case $host_vendor in
15062    sni)
15063      shlibpath_overrides_runpath=no
15064      need_lib_prefix=no
15065      export_dynamic_flag_spec='${wl}-Blargedynsym'
15066      runpath_var=LD_RUN_PATH
15067      ;;
15068    siemens)
15069      need_lib_prefix=no
15070      ;;
15071    motorola)
15072      need_lib_prefix=no
15073      need_version=no
15074      shlibpath_overrides_runpath=no
15075      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15076      ;;
15077  esac
15078  ;;
15079
15080sysv4*MP*)
15081  if test -d /usr/nec ;then
15082    version_type=linux
15083    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15084    soname_spec='$libname${shared_ext}.$major'
15085    shlibpath_var=LD_LIBRARY_PATH
15086  fi
15087  ;;
15088
15089uts4*)
15090  version_type=linux
15091  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15092  soname_spec='${libname}${release}${shared_ext}$major'
15093  shlibpath_var=LD_LIBRARY_PATH
15094  ;;
15095
15096*)
15097  dynamic_linker=no
15098  ;;
15099esac
15100echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15101echo "${ECHO_T}$dynamic_linker" >&6
15102test "$dynamic_linker" = no && can_build_shared=no
15103
15104echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15105echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15106hardcode_action_F77=
15107if test -n "$hardcode_libdir_flag_spec_F77" || \
15108   test -n "$runpath_var_F77" || \
15109   test "X$hardcode_automatic_F77" = "Xyes" ; then
15110
15111  # We can hardcode non-existant directories.
15112  if test "$hardcode_direct_F77" != no &&
15113     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15114     # have to relink, otherwise we might link with an installed library
15115     # when we should be linking with a yet-to-be-installed one
15116     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15117     test "$hardcode_minus_L_F77" != no; then
15118    # Linking always hardcodes the temporary library directory.
15119    hardcode_action_F77=relink
15120  else
15121    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15122    hardcode_action_F77=immediate
15123  fi
15124else
15125  # We cannot hardcode anything, or else we can only hardcode existing
15126  # directories.
15127  hardcode_action_F77=unsupported
15128fi
15129echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15130echo "${ECHO_T}$hardcode_action_F77" >&6
15131
15132if test "$hardcode_action_F77" = relink; then
15133  # Fast installation is not supported
15134  enable_fast_install=no
15135elif test "$shlibpath_overrides_runpath" = yes ||
15136     test "$enable_shared" = no; then
15137  # Fast installation is not necessary
15138  enable_fast_install=needless
15139fi
15140
15141striplib=
15142old_striplib=
15143echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15144echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15145if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15146  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15147  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15148  echo "$as_me:$LINENO: result: yes" >&5
15149echo "${ECHO_T}yes" >&6
15150else
15151# FIXME - insert some real tests, host_os isn't really good enough
15152  case $host_os in
15153   darwin*)
15154       if test -n "$STRIP" ; then
15155         striplib="$STRIP -x"
15156         echo "$as_me:$LINENO: result: yes" >&5
15157echo "${ECHO_T}yes" >&6
15158       else
15159  echo "$as_me:$LINENO: result: no" >&5
15160echo "${ECHO_T}no" >&6
15161fi
15162       ;;
15163   *)
15164  echo "$as_me:$LINENO: result: no" >&5
15165echo "${ECHO_T}no" >&6
15166    ;;
15167  esac
15168fi
15169
15170
15171
15172# The else clause should only fire when bootstrapping the
15173# libtool distribution, otherwise you forgot to ship ltmain.sh
15174# with your package, and you will get complaints that there are
15175# no rules to generate ltmain.sh.
15176if test -f "$ltmain"; then
15177  # See if we are running on zsh, and set the options which allow our commands through
15178  # without removal of \ escapes.
15179  if test -n "${ZSH_VERSION+set}" ; then
15180    setopt NO_GLOB_SUBST
15181  fi
15182  # Now quote all the things that may contain metacharacters while being
15183  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15184  # variables and quote the copies for generation of the libtool script.
15185  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15186    SED SHELL STRIP \
15187    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15188    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15189    deplibs_check_method reload_flag reload_cmds need_locks \
15190    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15191    lt_cv_sys_global_symbol_to_c_name_address \
15192    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15193    old_postinstall_cmds old_postuninstall_cmds \
15194    compiler_F77 \
15195    CC_F77 \
15196    LD_F77 \
15197    lt_prog_compiler_wl_F77 \
15198    lt_prog_compiler_pic_F77 \
15199    lt_prog_compiler_static_F77 \
15200    lt_prog_compiler_no_builtin_flag_F77 \
15201    export_dynamic_flag_spec_F77 \
15202    thread_safe_flag_spec_F77 \
15203    whole_archive_flag_spec_F77 \
15204    enable_shared_with_static_runtimes_F77 \
15205    old_archive_cmds_F77 \
15206    old_archive_from_new_cmds_F77 \
15207    predep_objects_F77 \
15208    postdep_objects_F77 \
15209    predeps_F77 \
15210    postdeps_F77 \
15211    compiler_lib_search_path_F77 \
15212    archive_cmds_F77 \
15213    archive_expsym_cmds_F77 \
15214    postinstall_cmds_F77 \
15215    postuninstall_cmds_F77 \
15216    old_archive_from_expsyms_cmds_F77 \
15217    allow_undefined_flag_F77 \
15218    no_undefined_flag_F77 \
15219    export_symbols_cmds_F77 \
15220    hardcode_libdir_flag_spec_F77 \
15221    hardcode_libdir_flag_spec_ld_F77 \
15222    hardcode_libdir_separator_F77 \
15223    hardcode_automatic_F77 \
15224    module_cmds_F77 \
15225    module_expsym_cmds_F77 \
15226    lt_cv_prog_compiler_c_o_F77 \
15227    exclude_expsyms_F77 \
15228    include_expsyms_F77; do
15229
15230    case $var in
15231    old_archive_cmds_F77 | \
15232    old_archive_from_new_cmds_F77 | \
15233    archive_cmds_F77 | \
15234    archive_expsym_cmds_F77 | \
15235    module_cmds_F77 | \
15236    module_expsym_cmds_F77 | \
15237    old_archive_from_expsyms_cmds_F77 | \
15238    export_symbols_cmds_F77 | \
15239    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15240    postinstall_cmds | postuninstall_cmds | \
15241    old_postinstall_cmds | old_postuninstall_cmds | \
15242    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15243      # Double-quote double-evaled strings.
15244      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15245      ;;
15246    *)
15247      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15248      ;;
15249    esac
15250  done
15251
15252  case $lt_echo in
15253  *'\$0 --fallback-echo"')
15254    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15255    ;;
15256  esac
15257
15258cfgfile="$ofile"
15259
15260  cat <<__EOF__ >> "$cfgfile"
15261# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15262
15263# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15264
15265# Shell to use when invoking shell scripts.
15266SHELL=$lt_SHELL
15267
15268# Whether or not to build shared libraries.
15269build_libtool_libs=$enable_shared
15270
15271# Whether or not to build static libraries.
15272build_old_libs=$enable_static
15273
15274# Whether or not to add -lc for building shared libraries.
15275build_libtool_need_lc=$archive_cmds_need_lc_F77
15276
15277# Whether or not to disallow shared libs when runtime libs are static
15278allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15279
15280# Whether or not to optimize for fast installation.
15281fast_install=$enable_fast_install
15282
15283# The host system.
15284host_alias=$host_alias
15285host=$host
15286
15287# An echo program that does not interpret backslashes.
15288echo=$lt_echo
15289
15290# The archiver.
15291AR=$lt_AR
15292AR_FLAGS=$lt_AR_FLAGS
15293
15294# A C compiler.
15295LTCC=$lt_LTCC
15296
15297# A language-specific compiler.
15298CC=$lt_compiler_F77
15299
15300# Is the compiler the GNU C compiler?
15301with_gcc=$GCC_F77
15302
15303# An ERE matcher.
15304EGREP=$lt_EGREP
15305
15306# The linker used to build libraries.
15307LD=$lt_LD_F77
15308
15309# Whether we need hard or soft links.
15310LN_S=$lt_LN_S
15311
15312# A BSD-compatible nm program.
15313NM=$lt_NM
15314
15315# A symbol stripping program
15316STRIP=$lt_STRIP
15317
15318# Used to examine libraries when file_magic_cmd begins "file"
15319MAGIC_CMD=$MAGIC_CMD
15320
15321# Used on cygwin: DLL creation program.
15322DLLTOOL="$DLLTOOL"
15323
15324# Used on cygwin: object dumper.
15325OBJDUMP="$OBJDUMP"
15326
15327# Used on cygwin: assembler.
15328AS="$AS"
15329
15330# The name of the directory that contains temporary libtool files.
15331objdir=$objdir
15332
15333# How to create reloadable object files.
15334reload_flag=$lt_reload_flag
15335reload_cmds=$lt_reload_cmds
15336
15337# How to pass a linker flag through the compiler.
15338wl=$lt_lt_prog_compiler_wl_F77
15339
15340# Object file suffix (normally "o").
15341objext="$ac_objext"
15342
15343# Old archive suffix (normally "a").
15344libext="$libext"
15345
15346# Shared library suffix (normally ".so").
15347shrext_cmds='$shrext_cmds'
15348
15349# Executable file suffix (normally "").
15350exeext="$exeext"
15351
15352# Additional compiler flags for building library objects.
15353pic_flag=$lt_lt_prog_compiler_pic_F77
15354pic_mode=$pic_mode
15355
15356# What is the maximum length of a command?
15357max_cmd_len=$lt_cv_sys_max_cmd_len
15358
15359# Does compiler simultaneously support -c and -o options?
15360compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15361
15362# Must we lock files when doing compilation ?
15363need_locks=$lt_need_locks
15364
15365# Do we need the lib prefix for modules?
15366need_lib_prefix=$need_lib_prefix
15367
15368# Do we need a version for libraries?
15369need_version=$need_version
15370
15371# Whether dlopen is supported.
15372dlopen_support=$enable_dlopen
15373
15374# Whether dlopen of programs is supported.
15375dlopen_self=$enable_dlopen_self
15376
15377# Whether dlopen of statically linked programs is supported.
15378dlopen_self_static=$enable_dlopen_self_static
15379
15380# Compiler flag to prevent dynamic linking.
15381link_static_flag=$lt_lt_prog_compiler_static_F77
15382
15383# Compiler flag to turn off builtin functions.
15384no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15385
15386# Compiler flag to allow reflexive dlopens.
15387export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15388
15389# Compiler flag to generate shared objects directly from archives.
15390whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15391
15392# Compiler flag to generate thread-safe objects.
15393thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15394
15395# Library versioning type.
15396version_type=$version_type
15397
15398# Format of library name prefix.
15399libname_spec=$lt_libname_spec
15400
15401# List of archive names.  First name is the real one, the rest are links.
15402# The last name is the one that the linker finds with -lNAME.
15403library_names_spec=$lt_library_names_spec
15404
15405# The coded name of the library, if different from the real name.
15406soname_spec=$lt_soname_spec
15407
15408# Commands used to build and install an old-style archive.
15409RANLIB=$lt_RANLIB
15410old_archive_cmds=$lt_old_archive_cmds_F77
15411old_postinstall_cmds=$lt_old_postinstall_cmds
15412old_postuninstall_cmds=$lt_old_postuninstall_cmds
15413
15414# Create an old-style archive from a shared archive.
15415old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15416
15417# Create a temporary old-style archive to link instead of a shared archive.
15418old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15419
15420# Commands used to build and install a shared archive.
15421archive_cmds=$lt_archive_cmds_F77
15422archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15423postinstall_cmds=$lt_postinstall_cmds
15424postuninstall_cmds=$lt_postuninstall_cmds
15425
15426# Commands used to build a loadable module (assumed same as above if empty)
15427module_cmds=$lt_module_cmds_F77
15428module_expsym_cmds=$lt_module_expsym_cmds_F77
15429
15430# Commands to strip libraries.
15431old_striplib=$lt_old_striplib
15432striplib=$lt_striplib
15433
15434# Dependencies to place before the objects being linked to create a
15435# shared library.
15436predep_objects=$lt_predep_objects_F77
15437
15438# Dependencies to place after the objects being linked to create a
15439# shared library.
15440postdep_objects=$lt_postdep_objects_F77
15441
15442# Dependencies to place before the objects being linked to create a
15443# shared library.
15444predeps=$lt_predeps_F77
15445
15446# Dependencies to place after the objects being linked to create a
15447# shared library.
15448postdeps=$lt_postdeps_F77
15449
15450# The library search path used internally by the compiler when linking
15451# a shared library.
15452compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15453
15454# Method to check whether dependent libraries are shared objects.
15455deplibs_check_method=$lt_deplibs_check_method
15456
15457# Command to use when deplibs_check_method == file_magic.
15458file_magic_cmd=$lt_file_magic_cmd
15459
15460# Flag that allows shared libraries with undefined symbols to be built.
15461allow_undefined_flag=$lt_allow_undefined_flag_F77
15462
15463# Flag that forces no undefined symbols.
15464no_undefined_flag=$lt_no_undefined_flag_F77
15465
15466# Commands used to finish a libtool library installation in a directory.
15467finish_cmds=$lt_finish_cmds
15468
15469# Same as above, but a single script fragment to be evaled but not shown.
15470finish_eval=$lt_finish_eval
15471
15472# Take the output of nm and produce a listing of raw symbols and C names.
15473global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15474
15475# Transform the output of nm in a proper C declaration
15476global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15477
15478# Transform the output of nm in a C name address pair
15479global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15480
15481# This is the shared library runtime path variable.
15482runpath_var=$runpath_var
15483
15484# This is the shared library path variable.
15485shlibpath_var=$shlibpath_var
15486
15487# Is shlibpath searched before the hard-coded library search path?
15488shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15489
15490# How to hardcode a shared library path into an executable.
15491hardcode_action=$hardcode_action_F77
15492
15493# Whether we should hardcode library paths into libraries.
15494hardcode_into_libs=$hardcode_into_libs
15495
15496# Flag to hardcode \$libdir into a binary during linking.
15497# This must work even if \$libdir does not exist.
15498hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15499
15500# If ld is used when linking, flag to hardcode \$libdir into
15501# a binary during linking. This must work even if \$libdir does
15502# not exist.
15503hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15504
15505# Whether we need a single -rpath flag with a separated argument.
15506hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15507
15508# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15509# resulting binary.
15510hardcode_direct=$hardcode_direct_F77
15511
15512# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15513# resulting binary.
15514hardcode_minus_L=$hardcode_minus_L_F77
15515
15516# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15517# the resulting binary.
15518hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15519
15520# Set to yes if building a shared library automatically hardcodes DIR into the library
15521# and all subsequent libraries and executables linked against it.
15522hardcode_automatic=$hardcode_automatic_F77
15523
15524# Variables whose values should be saved in libtool wrapper scripts and
15525# restored at relink time.
15526variables_saved_for_relink="$variables_saved_for_relink"
15527
15528# Whether libtool must link a program against all its dependency libraries.
15529link_all_deplibs=$link_all_deplibs_F77
15530
15531# Compile-time system search path for libraries
15532sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15533
15534# Run-time system search path for libraries
15535sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15536
15537# Fix the shell variable \$srcfile for the compiler.
15538fix_srcfile_path="$fix_srcfile_path_F77"
15539
15540# Set to yes if exported symbols are required.
15541always_export_symbols=$always_export_symbols_F77
15542
15543# The commands to list exported symbols.
15544export_symbols_cmds=$lt_export_symbols_cmds_F77
15545
15546# The commands to extract the exported symbol list from a shared archive.
15547extract_expsyms_cmds=$lt_extract_expsyms_cmds
15548
15549# Symbols that should not be listed in the preloaded symbols.
15550exclude_expsyms=$lt_exclude_expsyms_F77
15551
15552# Symbols that must always be exported.
15553include_expsyms=$lt_include_expsyms_F77
15554
15555# ### END LIBTOOL TAG CONFIG: $tagname
15556
15557__EOF__
15558
15559
15560else
15561  # If there is no Makefile yet, we rely on a make rule to execute
15562  # `config.status --recheck' to rerun these tests and create the
15563  # libtool script then.
15564  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15565  if test -f "$ltmain_in"; then
15566    test -f Makefile && make "$ltmain"
15567  fi
15568fi
15569
15570
15571ac_ext=c
15572ac_cpp='$CPP $CPPFLAGS'
15573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15575ac_compiler_gnu=$ac_cv_c_compiler_gnu
15576
15577CC="$lt_save_CC"
15578
15579	else
15580	  tagname=""
15581	fi
15582	;;
15583
15584      GCJ)
15585	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15586
15587
15588
15589# Source file extension for Java test sources.
15590ac_ext=java
15591
15592# Object file extension for compiled Java test sources.
15593objext=o
15594objext_GCJ=$objext
15595
15596# Code to be used in simple compile tests
15597lt_simple_compile_test_code="class foo {}\n"
15598
15599# Code to be used in simple link tests
15600lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15601
15602# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15603
15604# If no C compiler was specified, use CC.
15605LTCC=${LTCC-"$CC"}
15606
15607# Allow CC to be a program name with arguments.
15608compiler=$CC
15609
15610
15611# Allow CC to be a program name with arguments.
15612lt_save_CC="$CC"
15613CC=${GCJ-"gcj"}
15614compiler=$CC
15615compiler_GCJ=$CC
15616
15617# GCJ did not exist at the time GCC didn't implicitly link libc in.
15618archive_cmds_need_lc_GCJ=no
15619
15620
15621lt_prog_compiler_no_builtin_flag_GCJ=
15622
15623if test "$GCC" = yes; then
15624  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15625
15626
15627echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15628echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15629if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15630  echo $ECHO_N "(cached) $ECHO_C" >&6
15631else
15632  lt_cv_prog_compiler_rtti_exceptions=no
15633  ac_outfile=conftest.$ac_objext
15634   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15635   lt_compiler_flag="-fno-rtti -fno-exceptions"
15636   # Insert the option either (1) after the last *FLAGS variable, or
15637   # (2) before a word containing "conftest.", or (3) at the end.
15638   # Note that $ac_compile itself does not contain backslashes and begins
15639   # with a dollar sign (not a hyphen), so the echo should work correctly.
15640   # The option is referenced via a variable to avoid confusing sed.
15641   lt_compile=`echo "$ac_compile" | $SED \
15642   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15643   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15644   -e 's:$: $lt_compiler_flag:'`
15645   (eval echo "\"\$as_me:15645: $lt_compile\"" >&5)
15646   (eval "$lt_compile" 2>conftest.err)
15647   ac_status=$?
15648   cat conftest.err >&5
15649   echo "$as_me:15649: \$? = $ac_status" >&5
15650   if (exit $ac_status) && test -s "$ac_outfile"; then
15651     # The compiler can only warn and ignore the option if not recognized
15652     # So say no if there are warnings
15653     if test ! -s conftest.err; then
15654       lt_cv_prog_compiler_rtti_exceptions=yes
15655     fi
15656   fi
15657   $rm conftest*
15658
15659fi
15660echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15661echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15662
15663if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15664    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15665else
15666    :
15667fi
15668
15669fi
15670
15671lt_prog_compiler_wl_GCJ=
15672lt_prog_compiler_pic_GCJ=
15673lt_prog_compiler_static_GCJ=
15674
15675echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15676echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15677
15678  if test "$GCC" = yes; then
15679    lt_prog_compiler_wl_GCJ='-Wl,'
15680    lt_prog_compiler_static_GCJ='-static'
15681
15682    case $host_os in
15683      aix*)
15684      # All AIX code is PIC.
15685      if test "$host_cpu" = ia64; then
15686	# AIX 5 now supports IA64 processor
15687	lt_prog_compiler_static_GCJ='-Bstatic'
15688      fi
15689      ;;
15690
15691    amigaos*)
15692      # FIXME: we need at least 68020 code to build shared libraries, but
15693      # adding the `-m68020' flag to GCC prevents building anything better,
15694      # like `-m68040'.
15695      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15696      ;;
15697
15698    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15699      # PIC is the default for these OSes.
15700      ;;
15701
15702    mingw* | pw32* | os2*)
15703      # This hack is so that the source file can tell whether it is being
15704      # built for inclusion in a dll (and should export symbols for example).
15705      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15706      ;;
15707
15708    darwin* | rhapsody*)
15709      # PIC is the default on this platform
15710      # Common symbols not allowed in MH_DYLIB files
15711      lt_prog_compiler_pic_GCJ='-fno-common'
15712      ;;
15713
15714    msdosdjgpp*)
15715      # Just because we use GCC doesn't mean we suddenly get shared libraries
15716      # on systems that don't support them.
15717      lt_prog_compiler_can_build_shared_GCJ=no
15718      enable_shared=no
15719      ;;
15720
15721    sysv4*MP*)
15722      if test -d /usr/nec; then
15723	lt_prog_compiler_pic_GCJ=-Kconform_pic
15724      fi
15725      ;;
15726
15727    hpux*)
15728      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15729      # not for PA HP-UX.
15730      case "$host_cpu" in
15731      hppa*64*|ia64*)
15732	# +Z the default
15733	;;
15734      *)
15735	lt_prog_compiler_pic_GCJ='-fPIC'
15736	;;
15737      esac
15738      ;;
15739
15740    *)
15741      lt_prog_compiler_pic_GCJ='-fPIC'
15742      ;;
15743    esac
15744  else
15745    # PORTME Check for flag to pass linker flags through the system compiler.
15746    case $host_os in
15747    aix*)
15748      lt_prog_compiler_wl_GCJ='-Wl,'
15749      if test "$host_cpu" = ia64; then
15750	# AIX 5 now supports IA64 processor
15751	lt_prog_compiler_static_GCJ='-Bstatic'
15752      else
15753	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15754      fi
15755      ;;
15756      darwin*)
15757        # PIC is the default on this platform
15758        # Common symbols not allowed in MH_DYLIB files
15759       case "$cc_basename" in
15760         xlc*)
15761         lt_prog_compiler_pic_GCJ='-qnocommon'
15762         lt_prog_compiler_wl_GCJ='-Wl,'
15763         ;;
15764       esac
15765       ;;
15766
15767    mingw* | pw32* | os2*)
15768      # This hack is so that the source file can tell whether it is being
15769      # built for inclusion in a dll (and should export symbols for example).
15770      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15771      ;;
15772
15773    hpux9* | hpux10* | hpux11*)
15774      lt_prog_compiler_wl_GCJ='-Wl,'
15775      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15776      # not for PA HP-UX.
15777      case "$host_cpu" in
15778      hppa*64*|ia64*)
15779	# +Z the default
15780	;;
15781      *)
15782	lt_prog_compiler_pic_GCJ='+Z'
15783	;;
15784      esac
15785      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15786      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15787      ;;
15788
15789    irix5* | irix6* | nonstopux*)
15790      lt_prog_compiler_wl_GCJ='-Wl,'
15791      # PIC (with -KPIC) is the default.
15792      lt_prog_compiler_static_GCJ='-non_shared'
15793      ;;
15794
15795    newsos6)
15796      lt_prog_compiler_pic_GCJ='-KPIC'
15797      lt_prog_compiler_static_GCJ='-Bstatic'
15798      ;;
15799
15800    linux*)
15801      case $CC in
15802      icc* | ecc*)
15803	lt_prog_compiler_wl_GCJ='-Wl,'
15804	lt_prog_compiler_pic_GCJ='-KPIC'
15805	lt_prog_compiler_static_GCJ='-static'
15806        ;;
15807      ccc*)
15808        lt_prog_compiler_wl_GCJ='-Wl,'
15809        # All Alpha code is PIC.
15810        lt_prog_compiler_static_GCJ='-non_shared'
15811        ;;
15812      esac
15813      ;;
15814
15815    osf3* | osf4* | osf5*)
15816      lt_prog_compiler_wl_GCJ='-Wl,'
15817      # All OSF/1 code is PIC.
15818      lt_prog_compiler_static_GCJ='-non_shared'
15819      ;;
15820
15821    sco3.2v5*)
15822      lt_prog_compiler_pic_GCJ='-Kpic'
15823      lt_prog_compiler_static_GCJ='-dn'
15824      ;;
15825
15826    solaris*)
15827      lt_prog_compiler_wl_GCJ='-Wl,'
15828      lt_prog_compiler_pic_GCJ='-KPIC'
15829      lt_prog_compiler_static_GCJ='-Bstatic'
15830      ;;
15831
15832    sunos4*)
15833      lt_prog_compiler_wl_GCJ='-Qoption ld '
15834      lt_prog_compiler_pic_GCJ='-PIC'
15835      lt_prog_compiler_static_GCJ='-Bstatic'
15836      ;;
15837
15838    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15839      lt_prog_compiler_wl_GCJ='-Wl,'
15840      lt_prog_compiler_pic_GCJ='-KPIC'
15841      lt_prog_compiler_static_GCJ='-Bstatic'
15842      ;;
15843
15844    sysv4*MP*)
15845      if test -d /usr/nec ;then
15846	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15847	lt_prog_compiler_static_GCJ='-Bstatic'
15848      fi
15849      ;;
15850
15851    uts4*)
15852      lt_prog_compiler_pic_GCJ='-pic'
15853      lt_prog_compiler_static_GCJ='-Bstatic'
15854      ;;
15855
15856    *)
15857      lt_prog_compiler_can_build_shared_GCJ=no
15858      ;;
15859    esac
15860  fi
15861
15862echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15863echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15864
15865#
15866# Check to make sure the PIC flag actually works.
15867#
15868if test -n "$lt_prog_compiler_pic_GCJ"; then
15869
15870echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15871echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15872if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15873  echo $ECHO_N "(cached) $ECHO_C" >&6
15874else
15875  lt_prog_compiler_pic_works_GCJ=no
15876  ac_outfile=conftest.$ac_objext
15877   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15878   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15879   # Insert the option either (1) after the last *FLAGS variable, or
15880   # (2) before a word containing "conftest.", or (3) at the end.
15881   # Note that $ac_compile itself does not contain backslashes and begins
15882   # with a dollar sign (not a hyphen), so the echo should work correctly.
15883   # The option is referenced via a variable to avoid confusing sed.
15884   lt_compile=`echo "$ac_compile" | $SED \
15885   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15886   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15887   -e 's:$: $lt_compiler_flag:'`
15888   (eval echo "\"\$as_me:15888: $lt_compile\"" >&5)
15889   (eval "$lt_compile" 2>conftest.err)
15890   ac_status=$?
15891   cat conftest.err >&5
15892   echo "$as_me:15892: \$? = $ac_status" >&5
15893   if (exit $ac_status) && test -s "$ac_outfile"; then
15894     # The compiler can only warn and ignore the option if not recognized
15895     # So say no if there are warnings
15896     if test ! -s conftest.err; then
15897       lt_prog_compiler_pic_works_GCJ=yes
15898     fi
15899   fi
15900   $rm conftest*
15901
15902fi
15903echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15904echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15905
15906if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15907    case $lt_prog_compiler_pic_GCJ in
15908     "" | " "*) ;;
15909     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15910     esac
15911else
15912    lt_prog_compiler_pic_GCJ=
15913     lt_prog_compiler_can_build_shared_GCJ=no
15914fi
15915
15916fi
15917case "$host_os" in
15918  # For platforms which do not support PIC, -DPIC is meaningless:
15919  *djgpp*)
15920    lt_prog_compiler_pic_GCJ=
15921    ;;
15922  *)
15923    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15924    ;;
15925esac
15926
15927echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15928echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15929if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15930  echo $ECHO_N "(cached) $ECHO_C" >&6
15931else
15932  lt_cv_prog_compiler_c_o_GCJ=no
15933   $rm -r conftest 2>/dev/null
15934   mkdir conftest
15935   cd conftest
15936   mkdir out
15937   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15938
15939   lt_compiler_flag="-o out/conftest2.$ac_objext"
15940   # Insert the option either (1) after the last *FLAGS variable, or
15941   # (2) before a word containing "conftest.", or (3) at the end.
15942   # Note that $ac_compile itself does not contain backslashes and begins
15943   # with a dollar sign (not a hyphen), so the echo should work correctly.
15944   lt_compile=`echo "$ac_compile" | $SED \
15945   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15946   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15947   -e 's:$: $lt_compiler_flag:'`
15948   (eval echo "\"\$as_me:15948: $lt_compile\"" >&5)
15949   (eval "$lt_compile" 2>out/conftest.err)
15950   ac_status=$?
15951   cat out/conftest.err >&5
15952   echo "$as_me:15952: \$? = $ac_status" >&5
15953   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15954   then
15955     # The compiler can only warn and ignore the option if not recognized
15956     # So say no if there are warnings
15957     if test ! -s out/conftest.err; then
15958       lt_cv_prog_compiler_c_o_GCJ=yes
15959     fi
15960   fi
15961   chmod u+w .
15962   $rm conftest*
15963   # SGI C++ compiler will create directory out/ii_files/ for
15964   # template instantiation
15965   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15966   $rm out/* && rmdir out
15967   cd ..
15968   rmdir conftest
15969   $rm conftest*
15970
15971fi
15972echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15973echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15974
15975
15976hard_links="nottested"
15977if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15978  # do not overwrite the value of need_locks provided by the user
15979  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15980echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15981  hard_links=yes
15982  $rm conftest*
15983  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15984  touch conftest.a
15985  ln conftest.a conftest.b 2>&5 || hard_links=no
15986  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15987  echo "$as_me:$LINENO: result: $hard_links" >&5
15988echo "${ECHO_T}$hard_links" >&6
15989  if test "$hard_links" = no; then
15990    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15991echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15992    need_locks=warn
15993  fi
15994else
15995  need_locks=no
15996fi
15997
15998echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15999echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16000
16001  runpath_var=
16002  allow_undefined_flag_GCJ=
16003  enable_shared_with_static_runtimes_GCJ=no
16004  archive_cmds_GCJ=
16005  archive_expsym_cmds_GCJ=
16006  old_archive_From_new_cmds_GCJ=
16007  old_archive_from_expsyms_cmds_GCJ=
16008  export_dynamic_flag_spec_GCJ=
16009  whole_archive_flag_spec_GCJ=
16010  thread_safe_flag_spec_GCJ=
16011  hardcode_libdir_flag_spec_GCJ=
16012  hardcode_libdir_flag_spec_ld_GCJ=
16013  hardcode_libdir_separator_GCJ=
16014  hardcode_direct_GCJ=no
16015  hardcode_minus_L_GCJ=no
16016  hardcode_shlibpath_var_GCJ=unsupported
16017  link_all_deplibs_GCJ=unknown
16018  hardcode_automatic_GCJ=no
16019  module_cmds_GCJ=
16020  module_expsym_cmds_GCJ=
16021  always_export_symbols_GCJ=no
16022  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16023  # include_expsyms should be a list of space-separated symbols to be *always*
16024  # included in the symbol list
16025  include_expsyms_GCJ=
16026  # exclude_expsyms can be an extended regexp of symbols to exclude
16027  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16028  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16029  # as well as any symbol that contains `d'.
16030  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16031  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16032  # platforms (ab)use it in PIC code, but their linkers get confused if
16033  # the symbol is explicitly referenced.  Since portable code cannot
16034  # rely on this symbol name, it's probably fine to never include it in
16035  # preloaded symbol tables.
16036  extract_expsyms_cmds=
16037
16038  case $host_os in
16039  cygwin* | mingw* | pw32*)
16040    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16041    # When not using gcc, we currently assume that we are using
16042    # Microsoft Visual C++.
16043    if test "$GCC" != yes; then
16044      with_gnu_ld=no
16045    fi
16046    ;;
16047  openbsd*)
16048    with_gnu_ld=no
16049    ;;
16050  esac
16051
16052  ld_shlibs_GCJ=yes
16053  if test "$with_gnu_ld" = yes; then
16054    # If archive_cmds runs LD, not CC, wlarc should be empty
16055    wlarc='${wl}'
16056
16057    # See if GNU ld supports shared libraries.
16058    case $host_os in
16059    aix3* | aix4* | aix5*)
16060      # On AIX/PPC, the GNU linker is very broken
16061      if test "$host_cpu" != ia64; then
16062	ld_shlibs_GCJ=no
16063	cat <<EOF 1>&2
16064
16065*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16066*** to be unable to reliably create shared libraries on AIX.
16067*** Therefore, libtool is disabling shared libraries support.  If you
16068*** really care for shared libraries, you may want to modify your PATH
16069*** so that a non-GNU linker is found, and then restart.
16070
16071EOF
16072      fi
16073      ;;
16074
16075    amigaos*)
16076      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)'
16077      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16078      hardcode_minus_L_GCJ=yes
16079
16080      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16081      # that the semantics of dynamic libraries on AmigaOS, at least up
16082      # to version 4, is to share data among multiple programs linked
16083      # with the same dynamic library.  Since this doesn't match the
16084      # behavior of shared libraries on other platforms, we can't use
16085      # them.
16086      ld_shlibs_GCJ=no
16087      ;;
16088
16089    beos*)
16090      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16091	allow_undefined_flag_GCJ=unsupported
16092	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16093	# support --undefined.  This deserves some investigation.  FIXME
16094	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16095      else
16096	ld_shlibs_GCJ=no
16097      fi
16098      ;;
16099
16100    cygwin* | mingw* | pw32*)
16101      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16102      # as there is no search path for DLLs.
16103      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16104      allow_undefined_flag_GCJ=unsupported
16105      always_export_symbols_GCJ=no
16106      enable_shared_with_static_runtimes_GCJ=yes
16107      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16108
16109      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16110        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16111	# If the export-symbols file already is a .def file (1st line
16112	# is EXPORTS), use it as is; otherwise, prepend...
16113	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16114	  cp $export_symbols $output_objdir/$soname.def;
16115	else
16116	  echo EXPORTS > $output_objdir/$soname.def;
16117	  cat $export_symbols >> $output_objdir/$soname.def;
16118	fi~
16119	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16120      else
16121	ld_shlibs=no
16122      fi
16123      ;;
16124
16125    netbsd*)
16126      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16127	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16128	wlarc=
16129      else
16130	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16131	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16132      fi
16133      ;;
16134
16135    solaris* | sysv5*)
16136      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16137	ld_shlibs_GCJ=no
16138	cat <<EOF 1>&2
16139
16140*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16141*** create shared libraries on Solaris systems.  Therefore, libtool
16142*** is disabling shared libraries support.  We urge you to upgrade GNU
16143*** binutils to release 2.9.1 or newer.  Another option is to modify
16144*** your PATH or compiler configuration so that the native linker is
16145*** used, and then restart.
16146
16147EOF
16148      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16149	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16150	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16151      else
16152	ld_shlibs_GCJ=no
16153      fi
16154      ;;
16155
16156    sunos4*)
16157      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16158      wlarc=
16159      hardcode_direct_GCJ=yes
16160      hardcode_shlibpath_var_GCJ=no
16161      ;;
16162
16163  linux*)
16164    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16165        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16166	archive_cmds_GCJ="$tmp_archive_cmds"
16167      supports_anon_versioning=no
16168      case `$LD -v 2>/dev/null` in
16169        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16170        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16171        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16172        *\ 2.11.*) ;; # other 2.11 versions
16173        *) supports_anon_versioning=yes ;;
16174      esac
16175      if test $supports_anon_versioning = yes; then
16176        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16177cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16178$echo "local: *; };" >> $output_objdir/$libname.ver~
16179        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16180      else
16181        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16182      fi
16183    else
16184      ld_shlibs_GCJ=no
16185    fi
16186    ;;
16187
16188    *)
16189      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16190	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16191	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16192      else
16193	ld_shlibs_GCJ=no
16194      fi
16195      ;;
16196    esac
16197
16198    if test "$ld_shlibs_GCJ" = yes; then
16199      runpath_var=LD_RUN_PATH
16200      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16201      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16202      # ancient GNU ld didn't support --whole-archive et. al.
16203      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16204 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16205      else
16206  	whole_archive_flag_spec_GCJ=
16207      fi
16208    fi
16209  else
16210    # PORTME fill in a description of your system's linker (not GNU ld)
16211    case $host_os in
16212    aix3*)
16213      allow_undefined_flag_GCJ=unsupported
16214      always_export_symbols_GCJ=yes
16215      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'
16216      # Note: this linker hardcodes the directories in LIBPATH if there
16217      # are no directories specified by -L.
16218      hardcode_minus_L_GCJ=yes
16219      if test "$GCC" = yes && test -z "$link_static_flag"; then
16220	# Neither direct hardcoding nor static linking is supported with a
16221	# broken collect2.
16222	hardcode_direct_GCJ=unsupported
16223      fi
16224      ;;
16225
16226    aix4* | aix5*)
16227      if test "$host_cpu" = ia64; then
16228	# On IA64, the linker does run time linking by default, so we don't
16229	# have to do anything special.
16230	aix_use_runtimelinking=no
16231	exp_sym_flag='-Bexport'
16232	no_entry_flag=""
16233      else
16234	# If we're using GNU nm, then we don't want the "-C" option.
16235	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16236	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16237	  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'
16238	else
16239	  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'
16240	fi
16241	aix_use_runtimelinking=no
16242
16243	# Test if we are trying to use run time linking or normal
16244	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16245	# need to do runtime linking.
16246	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16247	  for ld_flag in $LDFLAGS; do
16248  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16249  	    aix_use_runtimelinking=yes
16250  	    break
16251  	  fi
16252	  done
16253	esac
16254
16255	exp_sym_flag='-bexport'
16256	no_entry_flag='-bnoentry'
16257      fi
16258
16259      # When large executables or shared objects are built, AIX ld can
16260      # have problems creating the table of contents.  If linking a library
16261      # or program results in "error TOC overflow" add -mminimal-toc to
16262      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16263      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16264
16265      archive_cmds_GCJ=''
16266      hardcode_direct_GCJ=yes
16267      hardcode_libdir_separator_GCJ=':'
16268      link_all_deplibs_GCJ=yes
16269
16270      if test "$GCC" = yes; then
16271	case $host_os in aix4.012|aix4.012.*)
16272	# We only want to do this on AIX 4.2 and lower, the check
16273	# below for broken collect2 doesn't work under 4.3+
16274	  collect2name=`${CC} -print-prog-name=collect2`
16275	  if test -f "$collect2name" && \
16276  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16277	  then
16278  	  # We have reworked collect2
16279  	  hardcode_direct_GCJ=yes
16280	  else
16281  	  # We have old collect2
16282  	  hardcode_direct_GCJ=unsupported
16283  	  # It fails to find uninstalled libraries when the uninstalled
16284  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16285  	  # to unsupported forces relinking
16286  	  hardcode_minus_L_GCJ=yes
16287  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16288  	  hardcode_libdir_separator_GCJ=
16289	  fi
16290	esac
16291	shared_flag='-shared'
16292      else
16293	# not using gcc
16294	if test "$host_cpu" = ia64; then
16295  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16296  	# chokes on -Wl,-G. The following line is correct:
16297	  shared_flag='-G'
16298	else
16299  	if test "$aix_use_runtimelinking" = yes; then
16300	    shared_flag='${wl}-G'
16301	  else
16302	    shared_flag='${wl}-bM:SRE'
16303  	fi
16304	fi
16305      fi
16306
16307      # It seems that -bexpall does not export symbols beginning with
16308      # underscore (_), so it is better to generate a list of symbols to export.
16309      always_export_symbols_GCJ=yes
16310      if test "$aix_use_runtimelinking" = yes; then
16311	# Warning - without using the other runtime loading flags (-brtl),
16312	# -berok will link without error, but may produce a broken library.
16313	allow_undefined_flag_GCJ='-berok'
16314       # Determine the default libpath from the value encoded in an empty executable.
16315       cat >conftest.$ac_ext <<_ACEOF
16316/* confdefs.h.  */
16317_ACEOF
16318cat confdefs.h >>conftest.$ac_ext
16319cat >>conftest.$ac_ext <<_ACEOF
16320/* end confdefs.h.  */
16321
16322int
16323main ()
16324{
16325
16326  ;
16327  return 0;
16328}
16329_ACEOF
16330rm -f conftest.$ac_objext conftest$ac_exeext
16331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16332  (eval $ac_link) 2>conftest.er1
16333  ac_status=$?
16334  grep -v '^ *+' conftest.er1 >conftest.err
16335  rm -f conftest.er1
16336  cat conftest.err >&5
16337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338  (exit $ac_status); } &&
16339	 { ac_try='test -z "$ac_c_werror_flag"
16340			 || test ! -s conftest.err'
16341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342  (eval $ac_try) 2>&5
16343  ac_status=$?
16344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345  (exit $ac_status); }; } &&
16346	 { ac_try='test -s conftest$ac_exeext'
16347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348  (eval $ac_try) 2>&5
16349  ac_status=$?
16350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351  (exit $ac_status); }; }; then
16352
16353aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16354}'`
16355# Check for a 64-bit object if we didn't find anything.
16356if 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; }
16357}'`; fi
16358else
16359  echo "$as_me: failed program was:" >&5
16360sed 's/^/| /' conftest.$ac_ext >&5
16361
16362fi
16363rm -f conftest.err conftest.$ac_objext \
16364      conftest$ac_exeext conftest.$ac_ext
16365if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16366
16367       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16368	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16369       else
16370	if test "$host_cpu" = ia64; then
16371	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16372	  allow_undefined_flag_GCJ="-z nodefs"
16373	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16374	else
16375	 # Determine the default libpath from the value encoded in an empty executable.
16376	 cat >conftest.$ac_ext <<_ACEOF
16377/* confdefs.h.  */
16378_ACEOF
16379cat confdefs.h >>conftest.$ac_ext
16380cat >>conftest.$ac_ext <<_ACEOF
16381/* end confdefs.h.  */
16382
16383int
16384main ()
16385{
16386
16387  ;
16388  return 0;
16389}
16390_ACEOF
16391rm -f conftest.$ac_objext conftest$ac_exeext
16392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16393  (eval $ac_link) 2>conftest.er1
16394  ac_status=$?
16395  grep -v '^ *+' conftest.er1 >conftest.err
16396  rm -f conftest.er1
16397  cat conftest.err >&5
16398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399  (exit $ac_status); } &&
16400	 { ac_try='test -z "$ac_c_werror_flag"
16401			 || test ! -s conftest.err'
16402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403  (eval $ac_try) 2>&5
16404  ac_status=$?
16405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406  (exit $ac_status); }; } &&
16407	 { ac_try='test -s conftest$ac_exeext'
16408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409  (eval $ac_try) 2>&5
16410  ac_status=$?
16411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412  (exit $ac_status); }; }; then
16413
16414aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16415}'`
16416# Check for a 64-bit object if we didn't find anything.
16417if 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; }
16418}'`; fi
16419else
16420  echo "$as_me: failed program was:" >&5
16421sed 's/^/| /' conftest.$ac_ext >&5
16422
16423fi
16424rm -f conftest.err conftest.$ac_objext \
16425      conftest$ac_exeext conftest.$ac_ext
16426if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16427
16428	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16429	  # Warning - without using the other run time loading flags,
16430	  # -berok will link without error, but may produce a broken library.
16431	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16432	  allow_undefined_flag_GCJ=' ${wl}-berok'
16433	  # -bexpall does not export symbols beginning with underscore (_)
16434	  always_export_symbols_GCJ=yes
16435	  # Exported symbols can be pulled into shared objects from archives
16436	  whole_archive_flag_spec_GCJ=' '
16437	  archive_cmds_need_lc_GCJ=yes
16438	  # This is similar to how AIX traditionally builds it's shared libraries.
16439	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16440	fi
16441      fi
16442      ;;
16443
16444    amigaos*)
16445      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)'
16446      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16447      hardcode_minus_L_GCJ=yes
16448      # see comment about different semantics on the GNU ld section
16449      ld_shlibs_GCJ=no
16450      ;;
16451
16452    bsdi[45]*)
16453      export_dynamic_flag_spec_GCJ=-rdynamic
16454      ;;
16455
16456    cygwin* | mingw* | pw32*)
16457      # When not using gcc, we currently assume that we are using
16458      # Microsoft Visual C++.
16459      # hardcode_libdir_flag_spec is actually meaningless, as there is
16460      # no search path for DLLs.
16461      hardcode_libdir_flag_spec_GCJ=' '
16462      allow_undefined_flag_GCJ=unsupported
16463      # Tell ltmain to make .lib files, not .a files.
16464      libext=lib
16465      # Tell ltmain to make .dll files, not .so files.
16466      shrext_cmds=".dll"
16467      # FIXME: Setting linknames here is a bad hack.
16468      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16469      # The linker will automatically build a .lib file if we build a DLL.
16470      old_archive_From_new_cmds_GCJ='true'
16471      # FIXME: Should let the user specify the lib program.
16472      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16473      fix_srcfile_path='`cygpath -w "$srcfile"`'
16474      enable_shared_with_static_runtimes_GCJ=yes
16475      ;;
16476
16477    darwin* | rhapsody*)
16478      case "$host_os" in
16479        rhapsody* | darwin1.[012])
16480         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16481         ;;
16482       *) # Darwin 1.3 on
16483         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16484           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16485         else
16486           case ${MACOSX_DEPLOYMENT_TARGET} in
16487             10.[012])
16488               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16489               ;;
16490             10.*)
16491               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16492               ;;
16493           esac
16494         fi
16495         ;;
16496      esac
16497      archive_cmds_need_lc_GCJ=no
16498      hardcode_direct_GCJ=no
16499      hardcode_automatic_GCJ=yes
16500      hardcode_shlibpath_var_GCJ=unsupported
16501      whole_archive_flag_spec_GCJ=''
16502      link_all_deplibs_GCJ=yes
16503    if test "$GCC" = yes ; then
16504    	output_verbose_link_cmd='echo'
16505        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16506      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16507      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16508      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}'
16509      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}'
16510    else
16511      case "$cc_basename" in
16512        xlc*)
16513         output_verbose_link_cmd='echo'
16514         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16515         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16516          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16517         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}'
16518          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}'
16519          ;;
16520       *)
16521         ld_shlibs_GCJ=no
16522          ;;
16523      esac
16524    fi
16525      ;;
16526
16527    dgux*)
16528      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16529      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16530      hardcode_shlibpath_var_GCJ=no
16531      ;;
16532
16533    freebsd1*)
16534      ld_shlibs_GCJ=no
16535      ;;
16536
16537    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16538    # support.  Future versions do this automatically, but an explicit c++rt0.o
16539    # does not break anything, and helps significantly (at the cost of a little
16540    # extra space).
16541    freebsd2.2*)
16542      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16543      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16544      hardcode_direct_GCJ=yes
16545      hardcode_shlibpath_var_GCJ=no
16546      ;;
16547
16548    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16549    freebsd2*)
16550      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16551      hardcode_direct_GCJ=yes
16552      hardcode_minus_L_GCJ=yes
16553      hardcode_shlibpath_var_GCJ=no
16554      ;;
16555
16556    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16557    freebsd* | kfreebsd*-gnu)
16558      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16559      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16560      hardcode_direct_GCJ=yes
16561      hardcode_shlibpath_var_GCJ=no
16562      ;;
16563
16564    hpux9*)
16565      if test "$GCC" = yes; then
16566	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'
16567      else
16568	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'
16569      fi
16570      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16571      hardcode_libdir_separator_GCJ=:
16572      hardcode_direct_GCJ=yes
16573
16574      # hardcode_minus_L: Not really in the search PATH,
16575      # but as the default location of the library.
16576      hardcode_minus_L_GCJ=yes
16577      export_dynamic_flag_spec_GCJ='${wl}-E'
16578      ;;
16579
16580    hpux10* | hpux11*)
16581      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16582	case "$host_cpu" in
16583	hppa*64*|ia64*)
16584	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16585	  ;;
16586	*)
16587	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16588	  ;;
16589	esac
16590      else
16591	case "$host_cpu" in
16592	hppa*64*|ia64*)
16593	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16594	  ;;
16595	*)
16596	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16597	  ;;
16598	esac
16599      fi
16600      if test "$with_gnu_ld" = no; then
16601	case "$host_cpu" in
16602	hppa*64*)
16603	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16604	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16605	  hardcode_libdir_separator_GCJ=:
16606	  hardcode_direct_GCJ=no
16607	  hardcode_shlibpath_var_GCJ=no
16608	  ;;
16609	ia64*)
16610	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16611	  hardcode_direct_GCJ=no
16612	  hardcode_shlibpath_var_GCJ=no
16613
16614	  # hardcode_minus_L: Not really in the search PATH,
16615	  # but as the default location of the library.
16616	  hardcode_minus_L_GCJ=yes
16617	  ;;
16618	*)
16619	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16620	  hardcode_libdir_separator_GCJ=:
16621	  hardcode_direct_GCJ=yes
16622	  export_dynamic_flag_spec_GCJ='${wl}-E'
16623
16624	  # hardcode_minus_L: Not really in the search PATH,
16625	  # but as the default location of the library.
16626	  hardcode_minus_L_GCJ=yes
16627	  ;;
16628	esac
16629      fi
16630      ;;
16631
16632    irix5* | irix6* | nonstopux*)
16633      if test "$GCC" = yes; then
16634	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'
16635      else
16636	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'
16637	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16638      fi
16639      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16640      hardcode_libdir_separator_GCJ=:
16641      link_all_deplibs_GCJ=yes
16642      ;;
16643
16644    netbsd*)
16645      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16646	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16647      else
16648	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16649      fi
16650      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16651      hardcode_direct_GCJ=yes
16652      hardcode_shlibpath_var_GCJ=no
16653      ;;
16654
16655    newsos6)
16656      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16657      hardcode_direct_GCJ=yes
16658      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16659      hardcode_libdir_separator_GCJ=:
16660      hardcode_shlibpath_var_GCJ=no
16661      ;;
16662
16663    openbsd*)
16664      hardcode_direct_GCJ=yes
16665      hardcode_shlibpath_var_GCJ=no
16666      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16667	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16668	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16669	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16670	export_dynamic_flag_spec_GCJ='${wl}-E'
16671      else
16672       case $host_os in
16673	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16674	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16675	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16676	   ;;
16677	 *)
16678	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16679	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16680	   ;;
16681       esac
16682      fi
16683      ;;
16684
16685    os2*)
16686      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16687      hardcode_minus_L_GCJ=yes
16688      allow_undefined_flag_GCJ=unsupported
16689      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'
16690      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16691      ;;
16692
16693    osf3*)
16694      if test "$GCC" = yes; then
16695	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16696	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'
16697      else
16698	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16699	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'
16700      fi
16701      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16702      hardcode_libdir_separator_GCJ=:
16703      ;;
16704
16705    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16706      if test "$GCC" = yes; then
16707	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16708	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'
16709	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16710      else
16711	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16712	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'
16713	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~
16714	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16715
16716	# Both c and cxx compiler support -rpath directly
16717	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16718      fi
16719      hardcode_libdir_separator_GCJ=:
16720      ;;
16721
16722    sco3.2v5*)
16723      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16724      hardcode_shlibpath_var_GCJ=no
16725      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16726      runpath_var=LD_RUN_PATH
16727      hardcode_runpath_var=yes
16728      ;;
16729
16730    solaris*)
16731      no_undefined_flag_GCJ=' -z text'
16732      if test "$GCC" = yes; then
16733	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16734	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16735	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16736      else
16737	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16738	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16739  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16740      fi
16741      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16742      hardcode_shlibpath_var_GCJ=no
16743      case $host_os in
16744      solaris2.[0-5] | solaris2.[0-5].*) ;;
16745      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16746	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16747      esac
16748      link_all_deplibs_GCJ=yes
16749      ;;
16750
16751    sunos4*)
16752      if test "x$host_vendor" = xsequent; then
16753	# Use $CC to link under sequent, because it throws in some extra .o
16754	# files that make .init and .fini sections work.
16755	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16756      else
16757	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16758      fi
16759      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16760      hardcode_direct_GCJ=yes
16761      hardcode_minus_L_GCJ=yes
16762      hardcode_shlibpath_var_GCJ=no
16763      ;;
16764
16765    sysv4)
16766      case $host_vendor in
16767	sni)
16768	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16769	  hardcode_direct_GCJ=yes # is this really true???
16770	;;
16771	siemens)
16772	  ## LD is ld it makes a PLAMLIB
16773	  ## CC just makes a GrossModule.
16774	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16775	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16776	  hardcode_direct_GCJ=no
16777        ;;
16778	motorola)
16779	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16780	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16781	;;
16782      esac
16783      runpath_var='LD_RUN_PATH'
16784      hardcode_shlibpath_var_GCJ=no
16785      ;;
16786
16787    sysv4.3*)
16788      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16789      hardcode_shlibpath_var_GCJ=no
16790      export_dynamic_flag_spec_GCJ='-Bexport'
16791      ;;
16792
16793    sysv4*MP*)
16794      if test -d /usr/nec; then
16795	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16796	hardcode_shlibpath_var_GCJ=no
16797	runpath_var=LD_RUN_PATH
16798	hardcode_runpath_var=yes
16799	ld_shlibs_GCJ=yes
16800      fi
16801      ;;
16802
16803    sysv4.2uw2*)
16804      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16805      hardcode_direct_GCJ=yes
16806      hardcode_minus_L_GCJ=no
16807      hardcode_shlibpath_var_GCJ=no
16808      hardcode_runpath_var=yes
16809      runpath_var=LD_RUN_PATH
16810      ;;
16811
16812   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16813      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16814      if test "$GCC" = yes; then
16815	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16816      else
16817	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16818      fi
16819      runpath_var='LD_RUN_PATH'
16820      hardcode_shlibpath_var_GCJ=no
16821      ;;
16822
16823    sysv5*)
16824      no_undefined_flag_GCJ=' -z text'
16825      # $CC -shared without GNU ld will not create a library from C++
16826      # object files and a static libstdc++, better avoid it by now
16827      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16828      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16829  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16830      hardcode_libdir_flag_spec_GCJ=
16831      hardcode_shlibpath_var_GCJ=no
16832      runpath_var='LD_RUN_PATH'
16833      ;;
16834
16835    uts4*)
16836      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16837      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16838      hardcode_shlibpath_var_GCJ=no
16839      ;;
16840
16841    *)
16842      ld_shlibs_GCJ=no
16843      ;;
16844    esac
16845  fi
16846
16847echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16848echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16849test "$ld_shlibs_GCJ" = no && can_build_shared=no
16850
16851variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16852if test "$GCC" = yes; then
16853  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16854fi
16855
16856#
16857# Do we need to explicitly link libc?
16858#
16859case "x$archive_cmds_need_lc_GCJ" in
16860x|xyes)
16861  # Assume -lc should be added
16862  archive_cmds_need_lc_GCJ=yes
16863
16864  if test "$enable_shared" = yes && test "$GCC" = yes; then
16865    case $archive_cmds_GCJ in
16866    *'~'*)
16867      # FIXME: we may have to deal with multi-command sequences.
16868      ;;
16869    '$CC '*)
16870      # Test whether the compiler implicitly links with -lc since on some
16871      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16872      # to ld, don't add -lc before -lgcc.
16873      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16874echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16875      $rm conftest*
16876      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16877
16878      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16879  (eval $ac_compile) 2>&5
16880  ac_status=$?
16881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882  (exit $ac_status); } 2>conftest.err; then
16883        soname=conftest
16884        lib=conftest
16885        libobjs=conftest.$ac_objext
16886        deplibs=
16887        wl=$lt_prog_compiler_wl_GCJ
16888        compiler_flags=-v
16889        linker_flags=-v
16890        verstring=
16891        output_objdir=.
16892        libname=conftest
16893        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16894        allow_undefined_flag_GCJ=
16895        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16896  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16897  ac_status=$?
16898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899  (exit $ac_status); }
16900        then
16901	  archive_cmds_need_lc_GCJ=no
16902        else
16903	  archive_cmds_need_lc_GCJ=yes
16904        fi
16905        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16906      else
16907        cat conftest.err 1>&5
16908      fi
16909      $rm conftest*
16910      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16911echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16912      ;;
16913    esac
16914  fi
16915  ;;
16916esac
16917
16918echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16919echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16920library_names_spec=
16921libname_spec='lib$name'
16922soname_spec=
16923shrext_cmds=".so"
16924postinstall_cmds=
16925postuninstall_cmds=
16926finish_cmds=
16927finish_eval=
16928shlibpath_var=
16929shlibpath_overrides_runpath=unknown
16930version_type=none
16931dynamic_linker="$host_os ld.so"
16932sys_lib_dlsearch_path_spec="/lib /usr/lib"
16933if test "$GCC" = yes; then
16934  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16935  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16936    # if the path contains ";" then we assume it to be the separator
16937    # otherwise default to the standard path separator (i.e. ":") - it is
16938    # assumed that no part of a normal pathname contains ";" but that should
16939    # okay in the real world where ";" in dirpaths is itself problematic.
16940    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16941  else
16942    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16943  fi
16944else
16945  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16946fi
16947need_lib_prefix=unknown
16948hardcode_into_libs=no
16949
16950# when you set need_version to no, make sure it does not cause -set_version
16951# flags to be left without arguments
16952need_version=unknown
16953
16954case $host_os in
16955aix3*)
16956  version_type=linux
16957  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16958  shlibpath_var=LIBPATH
16959
16960  # AIX 3 has no versioning support, so we append a major version to the name.
16961  soname_spec='${libname}${release}${shared_ext}$major'
16962  ;;
16963
16964aix4* | aix5*)
16965  version_type=linux
16966  need_lib_prefix=no
16967  need_version=no
16968  hardcode_into_libs=yes
16969  if test "$host_cpu" = ia64; then
16970    # AIX 5 supports IA64
16971    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16972    shlibpath_var=LD_LIBRARY_PATH
16973  else
16974    # With GCC up to 2.95.x, collect2 would create an import file
16975    # for dependence libraries.  The import file would start with
16976    # the line `#! .'.  This would cause the generated library to
16977    # depend on `.', always an invalid library.  This was fixed in
16978    # development snapshots of GCC prior to 3.0.
16979    case $host_os in
16980      aix4 | aix4.[01] | aix4.[01].*)
16981      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16982	   echo ' yes '
16983	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16984	:
16985      else
16986	can_build_shared=no
16987      fi
16988      ;;
16989    esac
16990    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16991    # soname into executable. Probably we can add versioning support to
16992    # collect2, so additional links can be useful in future.
16993    if test "$aix_use_runtimelinking" = yes; then
16994      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16995      # instead of lib<name>.a to let people know that these are not
16996      # typical AIX shared libraries.
16997      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998    else
16999      # We preserve .a as extension for shared libraries through AIX4.2
17000      # and later when we are not doing run time linking.
17001      library_names_spec='${libname}${release}.a $libname.a'
17002      soname_spec='${libname}${release}${shared_ext}$major'
17003    fi
17004    shlibpath_var=LIBPATH
17005  fi
17006  ;;
17007
17008amigaos*)
17009  library_names_spec='$libname.ixlibrary $libname.a'
17010  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17011  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'
17012  ;;
17013
17014beos*)
17015  library_names_spec='${libname}${shared_ext}'
17016  dynamic_linker="$host_os ld.so"
17017  shlibpath_var=LIBRARY_PATH
17018  ;;
17019
17020bsdi[45]*)
17021  version_type=linux
17022  need_version=no
17023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17024  soname_spec='${libname}${release}${shared_ext}$major'
17025  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17026  shlibpath_var=LD_LIBRARY_PATH
17027  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17028  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17029  # the default ld.so.conf also contains /usr/contrib/lib and
17030  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17031  # libtool to hard-code these into programs
17032  ;;
17033
17034cygwin* | mingw* | pw32*)
17035  version_type=windows
17036  shrext_cmds=".dll"
17037  need_version=no
17038  need_lib_prefix=no
17039
17040  case $GCC,$host_os in
17041  yes,cygwin* | yes,mingw* | yes,pw32*)
17042    library_names_spec='$libname.dll.a'
17043    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17044    postinstall_cmds='base_file=`basename \${file}`~
17045      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17046      dldir=$destdir/`dirname \$dlpath`~
17047      test -d \$dldir || mkdir -p \$dldir~
17048      $install_prog $dir/$dlname \$dldir/$dlname'
17049    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17050      dlpath=$dir/\$dldll~
17051       $rm \$dlpath'
17052    shlibpath_overrides_runpath=yes
17053
17054    case $host_os in
17055    cygwin*)
17056      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17057      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17058      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17059      ;;
17060    mingw*)
17061      # MinGW DLLs use traditional 'lib' prefix
17062      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17063      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17064      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17065        # It is most probably a Windows format PATH printed by
17066        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17067        # path with ; separators, and with drive letters. We can handle the
17068        # drive letters (cygwin fileutils understands them), so leave them,
17069        # especially as we might pass files found there to a mingw objdump,
17070        # which wouldn't understand a cygwinified path. Ahh.
17071        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17072      else
17073        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17074      fi
17075      ;;
17076    pw32*)
17077      # pw32 DLLs use 'pw' prefix rather than 'lib'
17078      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17079      ;;
17080    esac
17081    ;;
17082
17083  *)
17084    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17085    ;;
17086  esac
17087  dynamic_linker='Win32 ld.exe'
17088  # FIXME: first we should search . and the directory the executable is in
17089  shlibpath_var=PATH
17090  ;;
17091
17092darwin* | rhapsody*)
17093  dynamic_linker="$host_os dyld"
17094  version_type=darwin
17095  need_lib_prefix=no
17096  need_version=no
17097  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17098  soname_spec='${libname}${release}${major}$shared_ext'
17099  shlibpath_overrides_runpath=yes
17100  shlibpath_var=DYLD_LIBRARY_PATH
17101  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17102  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17103  if test "$GCC" = yes; then
17104    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"`
17105  else
17106    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17107  fi
17108  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17109  ;;
17110
17111dgux*)
17112  version_type=linux
17113  need_lib_prefix=no
17114  need_version=no
17115  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17116  soname_spec='${libname}${release}${shared_ext}$major'
17117  shlibpath_var=LD_LIBRARY_PATH
17118  ;;
17119
17120freebsd1*)
17121  dynamic_linker=no
17122  ;;
17123
17124kfreebsd*-gnu)
17125  version_type=linux
17126  need_lib_prefix=no
17127  need_version=no
17128  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17129  soname_spec='${libname}${release}${shared_ext}$major'
17130  shlibpath_var=LD_LIBRARY_PATH
17131  shlibpath_overrides_runpath=no
17132  hardcode_into_libs=yes
17133  dynamic_linker='GNU ld.so'
17134  ;;
17135
17136freebsd*)
17137  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17138  version_type=freebsd-$objformat
17139  case $version_type in
17140    freebsd-elf*)
17141      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17142      need_version=no
17143      need_lib_prefix=no
17144      ;;
17145    freebsd-*)
17146      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17147      need_version=yes
17148      ;;
17149  esac
17150  shlibpath_var=LD_LIBRARY_PATH
17151  case $host_os in
17152  freebsd2*)
17153    shlibpath_overrides_runpath=yes
17154    ;;
17155  freebsd3.01* | freebsdelf3.01*)
17156    shlibpath_overrides_runpath=yes
17157    hardcode_into_libs=yes
17158    ;;
17159  *) # from 3.2 on
17160    shlibpath_overrides_runpath=no
17161    hardcode_into_libs=yes
17162    ;;
17163  esac
17164  ;;
17165
17166gnu*)
17167  version_type=linux
17168  need_lib_prefix=no
17169  need_version=no
17170  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17171  soname_spec='${libname}${release}${shared_ext}$major'
17172  shlibpath_var=LD_LIBRARY_PATH
17173  hardcode_into_libs=yes
17174  ;;
17175
17176hpux9* | hpux10* | hpux11*)
17177  # Give a soname corresponding to the major version so that dld.sl refuses to
17178  # link against other versions.
17179  version_type=sunos
17180  need_lib_prefix=no
17181  need_version=no
17182  case "$host_cpu" in
17183  ia64*)
17184    shrext_cmds='.so'
17185    hardcode_into_libs=yes
17186    dynamic_linker="$host_os dld.so"
17187    shlibpath_var=LD_LIBRARY_PATH
17188    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17189    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17190    soname_spec='${libname}${release}${shared_ext}$major'
17191    if test "X$HPUX_IA64_MODE" = X32; then
17192      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17193    else
17194      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17195    fi
17196    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17197    ;;
17198   hppa*64*)
17199     shrext_cmds='.sl'
17200     hardcode_into_libs=yes
17201     dynamic_linker="$host_os dld.sl"
17202     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17203     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17204     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17205     soname_spec='${libname}${release}${shared_ext}$major'
17206     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17207     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17208     ;;
17209   *)
17210    shrext_cmds='.sl'
17211    dynamic_linker="$host_os dld.sl"
17212    shlibpath_var=SHLIB_PATH
17213    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17214    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17215    soname_spec='${libname}${release}${shared_ext}$major'
17216    ;;
17217  esac
17218  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17219  postinstall_cmds='chmod 555 $lib'
17220  ;;
17221
17222irix5* | irix6* | nonstopux*)
17223  case $host_os in
17224    nonstopux*) version_type=nonstopux ;;
17225    *)
17226	if test "$lt_cv_prog_gnu_ld" = yes; then
17227		version_type=linux
17228	else
17229		version_type=irix
17230	fi ;;
17231  esac
17232  need_lib_prefix=no
17233  need_version=no
17234  soname_spec='${libname}${release}${shared_ext}$major'
17235  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17236  case $host_os in
17237  irix5* | nonstopux*)
17238    libsuff= shlibsuff=
17239    ;;
17240  *)
17241    case $LD in # libtool.m4 will add one of these switches to LD
17242    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17243      libsuff= shlibsuff= libmagic=32-bit;;
17244    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17245      libsuff=32 shlibsuff=N32 libmagic=N32;;
17246    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17247      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17248    *) libsuff= shlibsuff= libmagic=never-match;;
17249    esac
17250    ;;
17251  esac
17252  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17253  shlibpath_overrides_runpath=no
17254  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17255  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17256  hardcode_into_libs=yes
17257  ;;
17258
17259# No shared lib support for Linux oldld, aout, or coff.
17260linux*oldld* | linux*aout* | linux*coff*)
17261  dynamic_linker=no
17262  ;;
17263
17264# This must be Linux ELF.
17265linux*)
17266  version_type=linux
17267  need_lib_prefix=no
17268  need_version=no
17269  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270  soname_spec='${libname}${release}${shared_ext}$major'
17271  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17272  shlibpath_var=LD_LIBRARY_PATH
17273  shlibpath_overrides_runpath=no
17274  # This implies no fast_install, which is unacceptable.
17275  # Some rework will be needed to allow for fast_install
17276  # before this can be enabled.
17277  hardcode_into_libs=yes
17278
17279  # Append ld.so.conf contents to the search path
17280  if test -f /etc/ld.so.conf; then
17281    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17282    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17283  fi
17284
17285  # We used to test for /lib/ld.so.1 and disable shared libraries on
17286  # powerpc, because MkLinux only supported shared libraries with the
17287  # GNU dynamic linker.  Since this was broken with cross compilers,
17288  # most powerpc-linux boxes support dynamic linking these days and
17289  # people can always --disable-shared, the test was removed, and we
17290  # assume the GNU/Linux dynamic linker is in use.
17291  dynamic_linker='GNU/Linux ld.so'
17292  ;;
17293
17294knetbsd*-gnu)
17295  version_type=linux
17296  need_lib_prefix=no
17297  need_version=no
17298  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17299  soname_spec='${libname}${release}${shared_ext}$major'
17300  shlibpath_var=LD_LIBRARY_PATH
17301  shlibpath_overrides_runpath=no
17302  hardcode_into_libs=yes
17303  dynamic_linker='GNU ld.so'
17304  ;;
17305
17306netbsd*)
17307  version_type=sunos
17308  need_lib_prefix=no
17309  need_version=no
17310  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17311    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17312    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17313    dynamic_linker='NetBSD (a.out) ld.so'
17314  else
17315    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17316    soname_spec='${libname}${release}${shared_ext}$major'
17317    dynamic_linker='NetBSD ld.elf_so'
17318  fi
17319  shlibpath_var=LD_LIBRARY_PATH
17320  shlibpath_overrides_runpath=yes
17321  hardcode_into_libs=yes
17322  ;;
17323
17324newsos6)
17325  version_type=linux
17326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17327  shlibpath_var=LD_LIBRARY_PATH
17328  shlibpath_overrides_runpath=yes
17329  ;;
17330
17331nto-qnx*)
17332  version_type=linux
17333  need_lib_prefix=no
17334  need_version=no
17335  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17336  soname_spec='${libname}${release}${shared_ext}$major'
17337  shlibpath_var=LD_LIBRARY_PATH
17338  shlibpath_overrides_runpath=yes
17339  ;;
17340
17341openbsd*)
17342  version_type=sunos
17343  need_lib_prefix=no
17344  need_version=no
17345  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17346  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17347  shlibpath_var=LD_LIBRARY_PATH
17348  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17349    case $host_os in
17350      openbsd2.[89] | openbsd2.[89].*)
17351	shlibpath_overrides_runpath=no
17352	;;
17353      *)
17354	shlibpath_overrides_runpath=yes
17355	;;
17356      esac
17357  else
17358    shlibpath_overrides_runpath=yes
17359  fi
17360  ;;
17361
17362os2*)
17363  libname_spec='$name'
17364  shrext_cmds=".dll"
17365  need_lib_prefix=no
17366  library_names_spec='$libname${shared_ext} $libname.a'
17367  dynamic_linker='OS/2 ld.exe'
17368  shlibpath_var=LIBPATH
17369  ;;
17370
17371osf3* | osf4* | osf5*)
17372  version_type=osf
17373  need_lib_prefix=no
17374  need_version=no
17375  soname_spec='${libname}${release}${shared_ext}$major'
17376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17377  shlibpath_var=LD_LIBRARY_PATH
17378  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17379  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17380  ;;
17381
17382sco3.2v5*)
17383  version_type=osf
17384  soname_spec='${libname}${release}${shared_ext}$major'
17385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17386  shlibpath_var=LD_LIBRARY_PATH
17387  ;;
17388
17389solaris*)
17390  version_type=linux
17391  need_lib_prefix=no
17392  need_version=no
17393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17394  soname_spec='${libname}${release}${shared_ext}$major'
17395  shlibpath_var=LD_LIBRARY_PATH
17396  shlibpath_overrides_runpath=yes
17397  hardcode_into_libs=yes
17398  # ldd complains unless libraries are executable
17399  postinstall_cmds='chmod +x $lib'
17400  ;;
17401
17402sunos4*)
17403  version_type=sunos
17404  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17405  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17406  shlibpath_var=LD_LIBRARY_PATH
17407  shlibpath_overrides_runpath=yes
17408  if test "$with_gnu_ld" = yes; then
17409    need_lib_prefix=no
17410  fi
17411  need_version=yes
17412  ;;
17413
17414sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17415  version_type=linux
17416  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17417  soname_spec='${libname}${release}${shared_ext}$major'
17418  shlibpath_var=LD_LIBRARY_PATH
17419  case $host_vendor in
17420    sni)
17421      shlibpath_overrides_runpath=no
17422      need_lib_prefix=no
17423      export_dynamic_flag_spec='${wl}-Blargedynsym'
17424      runpath_var=LD_RUN_PATH
17425      ;;
17426    siemens)
17427      need_lib_prefix=no
17428      ;;
17429    motorola)
17430      need_lib_prefix=no
17431      need_version=no
17432      shlibpath_overrides_runpath=no
17433      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17434      ;;
17435  esac
17436  ;;
17437
17438sysv4*MP*)
17439  if test -d /usr/nec ;then
17440    version_type=linux
17441    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17442    soname_spec='$libname${shared_ext}.$major'
17443    shlibpath_var=LD_LIBRARY_PATH
17444  fi
17445  ;;
17446
17447uts4*)
17448  version_type=linux
17449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17450  soname_spec='${libname}${release}${shared_ext}$major'
17451  shlibpath_var=LD_LIBRARY_PATH
17452  ;;
17453
17454*)
17455  dynamic_linker=no
17456  ;;
17457esac
17458echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17459echo "${ECHO_T}$dynamic_linker" >&6
17460test "$dynamic_linker" = no && can_build_shared=no
17461
17462echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17463echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17464hardcode_action_GCJ=
17465if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17466   test -n "$runpath_var_GCJ" || \
17467   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17468
17469  # We can hardcode non-existant directories.
17470  if test "$hardcode_direct_GCJ" != no &&
17471     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17472     # have to relink, otherwise we might link with an installed library
17473     # when we should be linking with a yet-to-be-installed one
17474     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17475     test "$hardcode_minus_L_GCJ" != no; then
17476    # Linking always hardcodes the temporary library directory.
17477    hardcode_action_GCJ=relink
17478  else
17479    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17480    hardcode_action_GCJ=immediate
17481  fi
17482else
17483  # We cannot hardcode anything, or else we can only hardcode existing
17484  # directories.
17485  hardcode_action_GCJ=unsupported
17486fi
17487echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17488echo "${ECHO_T}$hardcode_action_GCJ" >&6
17489
17490if test "$hardcode_action_GCJ" = relink; then
17491  # Fast installation is not supported
17492  enable_fast_install=no
17493elif test "$shlibpath_overrides_runpath" = yes ||
17494     test "$enable_shared" = no; then
17495  # Fast installation is not necessary
17496  enable_fast_install=needless
17497fi
17498
17499striplib=
17500old_striplib=
17501echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17502echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17503if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17504  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17505  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17506  echo "$as_me:$LINENO: result: yes" >&5
17507echo "${ECHO_T}yes" >&6
17508else
17509# FIXME - insert some real tests, host_os isn't really good enough
17510  case $host_os in
17511   darwin*)
17512       if test -n "$STRIP" ; then
17513         striplib="$STRIP -x"
17514         echo "$as_me:$LINENO: result: yes" >&5
17515echo "${ECHO_T}yes" >&6
17516       else
17517  echo "$as_me:$LINENO: result: no" >&5
17518echo "${ECHO_T}no" >&6
17519fi
17520       ;;
17521   *)
17522  echo "$as_me:$LINENO: result: no" >&5
17523echo "${ECHO_T}no" >&6
17524    ;;
17525  esac
17526fi
17527
17528if test "x$enable_dlopen" != xyes; then
17529  enable_dlopen=unknown
17530  enable_dlopen_self=unknown
17531  enable_dlopen_self_static=unknown
17532else
17533  lt_cv_dlopen=no
17534  lt_cv_dlopen_libs=
17535
17536  case $host_os in
17537  beos*)
17538    lt_cv_dlopen="load_add_on"
17539    lt_cv_dlopen_libs=
17540    lt_cv_dlopen_self=yes
17541    ;;
17542
17543  mingw* | pw32*)
17544    lt_cv_dlopen="LoadLibrary"
17545    lt_cv_dlopen_libs=
17546   ;;
17547
17548  cygwin*)
17549    lt_cv_dlopen="dlopen"
17550    lt_cv_dlopen_libs=
17551   ;;
17552
17553  darwin*)
17554  # if libdl is installed we need to link against it
17555    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17556echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17557if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17558  echo $ECHO_N "(cached) $ECHO_C" >&6
17559else
17560  ac_check_lib_save_LIBS=$LIBS
17561LIBS="-ldl  $LIBS"
17562cat >conftest.$ac_ext <<_ACEOF
17563/* confdefs.h.  */
17564_ACEOF
17565cat confdefs.h >>conftest.$ac_ext
17566cat >>conftest.$ac_ext <<_ACEOF
17567/* end confdefs.h.  */
17568
17569/* Override any gcc2 internal prototype to avoid an error.  */
17570#ifdef __cplusplus
17571extern "C"
17572#endif
17573/* We use char because int might match the return type of a gcc2
17574   builtin and then its argument prototype would still apply.  */
17575char dlopen ();
17576int
17577main ()
17578{
17579dlopen ();
17580  ;
17581  return 0;
17582}
17583_ACEOF
17584rm -f conftest.$ac_objext conftest$ac_exeext
17585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17586  (eval $ac_link) 2>conftest.er1
17587  ac_status=$?
17588  grep -v '^ *+' conftest.er1 >conftest.err
17589  rm -f conftest.er1
17590  cat conftest.err >&5
17591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592  (exit $ac_status); } &&
17593	 { ac_try='test -z "$ac_c_werror_flag"
17594			 || test ! -s conftest.err'
17595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596  (eval $ac_try) 2>&5
17597  ac_status=$?
17598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599  (exit $ac_status); }; } &&
17600	 { ac_try='test -s conftest$ac_exeext'
17601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602  (eval $ac_try) 2>&5
17603  ac_status=$?
17604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605  (exit $ac_status); }; }; then
17606  ac_cv_lib_dl_dlopen=yes
17607else
17608  echo "$as_me: failed program was:" >&5
17609sed 's/^/| /' conftest.$ac_ext >&5
17610
17611ac_cv_lib_dl_dlopen=no
17612fi
17613rm -f conftest.err conftest.$ac_objext \
17614      conftest$ac_exeext conftest.$ac_ext
17615LIBS=$ac_check_lib_save_LIBS
17616fi
17617echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17618echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17619if test $ac_cv_lib_dl_dlopen = yes; then
17620  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17621else
17622
17623    lt_cv_dlopen="dyld"
17624    lt_cv_dlopen_libs=
17625    lt_cv_dlopen_self=yes
17626
17627fi
17628
17629   ;;
17630
17631  *)
17632    echo "$as_me:$LINENO: checking for shl_load" >&5
17633echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17634if test "${ac_cv_func_shl_load+set}" = set; then
17635  echo $ECHO_N "(cached) $ECHO_C" >&6
17636else
17637  cat >conftest.$ac_ext <<_ACEOF
17638/* confdefs.h.  */
17639_ACEOF
17640cat confdefs.h >>conftest.$ac_ext
17641cat >>conftest.$ac_ext <<_ACEOF
17642/* end confdefs.h.  */
17643/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17644   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17645#define shl_load innocuous_shl_load
17646
17647/* System header to define __stub macros and hopefully few prototypes,
17648    which can conflict with char shl_load (); below.
17649    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17650    <limits.h> exists even on freestanding compilers.  */
17651
17652#ifdef __STDC__
17653# include <limits.h>
17654#else
17655# include <assert.h>
17656#endif
17657
17658#undef shl_load
17659
17660/* Override any gcc2 internal prototype to avoid an error.  */
17661#ifdef __cplusplus
17662extern "C"
17663{
17664#endif
17665/* We use char because int might match the return type of a gcc2
17666   builtin and then its argument prototype would still apply.  */
17667char shl_load ();
17668/* The GNU C library defines this for functions which it implements
17669    to always fail with ENOSYS.  Some functions are actually named
17670    something starting with __ and the normal name is an alias.  */
17671#if defined (__stub_shl_load) || defined (__stub___shl_load)
17672choke me
17673#else
17674char (*f) () = shl_load;
17675#endif
17676#ifdef __cplusplus
17677}
17678#endif
17679
17680int
17681main ()
17682{
17683return f != shl_load;
17684  ;
17685  return 0;
17686}
17687_ACEOF
17688rm -f conftest.$ac_objext conftest$ac_exeext
17689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17690  (eval $ac_link) 2>conftest.er1
17691  ac_status=$?
17692  grep -v '^ *+' conftest.er1 >conftest.err
17693  rm -f conftest.er1
17694  cat conftest.err >&5
17695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696  (exit $ac_status); } &&
17697	 { ac_try='test -z "$ac_c_werror_flag"
17698			 || test ! -s conftest.err'
17699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700  (eval $ac_try) 2>&5
17701  ac_status=$?
17702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703  (exit $ac_status); }; } &&
17704	 { ac_try='test -s conftest$ac_exeext'
17705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706  (eval $ac_try) 2>&5
17707  ac_status=$?
17708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709  (exit $ac_status); }; }; then
17710  ac_cv_func_shl_load=yes
17711else
17712  echo "$as_me: failed program was:" >&5
17713sed 's/^/| /' conftest.$ac_ext >&5
17714
17715ac_cv_func_shl_load=no
17716fi
17717rm -f conftest.err conftest.$ac_objext \
17718      conftest$ac_exeext conftest.$ac_ext
17719fi
17720echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17721echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17722if test $ac_cv_func_shl_load = yes; then
17723  lt_cv_dlopen="shl_load"
17724else
17725  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17726echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17727if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17728  echo $ECHO_N "(cached) $ECHO_C" >&6
17729else
17730  ac_check_lib_save_LIBS=$LIBS
17731LIBS="-ldld  $LIBS"
17732cat >conftest.$ac_ext <<_ACEOF
17733/* confdefs.h.  */
17734_ACEOF
17735cat confdefs.h >>conftest.$ac_ext
17736cat >>conftest.$ac_ext <<_ACEOF
17737/* end confdefs.h.  */
17738
17739/* Override any gcc2 internal prototype to avoid an error.  */
17740#ifdef __cplusplus
17741extern "C"
17742#endif
17743/* We use char because int might match the return type of a gcc2
17744   builtin and then its argument prototype would still apply.  */
17745char shl_load ();
17746int
17747main ()
17748{
17749shl_load ();
17750  ;
17751  return 0;
17752}
17753_ACEOF
17754rm -f conftest.$ac_objext conftest$ac_exeext
17755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17756  (eval $ac_link) 2>conftest.er1
17757  ac_status=$?
17758  grep -v '^ *+' conftest.er1 >conftest.err
17759  rm -f conftest.er1
17760  cat conftest.err >&5
17761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762  (exit $ac_status); } &&
17763	 { ac_try='test -z "$ac_c_werror_flag"
17764			 || test ! -s conftest.err'
17765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766  (eval $ac_try) 2>&5
17767  ac_status=$?
17768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769  (exit $ac_status); }; } &&
17770	 { ac_try='test -s conftest$ac_exeext'
17771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772  (eval $ac_try) 2>&5
17773  ac_status=$?
17774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775  (exit $ac_status); }; }; then
17776  ac_cv_lib_dld_shl_load=yes
17777else
17778  echo "$as_me: failed program was:" >&5
17779sed 's/^/| /' conftest.$ac_ext >&5
17780
17781ac_cv_lib_dld_shl_load=no
17782fi
17783rm -f conftest.err conftest.$ac_objext \
17784      conftest$ac_exeext conftest.$ac_ext
17785LIBS=$ac_check_lib_save_LIBS
17786fi
17787echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17788echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17789if test $ac_cv_lib_dld_shl_load = yes; then
17790  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17791else
17792  echo "$as_me:$LINENO: checking for dlopen" >&5
17793echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17794if test "${ac_cv_func_dlopen+set}" = set; then
17795  echo $ECHO_N "(cached) $ECHO_C" >&6
17796else
17797  cat >conftest.$ac_ext <<_ACEOF
17798/* confdefs.h.  */
17799_ACEOF
17800cat confdefs.h >>conftest.$ac_ext
17801cat >>conftest.$ac_ext <<_ACEOF
17802/* end confdefs.h.  */
17803/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17804   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17805#define dlopen innocuous_dlopen
17806
17807/* System header to define __stub macros and hopefully few prototypes,
17808    which can conflict with char dlopen (); below.
17809    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17810    <limits.h> exists even on freestanding compilers.  */
17811
17812#ifdef __STDC__
17813# include <limits.h>
17814#else
17815# include <assert.h>
17816#endif
17817
17818#undef dlopen
17819
17820/* Override any gcc2 internal prototype to avoid an error.  */
17821#ifdef __cplusplus
17822extern "C"
17823{
17824#endif
17825/* We use char because int might match the return type of a gcc2
17826   builtin and then its argument prototype would still apply.  */
17827char dlopen ();
17828/* The GNU C library defines this for functions which it implements
17829    to always fail with ENOSYS.  Some functions are actually named
17830    something starting with __ and the normal name is an alias.  */
17831#if defined (__stub_dlopen) || defined (__stub___dlopen)
17832choke me
17833#else
17834char (*f) () = dlopen;
17835#endif
17836#ifdef __cplusplus
17837}
17838#endif
17839
17840int
17841main ()
17842{
17843return f != dlopen;
17844  ;
17845  return 0;
17846}
17847_ACEOF
17848rm -f conftest.$ac_objext conftest$ac_exeext
17849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17850  (eval $ac_link) 2>conftest.er1
17851  ac_status=$?
17852  grep -v '^ *+' conftest.er1 >conftest.err
17853  rm -f conftest.er1
17854  cat conftest.err >&5
17855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856  (exit $ac_status); } &&
17857	 { ac_try='test -z "$ac_c_werror_flag"
17858			 || test ! -s conftest.err'
17859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17860  (eval $ac_try) 2>&5
17861  ac_status=$?
17862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863  (exit $ac_status); }; } &&
17864	 { ac_try='test -s conftest$ac_exeext'
17865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866  (eval $ac_try) 2>&5
17867  ac_status=$?
17868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869  (exit $ac_status); }; }; then
17870  ac_cv_func_dlopen=yes
17871else
17872  echo "$as_me: failed program was:" >&5
17873sed 's/^/| /' conftest.$ac_ext >&5
17874
17875ac_cv_func_dlopen=no
17876fi
17877rm -f conftest.err conftest.$ac_objext \
17878      conftest$ac_exeext conftest.$ac_ext
17879fi
17880echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17881echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17882if test $ac_cv_func_dlopen = yes; then
17883  lt_cv_dlopen="dlopen"
17884else
17885  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17886echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17887if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17888  echo $ECHO_N "(cached) $ECHO_C" >&6
17889else
17890  ac_check_lib_save_LIBS=$LIBS
17891LIBS="-ldl  $LIBS"
17892cat >conftest.$ac_ext <<_ACEOF
17893/* confdefs.h.  */
17894_ACEOF
17895cat confdefs.h >>conftest.$ac_ext
17896cat >>conftest.$ac_ext <<_ACEOF
17897/* end confdefs.h.  */
17898
17899/* Override any gcc2 internal prototype to avoid an error.  */
17900#ifdef __cplusplus
17901extern "C"
17902#endif
17903/* We use char because int might match the return type of a gcc2
17904   builtin and then its argument prototype would still apply.  */
17905char dlopen ();
17906int
17907main ()
17908{
17909dlopen ();
17910  ;
17911  return 0;
17912}
17913_ACEOF
17914rm -f conftest.$ac_objext conftest$ac_exeext
17915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17916  (eval $ac_link) 2>conftest.er1
17917  ac_status=$?
17918  grep -v '^ *+' conftest.er1 >conftest.err
17919  rm -f conftest.er1
17920  cat conftest.err >&5
17921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922  (exit $ac_status); } &&
17923	 { ac_try='test -z "$ac_c_werror_flag"
17924			 || test ! -s conftest.err'
17925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926  (eval $ac_try) 2>&5
17927  ac_status=$?
17928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929  (exit $ac_status); }; } &&
17930	 { ac_try='test -s conftest$ac_exeext'
17931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17932  (eval $ac_try) 2>&5
17933  ac_status=$?
17934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935  (exit $ac_status); }; }; then
17936  ac_cv_lib_dl_dlopen=yes
17937else
17938  echo "$as_me: failed program was:" >&5
17939sed 's/^/| /' conftest.$ac_ext >&5
17940
17941ac_cv_lib_dl_dlopen=no
17942fi
17943rm -f conftest.err conftest.$ac_objext \
17944      conftest$ac_exeext conftest.$ac_ext
17945LIBS=$ac_check_lib_save_LIBS
17946fi
17947echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17948echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17949if test $ac_cv_lib_dl_dlopen = yes; then
17950  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17951else
17952  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17953echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17954if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17955  echo $ECHO_N "(cached) $ECHO_C" >&6
17956else
17957  ac_check_lib_save_LIBS=$LIBS
17958LIBS="-lsvld  $LIBS"
17959cat >conftest.$ac_ext <<_ACEOF
17960/* confdefs.h.  */
17961_ACEOF
17962cat confdefs.h >>conftest.$ac_ext
17963cat >>conftest.$ac_ext <<_ACEOF
17964/* end confdefs.h.  */
17965
17966/* Override any gcc2 internal prototype to avoid an error.  */
17967#ifdef __cplusplus
17968extern "C"
17969#endif
17970/* We use char because int might match the return type of a gcc2
17971   builtin and then its argument prototype would still apply.  */
17972char dlopen ();
17973int
17974main ()
17975{
17976dlopen ();
17977  ;
17978  return 0;
17979}
17980_ACEOF
17981rm -f conftest.$ac_objext conftest$ac_exeext
17982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17983  (eval $ac_link) 2>conftest.er1
17984  ac_status=$?
17985  grep -v '^ *+' conftest.er1 >conftest.err
17986  rm -f conftest.er1
17987  cat conftest.err >&5
17988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989  (exit $ac_status); } &&
17990	 { ac_try='test -z "$ac_c_werror_flag"
17991			 || test ! -s conftest.err'
17992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993  (eval $ac_try) 2>&5
17994  ac_status=$?
17995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996  (exit $ac_status); }; } &&
17997	 { ac_try='test -s conftest$ac_exeext'
17998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17999  (eval $ac_try) 2>&5
18000  ac_status=$?
18001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002  (exit $ac_status); }; }; then
18003  ac_cv_lib_svld_dlopen=yes
18004else
18005  echo "$as_me: failed program was:" >&5
18006sed 's/^/| /' conftest.$ac_ext >&5
18007
18008ac_cv_lib_svld_dlopen=no
18009fi
18010rm -f conftest.err conftest.$ac_objext \
18011      conftest$ac_exeext conftest.$ac_ext
18012LIBS=$ac_check_lib_save_LIBS
18013fi
18014echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18015echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18016if test $ac_cv_lib_svld_dlopen = yes; then
18017  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18018else
18019  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18020echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18021if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18022  echo $ECHO_N "(cached) $ECHO_C" >&6
18023else
18024  ac_check_lib_save_LIBS=$LIBS
18025LIBS="-ldld  $LIBS"
18026cat >conftest.$ac_ext <<_ACEOF
18027/* confdefs.h.  */
18028_ACEOF
18029cat confdefs.h >>conftest.$ac_ext
18030cat >>conftest.$ac_ext <<_ACEOF
18031/* end confdefs.h.  */
18032
18033/* Override any gcc2 internal prototype to avoid an error.  */
18034#ifdef __cplusplus
18035extern "C"
18036#endif
18037/* We use char because int might match the return type of a gcc2
18038   builtin and then its argument prototype would still apply.  */
18039char dld_link ();
18040int
18041main ()
18042{
18043dld_link ();
18044  ;
18045  return 0;
18046}
18047_ACEOF
18048rm -f conftest.$ac_objext conftest$ac_exeext
18049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18050  (eval $ac_link) 2>conftest.er1
18051  ac_status=$?
18052  grep -v '^ *+' conftest.er1 >conftest.err
18053  rm -f conftest.er1
18054  cat conftest.err >&5
18055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056  (exit $ac_status); } &&
18057	 { ac_try='test -z "$ac_c_werror_flag"
18058			 || test ! -s conftest.err'
18059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060  (eval $ac_try) 2>&5
18061  ac_status=$?
18062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063  (exit $ac_status); }; } &&
18064	 { ac_try='test -s conftest$ac_exeext'
18065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066  (eval $ac_try) 2>&5
18067  ac_status=$?
18068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069  (exit $ac_status); }; }; then
18070  ac_cv_lib_dld_dld_link=yes
18071else
18072  echo "$as_me: failed program was:" >&5
18073sed 's/^/| /' conftest.$ac_ext >&5
18074
18075ac_cv_lib_dld_dld_link=no
18076fi
18077rm -f conftest.err conftest.$ac_objext \
18078      conftest$ac_exeext conftest.$ac_ext
18079LIBS=$ac_check_lib_save_LIBS
18080fi
18081echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18082echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18083if test $ac_cv_lib_dld_dld_link = yes; then
18084  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18085fi
18086
18087
18088fi
18089
18090
18091fi
18092
18093
18094fi
18095
18096
18097fi
18098
18099
18100fi
18101
18102    ;;
18103  esac
18104
18105  if test "x$lt_cv_dlopen" != xno; then
18106    enable_dlopen=yes
18107  else
18108    enable_dlopen=no
18109  fi
18110
18111  case $lt_cv_dlopen in
18112  dlopen)
18113    save_CPPFLAGS="$CPPFLAGS"
18114    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18115
18116    save_LDFLAGS="$LDFLAGS"
18117    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18118
18119    save_LIBS="$LIBS"
18120    LIBS="$lt_cv_dlopen_libs $LIBS"
18121
18122    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18123echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18124if test "${lt_cv_dlopen_self+set}" = set; then
18125  echo $ECHO_N "(cached) $ECHO_C" >&6
18126else
18127  	  if test "$cross_compiling" = yes; then :
18128  lt_cv_dlopen_self=cross
18129else
18130  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18131  lt_status=$lt_dlunknown
18132  cat > conftest.$ac_ext <<EOF
18133#line 18133 "configure"
18134#include "confdefs.h"
18135
18136#if HAVE_DLFCN_H
18137#include <dlfcn.h>
18138#endif
18139
18140#include <stdio.h>
18141
18142#ifdef RTLD_GLOBAL
18143#  define LT_DLGLOBAL		RTLD_GLOBAL
18144#else
18145#  ifdef DL_GLOBAL
18146#    define LT_DLGLOBAL		DL_GLOBAL
18147#  else
18148#    define LT_DLGLOBAL		0
18149#  endif
18150#endif
18151
18152/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18153   find out it does not work in some platform. */
18154#ifndef LT_DLLAZY_OR_NOW
18155#  ifdef RTLD_LAZY
18156#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18157#  else
18158#    ifdef DL_LAZY
18159#      define LT_DLLAZY_OR_NOW		DL_LAZY
18160#    else
18161#      ifdef RTLD_NOW
18162#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18163#      else
18164#        ifdef DL_NOW
18165#          define LT_DLLAZY_OR_NOW	DL_NOW
18166#        else
18167#          define LT_DLLAZY_OR_NOW	0
18168#        endif
18169#      endif
18170#    endif
18171#  endif
18172#endif
18173
18174#ifdef __cplusplus
18175extern "C" void exit (int);
18176#endif
18177
18178void fnord() { int i=42;}
18179int main ()
18180{
18181  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18182  int status = $lt_dlunknown;
18183
18184  if (self)
18185    {
18186      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18187      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18188      /* dlclose (self); */
18189    }
18190
18191    exit (status);
18192}
18193EOF
18194  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18195  (eval $ac_link) 2>&5
18196  ac_status=$?
18197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18199    (./conftest; exit; ) 2>/dev/null
18200    lt_status=$?
18201    case x$lt_status in
18202      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18203      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18204      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18205    esac
18206  else :
18207    # compilation failed
18208    lt_cv_dlopen_self=no
18209  fi
18210fi
18211rm -fr conftest*
18212
18213
18214fi
18215echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18216echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18217
18218    if test "x$lt_cv_dlopen_self" = xyes; then
18219      LDFLAGS="$LDFLAGS $link_static_flag"
18220      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18221echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18222if test "${lt_cv_dlopen_self_static+set}" = set; then
18223  echo $ECHO_N "(cached) $ECHO_C" >&6
18224else
18225  	  if test "$cross_compiling" = yes; then :
18226  lt_cv_dlopen_self_static=cross
18227else
18228  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18229  lt_status=$lt_dlunknown
18230  cat > conftest.$ac_ext <<EOF
18231#line 18231 "configure"
18232#include "confdefs.h"
18233
18234#if HAVE_DLFCN_H
18235#include <dlfcn.h>
18236#endif
18237
18238#include <stdio.h>
18239
18240#ifdef RTLD_GLOBAL
18241#  define LT_DLGLOBAL		RTLD_GLOBAL
18242#else
18243#  ifdef DL_GLOBAL
18244#    define LT_DLGLOBAL		DL_GLOBAL
18245#  else
18246#    define LT_DLGLOBAL		0
18247#  endif
18248#endif
18249
18250/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18251   find out it does not work in some platform. */
18252#ifndef LT_DLLAZY_OR_NOW
18253#  ifdef RTLD_LAZY
18254#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18255#  else
18256#    ifdef DL_LAZY
18257#      define LT_DLLAZY_OR_NOW		DL_LAZY
18258#    else
18259#      ifdef RTLD_NOW
18260#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18261#      else
18262#        ifdef DL_NOW
18263#          define LT_DLLAZY_OR_NOW	DL_NOW
18264#        else
18265#          define LT_DLLAZY_OR_NOW	0
18266#        endif
18267#      endif
18268#    endif
18269#  endif
18270#endif
18271
18272#ifdef __cplusplus
18273extern "C" void exit (int);
18274#endif
18275
18276void fnord() { int i=42;}
18277int main ()
18278{
18279  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18280  int status = $lt_dlunknown;
18281
18282  if (self)
18283    {
18284      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18285      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18286      /* dlclose (self); */
18287    }
18288
18289    exit (status);
18290}
18291EOF
18292  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18293  (eval $ac_link) 2>&5
18294  ac_status=$?
18295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18297    (./conftest; exit; ) 2>/dev/null
18298    lt_status=$?
18299    case x$lt_status in
18300      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18301      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18302      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18303    esac
18304  else :
18305    # compilation failed
18306    lt_cv_dlopen_self_static=no
18307  fi
18308fi
18309rm -fr conftest*
18310
18311
18312fi
18313echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18314echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18315    fi
18316
18317    CPPFLAGS="$save_CPPFLAGS"
18318    LDFLAGS="$save_LDFLAGS"
18319    LIBS="$save_LIBS"
18320    ;;
18321  esac
18322
18323  case $lt_cv_dlopen_self in
18324  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18325  *) enable_dlopen_self=unknown ;;
18326  esac
18327
18328  case $lt_cv_dlopen_self_static in
18329  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18330  *) enable_dlopen_self_static=unknown ;;
18331  esac
18332fi
18333
18334
18335# The else clause should only fire when bootstrapping the
18336# libtool distribution, otherwise you forgot to ship ltmain.sh
18337# with your package, and you will get complaints that there are
18338# no rules to generate ltmain.sh.
18339if test -f "$ltmain"; then
18340  # See if we are running on zsh, and set the options which allow our commands through
18341  # without removal of \ escapes.
18342  if test -n "${ZSH_VERSION+set}" ; then
18343    setopt NO_GLOB_SUBST
18344  fi
18345  # Now quote all the things that may contain metacharacters while being
18346  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18347  # variables and quote the copies for generation of the libtool script.
18348  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18349    SED SHELL STRIP \
18350    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18351    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18352    deplibs_check_method reload_flag reload_cmds need_locks \
18353    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18354    lt_cv_sys_global_symbol_to_c_name_address \
18355    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18356    old_postinstall_cmds old_postuninstall_cmds \
18357    compiler_GCJ \
18358    CC_GCJ \
18359    LD_GCJ \
18360    lt_prog_compiler_wl_GCJ \
18361    lt_prog_compiler_pic_GCJ \
18362    lt_prog_compiler_static_GCJ \
18363    lt_prog_compiler_no_builtin_flag_GCJ \
18364    export_dynamic_flag_spec_GCJ \
18365    thread_safe_flag_spec_GCJ \
18366    whole_archive_flag_spec_GCJ \
18367    enable_shared_with_static_runtimes_GCJ \
18368    old_archive_cmds_GCJ \
18369    old_archive_from_new_cmds_GCJ \
18370    predep_objects_GCJ \
18371    postdep_objects_GCJ \
18372    predeps_GCJ \
18373    postdeps_GCJ \
18374    compiler_lib_search_path_GCJ \
18375    archive_cmds_GCJ \
18376    archive_expsym_cmds_GCJ \
18377    postinstall_cmds_GCJ \
18378    postuninstall_cmds_GCJ \
18379    old_archive_from_expsyms_cmds_GCJ \
18380    allow_undefined_flag_GCJ \
18381    no_undefined_flag_GCJ \
18382    export_symbols_cmds_GCJ \
18383    hardcode_libdir_flag_spec_GCJ \
18384    hardcode_libdir_flag_spec_ld_GCJ \
18385    hardcode_libdir_separator_GCJ \
18386    hardcode_automatic_GCJ \
18387    module_cmds_GCJ \
18388    module_expsym_cmds_GCJ \
18389    lt_cv_prog_compiler_c_o_GCJ \
18390    exclude_expsyms_GCJ \
18391    include_expsyms_GCJ; do
18392
18393    case $var in
18394    old_archive_cmds_GCJ | \
18395    old_archive_from_new_cmds_GCJ | \
18396    archive_cmds_GCJ | \
18397    archive_expsym_cmds_GCJ | \
18398    module_cmds_GCJ | \
18399    module_expsym_cmds_GCJ | \
18400    old_archive_from_expsyms_cmds_GCJ | \
18401    export_symbols_cmds_GCJ | \
18402    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18403    postinstall_cmds | postuninstall_cmds | \
18404    old_postinstall_cmds | old_postuninstall_cmds | \
18405    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18406      # Double-quote double-evaled strings.
18407      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18408      ;;
18409    *)
18410      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18411      ;;
18412    esac
18413  done
18414
18415  case $lt_echo in
18416  *'\$0 --fallback-echo"')
18417    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18418    ;;
18419  esac
18420
18421cfgfile="$ofile"
18422
18423  cat <<__EOF__ >> "$cfgfile"
18424# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18425
18426# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18427
18428# Shell to use when invoking shell scripts.
18429SHELL=$lt_SHELL
18430
18431# Whether or not to build shared libraries.
18432build_libtool_libs=$enable_shared
18433
18434# Whether or not to build static libraries.
18435build_old_libs=$enable_static
18436
18437# Whether or not to add -lc for building shared libraries.
18438build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18439
18440# Whether or not to disallow shared libs when runtime libs are static
18441allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18442
18443# Whether or not to optimize for fast installation.
18444fast_install=$enable_fast_install
18445
18446# The host system.
18447host_alias=$host_alias
18448host=$host
18449
18450# An echo program that does not interpret backslashes.
18451echo=$lt_echo
18452
18453# The archiver.
18454AR=$lt_AR
18455AR_FLAGS=$lt_AR_FLAGS
18456
18457# A C compiler.
18458LTCC=$lt_LTCC
18459
18460# A language-specific compiler.
18461CC=$lt_compiler_GCJ
18462
18463# Is the compiler the GNU C compiler?
18464with_gcc=$GCC_GCJ
18465
18466# An ERE matcher.
18467EGREP=$lt_EGREP
18468
18469# The linker used to build libraries.
18470LD=$lt_LD_GCJ
18471
18472# Whether we need hard or soft links.
18473LN_S=$lt_LN_S
18474
18475# A BSD-compatible nm program.
18476NM=$lt_NM
18477
18478# A symbol stripping program
18479STRIP=$lt_STRIP
18480
18481# Used to examine libraries when file_magic_cmd begins "file"
18482MAGIC_CMD=$MAGIC_CMD
18483
18484# Used on cygwin: DLL creation program.
18485DLLTOOL="$DLLTOOL"
18486
18487# Used on cygwin: object dumper.
18488OBJDUMP="$OBJDUMP"
18489
18490# Used on cygwin: assembler.
18491AS="$AS"
18492
18493# The name of the directory that contains temporary libtool files.
18494objdir=$objdir
18495
18496# How to create reloadable object files.
18497reload_flag=$lt_reload_flag
18498reload_cmds=$lt_reload_cmds
18499
18500# How to pass a linker flag through the compiler.
18501wl=$lt_lt_prog_compiler_wl_GCJ
18502
18503# Object file suffix (normally "o").
18504objext="$ac_objext"
18505
18506# Old archive suffix (normally "a").
18507libext="$libext"
18508
18509# Shared library suffix (normally ".so").
18510shrext_cmds='$shrext_cmds'
18511
18512# Executable file suffix (normally "").
18513exeext="$exeext"
18514
18515# Additional compiler flags for building library objects.
18516pic_flag=$lt_lt_prog_compiler_pic_GCJ
18517pic_mode=$pic_mode
18518
18519# What is the maximum length of a command?
18520max_cmd_len=$lt_cv_sys_max_cmd_len
18521
18522# Does compiler simultaneously support -c and -o options?
18523compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18524
18525# Must we lock files when doing compilation ?
18526need_locks=$lt_need_locks
18527
18528# Do we need the lib prefix for modules?
18529need_lib_prefix=$need_lib_prefix
18530
18531# Do we need a version for libraries?
18532need_version=$need_version
18533
18534# Whether dlopen is supported.
18535dlopen_support=$enable_dlopen
18536
18537# Whether dlopen of programs is supported.
18538dlopen_self=$enable_dlopen_self
18539
18540# Whether dlopen of statically linked programs is supported.
18541dlopen_self_static=$enable_dlopen_self_static
18542
18543# Compiler flag to prevent dynamic linking.
18544link_static_flag=$lt_lt_prog_compiler_static_GCJ
18545
18546# Compiler flag to turn off builtin functions.
18547no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18548
18549# Compiler flag to allow reflexive dlopens.
18550export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18551
18552# Compiler flag to generate shared objects directly from archives.
18553whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18554
18555# Compiler flag to generate thread-safe objects.
18556thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18557
18558# Library versioning type.
18559version_type=$version_type
18560
18561# Format of library name prefix.
18562libname_spec=$lt_libname_spec
18563
18564# List of archive names.  First name is the real one, the rest are links.
18565# The last name is the one that the linker finds with -lNAME.
18566library_names_spec=$lt_library_names_spec
18567
18568# The coded name of the library, if different from the real name.
18569soname_spec=$lt_soname_spec
18570
18571# Commands used to build and install an old-style archive.
18572RANLIB=$lt_RANLIB
18573old_archive_cmds=$lt_old_archive_cmds_GCJ
18574old_postinstall_cmds=$lt_old_postinstall_cmds
18575old_postuninstall_cmds=$lt_old_postuninstall_cmds
18576
18577# Create an old-style archive from a shared archive.
18578old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18579
18580# Create a temporary old-style archive to link instead of a shared archive.
18581old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18582
18583# Commands used to build and install a shared archive.
18584archive_cmds=$lt_archive_cmds_GCJ
18585archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18586postinstall_cmds=$lt_postinstall_cmds
18587postuninstall_cmds=$lt_postuninstall_cmds
18588
18589# Commands used to build a loadable module (assumed same as above if empty)
18590module_cmds=$lt_module_cmds_GCJ
18591module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18592
18593# Commands to strip libraries.
18594old_striplib=$lt_old_striplib
18595striplib=$lt_striplib
18596
18597# Dependencies to place before the objects being linked to create a
18598# shared library.
18599predep_objects=$lt_predep_objects_GCJ
18600
18601# Dependencies to place after the objects being linked to create a
18602# shared library.
18603postdep_objects=$lt_postdep_objects_GCJ
18604
18605# Dependencies to place before the objects being linked to create a
18606# shared library.
18607predeps=$lt_predeps_GCJ
18608
18609# Dependencies to place after the objects being linked to create a
18610# shared library.
18611postdeps=$lt_postdeps_GCJ
18612
18613# The library search path used internally by the compiler when linking
18614# a shared library.
18615compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18616
18617# Method to check whether dependent libraries are shared objects.
18618deplibs_check_method=$lt_deplibs_check_method
18619
18620# Command to use when deplibs_check_method == file_magic.
18621file_magic_cmd=$lt_file_magic_cmd
18622
18623# Flag that allows shared libraries with undefined symbols to be built.
18624allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18625
18626# Flag that forces no undefined symbols.
18627no_undefined_flag=$lt_no_undefined_flag_GCJ
18628
18629# Commands used to finish a libtool library installation in a directory.
18630finish_cmds=$lt_finish_cmds
18631
18632# Same as above, but a single script fragment to be evaled but not shown.
18633finish_eval=$lt_finish_eval
18634
18635# Take the output of nm and produce a listing of raw symbols and C names.
18636global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18637
18638# Transform the output of nm in a proper C declaration
18639global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18640
18641# Transform the output of nm in a C name address pair
18642global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18643
18644# This is the shared library runtime path variable.
18645runpath_var=$runpath_var
18646
18647# This is the shared library path variable.
18648shlibpath_var=$shlibpath_var
18649
18650# Is shlibpath searched before the hard-coded library search path?
18651shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18652
18653# How to hardcode a shared library path into an executable.
18654hardcode_action=$hardcode_action_GCJ
18655
18656# Whether we should hardcode library paths into libraries.
18657hardcode_into_libs=$hardcode_into_libs
18658
18659# Flag to hardcode \$libdir into a binary during linking.
18660# This must work even if \$libdir does not exist.
18661hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18662
18663# If ld is used when linking, flag to hardcode \$libdir into
18664# a binary during linking. This must work even if \$libdir does
18665# not exist.
18666hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18667
18668# Whether we need a single -rpath flag with a separated argument.
18669hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18670
18671# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18672# resulting binary.
18673hardcode_direct=$hardcode_direct_GCJ
18674
18675# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18676# resulting binary.
18677hardcode_minus_L=$hardcode_minus_L_GCJ
18678
18679# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18680# the resulting binary.
18681hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18682
18683# Set to yes if building a shared library automatically hardcodes DIR into the library
18684# and all subsequent libraries and executables linked against it.
18685hardcode_automatic=$hardcode_automatic_GCJ
18686
18687# Variables whose values should be saved in libtool wrapper scripts and
18688# restored at relink time.
18689variables_saved_for_relink="$variables_saved_for_relink"
18690
18691# Whether libtool must link a program against all its dependency libraries.
18692link_all_deplibs=$link_all_deplibs_GCJ
18693
18694# Compile-time system search path for libraries
18695sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18696
18697# Run-time system search path for libraries
18698sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18699
18700# Fix the shell variable \$srcfile for the compiler.
18701fix_srcfile_path="$fix_srcfile_path_GCJ"
18702
18703# Set to yes if exported symbols are required.
18704always_export_symbols=$always_export_symbols_GCJ
18705
18706# The commands to list exported symbols.
18707export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18708
18709# The commands to extract the exported symbol list from a shared archive.
18710extract_expsyms_cmds=$lt_extract_expsyms_cmds
18711
18712# Symbols that should not be listed in the preloaded symbols.
18713exclude_expsyms=$lt_exclude_expsyms_GCJ
18714
18715# Symbols that must always be exported.
18716include_expsyms=$lt_include_expsyms_GCJ
18717
18718# ### END LIBTOOL TAG CONFIG: $tagname
18719
18720__EOF__
18721
18722
18723else
18724  # If there is no Makefile yet, we rely on a make rule to execute
18725  # `config.status --recheck' to rerun these tests and create the
18726  # libtool script then.
18727  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18728  if test -f "$ltmain_in"; then
18729    test -f Makefile && make "$ltmain"
18730  fi
18731fi
18732
18733
18734ac_ext=c
18735ac_cpp='$CPP $CPPFLAGS'
18736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18738ac_compiler_gnu=$ac_cv_c_compiler_gnu
18739
18740CC="$lt_save_CC"
18741
18742	else
18743	  tagname=""
18744	fi
18745	;;
18746
18747      RC)
18748
18749
18750
18751# Source file extension for RC test sources.
18752ac_ext=rc
18753
18754# Object file extension for compiled RC test sources.
18755objext=o
18756objext_RC=$objext
18757
18758# Code to be used in simple compile tests
18759lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18760
18761# Code to be used in simple link tests
18762lt_simple_link_test_code="$lt_simple_compile_test_code"
18763
18764# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18765
18766# If no C compiler was specified, use CC.
18767LTCC=${LTCC-"$CC"}
18768
18769# Allow CC to be a program name with arguments.
18770compiler=$CC
18771
18772
18773# Allow CC to be a program name with arguments.
18774lt_save_CC="$CC"
18775CC=${RC-"windres"}
18776compiler=$CC
18777compiler_RC=$CC
18778lt_cv_prog_compiler_c_o_RC=yes
18779
18780# The else clause should only fire when bootstrapping the
18781# libtool distribution, otherwise you forgot to ship ltmain.sh
18782# with your package, and you will get complaints that there are
18783# no rules to generate ltmain.sh.
18784if test -f "$ltmain"; then
18785  # See if we are running on zsh, and set the options which allow our commands through
18786  # without removal of \ escapes.
18787  if test -n "${ZSH_VERSION+set}" ; then
18788    setopt NO_GLOB_SUBST
18789  fi
18790  # Now quote all the things that may contain metacharacters while being
18791  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18792  # variables and quote the copies for generation of the libtool script.
18793  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18794    SED SHELL STRIP \
18795    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18796    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18797    deplibs_check_method reload_flag reload_cmds need_locks \
18798    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18799    lt_cv_sys_global_symbol_to_c_name_address \
18800    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18801    old_postinstall_cmds old_postuninstall_cmds \
18802    compiler_RC \
18803    CC_RC \
18804    LD_RC \
18805    lt_prog_compiler_wl_RC \
18806    lt_prog_compiler_pic_RC \
18807    lt_prog_compiler_static_RC \
18808    lt_prog_compiler_no_builtin_flag_RC \
18809    export_dynamic_flag_spec_RC \
18810    thread_safe_flag_spec_RC \
18811    whole_archive_flag_spec_RC \
18812    enable_shared_with_static_runtimes_RC \
18813    old_archive_cmds_RC \
18814    old_archive_from_new_cmds_RC \
18815    predep_objects_RC \
18816    postdep_objects_RC \
18817    predeps_RC \
18818    postdeps_RC \
18819    compiler_lib_search_path_RC \
18820    archive_cmds_RC \
18821    archive_expsym_cmds_RC \
18822    postinstall_cmds_RC \
18823    postuninstall_cmds_RC \
18824    old_archive_from_expsyms_cmds_RC \
18825    allow_undefined_flag_RC \
18826    no_undefined_flag_RC \
18827    export_symbols_cmds_RC \
18828    hardcode_libdir_flag_spec_RC \
18829    hardcode_libdir_flag_spec_ld_RC \
18830    hardcode_libdir_separator_RC \
18831    hardcode_automatic_RC \
18832    module_cmds_RC \
18833    module_expsym_cmds_RC \
18834    lt_cv_prog_compiler_c_o_RC \
18835    exclude_expsyms_RC \
18836    include_expsyms_RC; do
18837
18838    case $var in
18839    old_archive_cmds_RC | \
18840    old_archive_from_new_cmds_RC | \
18841    archive_cmds_RC | \
18842    archive_expsym_cmds_RC | \
18843    module_cmds_RC | \
18844    module_expsym_cmds_RC | \
18845    old_archive_from_expsyms_cmds_RC | \
18846    export_symbols_cmds_RC | \
18847    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18848    postinstall_cmds | postuninstall_cmds | \
18849    old_postinstall_cmds | old_postuninstall_cmds | \
18850    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18851      # Double-quote double-evaled strings.
18852      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18853      ;;
18854    *)
18855      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18856      ;;
18857    esac
18858  done
18859
18860  case $lt_echo in
18861  *'\$0 --fallback-echo"')
18862    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18863    ;;
18864  esac
18865
18866cfgfile="$ofile"
18867
18868  cat <<__EOF__ >> "$cfgfile"
18869# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18870
18871# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18872
18873# Shell to use when invoking shell scripts.
18874SHELL=$lt_SHELL
18875
18876# Whether or not to build shared libraries.
18877build_libtool_libs=$enable_shared
18878
18879# Whether or not to build static libraries.
18880build_old_libs=$enable_static
18881
18882# Whether or not to add -lc for building shared libraries.
18883build_libtool_need_lc=$archive_cmds_need_lc_RC
18884
18885# Whether or not to disallow shared libs when runtime libs are static
18886allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18887
18888# Whether or not to optimize for fast installation.
18889fast_install=$enable_fast_install
18890
18891# The host system.
18892host_alias=$host_alias
18893host=$host
18894
18895# An echo program that does not interpret backslashes.
18896echo=$lt_echo
18897
18898# The archiver.
18899AR=$lt_AR
18900AR_FLAGS=$lt_AR_FLAGS
18901
18902# A C compiler.
18903LTCC=$lt_LTCC
18904
18905# A language-specific compiler.
18906CC=$lt_compiler_RC
18907
18908# Is the compiler the GNU C compiler?
18909with_gcc=$GCC_RC
18910
18911# An ERE matcher.
18912EGREP=$lt_EGREP
18913
18914# The linker used to build libraries.
18915LD=$lt_LD_RC
18916
18917# Whether we need hard or soft links.
18918LN_S=$lt_LN_S
18919
18920# A BSD-compatible nm program.
18921NM=$lt_NM
18922
18923# A symbol stripping program
18924STRIP=$lt_STRIP
18925
18926# Used to examine libraries when file_magic_cmd begins "file"
18927MAGIC_CMD=$MAGIC_CMD
18928
18929# Used on cygwin: DLL creation program.
18930DLLTOOL="$DLLTOOL"
18931
18932# Used on cygwin: object dumper.
18933OBJDUMP="$OBJDUMP"
18934
18935# Used on cygwin: assembler.
18936AS="$AS"
18937
18938# The name of the directory that contains temporary libtool files.
18939objdir=$objdir
18940
18941# How to create reloadable object files.
18942reload_flag=$lt_reload_flag
18943reload_cmds=$lt_reload_cmds
18944
18945# How to pass a linker flag through the compiler.
18946wl=$lt_lt_prog_compiler_wl_RC
18947
18948# Object file suffix (normally "o").
18949objext="$ac_objext"
18950
18951# Old archive suffix (normally "a").
18952libext="$libext"
18953
18954# Shared library suffix (normally ".so").
18955shrext_cmds='$shrext_cmds'
18956
18957# Executable file suffix (normally "").
18958exeext="$exeext"
18959
18960# Additional compiler flags for building library objects.
18961pic_flag=$lt_lt_prog_compiler_pic_RC
18962pic_mode=$pic_mode
18963
18964# What is the maximum length of a command?
18965max_cmd_len=$lt_cv_sys_max_cmd_len
18966
18967# Does compiler simultaneously support -c and -o options?
18968compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18969
18970# Must we lock files when doing compilation ?
18971need_locks=$lt_need_locks
18972
18973# Do we need the lib prefix for modules?
18974need_lib_prefix=$need_lib_prefix
18975
18976# Do we need a version for libraries?
18977need_version=$need_version
18978
18979# Whether dlopen is supported.
18980dlopen_support=$enable_dlopen
18981
18982# Whether dlopen of programs is supported.
18983dlopen_self=$enable_dlopen_self
18984
18985# Whether dlopen of statically linked programs is supported.
18986dlopen_self_static=$enable_dlopen_self_static
18987
18988# Compiler flag to prevent dynamic linking.
18989link_static_flag=$lt_lt_prog_compiler_static_RC
18990
18991# Compiler flag to turn off builtin functions.
18992no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18993
18994# Compiler flag to allow reflexive dlopens.
18995export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18996
18997# Compiler flag to generate shared objects directly from archives.
18998whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18999
19000# Compiler flag to generate thread-safe objects.
19001thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19002
19003# Library versioning type.
19004version_type=$version_type
19005
19006# Format of library name prefix.
19007libname_spec=$lt_libname_spec
19008
19009# List of archive names.  First name is the real one, the rest are links.
19010# The last name is the one that the linker finds with -lNAME.
19011library_names_spec=$lt_library_names_spec
19012
19013# The coded name of the library, if different from the real name.
19014soname_spec=$lt_soname_spec
19015
19016# Commands used to build and install an old-style archive.
19017RANLIB=$lt_RANLIB
19018old_archive_cmds=$lt_old_archive_cmds_RC
19019old_postinstall_cmds=$lt_old_postinstall_cmds
19020old_postuninstall_cmds=$lt_old_postuninstall_cmds
19021
19022# Create an old-style archive from a shared archive.
19023old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19024
19025# Create a temporary old-style archive to link instead of a shared archive.
19026old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19027
19028# Commands used to build and install a shared archive.
19029archive_cmds=$lt_archive_cmds_RC
19030archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19031postinstall_cmds=$lt_postinstall_cmds
19032postuninstall_cmds=$lt_postuninstall_cmds
19033
19034# Commands used to build a loadable module (assumed same as above if empty)
19035module_cmds=$lt_module_cmds_RC
19036module_expsym_cmds=$lt_module_expsym_cmds_RC
19037
19038# Commands to strip libraries.
19039old_striplib=$lt_old_striplib
19040striplib=$lt_striplib
19041
19042# Dependencies to place before the objects being linked to create a
19043# shared library.
19044predep_objects=$lt_predep_objects_RC
19045
19046# Dependencies to place after the objects being linked to create a
19047# shared library.
19048postdep_objects=$lt_postdep_objects_RC
19049
19050# Dependencies to place before the objects being linked to create a
19051# shared library.
19052predeps=$lt_predeps_RC
19053
19054# Dependencies to place after the objects being linked to create a
19055# shared library.
19056postdeps=$lt_postdeps_RC
19057
19058# The library search path used internally by the compiler when linking
19059# a shared library.
19060compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19061
19062# Method to check whether dependent libraries are shared objects.
19063deplibs_check_method=$lt_deplibs_check_method
19064
19065# Command to use when deplibs_check_method == file_magic.
19066file_magic_cmd=$lt_file_magic_cmd
19067
19068# Flag that allows shared libraries with undefined symbols to be built.
19069allow_undefined_flag=$lt_allow_undefined_flag_RC
19070
19071# Flag that forces no undefined symbols.
19072no_undefined_flag=$lt_no_undefined_flag_RC
19073
19074# Commands used to finish a libtool library installation in a directory.
19075finish_cmds=$lt_finish_cmds
19076
19077# Same as above, but a single script fragment to be evaled but not shown.
19078finish_eval=$lt_finish_eval
19079
19080# Take the output of nm and produce a listing of raw symbols and C names.
19081global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19082
19083# Transform the output of nm in a proper C declaration
19084global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19085
19086# Transform the output of nm in a C name address pair
19087global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19088
19089# This is the shared library runtime path variable.
19090runpath_var=$runpath_var
19091
19092# This is the shared library path variable.
19093shlibpath_var=$shlibpath_var
19094
19095# Is shlibpath searched before the hard-coded library search path?
19096shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19097
19098# How to hardcode a shared library path into an executable.
19099hardcode_action=$hardcode_action_RC
19100
19101# Whether we should hardcode library paths into libraries.
19102hardcode_into_libs=$hardcode_into_libs
19103
19104# Flag to hardcode \$libdir into a binary during linking.
19105# This must work even if \$libdir does not exist.
19106hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19107
19108# If ld is used when linking, flag to hardcode \$libdir into
19109# a binary during linking. This must work even if \$libdir does
19110# not exist.
19111hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19112
19113# Whether we need a single -rpath flag with a separated argument.
19114hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19115
19116# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19117# resulting binary.
19118hardcode_direct=$hardcode_direct_RC
19119
19120# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19121# resulting binary.
19122hardcode_minus_L=$hardcode_minus_L_RC
19123
19124# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19125# the resulting binary.
19126hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19127
19128# Set to yes if building a shared library automatically hardcodes DIR into the library
19129# and all subsequent libraries and executables linked against it.
19130hardcode_automatic=$hardcode_automatic_RC
19131
19132# Variables whose values should be saved in libtool wrapper scripts and
19133# restored at relink time.
19134variables_saved_for_relink="$variables_saved_for_relink"
19135
19136# Whether libtool must link a program against all its dependency libraries.
19137link_all_deplibs=$link_all_deplibs_RC
19138
19139# Compile-time system search path for libraries
19140sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19141
19142# Run-time system search path for libraries
19143sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19144
19145# Fix the shell variable \$srcfile for the compiler.
19146fix_srcfile_path="$fix_srcfile_path_RC"
19147
19148# Set to yes if exported symbols are required.
19149always_export_symbols=$always_export_symbols_RC
19150
19151# The commands to list exported symbols.
19152export_symbols_cmds=$lt_export_symbols_cmds_RC
19153
19154# The commands to extract the exported symbol list from a shared archive.
19155extract_expsyms_cmds=$lt_extract_expsyms_cmds
19156
19157# Symbols that should not be listed in the preloaded symbols.
19158exclude_expsyms=$lt_exclude_expsyms_RC
19159
19160# Symbols that must always be exported.
19161include_expsyms=$lt_include_expsyms_RC
19162
19163# ### END LIBTOOL TAG CONFIG: $tagname
19164
19165__EOF__
19166
19167
19168else
19169  # If there is no Makefile yet, we rely on a make rule to execute
19170  # `config.status --recheck' to rerun these tests and create the
19171  # libtool script then.
19172  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19173  if test -f "$ltmain_in"; then
19174    test -f Makefile && make "$ltmain"
19175  fi
19176fi
19177
19178
19179ac_ext=c
19180ac_cpp='$CPP $CPPFLAGS'
19181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19183ac_compiler_gnu=$ac_cv_c_compiler_gnu
19184
19185CC="$lt_save_CC"
19186
19187	;;
19188
19189      *)
19190	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19191echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19192   { (exit 1); exit 1; }; }
19193	;;
19194      esac
19195
19196      # Append the new tag name to the list of available tags.
19197      if test -n "$tagname" ; then
19198      available_tags="$available_tags $tagname"
19199    fi
19200    fi
19201  done
19202  IFS="$lt_save_ifs"
19203
19204  # Now substitute the updated list of available tags.
19205  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19206    mv "${ofile}T" "$ofile"
19207    chmod +x "$ofile"
19208  else
19209    rm -f "${ofile}T"
19210    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19211echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19212   { (exit 1); exit 1; }; }
19213  fi
19214fi
19215
19216
19217
19218# This can be used to rebuild libtool when needed
19219LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19220
19221# Always use our own libtool.
19222LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19223
19224# Prevent multiple expansion
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246### i18n
19247
19248GETTEXT_PACKAGE=libtranslate
19249
19250cat >>confdefs.h <<_ACEOF
19251#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
19252_ACEOF
19253
19254
19255
19256ALL_LINGUAS="fr"
19257
19258
19259for ac_header in locale.h
19260do
19261as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19262if eval "test \"\${$as_ac_Header+set}\" = set"; then
19263  echo "$as_me:$LINENO: checking for $ac_header" >&5
19264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19265if eval "test \"\${$as_ac_Header+set}\" = set"; then
19266  echo $ECHO_N "(cached) $ECHO_C" >&6
19267fi
19268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19270else
19271  # Is the header compilable?
19272echo "$as_me:$LINENO: checking $ac_header usability" >&5
19273echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19274cat >conftest.$ac_ext <<_ACEOF
19275/* confdefs.h.  */
19276_ACEOF
19277cat confdefs.h >>conftest.$ac_ext
19278cat >>conftest.$ac_ext <<_ACEOF
19279/* end confdefs.h.  */
19280$ac_includes_default
19281#include <$ac_header>
19282_ACEOF
19283rm -f conftest.$ac_objext
19284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19285  (eval $ac_compile) 2>conftest.er1
19286  ac_status=$?
19287  grep -v '^ *+' conftest.er1 >conftest.err
19288  rm -f conftest.er1
19289  cat conftest.err >&5
19290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291  (exit $ac_status); } &&
19292	 { ac_try='test -z "$ac_c_werror_flag"
19293			 || test ! -s conftest.err'
19294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19295  (eval $ac_try) 2>&5
19296  ac_status=$?
19297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298  (exit $ac_status); }; } &&
19299	 { ac_try='test -s conftest.$ac_objext'
19300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301  (eval $ac_try) 2>&5
19302  ac_status=$?
19303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304  (exit $ac_status); }; }; then
19305  ac_header_compiler=yes
19306else
19307  echo "$as_me: failed program was:" >&5
19308sed 's/^/| /' conftest.$ac_ext >&5
19309
19310ac_header_compiler=no
19311fi
19312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19313echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19314echo "${ECHO_T}$ac_header_compiler" >&6
19315
19316# Is the header present?
19317echo "$as_me:$LINENO: checking $ac_header presence" >&5
19318echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19319cat >conftest.$ac_ext <<_ACEOF
19320/* confdefs.h.  */
19321_ACEOF
19322cat confdefs.h >>conftest.$ac_ext
19323cat >>conftest.$ac_ext <<_ACEOF
19324/* end confdefs.h.  */
19325#include <$ac_header>
19326_ACEOF
19327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19328  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19329  ac_status=$?
19330  grep -v '^ *+' conftest.er1 >conftest.err
19331  rm -f conftest.er1
19332  cat conftest.err >&5
19333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334  (exit $ac_status); } >/dev/null; then
19335  if test -s conftest.err; then
19336    ac_cpp_err=$ac_c_preproc_warn_flag
19337    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19338  else
19339    ac_cpp_err=
19340  fi
19341else
19342  ac_cpp_err=yes
19343fi
19344if test -z "$ac_cpp_err"; then
19345  ac_header_preproc=yes
19346else
19347  echo "$as_me: failed program was:" >&5
19348sed 's/^/| /' conftest.$ac_ext >&5
19349
19350  ac_header_preproc=no
19351fi
19352rm -f conftest.err conftest.$ac_ext
19353echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19354echo "${ECHO_T}$ac_header_preproc" >&6
19355
19356# So?  What about this header?
19357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19358  yes:no: )
19359    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19360echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19361    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19362echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19363    ac_header_preproc=yes
19364    ;;
19365  no:yes:* )
19366    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19367echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19368    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19369echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19370    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19371echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19372    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19373echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19374    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19375echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19376    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19377echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19378    (
19379      cat <<\_ASBOX
19380## ---------------------------------- ##
19381## Report this to jylefort@brutele.be ##
19382## ---------------------------------- ##
19383_ASBOX
19384    ) |
19385      sed "s/^/$as_me: WARNING:     /" >&2
19386    ;;
19387esac
19388echo "$as_me:$LINENO: checking for $ac_header" >&5
19389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19390if eval "test \"\${$as_ac_Header+set}\" = set"; then
19391  echo $ECHO_N "(cached) $ECHO_C" >&6
19392else
19393  eval "$as_ac_Header=\$ac_header_preproc"
19394fi
19395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19396echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19397
19398fi
19399if test `eval echo '${'$as_ac_Header'}'` = yes; then
19400  cat >>confdefs.h <<_ACEOF
19401#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19402_ACEOF
19403
19404fi
19405
19406done
19407
19408    if test $ac_cv_header_locale_h = yes; then
19409    echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
19410echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
19411if test "${am_cv_val_LC_MESSAGES+set}" = set; then
19412  echo $ECHO_N "(cached) $ECHO_C" >&6
19413else
19414  cat >conftest.$ac_ext <<_ACEOF
19415/* confdefs.h.  */
19416_ACEOF
19417cat confdefs.h >>conftest.$ac_ext
19418cat >>conftest.$ac_ext <<_ACEOF
19419/* end confdefs.h.  */
19420#include <locale.h>
19421int
19422main ()
19423{
19424return LC_MESSAGES
19425  ;
19426  return 0;
19427}
19428_ACEOF
19429rm -f conftest.$ac_objext conftest$ac_exeext
19430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19431  (eval $ac_link) 2>conftest.er1
19432  ac_status=$?
19433  grep -v '^ *+' conftest.er1 >conftest.err
19434  rm -f conftest.er1
19435  cat conftest.err >&5
19436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437  (exit $ac_status); } &&
19438	 { ac_try='test -z "$ac_c_werror_flag"
19439			 || test ! -s conftest.err'
19440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441  (eval $ac_try) 2>&5
19442  ac_status=$?
19443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444  (exit $ac_status); }; } &&
19445	 { ac_try='test -s conftest$ac_exeext'
19446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19447  (eval $ac_try) 2>&5
19448  ac_status=$?
19449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450  (exit $ac_status); }; }; then
19451  am_cv_val_LC_MESSAGES=yes
19452else
19453  echo "$as_me: failed program was:" >&5
19454sed 's/^/| /' conftest.$ac_ext >&5
19455
19456am_cv_val_LC_MESSAGES=no
19457fi
19458rm -f conftest.err conftest.$ac_objext \
19459      conftest$ac_exeext conftest.$ac_ext
19460fi
19461echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
19462echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
19463    if test $am_cv_val_LC_MESSAGES = yes; then
19464
19465cat >>confdefs.h <<\_ACEOF
19466#define HAVE_LC_MESSAGES 1
19467_ACEOF
19468
19469    fi
19470  fi
19471     USE_NLS=yes
19472
19473
19474    gt_cv_have_gettext=no
19475
19476    CATOBJEXT=NONE
19477    XGETTEXT=:
19478    INTLLIBS=
19479
19480    if test "${ac_cv_header_libintl_h+set}" = set; then
19481  echo "$as_me:$LINENO: checking for libintl.h" >&5
19482echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
19483if test "${ac_cv_header_libintl_h+set}" = set; then
19484  echo $ECHO_N "(cached) $ECHO_C" >&6
19485fi
19486echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
19487echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
19488else
19489  # Is the header compilable?
19490echo "$as_me:$LINENO: checking libintl.h usability" >&5
19491echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
19492cat >conftest.$ac_ext <<_ACEOF
19493/* confdefs.h.  */
19494_ACEOF
19495cat confdefs.h >>conftest.$ac_ext
19496cat >>conftest.$ac_ext <<_ACEOF
19497/* end confdefs.h.  */
19498$ac_includes_default
19499#include <libintl.h>
19500_ACEOF
19501rm -f conftest.$ac_objext
19502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19503  (eval $ac_compile) 2>conftest.er1
19504  ac_status=$?
19505  grep -v '^ *+' conftest.er1 >conftest.err
19506  rm -f conftest.er1
19507  cat conftest.err >&5
19508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509  (exit $ac_status); } &&
19510	 { ac_try='test -z "$ac_c_werror_flag"
19511			 || test ! -s conftest.err'
19512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513  (eval $ac_try) 2>&5
19514  ac_status=$?
19515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516  (exit $ac_status); }; } &&
19517	 { ac_try='test -s conftest.$ac_objext'
19518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519  (eval $ac_try) 2>&5
19520  ac_status=$?
19521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522  (exit $ac_status); }; }; then
19523  ac_header_compiler=yes
19524else
19525  echo "$as_me: failed program was:" >&5
19526sed 's/^/| /' conftest.$ac_ext >&5
19527
19528ac_header_compiler=no
19529fi
19530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19531echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19532echo "${ECHO_T}$ac_header_compiler" >&6
19533
19534# Is the header present?
19535echo "$as_me:$LINENO: checking libintl.h presence" >&5
19536echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
19537cat >conftest.$ac_ext <<_ACEOF
19538/* confdefs.h.  */
19539_ACEOF
19540cat confdefs.h >>conftest.$ac_ext
19541cat >>conftest.$ac_ext <<_ACEOF
19542/* end confdefs.h.  */
19543#include <libintl.h>
19544_ACEOF
19545if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19546  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19547  ac_status=$?
19548  grep -v '^ *+' conftest.er1 >conftest.err
19549  rm -f conftest.er1
19550  cat conftest.err >&5
19551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552  (exit $ac_status); } >/dev/null; then
19553  if test -s conftest.err; then
19554    ac_cpp_err=$ac_c_preproc_warn_flag
19555    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19556  else
19557    ac_cpp_err=
19558  fi
19559else
19560  ac_cpp_err=yes
19561fi
19562if test -z "$ac_cpp_err"; then
19563  ac_header_preproc=yes
19564else
19565  echo "$as_me: failed program was:" >&5
19566sed 's/^/| /' conftest.$ac_ext >&5
19567
19568  ac_header_preproc=no
19569fi
19570rm -f conftest.err conftest.$ac_ext
19571echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19572echo "${ECHO_T}$ac_header_preproc" >&6
19573
19574# So?  What about this header?
19575case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19576  yes:no: )
19577    { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
19578echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19579    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
19580echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
19581    ac_header_preproc=yes
19582    ;;
19583  no:yes:* )
19584    { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
19585echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
19586    { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
19587echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
19588    { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
19589echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
19590    { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
19591echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19592    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
19593echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
19594    { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
19595echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
19596    (
19597      cat <<\_ASBOX
19598## ---------------------------------- ##
19599## Report this to jylefort@brutele.be ##
19600## ---------------------------------- ##
19601_ASBOX
19602    ) |
19603      sed "s/^/$as_me: WARNING:     /" >&2
19604    ;;
19605esac
19606echo "$as_me:$LINENO: checking for libintl.h" >&5
19607echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
19608if test "${ac_cv_header_libintl_h+set}" = set; then
19609  echo $ECHO_N "(cached) $ECHO_C" >&6
19610else
19611  ac_cv_header_libintl_h=$ac_header_preproc
19612fi
19613echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
19614echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
19615
19616fi
19617if test $ac_cv_header_libintl_h = yes; then
19618  gt_cv_func_dgettext_libintl="no"
19619      libintl_extra_libs=""
19620
19621      #
19622      # First check in libc
19623      #
19624      echo "$as_me:$LINENO: checking for dgettext in libc" >&5
19625echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
19626if test "${gt_cv_func_dgettext_libc+set}" = set; then
19627  echo $ECHO_N "(cached) $ECHO_C" >&6
19628else
19629  cat >conftest.$ac_ext <<_ACEOF
19630/* confdefs.h.  */
19631_ACEOF
19632cat confdefs.h >>conftest.$ac_ext
19633cat >>conftest.$ac_ext <<_ACEOF
19634/* end confdefs.h.  */
19635
19636#include <libintl.h>
19637
19638int
19639main ()
19640{
19641return (int) dgettext ("","")
19642  ;
19643  return 0;
19644}
19645_ACEOF
19646rm -f conftest.$ac_objext conftest$ac_exeext
19647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19648  (eval $ac_link) 2>conftest.er1
19649  ac_status=$?
19650  grep -v '^ *+' conftest.er1 >conftest.err
19651  rm -f conftest.er1
19652  cat conftest.err >&5
19653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654  (exit $ac_status); } &&
19655	 { ac_try='test -z "$ac_c_werror_flag"
19656			 || test ! -s conftest.err'
19657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19658  (eval $ac_try) 2>&5
19659  ac_status=$?
19660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661  (exit $ac_status); }; } &&
19662	 { ac_try='test -s conftest$ac_exeext'
19663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19664  (eval $ac_try) 2>&5
19665  ac_status=$?
19666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667  (exit $ac_status); }; }; then
19668  gt_cv_func_dgettext_libc=yes
19669else
19670  echo "$as_me: failed program was:" >&5
19671sed 's/^/| /' conftest.$ac_ext >&5
19672
19673gt_cv_func_dgettext_libc=no
19674fi
19675rm -f conftest.err conftest.$ac_objext \
19676      conftest$ac_exeext conftest.$ac_ext
19677
19678fi
19679echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
19680echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
19681
19682      if test "$gt_cv_func_dgettext_libc" = "yes" ; then
19683
19684for ac_func in bind_textdomain_codeset
19685do
19686as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19687echo "$as_me:$LINENO: checking for $ac_func" >&5
19688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19689if eval "test \"\${$as_ac_var+set}\" = set"; then
19690  echo $ECHO_N "(cached) $ECHO_C" >&6
19691else
19692  cat >conftest.$ac_ext <<_ACEOF
19693/* confdefs.h.  */
19694_ACEOF
19695cat confdefs.h >>conftest.$ac_ext
19696cat >>conftest.$ac_ext <<_ACEOF
19697/* end confdefs.h.  */
19698/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19699   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19700#define $ac_func innocuous_$ac_func
19701
19702/* System header to define __stub macros and hopefully few prototypes,
19703    which can conflict with char $ac_func (); below.
19704    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19705    <limits.h> exists even on freestanding compilers.  */
19706
19707#ifdef __STDC__
19708# include <limits.h>
19709#else
19710# include <assert.h>
19711#endif
19712
19713#undef $ac_func
19714
19715/* Override any gcc2 internal prototype to avoid an error.  */
19716#ifdef __cplusplus
19717extern "C"
19718{
19719#endif
19720/* We use char because int might match the return type of a gcc2
19721   builtin and then its argument prototype would still apply.  */
19722char $ac_func ();
19723/* The GNU C library defines this for functions which it implements
19724    to always fail with ENOSYS.  Some functions are actually named
19725    something starting with __ and the normal name is an alias.  */
19726#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19727choke me
19728#else
19729char (*f) () = $ac_func;
19730#endif
19731#ifdef __cplusplus
19732}
19733#endif
19734
19735int
19736main ()
19737{
19738return f != $ac_func;
19739  ;
19740  return 0;
19741}
19742_ACEOF
19743rm -f conftest.$ac_objext conftest$ac_exeext
19744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19745  (eval $ac_link) 2>conftest.er1
19746  ac_status=$?
19747  grep -v '^ *+' conftest.er1 >conftest.err
19748  rm -f conftest.er1
19749  cat conftest.err >&5
19750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751  (exit $ac_status); } &&
19752	 { ac_try='test -z "$ac_c_werror_flag"
19753			 || test ! -s conftest.err'
19754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755  (eval $ac_try) 2>&5
19756  ac_status=$?
19757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758  (exit $ac_status); }; } &&
19759	 { ac_try='test -s conftest$ac_exeext'
19760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761  (eval $ac_try) 2>&5
19762  ac_status=$?
19763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764  (exit $ac_status); }; }; then
19765  eval "$as_ac_var=yes"
19766else
19767  echo "$as_me: failed program was:" >&5
19768sed 's/^/| /' conftest.$ac_ext >&5
19769
19770eval "$as_ac_var=no"
19771fi
19772rm -f conftest.err conftest.$ac_objext \
19773      conftest$ac_exeext conftest.$ac_ext
19774fi
19775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19776echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19777if test `eval echo '${'$as_ac_var'}'` = yes; then
19778  cat >>confdefs.h <<_ACEOF
19779#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19780_ACEOF
19781
19782fi
19783done
19784
19785      fi
19786
19787      #
19788      # If we don't have everything we want, check in libintl
19789      #
19790      if test "$gt_cv_func_dgettext_libc" != "yes" \
19791         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
19792
19793        echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
19794echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
19795if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
19796  echo $ECHO_N "(cached) $ECHO_C" >&6
19797else
19798  ac_check_lib_save_LIBS=$LIBS
19799LIBS="-lintl  $LIBS"
19800cat >conftest.$ac_ext <<_ACEOF
19801/* confdefs.h.  */
19802_ACEOF
19803cat confdefs.h >>conftest.$ac_ext
19804cat >>conftest.$ac_ext <<_ACEOF
19805/* end confdefs.h.  */
19806
19807/* Override any gcc2 internal prototype to avoid an error.  */
19808#ifdef __cplusplus
19809extern "C"
19810#endif
19811/* We use char because int might match the return type of a gcc2
19812   builtin and then its argument prototype would still apply.  */
19813char bindtextdomain ();
19814int
19815main ()
19816{
19817bindtextdomain ();
19818  ;
19819  return 0;
19820}
19821_ACEOF
19822rm -f conftest.$ac_objext conftest$ac_exeext
19823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19824  (eval $ac_link) 2>conftest.er1
19825  ac_status=$?
19826  grep -v '^ *+' conftest.er1 >conftest.err
19827  rm -f conftest.er1
19828  cat conftest.err >&5
19829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830  (exit $ac_status); } &&
19831	 { ac_try='test -z "$ac_c_werror_flag"
19832			 || test ! -s conftest.err'
19833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834  (eval $ac_try) 2>&5
19835  ac_status=$?
19836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837  (exit $ac_status); }; } &&
19838	 { ac_try='test -s conftest$ac_exeext'
19839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19840  (eval $ac_try) 2>&5
19841  ac_status=$?
19842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843  (exit $ac_status); }; }; then
19844  ac_cv_lib_intl_bindtextdomain=yes
19845else
19846  echo "$as_me: failed program was:" >&5
19847sed 's/^/| /' conftest.$ac_ext >&5
19848
19849ac_cv_lib_intl_bindtextdomain=no
19850fi
19851rm -f conftest.err conftest.$ac_objext \
19852      conftest$ac_exeext conftest.$ac_ext
19853LIBS=$ac_check_lib_save_LIBS
19854fi
19855echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
19856echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
19857if test $ac_cv_lib_intl_bindtextdomain = yes; then
19858  echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19859echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19860if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19861  echo $ECHO_N "(cached) $ECHO_C" >&6
19862else
19863  ac_check_lib_save_LIBS=$LIBS
19864LIBS="-lintl  $LIBS"
19865cat >conftest.$ac_ext <<_ACEOF
19866/* confdefs.h.  */
19867_ACEOF
19868cat confdefs.h >>conftest.$ac_ext
19869cat >>conftest.$ac_ext <<_ACEOF
19870/* end confdefs.h.  */
19871
19872/* Override any gcc2 internal prototype to avoid an error.  */
19873#ifdef __cplusplus
19874extern "C"
19875#endif
19876/* We use char because int might match the return type of a gcc2
19877   builtin and then its argument prototype would still apply.  */
19878char dgettext ();
19879int
19880main ()
19881{
19882dgettext ();
19883  ;
19884  return 0;
19885}
19886_ACEOF
19887rm -f conftest.$ac_objext conftest$ac_exeext
19888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19889  (eval $ac_link) 2>conftest.er1
19890  ac_status=$?
19891  grep -v '^ *+' conftest.er1 >conftest.err
19892  rm -f conftest.er1
19893  cat conftest.err >&5
19894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895  (exit $ac_status); } &&
19896	 { ac_try='test -z "$ac_c_werror_flag"
19897			 || test ! -s conftest.err'
19898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19899  (eval $ac_try) 2>&5
19900  ac_status=$?
19901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902  (exit $ac_status); }; } &&
19903	 { ac_try='test -s conftest$ac_exeext'
19904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19905  (eval $ac_try) 2>&5
19906  ac_status=$?
19907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908  (exit $ac_status); }; }; then
19909  ac_cv_lib_intl_dgettext=yes
19910else
19911  echo "$as_me: failed program was:" >&5
19912sed 's/^/| /' conftest.$ac_ext >&5
19913
19914ac_cv_lib_intl_dgettext=no
19915fi
19916rm -f conftest.err conftest.$ac_objext \
19917      conftest$ac_exeext conftest.$ac_ext
19918LIBS=$ac_check_lib_save_LIBS
19919fi
19920echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19921echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19922if test $ac_cv_lib_intl_dgettext = yes; then
19923  gt_cv_func_dgettext_libintl=yes
19924fi
19925
19926fi
19927
19928
19929	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
19930	  echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
19931echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
19932	  echo "$as_me:$LINENO: result: " >&5
19933echo "${ECHO_T}" >&6
19934          echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
19935echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
19936if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
19937  echo $ECHO_N "(cached) $ECHO_C" >&6
19938else
19939  ac_check_lib_save_LIBS=$LIBS
19940LIBS="-lintl -liconv $LIBS"
19941cat >conftest.$ac_ext <<_ACEOF
19942/* confdefs.h.  */
19943_ACEOF
19944cat confdefs.h >>conftest.$ac_ext
19945cat >>conftest.$ac_ext <<_ACEOF
19946/* end confdefs.h.  */
19947
19948/* Override any gcc2 internal prototype to avoid an error.  */
19949#ifdef __cplusplus
19950extern "C"
19951#endif
19952/* We use char because int might match the return type of a gcc2
19953   builtin and then its argument prototype would still apply.  */
19954char dcgettext ();
19955int
19956main ()
19957{
19958dcgettext ();
19959  ;
19960  return 0;
19961}
19962_ACEOF
19963rm -f conftest.$ac_objext conftest$ac_exeext
19964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19965  (eval $ac_link) 2>conftest.er1
19966  ac_status=$?
19967  grep -v '^ *+' conftest.er1 >conftest.err
19968  rm -f conftest.er1
19969  cat conftest.err >&5
19970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971  (exit $ac_status); } &&
19972	 { ac_try='test -z "$ac_c_werror_flag"
19973			 || test ! -s conftest.err'
19974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19975  (eval $ac_try) 2>&5
19976  ac_status=$?
19977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978  (exit $ac_status); }; } &&
19979	 { ac_try='test -s conftest$ac_exeext'
19980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19981  (eval $ac_try) 2>&5
19982  ac_status=$?
19983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984  (exit $ac_status); }; }; then
19985  ac_cv_lib_intl_dcgettext=yes
19986else
19987  echo "$as_me: failed program was:" >&5
19988sed 's/^/| /' conftest.$ac_ext >&5
19989
19990ac_cv_lib_intl_dcgettext=no
19991fi
19992rm -f conftest.err conftest.$ac_objext \
19993      conftest$ac_exeext conftest.$ac_ext
19994LIBS=$ac_check_lib_save_LIBS
19995fi
19996echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
19997echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
19998if test $ac_cv_lib_intl_dcgettext = yes; then
19999  gt_cv_func_dgettext_libintl=yes
20000			libintl_extra_libs=-liconv
20001else
20002  :
20003fi
20004
20005        fi
20006
20007        #
20008        # If we found libintl, then check in it for bind_textdomain_codeset();
20009        # we'll prefer libc if neither have bind_textdomain_codeset(),
20010        # and both have dgettext
20011        #
20012        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
20013          glib_save_LIBS="$LIBS"
20014          LIBS="$LIBS -lintl $libintl_extra_libs"
20015          unset ac_cv_func_bind_textdomain_codeset
20016
20017for ac_func in bind_textdomain_codeset
20018do
20019as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20020echo "$as_me:$LINENO: checking for $ac_func" >&5
20021echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20022if eval "test \"\${$as_ac_var+set}\" = set"; then
20023  echo $ECHO_N "(cached) $ECHO_C" >&6
20024else
20025  cat >conftest.$ac_ext <<_ACEOF
20026/* confdefs.h.  */
20027_ACEOF
20028cat confdefs.h >>conftest.$ac_ext
20029cat >>conftest.$ac_ext <<_ACEOF
20030/* end confdefs.h.  */
20031/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20032   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20033#define $ac_func innocuous_$ac_func
20034
20035/* System header to define __stub macros and hopefully few prototypes,
20036    which can conflict with char $ac_func (); below.
20037    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20038    <limits.h> exists even on freestanding compilers.  */
20039
20040#ifdef __STDC__
20041# include <limits.h>
20042#else
20043# include <assert.h>
20044#endif
20045
20046#undef $ac_func
20047
20048/* Override any gcc2 internal prototype to avoid an error.  */
20049#ifdef __cplusplus
20050extern "C"
20051{
20052#endif
20053/* We use char because int might match the return type of a gcc2
20054   builtin and then its argument prototype would still apply.  */
20055char $ac_func ();
20056/* The GNU C library defines this for functions which it implements
20057    to always fail with ENOSYS.  Some functions are actually named
20058    something starting with __ and the normal name is an alias.  */
20059#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20060choke me
20061#else
20062char (*f) () = $ac_func;
20063#endif
20064#ifdef __cplusplus
20065}
20066#endif
20067
20068int
20069main ()
20070{
20071return f != $ac_func;
20072  ;
20073  return 0;
20074}
20075_ACEOF
20076rm -f conftest.$ac_objext conftest$ac_exeext
20077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20078  (eval $ac_link) 2>conftest.er1
20079  ac_status=$?
20080  grep -v '^ *+' conftest.er1 >conftest.err
20081  rm -f conftest.er1
20082  cat conftest.err >&5
20083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084  (exit $ac_status); } &&
20085	 { ac_try='test -z "$ac_c_werror_flag"
20086			 || test ! -s conftest.err'
20087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20088  (eval $ac_try) 2>&5
20089  ac_status=$?
20090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091  (exit $ac_status); }; } &&
20092	 { ac_try='test -s conftest$ac_exeext'
20093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20094  (eval $ac_try) 2>&5
20095  ac_status=$?
20096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097  (exit $ac_status); }; }; then
20098  eval "$as_ac_var=yes"
20099else
20100  echo "$as_me: failed program was:" >&5
20101sed 's/^/| /' conftest.$ac_ext >&5
20102
20103eval "$as_ac_var=no"
20104fi
20105rm -f conftest.err conftest.$ac_objext \
20106      conftest$ac_exeext conftest.$ac_ext
20107fi
20108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20109echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20110if test `eval echo '${'$as_ac_var'}'` = yes; then
20111  cat >>confdefs.h <<_ACEOF
20112#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20113_ACEOF
20114
20115fi
20116done
20117
20118          LIBS="$glib_save_LIBS"
20119
20120          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
20121            gt_cv_func_dgettext_libc=no
20122          else
20123            if test "$gt_cv_func_dgettext_libc" = "yes"; then
20124              gt_cv_func_dgettext_libintl=no
20125            fi
20126          fi
20127        fi
20128      fi
20129
20130      if test "$gt_cv_func_dgettext_libc" = "yes" \
20131	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
20132        gt_cv_have_gettext=yes
20133      fi
20134
20135      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
20136        INTLLIBS="-lintl $libintl_extra_libs"
20137      fi
20138
20139      if test "$gt_cv_have_gettext" = "yes"; then
20140
20141cat >>confdefs.h <<\_ACEOF
20142#define HAVE_GETTEXT 1
20143_ACEOF
20144
20145	# Extract the first word of "msgfmt", so it can be a program name with args.
20146set dummy msgfmt; ac_word=$2
20147echo "$as_me:$LINENO: checking for $ac_word" >&5
20148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20149if test "${ac_cv_path_MSGFMT+set}" = set; then
20150  echo $ECHO_N "(cached) $ECHO_C" >&6
20151else
20152  case "$MSGFMT" in
20153  /*)
20154  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20155  ;;
20156  *)
20157  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
20158  for ac_dir in $PATH; do
20159    test -z "$ac_dir" && ac_dir=.
20160    if test -f $ac_dir/$ac_word; then
20161      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
20162	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
20163	break
20164      fi
20165    fi
20166  done
20167  IFS="$ac_save_ifs"
20168  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
20169  ;;
20170esac
20171fi
20172MSGFMT="$ac_cv_path_MSGFMT"
20173if test "$MSGFMT" != "no"; then
20174  echo "$as_me:$LINENO: result: $MSGFMT" >&5
20175echo "${ECHO_T}$MSGFMT" >&6
20176else
20177  echo "$as_me:$LINENO: result: no" >&5
20178echo "${ECHO_T}no" >&6
20179fi
20180	if test "$MSGFMT" != "no"; then
20181          glib_save_LIBS="$LIBS"
20182          LIBS="$LIBS $INTLLIBS"
20183
20184for ac_func in dcgettext
20185do
20186as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20187echo "$as_me:$LINENO: checking for $ac_func" >&5
20188echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20189if eval "test \"\${$as_ac_var+set}\" = set"; then
20190  echo $ECHO_N "(cached) $ECHO_C" >&6
20191else
20192  cat >conftest.$ac_ext <<_ACEOF
20193/* confdefs.h.  */
20194_ACEOF
20195cat confdefs.h >>conftest.$ac_ext
20196cat >>conftest.$ac_ext <<_ACEOF
20197/* end confdefs.h.  */
20198/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20199   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20200#define $ac_func innocuous_$ac_func
20201
20202/* System header to define __stub macros and hopefully few prototypes,
20203    which can conflict with char $ac_func (); below.
20204    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20205    <limits.h> exists even on freestanding compilers.  */
20206
20207#ifdef __STDC__
20208# include <limits.h>
20209#else
20210# include <assert.h>
20211#endif
20212
20213#undef $ac_func
20214
20215/* Override any gcc2 internal prototype to avoid an error.  */
20216#ifdef __cplusplus
20217extern "C"
20218{
20219#endif
20220/* We use char because int might match the return type of a gcc2
20221   builtin and then its argument prototype would still apply.  */
20222char $ac_func ();
20223/* The GNU C library defines this for functions which it implements
20224    to always fail with ENOSYS.  Some functions are actually named
20225    something starting with __ and the normal name is an alias.  */
20226#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20227choke me
20228#else
20229char (*f) () = $ac_func;
20230#endif
20231#ifdef __cplusplus
20232}
20233#endif
20234
20235int
20236main ()
20237{
20238return f != $ac_func;
20239  ;
20240  return 0;
20241}
20242_ACEOF
20243rm -f conftest.$ac_objext conftest$ac_exeext
20244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20245  (eval $ac_link) 2>conftest.er1
20246  ac_status=$?
20247  grep -v '^ *+' conftest.er1 >conftest.err
20248  rm -f conftest.er1
20249  cat conftest.err >&5
20250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251  (exit $ac_status); } &&
20252	 { ac_try='test -z "$ac_c_werror_flag"
20253			 || test ! -s conftest.err'
20254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255  (eval $ac_try) 2>&5
20256  ac_status=$?
20257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258  (exit $ac_status); }; } &&
20259	 { ac_try='test -s conftest$ac_exeext'
20260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261  (eval $ac_try) 2>&5
20262  ac_status=$?
20263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264  (exit $ac_status); }; }; then
20265  eval "$as_ac_var=yes"
20266else
20267  echo "$as_me: failed program was:" >&5
20268sed 's/^/| /' conftest.$ac_ext >&5
20269
20270eval "$as_ac_var=no"
20271fi
20272rm -f conftest.err conftest.$ac_objext \
20273      conftest$ac_exeext conftest.$ac_ext
20274fi
20275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20276echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20277if test `eval echo '${'$as_ac_var'}'` = yes; then
20278  cat >>confdefs.h <<_ACEOF
20279#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20280_ACEOF
20281
20282fi
20283done
20284
20285	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
20286set dummy gmsgfmt; ac_word=$2
20287echo "$as_me:$LINENO: checking for $ac_word" >&5
20288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20289if test "${ac_cv_path_GMSGFMT+set}" = set; then
20290  echo $ECHO_N "(cached) $ECHO_C" >&6
20291else
20292  case $GMSGFMT in
20293  [\\/]* | ?:[\\/]*)
20294  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20295  ;;
20296  *)
20297  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20298for as_dir in $PATH
20299do
20300  IFS=$as_save_IFS
20301  test -z "$as_dir" && as_dir=.
20302  for ac_exec_ext in '' $ac_executable_extensions; do
20303  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20304    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20305    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20306    break 2
20307  fi
20308done
20309done
20310
20311  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20312  ;;
20313esac
20314fi
20315GMSGFMT=$ac_cv_path_GMSGFMT
20316
20317if test -n "$GMSGFMT"; then
20318  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
20319echo "${ECHO_T}$GMSGFMT" >&6
20320else
20321  echo "$as_me:$LINENO: result: no" >&5
20322echo "${ECHO_T}no" >&6
20323fi
20324
20325	  # Extract the first word of "xgettext", so it can be a program name with args.
20326set dummy xgettext; ac_word=$2
20327echo "$as_me:$LINENO: checking for $ac_word" >&5
20328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20329if test "${ac_cv_path_XGETTEXT+set}" = set; then
20330  echo $ECHO_N "(cached) $ECHO_C" >&6
20331else
20332  case "$XGETTEXT" in
20333  /*)
20334  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20335  ;;
20336  *)
20337  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
20338  for ac_dir in $PATH; do
20339    test -z "$ac_dir" && ac_dir=.
20340    if test -f $ac_dir/$ac_word; then
20341      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
20342	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
20343	break
20344      fi
20345    fi
20346  done
20347  IFS="$ac_save_ifs"
20348  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
20349  ;;
20350esac
20351fi
20352XGETTEXT="$ac_cv_path_XGETTEXT"
20353if test "$XGETTEXT" != ":"; then
20354  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
20355echo "${ECHO_T}$XGETTEXT" >&6
20356else
20357  echo "$as_me:$LINENO: result: no" >&5
20358echo "${ECHO_T}no" >&6
20359fi
20360
20361	  cat >conftest.$ac_ext <<_ACEOF
20362/* confdefs.h.  */
20363_ACEOF
20364cat confdefs.h >>conftest.$ac_ext
20365cat >>conftest.$ac_ext <<_ACEOF
20366/* end confdefs.h.  */
20367
20368int
20369main ()
20370{
20371extern int _nl_msg_cat_cntr;
20372			 return _nl_msg_cat_cntr
20373  ;
20374  return 0;
20375}
20376_ACEOF
20377rm -f conftest.$ac_objext conftest$ac_exeext
20378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20379  (eval $ac_link) 2>conftest.er1
20380  ac_status=$?
20381  grep -v '^ *+' conftest.er1 >conftest.err
20382  rm -f conftest.er1
20383  cat conftest.err >&5
20384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385  (exit $ac_status); } &&
20386	 { ac_try='test -z "$ac_c_werror_flag"
20387			 || test ! -s conftest.err'
20388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20389  (eval $ac_try) 2>&5
20390  ac_status=$?
20391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392  (exit $ac_status); }; } &&
20393	 { ac_try='test -s conftest$ac_exeext'
20394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20395  (eval $ac_try) 2>&5
20396  ac_status=$?
20397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398  (exit $ac_status); }; }; then
20399  CATOBJEXT=.gmo
20400             DATADIRNAME=share
20401else
20402  echo "$as_me: failed program was:" >&5
20403sed 's/^/| /' conftest.$ac_ext >&5
20404
20405case $host in
20406	    *-*-solaris*)
20407	    	                	    	                echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
20408echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6
20409if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
20410  echo $ECHO_N "(cached) $ECHO_C" >&6
20411else
20412  cat >conftest.$ac_ext <<_ACEOF
20413/* confdefs.h.  */
20414_ACEOF
20415cat confdefs.h >>conftest.$ac_ext
20416cat >>conftest.$ac_ext <<_ACEOF
20417/* end confdefs.h.  */
20418/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
20419   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20420#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
20421
20422/* System header to define __stub macros and hopefully few prototypes,
20423    which can conflict with char bind_textdomain_codeset (); below.
20424    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20425    <limits.h> exists even on freestanding compilers.  */
20426
20427#ifdef __STDC__
20428# include <limits.h>
20429#else
20430# include <assert.h>
20431#endif
20432
20433#undef bind_textdomain_codeset
20434
20435/* Override any gcc2 internal prototype to avoid an error.  */
20436#ifdef __cplusplus
20437extern "C"
20438{
20439#endif
20440/* We use char because int might match the return type of a gcc2
20441   builtin and then its argument prototype would still apply.  */
20442char bind_textdomain_codeset ();
20443/* The GNU C library defines this for functions which it implements
20444    to always fail with ENOSYS.  Some functions are actually named
20445    something starting with __ and the normal name is an alias.  */
20446#if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset)
20447choke me
20448#else
20449char (*f) () = bind_textdomain_codeset;
20450#endif
20451#ifdef __cplusplus
20452}
20453#endif
20454
20455int
20456main ()
20457{
20458return f != bind_textdomain_codeset;
20459  ;
20460  return 0;
20461}
20462_ACEOF
20463rm -f conftest.$ac_objext conftest$ac_exeext
20464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20465  (eval $ac_link) 2>conftest.er1
20466  ac_status=$?
20467  grep -v '^ *+' conftest.er1 >conftest.err
20468  rm -f conftest.er1
20469  cat conftest.err >&5
20470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471  (exit $ac_status); } &&
20472	 { ac_try='test -z "$ac_c_werror_flag"
20473			 || test ! -s conftest.err'
20474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20475  (eval $ac_try) 2>&5
20476  ac_status=$?
20477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478  (exit $ac_status); }; } &&
20479	 { ac_try='test -s conftest$ac_exeext'
20480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481  (eval $ac_try) 2>&5
20482  ac_status=$?
20483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484  (exit $ac_status); }; }; then
20485  ac_cv_func_bind_textdomain_codeset=yes
20486else
20487  echo "$as_me: failed program was:" >&5
20488sed 's/^/| /' conftest.$ac_ext >&5
20489
20490ac_cv_func_bind_textdomain_codeset=no
20491fi
20492rm -f conftest.err conftest.$ac_objext \
20493      conftest$ac_exeext conftest.$ac_ext
20494fi
20495echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
20496echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6
20497if test $ac_cv_func_bind_textdomain_codeset = yes; then
20498  CATOBJEXT=.gmo
20499               DATADIRNAME=share
20500else
20501  CATOBJEXT=.mo
20502               DATADIRNAME=share
20503fi
20504
20505	    ;;
20506	    *)
20507	    CATOBJEXT=.mo
20508            DATADIRNAME=share
20509	    ;;
20510	    esac
20511fi
20512rm -f conftest.err conftest.$ac_objext \
20513      conftest$ac_exeext conftest.$ac_ext
20514          LIBS="$glib_save_LIBS"
20515	  INSTOBJEXT=.mo
20516	else
20517	  gt_cv_have_gettext=no
20518	fi
20519      fi
20520
20521fi
20522
20523
20524
20525    if test "$gt_cv_have_gettext" = "yes" ; then
20526
20527cat >>confdefs.h <<\_ACEOF
20528#define ENABLE_NLS 1
20529_ACEOF
20530
20531    fi
20532
20533        if test "$XGETTEXT" != ":"; then
20534                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
20535        : ;
20536      else
20537        echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
20538echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
20539        XGETTEXT=":"
20540      fi
20541    fi
20542
20543    # We need to process the po/ directory.
20544    POSUB=po
20545
20546              ac_config_commands="$ac_config_commands default-1"
20547
20548
20549                for lang in $ALL_LINGUAS; do
20550      GMOFILES="$GMOFILES $lang.gmo"
20551      POFILES="$POFILES $lang.po"
20552    done
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566   if test "$gt_cv_have_gettext" = "yes"; then
20567     if test "x$ALL_LINGUAS" = "x"; then
20568       LINGUAS=
20569     else
20570       echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
20571echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
20572       NEW_LINGUAS=
20573       for presentlang in $ALL_LINGUAS; do
20574         useit=no
20575         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
20576           desiredlanguages="$LINGUAS"
20577         else
20578           desiredlanguages="$ALL_LINGUAS"
20579         fi
20580         for desiredlang in $desiredlanguages; do
20581 	   # Use the presentlang catalog if desiredlang is
20582           #   a. equal to presentlang, or
20583           #   b. a variant of presentlang (because in this case,
20584           #      presentlang can be used as a fallback for messages
20585           #      which are not translated in the desiredlang catalog).
20586           case "$desiredlang" in
20587             "$presentlang"*) useit=yes;;
20588           esac
20589         done
20590         if test $useit = yes; then
20591           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
20592         fi
20593       done
20594       LINGUAS=$NEW_LINGUAS
20595       echo "$as_me:$LINENO: result: $LINGUAS" >&5
20596echo "${ECHO_T}$LINGUAS" >&6
20597     fi
20598
20599          if test -n "$LINGUAS"; then
20600       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
20601     fi
20602   fi
20603
20604            MKINSTALLDIRS=
20605   if test -n "$ac_aux_dir"; then
20606     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
20607   fi
20608   if test -z "$MKINSTALLDIRS"; then
20609     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
20610   fi
20611
20612
20613         test -d po || mkdir po
20614   if test "x$srcdir" != "x."; then
20615     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
20616       posrcprefix="$srcdir/"
20617     else
20618       posrcprefix="../$srcdir/"
20619     fi
20620   else
20621     posrcprefix="../"
20622   fi
20623   rm -f po/POTFILES
20624   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
20625	< $srcdir/po/POTFILES.in > po/POTFILES
20626
20627glib_save_prefix="$prefix"
20628glib_save_exec_prefix="$exec_prefix"
20629test "x$prefix" = xNONE && prefix=$ac_default_prefix
20630test "x$exec_prefix" = xNONE && exec_prefix=$prefix
20631if test "x$CATOBJEXT" = "x.mo" ; then
20632  localedir=`eval echo "${libdir}/locale"`
20633else
20634  localedir=`eval echo "${datadir}/locale"`
20635fi
20636prefix="$glib_save_prefix"
20637exec_prefix="$glib_save_exec_prefix"
20638
20639cat >>confdefs.h <<_ACEOF
20640#define LOCALEDIR "$localedir"
20641_ACEOF
20642
20643
20644
20645
20646
20647if test -n ""; then
20648    echo "$as_me:$LINENO: checking for intltool >= " >&5
20649echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
20650
20651    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo  | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
20652    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }'  < ${ac_aux_dir}/intltool-update.in`
20653
20654    INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < ${ac_aux_dir}/intltool-update.in`
20655
20656
20657    if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
20658	echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
20659echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
20660    else
20661	echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool  or later." >&5
20662echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool  or later." >&6
20663	exit 1
20664    fi
20665fi
20666
20667  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20668INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20669     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20670     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20671      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
20672     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20673   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20674    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20675INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20676       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20677      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20678      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
20679      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20680      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20681    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20682  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20683    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703# Use the tools built into the package, not the ones that are installed.
20704
20705INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
20706INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
20707INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
20708
20709
20710
20711
20712
20713# Extract the first word of "perl", so it can be a program name with args.
20714set dummy perl; ac_word=$2
20715echo "$as_me:$LINENO: checking for $ac_word" >&5
20716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20717if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
20718  echo $ECHO_N "(cached) $ECHO_C" >&6
20719else
20720  case $INTLTOOL_PERL in
20721  [\\/]* | ?:[\\/]*)
20722  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
20723  ;;
20724  *)
20725  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20726for as_dir in $PATH
20727do
20728  IFS=$as_save_IFS
20729  test -z "$as_dir" && as_dir=.
20730  for ac_exec_ext in '' $ac_executable_extensions; do
20731  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20732    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
20733    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20734    break 2
20735  fi
20736done
20737done
20738
20739  ;;
20740esac
20741fi
20742INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
20743
20744if test -n "$INTLTOOL_PERL"; then
20745  echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
20746echo "${ECHO_T}$INTLTOOL_PERL" >&6
20747else
20748  echo "$as_me:$LINENO: result: no" >&5
20749echo "${ECHO_T}no" >&6
20750fi
20751
20752if test -z "$INTLTOOL_PERL"; then
20753   { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
20754echo "$as_me: error: perl not found; required for intltool" >&2;}
20755   { (exit 1); exit 1; }; }
20756fi
20757if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
20758   { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
20759echo "$as_me: error: perl 5.x required for intltool" >&2;}
20760   { (exit 1); exit 1; }; }
20761fi
20762if test "x" != "xno-xml"; then
20763   echo "$as_me:$LINENO: checking for XML::Parser" >&5
20764echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6
20765   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
20766       echo "$as_me:$LINENO: result: ok" >&5
20767echo "${ECHO_T}ok" >&6
20768   else
20769       { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
20770echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
20771   { (exit 1); exit 1; }; }
20772   fi
20773fi
20774
20775# Extract the first word of "iconv", so it can be a program name with args.
20776set dummy iconv; ac_word=$2
20777echo "$as_me:$LINENO: checking for $ac_word" >&5
20778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20779if test "${ac_cv_path_ICONV+set}" = set; then
20780  echo $ECHO_N "(cached) $ECHO_C" >&6
20781else
20782  case $ICONV in
20783  [\\/]* | ?:[\\/]*)
20784  ac_cv_path_ICONV="$ICONV" # Let the user override the test with a path.
20785  ;;
20786  *)
20787  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20788for as_dir in $PATH
20789do
20790  IFS=$as_save_IFS
20791  test -z "$as_dir" && as_dir=.
20792  for ac_exec_ext in '' $ac_executable_extensions; do
20793  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20794    ac_cv_path_ICONV="$as_dir/$ac_word$ac_exec_ext"
20795    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20796    break 2
20797  fi
20798done
20799done
20800
20801  test -z "$ac_cv_path_ICONV" && ac_cv_path_ICONV="iconv"
20802  ;;
20803esac
20804fi
20805ICONV=$ac_cv_path_ICONV
20806
20807if test -n "$ICONV"; then
20808  echo "$as_me:$LINENO: result: $ICONV" >&5
20809echo "${ECHO_T}$ICONV" >&6
20810else
20811  echo "$as_me:$LINENO: result: no" >&5
20812echo "${ECHO_T}no" >&6
20813fi
20814
20815# Extract the first word of "msgfmt", so it can be a program name with args.
20816set dummy msgfmt; ac_word=$2
20817echo "$as_me:$LINENO: checking for $ac_word" >&5
20818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20819if test "${ac_cv_path_MSGFMT+set}" = set; then
20820  echo $ECHO_N "(cached) $ECHO_C" >&6
20821else
20822  case $MSGFMT in
20823  [\\/]* | ?:[\\/]*)
20824  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20825  ;;
20826  *)
20827  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20828for as_dir in $PATH
20829do
20830  IFS=$as_save_IFS
20831  test -z "$as_dir" && as_dir=.
20832  for ac_exec_ext in '' $ac_executable_extensions; do
20833  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20834    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
20835    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20836    break 2
20837  fi
20838done
20839done
20840
20841  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
20842  ;;
20843esac
20844fi
20845MSGFMT=$ac_cv_path_MSGFMT
20846
20847if test -n "$MSGFMT"; then
20848  echo "$as_me:$LINENO: result: $MSGFMT" >&5
20849echo "${ECHO_T}$MSGFMT" >&6
20850else
20851  echo "$as_me:$LINENO: result: no" >&5
20852echo "${ECHO_T}no" >&6
20853fi
20854
20855# Extract the first word of "msgmerge", so it can be a program name with args.
20856set dummy msgmerge; ac_word=$2
20857echo "$as_me:$LINENO: checking for $ac_word" >&5
20858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20859if test "${ac_cv_path_MSGMERGE+set}" = set; then
20860  echo $ECHO_N "(cached) $ECHO_C" >&6
20861else
20862  case $MSGMERGE in
20863  [\\/]* | ?:[\\/]*)
20864  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
20865  ;;
20866  *)
20867  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20868for as_dir in $PATH
20869do
20870  IFS=$as_save_IFS
20871  test -z "$as_dir" && as_dir=.
20872  for ac_exec_ext in '' $ac_executable_extensions; do
20873  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20874    ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
20875    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20876    break 2
20877  fi
20878done
20879done
20880
20881  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="msgmerge"
20882  ;;
20883esac
20884fi
20885MSGMERGE=$ac_cv_path_MSGMERGE
20886
20887if test -n "$MSGMERGE"; then
20888  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
20889echo "${ECHO_T}$MSGMERGE" >&6
20890else
20891  echo "$as_me:$LINENO: result: no" >&5
20892echo "${ECHO_T}no" >&6
20893fi
20894
20895# Extract the first word of "xgettext", so it can be a program name with args.
20896set dummy xgettext; ac_word=$2
20897echo "$as_me:$LINENO: checking for $ac_word" >&5
20898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20899if test "${ac_cv_path_XGETTEXT+set}" = set; then
20900  echo $ECHO_N "(cached) $ECHO_C" >&6
20901else
20902  case $XGETTEXT in
20903  [\\/]* | ?:[\\/]*)
20904  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20905  ;;
20906  *)
20907  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20908for as_dir in $PATH
20909do
20910  IFS=$as_save_IFS
20911  test -z "$as_dir" && as_dir=.
20912  for ac_exec_ext in '' $ac_executable_extensions; do
20913  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20914    ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
20915    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20916    break 2
20917  fi
20918done
20919done
20920
20921  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="xgettext"
20922  ;;
20923esac
20924fi
20925XGETTEXT=$ac_cv_path_XGETTEXT
20926
20927if test -n "$XGETTEXT"; then
20928  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
20929echo "${ECHO_T}$XGETTEXT" >&6
20930else
20931  echo "$as_me:$LINENO: result: no" >&5
20932echo "${ECHO_T}no" >&6
20933fi
20934
20935
20936# Remove file type tags (using []) from po/POTFILES.
20937
20938
20939
20940
20941
20942
20943if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
20944  # Keeping the `.' argument allows $(mkdir_p) to be used without
20945  # argument.  Indeed, we sometimes output rules like
20946  #   $(mkdir_p) $(somedir)
20947  # where $(somedir) is conditionally defined.
20948  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
20949  # expensive solution, as it forces Make to start a sub-shell.)
20950  mkdir_p='mkdir -p -- .'
20951else
20952  # On NextStep and OpenStep, the `mkdir' command does not
20953  # recognize any option.  It will interpret all options as
20954  # directories to create, and then abort because `.' already
20955  # exists.
20956  for d in ./-p ./--version;
20957  do
20958    test -d $d && rmdir $d
20959  done
20960  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
20961  if test -f "$ac_aux_dir/mkinstalldirs"; then
20962    mkdir_p='$(mkinstalldirs)'
20963  else
20964    mkdir_p='$(install_sh) -d'
20965  fi
20966fi
20967
20968
20969
20970# Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
20971
20972          ac_config_commands="$ac_config_commands intltool"
20973
20974
20975
20976
20977### system features
20978
20979# Check whether --enable-largefile or --disable-largefile was given.
20980if test "${enable_largefile+set}" = set; then
20981  enableval="$enable_largefile"
20982
20983fi;
20984if test "$enable_largefile" != no; then
20985
20986  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
20987echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
20988if test "${ac_cv_sys_largefile_CC+set}" = set; then
20989  echo $ECHO_N "(cached) $ECHO_C" >&6
20990else
20991  ac_cv_sys_largefile_CC=no
20992     if test "$GCC" != yes; then
20993       ac_save_CC=$CC
20994       while :; do
20995     	 # IRIX 6.2 and later do not support large files by default,
20996     	 # so use the C compiler's -n32 option if that helps.
20997	 cat >conftest.$ac_ext <<_ACEOF
20998/* confdefs.h.  */
20999_ACEOF
21000cat confdefs.h >>conftest.$ac_ext
21001cat >>conftest.$ac_ext <<_ACEOF
21002/* end confdefs.h.  */
21003#include <sys/types.h>
21004 /* Check that off_t can represent 2**63 - 1 correctly.
21005    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21006    since some C++ compilers masquerading as C compilers
21007    incorrectly reject 9223372036854775807.  */
21008#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21009  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21010		       && LARGE_OFF_T % 2147483647 == 1)
21011		      ? 1 : -1];
21012int
21013main ()
21014{
21015
21016  ;
21017  return 0;
21018}
21019_ACEOF
21020     	 rm -f conftest.$ac_objext
21021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21022  (eval $ac_compile) 2>conftest.er1
21023  ac_status=$?
21024  grep -v '^ *+' conftest.er1 >conftest.err
21025  rm -f conftest.er1
21026  cat conftest.err >&5
21027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028  (exit $ac_status); } &&
21029	 { ac_try='test -z "$ac_c_werror_flag"
21030			 || test ! -s conftest.err'
21031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032  (eval $ac_try) 2>&5
21033  ac_status=$?
21034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035  (exit $ac_status); }; } &&
21036	 { ac_try='test -s conftest.$ac_objext'
21037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038  (eval $ac_try) 2>&5
21039  ac_status=$?
21040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041  (exit $ac_status); }; }; then
21042  break
21043else
21044  echo "$as_me: failed program was:" >&5
21045sed 's/^/| /' conftest.$ac_ext >&5
21046
21047fi
21048rm -f conftest.err conftest.$ac_objext
21049     	 CC="$CC -n32"
21050     	 rm -f conftest.$ac_objext
21051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21052  (eval $ac_compile) 2>conftest.er1
21053  ac_status=$?
21054  grep -v '^ *+' conftest.er1 >conftest.err
21055  rm -f conftest.er1
21056  cat conftest.err >&5
21057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058  (exit $ac_status); } &&
21059	 { ac_try='test -z "$ac_c_werror_flag"
21060			 || test ! -s conftest.err'
21061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062  (eval $ac_try) 2>&5
21063  ac_status=$?
21064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065  (exit $ac_status); }; } &&
21066	 { ac_try='test -s conftest.$ac_objext'
21067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21068  (eval $ac_try) 2>&5
21069  ac_status=$?
21070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071  (exit $ac_status); }; }; then
21072  ac_cv_sys_largefile_CC=' -n32'; break
21073else
21074  echo "$as_me: failed program was:" >&5
21075sed 's/^/| /' conftest.$ac_ext >&5
21076
21077fi
21078rm -f conftest.err conftest.$ac_objext
21079	 break
21080       done
21081       CC=$ac_save_CC
21082       rm -f conftest.$ac_ext
21083    fi
21084fi
21085echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
21086echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
21087  if test "$ac_cv_sys_largefile_CC" != no; then
21088    CC=$CC$ac_cv_sys_largefile_CC
21089  fi
21090
21091  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21092echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21093if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21094  echo $ECHO_N "(cached) $ECHO_C" >&6
21095else
21096  while :; do
21097  ac_cv_sys_file_offset_bits=no
21098  cat >conftest.$ac_ext <<_ACEOF
21099/* confdefs.h.  */
21100_ACEOF
21101cat confdefs.h >>conftest.$ac_ext
21102cat >>conftest.$ac_ext <<_ACEOF
21103/* end confdefs.h.  */
21104#include <sys/types.h>
21105 /* Check that off_t can represent 2**63 - 1 correctly.
21106    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21107    since some C++ compilers masquerading as C compilers
21108    incorrectly reject 9223372036854775807.  */
21109#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21110  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21111		       && LARGE_OFF_T % 2147483647 == 1)
21112		      ? 1 : -1];
21113int
21114main ()
21115{
21116
21117  ;
21118  return 0;
21119}
21120_ACEOF
21121rm -f conftest.$ac_objext
21122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21123  (eval $ac_compile) 2>conftest.er1
21124  ac_status=$?
21125  grep -v '^ *+' conftest.er1 >conftest.err
21126  rm -f conftest.er1
21127  cat conftest.err >&5
21128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129  (exit $ac_status); } &&
21130	 { ac_try='test -z "$ac_c_werror_flag"
21131			 || test ! -s conftest.err'
21132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21133  (eval $ac_try) 2>&5
21134  ac_status=$?
21135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136  (exit $ac_status); }; } &&
21137	 { ac_try='test -s conftest.$ac_objext'
21138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21139  (eval $ac_try) 2>&5
21140  ac_status=$?
21141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142  (exit $ac_status); }; }; then
21143  break
21144else
21145  echo "$as_me: failed program was:" >&5
21146sed 's/^/| /' conftest.$ac_ext >&5
21147
21148fi
21149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21150  cat >conftest.$ac_ext <<_ACEOF
21151/* confdefs.h.  */
21152_ACEOF
21153cat confdefs.h >>conftest.$ac_ext
21154cat >>conftest.$ac_ext <<_ACEOF
21155/* end confdefs.h.  */
21156#define _FILE_OFFSET_BITS 64
21157#include <sys/types.h>
21158 /* Check that off_t can represent 2**63 - 1 correctly.
21159    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21160    since some C++ compilers masquerading as C compilers
21161    incorrectly reject 9223372036854775807.  */
21162#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21163  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21164		       && LARGE_OFF_T % 2147483647 == 1)
21165		      ? 1 : -1];
21166int
21167main ()
21168{
21169
21170  ;
21171  return 0;
21172}
21173_ACEOF
21174rm -f conftest.$ac_objext
21175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21176  (eval $ac_compile) 2>conftest.er1
21177  ac_status=$?
21178  grep -v '^ *+' conftest.er1 >conftest.err
21179  rm -f conftest.er1
21180  cat conftest.err >&5
21181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182  (exit $ac_status); } &&
21183	 { ac_try='test -z "$ac_c_werror_flag"
21184			 || test ! -s conftest.err'
21185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21186  (eval $ac_try) 2>&5
21187  ac_status=$?
21188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189  (exit $ac_status); }; } &&
21190	 { ac_try='test -s conftest.$ac_objext'
21191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192  (eval $ac_try) 2>&5
21193  ac_status=$?
21194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195  (exit $ac_status); }; }; then
21196  ac_cv_sys_file_offset_bits=64; break
21197else
21198  echo "$as_me: failed program was:" >&5
21199sed 's/^/| /' conftest.$ac_ext >&5
21200
21201fi
21202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21203  break
21204done
21205fi
21206echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21207echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21208if test "$ac_cv_sys_file_offset_bits" != no; then
21209
21210cat >>confdefs.h <<_ACEOF
21211#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21212_ACEOF
21213
21214fi
21215rm -f conftest*
21216  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21217echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21218if test "${ac_cv_sys_large_files+set}" = set; then
21219  echo $ECHO_N "(cached) $ECHO_C" >&6
21220else
21221  while :; do
21222  ac_cv_sys_large_files=no
21223  cat >conftest.$ac_ext <<_ACEOF
21224/* confdefs.h.  */
21225_ACEOF
21226cat confdefs.h >>conftest.$ac_ext
21227cat >>conftest.$ac_ext <<_ACEOF
21228/* end confdefs.h.  */
21229#include <sys/types.h>
21230 /* Check that off_t can represent 2**63 - 1 correctly.
21231    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21232    since some C++ compilers masquerading as C compilers
21233    incorrectly reject 9223372036854775807.  */
21234#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21235  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21236		       && LARGE_OFF_T % 2147483647 == 1)
21237		      ? 1 : -1];
21238int
21239main ()
21240{
21241
21242  ;
21243  return 0;
21244}
21245_ACEOF
21246rm -f conftest.$ac_objext
21247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21248  (eval $ac_compile) 2>conftest.er1
21249  ac_status=$?
21250  grep -v '^ *+' conftest.er1 >conftest.err
21251  rm -f conftest.er1
21252  cat conftest.err >&5
21253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254  (exit $ac_status); } &&
21255	 { ac_try='test -z "$ac_c_werror_flag"
21256			 || test ! -s conftest.err'
21257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21258  (eval $ac_try) 2>&5
21259  ac_status=$?
21260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261  (exit $ac_status); }; } &&
21262	 { ac_try='test -s conftest.$ac_objext'
21263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21264  (eval $ac_try) 2>&5
21265  ac_status=$?
21266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267  (exit $ac_status); }; }; then
21268  break
21269else
21270  echo "$as_me: failed program was:" >&5
21271sed 's/^/| /' conftest.$ac_ext >&5
21272
21273fi
21274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21275  cat >conftest.$ac_ext <<_ACEOF
21276/* confdefs.h.  */
21277_ACEOF
21278cat confdefs.h >>conftest.$ac_ext
21279cat >>conftest.$ac_ext <<_ACEOF
21280/* end confdefs.h.  */
21281#define _LARGE_FILES 1
21282#include <sys/types.h>
21283 /* Check that off_t can represent 2**63 - 1 correctly.
21284    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21285    since some C++ compilers masquerading as C compilers
21286    incorrectly reject 9223372036854775807.  */
21287#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21288  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21289		       && LARGE_OFF_T % 2147483647 == 1)
21290		      ? 1 : -1];
21291int
21292main ()
21293{
21294
21295  ;
21296  return 0;
21297}
21298_ACEOF
21299rm -f conftest.$ac_objext
21300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21301  (eval $ac_compile) 2>conftest.er1
21302  ac_status=$?
21303  grep -v '^ *+' conftest.er1 >conftest.err
21304  rm -f conftest.er1
21305  cat conftest.err >&5
21306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307  (exit $ac_status); } &&
21308	 { ac_try='test -z "$ac_c_werror_flag"
21309			 || test ! -s conftest.err'
21310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311  (eval $ac_try) 2>&5
21312  ac_status=$?
21313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314  (exit $ac_status); }; } &&
21315	 { ac_try='test -s conftest.$ac_objext'
21316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21317  (eval $ac_try) 2>&5
21318  ac_status=$?
21319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320  (exit $ac_status); }; }; then
21321  ac_cv_sys_large_files=1; break
21322else
21323  echo "$as_me: failed program was:" >&5
21324sed 's/^/| /' conftest.$ac_ext >&5
21325
21326fi
21327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21328  break
21329done
21330fi
21331echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21332echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21333if test "$ac_cv_sys_large_files" != no; then
21334
21335cat >>confdefs.h <<_ACEOF
21336#define _LARGE_FILES $ac_cv_sys_large_files
21337_ACEOF
21338
21339fi
21340rm -f conftest*
21341fi
21342
21343
21344# check for ANSI C headers
21345echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21346echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21347if test "${ac_cv_header_stdc+set}" = set; then
21348  echo $ECHO_N "(cached) $ECHO_C" >&6
21349else
21350  cat >conftest.$ac_ext <<_ACEOF
21351/* confdefs.h.  */
21352_ACEOF
21353cat confdefs.h >>conftest.$ac_ext
21354cat >>conftest.$ac_ext <<_ACEOF
21355/* end confdefs.h.  */
21356#include <stdlib.h>
21357#include <stdarg.h>
21358#include <string.h>
21359#include <float.h>
21360
21361int
21362main ()
21363{
21364
21365  ;
21366  return 0;
21367}
21368_ACEOF
21369rm -f conftest.$ac_objext
21370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21371  (eval $ac_compile) 2>conftest.er1
21372  ac_status=$?
21373  grep -v '^ *+' conftest.er1 >conftest.err
21374  rm -f conftest.er1
21375  cat conftest.err >&5
21376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377  (exit $ac_status); } &&
21378	 { ac_try='test -z "$ac_c_werror_flag"
21379			 || test ! -s conftest.err'
21380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21381  (eval $ac_try) 2>&5
21382  ac_status=$?
21383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384  (exit $ac_status); }; } &&
21385	 { ac_try='test -s conftest.$ac_objext'
21386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21387  (eval $ac_try) 2>&5
21388  ac_status=$?
21389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390  (exit $ac_status); }; }; then
21391  ac_cv_header_stdc=yes
21392else
21393  echo "$as_me: failed program was:" >&5
21394sed 's/^/| /' conftest.$ac_ext >&5
21395
21396ac_cv_header_stdc=no
21397fi
21398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21399
21400if test $ac_cv_header_stdc = yes; then
21401  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21402  cat >conftest.$ac_ext <<_ACEOF
21403/* confdefs.h.  */
21404_ACEOF
21405cat confdefs.h >>conftest.$ac_ext
21406cat >>conftest.$ac_ext <<_ACEOF
21407/* end confdefs.h.  */
21408#include <string.h>
21409
21410_ACEOF
21411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21412  $EGREP "memchr" >/dev/null 2>&1; then
21413  :
21414else
21415  ac_cv_header_stdc=no
21416fi
21417rm -f conftest*
21418
21419fi
21420
21421if test $ac_cv_header_stdc = yes; then
21422  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21423  cat >conftest.$ac_ext <<_ACEOF
21424/* confdefs.h.  */
21425_ACEOF
21426cat confdefs.h >>conftest.$ac_ext
21427cat >>conftest.$ac_ext <<_ACEOF
21428/* end confdefs.h.  */
21429#include <stdlib.h>
21430
21431_ACEOF
21432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21433  $EGREP "free" >/dev/null 2>&1; then
21434  :
21435else
21436  ac_cv_header_stdc=no
21437fi
21438rm -f conftest*
21439
21440fi
21441
21442if test $ac_cv_header_stdc = yes; then
21443  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21444  if test "$cross_compiling" = yes; then
21445  :
21446else
21447  cat >conftest.$ac_ext <<_ACEOF
21448/* confdefs.h.  */
21449_ACEOF
21450cat confdefs.h >>conftest.$ac_ext
21451cat >>conftest.$ac_ext <<_ACEOF
21452/* end confdefs.h.  */
21453#include <ctype.h>
21454#if ((' ' & 0x0FF) == 0x020)
21455# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21456# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21457#else
21458# define ISLOWER(c) \
21459		   (('a' <= (c) && (c) <= 'i') \
21460		     || ('j' <= (c) && (c) <= 'r') \
21461		     || ('s' <= (c) && (c) <= 'z'))
21462# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21463#endif
21464
21465#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21466int
21467main ()
21468{
21469  int i;
21470  for (i = 0; i < 256; i++)
21471    if (XOR (islower (i), ISLOWER (i))
21472	|| toupper (i) != TOUPPER (i))
21473      exit(2);
21474  exit (0);
21475}
21476_ACEOF
21477rm -f conftest$ac_exeext
21478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21479  (eval $ac_link) 2>&5
21480  ac_status=$?
21481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21484  (eval $ac_try) 2>&5
21485  ac_status=$?
21486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487  (exit $ac_status); }; }; then
21488  :
21489else
21490  echo "$as_me: program exited with status $ac_status" >&5
21491echo "$as_me: failed program was:" >&5
21492sed 's/^/| /' conftest.$ac_ext >&5
21493
21494( exit $ac_status )
21495ac_cv_header_stdc=no
21496fi
21497rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21498fi
21499fi
21500fi
21501echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21502echo "${ECHO_T}$ac_cv_header_stdc" >&6
21503if test $ac_cv_header_stdc = yes; then
21504
21505cat >>confdefs.h <<\_ACEOF
21506#define STDC_HEADERS 1
21507_ACEOF
21508
21509fi
21510
21511if test $ac_cv_header_stdc != yes; then
21512	{ { echo "$as_me:$LINENO: error: ANSI C headers not present" >&5
21513echo "$as_me: error: ANSI C headers not present" >&2;}
21514   { (exit 1); exit 1; }; }
21515fi
21516
21517### mandatory libraries and programs
21518
21519
21520  succeeded=no
21521
21522  if test -z "$PKG_CONFIG"; then
21523    # Extract the first word of "pkg-config", so it can be a program name with args.
21524set dummy pkg-config; ac_word=$2
21525echo "$as_me:$LINENO: checking for $ac_word" >&5
21526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21527if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21528  echo $ECHO_N "(cached) $ECHO_C" >&6
21529else
21530  case $PKG_CONFIG in
21531  [\\/]* | ?:[\\/]*)
21532  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21533  ;;
21534  *)
21535  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21536for as_dir in $PATH
21537do
21538  IFS=$as_save_IFS
21539  test -z "$as_dir" && as_dir=.
21540  for ac_exec_ext in '' $ac_executable_extensions; do
21541  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21542    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21543    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21544    break 2
21545  fi
21546done
21547done
21548
21549  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21550  ;;
21551esac
21552fi
21553PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21554
21555if test -n "$PKG_CONFIG"; then
21556  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21557echo "${ECHO_T}$PKG_CONFIG" >&6
21558else
21559  echo "$as_me:$LINENO: result: no" >&5
21560echo "${ECHO_T}no" >&6
21561fi
21562
21563  fi
21564
21565  if test "$PKG_CONFIG" = "no" ; then
21566     echo "*** The pkg-config script could not be found. Make sure it is"
21567     echo "*** in your path, or set the PKG_CONFIG environment variable"
21568     echo "*** to the full path to pkg-config."
21569     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21570  else
21571     PKG_CONFIG_MIN_VERSION=0.9.0
21572     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21573        echo "$as_me:$LINENO: checking for gobject-2.0 >= 2.4.0 gmodule-2.0 >= 2.4.0 gthread-2.0 >= 2.4.0" >&5
21574echo $ECHO_N "checking for gobject-2.0 >= 2.4.0 gmodule-2.0 >= 2.4.0 gthread-2.0 >= 2.4.0... $ECHO_C" >&6
21575
21576        if $PKG_CONFIG --exists "gobject-2.0 >= 2.4.0 gmodule-2.0 >= 2.4.0 gthread-2.0 >= 2.4.0" ; then
21577            echo "$as_me:$LINENO: result: yes" >&5
21578echo "${ECHO_T}yes" >&6
21579            succeeded=yes
21580
21581            echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
21582echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
21583            GLIB_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.4.0 gmodule-2.0 >= 2.4.0 gthread-2.0 >= 2.4.0"`
21584            echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
21585echo "${ECHO_T}$GLIB_CFLAGS" >&6
21586
21587            echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
21588echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
21589            GLIB_LIBS=`$PKG_CONFIG --libs "gobject-2.0 >= 2.4.0 gmodule-2.0 >= 2.4.0 gthread-2.0 >= 2.4.0"`
21590            echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
21591echo "${ECHO_T}$GLIB_LIBS" >&6
21592        else
21593            GLIB_CFLAGS=""
21594            GLIB_LIBS=""
21595            ## If we have a custom action on failure, don't print errors, but
21596            ## do set a variable so people can do so.
21597            GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gobject-2.0 >= 2.4.0 gmodule-2.0 >= 2.4.0 gthread-2.0 >= 2.4.0"`
21598
21599        fi
21600
21601
21602
21603     else
21604        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21605        echo "*** See http://www.freedesktop.org/software/pkgconfig"
21606     fi
21607  fi
21608
21609  if test $succeeded = yes; then
21610     :
21611  else
21612     { { echo "$as_me:$LINENO: error: unable to find the GLib libraries" >&5
21613echo "$as_me: error: unable to find the GLib libraries" >&2;}
21614   { (exit 1); exit 1; }; }
21615  fi
21616
21617
21618# not needed by end users
21619
21620
21621# Check whether --with-html-dir or --without-html-dir was given.
21622if test "${with_html_dir+set}" = set; then
21623  withval="$with_html_dir"
21624
21625else
21626  with_html_dir='${datadir}/gtk-doc/html'
21627fi;
21628  HTML_DIR="$with_html_dir"
21629
21630
21631    # Check whether --enable-gtk-doc or --disable-gtk-doc was given.
21632if test "${enable_gtk_doc+set}" = set; then
21633  enableval="$enable_gtk_doc"
21634
21635else
21636  enable_gtk_doc=no
21637fi;
21638
21639  have_gtk_doc=no
21640  if test x$enable_gtk_doc = xyes; then
21641    if test -z "$PKG_CONFIG"; then
21642      # Extract the first word of "pkg-config", so it can be a program name with args.
21643set dummy pkg-config; ac_word=$2
21644echo "$as_me:$LINENO: checking for $ac_word" >&5
21645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21646if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21647  echo $ECHO_N "(cached) $ECHO_C" >&6
21648else
21649  case $PKG_CONFIG in
21650  [\\/]* | ?:[\\/]*)
21651  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21652  ;;
21653  *)
21654  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21655for as_dir in $PATH
21656do
21657  IFS=$as_save_IFS
21658  test -z "$as_dir" && as_dir=.
21659  for ac_exec_ext in '' $ac_executable_extensions; do
21660  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21661    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21662    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21663    break 2
21664  fi
21665done
21666done
21667
21668  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21669  ;;
21670esac
21671fi
21672PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21673
21674if test -n "$PKG_CONFIG"; then
21675  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21676echo "${ECHO_T}$PKG_CONFIG" >&6
21677else
21678  echo "$as_me:$LINENO: result: no" >&5
21679echo "${ECHO_T}no" >&6
21680fi
21681
21682    fi
21683    if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
21684      have_gtk_doc=yes
21685    fi
21686
21687  gtk_doc_min_version=1.0
21688    if test "$have_gtk_doc" = yes; then
21689      echo "$as_me:$LINENO: checking gtk-doc version >= $gtk_doc_min_version" >&5
21690echo $ECHO_N "checking gtk-doc version >= $gtk_doc_min_version... $ECHO_C" >&6
21691      if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
21692        echo "$as_me:$LINENO: result: yes" >&5
21693echo "${ECHO_T}yes" >&6
21694      else
21695        echo "$as_me:$LINENO: result: no" >&5
21696echo "${ECHO_T}no" >&6
21697        have_gtk_doc=no
21698      fi
21699    fi
21700
21701    if test "$have_gtk_doc" != yes; then
21702      enable_gtk_doc=no
21703    fi
21704  fi
21705
21706
21707
21708if test x$enable_gtk_doc = xyes; then
21709  ENABLE_GTK_DOC_TRUE=
21710  ENABLE_GTK_DOC_FALSE='#'
21711else
21712  ENABLE_GTK_DOC_TRUE='#'
21713  ENABLE_GTK_DOC_FALSE=
21714fi
21715
21716
21717
21718if test -n "$LIBTOOL"; then
21719  GTK_DOC_USE_LIBTOOL_TRUE=
21720  GTK_DOC_USE_LIBTOOL_FALSE='#'
21721else
21722  GTK_DOC_USE_LIBTOOL_TRUE='#'
21723  GTK_DOC_USE_LIBTOOL_FALSE=
21724fi
21725
21726
21727
21728### optional libraries
21729
21730if test $enable_generic = yes; then
21731
21732  succeeded=no
21733
21734  if test -z "$PKG_CONFIG"; then
21735    # Extract the first word of "pkg-config", so it can be a program name with args.
21736set dummy pkg-config; ac_word=$2
21737echo "$as_me:$LINENO: checking for $ac_word" >&5
21738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21739if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21740  echo $ECHO_N "(cached) $ECHO_C" >&6
21741else
21742  case $PKG_CONFIG in
21743  [\\/]* | ?:[\\/]*)
21744  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21745  ;;
21746  *)
21747  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21748for as_dir in $PATH
21749do
21750  IFS=$as_save_IFS
21751  test -z "$as_dir" && as_dir=.
21752  for ac_exec_ext in '' $ac_executable_extensions; do
21753  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21754    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21755    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21756    break 2
21757  fi
21758done
21759done
21760
21761  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21762  ;;
21763esac
21764fi
21765PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21766
21767if test -n "$PKG_CONFIG"; then
21768  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21769echo "${ECHO_T}$PKG_CONFIG" >&6
21770else
21771  echo "$as_me:$LINENO: result: no" >&5
21772echo "${ECHO_T}no" >&6
21773fi
21774
21775  fi
21776
21777  if test "$PKG_CONFIG" = "no" ; then
21778     echo "*** The pkg-config script could not be found. Make sure it is"
21779     echo "*** in your path, or set the PKG_CONFIG environment variable"
21780     echo "*** to the full path to pkg-config."
21781     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21782  else
21783     PKG_CONFIG_MIN_VERSION=0.9.0
21784     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21785        echo "$as_me:$LINENO: checking for libsoup-2.4" >&5
21786echo $ECHO_N "checking for libsoup-2.4... $ECHO_C" >&6
21787
21788        if $PKG_CONFIG --exists "libsoup-2.4" ; then
21789            echo "$as_me:$LINENO: result: yes" >&5
21790echo "${ECHO_T}yes" >&6
21791            succeeded=yes
21792
21793            echo "$as_me:$LINENO: checking SOUP_CFLAGS" >&5
21794echo $ECHO_N "checking SOUP_CFLAGS... $ECHO_C" >&6
21795            SOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4"`
21796            echo "$as_me:$LINENO: result: $SOUP_CFLAGS" >&5
21797echo "${ECHO_T}$SOUP_CFLAGS" >&6
21798
21799            echo "$as_me:$LINENO: checking SOUP_LIBS" >&5
21800echo $ECHO_N "checking SOUP_LIBS... $ECHO_C" >&6
21801            SOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4"`
21802            echo "$as_me:$LINENO: result: $SOUP_LIBS" >&5
21803echo "${ECHO_T}$SOUP_LIBS" >&6
21804        else
21805            SOUP_CFLAGS=""
21806            SOUP_LIBS=""
21807            ## If we have a custom action on failure, don't print errors, but
21808            ## do set a variable so people can do so.
21809            SOUP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-2.4"`
21810
21811        fi
21812
21813
21814
21815     else
21816        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21817        echo "*** See http://www.freedesktop.org/software/pkgconfig"
21818     fi
21819  fi
21820
21821  if test $succeeded = yes; then
21822     :
21823  else
21824     { echo "$as_me:$LINENO: libsoup not found: forcing --disable-generic" >&5
21825echo "$as_me: libsoup not found: forcing --disable-generic" >&6;}
21826enable_generic=no
21827disable_generic_reason="(libsoup not found)"
21828  fi
21829
21830fi
21831if test $enable_generic = yes; then
21832
21833  succeeded=no
21834
21835  if test -z "$PKG_CONFIG"; then
21836    # Extract the first word of "pkg-config", so it can be a program name with args.
21837set dummy pkg-config; ac_word=$2
21838echo "$as_me:$LINENO: checking for $ac_word" >&5
21839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21840if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21841  echo $ECHO_N "(cached) $ECHO_C" >&6
21842else
21843  case $PKG_CONFIG in
21844  [\\/]* | ?:[\\/]*)
21845  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21846  ;;
21847  *)
21848  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21849for as_dir in $PATH
21850do
21851  IFS=$as_save_IFS
21852  test -z "$as_dir" && as_dir=.
21853  for ac_exec_ext in '' $ac_executable_extensions; do
21854  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21855    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21856    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21857    break 2
21858  fi
21859done
21860done
21861
21862  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21863  ;;
21864esac
21865fi
21866PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21867
21868if test -n "$PKG_CONFIG"; then
21869  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21870echo "${ECHO_T}$PKG_CONFIG" >&6
21871else
21872  echo "$as_me:$LINENO: result: no" >&5
21873echo "${ECHO_T}no" >&6
21874fi
21875
21876  fi
21877
21878  if test "$PKG_CONFIG" = "no" ; then
21879     echo "*** The pkg-config script could not be found. Make sure it is"
21880     echo "*** in your path, or set the PKG_CONFIG environment variable"
21881     echo "*** to the full path to pkg-config."
21882     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21883  else
21884     PKG_CONFIG_MIN_VERSION=0.9.0
21885     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21886        echo "$as_me:$LINENO: checking for libxml-2.0" >&5
21887echo $ECHO_N "checking for libxml-2.0... $ECHO_C" >&6
21888
21889        if $PKG_CONFIG --exists "libxml-2.0" ; then
21890            echo "$as_me:$LINENO: result: yes" >&5
21891echo "${ECHO_T}yes" >&6
21892            succeeded=yes
21893
21894            echo "$as_me:$LINENO: checking LIBXML_CFLAGS" >&5
21895echo $ECHO_N "checking LIBXML_CFLAGS... $ECHO_C" >&6
21896            LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0"`
21897            echo "$as_me:$LINENO: result: $LIBXML_CFLAGS" >&5
21898echo "${ECHO_T}$LIBXML_CFLAGS" >&6
21899
21900            echo "$as_me:$LINENO: checking LIBXML_LIBS" >&5
21901echo $ECHO_N "checking LIBXML_LIBS... $ECHO_C" >&6
21902            LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0"`
21903            echo "$as_me:$LINENO: result: $LIBXML_LIBS" >&5
21904echo "${ECHO_T}$LIBXML_LIBS" >&6
21905        else
21906            LIBXML_CFLAGS=""
21907            LIBXML_LIBS=""
21908            ## If we have a custom action on failure, don't print errors, but
21909            ## do set a variable so people can do so.
21910            LIBXML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0"`
21911
21912        fi
21913
21914
21915
21916     else
21917        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21918        echo "*** See http://www.freedesktop.org/software/pkgconfig"
21919     fi
21920  fi
21921
21922  if test $succeeded = yes; then
21923     :
21924  else
21925     { echo "$as_me:$LINENO: libxml not found: forcing --disable-generic" >&5
21926echo "$as_me: libxml not found: forcing --disable-generic" >&6;}
21927enable_generic=no
21928disable_generic_reason="(libxml not found)"
21929  fi
21930
21931fi
21932
21933if test $enable_talkfilters = yes; then
21934	TALKFILTERS_CFLAGS=""
21935TALKFILTERS_LIBS="-ltalkfilters"
21936
21937ac_save_CFLAGS="$CFLAGS"
21938ac_save_LIBS="$LIBS"
21939CFLAGS="$CFLAGS $TALKFILTERS_CFLAGS"
21940LIBS="$LIBS $TALKFILTERS_LIBS"
21941
21942echo "$as_me:$LINENO: checking for GNU Talk Filters" >&5
21943echo $ECHO_N "checking for GNU Talk Filters... $ECHO_C" >&6
21944if test "$cross_compiling" = yes; then
21945  found=yes
21946else
21947  cat >conftest.$ac_ext <<_ACEOF
21948
21949#include <talkfilters.h>
21950
21951int main() {
21952  gtf_filter_list;
21953
21954  exit(0);
21955}
21956
21957_ACEOF
21958rm -f conftest$ac_exeext
21959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21960  (eval $ac_link) 2>&5
21961  ac_status=$?
21962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21965  (eval $ac_try) 2>&5
21966  ac_status=$?
21967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968  (exit $ac_status); }; }; then
21969  found=yes
21970else
21971  echo "$as_me: program exited with status $ac_status" >&5
21972echo "$as_me: failed program was:" >&5
21973sed 's/^/| /' conftest.$ac_ext >&5
21974
21975( exit $ac_status )
21976found=no
21977fi
21978rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21979fi
21980echo "$as_me:$LINENO: result: $found" >&5
21981echo "${ECHO_T}$found" >&6
21982
21983CFLAGS="$ac_save_CFLAGS"
21984LIBS="$ac_save_LIBS"
21985
21986if test $found = yes; then
21987	:
21988else
21989	TALKFILTERS_CFLAGS=""
21990	TALKFILTERS_LIBS=""
21991	{ echo "$as_me:$LINENO: GNU Talk Filters not found: forcing --disable-talkfilters" >&5
21992echo "$as_me: GNU Talk Filters not found: forcing --disable-talkfilters" >&6;}
21993enable_talkfilters=no
21994disable_talkfilters_reason="(GNU Talk Filters not found)"
21995fi
21996
21997
21998
21999fi
22000
22001### Automake conditionals
22002
22003
22004
22005if test $enable_generic = yes; then
22006  WITH_GENERIC_TRUE=
22007  WITH_GENERIC_FALSE='#'
22008else
22009  WITH_GENERIC_TRUE='#'
22010  WITH_GENERIC_FALSE=
22011fi
22012
22013
22014
22015if test $enable_talkfilters = yes; then
22016  WITH_TALKFILTERS_TRUE=
22017  WITH_TALKFILTERS_FALSE='#'
22018else
22019  WITH_TALKFILTERS_TRUE='#'
22020  WITH_TALKFILTERS_FALSE=
22021fi
22022
22023
22024
22025if test $enable_regression_tests = yes; then
22026  WITH_REGRESSION_TESTS_TRUE=
22027  WITH_REGRESSION_TESTS_FALSE='#'
22028else
22029  WITH_REGRESSION_TESTS_TRUE='#'
22030  WITH_REGRESSION_TESTS_FALSE=
22031fi
22032
22033
22034### output
22035
22036                                                                                                                        ac_config_files="$ac_config_files Makefile data/Makefile data/libtranslate.pc docs/Makefile docs/man/Makefile docs/man/version.xml docs/reference/Makefile docs/reference/version.xml m4/Makefile po/Makefile.in src/Makefile src/modules/Makefile"
22037
22038cat >confcache <<\_ACEOF
22039# This file is a shell script that caches the results of configure
22040# tests run on this system so they can be shared between configure
22041# scripts and configure runs, see configure's option --config-cache.
22042# It is not useful on other systems.  If it contains results you don't
22043# want to keep, you may remove or edit it.
22044#
22045# config.status only pays attention to the cache file if you give it
22046# the --recheck option to rerun configure.
22047#
22048# `ac_cv_env_foo' variables (set or unset) will be overridden when
22049# loading this file, other *unset* `ac_cv_foo' will be assigned the
22050# following values.
22051
22052_ACEOF
22053
22054# The following way of writing the cache mishandles newlines in values,
22055# but we know of no workaround that is simple, portable, and efficient.
22056# So, don't put newlines in cache variables' values.
22057# Ultrix sh set writes to stderr and can't be redirected directly,
22058# and sets the high bit in the cache file unless we assign to the vars.
22059{
22060  (set) 2>&1 |
22061    case `(ac_space=' '; set | grep ac_space) 2>&1` in
22062    *ac_space=\ *)
22063      # `set' does not quote correctly, so add quotes (double-quote
22064      # substitution turns \\\\ into \\, and sed turns \\ into \).
22065      sed -n \
22066	"s/'/'\\\\''/g;
22067	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22068      ;;
22069    *)
22070      # `set' quotes correctly as required by POSIX, so do not add quotes.
22071      sed -n \
22072	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22073      ;;
22074    esac;
22075} |
22076  sed '
22077     t clear
22078     : clear
22079     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22080     t end
22081     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22082     : end' >>confcache
22083if diff $cache_file confcache >/dev/null 2>&1; then :; else
22084  if test -w $cache_file; then
22085    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22086    cat confcache >$cache_file
22087  else
22088    echo "not updating unwritable cache $cache_file"
22089  fi
22090fi
22091rm -f confcache
22092
22093test "x$prefix" = xNONE && prefix=$ac_default_prefix
22094# Let make expand exec_prefix.
22095test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22096
22097# VPATH may cause trouble with some makes, so we remove $(srcdir),
22098# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22099# trailing colons and then remove the whole line if VPATH becomes empty
22100# (actually we leave an empty line to preserve line numbers).
22101if test "x$srcdir" = x.; then
22102  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22103s/:*\$(srcdir):*/:/;
22104s/:*\${srcdir}:*/:/;
22105s/:*@srcdir@:*/:/;
22106s/^\([^=]*=[	 ]*\):*/\1/;
22107s/:*$//;
22108s/^[^=]*=[	 ]*$//;
22109}'
22110fi
22111
22112DEFS=-DHAVE_CONFIG_H
22113
22114ac_libobjs=
22115ac_ltlibobjs=
22116for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22117  # 1. Remove the extension, and $U if already installed.
22118  ac_i=`echo "$ac_i" |
22119	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22120  # 2. Add them.
22121  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22122  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22123done
22124LIBOBJS=$ac_libobjs
22125
22126LTLIBOBJS=$ac_ltlibobjs
22127
22128
22129if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22130  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22131Usually this means the macro was only invoked conditionally." >&5
22132echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22133Usually this means the macro was only invoked conditionally." >&2;}
22134   { (exit 1); exit 1; }; }
22135fi
22136if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22137  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22138Usually this means the macro was only invoked conditionally." >&5
22139echo "$as_me: error: conditional \"AMDEP\" was never defined.
22140Usually this means the macro was only invoked conditionally." >&2;}
22141   { (exit 1); exit 1; }; }
22142fi
22143if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22144  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22145Usually this means the macro was only invoked conditionally." >&5
22146echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22147Usually this means the macro was only invoked conditionally." >&2;}
22148   { (exit 1); exit 1; }; }
22149fi
22150if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22151  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22152Usually this means the macro was only invoked conditionally." >&5
22153echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22154Usually this means the macro was only invoked conditionally." >&2;}
22155   { (exit 1); exit 1; }; }
22156fi
22157
22158
22159        mv -f po/POTFILES po/POTFILES.tmp
22160        sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
22161        rm -f po/POTFILES.tmp
22162
22163
22164if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
22165  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
22166Usually this means the macro was only invoked conditionally." >&5
22167echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
22168Usually this means the macro was only invoked conditionally." >&2;}
22169   { (exit 1); exit 1; }; }
22170fi
22171if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
22172  { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
22173Usually this means the macro was only invoked conditionally." >&5
22174echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
22175Usually this means the macro was only invoked conditionally." >&2;}
22176   { (exit 1); exit 1; }; }
22177fi
22178if test -z "${WITH_GENERIC_TRUE}" && test -z "${WITH_GENERIC_FALSE}"; then
22179  { { echo "$as_me:$LINENO: error: conditional \"WITH_GENERIC\" was never defined.
22180Usually this means the macro was only invoked conditionally." >&5
22181echo "$as_me: error: conditional \"WITH_GENERIC\" was never defined.
22182Usually this means the macro was only invoked conditionally." >&2;}
22183   { (exit 1); exit 1; }; }
22184fi
22185if test -z "${WITH_TALKFILTERS_TRUE}" && test -z "${WITH_TALKFILTERS_FALSE}"; then
22186  { { echo "$as_me:$LINENO: error: conditional \"WITH_TALKFILTERS\" was never defined.
22187Usually this means the macro was only invoked conditionally." >&5
22188echo "$as_me: error: conditional \"WITH_TALKFILTERS\" was never defined.
22189Usually this means the macro was only invoked conditionally." >&2;}
22190   { (exit 1); exit 1; }; }
22191fi
22192if test -z "${WITH_REGRESSION_TESTS_TRUE}" && test -z "${WITH_REGRESSION_TESTS_FALSE}"; then
22193  { { echo "$as_me:$LINENO: error: conditional \"WITH_REGRESSION_TESTS\" was never defined.
22194Usually this means the macro was only invoked conditionally." >&5
22195echo "$as_me: error: conditional \"WITH_REGRESSION_TESTS\" was never defined.
22196Usually this means the macro was only invoked conditionally." >&2;}
22197   { (exit 1); exit 1; }; }
22198fi
22199
22200: ${CONFIG_STATUS=./config.status}
22201ac_clean_files_save=$ac_clean_files
22202ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22203{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22204echo "$as_me: creating $CONFIG_STATUS" >&6;}
22205cat >$CONFIG_STATUS <<_ACEOF
22206#! $SHELL
22207# Generated by $as_me.
22208# Run this file to recreate the current configuration.
22209# Compiler output produced by configure, useful for debugging
22210# configure, is in config.log if it exists.
22211
22212debug=false
22213ac_cs_recheck=false
22214ac_cs_silent=false
22215SHELL=\${CONFIG_SHELL-$SHELL}
22216_ACEOF
22217
22218cat >>$CONFIG_STATUS <<\_ACEOF
22219## --------------------- ##
22220## M4sh Initialization.  ##
22221## --------------------- ##
22222
22223# Be Bourne compatible
22224if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22225  emulate sh
22226  NULLCMD=:
22227  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22228  # is contrary to our usage.  Disable this feature.
22229  alias -g '${1+"$@"}'='"$@"'
22230elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22231  set -o posix
22232fi
22233DUALCASE=1; export DUALCASE # for MKS sh
22234
22235# Support unset when possible.
22236if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22237  as_unset=unset
22238else
22239  as_unset=false
22240fi
22241
22242
22243# Work around bugs in pre-3.0 UWIN ksh.
22244$as_unset ENV MAIL MAILPATH
22245PS1='$ '
22246PS2='> '
22247PS4='+ '
22248
22249# NLS nuisances.
22250for as_var in \
22251  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22252  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22253  LC_TELEPHONE LC_TIME
22254do
22255  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22256    eval $as_var=C; export $as_var
22257  else
22258    $as_unset $as_var
22259  fi
22260done
22261
22262# Required to use basename.
22263if expr a : '\(a\)' >/dev/null 2>&1; then
22264  as_expr=expr
22265else
22266  as_expr=false
22267fi
22268
22269if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22270  as_basename=basename
22271else
22272  as_basename=false
22273fi
22274
22275
22276# Name of the executable.
22277as_me=`$as_basename "$0" ||
22278$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22279	 X"$0" : 'X\(//\)$' \| \
22280	 X"$0" : 'X\(/\)$' \| \
22281	 .     : '\(.\)' 2>/dev/null ||
22282echo X/"$0" |
22283    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22284  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
22285  	  /^X\/\(\/\).*/{ s//\1/; q; }
22286  	  s/.*/./; q'`
22287
22288
22289# PATH needs CR, and LINENO needs CR and PATH.
22290# Avoid depending upon Character Ranges.
22291as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22292as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22293as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22294as_cr_digits='0123456789'
22295as_cr_alnum=$as_cr_Letters$as_cr_digits
22296
22297# The user is always right.
22298if test "${PATH_SEPARATOR+set}" != set; then
22299  echo "#! /bin/sh" >conf$$.sh
22300  echo  "exit 0"   >>conf$$.sh
22301  chmod +x conf$$.sh
22302  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22303    PATH_SEPARATOR=';'
22304  else
22305    PATH_SEPARATOR=:
22306  fi
22307  rm -f conf$$.sh
22308fi
22309
22310
22311  as_lineno_1=$LINENO
22312  as_lineno_2=$LINENO
22313  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22314  test "x$as_lineno_1" != "x$as_lineno_2" &&
22315  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22316  # Find who we are.  Look in the path if we contain no path at all
22317  # relative or not.
22318  case $0 in
22319    *[\\/]* ) as_myself=$0 ;;
22320    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22321for as_dir in $PATH
22322do
22323  IFS=$as_save_IFS
22324  test -z "$as_dir" && as_dir=.
22325  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22326done
22327
22328       ;;
22329  esac
22330  # We did not find ourselves, most probably we were run as `sh COMMAND'
22331  # in which case we are not to be found in the path.
22332  if test "x$as_myself" = x; then
22333    as_myself=$0
22334  fi
22335  if test ! -f "$as_myself"; then
22336    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22337echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22338   { (exit 1); exit 1; }; }
22339  fi
22340  case $CONFIG_SHELL in
22341  '')
22342    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22343for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22344do
22345  IFS=$as_save_IFS
22346  test -z "$as_dir" && as_dir=.
22347  for as_base in sh bash ksh sh5; do
22348	 case $as_dir in
22349	 /*)
22350	   if ("$as_dir/$as_base" -c '
22351  as_lineno_1=$LINENO
22352  as_lineno_2=$LINENO
22353  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22354  test "x$as_lineno_1" != "x$as_lineno_2" &&
22355  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22356	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22357	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22358	     CONFIG_SHELL=$as_dir/$as_base
22359	     export CONFIG_SHELL
22360	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22361	   fi;;
22362	 esac
22363       done
22364done
22365;;
22366  esac
22367
22368  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22369  # uniformly replaced by the line number.  The first 'sed' inserts a
22370  # line-number line before each line; the second 'sed' does the real
22371  # work.  The second script uses 'N' to pair each line-number line
22372  # with the numbered line, and appends trailing '-' during
22373  # substitution so that $LINENO is not a special case at line end.
22374  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22375  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22376  sed '=' <$as_myself |
22377    sed '
22378      N
22379      s,$,-,
22380      : loop
22381      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22382      t loop
22383      s,-$,,
22384      s,^['$as_cr_digits']*\n,,
22385    ' >$as_me.lineno &&
22386  chmod +x $as_me.lineno ||
22387    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22388echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22389   { (exit 1); exit 1; }; }
22390
22391  # Don't try to exec as it changes $[0], causing all sort of problems
22392  # (the dirname of $[0] is not the place where we might find the
22393  # original and so on.  Autoconf is especially sensible to this).
22394  . ./$as_me.lineno
22395  # Exit status is that of the last command.
22396  exit
22397}
22398
22399
22400case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22401  *c*,-n*) ECHO_N= ECHO_C='
22402' ECHO_T='	' ;;
22403  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22404  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22405esac
22406
22407if expr a : '\(a\)' >/dev/null 2>&1; then
22408  as_expr=expr
22409else
22410  as_expr=false
22411fi
22412
22413rm -f conf$$ conf$$.exe conf$$.file
22414echo >conf$$.file
22415if ln -s conf$$.file conf$$ 2>/dev/null; then
22416  # We could just check for DJGPP; but this test a) works b) is more generic
22417  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22418  if test -f conf$$.exe; then
22419    # Don't use ln at all; we don't have any links
22420    as_ln_s='cp -p'
22421  else
22422    as_ln_s='ln -s'
22423  fi
22424elif ln conf$$.file conf$$ 2>/dev/null; then
22425  as_ln_s=ln
22426else
22427  as_ln_s='cp -p'
22428fi
22429rm -f conf$$ conf$$.exe conf$$.file
22430
22431if mkdir -p . 2>/dev/null; then
22432  as_mkdir_p=:
22433else
22434  test -d ./-p && rmdir ./-p
22435  as_mkdir_p=false
22436fi
22437
22438as_executable_p="test -f"
22439
22440# Sed expression to map a string onto a valid CPP name.
22441as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22442
22443# Sed expression to map a string onto a valid variable name.
22444as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22445
22446
22447# IFS
22448# We need space, tab and new line, in precisely that order.
22449as_nl='
22450'
22451IFS=" 	$as_nl"
22452
22453# CDPATH.
22454$as_unset CDPATH
22455
22456exec 6>&1
22457
22458# Open the log real soon, to keep \$[0] and so on meaningful, and to
22459# report actual input values of CONFIG_FILES etc. instead of their
22460# values after options handling.  Logging --version etc. is OK.
22461exec 5>>config.log
22462{
22463  echo
22464  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22465## Running $as_me. ##
22466_ASBOX
22467} >&5
22468cat >&5 <<_CSEOF
22469
22470This file was extended by libtranslate $as_me 0.99, which was
22471generated by GNU Autoconf 2.59.  Invocation command line was
22472
22473  CONFIG_FILES    = $CONFIG_FILES
22474  CONFIG_HEADERS  = $CONFIG_HEADERS
22475  CONFIG_LINKS    = $CONFIG_LINKS
22476  CONFIG_COMMANDS = $CONFIG_COMMANDS
22477  $ $0 $@
22478
22479_CSEOF
22480echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22481echo >&5
22482_ACEOF
22483
22484# Files that config.status was made for.
22485if test -n "$ac_config_files"; then
22486  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22487fi
22488
22489if test -n "$ac_config_headers"; then
22490  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22491fi
22492
22493if test -n "$ac_config_links"; then
22494  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22495fi
22496
22497if test -n "$ac_config_commands"; then
22498  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22499fi
22500
22501cat >>$CONFIG_STATUS <<\_ACEOF
22502
22503ac_cs_usage="\
22504\`$as_me' instantiates files from templates according to the
22505current configuration.
22506
22507Usage: $0 [OPTIONS] [FILE]...
22508
22509  -h, --help       print this help, then exit
22510  -V, --version    print version number, then exit
22511  -q, --quiet      do not print progress messages
22512  -d, --debug      don't remove temporary files
22513      --recheck    update $as_me by reconfiguring in the same conditions
22514  --file=FILE[:TEMPLATE]
22515		   instantiate the configuration file FILE
22516  --header=FILE[:TEMPLATE]
22517		   instantiate the configuration header FILE
22518
22519Configuration files:
22520$config_files
22521
22522Configuration headers:
22523$config_headers
22524
22525Configuration commands:
22526$config_commands
22527
22528Report bugs to <bug-autoconf@gnu.org>."
22529_ACEOF
22530
22531cat >>$CONFIG_STATUS <<_ACEOF
22532ac_cs_version="\\
22533libtranslate config.status 0.99
22534configured by $0, generated by GNU Autoconf 2.59,
22535  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22536
22537Copyright (C) 2003 Free Software Foundation, Inc.
22538This config.status script is free software; the Free Software Foundation
22539gives unlimited permission to copy, distribute and modify it."
22540srcdir=$srcdir
22541INSTALL="$INSTALL"
22542_ACEOF
22543
22544cat >>$CONFIG_STATUS <<\_ACEOF
22545# If no file are specified by the user, then we need to provide default
22546# value.  By we need to know if files were specified by the user.
22547ac_need_defaults=:
22548while test $# != 0
22549do
22550  case $1 in
22551  --*=*)
22552    ac_option=`expr "x$1" : 'x\([^=]*\)='`
22553    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22554    ac_shift=:
22555    ;;
22556  -*)
22557    ac_option=$1
22558    ac_optarg=$2
22559    ac_shift=shift
22560    ;;
22561  *) # This is not an option, so the user has probably given explicit
22562     # arguments.
22563     ac_option=$1
22564     ac_need_defaults=false;;
22565  esac
22566
22567  case $ac_option in
22568  # Handling of the options.
22569_ACEOF
22570cat >>$CONFIG_STATUS <<\_ACEOF
22571  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22572    ac_cs_recheck=: ;;
22573  --version | --vers* | -V )
22574    echo "$ac_cs_version"; exit 0 ;;
22575  --he | --h)
22576    # Conflict between --help and --header
22577    { { echo "$as_me:$LINENO: error: ambiguous option: $1
22578Try \`$0 --help' for more information." >&5
22579echo "$as_me: error: ambiguous option: $1
22580Try \`$0 --help' for more information." >&2;}
22581   { (exit 1); exit 1; }; };;
22582  --help | --hel | -h )
22583    echo "$ac_cs_usage"; exit 0 ;;
22584  --debug | --d* | -d )
22585    debug=: ;;
22586  --file | --fil | --fi | --f )
22587    $ac_shift
22588    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22589    ac_need_defaults=false;;
22590  --header | --heade | --head | --hea )
22591    $ac_shift
22592    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22593    ac_need_defaults=false;;
22594  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22595  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22596    ac_cs_silent=: ;;
22597
22598  # This is an error.
22599  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22600Try \`$0 --help' for more information." >&5
22601echo "$as_me: error: unrecognized option: $1
22602Try \`$0 --help' for more information." >&2;}
22603   { (exit 1); exit 1; }; } ;;
22604
22605  *) ac_config_targets="$ac_config_targets $1" ;;
22606
22607  esac
22608  shift
22609done
22610
22611ac_configure_extra_args=
22612
22613if $ac_cs_silent; then
22614  exec 6>/dev/null
22615  ac_configure_extra_args="$ac_configure_extra_args --silent"
22616fi
22617
22618_ACEOF
22619cat >>$CONFIG_STATUS <<_ACEOF
22620if \$ac_cs_recheck; then
22621  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22622  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22623fi
22624
22625_ACEOF
22626
22627cat >>$CONFIG_STATUS <<_ACEOF
22628#
22629# INIT-COMMANDS section.
22630#
22631
22632AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22633
22634INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir=${ac_aux_dir}
22635INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' ICONV='${ICONV}'
22636MSGFMT='${MSGFMT}' MSGMERGE='${MSGMERGE}' XGETTEXT='${XGETTEXT}'
22637
22638_ACEOF
22639
22640
22641
22642cat >>$CONFIG_STATUS <<\_ACEOF
22643for ac_config_target in $ac_config_targets
22644do
22645  case "$ac_config_target" in
22646  # Handling of arguments.
22647  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22648  "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
22649  "data/libtranslate.pc" ) CONFIG_FILES="$CONFIG_FILES data/libtranslate.pc" ;;
22650  "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
22651  "docs/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
22652  "docs/man/version.xml" ) CONFIG_FILES="$CONFIG_FILES docs/man/version.xml" ;;
22653  "docs/reference/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
22654  "docs/reference/version.xml" ) CONFIG_FILES="$CONFIG_FILES docs/reference/version.xml" ;;
22655  "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
22656  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22657  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22658  "src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
22659  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22660  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
22661  "intltool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
22662  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22663  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22664echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22665   { (exit 1); exit 1; }; };;
22666  esac
22667done
22668
22669# If the user did not use the arguments to specify the items to instantiate,
22670# then the envvar interface is used.  Set only those that are not.
22671# We use the long form for the default assignment because of an extremely
22672# bizarre bug on SunOS 4.1.3.
22673if $ac_need_defaults; then
22674  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22675  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22676  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22677fi
22678
22679# Have a temporary directory for convenience.  Make it in the build tree
22680# simply because there is no reason to put it here, and in addition,
22681# creating and moving files from /tmp can sometimes cause problems.
22682# Create a temporary directory, and hook for its removal unless debugging.
22683$debug ||
22684{
22685  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22686  trap '{ (exit 1); exit 1; }' 1 2 13 15
22687}
22688
22689# Create a (secure) tmp directory for tmp files.
22690
22691{
22692  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22693  test -n "$tmp" && test -d "$tmp"
22694}  ||
22695{
22696  tmp=./confstat$$-$RANDOM
22697  (umask 077 && mkdir $tmp)
22698} ||
22699{
22700   echo "$me: cannot create a temporary directory in ." >&2
22701   { (exit 1); exit 1; }
22702}
22703
22704_ACEOF
22705
22706cat >>$CONFIG_STATUS <<_ACEOF
22707
22708#
22709# CONFIG_FILES section.
22710#
22711
22712# No need to generate the scripts if there are no CONFIG_FILES.
22713# This happens for instance when ./config.status config.h
22714if test -n "\$CONFIG_FILES"; then
22715  # Protect against being on the right side of a sed subst in config.status.
22716  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22717   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22718s,@SHELL@,$SHELL,;t t
22719s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22720s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22721s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22722s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22723s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22724s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22725s,@exec_prefix@,$exec_prefix,;t t
22726s,@prefix@,$prefix,;t t
22727s,@program_transform_name@,$program_transform_name,;t t
22728s,@bindir@,$bindir,;t t
22729s,@sbindir@,$sbindir,;t t
22730s,@libexecdir@,$libexecdir,;t t
22731s,@datadir@,$datadir,;t t
22732s,@sysconfdir@,$sysconfdir,;t t
22733s,@sharedstatedir@,$sharedstatedir,;t t
22734s,@localstatedir@,$localstatedir,;t t
22735s,@libdir@,$libdir,;t t
22736s,@includedir@,$includedir,;t t
22737s,@oldincludedir@,$oldincludedir,;t t
22738s,@infodir@,$infodir,;t t
22739s,@mandir@,$mandir,;t t
22740s,@build_alias@,$build_alias,;t t
22741s,@host_alias@,$host_alias,;t t
22742s,@target_alias@,$target_alias,;t t
22743s,@DEFS@,$DEFS,;t t
22744s,@ECHO_C@,$ECHO_C,;t t
22745s,@ECHO_N@,$ECHO_N,;t t
22746s,@ECHO_T@,$ECHO_T,;t t
22747s,@LIBS@,$LIBS,;t t
22748s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22749s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22750s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22751s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22752s,@CYGPATH_W@,$CYGPATH_W,;t t
22753s,@PACKAGE@,$PACKAGE,;t t
22754s,@VERSION@,$VERSION,;t t
22755s,@ACLOCAL@,$ACLOCAL,;t t
22756s,@AUTOCONF@,$AUTOCONF,;t t
22757s,@AUTOMAKE@,$AUTOMAKE,;t t
22758s,@AUTOHEADER@,$AUTOHEADER,;t t
22759s,@MAKEINFO@,$MAKEINFO,;t t
22760s,@install_sh@,$install_sh,;t t
22761s,@STRIP@,$STRIP,;t t
22762s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22763s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22764s,@mkdir_p@,$mkdir_p,;t t
22765s,@AWK@,$AWK,;t t
22766s,@SET_MAKE@,$SET_MAKE,;t t
22767s,@am__leading_dot@,$am__leading_dot,;t t
22768s,@AMTAR@,$AMTAR,;t t
22769s,@am__tar@,$am__tar,;t t
22770s,@am__untar@,$am__untar,;t t
22771s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22772s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22773s,@MAINT@,$MAINT,;t t
22774s,@build@,$build,;t t
22775s,@build_cpu@,$build_cpu,;t t
22776s,@build_vendor@,$build_vendor,;t t
22777s,@build_os@,$build_os,;t t
22778s,@host@,$host,;t t
22779s,@host_cpu@,$host_cpu,;t t
22780s,@host_vendor@,$host_vendor,;t t
22781s,@host_os@,$host_os,;t t
22782s,@CC@,$CC,;t t
22783s,@CFLAGS@,$CFLAGS,;t t
22784s,@LDFLAGS@,$LDFLAGS,;t t
22785s,@CPPFLAGS@,$CPPFLAGS,;t t
22786s,@ac_ct_CC@,$ac_ct_CC,;t t
22787s,@EXEEXT@,$EXEEXT,;t t
22788s,@OBJEXT@,$OBJEXT,;t t
22789s,@DEPDIR@,$DEPDIR,;t t
22790s,@am__include@,$am__include,;t t
22791s,@am__quote@,$am__quote,;t t
22792s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22793s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22794s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22795s,@CCDEPMODE@,$CCDEPMODE,;t t
22796s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22797s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22798s,@EGREP@,$EGREP,;t t
22799s,@LN_S@,$LN_S,;t t
22800s,@ECHO@,$ECHO,;t t
22801s,@AR@,$AR,;t t
22802s,@ac_ct_AR@,$ac_ct_AR,;t t
22803s,@RANLIB@,$RANLIB,;t t
22804s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22805s,@CPP@,$CPP,;t t
22806s,@CXX@,$CXX,;t t
22807s,@CXXFLAGS@,$CXXFLAGS,;t t
22808s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22809s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22810s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22811s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22812s,@CXXCPP@,$CXXCPP,;t t
22813s,@F77@,$F77,;t t
22814s,@FFLAGS@,$FFLAGS,;t t
22815s,@ac_ct_F77@,$ac_ct_F77,;t t
22816s,@LIBTOOL@,$LIBTOOL,;t t
22817s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
22818s,@USE_NLS@,$USE_NLS,;t t
22819s,@MSGFMT@,$MSGFMT,;t t
22820s,@GMSGFMT@,$GMSGFMT,;t t
22821s,@XGETTEXT@,$XGETTEXT,;t t
22822s,@CATALOGS@,$CATALOGS,;t t
22823s,@CATOBJEXT@,$CATOBJEXT,;t t
22824s,@DATADIRNAME@,$DATADIRNAME,;t t
22825s,@GMOFILES@,$GMOFILES,;t t
22826s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22827s,@INTLLIBS@,$INTLLIBS,;t t
22828s,@PO_IN_DATADIR_TRUE@,$PO_IN_DATADIR_TRUE,;t t
22829s,@PO_IN_DATADIR_FALSE@,$PO_IN_DATADIR_FALSE,;t t
22830s,@POFILES@,$POFILES,;t t
22831s,@POSUB@,$POSUB,;t t
22832s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22833s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
22834s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
22835s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
22836s,@INTLTOOL_PROP_RULE@,$INTLTOOL_PROP_RULE,;t t
22837s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
22838s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
22839s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
22840s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
22841s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
22842s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
22843s,@INTLTOOL_XAM_RULE@,$INTLTOOL_XAM_RULE,;t t
22844s,@INTLTOOL_KBD_RULE@,$INTLTOOL_KBD_RULE,;t t
22845s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
22846s,@INTLTOOL_XML_NOMERGE_RULE@,$INTLTOOL_XML_NOMERGE_RULE,;t t
22847s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
22848s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t
22849s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t
22850s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
22851s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
22852s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
22853s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
22854s,@ICONV@,$ICONV,;t t
22855s,@MSGMERGE@,$MSGMERGE,;t t
22856s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22857s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
22858s,@GLIB_LIBS@,$GLIB_LIBS,;t t
22859s,@HTML_DIR@,$HTML_DIR,;t t
22860s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
22861s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
22862s,@GTK_DOC_USE_LIBTOOL_TRUE@,$GTK_DOC_USE_LIBTOOL_TRUE,;t t
22863s,@GTK_DOC_USE_LIBTOOL_FALSE@,$GTK_DOC_USE_LIBTOOL_FALSE,;t t
22864s,@SOUP_CFLAGS@,$SOUP_CFLAGS,;t t
22865s,@SOUP_LIBS@,$SOUP_LIBS,;t t
22866s,@LIBXML_CFLAGS@,$LIBXML_CFLAGS,;t t
22867s,@LIBXML_LIBS@,$LIBXML_LIBS,;t t
22868s,@TALKFILTERS_CFLAGS@,$TALKFILTERS_CFLAGS,;t t
22869s,@TALKFILTERS_LIBS@,$TALKFILTERS_LIBS,;t t
22870s,@WITH_GENERIC_TRUE@,$WITH_GENERIC_TRUE,;t t
22871s,@WITH_GENERIC_FALSE@,$WITH_GENERIC_FALSE,;t t
22872s,@WITH_TALKFILTERS_TRUE@,$WITH_TALKFILTERS_TRUE,;t t
22873s,@WITH_TALKFILTERS_FALSE@,$WITH_TALKFILTERS_FALSE,;t t
22874s,@WITH_REGRESSION_TESTS_TRUE@,$WITH_REGRESSION_TESTS_TRUE,;t t
22875s,@WITH_REGRESSION_TESTS_FALSE@,$WITH_REGRESSION_TESTS_FALSE,;t t
22876s,@LIBOBJS@,$LIBOBJS,;t t
22877s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22878CEOF
22879
22880_ACEOF
22881
22882  cat >>$CONFIG_STATUS <<\_ACEOF
22883  # Split the substitutions into bite-sized pieces for seds with
22884  # small command number limits, like on Digital OSF/1 and HP-UX.
22885  ac_max_sed_lines=48
22886  ac_sed_frag=1 # Number of current file.
22887  ac_beg=1 # First line for current file.
22888  ac_end=$ac_max_sed_lines # Line after last line for current file.
22889  ac_more_lines=:
22890  ac_sed_cmds=
22891  while $ac_more_lines; do
22892    if test $ac_beg -gt 1; then
22893      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22894    else
22895      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22896    fi
22897    if test ! -s $tmp/subs.frag; then
22898      ac_more_lines=false
22899    else
22900      # The purpose of the label and of the branching condition is to
22901      # speed up the sed processing (if there are no `@' at all, there
22902      # is no need to browse any of the substitutions).
22903      # These are the two extra sed commands mentioned above.
22904      (echo ':t
22905  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22906      if test -z "$ac_sed_cmds"; then
22907	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22908      else
22909	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22910      fi
22911      ac_sed_frag=`expr $ac_sed_frag + 1`
22912      ac_beg=$ac_end
22913      ac_end=`expr $ac_end + $ac_max_sed_lines`
22914    fi
22915  done
22916  if test -z "$ac_sed_cmds"; then
22917    ac_sed_cmds=cat
22918  fi
22919fi # test -n "$CONFIG_FILES"
22920
22921_ACEOF
22922cat >>$CONFIG_STATUS <<\_ACEOF
22923for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22924  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22925  case $ac_file in
22926  - | *:- | *:-:* ) # input from stdin
22927	cat >$tmp/stdin
22928	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22929	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22930  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22931	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22932  * )   ac_file_in=$ac_file.in ;;
22933  esac
22934
22935  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22936  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22937$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22938	 X"$ac_file" : 'X\(//\)[^/]' \| \
22939	 X"$ac_file" : 'X\(//\)$' \| \
22940	 X"$ac_file" : 'X\(/\)' \| \
22941	 .     : '\(.\)' 2>/dev/null ||
22942echo X"$ac_file" |
22943    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22944  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22945  	  /^X\(\/\/\)$/{ s//\1/; q; }
22946  	  /^X\(\/\).*/{ s//\1/; q; }
22947  	  s/.*/./; q'`
22948  { if $as_mkdir_p; then
22949    mkdir -p "$ac_dir"
22950  else
22951    as_dir="$ac_dir"
22952    as_dirs=
22953    while test ! -d "$as_dir"; do
22954      as_dirs="$as_dir $as_dirs"
22955      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22956$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22957	 X"$as_dir" : 'X\(//\)[^/]' \| \
22958	 X"$as_dir" : 'X\(//\)$' \| \
22959	 X"$as_dir" : 'X\(/\)' \| \
22960	 .     : '\(.\)' 2>/dev/null ||
22961echo X"$as_dir" |
22962    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22963  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22964  	  /^X\(\/\/\)$/{ s//\1/; q; }
22965  	  /^X\(\/\).*/{ s//\1/; q; }
22966  	  s/.*/./; q'`
22967    done
22968    test ! -n "$as_dirs" || mkdir $as_dirs
22969  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22970echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22971   { (exit 1); exit 1; }; }; }
22972
22973  ac_builddir=.
22974
22975if test "$ac_dir" != .; then
22976  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22977  # A "../" for each directory in $ac_dir_suffix.
22978  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22979else
22980  ac_dir_suffix= ac_top_builddir=
22981fi
22982
22983case $srcdir in
22984  .)  # No --srcdir option.  We are building in place.
22985    ac_srcdir=.
22986    if test -z "$ac_top_builddir"; then
22987       ac_top_srcdir=.
22988    else
22989       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22990    fi ;;
22991  [\\/]* | ?:[\\/]* )  # Absolute path.
22992    ac_srcdir=$srcdir$ac_dir_suffix;
22993    ac_top_srcdir=$srcdir ;;
22994  *) # Relative path.
22995    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22996    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22997esac
22998
22999# Do not use `cd foo && pwd` to compute absolute paths, because
23000# the directories may not exist.
23001case `pwd` in
23002.) ac_abs_builddir="$ac_dir";;
23003*)
23004  case "$ac_dir" in
23005  .) ac_abs_builddir=`pwd`;;
23006  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23007  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23008  esac;;
23009esac
23010case $ac_abs_builddir in
23011.) ac_abs_top_builddir=${ac_top_builddir}.;;
23012*)
23013  case ${ac_top_builddir}. in
23014  .) ac_abs_top_builddir=$ac_abs_builddir;;
23015  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23016  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23017  esac;;
23018esac
23019case $ac_abs_builddir in
23020.) ac_abs_srcdir=$ac_srcdir;;
23021*)
23022  case $ac_srcdir in
23023  .) ac_abs_srcdir=$ac_abs_builddir;;
23024  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23025  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23026  esac;;
23027esac
23028case $ac_abs_builddir in
23029.) ac_abs_top_srcdir=$ac_top_srcdir;;
23030*)
23031  case $ac_top_srcdir in
23032  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23033  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23034  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23035  esac;;
23036esac
23037
23038
23039  case $INSTALL in
23040  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23041  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23042  esac
23043
23044  if test x"$ac_file" != x-; then
23045    { echo "$as_me:$LINENO: creating $ac_file" >&5
23046echo "$as_me: creating $ac_file" >&6;}
23047    rm -f "$ac_file"
23048  fi
23049  # Let's still pretend it is `configure' which instantiates (i.e., don't
23050  # use $as_me), people would be surprised to read:
23051  #    /* config.h.  Generated by config.status.  */
23052  if test x"$ac_file" = x-; then
23053    configure_input=
23054  else
23055    configure_input="$ac_file.  "
23056  fi
23057  configure_input=$configure_input"Generated from `echo $ac_file_in |
23058				     sed 's,.*/,,'` by configure."
23059
23060  # First look for the input files in the build tree, otherwise in the
23061  # src tree.
23062  ac_file_inputs=`IFS=:
23063    for f in $ac_file_in; do
23064      case $f in
23065      -) echo $tmp/stdin ;;
23066      [\\/$]*)
23067	 # Absolute (can't be DOS-style, as IFS=:)
23068	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23069echo "$as_me: error: cannot find input file: $f" >&2;}
23070   { (exit 1); exit 1; }; }
23071	 echo "$f";;
23072      *) # Relative
23073	 if test -f "$f"; then
23074	   # Build tree
23075	   echo "$f"
23076	 elif test -f "$srcdir/$f"; then
23077	   # Source tree
23078	   echo "$srcdir/$f"
23079	 else
23080	   # /dev/null tree
23081	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23082echo "$as_me: error: cannot find input file: $f" >&2;}
23083   { (exit 1); exit 1; }; }
23084	 fi;;
23085      esac
23086    done` || { (exit 1); exit 1; }
23087_ACEOF
23088cat >>$CONFIG_STATUS <<_ACEOF
23089  sed "$ac_vpsub
23090$extrasub
23091_ACEOF
23092cat >>$CONFIG_STATUS <<\_ACEOF
23093:t
23094/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23095s,@configure_input@,$configure_input,;t t
23096s,@srcdir@,$ac_srcdir,;t t
23097s,@abs_srcdir@,$ac_abs_srcdir,;t t
23098s,@top_srcdir@,$ac_top_srcdir,;t t
23099s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23100s,@builddir@,$ac_builddir,;t t
23101s,@abs_builddir@,$ac_abs_builddir,;t t
23102s,@top_builddir@,$ac_top_builddir,;t t
23103s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23104s,@INSTALL@,$ac_INSTALL,;t t
23105" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23106  rm -f $tmp/stdin
23107  if test x"$ac_file" != x-; then
23108    mv $tmp/out $ac_file
23109  else
23110    cat $tmp/out
23111    rm -f $tmp/out
23112  fi
23113
23114done
23115_ACEOF
23116cat >>$CONFIG_STATUS <<\_ACEOF
23117
23118#
23119# CONFIG_HEADER section.
23120#
23121
23122# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23123# NAME is the cpp macro being defined and VALUE is the value it is being given.
23124#
23125# ac_d sets the value in "#define NAME VALUE" lines.
23126ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
23127ac_dB='[	 ].*$,\1#\2'
23128ac_dC=' '
23129ac_dD=',;t'
23130# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23131ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
23132ac_uB='$,\1#\2define\3'
23133ac_uC=' '
23134ac_uD=',;t'
23135
23136for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23137  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23138  case $ac_file in
23139  - | *:- | *:-:* ) # input from stdin
23140	cat >$tmp/stdin
23141	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23142	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23143  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23144	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23145  * )   ac_file_in=$ac_file.in ;;
23146  esac
23147
23148  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23149echo "$as_me: creating $ac_file" >&6;}
23150
23151  # First look for the input files in the build tree, otherwise in the
23152  # src tree.
23153  ac_file_inputs=`IFS=:
23154    for f in $ac_file_in; do
23155      case $f in
23156      -) echo $tmp/stdin ;;
23157      [\\/$]*)
23158	 # Absolute (can't be DOS-style, as IFS=:)
23159	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23160echo "$as_me: error: cannot find input file: $f" >&2;}
23161   { (exit 1); exit 1; }; }
23162	 # Do quote $f, to prevent DOS paths from being IFS'd.
23163	 echo "$f";;
23164      *) # Relative
23165	 if test -f "$f"; then
23166	   # Build tree
23167	   echo "$f"
23168	 elif test -f "$srcdir/$f"; then
23169	   # Source tree
23170	   echo "$srcdir/$f"
23171	 else
23172	   # /dev/null tree
23173	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23174echo "$as_me: error: cannot find input file: $f" >&2;}
23175   { (exit 1); exit 1; }; }
23176	 fi;;
23177      esac
23178    done` || { (exit 1); exit 1; }
23179  # Remove the trailing spaces.
23180  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
23181
23182_ACEOF
23183
23184# Transform confdefs.h into two sed scripts, `conftest.defines' and
23185# `conftest.undefs', that substitutes the proper values into
23186# config.h.in to produce config.h.  The first handles `#define'
23187# templates, and the second `#undef' templates.
23188# And first: Protect against being on the right side of a sed subst in
23189# config.status.  Protect against being in an unquoted here document
23190# in config.status.
23191rm -f conftest.defines conftest.undefs
23192# Using a here document instead of a string reduces the quoting nightmare.
23193# Putting comments in sed scripts is not portable.
23194#
23195# `end' is used to avoid that the second main sed command (meant for
23196# 0-ary CPP macros) applies to n-ary macro definitions.
23197# See the Autoconf documentation for `clear'.
23198cat >confdef2sed.sed <<\_ACEOF
23199s/[\\&,]/\\&/g
23200s,[\\$`],\\&,g
23201t clear
23202: clear
23203s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23204t end
23205s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23206: end
23207_ACEOF
23208# If some macros were called several times there might be several times
23209# the same #defines, which is useless.  Nevertheless, we may not want to
23210# sort them, since we want the *last* AC-DEFINE to be honored.
23211uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23212sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23213rm -f confdef2sed.sed
23214
23215# This sed command replaces #undef with comments.  This is necessary, for
23216# example, in the case of _POSIX_SOURCE, which is predefined and required
23217# on some systems where configure will not decide to define it.
23218cat >>conftest.undefs <<\_ACEOF
23219s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23220_ACEOF
23221
23222# Break up conftest.defines because some shells have a limit on the size
23223# of here documents, and old seds have small limits too (100 cmds).
23224echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23225echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23226echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23227echo '  :' >>$CONFIG_STATUS
23228rm -f conftest.tail
23229while grep . conftest.defines >/dev/null
23230do
23231  # Write a limited-size here document to $tmp/defines.sed.
23232  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23233  # Speed up: don't consider the non `#define' lines.
23234  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
23235  # Work around the forget-to-reset-the-flag bug.
23236  echo 't clr' >>$CONFIG_STATUS
23237  echo ': clr' >>$CONFIG_STATUS
23238  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23239  echo 'CEOF
23240  sed -f $tmp/defines.sed $tmp/in >$tmp/out
23241  rm -f $tmp/in
23242  mv $tmp/out $tmp/in
23243' >>$CONFIG_STATUS
23244  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23245  rm -f conftest.defines
23246  mv conftest.tail conftest.defines
23247done
23248rm -f conftest.defines
23249echo '  fi # grep' >>$CONFIG_STATUS
23250echo >>$CONFIG_STATUS
23251
23252# Break up conftest.undefs because some shells have a limit on the size
23253# of here documents, and old seds have small limits too (100 cmds).
23254echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23255rm -f conftest.tail
23256while grep . conftest.undefs >/dev/null
23257do
23258  # Write a limited-size here document to $tmp/undefs.sed.
23259  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23260  # Speed up: don't consider the non `#undef'
23261  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
23262  # Work around the forget-to-reset-the-flag bug.
23263  echo 't clr' >>$CONFIG_STATUS
23264  echo ': clr' >>$CONFIG_STATUS
23265  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23266  echo 'CEOF
23267  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23268  rm -f $tmp/in
23269  mv $tmp/out $tmp/in
23270' >>$CONFIG_STATUS
23271  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23272  rm -f conftest.undefs
23273  mv conftest.tail conftest.undefs
23274done
23275rm -f conftest.undefs
23276
23277cat >>$CONFIG_STATUS <<\_ACEOF
23278  # Let's still pretend it is `configure' which instantiates (i.e., don't
23279  # use $as_me), people would be surprised to read:
23280  #    /* config.h.  Generated by config.status.  */
23281  if test x"$ac_file" = x-; then
23282    echo "/* Generated by configure.  */" >$tmp/config.h
23283  else
23284    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23285  fi
23286  cat $tmp/in >>$tmp/config.h
23287  rm -f $tmp/in
23288  if test x"$ac_file" != x-; then
23289    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23290      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23291echo "$as_me: $ac_file is unchanged" >&6;}
23292    else
23293      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23294$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23295	 X"$ac_file" : 'X\(//\)[^/]' \| \
23296	 X"$ac_file" : 'X\(//\)$' \| \
23297	 X"$ac_file" : 'X\(/\)' \| \
23298	 .     : '\(.\)' 2>/dev/null ||
23299echo X"$ac_file" |
23300    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23301  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23302  	  /^X\(\/\/\)$/{ s//\1/; q; }
23303  	  /^X\(\/\).*/{ s//\1/; q; }
23304  	  s/.*/./; q'`
23305      { if $as_mkdir_p; then
23306    mkdir -p "$ac_dir"
23307  else
23308    as_dir="$ac_dir"
23309    as_dirs=
23310    while test ! -d "$as_dir"; do
23311      as_dirs="$as_dir $as_dirs"
23312      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23314	 X"$as_dir" : 'X\(//\)[^/]' \| \
23315	 X"$as_dir" : 'X\(//\)$' \| \
23316	 X"$as_dir" : 'X\(/\)' \| \
23317	 .     : '\(.\)' 2>/dev/null ||
23318echo X"$as_dir" |
23319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23320  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23321  	  /^X\(\/\/\)$/{ s//\1/; q; }
23322  	  /^X\(\/\).*/{ s//\1/; q; }
23323  	  s/.*/./; q'`
23324    done
23325    test ! -n "$as_dirs" || mkdir $as_dirs
23326  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23327echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23328   { (exit 1); exit 1; }; }; }
23329
23330      rm -f $ac_file
23331      mv $tmp/config.h $ac_file
23332    fi
23333  else
23334    cat $tmp/config.h
23335    rm -f $tmp/config.h
23336  fi
23337# Compute $ac_file's index in $config_headers.
23338_am_stamp_count=1
23339for _am_header in $config_headers :; do
23340  case $_am_header in
23341    $ac_file | $ac_file:* )
23342      break ;;
23343    * )
23344      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23345  esac
23346done
23347echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23348$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23349	 X$ac_file : 'X\(//\)[^/]' \| \
23350	 X$ac_file : 'X\(//\)$' \| \
23351	 X$ac_file : 'X\(/\)' \| \
23352	 .     : '\(.\)' 2>/dev/null ||
23353echo X$ac_file |
23354    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23355  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23356  	  /^X\(\/\/\)$/{ s//\1/; q; }
23357  	  /^X\(\/\).*/{ s//\1/; q; }
23358  	  s/.*/./; q'`/stamp-h$_am_stamp_count
23359done
23360_ACEOF
23361cat >>$CONFIG_STATUS <<\_ACEOF
23362
23363#
23364# CONFIG_COMMANDS section.
23365#
23366for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23367  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23368  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23369  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23370$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23371	 X"$ac_dest" : 'X\(//\)[^/]' \| \
23372	 X"$ac_dest" : 'X\(//\)$' \| \
23373	 X"$ac_dest" : 'X\(/\)' \| \
23374	 .     : '\(.\)' 2>/dev/null ||
23375echo X"$ac_dest" |
23376    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23377  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23378  	  /^X\(\/\/\)$/{ s//\1/; q; }
23379  	  /^X\(\/\).*/{ s//\1/; q; }
23380  	  s/.*/./; q'`
23381  { if $as_mkdir_p; then
23382    mkdir -p "$ac_dir"
23383  else
23384    as_dir="$ac_dir"
23385    as_dirs=
23386    while test ! -d "$as_dir"; do
23387      as_dirs="$as_dir $as_dirs"
23388      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23389$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23390	 X"$as_dir" : 'X\(//\)[^/]' \| \
23391	 X"$as_dir" : 'X\(//\)$' \| \
23392	 X"$as_dir" : 'X\(/\)' \| \
23393	 .     : '\(.\)' 2>/dev/null ||
23394echo X"$as_dir" |
23395    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23396  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23397  	  /^X\(\/\/\)$/{ s//\1/; q; }
23398  	  /^X\(\/\).*/{ s//\1/; q; }
23399  	  s/.*/./; q'`
23400    done
23401    test ! -n "$as_dirs" || mkdir $as_dirs
23402  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23403echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23404   { (exit 1); exit 1; }; }; }
23405
23406  ac_builddir=.
23407
23408if test "$ac_dir" != .; then
23409  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23410  # A "../" for each directory in $ac_dir_suffix.
23411  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23412else
23413  ac_dir_suffix= ac_top_builddir=
23414fi
23415
23416case $srcdir in
23417  .)  # No --srcdir option.  We are building in place.
23418    ac_srcdir=.
23419    if test -z "$ac_top_builddir"; then
23420       ac_top_srcdir=.
23421    else
23422       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23423    fi ;;
23424  [\\/]* | ?:[\\/]* )  # Absolute path.
23425    ac_srcdir=$srcdir$ac_dir_suffix;
23426    ac_top_srcdir=$srcdir ;;
23427  *) # Relative path.
23428    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23429    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23430esac
23431
23432# Do not use `cd foo && pwd` to compute absolute paths, because
23433# the directories may not exist.
23434case `pwd` in
23435.) ac_abs_builddir="$ac_dir";;
23436*)
23437  case "$ac_dir" in
23438  .) ac_abs_builddir=`pwd`;;
23439  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23440  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23441  esac;;
23442esac
23443case $ac_abs_builddir in
23444.) ac_abs_top_builddir=${ac_top_builddir}.;;
23445*)
23446  case ${ac_top_builddir}. in
23447  .) ac_abs_top_builddir=$ac_abs_builddir;;
23448  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23449  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23450  esac;;
23451esac
23452case $ac_abs_builddir in
23453.) ac_abs_srcdir=$ac_srcdir;;
23454*)
23455  case $ac_srcdir in
23456  .) ac_abs_srcdir=$ac_abs_builddir;;
23457  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23458  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23459  esac;;
23460esac
23461case $ac_abs_builddir in
23462.) ac_abs_top_srcdir=$ac_top_srcdir;;
23463*)
23464  case $ac_top_srcdir in
23465  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23466  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23467  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23468  esac;;
23469esac
23470
23471
23472  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23473echo "$as_me: executing $ac_dest commands" >&6;}
23474  case $ac_dest in
23475    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23476  # Strip MF so we end up with the name of the file.
23477  mf=`echo "$mf" | sed -e 's/:.*$//'`
23478  # Check whether this is an Automake generated Makefile or not.
23479  # We used to match only the files named `Makefile.in', but
23480  # some people rename them; so instead we look at the file content.
23481  # Grep'ing the first line is not enough: some people post-process
23482  # each Makefile.in and add a new line on top of each file to say so.
23483  # So let's grep whole file.
23484  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23485    dirpart=`(dirname "$mf") 2>/dev/null ||
23486$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23487	 X"$mf" : 'X\(//\)[^/]' \| \
23488	 X"$mf" : 'X\(//\)$' \| \
23489	 X"$mf" : 'X\(/\)' \| \
23490	 .     : '\(.\)' 2>/dev/null ||
23491echo X"$mf" |
23492    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23493  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23494  	  /^X\(\/\/\)$/{ s//\1/; q; }
23495  	  /^X\(\/\).*/{ s//\1/; q; }
23496  	  s/.*/./; q'`
23497  else
23498    continue
23499  fi
23500  # Extract the definition of DEPDIR, am__include, and am__quote
23501  # from the Makefile without running `make'.
23502  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23503  test -z "$DEPDIR" && continue
23504  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23505  test -z "am__include" && continue
23506  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23507  # When using ansi2knr, U may be empty or an underscore; expand it
23508  U=`sed -n 's/^U = //p' < "$mf"`
23509  # Find all dependency output files, they are included files with
23510  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23511  # simplest approach to changing $(DEPDIR) to its actual value in the
23512  # expansion.
23513  for file in `sed -n "
23514    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23515       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23516    # Make sure the directory exists.
23517    test -f "$dirpart/$file" && continue
23518    fdir=`(dirname "$file") 2>/dev/null ||
23519$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23520	 X"$file" : 'X\(//\)[^/]' \| \
23521	 X"$file" : 'X\(//\)$' \| \
23522	 X"$file" : 'X\(/\)' \| \
23523	 .     : '\(.\)' 2>/dev/null ||
23524echo X"$file" |
23525    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23526  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23527  	  /^X\(\/\/\)$/{ s//\1/; q; }
23528  	  /^X\(\/\).*/{ s//\1/; q; }
23529  	  s/.*/./; q'`
23530    { if $as_mkdir_p; then
23531    mkdir -p $dirpart/$fdir
23532  else
23533    as_dir=$dirpart/$fdir
23534    as_dirs=
23535    while test ! -d "$as_dir"; do
23536      as_dirs="$as_dir $as_dirs"
23537      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23538$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23539	 X"$as_dir" : 'X\(//\)[^/]' \| \
23540	 X"$as_dir" : 'X\(//\)$' \| \
23541	 X"$as_dir" : 'X\(/\)' \| \
23542	 .     : '\(.\)' 2>/dev/null ||
23543echo X"$as_dir" |
23544    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23545  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23546  	  /^X\(\/\/\)$/{ s//\1/; q; }
23547  	  /^X\(\/\).*/{ s//\1/; q; }
23548  	  s/.*/./; q'`
23549    done
23550    test ! -n "$as_dirs" || mkdir $as_dirs
23551  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23552echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23553   { (exit 1); exit 1; }; }; }
23554
23555    # echo "creating $dirpart/$file"
23556    echo '# dummy' > "$dirpart/$file"
23557  done
23558done
23559 ;;
23560    default-1 ) case "$CONFIG_FILES" in *po/Makefile.in*)
23561        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
23562      esac ;;
23563    intltool )
23564
23565intltool_edit="-e 's:@INTLTOOL_EXTRACT@:`pwd`/intltool-extract:g' \
23566               -e 's:@INTLTOOL_ICONV@:${ICONV}:g' \
23567               -e 's:@INTLTOOL_MSGFMT@:${MSGFMT}:g' \
23568               -e 's:@INTLTOOL_MSGMERGE@:${MSGMERGE}:g' \
23569               -e 's:@INTLTOOL_XGETTEXT@:${XGETTEXT}:g' \
23570               -e 's:@INTLTOOL_PERL@:${INTLTOOL_PERL}:g'"
23571
23572eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-extract.in \
23573  > intltool-extract.out
23574if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
23575  rm -f intltool-extract.out
23576else
23577  mv -f intltool-extract.out intltool-extract
23578fi
23579chmod ugo+x intltool-extract
23580chmod u+w intltool-extract
23581
23582eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-merge.in \
23583  > intltool-merge.out
23584if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
23585  rm -f intltool-merge.out
23586else
23587  mv -f intltool-merge.out intltool-merge
23588fi
23589chmod ugo+x intltool-merge
23590chmod u+w intltool-merge
23591
23592eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-update.in \
23593  > intltool-update.out
23594if cmp -s intltool-update intltool-update.out 2>/dev/null; then
23595  rm -f intltool-update.out
23596else
23597  mv -f intltool-update.out intltool-update
23598fi
23599chmod ugo+x intltool-update
23600chmod u+w intltool-update
23601
23602 ;;
23603  esac
23604done
23605_ACEOF
23606
23607cat >>$CONFIG_STATUS <<\_ACEOF
23608
23609{ (exit 0); exit 0; }
23610_ACEOF
23611chmod +x $CONFIG_STATUS
23612ac_clean_files=$ac_clean_files_save
23613
23614
23615# configure is writing to config.log, and then calls config.status.
23616# config.status does its own redirection, appending to config.log.
23617# Unfortunately, on DOS this fails, as config.log is still kept open
23618# by configure, so config.status won't be able to write to it; its
23619# output is simply discarded.  So we exec the FD to /dev/null,
23620# effectively closing config.log, so it can be properly (re)opened and
23621# appended to by config.status.  When coming back to configure, we
23622# need to make the FD available again.
23623if test "$no_create" != yes; then
23624  ac_cs_success=:
23625  ac_config_status_args=
23626  test "$silent" = yes &&
23627    ac_config_status_args="$ac_config_status_args --quiet"
23628  exec 5>/dev/null
23629  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23630  exec 5>>config.log
23631  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23632  # would make configure fail if this is the last instruction.
23633  $ac_cs_success || { (exit 1); exit 1; }
23634fi
23635
23636
23637### report
23638
23639cat <<EOF
23640
23641$PACKAGE $VERSION is ready to be built.
23642The following settings will be used:
23643
23644Installation prefixes
23645  --prefix                $prefix
23646  --exec-prefix           $exec_prefix
23647
23648Installation directories
23649  --bindir                $bindir
23650  --datadir               $datadir
23651  --libdir                $libdir
23652  --includedir            $includedir
23653  --mandir                $mandir
23654
23655Features
23656  --enable-generic        $enable_generic $disable_generic_reason
23657  --enable-talkfilters    $enable_talkfilters $disable_talkfilters_reason
23658
23659Type "make" to build $PACKAGE $VERSION.
23660EOF
23661