1# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
2
3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12# PARTICULAR PURPOSE.
13
14m4_ifndef([AC_AUTOCONF_VERSION],
15  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
17[m4_warning([this file was generated for autoconf 2.65.
18You have another version of autoconf.  It may work, but is not guaranteed to.
19If you have problems, you may need to regenerate the build system entirely.
20To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
22# Copyright (C) 1995-2002 Free Software Foundation, Inc.
23# Copyright (C) 2001-2003,2004 Red Hat, Inc.
24#
25# This file is free software, distributed under the terms of the GNU
26# General Public License.  As a special exception to the GNU General
27# Public License, this file may be distributed as part of a program
28# that contains a configuration script generated by Autoconf, under
29# the same distribution terms as the rest of that program.
30#
31# This file can be copied and used freely without restrictions.  It can
32# be used in projects which are not available under the GNU Public License
33# but which still want to provide support for the GNU gettext functionality.
34#
35# Macro to add for using GNU gettext.
36# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
37#
38# Modified to never use included libintl.
39# Owen Taylor <otaylor@redhat.com>, 12/15/1998
40#
41# Major rework to remove unused code
42# Owen Taylor <otaylor@redhat.com>, 12/11/2002
43#
44# Added better handling of ALL_LINGUAS from GNU gettext version
45# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
46#
47# Modified to require ngettext
48# Matthias Clasen <mclasen@redhat.com> 08/06/2004
49#
50# We need this here as well, since someone might use autoconf-2.5x
51# to configure GLib then an older version to configure a package
52# using AM_GLIB_GNU_GETTEXT
53AC_PREREQ(2.53)
54
55dnl
56dnl We go to great lengths to make sure that aclocal won't
57dnl try to pull in the installed version of these macros
58dnl when running aclocal in the glib directory.
59dnl
60m4_copy([AC_DEFUN],[glib_DEFUN])
61m4_copy([AC_REQUIRE],[glib_REQUIRE])
62dnl
63dnl At the end, if we're not within glib, we'll define the public
64dnl definitions in terms of our private definitions.
65dnl
66
67# GLIB_LC_MESSAGES
68#--------------------
69glib_DEFUN([GLIB_LC_MESSAGES],
70  [AC_CHECK_HEADERS([locale.h])
71    if test $ac_cv_header_locale_h = yes; then
72    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
73      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
74       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
75    if test $am_cv_val_LC_MESSAGES = yes; then
76      AC_DEFINE(HAVE_LC_MESSAGES, 1,
77        [Define if your <locale.h> file defines LC_MESSAGES.])
78    fi
79  fi])
80
81# GLIB_PATH_PROG_WITH_TEST
82#----------------------------
83dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
84dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
85glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
86[# Extract the first word of "$2", so it can be a program name with args.
87set dummy $2; ac_word=[$]2
88AC_MSG_CHECKING([for $ac_word])
89AC_CACHE_VAL(ac_cv_path_$1,
90[case "[$]$1" in
91  /*)
92  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
93  ;;
94  *)
95  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
96  for ac_dir in ifelse([$5], , $PATH, [$5]); do
97    test -z "$ac_dir" && ac_dir=.
98    if test -f $ac_dir/$ac_word; then
99      if [$3]; then
100	ac_cv_path_$1="$ac_dir/$ac_word"
101	break
102      fi
103    fi
104  done
105  IFS="$ac_save_ifs"
106dnl If no 4th arg is given, leave the cache variable unset,
107dnl so AC_PATH_PROGS will keep looking.
108ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
109])dnl
110  ;;
111esac])dnl
112$1="$ac_cv_path_$1"
113if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
114  AC_MSG_RESULT([$]$1)
115else
116  AC_MSG_RESULT(no)
117fi
118AC_SUBST($1)dnl
119])
120
121# GLIB_WITH_NLS
122#-----------------
123glib_DEFUN([GLIB_WITH_NLS],
124  dnl NLS is obligatory
125  [USE_NLS=yes
126    AC_SUBST(USE_NLS)
127
128    gt_cv_have_gettext=no
129
130    CATOBJEXT=NONE
131    XGETTEXT=:
132    INTLLIBS=
133
134    AC_CHECK_HEADER(libintl.h,
135     [gt_cv_func_dgettext_libintl="no"
136      libintl_extra_libs=""
137
138      #
139      # First check in libc
140      #
141      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
142        [AC_TRY_LINK([
143#include <libintl.h>
144],
145         [return !ngettext ("","", 1)],
146	  gt_cv_func_ngettext_libc=yes,
147          gt_cv_func_ngettext_libc=no)
148        ])
149
150      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
151	      AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
152        	[AC_TRY_LINK([
153#include <libintl.h>
154],
155	          [return !dgettext ("","")],
156		  gt_cv_func_dgettext_libc=yes,
157	          gt_cv_func_dgettext_libc=no)
158        	])
159      fi
160
161      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
162        AC_CHECK_FUNCS(bind_textdomain_codeset)
163      fi
164
165      #
166      # If we don't have everything we want, check in libintl
167      #
168      if test "$gt_cv_func_dgettext_libc" != "yes" \
169	 || test "$gt_cv_func_ngettext_libc" != "yes" \
170         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
171
172        AC_CHECK_LIB(intl, bindtextdomain,
173	    [AC_CHECK_LIB(intl, ngettext,
174		    [AC_CHECK_LIB(intl, dgettext,
175			          gt_cv_func_dgettext_libintl=yes)])])
176
177	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
178	  AC_MSG_CHECKING([if -liconv is needed to use gettext])
179	  AC_MSG_RESULT([])
180  	  AC_CHECK_LIB(intl, ngettext,
181          	[AC_CHECK_LIB(intl, dcgettext,
182		       [gt_cv_func_dgettext_libintl=yes
183			libintl_extra_libs=-liconv],
184			:,-liconv)],
185		:,-liconv)
186        fi
187
188        #
189        # If we found libintl, then check in it for bind_textdomain_codeset();
190        # we'll prefer libc if neither have bind_textdomain_codeset(),
191        # and both have dgettext and ngettext
192        #
193        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
194          glib_save_LIBS="$LIBS"
195          LIBS="$LIBS -lintl $libintl_extra_libs"
196          unset ac_cv_func_bind_textdomain_codeset
197          AC_CHECK_FUNCS(bind_textdomain_codeset)
198          LIBS="$glib_save_LIBS"
199
200          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
201            gt_cv_func_dgettext_libc=no
202          else
203            if test "$gt_cv_func_dgettext_libc" = "yes" \
204		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
205              gt_cv_func_dgettext_libintl=no
206            fi
207          fi
208        fi
209      fi
210
211      if test "$gt_cv_func_dgettext_libc" = "yes" \
212	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
213        gt_cv_have_gettext=yes
214      fi
215
216      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
217        INTLLIBS="-lintl $libintl_extra_libs"
218      fi
219
220      if test "$gt_cv_have_gettext" = "yes"; then
221	AC_DEFINE(HAVE_GETTEXT,1,
222	  [Define if the GNU gettext() function is already present or preinstalled.])
223	GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
224	  [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
225	if test "$MSGFMT" != "no"; then
226          glib_save_LIBS="$LIBS"
227          LIBS="$LIBS $INTLLIBS"
228	  AC_CHECK_FUNCS(dcgettext)
229	  MSGFMT_OPTS=
230	  AC_MSG_CHECKING([if msgfmt accepts -c])
231	  GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
232msgid ""
233msgstr ""
234"Content-Type: text/plain; charset=UTF-8\n"
235"Project-Id-Version: test 1.0\n"
236"PO-Revision-Date: 2007-02-15 12:01+0100\n"
237"Last-Translator: test <foo@bar.xx>\n"
238"Language-Team: C <LL@li.org>\n"
239"MIME-Version: 1.0\n"
240"Content-Transfer-Encoding: 8bit\n"
241], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
242	  AC_SUBST(MSGFMT_OPTS)
243	  AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
244	  GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
245	    [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
246	  AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
247			 return _nl_msg_cat_cntr],
248	    [CATOBJEXT=.gmo
249             DATADIRNAME=share],
250	    [case $host in
251	    *-*-solaris*)
252	    dnl On Solaris, if bind_textdomain_codeset is in libc,
253	    dnl GNU format message catalog is always supported,
254            dnl since both are added to the libc all together.
255	    dnl Hence, we'd like to go with DATADIRNAME=share and
256	    dnl and CATOBJEXT=.gmo in this case.
257            AC_CHECK_FUNC(bind_textdomain_codeset,
258	      [CATOBJEXT=.gmo
259               DATADIRNAME=share],
260	      [CATOBJEXT=.mo
261               DATADIRNAME=lib])
262	    ;;
263	    *)
264	    CATOBJEXT=.mo
265            DATADIRNAME=lib
266	    ;;
267	    esac])
268          LIBS="$glib_save_LIBS"
269	  INSTOBJEXT=.mo
270	else
271	  gt_cv_have_gettext=no
272	fi
273      fi
274    ])
275
276    if test "$gt_cv_have_gettext" = "yes" ; then
277      AC_DEFINE(ENABLE_NLS, 1,
278        [always defined to indicate that i18n is enabled])
279    fi
280
281    dnl Test whether we really found GNU xgettext.
282    if test "$XGETTEXT" != ":"; then
283      dnl If it is not GNU xgettext we define it as : so that the
284      dnl Makefiles still can work.
285      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
286        : ;
287      else
288        AC_MSG_RESULT(
289	  [found xgettext program is not GNU xgettext; ignore it])
290        XGETTEXT=":"
291      fi
292    fi
293
294    # We need to process the po/ directory.
295    POSUB=po
296
297    AC_OUTPUT_COMMANDS(
298      [case "$CONFIG_FILES" in *po/Makefile.in*)
299        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
300      esac])
301
302    dnl These rules are solely for the distribution goal.  While doing this
303    dnl we only have to keep exactly one list of the available catalogs
304    dnl in configure.in.
305    for lang in $ALL_LINGUAS; do
306      GMOFILES="$GMOFILES $lang.gmo"
307      POFILES="$POFILES $lang.po"
308    done
309
310    dnl Make all variables we use known to autoconf.
311    AC_SUBST(CATALOGS)
312    AC_SUBST(CATOBJEXT)
313    AC_SUBST(DATADIRNAME)
314    AC_SUBST(GMOFILES)
315    AC_SUBST(INSTOBJEXT)
316    AC_SUBST(INTLLIBS)
317    AC_SUBST(PO_IN_DATADIR_TRUE)
318    AC_SUBST(PO_IN_DATADIR_FALSE)
319    AC_SUBST(POFILES)
320    AC_SUBST(POSUB)
321  ])
322
323# AM_GLIB_GNU_GETTEXT
324# -------------------
325# Do checks necessary for use of gettext. If a suitable implementation
326# of gettext is found in either in libintl or in the C library,
327# it will set INTLLIBS to the libraries needed for use of gettext
328# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
329# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
330# on various variables needed by the Makefile.in.in installed by
331# glib-gettextize.
332dnl
333glib_DEFUN([GLIB_GNU_GETTEXT],
334  [AC_REQUIRE([AC_PROG_CC])dnl
335   AC_REQUIRE([AC_HEADER_STDC])dnl
336
337   GLIB_LC_MESSAGES
338   GLIB_WITH_NLS
339
340   if test "$gt_cv_have_gettext" = "yes"; then
341     if test "x$ALL_LINGUAS" = "x"; then
342       LINGUAS=
343     else
344       AC_MSG_CHECKING(for catalogs to be installed)
345       NEW_LINGUAS=
346       for presentlang in $ALL_LINGUAS; do
347         useit=no
348         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
349           desiredlanguages="$LINGUAS"
350         else
351           desiredlanguages="$ALL_LINGUAS"
352         fi
353         for desiredlang in $desiredlanguages; do
354 	   # Use the presentlang catalog if desiredlang is
355           #   a. equal to presentlang, or
356           #   b. a variant of presentlang (because in this case,
357           #      presentlang can be used as a fallback for messages
358           #      which are not translated in the desiredlang catalog).
359           case "$desiredlang" in
360             "$presentlang"*) useit=yes;;
361           esac
362         done
363         if test $useit = yes; then
364           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
365         fi
366       done
367       LINGUAS=$NEW_LINGUAS
368       AC_MSG_RESULT($LINGUAS)
369     fi
370
371     dnl Construct list of names of catalog files to be constructed.
372     if test -n "$LINGUAS"; then
373       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
374     fi
375   fi
376
377   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
378   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
379   dnl Try to locate is.
380   MKINSTALLDIRS=
381   if test -n "$ac_aux_dir"; then
382     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
383   fi
384   if test -z "$MKINSTALLDIRS"; then
385     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
386   fi
387   AC_SUBST(MKINSTALLDIRS)
388
389   dnl Generate list of files to be processed by xgettext which will
390   dnl be included in po/Makefile.
391   test -d po || mkdir po
392   if test "x$srcdir" != "x."; then
393     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
394       posrcprefix="$srcdir/"
395     else
396       posrcprefix="../$srcdir/"
397     fi
398   else
399     posrcprefix="../"
400   fi
401   rm -f po/POTFILES
402   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
403	< $srcdir/po/POTFILES.in > po/POTFILES
404  ])
405
406# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
407# -------------------------------
408# Define VARIABLE to the location where catalog files will
409# be installed by po/Makefile.
410glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
411[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
412glib_save_prefix="$prefix"
413glib_save_exec_prefix="$exec_prefix"
414glib_save_datarootdir="$datarootdir"
415test "x$prefix" = xNONE && prefix=$ac_default_prefix
416test "x$exec_prefix" = xNONE && exec_prefix=$prefix
417datarootdir=`eval echo "${datarootdir}"`
418if test "x$CATOBJEXT" = "x.mo" ; then
419  localedir=`eval echo "${libdir}/locale"`
420else
421  localedir=`eval echo "${datadir}/locale"`
422fi
423prefix="$glib_save_prefix"
424exec_prefix="$glib_save_exec_prefix"
425datarootdir="$glib_save_datarootdir"
426AC_DEFINE_UNQUOTED($1, "$localedir",
427  [Define the location where the catalogs will be installed])
428])
429
430dnl
431dnl Now the definitions that aclocal will find
432dnl
433ifdef(glib_configure_in,[],[
434AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
435AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
436])dnl
437
438# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
439#
440# Create a temporary file with TEST-FILE as its contents and pass the
441# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
442# 0 and perform ACTION-IF-FAIL for any other exit status.
443AC_DEFUN([GLIB_RUN_PROG],
444[cat >conftest.foo <<_ACEOF
445$2
446_ACEOF
447if AC_RUN_LOG([$1 conftest.foo]); then
448  m4_ifval([$3], [$3], [:])
449m4_ifvaln([$4], [else $4])dnl
450echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
451sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
452fi])
453
454
455
456dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
457# serial 40 IT_PROG_INTLTOOL
458AC_DEFUN([IT_PROG_INTLTOOL], [
459AC_PREREQ([2.50])dnl
460AC_REQUIRE([AM_NLS])dnl
461
462case "$am__api_version" in
463    1.[01234])
464	AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
465    ;;
466    *)
467    ;;
468esac
469
470if test -n "$1"; then
471    AC_MSG_CHECKING([for intltool >= $1])
472
473    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
474    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
475    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
476    ]
477    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
478    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
479	AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
480fi
481
482AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
483AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
484AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
485if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
486    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
487fi
488
489  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 $< [$]@'
490INTLTOOL_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 $< [$]@'
491     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 $< [$]@'
492     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 $< [$]@'
493      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
494     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 $< [$]@'
495   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 $< [$]@'
496    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 $< [$]@'
497INTLTOOL_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 $< [$]@'
498       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 $< [$]@'
499      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 $< [$]@'
500      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
501      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 $< [$]@'
502      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 $< [$]@'
503    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 $< [$]@'
504  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 $< [$]@'
505    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 $< [$]@'
506    INTLTOOL_SERVICE_RULE='%.service: %.service.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 $< [$]@'
507   INTLTOOL_POLICY_RULE='%.policy:    %.policy.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 $< [$]@'
508
509_IT_SUBST(INTLTOOL_DESKTOP_RULE)
510_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
511_IT_SUBST(INTLTOOL_KEYS_RULE)
512_IT_SUBST(INTLTOOL_PROP_RULE)
513_IT_SUBST(INTLTOOL_OAF_RULE)
514_IT_SUBST(INTLTOOL_PONG_RULE)
515_IT_SUBST(INTLTOOL_SERVER_RULE)
516_IT_SUBST(INTLTOOL_SHEET_RULE)
517_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
518_IT_SUBST(INTLTOOL_UI_RULE)
519_IT_SUBST(INTLTOOL_XAM_RULE)
520_IT_SUBST(INTLTOOL_KBD_RULE)
521_IT_SUBST(INTLTOOL_XML_RULE)
522_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
523_IT_SUBST(INTLTOOL_CAVES_RULE)
524_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
525_IT_SUBST(INTLTOOL_THEME_RULE)
526_IT_SUBST(INTLTOOL_SERVICE_RULE)
527_IT_SUBST(INTLTOOL_POLICY_RULE)
528
529# Check the gettext tools to make sure they are GNU
530AC_PATH_PROG(XGETTEXT, xgettext)
531AC_PATH_PROG(MSGMERGE, msgmerge)
532AC_PATH_PROG(MSGFMT, msgfmt)
533AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
534if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
535    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
536fi
537xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
538mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
539mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
540if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
541    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
542fi
543
544AC_PATH_PROG(INTLTOOL_PERL, perl)
545if test -z "$INTLTOOL_PERL"; then
546   AC_MSG_ERROR([perl not found])
547fi
548AC_MSG_CHECKING([for perl >= 5.8.1])
549$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
550if test $? -ne 0; then
551   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
552else
553   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
554   AC_MSG_RESULT([$IT_PERL_VERSION])
555fi
556if test "x$2" != "xno-xml"; then
557   AC_MSG_CHECKING([for XML::Parser])
558   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
559       AC_MSG_RESULT([ok])
560   else
561       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
562   fi
563fi
564
565# Substitute ALL_LINGUAS so we can use it in po/Makefile
566AC_SUBST(ALL_LINGUAS)
567
568# Set DATADIRNAME correctly if it is not set yet
569# (copied from glib-gettext.m4)
570if test -z "$DATADIRNAME"; then
571  AC_LINK_IFELSE(
572    [AC_LANG_PROGRAM([[]],
573                     [[extern int _nl_msg_cat_cntr;
574                       return _nl_msg_cat_cntr]])],
575    [DATADIRNAME=share],
576    [case $host in
577    *-*-solaris*)
578    dnl On Solaris, if bind_textdomain_codeset is in libc,
579    dnl GNU format message catalog is always supported,
580    dnl since both are added to the libc all together.
581    dnl Hence, we'd like to go with DATADIRNAME=share
582    dnl in this case.
583    AC_CHECK_FUNC(bind_textdomain_codeset,
584      [DATADIRNAME=share], [DATADIRNAME=lib])
585    ;;
586    *)
587    [DATADIRNAME=lib]
588    ;;
589    esac])
590fi
591AC_SUBST(DATADIRNAME)
592
593IT_PO_SUBDIR([po])
594
595])
596
597
598# IT_PO_SUBDIR(DIRNAME)
599# ---------------------
600# All po subdirs have to be declared with this macro; the subdir "po" is
601# declared by IT_PROG_INTLTOOL.
602#
603AC_DEFUN([IT_PO_SUBDIR],
604[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
605dnl
606dnl The following CONFIG_COMMANDS should be exetuted at the very end
607dnl of config.status.
608AC_CONFIG_COMMANDS_PRE([
609  AC_CONFIG_COMMANDS([$1/stamp-it], [
610    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
611       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
612    fi
613    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
614    >"$1/stamp-it.tmp"
615    [sed '/^#/d
616	 s/^[[].*] *//
617	 /^[ 	]*$/d
618	'"s|^|	$ac_top_srcdir/|" \
619      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
620    ]
621    [sed '/^POTFILES =/,/[^\\]$/ {
622		/^POTFILES =/!d
623		r $1/POTFILES
624	  }
625	 ' "$1/Makefile.in" >"$1/Makefile"]
626    rm -f "$1/Makefile.tmp"
627    mv "$1/stamp-it.tmp" "$1/stamp-it"
628  ])
629])dnl
630])
631
632# _IT_SUBST(VARIABLE)
633# -------------------
634# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
635#
636AC_DEFUN([_IT_SUBST],
637[
638AC_SUBST([$1])
639m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
640]
641)
642
643# deprecated macros
644AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
645# A hint is needed for aclocal from Automake <= 1.9.4:
646# AC_DEFUN([AC_PROG_INTLTOOL], ...)
647
648
649# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
650#
651#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
652#                 2006, 2007, 2008 Free Software Foundation, Inc.
653#   Written by Gordon Matzigkeit, 1996
654#
655# This file is free software; the Free Software Foundation gives
656# unlimited permission to copy and/or distribute it, with or without
657# modifications, as long as this notice is preserved.
658
659m4_define([_LT_COPYING], [dnl
660#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
661#                 2006, 2007, 2008 Free Software Foundation, Inc.
662#   Written by Gordon Matzigkeit, 1996
663#
664#   This file is part of GNU Libtool.
665#
666# GNU Libtool is free software; you can redistribute it and/or
667# modify it under the terms of the GNU General Public License as
668# published by the Free Software Foundation; either version 2 of
669# the License, or (at your option) any later version.
670#
671# As a special exception to the GNU General Public License,
672# if you distribute this file as part of a program or library that
673# is built using GNU Libtool, you may include this file under the
674# same distribution terms that you use for the rest of that program.
675#
676# GNU Libtool is distributed in the hope that it will be useful,
677# but WITHOUT ANY WARRANTY; without even the implied warranty of
678# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
679# GNU General Public License for more details.
680#
681# You should have received a copy of the GNU General Public License
682# along with GNU Libtool; see the file COPYING.  If not, a copy
683# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
684# obtained by writing to the Free Software Foundation, Inc.,
685# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
686])
687
688# serial 56 LT_INIT
689
690
691# LT_PREREQ(VERSION)
692# ------------------
693# Complain and exit if this libtool version is less that VERSION.
694m4_defun([LT_PREREQ],
695[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
696       [m4_default([$3],
697		   [m4_fatal([Libtool version $1 or higher is required],
698		             63)])],
699       [$2])])
700
701
702# _LT_CHECK_BUILDDIR
703# ------------------
704# Complain if the absolute build directory name contains unusual characters
705m4_defun([_LT_CHECK_BUILDDIR],
706[case `pwd` in
707  *\ * | *\	*)
708    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
709esac
710])
711
712
713# LT_INIT([OPTIONS])
714# ------------------
715AC_DEFUN([LT_INIT],
716[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
717AC_BEFORE([$0], [LT_LANG])dnl
718AC_BEFORE([$0], [LT_OUTPUT])dnl
719AC_BEFORE([$0], [LTDL_INIT])dnl
720m4_require([_LT_CHECK_BUILDDIR])dnl
721
722dnl Autoconf doesn't catch unexpanded LT_ macros by default:
723m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
724m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
725dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
726dnl unless we require an AC_DEFUNed macro:
727AC_REQUIRE([LTOPTIONS_VERSION])dnl
728AC_REQUIRE([LTSUGAR_VERSION])dnl
729AC_REQUIRE([LTVERSION_VERSION])dnl
730AC_REQUIRE([LTOBSOLETE_VERSION])dnl
731m4_require([_LT_PROG_LTMAIN])dnl
732
733dnl Parse OPTIONS
734_LT_SET_OPTIONS([$0], [$1])
735
736# This can be used to rebuild libtool when needed
737LIBTOOL_DEPS="$ltmain"
738
739# Always use our own libtool.
740LIBTOOL='$(SHELL) $(top_builddir)/libtool'
741AC_SUBST(LIBTOOL)dnl
742
743_LT_SETUP
744
745# Only expand once:
746m4_define([LT_INIT])
747])# LT_INIT
748
749# Old names:
750AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
751AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
752dnl aclocal-1.4 backwards compatibility:
753dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
754dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
755
756
757# _LT_CC_BASENAME(CC)
758# -------------------
759# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
760m4_defun([_LT_CC_BASENAME],
761[for cc_temp in $1""; do
762  case $cc_temp in
763    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
764    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
765    \-*) ;;
766    *) break;;
767  esac
768done
769cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
770])
771
772
773# _LT_FILEUTILS_DEFAULTS
774# ----------------------
775# It is okay to use these file commands and assume they have been set
776# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
777m4_defun([_LT_FILEUTILS_DEFAULTS],
778[: ${CP="cp -f"}
779: ${MV="mv -f"}
780: ${RM="rm -f"}
781])# _LT_FILEUTILS_DEFAULTS
782
783
784# _LT_SETUP
785# ---------
786m4_defun([_LT_SETUP],
787[AC_REQUIRE([AC_CANONICAL_HOST])dnl
788AC_REQUIRE([AC_CANONICAL_BUILD])dnl
789_LT_DECL([], [host_alias], [0], [The host system])dnl
790_LT_DECL([], [host], [0])dnl
791_LT_DECL([], [host_os], [0])dnl
792dnl
793_LT_DECL([], [build_alias], [0], [The build system])dnl
794_LT_DECL([], [build], [0])dnl
795_LT_DECL([], [build_os], [0])dnl
796dnl
797AC_REQUIRE([AC_PROG_CC])dnl
798AC_REQUIRE([LT_PATH_LD])dnl
799AC_REQUIRE([LT_PATH_NM])dnl
800dnl
801AC_REQUIRE([AC_PROG_LN_S])dnl
802test -z "$LN_S" && LN_S="ln -s"
803_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
804dnl
805AC_REQUIRE([LT_CMD_MAX_LEN])dnl
806_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
807_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
808dnl
809m4_require([_LT_FILEUTILS_DEFAULTS])dnl
810m4_require([_LT_CHECK_SHELL_FEATURES])dnl
811m4_require([_LT_CMD_RELOAD])dnl
812m4_require([_LT_CHECK_MAGIC_METHOD])dnl
813m4_require([_LT_CMD_OLD_ARCHIVE])dnl
814m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
815
816_LT_CONFIG_LIBTOOL_INIT([
817# See if we are running on zsh, and set the options which allow our
818# commands through without removal of \ escapes INIT.
819if test -n "\${ZSH_VERSION+set}" ; then
820   setopt NO_GLOB_SUBST
821fi
822])
823if test -n "${ZSH_VERSION+set}" ; then
824   setopt NO_GLOB_SUBST
825fi
826
827_LT_CHECK_OBJDIR
828
829m4_require([_LT_TAG_COMPILER])dnl
830_LT_PROG_ECHO_BACKSLASH
831
832case $host_os in
833aix3*)
834  # AIX sometimes has problems with the GCC collect2 program.  For some
835  # reason, if we set the COLLECT_NAMES environment variable, the problems
836  # vanish in a puff of smoke.
837  if test "X${COLLECT_NAMES+set}" != Xset; then
838    COLLECT_NAMES=
839    export COLLECT_NAMES
840  fi
841  ;;
842esac
843
844# Sed substitution that helps us do robust quoting.  It backslashifies
845# metacharacters that are still active within double-quoted strings.
846sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
847
848# Same as above, but do not quote variable references.
849double_quote_subst='s/\([["`\\]]\)/\\\1/g'
850
851# Sed substitution to delay expansion of an escaped shell variable in a
852# double_quote_subst'ed string.
853delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
854
855# Sed substitution to delay expansion of an escaped single quote.
856delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
857
858# Sed substitution to avoid accidental globbing in evaled expressions
859no_glob_subst='s/\*/\\\*/g'
860
861# Global variables:
862ofile=libtool
863can_build_shared=yes
864
865# All known linkers require a `.a' archive for static linking (except MSVC,
866# which needs '.lib').
867libext=a
868
869with_gnu_ld="$lt_cv_prog_gnu_ld"
870
871old_CC="$CC"
872old_CFLAGS="$CFLAGS"
873
874# Set sane defaults for various variables
875test -z "$CC" && CC=cc
876test -z "$LTCC" && LTCC=$CC
877test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
878test -z "$LD" && LD=ld
879test -z "$ac_objext" && ac_objext=o
880
881_LT_CC_BASENAME([$compiler])
882
883# Only perform the check for file, if the check method requires it
884test -z "$MAGIC_CMD" && MAGIC_CMD=file
885case $deplibs_check_method in
886file_magic*)
887  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
888    _LT_PATH_MAGIC
889  fi
890  ;;
891esac
892
893# Use C for the default configuration in the libtool script
894LT_SUPPORTED_TAG([CC])
895_LT_LANG_C_CONFIG
896_LT_LANG_DEFAULT_CONFIG
897_LT_CONFIG_COMMANDS
898])# _LT_SETUP
899
900
901# _LT_PROG_LTMAIN
902# ---------------
903# Note that this code is called both from `configure', and `config.status'
904# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
905# `config.status' has no value for ac_aux_dir unless we are using Automake,
906# so we pass a copy along to make sure it has a sensible value anyway.
907m4_defun([_LT_PROG_LTMAIN],
908[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
909_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
910ltmain="$ac_aux_dir/ltmain.sh"
911])# _LT_PROG_LTMAIN
912
913
914
915# So that we can recreate a full libtool script including additional
916# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
917# in macros and then make a single call at the end using the `libtool'
918# label.
919
920
921# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
922# ----------------------------------------
923# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
924m4_define([_LT_CONFIG_LIBTOOL_INIT],
925[m4_ifval([$1],
926          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
927                     [$1
928])])])
929
930# Initialize.
931m4_define([_LT_OUTPUT_LIBTOOL_INIT])
932
933
934# _LT_CONFIG_LIBTOOL([COMMANDS])
935# ------------------------------
936# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
937m4_define([_LT_CONFIG_LIBTOOL],
938[m4_ifval([$1],
939          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
940                     [$1
941])])])
942
943# Initialize.
944m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
945
946
947# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
948# -----------------------------------------------------
949m4_defun([_LT_CONFIG_SAVE_COMMANDS],
950[_LT_CONFIG_LIBTOOL([$1])
951_LT_CONFIG_LIBTOOL_INIT([$2])
952])
953
954
955# _LT_FORMAT_COMMENT([COMMENT])
956# -----------------------------
957# Add leading comment marks to the start of each line, and a trailing
958# full-stop to the whole comment if one is not present already.
959m4_define([_LT_FORMAT_COMMENT],
960[m4_ifval([$1], [
961m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
962              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
963)])
964
965
966
967
968
969# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
970# -------------------------------------------------------------------
971# CONFIGNAME is the name given to the value in the libtool script.
972# VARNAME is the (base) name used in the configure script.
973# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
974# VARNAME.  Any other value will be used directly.
975m4_define([_LT_DECL],
976[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
977    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
978	[m4_ifval([$1], [$1], [$2])])
979    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
980    m4_ifval([$4],
981	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
982    lt_dict_add_subkey([lt_decl_dict], [$2],
983	[tagged?], [m4_ifval([$5], [yes], [no])])])
984])
985
986
987# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
988# --------------------------------------------------------
989m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
990
991
992# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
993# ------------------------------------------------
994m4_define([lt_decl_tag_varnames],
995[_lt_decl_filter([tagged?], [yes], $@)])
996
997
998# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
999# ---------------------------------------------------------
1000m4_define([_lt_decl_filter],
1001[m4_case([$#],
1002  [0], [m4_fatal([$0: too few arguments: $#])],
1003  [1], [m4_fatal([$0: too few arguments: $#: $1])],
1004  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1005  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1006  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
1007])
1008
1009
1010# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1011# --------------------------------------------------
1012m4_define([lt_decl_quote_varnames],
1013[_lt_decl_filter([value], [1], $@)])
1014
1015
1016# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1017# ---------------------------------------------------
1018m4_define([lt_decl_dquote_varnames],
1019[_lt_decl_filter([value], [2], $@)])
1020
1021
1022# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1023# ---------------------------------------------------
1024m4_define([lt_decl_varnames_tagged],
1025[m4_assert([$# <= 2])dnl
1026_$0(m4_quote(m4_default([$1], [[, ]])),
1027    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1028    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1029m4_define([_lt_decl_varnames_tagged],
1030[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1031
1032
1033# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1034# ------------------------------------------------
1035m4_define([lt_decl_all_varnames],
1036[_$0(m4_quote(m4_default([$1], [[, ]])),
1037     m4_if([$2], [],
1038	   m4_quote(lt_decl_varnames),
1039	m4_quote(m4_shift($@))))[]dnl
1040])
1041m4_define([_lt_decl_all_varnames],
1042[lt_join($@, lt_decl_varnames_tagged([$1],
1043			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1044])
1045
1046
1047# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1048# ------------------------------------
1049# Quote a variable value, and forward it to `config.status' so that its
1050# declaration there will have the same value as in `configure'.  VARNAME
1051# must have a single quote delimited value for this to work.
1052m4_define([_LT_CONFIG_STATUS_DECLARE],
1053[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1054
1055
1056# _LT_CONFIG_STATUS_DECLARATIONS
1057# ------------------------------
1058# We delimit libtool config variables with single quotes, so when
1059# we write them to config.status, we have to be sure to quote all
1060# embedded single quotes properly.  In configure, this macro expands
1061# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1062#
1063#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1064m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1065[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1066    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1067
1068
1069# _LT_LIBTOOL_TAGS
1070# ----------------
1071# Output comment and list of tags supported by the script
1072m4_defun([_LT_LIBTOOL_TAGS],
1073[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1074available_tags="_LT_TAGS"dnl
1075])
1076
1077
1078# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1079# -----------------------------------
1080# Extract the dictionary values for VARNAME (optionally with TAG) and
1081# expand to a commented shell variable setting:
1082#
1083#    # Some comment about what VAR is for.
1084#    visible_name=$lt_internal_name
1085m4_define([_LT_LIBTOOL_DECLARE],
1086[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1087					   [description])))[]dnl
1088m4_pushdef([_libtool_name],
1089    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1090m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1091    [0], [_libtool_name=[$]$1],
1092    [1], [_libtool_name=$lt_[]$1],
1093    [2], [_libtool_name=$lt_[]$1],
1094    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1095m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1096])
1097
1098
1099# _LT_LIBTOOL_CONFIG_VARS
1100# -----------------------
1101# Produce commented declarations of non-tagged libtool config variables
1102# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1103# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
1104# section) are produced by _LT_LIBTOOL_TAG_VARS.
1105m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1106[m4_foreach([_lt_var],
1107    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1108    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1109
1110
1111# _LT_LIBTOOL_TAG_VARS(TAG)
1112# -------------------------
1113m4_define([_LT_LIBTOOL_TAG_VARS],
1114[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1115    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1116
1117
1118# _LT_TAGVAR(VARNAME, [TAGNAME])
1119# ------------------------------
1120m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1121
1122
1123# _LT_CONFIG_COMMANDS
1124# -------------------
1125# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
1126# variables for single and double quote escaping we saved from calls
1127# to _LT_DECL, we can put quote escaped variables declarations
1128# into `config.status', and then the shell code to quote escape them in
1129# for loops in `config.status'.  Finally, any additional code accumulated
1130# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1131m4_defun([_LT_CONFIG_COMMANDS],
1132[AC_PROVIDE_IFELSE([LT_OUTPUT],
1133	dnl If the libtool generation code has been placed in $CONFIG_LT,
1134	dnl instead of duplicating it all over again into config.status,
1135	dnl then we will have config.status run $CONFIG_LT later, so it
1136	dnl needs to know what name is stored there:
1137        [AC_CONFIG_COMMANDS([libtool],
1138            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1139    dnl If the libtool generation code is destined for config.status,
1140    dnl expand the accumulated commands and init code now:
1141    [AC_CONFIG_COMMANDS([libtool],
1142        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1143])#_LT_CONFIG_COMMANDS
1144
1145
1146# Initialize.
1147m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1148[
1149
1150# The HP-UX ksh and POSIX shell print the target directory to stdout
1151# if CDPATH is set.
1152(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1153
1154sed_quote_subst='$sed_quote_subst'
1155double_quote_subst='$double_quote_subst'
1156delay_variable_subst='$delay_variable_subst'
1157_LT_CONFIG_STATUS_DECLARATIONS
1158LTCC='$LTCC'
1159LTCFLAGS='$LTCFLAGS'
1160compiler='$compiler_DEFAULT'
1161
1162# Quote evaled strings.
1163for var in lt_decl_all_varnames([[ \
1164]], lt_decl_quote_varnames); do
1165    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1166    *[[\\\\\\\`\\"\\\$]]*)
1167      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1168      ;;
1169    *)
1170      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1171      ;;
1172    esac
1173done
1174
1175# Double-quote double-evaled strings.
1176for var in lt_decl_all_varnames([[ \
1177]], lt_decl_dquote_varnames); do
1178    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1179    *[[\\\\\\\`\\"\\\$]]*)
1180      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1181      ;;
1182    *)
1183      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1184      ;;
1185    esac
1186done
1187
1188# Fix-up fallback echo if it was mangled by the above quoting rules.
1189case \$lt_ECHO in
1190*'\\\[$]0 --fallback-echo"')dnl "
1191  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1192  ;;
1193esac
1194
1195_LT_OUTPUT_LIBTOOL_INIT
1196])
1197
1198
1199# LT_OUTPUT
1200# ---------
1201# This macro allows early generation of the libtool script (before
1202# AC_OUTPUT is called), incase it is used in configure for compilation
1203# tests.
1204AC_DEFUN([LT_OUTPUT],
1205[: ${CONFIG_LT=./config.lt}
1206AC_MSG_NOTICE([creating $CONFIG_LT])
1207cat >"$CONFIG_LT" <<_LTEOF
1208#! $SHELL
1209# Generated by $as_me.
1210# Run this file to recreate a libtool stub with the current configuration.
1211
1212lt_cl_silent=false
1213SHELL=\${CONFIG_SHELL-$SHELL}
1214_LTEOF
1215
1216cat >>"$CONFIG_LT" <<\_LTEOF
1217AS_SHELL_SANITIZE
1218_AS_PREPARE
1219
1220exec AS_MESSAGE_FD>&1
1221exec AS_MESSAGE_LOG_FD>>config.log
1222{
1223  echo
1224  AS_BOX([Running $as_me.])
1225} >&AS_MESSAGE_LOG_FD
1226
1227lt_cl_help="\
1228\`$as_me' creates a local libtool stub from the current configuration,
1229for use in further configure time tests before the real libtool is
1230generated.
1231
1232Usage: $[0] [[OPTIONS]]
1233
1234  -h, --help      print this help, then exit
1235  -V, --version   print version number, then exit
1236  -q, --quiet     do not print progress messages
1237  -d, --debug     don't remove temporary files
1238
1239Report bugs to <bug-libtool@gnu.org>."
1240
1241lt_cl_version="\
1242m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1243m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1244configured by $[0], generated by m4_PACKAGE_STRING.
1245
1246Copyright (C) 2008 Free Software Foundation, Inc.
1247This config.lt script is free software; the Free Software Foundation
1248gives unlimited permision to copy, distribute and modify it."
1249
1250while test $[#] != 0
1251do
1252  case $[1] in
1253    --version | --v* | -V )
1254      echo "$lt_cl_version"; exit 0 ;;
1255    --help | --h* | -h )
1256      echo "$lt_cl_help"; exit 0 ;;
1257    --debug | --d* | -d )
1258      debug=: ;;
1259    --quiet | --q* | --silent | --s* | -q )
1260      lt_cl_silent=: ;;
1261
1262    -*) AC_MSG_ERROR([unrecognized option: $[1]
1263Try \`$[0] --help' for more information.]) ;;
1264
1265    *) AC_MSG_ERROR([unrecognized argument: $[1]
1266Try \`$[0] --help' for more information.]) ;;
1267  esac
1268  shift
1269done
1270
1271if $lt_cl_silent; then
1272  exec AS_MESSAGE_FD>/dev/null
1273fi
1274_LTEOF
1275
1276cat >>"$CONFIG_LT" <<_LTEOF
1277_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1278_LTEOF
1279
1280cat >>"$CONFIG_LT" <<\_LTEOF
1281AC_MSG_NOTICE([creating $ofile])
1282_LT_OUTPUT_LIBTOOL_COMMANDS
1283AS_EXIT(0)
1284_LTEOF
1285chmod +x "$CONFIG_LT"
1286
1287# configure is writing to config.log, but config.lt does its own redirection,
1288# appending to config.log, which fails on DOS, as config.log is still kept
1289# open by configure.  Here we exec the FD to /dev/null, effectively closing
1290# config.log, so it can be properly (re)opened and appended to by config.lt.
1291if test "$no_create" != yes; then
1292  lt_cl_success=:
1293  test "$silent" = yes &&
1294    lt_config_lt_args="$lt_config_lt_args --quiet"
1295  exec AS_MESSAGE_LOG_FD>/dev/null
1296  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1297  exec AS_MESSAGE_LOG_FD>>config.log
1298  $lt_cl_success || AS_EXIT(1)
1299fi
1300])# LT_OUTPUT
1301
1302
1303# _LT_CONFIG(TAG)
1304# ---------------
1305# If TAG is the built-in tag, create an initial libtool script with a
1306# default configuration from the untagged config vars.  Otherwise add code
1307# to config.status for appending the configuration named by TAG from the
1308# matching tagged config vars.
1309m4_defun([_LT_CONFIG],
1310[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1311_LT_CONFIG_SAVE_COMMANDS([
1312  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1313  m4_if(_LT_TAG, [C], [
1314    # See if we are running on zsh, and set the options which allow our
1315    # commands through without removal of \ escapes.
1316    if test -n "${ZSH_VERSION+set}" ; then
1317      setopt NO_GLOB_SUBST
1318    fi
1319
1320    cfgfile="${ofile}T"
1321    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1322    $RM "$cfgfile"
1323
1324    cat <<_LT_EOF >> "$cfgfile"
1325#! $SHELL
1326
1327# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1328# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1329# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1330# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1331#
1332_LT_COPYING
1333_LT_LIBTOOL_TAGS
1334
1335# ### BEGIN LIBTOOL CONFIG
1336_LT_LIBTOOL_CONFIG_VARS
1337_LT_LIBTOOL_TAG_VARS
1338# ### END LIBTOOL CONFIG
1339
1340_LT_EOF
1341
1342  case $host_os in
1343  aix3*)
1344    cat <<\_LT_EOF >> "$cfgfile"
1345# AIX sometimes has problems with the GCC collect2 program.  For some
1346# reason, if we set the COLLECT_NAMES environment variable, the problems
1347# vanish in a puff of smoke.
1348if test "X${COLLECT_NAMES+set}" != Xset; then
1349  COLLECT_NAMES=
1350  export COLLECT_NAMES
1351fi
1352_LT_EOF
1353    ;;
1354  esac
1355
1356  _LT_PROG_LTMAIN
1357
1358  # We use sed instead of cat because bash on DJGPP gets confused if
1359  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
1360  # text mode, it properly converts lines to CR/LF.  This bash problem
1361  # is reportedly fixed, but why not run on old versions too?
1362  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1363    || (rm -f "$cfgfile"; exit 1)
1364
1365  _LT_PROG_XSI_SHELLFNS
1366
1367  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1368    || (rm -f "$cfgfile"; exit 1)
1369
1370  mv -f "$cfgfile" "$ofile" ||
1371    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1372  chmod +x "$ofile"
1373],
1374[cat <<_LT_EOF >> "$ofile"
1375
1376dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1377dnl in a comment (ie after a #).
1378# ### BEGIN LIBTOOL TAG CONFIG: $1
1379_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1380# ### END LIBTOOL TAG CONFIG: $1
1381_LT_EOF
1382])dnl /m4_if
1383],
1384[m4_if([$1], [], [
1385    PACKAGE='$PACKAGE'
1386    VERSION='$VERSION'
1387    TIMESTAMP='$TIMESTAMP'
1388    RM='$RM'
1389    ofile='$ofile'], [])
1390])dnl /_LT_CONFIG_SAVE_COMMANDS
1391])# _LT_CONFIG
1392
1393
1394# LT_SUPPORTED_TAG(TAG)
1395# ---------------------
1396# Trace this macro to discover what tags are supported by the libtool
1397# --tag option, using:
1398#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
1399AC_DEFUN([LT_SUPPORTED_TAG], [])
1400
1401
1402# C support is built-in for now
1403m4_define([_LT_LANG_C_enabled], [])
1404m4_define([_LT_TAGS], [])
1405
1406
1407# LT_LANG(LANG)
1408# -------------
1409# Enable libtool support for the given language if not already enabled.
1410AC_DEFUN([LT_LANG],
1411[AC_BEFORE([$0], [LT_OUTPUT])dnl
1412m4_case([$1],
1413  [C],			[_LT_LANG(C)],
1414  [C++],		[_LT_LANG(CXX)],
1415  [Java],		[_LT_LANG(GCJ)],
1416  [Fortran 77],		[_LT_LANG(F77)],
1417  [Fortran],		[_LT_LANG(FC)],
1418  [Windows Resource],	[_LT_LANG(RC)],
1419  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1420    [_LT_LANG($1)],
1421    [m4_fatal([$0: unsupported language: "$1"])])])dnl
1422])# LT_LANG
1423
1424
1425# _LT_LANG(LANGNAME)
1426# ------------------
1427m4_defun([_LT_LANG],
1428[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1429  [LT_SUPPORTED_TAG([$1])dnl
1430  m4_append([_LT_TAGS], [$1 ])dnl
1431  m4_define([_LT_LANG_]$1[_enabled], [])dnl
1432  _LT_LANG_$1_CONFIG($1)])dnl
1433])# _LT_LANG
1434
1435
1436# _LT_LANG_DEFAULT_CONFIG
1437# -----------------------
1438m4_defun([_LT_LANG_DEFAULT_CONFIG],
1439[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1440  [LT_LANG(CXX)],
1441  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1442
1443AC_PROVIDE_IFELSE([AC_PROG_F77],
1444  [LT_LANG(F77)],
1445  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1446
1447AC_PROVIDE_IFELSE([AC_PROG_FC],
1448  [LT_LANG(FC)],
1449  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1450
1451dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1452dnl pulling things in needlessly.
1453AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1454  [LT_LANG(GCJ)],
1455  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1456    [LT_LANG(GCJ)],
1457    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1458      [LT_LANG(GCJ)],
1459      [m4_ifdef([AC_PROG_GCJ],
1460	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1461       m4_ifdef([A][M_PROG_GCJ],
1462	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1463       m4_ifdef([LT_PROG_GCJ],
1464	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1465
1466AC_PROVIDE_IFELSE([LT_PROG_RC],
1467  [LT_LANG(RC)],
1468  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1469])# _LT_LANG_DEFAULT_CONFIG
1470
1471# Obsolete macros:
1472AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1473AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1474AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1475AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1476dnl aclocal-1.4 backwards compatibility:
1477dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1478dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1479dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1480dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1481
1482
1483# _LT_TAG_COMPILER
1484# ----------------
1485m4_defun([_LT_TAG_COMPILER],
1486[AC_REQUIRE([AC_PROG_CC])dnl
1487
1488_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1489_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1490_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1491_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1492
1493# If no C compiler was specified, use CC.
1494LTCC=${LTCC-"$CC"}
1495
1496# If no C compiler flags were specified, use CFLAGS.
1497LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1498
1499# Allow CC to be a program name with arguments.
1500compiler=$CC
1501])# _LT_TAG_COMPILER
1502
1503
1504# _LT_COMPILER_BOILERPLATE
1505# ------------------------
1506# Check for compiler boilerplate output or warnings with
1507# the simple compiler test code.
1508m4_defun([_LT_COMPILER_BOILERPLATE],
1509[m4_require([_LT_DECL_SED])dnl
1510ac_outfile=conftest.$ac_objext
1511echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1512eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1513_lt_compiler_boilerplate=`cat conftest.err`
1514$RM conftest*
1515])# _LT_COMPILER_BOILERPLATE
1516
1517
1518# _LT_LINKER_BOILERPLATE
1519# ----------------------
1520# Check for linker boilerplate output or warnings with
1521# the simple link test code.
1522m4_defun([_LT_LINKER_BOILERPLATE],
1523[m4_require([_LT_DECL_SED])dnl
1524ac_outfile=conftest.$ac_objext
1525echo "$lt_simple_link_test_code" >conftest.$ac_ext
1526eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1527_lt_linker_boilerplate=`cat conftest.err`
1528$RM -r conftest*
1529])# _LT_LINKER_BOILERPLATE
1530
1531# _LT_REQUIRED_DARWIN_CHECKS
1532# -------------------------
1533m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1534  case $host_os in
1535    rhapsody* | darwin*)
1536    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1537    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1538    AC_CHECK_TOOL([LIPO], [lipo], [:])
1539    AC_CHECK_TOOL([OTOOL], [otool], [:])
1540    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1541    _LT_DECL([], [DSYMUTIL], [1],
1542      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1543    _LT_DECL([], [NMEDIT], [1],
1544      [Tool to change global to local symbols on Mac OS X])
1545    _LT_DECL([], [LIPO], [1],
1546      [Tool to manipulate fat objects and archives on Mac OS X])
1547    _LT_DECL([], [OTOOL], [1],
1548      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1549    _LT_DECL([], [OTOOL64], [1],
1550      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1551
1552    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1553      [lt_cv_apple_cc_single_mod=no
1554      if test -z "${LT_MULTI_MODULE}"; then
1555	# By default we will add the -single_module flag. You can override
1556	# by either setting the environment variable LT_MULTI_MODULE
1557	# non-empty at configure time, or by adding -multi_module to the
1558	# link flags.
1559	rm -rf libconftest.dylib*
1560	echo "int foo(void){return 1;}" > conftest.c
1561	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1562-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1563	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1564	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1565        _lt_result=$?
1566	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1567	  lt_cv_apple_cc_single_mod=yes
1568	else
1569	  cat conftest.err >&AS_MESSAGE_LOG_FD
1570	fi
1571	rm -rf libconftest.dylib*
1572	rm -f conftest.*
1573      fi])
1574    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1575      [lt_cv_ld_exported_symbols_list],
1576      [lt_cv_ld_exported_symbols_list=no
1577      save_LDFLAGS=$LDFLAGS
1578      echo "_main" > conftest.sym
1579      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1580      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1581	[lt_cv_ld_exported_symbols_list=yes],
1582	[lt_cv_ld_exported_symbols_list=no])
1583	LDFLAGS="$save_LDFLAGS"
1584    ])
1585    case $host_os in
1586    rhapsody* | darwin1.[[012]])
1587      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1588    darwin1.*)
1589      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1590    darwin*) # darwin 5.x on
1591      # if running on 10.5 or later, the deployment target defaults
1592      # to the OS version, if on x86, and 10.4, the deployment
1593      # target defaults to 10.4. Don't you love it?
1594      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1595	10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1596	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1597	10.[[012]]*)
1598	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1599	10.*)
1600	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1601      esac
1602    ;;
1603  esac
1604    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1605      _lt_dar_single_mod='$single_module'
1606    fi
1607    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1608      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1609    else
1610      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1611    fi
1612    if test "$DSYMUTIL" != ":"; then
1613      _lt_dsymutil='~$DSYMUTIL $lib || :'
1614    else
1615      _lt_dsymutil=
1616    fi
1617    ;;
1618  esac
1619])
1620
1621
1622# _LT_DARWIN_LINKER_FEATURES
1623# --------------------------
1624# Checks for linker and compiler features on darwin
1625m4_defun([_LT_DARWIN_LINKER_FEATURES],
1626[
1627  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1628  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1629  _LT_TAGVAR(hardcode_direct, $1)=no
1630  _LT_TAGVAR(hardcode_automatic, $1)=yes
1631  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1632  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1633  _LT_TAGVAR(link_all_deplibs, $1)=yes
1634  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1635  case $cc_basename in
1636     ifort*) _lt_dar_can_shared=yes ;;
1637     *) _lt_dar_can_shared=$GCC ;;
1638  esac
1639  if test "$_lt_dar_can_shared" = "yes"; then
1640    output_verbose_link_cmd=echo
1641    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1642    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1643    _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1644    _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1645    m4_if([$1], [CXX],
1646[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1647      _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
1648      _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1649    fi
1650],[])
1651  else
1652  _LT_TAGVAR(ld_shlibs, $1)=no
1653  fi
1654])
1655
1656# _LT_SYS_MODULE_PATH_AIX
1657# -----------------------
1658# Links a minimal program and checks the executable
1659# for the system default hardcoded library path. In most cases,
1660# this is /usr/lib:/lib, but when the MPI compilers are used
1661# the location of the communication and MPI libs are included too.
1662# If we don't find anything, use the default library path according
1663# to the aix ld manual.
1664m4_defun([_LT_SYS_MODULE_PATH_AIX],
1665[m4_require([_LT_DECL_SED])dnl
1666AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1667lt_aix_libpath_sed='
1668    /Import File Strings/,/^$/ {
1669	/^0/ {
1670	    s/^0  *\(.*\)$/\1/
1671	    p
1672	}
1673    }'
1674aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1675# Check for a 64-bit object if we didn't find anything.
1676if test -z "$aix_libpath"; then
1677  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1678fi],[])
1679if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1680])# _LT_SYS_MODULE_PATH_AIX
1681
1682
1683# _LT_SHELL_INIT(ARG)
1684# -------------------
1685m4_define([_LT_SHELL_INIT],
1686[ifdef([AC_DIVERSION_NOTICE],
1687	     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1688	 [AC_DIVERT_PUSH(NOTICE)])
1689$1
1690AC_DIVERT_POP
1691])# _LT_SHELL_INIT
1692
1693
1694# _LT_PROG_ECHO_BACKSLASH
1695# -----------------------
1696# Add some code to the start of the generated configure script which
1697# will find an echo command which doesn't interpret backslashes.
1698m4_defun([_LT_PROG_ECHO_BACKSLASH],
1699[_LT_SHELL_INIT([
1700# Check that we are running under the correct shell.
1701SHELL=${CONFIG_SHELL-/bin/sh}
1702
1703case X$lt_ECHO in
1704X*--fallback-echo)
1705  # Remove one level of quotation (which was required for Make).
1706  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1707  ;;
1708esac
1709
1710ECHO=${lt_ECHO-echo}
1711if test "X[$]1" = X--no-reexec; then
1712  # Discard the --no-reexec flag, and continue.
1713  shift
1714elif test "X[$]1" = X--fallback-echo; then
1715  # Avoid inline document here, it may be left over
1716  :
1717elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1718  # Yippee, $ECHO works!
1719  :
1720else
1721  # Restart under the correct shell.
1722  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1723fi
1724
1725if test "X[$]1" = X--fallback-echo; then
1726  # used as fallback echo
1727  shift
1728  cat <<_LT_EOF
1729[$]*
1730_LT_EOF
1731  exit 0
1732fi
1733
1734# The HP-UX ksh and POSIX shell print the target directory to stdout
1735# if CDPATH is set.
1736(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1737
1738if test -z "$lt_ECHO"; then
1739  if test "X${echo_test_string+set}" != Xset; then
1740    # find a string as large as possible, as long as the shell can cope with it
1741    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1742      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1743      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1744	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1745      then
1746        break
1747      fi
1748    done
1749  fi
1750
1751  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1752     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1753     test "X$echo_testing_string" = "X$echo_test_string"; then
1754    :
1755  else
1756    # The Solaris, AIX, and Digital Unix default echo programs unquote
1757    # backslashes.  This makes it impossible to quote backslashes using
1758    #   echo "$something" | sed 's/\\/\\\\/g'
1759    #
1760    # So, first we look for a working echo in the user's PATH.
1761
1762    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1763    for dir in $PATH /usr/ucb; do
1764      IFS="$lt_save_ifs"
1765      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1766         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1767         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1768         test "X$echo_testing_string" = "X$echo_test_string"; then
1769        ECHO="$dir/echo"
1770        break
1771      fi
1772    done
1773    IFS="$lt_save_ifs"
1774
1775    if test "X$ECHO" = Xecho; then
1776      # We didn't find a better echo, so look for alternatives.
1777      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1778         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1779         test "X$echo_testing_string" = "X$echo_test_string"; then
1780        # This shell has a builtin print -r that does the trick.
1781        ECHO='print -r'
1782      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1783	   test "X$CONFIG_SHELL" != X/bin/ksh; then
1784        # If we have ksh, try running configure again with it.
1785        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1786        export ORIGINAL_CONFIG_SHELL
1787        CONFIG_SHELL=/bin/ksh
1788        export CONFIG_SHELL
1789        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1790      else
1791        # Try using printf.
1792        ECHO='printf %s\n'
1793        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1794	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1795	   test "X$echo_testing_string" = "X$echo_test_string"; then
1796	  # Cool, printf works
1797	  :
1798        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1799	     test "X$echo_testing_string" = 'X\t' &&
1800	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1801	     test "X$echo_testing_string" = "X$echo_test_string"; then
1802	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1803	  export CONFIG_SHELL
1804	  SHELL="$CONFIG_SHELL"
1805	  export SHELL
1806	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1807        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1808	     test "X$echo_testing_string" = 'X\t' &&
1809	     echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1810	     test "X$echo_testing_string" = "X$echo_test_string"; then
1811	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1812        else
1813	  # maybe with a smaller string...
1814	  prev=:
1815
1816	  for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1817	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1818	    then
1819	      break
1820	    fi
1821	    prev="$cmd"
1822	  done
1823
1824	  if test "$prev" != 'sed 50q "[$]0"'; then
1825	    echo_test_string=`eval $prev`
1826	    export echo_test_string
1827	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1828	  else
1829	    # Oops.  We lost completely, so just stick with echo.
1830	    ECHO=echo
1831	  fi
1832        fi
1833      fi
1834    fi
1835  fi
1836fi
1837
1838# Copy echo and quote the copy suitably for passing to libtool from
1839# the Makefile, instead of quoting the original, which is used later.
1840lt_ECHO=$ECHO
1841if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1842   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1843fi
1844
1845AC_SUBST(lt_ECHO)
1846])
1847_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1848_LT_DECL([], [ECHO], [1],
1849    [An echo program that does not interpret backslashes])
1850])# _LT_PROG_ECHO_BACKSLASH
1851
1852
1853# _LT_ENABLE_LOCK
1854# ---------------
1855m4_defun([_LT_ENABLE_LOCK],
1856[AC_ARG_ENABLE([libtool-lock],
1857  [AS_HELP_STRING([--disable-libtool-lock],
1858    [avoid locking (might break parallel builds)])])
1859test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1860
1861# Some flags need to be propagated to the compiler or linker for good
1862# libtool support.
1863case $host in
1864ia64-*-hpux*)
1865  # Find out which ABI we are using.
1866  echo 'int i;' > conftest.$ac_ext
1867  if AC_TRY_EVAL(ac_compile); then
1868    case `/usr/bin/file conftest.$ac_objext` in
1869      *ELF-32*)
1870	HPUX_IA64_MODE="32"
1871	;;
1872      *ELF-64*)
1873	HPUX_IA64_MODE="64"
1874	;;
1875    esac
1876  fi
1877  rm -rf conftest*
1878  ;;
1879*-*-irix6*)
1880  # Find out which ABI we are using.
1881  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1882  if AC_TRY_EVAL(ac_compile); then
1883    if test "$lt_cv_prog_gnu_ld" = yes; then
1884      case `/usr/bin/file conftest.$ac_objext` in
1885	*32-bit*)
1886	  LD="${LD-ld} -melf32bsmip"
1887	  ;;
1888	*N32*)
1889	  LD="${LD-ld} -melf32bmipn32"
1890	  ;;
1891	*64-bit*)
1892	  LD="${LD-ld} -melf64bmip"
1893	;;
1894      esac
1895    else
1896      case `/usr/bin/file conftest.$ac_objext` in
1897	*32-bit*)
1898	  LD="${LD-ld} -32"
1899	  ;;
1900	*N32*)
1901	  LD="${LD-ld} -n32"
1902	  ;;
1903	*64-bit*)
1904	  LD="${LD-ld} -64"
1905	  ;;
1906      esac
1907    fi
1908  fi
1909  rm -rf conftest*
1910  ;;
1911
1912x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1913s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1914  # Find out which ABI we are using.
1915  echo 'int i;' > conftest.$ac_ext
1916  if AC_TRY_EVAL(ac_compile); then
1917    case `/usr/bin/file conftest.o` in
1918      *32-bit*)
1919	case $host in
1920	  x86_64-*kfreebsd*-gnu)
1921	    LD="${LD-ld} -m elf_i386_fbsd"
1922	    ;;
1923	  x86_64-*linux*)
1924	    LD="${LD-ld} -m elf_i386"
1925	    ;;
1926	  ppc64-*linux*|powerpc64-*linux*)
1927	    LD="${LD-ld} -m elf32ppclinux"
1928	    ;;
1929	  s390x-*linux*)
1930	    LD="${LD-ld} -m elf_s390"
1931	    ;;
1932	  sparc64-*linux*)
1933	    LD="${LD-ld} -m elf32_sparc"
1934	    ;;
1935	esac
1936	;;
1937      *64-bit*)
1938	case $host in
1939	  x86_64-*kfreebsd*-gnu)
1940	    LD="${LD-ld} -m elf_x86_64_fbsd"
1941	    ;;
1942	  x86_64-*linux*)
1943	    LD="${LD-ld} -m elf_x86_64"
1944	    ;;
1945	  ppc*-*linux*|powerpc*-*linux*)
1946	    LD="${LD-ld} -m elf64ppc"
1947	    ;;
1948	  s390*-*linux*|s390*-*tpf*)
1949	    LD="${LD-ld} -m elf64_s390"
1950	    ;;
1951	  sparc*-*linux*)
1952	    LD="${LD-ld} -m elf64_sparc"
1953	    ;;
1954	esac
1955	;;
1956    esac
1957  fi
1958  rm -rf conftest*
1959  ;;
1960
1961*-*-sco3.2v5*)
1962  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1963  SAVE_CFLAGS="$CFLAGS"
1964  CFLAGS="$CFLAGS -belf"
1965  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1966    [AC_LANG_PUSH(C)
1967     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1968     AC_LANG_POP])
1969  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1970    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1971    CFLAGS="$SAVE_CFLAGS"
1972  fi
1973  ;;
1974sparc*-*solaris*)
1975  # Find out which ABI we are using.
1976  echo 'int i;' > conftest.$ac_ext
1977  if AC_TRY_EVAL(ac_compile); then
1978    case `/usr/bin/file conftest.o` in
1979    *64-bit*)
1980      case $lt_cv_prog_gnu_ld in
1981      yes*) LD="${LD-ld} -m elf64_sparc" ;;
1982      *)
1983	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1984	  LD="${LD-ld} -64"
1985	fi
1986	;;
1987      esac
1988      ;;
1989    esac
1990  fi
1991  rm -rf conftest*
1992  ;;
1993esac
1994
1995need_locks="$enable_libtool_lock"
1996])# _LT_ENABLE_LOCK
1997
1998
1999# _LT_CMD_OLD_ARCHIVE
2000# -------------------
2001m4_defun([_LT_CMD_OLD_ARCHIVE],
2002[AC_CHECK_TOOL(AR, ar, false)
2003test -z "$AR" && AR=ar
2004test -z "$AR_FLAGS" && AR_FLAGS=cru
2005_LT_DECL([], [AR], [1], [The archiver])
2006_LT_DECL([], [AR_FLAGS], [1])
2007
2008AC_CHECK_TOOL(STRIP, strip, :)
2009test -z "$STRIP" && STRIP=:
2010_LT_DECL([], [STRIP], [1], [A symbol stripping program])
2011
2012AC_CHECK_TOOL(RANLIB, ranlib, :)
2013test -z "$RANLIB" && RANLIB=:
2014_LT_DECL([], [RANLIB], [1],
2015    [Commands used to install an old-style archive])
2016
2017# Determine commands to create old-style static archives.
2018old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2019old_postinstall_cmds='chmod 644 $oldlib'
2020old_postuninstall_cmds=
2021
2022if test -n "$RANLIB"; then
2023  case $host_os in
2024  openbsd*)
2025    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2026    ;;
2027  *)
2028    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2029    ;;
2030  esac
2031  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2032fi
2033_LT_DECL([], [old_postinstall_cmds], [2])
2034_LT_DECL([], [old_postuninstall_cmds], [2])
2035_LT_TAGDECL([], [old_archive_cmds], [2],
2036    [Commands used to build an old-style archive])
2037])# _LT_CMD_OLD_ARCHIVE
2038
2039
2040# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2041#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2042# ----------------------------------------------------------------
2043# Check whether the given compiler option works
2044AC_DEFUN([_LT_COMPILER_OPTION],
2045[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2046m4_require([_LT_DECL_SED])dnl
2047AC_CACHE_CHECK([$1], [$2],
2048  [$2=no
2049   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2050   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2051   lt_compiler_flag="$3"
2052   # Insert the option either (1) after the last *FLAGS variable, or
2053   # (2) before a word containing "conftest.", or (3) at the end.
2054   # Note that $ac_compile itself does not contain backslashes and begins
2055   # with a dollar sign (not a hyphen), so the echo should work correctly.
2056   # The option is referenced via a variable to avoid confusing sed.
2057   lt_compile=`echo "$ac_compile" | $SED \
2058   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2059   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2060   -e 's:$: $lt_compiler_flag:'`
2061   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2062   (eval "$lt_compile" 2>conftest.err)
2063   ac_status=$?
2064   cat conftest.err >&AS_MESSAGE_LOG_FD
2065   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2066   if (exit $ac_status) && test -s "$ac_outfile"; then
2067     # The compiler can only warn and ignore the option if not recognized
2068     # So say no if there are warnings other than the usual output.
2069     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2070     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2071     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2072       $2=yes
2073     fi
2074   fi
2075   $RM conftest*
2076])
2077
2078if test x"[$]$2" = xyes; then
2079    m4_if([$5], , :, [$5])
2080else
2081    m4_if([$6], , :, [$6])
2082fi
2083])# _LT_COMPILER_OPTION
2084
2085# Old name:
2086AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2087dnl aclocal-1.4 backwards compatibility:
2088dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2089
2090
2091# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2092#                  [ACTION-SUCCESS], [ACTION-FAILURE])
2093# ----------------------------------------------------
2094# Check whether the given linker option works
2095AC_DEFUN([_LT_LINKER_OPTION],
2096[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2097m4_require([_LT_DECL_SED])dnl
2098AC_CACHE_CHECK([$1], [$2],
2099  [$2=no
2100   save_LDFLAGS="$LDFLAGS"
2101   LDFLAGS="$LDFLAGS $3"
2102   echo "$lt_simple_link_test_code" > conftest.$ac_ext
2103   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2104     # The linker can only warn and ignore the option if not recognized
2105     # So say no if there are warnings
2106     if test -s conftest.err; then
2107       # Append any errors to the config.log.
2108       cat conftest.err 1>&AS_MESSAGE_LOG_FD
2109       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2110       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2111       if diff conftest.exp conftest.er2 >/dev/null; then
2112         $2=yes
2113       fi
2114     else
2115       $2=yes
2116     fi
2117   fi
2118   $RM -r conftest*
2119   LDFLAGS="$save_LDFLAGS"
2120])
2121
2122if test x"[$]$2" = xyes; then
2123    m4_if([$4], , :, [$4])
2124else
2125    m4_if([$5], , :, [$5])
2126fi
2127])# _LT_LINKER_OPTION
2128
2129# Old name:
2130AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2131dnl aclocal-1.4 backwards compatibility:
2132dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2133
2134
2135# LT_CMD_MAX_LEN
2136#---------------
2137AC_DEFUN([LT_CMD_MAX_LEN],
2138[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2139# find the maximum length of command line arguments
2140AC_MSG_CHECKING([the maximum length of command line arguments])
2141AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2142  i=0
2143  teststring="ABCD"
2144
2145  case $build_os in
2146  msdosdjgpp*)
2147    # On DJGPP, this test can blow up pretty badly due to problems in libc
2148    # (any single argument exceeding 2000 bytes causes a buffer overrun
2149    # during glob expansion).  Even if it were fixed, the result of this
2150    # check would be larger than it should be.
2151    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
2152    ;;
2153
2154  gnu*)
2155    # Under GNU Hurd, this test is not required because there is
2156    # no limit to the length of command line arguments.
2157    # Libtool will interpret -1 as no limit whatsoever
2158    lt_cv_sys_max_cmd_len=-1;
2159    ;;
2160
2161  cygwin* | mingw* | cegcc*)
2162    # On Win9x/ME, this test blows up -- it succeeds, but takes
2163    # about 5 minutes as the teststring grows exponentially.
2164    # Worse, since 9x/ME are not pre-emptively multitasking,
2165    # you end up with a "frozen" computer, even though with patience
2166    # the test eventually succeeds (with a max line length of 256k).
2167    # Instead, let's just punt: use the minimum linelength reported by
2168    # all of the supported platforms: 8192 (on NT/2K/XP).
2169    lt_cv_sys_max_cmd_len=8192;
2170    ;;
2171
2172  amigaos*)
2173    # On AmigaOS with pdksh, this test takes hours, literally.
2174    # So we just punt and use a minimum line length of 8192.
2175    lt_cv_sys_max_cmd_len=8192;
2176    ;;
2177
2178  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2179    # This has been around since 386BSD, at least.  Likely further.
2180    if test -x /sbin/sysctl; then
2181      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2182    elif test -x /usr/sbin/sysctl; then
2183      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2184    else
2185      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
2186    fi
2187    # And add a safety zone
2188    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2189    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2190    ;;
2191
2192  interix*)
2193    # We know the value 262144 and hardcode it with a safety zone (like BSD)
2194    lt_cv_sys_max_cmd_len=196608
2195    ;;
2196
2197  osf*)
2198    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2199    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2200    # nice to cause kernel panics so lets avoid the loop below.
2201    # First set a reasonable default.
2202    lt_cv_sys_max_cmd_len=16384
2203    #
2204    if test -x /sbin/sysconfig; then
2205      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2206        *1*) lt_cv_sys_max_cmd_len=-1 ;;
2207      esac
2208    fi
2209    ;;
2210  sco3.2v5*)
2211    lt_cv_sys_max_cmd_len=102400
2212    ;;
2213  sysv5* | sco5v6* | sysv4.2uw2*)
2214    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2215    if test -n "$kargmax"; then
2216      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[	 ]]//'`
2217    else
2218      lt_cv_sys_max_cmd_len=32768
2219    fi
2220    ;;
2221  *)
2222    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2223    if test -n "$lt_cv_sys_max_cmd_len"; then
2224      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2225      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2226    else
2227      # Make teststring a little bigger before we do anything with it.
2228      # a 1K string should be a reasonable start.
2229      for i in 1 2 3 4 5 6 7 8 ; do
2230        teststring=$teststring$teststring
2231      done
2232      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2233      # If test is not a shell built-in, we'll probably end up computing a
2234      # maximum length that is only half of the actual maximum length, but
2235      # we can't tell.
2236      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2237	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
2238	      test $i != 17 # 1/2 MB should be enough
2239      do
2240        i=`expr $i + 1`
2241        teststring=$teststring$teststring
2242      done
2243      # Only check the string length outside the loop.
2244      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2245      teststring=
2246      # Add a significant safety factor because C++ compilers can tack on
2247      # massive amounts of additional arguments before passing them to the
2248      # linker.  It appears as though 1/2 is a usable value.
2249      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2250    fi
2251    ;;
2252  esac
2253])
2254if test -n $lt_cv_sys_max_cmd_len ; then
2255  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2256else
2257  AC_MSG_RESULT(none)
2258fi
2259max_cmd_len=$lt_cv_sys_max_cmd_len
2260_LT_DECL([], [max_cmd_len], [0],
2261    [What is the maximum length of a command?])
2262])# LT_CMD_MAX_LEN
2263
2264# Old name:
2265AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2266dnl aclocal-1.4 backwards compatibility:
2267dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2268
2269
2270# _LT_HEADER_DLFCN
2271# ----------------
2272m4_defun([_LT_HEADER_DLFCN],
2273[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2274])# _LT_HEADER_DLFCN
2275
2276
2277# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2278#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2279# ----------------------------------------------------------------
2280m4_defun([_LT_TRY_DLOPEN_SELF],
2281[m4_require([_LT_HEADER_DLFCN])dnl
2282if test "$cross_compiling" = yes; then :
2283  [$4]
2284else
2285  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2286  lt_status=$lt_dlunknown
2287  cat > conftest.$ac_ext <<_LT_EOF
2288[#line __oline__ "configure"
2289#include "confdefs.h"
2290
2291#if HAVE_DLFCN_H
2292#include <dlfcn.h>
2293#endif
2294
2295#include <stdio.h>
2296
2297#ifdef RTLD_GLOBAL
2298#  define LT_DLGLOBAL		RTLD_GLOBAL
2299#else
2300#  ifdef DL_GLOBAL
2301#    define LT_DLGLOBAL		DL_GLOBAL
2302#  else
2303#    define LT_DLGLOBAL		0
2304#  endif
2305#endif
2306
2307/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2308   find out it does not work in some platform. */
2309#ifndef LT_DLLAZY_OR_NOW
2310#  ifdef RTLD_LAZY
2311#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
2312#  else
2313#    ifdef DL_LAZY
2314#      define LT_DLLAZY_OR_NOW		DL_LAZY
2315#    else
2316#      ifdef RTLD_NOW
2317#        define LT_DLLAZY_OR_NOW	RTLD_NOW
2318#      else
2319#        ifdef DL_NOW
2320#          define LT_DLLAZY_OR_NOW	DL_NOW
2321#        else
2322#          define LT_DLLAZY_OR_NOW	0
2323#        endif
2324#      endif
2325#    endif
2326#  endif
2327#endif
2328
2329void fnord() { int i=42;}
2330int main ()
2331{
2332  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2333  int status = $lt_dlunknown;
2334
2335  if (self)
2336    {
2337      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
2338      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2339      /* dlclose (self); */
2340    }
2341  else
2342    puts (dlerror ());
2343
2344  return status;
2345}]
2346_LT_EOF
2347  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2348    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2349    lt_status=$?
2350    case x$lt_status in
2351      x$lt_dlno_uscore) $1 ;;
2352      x$lt_dlneed_uscore) $2 ;;
2353      x$lt_dlunknown|x*) $3 ;;
2354    esac
2355  else :
2356    # compilation failed
2357    $3
2358  fi
2359fi
2360rm -fr conftest*
2361])# _LT_TRY_DLOPEN_SELF
2362
2363
2364# LT_SYS_DLOPEN_SELF
2365# ------------------
2366AC_DEFUN([LT_SYS_DLOPEN_SELF],
2367[m4_require([_LT_HEADER_DLFCN])dnl
2368if test "x$enable_dlopen" != xyes; then
2369  enable_dlopen=unknown
2370  enable_dlopen_self=unknown
2371  enable_dlopen_self_static=unknown
2372else
2373  lt_cv_dlopen=no
2374  lt_cv_dlopen_libs=
2375
2376  case $host_os in
2377  beos*)
2378    lt_cv_dlopen="load_add_on"
2379    lt_cv_dlopen_libs=
2380    lt_cv_dlopen_self=yes
2381    ;;
2382
2383  mingw* | pw32* | cegcc*)
2384    lt_cv_dlopen="LoadLibrary"
2385    lt_cv_dlopen_libs=
2386    ;;
2387
2388  cygwin*)
2389    lt_cv_dlopen="dlopen"
2390    lt_cv_dlopen_libs=
2391    ;;
2392
2393  darwin*)
2394  # if libdl is installed we need to link against it
2395    AC_CHECK_LIB([dl], [dlopen],
2396		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2397    lt_cv_dlopen="dyld"
2398    lt_cv_dlopen_libs=
2399    lt_cv_dlopen_self=yes
2400    ])
2401    ;;
2402
2403  *)
2404    AC_CHECK_FUNC([shl_load],
2405	  [lt_cv_dlopen="shl_load"],
2406      [AC_CHECK_LIB([dld], [shl_load],
2407	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2408	[AC_CHECK_FUNC([dlopen],
2409	      [lt_cv_dlopen="dlopen"],
2410	  [AC_CHECK_LIB([dl], [dlopen],
2411		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2412	    [AC_CHECK_LIB([svld], [dlopen],
2413		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2414	      [AC_CHECK_LIB([dld], [dld_link],
2415		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2416	      ])
2417	    ])
2418	  ])
2419	])
2420      ])
2421    ;;
2422  esac
2423
2424  if test "x$lt_cv_dlopen" != xno; then
2425    enable_dlopen=yes
2426  else
2427    enable_dlopen=no
2428  fi
2429
2430  case $lt_cv_dlopen in
2431  dlopen)
2432    save_CPPFLAGS="$CPPFLAGS"
2433    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2434
2435    save_LDFLAGS="$LDFLAGS"
2436    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2437
2438    save_LIBS="$LIBS"
2439    LIBS="$lt_cv_dlopen_libs $LIBS"
2440
2441    AC_CACHE_CHECK([whether a program can dlopen itself],
2442	  lt_cv_dlopen_self, [dnl
2443	  _LT_TRY_DLOPEN_SELF(
2444	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2445	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2446    ])
2447
2448    if test "x$lt_cv_dlopen_self" = xyes; then
2449      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2450      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2451	  lt_cv_dlopen_self_static, [dnl
2452	  _LT_TRY_DLOPEN_SELF(
2453	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2454	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
2455      ])
2456    fi
2457
2458    CPPFLAGS="$save_CPPFLAGS"
2459    LDFLAGS="$save_LDFLAGS"
2460    LIBS="$save_LIBS"
2461    ;;
2462  esac
2463
2464  case $lt_cv_dlopen_self in
2465  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2466  *) enable_dlopen_self=unknown ;;
2467  esac
2468
2469  case $lt_cv_dlopen_self_static in
2470  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2471  *) enable_dlopen_self_static=unknown ;;
2472  esac
2473fi
2474_LT_DECL([dlopen_support], [enable_dlopen], [0],
2475	 [Whether dlopen is supported])
2476_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2477	 [Whether dlopen of programs is supported])
2478_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2479	 [Whether dlopen of statically linked programs is supported])
2480])# LT_SYS_DLOPEN_SELF
2481
2482# Old name:
2483AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2484dnl aclocal-1.4 backwards compatibility:
2485dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2486
2487
2488# _LT_COMPILER_C_O([TAGNAME])
2489# ---------------------------
2490# Check to see if options -c and -o are simultaneously supported by compiler.
2491# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2492m4_defun([_LT_COMPILER_C_O],
2493[m4_require([_LT_DECL_SED])dnl
2494m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2495m4_require([_LT_TAG_COMPILER])dnl
2496AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2497  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2498  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2499   $RM -r conftest 2>/dev/null
2500   mkdir conftest
2501   cd conftest
2502   mkdir out
2503   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2504
2505   lt_compiler_flag="-o out/conftest2.$ac_objext"
2506   # Insert the option either (1) after the last *FLAGS variable, or
2507   # (2) before a word containing "conftest.", or (3) at the end.
2508   # Note that $ac_compile itself does not contain backslashes and begins
2509   # with a dollar sign (not a hyphen), so the echo should work correctly.
2510   lt_compile=`echo "$ac_compile" | $SED \
2511   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2512   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2513   -e 's:$: $lt_compiler_flag:'`
2514   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2515   (eval "$lt_compile" 2>out/conftest.err)
2516   ac_status=$?
2517   cat out/conftest.err >&AS_MESSAGE_LOG_FD
2518   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2519   if (exit $ac_status) && test -s out/conftest2.$ac_objext
2520   then
2521     # The compiler can only warn and ignore the option if not recognized
2522     # So say no if there are warnings
2523     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2524     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2525     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2526       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2527     fi
2528   fi
2529   chmod u+w . 2>&AS_MESSAGE_LOG_FD
2530   $RM conftest*
2531   # SGI C++ compiler will create directory out/ii_files/ for
2532   # template instantiation
2533   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2534   $RM out/* && rmdir out
2535   cd ..
2536   $RM -r conftest
2537   $RM conftest*
2538])
2539_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2540	[Does compiler simultaneously support -c and -o options?])
2541])# _LT_COMPILER_C_O
2542
2543
2544# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2545# ----------------------------------
2546# Check to see if we can do hard links to lock some files if needed
2547m4_defun([_LT_COMPILER_FILE_LOCKS],
2548[m4_require([_LT_ENABLE_LOCK])dnl
2549m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2550_LT_COMPILER_C_O([$1])
2551
2552hard_links="nottested"
2553if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2554  # do not overwrite the value of need_locks provided by the user
2555  AC_MSG_CHECKING([if we can lock with hard links])
2556  hard_links=yes
2557  $RM conftest*
2558  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2559  touch conftest.a
2560  ln conftest.a conftest.b 2>&5 || hard_links=no
2561  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2562  AC_MSG_RESULT([$hard_links])
2563  if test "$hard_links" = no; then
2564    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2565    need_locks=warn
2566  fi
2567else
2568  need_locks=no
2569fi
2570_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2571])# _LT_COMPILER_FILE_LOCKS
2572
2573
2574# _LT_CHECK_OBJDIR
2575# ----------------
2576m4_defun([_LT_CHECK_OBJDIR],
2577[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2578[rm -f .libs 2>/dev/null
2579mkdir .libs 2>/dev/null
2580if test -d .libs; then
2581  lt_cv_objdir=.libs
2582else
2583  # MS-DOS does not allow filenames that begin with a dot.
2584  lt_cv_objdir=_libs
2585fi
2586rmdir .libs 2>/dev/null])
2587objdir=$lt_cv_objdir
2588_LT_DECL([], [objdir], [0],
2589         [The name of the directory that contains temporary libtool files])dnl
2590m4_pattern_allow([LT_OBJDIR])dnl
2591AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2592  [Define to the sub-directory in which libtool stores uninstalled libraries.])
2593])# _LT_CHECK_OBJDIR
2594
2595
2596# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2597# --------------------------------------
2598# Check hardcoding attributes.
2599m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2600[AC_MSG_CHECKING([how to hardcode library paths into programs])
2601_LT_TAGVAR(hardcode_action, $1)=
2602if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2603   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2604   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2605
2606  # We can hardcode non-existent directories.
2607  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2608     # If the only mechanism to avoid hardcoding is shlibpath_var, we
2609     # have to relink, otherwise we might link with an installed library
2610     # when we should be linking with a yet-to-be-installed one
2611     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2612     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2613    # Linking always hardcodes the temporary library directory.
2614    _LT_TAGVAR(hardcode_action, $1)=relink
2615  else
2616    # We can link without hardcoding, and we can hardcode nonexisting dirs.
2617    _LT_TAGVAR(hardcode_action, $1)=immediate
2618  fi
2619else
2620  # We cannot hardcode anything, or else we can only hardcode existing
2621  # directories.
2622  _LT_TAGVAR(hardcode_action, $1)=unsupported
2623fi
2624AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2625
2626if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2627   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2628  # Fast installation is not supported
2629  enable_fast_install=no
2630elif test "$shlibpath_overrides_runpath" = yes ||
2631     test "$enable_shared" = no; then
2632  # Fast installation is not necessary
2633  enable_fast_install=needless
2634fi
2635_LT_TAGDECL([], [hardcode_action], [0],
2636    [How to hardcode a shared library path into an executable])
2637])# _LT_LINKER_HARDCODE_LIBPATH
2638
2639
2640# _LT_CMD_STRIPLIB
2641# ----------------
2642m4_defun([_LT_CMD_STRIPLIB],
2643[m4_require([_LT_DECL_EGREP])
2644striplib=
2645old_striplib=
2646AC_MSG_CHECKING([whether stripping libraries is possible])
2647if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2648  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2649  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2650  AC_MSG_RESULT([yes])
2651else
2652# FIXME - insert some real tests, host_os isn't really good enough
2653  case $host_os in
2654  darwin*)
2655    if test -n "$STRIP" ; then
2656      striplib="$STRIP -x"
2657      old_striplib="$STRIP -S"
2658      AC_MSG_RESULT([yes])
2659    else
2660      AC_MSG_RESULT([no])
2661    fi
2662    ;;
2663  *)
2664    AC_MSG_RESULT([no])
2665    ;;
2666  esac
2667fi
2668_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2669_LT_DECL([], [striplib], [1])
2670])# _LT_CMD_STRIPLIB
2671
2672
2673# _LT_SYS_DYNAMIC_LINKER([TAG])
2674# -----------------------------
2675# PORTME Fill in your ld.so characteristics
2676m4_defun([_LT_SYS_DYNAMIC_LINKER],
2677[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2678m4_require([_LT_DECL_EGREP])dnl
2679m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2680m4_require([_LT_DECL_OBJDUMP])dnl
2681m4_require([_LT_DECL_SED])dnl
2682AC_MSG_CHECKING([dynamic linker characteristics])
2683m4_if([$1],
2684	[], [
2685if test "$GCC" = yes; then
2686  case $host_os in
2687    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2688    *) lt_awk_arg="/^libraries:/" ;;
2689  esac
2690  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2691  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2692    # if the path contains ";" then we assume it to be the separator
2693    # otherwise default to the standard path separator (i.e. ":") - it is
2694    # assumed that no part of a normal pathname contains ";" but that should
2695    # okay in the real world where ";" in dirpaths is itself problematic.
2696    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2697  else
2698    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2699  fi
2700  # Ok, now we have the path, separated by spaces, we can step through it
2701  # and add multilib dir if necessary.
2702  lt_tmp_lt_search_path_spec=
2703  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2704  for lt_sys_path in $lt_search_path_spec; do
2705    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2706      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2707    else
2708      test -d "$lt_sys_path" && \
2709	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2710    fi
2711  done
2712  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2713BEGIN {RS=" "; FS="/|\n";} {
2714  lt_foo="";
2715  lt_count=0;
2716  for (lt_i = NF; lt_i > 0; lt_i--) {
2717    if ($lt_i != "" && $lt_i != ".") {
2718      if ($lt_i == "..") {
2719        lt_count++;
2720      } else {
2721        if (lt_count == 0) {
2722          lt_foo="/" $lt_i lt_foo;
2723        } else {
2724          lt_count--;
2725        }
2726      }
2727    }
2728  }
2729  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2730  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2731}'`
2732  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2733else
2734  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2735fi])
2736library_names_spec=
2737libname_spec='lib$name'
2738soname_spec=
2739shrext_cmds=".so"
2740postinstall_cmds=
2741postuninstall_cmds=
2742finish_cmds=
2743finish_eval=
2744shlibpath_var=
2745shlibpath_overrides_runpath=unknown
2746version_type=none
2747dynamic_linker="$host_os ld.so"
2748sys_lib_dlsearch_path_spec="/lib /usr/lib"
2749need_lib_prefix=unknown
2750hardcode_into_libs=no
2751
2752# when you set need_version to no, make sure it does not cause -set_version
2753# flags to be left without arguments
2754need_version=unknown
2755
2756case $host_os in
2757aix3*)
2758  version_type=linux
2759  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2760  shlibpath_var=LIBPATH
2761
2762  # AIX 3 has no versioning support, so we append a major version to the name.
2763  soname_spec='${libname}${release}${shared_ext}$major'
2764  ;;
2765
2766aix[[4-9]]*)
2767  version_type=linux
2768  need_lib_prefix=no
2769  need_version=no
2770  hardcode_into_libs=yes
2771  if test "$host_cpu" = ia64; then
2772    # AIX 5 supports IA64
2773    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2774    shlibpath_var=LD_LIBRARY_PATH
2775  else
2776    # With GCC up to 2.95.x, collect2 would create an import file
2777    # for dependence libraries.  The import file would start with
2778    # the line `#! .'.  This would cause the generated library to
2779    # depend on `.', always an invalid library.  This was fixed in
2780    # development snapshots of GCC prior to 3.0.
2781    case $host_os in
2782      aix4 | aix4.[[01]] | aix4.[[01]].*)
2783      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2784	   echo ' yes '
2785	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2786	:
2787      else
2788	can_build_shared=no
2789      fi
2790      ;;
2791    esac
2792    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2793    # soname into executable. Probably we can add versioning support to
2794    # collect2, so additional links can be useful in future.
2795    if test "$aix_use_runtimelinking" = yes; then
2796      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2797      # instead of lib<name>.a to let people know that these are not
2798      # typical AIX shared libraries.
2799      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2800    else
2801      # We preserve .a as extension for shared libraries through AIX4.2
2802      # and later when we are not doing run time linking.
2803      library_names_spec='${libname}${release}.a $libname.a'
2804      soname_spec='${libname}${release}${shared_ext}$major'
2805    fi
2806    shlibpath_var=LIBPATH
2807  fi
2808  ;;
2809
2810amigaos*)
2811  case $host_cpu in
2812  powerpc)
2813    # Since July 2007 AmigaOS4 officially supports .so libraries.
2814    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2815    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2816    ;;
2817  m68k)
2818    library_names_spec='$libname.ixlibrary $libname.a'
2819    # Create ${libname}_ixlibrary.a entries in /sys/libs.
2820    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'
2821    ;;
2822  esac
2823  ;;
2824
2825beos*)
2826  library_names_spec='${libname}${shared_ext}'
2827  dynamic_linker="$host_os ld.so"
2828  shlibpath_var=LIBRARY_PATH
2829  ;;
2830
2831bsdi[[45]]*)
2832  version_type=linux
2833  need_version=no
2834  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2835  soname_spec='${libname}${release}${shared_ext}$major'
2836  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2837  shlibpath_var=LD_LIBRARY_PATH
2838  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2839  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2840  # the default ld.so.conf also contains /usr/contrib/lib and
2841  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2842  # libtool to hard-code these into programs
2843  ;;
2844
2845cygwin* | mingw* | pw32* | cegcc*)
2846  version_type=windows
2847  shrext_cmds=".dll"
2848  need_version=no
2849  need_lib_prefix=no
2850
2851  case $GCC,$host_os in
2852  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2853    library_names_spec='$libname.dll.a'
2854    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2855    postinstall_cmds='base_file=`basename \${file}`~
2856      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2857      dldir=$destdir/`dirname \$dlpath`~
2858      test -d \$dldir || mkdir -p \$dldir~
2859      $install_prog $dir/$dlname \$dldir/$dlname~
2860      chmod a+x \$dldir/$dlname~
2861      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2862        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2863      fi'
2864    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2865      dlpath=$dir/\$dldll~
2866       $RM \$dlpath'
2867    shlibpath_overrides_runpath=yes
2868
2869    case $host_os in
2870    cygwin*)
2871      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2872      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2873      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2874      ;;
2875    mingw* | cegcc*)
2876      # MinGW DLLs use traditional 'lib' prefix
2877      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2878      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2879      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2880        # It is most probably a Windows format PATH printed by
2881        # mingw gcc, but we are running on Cygwin. Gcc prints its search
2882        # path with ; separators, and with drive letters. We can handle the
2883        # drive letters (cygwin fileutils understands them), so leave them,
2884        # especially as we might pass files found there to a mingw objdump,
2885        # which wouldn't understand a cygwinified path. Ahh.
2886        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2887      else
2888        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2889      fi
2890      ;;
2891    pw32*)
2892      # pw32 DLLs use 'pw' prefix rather than 'lib'
2893      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2894      ;;
2895    esac
2896    ;;
2897
2898  *)
2899    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2900    ;;
2901  esac
2902  dynamic_linker='Win32 ld.exe'
2903  # FIXME: first we should search . and the directory the executable is in
2904  shlibpath_var=PATH
2905  ;;
2906
2907darwin* | rhapsody*)
2908  dynamic_linker="$host_os dyld"
2909  version_type=darwin
2910  need_lib_prefix=no
2911  need_version=no
2912  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2913  soname_spec='${libname}${release}${major}$shared_ext'
2914  shlibpath_overrides_runpath=yes
2915  shlibpath_var=DYLD_LIBRARY_PATH
2916  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2917m4_if([$1], [],[
2918  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2919  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2920  ;;
2921
2922dgux*)
2923  version_type=linux
2924  need_lib_prefix=no
2925  need_version=no
2926  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2927  soname_spec='${libname}${release}${shared_ext}$major'
2928  shlibpath_var=LD_LIBRARY_PATH
2929  ;;
2930
2931freebsd1*)
2932  dynamic_linker=no
2933  ;;
2934
2935freebsd* | dragonfly*)
2936  # DragonFly does not have aout.  When/if they implement a new
2937  # versioning mechanism, adjust this.
2938  if test -x /usr/bin/objformat; then
2939    objformat=`/usr/bin/objformat`
2940  else
2941    case $host_os in
2942    freebsd[[123]]*) objformat=aout ;;
2943    *) objformat=elf ;;
2944    esac
2945  fi
2946  version_type=freebsd-$objformat
2947  case $version_type in
2948    freebsd-elf*)
2949      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2950      need_version=no
2951      need_lib_prefix=no
2952      ;;
2953    freebsd-*)
2954      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2955      need_version=yes
2956      ;;
2957  esac
2958  shlibpath_var=LD_LIBRARY_PATH
2959  case $host_os in
2960  freebsd2*)
2961    shlibpath_overrides_runpath=yes
2962    ;;
2963  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2964    shlibpath_overrides_runpath=yes
2965    hardcode_into_libs=yes
2966    ;;
2967  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2968  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2969    shlibpath_overrides_runpath=no
2970    hardcode_into_libs=yes
2971    ;;
2972  *) # from 4.6 on, and DragonFly
2973    shlibpath_overrides_runpath=yes
2974    hardcode_into_libs=yes
2975    ;;
2976  esac
2977  ;;
2978
2979gnu*)
2980  version_type=linux
2981  need_lib_prefix=no
2982  need_version=no
2983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2984  soname_spec='${libname}${release}${shared_ext}$major'
2985  shlibpath_var=LD_LIBRARY_PATH
2986  hardcode_into_libs=yes
2987  ;;
2988
2989hpux9* | hpux10* | hpux11*)
2990  # Give a soname corresponding to the major version so that dld.sl refuses to
2991  # link against other versions.
2992  version_type=sunos
2993  need_lib_prefix=no
2994  need_version=no
2995  case $host_cpu in
2996  ia64*)
2997    shrext_cmds='.so'
2998    hardcode_into_libs=yes
2999    dynamic_linker="$host_os dld.so"
3000    shlibpath_var=LD_LIBRARY_PATH
3001    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3002    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3003    soname_spec='${libname}${release}${shared_ext}$major'
3004    if test "X$HPUX_IA64_MODE" = X32; then
3005      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3006    else
3007      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3008    fi
3009    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3010    ;;
3011  hppa*64*)
3012    shrext_cmds='.sl'
3013    hardcode_into_libs=yes
3014    dynamic_linker="$host_os dld.sl"
3015    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3016    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3017    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3018    soname_spec='${libname}${release}${shared_ext}$major'
3019    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3020    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3021    ;;
3022  *)
3023    shrext_cmds='.sl'
3024    dynamic_linker="$host_os dld.sl"
3025    shlibpath_var=SHLIB_PATH
3026    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3027    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3028    soname_spec='${libname}${release}${shared_ext}$major'
3029    ;;
3030  esac
3031  # HP-UX runs *really* slowly unless shared libraries are mode 555.
3032  postinstall_cmds='chmod 555 $lib'
3033  ;;
3034
3035interix[[3-9]]*)
3036  version_type=linux
3037  need_lib_prefix=no
3038  need_version=no
3039  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3040  soname_spec='${libname}${release}${shared_ext}$major'
3041  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3042  shlibpath_var=LD_LIBRARY_PATH
3043  shlibpath_overrides_runpath=no
3044  hardcode_into_libs=yes
3045  ;;
3046
3047irix5* | irix6* | nonstopux*)
3048  case $host_os in
3049    nonstopux*) version_type=nonstopux ;;
3050    *)
3051	if test "$lt_cv_prog_gnu_ld" = yes; then
3052		version_type=linux
3053	else
3054		version_type=irix
3055	fi ;;
3056  esac
3057  need_lib_prefix=no
3058  need_version=no
3059  soname_spec='${libname}${release}${shared_ext}$major'
3060  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3061  case $host_os in
3062  irix5* | nonstopux*)
3063    libsuff= shlibsuff=
3064    ;;
3065  *)
3066    case $LD in # libtool.m4 will add one of these switches to LD
3067    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3068      libsuff= shlibsuff= libmagic=32-bit;;
3069    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3070      libsuff=32 shlibsuff=N32 libmagic=N32;;
3071    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3072      libsuff=64 shlibsuff=64 libmagic=64-bit;;
3073    *) libsuff= shlibsuff= libmagic=never-match;;
3074    esac
3075    ;;
3076  esac
3077  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3078  shlibpath_overrides_runpath=no
3079  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3080  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3081  hardcode_into_libs=yes
3082  ;;
3083
3084# No shared lib support for Linux oldld, aout, or coff.
3085linux*oldld* | linux*aout* | linux*coff*)
3086  dynamic_linker=no
3087  ;;
3088
3089# This must be Linux ELF.
3090linux* | k*bsd*-gnu | kopensolaris*-gnu)
3091  version_type=linux
3092  need_lib_prefix=no
3093  need_version=no
3094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3095  soname_spec='${libname}${release}${shared_ext}$major'
3096  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3097  shlibpath_var=LD_LIBRARY_PATH
3098  shlibpath_overrides_runpath=no
3099  # Some binutils ld are patched to set DT_RUNPATH
3100  save_LDFLAGS=$LDFLAGS
3101  save_libdir=$libdir
3102  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3103       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3104  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3105    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3106       [shlibpath_overrides_runpath=yes])])
3107  LDFLAGS=$save_LDFLAGS
3108  libdir=$save_libdir
3109
3110  # This implies no fast_install, which is unacceptable.
3111  # Some rework will be needed to allow for fast_install
3112  # before this can be enabled.
3113  hardcode_into_libs=yes
3114
3115  # Append ld.so.conf contents to the search path
3116  if test -f /etc/ld.so.conf; then
3117    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
3118    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3119  fi
3120
3121  # We used to test for /lib/ld.so.1 and disable shared libraries on
3122  # powerpc, because MkLinux only supported shared libraries with the
3123  # GNU dynamic linker.  Since this was broken with cross compilers,
3124  # most powerpc-linux boxes support dynamic linking these days and
3125  # people can always --disable-shared, the test was removed, and we
3126  # assume the GNU/Linux dynamic linker is in use.
3127  dynamic_linker='GNU/Linux ld.so'
3128  ;;
3129
3130netbsdelf*-gnu)
3131  version_type=linux
3132  need_lib_prefix=no
3133  need_version=no
3134  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3135  soname_spec='${libname}${release}${shared_ext}$major'
3136  shlibpath_var=LD_LIBRARY_PATH
3137  shlibpath_overrides_runpath=no
3138  hardcode_into_libs=yes
3139  dynamic_linker='NetBSD ld.elf_so'
3140  ;;
3141
3142netbsd*)
3143  version_type=sunos
3144  need_lib_prefix=no
3145  need_version=no
3146  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
3147    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3148    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3149    dynamic_linker='NetBSD (a.out) ld.so'
3150  else
3151    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3152    soname_spec='${libname}${release}${shared_ext}$major'
3153    dynamic_linker='NetBSD ld.elf_so'
3154  fi
3155  shlibpath_var=LD_LIBRARY_PATH
3156  shlibpath_overrides_runpath=yes
3157  hardcode_into_libs=yes
3158  ;;
3159
3160newsos6)
3161  version_type=linux
3162  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3163  shlibpath_var=LD_LIBRARY_PATH
3164  shlibpath_overrides_runpath=yes
3165  ;;
3166
3167*nto* | *qnx*)
3168  version_type=qnx
3169  need_lib_prefix=no
3170  need_version=no
3171  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3172  soname_spec='${libname}${release}${shared_ext}$major'
3173  shlibpath_var=LD_LIBRARY_PATH
3174  shlibpath_overrides_runpath=no
3175  hardcode_into_libs=yes
3176  dynamic_linker='ldqnx.so'
3177  ;;
3178
3179openbsd*)
3180  version_type=sunos
3181  sys_lib_dlsearch_path_spec="/usr/lib"
3182  need_lib_prefix=no
3183  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3184  case $host_os in
3185    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
3186    *)				need_version=no  ;;
3187  esac
3188  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3189  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3190  shlibpath_var=LD_LIBRARY_PATH
3191  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3192    case $host_os in
3193      openbsd2.[[89]] | openbsd2.[[89]].*)
3194	shlibpath_overrides_runpath=no
3195	;;
3196      *)
3197	shlibpath_overrides_runpath=yes
3198	;;
3199      esac
3200  else
3201    shlibpath_overrides_runpath=yes
3202  fi
3203  ;;
3204
3205os2*)
3206  libname_spec='$name'
3207  shrext_cmds=".dll"
3208  need_lib_prefix=no
3209  library_names_spec='$libname${shared_ext} $libname.a'
3210  dynamic_linker='OS/2 ld.exe'
3211  shlibpath_var=LIBPATH
3212  ;;
3213
3214osf3* | osf4* | osf5*)
3215  version_type=osf
3216  need_lib_prefix=no
3217  need_version=no
3218  soname_spec='${libname}${release}${shared_ext}$major'
3219  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3220  shlibpath_var=LD_LIBRARY_PATH
3221  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3222  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3223  ;;
3224
3225rdos*)
3226  dynamic_linker=no
3227  ;;
3228
3229solaris*)
3230  version_type=linux
3231  need_lib_prefix=no
3232  need_version=no
3233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3234  soname_spec='${libname}${release}${shared_ext}$major'
3235  shlibpath_var=LD_LIBRARY_PATH
3236  shlibpath_overrides_runpath=yes
3237  hardcode_into_libs=yes
3238  # ldd complains unless libraries are executable
3239  postinstall_cmds='chmod +x $lib'
3240  ;;
3241
3242sunos4*)
3243  version_type=sunos
3244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3245  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3246  shlibpath_var=LD_LIBRARY_PATH
3247  shlibpath_overrides_runpath=yes
3248  if test "$with_gnu_ld" = yes; then
3249    need_lib_prefix=no
3250  fi
3251  need_version=yes
3252  ;;
3253
3254sysv4 | sysv4.3*)
3255  version_type=linux
3256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3257  soname_spec='${libname}${release}${shared_ext}$major'
3258  shlibpath_var=LD_LIBRARY_PATH
3259  case $host_vendor in
3260    sni)
3261      shlibpath_overrides_runpath=no
3262      need_lib_prefix=no
3263      runpath_var=LD_RUN_PATH
3264      ;;
3265    siemens)
3266      need_lib_prefix=no
3267      ;;
3268    motorola)
3269      need_lib_prefix=no
3270      need_version=no
3271      shlibpath_overrides_runpath=no
3272      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3273      ;;
3274  esac
3275  ;;
3276
3277sysv4*MP*)
3278  if test -d /usr/nec ;then
3279    version_type=linux
3280    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3281    soname_spec='$libname${shared_ext}.$major'
3282    shlibpath_var=LD_LIBRARY_PATH
3283  fi
3284  ;;
3285
3286sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3287  version_type=freebsd-elf
3288  need_lib_prefix=no
3289  need_version=no
3290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3291  soname_spec='${libname}${release}${shared_ext}$major'
3292  shlibpath_var=LD_LIBRARY_PATH
3293  shlibpath_overrides_runpath=yes
3294  hardcode_into_libs=yes
3295  if test "$with_gnu_ld" = yes; then
3296    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3297  else
3298    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3299    case $host_os in
3300      sco3.2v5*)
3301        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3302	;;
3303    esac
3304  fi
3305  sys_lib_dlsearch_path_spec='/usr/lib'
3306  ;;
3307
3308tpf*)
3309  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
3310  version_type=linux
3311  need_lib_prefix=no
3312  need_version=no
3313  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3314  shlibpath_var=LD_LIBRARY_PATH
3315  shlibpath_overrides_runpath=no
3316  hardcode_into_libs=yes
3317  ;;
3318
3319uts4*)
3320  version_type=linux
3321  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3322  soname_spec='${libname}${release}${shared_ext}$major'
3323  shlibpath_var=LD_LIBRARY_PATH
3324  ;;
3325
3326*)
3327  dynamic_linker=no
3328  ;;
3329esac
3330AC_MSG_RESULT([$dynamic_linker])
3331test "$dynamic_linker" = no && can_build_shared=no
3332
3333variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3334if test "$GCC" = yes; then
3335  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3336fi
3337
3338if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3339  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3340fi
3341if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3342  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3343fi
3344
3345_LT_DECL([], [variables_saved_for_relink], [1],
3346    [Variables whose values should be saved in libtool wrapper scripts and
3347    restored at link time])
3348_LT_DECL([], [need_lib_prefix], [0],
3349    [Do we need the "lib" prefix for modules?])
3350_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3351_LT_DECL([], [version_type], [0], [Library versioning type])
3352_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
3353_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3354_LT_DECL([], [shlibpath_overrides_runpath], [0],
3355    [Is shlibpath searched before the hard-coded library search path?])
3356_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3357_LT_DECL([], [library_names_spec], [1],
3358    [[List of archive names.  First name is the real one, the rest are links.
3359    The last name is the one that the linker finds with -lNAME]])
3360_LT_DECL([], [soname_spec], [1],
3361    [[The coded name of the library, if different from the real name]])
3362_LT_DECL([], [postinstall_cmds], [2],
3363    [Command to use after installation of a shared archive])
3364_LT_DECL([], [postuninstall_cmds], [2],
3365    [Command to use after uninstallation of a shared archive])
3366_LT_DECL([], [finish_cmds], [2],
3367    [Commands used to finish a libtool library installation in a directory])
3368_LT_DECL([], [finish_eval], [1],
3369    [[As "finish_cmds", except a single script fragment to be evaled but
3370    not shown]])
3371_LT_DECL([], [hardcode_into_libs], [0],
3372    [Whether we should hardcode library paths into libraries])
3373_LT_DECL([], [sys_lib_search_path_spec], [2],
3374    [Compile-time system search path for libraries])
3375_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3376    [Run-time system search path for libraries])
3377])# _LT_SYS_DYNAMIC_LINKER
3378
3379
3380# _LT_PATH_TOOL_PREFIX(TOOL)
3381# --------------------------
3382# find a file program which can recognize shared library
3383AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3384[m4_require([_LT_DECL_EGREP])dnl
3385AC_MSG_CHECKING([for $1])
3386AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3387[case $MAGIC_CMD in
3388[[\\/*] |  ?:[\\/]*])
3389  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3390  ;;
3391*)
3392  lt_save_MAGIC_CMD="$MAGIC_CMD"
3393  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3394dnl $ac_dummy forces splitting on constant user-supplied paths.
3395dnl POSIX.2 word splitting is done only on the output of word expansions,
3396dnl not every word.  This closes a longstanding sh security hole.
3397  ac_dummy="m4_if([$2], , $PATH, [$2])"
3398  for ac_dir in $ac_dummy; do
3399    IFS="$lt_save_ifs"
3400    test -z "$ac_dir" && ac_dir=.
3401    if test -f $ac_dir/$1; then
3402      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3403      if test -n "$file_magic_test_file"; then
3404	case $deplibs_check_method in
3405	"file_magic "*)
3406	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3407	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3408	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3409	    $EGREP "$file_magic_regex" > /dev/null; then
3410	    :
3411	  else
3412	    cat <<_LT_EOF 1>&2
3413
3414*** Warning: the command libtool uses to detect shared libraries,
3415*** $file_magic_cmd, produces output that libtool cannot recognize.
3416*** The result is that libtool may fail to recognize shared libraries
3417*** as such.  This will affect the creation of libtool libraries that
3418*** depend on shared libraries, but programs linked with such libtool
3419*** libraries will work regardless of this problem.  Nevertheless, you
3420*** may want to report the problem to your system manager and/or to
3421*** bug-libtool@gnu.org
3422
3423_LT_EOF
3424	  fi ;;
3425	esac
3426      fi
3427      break
3428    fi
3429  done
3430  IFS="$lt_save_ifs"
3431  MAGIC_CMD="$lt_save_MAGIC_CMD"
3432  ;;
3433esac])
3434MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3435if test -n "$MAGIC_CMD"; then
3436  AC_MSG_RESULT($MAGIC_CMD)
3437else
3438  AC_MSG_RESULT(no)
3439fi
3440_LT_DECL([], [MAGIC_CMD], [0],
3441	 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3442])# _LT_PATH_TOOL_PREFIX
3443
3444# Old name:
3445AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3446dnl aclocal-1.4 backwards compatibility:
3447dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3448
3449
3450# _LT_PATH_MAGIC
3451# --------------
3452# find a file program which can recognize a shared library
3453m4_defun([_LT_PATH_MAGIC],
3454[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3455if test -z "$lt_cv_path_MAGIC_CMD"; then
3456  if test -n "$ac_tool_prefix"; then
3457    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3458  else
3459    MAGIC_CMD=:
3460  fi
3461fi
3462])# _LT_PATH_MAGIC
3463
3464
3465# LT_PATH_LD
3466# ----------
3467# find the pathname to the GNU or non-GNU linker
3468AC_DEFUN([LT_PATH_LD],
3469[AC_REQUIRE([AC_PROG_CC])dnl
3470AC_REQUIRE([AC_CANONICAL_HOST])dnl
3471AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3472m4_require([_LT_DECL_SED])dnl
3473m4_require([_LT_DECL_EGREP])dnl
3474
3475AC_ARG_WITH([gnu-ld],
3476    [AS_HELP_STRING([--with-gnu-ld],
3477	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
3478    [test "$withval" = no || with_gnu_ld=yes],
3479    [with_gnu_ld=no])dnl
3480
3481ac_prog=ld
3482if test "$GCC" = yes; then
3483  # Check if gcc -print-prog-name=ld gives a path.
3484  AC_MSG_CHECKING([for ld used by $CC])
3485  case $host in
3486  *-*-mingw*)
3487    # gcc leaves a trailing carriage return which upsets mingw
3488    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3489  *)
3490    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3491  esac
3492  case $ac_prog in
3493    # Accept absolute paths.
3494    [[\\/]]* | ?:[[\\/]]*)
3495      re_direlt='/[[^/]][[^/]]*/\.\./'
3496      # Canonicalize the pathname of ld
3497      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3498      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3499	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3500      done
3501      test -z "$LD" && LD="$ac_prog"
3502      ;;
3503  "")
3504    # If it fails, then pretend we aren't using GCC.
3505    ac_prog=ld
3506    ;;
3507  *)
3508    # If it is relative, then search for the first ld in PATH.
3509    with_gnu_ld=unknown
3510    ;;
3511  esac
3512elif test "$with_gnu_ld" = yes; then
3513  AC_MSG_CHECKING([for GNU ld])
3514else
3515  AC_MSG_CHECKING([for non-GNU ld])
3516fi
3517AC_CACHE_VAL(lt_cv_path_LD,
3518[if test -z "$LD"; then
3519  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3520  for ac_dir in $PATH; do
3521    IFS="$lt_save_ifs"
3522    test -z "$ac_dir" && ac_dir=.
3523    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3524      lt_cv_path_LD="$ac_dir/$ac_prog"
3525      # Check to see if the program is GNU ld.  I'd rather use --version,
3526      # but apparently some variants of GNU ld only accept -v.
3527      # Break only if it was the GNU/non-GNU ld that we prefer.
3528      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3529      *GNU* | *'with BFD'*)
3530	test "$with_gnu_ld" != no && break
3531	;;
3532      *)
3533	test "$with_gnu_ld" != yes && break
3534	;;
3535      esac
3536    fi
3537  done
3538  IFS="$lt_save_ifs"
3539else
3540  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3541fi])
3542LD="$lt_cv_path_LD"
3543if test -n "$LD"; then
3544  AC_MSG_RESULT($LD)
3545else
3546  AC_MSG_RESULT(no)
3547fi
3548test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3549_LT_PATH_LD_GNU
3550AC_SUBST([LD])
3551
3552_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3553])# LT_PATH_LD
3554
3555# Old names:
3556AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3557AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3558dnl aclocal-1.4 backwards compatibility:
3559dnl AC_DEFUN([AM_PROG_LD], [])
3560dnl AC_DEFUN([AC_PROG_LD], [])
3561
3562
3563# _LT_PATH_LD_GNU
3564#- --------------
3565m4_defun([_LT_PATH_LD_GNU],
3566[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3567[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3568case `$LD -v 2>&1 </dev/null` in
3569*GNU* | *'with BFD'*)
3570  lt_cv_prog_gnu_ld=yes
3571  ;;
3572*)
3573  lt_cv_prog_gnu_ld=no
3574  ;;
3575esac])
3576with_gnu_ld=$lt_cv_prog_gnu_ld
3577])# _LT_PATH_LD_GNU
3578
3579
3580# _LT_CMD_RELOAD
3581# --------------
3582# find reload flag for linker
3583#   -- PORTME Some linkers may need a different reload flag.
3584m4_defun([_LT_CMD_RELOAD],
3585[AC_CACHE_CHECK([for $LD option to reload object files],
3586  lt_cv_ld_reload_flag,
3587  [lt_cv_ld_reload_flag='-r'])
3588reload_flag=$lt_cv_ld_reload_flag
3589case $reload_flag in
3590"" | " "*) ;;
3591*) reload_flag=" $reload_flag" ;;
3592esac
3593reload_cmds='$LD$reload_flag -o $output$reload_objs'
3594case $host_os in
3595  darwin*)
3596    if test "$GCC" = yes; then
3597      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3598    else
3599      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3600    fi
3601    ;;
3602esac
3603_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3604_LT_DECL([], [reload_cmds], [2])dnl
3605])# _LT_CMD_RELOAD
3606
3607
3608# _LT_CHECK_MAGIC_METHOD
3609# ----------------------
3610# how to check for library dependencies
3611#  -- PORTME fill in with the dynamic library characteristics
3612m4_defun([_LT_CHECK_MAGIC_METHOD],
3613[m4_require([_LT_DECL_EGREP])
3614m4_require([_LT_DECL_OBJDUMP])
3615AC_CACHE_CHECK([how to recognize dependent libraries],
3616lt_cv_deplibs_check_method,
3617[lt_cv_file_magic_cmd='$MAGIC_CMD'
3618lt_cv_file_magic_test_file=
3619lt_cv_deplibs_check_method='unknown'
3620# Need to set the preceding variable on all platforms that support
3621# interlibrary dependencies.
3622# 'none' -- dependencies not supported.
3623# `unknown' -- same as none, but documents that we really don't know.
3624# 'pass_all' -- all dependencies passed with no checks.
3625# 'test_compile' -- check by making test program.
3626# 'file_magic [[regex]]' -- check by looking for files in library path
3627# which responds to the $file_magic_cmd with a given extended regex.
3628# If you have `file' or equivalent on your system and you're not sure
3629# whether `pass_all' will *always* work, you probably want this one.
3630
3631case $host_os in
3632aix[[4-9]]*)
3633  lt_cv_deplibs_check_method=pass_all
3634  ;;
3635
3636beos*)
3637  lt_cv_deplibs_check_method=pass_all
3638  ;;
3639
3640bsdi[[45]]*)
3641  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3642  lt_cv_file_magic_cmd='/usr/bin/file -L'
3643  lt_cv_file_magic_test_file=/shlib/libc.so
3644  ;;
3645
3646cygwin*)
3647  # func_win32_libid is a shell function defined in ltmain.sh
3648  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3649  lt_cv_file_magic_cmd='func_win32_libid'
3650  ;;
3651
3652mingw* | pw32*)
3653  # Base MSYS/MinGW do not provide the 'file' command needed by
3654  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3655  # unless we find 'file', for example because we are cross-compiling.
3656  if ( file / ) >/dev/null 2>&1; then
3657    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3658    lt_cv_file_magic_cmd='func_win32_libid'
3659  else
3660    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3661    lt_cv_file_magic_cmd='$OBJDUMP -f'
3662  fi
3663  ;;
3664
3665cegcc)
3666  # use the weaker test based on 'objdump'. See mingw*.
3667  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3668  lt_cv_file_magic_cmd='$OBJDUMP -f'
3669  ;;
3670
3671darwin* | rhapsody*)
3672  lt_cv_deplibs_check_method=pass_all
3673  ;;
3674
3675freebsd* | dragonfly*)
3676  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3677    case $host_cpu in
3678    i*86 )
3679      # Not sure whether the presence of OpenBSD here was a mistake.
3680      # Let's accept both of them until this is cleared up.
3681      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3682      lt_cv_file_magic_cmd=/usr/bin/file
3683      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3684      ;;
3685    esac
3686  else
3687    lt_cv_deplibs_check_method=pass_all
3688  fi
3689  ;;
3690
3691gnu*)
3692  lt_cv_deplibs_check_method=pass_all
3693  ;;
3694
3695hpux10.20* | hpux11*)
3696  lt_cv_file_magic_cmd=/usr/bin/file
3697  case $host_cpu in
3698  ia64*)
3699    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3700    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3701    ;;
3702  hppa*64*)
3703    [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]']
3704    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3705    ;;
3706  *)
3707    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3708    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3709    ;;
3710  esac
3711  ;;
3712
3713interix[[3-9]]*)
3714  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3715  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3716  ;;
3717
3718irix5* | irix6* | nonstopux*)
3719  case $LD in
3720  *-32|*"-32 ") libmagic=32-bit;;
3721  *-n32|*"-n32 ") libmagic=N32;;
3722  *-64|*"-64 ") libmagic=64-bit;;
3723  *) libmagic=never-match;;
3724  esac
3725  lt_cv_deplibs_check_method=pass_all
3726  ;;
3727
3728# This must be Linux ELF.
3729linux* | k*bsd*-gnu | kopensolaris*-gnu)
3730  lt_cv_deplibs_check_method=pass_all
3731  ;;
3732
3733netbsd* | netbsdelf*-gnu)
3734  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3735    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3736  else
3737    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3738  fi
3739  ;;
3740
3741newos6*)
3742  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3743  lt_cv_file_magic_cmd=/usr/bin/file
3744  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3745  ;;
3746
3747*nto* | *qnx*)
3748  lt_cv_deplibs_check_method=pass_all
3749  ;;
3750
3751openbsd*)
3752  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3753    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3754  else
3755    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3756  fi
3757  ;;
3758
3759osf3* | osf4* | osf5*)
3760  lt_cv_deplibs_check_method=pass_all
3761  ;;
3762
3763rdos*)
3764  lt_cv_deplibs_check_method=pass_all
3765  ;;
3766
3767solaris*)
3768  lt_cv_deplibs_check_method=pass_all
3769  ;;
3770
3771sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3772  lt_cv_deplibs_check_method=pass_all
3773  ;;
3774
3775sysv4 | sysv4.3*)
3776  case $host_vendor in
3777  motorola)
3778    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]]'
3779    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3780    ;;
3781  ncr)
3782    lt_cv_deplibs_check_method=pass_all
3783    ;;
3784  sequent)
3785    lt_cv_file_magic_cmd='/bin/file'
3786    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3787    ;;
3788  sni)
3789    lt_cv_file_magic_cmd='/bin/file'
3790    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3791    lt_cv_file_magic_test_file=/lib/libc.so
3792    ;;
3793  siemens)
3794    lt_cv_deplibs_check_method=pass_all
3795    ;;
3796  pc)
3797    lt_cv_deplibs_check_method=pass_all
3798    ;;
3799  esac
3800  ;;
3801
3802tpf*)
3803  lt_cv_deplibs_check_method=pass_all
3804  ;;
3805esac
3806])
3807file_magic_cmd=$lt_cv_file_magic_cmd
3808deplibs_check_method=$lt_cv_deplibs_check_method
3809test -z "$deplibs_check_method" && deplibs_check_method=unknown
3810
3811_LT_DECL([], [deplibs_check_method], [1],
3812    [Method to check whether dependent libraries are shared objects])
3813_LT_DECL([], [file_magic_cmd], [1],
3814    [Command to use when deplibs_check_method == "file_magic"])
3815])# _LT_CHECK_MAGIC_METHOD
3816
3817
3818# LT_PATH_NM
3819# ----------
3820# find the pathname to a BSD- or MS-compatible name lister
3821AC_DEFUN([LT_PATH_NM],
3822[AC_REQUIRE([AC_PROG_CC])dnl
3823AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3824[if test -n "$NM"; then
3825  # Let the user override the test.
3826  lt_cv_path_NM="$NM"
3827else
3828  lt_nm_to_check="${ac_tool_prefix}nm"
3829  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3830    lt_nm_to_check="$lt_nm_to_check nm"
3831  fi
3832  for lt_tmp_nm in $lt_nm_to_check; do
3833    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3834    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3835      IFS="$lt_save_ifs"
3836      test -z "$ac_dir" && ac_dir=.
3837      tmp_nm="$ac_dir/$lt_tmp_nm"
3838      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3839	# Check to see if the nm accepts a BSD-compat flag.
3840	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3841	#   nm: unknown option "B" ignored
3842	# Tru64's nm complains that /dev/null is an invalid object file
3843	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3844	*/dev/null* | *'Invalid file or object type'*)
3845	  lt_cv_path_NM="$tmp_nm -B"
3846	  break
3847	  ;;
3848	*)
3849	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3850	  */dev/null*)
3851	    lt_cv_path_NM="$tmp_nm -p"
3852	    break
3853	    ;;
3854	  *)
3855	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3856	    continue # so that we can try to find one that supports BSD flags
3857	    ;;
3858	  esac
3859	  ;;
3860	esac
3861      fi
3862    done
3863    IFS="$lt_save_ifs"
3864  done
3865  : ${lt_cv_path_NM=no}
3866fi])
3867if test "$lt_cv_path_NM" != "no"; then
3868  NM="$lt_cv_path_NM"
3869else
3870  # Didn't find any BSD compatible name lister, look for dumpbin.
3871  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3872  AC_SUBST([DUMPBIN])
3873  if test "$DUMPBIN" != ":"; then
3874    NM="$DUMPBIN"
3875  fi
3876fi
3877test -z "$NM" && NM=nm
3878AC_SUBST([NM])
3879_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3880
3881AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3882  [lt_cv_nm_interface="BSD nm"
3883  echo "int some_variable = 0;" > conftest.$ac_ext
3884  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3885  (eval "$ac_compile" 2>conftest.err)
3886  cat conftest.err >&AS_MESSAGE_LOG_FD
3887  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3888  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3889  cat conftest.err >&AS_MESSAGE_LOG_FD
3890  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3891  cat conftest.out >&AS_MESSAGE_LOG_FD
3892  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3893    lt_cv_nm_interface="MS dumpbin"
3894  fi
3895  rm -f conftest*])
3896])# LT_PATH_NM
3897
3898# Old names:
3899AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3900AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3901dnl aclocal-1.4 backwards compatibility:
3902dnl AC_DEFUN([AM_PROG_NM], [])
3903dnl AC_DEFUN([AC_PROG_NM], [])
3904
3905
3906# LT_LIB_M
3907# --------
3908# check for math library
3909AC_DEFUN([LT_LIB_M],
3910[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3911LIBM=
3912case $host in
3913*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3914  # These system don't have libm, or don't need it
3915  ;;
3916*-ncr-sysv4.3*)
3917  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3918  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3919  ;;
3920*)
3921  AC_CHECK_LIB(m, cos, LIBM="-lm")
3922  ;;
3923esac
3924AC_SUBST([LIBM])
3925])# LT_LIB_M
3926
3927# Old name:
3928AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3929dnl aclocal-1.4 backwards compatibility:
3930dnl AC_DEFUN([AC_CHECK_LIBM], [])
3931
3932
3933# _LT_COMPILER_NO_RTTI([TAGNAME])
3934# -------------------------------
3935m4_defun([_LT_COMPILER_NO_RTTI],
3936[m4_require([_LT_TAG_COMPILER])dnl
3937
3938_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3939
3940if test "$GCC" = yes; then
3941  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3942
3943  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3944    lt_cv_prog_compiler_rtti_exceptions,
3945    [-fno-rtti -fno-exceptions], [],
3946    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3947fi
3948_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3949	[Compiler flag to turn off builtin functions])
3950])# _LT_COMPILER_NO_RTTI
3951
3952
3953# _LT_CMD_GLOBAL_SYMBOLS
3954# ----------------------
3955m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3956[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3957AC_REQUIRE([AC_PROG_CC])dnl
3958AC_REQUIRE([LT_PATH_NM])dnl
3959AC_REQUIRE([LT_PATH_LD])dnl
3960m4_require([_LT_DECL_SED])dnl
3961m4_require([_LT_DECL_EGREP])dnl
3962m4_require([_LT_TAG_COMPILER])dnl
3963
3964# Check for command to grab the raw symbol name followed by C symbol from nm.
3965AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3966AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3967[
3968# These are sane defaults that work on at least a few old systems.
3969# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3970
3971# Character class describing NM global symbol codes.
3972symcode='[[BCDEGRST]]'
3973
3974# Regexp to match symbols that can be accessed directly from C.
3975sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3976
3977# Define system-specific variables.
3978case $host_os in
3979aix*)
3980  symcode='[[BCDT]]'
3981  ;;
3982cygwin* | mingw* | pw32* | cegcc*)
3983  symcode='[[ABCDGISTW]]'
3984  ;;
3985hpux*)
3986  if test "$host_cpu" = ia64; then
3987    symcode='[[ABCDEGRST]]'
3988  fi
3989  ;;
3990irix* | nonstopux*)
3991  symcode='[[BCDEGRST]]'
3992  ;;
3993osf*)
3994  symcode='[[BCDEGQRST]]'
3995  ;;
3996solaris*)
3997  symcode='[[BDRT]]'
3998  ;;
3999sco3.2v5*)
4000  symcode='[[DT]]'
4001  ;;
4002sysv4.2uw2*)
4003  symcode='[[DT]]'
4004  ;;
4005sysv5* | sco5v6* | unixware* | OpenUNIX*)
4006  symcode='[[ABDT]]'
4007  ;;
4008sysv4)
4009  symcode='[[DFNSTU]]'
4010  ;;
4011esac
4012
4013# If we're using GNU nm, then use its standard symbol codes.
4014case `$NM -V 2>&1` in
4015*GNU* | *'with BFD'*)
4016  symcode='[[ABCDGIRSTW]]' ;;
4017esac
4018
4019# Transform an extracted symbol line into a proper C declaration.
4020# Some systems (esp. on ia64) link data and code symbols differently,
4021# so use this general approach.
4022lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4023
4024# Transform an extracted symbol line into symbol name and symbol address
4025lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
4026lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
4027
4028# Handle CRLF in mingw tool chain
4029opt_cr=
4030case $build_os in
4031mingw*)
4032  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4033  ;;
4034esac
4035
4036# Try without a prefix underscore, then with it.
4037for ac_symprfx in "" "_"; do
4038
4039  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4040  symxfrm="\\1 $ac_symprfx\\2 \\2"
4041
4042  # Write the raw and C identifiers.
4043  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4044    # Fake it for dumpbin and say T for any non-static function
4045    # and D for any global variable.
4046    # Also find C++ and __fastcall symbols from MSVC++,
4047    # which start with @ or ?.
4048    lt_cv_sys_global_symbol_pipe="$AWK ['"\
4049"     {last_section=section; section=\$ 3};"\
4050"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4051"     \$ 0!~/External *\|/{next};"\
4052"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4053"     {if(hide[section]) next};"\
4054"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4055"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4056"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4057"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4058"     ' prfx=^$ac_symprfx]"
4059  else
4060    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4061  fi
4062
4063  # Check to see that the pipe works correctly.
4064  pipe_works=no
4065
4066  rm -f conftest*
4067  cat > conftest.$ac_ext <<_LT_EOF
4068#ifdef __cplusplus
4069extern "C" {
4070#endif
4071char nm_test_var;
4072void nm_test_func(void);
4073void nm_test_func(void){}
4074#ifdef __cplusplus
4075}
4076#endif
4077int main(){nm_test_var='a';nm_test_func();return(0);}
4078_LT_EOF
4079
4080  if AC_TRY_EVAL(ac_compile); then
4081    # Now try to grab the symbols.
4082    nlist=conftest.nm
4083    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4084      # Try sorting and uniquifying the output.
4085      if sort "$nlist" | uniq > "$nlist"T; then
4086	mv -f "$nlist"T "$nlist"
4087      else
4088	rm -f "$nlist"T
4089      fi
4090
4091      # Make sure that we snagged all the symbols we need.
4092      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4093	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4094	  cat <<_LT_EOF > conftest.$ac_ext
4095#ifdef __cplusplus
4096extern "C" {
4097#endif
4098
4099_LT_EOF
4100	  # Now generate the symbol file.
4101	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4102
4103	  cat <<_LT_EOF >> conftest.$ac_ext
4104
4105/* The mapping between symbol names and symbols.  */
4106const struct {
4107  const char *name;
4108  void       *address;
4109}
4110lt__PROGRAM__LTX_preloaded_symbols[[]] =
4111{
4112  { "@PROGRAM@", (void *) 0 },
4113_LT_EOF
4114	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4115	  cat <<\_LT_EOF >> conftest.$ac_ext
4116  {0, (void *) 0}
4117};
4118
4119/* This works around a problem in FreeBSD linker */
4120#ifdef FREEBSD_WORKAROUND
4121static const void *lt_preloaded_setup() {
4122  return lt__PROGRAM__LTX_preloaded_symbols;
4123}
4124#endif
4125
4126#ifdef __cplusplus
4127}
4128#endif
4129_LT_EOF
4130	  # Now try linking the two files.
4131	  mv conftest.$ac_objext conftstm.$ac_objext
4132	  lt_save_LIBS="$LIBS"
4133	  lt_save_CFLAGS="$CFLAGS"
4134	  LIBS="conftstm.$ac_objext"
4135	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4136	  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4137	    pipe_works=yes
4138	  fi
4139	  LIBS="$lt_save_LIBS"
4140	  CFLAGS="$lt_save_CFLAGS"
4141	else
4142	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4143	fi
4144      else
4145	echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4146      fi
4147    else
4148      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4149    fi
4150  else
4151    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4152    cat conftest.$ac_ext >&5
4153  fi
4154  rm -rf conftest* conftst*
4155
4156  # Do not use the global_symbol_pipe unless it works.
4157  if test "$pipe_works" = yes; then
4158    break
4159  else
4160    lt_cv_sys_global_symbol_pipe=
4161  fi
4162done
4163])
4164if test -z "$lt_cv_sys_global_symbol_pipe"; then
4165  lt_cv_sys_global_symbol_to_cdecl=
4166fi
4167if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4168  AC_MSG_RESULT(failed)
4169else
4170  AC_MSG_RESULT(ok)
4171fi
4172
4173_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4174    [Take the output of nm and produce a listing of raw symbols and C names])
4175_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4176    [Transform the output of nm in a proper C declaration])
4177_LT_DECL([global_symbol_to_c_name_address],
4178    [lt_cv_sys_global_symbol_to_c_name_address], [1],
4179    [Transform the output of nm in a C name address pair])
4180_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4181    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4182    [Transform the output of nm in a C name address pair when lib prefix is needed])
4183]) # _LT_CMD_GLOBAL_SYMBOLS
4184
4185
4186# _LT_COMPILER_PIC([TAGNAME])
4187# ---------------------------
4188m4_defun([_LT_COMPILER_PIC],
4189[m4_require([_LT_TAG_COMPILER])dnl
4190_LT_TAGVAR(lt_prog_compiler_wl, $1)=
4191_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4192_LT_TAGVAR(lt_prog_compiler_static, $1)=
4193
4194AC_MSG_CHECKING([for $compiler option to produce PIC])
4195m4_if([$1], [CXX], [
4196  # C++ specific cases for pic, static, wl, etc.
4197  if test "$GXX" = yes; then
4198    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4199    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4200
4201    case $host_os in
4202    aix*)
4203      # All AIX code is PIC.
4204      if test "$host_cpu" = ia64; then
4205	# AIX 5 now supports IA64 processor
4206	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4207      fi
4208      ;;
4209
4210    amigaos*)
4211      case $host_cpu in
4212      powerpc)
4213            # see comment about AmigaOS4 .so support
4214            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4215        ;;
4216      m68k)
4217            # FIXME: we need at least 68020 code to build shared libraries, but
4218            # adding the `-m68020' flag to GCC prevents building anything better,
4219            # like `-m68040'.
4220            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4221        ;;
4222      esac
4223      ;;
4224
4225    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4226      # PIC is the default for these OSes.
4227      ;;
4228    mingw* | cygwin* | os2* | pw32* | cegcc*)
4229      # This hack is so that the source file can tell whether it is being
4230      # built for inclusion in a dll (and should export symbols for example).
4231      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4232      # (--disable-auto-import) libraries
4233      m4_if([$1], [GCJ], [],
4234	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4235      ;;
4236    darwin* | rhapsody*)
4237      # PIC is the default on this platform
4238      # Common symbols not allowed in MH_DYLIB files
4239      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4240      ;;
4241    *djgpp*)
4242      # DJGPP does not support shared libraries at all
4243      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4244      ;;
4245    interix[[3-9]]*)
4246      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4247      # Instead, we relocate shared libraries at runtime.
4248      ;;
4249    sysv4*MP*)
4250      if test -d /usr/nec; then
4251	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4252      fi
4253      ;;
4254    hpux*)
4255      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4256      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4257      # sets the default TLS model and affects inlining.
4258      case $host_cpu in
4259      hppa*64*)
4260	;;
4261      *)
4262	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4263	;;
4264      esac
4265      ;;
4266    *qnx* | *nto*)
4267      # QNX uses GNU C++, but need to define -shared option too, otherwise
4268      # it will coredump.
4269      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4270      ;;
4271    *)
4272      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4273      ;;
4274    esac
4275  else
4276    case $host_os in
4277      aix[[4-9]]*)
4278	# All AIX code is PIC.
4279	if test "$host_cpu" = ia64; then
4280	  # AIX 5 now supports IA64 processor
4281	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4282	else
4283	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4284	fi
4285	;;
4286      chorus*)
4287	case $cc_basename in
4288	cxch68*)
4289	  # Green Hills C++ Compiler
4290	  # _LT_TAGVAR(lt_prog_compiler_static, $1)="--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"
4291	  ;;
4292	esac
4293	;;
4294      dgux*)
4295	case $cc_basename in
4296	  ec++*)
4297	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4298	    ;;
4299	  ghcx*)
4300	    # Green Hills C++ Compiler
4301	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4302	    ;;
4303	  *)
4304	    ;;
4305	esac
4306	;;
4307      freebsd* | dragonfly*)
4308	# FreeBSD uses GNU C++
4309	;;
4310      hpux9* | hpux10* | hpux11*)
4311	case $cc_basename in
4312	  CC*)
4313	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4314	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4315	    if test "$host_cpu" != ia64; then
4316	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4317	    fi
4318	    ;;
4319	  aCC*)
4320	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4321	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4322	    case $host_cpu in
4323	    hppa*64*|ia64*)
4324	      # +Z the default
4325	      ;;
4326	    *)
4327	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4328	      ;;
4329	    esac
4330	    ;;
4331	  *)
4332	    ;;
4333	esac
4334	;;
4335      interix*)
4336	# This is c89, which is MS Visual C++ (no shared libs)
4337	# Anyone wants to do a port?
4338	;;
4339      irix5* | irix6* | nonstopux*)
4340	case $cc_basename in
4341	  CC*)
4342	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4343	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4344	    # CC pic flag -KPIC is the default.
4345	    ;;
4346	  *)
4347	    ;;
4348	esac
4349	;;
4350      linux* | k*bsd*-gnu | kopensolaris*-gnu)
4351	case $cc_basename in
4352	  KCC*)
4353	    # KAI C++ Compiler
4354	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4355	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4356	    ;;
4357	  ecpc* )
4358	    # old Intel C++ for x86_64 which still supported -KPIC.
4359	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4360	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4361	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4362	    ;;
4363	  icpc* )
4364	    # Intel C++, used to be incompatible with GCC.
4365	    # ICC 10 doesn't accept -KPIC any more.
4366	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4367	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4368	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4369	    ;;
4370	  pgCC* | pgcpp*)
4371	    # Portland Group C++ compiler
4372	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4373	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4374	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4375	    ;;
4376	  cxx*)
4377	    # Compaq C++
4378	    # Make sure the PIC flag is empty.  It appears that all Alpha
4379	    # Linux and Compaq Tru64 Unix objects are PIC.
4380	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4381	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4382	    ;;
4383	  xlc* | xlC*)
4384	    # IBM XL 8.0 on PPC
4385	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4386	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4387	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4388	    ;;
4389	  *)
4390	    case `$CC -V 2>&1 | sed 5q` in
4391	    *Sun\ C*)
4392	      # Sun C++ 5.9
4393	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4394	      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4395	      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4396	      ;;
4397	    esac
4398	    ;;
4399	esac
4400	;;
4401      lynxos*)
4402	;;
4403      m88k*)
4404	;;
4405      mvs*)
4406	case $cc_basename in
4407	  cxx*)
4408	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4409	    ;;
4410	  *)
4411	    ;;
4412	esac
4413	;;
4414      netbsd* | netbsdelf*-gnu)
4415	;;
4416      *qnx* | *nto*)
4417        # QNX uses GNU C++, but need to define -shared option too, otherwise
4418        # it will coredump.
4419        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4420        ;;
4421      osf3* | osf4* | osf5*)
4422	case $cc_basename in
4423	  KCC*)
4424	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4425	    ;;
4426	  RCC*)
4427	    # Rational C++ 2.4.1
4428	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4429	    ;;
4430	  cxx*)
4431	    # Digital/Compaq C++
4432	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4433	    # Make sure the PIC flag is empty.  It appears that all Alpha
4434	    # Linux and Compaq Tru64 Unix objects are PIC.
4435	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4436	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4437	    ;;
4438	  *)
4439	    ;;
4440	esac
4441	;;
4442      psos*)
4443	;;
4444      solaris*)
4445	case $cc_basename in
4446	  CC*)
4447	    # Sun C++ 4.2, 5.x and Centerline C++
4448	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4449	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4450	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4451	    ;;
4452	  gcx*)
4453	    # Green Hills C++ Compiler
4454	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4455	    ;;
4456	  *)
4457	    ;;
4458	esac
4459	;;
4460      sunos4*)
4461	case $cc_basename in
4462	  CC*)
4463	    # Sun C++ 4.x
4464	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4465	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4466	    ;;
4467	  lcc*)
4468	    # Lucid
4469	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4470	    ;;
4471	  *)
4472	    ;;
4473	esac
4474	;;
4475      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4476	case $cc_basename in
4477	  CC*)
4478	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4479	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4480	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4481	    ;;
4482	esac
4483	;;
4484      tandem*)
4485	case $cc_basename in
4486	  NCC*)
4487	    # NonStop-UX NCC 3.20
4488	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4489	    ;;
4490	  *)
4491	    ;;
4492	esac
4493	;;
4494      vxworks*)
4495	;;
4496      *)
4497	_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4498	;;
4499    esac
4500  fi
4501],
4502[
4503  if test "$GCC" = yes; then
4504    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4505    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4506
4507    case $host_os in
4508      aix*)
4509      # All AIX code is PIC.
4510      if test "$host_cpu" = ia64; then
4511	# AIX 5 now supports IA64 processor
4512	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4513      fi
4514      ;;
4515
4516    amigaos*)
4517      case $host_cpu in
4518      powerpc)
4519            # see comment about AmigaOS4 .so support
4520            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4521        ;;
4522      m68k)
4523            # FIXME: we need at least 68020 code to build shared libraries, but
4524            # adding the `-m68020' flag to GCC prevents building anything better,
4525            # like `-m68040'.
4526            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4527        ;;
4528      esac
4529      ;;
4530
4531    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4532      # PIC is the default for these OSes.
4533      ;;
4534
4535    mingw* | cygwin* | pw32* | os2* | cegcc*)
4536      # This hack is so that the source file can tell whether it is being
4537      # built for inclusion in a dll (and should export symbols for example).
4538      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4539      # (--disable-auto-import) libraries
4540      m4_if([$1], [GCJ], [],
4541	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4542      ;;
4543
4544    darwin* | rhapsody*)
4545      # PIC is the default on this platform
4546      # Common symbols not allowed in MH_DYLIB files
4547      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4548      ;;
4549
4550    hpux*)
4551      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4552      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4553      # sets the default TLS model and affects inlining.
4554      case $host_cpu in
4555      hppa*64*)
4556	# +Z the default
4557	;;
4558      *)
4559	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4560	;;
4561      esac
4562      ;;
4563
4564    interix[[3-9]]*)
4565      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4566      # Instead, we relocate shared libraries at runtime.
4567      ;;
4568
4569    msdosdjgpp*)
4570      # Just because we use GCC doesn't mean we suddenly get shared libraries
4571      # on systems that don't support them.
4572      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4573      enable_shared=no
4574      ;;
4575
4576    *nto* | *qnx*)
4577      # QNX uses GNU C++, but need to define -shared option too, otherwise
4578      # it will coredump.
4579      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4580      ;;
4581
4582    sysv4*MP*)
4583      if test -d /usr/nec; then
4584	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4585      fi
4586      ;;
4587
4588    *)
4589      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4590      ;;
4591    esac
4592  else
4593    # PORTME Check for flag to pass linker flags through the system compiler.
4594    case $host_os in
4595    aix*)
4596      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4597      if test "$host_cpu" = ia64; then
4598	# AIX 5 now supports IA64 processor
4599	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4600      else
4601	_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4602      fi
4603      ;;
4604
4605    mingw* | cygwin* | pw32* | os2* | cegcc*)
4606      # This hack is so that the source file can tell whether it is being
4607      # built for inclusion in a dll (and should export symbols for example).
4608      m4_if([$1], [GCJ], [],
4609	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4610      ;;
4611
4612    hpux9* | hpux10* | hpux11*)
4613      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4614      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4615      # not for PA HP-UX.
4616      case $host_cpu in
4617      hppa*64*|ia64*)
4618	# +Z the default
4619	;;
4620      *)
4621	_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4622	;;
4623      esac
4624      # Is there a better lt_prog_compiler_static that works with the bundled CC?
4625      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4626      ;;
4627
4628    irix5* | irix6* | nonstopux*)
4629      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4630      # PIC (with -KPIC) is the default.
4631      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4632      ;;
4633
4634    linux* | k*bsd*-gnu | kopensolaris*-gnu)
4635      case $cc_basename in
4636      # old Intel for x86_64 which still supported -KPIC.
4637      ecc*)
4638	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4639	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4640	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4641        ;;
4642      # icc used to be incompatible with GCC.
4643      # ICC 10 doesn't accept -KPIC any more.
4644      icc* | ifort*)
4645	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4646	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4647	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4648        ;;
4649      # Lahey Fortran 8.1.
4650      lf95*)
4651	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4652	_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4653	_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4654	;;
4655      pgcc* | pgf77* | pgf90* | pgf95*)
4656        # Portland Group compilers (*not* the Pentium gcc compiler,
4657	# which looks to be a dead project)
4658	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4659	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4660	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4661        ;;
4662      ccc*)
4663        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4664        # All Alpha code is PIC.
4665        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4666        ;;
4667      xl*)
4668	# IBM XL C 8.0/Fortran 10.1 on PPC
4669	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4670	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4671	_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4672	;;
4673      *)
4674	case `$CC -V 2>&1 | sed 5q` in
4675	*Sun\ C*)
4676	  # Sun C 5.9
4677	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4678	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4679	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4680	  ;;
4681	*Sun\ F*)
4682	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
4683	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4684	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4685	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4686	  ;;
4687	esac
4688	;;
4689      esac
4690      ;;
4691
4692    newsos6)
4693      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4694      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4695      ;;
4696
4697    *nto* | *qnx*)
4698      # QNX uses GNU C++, but need to define -shared option too, otherwise
4699      # it will coredump.
4700      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4701      ;;
4702
4703    osf3* | osf4* | osf5*)
4704      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4705      # All OSF/1 code is PIC.
4706      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4707      ;;
4708
4709    rdos*)
4710      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4711      ;;
4712
4713    solaris*)
4714      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4715      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4716      case $cc_basename in
4717      f77* | f90* | f95*)
4718	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4719      *)
4720	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4721      esac
4722      ;;
4723
4724    sunos4*)
4725      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4726      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4727      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4728      ;;
4729
4730    sysv4 | sysv4.2uw2* | sysv4.3*)
4731      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4732      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4733      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4734      ;;
4735
4736    sysv4*MP*)
4737      if test -d /usr/nec ;then
4738	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4739	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4740      fi
4741      ;;
4742
4743    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4744      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4745      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4746      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4747      ;;
4748
4749    unicos*)
4750      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4751      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4752      ;;
4753
4754    uts4*)
4755      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4756      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4757      ;;
4758
4759    *)
4760      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4761      ;;
4762    esac
4763  fi
4764])
4765case $host_os in
4766  # For platforms which do not support PIC, -DPIC is meaningless:
4767  *djgpp*)
4768    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4769    ;;
4770  *)
4771    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4772    ;;
4773esac
4774AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4775_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4776	[How to pass a linker flag through the compiler])
4777
4778#
4779# Check to make sure the PIC flag actually works.
4780#
4781if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4782  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4783    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4784    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4785    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4786     "" | " "*) ;;
4787     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4788     esac],
4789    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4790     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4791fi
4792_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4793	[Additional compiler flags for building library objects])
4794
4795#
4796# Check to make sure the static flag actually works.
4797#
4798wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4799_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4800  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4801  $lt_tmp_static_flag,
4802  [],
4803  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4804_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4805	[Compiler flag to prevent dynamic linking])
4806])# _LT_COMPILER_PIC
4807
4808
4809# _LT_LINKER_SHLIBS([TAGNAME])
4810# ----------------------------
4811# See if the linker supports building shared libraries.
4812m4_defun([_LT_LINKER_SHLIBS],
4813[AC_REQUIRE([LT_PATH_LD])dnl
4814AC_REQUIRE([LT_PATH_NM])dnl
4815m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4816m4_require([_LT_DECL_EGREP])dnl
4817m4_require([_LT_DECL_SED])dnl
4818m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4819m4_require([_LT_TAG_COMPILER])dnl
4820AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4821m4_if([$1], [CXX], [
4822  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4823  case $host_os in
4824  aix[[4-9]]*)
4825    # If we're using GNU nm, then we don't want the "-C" option.
4826    # -C means demangle to AIX nm, but means don't demangle with GNU nm
4827    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4828      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4829    else
4830      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4831    fi
4832    ;;
4833  pw32*)
4834    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4835  ;;
4836  cygwin* | mingw* | cegcc*)
4837    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4838  ;;
4839  linux* | k*bsd*-gnu)
4840    _LT_TAGVAR(link_all_deplibs, $1)=no
4841  ;;
4842  *)
4843    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4844  ;;
4845  esac
4846  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4847], [
4848  runpath_var=
4849  _LT_TAGVAR(allow_undefined_flag, $1)=
4850  _LT_TAGVAR(always_export_symbols, $1)=no
4851  _LT_TAGVAR(archive_cmds, $1)=
4852  _LT_TAGVAR(archive_expsym_cmds, $1)=
4853  _LT_TAGVAR(compiler_needs_object, $1)=no
4854  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4855  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4856  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4857  _LT_TAGVAR(hardcode_automatic, $1)=no
4858  _LT_TAGVAR(hardcode_direct, $1)=no
4859  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4860  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4861  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4862  _LT_TAGVAR(hardcode_libdir_separator, $1)=
4863  _LT_TAGVAR(hardcode_minus_L, $1)=no
4864  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4865  _LT_TAGVAR(inherit_rpath, $1)=no
4866  _LT_TAGVAR(link_all_deplibs, $1)=unknown
4867  _LT_TAGVAR(module_cmds, $1)=
4868  _LT_TAGVAR(module_expsym_cmds, $1)=
4869  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4870  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4871  _LT_TAGVAR(thread_safe_flag_spec, $1)=
4872  _LT_TAGVAR(whole_archive_flag_spec, $1)=
4873  # include_expsyms should be a list of space-separated symbols to be *always*
4874  # included in the symbol list
4875  _LT_TAGVAR(include_expsyms, $1)=
4876  # exclude_expsyms can be an extended regexp of symbols to exclude
4877  # it will be wrapped by ` (' and `)$', so one must not match beginning or
4878  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4879  # as well as any symbol that contains `d'.
4880  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4881  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4882  # platforms (ab)use it in PIC code, but their linkers get confused if
4883  # the symbol is explicitly referenced.  Since portable code cannot
4884  # rely on this symbol name, it's probably fine to never include it in
4885  # preloaded symbol tables.
4886  # Exclude shared library initialization/finalization symbols.
4887dnl Note also adjust exclude_expsyms for C++ above.
4888  extract_expsyms_cmds=
4889
4890  case $host_os in
4891  cygwin* | mingw* | pw32* | cegcc*)
4892    # FIXME: the MSVC++ port hasn't been tested in a loooong time
4893    # When not using gcc, we currently assume that we are using
4894    # Microsoft Visual C++.
4895    if test "$GCC" != yes; then
4896      with_gnu_ld=no
4897    fi
4898    ;;
4899  interix*)
4900    # we just hope/assume this is gcc and not c89 (= MSVC++)
4901    with_gnu_ld=yes
4902    ;;
4903  openbsd*)
4904    with_gnu_ld=no
4905    ;;
4906  linux* | k*bsd*-gnu)
4907    _LT_TAGVAR(link_all_deplibs, $1)=no
4908    ;;
4909  esac
4910
4911  _LT_TAGVAR(ld_shlibs, $1)=yes
4912  if test "$with_gnu_ld" = yes; then
4913    # If archive_cmds runs LD, not CC, wlarc should be empty
4914    wlarc='${wl}'
4915
4916    # Set some defaults for GNU ld with shared library support. These
4917    # are reset later if shared libraries are not supported. Putting them
4918    # here allows them to be overridden if necessary.
4919    runpath_var=LD_RUN_PATH
4920    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4921    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4922    # ancient GNU ld didn't support --whole-archive et. al.
4923    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4924      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4925    else
4926      _LT_TAGVAR(whole_archive_flag_spec, $1)=
4927    fi
4928    supports_anon_versioning=no
4929    case `$LD -v 2>&1` in
4930      *GNU\ gold*) supports_anon_versioning=yes ;;
4931      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4932      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4933      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4934      *\ 2.11.*) ;; # other 2.11 versions
4935      *) supports_anon_versioning=yes ;;
4936    esac
4937
4938    # See if GNU ld supports shared libraries.
4939    case $host_os in
4940    aix[[3-9]]*)
4941      # On AIX/PPC, the GNU linker is very broken
4942      if test "$host_cpu" != ia64; then
4943	_LT_TAGVAR(ld_shlibs, $1)=no
4944	cat <<_LT_EOF 1>&2
4945
4946*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4947*** to be unable to reliably create shared libraries on AIX.
4948*** Therefore, libtool is disabling shared libraries support.  If you
4949*** really care for shared libraries, you may want to modify your PATH
4950*** so that a non-GNU linker is found, and then restart.
4951
4952_LT_EOF
4953      fi
4954      ;;
4955
4956    amigaos*)
4957      case $host_cpu in
4958      powerpc)
4959            # see comment about AmigaOS4 .so support
4960            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4961            _LT_TAGVAR(archive_expsym_cmds, $1)=''
4962        ;;
4963      m68k)
4964            _LT_TAGVAR(archive_cmds, $1)='$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)'
4965            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4966            _LT_TAGVAR(hardcode_minus_L, $1)=yes
4967        ;;
4968      esac
4969      ;;
4970
4971    beos*)
4972      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4973	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4974	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4975	# support --undefined.  This deserves some investigation.  FIXME
4976	_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4977      else
4978	_LT_TAGVAR(ld_shlibs, $1)=no
4979      fi
4980      ;;
4981
4982    cygwin* | mingw* | pw32* | cegcc*)
4983      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4984      # as there is no search path for DLLs.
4985      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4986      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4987      _LT_TAGVAR(always_export_symbols, $1)=no
4988      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4989      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4990
4991      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4992        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4993	# If the export-symbols file already is a .def file (1st line
4994	# is EXPORTS), use it as is; otherwise, prepend...
4995	_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4996	  cp $export_symbols $output_objdir/$soname.def;
4997	else
4998	  echo EXPORTS > $output_objdir/$soname.def;
4999	  cat $export_symbols >> $output_objdir/$soname.def;
5000	fi~
5001	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5002      else
5003	_LT_TAGVAR(ld_shlibs, $1)=no
5004      fi
5005      ;;
5006
5007    interix[[3-9]]*)
5008      _LT_TAGVAR(hardcode_direct, $1)=no
5009      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5010      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5011      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5012      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5013      # Instead, shared libraries are loaded at an image base (0x10000000 by
5014      # default) and relocated if they conflict, which is a slow very memory
5015      # consuming and fragmenting process.  To avoid this, we pick a random,
5016      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5017      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
5018      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5019      _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5020      ;;
5021
5022    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5023      tmp_diet=no
5024      if test "$host_os" = linux-dietlibc; then
5025	case $cc_basename in
5026	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
5027	esac
5028      fi
5029      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5030	 && test "$tmp_diet" = no
5031      then
5032	tmp_addflag=
5033	tmp_sharedflag='-shared'
5034	case $cc_basename,$host_cpu in
5035        pgcc*)				# Portland Group C compiler
5036	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5037	  tmp_addflag=' $pic_flag'
5038	  ;;
5039	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
5040	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5041	  tmp_addflag=' $pic_flag -Mnomain' ;;
5042	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
5043	  tmp_addflag=' -i_dynamic' ;;
5044	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
5045	  tmp_addflag=' -i_dynamic -nofor_main' ;;
5046	ifc* | ifort*)			# Intel Fortran compiler
5047	  tmp_addflag=' -nofor_main' ;;
5048	lf95*)				# Lahey Fortran 8.1
5049	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
5050	  tmp_sharedflag='--shared' ;;
5051	xl[[cC]]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
5052	  tmp_sharedflag='-qmkshrobj'
5053	  tmp_addflag= ;;
5054	esac
5055	case `$CC -V 2>&1 | sed 5q` in
5056	*Sun\ C*)			# Sun C 5.9
5057	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5058	  _LT_TAGVAR(compiler_needs_object, $1)=yes
5059	  tmp_sharedflag='-G' ;;
5060	*Sun\ F*)			# Sun Fortran 8.3
5061	  tmp_sharedflag='-G' ;;
5062	esac
5063	_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5064
5065        if test "x$supports_anon_versioning" = xyes; then
5066          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5067	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5068	    echo "local: *; };" >> $output_objdir/$libname.ver~
5069	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5070        fi
5071
5072	case $cc_basename in
5073	xlf*)
5074	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5075	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5076	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5077	  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5078	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
5079	  if test "x$supports_anon_versioning" = xyes; then
5080	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5081	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5082	      echo "local: *; };" >> $output_objdir/$libname.ver~
5083	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5084	  fi
5085	  ;;
5086	esac
5087      else
5088        _LT_TAGVAR(ld_shlibs, $1)=no
5089      fi
5090      ;;
5091
5092    netbsd* | netbsdelf*-gnu)
5093      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5094	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5095	wlarc=
5096      else
5097	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5098	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5099      fi
5100      ;;
5101
5102    solaris*)
5103      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5104	_LT_TAGVAR(ld_shlibs, $1)=no
5105	cat <<_LT_EOF 1>&2
5106
5107*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5108*** create shared libraries on Solaris systems.  Therefore, libtool
5109*** is disabling shared libraries support.  We urge you to upgrade GNU
5110*** binutils to release 2.9.1 or newer.  Another option is to modify
5111*** your PATH or compiler configuration so that the native linker is
5112*** used, and then restart.
5113
5114_LT_EOF
5115      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5116	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5117	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5118      else
5119	_LT_TAGVAR(ld_shlibs, $1)=no
5120      fi
5121      ;;
5122
5123    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5124      case `$LD -v 2>&1` in
5125        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5126	_LT_TAGVAR(ld_shlibs, $1)=no
5127	cat <<_LT_EOF 1>&2
5128
5129*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5130*** reliably create shared libraries on SCO systems.  Therefore, libtool
5131*** is disabling shared libraries support.  We urge you to upgrade GNU
5132*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
5133*** your PATH or compiler configuration so that the native linker is
5134*** used, and then restart.
5135
5136_LT_EOF
5137	;;
5138	*)
5139	  # For security reasons, it is highly recommended that you always
5140	  # use absolute paths for naming shared libraries, and exclude the
5141	  # DT_RUNPATH tag from executables and libraries.  But doing so
5142	  # requires that you compile everything twice, which is a pain.
5143	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5144	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5145	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5146	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5147	  else
5148	    _LT_TAGVAR(ld_shlibs, $1)=no
5149	  fi
5150	;;
5151      esac
5152      ;;
5153
5154    sunos4*)
5155      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5156      wlarc=
5157      _LT_TAGVAR(hardcode_direct, $1)=yes
5158      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5159      ;;
5160
5161    *)
5162      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5163	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5164	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5165      else
5166	_LT_TAGVAR(ld_shlibs, $1)=no
5167      fi
5168      ;;
5169    esac
5170
5171    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5172      runpath_var=
5173      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5174      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5175      _LT_TAGVAR(whole_archive_flag_spec, $1)=
5176    fi
5177  else
5178    # PORTME fill in a description of your system's linker (not GNU ld)
5179    case $host_os in
5180    aix3*)
5181      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5182      _LT_TAGVAR(always_export_symbols, $1)=yes
5183      _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5184      # Note: this linker hardcodes the directories in LIBPATH if there
5185      # are no directories specified by -L.
5186      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5187      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5188	# Neither direct hardcoding nor static linking is supported with a
5189	# broken collect2.
5190	_LT_TAGVAR(hardcode_direct, $1)=unsupported
5191      fi
5192      ;;
5193
5194    aix[[4-9]]*)
5195      if test "$host_cpu" = ia64; then
5196	# On IA64, the linker does run time linking by default, so we don't
5197	# have to do anything special.
5198	aix_use_runtimelinking=no
5199	exp_sym_flag='-Bexport'
5200	no_entry_flag=""
5201      else
5202	# If we're using GNU nm, then we don't want the "-C" option.
5203	# -C means demangle to AIX nm, but means don't demangle with GNU nm
5204	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5205	  _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5206	else
5207	  _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5208	fi
5209	aix_use_runtimelinking=no
5210
5211	# Test if we are trying to use run time linking or normal
5212	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5213	# need to do runtime linking.
5214	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5215	  for ld_flag in $LDFLAGS; do
5216	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5217	    aix_use_runtimelinking=yes
5218	    break
5219	  fi
5220	  done
5221	  ;;
5222	esac
5223
5224	exp_sym_flag='-bexport'
5225	no_entry_flag='-bnoentry'
5226      fi
5227
5228      # When large executables or shared objects are built, AIX ld can
5229      # have problems creating the table of contents.  If linking a library
5230      # or program results in "error TOC overflow" add -mminimal-toc to
5231      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5232      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5233
5234      _LT_TAGVAR(archive_cmds, $1)=''
5235      _LT_TAGVAR(hardcode_direct, $1)=yes
5236      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5237      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5238      _LT_TAGVAR(link_all_deplibs, $1)=yes
5239      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5240
5241      if test "$GCC" = yes; then
5242	case $host_os in aix4.[[012]]|aix4.[[012]].*)
5243	# We only want to do this on AIX 4.2 and lower, the check
5244	# below for broken collect2 doesn't work under 4.3+
5245	  collect2name=`${CC} -print-prog-name=collect2`
5246	  if test -f "$collect2name" &&
5247	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5248	  then
5249	  # We have reworked collect2
5250	  :
5251	  else
5252	  # We have old collect2
5253	  _LT_TAGVAR(hardcode_direct, $1)=unsupported
5254	  # It fails to find uninstalled libraries when the uninstalled
5255	  # path is not listed in the libpath.  Setting hardcode_minus_L
5256	  # to unsupported forces relinking
5257	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
5258	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5259	  _LT_TAGVAR(hardcode_libdir_separator, $1)=
5260	  fi
5261	  ;;
5262	esac
5263	shared_flag='-shared'
5264	if test "$aix_use_runtimelinking" = yes; then
5265	  shared_flag="$shared_flag "'${wl}-G'
5266	fi
5267	_LT_TAGVAR(link_all_deplibs, $1)=no
5268      else
5269	# not using gcc
5270	if test "$host_cpu" = ia64; then
5271	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5272	# chokes on -Wl,-G. The following line is correct:
5273	  shared_flag='-G'
5274	else
5275	  if test "$aix_use_runtimelinking" = yes; then
5276	    shared_flag='${wl}-G'
5277	  else
5278	    shared_flag='${wl}-bM:SRE'
5279	  fi
5280	fi
5281      fi
5282
5283      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5284      # It seems that -bexpall does not export symbols beginning with
5285      # underscore (_), so it is better to generate a list of symbols to export.
5286      _LT_TAGVAR(always_export_symbols, $1)=yes
5287      if test "$aix_use_runtimelinking" = yes; then
5288	# Warning - without using the other runtime loading flags (-brtl),
5289	# -berok will link without error, but may produce a broken library.
5290	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5291        # Determine the default libpath from the value encoded in an
5292        # empty executable.
5293        _LT_SYS_MODULE_PATH_AIX
5294        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5295        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5296      else
5297	if test "$host_cpu" = ia64; then
5298	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5299	  _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5300	  _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5301	else
5302	 # Determine the default libpath from the value encoded in an
5303	 # empty executable.
5304	 _LT_SYS_MODULE_PATH_AIX
5305	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5306	  # Warning - without using the other run time loading flags,
5307	  # -berok will link without error, but may produce a broken library.
5308	  _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5309	  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5310	  # Exported symbols can be pulled into shared objects from archives
5311	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5312	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5313	  # This is similar to how AIX traditionally builds its shared libraries.
5314	  _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5315	fi
5316      fi
5317      ;;
5318
5319    amigaos*)
5320      case $host_cpu in
5321      powerpc)
5322            # see comment about AmigaOS4 .so support
5323            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5324            _LT_TAGVAR(archive_expsym_cmds, $1)=''
5325        ;;
5326      m68k)
5327            _LT_TAGVAR(archive_cmds, $1)='$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)'
5328            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5329            _LT_TAGVAR(hardcode_minus_L, $1)=yes
5330        ;;
5331      esac
5332      ;;
5333
5334    bsdi[[45]]*)
5335      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5336      ;;
5337
5338    cygwin* | mingw* | pw32* | cegcc*)
5339      # When not using gcc, we currently assume that we are using
5340      # Microsoft Visual C++.
5341      # hardcode_libdir_flag_spec is actually meaningless, as there is
5342      # no search path for DLLs.
5343      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5344      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5345      # Tell ltmain to make .lib files, not .a files.
5346      libext=lib
5347      # Tell ltmain to make .dll files, not .so files.
5348      shrext_cmds=".dll"
5349      # FIXME: Setting linknames here is a bad hack.
5350      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5351      # The linker will automatically build a .lib file if we build a DLL.
5352      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5353      # FIXME: Should let the user specify the lib program.
5354      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5355      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5356      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5357      ;;
5358
5359    darwin* | rhapsody*)
5360      _LT_DARWIN_LINKER_FEATURES($1)
5361      ;;
5362
5363    dgux*)
5364      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5365      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5366      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5367      ;;
5368
5369    freebsd1*)
5370      _LT_TAGVAR(ld_shlibs, $1)=no
5371      ;;
5372
5373    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5374    # support.  Future versions do this automatically, but an explicit c++rt0.o
5375    # does not break anything, and helps significantly (at the cost of a little
5376    # extra space).
5377    freebsd2.2*)
5378      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5379      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5380      _LT_TAGVAR(hardcode_direct, $1)=yes
5381      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5382      ;;
5383
5384    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5385    freebsd2*)
5386      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5387      _LT_TAGVAR(hardcode_direct, $1)=yes
5388      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5389      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5390      ;;
5391
5392    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5393    freebsd* | dragonfly*)
5394      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5395      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5396      _LT_TAGVAR(hardcode_direct, $1)=yes
5397      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5398      ;;
5399
5400    hpux9*)
5401      if test "$GCC" = yes; then
5402	_LT_TAGVAR(archive_cmds, $1)='$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'
5403      else
5404	_LT_TAGVAR(archive_cmds, $1)='$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'
5405      fi
5406      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5407      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5408      _LT_TAGVAR(hardcode_direct, $1)=yes
5409
5410      # hardcode_minus_L: Not really in the search PATH,
5411      # but as the default location of the library.
5412      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5413      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5414      ;;
5415
5416    hpux10*)
5417      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5418	_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5419      else
5420	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5421      fi
5422      if test "$with_gnu_ld" = no; then
5423	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5424	_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5425	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5426	_LT_TAGVAR(hardcode_direct, $1)=yes
5427	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5428	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5429	# hardcode_minus_L: Not really in the search PATH,
5430	# but as the default location of the library.
5431	_LT_TAGVAR(hardcode_minus_L, $1)=yes
5432      fi
5433      ;;
5434
5435    hpux11*)
5436      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5437	case $host_cpu in
5438	hppa*64*)
5439	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5440	  ;;
5441	ia64*)
5442	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5443	  ;;
5444	*)
5445	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5446	  ;;
5447	esac
5448      else
5449	case $host_cpu in
5450	hppa*64*)
5451	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5452	  ;;
5453	ia64*)
5454	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5455	  ;;
5456	*)
5457	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5458	  ;;
5459	esac
5460      fi
5461      if test "$with_gnu_ld" = no; then
5462	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5463	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5464
5465	case $host_cpu in
5466	hppa*64*|ia64*)
5467	  _LT_TAGVAR(hardcode_direct, $1)=no
5468	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5469	  ;;
5470	*)
5471	  _LT_TAGVAR(hardcode_direct, $1)=yes
5472	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5473	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5474
5475	  # hardcode_minus_L: Not really in the search PATH,
5476	  # but as the default location of the library.
5477	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
5478	  ;;
5479	esac
5480      fi
5481      ;;
5482
5483    irix5* | irix6* | nonstopux*)
5484      if test "$GCC" = yes; then
5485	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5486	# Try to use the -exported_symbol ld option, if it does not
5487	# work, assume that -exports_file does not work either and
5488	# implicitly export all symbols.
5489        save_LDFLAGS="$LDFLAGS"
5490        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5491        AC_LINK_IFELSE(int foo(void) {},
5492          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5493        )
5494        LDFLAGS="$save_LDFLAGS"
5495      else
5496	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5497	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5498      fi
5499      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5500      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5501      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5502      _LT_TAGVAR(inherit_rpath, $1)=yes
5503      _LT_TAGVAR(link_all_deplibs, $1)=yes
5504      ;;
5505
5506    netbsd* | netbsdelf*-gnu)
5507      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5508	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5509      else
5510	_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5511      fi
5512      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5513      _LT_TAGVAR(hardcode_direct, $1)=yes
5514      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5515      ;;
5516
5517    newsos6)
5518      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5519      _LT_TAGVAR(hardcode_direct, $1)=yes
5520      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5521      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5522      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5523      ;;
5524
5525    *nto* | *qnx*)
5526      ;;
5527
5528    openbsd*)
5529      if test -f /usr/libexec/ld.so; then
5530	_LT_TAGVAR(hardcode_direct, $1)=yes
5531	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5532	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5533	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5534	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5535	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5536	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5537	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5538	else
5539	  case $host_os in
5540	   openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5541	     _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5542	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5543	     ;;
5544	   *)
5545	     _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5546	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5547	     ;;
5548	  esac
5549	fi
5550      else
5551	_LT_TAGVAR(ld_shlibs, $1)=no
5552      fi
5553      ;;
5554
5555    os2*)
5556      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5557      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5558      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5559      _LT_TAGVAR(archive_cmds, $1)='$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'
5560      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5561      ;;
5562
5563    osf3*)
5564      if test "$GCC" = yes; then
5565	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5566	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5567      else
5568	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5569	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5570      fi
5571      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5572      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5573      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5574      ;;
5575
5576    osf4* | osf5*)	# as osf3* with the addition of -msym flag
5577      if test "$GCC" = yes; then
5578	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5579	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5580	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5581      else
5582	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5583	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5584	_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5585	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5586
5587	# Both c and cxx compiler support -rpath directly
5588	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5589      fi
5590      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5591      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5592      ;;
5593
5594    solaris*)
5595      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5596      if test "$GCC" = yes; then
5597	wlarc='${wl}'
5598	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5599	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5600	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5601      else
5602	case `$CC -V 2>&1` in
5603	*"Compilers 5.0"*)
5604	  wlarc=''
5605	  _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5606	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5607	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5608	  ;;
5609	*)
5610	  wlarc='${wl}'
5611	  _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5612	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5613	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5614	  ;;
5615	esac
5616      fi
5617      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5618      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5619      case $host_os in
5620      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5621      *)
5622	# The compiler driver will combine and reorder linker options,
5623	# but understands `-z linker_flag'.  GCC discards it without `$wl',
5624	# but is careful enough not to reorder.
5625	# Supported since Solaris 2.6 (maybe 2.5.1?)
5626	if test "$GCC" = yes; then
5627	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5628	else
5629	  _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5630	fi
5631	;;
5632      esac
5633      _LT_TAGVAR(link_all_deplibs, $1)=yes
5634      ;;
5635
5636    sunos4*)
5637      if test "x$host_vendor" = xsequent; then
5638	# Use $CC to link under sequent, because it throws in some extra .o
5639	# files that make .init and .fini sections work.
5640	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5641      else
5642	_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5643      fi
5644      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5645      _LT_TAGVAR(hardcode_direct, $1)=yes
5646      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5647      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5648      ;;
5649
5650    sysv4)
5651      case $host_vendor in
5652	sni)
5653	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5654	  _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5655	;;
5656	siemens)
5657	  ## LD is ld it makes a PLAMLIB
5658	  ## CC just makes a GrossModule.
5659	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5660	  _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5661	  _LT_TAGVAR(hardcode_direct, $1)=no
5662        ;;
5663	motorola)
5664	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5665	  _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5666	;;
5667      esac
5668      runpath_var='LD_RUN_PATH'
5669      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5670      ;;
5671
5672    sysv4.3*)
5673      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5674      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5675      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5676      ;;
5677
5678    sysv4*MP*)
5679      if test -d /usr/nec; then
5680	_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5681	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5682	runpath_var=LD_RUN_PATH
5683	hardcode_runpath_var=yes
5684	_LT_TAGVAR(ld_shlibs, $1)=yes
5685      fi
5686      ;;
5687
5688    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5689      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5690      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5691      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5692      runpath_var='LD_RUN_PATH'
5693
5694      if test "$GCC" = yes; then
5695	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5696	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5697      else
5698	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5699	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5700      fi
5701      ;;
5702
5703    sysv5* | sco3.2v5* | sco5v6*)
5704      # Note: We can NOT use -z defs as we might desire, because we do not
5705      # link with -lc, and that would cause any symbols used from libc to
5706      # always be unresolved, which means just about no library would
5707      # ever link correctly.  If we're not using GNU ld we use -z text
5708      # though, which does catch some bad symbols but isn't as heavy-handed
5709      # as -z defs.
5710      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5711      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5712      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5713      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5714      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5715      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5716      _LT_TAGVAR(link_all_deplibs, $1)=yes
5717      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5718      runpath_var='LD_RUN_PATH'
5719
5720      if test "$GCC" = yes; then
5721	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5722	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5723      else
5724	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5725	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5726      fi
5727      ;;
5728
5729    uts4*)
5730      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5731      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5732      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5733      ;;
5734
5735    *)
5736      _LT_TAGVAR(ld_shlibs, $1)=no
5737      ;;
5738    esac
5739
5740    if test x$host_vendor = xsni; then
5741      case $host in
5742      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5743	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5744	;;
5745      esac
5746    fi
5747  fi
5748])
5749AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5750test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5751
5752_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5753
5754_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5755_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5756_LT_DECL([], [extract_expsyms_cmds], [2],
5757    [The commands to extract the exported symbol list from a shared archive])
5758
5759#
5760# Do we need to explicitly link libc?
5761#
5762case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5763x|xyes)
5764  # Assume -lc should be added
5765  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5766
5767  if test "$enable_shared" = yes && test "$GCC" = yes; then
5768    case $_LT_TAGVAR(archive_cmds, $1) in
5769    *'~'*)
5770      # FIXME: we may have to deal with multi-command sequences.
5771      ;;
5772    '$CC '*)
5773      # Test whether the compiler implicitly links with -lc since on some
5774      # systems, -lgcc has to come before -lc. If gcc already passes -lc
5775      # to ld, don't add -lc before -lgcc.
5776      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5777      $RM conftest*
5778      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5779
5780      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5781        soname=conftest
5782        lib=conftest
5783        libobjs=conftest.$ac_objext
5784        deplibs=
5785        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5786	pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5787        compiler_flags=-v
5788        linker_flags=-v
5789        verstring=
5790        output_objdir=.
5791        libname=conftest
5792        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5793        _LT_TAGVAR(allow_undefined_flag, $1)=
5794        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5795        then
5796	  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5797        else
5798	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5799        fi
5800        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5801      else
5802        cat conftest.err 1>&5
5803      fi
5804      $RM conftest*
5805      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5806      ;;
5807    esac
5808  fi
5809  ;;
5810esac
5811
5812_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5813    [Whether or not to add -lc for building shared libraries])
5814_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5815    [enable_shared_with_static_runtimes], [0],
5816    [Whether or not to disallow shared libs when runtime libs are static])
5817_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5818    [Compiler flag to allow reflexive dlopens])
5819_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5820    [Compiler flag to generate shared objects directly from archives])
5821_LT_TAGDECL([], [compiler_needs_object], [1],
5822    [Whether the compiler copes with passing no objects directly])
5823_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5824    [Create an old-style archive from a shared archive])
5825_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5826    [Create a temporary old-style archive to link instead of a shared archive])
5827_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5828_LT_TAGDECL([], [archive_expsym_cmds], [2])
5829_LT_TAGDECL([], [module_cmds], [2],
5830    [Commands used to build a loadable module if different from building
5831    a shared archive.])
5832_LT_TAGDECL([], [module_expsym_cmds], [2])
5833_LT_TAGDECL([], [with_gnu_ld], [1],
5834    [Whether we are building with GNU ld or not])
5835_LT_TAGDECL([], [allow_undefined_flag], [1],
5836    [Flag that allows shared libraries with undefined symbols to be built])
5837_LT_TAGDECL([], [no_undefined_flag], [1],
5838    [Flag that enforces no undefined symbols])
5839_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5840    [Flag to hardcode $libdir into a binary during linking.
5841    This must work even if $libdir does not exist])
5842_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5843    [[If ld is used when linking, flag to hardcode $libdir into a binary
5844    during linking.  This must work even if $libdir does not exist]])
5845_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5846    [Whether we need a single "-rpath" flag with a separated argument])
5847_LT_TAGDECL([], [hardcode_direct], [0],
5848    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5849    DIR into the resulting binary])
5850_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5851    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5852    DIR into the resulting binary and the resulting library dependency is
5853    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5854    library is relocated])
5855_LT_TAGDECL([], [hardcode_minus_L], [0],
5856    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5857    into the resulting binary])
5858_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5859    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5860    into the resulting binary])
5861_LT_TAGDECL([], [hardcode_automatic], [0],
5862    [Set to "yes" if building a shared library automatically hardcodes DIR
5863    into the library and all subsequent libraries and executables linked
5864    against it])
5865_LT_TAGDECL([], [inherit_rpath], [0],
5866    [Set to yes if linker adds runtime paths of dependent libraries
5867    to runtime path list])
5868_LT_TAGDECL([], [link_all_deplibs], [0],
5869    [Whether libtool must link a program against all its dependency libraries])
5870_LT_TAGDECL([], [fix_srcfile_path], [1],
5871    [Fix the shell variable $srcfile for the compiler])
5872_LT_TAGDECL([], [always_export_symbols], [0],
5873    [Set to "yes" if exported symbols are required])
5874_LT_TAGDECL([], [export_symbols_cmds], [2],
5875    [The commands to list exported symbols])
5876_LT_TAGDECL([], [exclude_expsyms], [1],
5877    [Symbols that should not be listed in the preloaded symbols])
5878_LT_TAGDECL([], [include_expsyms], [1],
5879    [Symbols that must always be exported])
5880_LT_TAGDECL([], [prelink_cmds], [2],
5881    [Commands necessary for linking programs (against libraries) with templates])
5882_LT_TAGDECL([], [file_list_spec], [1],
5883    [Specify filename containing input files])
5884dnl FIXME: Not yet implemented
5885dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5886dnl    [Compiler flag to generate thread safe objects])
5887])# _LT_LINKER_SHLIBS
5888
5889
5890# _LT_LANG_C_CONFIG([TAG])
5891# ------------------------
5892# Ensure that the configuration variables for a C compiler are suitably
5893# defined.  These variables are subsequently used by _LT_CONFIG to write
5894# the compiler configuration to `libtool'.
5895m4_defun([_LT_LANG_C_CONFIG],
5896[m4_require([_LT_DECL_EGREP])dnl
5897lt_save_CC="$CC"
5898AC_LANG_PUSH(C)
5899
5900# Source file extension for C test sources.
5901ac_ext=c
5902
5903# Object file extension for compiled C test sources.
5904objext=o
5905_LT_TAGVAR(objext, $1)=$objext
5906
5907# Code to be used in simple compile tests
5908lt_simple_compile_test_code="int some_variable = 0;"
5909
5910# Code to be used in simple link tests
5911lt_simple_link_test_code='int main(){return(0);}'
5912
5913_LT_TAG_COMPILER
5914# Save the default compiler, since it gets overwritten when the other
5915# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5916compiler_DEFAULT=$CC
5917
5918# save warnings/boilerplate of simple test code
5919_LT_COMPILER_BOILERPLATE
5920_LT_LINKER_BOILERPLATE
5921
5922if test -n "$compiler"; then
5923  _LT_COMPILER_NO_RTTI($1)
5924  _LT_COMPILER_PIC($1)
5925  _LT_COMPILER_C_O($1)
5926  _LT_COMPILER_FILE_LOCKS($1)
5927  _LT_LINKER_SHLIBS($1)
5928  _LT_SYS_DYNAMIC_LINKER($1)
5929  _LT_LINKER_HARDCODE_LIBPATH($1)
5930  LT_SYS_DLOPEN_SELF
5931  _LT_CMD_STRIPLIB
5932
5933  # Report which library types will actually be built
5934  AC_MSG_CHECKING([if libtool supports shared libraries])
5935  AC_MSG_RESULT([$can_build_shared])
5936
5937  AC_MSG_CHECKING([whether to build shared libraries])
5938  test "$can_build_shared" = "no" && enable_shared=no
5939
5940  # On AIX, shared libraries and static libraries use the same namespace, and
5941  # are all built from PIC.
5942  case $host_os in
5943  aix3*)
5944    test "$enable_shared" = yes && enable_static=no
5945    if test -n "$RANLIB"; then
5946      archive_cmds="$archive_cmds~\$RANLIB \$lib"
5947      postinstall_cmds='$RANLIB $lib'
5948    fi
5949    ;;
5950
5951  aix[[4-9]]*)
5952    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5953      test "$enable_shared" = yes && enable_static=no
5954    fi
5955    ;;
5956  esac
5957  AC_MSG_RESULT([$enable_shared])
5958
5959  AC_MSG_CHECKING([whether to build static libraries])
5960  # Make sure either enable_shared or enable_static is yes.
5961  test "$enable_shared" = yes || enable_static=yes
5962  AC_MSG_RESULT([$enable_static])
5963
5964  _LT_CONFIG($1)
5965fi
5966AC_LANG_POP
5967CC="$lt_save_CC"
5968])# _LT_LANG_C_CONFIG
5969
5970
5971# _LT_PROG_CXX
5972# ------------
5973# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5974# compiler, we have our own version here.
5975m4_defun([_LT_PROG_CXX],
5976[
5977pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5978AC_PROG_CXX
5979if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5980    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5981    (test "X$CXX" != "Xg++"))) ; then
5982  AC_PROG_CXXCPP
5983else
5984  _lt_caught_CXX_error=yes
5985fi
5986popdef([AC_MSG_ERROR])
5987])# _LT_PROG_CXX
5988
5989dnl aclocal-1.4 backwards compatibility:
5990dnl AC_DEFUN([_LT_PROG_CXX], [])
5991
5992
5993# _LT_LANG_CXX_CONFIG([TAG])
5994# --------------------------
5995# Ensure that the configuration variables for a C++ compiler are suitably
5996# defined.  These variables are subsequently used by _LT_CONFIG to write
5997# the compiler configuration to `libtool'.
5998m4_defun([_LT_LANG_CXX_CONFIG],
5999[AC_REQUIRE([_LT_PROG_CXX])dnl
6000m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6001m4_require([_LT_DECL_EGREP])dnl
6002
6003AC_LANG_PUSH(C++)
6004_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6005_LT_TAGVAR(allow_undefined_flag, $1)=
6006_LT_TAGVAR(always_export_symbols, $1)=no
6007_LT_TAGVAR(archive_expsym_cmds, $1)=
6008_LT_TAGVAR(compiler_needs_object, $1)=no
6009_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6010_LT_TAGVAR(hardcode_direct, $1)=no
6011_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6012_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6013_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6014_LT_TAGVAR(hardcode_libdir_separator, $1)=
6015_LT_TAGVAR(hardcode_minus_L, $1)=no
6016_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6017_LT_TAGVAR(hardcode_automatic, $1)=no
6018_LT_TAGVAR(inherit_rpath, $1)=no
6019_LT_TAGVAR(module_cmds, $1)=
6020_LT_TAGVAR(module_expsym_cmds, $1)=
6021_LT_TAGVAR(link_all_deplibs, $1)=unknown
6022_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6023_LT_TAGVAR(no_undefined_flag, $1)=
6024_LT_TAGVAR(whole_archive_flag_spec, $1)=
6025_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6026
6027# Source file extension for C++ test sources.
6028ac_ext=cpp
6029
6030# Object file extension for compiled C++ test sources.
6031objext=o
6032_LT_TAGVAR(objext, $1)=$objext
6033
6034# No sense in running all these tests if we already determined that
6035# the CXX compiler isn't working.  Some variables (like enable_shared)
6036# are currently assumed to apply to all compilers on this platform,
6037# and will be corrupted by setting them based on a non-working compiler.
6038if test "$_lt_caught_CXX_error" != yes; then
6039  # Code to be used in simple compile tests
6040  lt_simple_compile_test_code="int some_variable = 0;"
6041
6042  # Code to be used in simple link tests
6043  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6044
6045  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6046  _LT_TAG_COMPILER
6047
6048  # save warnings/boilerplate of simple test code
6049  _LT_COMPILER_BOILERPLATE
6050  _LT_LINKER_BOILERPLATE
6051
6052  # Allow CC to be a program name with arguments.
6053  lt_save_CC=$CC
6054  lt_save_LD=$LD
6055  lt_save_GCC=$GCC
6056  GCC=$GXX
6057  lt_save_with_gnu_ld=$with_gnu_ld
6058  lt_save_path_LD=$lt_cv_path_LD
6059  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6060    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6061  else
6062    $as_unset lt_cv_prog_gnu_ld
6063  fi
6064  if test -n "${lt_cv_path_LDCXX+set}"; then
6065    lt_cv_path_LD=$lt_cv_path_LDCXX
6066  else
6067    $as_unset lt_cv_path_LD
6068  fi
6069  test -z "${LDCXX+set}" || LD=$LDCXX
6070  CC=${CXX-"c++"}
6071  compiler=$CC
6072  _LT_TAGVAR(compiler, $1)=$CC
6073  _LT_CC_BASENAME([$compiler])
6074
6075  if test -n "$compiler"; then
6076    # We don't want -fno-exception when compiling C++ code, so set the
6077    # no_builtin_flag separately
6078    if test "$GXX" = yes; then
6079      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6080    else
6081      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6082    fi
6083
6084    if test "$GXX" = yes; then
6085      # Set up default GNU C++ configuration
6086
6087      LT_PATH_LD
6088
6089      # Check if GNU C++ uses GNU ld as the underlying linker, since the
6090      # archiving commands below assume that GNU ld is being used.
6091      if test "$with_gnu_ld" = yes; then
6092        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6093        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6094
6095        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6096        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6097
6098        # If archive_cmds runs LD, not CC, wlarc should be empty
6099        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6100        #     investigate it a little bit more. (MM)
6101        wlarc='${wl}'
6102
6103        # ancient GNU ld didn't support --whole-archive et. al.
6104        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6105	  $GREP 'no-whole-archive' > /dev/null; then
6106          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6107        else
6108          _LT_TAGVAR(whole_archive_flag_spec, $1)=
6109        fi
6110      else
6111        with_gnu_ld=no
6112        wlarc=
6113
6114        # A generic and very simple default shared library creation
6115        # command for GNU C++ for the case where it uses the native
6116        # linker, instead of GNU ld.  If possible, this setting should
6117        # overridden to take advantage of the native linker features on
6118        # the platform it is being used on.
6119        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6120      fi
6121
6122      # Commands to make compiler produce verbose output that lists
6123      # what "hidden" libraries, object files and flags are used when
6124      # linking a shared library.
6125      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6126
6127    else
6128      GXX=no
6129      with_gnu_ld=no
6130      wlarc=
6131    fi
6132
6133    # PORTME: fill in a description of your system's C++ link characteristics
6134    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6135    _LT_TAGVAR(ld_shlibs, $1)=yes
6136    case $host_os in
6137      aix3*)
6138        # FIXME: insert proper C++ library support
6139        _LT_TAGVAR(ld_shlibs, $1)=no
6140        ;;
6141      aix[[4-9]]*)
6142        if test "$host_cpu" = ia64; then
6143          # On IA64, the linker does run time linking by default, so we don't
6144          # have to do anything special.
6145          aix_use_runtimelinking=no
6146          exp_sym_flag='-Bexport'
6147          no_entry_flag=""
6148        else
6149          aix_use_runtimelinking=no
6150
6151          # Test if we are trying to use run time linking or normal
6152          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6153          # need to do runtime linking.
6154          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6155	    for ld_flag in $LDFLAGS; do
6156	      case $ld_flag in
6157	      *-brtl*)
6158	        aix_use_runtimelinking=yes
6159	        break
6160	        ;;
6161	      esac
6162	    done
6163	    ;;
6164          esac
6165
6166          exp_sym_flag='-bexport'
6167          no_entry_flag='-bnoentry'
6168        fi
6169
6170        # When large executables or shared objects are built, AIX ld can
6171        # have problems creating the table of contents.  If linking a library
6172        # or program results in "error TOC overflow" add -mminimal-toc to
6173        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6174        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6175
6176        _LT_TAGVAR(archive_cmds, $1)=''
6177        _LT_TAGVAR(hardcode_direct, $1)=yes
6178        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6179        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6180        _LT_TAGVAR(link_all_deplibs, $1)=yes
6181        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6182
6183        if test "$GXX" = yes; then
6184          case $host_os in aix4.[[012]]|aix4.[[012]].*)
6185          # We only want to do this on AIX 4.2 and lower, the check
6186          # below for broken collect2 doesn't work under 4.3+
6187	  collect2name=`${CC} -print-prog-name=collect2`
6188	  if test -f "$collect2name" &&
6189	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6190	  then
6191	    # We have reworked collect2
6192	    :
6193	  else
6194	    # We have old collect2
6195	    _LT_TAGVAR(hardcode_direct, $1)=unsupported
6196	    # It fails to find uninstalled libraries when the uninstalled
6197	    # path is not listed in the libpath.  Setting hardcode_minus_L
6198	    # to unsupported forces relinking
6199	    _LT_TAGVAR(hardcode_minus_L, $1)=yes
6200	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6201	    _LT_TAGVAR(hardcode_libdir_separator, $1)=
6202	  fi
6203          esac
6204          shared_flag='-shared'
6205	  if test "$aix_use_runtimelinking" = yes; then
6206	    shared_flag="$shared_flag "'${wl}-G'
6207	  fi
6208        else
6209          # not using gcc
6210          if test "$host_cpu" = ia64; then
6211	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6212	  # chokes on -Wl,-G. The following line is correct:
6213	  shared_flag='-G'
6214          else
6215	    if test "$aix_use_runtimelinking" = yes; then
6216	      shared_flag='${wl}-G'
6217	    else
6218	      shared_flag='${wl}-bM:SRE'
6219	    fi
6220          fi
6221        fi
6222
6223        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6224        # It seems that -bexpall does not export symbols beginning with
6225        # underscore (_), so it is better to generate a list of symbols to
6226	# export.
6227        _LT_TAGVAR(always_export_symbols, $1)=yes
6228        if test "$aix_use_runtimelinking" = yes; then
6229          # Warning - without using the other runtime loading flags (-brtl),
6230          # -berok will link without error, but may produce a broken library.
6231          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6232          # Determine the default libpath from the value encoded in an empty
6233          # executable.
6234          _LT_SYS_MODULE_PATH_AIX
6235          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6236
6237          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6238        else
6239          if test "$host_cpu" = ia64; then
6240	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6241	    _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6242	    _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6243          else
6244	    # Determine the default libpath from the value encoded in an
6245	    # empty executable.
6246	    _LT_SYS_MODULE_PATH_AIX
6247	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6248	    # Warning - without using the other run time loading flags,
6249	    # -berok will link without error, but may produce a broken library.
6250	    _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6251	    _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6252	    # Exported symbols can be pulled into shared objects from archives
6253	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6254	    _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6255	    # This is similar to how AIX traditionally builds its shared
6256	    # libraries.
6257	    _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6258          fi
6259        fi
6260        ;;
6261
6262      beos*)
6263	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6264	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6265	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6266	  # support --undefined.  This deserves some investigation.  FIXME
6267	  _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6268	else
6269	  _LT_TAGVAR(ld_shlibs, $1)=no
6270	fi
6271	;;
6272
6273      chorus*)
6274        case $cc_basename in
6275          *)
6276	  # FIXME: insert proper C++ library support
6277	  _LT_TAGVAR(ld_shlibs, $1)=no
6278	  ;;
6279        esac
6280        ;;
6281
6282      cygwin* | mingw* | pw32* | cegcc*)
6283        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6284        # as there is no search path for DLLs.
6285        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6286        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6287        _LT_TAGVAR(always_export_symbols, $1)=no
6288        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6289
6290        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6291          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6292          # If the export-symbols file already is a .def file (1st line
6293          # is EXPORTS), use it as is; otherwise, prepend...
6294          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6295	    cp $export_symbols $output_objdir/$soname.def;
6296          else
6297	    echo EXPORTS > $output_objdir/$soname.def;
6298	    cat $export_symbols >> $output_objdir/$soname.def;
6299          fi~
6300          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6301        else
6302          _LT_TAGVAR(ld_shlibs, $1)=no
6303        fi
6304        ;;
6305      darwin* | rhapsody*)
6306        _LT_DARWIN_LINKER_FEATURES($1)
6307	;;
6308
6309      dgux*)
6310        case $cc_basename in
6311          ec++*)
6312	    # FIXME: insert proper C++ library support
6313	    _LT_TAGVAR(ld_shlibs, $1)=no
6314	    ;;
6315          ghcx*)
6316	    # Green Hills C++ Compiler
6317	    # FIXME: insert proper C++ library support
6318	    _LT_TAGVAR(ld_shlibs, $1)=no
6319	    ;;
6320          *)
6321	    # FIXME: insert proper C++ library support
6322	    _LT_TAGVAR(ld_shlibs, $1)=no
6323	    ;;
6324        esac
6325        ;;
6326
6327      freebsd[[12]]*)
6328        # C++ shared libraries reported to be fairly broken before
6329	# switch to ELF
6330        _LT_TAGVAR(ld_shlibs, $1)=no
6331        ;;
6332
6333      freebsd-elf*)
6334        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6335        ;;
6336
6337      freebsd* | dragonfly*)
6338        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6339        # conventions
6340        _LT_TAGVAR(ld_shlibs, $1)=yes
6341        ;;
6342
6343      gnu*)
6344        ;;
6345
6346      hpux9*)
6347        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6348        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6349        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6350        _LT_TAGVAR(hardcode_direct, $1)=yes
6351        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6352				             # but as the default
6353				             # location of the library.
6354
6355        case $cc_basename in
6356          CC*)
6357            # FIXME: insert proper C++ library support
6358            _LT_TAGVAR(ld_shlibs, $1)=no
6359            ;;
6360          aCC*)
6361            _LT_TAGVAR(archive_cmds, $1)='$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'
6362            # Commands to make compiler produce verbose output that lists
6363            # what "hidden" libraries, object files and flags are used when
6364            # linking a shared library.
6365            #
6366            # There doesn't appear to be a way to prevent this compiler from
6367            # explicitly linking system object files so we need to strip them
6368            # from the output so that they don't get included in the library
6369            # dependencies.
6370            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6371            ;;
6372          *)
6373            if test "$GXX" = yes; then
6374              _LT_TAGVAR(archive_cmds, $1)='$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'
6375            else
6376              # FIXME: insert proper C++ library support
6377              _LT_TAGVAR(ld_shlibs, $1)=no
6378            fi
6379            ;;
6380        esac
6381        ;;
6382
6383      hpux10*|hpux11*)
6384        if test $with_gnu_ld = no; then
6385	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6386	  _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6387
6388          case $host_cpu in
6389            hppa*64*|ia64*)
6390              ;;
6391            *)
6392	      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6393              ;;
6394          esac
6395        fi
6396        case $host_cpu in
6397          hppa*64*|ia64*)
6398            _LT_TAGVAR(hardcode_direct, $1)=no
6399            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6400            ;;
6401          *)
6402            _LT_TAGVAR(hardcode_direct, $1)=yes
6403            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6404            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6405					         # but as the default
6406					         # location of the library.
6407            ;;
6408        esac
6409
6410        case $cc_basename in
6411          CC*)
6412	    # FIXME: insert proper C++ library support
6413	    _LT_TAGVAR(ld_shlibs, $1)=no
6414	    ;;
6415          aCC*)
6416	    case $host_cpu in
6417	      hppa*64*)
6418	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6419	        ;;
6420	      ia64*)
6421	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6422	        ;;
6423	      *)
6424	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6425	        ;;
6426	    esac
6427	    # Commands to make compiler produce verbose output that lists
6428	    # what "hidden" libraries, object files and flags are used when
6429	    # linking a shared library.
6430	    #
6431	    # There doesn't appear to be a way to prevent this compiler from
6432	    # explicitly linking system object files so we need to strip them
6433	    # from the output so that they don't get included in the library
6434	    # dependencies.
6435	    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 "X$list" | $Xsed'
6436	    ;;
6437          *)
6438	    if test "$GXX" = yes; then
6439	      if test $with_gnu_ld = no; then
6440	        case $host_cpu in
6441	          hppa*64*)
6442	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6443	            ;;
6444	          ia64*)
6445	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6446	            ;;
6447	          *)
6448	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6449	            ;;
6450	        esac
6451	      fi
6452	    else
6453	      # FIXME: insert proper C++ library support
6454	      _LT_TAGVAR(ld_shlibs, $1)=no
6455	    fi
6456	    ;;
6457        esac
6458        ;;
6459
6460      interix[[3-9]]*)
6461	_LT_TAGVAR(hardcode_direct, $1)=no
6462	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6463	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6464	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6465	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6466	# Instead, shared libraries are loaded at an image base (0x10000000 by
6467	# default) and relocated if they conflict, which is a slow very memory
6468	# consuming and fragmenting process.  To avoid this, we pick a random,
6469	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6470	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6471	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6472	_LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6473	;;
6474      irix5* | irix6*)
6475        case $cc_basename in
6476          CC*)
6477	    # SGI C++
6478	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6479
6480	    # Archives containing C++ object files must be created using
6481	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
6482	    # necessary to make sure instantiated templates are included
6483	    # in the archive.
6484	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6485	    ;;
6486          *)
6487	    if test "$GXX" = yes; then
6488	      if test "$with_gnu_ld" = no; then
6489	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6490	      else
6491	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
6492	      fi
6493	    fi
6494	    _LT_TAGVAR(link_all_deplibs, $1)=yes
6495	    ;;
6496        esac
6497        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6498        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6499        _LT_TAGVAR(inherit_rpath, $1)=yes
6500        ;;
6501
6502      linux* | k*bsd*-gnu | kopensolaris*-gnu)
6503        case $cc_basename in
6504          KCC*)
6505	    # Kuck and Associates, Inc. (KAI) C++ Compiler
6506
6507	    # KCC will only create a shared library if the output file
6508	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
6509	    # to its proper name (with version) after linking.
6510	    _LT_TAGVAR(archive_cmds, $1)='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'
6511	    _LT_TAGVAR(archive_expsym_cmds, $1)='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'
6512	    # Commands to make compiler produce verbose output that lists
6513	    # what "hidden" libraries, object files and flags are used when
6514	    # linking a shared library.
6515	    #
6516	    # There doesn't appear to be a way to prevent this compiler from
6517	    # explicitly linking system object files so we need to strip them
6518	    # from the output so that they don't get included in the library
6519	    # dependencies.
6520	    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 "X$list" | $Xsed'
6521
6522	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6523	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6524
6525	    # Archives containing C++ object files must be created using
6526	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6527	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6528	    ;;
6529	  icpc* | ecpc* )
6530	    # Intel C++
6531	    with_gnu_ld=yes
6532	    # version 8.0 and above of icpc choke on multiply defined symbols
6533	    # if we add $predep_objects and $postdep_objects, however 7.1 and
6534	    # earlier do not add the objects themselves.
6535	    case `$CC -V 2>&1` in
6536	      *"Version 7."*)
6537	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6538		_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6539		;;
6540	      *)  # Version 8.0 or newer
6541	        tmp_idyn=
6542	        case $host_cpu in
6543		  ia64*) tmp_idyn=' -i_dynamic';;
6544		esac
6545	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6546		_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6547		;;
6548	    esac
6549	    _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6550	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6551	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6552	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6553	    ;;
6554          pgCC* | pgcpp*)
6555            # Portland Group C++ compiler
6556	    case `$CC -V` in
6557	    *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6558	      _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6559		rm -rf $tpldir~
6560		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6561		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6562	      _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6563		rm -rf $tpldir~
6564		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6565		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6566		$RANLIB $oldlib'
6567	      _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6568		rm -rf $tpldir~
6569		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6570		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6571	      _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6572		rm -rf $tpldir~
6573		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6574		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6575	      ;;
6576	    *) # Version 6 will use weak symbols
6577	      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6578	      _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6579	      ;;
6580	    esac
6581
6582	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6583	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6584	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6585            ;;
6586	  cxx*)
6587	    # Compaq C++
6588	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6589	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
6590
6591	    runpath_var=LD_RUN_PATH
6592	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6593	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6594
6595	    # Commands to make compiler produce verbose output that lists
6596	    # what "hidden" libraries, object files and flags are used when
6597	    # linking a shared library.
6598	    #
6599	    # There doesn't appear to be a way to prevent this compiler from
6600	    # explicitly linking system object files so we need to strip them
6601	    # from the output so that they don't get included in the library
6602	    # dependencies.
6603	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
6604	    ;;
6605	  xl*)
6606	    # IBM XL 8.0 on PPC, with GNU ld
6607	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6608	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6609	    _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6610	    if test "x$supports_anon_versioning" = xyes; then
6611	      _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6612		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6613		echo "local: *; };" >> $output_objdir/$libname.ver~
6614		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6615	    fi
6616	    ;;
6617	  *)
6618	    case `$CC -V 2>&1 | sed 5q` in
6619	    *Sun\ C*)
6620	      # Sun C++ 5.9
6621	      _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6622	      _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6623	      _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
6624	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6625	      _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6626	      _LT_TAGVAR(compiler_needs_object, $1)=yes
6627
6628	      # Not sure whether something based on
6629	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6630	      # would be better.
6631	      output_verbose_link_cmd='echo'
6632
6633	      # Archives containing C++ object files must be created using
6634	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6635	      # necessary to make sure instantiated templates are included
6636	      # in the archive.
6637	      _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6638	      ;;
6639	    esac
6640	    ;;
6641	esac
6642	;;
6643
6644      lynxos*)
6645        # FIXME: insert proper C++ library support
6646	_LT_TAGVAR(ld_shlibs, $1)=no
6647	;;
6648
6649      m88k*)
6650        # FIXME: insert proper C++ library support
6651        _LT_TAGVAR(ld_shlibs, $1)=no
6652	;;
6653
6654      mvs*)
6655        case $cc_basename in
6656          cxx*)
6657	    # FIXME: insert proper C++ library support
6658	    _LT_TAGVAR(ld_shlibs, $1)=no
6659	    ;;
6660	  *)
6661	    # FIXME: insert proper C++ library support
6662	    _LT_TAGVAR(ld_shlibs, $1)=no
6663	    ;;
6664	esac
6665	;;
6666
6667      netbsd*)
6668        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6669	  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6670	  wlarc=
6671	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6672	  _LT_TAGVAR(hardcode_direct, $1)=yes
6673	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6674	fi
6675	# Workaround some broken pre-1.5 toolchains
6676	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6677	;;
6678
6679      *nto* | *qnx*)
6680        _LT_TAGVAR(ld_shlibs, $1)=yes
6681	;;
6682
6683      openbsd2*)
6684        # C++ shared libraries are fairly broken
6685	_LT_TAGVAR(ld_shlibs, $1)=no
6686	;;
6687
6688      openbsd*)
6689	if test -f /usr/libexec/ld.so; then
6690	  _LT_TAGVAR(hardcode_direct, $1)=yes
6691	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6692	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6693	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6694	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6695	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6696	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6697	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6698	    _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6699	  fi
6700	  output_verbose_link_cmd=echo
6701	else
6702	  _LT_TAGVAR(ld_shlibs, $1)=no
6703	fi
6704	;;
6705
6706      osf3* | osf4* | osf5*)
6707        case $cc_basename in
6708          KCC*)
6709	    # Kuck and Associates, Inc. (KAI) C++ Compiler
6710
6711	    # KCC will only create a shared library if the output file
6712	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
6713	    # to its proper name (with version) after linking.
6714	    _LT_TAGVAR(archive_cmds, $1)='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'
6715
6716	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6717	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6718
6719	    # Archives containing C++ object files must be created using
6720	    # the KAI C++ compiler.
6721	    case $host in
6722	      osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6723	      *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6724	    esac
6725	    ;;
6726          RCC*)
6727	    # Rational C++ 2.4.1
6728	    # FIXME: insert proper C++ library support
6729	    _LT_TAGVAR(ld_shlibs, $1)=no
6730	    ;;
6731          cxx*)
6732	    case $host in
6733	      osf3*)
6734	        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6735	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6736	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6737		;;
6738	      *)
6739	        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6740	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6741	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6742	          echo "-hidden">> $lib.exp~
6743	          $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6744	          $RM $lib.exp'
6745	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6746		;;
6747	    esac
6748
6749	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6750
6751	    # Commands to make compiler produce verbose output that lists
6752	    # what "hidden" libraries, object files and flags are used when
6753	    # linking a shared library.
6754	    #
6755	    # There doesn't appear to be a way to prevent this compiler from
6756	    # explicitly linking system object files so we need to strip them
6757	    # from the output so that they don't get included in the library
6758	    # dependencies.
6759	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
6760	    ;;
6761	  *)
6762	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6763	      _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6764	      case $host in
6765	        osf3*)
6766	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6767		  ;;
6768	        *)
6769	          _LT_TAGVAR(archive_cmds, $1)='$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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6770		  ;;
6771	      esac
6772
6773	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6774	      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6775
6776	      # Commands to make compiler produce verbose output that lists
6777	      # what "hidden" libraries, object files and flags are used when
6778	      # linking a shared library.
6779	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6780
6781	    else
6782	      # FIXME: insert proper C++ library support
6783	      _LT_TAGVAR(ld_shlibs, $1)=no
6784	    fi
6785	    ;;
6786        esac
6787        ;;
6788
6789      psos*)
6790        # FIXME: insert proper C++ library support
6791        _LT_TAGVAR(ld_shlibs, $1)=no
6792        ;;
6793
6794      sunos4*)
6795        case $cc_basename in
6796          CC*)
6797	    # Sun C++ 4.x
6798	    # FIXME: insert proper C++ library support
6799	    _LT_TAGVAR(ld_shlibs, $1)=no
6800	    ;;
6801          lcc*)
6802	    # Lucid
6803	    # FIXME: insert proper C++ library support
6804	    _LT_TAGVAR(ld_shlibs, $1)=no
6805	    ;;
6806          *)
6807	    # FIXME: insert proper C++ library support
6808	    _LT_TAGVAR(ld_shlibs, $1)=no
6809	    ;;
6810        esac
6811        ;;
6812
6813      solaris*)
6814        case $cc_basename in
6815          CC*)
6816	    # Sun C++ 4.2, 5.x and Centerline C++
6817            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6818	    _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6819	    _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6820	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6821	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6822
6823	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6824	    _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6825	    case $host_os in
6826	      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6827	      *)
6828		# The compiler driver will combine and reorder linker options,
6829		# but understands `-z linker_flag'.
6830	        # Supported since Solaris 2.6 (maybe 2.5.1?)
6831		_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6832	        ;;
6833	    esac
6834	    _LT_TAGVAR(link_all_deplibs, $1)=yes
6835
6836	    output_verbose_link_cmd='echo'
6837
6838	    # Archives containing C++ object files must be created using
6839	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6840	    # necessary to make sure instantiated templates are included
6841	    # in the archive.
6842	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6843	    ;;
6844          gcx*)
6845	    # Green Hills C++ Compiler
6846	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6847
6848	    # The C++ compiler must be used to create the archive.
6849	    _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6850	    ;;
6851          *)
6852	    # GNU C++ compiler with Solaris linker
6853	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6854	      _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6855	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6856	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6857	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6858		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6859
6860	        # Commands to make compiler produce verbose output that lists
6861	        # what "hidden" libraries, object files and flags are used when
6862	        # linking a shared library.
6863	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6864	      else
6865	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
6866	        # platform.
6867	        _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6868	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6869		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6870
6871	        # Commands to make compiler produce verbose output that lists
6872	        # what "hidden" libraries, object files and flags are used when
6873	        # linking a shared library.
6874	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6875	      fi
6876
6877	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6878	      case $host_os in
6879		solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6880		*)
6881		  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6882		  ;;
6883	      esac
6884	    fi
6885	    ;;
6886        esac
6887        ;;
6888
6889    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6890      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6891      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6892      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6893      runpath_var='LD_RUN_PATH'
6894
6895      case $cc_basename in
6896        CC*)
6897	  _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6898	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6899	  ;;
6900	*)
6901	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6902	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6903	  ;;
6904      esac
6905      ;;
6906
6907      sysv5* | sco3.2v5* | sco5v6*)
6908	# Note: We can NOT use -z defs as we might desire, because we do not
6909	# link with -lc, and that would cause any symbols used from libc to
6910	# always be unresolved, which means just about no library would
6911	# ever link correctly.  If we're not using GNU ld we use -z text
6912	# though, which does catch some bad symbols but isn't as heavy-handed
6913	# as -z defs.
6914	_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6915	_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6916	_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6917	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6918	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6919	_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6920	_LT_TAGVAR(link_all_deplibs, $1)=yes
6921	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6922	runpath_var='LD_RUN_PATH'
6923
6924	case $cc_basename in
6925          CC*)
6926	    _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6927	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6928	    ;;
6929	  *)
6930	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6931	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6932	    ;;
6933	esac
6934      ;;
6935
6936      tandem*)
6937        case $cc_basename in
6938          NCC*)
6939	    # NonStop-UX NCC 3.20
6940	    # FIXME: insert proper C++ library support
6941	    _LT_TAGVAR(ld_shlibs, $1)=no
6942	    ;;
6943          *)
6944	    # FIXME: insert proper C++ library support
6945	    _LT_TAGVAR(ld_shlibs, $1)=no
6946	    ;;
6947        esac
6948        ;;
6949
6950      vxworks*)
6951        # FIXME: insert proper C++ library support
6952        _LT_TAGVAR(ld_shlibs, $1)=no
6953        ;;
6954
6955      *)
6956        # FIXME: insert proper C++ library support
6957        _LT_TAGVAR(ld_shlibs, $1)=no
6958        ;;
6959    esac
6960
6961    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6962    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6963
6964    _LT_TAGVAR(GCC, $1)="$GXX"
6965    _LT_TAGVAR(LD, $1)="$LD"
6966
6967    ## CAVEAT EMPTOR:
6968    ## There is no encapsulation within the following macros, do not change
6969    ## the running order or otherwise move them around unless you know exactly
6970    ## what you are doing...
6971    _LT_SYS_HIDDEN_LIBDEPS($1)
6972    _LT_COMPILER_PIC($1)
6973    _LT_COMPILER_C_O($1)
6974    _LT_COMPILER_FILE_LOCKS($1)
6975    _LT_LINKER_SHLIBS($1)
6976    _LT_SYS_DYNAMIC_LINKER($1)
6977    _LT_LINKER_HARDCODE_LIBPATH($1)
6978
6979    _LT_CONFIG($1)
6980  fi # test -n "$compiler"
6981
6982  CC=$lt_save_CC
6983  LDCXX=$LD
6984  LD=$lt_save_LD
6985  GCC=$lt_save_GCC
6986  with_gnu_ld=$lt_save_with_gnu_ld
6987  lt_cv_path_LDCXX=$lt_cv_path_LD
6988  lt_cv_path_LD=$lt_save_path_LD
6989  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6990  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6991fi # test "$_lt_caught_CXX_error" != yes
6992
6993AC_LANG_POP
6994])# _LT_LANG_CXX_CONFIG
6995
6996
6997# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6998# ---------------------------------
6999# Figure out "hidden" library dependencies from verbose
7000# compiler output when linking a shared library.
7001# Parse the compiler output and extract the necessary
7002# objects, libraries and library flags.
7003m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7004[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7005# Dependencies to place before and after the object being linked:
7006_LT_TAGVAR(predep_objects, $1)=
7007_LT_TAGVAR(postdep_objects, $1)=
7008_LT_TAGVAR(predeps, $1)=
7009_LT_TAGVAR(postdeps, $1)=
7010_LT_TAGVAR(compiler_lib_search_path, $1)=
7011
7012dnl we can't use the lt_simple_compile_test_code here,
7013dnl because it contains code intended for an executable,
7014dnl not a library.  It's possible we should let each
7015dnl tag define a new lt_????_link_test_code variable,
7016dnl but it's only used here...
7017m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7018int a;
7019void foo (void) { a = 0; }
7020_LT_EOF
7021], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7022class Foo
7023{
7024public:
7025  Foo (void) { a = 0; }
7026private:
7027  int a;
7028};
7029_LT_EOF
7030], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7031      subroutine foo
7032      implicit none
7033      integer*4 a
7034      a=0
7035      return
7036      end
7037_LT_EOF
7038], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7039      subroutine foo
7040      implicit none
7041      integer a
7042      a=0
7043      return
7044      end
7045_LT_EOF
7046], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7047public class foo {
7048  private int a;
7049  public void bar (void) {
7050    a = 0;
7051  }
7052};
7053_LT_EOF
7054])
7055dnl Parse the compiler output and extract the necessary
7056dnl objects, libraries and library flags.
7057if AC_TRY_EVAL(ac_compile); then
7058  # Parse the compiler output and extract the necessary
7059  # objects, libraries and library flags.
7060
7061  # Sentinel used to keep track of whether or not we are before
7062  # the conftest object file.
7063  pre_test_object_deps_done=no
7064
7065  for p in `eval "$output_verbose_link_cmd"`; do
7066    case $p in
7067
7068    -L* | -R* | -l*)
7069       # Some compilers place space between "-{L,R}" and the path.
7070       # Remove the space.
7071       if test $p = "-L" ||
7072          test $p = "-R"; then
7073	 prev=$p
7074	 continue
7075       else
7076	 prev=
7077       fi
7078
7079       if test "$pre_test_object_deps_done" = no; then
7080	 case $p in
7081	 -L* | -R*)
7082	   # Internal compiler library paths should come after those
7083	   # provided the user.  The postdeps already come after the
7084	   # user supplied libs so there is no need to process them.
7085	   if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7086	     _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7087	   else
7088	     _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7089	   fi
7090	   ;;
7091	 # The "-l" case would never come before the object being
7092	 # linked, so don't bother handling this case.
7093	 esac
7094       else
7095	 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7096	   _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7097	 else
7098	   _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7099	 fi
7100       fi
7101       ;;
7102
7103    *.$objext)
7104       # This assumes that the test object file only shows up
7105       # once in the compiler output.
7106       if test "$p" = "conftest.$objext"; then
7107	 pre_test_object_deps_done=yes
7108	 continue
7109       fi
7110
7111       if test "$pre_test_object_deps_done" = no; then
7112	 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7113	   _LT_TAGVAR(predep_objects, $1)="$p"
7114	 else
7115	   _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7116	 fi
7117       else
7118	 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7119	   _LT_TAGVAR(postdep_objects, $1)="$p"
7120	 else
7121	   _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7122	 fi
7123       fi
7124       ;;
7125
7126    *) ;; # Ignore the rest.
7127
7128    esac
7129  done
7130
7131  # Clean up.
7132  rm -f a.out a.exe
7133else
7134  echo "libtool.m4: error: problem compiling $1 test program"
7135fi
7136
7137$RM -f confest.$objext
7138
7139# PORTME: override above test on systems where it is broken
7140m4_if([$1], [CXX],
7141[case $host_os in
7142interix[[3-9]]*)
7143  # Interix 3.5 installs completely hosed .la files for C++, so rather than
7144  # hack all around it, let's just trust "g++" to DTRT.
7145  _LT_TAGVAR(predep_objects,$1)=
7146  _LT_TAGVAR(postdep_objects,$1)=
7147  _LT_TAGVAR(postdeps,$1)=
7148  ;;
7149
7150linux*)
7151  case `$CC -V 2>&1 | sed 5q` in
7152  *Sun\ C*)
7153    # Sun C++ 5.9
7154
7155    # The more standards-conforming stlport4 library is
7156    # incompatible with the Cstd library. Avoid specifying
7157    # it if it's in CXXFLAGS. Ignore libCrun as
7158    # -library=stlport4 depends on it.
7159    case " $CXX $CXXFLAGS " in
7160    *" -library=stlport4 "*)
7161      solaris_use_stlport4=yes
7162      ;;
7163    esac
7164
7165    if test "$solaris_use_stlport4" != yes; then
7166      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7167    fi
7168    ;;
7169  esac
7170  ;;
7171
7172solaris*)
7173  case $cc_basename in
7174  CC*)
7175    # The more standards-conforming stlport4 library is
7176    # incompatible with the Cstd library. Avoid specifying
7177    # it if it's in CXXFLAGS. Ignore libCrun as
7178    # -library=stlport4 depends on it.
7179    case " $CXX $CXXFLAGS " in
7180    *" -library=stlport4 "*)
7181      solaris_use_stlport4=yes
7182      ;;
7183    esac
7184
7185    # Adding this requires a known-good setup of shared libraries for
7186    # Sun compiler versions before 5.6, else PIC objects from an old
7187    # archive will be linked into the output, leading to subtle bugs.
7188    if test "$solaris_use_stlport4" != yes; then
7189      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7190    fi
7191    ;;
7192  esac
7193  ;;
7194esac
7195])
7196
7197case " $_LT_TAGVAR(postdeps, $1) " in
7198*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7199esac
7200 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7201if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7202 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7203fi
7204_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7205    [The directories searched by this compiler when creating a shared library])
7206_LT_TAGDECL([], [predep_objects], [1],
7207    [Dependencies to place before and after the objects being linked to
7208    create a shared library])
7209_LT_TAGDECL([], [postdep_objects], [1])
7210_LT_TAGDECL([], [predeps], [1])
7211_LT_TAGDECL([], [postdeps], [1])
7212_LT_TAGDECL([], [compiler_lib_search_path], [1],
7213    [The library search path used internally by the compiler when linking
7214    a shared library])
7215])# _LT_SYS_HIDDEN_LIBDEPS
7216
7217
7218# _LT_PROG_F77
7219# ------------
7220# Since AC_PROG_F77 is broken, in that it returns the empty string
7221# if there is no fortran compiler, we have our own version here.
7222m4_defun([_LT_PROG_F77],
7223[
7224pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7225AC_PROG_F77
7226if test -z "$F77" || test "X$F77" = "Xno"; then
7227  _lt_disable_F77=yes
7228fi
7229popdef([AC_MSG_ERROR])
7230])# _LT_PROG_F77
7231
7232dnl aclocal-1.4 backwards compatibility:
7233dnl AC_DEFUN([_LT_PROG_F77], [])
7234
7235
7236# _LT_LANG_F77_CONFIG([TAG])
7237# --------------------------
7238# Ensure that the configuration variables for a Fortran 77 compiler are
7239# suitably defined.  These variables are subsequently used by _LT_CONFIG
7240# to write the compiler configuration to `libtool'.
7241m4_defun([_LT_LANG_F77_CONFIG],
7242[AC_REQUIRE([_LT_PROG_F77])dnl
7243AC_LANG_PUSH(Fortran 77)
7244
7245_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7246_LT_TAGVAR(allow_undefined_flag, $1)=
7247_LT_TAGVAR(always_export_symbols, $1)=no
7248_LT_TAGVAR(archive_expsym_cmds, $1)=
7249_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7250_LT_TAGVAR(hardcode_direct, $1)=no
7251_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7252_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7253_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7254_LT_TAGVAR(hardcode_libdir_separator, $1)=
7255_LT_TAGVAR(hardcode_minus_L, $1)=no
7256_LT_TAGVAR(hardcode_automatic, $1)=no
7257_LT_TAGVAR(inherit_rpath, $1)=no
7258_LT_TAGVAR(module_cmds, $1)=
7259_LT_TAGVAR(module_expsym_cmds, $1)=
7260_LT_TAGVAR(link_all_deplibs, $1)=unknown
7261_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7262_LT_TAGVAR(no_undefined_flag, $1)=
7263_LT_TAGVAR(whole_archive_flag_spec, $1)=
7264_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7265
7266# Source file extension for f77 test sources.
7267ac_ext=f
7268
7269# Object file extension for compiled f77 test sources.
7270objext=o
7271_LT_TAGVAR(objext, $1)=$objext
7272
7273# No sense in running all these tests if we already determined that
7274# the F77 compiler isn't working.  Some variables (like enable_shared)
7275# are currently assumed to apply to all compilers on this platform,
7276# and will be corrupted by setting them based on a non-working compiler.
7277if test "$_lt_disable_F77" != yes; then
7278  # Code to be used in simple compile tests
7279  lt_simple_compile_test_code="\
7280      subroutine t
7281      return
7282      end
7283"
7284
7285  # Code to be used in simple link tests
7286  lt_simple_link_test_code="\
7287      program t
7288      end
7289"
7290
7291  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7292  _LT_TAG_COMPILER
7293
7294  # save warnings/boilerplate of simple test code
7295  _LT_COMPILER_BOILERPLATE
7296  _LT_LINKER_BOILERPLATE
7297
7298  # Allow CC to be a program name with arguments.
7299  lt_save_CC="$CC"
7300  lt_save_GCC=$GCC
7301  CC=${F77-"f77"}
7302  compiler=$CC
7303  _LT_TAGVAR(compiler, $1)=$CC
7304  _LT_CC_BASENAME([$compiler])
7305  GCC=$G77
7306  if test -n "$compiler"; then
7307    AC_MSG_CHECKING([if libtool supports shared libraries])
7308    AC_MSG_RESULT([$can_build_shared])
7309
7310    AC_MSG_CHECKING([whether to build shared libraries])
7311    test "$can_build_shared" = "no" && enable_shared=no
7312
7313    # On AIX, shared libraries and static libraries use the same namespace, and
7314    # are all built from PIC.
7315    case $host_os in
7316      aix3*)
7317        test "$enable_shared" = yes && enable_static=no
7318        if test -n "$RANLIB"; then
7319          archive_cmds="$archive_cmds~\$RANLIB \$lib"
7320          postinstall_cmds='$RANLIB $lib'
7321        fi
7322        ;;
7323      aix[[4-9]]*)
7324	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7325	  test "$enable_shared" = yes && enable_static=no
7326	fi
7327        ;;
7328    esac
7329    AC_MSG_RESULT([$enable_shared])
7330
7331    AC_MSG_CHECKING([whether to build static libraries])
7332    # Make sure either enable_shared or enable_static is yes.
7333    test "$enable_shared" = yes || enable_static=yes
7334    AC_MSG_RESULT([$enable_static])
7335
7336    _LT_TAGVAR(GCC, $1)="$G77"
7337    _LT_TAGVAR(LD, $1)="$LD"
7338
7339    ## CAVEAT EMPTOR:
7340    ## There is no encapsulation within the following macros, do not change
7341    ## the running order or otherwise move them around unless you know exactly
7342    ## what you are doing...
7343    _LT_COMPILER_PIC($1)
7344    _LT_COMPILER_C_O($1)
7345    _LT_COMPILER_FILE_LOCKS($1)
7346    _LT_LINKER_SHLIBS($1)
7347    _LT_SYS_DYNAMIC_LINKER($1)
7348    _LT_LINKER_HARDCODE_LIBPATH($1)
7349
7350    _LT_CONFIG($1)
7351  fi # test -n "$compiler"
7352
7353  GCC=$lt_save_GCC
7354  CC="$lt_save_CC"
7355fi # test "$_lt_disable_F77" != yes
7356
7357AC_LANG_POP
7358])# _LT_LANG_F77_CONFIG
7359
7360
7361# _LT_PROG_FC
7362# -----------
7363# Since AC_PROG_FC is broken, in that it returns the empty string
7364# if there is no fortran compiler, we have our own version here.
7365m4_defun([_LT_PROG_FC],
7366[
7367pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7368AC_PROG_FC
7369if test -z "$FC" || test "X$FC" = "Xno"; then
7370  _lt_disable_FC=yes
7371fi
7372popdef([AC_MSG_ERROR])
7373])# _LT_PROG_FC
7374
7375dnl aclocal-1.4 backwards compatibility:
7376dnl AC_DEFUN([_LT_PROG_FC], [])
7377
7378
7379# _LT_LANG_FC_CONFIG([TAG])
7380# -------------------------
7381# Ensure that the configuration variables for a Fortran compiler are
7382# suitably defined.  These variables are subsequently used by _LT_CONFIG
7383# to write the compiler configuration to `libtool'.
7384m4_defun([_LT_LANG_FC_CONFIG],
7385[AC_REQUIRE([_LT_PROG_FC])dnl
7386AC_LANG_PUSH(Fortran)
7387
7388_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7389_LT_TAGVAR(allow_undefined_flag, $1)=
7390_LT_TAGVAR(always_export_symbols, $1)=no
7391_LT_TAGVAR(archive_expsym_cmds, $1)=
7392_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7393_LT_TAGVAR(hardcode_direct, $1)=no
7394_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7395_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7396_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7397_LT_TAGVAR(hardcode_libdir_separator, $1)=
7398_LT_TAGVAR(hardcode_minus_L, $1)=no
7399_LT_TAGVAR(hardcode_automatic, $1)=no
7400_LT_TAGVAR(inherit_rpath, $1)=no
7401_LT_TAGVAR(module_cmds, $1)=
7402_LT_TAGVAR(module_expsym_cmds, $1)=
7403_LT_TAGVAR(link_all_deplibs, $1)=unknown
7404_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7405_LT_TAGVAR(no_undefined_flag, $1)=
7406_LT_TAGVAR(whole_archive_flag_spec, $1)=
7407_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7408
7409# Source file extension for fc test sources.
7410ac_ext=${ac_fc_srcext-f}
7411
7412# Object file extension for compiled fc test sources.
7413objext=o
7414_LT_TAGVAR(objext, $1)=$objext
7415
7416# No sense in running all these tests if we already determined that
7417# the FC compiler isn't working.  Some variables (like enable_shared)
7418# are currently assumed to apply to all compilers on this platform,
7419# and will be corrupted by setting them based on a non-working compiler.
7420if test "$_lt_disable_FC" != yes; then
7421  # Code to be used in simple compile tests
7422  lt_simple_compile_test_code="\
7423      subroutine t
7424      return
7425      end
7426"
7427
7428  # Code to be used in simple link tests
7429  lt_simple_link_test_code="\
7430      program t
7431      end
7432"
7433
7434  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7435  _LT_TAG_COMPILER
7436
7437  # save warnings/boilerplate of simple test code
7438  _LT_COMPILER_BOILERPLATE
7439  _LT_LINKER_BOILERPLATE
7440
7441  # Allow CC to be a program name with arguments.
7442  lt_save_CC="$CC"
7443  lt_save_GCC=$GCC
7444  CC=${FC-"f95"}
7445  compiler=$CC
7446  GCC=$ac_cv_fc_compiler_gnu
7447
7448  _LT_TAGVAR(compiler, $1)=$CC
7449  _LT_CC_BASENAME([$compiler])
7450
7451  if test -n "$compiler"; then
7452    AC_MSG_CHECKING([if libtool supports shared libraries])
7453    AC_MSG_RESULT([$can_build_shared])
7454
7455    AC_MSG_CHECKING([whether to build shared libraries])
7456    test "$can_build_shared" = "no" && enable_shared=no
7457
7458    # On AIX, shared libraries and static libraries use the same namespace, and
7459    # are all built from PIC.
7460    case $host_os in
7461      aix3*)
7462        test "$enable_shared" = yes && enable_static=no
7463        if test -n "$RANLIB"; then
7464          archive_cmds="$archive_cmds~\$RANLIB \$lib"
7465          postinstall_cmds='$RANLIB $lib'
7466        fi
7467        ;;
7468      aix[[4-9]]*)
7469	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7470	  test "$enable_shared" = yes && enable_static=no
7471	fi
7472        ;;
7473    esac
7474    AC_MSG_RESULT([$enable_shared])
7475
7476    AC_MSG_CHECKING([whether to build static libraries])
7477    # Make sure either enable_shared or enable_static is yes.
7478    test "$enable_shared" = yes || enable_static=yes
7479    AC_MSG_RESULT([$enable_static])
7480
7481    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7482    _LT_TAGVAR(LD, $1)="$LD"
7483
7484    ## CAVEAT EMPTOR:
7485    ## There is no encapsulation within the following macros, do not change
7486    ## the running order or otherwise move them around unless you know exactly
7487    ## what you are doing...
7488    _LT_SYS_HIDDEN_LIBDEPS($1)
7489    _LT_COMPILER_PIC($1)
7490    _LT_COMPILER_C_O($1)
7491    _LT_COMPILER_FILE_LOCKS($1)
7492    _LT_LINKER_SHLIBS($1)
7493    _LT_SYS_DYNAMIC_LINKER($1)
7494    _LT_LINKER_HARDCODE_LIBPATH($1)
7495
7496    _LT_CONFIG($1)
7497  fi # test -n "$compiler"
7498
7499  GCC=$lt_save_GCC
7500  CC="$lt_save_CC"
7501fi # test "$_lt_disable_FC" != yes
7502
7503AC_LANG_POP
7504])# _LT_LANG_FC_CONFIG
7505
7506
7507# _LT_LANG_GCJ_CONFIG([TAG])
7508# --------------------------
7509# Ensure that the configuration variables for the GNU Java Compiler compiler
7510# are suitably defined.  These variables are subsequently used by _LT_CONFIG
7511# to write the compiler configuration to `libtool'.
7512m4_defun([_LT_LANG_GCJ_CONFIG],
7513[AC_REQUIRE([LT_PROG_GCJ])dnl
7514AC_LANG_SAVE
7515
7516# Source file extension for Java test sources.
7517ac_ext=java
7518
7519# Object file extension for compiled Java test sources.
7520objext=o
7521_LT_TAGVAR(objext, $1)=$objext
7522
7523# Code to be used in simple compile tests
7524lt_simple_compile_test_code="class foo {}"
7525
7526# Code to be used in simple link tests
7527lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7528
7529# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7530_LT_TAG_COMPILER
7531
7532# save warnings/boilerplate of simple test code
7533_LT_COMPILER_BOILERPLATE
7534_LT_LINKER_BOILERPLATE
7535
7536# Allow CC to be a program name with arguments.
7537lt_save_CC="$CC"
7538lt_save_GCC=$GCC
7539GCC=yes
7540CC=${GCJ-"gcj"}
7541compiler=$CC
7542_LT_TAGVAR(compiler, $1)=$CC
7543_LT_TAGVAR(LD, $1)="$LD"
7544_LT_CC_BASENAME([$compiler])
7545
7546# GCJ did not exist at the time GCC didn't implicitly link libc in.
7547_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7548
7549_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7550
7551if test -n "$compiler"; then
7552  _LT_COMPILER_NO_RTTI($1)
7553  _LT_COMPILER_PIC($1)
7554  _LT_COMPILER_C_O($1)
7555  _LT_COMPILER_FILE_LOCKS($1)
7556  _LT_LINKER_SHLIBS($1)
7557  _LT_LINKER_HARDCODE_LIBPATH($1)
7558
7559  _LT_CONFIG($1)
7560fi
7561
7562AC_LANG_RESTORE
7563
7564GCC=$lt_save_GCC
7565CC="$lt_save_CC"
7566])# _LT_LANG_GCJ_CONFIG
7567
7568
7569# _LT_LANG_RC_CONFIG([TAG])
7570# -------------------------
7571# Ensure that the configuration variables for the Windows resource compiler
7572# are suitably defined.  These variables are subsequently used by _LT_CONFIG
7573# to write the compiler configuration to `libtool'.
7574m4_defun([_LT_LANG_RC_CONFIG],
7575[AC_REQUIRE([LT_PROG_RC])dnl
7576AC_LANG_SAVE
7577
7578# Source file extension for RC test sources.
7579ac_ext=rc
7580
7581# Object file extension for compiled RC test sources.
7582objext=o
7583_LT_TAGVAR(objext, $1)=$objext
7584
7585# Code to be used in simple compile tests
7586lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7587
7588# Code to be used in simple link tests
7589lt_simple_link_test_code="$lt_simple_compile_test_code"
7590
7591# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7592_LT_TAG_COMPILER
7593
7594# save warnings/boilerplate of simple test code
7595_LT_COMPILER_BOILERPLATE
7596_LT_LINKER_BOILERPLATE
7597
7598# Allow CC to be a program name with arguments.
7599lt_save_CC="$CC"
7600lt_save_GCC=$GCC
7601GCC=
7602CC=${RC-"windres"}
7603compiler=$CC
7604_LT_TAGVAR(compiler, $1)=$CC
7605_LT_CC_BASENAME([$compiler])
7606_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7607
7608if test -n "$compiler"; then
7609  :
7610  _LT_CONFIG($1)
7611fi
7612
7613GCC=$lt_save_GCC
7614AC_LANG_RESTORE
7615CC="$lt_save_CC"
7616])# _LT_LANG_RC_CONFIG
7617
7618
7619# LT_PROG_GCJ
7620# -----------
7621AC_DEFUN([LT_PROG_GCJ],
7622[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7623  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7624    [AC_CHECK_TOOL(GCJ, gcj,)
7625      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7626      AC_SUBST(GCJFLAGS)])])[]dnl
7627])
7628
7629# Old name:
7630AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7631dnl aclocal-1.4 backwards compatibility:
7632dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7633
7634
7635# LT_PROG_RC
7636# ----------
7637AC_DEFUN([LT_PROG_RC],
7638[AC_CHECK_TOOL(RC, windres,)
7639])
7640
7641# Old name:
7642AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7643dnl aclocal-1.4 backwards compatibility:
7644dnl AC_DEFUN([LT_AC_PROG_RC], [])
7645
7646
7647# _LT_DECL_EGREP
7648# --------------
7649# If we don't have a new enough Autoconf to choose the best grep
7650# available, choose the one first in the user's PATH.
7651m4_defun([_LT_DECL_EGREP],
7652[AC_REQUIRE([AC_PROG_EGREP])dnl
7653AC_REQUIRE([AC_PROG_FGREP])dnl
7654test -z "$GREP" && GREP=grep
7655_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7656_LT_DECL([], [EGREP], [1], [An ERE matcher])
7657_LT_DECL([], [FGREP], [1], [A literal string matcher])
7658dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7659AC_SUBST([GREP])
7660])
7661
7662
7663# _LT_DECL_OBJDUMP
7664# --------------
7665# If we don't have a new enough Autoconf to choose the best objdump
7666# available, choose the one first in the user's PATH.
7667m4_defun([_LT_DECL_OBJDUMP],
7668[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7669test -z "$OBJDUMP" && OBJDUMP=objdump
7670_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7671AC_SUBST([OBJDUMP])
7672])
7673
7674
7675# _LT_DECL_SED
7676# ------------
7677# Check for a fully-functional sed program, that truncates
7678# as few characters as possible.  Prefer GNU sed if found.
7679m4_defun([_LT_DECL_SED],
7680[AC_PROG_SED
7681test -z "$SED" && SED=sed
7682Xsed="$SED -e 1s/^X//"
7683_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7684_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7685    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7686])# _LT_DECL_SED
7687
7688m4_ifndef([AC_PROG_SED], [
7689# NOTE: This macro has been submitted for inclusion into   #
7690#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
7691#  a released version of Autoconf we should remove this    #
7692#  macro and use it instead.                               #
7693
7694m4_defun([AC_PROG_SED],
7695[AC_MSG_CHECKING([for a sed that does not truncate output])
7696AC_CACHE_VAL(lt_cv_path_SED,
7697[# Loop through the user's path and test for sed and gsed.
7698# Then use that list of sed's as ones to test for truncation.
7699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700for as_dir in $PATH
7701do
7702  IFS=$as_save_IFS
7703  test -z "$as_dir" && as_dir=.
7704  for lt_ac_prog in sed gsed; do
7705    for ac_exec_ext in '' $ac_executable_extensions; do
7706      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7707        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7708      fi
7709    done
7710  done
7711done
7712IFS=$as_save_IFS
7713lt_ac_max=0
7714lt_ac_count=0
7715# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7716# along with /bin/sed that truncates output.
7717for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7718  test ! -f $lt_ac_sed && continue
7719  cat /dev/null > conftest.in
7720  lt_ac_count=0
7721  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7722  # Check for GNU sed and select it if it is found.
7723  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7724    lt_cv_path_SED=$lt_ac_sed
7725    break
7726  fi
7727  while true; do
7728    cat conftest.in conftest.in >conftest.tmp
7729    mv conftest.tmp conftest.in
7730    cp conftest.in conftest.nl
7731    echo >>conftest.nl
7732    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7733    cmp -s conftest.out conftest.nl || break
7734    # 10000 chars as input seems more than enough
7735    test $lt_ac_count -gt 10 && break
7736    lt_ac_count=`expr $lt_ac_count + 1`
7737    if test $lt_ac_count -gt $lt_ac_max; then
7738      lt_ac_max=$lt_ac_count
7739      lt_cv_path_SED=$lt_ac_sed
7740    fi
7741  done
7742done
7743])
7744SED=$lt_cv_path_SED
7745AC_SUBST([SED])
7746AC_MSG_RESULT([$SED])
7747])#AC_PROG_SED
7748])#m4_ifndef
7749
7750# Old name:
7751AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7752dnl aclocal-1.4 backwards compatibility:
7753dnl AC_DEFUN([LT_AC_PROG_SED], [])
7754
7755
7756# _LT_CHECK_SHELL_FEATURES
7757# ------------------------
7758# Find out whether the shell is Bourne or XSI compatible,
7759# or has some other useful features.
7760m4_defun([_LT_CHECK_SHELL_FEATURES],
7761[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7762# Try some XSI features
7763xsi_shell=no
7764( _lt_dummy="a/b/c"
7765  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7766      = c,a/b,, \
7767    && eval 'test $(( 1 + 1 )) -eq 2 \
7768    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7769  && xsi_shell=yes
7770AC_MSG_RESULT([$xsi_shell])
7771_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7772
7773AC_MSG_CHECKING([whether the shell understands "+="])
7774lt_shell_append=no
7775( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7776    >/dev/null 2>&1 \
7777  && lt_shell_append=yes
7778AC_MSG_RESULT([$lt_shell_append])
7779_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7780
7781if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7782  lt_unset=unset
7783else
7784  lt_unset=false
7785fi
7786_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7787
7788# test EBCDIC or ASCII
7789case `echo X|tr X '\101'` in
7790 A) # ASCII based system
7791    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7792  lt_SP2NL='tr \040 \012'
7793  lt_NL2SP='tr \015\012 \040\040'
7794  ;;
7795 *) # EBCDIC based system
7796  lt_SP2NL='tr \100 \n'
7797  lt_NL2SP='tr \r\n \100\100'
7798  ;;
7799esac
7800_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7801_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7802])# _LT_CHECK_SHELL_FEATURES
7803
7804
7805# _LT_PROG_XSI_SHELLFNS
7806# ---------------------
7807# Bourne and XSI compatible variants of some useful shell functions.
7808m4_defun([_LT_PROG_XSI_SHELLFNS],
7809[case $xsi_shell in
7810  yes)
7811    cat << \_LT_EOF >> "$cfgfile"
7812
7813# func_dirname file append nondir_replacement
7814# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7815# otherwise set result to NONDIR_REPLACEMENT.
7816func_dirname ()
7817{
7818  case ${1} in
7819    */*) func_dirname_result="${1%/*}${2}" ;;
7820    *  ) func_dirname_result="${3}" ;;
7821  esac
7822}
7823
7824# func_basename file
7825func_basename ()
7826{
7827  func_basename_result="${1##*/}"
7828}
7829
7830# func_dirname_and_basename file append nondir_replacement
7831# perform func_basename and func_dirname in a single function
7832# call:
7833#   dirname:  Compute the dirname of FILE.  If nonempty,
7834#             add APPEND to the result, otherwise set result
7835#             to NONDIR_REPLACEMENT.
7836#             value returned in "$func_dirname_result"
7837#   basename: Compute filename of FILE.
7838#             value retuned in "$func_basename_result"
7839# Implementation must be kept synchronized with func_dirname
7840# and func_basename. For efficiency, we do not delegate to
7841# those functions but instead duplicate the functionality here.
7842func_dirname_and_basename ()
7843{
7844  case ${1} in
7845    */*) func_dirname_result="${1%/*}${2}" ;;
7846    *  ) func_dirname_result="${3}" ;;
7847  esac
7848  func_basename_result="${1##*/}"
7849}
7850
7851# func_stripname prefix suffix name
7852# strip PREFIX and SUFFIX off of NAME.
7853# PREFIX and SUFFIX must not contain globbing or regex special
7854# characters, hashes, percent signs, but SUFFIX may contain a leading
7855# dot (in which case that matches only a dot).
7856func_stripname ()
7857{
7858  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7859  # positional parameters, so assign one to ordinary parameter first.
7860  func_stripname_result=${3}
7861  func_stripname_result=${func_stripname_result#"${1}"}
7862  func_stripname_result=${func_stripname_result%"${2}"}
7863}
7864
7865# func_opt_split
7866func_opt_split ()
7867{
7868  func_opt_split_opt=${1%%=*}
7869  func_opt_split_arg=${1#*=}
7870}
7871
7872# func_lo2o object
7873func_lo2o ()
7874{
7875  case ${1} in
7876    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7877    *)    func_lo2o_result=${1} ;;
7878  esac
7879}
7880
7881# func_xform libobj-or-source
7882func_xform ()
7883{
7884  func_xform_result=${1%.*}.lo
7885}
7886
7887# func_arith arithmetic-term...
7888func_arith ()
7889{
7890  func_arith_result=$(( $[*] ))
7891}
7892
7893# func_len string
7894# STRING may not start with a hyphen.
7895func_len ()
7896{
7897  func_len_result=${#1}
7898}
7899
7900_LT_EOF
7901    ;;
7902  *) # Bourne compatible functions.
7903    cat << \_LT_EOF >> "$cfgfile"
7904
7905# func_dirname file append nondir_replacement
7906# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7907# otherwise set result to NONDIR_REPLACEMENT.
7908func_dirname ()
7909{
7910  # Extract subdirectory from the argument.
7911  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7912  if test "X$func_dirname_result" = "X${1}"; then
7913    func_dirname_result="${3}"
7914  else
7915    func_dirname_result="$func_dirname_result${2}"
7916  fi
7917}
7918
7919# func_basename file
7920func_basename ()
7921{
7922  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7923}
7924
7925dnl func_dirname_and_basename
7926dnl A portable version of this function is already defined in general.m4sh
7927dnl so there is no need for it here.
7928
7929# func_stripname prefix suffix name
7930# strip PREFIX and SUFFIX off of NAME.
7931# PREFIX and SUFFIX must not contain globbing or regex special
7932# characters, hashes, percent signs, but SUFFIX may contain a leading
7933# dot (in which case that matches only a dot).
7934# func_strip_suffix prefix name
7935func_stripname ()
7936{
7937  case ${2} in
7938    .*) func_stripname_result=`$ECHO "X${3}" \
7939           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7940    *)  func_stripname_result=`$ECHO "X${3}" \
7941           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7942  esac
7943}
7944
7945# sed scripts:
7946my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7947my_sed_long_arg='1s/^-[[^=]]*=//'
7948
7949# func_opt_split
7950func_opt_split ()
7951{
7952  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7953  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7954}
7955
7956# func_lo2o object
7957func_lo2o ()
7958{
7959  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7960}
7961
7962# func_xform libobj-or-source
7963func_xform ()
7964{
7965  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7966}
7967
7968# func_arith arithmetic-term...
7969func_arith ()
7970{
7971  func_arith_result=`expr "$[@]"`
7972}
7973
7974# func_len string
7975# STRING may not start with a hyphen.
7976func_len ()
7977{
7978  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7979}
7980
7981_LT_EOF
7982esac
7983
7984case $lt_shell_append in
7985  yes)
7986    cat << \_LT_EOF >> "$cfgfile"
7987
7988# func_append var value
7989# Append VALUE to the end of shell variable VAR.
7990func_append ()
7991{
7992  eval "$[1]+=\$[2]"
7993}
7994_LT_EOF
7995    ;;
7996  *)
7997    cat << \_LT_EOF >> "$cfgfile"
7998
7999# func_append var value
8000# Append VALUE to the end of shell variable VAR.
8001func_append ()
8002{
8003  eval "$[1]=\$$[1]\$[2]"
8004}
8005
8006_LT_EOF
8007    ;;
8008  esac
8009])
8010
8011# Helper functions for option handling.                    -*- Autoconf -*-
8012#
8013#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8014#   Written by Gary V. Vaughan, 2004
8015#
8016# This file is free software; the Free Software Foundation gives
8017# unlimited permission to copy and/or distribute it, with or without
8018# modifications, as long as this notice is preserved.
8019
8020# serial 6 ltoptions.m4
8021
8022# This is to help aclocal find these macros, as it can't see m4_define.
8023AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8024
8025
8026# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8027# ------------------------------------------
8028m4_define([_LT_MANGLE_OPTION],
8029[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8030
8031
8032# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8033# ---------------------------------------
8034# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8035# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
8036# saved as a flag.
8037m4_define([_LT_SET_OPTION],
8038[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8039m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8040        _LT_MANGLE_DEFUN([$1], [$2]),
8041    [m4_warning([Unknown $1 option `$2'])])[]dnl
8042])
8043
8044
8045# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8046# ------------------------------------------------------------
8047# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8048m4_define([_LT_IF_OPTION],
8049[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8050
8051
8052# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8053# -------------------------------------------------------
8054# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8055# are set.
8056m4_define([_LT_UNLESS_OPTIONS],
8057[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8058	    [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8059		      [m4_define([$0_found])])])[]dnl
8060m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8061])[]dnl
8062])
8063
8064
8065# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8066# ----------------------------------------
8067# OPTION-LIST is a space-separated list of Libtool options associated
8068# with MACRO-NAME.  If any OPTION has a matching handler declared with
8069# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8070# the unknown option and exit.
8071m4_defun([_LT_SET_OPTIONS],
8072[# Set options
8073m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8074    [_LT_SET_OPTION([$1], _LT_Option)])
8075
8076m4_if([$1],[LT_INIT],[
8077  dnl
8078  dnl Simply set some default values (i.e off) if boolean options were not
8079  dnl specified:
8080  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8081  ])
8082  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8083  ])
8084  dnl
8085  dnl If no reference was made to various pairs of opposing options, then
8086  dnl we run the default mode handler for the pair.  For example, if neither
8087  dnl `shared' nor `disable-shared' was passed, we enable building of shared
8088  dnl archives by default:
8089  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8090  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8091  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8092  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8093  		   [_LT_ENABLE_FAST_INSTALL])
8094  ])
8095])# _LT_SET_OPTIONS
8096
8097
8098
8099# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8100# -----------------------------------------
8101m4_define([_LT_MANGLE_DEFUN],
8102[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8103
8104
8105# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8106# -----------------------------------------------
8107m4_define([LT_OPTION_DEFINE],
8108[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8109])# LT_OPTION_DEFINE
8110
8111
8112# dlopen
8113# ------
8114LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8115])
8116
8117AU_DEFUN([AC_LIBTOOL_DLOPEN],
8118[_LT_SET_OPTION([LT_INIT], [dlopen])
8119AC_DIAGNOSE([obsolete],
8120[$0: Remove this warning and the call to _LT_SET_OPTION when you
8121put the `dlopen' option into LT_INIT's first parameter.])
8122])
8123
8124dnl aclocal-1.4 backwards compatibility:
8125dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8126
8127
8128# win32-dll
8129# ---------
8130# Declare package support for building win32 dll's.
8131LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8132[enable_win32_dll=yes
8133
8134case $host in
8135*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8136  AC_CHECK_TOOL(AS, as, false)
8137  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8138  AC_CHECK_TOOL(OBJDUMP, objdump, false)
8139  ;;
8140esac
8141
8142test -z "$AS" && AS=as
8143_LT_DECL([], [AS],      [0], [Assembler program])dnl
8144
8145test -z "$DLLTOOL" && DLLTOOL=dlltool
8146_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8147
8148test -z "$OBJDUMP" && OBJDUMP=objdump
8149_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8150])# win32-dll
8151
8152AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8153[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8154_LT_SET_OPTION([LT_INIT], [win32-dll])
8155AC_DIAGNOSE([obsolete],
8156[$0: Remove this warning and the call to _LT_SET_OPTION when you
8157put the `win32-dll' option into LT_INIT's first parameter.])
8158])
8159
8160dnl aclocal-1.4 backwards compatibility:
8161dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8162
8163
8164# _LT_ENABLE_SHARED([DEFAULT])
8165# ----------------------------
8166# implement the --enable-shared flag, and supports the `shared' and
8167# `disable-shared' LT_INIT options.
8168# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8169m4_define([_LT_ENABLE_SHARED],
8170[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8171AC_ARG_ENABLE([shared],
8172    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8173	[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8174    [p=${PACKAGE-default}
8175    case $enableval in
8176    yes) enable_shared=yes ;;
8177    no) enable_shared=no ;;
8178    *)
8179      enable_shared=no
8180      # Look at the argument we got.  We use all the common list separators.
8181      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8182      for pkg in $enableval; do
8183	IFS="$lt_save_ifs"
8184	if test "X$pkg" = "X$p"; then
8185	  enable_shared=yes
8186	fi
8187      done
8188      IFS="$lt_save_ifs"
8189      ;;
8190    esac],
8191    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8192
8193    _LT_DECL([build_libtool_libs], [enable_shared], [0],
8194	[Whether or not to build shared libraries])
8195])# _LT_ENABLE_SHARED
8196
8197LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8198LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8199
8200# Old names:
8201AC_DEFUN([AC_ENABLE_SHARED],
8202[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8203])
8204
8205AC_DEFUN([AC_DISABLE_SHARED],
8206[_LT_SET_OPTION([LT_INIT], [disable-shared])
8207])
8208
8209AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8210AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8211
8212dnl aclocal-1.4 backwards compatibility:
8213dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8214dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8215
8216
8217
8218# _LT_ENABLE_STATIC([DEFAULT])
8219# ----------------------------
8220# implement the --enable-static flag, and support the `static' and
8221# `disable-static' LT_INIT options.
8222# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8223m4_define([_LT_ENABLE_STATIC],
8224[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8225AC_ARG_ENABLE([static],
8226    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8227	[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8228    [p=${PACKAGE-default}
8229    case $enableval in
8230    yes) enable_static=yes ;;
8231    no) enable_static=no ;;
8232    *)
8233     enable_static=no
8234      # Look at the argument we got.  We use all the common list separators.
8235      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8236      for pkg in $enableval; do
8237	IFS="$lt_save_ifs"
8238	if test "X$pkg" = "X$p"; then
8239	  enable_static=yes
8240	fi
8241      done
8242      IFS="$lt_save_ifs"
8243      ;;
8244    esac],
8245    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8246
8247    _LT_DECL([build_old_libs], [enable_static], [0],
8248	[Whether or not to build static libraries])
8249])# _LT_ENABLE_STATIC
8250
8251LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8252LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8253
8254# Old names:
8255AC_DEFUN([AC_ENABLE_STATIC],
8256[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8257])
8258
8259AC_DEFUN([AC_DISABLE_STATIC],
8260[_LT_SET_OPTION([LT_INIT], [disable-static])
8261])
8262
8263AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8264AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8265
8266dnl aclocal-1.4 backwards compatibility:
8267dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8268dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8269
8270
8271
8272# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8273# ----------------------------------
8274# implement the --enable-fast-install flag, and support the `fast-install'
8275# and `disable-fast-install' LT_INIT options.
8276# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8277m4_define([_LT_ENABLE_FAST_INSTALL],
8278[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8279AC_ARG_ENABLE([fast-install],
8280    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8281    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8282    [p=${PACKAGE-default}
8283    case $enableval in
8284    yes) enable_fast_install=yes ;;
8285    no) enable_fast_install=no ;;
8286    *)
8287      enable_fast_install=no
8288      # Look at the argument we got.  We use all the common list separators.
8289      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8290      for pkg in $enableval; do
8291	IFS="$lt_save_ifs"
8292	if test "X$pkg" = "X$p"; then
8293	  enable_fast_install=yes
8294	fi
8295      done
8296      IFS="$lt_save_ifs"
8297      ;;
8298    esac],
8299    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8300
8301_LT_DECL([fast_install], [enable_fast_install], [0],
8302	 [Whether or not to optimize for fast installation])dnl
8303])# _LT_ENABLE_FAST_INSTALL
8304
8305LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8306LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8307
8308# Old names:
8309AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8310[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8311AC_DIAGNOSE([obsolete],
8312[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8313the `fast-install' option into LT_INIT's first parameter.])
8314])
8315
8316AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8317[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8318AC_DIAGNOSE([obsolete],
8319[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8320the `disable-fast-install' option into LT_INIT's first parameter.])
8321])
8322
8323dnl aclocal-1.4 backwards compatibility:
8324dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8325dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8326
8327
8328# _LT_WITH_PIC([MODE])
8329# --------------------
8330# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8331# LT_INIT options.
8332# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
8333m4_define([_LT_WITH_PIC],
8334[AC_ARG_WITH([pic],
8335    [AS_HELP_STRING([--with-pic],
8336	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8337    [pic_mode="$withval"],
8338    [pic_mode=default])
8339
8340test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8341
8342_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8343])# _LT_WITH_PIC
8344
8345LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8346LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8347
8348# Old name:
8349AU_DEFUN([AC_LIBTOOL_PICMODE],
8350[_LT_SET_OPTION([LT_INIT], [pic-only])
8351AC_DIAGNOSE([obsolete],
8352[$0: Remove this warning and the call to _LT_SET_OPTION when you
8353put the `pic-only' option into LT_INIT's first parameter.])
8354])
8355
8356dnl aclocal-1.4 backwards compatibility:
8357dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8358
8359
8360m4_define([_LTDL_MODE], [])
8361LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8362		 [m4_define([_LTDL_MODE], [nonrecursive])])
8363LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8364		 [m4_define([_LTDL_MODE], [recursive])])
8365LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8366		 [m4_define([_LTDL_MODE], [subproject])])
8367
8368m4_define([_LTDL_TYPE], [])
8369LT_OPTION_DEFINE([LTDL_INIT], [installable],
8370		 [m4_define([_LTDL_TYPE], [installable])])
8371LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8372		 [m4_define([_LTDL_TYPE], [convenience])])
8373
8374# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
8375#
8376# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8377# Written by Gary V. Vaughan, 2004
8378#
8379# This file is free software; the Free Software Foundation gives
8380# unlimited permission to copy and/or distribute it, with or without
8381# modifications, as long as this notice is preserved.
8382
8383# serial 6 ltsugar.m4
8384
8385# This is to help aclocal find these macros, as it can't see m4_define.
8386AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8387
8388
8389# lt_join(SEP, ARG1, [ARG2...])
8390# -----------------------------
8391# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8392# associated separator.
8393# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8394# versions in m4sugar had bugs.
8395m4_define([lt_join],
8396[m4_if([$#], [1], [],
8397       [$#], [2], [[$2]],
8398       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8399m4_define([_lt_join],
8400[m4_if([$#$2], [2], [],
8401       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8402
8403
8404# lt_car(LIST)
8405# lt_cdr(LIST)
8406# ------------
8407# Manipulate m4 lists.
8408# These macros are necessary as long as will still need to support
8409# Autoconf-2.59 which quotes differently.
8410m4_define([lt_car], [[$1]])
8411m4_define([lt_cdr],
8412[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8413       [$#], 1, [],
8414       [m4_dquote(m4_shift($@))])])
8415m4_define([lt_unquote], $1)
8416
8417
8418# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8419# ------------------------------------------
8420# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8421# Note that neither SEPARATOR nor STRING are expanded; they are appended
8422# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8423# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8424# than defined and empty).
8425#
8426# This macro is needed until we can rely on Autoconf 2.62, since earlier
8427# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8428m4_define([lt_append],
8429[m4_define([$1],
8430	   m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8431
8432
8433
8434# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8435# ----------------------------------------------------------
8436# Produce a SEP delimited list of all paired combinations of elements of
8437# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
8438# has the form PREFIXmINFIXSUFFIXn.
8439# Needed until we can rely on m4_combine added in Autoconf 2.62.
8440m4_define([lt_combine],
8441[m4_if(m4_eval([$# > 3]), [1],
8442       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8443[[m4_foreach([_Lt_prefix], [$2],
8444	     [m4_foreach([_Lt_suffix],
8445		]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8446	[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8447
8448
8449# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8450# -----------------------------------------------------------------------
8451# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8452# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8453m4_define([lt_if_append_uniq],
8454[m4_ifdef([$1],
8455	  [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8456		 [lt_append([$1], [$2], [$3])$4],
8457		 [$5])],
8458	  [lt_append([$1], [$2], [$3])$4])])
8459
8460
8461# lt_dict_add(DICT, KEY, VALUE)
8462# -----------------------------
8463m4_define([lt_dict_add],
8464[m4_define([$1($2)], [$3])])
8465
8466
8467# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8468# --------------------------------------------
8469m4_define([lt_dict_add_subkey],
8470[m4_define([$1($2:$3)], [$4])])
8471
8472
8473# lt_dict_fetch(DICT, KEY, [SUBKEY])
8474# ----------------------------------
8475m4_define([lt_dict_fetch],
8476[m4_ifval([$3],
8477	m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8478    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8479
8480
8481# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8482# -----------------------------------------------------------------
8483m4_define([lt_if_dict_fetch],
8484[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8485	[$5],
8486    [$6])])
8487
8488
8489# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8490# --------------------------------------------------------------
8491m4_define([lt_dict_filter],
8492[m4_if([$5], [], [],
8493  [lt_join(m4_quote(m4_default([$4], [[, ]])),
8494           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8495		      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8496])
8497
8498# ltversion.m4 -- version numbers			-*- Autoconf -*-
8499#
8500#   Copyright (C) 2004 Free Software Foundation, Inc.
8501#   Written by Scott James Remnant, 2004
8502#
8503# This file is free software; the Free Software Foundation gives
8504# unlimited permission to copy and/or distribute it, with or without
8505# modifications, as long as this notice is preserved.
8506
8507# Generated from ltversion.in.
8508
8509# serial 3017 ltversion.m4
8510# This file is part of GNU Libtool
8511
8512m4_define([LT_PACKAGE_VERSION], [2.2.6b])
8513m4_define([LT_PACKAGE_REVISION], [1.3017])
8514
8515AC_DEFUN([LTVERSION_VERSION],
8516[macro_version='2.2.6b'
8517macro_revision='1.3017'
8518_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8519_LT_DECL(, macro_revision, 0)
8520])
8521
8522# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
8523#
8524#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8525#   Written by Scott James Remnant, 2004.
8526#
8527# This file is free software; the Free Software Foundation gives
8528# unlimited permission to copy and/or distribute it, with or without
8529# modifications, as long as this notice is preserved.
8530
8531# serial 4 lt~obsolete.m4
8532
8533# These exist entirely to fool aclocal when bootstrapping libtool.
8534#
8535# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8536# which have later been changed to m4_define as they aren't part of the
8537# exported API, or moved to Autoconf or Automake where they belong.
8538#
8539# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
8540# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8541# using a macro with the same name in our local m4/libtool.m4 it'll
8542# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8543# and doesn't know about Autoconf macros at all.)
8544#
8545# So we provide this file, which has a silly filename so it's always
8546# included after everything else.  This provides aclocal with the
8547# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8548# because those macros already exist, or will be overwritten later.
8549# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8550#
8551# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8552# Yes, that means every name once taken will need to remain here until
8553# we give up compatibility with versions before 1.7, at which point
8554# we need to keep only those names which we still refer to.
8555
8556# This is to help aclocal find these macros, as it can't see m4_define.
8557AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8558
8559m4_ifndef([AC_LIBTOOL_LINKER_OPTION],	[AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8560m4_ifndef([AC_PROG_EGREP],		[AC_DEFUN([AC_PROG_EGREP])])
8561m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8562m4_ifndef([_LT_AC_SHELL_INIT],		[AC_DEFUN([_LT_AC_SHELL_INIT])])
8563m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],	[AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8564m4_ifndef([_LT_PROG_LTMAIN],		[AC_DEFUN([_LT_PROG_LTMAIN])])
8565m4_ifndef([_LT_AC_TAGVAR],		[AC_DEFUN([_LT_AC_TAGVAR])])
8566m4_ifndef([AC_LTDL_ENABLE_INSTALL],	[AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8567m4_ifndef([AC_LTDL_PREOPEN],		[AC_DEFUN([AC_LTDL_PREOPEN])])
8568m4_ifndef([_LT_AC_SYS_COMPILER],	[AC_DEFUN([_LT_AC_SYS_COMPILER])])
8569m4_ifndef([_LT_AC_LOCK],		[AC_DEFUN([_LT_AC_LOCK])])
8570m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE],	[AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8571m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],	[AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8572m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],	[AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8573m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8574m4_ifndef([AC_LIBTOOL_OBJDIR],		[AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8575m4_ifndef([AC_LTDL_OBJDIR],		[AC_DEFUN([AC_LTDL_OBJDIR])])
8576m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8577m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],	[AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8578m4_ifndef([AC_PATH_MAGIC],		[AC_DEFUN([AC_PATH_MAGIC])])
8579m4_ifndef([AC_PROG_LD_GNU],		[AC_DEFUN([AC_PROG_LD_GNU])])
8580m4_ifndef([AC_PROG_LD_RELOAD_FLAG],	[AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8581m4_ifndef([AC_DEPLIBS_CHECK_METHOD],	[AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8582m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8583m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8584m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8585m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],	[AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8586m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],	[AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8587m4_ifndef([LT_AC_PROG_EGREP],		[AC_DEFUN([LT_AC_PROG_EGREP])])
8588m4_ifndef([LT_AC_PROG_SED],		[AC_DEFUN([LT_AC_PROG_SED])])
8589m4_ifndef([_LT_CC_BASENAME],		[AC_DEFUN([_LT_CC_BASENAME])])
8590m4_ifndef([_LT_COMPILER_BOILERPLATE],	[AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8591m4_ifndef([_LT_LINKER_BOILERPLATE],	[AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8592m4_ifndef([_AC_PROG_LIBTOOL],		[AC_DEFUN([_AC_PROG_LIBTOOL])])
8593m4_ifndef([AC_LIBTOOL_SETUP],		[AC_DEFUN([AC_LIBTOOL_SETUP])])
8594m4_ifndef([_LT_AC_CHECK_DLFCN],		[AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8595m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],	[AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8596m4_ifndef([_LT_AC_TAGCONFIG],		[AC_DEFUN([_LT_AC_TAGCONFIG])])
8597m4_ifndef([AC_DISABLE_FAST_INSTALL],	[AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8598m4_ifndef([_LT_AC_LANG_CXX],		[AC_DEFUN([_LT_AC_LANG_CXX])])
8599m4_ifndef([_LT_AC_LANG_F77],		[AC_DEFUN([_LT_AC_LANG_F77])])
8600m4_ifndef([_LT_AC_LANG_GCJ],		[AC_DEFUN([_LT_AC_LANG_GCJ])])
8601m4_ifndef([AC_LIBTOOL_RC],		[AC_DEFUN([AC_LIBTOOL_RC])])
8602m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8603m4_ifndef([_LT_AC_LANG_C_CONFIG],	[AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8604m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8605m4_ifndef([_LT_AC_LANG_CXX_CONFIG],	[AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8606m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8607m4_ifndef([_LT_AC_LANG_F77_CONFIG],	[AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8608m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8609m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],	[AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8610m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8611m4_ifndef([_LT_AC_LANG_RC_CONFIG],	[AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8612m4_ifndef([AC_LIBTOOL_CONFIG],		[AC_DEFUN([AC_LIBTOOL_CONFIG])])
8613m4_ifndef([_LT_AC_FILE_LTDLL_C],	[AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8614
8615# nls.m4 serial 3 (gettext-0.15)
8616dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
8617dnl This file is free software; the Free Software Foundation
8618dnl gives unlimited permission to copy and/or distribute it,
8619dnl with or without modifications, as long as this notice is preserved.
8620dnl
8621dnl This file can can be used in projects which are not available under
8622dnl the GNU General Public License or the GNU Library General Public
8623dnl License but which still want to provide support for the GNU gettext
8624dnl functionality.
8625dnl Please note that the actual code of the GNU gettext library is covered
8626dnl by the GNU Library General Public License, and the rest of the GNU
8627dnl gettext package package is covered by the GNU General Public License.
8628dnl They are *not* in the public domain.
8629
8630dnl Authors:
8631dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
8632dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
8633
8634AC_PREREQ(2.50)
8635
8636AC_DEFUN([AM_NLS],
8637[
8638  AC_MSG_CHECKING([whether NLS is requested])
8639  dnl Default is enabled NLS
8640  AC_ARG_ENABLE(nls,
8641    [  --disable-nls           do not use Native Language Support],
8642    USE_NLS=$enableval, USE_NLS=yes)
8643  AC_MSG_RESULT($USE_NLS)
8644  AC_SUBST(USE_NLS)
8645])
8646
8647# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
8648#
8649# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
8650#
8651# This program is free software; you can redistribute it and/or modify
8652# it under the terms of the GNU General Public License as published by
8653# the Free Software Foundation; either version 2 of the License, or
8654# (at your option) any later version.
8655#
8656# This program is distributed in the hope that it will be useful, but
8657# WITHOUT ANY WARRANTY; without even the implied warranty of
8658# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8659# General Public License for more details.
8660#
8661# You should have received a copy of the GNU General Public License
8662# along with this program; if not, write to the Free Software
8663# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8664#
8665# As a special exception to the GNU General Public License, if you
8666# distribute this file as part of a program that contains a
8667# configuration script generated by Autoconf, you may include it under
8668# the same distribution terms that you use for the rest of that program.
8669
8670# PKG_PROG_PKG_CONFIG([MIN-VERSION])
8671# ----------------------------------
8672AC_DEFUN([PKG_PROG_PKG_CONFIG],
8673[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
8674m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
8675AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
8676if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8677	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
8678fi
8679if test -n "$PKG_CONFIG"; then
8680	_pkg_min_version=m4_default([$1], [0.9.0])
8681	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
8682	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8683		AC_MSG_RESULT([yes])
8684	else
8685		AC_MSG_RESULT([no])
8686		PKG_CONFIG=""
8687	fi
8688
8689fi[]dnl
8690])# PKG_PROG_PKG_CONFIG
8691
8692# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
8693#
8694# Check to see whether a particular set of modules exists.  Similar
8695# to PKG_CHECK_MODULES(), but does not set variables or print errors.
8696#
8697#
8698# Similar to PKG_CHECK_MODULES, make sure that the first instance of
8699# this or PKG_CHECK_MODULES is called, or make sure to call
8700# PKG_CHECK_EXISTS manually
8701# --------------------------------------------------------------
8702AC_DEFUN([PKG_CHECK_EXISTS],
8703[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
8704if test -n "$PKG_CONFIG" && \
8705    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
8706  m4_ifval([$2], [$2], [:])
8707m4_ifvaln([$3], [else
8708  $3])dnl
8709fi])
8710
8711
8712# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
8713# ---------------------------------------------
8714m4_define([_PKG_CONFIG],
8715[if test -n "$PKG_CONFIG"; then
8716    if test -n "$$1"; then
8717        pkg_cv_[]$1="$$1"
8718    else
8719        PKG_CHECK_EXISTS([$3],
8720                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
8721			 [pkg_failed=yes])
8722    fi
8723else
8724	pkg_failed=untried
8725fi[]dnl
8726])# _PKG_CONFIG
8727
8728# _PKG_SHORT_ERRORS_SUPPORTED
8729# -----------------------------
8730AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
8731[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
8732if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8733        _pkg_short_errors_supported=yes
8734else
8735        _pkg_short_errors_supported=no
8736fi[]dnl
8737])# _PKG_SHORT_ERRORS_SUPPORTED
8738
8739
8740# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
8741# [ACTION-IF-NOT-FOUND])
8742#
8743#
8744# Note that if there is a possibility the first call to
8745# PKG_CHECK_MODULES might not happen, you should be sure to include an
8746# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
8747#
8748#
8749# --------------------------------------------------------------
8750AC_DEFUN([PKG_CHECK_MODULES],
8751[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
8752AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
8753AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
8754
8755pkg_failed=no
8756AC_MSG_CHECKING([for $1])
8757
8758_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
8759_PKG_CONFIG([$1][_LIBS], [libs], [$2])
8760
8761m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
8762and $1[]_LIBS to avoid the need to call pkg-config.
8763See the pkg-config man page for more details.])
8764
8765if test $pkg_failed = yes; then
8766        _PKG_SHORT_ERRORS_SUPPORTED
8767        if test $_pkg_short_errors_supported = yes; then
8768	        $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
8769        else
8770	        $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
8771        fi
8772	# Put the nasty error message in config.log where it belongs
8773	echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
8774
8775	ifelse([$4], , [AC_MSG_ERROR(dnl
8776[Package requirements ($2) were not met:
8777
8778$$1_PKG_ERRORS
8779
8780Consider adjusting the PKG_CONFIG_PATH environment variable if you
8781installed software in a non-standard prefix.
8782
8783_PKG_TEXT
8784])],
8785		[AC_MSG_RESULT([no])
8786                $4])
8787elif test $pkg_failed = untried; then
8788	ifelse([$4], , [AC_MSG_FAILURE(dnl
8789[The pkg-config script could not be found or is too old.  Make sure it
8790is in your PATH or set the PKG_CONFIG environment variable to the full
8791path to pkg-config.
8792
8793_PKG_TEXT
8794
8795To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
8796		[$4])
8797else
8798	$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
8799	$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
8800        AC_MSG_RESULT([yes])
8801	ifelse([$3], , :, [$3])
8802fi[]dnl
8803])# PKG_CHECK_MODULES
8804
8805# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
8806#
8807# This file is free software; the Free Software Foundation
8808# gives unlimited permission to copy and/or distribute it,
8809# with or without modifications, as long as this notice is preserved.
8810
8811# AM_AUTOMAKE_VERSION(VERSION)
8812# ----------------------------
8813# Automake X.Y traces this macro to ensure aclocal.m4 has been
8814# generated from the m4 files accompanying Automake X.Y.
8815# (This private macro should not be called outside this file.)
8816AC_DEFUN([AM_AUTOMAKE_VERSION],
8817[am__api_version='1.11'
8818dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8819dnl require some minimum version.  Point them to the right macro.
8820m4_if([$1], [1.11.1], [],
8821      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8822])
8823
8824# _AM_AUTOCONF_VERSION(VERSION)
8825# -----------------------------
8826# aclocal traces this macro to find the Autoconf version.
8827# This is a private macro too.  Using m4_define simplifies
8828# the logic in aclocal, which can simply ignore this definition.
8829m4_define([_AM_AUTOCONF_VERSION], [])
8830
8831# AM_SET_CURRENT_AUTOMAKE_VERSION
8832# -------------------------------
8833# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8834# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8835AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8836[AM_AUTOMAKE_VERSION([1.11.1])dnl
8837m4_ifndef([AC_AUTOCONF_VERSION],
8838  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8839_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8840
8841# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
8842
8843# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
8844#
8845# This file is free software; the Free Software Foundation
8846# gives unlimited permission to copy and/or distribute it,
8847# with or without modifications, as long as this notice is preserved.
8848
8849# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8850# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
8851# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
8852#
8853# Of course, Automake must honor this variable whenever it calls a
8854# tool from the auxiliary directory.  The problem is that $srcdir (and
8855# therefore $ac_aux_dir as well) can be either absolute or relative,
8856# depending on how configure is run.  This is pretty annoying, since
8857# it makes $ac_aux_dir quite unusable in subdirectories: in the top
8858# source directory, any form will work fine, but in subdirectories a
8859# relative path needs to be adjusted first.
8860#
8861# $ac_aux_dir/missing
8862#    fails when called from a subdirectory if $ac_aux_dir is relative
8863# $top_srcdir/$ac_aux_dir/missing
8864#    fails if $ac_aux_dir is absolute,
8865#    fails when called from a subdirectory in a VPATH build with
8866#          a relative $ac_aux_dir
8867#
8868# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
8869# are both prefixed by $srcdir.  In an in-source build this is usually
8870# harmless because $srcdir is `.', but things will broke when you
8871# start a VPATH build or use an absolute $srcdir.
8872#
8873# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
8874# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
8875#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
8876# and then we would define $MISSING as
8877#   MISSING="\${SHELL} $am_aux_dir/missing"
8878# This will work as long as MISSING is not called from configure, because
8879# unfortunately $(top_srcdir) has no meaning in configure.
8880# However there are other variables, like CC, which are often used in
8881# configure, and could therefore not use this "fixed" $ac_aux_dir.
8882#
8883# Another solution, used here, is to always expand $ac_aux_dir to an
8884# absolute PATH.  The drawback is that using absolute paths prevent a
8885# configured tree to be moved without reconfiguration.
8886
8887AC_DEFUN([AM_AUX_DIR_EXPAND],
8888[dnl Rely on autoconf to set up CDPATH properly.
8889AC_PREREQ([2.50])dnl
8890# expand $ac_aux_dir to an absolute path
8891am_aux_dir=`cd $ac_aux_dir && pwd`
8892])
8893
8894# AM_CONDITIONAL                                            -*- Autoconf -*-
8895
8896# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
8897# Free Software Foundation, Inc.
8898#
8899# This file is free software; the Free Software Foundation
8900# gives unlimited permission to copy and/or distribute it,
8901# with or without modifications, as long as this notice is preserved.
8902
8903# serial 9
8904
8905# AM_CONDITIONAL(NAME, SHELL-CONDITION)
8906# -------------------------------------
8907# Define a conditional.
8908AC_DEFUN([AM_CONDITIONAL],
8909[AC_PREREQ(2.52)dnl
8910 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
8911	[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
8912AC_SUBST([$1_TRUE])dnl
8913AC_SUBST([$1_FALSE])dnl
8914_AM_SUBST_NOTMAKE([$1_TRUE])dnl
8915_AM_SUBST_NOTMAKE([$1_FALSE])dnl
8916m4_define([_AM_COND_VALUE_$1], [$2])dnl
8917if $2; then
8918  $1_TRUE=
8919  $1_FALSE='#'
8920else
8921  $1_TRUE='#'
8922  $1_FALSE=
8923fi
8924AC_CONFIG_COMMANDS_PRE(
8925[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
8926  AC_MSG_ERROR([[conditional "$1" was never defined.
8927Usually this means the macro was only invoked conditionally.]])
8928fi])])
8929
8930# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
8931# Free Software Foundation, Inc.
8932#
8933# This file is free software; the Free Software Foundation
8934# gives unlimited permission to copy and/or distribute it,
8935# with or without modifications, as long as this notice is preserved.
8936
8937# serial 10
8938
8939# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
8940# written in clear, in which case automake, when reading aclocal.m4,
8941# will think it sees a *use*, and therefore will trigger all it's
8942# C support machinery.  Also note that it means that autoscan, seeing
8943# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
8944
8945
8946# _AM_DEPENDENCIES(NAME)
8947# ----------------------
8948# See how the compiler implements dependency checking.
8949# NAME is "CC", "CXX", "GCJ", or "OBJC".
8950# We try a few techniques and use that to set a single cache variable.
8951#
8952# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
8953# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
8954# dependency, and given that the user is not expected to run this macro,
8955# just rely on AC_PROG_CC.
8956AC_DEFUN([_AM_DEPENDENCIES],
8957[AC_REQUIRE([AM_SET_DEPDIR])dnl
8958AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
8959AC_REQUIRE([AM_MAKE_INCLUDE])dnl
8960AC_REQUIRE([AM_DEP_TRACK])dnl
8961
8962ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
8963       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
8964       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
8965       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
8966       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
8967                   [depcc="$$1"   am_compiler_list=])
8968
8969AC_CACHE_CHECK([dependency style of $depcc],
8970               [am_cv_$1_dependencies_compiler_type],
8971[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8972  # We make a subdir and do the tests there.  Otherwise we can end up
8973  # making bogus files that we don't know about and never remove.  For
8974  # instance it was reported that on HP-UX the gcc test will end up
8975  # making a dummy file named `D' -- because `-MD' means `put the output
8976  # in D'.
8977  mkdir conftest.dir
8978  # Copy depcomp to subdir because otherwise we won't find it if we're
8979  # using a relative directory.
8980  cp "$am_depcomp" conftest.dir
8981  cd conftest.dir
8982  # We will build objects and dependencies in a subdirectory because
8983  # it helps to detect inapplicable dependency modes.  For instance
8984  # both Tru64's cc and ICC support -MD to output dependencies as a
8985  # side effect of compilation, but ICC will put the dependencies in
8986  # the current directory while Tru64 will put them in the object
8987  # directory.
8988  mkdir sub
8989
8990  am_cv_$1_dependencies_compiler_type=none
8991  if test "$am_compiler_list" = ""; then
8992     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
8993  fi
8994  am__universal=false
8995  m4_case([$1], [CC],
8996    [case " $depcc " in #(
8997     *\ -arch\ *\ -arch\ *) am__universal=true ;;
8998     esac],
8999    [CXX],
9000    [case " $depcc " in #(
9001     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9002     esac])
9003
9004  for depmode in $am_compiler_list; do
9005    # Setup a source with many dependencies, because some compilers
9006    # like to wrap large dependency lists on column 80 (with \), and
9007    # we should not choose a depcomp mode which is confused by this.
9008    #
9009    # We need to recreate these files for each test, as the compiler may
9010    # overwrite some of them when testing with obscure command lines.
9011    # This happens at least with the AIX C compiler.
9012    : > sub/conftest.c
9013    for i in 1 2 3 4 5 6; do
9014      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9015      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9016      # Solaris 8's {/usr,}/bin/sh.
9017      touch sub/conftst$i.h
9018    done
9019    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9020
9021    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9022    # mode.  It turns out that the SunPro C++ compiler does not properly
9023    # handle `-M -o', and we need to detect this.  Also, some Intel
9024    # versions had trouble with output in subdirs
9025    am__obj=sub/conftest.${OBJEXT-o}
9026    am__minus_obj="-o $am__obj"
9027    case $depmode in
9028    gcc)
9029      # This depmode causes a compiler race in universal mode.
9030      test "$am__universal" = false || continue
9031      ;;
9032    nosideeffect)
9033      # after this tag, mechanisms are not by side-effect, so they'll
9034      # only be used when explicitly requested
9035      if test "x$enable_dependency_tracking" = xyes; then
9036	continue
9037      else
9038	break
9039      fi
9040      ;;
9041    msvisualcpp | msvcmsys)
9042      # This compiler won't grok `-c -o', but also, the minuso test has
9043      # not run yet.  These depmodes are late enough in the game, and
9044      # so weak that their functioning should not be impacted.
9045      am__obj=conftest.${OBJEXT-o}
9046      am__minus_obj=
9047      ;;
9048    none) break ;;
9049    esac
9050    if depmode=$depmode \
9051       source=sub/conftest.c object=$am__obj \
9052       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9053       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9054         >/dev/null 2>conftest.err &&
9055       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9056       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9057       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9058       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9059      # icc doesn't choke on unknown options, it will just issue warnings
9060      # or remarks (even with -Werror).  So we grep stderr for any message
9061      # that says an option was ignored or not supported.
9062      # When given -MP, icc 7.0 and 7.1 complain thusly:
9063      #   icc: Command line warning: ignoring option '-M'; no argument required
9064      # The diagnosis changed in icc 8.0:
9065      #   icc: Command line remark: option '-MP' not supported
9066      if (grep 'ignoring option' conftest.err ||
9067          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9068        am_cv_$1_dependencies_compiler_type=$depmode
9069        break
9070      fi
9071    fi
9072  done
9073
9074  cd ..
9075  rm -rf conftest.dir
9076else
9077  am_cv_$1_dependencies_compiler_type=none
9078fi
9079])
9080AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9081AM_CONDITIONAL([am__fastdep$1], [
9082  test "x$enable_dependency_tracking" != xno \
9083  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9084])
9085
9086
9087# AM_SET_DEPDIR
9088# -------------
9089# Choose a directory name for dependency files.
9090# This macro is AC_REQUIREd in _AM_DEPENDENCIES
9091AC_DEFUN([AM_SET_DEPDIR],
9092[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9093AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9094])
9095
9096
9097# AM_DEP_TRACK
9098# ------------
9099AC_DEFUN([AM_DEP_TRACK],
9100[AC_ARG_ENABLE(dependency-tracking,
9101[  --disable-dependency-tracking  speeds up one-time build
9102  --enable-dependency-tracking   do not reject slow dependency extractors])
9103if test "x$enable_dependency_tracking" != xno; then
9104  am_depcomp="$ac_aux_dir/depcomp"
9105  AMDEPBACKSLASH='\'
9106fi
9107AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9108AC_SUBST([AMDEPBACKSLASH])dnl
9109_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9110])
9111
9112# Generate code to set up dependency tracking.              -*- Autoconf -*-
9113
9114# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9115# Free Software Foundation, Inc.
9116#
9117# This file is free software; the Free Software Foundation
9118# gives unlimited permission to copy and/or distribute it,
9119# with or without modifications, as long as this notice is preserved.
9120
9121#serial 5
9122
9123# _AM_OUTPUT_DEPENDENCY_COMMANDS
9124# ------------------------------
9125AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9126[{
9127  # Autoconf 2.62 quotes --file arguments for eval, but not when files
9128  # are listed without --file.  Let's play safe and only enable the eval
9129  # if we detect the quoting.
9130  case $CONFIG_FILES in
9131  *\'*) eval set x "$CONFIG_FILES" ;;
9132  *)   set x $CONFIG_FILES ;;
9133  esac
9134  shift
9135  for mf
9136  do
9137    # Strip MF so we end up with the name of the file.
9138    mf=`echo "$mf" | sed -e 's/:.*$//'`
9139    # Check whether this is an Automake generated Makefile or not.
9140    # We used to match only the files named `Makefile.in', but
9141    # some people rename them; so instead we look at the file content.
9142    # Grep'ing the first line is not enough: some people post-process
9143    # each Makefile.in and add a new line on top of each file to say so.
9144    # Grep'ing the whole file is not good either: AIX grep has a line
9145    # limit of 2048, but all sed's we know have understand at least 4000.
9146    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9147      dirpart=`AS_DIRNAME("$mf")`
9148    else
9149      continue
9150    fi
9151    # Extract the definition of DEPDIR, am__include, and am__quote
9152    # from the Makefile without running `make'.
9153    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9154    test -z "$DEPDIR" && continue
9155    am__include=`sed -n 's/^am__include = //p' < "$mf"`
9156    test -z "am__include" && continue
9157    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9158    # When using ansi2knr, U may be empty or an underscore; expand it
9159    U=`sed -n 's/^U = //p' < "$mf"`
9160    # Find all dependency output files, they are included files with
9161    # $(DEPDIR) in their names.  We invoke sed twice because it is the
9162    # simplest approach to changing $(DEPDIR) to its actual value in the
9163    # expansion.
9164    for file in `sed -n "
9165      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9166	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9167      # Make sure the directory exists.
9168      test -f "$dirpart/$file" && continue
9169      fdir=`AS_DIRNAME(["$file"])`
9170      AS_MKDIR_P([$dirpart/$fdir])
9171      # echo "creating $dirpart/$file"
9172      echo '# dummy' > "$dirpart/$file"
9173    done
9174  done
9175}
9176])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9177
9178
9179# AM_OUTPUT_DEPENDENCY_COMMANDS
9180# -----------------------------
9181# This macro should only be invoked once -- use via AC_REQUIRE.
9182#
9183# This code is only required when automatic dependency tracking
9184# is enabled.  FIXME.  This creates each `.P' file that we will
9185# need in order to bootstrap the dependency handling code.
9186AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9187[AC_CONFIG_COMMANDS([depfiles],
9188     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9189     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9190])
9191
9192# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
9193# Free Software Foundation, Inc.
9194#
9195# This file is free software; the Free Software Foundation
9196# gives unlimited permission to copy and/or distribute it,
9197# with or without modifications, as long as this notice is preserved.
9198
9199# serial 8
9200
9201# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
9202AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
9203
9204# Do all the work for Automake.                             -*- Autoconf -*-
9205
9206# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9207# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9208#
9209# This file is free software; the Free Software Foundation
9210# gives unlimited permission to copy and/or distribute it,
9211# with or without modifications, as long as this notice is preserved.
9212
9213# serial 16
9214
9215# This macro actually does too much.  Some checks are only needed if
9216# your package does certain things.  But this isn't really a big deal.
9217
9218# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9219# AM_INIT_AUTOMAKE([OPTIONS])
9220# -----------------------------------------------
9221# The call with PACKAGE and VERSION arguments is the old style
9222# call (pre autoconf-2.50), which is being phased out.  PACKAGE
9223# and VERSION should now be passed to AC_INIT and removed from
9224# the call to AM_INIT_AUTOMAKE.
9225# We support both call styles for the transition.  After
9226# the next Automake release, Autoconf can make the AC_INIT
9227# arguments mandatory, and then we can depend on a new Autoconf
9228# release and drop the old call support.
9229AC_DEFUN([AM_INIT_AUTOMAKE],
9230[AC_PREREQ([2.62])dnl
9231dnl Autoconf wants to disallow AM_ names.  We explicitly allow
9232dnl the ones we care about.
9233m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9234AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9235AC_REQUIRE([AC_PROG_INSTALL])dnl
9236if test "`cd $srcdir && pwd`" != "`pwd`"; then
9237  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9238  # is not polluted with repeated "-I."
9239  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9240  # test to see if srcdir already configured
9241  if test -f $srcdir/config.status; then
9242    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9243  fi
9244fi
9245
9246# test whether we have cygpath
9247if test -z "$CYGPATH_W"; then
9248  if (cygpath --version) >/dev/null 2>/dev/null; then
9249    CYGPATH_W='cygpath -w'
9250  else
9251    CYGPATH_W=echo
9252  fi
9253fi
9254AC_SUBST([CYGPATH_W])
9255
9256# Define the identity of the package.
9257dnl Distinguish between old-style and new-style calls.
9258m4_ifval([$2],
9259[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9260 AC_SUBST([PACKAGE], [$1])dnl
9261 AC_SUBST([VERSION], [$2])],
9262[_AM_SET_OPTIONS([$1])dnl
9263dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9264m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9265  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9266 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9267 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9268
9269_AM_IF_OPTION([no-define],,
9270[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9271 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9272
9273# Some tools Automake needs.
9274AC_REQUIRE([AM_SANITY_CHECK])dnl
9275AC_REQUIRE([AC_ARG_PROGRAM])dnl
9276AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9277AM_MISSING_PROG(AUTOCONF, autoconf)
9278AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9279AM_MISSING_PROG(AUTOHEADER, autoheader)
9280AM_MISSING_PROG(MAKEINFO, makeinfo)
9281AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9282AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9283AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9284# We need awk for the "check" target.  The system "awk" is bad on
9285# some platforms.
9286AC_REQUIRE([AC_PROG_AWK])dnl
9287AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9288AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9289_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9290	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9291			     [_AM_PROG_TAR([v7])])])
9292_AM_IF_OPTION([no-dependencies],,
9293[AC_PROVIDE_IFELSE([AC_PROG_CC],
9294		  [_AM_DEPENDENCIES(CC)],
9295		  [define([AC_PROG_CC],
9296			  defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9297AC_PROVIDE_IFELSE([AC_PROG_CXX],
9298		  [_AM_DEPENDENCIES(CXX)],
9299		  [define([AC_PROG_CXX],
9300			  defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9301AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9302		  [_AM_DEPENDENCIES(OBJC)],
9303		  [define([AC_PROG_OBJC],
9304			  defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9305])
9306_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9307dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9308dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
9309dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9310AC_CONFIG_COMMANDS_PRE(dnl
9311[m4_provide_if([_AM_COMPILER_EXEEXT],
9312  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9313])
9314
9315dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
9316dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9317dnl mangled by Autoconf and run in a shell conditional statement.
9318m4_define([_AC_COMPILER_EXEEXT],
9319m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9320
9321
9322# When config.status generates a header, we must update the stamp-h file.
9323# This file resides in the same directory as the config header
9324# that is generated.  The stamp files are numbered to have different names.
9325
9326# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9327# loop where config.status creates the headers, so we can generate
9328# our stamp files there.
9329AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9330[# Compute $1's index in $config_headers.
9331_am_arg=$1
9332_am_stamp_count=1
9333for _am_header in $config_headers :; do
9334  case $_am_header in
9335    $_am_arg | $_am_arg:* )
9336      break ;;
9337    * )
9338      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9339  esac
9340done
9341echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9342
9343# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
9344#
9345# This file is free software; the Free Software Foundation
9346# gives unlimited permission to copy and/or distribute it,
9347# with or without modifications, as long as this notice is preserved.
9348
9349# AM_PROG_INSTALL_SH
9350# ------------------
9351# Define $install_sh.
9352AC_DEFUN([AM_PROG_INSTALL_SH],
9353[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9354if test x"${install_sh}" != xset; then
9355  case $am_aux_dir in
9356  *\ * | *\	*)
9357    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9358  *)
9359    install_sh="\${SHELL} $am_aux_dir/install-sh"
9360  esac
9361fi
9362AC_SUBST(install_sh)])
9363
9364# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
9365#
9366# This file is free software; the Free Software Foundation
9367# gives unlimited permission to copy and/or distribute it,
9368# with or without modifications, as long as this notice is preserved.
9369
9370# serial 2
9371
9372# Check whether the underlying file-system supports filenames
9373# with a leading dot.  For instance MS-DOS doesn't.
9374AC_DEFUN([AM_SET_LEADING_DOT],
9375[rm -rf .tst 2>/dev/null
9376mkdir .tst 2>/dev/null
9377if test -d .tst; then
9378  am__leading_dot=.
9379else
9380  am__leading_dot=_
9381fi
9382rmdir .tst 2>/dev/null
9383AC_SUBST([am__leading_dot])])
9384
9385# Check to see how 'make' treats includes.	            -*- Autoconf -*-
9386
9387# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
9388#
9389# This file is free software; the Free Software Foundation
9390# gives unlimited permission to copy and/or distribute it,
9391# with or without modifications, as long as this notice is preserved.
9392
9393# serial 4
9394
9395# AM_MAKE_INCLUDE()
9396# -----------------
9397# Check to see how make treats includes.
9398AC_DEFUN([AM_MAKE_INCLUDE],
9399[am_make=${MAKE-make}
9400cat > confinc << 'END'
9401am__doit:
9402	@echo this is the am__doit target
9403.PHONY: am__doit
9404END
9405# If we don't find an include directive, just comment out the code.
9406AC_MSG_CHECKING([for style of include used by $am_make])
9407am__include="#"
9408am__quote=
9409_am_result=none
9410# First try GNU make style include.
9411echo "include confinc" > confmf
9412# Ignore all kinds of additional output from `make'.
9413case `$am_make -s -f confmf 2> /dev/null` in #(
9414*the\ am__doit\ target*)
9415  am__include=include
9416  am__quote=
9417  _am_result=GNU
9418  ;;
9419esac
9420# Now try BSD make style include.
9421if test "$am__include" = "#"; then
9422   echo '.include "confinc"' > confmf
9423   case `$am_make -s -f confmf 2> /dev/null` in #(
9424   *the\ am__doit\ target*)
9425     am__include=.include
9426     am__quote="\""
9427     _am_result=BSD
9428     ;;
9429   esac
9430fi
9431AC_SUBST([am__include])
9432AC_SUBST([am__quote])
9433AC_MSG_RESULT([$_am_result])
9434rm -f confinc confmf
9435])
9436
9437# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
9438
9439# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
9440# Free Software Foundation, Inc.
9441#
9442# This file is free software; the Free Software Foundation
9443# gives unlimited permission to copy and/or distribute it,
9444# with or without modifications, as long as this notice is preserved.
9445
9446# serial 6
9447
9448# AM_MISSING_PROG(NAME, PROGRAM)
9449# ------------------------------
9450AC_DEFUN([AM_MISSING_PROG],
9451[AC_REQUIRE([AM_MISSING_HAS_RUN])
9452$1=${$1-"${am_missing_run}$2"}
9453AC_SUBST($1)])
9454
9455
9456# AM_MISSING_HAS_RUN
9457# ------------------
9458# Define MISSING if not defined so far and test if it supports --run.
9459# If it does, set am_missing_run to use it, otherwise, to nothing.
9460AC_DEFUN([AM_MISSING_HAS_RUN],
9461[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9462AC_REQUIRE_AUX_FILE([missing])dnl
9463if test x"${MISSING+set}" != xset; then
9464  case $am_aux_dir in
9465  *\ * | *\	*)
9466    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9467  *)
9468    MISSING="\${SHELL} $am_aux_dir/missing" ;;
9469  esac
9470fi
9471# Use eval to expand $SHELL
9472if eval "$MISSING --run true"; then
9473  am_missing_run="$MISSING --run "
9474else
9475  am_missing_run=
9476  AC_MSG_WARN([`missing' script is too old or missing])
9477fi
9478])
9479
9480# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
9481#
9482# This file is free software; the Free Software Foundation
9483# gives unlimited permission to copy and/or distribute it,
9484# with or without modifications, as long as this notice is preserved.
9485
9486# AM_PROG_MKDIR_P
9487# ---------------
9488# Check for `mkdir -p'.
9489AC_DEFUN([AM_PROG_MKDIR_P],
9490[AC_PREREQ([2.60])dnl
9491AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9492dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
9493dnl while keeping a definition of mkdir_p for backward compatibility.
9494dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9495dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9496dnl Makefile.ins that do not define MKDIR_P, so we do our own
9497dnl adjustment using top_builddir (which is defined more often than
9498dnl MKDIR_P).
9499AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9500case $mkdir_p in
9501  [[\\/$]]* | ?:[[\\/]]*) ;;
9502  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9503esac
9504])
9505
9506# Helper functions for option handling.                     -*- Autoconf -*-
9507
9508# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
9509#
9510# This file is free software; the Free Software Foundation
9511# gives unlimited permission to copy and/or distribute it,
9512# with or without modifications, as long as this notice is preserved.
9513
9514# serial 4
9515
9516# _AM_MANGLE_OPTION(NAME)
9517# -----------------------
9518AC_DEFUN([_AM_MANGLE_OPTION],
9519[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9520
9521# _AM_SET_OPTION(NAME)
9522# ------------------------------
9523# Set option NAME.  Presently that only means defining a flag for this option.
9524AC_DEFUN([_AM_SET_OPTION],
9525[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9526
9527# _AM_SET_OPTIONS(OPTIONS)
9528# ----------------------------------
9529# OPTIONS is a space-separated list of Automake options.
9530AC_DEFUN([_AM_SET_OPTIONS],
9531[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9532
9533# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9534# -------------------------------------------
9535# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9536AC_DEFUN([_AM_IF_OPTION],
9537[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9538
9539# Check to make sure that the build environment is sane.    -*- Autoconf -*-
9540
9541# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
9542# Free Software Foundation, Inc.
9543#
9544# This file is free software; the Free Software Foundation
9545# gives unlimited permission to copy and/or distribute it,
9546# with or without modifications, as long as this notice is preserved.
9547
9548# serial 5
9549
9550# AM_SANITY_CHECK
9551# ---------------
9552AC_DEFUN([AM_SANITY_CHECK],
9553[AC_MSG_CHECKING([whether build environment is sane])
9554# Just in case
9555sleep 1
9556echo timestamp > conftest.file
9557# Reject unsafe characters in $srcdir or the absolute working directory
9558# name.  Accept space and tab only in the latter.
9559am_lf='
9560'
9561case `pwd` in
9562  *[[\\\"\#\$\&\'\`$am_lf]]*)
9563    AC_MSG_ERROR([unsafe absolute working directory name]);;
9564esac
9565case $srcdir in
9566  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
9567    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
9568esac
9569
9570# Do `set' in a subshell so we don't clobber the current shell's
9571# arguments.  Must try -L first in case configure is actually a
9572# symlink; some systems play weird games with the mod time of symlinks
9573# (eg FreeBSD returns the mod time of the symlink's containing
9574# directory).
9575if (
9576   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9577   if test "$[*]" = "X"; then
9578      # -L didn't work.
9579      set X `ls -t "$srcdir/configure" conftest.file`
9580   fi
9581   rm -f conftest.file
9582   if test "$[*]" != "X $srcdir/configure conftest.file" \
9583      && test "$[*]" != "X conftest.file $srcdir/configure"; then
9584
9585      # If neither matched, then we have a broken ls.  This can happen
9586      # if, for instance, CONFIG_SHELL is bash and it inherits a
9587      # broken ls alias from the environment.  This has actually
9588      # happened.  Such a system could not be considered "sane".
9589      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
9590alias in your environment])
9591   fi
9592
9593   test "$[2]" = conftest.file
9594   )
9595then
9596   # Ok.
9597   :
9598else
9599   AC_MSG_ERROR([newly created file is older than distributed files!
9600Check your system clock])
9601fi
9602AC_MSG_RESULT(yes)])
9603
9604# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
9605#
9606# This file is free software; the Free Software Foundation
9607# gives unlimited permission to copy and/or distribute it,
9608# with or without modifications, as long as this notice is preserved.
9609
9610# AM_PROG_INSTALL_STRIP
9611# ---------------------
9612# One issue with vendor `install' (even GNU) is that you can't
9613# specify the program used to strip binaries.  This is especially
9614# annoying in cross-compiling environments, where the build's strip
9615# is unlikely to handle the host's binaries.
9616# Fortunately install-sh will honor a STRIPPROG variable, so we
9617# always use install-sh in `make install-strip', and initialize
9618# STRIPPROG with the value of the STRIP variable (set by the user).
9619AC_DEFUN([AM_PROG_INSTALL_STRIP],
9620[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9621# Installed binaries are usually stripped using `strip' when the user
9622# run `make install-strip'.  However `strip' might not be the right
9623# tool to use in cross-compilation environments, therefore Automake
9624# will honor the `STRIP' environment variable to overrule this program.
9625dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
9626if test "$cross_compiling" != no; then
9627  AC_CHECK_TOOL([STRIP], [strip], :)
9628fi
9629INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9630AC_SUBST([INSTALL_STRIP_PROGRAM])])
9631
9632# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
9633#
9634# This file is free software; the Free Software Foundation
9635# gives unlimited permission to copy and/or distribute it,
9636# with or without modifications, as long as this notice is preserved.
9637
9638# serial 2
9639
9640# _AM_SUBST_NOTMAKE(VARIABLE)
9641# ---------------------------
9642# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
9643# This macro is traced by Automake.
9644AC_DEFUN([_AM_SUBST_NOTMAKE])
9645
9646# AM_SUBST_NOTMAKE(VARIABLE)
9647# ---------------------------
9648# Public sister of _AM_SUBST_NOTMAKE.
9649AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
9650
9651# Check how to create a tarball.                            -*- Autoconf -*-
9652
9653# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
9654#
9655# This file is free software; the Free Software Foundation
9656# gives unlimited permission to copy and/or distribute it,
9657# with or without modifications, as long as this notice is preserved.
9658
9659# serial 2
9660
9661# _AM_PROG_TAR(FORMAT)
9662# --------------------
9663# Check how to create a tarball in format FORMAT.
9664# FORMAT should be one of `v7', `ustar', or `pax'.
9665#
9666# Substitute a variable $(am__tar) that is a command
9667# writing to stdout a FORMAT-tarball containing the directory
9668# $tardir.
9669#     tardir=directory && $(am__tar) > result.tar
9670#
9671# Substitute a variable $(am__untar) that extract such
9672# a tarball read from stdin.
9673#     $(am__untar) < result.tar
9674AC_DEFUN([_AM_PROG_TAR],
9675[# Always define AMTAR for backward compatibility.
9676AM_MISSING_PROG([AMTAR], [tar])
9677m4_if([$1], [v7],
9678     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
9679     [m4_case([$1], [ustar],, [pax],,
9680              [m4_fatal([Unknown tar format])])
9681AC_MSG_CHECKING([how to create a $1 tar archive])
9682# Loop over all known methods to create a tar archive until one works.
9683_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9684_am_tools=${am_cv_prog_tar_$1-$_am_tools}
9685# Do not fold the above two line into one, because Tru64 sh and
9686# Solaris sh will not grok spaces in the rhs of `-'.
9687for _am_tool in $_am_tools
9688do
9689  case $_am_tool in
9690  gnutar)
9691    for _am_tar in tar gnutar gtar;
9692    do
9693      AM_RUN_LOG([$_am_tar --version]) && break
9694    done
9695    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
9696    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
9697    am__untar="$_am_tar -xf -"
9698    ;;
9699  plaintar)
9700    # Must skip GNU tar: if it does not support --format= it doesn't create
9701    # ustar tarball either.
9702    (tar --version) >/dev/null 2>&1 && continue
9703    am__tar='tar chf - "$$tardir"'
9704    am__tar_='tar chf - "$tardir"'
9705    am__untar='tar xf -'
9706    ;;
9707  pax)
9708    am__tar='pax -L -x $1 -w "$$tardir"'
9709    am__tar_='pax -L -x $1 -w "$tardir"'
9710    am__untar='pax -r'
9711    ;;
9712  cpio)
9713    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9714    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9715    am__untar='cpio -i -H $1 -d'
9716    ;;
9717  none)
9718    am__tar=false
9719    am__tar_=false
9720    am__untar=false
9721    ;;
9722  esac
9723
9724  # If the value was cached, stop now.  We just wanted to have am__tar
9725  # and am__untar set.
9726  test -n "${am_cv_prog_tar_$1}" && break
9727
9728  # tar/untar a dummy directory, and stop if the command works
9729  rm -rf conftest.dir
9730  mkdir conftest.dir
9731  echo GrepMe > conftest.dir/file
9732  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9733  rm -rf conftest.dir
9734  if test -s conftest.tar; then
9735    AM_RUN_LOG([$am__untar <conftest.tar])
9736    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9737  fi
9738done
9739rm -rf conftest.dir
9740
9741AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9742AC_MSG_RESULT([$am_cv_prog_tar_$1])])
9743AC_SUBST([am__tar])
9744AC_SUBST([am__untar])
9745]) # _AM_PROG_TAR
9746
9747